Jelajahi Sumber

汽保产品厂家

caojunjie 1 tahun lalu
induk
melakukan
659afe3c30
2 mengubah file dengan 13 tambahan dan 9 penghapusan
  1. 4 4
      src/views/product/index.vue
  2. 9 5
      src/views/product/js/optionList.js

+ 4 - 4
src/views/product/index.vue

@@ -223,10 +223,10 @@ export default {
         getListpp().then(res=>{
             this.findObject(this.option.column, "brand").dicData = res.data.data.records
         })
-        // 获取供应商厂家数据
-        GYSgetList(1,20, {corpType:'GYS'}).then(res=>{
-            this.findObject(this.option.column, "corpId").dicData = res.data.data.records
-        })
+        // // 获取供应商厂家数据
+        // GYSgetList(1,20, {corpType:'GYS'}).then(res=>{
+        //     this.findObject(this.option.column, "corpId").dicData = res.data.data.records
+        // })
       this.$refs.crud.init();
     },
     searchCriteriaSwitch(type) {

+ 9 - 5
src/views/product/js/optionList.js

@@ -127,11 +127,15 @@ export const option = {
       prop: "corpId",
       type: "select",
       width:200,
-      props: {
-        label: "cname",
-        value: "id"
-      },
-      dicData: [],
+      hide: true,
+      span: 6,
+      index: 13
+    },
+    {
+      label: "厂家",
+      prop: "corpName",
+      type: "select",
+      width:200,
       span: 6,
       index: 13
     },