From 4411c4f4db5eedad75b2927a4e466bcc218345e0 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 24 May 2024 11:14:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=89=E6=96=B9=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PDA/api/index.js | 35 +++ .../comThirdLocationRequestItem.vue | 89 +++++++ fe/PDA/mycomponents/coms/task/comThird.vue | 35 ++- .../wincom/winScanByProductCode.vue | 3 +- fe/PDA/pages.js | 14 ++ fe/PDA/pages.json | 15 ++ fe/PDA/pages/request/thirdLocationRequest.vue | 30 ++- .../request/thirdLocationRequestList.vue | 191 +++++++++++++++ .../thirdLocationRequestListDetail.vue | 223 ++++++++++++++++++ .../return/purchaseReturnRequestApprove.vue | 2 +- .../purchaseReturnRequestApprove_detail.vue | 21 +- fe/PDA/pages/return/returnBeforPutaway.vue | 37 ++- fe/PDA/pages/task/countFgDetail.vue | 2 +- fe/PDA/pages/task/countRawDetail.vue | 51 +++- fe/PDA/pages/task/thirdLocation.vue | 23 +- fe/PDA/pages/task/thirdLocationDetail.vue | 53 ++++- 16 files changed, 783 insertions(+), 41 deletions(-) create mode 100644 fe/PDA/mycomponents/comRequest/comThirdLocationRequestItem.vue create mode 100644 fe/PDA/pages/request/thirdLocationRequestList.vue create mode 100644 fe/PDA/pages/request/thirdLocationRequestListDetail.vue diff --git a/fe/PDA/api/index.js b/fe/PDA/api/index.js index 11e83ac79..abe04fa2b 100644 --- a/fe/PDA/api/index.js +++ b/fe/PDA/api/index.js @@ -1480,6 +1480,33 @@ export const thirdLocationRequest = (params) => request( data: params, }); +//三方库申请列表 +export const getThirdLocationRequestList = (pageIndex,pageSize) => request( + devUrl + "/api/pda/store/third-location-request/list?pageIndex="+pageIndex+"&pageSize="+pageSize, { + method: 'get', + data: {} + }) + +//三方库申请详情 +export const getThirdLocationRequestDetail = (id) => request( + devUrl + "/api/pda/store/third-location-request/" + id, { // + data: {}, + method: "get" + }); + +//三方库发料申请 取消 +export const thirdLocationRequestCancle = (id) => promise( + devUrl + "/api/pda/store/third-location-request/cancel/"+id, { + method: 'post', + data: {} + }) +//三方库发料申请 终止 +export const thirdLocationRequestClose = (id) => promise( + devUrl + "/api/pda/store/third-location/close-job/"+id, { + method: 'post', + data: {} + }) + //三方库收货任务列表 export const getThirdLocationList = (params) => request( devUrl + "/api/pda/job/third-location/list", { @@ -2063,6 +2090,14 @@ export const sparePartIssueRequest = (params) => request( data: params, method: "post" }) +//拆箱的时候,通过箱码获取原箱码采购订单信息 +export const getPoNumberByPackingCode = (toPackingCode) => promise( + devUrl + "/api/pda/split-packing-rec/get-split-packing-code?toPackingCode="+toPackingCode, { // + data: {}, + method: "get" + }) + + diff --git a/fe/PDA/mycomponents/comRequest/comThirdLocationRequestItem.vue b/fe/PDA/mycomponents/comRequest/comThirdLocationRequestItem.vue new file mode 100644 index 000000000..86cb3b591 --- /dev/null +++ b/fe/PDA/mycomponents/comRequest/comThirdLocationRequestItem.vue @@ -0,0 +1,89 @@ + + + + + + \ No newline at end of file diff --git a/fe/PDA/mycomponents/coms/task/comThird.vue b/fe/PDA/mycomponents/coms/task/comThird.vue index c96ddae6c..699de49e6 100644 --- a/fe/PDA/mycomponents/coms/task/comThird.vue +++ b/fe/PDA/mycomponents/coms/task/comThird.vue @@ -24,6 +24,19 @@ class="text_darkblue">{{dataContent.creationTime===null?'无':dataContent.creationTime| formatDate}} + + + + + + + + + + + + @@ -59,10 +72,30 @@ formatDate: function(val) { return dateFormat(val) } + }, + methods: { + finish() { + showConfirmMsg("是否确认终止?", callback => { + if (callback) { + this.$emit("finish", this.dataContent) + } + }) + }, + getScanCount(data){ + var count = 0; + this.dataContent.details.forEach(res => { + count = count + res.handledQty + }) + if (count == 0) { + return false + } + return true; + } + } } + \ No newline at end of file diff --git a/fe/PDA/mycomponents/wincom/winScanByProductCode.vue b/fe/PDA/mycomponents/wincom/winScanByProductCode.vue index 83eef63c3..e4743dde9 100644 --- a/fe/PDA/mycomponents/wincom/winScanByProductCode.vue +++ b/fe/PDA/mycomponents/wincom/winScanByProductCode.vue @@ -88,7 +88,8 @@ itemName:item.itemName, itemDesc1:item.itemDesc1, stdPackQty: item.stdPackQty, - uom: item.uom + uom: item.uom, + qty:item.qty }; uni.hideLoading(); this.callBack(); diff --git a/fe/PDA/pages.js b/fe/PDA/pages.js index f8fd0864b..f98ef2ffd 100644 --- a/fe/PDA/pages.js +++ b/fe/PDA/pages.js @@ -706,6 +706,20 @@ module.exports = () => ({ "enablePullDownRefresh": true } }, + { + "path": "pages/request/thirdLocationRequestList", + "style": { + "navigationBarTitleText": "三方库发货申请", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/request/thirdLocationRequestListDetail", + "style": { + "navigationBarTitleText": "三方库发货申请详情", + "enablePullDownRefresh": true + } + }, { "path": "pages/task/thirdLocation", "style": { diff --git a/fe/PDA/pages.json b/fe/PDA/pages.json index d213cad09..db35d2245 100644 --- a/fe/PDA/pages.json +++ b/fe/PDA/pages.json @@ -691,6 +691,21 @@ "enablePullDownRefresh": true } }, + { + "path": "pages/request/thirdLocationRequestList", + "style": { + "navigationBarTitleText": "三方库发货申请", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/request/thirdLocationRequestListDetail", + "style": { + "navigationBarTitleText": "三方库发货申请详情", + "enablePullDownRefresh": true + } + }, + { "path": "pages/task/thirdLocation", "style": { diff --git a/fe/PDA/pages/request/thirdLocationRequest.vue b/fe/PDA/pages/request/thirdLocationRequest.vue index 21931ccfc..257a9f5ec 100644 --- a/fe/PDA/pages/request/thirdLocationRequest.vue +++ b/fe/PDA/pages/request/thirdLocationRequest.vue @@ -28,10 +28,10 @@ - + + 单件码 + {{item.singleCodeRequest}} + 单位 {{item.uom}} @@ -267,7 +267,7 @@ let balanceRes = await getBalancesByFilterAsync(balanceParam); if(balanceRes.totalCount==0){ - this.showMessage("单件码【" + result.itemCode + "】在库位【"+this.fromLocationCode+"】没有库存") + this.showMessage("单件码【" + result.scanCode + "】在库位【"+this.fromLocationCode+"】没有库存") return; } @@ -282,12 +282,13 @@ } var item = { + singleCodeRequest:result.scanCode, itemCode: result.itemCode, itemName: result.itemName, itemDesc1: result.itemDesc1, stdPackQty: result.stdPackQty, uom: result.uom, - qty: result.stdPackQty + qty: result.qty } this.allDataList.unshift(item) @@ -297,6 +298,7 @@ this.loadingType = ""; this.showList = this.getDataPage(this.pageNo, this.pageSize) this.updateTitle() + this.$refs.scanPackPopup.closeScanPopup() this.$forceUpdate(); }, @@ -310,8 +312,18 @@ locations(locationCode).then(res => { uni.hideLoading(); if (res) { - this.toLocationCode = res.code - this.toLocationArea =res.areaCode; + if(res.code==this.fromLocationCode){ + this.showMessage('目标库位【' + locationCode + "】不能与来源库位【"+this.fromLocationCode+"]一致"); + }else { + if(res.type==14){ + this.toLocationCode = res.code + this.toLocationArea =res.areaCode; + }else { + this.showMessage('目标库位【' + locationCode + '】的库位类型不是三方库'); + } + } + + } else { this.showMessage('目标库位【' + locationCode + '】不存在'); } @@ -363,7 +375,6 @@ .catch(err => { uni.hideLoading(); this.showMessage(err.message); - }); }, @@ -394,6 +405,7 @@ itemDesc1: res.itemDesc1, uom: res.uom, qty: res.qty, + singleCodeRequest:res.singleCodeRequest, stdPackQty: res.stdPackQty, toLocationCode:this.toLocationCode, toLocationArea:this.toLocationArea, diff --git a/fe/PDA/pages/request/thirdLocationRequestList.vue b/fe/PDA/pages/request/thirdLocationRequestList.vue new file mode 100644 index 000000000..a1402ade9 --- /dev/null +++ b/fe/PDA/pages/request/thirdLocationRequestList.vue @@ -0,0 +1,191 @@ + + + + \ No newline at end of file diff --git a/fe/PDA/pages/request/thirdLocationRequestListDetail.vue b/fe/PDA/pages/request/thirdLocationRequestListDetail.vue new file mode 100644 index 000000000..8aa7be751 --- /dev/null +++ b/fe/PDA/pages/request/thirdLocationRequestListDetail.vue @@ -0,0 +1,223 @@ + + + + + \ No newline at end of file diff --git a/fe/PDA/pages/return/purchaseReturnRequestApprove.vue b/fe/PDA/pages/return/purchaseReturnRequestApprove.vue index 8cb04a5bf..47051cbff 100644 --- a/fe/PDA/pages/return/purchaseReturnRequestApprove.vue +++ b/fe/PDA/pages/return/purchaseReturnRequestApprove.vue @@ -167,7 +167,7 @@ openDetail(item) { uni.navigateTo({ - url: './purchaseReturnRequestApprove_detail?id=' + item.id + url: './purchaseReturnRequestApprove_detail?id=' + item.id +"&requestStatus="+item.requestStatus }); }, diff --git a/fe/PDA/pages/return/purchaseReturnRequestApprove_detail.vue b/fe/PDA/pages/return/purchaseReturnRequestApprove_detail.vue index ca9fd43db..62db1d212 100644 --- a/fe/PDA/pages/return/purchaseReturnRequestApprove_detail.vue +++ b/fe/PDA/pages/return/purchaseReturnRequestApprove_detail.vue @@ -8,18 +8,20 @@ - - + + {{item1.title}} {{item1.content}} - - + + + + ` - + @@ -49,7 +51,8 @@ return { dataContent: {}, dataList: [], - id: "" + id: "", + isShowButton:false }; }, mounted: function() { @@ -59,6 +62,12 @@ if (option.id != undefined) { this.id = option.id this.getDetail(option.id); + var requestStatus =option.requestStatus + if(requestStatus==2){ + this.isShowButton=true + }else { + this.isShowButton=false + } } }, //返回首页 diff --git a/fe/PDA/pages/return/returnBeforPutaway.vue b/fe/PDA/pages/return/returnBeforPutaway.vue index 75e19d382..10d7c7474 100644 --- a/fe/PDA/pages/return/returnBeforPutaway.vue +++ b/fe/PDA/pages/return/returnBeforPutaway.vue @@ -1,6 +1,7 @@