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

已发货数量(sendOutQuantity)<请托数量(totalCount)也显示发货按钮

xieyong 1 hónapja
szülő
commit
25aa2e47ef

+ 1 - 1
src/views/entrust/index.vue

@@ -120,7 +120,7 @@
             @click="sendGoods(row, 'add')"
             v-if="
               row.approvalStatus == 2 &&
-              (row.sendStatus == 0 || !row.sendStatus || row.sendStatus == 5 || row.sendStatus == 7 || row.sendStatus == 8 || row.sendStatus == 9)
+              (row.sendStatus == 0 || !row.sendStatus || row.sendStatus == 5 || row.sendStatus == 7 || row.sendStatus == 8 || row.sendStatus == 9 || row.totalCount > row.sendOutQuantity)
             "
           >
             发货

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

@@ -262,7 +262,7 @@
           type="primary"
           :underline="false"
           @click="sendGoods(row, 'receipt', 3)"
-          v-if="row.approvalStatus == 2 && (row.sendStatus == 3 || row.sendStatus == 10 || row.sendStatus == 11)"
+          v-if="row.approvalStatus == 2 && (row.sendStatus == 3 || row.sendStatus == 10 || row.sendStatus == 11 || row.totalCount > row.sendOutQuantity)"
         >
           收货
         </el-link>