Sfoglia il codice sorgente

修改枚举 修改取值

QuKatie 3 anni fa
parent
commit
5b4a610057

+ 3 - 3
src/components/selectComponent/customerSelect.vue

@@ -311,13 +311,13 @@ export default {
     },
     open() {
       if (this.typeData == "KH") {
-        this.corpType = customerParameter;
+        this.corpType = customerParameter.code;
       }
       if (this.typeData == "GYS") {
-        this.corpType = supplierParameter;
+        this.corpType = supplierParameter.code;
       }
       if (this.typeData == "GS") {
-        this.corpType = companyParameter;
+        this.corpType = companyParameter.code;
       }
       this.dialogVisible = true;
       let _this = this;

+ 12 - 3
src/enums/management-type.js

@@ -1,6 +1,15 @@
 //客户管理
-export const customerParameter = "KH"
+export const customerParameter = {
+  code:"KH",
+  name:"客户"
+}
 //客户管理
-export const supplierParameter = "GYS"
+export const supplierParameter = {
+  code:"GYS",
+  name:"供应商"
+}
 //客户管理
-export const companyParameter = "GS"
+export const companyParameter = {
+  code:"GS",
+  name:"公司主体"
+}