From e51a2039acd0bc99abf1b82e8a01ba71a7b7ecc4 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 25 Sep 2024 14:34:52 +0800 Subject: [PATCH] =?UTF-8?q?HL-5978WMS=E5=8F=91=E8=B4=A7=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=80=89=E6=8B=A9=E5=8F=91=E8=B4=A7=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=8D=95=E5=8F=B7=E5=90=8E=E5=BA=94=E8=AF=A5=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=B8=A6=E5=87=BA=E6=9C=88=E5=8F=B0=E5=92=8C=E6=98=8E?= =?UTF-8?q?=E7=BB=86=EF=BC=8C=E7=9B=AE=E5=89=8D=E6=B2=A1=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=B8=A6=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deliver/deliverRequestMain/index.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue index fbeb1a6d7..edddd4ade 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue @@ -98,6 +98,7 @@ import * as DeliverRequestDetailApi from '@/api/wms/deliverRequestDetail' import * as CustomerdockApi from '@/api/wms/customerdock' import * as CustomerItemApi from '@/api/wms/customeritem' import { Customeritem } from '@/views/wms/basicDataManage/customerManage/customeritem/customeritem.data' +import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as AreabasicApi from '@/api/wms/areabasic' @@ -202,7 +203,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) = setV['deliverType'] = ''//发货类型 } tableData.value = [] - + //物料代码-子表 + let subRes = await DeliverPlanDetailApi.getDeliverPlanDetailPage({ + number:val[0]['number'] + }) + if(subRes&&subRes.list&&subRes.list.length>0){ + const tableFormKeys = {} + DeliverRequestDetail.allSchemas.tableFormColumns.forEach(item => { + tableFormKeys[item.field] = item.default ? item.default : '' + }) + val.forEach(item=>{ + const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) + tableData.value.push(newRow) + }) + } + console.log('subRes',subRes) } else if(formField == 'customerDockCode') { //客户月台