|
|
@ -134,8 +134,7 @@ |
|
|
|
:showSearchTableQueryFields="showSearchTableQueryFields" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
> |
|
|
|
|
|
|
|
<template v-for="name in Object.keys($slots)" :key="name" #[name]="{selections}"> |
|
|
|
<template v-for="name in Object.keys($slots)" :key="name" #[name]="{ selections }"> |
|
|
|
<slot :name="name" :selections="selections"></slot> |
|
|
|
</template> |
|
|
|
</SearchTable> |
|
|
@ -845,16 +844,23 @@ const onBlur = async (field, e) => { |
|
|
|
let formSchemaObj = formSchema.value.find((item) => item.field == field)?.componentProps |
|
|
|
|
|
|
|
if (formSchemaObj?.enterSearch) { |
|
|
|
await FormBlur(field, e, routeName.value, formRef.value, props.detailData, formSchemaObj, (list) => { |
|
|
|
emit('searchTableSuccess', field, formSchemaObj.searchField, list, formRef.value, 'form') |
|
|
|
}) |
|
|
|
await FormBlur( |
|
|
|
field, |
|
|
|
e, |
|
|
|
routeName.value, |
|
|
|
formRef.value, |
|
|
|
props.detailData, |
|
|
|
formSchemaObj, |
|
|
|
(list) => { |
|
|
|
emit('searchTableSuccess', field, formSchemaObj.searchField, list, formRef.value, 'form') |
|
|
|
} |
|
|
|
) |
|
|
|
} else { |
|
|
|
emit('onBlur', field, e) |
|
|
|
} |
|
|
|
isExecute.value = true |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 批量增加 |
|
|
|
const batchAdd = async (val) => { |
|
|
|
const row = {} |
|
|
@ -921,8 +927,23 @@ const inputStringBlur = async (headerItem, val, row, index) => { |
|
|
|
* @param field 当前操作字段 |
|
|
|
* @param e |
|
|
|
*/ |
|
|
|
const onEnter = (field, value, e) => { |
|
|
|
emit('onEnter', field, value, e) |
|
|
|
const onEnter = async (field, value, e) => { |
|
|
|
let formSchemaObj = formSchema.value.find((item) => item.field == field)?.componentProps |
|
|
|
if (formSchemaObj?.enterSearch && formSchemaObj?.isEnter ) { |
|
|
|
await FormBlur( |
|
|
|
field, |
|
|
|
value, |
|
|
|
routeName.value, |
|
|
|
formRef.value, |
|
|
|
props.detailData, |
|
|
|
formSchemaObj, |
|
|
|
(list) => { |
|
|
|
emit('onEnter', field, value, e) |
|
|
|
} |
|
|
|
) |
|
|
|
} else { |
|
|
|
emit('onEnter', field, value, e) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 修改盘点类型 |
|
|
|