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') { //客户月台