Commit 1275108f36353939d2d181eb15b7bdb15aede8af

Authored by lxf
1 parent a312c8f2

fix: 宁夏邮政定制

pages/goodSource/add.vue
@@ -322,6 +322,7 @@ export default { @@ -322,6 +322,7 @@ export default {
322 title: '货物名称', 322 title: '货物名称',
323 label: 'name', 323 label: 'name',
324 value: '', 324 value: '',
  325 + params: `{"projectCode":"${this.form.projectCode}"}`,
325 })}`, 326 })}`,
326 }); 327 });
327 }, 328 },
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 },