订单回退接口联调

Co-authored-by: Copilot <copilot@github.com>
dev-scheduling
zhangdi 1 month ago
parent 40d485818c
commit 3b2047a198
  1. 16
      src/views/productionManagement/returnManagement/components/preserve.vue
  2. 11
      src/views/productionManagement/returnManagement/components/preserveLog.vue

@ -148,30 +148,24 @@ export default {
this.$emit('updateDataChange', this.cardNo); this.$emit('updateDataChange', this.cardNo);
getByCardNoByPlanAll({ cardNo: this.cardNo }) getByCardNoByPlanAll({ cardNo: this.cardNo })
.then(res => { .then(res => {
console.log(res.data, 'res.data');
// this.cardNo = ''; // this.cardNo = '';
// if (Object.keys(res.data.data).length != 0) { // if (Object.keys(res.data.data).length != 0) {
// this.data = res.data.data;
// this.loading = false; // this.loading = false;
// } else { // } else {
// this.loading = false; // this.loading = false;
// this.$message.error(''); // this.$message.error('');
// } // }
res.data.data.forEach(item => { this.data = res.data.data;
if (item.receiveMan.userId) { this.loading = false;
item.receive = true;
} else {
item.receive = false;
}
this.plantList.push(item);
});
this.prWorkOrder = this.plantList[0].prWorkOrder;
this.$message.success('操作成功'); this.$message.success('操作成功');
}) })
.catch(err => { .catch(err => {
this.loading = false; this.loading = false;
}); });
}, },
returnThisProcess() { returnThisProcess(wpId) {
this.$prompt('确定将订单退回至此工序,并输入退回理由:', '提示', { this.$prompt('确定将订单退回至此工序,并输入退回理由:', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',

@ -105,6 +105,13 @@ export default {
sortable: false, sortable: false,
span: 12, span: 12,
searchOrder: 20, searchOrder: 20,
searchRules: [
{
required: true,
message: '请选择配套日期',
trigger: 'blur',
},
],
}, },
{ {
label: '零件号', label: '零件号',
@ -136,7 +143,7 @@ export default {
}, },
{ {
label: '回退人', label: '回退人',
prop: 'ldapName', prop: 'updateName',
search: true, search: true,
sortable: false, sortable: false,
span: 12, span: 12,
@ -209,7 +216,7 @@ export default {
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
getWorkPlanPreserve(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { getWorkPlanPreserve(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
this.data = res.data.data.records; this.data = res.data.data;
this.loading = false; this.loading = false;
this.page.total = res.data.data.total; this.page.total = res.data.data.total;
}).catch(err=>{ }).catch(err=>{

Loading…
Cancel
Save