From 35128c8d73a811b70f68af27d8333a49bef71cc5 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Mon, 20 Mar 2023 16:00:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E7=B1=BB=E5=9E=8B=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/busType/bussinessType.vue | 42 +++++- .../basic/busType/bussinessTypeModify.vue | 129 ++++++++++++------ 2 files changed, 129 insertions(+), 42 deletions(-) diff --git a/src/views/basic/busType/bussinessType.vue b/src/views/basic/busType/bussinessType.vue index c9f2902..310e3d0 100644 --- a/src/views/basic/busType/bussinessType.vue +++ b/src/views/basic/busType/bussinessType.vue @@ -222,6 +222,7 @@ export default { vailDispatch: null, vailGroupBuy: null, inStock: null, + actionType: null, }, enableMap: { true: "是", @@ -299,6 +300,22 @@ export default { this.$message.error("出入库类型不能为空!"); return; } + if (isBlank(this.inputQuery.name)) { + this.$message.error("单据类型名称不能为空!"); + return; + } + if (isBlank(this.inputQuery.actionType)) { + this.$message.error("请选择单据类型!"); + return; + } + if (isBlank(this.inputQuery.inStock)) { + this.$message.error("请选择是否更改库存!"); + return; + } + if (isBlank(this.inputQuery.busType)) { + this.$message.error("请选择特定页面!"); + return; + } insertBusType(this.inputQuery) .then((response) => { if (response.code == 20000) { @@ -315,14 +332,32 @@ export default { }, onModifySubmit() { - if (this.inputQuery.name == "" || this.inputQuery.name == null) { - this.$message.error("单据类型不能为空!"); + + if (isBlank(this.inputQuery.name)) { + this.$message.error("单据类型名称不能为空!"); return; } if (this.inputQuery.mainAction == "" || this.inputQuery.mainAction == null) { this.$message.error("出入库类型不能为空!"); return; } + if (isBlank(this.inputQuery.name)) { + this.$message.error("单据类型名称不能为空!"); + return; + } + if (isBlank(this.inputQuery.actionType)) { + this.$message.error("请选择单据类型!"); + return; + } + if (isBlank(this.inputQuery.inStock)) { + this.$message.error("请选择是否更改库存!"); + return; + } + if (isBlank(this.inputQuery.busType)) { + this.$message.error("请选择特定页面!"); + return; + } + updateBusType(this.inputQuery) .then((response) => { if (response.code == 20000) { @@ -414,7 +449,8 @@ export default { preInBack: null, vailDispatch: null, vailGroupBuy: null, - inStock:null, + inStock: null, + actionType: null, } this.addDialogVisible = true; }, diff --git a/src/views/basic/busType/bussinessTypeModify.vue b/src/views/basic/busType/bussinessTypeModify.vue index 44d4dab..5f68b54 100644 --- a/src/views/basic/busType/bussinessTypeModify.vue +++ b/src/views/basic/busType/bussinessTypeModify.vue @@ -28,7 +28,35 @@ + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + @@ -108,18 +136,7 @@ - - - - - - - - + @@ -181,7 +198,6 @@ - -