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) => {