diff --git a/src/views/emis/emisTmsSiteBatch/panel/BigBatchEditForm.vue b/src/views/emis/emisTmsSiteBatch/panel/BigBatchEditForm.vue
index 312bb20f..eee3a587 100644
--- a/src/views/emis/emisTmsSiteBatch/panel/BigBatchEditForm.vue
+++ b/src/views/emis/emisTmsSiteBatch/panel/BigBatchEditForm.vue
@@ -331,7 +331,7 @@
- 保存批次
+ 保存批次
取 消
@@ -347,7 +347,7 @@
@@ -1009,14 +1009,14 @@ export default {
return;
}
- // this.form.etd = parseTime(this.form.carTime, '{y}-{m}-{d} {h}:{i}:{s}');
-
// 新增
if(this.coPackType == "add")
{
+ this.isDoing=true;
let response = await addEmisTmsSiteBatch(this.form);
if(!response || response.code != 200){
+ this.isDoing=false;
this.$modal.msgError(response && response.msg || '新增组批次失败')
return;
}
@@ -1034,6 +1034,7 @@ export default {
let response = await addEmisTmsSiteBatchDtl(packDetail);
if(!response || response.code != 200){
+ this.isDoing=false;
this.$modal.msgError(response && response.msg || '组批次明细新增失败')
return;
}
@@ -1055,15 +1056,24 @@ export default {
}
let resLD = await addEmisTmsSiteBatchLoading(batchLoadingData);
if(!resLD || resLD.code != 200){
+ this.isDoing=false;
this.$modal.msgError(resLD && resLD.msg || '组批次配载明细新增失败')
return;
}
}
}
+
+ this.isDoing=false;
+
}
- else if(this.coPackType == "edit"){// 修改
+ else if(this.coPackType == "edit"){
+ // 修改
+
+ this.isDoing=true;
+
let res = await updateEmisTmsSiteBatch(this.form);
if(!res || res.code != 200){
+ this.isDoing=false;
this.$modal.msgError(res && res.msg || '未知错误')
return;
}
@@ -1078,6 +1088,7 @@ export default {
}
let resLD = await updateEmisTmsSiteBatchLoading(batchLoadingData);
if(!resLD || resLD.code != 200){
+ this.isDoing=false;
this.$modal.msgError(resLD && resLD.msg || '组批次配载明细新增失败')
return;
}
@@ -1085,6 +1096,7 @@ export default {
}
}
}
+ this.isDoing=false;
this.$modal.msgSuccess('操作成功!');
this.$emit("on-changed");
@@ -1267,7 +1279,8 @@ export default {
afterList.push(this.tempExistCoPackWayBillList[ai]);
}
}
- this.tempExistCoPackWayBillList = afterList;//this.tempExistCoPackWayBillList.filter(item => {idsArrTemp.indexOf(item.id) == -1})
+ this.tempExistCoPackWayBillList = afterList;
+ //this.tempExistCoPackWayBillList.filter(item => {idsArrTemp.indexOf(item.id) == -1})
this.computeTotal();
// 更新主表