From b0e7fe5312eb0c8a0c7bb6e7997cda40a46378e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com> Date: Fri, 25 Oct 2024 13:33:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A0=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=AE=8C=E5=B7=A5=202024/8/2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/request2.js | 12 + src/pages/fg/coms/comNoReceiptPopup.vue | 450 +++++++++++++----------- src/pages/fg/receiptNoPlan.vue | 41 ++- 3 files changed, 280 insertions(+), 223 deletions(-) diff --git a/src/api/request2.js b/src/api/request2.js index 8efbcaaf..07560d3c 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -370,6 +370,18 @@ export function getItempackagingByItemcode(itemCode) { export function getProductionlineItem(params) { return http.get("/wms/productionlineitem/page" , {params}) } +/** + * 查询生产线物料关系 + * @param {*} productionLineCode 生产线code + * + */ +export function getBomVersionByProductionline(productionline) { + return request({ + url: baseApi + "/wms/productionlineitem/getBomVersionByProductionline?productionline=" + productionline, + method: "get", + data: {}, + }); +} /** * 通过物料查询包装规格 * @param {*} itemCode diff --git a/src/pages/fg/coms/comNoReceiptPopup.vue b/src/pages/fg/coms/comNoReceiptPopup.vue index c37b2c58..be96cac1 100644 --- a/src/pages/fg/coms/comNoReceiptPopup.vue +++ b/src/pages/fg/coms/comNoReceiptPopup.vue @@ -2,78 +2,98 @@ - + - - {{ title }} + + {{title}} - + - - + + - - 生产线: + + 生产线: - {{ productionLineName }} + {{productionLineName}} - + - + + - - - 计划日期: + + + 计划日期: - {{ planDate }} + {{planDate}} - + - + + - - - 物料代码: + + + 物料代码: - {{ itemCode }} + {{itemCode}} - + + Bom版本{{bomVersion}} + + - + + - - - 数量: + + + 数量: - ({{ getUomInfo(uom) }}) + ({{getUomInfo(uom)}}) - + + - - - 包装规格: + + + 包装规格: - {{ packUnitName }} + {{packUnitName}} - + - + + - + - - 批次: + + 批次: - + + @@ -90,12 +110,28 @@ @@ -445,4 +485,4 @@ export default { border-radius: 5rpx; padding: 15rpx; } - + \ No newline at end of file diff --git a/src/pages/fg/receiptNoPlan.vue b/src/pages/fg/receiptNoPlan.vue index f9522fce..7ae11e96 100644 --- a/src/pages/fg/receiptNoPlan.vue +++ b/src/pages/fg/receiptNoPlan.vue @@ -6,28 +6,25 @@ - - - - - 完工库位 - {{dataContent.fgLocationCode}} - - - - - 计划数 - {{dataContent.planQty}}{{dataContent.uom}} - + + + 完工库位 + {{dataContent.fgLocationCode}} + + + + 计划数 + {{dataContent.planQty}}{{dataContent.uom}} + - + - + @@ -142,8 +139,7 @@ export default { }; }, - onShow() { - }, + onShow() {}, onLoad() { this.options = getRemoveOption() this.openFg(); @@ -193,7 +189,12 @@ export default { packUnit: result.packUnit, workStationCode: result.workStationCode, fgLocationCode: result.fgLocationCode, - subList: [] + subList: [], + productionLine: result.productionLineCode, + bomVersion: result.bomVersion, + workshop: result.workshop, + team: "", + shift: "" } }, @@ -467,10 +468,14 @@ page { .header { position: fixed; + /* #ifdef H5 */ + top: 88rpx; + /* #endif */ left: 0; width: 100%; background-color: #fff; z-index: 10; + padding: 10rpx; /* 确保头部在内容之上 */ }