货物组批次参数调整
This commit is contained in:
parent
883b077d6f
commit
d3b99b8ccd
@ -37,6 +37,14 @@ export function addEmisTmsSiteBatch(data) {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//货物组批次保存
|
||||||
|
export function addAllEmisTmsSiteBatch(data) {
|
||||||
|
return request({
|
||||||
|
url: '/emis/emisTmsSiteBatch/addAll',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 修改一级网点TMS组批次
|
// 修改一级网点TMS组批次
|
||||||
export function updateEmisTmsSiteBatch(data) {
|
export function updateEmisTmsSiteBatch(data) {
|
||||||
|
|||||||
@ -360,7 +360,7 @@
|
|||||||
import { listEmisTmsSiteBatch,
|
import { listEmisTmsSiteBatch,
|
||||||
getTmsGroupBatchNo, getEmisTmsSiteBatch, delEmisTmsSiteBatch,
|
getTmsGroupBatchNo, getEmisTmsSiteBatch, delEmisTmsSiteBatch,
|
||||||
addEmisTmsSiteBatch, updateEmisTmsSiteBatch,
|
addEmisTmsSiteBatch, updateEmisTmsSiteBatch,
|
||||||
scanSiteBatch
|
scanSiteBatch, addAllEmisTmsSiteBatch
|
||||||
|
|
||||||
} from "@/api/emis/emisTmsSiteBatch";
|
} from "@/api/emis/emisTmsSiteBatch";
|
||||||
import { listEmisTmsSiteBatchDtl, delEmisTmsSiteBatchDtl, addEmisTmsSiteBatchDtl } from "@/api/emis/emisTmsSiteBatchDtl";
|
import { listEmisTmsSiteBatchDtl, delEmisTmsSiteBatchDtl, addEmisTmsSiteBatchDtl } from "@/api/emis/emisTmsSiteBatchDtl";
|
||||||
@ -1046,18 +1046,8 @@ export default {
|
|||||||
if(this.isCopy){
|
if(this.isCopy){
|
||||||
this.form.id=null;
|
this.form.id=null;
|
||||||
}
|
}
|
||||||
|
this.form.batchDtlList=[];
|
||||||
|
this.form.loadingList=[];
|
||||||
console.log("==this.form==>",this.form);
|
|
||||||
|
|
||||||
|
|
||||||
let response = await addEmisTmsSiteBatch(this.form);
|
|
||||||
if(!response || response.code != 200){
|
|
||||||
this.isDoing=false;
|
|
||||||
this.$modal.msgError(response && response.msg || '新增组批次失败')
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for(let i = 0; i< this.emisCoPackDetail.length;i++){
|
for(let i = 0; i< this.emisCoPackDetail.length;i++){
|
||||||
let packDetail = {
|
let packDetail = {
|
||||||
batchNo:this.form.batchNo,
|
batchNo:this.form.batchNo,
|
||||||
@ -1068,13 +1058,13 @@ export default {
|
|||||||
scanMan: this.emisCoPackDetail[i].scanMan,
|
scanMan: this.emisCoPackDetail[i].scanMan,
|
||||||
scanSite: this.emisCoPackDetail[i].scanSite,
|
scanSite: this.emisCoPackDetail[i].scanSite,
|
||||||
};
|
};
|
||||||
|
this.form.batchDtlList.push(packDetail);
|
||||||
let response = await addEmisTmsSiteBatchDtl(packDetail);
|
// let response = await addEmisTmsSiteBatchDtl(packDetail);
|
||||||
if(!response || response.code != 200){
|
// if(!response || response.code != 200){
|
||||||
this.isDoing=false;
|
// this.isDoing=false;
|
||||||
this.$modal.msgError(response && response.msg || '组批次明细新增失败')
|
// this.$modal.msgError(response && response.msg || '组批次明细新增失败')
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
this.waitPackList=[];
|
this.waitPackList=[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1091,14 +1081,21 @@ export default {
|
|||||||
remark:"",
|
remark:"",
|
||||||
tenantId:"",
|
tenantId:"",
|
||||||
}
|
}
|
||||||
let resLD = await addEmisTmsSiteBatchLoading(batchLoadingData);
|
this.form.loadingList.push(batchLoadingData);
|
||||||
if(!resLD || resLD.code != 200){
|
// let resLD = await addEmisTmsSiteBatchLoading(batchLoadingData);
|
||||||
|
// if(!resLD || resLD.code != 200){
|
||||||
|
// this.isDoing=false;
|
||||||
|
// this.$modal.msgError(resLD && resLD.msg || '组批次配载明细新增失败')
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let response = await addAllEmisTmsSiteBatch(this.form);
|
||||||
|
if(!response || response.code != 200){
|
||||||
this.isDoing=false;
|
this.isDoing=false;
|
||||||
this.$modal.msgError(resLD && resLD.msg || '组批次配载明细新增失败')
|
this.$modal.msgError(response && response.msg || '新增组批次失败')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 批次重算
|
// 批次重算
|
||||||
try{
|
try{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user