|
@ -80,7 +80,12 @@ const tableColumns = ref(ItemSyntheticRelation.allSchemas.tableColumns) |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
if (formField == 'itemCode') { |
|
|
|
|
|
setV[formField] = val.map(item=>item.code).join(',') |
|
|
|
|
|
setV['itemName'] = val.map(item=>item.name).join(',') |
|
|
|
|
|
} else { |
|
|
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
|
|
} |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|