Forráskód Böngészése

feat(details): 添加部分收货和部分驳回状态标签,更新发货按钮显示逻辑

xieyong 5 napja
szülő
commit
2fffbc3654

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

@@ -125,7 +125,8 @@
             type="primary"
             :underline="false"
             @click="receiveGoos(row, 'add')"
-            v-if="row.approvalStatus == 2 && (row.sendStatus == 1 || row.sendStatus == 8 || row.sendStatus == 7)"
+            v-if="row.approvalStatus == 2 && (row.sendStatus == 1 || row.sendStatus == 8 
+              || row.sendStatus == 7 || row.sendStatus == 9)"
           >
             收货
           </el-link>

+ 9 - 1
src/views/produce/components/outsourcing/details.vue

@@ -206,6 +206,12 @@
         <el-tag v-else-if="row.sendStatus == 7" type="success">{{
           '部分发货'
         }}</el-tag>
+        <el-tag v-else-if="row.sendStatus == 8" type="success">{{
+          '部分收货'
+        }}</el-tag>
+        <el-tag v-else-if="row.sendStatus == 9" type="success">{{
+          '部分驳回'
+        }}</el-tag>
       </template>
 
       <template v-slot:approvalStatus="{ row }">
@@ -267,7 +273,9 @@
           :underline="false"
           @click="sendGoods(row, 'add')"
           v-if="
-            row.approvalStatus == 2 && (row.sendStatus == 0 || !row.sendStatus || row.sendStatus == 7)
+            row.approvalStatus == 2 && (row.sendStatus == 0 || !row.sendStatus || row.sendStatus == 7
+              || row.sendStatus == 8 || row.sendStatus == 9
+            )
           "
         >
           发货