diff --git a/jero-boot/db/蔚来标准sql/dev_third_record.sql b/jero-boot/db/蔚来标准sql/dev_third_record.sql index 6f67d579a..b3ad6c4a9 100644 --- a/jero-boot/db/蔚来标准sql/dev_third_record.sql +++ b/jero-boot/db/蔚来标准sql/dev_third_record.sql @@ -239,6 +239,10 @@ CREATE TABLE `laws_technology_evaluation` ( PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '法规技术评估表' ROW_FORMAT = DYNAMIC; +-- 上报库认证类别参数信息 添加字段 2022-07-11 +ALTER TABLE `laws_weilai`.`report_cert_category_params_info` + ADD COLUMN `params_manifest_id` varchar(50) NULL COMMENT '上报库id' AFTER `version`; + -- 法规技术评估-流程明细表 CREATE TABLE `laws_technology_evaluation_flow_detail` ( `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java index ff8f7c289..a11e3fb76 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java @@ -1552,6 +1552,7 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl getById(@RequestParam(name = "id") String id) { + ParamsReportConfigEO paramsReportConfigEO = paramsReportConfigEOService.getById(id); + return Result.OK(paramsReportConfigEO); + } + } diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/entity/ReportCertCategoryParamsInfoEO.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/entity/ReportCertCategoryParamsInfoEO.java index 8ca30076c..80937575f 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/entity/ReportCertCategoryParamsInfoEO.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/entity/ReportCertCategoryParamsInfoEO.java @@ -29,4 +29,8 @@ public class ReportCertCategoryParamsInfoEO extends CertCategoryParamsInfoEO imp @ApiModelProperty(value = "发布时版本") private Integer version; + /**上报库id*/ + @ApiModelProperty(value = "上报库id") + private String paramsManifestId; + } diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/mapper/xml/ParamsReportDetailEOMapper.xml b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/mapper/xml/ParamsReportDetailEOMapper.xml index b539d2703..819e1af14 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/mapper/xml/ParamsReportDetailEOMapper.xml +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/mapper/xml/ParamsReportDetailEOMapper.xml @@ -103,10 +103,11 @@ prd.id as id, prd.nio_number as nio_number, prd.params_name as params_name, + prd.control_type as control_type, rccpi.params_number as cert_number, rccpi.params_name as cert_params_name from params_report_detail prd - left join report_cert_category_params_info rccpi on prd.nio_number = rccpi.nio_number + left join report_cert_category_params_info rccpi on (prd.params_manifest_id = rccpi.params_manifest_id and prd.nio_number = rccpi.nio_number) and prd.id in diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/mapper/xml/ReportCertCategoryParamsInfoEOMapper.xml b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/mapper/xml/ReportCertCategoryParamsInfoEOMapper.xml index cc2317fb5..d73208e9f 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/mapper/xml/ReportCertCategoryParamsInfoEOMapper.xml +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/mapper/xml/ReportCertCategoryParamsInfoEOMapper.xml @@ -15,5 +15,6 @@ + \ No newline at end of file diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/service/impl/ParamsReportDetailEOServiceImpl.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/service/impl/ParamsReportDetailEOServiceImpl.java index ae409e6dc..629c3eebd 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/service/impl/ParamsReportDetailEOServiceImpl.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/report/service/impl/ParamsReportDetailEOServiceImpl.java @@ -588,7 +588,8 @@ public class ParamsReportDetailEOServiceImpl extends ServiceImpl paramsInfoEOList = paramsInfoEOMapper.selectListWithCert(paramsInfoVO); // 中文数据导出 - getTreeDictItemText(paramsInfoEOList, cut); +// getTreeDictItemText(paramsInfoEOList, cut); List> sheetsList = new ArrayList<>(); sheetsList = getCnExportSheetsList(paramsInfoEOList, fileNowPath, paramsTemplateId); workbook = ExcelExportUtil.exportExcel(sheetsList, ExcelType.XSSF); @@ -463,7 +463,7 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl paramsInfoEnExportList = paramsInfoEOMapper.selectListWithCertForEnExport(paramsInfoVO); // 英文数据导出 - getTreeDictItemTextForEnExport(paramsInfoEnExportList); +// getTreeDictItemTextForEnExport(paramsInfoEnExportList); List> sheetsList = new ArrayList<>(); sheetsList = getEnExportSheetsList(paramsInfoEnExportList, fileNowPath, paramsTemplateId); workbook = ExcelExportUtil.exportExcel(sheetsList, ExcelType.XSSF); @@ -839,7 +839,7 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl paramsInfoEOListEn = resultEn.getList(); copyParamsInfoList(paramsInfoEOListEn, paramsInfoEOList); } else { - String fields[] ={ "*NIO编号", "*是否必填", "*参数名称","*技术领域","*参数批次","*责任领域", + String fields[] ={ "*NIO编号", "*是否必填", "*参数名称","*参数批次","*责任领域", "参数说明", "*控件类型", "控件校验", "控件备选值", "附件模板"}; params.setImportFields(fields); @@ -1069,7 +1069,7 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl certCategoryParamsInfoEOList = new ArrayList<>(); // 树形数据字典 - List categoryList = sysCategoryService.queryByTreeDicCode("technology_territory"); +// List categoryList = sysCategoryService.queryByTreeDicCode("technology_territory"); // 普通数据字典 List dictItemList = new ArrayList<>(); List dictCodeList = new ArrayList<>(); @@ -1091,12 +1091,12 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl itemNameList = new ArrayList<>(); if (CutEnum.CN.getValue().equals(cut)) { - treeNameList = categoryList.stream().map(SysCategory::getName).collect(Collectors.toList()); +// treeNameList = categoryList.stream().map(SysCategory::getName).collect(Collectors.toList()); itemNameList = dictItemList.stream().map(SysDictItem::getItemText).collect(Collectors.toList()); certCategoryMap = dictItemList.stream().filter(e->"cert_category".equals(e.getDictCode())).collect(Collectors.toMap(c->c.getItemText(),c->c.getItemValue())); } else if(CutEnum.EN.getValue().equals(cut)){ - treeNameList = categoryList.stream().map(SysCategory::getEnName).collect(Collectors.toList()); +// treeNameList = categoryList.stream().map(SysCategory::getEnName).collect(Collectors.toList()); itemNameList = dictItemList.stream().map(SysDictItem::getEnName).collect(Collectors.toList()); certCategoryMap = dictItemList.stream().filter(e->"cert_category".equals(e.getDictCode())).collect(Collectors.toMap(c->c.getEnName(),c->c.getItemValue())); @@ -1177,15 +1177,15 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl { diff --git a/jero-web/src/views/businessSupport/regulationReport/components/modules/defaultTemplate.vue b/jero-web/src/views/businessSupport/regulationReport/components/modules/defaultTemplate.vue index cdd5dd3a4..61e2611e2 100644 --- a/jero-web/src/views/businessSupport/regulationReport/components/modules/defaultTemplate.vue +++ b/jero-web/src/views/businessSupport/regulationReport/components/modules/defaultTemplate.vue @@ -135,20 +135,20 @@ - -
-
- {{$t('releaseDate')}} -
- - - -
-
+ + + + + + + + + + + + + +
@@ -163,8 +163,6 @@
- -
@@ -180,6 +178,9 @@
+ + +
@@ -391,8 +392,21 @@ methods: { ...mapGetters(['userInfo']), getStandData(value) { + console.log(value) this.formInline.titleCn = value.serial_number + ' ' + value.title this.formInline.titleEn = value.serial_number + ' ' + value.title_en + this.formInline.technologyTerritory = value.technology_territory_dict + this.formInline.applyCar = value.shi4_yong4_che1_xing2_dict + this.formInline.applyScope = value.shi4_yong4_fan4_wei2_dict + this.formInline.state = value.state_dict + this.formInline.newCarImplementTime = value.xin1_che1_xing2_shi2_shi1_ri4_qi1 + this.formInline.productionCarImplementTime = value.implement_time + var curPath = window.document.location.href + var pathname = window.document.location.pathname + var pos = curPath.indexOf(pathname) + var localhostPath = curPath.substring(0, pos) + this.formInline.link = localhostPath + '/docManage/library/detail?id=' + value.id + this.formInline = {...this.formInline} }, getSysCategoryTree() { getAction('/sys/category/getSysCategoryTree', {}).then((res) => { diff --git a/jero-web/src/views/businessSupport/regulationReport/components/modules/fillAdd.vue b/jero-web/src/views/businessSupport/regulationReport/components/modules/fillAdd.vue index 22f173f08..ca2803ca7 100644 --- a/jero-web/src/views/businessSupport/regulationReport/components/modules/fillAdd.vue +++ b/jero-web/src/views/businessSupport/regulationReport/components/modules/fillAdd.vue @@ -50,6 +50,7 @@ v-model="formInline.memoriesChapter" :maxTagCount="1" :disabled="disabled" + @change="changeTree" :getPopupContainer="triggerNode=> triggerNode.parentNode" class="box-input" style="width: 100%" @@ -187,6 +188,9 @@ getAction('/report/lawsMonthlyReportTitleTemplateEO/list', {}).then((res) => { if (res.success) { this.chapterContentsList = res.result || [] + this.chapterContentsList.forEach(val => { + val.disabled = true + }) } else { this.chapterContentsList = [] } @@ -245,6 +249,13 @@ handleCancel() { this.visible = false }, + changeTree(value, node, extra) { + if (value.length > 1) { + value.shift() + } + this.formInline.memoriesChapter = value + this.formInline = { ...this.formInline } + }, handleSubmit() { this.$refs.ruleForm.validate(valid => { if (valid) { diff --git a/jero-web/src/views/dashboard/components/myList.vue b/jero-web/src/views/dashboard/components/myList.vue index 82e3f7663..3f1f4e533 100644 --- a/jero-web/src/views/dashboard/components/myList.vue +++ b/jero-web/src/views/dashboard/components/myList.vue @@ -86,8 +86,8 @@ }) }, prcClick(row) { - let index = row.taskIds.lastIndexOf(',') - row.taskIds = row.taskIds.slice(0, index) + // let index = row.taskIds.lastIndexOf(',') + // row.taskIds = row.taskIds.slice(0, index) if (row.prcType == '1') { let newUrl = this.$router.resolve({ path: '/handshakeProcess', diff --git a/jero-web/src/views/processCenter/components/evaluatorFeedback.vue b/jero-web/src/views/processCenter/components/evaluatorFeedback.vue new file mode 100644 index 000000000..a9b0fcefe --- /dev/null +++ b/jero-web/src/views/processCenter/components/evaluatorFeedback.vue @@ -0,0 +1,316 @@ + + + + + \ No newline at end of file diff --git a/jero-web/src/views/processCenter/components/evaluatorFeedbackList.vue b/jero-web/src/views/processCenter/components/evaluatorFeedbackList.vue new file mode 100644 index 000000000..1711ad4fe --- /dev/null +++ b/jero-web/src/views/processCenter/components/evaluatorFeedbackList.vue @@ -0,0 +1,217 @@ + + + + + \ No newline at end of file diff --git a/jero-web/src/views/processCenter/components/feedbackInformation.vue b/jero-web/src/views/processCenter/components/feedbackInformation.vue index 2eb3fd2ce..31a6c837d 100644 --- a/jero-web/src/views/processCenter/components/feedbackInformation.vue +++ b/jero-web/src/views/processCenter/components/feedbackInformation.vue @@ -7,16 +7,16 @@
-
+
{{$t('feedbackPoint')+(index+1)}}
@@ -26,7 +26,11 @@ * {{$t('relevantSections')}}
- + {{$t('questionsSuggestions')}}
- + { - return [] + default: (() => { + return [] }) - }, + } }, data() { return { formInline: {}, - disabled:false, + disabled: false, rules: {}, - uploadIndex:'', + uploadIndex: '', dataList: [] } }, mounted() { - if (this.feedbackDataList && this.feedbackDataList.length > 0){ - this.dataList = this.feedbackDataList - this.dataList = [...this.dataList] - }else{ - this.dataList = [ - { - relatedSection: '', - issueOrSuggest: '', - reason: '', - accessoryFile: '' - } - ] - } + this.$nextTick(() => { + if (this.feedbackDataList && this.feedbackDataList.length > 0) { + this.formInline.dataList = this.feedbackDataList + this.formInline = { ...this.formInline } + } else { + this.formInline.dataList = [ + { + relatedSection: '', + issueOrSuggest: '', + reason: '', + accessoryFile: '' + } + ] + } + this.formInline = { ...this.formInline } + }) + }, methods: { - clickButtonToUpload(item,index) { + clickButtonToUpload(item, index) { this.$refs.uploadFile.perentHandleFunc() this.$refs.uploadFile.visible = true this.uploadName = item this.uploadIndex = index - getAction('sys/common/getFileInfos', { id: this.dataList[this.uploadIndex][this.uploadName] }).then((res) => { + getAction('sys/common/getFileInfos', { id: this.formInline.dataList[this.uploadIndex][this.uploadName] }).then((res) => { if (res.success) { this.$refs.uploadFile.perentHandleFunc(res.result) } else { @@ -155,21 +166,21 @@ }) } /** 赋值给当前对应的表单文件 */ - this.dataList[this.uploadIndex][this.uploadName] = attIdList.join(',') - this.dataList = [...this.dataList] + this.formInline.dataList[this.uploadIndex][this.uploadName] = attIdList.join(',') + this.formInline = { ...this.formInline } }, addData() { - this.dataList.push({ + this.formInline.dataList.push({ relatedSection: '', issueOrSuggest: '', reason: '', accessoryFile: '' }) - this.dataList = [...this.dataList] + this.formInline = { ...this.formInline } }, deleteData() { - this.dataList.pop() - this.dataList = [...this.dataList] + this.formInline.dataList.pop() + this.formInline = { ...this.formInline } } } } diff --git a/jero-web/src/views/processCenter/processForm/evaluationProcess/index.vue b/jero-web/src/views/processCenter/processForm/evaluationProcess/index.vue index 94ec268cf..bddbf9efc 100644 --- a/jero-web/src/views/processCenter/processForm/evaluationProcess/index.vue +++ b/jero-web/src/views/processCenter/processForm/evaluationProcess/index.vue @@ -12,11 +12,16 @@ :url="url" :standardContentQuery="queryProject" /> - + { - this.lawsOpinionAssessmentResult() - }) + this.isDisplay = true + // this.queryTaskDetailByTask(() => { + // this.lawsOpinionAssessmentResult() + // }) }, methods: { ...mapGetters(['userInfo']), @@ -161,8 +170,9 @@ }) }, submit() { - let dataList = this.$refs.feedbackInformationRef.dataList - this.insertBatch(dataList, 2) + this.$refs.evaluatorFeedbackRef.submitData() + // let dataList = this.$refs.feedbackInformationRef.dataList + // this.insertBatch(dataList, 2) }, completeTask() { let query = { diff --git a/jero-web/src/views/processCenter/processForm/regulatoryProcess/index.vue b/jero-web/src/views/processCenter/processForm/regulatoryProcess/index.vue index 165d6d740..9d30aecbb 100644 --- a/jero-web/src/views/processCenter/processForm/regulatoryProcess/index.vue +++ b/jero-web/src/views/processCenter/processForm/regulatoryProcess/index.vue @@ -134,7 +134,7 @@ }, preservation() { this.loading = true - let dataList = this.$refs.feedbackInformationRef.dataList + let dataList = this.$refs.feedbackInformationRef.formInline.dataList this.insertBatch(dataList, 1) }, insertBatch(list, num) { @@ -162,7 +162,7 @@ }) }, submit() { - let dataList = this.$refs.feedbackInformationRef.dataList + let dataList = this.$refs.feedbackInformationRef.formInline.dataList this.insertBatch(dataList, 2) }, completeTask() { diff --git a/jero-web/src/views/processCenter/processList/tabComponents/processCenter/index.vue b/jero-web/src/views/processCenter/processList/tabComponents/processCenter/index.vue index e3981099f..ce1eaeec0 100644 --- a/jero-web/src/views/processCenter/processList/tabComponents/processCenter/index.vue +++ b/jero-web/src/views/processCenter/processList/tabComponents/processCenter/index.vue @@ -154,8 +154,8 @@ }) }, dealWith(row) { - let index = row.taskIds.lastIndexOf(',') - row.taskIds = row.taskIds.slice(0, index) + // let index = row.taskIds.lastIndexOf(',') + // row.taskIds = row.taskIds.slice(0, index) if (row.prcType == '1') { let newUrl = this.$router.resolve({ path: '/handshakeProcess',