Browse Source

福达销售和报价里面根据贸易角色隐藏列 2024-2-01

caojunjie 1 year ago
parent
commit
61811f3008

+ 8 - 7
src/components/price-Library/configuration/mainList.json

@@ -13,21 +13,22 @@
   "menuWidth": "180",
   "selection": true,
   "tip": false,
-  "column": [{
-      "label": "商品编号",
-      "prop": "code",
+  "column": [
+    {
+      "label": "商品名称",
       "search": true,
       "searchSpan": 8,
-      "index": 1,
+      "prop": "cname",
+      "index": 3,
       "width": 100,
       "overHidden": true
     },
     {
-      "label": "商品名称",
+      "label": "商品编号",
+      "prop": "code",
       "search": true,
       "searchSpan": 8,
-      "prop": "cname",
-      "index": 3,
+      "index": 1,
       "width": 100,
       "overHidden": true
     },

+ 2 - 0
src/components/price-Library/main.vue

@@ -138,6 +138,8 @@ export default {
       // this.treeData = res.data.data.records;
     });
     if (localStorage.getItem("roleName") == "贸易") {
+      this.findObject(this.tableOption.column, "purchaseAmount").hide = true;
+      this.findObject(this.tableOption.column, "purchaseAmount").showColumn = false;
       this.findObject(this.tableOption.column, "taxRate").hide = true;
       this.findObject(this.tableOption.column, "taxRate").showColumn = false;
       this.findObject(this.tableOption.column, "price").hide = true;

+ 0 - 3
src/views/exportTrade/salesContract/config/customerContact.json

@@ -294,7 +294,6 @@
       "span": 6,
       "disabled": true,
       "display": false,
-      "hide": true,
       "overHidden": true
     },
     {
@@ -306,7 +305,6 @@
       "span": 6,
       "disabled": true,
       "display": false,
-      "hide": true,
       "overHidden": true
     },
     {
@@ -318,7 +316,6 @@
       "span": 6,
       "disabled": true,
       "display": false,
-      "hide": true,
       "overHidden": true
     },
     {