|
|
@ -80,7 +80,12 @@ const tableColumns = ref(ItemSyntheticRelation.allSchemas.tableColumns) |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
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) |
|
|
|
}) |
|
|
|
} |
|
|
|