|
|
@@ -1172,31 +1172,31 @@
|
|
|
UpdateSendInformation(commitData)
|
|
|
.then((res) => {
|
|
|
this.loading = false;
|
|
|
- this.$message.success('修改成功');
|
|
|
if (type === 'sub') {
|
|
|
- this.sendSubmit(res);
|
|
|
- return;
|
|
|
+ return this.sendSubmit(res);
|
|
|
}
|
|
|
+ this.$message.success('修改成功');
|
|
|
this.cancel();
|
|
|
this.$emit('done');
|
|
|
})
|
|
|
.catch((e) => {
|
|
|
- //this.loading = false;
|
|
|
+ this.loading = false;
|
|
|
+ console.error('修改发货单失败', e);
|
|
|
});
|
|
|
} else {
|
|
|
addSendInformation(commitData)
|
|
|
.then((res) => {
|
|
|
this.loading = false;
|
|
|
- this.$message.success('新增成功');
|
|
|
if (type === 'sub') {
|
|
|
- this.sendSubmit(res);
|
|
|
- return;
|
|
|
+ return this.sendSubmit(res);
|
|
|
}
|
|
|
+ this.$message.success('新增成功');
|
|
|
this.cancel();
|
|
|
this.$emit('done');
|
|
|
})
|
|
|
.catch((e) => {
|
|
|
- // this.loading = false;
|
|
|
+ this.loading = false;
|
|
|
+ console.error('新增发货单失败', e);
|
|
|
});
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -1255,11 +1255,14 @@
|
|
|
},
|
|
|
|
|
|
async specialesubmit(params) {
|
|
|
- console.log('params~~~~~~', params);
|
|
|
- await specialSubmit(params.businessId, params);
|
|
|
- this.$message('提交审核成功');
|
|
|
- this.processSubmitDialogFlag = false;
|
|
|
- this.reload();
|
|
|
+ try {
|
|
|
+ await specialSubmit(params.businessId, params);
|
|
|
+ this.$message('提交审核成功');
|
|
|
+ this.processSubmitDialogFlag = false;
|
|
|
+ this.reload();
|
|
|
+ } catch (error) {
|
|
|
+ console.error('提交发货单审核失败', error);
|
|
|
+ }
|
|
|
},
|
|
|
reload() {
|
|
|
this.cancel();
|