From 20a42cb609564df2fc089d854d172a14b9c24e28 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 11 Jul 2024 10:34:45 +0800 Subject: [PATCH] =?UTF-8?q?bom=E9=BB=98=E8=AE=A4=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productdismantleRequestMain/index.vue | 16 ++++++++++++++++ .../productrepairRequestMain/index.vue | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index 06a8d79a5..8f9c31ca3 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -111,6 +111,7 @@ import * as ProductdismantleRequestDetailApi from '@/api/wms/productdismantleReq import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as BomDismantleApi from '@/api/wms/bomDismantle' import * as dismantleRequestDetailbApi from '@/api/wms/dismantleRequestDetailb' +import * as BomApi from "@/api/wms/bom"; // 制品拆解申请 @@ -270,6 +271,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['expireDate'] = val[0]['expireDate'] row['bomVersion'] = '' row['childList'] = [] + // 查看BOM版本 + const param1 = { + productItemCode: val[0]['itemCode'], + available: 'TRUE', + pageSize: 20, + pageNo: 1, + sort: '', + by: 'ASC', + } + BomApi.getBomPage(param1).then(res => { + console.log(res) + if(res?.list?.length>0){ + row['bomVersion'] = res.list[0].version + } + }) } else { val.forEach(item=>{ const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) diff --git a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue index 3bc4b80e4..8c2482afd 100644 --- a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue +++ b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue @@ -116,6 +116,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as BomDismantleApi from '@/api/wms/bomDismantle' import * as dismantleRequestDetailbApi from "@/api/wms/dismantleRequestDetailb"; import {updateProductscrapDetailRequestBom} from "@/api/wms/productrepairRequestMain"; +import * as BomApi from "@/api/wms/bom"; // 制品返修申请 @@ -246,6 +247,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['fgFromLocationCode'] = val[0]['locationCode'] row['bomVersion'] = '' row['childList'] = [] + // 查看BOM版本 + const param1 = { + productItemCode: val[0]['itemCode'], + available: 'TRUE', + pageSize: 20, + pageNo: 1, + sort: '', + by: 'ASC', + } + BomApi.getBomPage(param1).then(res => { + console.log(res) + if(res?.list?.length>0){ + row['bomVersion'] = res.list[0].version + } + }) } else if(formField == 'productionLineCode'){ row['productionLineCode'] = val[0]['code'] } else if(formField == 'workStationCode'){