diff --git a/pages/goodSource/add.vue b/pages/goodSource/add.vue index 94da56b..8c73c8a 100644 --- a/pages/goodSource/add.vue +++ b/pages/goodSource/add.vue @@ -322,6 +322,7 @@ export default { title: '货物名称', label: 'name', value: '', + params: `{"projectCode":"${this.form.projectCode}"}`, })}`, }); }, diff --git a/pages/order/goods-info.vue b/pages/order/goods-info.vue index 7e8d3c0..c41b139 100644 --- a/pages/order/goods-info.vue +++ b/pages/order/goods-info.vue @@ -91,6 +91,17 @@ export default { }); }, onSubmit() { + if (this.ningXiaYouZhengFlag) { + if (!this.form.dispatchUnit) { + return uni.showToast({ title: '发货单位不能为空', icon: 'none' }); + } + if (!this.form.customerContractNo) { + return uni.showToast({ title: '合同号不能为空', icon: 'none' }); + } + if (!this.form.transportShiftNo) { + return uni.showToast({ title: '运输班次号不能为空', icon: 'none' }); + } + } this.getOpenerEventChannel().emit('submitData', this.form); // setTimeout(() => uni.navigateBack(), 500); }, -- libgit2 0.21.0