|
|
@ -55,12 +55,6 @@ |
|
|
|
v-model:currentPage="tableObjectRef.currentPage" |
|
|
|
v-model:sort="tableObjectRef.sort" |
|
|
|
> |
|
|
|
<!-- <template #action="{ row }"> |
|
|
|
<ButtonBase |
|
|
|
:Butttondata="buttondata" |
|
|
|
@button-base-click="buttonTableClick($event, row)" |
|
|
|
/> |
|
|
|
</template> --> |
|
|
|
</Table> |
|
|
|
<Table |
|
|
|
v-if="!isBasic && fromeWhere != 'countPlan'" |
|
|
@ -97,7 +91,56 @@ |
|
|
|
</template> |
|
|
|
</DetailTable> |
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
<ContentWrap class="w-[100%]" v-show="tabsList[current].label==annexAlias.label" :style="{height:remarkHeight+'px'}"> |
|
|
|
<el-tabs class="demo-tabs" v-model="fileParmas.fileBusiType" @tab-change="handleTabsChange"> |
|
|
|
<el-tab-pane |
|
|
|
v-for="item in subTabsList" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:name="item.value" |
|
|
|
/> |
|
|
|
<!-- 附件组件 --> |
|
|
|
<ElScrollbar ref="scrollbar" :style="{height:(remarkHeight-40)+'px'}"> |
|
|
|
<AnnexLedger |
|
|
|
:annexData="annexData" |
|
|
|
:showDownload = "annexAlias.showDownload" |
|
|
|
:hiddenDelete = "annexAlias.hiddenDelete" |
|
|
|
@handleAnnexSuccess="handleAnnexSuccess" |
|
|
|
@deleteAnnexSuccess="deleteAnnexSuccess" |
|
|
|
:upData="remarksData.data" |
|
|
|
:key="count" |
|
|
|
@saveEdit="saveEdit" |
|
|
|
/> |
|
|
|
</ElScrollbar> |
|
|
|
</el-tabs> |
|
|
|
</ContentWrap> |
|
|
|
<ContentWrap class="w-[100%]" v-show="tabsList[current].label=='操作记录'" :style="{height:remarkHeight+'px'}"> |
|
|
|
<el-tabs class="demo-tabs" v-model="operationRecordType" @tab-change="handleOperationTabsChange"> |
|
|
|
<el-tab-pane |
|
|
|
v-for="item in operationRecordList" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:name="item.value" |
|
|
|
/> |
|
|
|
<!-- 附件组件 --> |
|
|
|
<ElScrollbar ref="scrollbar" :style="{height:(remarkHeight-40)+'px'}"> |
|
|
|
<Table |
|
|
|
:columns="detailAllSchemasRef?.tableColumns?.filter(column => column.field !== 'action')" |
|
|
|
:data="tableObjectRef.tableList" |
|
|
|
:loading="tableObjectRef.loading" |
|
|
|
:pagination="{ total: tableObjectRef.total }" |
|
|
|
v-model:pageSize="tableObjectRef.pageSize" |
|
|
|
v-model:currentPage="tableObjectRef.currentPage" |
|
|
|
> |
|
|
|
<template #number="{ row }"> |
|
|
|
<el-button type="primary" link @click="openDialog(row, '编号', row.number)"> |
|
|
|
<span>{{ row.number }}</span> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</Table> |
|
|
|
</ElScrollbar> |
|
|
|
</el-tabs> |
|
|
|
</ContentWrap> |
|
|
|
<!-- 附件/备注/变更记录 --> |
|
|
|
<ContentWrap class="w-[100%]" v-show="tabsList[current].label==annexAlias.label" :style="{height:remarkHeight+'px'}"> |
|
|
|
<el-tabs class="demo-tabs" v-model="fileParmas.fileBusiType" @tab-change="handleTabsChange"> |
|
|
@ -144,25 +187,7 @@ |
|
|
|
<ContentWrap class="w-[100%]" v-show="tabsList[current].label=='拓展属性'" :style="{height:remarkHeight+'px'}"> |
|
|
|
<!-- 拓展属性 --> |
|
|
|
<ElScrollbar ref="scrollbar" :style="{height:(remarkHeight-40)+'px'}"> |
|
|
|
<!-- <el-form :model="form" :rules="rules" ref="expandPropsFormRef"> |
|
|
|
<el-row v-for="(field, index) in fields" :key="index" :gutter="20"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="field.code.label" :prop="field.code.prop"> |
|
|
|
<el-input v-model="form[field.code.prop]" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="field.value.label" :prop="field.value.prop"> |
|
|
|
<el-input v-model="form[field.value.prop]" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-button type="danger" icon="el-icon-delete" @click="removeFields(index)">删除</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-button type="primary" @click="submitExpandPropsForm">提交</el-button> |
|
|
|
<el-button @click="addFields">添加字段</el-button> |
|
|
|
</el-form> --> |
|
|
|
|
|
|
|
<AutoIncrementField :initialData="initialData" :codeLabelPrefix="codeLabelPrefix" :valueLabelPrefix="valueLabelPrefix" @submit="submitExpandPropsForm"/> |
|
|
|
</ElScrollbar> |
|
|
|
</ContentWrap> |
|
|
@ -390,6 +415,21 @@ const props = defineProps({ |
|
|
|
required: false, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
operationRecordList: { |
|
|
|
type: Array, |
|
|
|
required: false, |
|
|
|
default: () => [] |
|
|
|
}, |
|
|
|
dialogApiPage: { |
|
|
|
type: Function, |
|
|
|
required: false, |
|
|
|
default: null |
|
|
|
}, |
|
|
|
dialogAllSchemas: { |
|
|
|
type: Object, |
|
|
|
required: false, |
|
|
|
default: null |
|
|
|
}, |
|
|
|
// 附件 备注 变更记录 别名 |
|
|
|
}) |
|
|
|
const isShowDrawer = ref(false) |
|
|
@ -400,6 +440,8 @@ const fileParmas = ref({ |
|
|
|
funcCode: props.funcCode, |
|
|
|
fileBusiType: '' |
|
|
|
}) |
|
|
|
const operationRecordType = ref() |
|
|
|
const operationRecordList = ref(props.operationRecordList) |
|
|
|
if (props.isBasic == true) { |
|
|
|
if (tabsList.value && tabsList.value.length > 0) { |
|
|
|
tabsList.value.unshift({ |
|
|
@ -585,6 +627,10 @@ const change = (item, index) => { |
|
|
|
} |
|
|
|
if(item.prop == 'ExpandProps'){ |
|
|
|
getExtendedPropsList() |
|
|
|
}else if(item.prop == 'OperationRecord'){ |
|
|
|
if(props.operationRecordList){ |
|
|
|
operationRecordType.value = props.operationRecordList[0]?.value |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -738,7 +784,6 @@ const detailAllSchemasRef = ref() |
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: props.apiPage // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
tableObjectRef.value = tableObject |
|
|
|
tableMethodsRef.value = tableMethods |
|
|
|
detailAllSchemasRef.value = props.detailAllSchemas |
|
|
@ -919,7 +964,8 @@ const emit = defineEmits([ |
|
|
|
'onBlur', |
|
|
|
'detailBasicFormOnChange', |
|
|
|
'formFormDateChange', |
|
|
|
'buttonBaseClick' |
|
|
|
'buttonBaseClick', |
|
|
|
'handleOperationTabsChange' |
|
|
|
]) |
|
|
|
/** 删除按钮操作 */ |
|
|
|
const handleDelete = async (id: number) => { |
|
|
@ -1061,6 +1107,47 @@ const getExtendedPropsList = async () => { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
const handleOperationTabsChange = async (val) => { |
|
|
|
emit("handleOperationTabsChange",val) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const dialogVisible = ref(false) |
|
|
|
const dialogTitle = ref() |
|
|
|
const dialogAllSchemasRef = ref() |
|
|
|
const dialogTableObjectRef = ref() |
|
|
|
const dialogTableMethodsRef = ref() |
|
|
|
const dialogUploadTitle = ref('文件上传') |
|
|
|
const dialogUploadVisible = ref(false) |
|
|
|
const dialogUploadNumber = ref() |
|
|
|
const dialogUploadBusiCode = ref() |
|
|
|
const dialogFormKey = ref(0) |
|
|
|
const openDialog = async(row: any, titleName: any, titleValue: any) => { |
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: props.dialogApiPage, // 分页接口 |
|
|
|
defaultParams: getDialogParams(row) |
|
|
|
}) |
|
|
|
dialogVisible.value = true |
|
|
|
dialogTitle.value = getDialogName() |
|
|
|
dialogAllSchemasRef.value = props.dialogAllSchemas |
|
|
|
dialogTableObjectRef.value = tableObject |
|
|
|
dialogTableMethodsRef.value = tableMethods |
|
|
|
dialogTableObjectRef.value.tableList = [] |
|
|
|
const { getList } = tableMethods |
|
|
|
await getList() |
|
|
|
updateKey.value += 1 |
|
|
|
} |
|
|
|
|
|
|
|
function getDialogParams(row: any) { |
|
|
|
return { |
|
|
|
number: row.number |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function getDialogName(){ |
|
|
|
// return operationRecordList.value.find(element=>element.value == operationRecordType)?.value |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//监视属性 |
|
|
|
watch( |
|
|
@ -1082,6 +1169,7 @@ watch( |
|
|
|
getList() |
|
|
|
} |
|
|
|
) |
|
|
|
|
|
|
|
</script> |
|
|
|
<style lang="scss"> |
|
|
|
.el-drawer__body { |
|
|
|