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