|
|
@ -71,25 +71,33 @@ |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
row['itemCode'] = val[0]['code'] |
|
|
|
if(formField == 'fromLocationCode'){ |
|
|
|
row['fromLocationCode'] = val[0]['code'] |
|
|
|
}else if(formField == 'itemCode'){ |
|
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
|
} |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
setV['purchaseReceiptRecordNumber'] = val[0]['number'] |
|
|
|
// setV['supplierCode'] = val[0]['supplierCode'] |
|
|
|
formRef.setValues(setV) |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|
// 查询页面返回——详情 |
|
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
if(formField == 'fromLocationCode'){ |
|
|
|
setV['fromLocationCode'] = val[0]['code'] |
|
|
|
}else if(formField == 'itemCode'){ |
|
|
|
setV['itemCode'] = val[0]['itemCode'] |
|
|
|
}else { |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
setV['itemCode'] = val[0]['code'] |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
|