Browse Source

HL-5978WMS发货申请新增选择发货计划单号后应该自动带出月台和明细,目前没自动带出

hella_online_20240927
yufei_wang 2 months ago
parent
commit
e51a2039ac
  1. 17
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

17
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') {
//

Loading…
Cancel
Save