simple 4 лет назад
Родитель
Сommit
144e1af9ed

+ 5 - 4
src/page/baseInfo/components/supply/supplyEdit.vue

@@ -286,7 +286,7 @@
       <Card :bordered="false" :dis-hover="true">
         <Tabs :animated="false" v-model="tabs">
           <span slot="extra">
-            <Button v-if="tabs == '2'" type="primary" @click="addXzbj">新增报价</Button>
+            <Button v-if="buttonShow.addPrice && tabs == '2'" type="primary" @click="addXzbj">新增报价</Button>
             <!-- <Button v-if="tabs == '3'" type="primary" @click="yrryShow = true">引入员工</Button> -->
             <Button v-if="tabs == '3'&& canEdit" type="primary" @click="addXzry">新增联系人</Button>
             <Button v-if="tabs == '4'&& canEdit" type="primary" @click="addXzyhzh">新增账号</Button>
@@ -313,8 +313,8 @@
             >
               <template slot-scope="{ row, index }" slot="action">
                 <div>
-                  <a href="javascript:;" @click="editBj(row)">编辑</a>
-                  <a href="javascript:;" @click="deleteBj(row)">删除</a>
+                  <a href="javascript:;" v-if="buttonShow.editPrice" @click="editBj(row)">编辑</a>
+                  <a href="javascript:;" v-if="buttonShow.deletePrice" @click="deleteBj(row)">删除</a>
                 </div>
               </template>
             </Table>
@@ -578,7 +578,8 @@ export default {
     "gyspjList",
     "ssqyList",
     "fgcgyList",
-    "canBeEdit"
+    "canBeEdit",
+    "buttonShow"
   ],
   watch: {
     canBeEdit(val) {

+ 1 - 0
src/page/baseInfo/supply.vue

@@ -109,6 +109,7 @@
     />
     <supplyEdit
       ref="edit"
+      :buttonShow="buttonShow"
       :ssqyList="ssqyList"
       :gysflList="gysflList"
       :gyspjList="gyspjList"