From 3ebfe853f0ef4a9f1e84cb49cf5c32eaad0fad2b Mon Sep 17 00:00:00 2001 From: niexiting <85552560@qq.com> Date: Thu, 21 Dec 2023 15:20:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B0=83=E6=8B=A8=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E5=92=8C=E7=9B=B4=E6=8E=A5=E4=B8=8A=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/request2.js | 16 +++ common/balance.js | 43 +++++++- common/record.js | 1 + common/style/pdabasic.css | 1 + pages/putaway/record/putawayRecord.vue | 130 +++++++++++++++++-------- pages/transfer/job/receiptDetail.vue | 94 +++++++++++------- 6 files changed, 211 insertions(+), 74 deletions(-) diff --git a/api/request2.js b/api/request2.js index 94572f52..8ee91e69 100644 --- a/api/request2.js +++ b/api/request2.js @@ -304,6 +304,22 @@ export function getBasicLocationByCode(code) { }); } + +/** + * 校验库位零件关系 + * @param {*} + * + */ +export function validateItemAndLocation(parmas) { + return request({ + url: baseApi + "/wms/location/validate", + method: "post", + data: parmas, + }); +} + + + /** * 查询物品信息接口 * @param {*} code 物品代码 diff --git a/common/balance.js b/common/balance.js index 77dcd174..84c7073e 100644 --- a/common/balance.js +++ b/common/balance.js @@ -4,6 +4,47 @@ import { getBalanceByFilter } from '@/api/request2.js'; +/** + * + 获取管理精度查询策略参数 + * @param {*} + * + */ +export function getPrecisionStrategyParams(dataSource) { + +} +/** + * + 获取管理精度查询策略参数 + * @param {*} + * + */ +export function getPrecisionStrategyParamsByLocation(detailSource,toLocationCode) { + var itemList = [] + detailSource.forEach(item => { + item.subList.forEach(detail => { + if (detail.scaned) { + detail.toLocationCode = toLocationCode; + var filterResult = itemList.filter(res => { + if (res.itemCode == item.itemCode && + res.locationCode == detail.toLocationCode) { + return res + } + }) + //去掉重复元素 + if (filterResult.length == 0) { + var result = { + itemCode: item.itemCode, + locationCode: detail.toLocationCode + } + itemList.push(result) + } + + } + }) + }) + return itemList; +} /** * "itemCode": [], @@ -19,7 +60,7 @@ export function getPrecisionStrategyList(itemList, callback) { success: true, message: '' }; - + getPrecisionStrategy(itemList).then(res => { if (res.data == null) { result.success = false diff --git a/common/record.js b/common/record.js index ff25f732..f931a55c 100644 --- a/common/record.js +++ b/common/record.js @@ -19,6 +19,7 @@ export function createItemInfo(balance, pack) { } return item; } + export function createDetailInfo(data, pack) { data.scaned = true; // data.toInventoryStatus = this.toInventoryStatus == "" ? data.inventoryStatus : this.toInventoryStatus; diff --git a/common/style/pdabasic.css b/common/style/pdabasic.css index 96e132e0..78a0b6d2 100644 --- a/common/style/pdabasic.css +++ b/common/style/pdabasic.css @@ -725,6 +725,7 @@ page { .page-header .header_item { /* padding-left: 10rpx; */ padding: 5rpx 10rpx; + font-size:15px ; } .page-header .header_job_top { diff --git a/pages/putaway/record/putawayRecord.vue b/pages/putaway/record/putawayRecord.vue index 9064f814..ac335ec7 100644 --- a/pages/putaway/record/putawayRecord.vue +++ b/pages/putaway/record/putawayRecord.vue @@ -41,7 +41,8 @@