From a1afc2def2480b21aa8a818c8b576aae68f43b14 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Tue, 9 Apr 2024 18:46:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=80=80=E8=B4=A7=E5=92=8C?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E5=BA=93=E5=8F=91=E8=B4=A7=E5=92=8C=E6=94=B6?= =?UTF-8?q?=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PDA/api/index.js | 7 + .../wincom/winScanByProductCode.vue | 49 +- fe/PDA/pages.js | 22 + fe/PDA/pages.json | 23 +- fe/PDA/pages/login/index.vue | 4 +- fe/PDA/pages/record/productionReturn.vue | 343 ++++++----- fe/PDA/pages/record/thirdLocationDeviler.vue | 553 ++++++++++++++++++ fe/PDA/pages/task/thirdLocation.vue | 193 ++++++ fe/PDA/pages/task/thirdLocationDetail.vue | 410 +++++++++++++ 9 files changed, 1423 insertions(+), 181 deletions(-) create mode 100644 fe/PDA/pages/record/thirdLocationDeviler.vue create mode 100644 fe/PDA/pages/task/thirdLocation.vue create mode 100644 fe/PDA/pages/task/thirdLocationDetail.vue diff --git a/fe/PDA/api/index.js b/fe/PDA/api/index.js index 0d5f75717..63552f36b 100644 --- a/fe/PDA/api/index.js +++ b/fe/PDA/api/index.js @@ -1421,3 +1421,10 @@ export const finshContainerJob = (id, params) => request( method: "post" }) +//生产退库详情 +export const customerReturn = (params) => request( + devUrl + "/api/pda/job/production-return", { // + method: "post", + data: params, + }); + diff --git a/fe/PDA/mycomponents/wincom/winScanByProductCode.vue b/fe/PDA/mycomponents/wincom/winScanByProductCode.vue index 23d513a90..e525b4b4e 100644 --- a/fe/PDA/mycomponents/wincom/winScanByProductCode.vue +++ b/fe/PDA/mycomponents/wincom/winScanByProductCode.vue @@ -29,7 +29,7 @@ import winComScan from '@/mycomponents/wincom/winComScan.vue' import comMessage from '@/mycomponents/common/comMessage.vue' import { - getInventoryLabel + getitems, } from '@/api/index.js'; export default { @@ -76,16 +76,21 @@ title: '扫描中...', mask: true }) - //可以增加配置是否要查询标签表 - getInventoryLabel(result.data.code).then(label => { - if (label) { + + getitems(result.data.code).then(item => { + if (item) { this.losefocus(); //扫描完失去焦点,扫描完成后在业务里调用getfocus()方法 - let result = this.getLabelResult(label); - this.scanResult = result; + this.scanResult = { + itemCode:item.code, + itemName:item.name, + itemDesc1:item.desc1, + stdPackQty: item.stdPackQty, + uom: item.basicUom + }; uni.hideLoading(); this.callBack(); } else { - this.showMessage('标签【' + result.data.code + '】,在标签表中不存在') + this.showMessage('单件码【' + result.data.code + '】,在物料表中不存在') uni.hideLoading(); } }).catch(err => { @@ -95,35 +100,7 @@ } }, - getLabelResult(label) { - let labelResult = { - sucess: true, - message: "", - data: label, - // data: { - // isPack: true, - // // scanType: null, - // itemCode: label.itemCode, - // itemName: label.itemName, - // itemDesc1: label.itemDesc1, - // itemDesc2: label.itemDesc2, - // lot: label.lot, - // qty: label.qty, - // uom: label.uom, - // poNumber: label.poNumber, - // // asn: null, - // packingCode: label.code, - // supplierBatch: label.supplierBatch, - // // order: null, - // // poLine: null, - // code: label.code, - // } - - }; - labelResult.data.isPack = true; - labelResult.data.packingCode = label.code; - return labelResult; - }, + callBack() { this.$refs.comscan.clear(); diff --git a/fe/PDA/pages.js b/fe/PDA/pages.js index 0a692b7ff..f6ee0f21e 100644 --- a/fe/PDA/pages.js +++ b/fe/PDA/pages.js @@ -624,8 +624,30 @@ module.exports = () => ({ "navigationBarTitleText": "客户退货", "enablePullDownRefresh": true } + }, + { + "path": "pages/record/thirdLocationDeviler", + "style": { + "navigationBarTitleText": "三方库发货", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/task/thirdLocation", + "style": { + "navigationBarTitleText": "三方库收货", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/task/thirdLocationDetail", + "style": { + "navigationBarTitleText": "三方库收货详情", + "enablePullDownRefresh": true + } } + ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/fe/PDA/pages.json b/fe/PDA/pages.json index a3d1ea405..e254820aa 100644 --- a/fe/PDA/pages.json +++ b/fe/PDA/pages.json @@ -602,10 +602,29 @@ "navigationBarTitleText": "客户退货", "enablePullDownRefresh": true } + }, + { + "path": "pages/record/thirdLocationDeviler", + "style": { + "navigationBarTitleText": "三方库发货", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/task/thirdLocation", + "style": { + "navigationBarTitleText": "三方库收货", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/task/thirdLocationDetail", + "style": { + "navigationBarTitleText": "三方库收货详情", + "enablePullDownRefresh": true + } } - - ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/fe/PDA/pages/login/index.vue b/fe/PDA/pages/login/index.vue index 9127528da..c039018b6 100644 --- a/fe/PDA/pages/login/index.vue +++ b/fe/PDA/pages/login/index.vue @@ -36,8 +36,8 @@ 密码 - - + diff --git a/fe/PDA/pages/record/productionReturn.vue b/fe/PDA/pages/record/productionReturn.vue index 3c6b19d9a..f19bd76f4 100644 --- a/fe/PDA/pages/record/productionReturn.vue +++ b/fe/PDA/pages/record/productionReturn.vue @@ -1,56 +1,70 @@