Jelajahi Sumber

feat: 简化发货和收货详情按钮显示逻辑,仅依赖审批状态

xieyong 1 bulan lalu
induk
melakukan
0b0959d3f8
2 mengubah file dengan 4 tambahan dan 16 penghapusan
  1. 2 9
      src/views/beEntrusted/index.vue
  2. 2 7
      src/views/entrust/index.vue

+ 2 - 9
src/views/beEntrusted/index.vue

@@ -109,10 +109,7 @@
             type="primary"
             :underline="false"
             @click="receiveGoos(row, 'send')"
-            v-if="
-              row.approvalStatus == 2 &&
-              (row.sendStatus == 3 || row.sendStatus == 4 || row.sendStatus == 10 || row.sendOutQuantity > 0)
-            "
+            v-if="row.approvalStatus == 2"
           >
             发货详情
           </el-link>
@@ -121,11 +118,7 @@
             type="primary"
             :underline="false"
             @click="receiveGoos(row, 'detail')"
-            v-if="
-              row.approvalStatus == 2 &&
-              row.sendStatus != 1 &&
-              row.sendStatus != 5
-            "
+            v-if="row.approvalStatus == 2"
           >
             收货详情
           </el-link>

+ 2 - 7
src/views/entrust/index.vue

@@ -139,7 +139,7 @@
             type="primary"
             :underline="false"
             @click="sendGoods(row, 'receipt')"
-            v-if="row.approvalStatus == 2 && (row.sendStatus == 4 || row.sendStatus == 11)"
+            v-if="row.approvalStatus == 2"
           >
             收货详情
           </el-link>
@@ -148,12 +148,7 @@
             type="primary"
             :underline="false"
             @click="sendGoods(row, 'detail')"
-            v-if="
-              row.approvalStatus == 2 &&
-              row.sendStatus != 0 &&
-              row.sendStatus &&
-              row.sendStatus != 5
-            "
+            v-if="row.approvalStatus == 2"
           >
             发货详情
           </el-link>