|
@ -116,6 +116,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as BomDismantleApi from '@/api/wms/bomDismantle' |
|
|
import * as BomDismantleApi from '@/api/wms/bomDismantle' |
|
|
import * as dismantleRequestDetailbApi from "@/api/wms/dismantleRequestDetailb"; |
|
|
import * as dismantleRequestDetailbApi from "@/api/wms/dismantleRequestDetailb"; |
|
|
import {updateProductscrapDetailRequestBom} from "@/api/wms/productrepairRequestMain"; |
|
|
import {updateProductscrapDetailRequestBom} from "@/api/wms/productrepairRequestMain"; |
|
|
|
|
|
import * as BomApi from "@/api/wms/bom"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 制品返修申请 |
|
|
// 制品返修申请 |
|
@ -246,6 +247,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
row['fgFromLocationCode'] = val[0]['locationCode'] |
|
|
row['fgFromLocationCode'] = val[0]['locationCode'] |
|
|
row['bomVersion'] = '' |
|
|
row['bomVersion'] = '' |
|
|
row['childList'] = [] |
|
|
row['childList'] = [] |
|
|
|
|
|
// 查看BOM版本 |
|
|
|
|
|
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 |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
} else if(formField == 'productionLineCode'){ |
|
|
} else if(formField == 'productionLineCode'){ |
|
|
row['productionLineCode'] = val[0]['code'] |
|
|
row['productionLineCode'] = val[0]['code'] |
|
|
} else if(formField == 'workStationCode'){ |
|
|
} else if(formField == 'workStationCode'){ |
|
|