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 @@
-
-