|
@ -86,6 +86,7 @@ import { DeliverPlanMain,DeliverPlanMainRules,DeliverPlanDetail,DeliverPlanDetai |
|
|
import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain' |
|
|
import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain' |
|
|
import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail' |
|
|
import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
|
|
import * as AreabasicApi from '@/api/wms/areabasic' |
|
|
|
|
|
|
|
|
// 发货计划 |
|
|
// 发货计划 |
|
|
defineOptions({ name: 'DeliverPlanMain' }) |
|
|
defineOptions({ name: 'DeliverPlanMain' }) |
|
@ -132,7 +133,9 @@ const updataTableColumns = (val) => { |
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
nextTick(() => { |
|
|
alert(11) |
|
|
|
|
|
nextTick(async () => { |
|
|
|
|
|
|
|
|
// 修改 tableform 属性 |
|
|
// 修改 tableform 属性 |
|
|
if(formField == 'customerCode'){ |
|
|
if(formField == 'customerCode'){ |
|
|
customerCode.value = val[0]['code'] |
|
|
customerCode.value = val[0]['code'] |
|
@ -150,7 +153,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
key: 'customerCode', |
|
|
key: 'customerCode', |
|
|
value: customerCode.value , |
|
|
value: customerCode.value , |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}]} |
|
|
}] |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
if(formField == 'itemCode') { |
|
|
if(formField == 'itemCode') { |
|
@ -168,6 +172,15 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
|
|
|
if(formField == 'customerDockCode') { |
|
|
|
|
|
//客户月台 |
|
|
|
|
|
setV['toWarehouseCode'] = val[0]['warehouseCode']//到仓库 |
|
|
|
|
|
setV['toLocationCode'] = val[0]['defaultLocationCode']//到库位 |
|
|
|
|
|
let res = await AreabasicApi.selectAreabasicDOByCode(val[0]['defaultLocationCode']) |
|
|
|
|
|
if(res){ |
|
|
|
|
|
setV['deliverType'] = res['type'] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
} |
|
|
} |
|
|