diff --git a/mycomponents/balance/moveStatus.vue b/mycomponents/balance/moveStatus.vue index a626435b..a0c785c5 100644 --- a/mycomponents/balance/moveStatus.vue +++ b/mycomponents/balance/moveStatus.vue @@ -1,13 +1,11 @@ @@ -9,6 +12,7 @@ diff --git a/pages/customerReturn/job/returnDetail.vue b/pages/customerReturn/job/returnDetail.vue index 04b46221..93c2d3e4 100644 --- a/pages/customerReturn/job/returnDetail.vue +++ b/pages/customerReturn/job/returnDetail.vue @@ -274,12 +274,12 @@ if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if(this.jobContent.allowModifyInventoryStatus=="TRUE"){ - this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + - ']不一致,是否继续上架?', res => { + this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + + ']不一致,是否继续退货?', res => { if (res) { itemDetail.scaned = true; itemDetail.handleQty = Number(result.balance.qty) - itemDetail.toInventoryStatus = result.balance.inventoryStatus; + itemDetail.inventoryStatus = result.balance.inventoryStatus; itemDetail.balance = result.balance; itemDetail.balance.balanceQty = Number(result.balance.qty) itemDetail.balance.stdPackQty = Number(result.package.stdPackQty) @@ -403,6 +403,7 @@ detail.toContainerNumber = detail.containerNumber; detail.toBatch = info.batch; detail.toLocationCode = detail.toLocationCode; + detail.toInventoryStatus = 'HOLD'; subList.push(detail) } }) diff --git a/pages/inventoryMove/coms/comMoveJob.vue b/pages/inventoryMove/coms/comMoveJob.vue index 56b2eae6..3d878d43 100644 --- a/pages/inventoryMove/coms/comMoveJob.vue +++ b/pages/inventoryMove/coms/comMoveJob.vue @@ -200,12 +200,10 @@ that.showMessage(error) }) }, - - - + openJobDetail(item) { uni.navigateTo({ - url: './inventoryMoveDetail?id=' + item.id + '&status=' + item.status+'&titleName=' + this.titleName + url: './inventoryMoveDetail?id=' + item.id + '&status=' + item.status+'&businessTypeCode='+this.businessTypeCode }); }, diff --git a/pages/inventoryMove/coms/comMoveRecord.vue b/pages/inventoryMove/coms/comMoveRecord.vue index 5df8a95a..07d38a1c 100644 --- a/pages/inventoryMove/coms/comMoveRecord.vue +++ b/pages/inventoryMove/coms/comMoveRecord.vue @@ -1,79 +1,98 @@ diff --git a/pages/inventoryMove/coms/comMoveRecordCard.vue b/pages/inventoryMove/coms/comMoveRecordCard.vue new file mode 100644 index 00000000..5a7f90e3 --- /dev/null +++ b/pages/inventoryMove/coms/comMoveRecordCard.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/pages/inventoryMove/coms/comMovebalance.vue b/pages/inventoryMove/coms/comMovebalance.vue index 12142f4f..ec725afb 100644 --- a/pages/inventoryMove/coms/comMovebalance.vue +++ b/pages/inventoryMove/coms/comMovebalance.vue @@ -15,25 +15,10 @@ - - - - - + + - - - - @@ -104,38 +89,15 @@ type: String, default: "" }, + allowEditStatus: { + type: Boolean, + default: false + }, }, watch: { }, methods: { - copy(){ - // HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100 - var content = "HPQ;V1.0;I"+this.detail.itemCode+";P"+this.detail.packingNumber+";B"+this.detail.batch+";Q"+this.detail.qty - this.$copyText(content).then( - res => { - uni.showToast({ - title: '复制成功', - icon: 'none' - }) - } - ) - }, - copyPro(){ - // HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100 - var content = "HMQ;V1.0;I"+this.detail.itemCode+";P"+this.detail.packingNumber+";B"+this.detail.batch+";Q"+this.detail.qty - this.$copyText(content).then( - res => { - uni.showToast({ - title: '复制成功', - icon: 'none' - }) - } - ) - }, - isDevlement(){ - return getApp().globalData.isDevelopment; - } } } diff --git a/pages/inventoryMove/job/inventoryMoveDetail.vue b/pages/inventoryMove/job/inventoryMoveDetail.vue index 8b8d8c4e..80676816 100644 --- a/pages/inventoryMove/job/inventoryMoveDetail.vue +++ b/pages/inventoryMove/job/inventoryMoveDetail.vue @@ -9,6 +9,7 @@ + @@ -63,7 +64,7 @@ navigateBack, getCurrDateTime, getPackingNumberAndBatchByList, - getInventoryStatusName + getInventoryStatusName, } from '@/common/basic.js'; import winScanButton from '@/mycomponents/scan/winScanButton.vue' @@ -77,7 +78,7 @@ export default { - name: 'returnDetail', + name: 'inventoryMoveDetail', components: { winScanButton, winScanPack, @@ -99,11 +100,18 @@ toLocationInfo: {}, businessTypeInfo: {}, locationTypeList: [], - managementList: [] + managementList: [], + businessTypeCode: '', + toLocationCode: '', + toinventoryStatus: '' }; + }, + props: { + }, onLoad(option) { this.id = option.id; + this.businessTypeCode = option.businessTypeCode; if (this.id != undefined) { // //新建的任务自动接收 if (option.status == "1") { @@ -114,10 +122,8 @@ } else { this.getDetail(); } + this.initData(); } - uni.setNavigationBarTitle({ - title: option.titleName+"详细" - }) }, //返回首页 onNavigationBarButtonTap(e) { @@ -154,6 +160,38 @@ }, methods: { + initData() { + var name = "" + if (this.businessTypeCode == "Move") { + name = "库存转移"; + } else if (this.businessTypeCode == "HoldToOk") { + name = "隔离转合格"; + this.toLocationCode = ''; + this.toinventoryStatus = 'OK'; + } else if (this.businessTypeCode == "HoldToScrap") { + name = "隔离转报废"; + this.toLocationCode = 'SCRAP'; + this.toinventoryStatus = 'SCRAP'; + } else if (this.businessTypeCode == "OkToHold") { + name = "合格转隔离"; + this.toLocationCode = 'HOLD'; + this.toinventoryStatus = 'HOLD'; + } else if (this.businessTypeCode == "OktoScrap") { + name = "合格转报废"; + this.toLocationCode = 'SCRAP'; + this.toinventoryStatus = 'SCRAP'; + } else if (this.businessTypeCode == "ScrapToHold") { + name = "报废转隔离"; + this.toLocationCode = 'HOLD'; + this.toinventoryStatus = 'HOLD'; + } + + uni.setNavigationBarTitle({ + title: name + '详情' + }) + }, + + //接收 receive(callback) { uni.showLoading({ @@ -212,7 +250,6 @@ this.$refs.jobDetailPopup.openPopup(item) }, - updateData() { this.calcHandleQty(); }, @@ -276,7 +313,7 @@ if (res) { itemDetail.scaned = true; itemDetail.handleQty = Number(result.balance.qty); - itemDetail.toInventoryStatus = result.balance.inventoryStatus; + itemDetail.fromInventoryStatus = result.balance.inventoryStatus; itemDetail.balance = result.balance; itemDetail.balance.balanceQty = Number(result.balance.qty); itemDetail.balance.stdPackQty = Number(result.package.stdPackQty) @@ -296,7 +333,7 @@ } else { itemDetail.scaned = true; itemDetail.handleQty = Number(result.balance.qty); - itemDetail.toInventoryStatus = result.balance.inventoryStatus; + itemDetail.fromInventoryStatus = result.balance.inventoryStatus; itemDetail.balance = result.balance; itemDetail.balance.balanceQty = Number(result.balance.qty); itemDetail.balance.stdPackQty = Number(result.package.stdPackQty) @@ -347,14 +384,14 @@ title: "提交中....", mask: true }); - + //查询管理模式 this.managementList = []; var precisionStrategParams = this.setPrecisionStrategParams() getPrecisionStrategyList(precisionStrategParams, res => { if (res.success) { this.managementList = res.list; - + var params = this.setParams() console.log("提交" + JSON.stringify(params)) inventoryMoveSubmit(params).then(res => { @@ -376,27 +413,27 @@ }) }, - - setPrecisionStrategParams(){ + + setPrecisionStrategParams() { var itemList = [] this.detailSource.forEach(item => { item.subList.forEach(detail => { if (detail.scaned) { var filterResult = itemList.filter(res => { - if (res.itemCode == item.itemCode - &&res.locationCode == detail.toLocationCode) { + if (res.itemCode == item.itemCode && + res.locationCode == detail.toLocationCode) { return res } }) //去掉重复元素 - if(filterResult.length==0){ + if (filterResult.length == 0) { var result = { itemCode: item.itemCode, locationCode: detail.toLocationCode } itemList.push(result) } - + } }) }) @@ -415,8 +452,8 @@ detail.toPackingNumber = info.packingNumber; detail.toBatch = info.batch; detail.toContainerNumber = ''; - - detail.toLocationCode = detail.toLocationCode; + // detail.toLocationCode = this.toLocationCode; + detail.toinventoryStatus=this.toinventoryStatus; subList.push(detail) } }) diff --git a/pages/inventoryMove/job/okToHoldMoveJob.vue b/pages/inventoryMove/job/okToHoldMoveJob.vue index 4c2bcca0..5e2f8ec2 100644 --- a/pages/inventoryMove/job/okToHoldMoveJob.vue +++ b/pages/inventoryMove/job/okToHoldMoveJob.vue @@ -1,6 +1,6 @@ diff --git a/pages/inventoryMove/record/holdToOkRecord.vue b/pages/inventoryMove/record/holdToOkRecord.vue index 6efc0d0a..72d3dc7b 100644 --- a/pages/inventoryMove/record/holdToOkRecord.vue +++ b/pages/inventoryMove/record/holdToOkRecord.vue @@ -1,15 +1,15 @@