|
|
@ -129,6 +129,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
} |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
|
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
//setV['supplierCode'] = val[0]['supplierCode'] |
|
|
|
formRef.setValues(setV) |
|
|
@ -139,6 +140,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
if(formField=='itemCode'){ |
|
|
|
//物料代码 |
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|
}else if(formField=='packUnit'){ |
|
|
|
//包装规格1 |
|
|
|
setV['packUnit'] = val[0]['packUnit'] |
|
|
|
setV['packQty'] = val[0]['packQty'] |
|
|
|
}else if(formField=='secondPackUnit'){ |
|
|
|
//包装规格2 |
|
|
|
setV['secondPackUnit'] = val[0]['packUnit'] |
|
|
|
setV['secondPackQty'] = val[0]['packQty'] |
|
|
|
}else if(formField == 'balancePackUnit'){ |
|
|
|
// 入库存包装规格 |
|
|
|
setV['balancePackUnit'] = val[0]['packUnit'] |
|
|
|
} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|