|
@ -394,7 +394,13 @@ const props = defineProps({ |
|
|
type:Array, |
|
|
type:Array, |
|
|
required: false, |
|
|
required: false, |
|
|
default: () => [] |
|
|
default: () => [] |
|
|
} |
|
|
}, |
|
|
|
|
|
//主表单独操作--明细左上角新增按钮 |
|
|
|
|
|
mainSubmitCreateApi:{ |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
required: false, |
|
|
|
|
|
default: false |
|
|
|
|
|
}, |
|
|
}) |
|
|
}) |
|
|
const isShowDrawer = ref(false) |
|
|
const isShowDrawer = ref(false) |
|
|
const detailLoading = 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 () => { |
|
|
const getRemarkList = async () => { |
|
@ -875,13 +884,19 @@ const submitForm = async (formType, data) => { |
|
|
const searchTableSuccess1 = (formField, searchField, val, formRef) => { |
|
|
const searchTableSuccess1 = (formField, searchField, val, formRef) => { |
|
|
searchTableFormModel.value[formField] = val.map(item=>item[searchField]).join(',') |
|
|
searchTableFormModel.value[formField] = val.map(item=>item[searchField]).join(',') |
|
|
console.log('searchTableSuccess1',searchTableFormModel) |
|
|
console.log('searchTableSuccess1',searchTableFormModel) |
|
|
submitForm(searchTableFormType.value,searchTableFormModel.value) |
|
|
if(props.mainSubmitCreateApi){ |
|
|
emit('searchTableSuccessDetail', formField, searchField, val, formRef) |
|
|
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) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
emit('searchTableSuccessDetail', formField, searchField, val, formRef) |
|
|
emit('searchTableSuccessDetail', formField, searchField, val, formRef) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 传递给父类 |
|
|
// 传递给父类 |
|
|
const emit = defineEmits([ |
|
|
const emit = defineEmits([ |
|
|
'searchTableSuccessDetail', |
|
|
'searchTableSuccessDetail', |
|
@ -893,7 +908,7 @@ const emit = defineEmits([ |
|
|
'onBlur', |
|
|
'onBlur', |
|
|
'detailBasicFormOnChange', |
|
|
'detailBasicFormOnChange', |
|
|
'formFormDateChange', |
|
|
'formFormDateChange', |
|
|
'buttonBaseClick' |
|
|
'buttonBaseClick', |
|
|
]) |
|
|
]) |
|
|
/** 删除按钮操作 */ |
|
|
/** 删除按钮操作 */ |
|
|
const handleDelete = async (id: number) => { |
|
|
const handleDelete = async (id: number) => { |
|
|