组批次调整、揽件前置
This commit is contained in:
parent
df1a166859
commit
2cd3335877
@ -118,6 +118,13 @@ export default {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 把揽件移动到数组第一位
|
||||||
|
const index = this.scanRecordList.findIndex(item => item.scanType == 10);
|
||||||
|
if (index !== -1) {
|
||||||
|
const item = this.scanRecordList[index];
|
||||||
|
this.scanRecordList.splice(index, 1);
|
||||||
|
this.scanRecordList.unshift(item);
|
||||||
|
}
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1189,8 +1189,8 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let item = billRes.rows[0];
|
let item = billRes.rows[0];
|
||||||
this.emisCoPackDetail.push(item);
|
if(this.coPackType=="edit")
|
||||||
if(this.coPackType=="edit"){
|
{
|
||||||
let packDetail = {
|
let packDetail = {
|
||||||
batchNo: this.form.batchNo,
|
batchNo: this.form.batchNo,
|
||||||
billCode: item.billCode,
|
billCode: item.billCode,
|
||||||
@ -1202,11 +1202,19 @@ export default {
|
|||||||
createBy: this.$store.getters.empCode,
|
createBy: this.$store.getters.empCode,
|
||||||
createTime: parseTime(new Date())
|
createTime: parseTime(new Date())
|
||||||
};
|
};
|
||||||
|
try{
|
||||||
let response = await addEmisTmsSiteBatchDtl(packDetail);
|
let response = await addEmisTmsSiteBatchDtl(packDetail);
|
||||||
if(!response || response.code != 200){
|
}catch(e){
|
||||||
this.$modal.msgError(response && response.msg || '组批次明细新增失败')
|
console.log('e',e)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.emisCoPackDetail.push(item);
|
||||||
|
// if(!response || response.code != 200){
|
||||||
|
// this.$modal.msgError(response && response.msg || '组批次明细新增失败')
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
}else{
|
||||||
|
this.emisCoPackDetail.push(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user