|
|
@ -210,18 +210,19 @@ const formSchema = ref(props.formAllSchemas.formSchema) |
|
|
|
/** 弹层操作 */ |
|
|
|
// formField form表单中的字段 |
|
|
|
// searchField 查询列表中的字段 |
|
|
|
// type 发起事件位置 type=tableForm 是明细中发起的 否则 为主表发起的 |
|
|
|
const searchTableRef = ref() |
|
|
|
const opensearchTable = (formField, searchField) => { |
|
|
|
const opensearchTable = (formField, searchField, type, row) => { |
|
|
|
const _searchTableParamsObject:any = props.searchTableParams.find((item:any) => (item.formField == formField)) |
|
|
|
const _searchTableTitle = _searchTableParamsObject.searchTableTitle |
|
|
|
const _searchTableAllSchemas = _searchTableParamsObject.searchTableAllSchemas |
|
|
|
const _searchTablePage = _searchTableParamsObject.searchTablePage |
|
|
|
searchTableRef.value.open(_searchTableTitle, _searchTableAllSchemas, _searchTablePage, formField, searchField) |
|
|
|
searchTableRef.value.open(_searchTableTitle, _searchTableAllSchemas, _searchTablePage, formField, searchField, type, row) |
|
|
|
} |
|
|
|
// 弹层确定返回所选数据 |
|
|
|
// val : 弹层列表row 数据 |
|
|
|
const searchTableSuccess = (formField,searchField, val) => { |
|
|
|
emit('searchTableSuccess', formField, searchField, val, formRef.value ) |
|
|
|
const searchTableSuccess = (formField,searchField, val, type, row) => { |
|
|
|
emit('searchTableSuccess', formField, searchField, val, formRef.value, type, row ) |
|
|
|
} |
|
|
|
|
|
|
|
/** 打开弹窗 */ |
|
|
@ -357,8 +358,8 @@ const handleAddTable = () => { |
|
|
|
emit('handleAddTable') |
|
|
|
} |
|
|
|
// 输入框聚焦 |
|
|
|
const inpuFocus = (headerItem) => { |
|
|
|
opensearchTable() |
|
|
|
const inpuFocus = (headerItem, row, index) => { |
|
|
|
opensearchTable(headerItem.field, 'poNumber', 'tableForm', row) |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|