From 06f16ecca2dd9bd78e522fb58fe7f16f4ca7958a Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 8 Dec 2023 17:27:15 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/directory.js | 37 ++++++- mycomponents/common/comListItem.vue | 50 +++++++++- mycomponents/detail/comDetailCard.vue | 8 +- mycomponents/detail/recordDetailBasicInfo.vue | 1 + .../detail/requestDetailBasicInfo.vue | 4 +- mycomponents/job/jobRequestInfo.vue | 15 ++- mycomponents/package/packageDetailPopup.vue | 3 +- mycomponents/record/recordMainInfo.vue | 52 +++++++--- mycomponents/request/requestCommonInfo.vue | 2 - .../request/requestListCommonInfo.vue | 3 +- .../customerReturn/coms/requestInfoPopup.vue | 2 + pages/deliver/coms/requestInfoPopup.vue | 6 +- pages/inspect/coms/requestInfoPopup.vue | 10 +- .../issue/coms/comIssueRequestDetailCard.vue | 7 +- pages/issue/coms/comIssueRequestInfo.vue | 3 +- pages/issue/coms/requestInfoPopup.vue | 3 + pages/issue/request/issueRequestDetail.vue | 2 +- .../coms/requestInfoPopup.vue | 20 +++- .../coms/requestDetailInfoPopup.vue | 12 --- .../productPutaway/coms/requestInfoPopup.vue | 2 + pages/productionReturn/coms/comReturn.vue | 1 - .../coms/requestInfoPopup.vue | 2 + .../purchaseReceipt/coms/receiptInfoPopup.vue | 8 +- .../coms/comReturnRequestCard.vue | 2 +- .../coms/requestDetailInfoPopup.vue | 99 ++++++++++--------- .../purchaseReturn/coms/requestInfoPopup.vue | 11 ++- pages/purchaseReturn/coms/returnInfoPopup.vue | 8 +- pages/purchaseReturn/job/returnDetail.vue | 2 +- pages/putaway/coms/requestInfoPopup.vue | 2 + pages/repleinsh/coms/repleinshInfoPopup.vue | 19 +++- pages/repleinsh/coms/requestInfoPopup.vue | 20 +++- pages/scrap/coms/requestInfoPopup.vue | 3 +- .../supplierDeliver/coms/recordInfoPopup.vue | 3 +- pages/unPlanned/coms/requestIssInfoPopup.vue | 3 +- pages/unPlanned/coms/requestRecInfoPopup.vue | 3 +- static/config.json | 2 +- 36 files changed, 314 insertions(+), 116 deletions(-) diff --git a/common/directory.js b/common/directory.js index 4ad973c2..0ae9dfd8 100644 --- a/common/directory.js +++ b/common/directory.js @@ -15,6 +15,7 @@ let inspectFailedReasonList = []; let nextActionList = []; let inspectTypeList = []; let sampleMethodList = []; +let transferModeList = []; // 获取业务类型字典项 @@ -46,7 +47,8 @@ export function clearCacheData() { inspectFailedReasonList = []; nextActionList = []; inspectTypeList = []; - sampleMethodList =[] + sampleMethodList =[]; + transferModeList = []; } //获取字典信息 @@ -185,6 +187,17 @@ export function getLocationTypeName(value) { return location == '' ? value : location.label; } + +//获取库位类型名称 +export function getLocationTypeNameList(lst) { + let desc = ''; + lst.forEach(res => { + desc += getLocationTypeInfo(res).label + "," + }) + desc = desc.slice(0, -1); + return desc; +} + //获取计量单位 export function getUnitInfo(value) { var resultInfo = ""; @@ -282,7 +295,7 @@ export function getInventoryStatusName(value) { } } -//获取状态描述 +//获取状态描述 list export function getInventoryStatusDesc(lst) { let desc = ''; lst.forEach(res => { @@ -404,5 +417,25 @@ export function getSampleMethod(value) { return resultInfo } +//获取运输方式 +export function getTransferModeName(value) { + var resultInfo = ""; + if (transferModeList.length == 0) { + transferModeList = getDirectoryInfo("transfer_mode") + } + if (transferModeList.length > 0) { + for (let item of transferModeList) { + if (item.value == value) { + resultInfo = item.label + break; + } + } + } + return resultInfo +} + + + + diff --git a/mycomponents/common/comListItem.vue b/mycomponents/common/comListItem.vue index 4af08b7a..ec9b85b1 100644 --- a/mycomponents/common/comListItem.vue +++ b/mycomponents/common/comListItem.vue @@ -6,7 +6,15 @@ {{item.content}} {{formatDate(item.content)}} {{boolean(item.content)}} - + {{getTransferModeName(item.content)}} + {{getLocationTypeNameList(getDirectoryItemArray(item.content))}} + {{getUnitInfo(item.content)}} + {{getInspectType(item.content)}} + {{getSampleMethod(item.content)}} + {{getRequestStateInfo(item.content)}} + {{getInventoryStatusName(item.content)}} + {{getLocationTypeName(item.content)}} + @@ -17,6 +25,19 @@ import { dateFormat } from '@/common/basic.js'; + + import { + getTransferModeName, + getLocationTypeNameList, + getDirectoryItemArray, + getUnitInfo, + getInspectType, + getSampleMethod, + getRequestStateInfo, + getInventoryStatusName, + getLocationTypeName + + } from '@/common/directory.js'; export default { components: {}, data() { @@ -50,6 +71,33 @@ }, formatDate(val) { return dateFormat(val) + }, + getTransferModeName(value){ + return getTransferModeName(value) + }, + getLocationTypeNameList(value){ + return getLocationTypeNameList(value) + }, + getDirectoryItemArray(value){ + return getDirectoryItemArray(value) + }, + getUnitInfo(value){ + return getUnitInfo(value).label + }, + getInspectType(value){ + return getInspectType(value) + }, + getSampleMethod(value){ + return getSampleMethod(value) + }, + getRequestStateInfo(value){ + return getRequestStateInfo(value).label + }, + getInventoryStatusName(value){ + return getInventoryStatusName(value) + }, + getLocationTypeName(value){ + return getLocationTypeName(value) } } } diff --git a/mycomponents/detail/comDetailCard.vue b/mycomponents/detail/comDetailCard.vue index 258e90c0..f3c72706 100644 --- a/mycomponents/detail/comDetailCard.vue +++ b/mycomponents/detail/comDetailCard.vue @@ -1,6 +1,6 @@ diff --git a/pages/repleinsh/coms/requestInfoPopup.vue b/pages/repleinsh/coms/requestInfoPopup.vue index 4e7f864b..5815fb83 100644 --- a/pages/repleinsh/coms/requestInfoPopup.vue +++ b/pages/repleinsh/coms/requestInfoPopup.vue @@ -14,11 +14,11 @@ 从库位类型范围 : - {{dataContent.fromLocationTypes}} + {{getLocationTypeNameList(getDirectoryItemArray(dataContent.fromLocationTypes))}} 到库位类型范围 : - {{dataContent.toLocationTypes}} + {{getLocationTypeNameList(getDirectoryItemArray(dataContent.toLocationTypes))}} @@ -44,6 +44,15 @@ diff --git a/pages/scrap/coms/requestInfoPopup.vue b/pages/scrap/coms/requestInfoPopup.vue index 04bdcb96..f468e6d3 100644 --- a/pages/scrap/coms/requestInfoPopup.vue +++ b/pages/scrap/coms/requestInfoPopup.vue @@ -37,7 +37,8 @@ content: this.dataContent.fromWarehouseCode }, { title: '从库位类型范围', - content: this.dataContent.fromLocationTypes + content: this.dataContent.fromLocationTypes, + type:"locationType" },{ title: '从库区代码范围', content: this.dataContent.fromAreaCodes, diff --git a/pages/supplierDeliver/coms/recordInfoPopup.vue b/pages/supplierDeliver/coms/recordInfoPopup.vue index 7603a1b8..12d5abfb 100644 --- a/pages/supplierDeliver/coms/recordInfoPopup.vue +++ b/pages/supplierDeliver/coms/recordInfoPopup.vue @@ -75,7 +75,8 @@ content: this.dataContent.carrierCode },{ title: '运输方式', - content: this.dataContent.transferMode + content: this.dataContent.transferMode, + type:"transferMode" },{ title: '车牌号', content: this.dataContent.vehiclePlateNumber diff --git a/pages/unPlanned/coms/requestIssInfoPopup.vue b/pages/unPlanned/coms/requestIssInfoPopup.vue index c7bda5c4..eac873df 100644 --- a/pages/unPlanned/coms/requestIssInfoPopup.vue +++ b/pages/unPlanned/coms/requestIssInfoPopup.vue @@ -37,7 +37,8 @@ content: this.dataContent.fromWarehouseCode }, { title: '从库位类型范围', - content: this.dataContent.fromLocationTypes + content: this.dataContent.fromLocationTypes, + type:"locationType" },{ title: '从库区代码范围', content: this.dataContent.fromAreaCodes, diff --git a/pages/unPlanned/coms/requestRecInfoPopup.vue b/pages/unPlanned/coms/requestRecInfoPopup.vue index d666cb2d..d7a281ca 100644 --- a/pages/unPlanned/coms/requestRecInfoPopup.vue +++ b/pages/unPlanned/coms/requestRecInfoPopup.vue @@ -37,7 +37,8 @@ content: this.dataContent.toWarehouseCode }, { title: '到库位类型范围', - content: this.dataContent.toLocationTypes + content: this.dataContent.toLocationTypes, + type:"locationType" },{ title: '到库区代码范围', content: this.dataContent.toAreaCodes, diff --git a/static/config.json b/static/config.json index 1c570702..4f688e61 100644 --- a/static/config.json +++ b/static/config.json @@ -18,7 +18,7 @@ "request_url": { "name": "request_url", - "value": "http://192.168.0.230:12080/admin-api", + "value": "http://dev.ccwin-in.com:25100/api/admin-api", "dev2": "http://192.168.0.157:12080/admin-api", "chefang": "http://192.168.0.178:12080/admin-api", "chenxinming": "http://192.168.0.230:12080/admin-api", From 73eca7a1f3f06e41d8c242bd62e627d2e45705ba Mon Sep 17 00:00:00 2001 From: Niext <85552560@qq.com> Date: Fri, 8 Dec 2023 20:55:09 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E9=80=80=E8=B4=A7=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/style/pdabasic.css | 9 +++++++++ pages/purchaseReturn/job/returnDetail.vue | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/common/style/pdabasic.css b/common/style/pdabasic.css index 8fc37203..d26c7aae 100644 --- a/common/style/pdabasic.css +++ b/common/style/pdabasic.css @@ -716,6 +716,15 @@ page { height: 100%; } +.page-header { + background-color: #fff; + font-size: 35rpx; + padding: 10rpx 20rpx; +} + +.page-header .header_item { + padding: 5rpx 0rpx; +} .page-main { flex: 1; diff --git a/pages/purchaseReturn/job/returnDetail.vue b/pages/purchaseReturn/job/returnDetail.vue index 5c205316..9eec579d 100644 --- a/pages/purchaseReturn/job/returnDetail.vue +++ b/pages/purchaseReturn/job/returnDetail.vue @@ -1,10 +1,10 @@ @@ -63,7 +65,7 @@ import location from '@/mycomponents/balance/location.vue' import comMessage from '@/mycomponents/common/comMessage.vue' import detailInfoPopup from '@/pages/productionReceipt/coms/detailInfoPopup.vue' - + import comIssueRequestInfo from '@/pages/issue/coms/comIssueRequestInfo.vue' import { getDetailOption, getEditRemoveOption @@ -81,7 +83,8 @@ balanceQtyEdit, location, comMessage, - detailInfoPopup + detailInfoPopup, + comIssueRequestInfo }, props: { dataContent: { diff --git a/pages/issue/coms/comScanIssuePack.vue b/pages/issue/coms/comScanIssuePack.vue index 1b2bc367..cbc52bc9 100644 --- a/pages/issue/coms/comScanIssuePack.vue +++ b/pages/issue/coms/comScanIssuePack.vue @@ -7,7 +7,7 @@ 扫描箱码 关闭 - @@ -154,16 +145,15 @@ this.$refs.comIssueDetailCard.forEach(r => { r.resizeCollapse(); }) - this.$refs.mainCollapse.forEach(r => { - r.childrens.forEach(i => { - i.init(); - }) - r.resize(); - }) + // this.$refs.mainCollapse.forEach(r => { + // r.childrens.forEach(i => { + // i.init(); + // }) + // r.resize(); + // }) }); }, - //接收 receive(callback) { if (this.id != null) { @@ -391,7 +381,7 @@ }) } this.resizeCollapse(); - item.handleQty=itemHandleQty; + item.handleQty = itemHandleQty; }, scanPopupGetFocus() { From 240b2894ad8502f19c0cf9556aa642972b263945 Mon Sep 17 00:00:00 2001 From: niexiting <85552560@qq.com> Date: Mon, 11 Dec 2023 14:24:52 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E6=94=B6=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../job/productionReceiptDetail.vue | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/pages/productionReceipt/job/productionReceiptDetail.vue b/pages/productionReceipt/job/productionReceiptDetail.vue index d6e03ab7..a8345727 100644 --- a/pages/productionReceipt/job/productionReceiptDetail.vue +++ b/pages/productionReceipt/job/productionReceiptDetail.vue @@ -1,21 +1,29 @@