Răsfoiți Sursa

fix(销售出库): 添加isEdit属性控制添加和删除按钮的显示

yusheng 7 luni în urmă
părinte
comite
51c1ae63b9

+ 1 - 0
src/views/bpm/handleTask/components/saleOrder/invoice/detailDialog.vue

@@ -177,6 +177,7 @@
         :saleProductList="form.productList"
         type="销售发货出库"
         v-if="!isView && taskDefinitionKey == 'storemanApprove' && form.docNo"
+        :isEdit="false"
       ></add>
     </keep-alive>
     <detailDialog

+ 7 - 2
src/views/bpm/outgoingManagement/outbound.vue

@@ -167,6 +167,7 @@
           style="margin-bottom: 20px; float: right; margin-right: 20px"
           type="primary"
           @click="addStock"
+          v-if="isEdit"
           >添加</el-button
         >
       </div>
@@ -333,7 +334,10 @@
               <el-table-column label="操作" width="120" align="center">
                 <template slot="header" slot-scope="scope"> 操作 </template>
                 <template slot-scope="{ row, $index }">
-                  <el-link type="danger" @click="deleteProductList(row, $index)"
+                  <el-link
+                    type="danger"
+                    @click="deleteProductList(row, $index)"
+                    v-if="isEdit"
                     >删除</el-link
                   >
                 </template>
@@ -554,7 +558,8 @@
       detailList: { type: Array, default: () => [] },
       saleProductList: { type: Array, default: () => [] },
       extractedList: { type: Array, default: () => [] },
-      wwType: { type: Number, default: null }
+      wwType: { type: Number, default: null },
+      isEdit: { type: Boolean, default: true } //是否可编辑
     },
     directives: {
       'el-table-infinite-scroll': elTableInfiniteScroll