snow 2 years ago
parent
commit
a4903f3138

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/0.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.js


+ 1 - 1
src/store/getters.js

@@ -21,7 +21,7 @@ const getters = {
   userInfo: state => state.user.userInfo,
   roleProcess: state => state.user.roleProcess,
   currentLevel: state => state.user.currentLevel,
-  sourceLevel: state => state.user.sourceLevel,
+  originLevel: state => state.user.originLevel,
   currentCompany: state => state.user.currentCompany,
   companyList: state => state.user.companylist,
   private_field: state => {

+ 1 - 1
src/store/modules/user.js

@@ -81,7 +81,7 @@ const state = {
   userInfo: _getUserInfo(),
   isSupertube: false,
   companylist:[],
-  sourceLevel: "0",
+  originLevel: "0",
   currentLevel: "0"
 };
 

+ 5 - 3
src/views/goodStore/goodsCost/detail.vue

@@ -1,6 +1,5 @@
 <template>
   <div class="goodsCostDetail">
-    {{ private_field  }}
     <div class="goodsCostDetail-main" v-if="powers.some((i) => i == '007')">
       <el-tabs v-model="activeTabs">
         <el-tab-pane label="新建商品成本" name="0" v-if="queryType === 'add'">
@@ -96,7 +95,7 @@
               </show-data-table>
             </el-collapse-item>
 
-            <el-collapse-item title="固定与阶梯成本" name="6">
+            <el-collapse-item title="固定与阶梯成本" name="6" v-if="displayCostField">
               <show-data-table :columns="ladderColumns" :sitem="sitem">
                 <template slot="demo_fee">{{sitem.demo_fee}}元</template>
                 <template slot="open_fee">{{sitem.open_fee}}元</template>
@@ -177,7 +176,10 @@ export default {
     costForm
   },
   computed: {
-    ...mapGetters(["tablebtnSize", "searchSize", "size", "private_field"]),
+    ...mapGetters(["tablebtnSize", "searchSize", "size", "private_field", "originLevel"]),
+    displayCostField(){
+      return (["1", '3']).includes(this.originLevel) || this.private_field.includes('1')
+    },
     powers() {
       const { btnList } = this.$store.getters
       const tran = btnList.find((item) => item.menu_route == "goodsCostDetail") || {};

+ 10 - 5
src/views/serviceParam/terrace/addEdit.vue

@@ -30,7 +30,7 @@
                 <el-form-item label="平台名称" prop="platform_name">
                   <el-input
                     v-model="ruleForm.platform_name"
-                    :disabled="id == '007'"
+                    :disabled="id == '007' "
                     placeholder="平台名称"
                     maxlength="20"
                   />
@@ -41,7 +41,7 @@
                   <el-select
                     v-model="ruleForm.use_type"
                     style="width: 100%"
-                    :disabled="id == '007'"
+                    :disabled="id == '007' || isUpdate"
                     placeholder="请选择平台类型"
                     @change="set_required"
                   >
@@ -57,7 +57,7 @@
                   <el-select
                     v-model="ruleForm.platform_type"
                     style="width: 100%"
-                    :disabled="id == '007'"
+                    :disabled="id == '007' || isUpdate"
                     placeholder="请选择对接平台"
                     @change="set_required"
                   >
@@ -76,7 +76,7 @@
                   <el-select
                     v-model="ruleForm.is_pay"
                     style="width: 100%"
-                    :disabled="id == '007'"
+                    :disabled="id == '007' || isUpdate"
                     placeholder="是否开启"
                     @change="set_required"
                   >
@@ -120,6 +120,7 @@
                           :names="''"
                           :size="'mini'"
                           :is-detail="id !== 'add'"
+                          :disabled="isUpdate"
                           :placeholder="'业务公司'"
                           @searchChange="handleCompanyChange($event, scope.$index)"
                         />
@@ -268,6 +269,11 @@ export default {
       rulesThis: this.rules
     }
   },
+  computed: {
+    isUpdate() {
+      return this.id === '005'
+    }
+  },
   watch: {
     showModel: function(val) {
       this.showModelThis = val
@@ -314,7 +320,6 @@ export default {
       this.loading = true
       const platformResponse = await asyncRequest.detail({ id: this.sitem.id })
       const { platform_name, platform_type, is_select_pay_rate, use_type, pay_list, pay_title } = platformResponse.data
-
       // if (Array.isArray(pay_list) && pay_list.length > 0) {
       // const { companyNoc } = pay_list[pay_list.length - 1]
       // console.log(pay_list[pay_list.length - 1])

Some files were not shown because too many files changed in this diff