From c3502f85a032e0c0147311528c9e18dc587f8bbf Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 8 Jul 2024 16:39:49 +0800 Subject: [PATCH] =?UTF-8?q?BOM=E7=89=88=E6=9C=AC=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD=E7=89=88=E6=9C=AC1?= =?UTF-8?q?=EF=BC=8C=E6=89=B9=E6=AC=A1=E3=80=81=E5=8D=95=E4=BB=B7=E3=80=81?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E3=80=81=E6=9D=A5=E6=BA=90=E5=BA=93=E4=BD=8D?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=9A=90=E8=97=8F=E6=88=96=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrapRequestMain/index.vue | 21 ++++++++++++++++++- .../productscrapRequestMain.data.ts | 13 +++++++++--- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index a4a2d241d..5243a5682 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -116,6 +116,7 @@ import * as ProductscrapRequestDetailApi from '@/api/wms/productscrapRequestDeta import * as StdcostpriceApi from '@/api/wms/stdcostprice' import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as BomDismantleApi from "@/api/wms/bomDismantle" +import * as BomApi from "@/api/wms/bom"; // 制品报废申请 defineOptions({ name: 'ProductscrapRequestMain' }) @@ -314,7 +315,25 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => 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', + } + 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'] } diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts index b6902aa29..5e4add7ff 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts @@ -740,7 +740,8 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive([ width: 150, }, isForm: false, - isTable:true, + isTable:false, + isTableForm:false, }, { label: '报废数量', @@ -802,7 +803,9 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive([ type: 'InputNumber', min: 0, precision: 6 - } + }, + isTable:false, + isTableForm:false, }, { label: '金额', @@ -825,6 +828,8 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive([ min: 0, precision: 6, }, + isTable:false, + isTableForm:false, }, { label: '来源库位', @@ -840,7 +845,9 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive([ componentProps:{ disabled: true } - } + }, + isTable:false, + isTableForm:false, }, {