diff --git a/fe/PDA/pages/task/assembleIssueJobDetail.vue b/fe/PDA/pages/task/assembleIssueJobDetail.vue index 8f1037785..67bb35c3f 100644 --- a/fe/PDA/pages/task/assembleIssueJobDetail.vue +++ b/fe/PDA/pages/task/assembleIssueJobDetail.vue @@ -158,11 +158,9 @@ - - + - @@ -191,7 +189,6 @@ } from '@/common/basic.js'; import comMessage from '@/mycomponents/common/comMessage.vue' import winScanButton from '@/mycomponents/wincom/winScanButton.vue' - import winScanButtonTop from '@/mycomponents/wincom/winScanButtonTop.vue' import winScanButtonBottom from '@/mycomponents/wincom/winScanButtonBottom.vue' import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue' @@ -205,7 +202,6 @@ components: { comMessage, winScanButton, - winScanButtonTop, winScanButtonBottom, winMulitScan, comJobScanDetail, @@ -245,7 +241,7 @@ //返回首页 onNavigationBarButtonTap(e) { if (e.index === 0) { - if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) { + if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) { //取消承接任务 cancelTakeAssembleIssueJob(this.id).then(res => {}).catch(error => {}) } @@ -258,7 +254,7 @@ onBackPress(e) { //已经接收但是没提交任务 if (e.from == 'backbutton') { - if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) { + if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) { //取消承接任务 cancelTakeAssembleIssueJob(this.id).then(res => { uni.navigateBack(); @@ -284,29 +280,6 @@ openLocationTo() { this.$refs.locationTo.openScanPopup() }, - openLocationFrom() { - this.$refs.locationFrom.openScanPopup() - }, - - - geFromLocation(locationInfo) { - var current = this.details[0] - if (!current.handledToPackingCode) { - this.showMessage("请先扫描箱码") - return; - } - - if (locationInfo.code != current.handleToPackingCodeLocationCode) { - this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode + - "]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描") - return; - } - - current.handledFromLocationCode = locationInfo.code - current.handledFromLocationArea = locationInfo.locationArea - current.handledFromLocationGroup = locationInfo.locationGroup - current.handledFromLocationErpCode = locationInfo.locationErpCode - }, geToLocation(locationInfo) { var current = this.details[0] @@ -369,14 +342,14 @@ .catch(err => { uni.hideLoading(); this.showMessage('未查找到详细信息') - + }); }, setReceived() { //是否承接 //已经承接 if (this.datacontent.isClaims) { - this.datacontent.jobStatus =2 + this.datacontent.jobStatus = 2 //承接并且承接人是自己显示,不是自己隐藏 if (this.datacontent.claimsUserId == localStorage.getItem('userId')) { this.showBtn = true @@ -455,6 +428,7 @@ item.handledFromLot = balancesItem.lot item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromQty = balancesItem.qty + item.handledFromLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode } else { showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item @@ -480,6 +454,7 @@ item.handledFromLot = balancesItem.lot item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromQty = balancesItem.qty + item.handledFromLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode } }) @@ -598,10 +573,6 @@ this.showMessage('请先扫描目标库位'); return; } - if (!that.details[0].handledFromLocationCode) { - this.showMessage('请先扫描来源库位'); - return; - } that.finsh(); }, @@ -618,9 +589,7 @@ finshAssembleIssueJob(that.id, params.id, params) .then(res => { uni.hideLoading(); - if (res != null) { - that.showCommitSuccessMessage(); - } + that.showCommitSuccessMessage(); }) .catch(err => { that.showMessage(err.message); diff --git a/fe/PDA/pages/task/coatingIssuleJobDetail.vue b/fe/PDA/pages/task/coatingIssuleJobDetail.vue index d2d5c6e48..20e603e2a 100644 --- a/fe/PDA/pages/task/coatingIssuleJobDetail.vue +++ b/fe/PDA/pages/task/coatingIssuleJobDetail.vue @@ -159,10 +159,8 @@ - - + - @@ -232,7 +230,7 @@ jobStatus: "", toLocationInfo: {}, handleToPackingCodeLocationCode: "", - showBtn:true + showBtn: true } }, props: { @@ -245,11 +243,9 @@ //返回首页 onNavigationBarButtonTap(e) { if (e.index === 0) { - if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) { + if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) { //取消承接任务 - cancelTakeCoatingIssueJob(this.id).then(res => { - }).catch(error => { - }) + cancelTakeCoatingIssueJob(this.id).then(res => {}).catch(error => {}) } goHome(); } else if (e.index === 1) { @@ -260,7 +256,7 @@ onBackPress(e) { //已经接收但是没提交任务 if (e.from == 'backbutton') { - if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) { + if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) { //取消承接任务 cancelTakeCoatingIssueJob(this.id).then(res => { uni.navigateBack(); @@ -286,29 +282,6 @@ openLocationTo() { this.$refs.locationTo.openScanPopup() }, - openLocationFrom() { - this.$refs.locationFrom.openScanPopup() - }, - - - geFromLocation(locationInfo) { - var current = this.details[0] - if (!current.handledToPackingCode) { - this.showMessage("请先扫描箱码") - return; - } - - if (locationInfo.code != current.handleToPackingCodeLocationCode) { - this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode + - "]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描") - return; - } - - current.handledFromLocationCode = locationInfo.code - current.handledFromLocationArea = locationInfo.locationArea - current.handledFromLocationGroup = locationInfo.locationGroup - current.handledFromLocationErpCode = locationInfo.locationErpCode - }, geToLocation(locationInfo) { var current = this.details[0] @@ -367,19 +340,19 @@ this.allCount = that.details.length; this.setReceived(); } - + }) .catch(err => { uni.hideLoading(); this.showMessage('未查找到详细信息') - + }); }, setReceived() { //是否承接 //已经承接 if (this.datacontent.isClaims) { - this.datacontent.jobStatus =2 + this.datacontent.jobStatus = 2 //承接并且承接人是自己显示,不是自己隐藏 if (this.datacontent.claimsUserId == localStorage.getItem('userId')) { this.showBtn = true @@ -422,17 +395,17 @@ "]不一致,是否继续发料?", res => { if (res) { - this.setData(result,data,fromData) + this.setData(result, data, fromData) } }) }) } } else { - this.setData(result,data,fromData) + this.setData(result, data, fromData) } }, - setData(result,data,fromData) { + setData(result, data, fromData) { this.getBalance(result, res => { if (res.totalCount > 0) { var balancesItem = res.items[0]; @@ -447,8 +420,8 @@ item.handledToLot = balancesItem.lot item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToQty = balancesItem.qty - item.stdPackQty =balancesItem.stdPackQty - + item.stdPackQty = balancesItem.stdPackQty + item.handledFromContainerCode = balancesItem.containerCode item.handledFromPackingCode = balancesItem.packingCode item.handledFromSupplierBatch = balancesItem.supplierBatch @@ -458,6 +431,7 @@ item.handledFromLot = balancesItem.lot item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromQty = balancesItem.qty + item.handledFromLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode } else { showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item @@ -472,8 +446,8 @@ item.handledToLot = balancesItem.lot item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToQty = balancesItem.qty - item.stdPackQty =balancesItem.stdPackQty - + item.stdPackQty = balancesItem.stdPackQty + item.handledFromContainerCode = balancesItem.containerCode item.handledFromPackingCode = balancesItem.packingCode item.handledFromSupplierBatch = balancesItem.supplierBatch @@ -483,6 +457,7 @@ item.handledFromLot = balancesItem.lot item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromQty = balancesItem.qty + item.handledFromLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode } }) @@ -511,7 +486,7 @@ // sortBy: 'PackingCode asc' }; - if(this.details[0].recommendFromPackingCode==result.data.code){ + if (this.details[0].recommendFromPackingCode == result.data.code) { balances(params) .then(res => { if (res.totalCount === 0) { @@ -525,7 +500,7 @@ this.showScanMessage(err.message); uni.hideLoading(); }); - }else { + } else { getBalanceRemoveInAndOut(params) .then(res => { if (res.totalCount === 0) { @@ -601,10 +576,6 @@ this.showMessage('请先扫描目标库位'); return; } - if (!that.details[0].handledFromLocationCode) { - this.showMessage('请先扫描来源库位'); - return; - } that.finsh(); }, @@ -621,9 +592,7 @@ finshCoatingIssueJob(that.id, params.id, params) .then(res => { uni.hideLoading(); - if (res != null) { - that.showCommitSuccessMessage(); - } + that.showCommitSuccessMessage(); }) .catch(err => { that.showMessage(err.message); diff --git a/fe/PDA/pages/task/injectionIssueJobDetail.vue b/fe/PDA/pages/task/injectionIssueJobDetail.vue index 2b257c58b..f0e61ee14 100644 --- a/fe/PDA/pages/task/injectionIssueJobDetail.vue +++ b/fe/PDA/pages/task/injectionIssueJobDetail.vue @@ -162,11 +162,9 @@ - - + - @@ -195,7 +193,6 @@ } from '@/common/basic.js'; import comMessage from '@/mycomponents/common/comMessage.vue' import winScanButton from '@/mycomponents/wincom/winScanButton.vue' - import winScanButtonTop from '@/mycomponents/wincom/winScanButtonTop.vue' import winScanButtonBottom from '@/mycomponents/wincom/winScanButtonBottom.vue' import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue' @@ -209,7 +206,6 @@ components: { comMessage, winScanButton, - winScanButtonTop, winScanButtonBottom, winMulitScan, comJobScanDetail, @@ -288,29 +284,6 @@ openLocationTo() { this.$refs.locationTo.openScanPopup() }, - openLocationFrom() { - this.$refs.locationFrom.openScanPopup() - }, - - - geFromLocation(locationInfo) { - var current = this.details[0] - if (!current.handledToPackingCode) { - this.showMessage("请先扫描箱码") - return; - } - - if (locationInfo.code != current.handleToPackingCodeLocationCode) { - this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode + - "]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描") - return; - } - - current.handledFromLocationCode = locationInfo.code - current.handledFromLocationArea = locationInfo.locationArea - current.handledFromLocationGroup = locationInfo.locationGroup - current.handledFromLocationErpCode = locationInfo.locationErpCode - }, geToLocation(locationInfo) { var current = this.details[0] @@ -462,6 +435,8 @@ item.handledFromLot = balancesItem.lot item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromQty = balancesItem.qty + item.handledFromLocationCode = balancesItem.locationCode + item.handleToPackingCodeLocationCode = balancesItem.locationCode } else { showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item @@ -486,6 +461,7 @@ item.handledFromLot = balancesItem.lot item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromQty = balancesItem.qty + item.handledFromLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode } }) @@ -605,10 +581,6 @@ this.showMessage('请先扫描目标库位'); return; } - if (!that.details[0].handledFromLocationCode) { - this.showMessage('请先扫描来源库位'); - return; - } that.finsh(); }, @@ -625,9 +597,7 @@ finshInjectionIssueJob(that.id, params.id, params) .then(res => { uni.hideLoading(); - if (res != null) { - that.showCommitSuccessMessage(); - } + that.showCommitSuccessMessage(); }) .catch(err => { that.showMessage(err.message); diff --git a/fe/PDA/pages/task/kittingIssueJobDetail.vue b/fe/PDA/pages/task/kittingIssueJobDetail.vue index a71f3616e..5a4bcca25 100644 --- a/fe/PDA/pages/task/kittingIssueJobDetail.vue +++ b/fe/PDA/pages/task/kittingIssueJobDetail.vue @@ -158,11 +158,9 @@ - - + - @@ -283,29 +281,6 @@ openLocationTo() { this.$refs.locationTo.openScanPopup() }, - openLocationFrom() { - this.$refs.locationFrom.openScanPopup() - }, - - - geFromLocation(locationInfo) { - var current = this.details[0] - if (!current.handledToPackingCode) { - this.showMessage("请先扫描箱码") - return; - } - - if (locationInfo.code != current.handleToPackingCodeLocationCode) { - this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode + - "]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描") - return; - } - - current.handledFromLocationCode = locationInfo.code - current.handledFromLocationArea = locationInfo.locationArea - current.handledFromLocationGroup = locationInfo.locationGroup - current.handledFromLocationErpCode = locationInfo.locationErpCode - }, geToLocation(locationInfo) { var current = this.details[0] @@ -455,6 +430,7 @@ item.handledFromLot = balancesItem.lot item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromQty = balancesItem.qty + item.handledFromLocationCode =balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode } else { showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + @@ -481,6 +457,7 @@ item.handledFromLot = balancesItem.lot item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromQty = balancesItem.qty + item.handledFromLocationCode =balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem .locationCode } @@ -600,10 +577,6 @@ this.showMessage('请先扫描目标库位'); return; } - if (!that.details[0].handledFromLocationCode) { - this.showMessage('请先扫描来源库位'); - return; - } that.finsh(); }, @@ -620,9 +593,7 @@ finshKittingIssueJob(that.id, params.id, params) .then(res => { uni.hideLoading(); - if (res != null) { - that.showCommitSuccessMessage(); - } + that.showCommitSuccessMessage(); }) .catch(err => { that.showMessage(err.message); diff --git a/fe/PDA/pages/task/sparePartIssueJobDetail.vue b/fe/PDA/pages/task/sparePartIssueJobDetail.vue index cb925aeca..a96bd4dfb 100644 --- a/fe/PDA/pages/task/sparePartIssueJobDetail.vue +++ b/fe/PDA/pages/task/sparePartIssueJobDetail.vue @@ -158,11 +158,9 @@ - - + - @@ -283,29 +281,6 @@ openLocationTo() { this.$refs.locationTo.openScanPopup() }, - openLocationFrom() { - this.$refs.locationFrom.openScanPopup() - }, - - - geFromLocation(locationInfo) { - var current = this.details[0] - if (!current.handledToPackingCode) { - this.showMessage("请先扫描箱码") - return; - } - - if (locationInfo.code != current.handleToPackingCodeLocationCode) { - this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode + - "]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描") - return; - } - - current.handledFromLocationCode = locationInfo.code - current.handledFromLocationArea = locationInfo.locationArea - current.handledFromLocationGroup = locationInfo.locationGroup - current.handledFromLocationErpCode = locationInfo.locationErpCode - }, geToLocation(locationInfo) { var current = this.details[0] @@ -455,6 +430,7 @@ item.handledFromLot = balancesItem.lot item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromQty = balancesItem.qty + item.handledFromLocationCode =balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode } else { showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item @@ -480,6 +456,7 @@ item.handledFromLot = balancesItem.lot item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromQty = balancesItem.qty + item.handledFromLocationCode =balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode } }) @@ -598,10 +575,6 @@ this.showMessage('请先扫描目标库位'); return; } - if (!that.details[0].handledFromLocationCode) { - this.showMessage('请先扫描来源库位'); - return; - } that.finsh(); }, @@ -618,7 +591,7 @@ finshSparePartIssueJob(that.id, params.id, params) .then(res => { uni.hideLoading(); - if (res != null) { + if (res) { that.showCommitSuccessMessage(); } })