diff --git a/src/views/modules/purchase-return/purchaseReturnDetail.vue b/src/views/modules/purchase-return/purchaseReturnDetail.vue index 7d86bea..08e9b21 100644 --- a/src/views/modules/purchase-return/purchaseReturnDetail.vue +++ b/src/views/modules/purchase-return/purchaseReturnDetail.vue @@ -211,6 +211,7 @@ export default { relatedNo: '', relatedLineNo: '', buNo: '', + partNo: '', showMaterialDialog: false, materialList: [], materialListLoading: false, @@ -432,6 +433,7 @@ export default { buNo: this.buNo, warehouseId: getCurrentWarehouse(), site: localStorage.getItem('site'), + partNo: this.partNo }; getReturnDetails(params).then(({ data }) => { @@ -484,7 +486,8 @@ export default { this.buNo = this.$route.params.buNo; this.relatedNo = this.$route.params.relatedNo || ''; this.relatedLineNo = this.$route.params.relatedLineNo || ''; - + this.partNo = this.$route.params.partNo || ''; + if (!this.returnNo || !this.buNo) { this.$message.error('参数错误'); this.$router.back();