xiaodai2022 2 سال پیش
والد
کامیت
6d41bde271

+ 1 - 1
src/views/youzan/othGoodLog/index.vue

@@ -136,7 +136,7 @@ export default {
       msg_typeList: [
         { id: "1", label: "商品上架", type: "success" },
         { id: "2", label: "商品下架", type: "primary" },
-        { id: "3", label: "生成订单", type: "info" },
+        // { id: "3", label: "生成订单", type: "info" },
         { id: "4", label: "商品删除", type: "danger" },
         { id: "5", label: "商品编辑", type: "warning" },
       ],

+ 4 - 4
src/views/youzan/othsearchSort/addEditRate.vue

@@ -44,7 +44,7 @@
                 maxlength="50"
               />
             </el-form-item>
-            <el-form-item label="预算→成本" prop="order_rate">
+            <!-- <el-form-item label="预算→成本" prop="order_rate">
               <digital-input
                 :values="ruleForm.order_rate"
                 :placeholder="'预算→成本'"
@@ -57,7 +57,7 @@
                 :append="'%'"
                 @reschange="rate_change($event, 'order_rate')"
               />
-            </el-form-item>
+            </el-form-item> -->
             <el-form-item label="成本→售价" prop="sale_rate">
               <digital-input
                 :values="ruleForm.sale_rate"
@@ -73,7 +73,7 @@
               />
             </el-form-item>
 
-            <el-form-item label="主管利率" prop="rate">
+            <!-- <el-form-item label="主管利率" prop="rate">
               <digital-input
                 :values="ruleForm.rate"
                 :placeholder="'主管利率'"
@@ -114,7 +114,7 @@
                 :append="'%'"
                 @reschange="rate_change($event, 'low_rate')"
               />
-            </el-form-item>
+            </el-form-item> -->
             <!-- <el-form-item label="BOSS毛利率" prop="lower_rate">
               <digital-input
                 :values="ruleForm.lower_rate"

+ 81 - 21
src/views/youzan/othsearchSort/index.vue

@@ -122,6 +122,61 @@
           "
         ></el-tag>
       </template>
+      <template #order_rate="{ scope }">
+        <div>
+          {{
+            private_field &&
+            private_field.length > 0 &&
+            private_field.some((item) => item == "3")
+              ? scope.row.order_rate
+              : "****"
+          }}
+        </div>
+      </template>
+      <template #sale_rate="{ scope }">
+        <div>
+          {{
+            private_field &&
+            private_field.length > 0 &&
+            private_field.some((item) => item == "3")
+              ? scope.row.sale_rate
+              : "****"
+          }}
+        </div>
+      </template>
+      <template #rate="{ scope }">
+        <div>
+          {{
+            private_field &&
+            private_field.length > 0 &&
+            private_field.some((item) => item == "3")
+              ? scope.row.rate
+              : "****"
+          }}
+        </div>
+      </template>
+      <template #money_rate="{ scope }">
+        <div>
+          {{
+            private_field &&
+            private_field.length > 0 &&
+            private_field.some((item) => item == "3")
+              ? scope.row.money_rate
+              : "****"
+          }}
+        </div>
+      </template>
+      <template #low_rate="{ scope }">
+        <div>
+          {{
+            private_field &&
+            private_field.length > 0 &&
+            private_field.some((item) => item == "3")
+              ? scope.row.low_rate
+              : "****"
+          }}
+        </div>
+      </template>
 
       <template #operation="{ scope }">
         <el-tooltip
@@ -171,7 +226,7 @@ export default {
   },
   computed: {
     //组件SIZE设置
-    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
+    ...mapGetters(["tablebtnSize", "searchSize", "size", "private_field"]),
     powers() {
       let tran =
         this.$store.getters.btnList.find((item) => item.menu_route == "othsearchSort") ||
@@ -254,31 +309,36 @@ export default {
           width: "150px",
         },
 
-        {
-          prop: "order_rate",
-          label: "预算→成本",
-          width: "90px",
-        },
+        // {
+        //   prop: "order_rate",
+        //   label: "预算→成本",
+        //   _slot_: "order_rate",
+        //   width: "90px",
+        // },
         {
           prop: "sale_rate",
           label: "成本→售价",
+          _slot_: "sale_rate",
           width: "90px",
         },
-        {
-          prop: "rate",
-          label: "主管利率",
-          width: "90px",
-        },
-        {
-          prop: "money_rate",
-          label: "财务利率",
-          width: "90px",
-        },
-        {
-          prop: "low_rate",
-          label: "项目毛利",
-          width: "90px",
-        },
+        // {
+        //   prop: "rate",
+        //   label: "主管利率",
+        //   _slot_: "rate",
+        //   width: "90px",
+        // },
+        // {
+        //   prop: "money_rate",
+        //   label: "财务利率",
+        //   _slot_: "money_rate",
+        //   width: "90px",
+        // },
+        // {
+        //   prop: "low_rate",
+        //   label: "项目毛利",
+        //   _slot_: "low_rate",
+        //   width: "90px",
+        // },
         {
           prop: "creater",
           label: "创建人",