Commit 1275108f36353939d2d181eb15b7bdb15aede8af
1 parent
a312c8f2
Exists in
master
and in
1 other branch
fix: 宁夏邮政定制
Showing
2 changed files
with
12 additions
and
0 deletions
Show diff stats
pages/goodSource/add.vue
pages/order/goods-info.vue
| @@ -91,6 +91,17 @@ export default { | @@ -91,6 +91,17 @@ export default { | ||
| 91 | }); | 91 | }); |
| 92 | }, | 92 | }, |
| 93 | onSubmit() { | 93 | onSubmit() { |
| 94 | + if (this.ningXiaYouZhengFlag) { | ||
| 95 | + if (!this.form.dispatchUnit) { | ||
| 96 | + return uni.showToast({ title: '发货单位不能为空', icon: 'none' }); | ||
| 97 | + } | ||
| 98 | + if (!this.form.customerContractNo) { | ||
| 99 | + return uni.showToast({ title: '合同号不能为空', icon: 'none' }); | ||
| 100 | + } | ||
| 101 | + if (!this.form.transportShiftNo) { | ||
| 102 | + return uni.showToast({ title: '运输班次号不能为空', icon: 'none' }); | ||
| 103 | + } | ||
| 104 | + } | ||
| 94 | this.getOpenerEventChannel().emit('submitData', this.form); | 105 | this.getOpenerEventChannel().emit('submitData', this.form); |
| 95 | // setTimeout(() => uni.navigateBack(), 500); | 106 | // setTimeout(() => uni.navigateBack(), 500); |
| 96 | }, | 107 | }, |