|
|
@ -94,6 +94,7 @@ import { DeliverRequestMain,DeliverRequestMainRules,DeliverRequestDetail,Deliver |
|
|
|
import * as DeliverRequestMainApi from '@/api/wms/deliverRequestMain' |
|
|
|
import * as DeliverRequestDetailApi from '@/api/wms/deliverRequestDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import * as AreabasicApi from '@/api/wms/areabasic' |
|
|
|
|
|
|
|
// 发货申请 |
|
|
|
defineOptions({ name: 'DeliverRequestMain' }) |
|
|
@ -141,8 +142,8 @@ const updataTableColumns = (val) => { |
|
|
|
} |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(() => { |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(async () => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
if(formField == 'itemCode') { |
|
|
|
const tableFormKeys = {} |
|
|
@ -172,6 +173,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
//客户月台 |
|
|
|
setV['toWarehouseCode'] = val[0]['warehouseCode']//到仓库 |
|
|
|
setV['toLocationCode'] = val[0]['defaultLocationCode']//到库位 |
|
|
|
let res = await AreabasicApi.selectAreabasicDOByCode(val[0]['defaultLocationCode']) |
|
|
|
if(res){ |
|
|
|
setV['deliverType'] = res['type'] |
|
|
|
} |
|
|
|
} else { |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
} |
|
|
|