From b0b67d7bed73b78007d4c853078997abf797297f Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 17 Jul 2024 15:11:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=87=87=E8=B4=AD=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E3=80=81=E9=87=87=E8=B4=AD=E9=80=80=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue | 4 ++++ .../src/views/purchase/purchasereturn/purchasereturnAdd.vue | 4 ++++ yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue | 4 ++++ .../views/workFlow/caigoutuihuoFlow/purchasereturnEdit.vue | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue b/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue index e2e60587a2..c25822ecb2 100644 --- a/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue +++ b/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue @@ -638,6 +638,10 @@ export default { submit() { this.$refs['form_obj'].validate((valid) => { if (valid) { + if (this.formobj.pmsPurchaseBillDetailList.length === 0) { + this.$message({ showClose: true, type: 'error', message: '商品列表不能为空' }) + return + } this.submitdisabled = true this.formobj.payableAmount = this.yfTotal this.formobj.purchasePay.goodsMoney = this.calculateGoodsMoney diff --git a/yxt-as-ui/src/views/purchase/purchasereturn/purchasereturnAdd.vue b/yxt-as-ui/src/views/purchase/purchasereturn/purchasereturnAdd.vue index a421ce5a48..04aeb5051f 100644 --- a/yxt-as-ui/src/views/purchase/purchasereturn/purchasereturnAdd.vue +++ b/yxt-as-ui/src/views/purchase/purchasereturn/purchasereturnAdd.vue @@ -423,6 +423,10 @@ export default { submit() { this.$refs['form_obj'].validate((valid) => { if (valid) { + if (this.formobj.pmsPurchasebackDetailList.length === 0) { + this.$message({ showClose: true, type: 'error', message: '商品列表不能为空' }) + return + } this.submitdisabled = true this.formobj.receivableAmount = this.ysTotal req.submit(this.formobj).then((res) => { diff --git a/yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue b/yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue index 0383f68bf5..a973aedae5 100644 --- a/yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue +++ b/yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue @@ -636,6 +636,10 @@ export default { submit() { this.$refs['form_obj'].validate((valid) => { if (valid) { + if (this.formobj.pmsPurchaseBillDetailList.length === 0) { + this.$message({ showClose: true, type: 'error', message: '商品列表不能为空' }) + return + } this.submitdisabled = true this.formobj.payableAmount = this.yfTotal this.formobj.purchasePay.goodsMoney = this.calculateGoodsMoney diff --git a/yxt-as-ui/src/views/workFlow/caigoutuihuoFlow/purchasereturnEdit.vue b/yxt-as-ui/src/views/workFlow/caigoutuihuoFlow/purchasereturnEdit.vue index 26e65c18a1..176433237a 100644 --- a/yxt-as-ui/src/views/workFlow/caigoutuihuoFlow/purchasereturnEdit.vue +++ b/yxt-as-ui/src/views/workFlow/caigoutuihuoFlow/purchasereturnEdit.vue @@ -417,6 +417,10 @@ export default { submit() { this.$refs['form_obj'].validate((valid) => { if (valid) { + if (this.formobj.pmsPurchasebackDetailList.length === 0) { + this.$message({ showClose: true, type: 'error', message: '商品列表不能为空' }) + return + } this.submitdisabled = true this.formobj.receivableAmount = this.ysTotal req.submit(this.formobj).then((res) => {