[update] 年度制修订计划(各部门主动上报)导入联调

This commit is contained in:
lideqin
2023-10-23 15:03:50 +08:00
parent 9df42b8308
commit 1381576d5e
@@ -134,7 +134,7 @@ export default {
title: this.$t('enterpriseStandardLibrary.plan.revisionType'), title: this.$t('enterpriseStandardLibrary.plan.revisionType'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'applicationCategory_dictText', dataIndex: 'projectType_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 原企标编号 { // 原企标编号
@@ -169,56 +169,56 @@ export default {
title: this.$t('enterpriseStandardLibrary.plan.authDepartment'), title: this.$t('enterpriseStandardLibrary.plan.authDepartment'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'authDeparts', dataIndex: 'authDept_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 企业标准代号 { // 企业标准代号
title: this.$t('enterpriseStandardLibrary.plan.enterpriseStandardCode'), title: this.$t('enterpriseStandardLibrary.plan.enterpriseStandardCode'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'enStandardCode', dataIndex: 'enStandardCode_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 配合单位 { // 配合单位
title: this.$t('enterpriseStandardLibrary.plan.suitUnit'), title: this.$t('enterpriseStandardLibrary.plan.suitUnit'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'cooperateDeparts', dataIndex: 'cooperationUnit_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 主起草人 { // 主起草人
title: this.$t('enterpriseStandardLibrary.plan.principalDrafter'), title: this.$t('enterpriseStandardLibrary.plan.principalDrafter'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'mainDraftingUser', dataIndex: 'mainDraftingUser_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 主起草单位 { // 主起草单位
title: this.$t('enterpriseStandardLibrary.plan.mainDraftingUnit'), title: this.$t('enterpriseStandardLibrary.plan.mainDraftingUnit'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'mainDraftingUnit', dataIndex: 'mainDraftingUnit_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 主起草单位负责人 { // 主起草单位负责人
title: this.$t('enterpriseStandardLibrary.plan.headOfMainDraftingUnit'), title: this.$t('enterpriseStandardLibrary.plan.headOfMainDraftingUnit'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'mainDraftingUnitResponsiblePerson', dataIndex: 'mainDraftingUnitResponsiblePerson_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 隶属工作组 { // 隶属工作组
title: this.$t('workCenter.revisionPlanActivelyReport.affiliatedWorkingGroup'), title: this.$t('workCenter.revisionPlanActivelyReport.affiliatedWorkingGroup'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'affiliatedWorkingGroup', dataIndex: 'workGroup_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 标准推进人 { // 标准推进人
title: this.$t('enterpriseStandardLibrary.plan.standardPusher'), title: this.$t('enterpriseStandardLibrary.plan.standardPusher'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'standardPromoter', dataIndex: 'standardPromoter_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 草稿计划完成日期 { // 草稿计划完成日期
@@ -261,8 +261,8 @@ export default {
selectedRowKeys: [], selectedRowKeys: [],
selectionRows: [], selectionRows: [],
url: { url: {
list: '', downTemplateUrl: '/process/es/annualReport/templateDownload',
downTemplateUrl: '' importExcelUrl: '/process/es/annualReport/importExcel'
}, },
modalType: '' // 是在新增还是在编辑,编辑的时候放正在编辑的下标 modalType: '' // 是在新增还是在编辑,编辑的时候放正在编辑的下标
} }
@@ -341,7 +341,8 @@ export default {
} else { } else {
this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`) this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`)
} }
this.loadData() this.dataSource = Object.assign([], this.dataSource, info.file.response.result)
// this.dataSource.push(info.file.response.result)
} else { } else {
this.$message.error(`${info.file.name} ${info.file.response.message}.`) this.$message.error(`${info.file.name} ${info.file.response.message}.`)
} }