chenrui 4 سال پیش
والد
کامیت
9a403d39ef
2فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 2 0
      src/views/basicData/warehouse/list.vue
  2. 3 0
      src/views/basicData/warehouse/storingLocation/list.vue

+ 2 - 0
src/views/basicData/warehouse/list.vue

@@ -42,12 +42,14 @@
           size="small"
           size="small"
           type="link"
           type="link"
           class="button-info"
           class="button-info"
+          v-if="record.defaultFlag!='1'"
           @click="handleEdit(record)"
           @click="handleEdit(record)"
           id="warehouseList-edit-btn">编辑</a-button>
           id="warehouseList-edit-btn">编辑</a-button>
         <a-button
         <a-button
           size="small"
           size="small"
           type="link"
           type="link"
           class="button-error"
           class="button-error"
+          v-if="record.defaultFlag!='1'"
           @click="handleDel(record)"
           @click="handleDel(record)"
           id="warehouseList-del-btn">删除</a-button>
           id="warehouseList-del-btn">删除</a-button>
       </template>
       </template>

+ 3 - 0
src/views/basicData/warehouse/storingLocation/list.vue

@@ -39,14 +39,17 @@
             size="small"
             size="small"
             type="link"
             type="link"
             class="button-info"
             class="button-info"
+            v-if="record.defaultFlag!='1'"
             @click="handleEdit(record)"
             @click="handleEdit(record)"
             id="storingLocationList-edit-btn">编辑</a-button>
             id="storingLocationList-edit-btn">编辑</a-button>
           <a-button
           <a-button
             size="small"
             size="small"
             type="link"
             type="link"
             class="button-error"
             class="button-error"
+            v-if="record.defaultFlag!='1'"
             @click="handleDel(record)"
             @click="handleDel(record)"
             id="storingLocationList-del-btn">删除</a-button>
             id="storingLocationList-del-btn">删除</a-button>
+          <span v-if="record.defaultFlag=='1'">--</span>
         </template>
         </template>
       </s-table>
       </s-table>
     </a-card>
     </a-card>