|
@@ -23,7 +23,7 @@
|
|
<span v-else>
|
|
<span v-else>
|
|
--
|
|
--
|
|
</span>
|
|
</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-item>
|
|
</a-descriptions>
|
|
</a-descriptions>
|
|
</div>
|
|
</div>
|
|
@@ -147,7 +147,8 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- shelfName: ''
|
|
|
|
|
|
+ shelfName: '',
|
|
|
|
+ isZero: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -166,6 +167,9 @@ export default {
|
|
con.no = i + 1
|
|
con.no = i + 1
|
|
})
|
|
})
|
|
this.detailList = this.itemData.detailList
|
|
this.detailList = this.itemData.detailList
|
|
|
|
+ this.isZero = this.itemData.detailList.every((item) => {
|
|
|
|
+ return item.confirmQty == 0
|
|
|
|
+ })
|
|
this.shelfName = '调回单详情——' + this.itemData.shelfInfo.shelfName
|
|
this.shelfName = '调回单详情——' + this.itemData.shelfInfo.shelfName
|
|
}
|
|
}
|
|
}
|
|
}
|