|
@ -117,6 +117,7 @@ import * as ItembasicApi from "@/api/wms/itembasic"; |
|
|
import * as PackageApi from "@/api/wms/package"; |
|
|
import * as PackageApi from "@/api/wms/package"; |
|
|
import { formatTime } from '@/utils/index' |
|
|
import { formatTime } from '@/utils/index' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
|
|
import * as StdcostpriceApi from '@/api/wms/stdcostprice' |
|
|
|
|
|
|
|
|
// 计划外入库申请 |
|
|
// 计划外入库申请 |
|
|
defineOptions({ name: 'UnplannedreceiptRequestMain' }) |
|
|
defineOptions({ name: 'UnplannedreceiptRequestMain' }) |
|
@ -179,6 +180,7 @@ const isItemType = async (itemCode, labelTypeParams) => { |
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
nextTick(async () => { |
|
|
nextTick(async () => { |
|
|
|
|
|
console.log('searchTableSuccess',formField, searchField, val, formRef, type, row ) |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
// 明细查询页赋值 |
|
|
// 明细查询页赋值 |
|
|
if(formField == 'toLocationCode'){ |
|
|
if(formField == 'toLocationCode'){ |
|
@ -190,7 +192,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
} else { |
|
|
} else { |
|
|
row['itemCode'] = val[0]['code'] |
|
|
row['itemCode'] = val[0]['code'] |
|
|
row['uom'] = val[0]['uom'] |
|
|
row['uom'] = val[0]['uom'] |
|
|
row['singlePrice'] = val[0]['price'] |
|
|
StdcostpriceApi.queryStdcostpriceByItemCode({"itemCode":val[0]['code']}) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
row['singlePrice'] = res.price |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
} else if(formField === 'costcentreCode'){ |
|
|
} else if(formField === 'costcentreCode'){ |
|
|
row['costcentreCode'] = val[0]['costcentreCode'] |
|
|
row['costcentreCode'] = val[0]['costcentreCode'] |
|
|