diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js index 21048677..72b5a3a5 100644 --- a/src/common/lang/en-us.js +++ b/src/common/lang/en-us.js @@ -5,6 +5,7 @@ const enterpriseStandardLibrary = require('./enterpriseStandardLibrary/en.js') const businessSupport = require('./businessSupport/en') const projectLibrary = require('./projectLibrary/en.js') const dashboard = require('./dashboard/en') +const workCenter = require('./workCenter/en') module.exports = { // 共用 @@ -536,5 +537,7 @@ module.exports = { // 项目库 projectLibrary, // 首页 - dashboard + dashboard, + // 工作中心 + workCenter } diff --git a/src/common/lang/enterpriseStandardLibrary/zh.js b/src/common/lang/enterpriseStandardLibrary/zh.js index 1cec0a2a..25db2b7b 100644 --- a/src/common/lang/enterpriseStandardLibrary/zh.js +++ b/src/common/lang/enterpriseStandardLibrary/zh.js @@ -155,9 +155,5 @@ module.exports = { similarEnStandardsAnalysis: '企业同类标准对比分析', standardLeadingNecessity: '立项标准的领先性与必要性', projectExpectedEffects: '立项目的及预期效果等' - }, - // 企标计划立项/变更流程 - initChangeFlow: { - title: '企标立项/变更计划' } } diff --git a/src/common/lang/workCenter/en.js b/src/common/lang/workCenter/en.js new file mode 100644 index 00000000..e69de29b diff --git a/src/common/lang/workCenter/zh.js b/src/common/lang/workCenter/zh.js new file mode 100644 index 00000000..94e2c895 --- /dev/null +++ b/src/common/lang/workCenter/zh.js @@ -0,0 +1,69 @@ +module.exports = { + // 新建流程页 + newProcess: { + externalStandardsManagementProcess: '外部标准管理流程', + standardRegulationEntryCorrectionProcess: '标准法规入库/更正流程', + annotateTheConsultationProcess: '标准征求意见流程', + projectComplianceAssessmentProcess: '项目合规评估流程', + noMatchTrackingProcess: '未符合项跟踪流程', + regulatoryComplianceAssessmentProcess: '法规合规评估流程', + regulatoryProcurementProcess: '法规采购流程', + enterpriseProjectChangePlan: '企标立项/变更计划', + annualRevisionPlanActivelyReport: '年度制修订计划审批流程(各部门主动上报)', + annualRevisionPlanStandardizationInit: '年度制修订计划审批流程(标准化发起)', + enterpriseStandardSystemRevisionProcess: '企标制修订流程', + bidChangeProcess: '企标更改流程', + processOfEnterpriseBidReview: '企标复审流程', + processOfEnterpriseBidAnnulment: '企标废止流程', + processOfSealingEnterpriseStandard: '企标封存流程', + theSealedEnterpriseBidHasBeenActivatedProcess: '已封存企标启用流程', + enterpriseStandardAuditPlan: '企标稽查计划', + processOfEnterpriseStandardAudit: '企标稽查流程', + auditExtensionApplicationProcess: '稽查延期申请流程', + enterpriseStandardInspectionAndRectification: '企标稽查整改', + permissionApplicationProcess: '权限申请流程', + standardPromotionProcess: '标准宣贯流程', + workgroupProcess: '工作组相关流程', + postMeetingManagementProcess: '会后管理流程' + }, + // 企标立项/变更计划 + enterpriseInitChangePlan: { + applicationType: '申请类型', + standardProjectEstablishment: '标准立项', + change: '变更', + itemCategory: '项目类别', + formulate: '制定', + revise: '修订', + enterpriseStandardNum: '企标编号', + enterpriseStandardName: '企标名称', + enterpriseStandardCode: '企业标准代号', + enterpriseNameCode: '企业名称代号', + standardCategoryCode: '标准类别代号', + yearNumber: '年代号', + newEnterpriseStandardNum: '新企标编号', + newEnterpriseStandardName: '新企标名称', + standardEnglishName: '标准英文名称', + standardSystem: '标准体系', + standardType: '标准类型', + standardGradeClassification: '标准等级分类', + compilationIllustration: '编制说明', + draftPlanFinishDate: '草稿计划完成日期', + exposureDraftPlanFinishDate: '征求意见稿计划完成日期', + planSubmissionDate: '计划报批日期', + partName: '零部件名称', + authorizationDepart: '授权部门', + principalDrafter: '主起草人', + mainDraftUnit: '主起草单位', + headOfMainDraftingUnit: '起草单位负责人', + standardPusher: '标准推进人', + suitUnit: '配合单位', + projectStatement: '立项说明', + projectApprovalChangeReason: '立项/变更原因', + projectBackground: '立项背景、立项依据', + homogeneousStandardAnalysis: '国际、国家及行业同类标准分析', + standardContrastiveAnalysis: '企业同类标准对比分析', + leadershipAndNecessity: '立项标准的领先性与必要性', + initiatedProject: '立项目的及预期效果等', + uploadAttachment: '上传附件' + } +} diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index 42bb7ee3..0e646fea 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -5,6 +5,7 @@ const enterpriseStandardLibrary = require('./enterpriseStandardLibrary/zh.js') const businessSupport = require('./businessSupport/zh') const projectLibrary = require('./projectLibrary/zh.js') const dashboard = require('./dashboard/zh') +const workCenter = require('./workCenter/zh') module.exports = { // 共用 @@ -136,7 +137,16 @@ module.exports = { standardName: '标准名称', standardNumOrName: '标准编号/标准名称', fileImportError: '文件导入错误', - flowCenter: '流程中心——', + flowCenter: '流程中心', + processInformation: '流程信息', + basicServiceInformation: '业务基本信息', + processApprovalInformation: '流程审批信息', + processName: '流程名称', + expirationDate: '截止日期', + processExplain: '流程说明', + entrust: '委托', + consent: '同意', + turnDown: '驳回', // 树右键 treeRight: { addFolder: '新增文件夹', @@ -526,30 +536,6 @@ module.exports = { downTemplate: '点击下载模板', noFileMsg: '请选择一个文件' }, - // 新建流程页 - newProcess: { - externalStandardsManagementProcess: '外部标准管理流程', - standardRegulationEntryCorrectionProcess: '标准法规入库/更正流程', - annotateTheConsultationProcess: '标准征求意见流程', - projectComplianceAssessmentProcess: '项目合规评估流程', - noMatchTrackingProcess: '未符合项跟踪流程', - regulatoryComplianceAssessmentProcess: '法规合规评估流程', - regulatoryProcurementProcess: '法规采购流程', - enterpriseProjectChangePlan: '企标立项/变更计划', - annualRevisionPlanActivelyReport: '年度制修订计划审批流程(各部门主动上报)', - annualRevisionPlanStandardizationInit: '年度制修订计划审批流程(标准化发起)', - enterpriseStandardSystemRevisionProcess: '企标制修订流程', - bidChangeProcess: '企标更改流程', - processOfEnterpriseBidReview: '企标复审流程', - processOfEnterpriseBidAnnulment: '企标废止流程', - processOfSealingEnterpriseStandard: '企标封存流程', - theSealedEnterpriseBidHasBeenActivatedProcess: '已封存企标启用流程', - enterpriseStandardAuditPlan: '企标稽查计划', - processOfEnterpriseStandardAudit: '企标稽查流程', - auditExtensionApplicationProcess: '稽查延期申请流程', - enterpriseStandardInspectionAndRectification: '企标稽查整改', - permissionApplicationProcess: '权限申请流程' - }, // 系统管理 system, // 个人中心 @@ -563,5 +549,7 @@ module.exports = { // 项目库 projectLibrary, // 首页 - dashboard + dashboard, + // 工作中心 + workCenter } diff --git a/src/components/selection/StandardSelectionModal.vue b/src/components/selection/StandardSelectionModal.vue index 5dbec23b..307e8b68 100644 --- a/src/components/selection/StandardSelectionModal.vue +++ b/src/components/selection/StandardSelectionModal.vue @@ -39,7 +39,7 @@ :scroll="{x: 900}" :data-source="dataList" :pagination="ipagination" - :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" + :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: changeType }" :loading="loading"> @@ -72,6 +72,11 @@ export default { disabledSourceSearch: { type: Boolean, default: false + }, + // 选择是单选还是多选 + changeType: { + type: String, + default: 'checkbox' } }, data () { diff --git a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue index 415c26f3..3d6b91ff 100644 --- a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue +++ b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue @@ -59,17 +59,27 @@ @reset="searchReset" />
+ {{ $t('newlyAdded') }} + {{ $t('import') }} + {{ $t('export') }} + {{ $t('exportWithFile') }} + {{ $t('templateDownload') }} + {{ $t('batchDelete') }} + {{ $t('enterpriseStandardLibrary.standard.allocationStandard') }} + {{ $t('enterpriseStandardLibrary.standard.shiftOutStandard') }} + {{ $t('enterpriseStandardLibrary.standard.initChange') }} + {{ $t('enterpriseStandardLibrary.standard.temporaryPermissionSet') }}
@@ -174,7 +184,7 @@ import TreeNodeModal from './modules/TreeNodeModal' import UserSelectModal from '../../../components/selection/UserSelectModal' // 配置标准弹框 import AllocationStandardDrawer from './modules/AllocationStandardDrawer' -import { postDownFile } from '@/api/manage' +import { postDownFile, downloadFile } from '@/api/manage' export default { name: 'EnterpriseStandardList', @@ -405,6 +415,13 @@ export default { modalLoading.destroy() }) }, + // 下载导入模板 + downTemplate (fileName) { + if (!fileName || typeof fileName !== 'string') { + fileName = '模板文件' + } + downloadFile(this.url.downTemplateUrl, fileName + '.zip') + }, // 配置标准 handleAllocationStandard () { console.log(this.currentTreeNode) diff --git a/src/views/workCenter/NewProcess.vue b/src/views/workCenter/NewProcess.vue index 1966a82d..7591b7d7 100644 --- a/src/views/workCenter/NewProcess.vue +++ b/src/views/workCenter/NewProcess.vue @@ -17,30 +17,30 @@ export default { dataList: [ { // 外部标准管理流程 uid: 1, - text: this.$t('newProcess.externalStandardsManagementProcess'), + text: this.$t('workCenter.newProcess.externalStandardsManagementProcess'), list: [ { // 标准法规入库/更正流程 - title: this.$t('newProcess.standardRegulationEntryCorrectionProcess'), + title: this.$t('workCenter.newProcess.standardRegulationEntryCorrectionProcess'), path: '/workCenter/StandardEntryOrChangeProcess' }, { // 标准征求意见流程 - title: this.$t('newProcess.annotateTheConsultationProcess'), + title: this.$t('workCenter.newProcess.annotateTheConsultationProcess'), path: '' }, { // 项目合规评估流程 - title: this.$t('newProcess.projectComplianceAssessmentProcess'), + title: this.$t('workCenter.newProcess.projectComplianceAssessmentProcess'), path: '' }, { // 未符合项跟踪流程 - title: this.$t('newProcess.noMatchTrackingProcess'), + title: this.$t('workCenter.newProcess.noMatchTrackingProcess'), path: '' }, { // 法规合规评估流程 - title: this.$t('newProcess.regulatoryComplianceAssessmentProcess'), + title: this.$t('workCenter.newProcess.regulatoryComplianceAssessmentProcess'), path: '' }, { // 法规采购流程 - title: this.$t('newProcess.regulatoryProcurementProcess'), + title: this.$t('workCenter.newProcess.regulatoryProcurementProcess'), path: '' } ] @@ -50,73 +50,73 @@ export default { text: '企标管理流程', list: [ { // 企标立项/变更计划 - title: this.$t('newProcess.enterpriseProjectChangePlan'), + title: this.$t('workCenter.newProcess.enterpriseProjectChangePlan'), path: '/workCenter/enterpriseStandardInitChange/flow/planApprovalChangeFlow' }, { // 年度制修订计划审批流程(各部门主动上报) - title: this.$t('newProcess.annualRevisionPlanActivelyReport'), + title: this.$t('workCenter.newProcess.annualRevisionPlanActivelyReport'), path: '' }, { // 年度制修订计划审批流程(标准化发起) - title: this.$t('newProcess.annualRevisionPlanStandardizationInit'), + title: this.$t('workCenter.newProcess.annualRevisionPlanStandardizationInit'), path: '' }, { // 企标制修订流程 - title: this.$t('newProcess.enterpriseStandardSystemRevisionProcess'), + title: this.$t('workCenter.newProcess.enterpriseStandardSystemRevisionProcess'), path: '' }, { // 企标更改流程 - title: this.$t('newProcess.bidChangeProcess'), + title: this.$t('workCenter.newProcess.bidChangeProcess'), path: '' }, { // 企标复审流程 - title: this.$t('newProcess.processOfEnterpriseBidReview'), + title: this.$t('workCenter.newProcess.processOfEnterpriseBidReview'), path: '' }, { // 企标废止流程 - title: this.$t('newProcess.processOfEnterpriseBidAnnulment'), + title: this.$t('workCenter.newProcess.processOfEnterpriseBidAnnulment'), path: '' }, { // 企标封存流程 - title: this.$t('newProcess.processOfSealingEnterpriseStandard'), + title: this.$t('workCenter.newProcess.processOfSealingEnterpriseStandard'), path: '' }, { // 已封存企标启用流程 - title: this.$t('newProcess.theSealedEnterpriseBidHasBeenActivatedProcess'), + title: this.$t('workCenter.newProcess.theSealedEnterpriseBidHasBeenActivatedProcess'), path: '' }, { // 企标稽查计划 - title: this.$t('newProcess.enterpriseStandardAuditPlan'), + title: this.$t('workCenter.newProcess.enterpriseStandardAuditPlan'), path: '' }, { // 企标稽查流程 - title: this.$t('newProcess.processOfEnterpriseStandardAudit'), + title: this.$t('workCenter.newProcess.processOfEnterpriseStandardAudit'), path: '' }, { // 稽查延期申请流程 - title: this.$t('newProcess.auditExtensionApplicationProcess'), + title: this.$t('workCenter.newProcess.auditExtensionApplicationProcess'), path: '' }, { // 企标稽查整改 - title: this.$t('newProcess.enterpriseStandardInspectionAndRectification'), + title: this.$t('workCenter.newProcess.enterpriseStandardInspectionAndRectification'), path: '' }, { // 权限申请流程 - title: '权限申请流程', + title: this.$t('workCenter.newProcess.permissionApplicationProcess'), path: '' }, - { - title: '标准宣贯流程', + { // 标准宣贯流程 + title: this.$t('workCenter.newProcess.standardPromotionProcess'), path: '' } ] }, { // 工作组相关流程 uid: 3, - text: '工作组相关流程', + text: this.$t('workCenter.newProcess.workgroupProcess'), list: [ - { - title: '会后管理流程', + { // 会后管理流程 + title: this.$t('workCenter.newProcess.postMeetingManagementProcess'), path: '' } ] diff --git a/src/views/workCenter/enterpriseStandardInitChange/flow/PlanApprovalChangeFlow.vue b/src/views/workCenter/enterpriseStandardInitChange/flow/PlanApprovalChangeFlow.vue index 40a5bd43..1a0c1c90 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/flow/PlanApprovalChangeFlow.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/flow/PlanApprovalChangeFlow.vue @@ -1,20 +1,805 @@ -