|
|
@ -112,6 +112,9 @@ const onEnter = async (field,value)=>{ |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
|
|
|
|
|
console.log('searchTableSuccess',formField, searchField, val) |
|
|
|
|
|
|
|
const setV = {} |
|
|
|
if (formField == 'itemCode') { |
|
|
|
setV['itemCode'] = val[0]['code'] |
|
|
@ -120,6 +123,13 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|
setV['packUnit'] = val[0]['packUnit'] |
|
|
|
setV['callmaterialQty'] = val[0]['packQty'] |
|
|
|
} else if (formField == 'productionLineCode'|| formField == 'workshopCode') { |
|
|
|
//生产线 车间 |
|
|
|
if(val[0][searchField]!=formRef.formModel[formField]){ |
|
|
|
setV['workStationCode'] = '' |
|
|
|
setV['location'] = '' |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
} |
|
|
|
} else if (formField == 'workStationCode') { |
|
|
|
//工位 |
|
|
|
setV['location'] = val[0]['rawLocationCode'] |
|
|
|