|
|
@ -116,6 +116,7 @@ import * as ProductscrapRequestDetailApi from '@/api/wms/productscrapRequestDeta |
|
|
|
import * as StdcostpriceApi from '@/api/wms/stdcostprice' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import * as BomDismantleApi from "@/api/wms/bomDismantle" |
|
|
|
import * as BomApi from "@/api/wms/bom"; |
|
|
|
|
|
|
|
// 制品报废申请 |
|
|
|
defineOptions({ name: 'ProductscrapRequestMain' }) |
|
|
@ -314,7 +315,25 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
console.log(res) |
|
|
|
row['uom'] = res.uom |
|
|
|
row['singlePrice'] = res.price |
|
|
|
}) |
|
|
|
}) |
|
|
|
// 查看BOM版本 |
|
|
|
console.log(formRef.formModel) |
|
|
|
const param1 = { |
|
|
|
productItemCode: val[0]['itemCode'], |
|
|
|
available: 'TRUE', |
|
|
|
pageSize: 20, |
|
|
|
pageNo: 1, |
|
|
|
sort: '', |
|
|
|
by: 'ASC', |
|
|
|
} |
|
|
|
BomApi.getBomPage(param1).then(res => { |
|
|
|
console.log(res) |
|
|
|
if(res?.list?.length>0){ |
|
|
|
row['bomVersion'] = res.list[0].version |
|
|
|
} |
|
|
|
|
|
|
|
// row['singlePrice'] = res.price |
|
|
|
}) |
|
|
|
}else if(formField == 'bomVersion'){ |
|
|
|
row['bomVersion'] = val[0]['version'] |
|
|
|
} |
|
|
|