Explorar el Código

修改生成销售退货单显示问题

chenrui hace 2 años
padre
commit
64a35ee8f9
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      src/views/numsGoodsShelves/recallManagement/detailModal.vue

+ 6 - 2
src/views/numsGoodsShelves/recallManagement/detailModal.vue

@@ -23,7 +23,7 @@
           <span v-else>
             --
           </span>
-          <a-button type="primary" ghost class="recallBillBtn" @click="seeRecallBill" v-if="itemData.billState != 'CANCEL' && itemData.billState!='FINISH'">生成销售退货单</a-button>
+          <a-button type="primary" ghost class="recallBillBtn" @click="seeRecallBill" v-if="itemData.billState != 'CANCEL' && !isZero">生成销售退货单</a-button>
         </a-descriptions-item>
       </a-descriptions>
     </div>
@@ -147,7 +147,8 @@ export default {
         }
       }
       ],
-      shelfName: ''
+      shelfName: '',
+      isZero: false
     }
   },
   watch: {
@@ -166,6 +167,9 @@ export default {
             con.no = i + 1
           })
           this.detailList = this.itemData.detailList
+          this.isZero = this.itemData.detailList.every((item) => {
+            return item.confirmQty == 0
+          })
           this.shelfName = '调回单详情——' + this.itemData.shelfInfo.shelfName
         }
       }