瀏覽代碼

修改bug

qukaidi 3 年之前
父節點
當前提交
68aaaec6ae

+ 5 - 1
src/views/saleLeads/detail.vue

@@ -34,7 +34,7 @@
     <div class="customer-main">
       <trade-card title="基础信息">
         <avue-form ref="form" class="trading-form" v-model="form" :option="option">
-          <template slot-scope="{}" slot="corpNameLabel">
+          <template slot-scope="{}" slot="corpNameLabel" v-if="permission.saleLeadskh_add">
             <span style="color: #409EFF;cursor: pointer" @click.stop="khEdit">客户名称:</span>
           </template>
           <template slot-scope="{row,index}" slot="corpName">
@@ -120,6 +120,7 @@
 
 <script>
 import tableOption from "./config/customerContact.json";
+import { mapGetters } from "vuex";
 import {
   isDiscount,
   isPercentage,
@@ -369,6 +370,9 @@ export default {
       return num ? Number(num).toFixed(2) : "0.00";
     }
   },
+  computed: {
+    ...mapGetters(["permission"]),
+  },
   methods: {
     openCheckDialog() {
       this.checkData = this.detailData.check

+ 8 - 0
src/views/workManagement/service-items/configuration/projectOption.json

@@ -5,6 +5,7 @@
   "index": true,
   "lazy": true,
   "tip": false,
+  "addBtn": false,
   "searchShow": true,
   "searchMenuPosition": "right",
   "searchMenuSpan": 12,
@@ -132,6 +133,13 @@
       "addDisplay": false,
       "index": 10,
       "width": 150
+    },
+    {
+      "label": "提成比例",
+      "overHidden": true,
+      "prop": "commission",
+      "index": 11,
+      "width": 80
     }
   ]
 }