From cedf5e20bb1158f5e3cc8ed7da8f26a6aa463e33 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 10 Jul 2024 13:45:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4WMS=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=B8=AD=E6=89=80=E6=9C=89BOM=E7=89=88=E6=9C=AC=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrapRequestMain/index.vue | 44 +++++++------------ 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index b1a0986b9..af5f92bc1 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -42,8 +42,6 @@ if(formField == 'productionLineCode'){ row['productionLineCode'] = val[0]['code'] }else if(formField == 'workStationCode'){ - val.forEach(item=>{ - const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) - newRow['workStationCode'] = item['code'] - newRow['fromLocationCode'] = item['rawLocationCode'] - tableData.value.push(newRow) - }) - + row['workStationCode'] = val[0]['code'] + row['fromLocationCode'] = val[0]['rawLocationCode'] }else if(formField == 'processCode'){ row['processCode'] = val[0]['code'] }else if(formField == 'itemCode'){ @@ -318,30 +310,26 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['bomVersion'] = '' row['childList'] = [] // 查询标准价格 - let param = {'itemCodes':val[0]['itemCode'] as string} + let param = {'itemCode':val[0]['itemCode'] as string} StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { - if(res&&res.length>0){ - row['uom'] = res.uom - row['singlePrice'] = res.price - } - }) + console.log(res) + row['uom'] = res.uom + row['singlePrice'] = res.price + }) // 查看BOM版本 - console.log(formRef.formModel) - const param1 = { - productItemCode: val[0]['itemCode'], - available: 'TRUE', - pageSize: 20, - pageNo: 1, - sort: '', - by: 'ASC', - } + 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 } - - // row['singlePrice'] = res.price }) }else if(formField == 'bomVersion'){ row['bomVersion'] = val[0]['version']