|
@ -310,11 +310,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
row['bomVersion'] = '' |
|
|
row['bomVersion'] = '' |
|
|
row['childList'] = [] |
|
|
row['childList'] = [] |
|
|
// 查询标准价格 |
|
|
// 查询标准价格 |
|
|
let param = {'itemCode':val[0]['itemCode'] as string} |
|
|
let param = {'itemCodes':val[0]['itemCode'] as string} |
|
|
StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { |
|
|
StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
row['uom'] = res.uom |
|
|
if(res&&res.length>0){ |
|
|
row['singlePrice'] = res.price |
|
|
row['uom'] = res[0].uom |
|
|
|
|
|
row['singlePrice'] = res[0].price |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
// 查看BOM版本 |
|
|
// 查看BOM版本 |
|
|
const param1 = { |
|
|
const param1 = { |
|
@ -359,7 +361,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
setV['bomVersion'] = '' |
|
|
setV['bomVersion'] = '' |
|
|
setV['childList'] = [] |
|
|
setV['childList'] = [] |
|
|
// 查询标准价格 |
|
|
// 查询标准价格 |
|
|
let param = {'itemCode':val[0]['itemCode'] as string} |
|
|
let param = {'itemCodes':val[0]['itemCode'] as string} |
|
|
StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { |
|
|
StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
}) |
|
|
}) |
|
|