|
|
@ -394,7 +394,13 @@ const props = defineProps({ |
|
|
|
type:Array, |
|
|
|
required: false, |
|
|
|
default: () => [] |
|
|
|
} |
|
|
|
}, |
|
|
|
//主表单独操作--明细左上角新增按钮 |
|
|
|
mainSubmitCreateApi:{ |
|
|
|
type: Boolean, |
|
|
|
required: false, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
}) |
|
|
|
const isShowDrawer = ref(false) |
|
|
|
const detailLoading = ref(false) |
|
|
@ -676,7 +682,10 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
defineExpose({ openDetail, formRef }) // 提供 open 方法,用于打开弹窗 |
|
|
|
const updateList = ()=>{ |
|
|
|
getList() |
|
|
|
} |
|
|
|
defineExpose({ openDetail, formRef ,updateList}) // 提供 open 方法,用于打开弹窗 |
|
|
|
|
|
|
|
// 获取备注列表 |
|
|
|
const getRemarkList = async () => { |
|
|
@ -875,13 +884,19 @@ const submitForm = async (formType, data) => { |
|
|
|
const searchTableSuccess1 = (formField, searchField, val, formRef) => { |
|
|
|
searchTableFormModel.value[formField] = val.map(item=>item[searchField]).join(',') |
|
|
|
console.log('searchTableSuccess1',searchTableFormModel) |
|
|
|
submitForm(searchTableFormType.value,searchTableFormModel.value) |
|
|
|
emit('searchTableSuccessDetail', formField, searchField, val, formRef) |
|
|
|
if(props.mainSubmitCreateApi){ |
|
|
|
emit('searchTableSuccessDetail', formField, searchField, val, formRef,searchTableFormModel.value) |
|
|
|
}else{ |
|
|
|
submitForm(searchTableFormType.value,searchTableFormModel.value) |
|
|
|
emit('searchTableSuccessDetail', formField, searchField, val, formRef) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
emit('searchTableSuccessDetail', formField, searchField, val, formRef) |
|
|
|
} |
|
|
|
|
|
|
|
// 传递给父类 |
|
|
|
const emit = defineEmits([ |
|
|
|
'searchTableSuccessDetail', |
|
|
@ -893,7 +908,7 @@ const emit = defineEmits([ |
|
|
|
'onBlur', |
|
|
|
'detailBasicFormOnChange', |
|
|
|
'formFormDateChange', |
|
|
|
'buttonBaseClick' |
|
|
|
'buttonBaseClick', |
|
|
|
]) |
|
|
|
/** 删除按钮操作 */ |
|
|
|
const handleDelete = async (id: number) => { |
|
|
|