diff --git a/common/record.js b/common/record.js index 8de7084b..45490b12 100644 --- a/common/record.js +++ b/common/record.js @@ -23,7 +23,7 @@ export function createItemInfo(balance, pack) { export function createDetailInfo(data, pack) { data.scaned = true; // data.toInventoryStatus = this.toInventoryStatus == "" ? data.inventoryStatus : this.toInventoryStatus; - data.inventoryStatus = data.inventoryStatus; + // data.inventoryStatus = data.inventoryStatus; let detail = {}; Object.assign(detail, data) detail.balanceQty = Number(detail.qty) diff --git a/common/style/pdabasic.css b/common/style/pdabasic.css index 78a0b6d2..4d82ce28 100644 --- a/common/style/pdabasic.css +++ b/common/style/pdabasic.css @@ -714,6 +714,7 @@ page { flex-direction: column; width: 100%; height: 100%; + background-color: #fff; } .page-header { diff --git a/mycomponents/balance/balance.vue b/mycomponents/balance/balance.vue index 39e60f2a..24244efd 100644 --- a/mycomponents/balance/balance.vue +++ b/mycomponents/balance/balance.vue @@ -1,10 +1,10 @@ - + + :isShowPack="true" :isShowFromLocation="isShowFromLocation" :isShowToLocation="true"> - + @@ -73,7 +73,7 @@ default: false }, - isShowLocation: { + isShowFromLocation: { type: Boolean, default: true }, diff --git a/mycomponents/scan/winScanContainer.vue b/mycomponents/scan/winScanContainer.vue index b114584d..1ea6155f 100644 --- a/mycomponents/scan/winScanContainer.vue +++ b/mycomponents/scan/winScanContainer.vue @@ -37,7 +37,7 @@ props: { title: { type: String, - default: '' + default: '器具' }, isShowHistory: { type: Boolean, @@ -78,7 +78,7 @@ uni.hideLoading(); if (res.data.list.length > 0) { this.containerInfo = res.data.list[0]; - if (this.containerInfo.status == 'USED') { + if (this.containerInfo.containerStatus == 'USED') { this.callBack(); } else { this.showErrorMessage("器具[" + this.code + "]状态是[" + this.containerInfo.status + "],不可以绑定") diff --git a/mycomponents/scan/winScanPackAndLocation.vue b/mycomponents/scan/winScanPackAndLocation.vue index 99eb53af..dd303565 100644 --- a/mycomponents/scan/winScanPackAndLocation.vue +++ b/mycomponents/scan/winScanPackAndLocation.vue @@ -21,7 +21,7 @@ 来源库位 - + @@ -41,7 +41,7 @@ + :isShowHistory="isShowHistory" :clearResult="true" :headerType="headerType"> @@ -264,14 +264,17 @@ }) } else if (datas.length == 1) { let balance = datas[0]; - if (balance.qty > 0) { - this.packCallBack(balance); - } else { - this.showErrorMessage(this.getQueryCondition() + '
查找到库存记录数量为[' + balance.qty + "],
不可以进行操作", - res => { - this.packGetFocus(); - }) - } + this.packCallBack(balance); + + //因为盘点时有负库存,暂时去掉判断 2023年12月28日 + // if (balance.qty > 0) { + // this.packCallBack(balance); + // } else { + // this.showErrorMessage(this.getQueryCondition() + '
查找到库存记录数量为[' + balance.qty + "],
不可以进行操作", + // res => { + // this.packGetFocus(); + // }) + // } } else { this.showBalanceSelect(datas); } @@ -298,7 +301,8 @@ let data = { label: this.scanResult.label, package: this.scanResult.package, - balance: item + balance: item, + fromLocationCode: this.fromLocationCode, } this.packGetFocus(); this.$emit("getResult", data); diff --git a/pages/container/coms/comContainerBindCard.vue b/pages/container/coms/comContainerBindCard.vue new file mode 100644 index 00000000..0cf75e8f --- /dev/null +++ b/pages/container/coms/comContainerBindCard.vue @@ -0,0 +1,182 @@ + + + + + diff --git a/pages/container/coms/comPalletRecord.vue b/pages/container/coms/comPalletRecord.vue index 2feaf3cc..e9d3b1d3 100644 --- a/pages/container/coms/comPalletRecord.vue +++ b/pages/container/coms/comPalletRecord.vue @@ -17,11 +17,11 @@ + :toInventoryStatus="item.toInventoryStatus" :isShowFromLocation="isShowLocation" > - + @@ -43,7 +43,7 @@ import { getDetailOption, - getDetailEditRemoveOption, + getEditOption, getClearOption } from '@/common/array.js'; export default { @@ -95,7 +95,6 @@ }) } } - }, immediate: true, deep: true @@ -117,7 +116,7 @@ mounted() { this.detailOptions = getDetailOption(); - this.scanOptions = getDetailEditRemoveOption(); + this.scanOptions = getEditOption(); this.removeOptions = getClearOption(); }, diff --git a/pages/container/record/containerBindRecord.vue b/pages/container/record/containerBindRecord.vue index 09510e3d..9429a8b9 100644 --- a/pages/container/record/containerBindRecord.vue +++ b/pages/container/record/containerBindRecord.vue @@ -1,23 +1,24 @@ diff --git a/pages/container/record/containerUnBindRecord.vue b/pages/container/record/containerUnBindRecord.vue index 1965f542..8a337130 100644 --- a/pages/container/record/containerUnBindRecord.vue +++ b/pages/container/record/containerUnBindRecord.vue @@ -14,11 +14,12 @@ - + - + @@ -44,7 +45,8 @@ diff --git a/pages/package/coms/comOverRecord.vue b/pages/package/coms/comOverRecord.vue index 3c15de11..af22fd75 100644 --- a/pages/package/coms/comOverRecord.vue +++ b/pages/package/coms/comOverRecord.vue @@ -17,7 +17,7 @@ + :isShowFromLocation="false"> diff --git a/pages/package/coms/comPackageRecord.vue b/pages/package/coms/comPackageRecord.vue index 08893da6..233e6879 100644 --- a/pages/package/coms/comPackageRecord.vue +++ b/pages/package/coms/comPackageRecord.vue @@ -18,7 +18,7 @@ + :isShowFromLocation="false"> diff --git a/pages/productReceipt/coms/comProductRecord.vue b/pages/productReceipt/coms/comProductRecord.vue index 83b1873c..0c9b11a4 100644 --- a/pages/productReceipt/coms/comProductRecord.vue +++ b/pages/productReceipt/coms/comProductRecord.vue @@ -17,7 +17,7 @@ + :isShowPack="true" :isShowFromLocation="false"> diff --git a/pages/productionReturn/coms/comReturnRecord.vue b/pages/productionReturn/coms/comReturnRecord.vue index 53fb1081..674ae719 100644 --- a/pages/productionReturn/coms/comReturnRecord.vue +++ b/pages/productionReturn/coms/comReturnRecord.vue @@ -17,7 +17,7 @@ + :isShowFromLocation="true" :isShowToLocation="isShowToLocation"> diff --git a/pages/productionReturn/job/returnDetail.vue b/pages/productionReturn/job/returnDetail.vue index 46f8d568..9557298b 100644 --- a/pages/productionReturn/job/returnDetail.vue +++ b/pages/productionReturn/job/returnDetail.vue @@ -8,27 +8,9 @@ 申请单号 : {{jobContent.requestNumber}} - - - - 车间 - {{jobContent.workshopCode}} - - - 生产线 - {{titleInfo.productionLineCode}} - - - 工位 - {{ titleInfo.workStationCode }} - - - 原材料库 - {{ titleInfo.toLocationCode}} - - - - + + @@ -103,6 +85,7 @@ import comMessage from '@/mycomponents/common/comMessage.vue' import jobTop from '@/mycomponents/job/jobTop.vue' import winScanPack from '@/mycomponents/scan/winScanPack.vue' + import workStation from '@/mycomponents/workStation/workStation.vue' export default { name: 'receipt_detail', @@ -114,8 +97,8 @@ comReturnDetailCard, detailInfoPopup, comMessage, - jobTop - + jobTop, + workStation }, data() { return { diff --git a/pages/purchaseReceipt/job/receiptDetail.vue b/pages/purchaseReceipt/job/receiptDetail.vue index c58955a4..1ea371db 100644 --- a/pages/purchaseReceipt/job/receiptDetail.vue +++ b/pages/purchaseReceipt/job/receiptDetail.vue @@ -274,8 +274,6 @@ return } - console.log("校验通过") - //扫描数量和任务数量相等,直接提交 if (this.scanCount == this.subList.length) { this.submitJob(); diff --git a/pages/purchaseReturn/job/returnDetail.vue b/pages/purchaseReturn/job/returnDetail.vue index de1333e6..36e7b708 100644 --- a/pages/purchaseReturn/job/returnDetail.vue +++ b/pages/purchaseReturn/job/returnDetail.vue @@ -2,9 +2,9 @@ - + - + 发货单:{{jobContent.asnNumber}} @@ -76,7 +76,7 @@ import returnDetailInfoPopup from '@/pages/purchaseReturn/coms/returnDetailInfoPopup.vue' import comMessage from '@/mycomponents/common/comMessage.vue' import jobTop from '@/mycomponents/job/jobTop.vue' - + export default { name: 'returnDetail', components: { @@ -236,7 +236,7 @@ } else { var itemDetail = detail.subList.find(r => { return r.packingNumber == packingNumber && - r.batch == batch + r.batch == batch && r.fromLocationCode == result.fromLocationCode }) if (itemDetail == undefined) { this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]不在列表中") @@ -247,38 +247,39 @@ let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { - if(this.jobContent.allowModifyInventoryStatus=="TRUE"){ - this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + + if (this.jobContent.allowModifyInventoryStatus == "TRUE") { + this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + ']不一致,是否继续退货?', res => { if (res) { itemDetail.scaned = true; - itemDetail.handleQty = Number(result.balance.qty) ; + itemDetail.handleQty = Number(result.balance.qty); itemDetail.toInventoryStatus = result.balance.inventoryStatus; itemDetail.balance = result.balance; itemDetail.balance.balanceQty = result.balance.qty; - itemDetail.balance.stdPackQty =result.package.stdPackQty - itemDetail.balance.stdPackUnit =result.package.stdPackUnit - + itemDetail.balance.stdPackQty = result.package.stdPackQty + itemDetail.balance.stdPackUnit = result.package.stdPackUnit + this.calcHandleQty(); } else { this.scanPopupGetFocus(); } }); - }else { - this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + + } else { + this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + + itemStatus + ']不一致,不允许转移!', res => { this.scanPopupGetFocus(); }); } - + } else { itemDetail.scaned = true; - itemDetail.handleQty = Number(result.balance.qty) ; + itemDetail.handleQty = Number(result.balance.qty); itemDetail.toInventoryStatus = result.balance.inventoryStatus; itemDetail.balance = result.balance; - itemDetail.balance.balanceQty = Number(result.balance.qty) ; - itemDetail.balance.stdPackQty =Number(result.package.stdPackQty) - itemDetail.balance.stdPackUnit =result.package.stdPackUnit + itemDetail.balance.balanceQty = Number(result.balance.qty); + itemDetail.balance.stdPackQty = Number(result.package.stdPackQty) + itemDetail.balance.stdPackUnit = result.package.stdPackUnit this.calcHandleQty(); } } @@ -323,15 +324,15 @@ title: "提交中....", mask: true }); - - var params =this.setParams() + + var params = this.setParams() console.log("提交参数", JSON.stringify(params)); purchaseReturnJobsubmit(params).then(res => { uni.hideLoading() if (res.data) { this.showCommitSuccessMessage(res.data) } else { - this.showErrorMessage("提交失败["+res.msg+"]") + this.showErrorMessage("提交失败[" + res.msg + "]") } }).catch(error => { uni.hideLoading() @@ -343,14 +344,14 @@ setParams() { var subList = [] var creator = this.$store.state.user.id - + this.detailSource.forEach(item => { item.subList.forEach(detail => { if (detail.scaned) { detail.toPackingNumber = detail.packingNumber; detail.toContainerNumber = detail.containerNumber; detail.toBatch = detail.batch; - + detail.toLocationCode = detail.toLocationCode; subList.push(detail) } @@ -368,8 +369,8 @@ let item = this.detailSource[i]; item.subList.forEach(l => { //重复的库位不往里面插入 - var location = fromlocationList.filter(res => res.fromLocationCode != l.fromLocationCode) - if (location.length == 0) { + var location = fromlocationList.find(res => res == l.fromLocationCode) + if (location == undefined) { fromlocationList.push(l.fromLocationCode); } //来源库位赋默认值 @@ -380,6 +381,7 @@ } }) } + this.$refs.scanPopup.openScanPopupForJob(fromlocationCode, fromlocationList, this.jobContent); }, @@ -428,7 +430,7 @@ showCommitSuccessMessage(number) { this.$refs.comMessage.showSuccessMessage('提交成功
生成退货记录:' + number, res => { - navigateBack(1) + navigateBack(1) }) } } diff --git a/pages/putaway/record/putawayRecord.vue b/pages/putaway/record/putawayRecord.vue index 93dd25a9..62fdf419 100644 --- a/pages/putaway/record/putawayRecord.vue +++ b/pages/putaway/record/putawayRecord.vue @@ -1,24 +1,26 @@ - diff --git a/pages/repleinsh/coms/comScanReplishPack.vue b/pages/repleinsh/coms/comScanReplishPack.vue index 95f1824c..7f1c369c 100644 --- a/pages/repleinsh/coms/comScanReplishPack.vue +++ b/pages/repleinsh/coms/comScanReplishPack.vue @@ -69,7 +69,7 @@ - diff --git a/static/config.json b/static/config.json index 310a012c..3f6576ad 100644 --- a/static/config.json +++ b/static/config.json @@ -18,7 +18,7 @@ "request_url": { "name": "request_url", - "value": "http://192.168.0.176:12080/admin-api", + "value": "http://dev.ccwin-in.com:25100/api/admin-api", "dev2": "http://192.168.0.157:12080/admin-api", "chefang": "http://192.168.0.176:12080/admin-api", "chenxinming": "http://192.168.0.230:12080/admin-api",