From bd9e6a0afb9411a9b018200332e7d3ecf75e12a5 Mon Sep 17 00:00:00 2001 From: niexiting <85552560@qq.com> Date: Tue, 5 Mar 2024 15:26:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=87=E8=B4=AD=E6=94=B6?= =?UTF-8?q?=E8=B4=A7=E3=80=81=E4=BF=AE=E6=94=B9=E5=8C=85=E8=A3=85=E8=A7=84?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/request2.js | 23 +++++++-- src/common/basic.js | 2 +- src/common/directory.js | 22 +++++++-- src/common/style/new_style.css | 12 ++--- src/mycomponents/balance/pack.vue | 2 +- src/mycomponents/common/comListItem.vue | 8 ++-- src/mycomponents/detail/detailBalanceInfo.vue | 8 ++-- src/mycomponents/detail/detailItemInfo.vue | 8 ++-- src/mycomponents/detail/detailPackageInfo.vue | 6 +-- .../detail/detailRecommendInfo.vue | 8 ++-- .../detail/requestDetailBasicInfo.vue | 4 +- src/mycomponents/item/itemCompareQty.vue | 4 +- src/mycomponents/job/jobTopAsn.vue | 3 +- src/mycomponents/qty/RecommendQty.vue | 12 +++-- src/mycomponents/qty/compareQty.vue | 9 ++-- src/mycomponents/qty/packUnit.vue | 47 +++++++++++++++++++ src/mycomponents/qty/uom.vue | 8 ++-- src/mycomponents/recommend/recommend.vue | 4 +- src/pages/index/index.vue | 35 +++++++++----- .../inspect/coms/inspectComDetailCard.vue | 14 +++--- src/pages/inspect/coms/inspectInfoPopup.vue | 8 ++-- src/pages/inspect/job/inspectResult.vue | 10 ++-- .../purchaseReceipt/job/receiptDetail.vue | 1 - src/static/config.js | 3 +- 24 files changed, 179 insertions(+), 82 deletions(-) create mode 100644 src/mycomponents/qty/packUnit.vue diff --git a/src/api/request2.js b/src/api/request2.js index 56e24930..028a6e71 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -999,7 +999,7 @@ export function createPutAwayRequest(number) { }); } - + /** * 采购上架 任务 * status 任务状态 @@ -3643,8 +3643,23 @@ export function getMainMessage() { */ export function appCheckUpdate() { return uni.request({ - url:"http://192.168.0.119:9527/appUpdate.json", - method:"GET", - data:{} + url: "http://192.168.0.119:9527/appUpdate.json", + method: "GET", + data: {} }) +} + +// var params = { +// filters: filters, +// pageNo: 1, +// pageSize: 100, +// } + +//获取包装规格 +export function getPackageUnitList(params) { + return request({ + url: baseApi + "/wms/packageunit/senior", + method: "post", + data: params, + }); } \ No newline at end of file diff --git a/src/common/basic.js b/src/common/basic.js index b725be39..2c70dc66 100644 --- a/src/common/basic.js +++ b/src/common/basic.js @@ -174,7 +174,7 @@ export function getLocationTypeName(value) { } //获取计量单位 -export function getUnitInfo(value) { +export function getUomInfo(value) { var resultInfo = ""; if (uomList.length == 0) { uomList = getDirectoryInfo("uom") diff --git a/src/common/directory.js b/src/common/directory.js index 934b4322..e7aa2ebc 100644 --- a/src/common/directory.js +++ b/src/common/directory.js @@ -20,9 +20,6 @@ let transferModeList = []; let countStageList = []; - - - // 获取业务类型字典项 export function getBusinessTypeDesc(type) { if (type == "SupplierDeliver") { @@ -249,7 +246,7 @@ export function getLocationTypeNameList(lst) { } //获取计量单位 -export function getUnitInfo(value) { +export function getUomInfo(value) { var resultInfo = ""; if (uomList.length == 0) { uomList = getDirectoryInfo("uom") @@ -514,3 +511,20 @@ export function getCountStageName(value) { } return resultInfo } + +//获取包装规格 +export function getPackUnitName(value) { + var resultInfo = ""; + if (packUnitList.length == 0) { + packUnitList = uni.getStorageSync('packunit'); + } + if (packUnitList.length > 0) { + for (let item of packUnitList) { + if (item.code == value) { + resultInfo = item.name + break; + } + } + } + return resultInfo +} \ No newline at end of file diff --git a/src/common/style/new_style.css b/src/common/style/new_style.css index 2216cde2..22eed396 100644 --- a/src/common/style/new_style.css +++ b/src/common/style/new_style.css @@ -2214,7 +2214,7 @@ button::after { .request_state_un-doing { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); + /* background: rgba(95, 203, 148, 0.2); */ color: #22AF68; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; @@ -2222,7 +2222,7 @@ button::after { .job_state_doing { font-size: 28rpx; - background: rgba(236, 156, 0, 0.2); + /* background: rgba(236, 156, 0, 0.2); */ color: #EC9C00; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; @@ -2230,7 +2230,7 @@ button::after { .job_state_un-doing { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); + /* background: rgba(95, 203, 148, 0.2); */ color: #22AF68; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; @@ -2238,7 +2238,7 @@ button::after { .job_state_completed { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); + /* background: rgba(95, 203, 148, 0.2); */ color: #22AF68; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; @@ -2246,7 +2246,7 @@ button::after { .job_state_close { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); + /* background: rgba(95, 203, 148, 0.2); */ color: #22AF68; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; @@ -2255,7 +2255,7 @@ button::after { .job_state_cancelled { font-size: 28rpx; - background: rgba(95, 203, 148, 0.2); + /* background: rgba(95, 203, 148, 0.2); */ color: #ff0000; padding: 10rpx 20rpx 10rpx 20rpx; border-radius: 10rpx; diff --git a/src/mycomponents/balance/pack.vue b/src/mycomponents/balance/pack.vue index dc010849..f34c1ec7 100644 --- a/src/mycomponents/balance/pack.vue +++ b/src/mycomponents/balance/pack.vue @@ -1,6 +1,6 @@ diff --git a/src/mycomponents/common/comListItem.vue b/src/mycomponents/common/comListItem.vue index ec9b85b1..6d7794f6 100644 --- a/src/mycomponents/common/comListItem.vue +++ b/src/mycomponents/common/comListItem.vue @@ -8,7 +8,7 @@ {{boolean(item.content)}} {{getTransferModeName(item.content)}} {{getLocationTypeNameList(getDirectoryItemArray(item.content))}} - {{getUnitInfo(item.content)}} + {{getUomInfo(item.content)}} {{getInspectType(item.content)}} {{getSampleMethod(item.content)}} {{getRequestStateInfo(item.content)}} @@ -30,7 +30,7 @@ getTransferModeName, getLocationTypeNameList, getDirectoryItemArray, - getUnitInfo, + getUomInfo, getInspectType, getSampleMethod, getRequestStateInfo, @@ -81,8 +81,8 @@ getDirectoryItemArray(value){ return getDirectoryItemArray(value) }, - getUnitInfo(value){ - return getUnitInfo(value).label + getUomInfo(value){ + return getUomInfo(value).label }, getInspectType(value){ return getInspectType(value) diff --git a/src/mycomponents/detail/detailBalanceInfo.vue b/src/mycomponents/detail/detailBalanceInfo.vue index ea844ea5..573e393f 100644 --- a/src/mycomponents/detail/detailBalanceInfo.vue +++ b/src/mycomponents/detail/detailBalanceInfo.vue @@ -15,7 +15,7 @@ 数量 : {{Number(dataContent.qty)}} - {{getUnitInfo(dataContent.uom)}} + {{getUomInfo(dataContent.uom)}} @@ -33,7 +33,7 @@ import { getInventoryStatusName, getStdPackUnitInfo, - getUnitInfo + getUomInfo } from '@/common/directory.js'; export default { components: {}, @@ -55,8 +55,8 @@ getInventoryStatusInfo(value) { return getInventoryStatusName(value) }, - getUnitInfo(value){ - return getUnitInfo(value).label + getUomInfo(value){ + return getUomInfo(value).label } } } diff --git a/src/mycomponents/detail/detailItemInfo.vue b/src/mycomponents/detail/detailItemInfo.vue index dfbaf508..b1d54b80 100644 --- a/src/mycomponents/detail/detailItemInfo.vue +++ b/src/mycomponents/detail/detailItemInfo.vue @@ -10,13 +10,13 @@ 数量 : - {{dataContent.qty}}{{getUnitInfo(dataContent.uom)}} + {{dataContent.qty}}{{getUomInfo(dataContent.uom)}} + + + \ No newline at end of file diff --git a/src/mycomponents/qty/uom.vue b/src/mycomponents/qty/uom.vue index bb138ba3..d2bcc540 100644 --- a/src/mycomponents/qty/uom.vue +++ b/src/mycomponents/qty/uom.vue @@ -1,13 +1,13 @@