From b84e3dc1a6392cc33b85c82fe2803dd42bb963b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Fri, 9 Jun 2023 17:52:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/product/udiInfoManageSp.vue | 4 ++++ src/views/inout/DialogCreateOrder.vue | 24 +++++++++++++++++++ src/views/inout/DialogEditCode.vue | 20 ++++++++-------- .../inout/muti/ioOrderMutiEditDialog.vue | 4 ++++ src/views/inventory/InvProducts.vue | 6 ++++- 5 files changed, 47 insertions(+), 11 deletions(-) diff --git a/src/views/basic/product/udiInfoManageSp.vue b/src/views/basic/product/udiInfoManageSp.vue index db8fd27e..cffe0252 100644 --- a/src/views/basic/product/udiInfoManageSp.vue +++ b/src/views/basic/product/udiInfoManageSp.vue @@ -495,6 +495,10 @@ export default { selectData.forEach((row) => { postQuery.ids.push(row.rlId); }); + if(postQuery.ids.length<=0){ + this.$message.error("请先选择供应商!"); + return + } lockStatus(postQuery) .then((response) => { if (response.code == 20000) { diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index 2a55d89d..02f27e04 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -1183,6 +1183,30 @@ export default { }, submit(val) { + if(this.$isBlank(this.orderFormData.action)){ + this.$message.warning("单据类型不能为空!"); + return + } + if (this.curAction.corpType === 0 || this.curAction.corpType === 2 || (this.curAction.corpType === 1 && !this.curAction.genUnit)) { + if (this.$isBlank(this.orderFormData.fromCorp)) { + this.$message.warning("请选择往来单位!"); + return; + } + } + if (this.curAction.corpType == 3) { + if (this.$isBlank(this.orderFormData.fromInvCode)) { + this.$message.warning("请选择往来单位!"); + return; + } + } + if (this.curAction.corpType === 1 && this.curAction.genUnit) { + if (this.$isBlank(this.orderFormData.fromCorp)) { + this.$message.warning("请选择往来单位!"); + return; + } + } + + let tQuery = Object.assign( JSON.parse(JSON.stringify(this.orderFormData)) ); diff --git a/src/views/inout/DialogEditCode.vue b/src/views/inout/DialogEditCode.vue index 4b68fe74..01a8262b 100644 --- a/src/views/inout/DialogEditCode.vue +++ b/src/views/inout/DialogEditCode.vue @@ -110,16 +110,16 @@ export default { if (this.editType == 1) { this.repeatAddCode(this.editData); - tabCode(this.editData) - .then((response) => { - console.log(response) - if (response.code === 20000) { - this.$message.success("提交成功"); - } else { - this.$message.error(response.message); - } - this.loading = false; - }); + // tabCode(this.editData) + // .then((response) => { + // console.log(response) + // if (response.code === 20000) { + // this.$message.success("提交成功"); + // } else { + // this.$message.error(response.message); + // } + // this.loading = false; + // }); } else { saveCode(this.editData) diff --git a/src/views/inout/muti/ioOrderMutiEditDialog.vue b/src/views/inout/muti/ioOrderMutiEditDialog.vue index 02550a9d..6f19adb1 100644 --- a/src/views/inout/muti/ioOrderMutiEditDialog.vue +++ b/src/views/inout/muti/ioOrderMutiEditDialog.vue @@ -309,6 +309,10 @@ export default { this.$message.error("往来单位不能为空!"); return } + if(this.$isBlank(this.inputQuery.mark)){ + this.$message.error("标记不能为空!"); + return + } if (this.inputQuery.fromCorp != 'true' && this.inputQuery.fromCorp != 'false') { var query = { diff --git a/src/views/inventory/InvProducts.vue b/src/views/inventory/InvProducts.vue index eb1cc01a..98674804 100644 --- a/src/views/inventory/InvProducts.vue +++ b/src/views/inventory/InvProducts.vue @@ -392,7 +392,6 @@ export default { } }, detailDialog(row) { - this.detailDialogVisible = true; this.inputQuery = { code: row.code, relId: row.relIdFk, @@ -407,6 +406,11 @@ export default { invCode: row.invCode, invSpaceCode: row.invSpaceCode } + if(this.$isBlank(this.filterQuery.invCode)){ + this.inputQuery.deptCode = ''; + this.inputQuery.invCode = ''; + } + this.detailDialogVisible = true; }, closeDetailDialog() { this.detailDialogVisible = false;