戴艳蓉 %!s(int64=3) %!d(string=hai) anos
pai
achega
0caf532c1e

+ 6 - 0
src/assets/js/btnList.js

@@ -54,5 +54,11 @@ const btnList = [
   { code: "053", name: "修改成本信息" },
   { code: "054", name: "修改基础信息" },
   { code: "055", name: "添加商品上线" },
+  { code: "056", name: "产品部审批" },
+  { code: "057", name: "采购部定价" },
+  { code: "058", name: "财务定价" },
+  { code: "059", name: "财务审核定价" },
+  
+  
 ];
 export default btnList;

+ 11 - 1
src/views/goodStore/active/components/baseForm.vue

@@ -108,7 +108,17 @@
             />
           </el-form-item>
         </el-col>
-        <el-col :span="24" v-if="status !== '1'">
+        <el-col
+          :span="24"
+          v-if="
+            status == '' ||
+            status == '4' ||
+            (status === '0' && powers.some((item) => item !== '056')) ||
+            (status === '1' && powers.some((item) => item !== '057')) ||
+            (status === '2' && powers.some((item) => item !== '058')) ||
+            (status === '3' && powers.some((item) => item !== '059'))
+          "
+        >
           <el-form-item
             label="活动商品"
             :label-position="'top'"

+ 7 - 7
src/views/goodStore/active/detail.vue

@@ -31,7 +31,7 @@
             <el-collapse-item
               title="产品部门审批"
               name="1"
-              v-if="status == '0'"
+              v-if="status == '0'&&powers.some((item) => item == '056')"
             >
               <exam-form
                 :statusList="statusList"
@@ -42,9 +42,9 @@
               />
             </el-collapse-item>
             <el-collapse-item
-              title="采购部定价"
+              title="采购部定价"
               name="2"
-              v-if="status == '1'"
+              v-if="status == '1'&&powers.some((item) => item == '057')"
             >
               <finance-exam-one-form
                 v-if="newTime !== ''"
@@ -57,9 +57,9 @@
             </el-collapse-item>
 
             <el-collapse-item
-              title="财务定活动价"
+              title="财务定价"
               name="3"
-              v-if="status == '2'"
+              v-if="status == '2'&&powers.some((item) => item == '058')"
             >
               <finance-exam-two-form
                 v-if="newTime !== ''"
@@ -72,9 +72,9 @@
             </el-collapse-item>
 
             <el-collapse-item
-              title="财务定活动价"
+              title="财务审核定价"
               name="4"
-              v-if="status == '3'"
+              v-if="status == '3'&&powers.some((item) => item == '059')"
             >
               <finance-exam-three-form
                 v-if="newTime !== ''"