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