diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java index 3a6b6e9e9..a9011b79f 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java @@ -226,4 +226,12 @@ public interface IProjectCertificationInventoryEOService extends IService projectCertificationInventoryEOS,String templeteId,List userIdList,List userInfoList); + + /** + * 数据唯一校验。 + * @param projectCertificationInventoryEOList + * @param cut + * @return + */ + List dataUniqueCheck(List projectCertificationInventoryEOList, String cut,List result); } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java index 0d91c75d2..cc1ad52c3 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java @@ -128,6 +128,8 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl batchAdd(JSONObject json) { + String cut = json.getString("cut"); + List result = new ArrayList<>(); + if(StringUtils.equals(cut,CutEnum.CN.getValue())){ + result.add("添加成功!"); + }else { + result.add("Successfully added!"); + } try { String serialNumber = json.getString("serialNumber"); String wvtaId = json.getString("wvtaId"); String bussDocumentLibraryId = json.getString("bussDocumentLibraryId"); String projectLibraryId = json.getString("projectLibraryId"); + JSONArray dataList = json.getJSONArray("dataList"); List projectCertificationInventoryEOList = new ArrayList<>(); ProjectCertificationInventoryEO projectCertificationInventoryEO = null; @@ -310,13 +320,15 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl saveDataList = this.dataUniqueCheck(projectCertificationInventoryEOList,cut,result); - if(CollectionUtils.isNotEmpty(projectCertificationInventoryEOList)){ - this.saveBatch(projectCertificationInventoryEOList); + if(CollectionUtils.isNotEmpty(saveDataList)){ + this.saveBatch(saveDataList); LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); List projectCertificationInventoryLogEOList = new ArrayList<>(); - for (ProjectCertificationInventoryEO certificationInventoryEO : projectCertificationInventoryEOList) { + for (ProjectCertificationInventoryEO certificationInventoryEO : saveDataList) { StringBuilder contentCnSb = new StringBuilder(); contentCnSb.append("\"").append(currentUser.getUsername()).append("\"").append(" 添加了 "); contentCnSb.append("\"").append(certificationInventoryEO.getCategory()).append("\"").append(" "); @@ -343,7 +355,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl dataUniqueCheck(List projectCertificationInventoryEOList, String cut,List result) { + List pciSaveList = new ArrayList<>(); + + List allDataList = this.list(); + // 重复数据数组 + List duplicateDataList = allDataList.stream().filter(data -> { + boolean flag = false; + for (ProjectCertificationInventoryEO projectCertificationInventoryEO : projectCertificationInventoryEOList) { + boolean categoryFlag = StringUtils.equals(projectCertificationInventoryEO.getCategory(), data.getCategory()); + boolean inspectionItemFlag = StringUtils.equals(projectCertificationInventoryEO.getInspectionItem(), data.getInspectionItem()); + boolean configItemFlag = StringUtils.equals(projectCertificationInventoryEO.getConfigItem(), data.getConfigItem()); + boolean serialNumberFlag = StringUtils.equals(projectCertificationInventoryEO.getSerialNumber(), data.getSerialNumber()); + boolean dutyTerritoryFlag = StringUtils.equals(projectCertificationInventoryEO.getDutyTerritory(), data.getDutyTerritory()); + // 类别+检验项目+配置项+编号+责任领域 作为唯一检验 + if(categoryFlag && inspectionItemFlag && configItemFlag && serialNumberFlag && dutyTerritoryFlag){ + flag = true; + } + } + return flag; + }).collect(Collectors.toList()); + if(CollectionUtils.isNotEmpty(duplicateDataList)){ + if (StringUtils.equals(cut, CutEnum.CN.getValue())) { + result.add("您所选的数据中包含当前项目中已包含的条目信息,已为您过滤添加。"); + }else { + result.add("The data you have selected contains item information already included in the current project, which has been filtered and added for you."); + } + } + + // 过滤重复的数据 + pciSaveList = projectCertificationInventoryEOList.stream().filter(pciEO -> { + boolean flag = true; + for (ProjectCertificationInventoryEO allData : allDataList) { + boolean categoryFlag = StringUtils.equals(pciEO.getCategory(), allData.getCategory()); + boolean inspectionItemFlag = StringUtils.equals(pciEO.getInspectionItem(), allData.getInspectionItem()); + boolean configItemFlag = StringUtils.equals(pciEO.getConfigItem(), allData.getConfigItem()); + boolean serialNumberFlag = StringUtils.equals(pciEO.getSerialNumber(), allData.getSerialNumber()); + boolean dutyTerritoryFlag = StringUtils.equals(pciEO.getDutyTerritory(), allData.getDutyTerritory()); + // 类别+检验项目+配置项+编号+责任领域 作为唯一检验 + if(categoryFlag && inspectionItemFlag && configItemFlag && serialNumberFlag && dutyTerritoryFlag){ + flag = false; + break; + } + } + return flag; + }).collect(Collectors.toList()); + return pciSaveList; + } + @Override public void importDisposeData(List datas, String cut) { if(CollectionUtils.isNotEmpty(datas)){ @@ -2585,6 +2652,14 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl callAdd(JSONObject json) { + String cut = json.getString("cut"); + List result = new ArrayList<>(); + if(StringUtils.equals(cut,CutEnum.CN.getValue())){ + result.add("调取成功!"); + }else { + result.add("Successfully retrieved!"); + } + String authDummyInventoryBaseId = json.getString("authDummyInventoryBaseId"); if(StringUtils.isEmpty(authDummyInventoryBaseId)){ throw new JeroBootException("请选择一个认证虚拟清单进行操作!"); @@ -2602,21 +2677,58 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl authDummyInventoryInfoEOList = this.authDummyInventoryInfoEOService.list(authDummyInfoQueryWrap); if(CollectionUtils.isNotEmpty(authDummyInventoryInfoEOList)){ - List projectCertificationInventoryEOList = new ArrayList<>(); - for (AuthDummyInventoryInfoEO authDummyInventoryInfoEO : authDummyInventoryInfoEOList) { - ProjectCertificationInventoryEO projectCertificationInventoryEOTemp = new ProjectCertificationInventoryEO(); - BeanUtils.copyProperties(authDummyInventoryInfoEO,projectCertificationInventoryEOTemp); + QueryWrapper lawsInventoryEOQueryWrap = new QueryWrapper<>(); + lawsInventoryEOQueryWrap.lambda().eq(ProjectLawsInventoryEO::getProjectLibraryId,projectLibraryId); + List projectLawsInventoryEOList = this.projectLawsInventoryEOService.list(lawsInventoryEOQueryWrap); - projectCertificationInventoryEOTemp.setId(UUID.randomUUID().toString().replace("-", "")); - projectCertificationInventoryEOTemp.setProjectLibraryId(projectLibraryId); - projectCertificationInventoryEOTemp.setFlowStatus(CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()); - projectCertificationInventoryEOList.add(projectCertificationInventoryEOTemp); + List projectCertificationInventoryEOList = new ArrayList<>(); + + List noSerialNumberList = new ArrayList<>(); + + for (AuthDummyInventoryInfoEO authDummyInventoryInfoEO : authDummyInventoryInfoEOList) { + if(CollectionUtils.isEmpty(projectLawsInventoryEOList)){ + break; + } + + // 根据选择调取的数据法规编号,跟当前项目中 法规清单数据法规编号对比,如果有,则加入,如果没有,则不加入。 + List lawsInventoryEOListTemp = projectLawsInventoryEOList.stream().filter(lawsInventoryEO -> { + boolean flag = false; + if (StringUtils.equals(authDummyInventoryInfoEO.getSerialNumber(), lawsInventoryEO.getSerialNumber())) { + flag = true; + } + return flag; + }).collect(Collectors.toList()); + + if(CollectionUtils.isNotEmpty(lawsInventoryEOListTemp)){ + ProjectCertificationInventoryEO projectCertificationInventoryEOTemp = new ProjectCertificationInventoryEO(); + BeanUtils.copyProperties(authDummyInventoryInfoEO,projectCertificationInventoryEOTemp); + + projectCertificationInventoryEOTemp.setId(UUID.randomUUID().toString().replace("-", "")); + projectCertificationInventoryEOTemp.setProjectLibraryId(projectLibraryId); + projectCertificationInventoryEOTemp.setFlowStatus(CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()); + projectCertificationInventoryEOList.add(projectCertificationInventoryEOTemp); + }else { + noSerialNumberList.add(authDummyInventoryInfoEO.getSerialNumber()); + } } - this.saveBatch(projectCertificationInventoryEOList); + + + if(CollectionUtils.isNotEmpty(noSerialNumberList)){ + // 判断调取的数据中,是否有 在当前项目库法规清单中 没有的编号 + if (StringUtils.equals(cut, CutEnum.CN.getValue())) { + result.add("您所选的数据中包含当前项目中不包含的法规编号信息,已为您过滤添加。"); + }else { + result.add("The data you have selected contains regulatory number information that is not included in the current project, and has been filtered and added for you."); + } + } + + List saveDataList = this.dataUniqueCheck(projectCertificationInventoryEOList, cut, result); + + this.saveBatch(saveDataList); Date now = new Date(); //设置权限 先删后加 List adds = new ArrayList<>(); - for (ProjectCertificationInventoryEO pci: projectCertificationInventoryEOList) { + for (ProjectCertificationInventoryEO pci: saveDataList) { if (ObjectUtils.isNotEmpty(pci.getSdt())) { setProjectCertificationInventoryPermission(pci.getSdt(), pci.getProjectLibraryId(), pci.getId(), now, adds, ProjectUserLocationEnum.PROJECT_CERTIFICATION_INVENTORY_SDT.getValue()); } @@ -2629,7 +2741,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl \ No newline at end of file diff --git a/jero-web/src/components/uploadFileOta/file.vue b/jero-web/src/components/uploadFileOta/file.vue index 510dc1a4c..d61721059 100644 --- a/jero-web/src/components/uploadFileOta/file.vue +++ b/jero-web/src/components/uploadFileOta/file.vue @@ -34,7 +34,7 @@ export default { name: 'file', - props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'isMultiple', 'restrictUploads', 'Uploadable'], + props: ['disableds', 'disabled','acceptcode', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'isMultiple', 'restrictUploads', 'Uploadable'], data() { return { visible: false, @@ -88,6 +88,16 @@ // let thisFileType = this.thisFileType.replace(/\s+/g, ""); console.log(file) this.fileTypeSatus = true + //根据格式拦截 + if(this.acceptcode){ + let fileNames = file.name.split('.') + let fileType = fileNames[fileNames.length - 1].toLocaleLowerCase() + let extList = this.acceptcode.split(',') + if (!extList.find((item) => item == fileType)) { + this.$message.error(this.$t('uploadOnly') + this.acceptcode + this.$t('type')) + return false + } + } if (this.isMultiple) { if ((this.myfileList && this.myfileList.length == 1) || this.myfileList && this.myfileList.length > 1) { this.$message.warning(this.$t('onlyOnefileUploaded')) diff --git a/jero-web/src/views/otamanagement/upgradeactivity/components/maintenance.vue b/jero-web/src/views/otamanagement/upgradeactivity/components/maintenance.vue index 75237d8fc..0993686b4 100644 --- a/jero-web/src/views/otamanagement/upgradeactivity/components/maintenance.vue +++ b/jero-web/src/views/otamanagement/upgradeactivity/components/maintenance.vue @@ -41,7 +41,7 @@ :getCalendarContainer="(trigger) => trigger.parentNode" v-model="formInline.batjsj" :disabled="false" - style="width: 100%"/> + style="width: 90%"/> @@ -52,9 +52,10 @@ {{$t('remarks')}} - + @@ -95,6 +96,9 @@ export default { trigger: 'change' } ], + bz: [ + { min: 1, max: 500, message: this.$t('cantExeed') + '500' + this.$t('characters'), trigger: 'blur' } + ] // listConfirmation: [ // { // required: true, @@ -154,6 +158,11 @@ export default { edit(row) { if(row instanceof Array){ this.ids = row.join(',') + this.formInline = { + bazt:undefined, + batjsj:'', + bz:'', + } }else{ this.formInline.bazt = row.bazt ? row.bazt : undefined this.formInline.batjsj = row.batjsj @@ -189,7 +198,7 @@ export default { }, handleCancel() { this.formInline = { - bazt:'', + bazt:undefined, batjsj:'', bz:'',} this.ids = '' @@ -274,7 +283,7 @@ export default { .box-input { display: inline-block; height: 38px; - width: 100%; + width: 90%; } .itemModel { diff --git a/jero-web/src/views/otamanagement/upgradeactivity/index.vue b/jero-web/src/views/otamanagement/upgradeactivity/index.vue index 7ac514e96..42ea1fcf1 100644 --- a/jero-web/src/views/otamanagement/upgradeactivity/index.vue +++ b/jero-web/src/views/otamanagement/upgradeactivity/index.vue @@ -111,7 +111,7 @@
+ :accept="'.zip'" @getList="getList"/>
- +
@@ -43,18 +43,13 @@ - - - - - - + {{$t('add')}} - {{$t('delete')}} + {{$t('delete')}}
@@ -155,23 +150,6 @@ export default { width: 170, scopedSlots: { customRender: 'upgradetheelectroniccontrollerinvolved' }, }, - { - title: this.$t('functiondescription'), - align: 'left', - dataIndex: 'functiondescription', - ellipsis: true, - width: 170, - scopedSlots: { customRender: 'functiondescription' }, - }, - { - title: this.$t('applicationconditions'), - align: 'left', - dataIndex: 'applicationconditions', - ellipsis: true, - width: 170, - scopedSlots: { customRender: 'applicationconditions' }, - }, - { title: this.$t('operation'), align: 'left', diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue index 161896a0e..57d4712a5 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/thetargetvehicleofthisupgrade.vue @@ -3,7 +3,7 @@
- +
@@ -79,6 +79,7 @@ formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles') }} +

支持cxv格式,大下20M以内,数量1-10个

diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradehavechanged.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradehavechanged.vue index 4193f643a..ccf6ef607 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradehavechanged.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradehavechanged.vue @@ -3,7 +3,7 @@
- +
@@ -63,7 +63,7 @@ {{$t('addcontroller')}} - {{$t('delete')}} + {{$t('delete')}}
diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue index 14424544b..3c081c5b6 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue @@ -3,7 +3,7 @@
- +
@@ -478,8 +478,12 @@ this.$forceUpdate() border-bottom: none; vertical-align: top; overflow: hidden; /*超出部分隐藏*/ - text-overflow: ellipsis; /*超出部分省略号表示*/ - white-space: nowrap; + // text-overflow: ellipsis; /*超出部分省略号表示*/ + white-space: wrap; + display: flex; + // justify-content: center; + align-items: center; + line-height: 1.3; } //::v-deep .sider .ant-layout-sider .ant-layout-sider-dark{ // min-width: 723px !important; @@ -511,14 +515,17 @@ this.$forceUpdate() display: inline-block; width: 100%; height: 50px; - line-height: 50px; + line-height: 1.3; border: black solid 1px; vertical-align: top; border-right: none; border-bottom: none; overflow: hidden; /*超出部分隐藏*/ - text-overflow: ellipsis; /*超出部分省略号表示*/ - white-space: nowrap; + // text-overflow: ellipsis; /*超出部分省略号表示*/ + white-space: wrap; + display: flex; + // justify-content: center; + align-items: center; } .sider-span{ display: inline-block; diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue index 28cdc7401..bee003e7b 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue @@ -3,13 +3,14 @@
- +
{{$t('templateDownload')}}
+ @@ -58,7 +59,7 @@
-
+
{{$t('Modelandfunctionrecord')}}
@@ -288,9 +289,9 @@ import ImportFile from '@/components/ImportFileData/index' font-weight: 500; font-size: 14px; margin-right: 16px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + // overflow: hidden; + // text-overflow: ellipsis; + // white-space: nowrap; height: 42px; line-height: 42px; margin-top: 3px; @@ -336,4 +337,8 @@ import ImportFile from '@/components/ImportFileData/index' .bootom-button{ text-align: center!important; } + .plus{ + margin-top: 5px; + line-height: 1.4 !important; + } \ No newline at end of file diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/usernotification.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/usernotification.vue index 5a5717e53..ee2864893 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/usernotification.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/usernotification.vue @@ -3,7 +3,7 @@
- +
@@ -260,7 +260,10 @@ export default { display: flex; } - +h1{ + font-weight: 700; + font-style: 20px; +} .title-text-add { width: 440px; text-align: right; diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue index 1b6efda2d..d3a2a4bd3 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue @@ -50,13 +50,13 @@ - + - + - + @@ -87,14 +87,12 @@ {{$t('delete')}} - -
- 证明材料: +
{{ (fileList === 'null' || fileList === '' || fileList == null) ? $t('clickUpload') : $t('viewUploadedFiles') }} -
+

{{ $t('note') }}

    {{ $t('format') }}

@@ -137,7 +135,7 @@ import ImportFile from '@/components/ImportFileData/index' gnmc:'车道偏离预警(LDW)', }, { - gnmc:'盲区监测(BSD)', + gnmc:'百区监测(BSD)', }, { gnmc:'驾驶员疲劳监测(DFM)', diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue index 7b337e867..f72635bab 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue @@ -1145,7 +1145,7 @@ button{ line-height: 50px; } .text-box-three{ - isplay: inline-block; + display: inline-block; float: left; border: #e8e8e8 solid 1px; width: 100%; @@ -1153,7 +1153,7 @@ button{ line-height: 250px; } .text-box-four{ - isplay: inline-block; + display: inline-block; float: left; border: #e8e8e8 solid 1px; width: 100%; @@ -1161,15 +1161,18 @@ button{ line-height: 600px; } .four-text-text{ - isplay: inline-block; + display: inline-block; float: left; border: #e8e8e8 solid 1px; width: 50%; height: 600px; - line-height: 600px; + line-height: 20px; + display: flex; + justify-content: center; + align-items: center; } .four-text{ - isplay: inline-block; + display: inline-block; float: left; border: #e8e8e8 solid 1px; width: 50%; @@ -1177,7 +1180,7 @@ button{ line-height: 150px; } .text-box-five{ - isplay: inline-block; + display: inline-block; float: left; border: #e8e8e8 solid 1px; width: 100%; @@ -1185,9 +1188,10 @@ button{ line-height: 100px; } span{ - overflow: hidden; /*超出部分隐藏*/ - text-overflow: ellipsis; /*超出部分省略号表示*/ - white-space: nowrap; + /* overflow: hidden; /*超出部分隐藏*/ + /* text-overflow: ellipsis; 超出部分省略号表示 */ + white-space: wrap; + /* word-wrap: normal; */ } .item-input{ margin-top: 9px; diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue index 66653b1ed..2690dc4a0 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue @@ -47,7 +47,7 @@ {{$t('last')}} {{$t('next')}}
- +
diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue index 9d3871bec..5f4f216e0 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue @@ -32,7 +32,7 @@ - + @@ -99,7 +99,7 @@ {{$t('next')}}
- +
diff --git a/jero-web/src/views/otamanagement/vehicleregistration/components/maintenance.vue b/jero-web/src/views/otamanagement/vehicleregistration/components/maintenance.vue index 98267cd05..ddba93e87 100644 --- a/jero-web/src/views/otamanagement/vehicleregistration/components/maintenance.vue +++ b/jero-web/src/views/otamanagement/vehicleregistration/components/maintenance.vue @@ -20,6 +20,7 @@
@@ -40,7 +41,7 @@ format="YYYY-MM-DD" :getCalendarContainer="(trigger) => trigger.parentNode" v-model="formInline.batjsj" - style="width: 100%"/> + style="width: 90%"/>
@@ -51,9 +52,10 @@ {{$t('remarks')}}
- +
@@ -75,7 +77,7 @@ export default { visible: false, confirmLoading: false, formInline: { - bazt:'', + bazt:undefined, batjsj:'', bz:'', }, @@ -94,6 +96,9 @@ export default { trigger: 'change' } ], + bz: [ + { min: 1, max: 500, message: this.$t('cantExeed') + '500' + this.$t('characters'), trigger: 'blur' } + ] // designDeadline: [ // { // required: true, @@ -139,6 +144,11 @@ export default { edit(row) { if(row instanceof Array){ this.ids = row.join(',') + this.formInline = { + bazt:undefined, + batjsj:'', + bz:'', + } }else{ this.formInline.bazt = row.bazt ? row.bazt : undefined this.formInline.batjsj = row.batjsj @@ -172,9 +182,15 @@ export default { } }) }, + selectchange(value){ + this.$nextTick(() => { + this.formInline = { ...this.formInline } + this.$refs.ruleForm.validateField('bazt') + }) + }, handleCancel() { this.formInline = { - bazt:'', + bazt:undefined, batjsj:'', bz:'',} this.ids = '' @@ -259,7 +275,7 @@ export default { .box-input { display: inline-block; height: 38px; - width: 100%; + width: 90%; } .itemModel { diff --git a/jero-web/src/views/otamanagement/vehicleregistration/index.vue b/jero-web/src/views/otamanagement/vehicleregistration/index.vue index dd41cd958..9ddc8ef68 100644 --- a/jero-web/src/views/otamanagement/vehicleregistration/index.vue +++ b/jero-web/src/views/otamanagement/vehicleregistration/index.vue @@ -6,10 +6,10 @@
-
- {{ $t('upgraderegistrationnumber') }} +
+ {{ $t('registrationnumber') }}
-
@@ -104,7 +104,7 @@ {{ $t('datamaintenance') }}
- +
diff --git a/jero-web/src/views/parameter/parameterlist/components/addModel.vue b/jero-web/src/views/parameter/parameterlist/components/addModel.vue index 922689d45..250e8cca1 100644 --- a/jero-web/src/views/parameter/parameterlist/components/addModel.vue +++ b/jero-web/src/views/parameter/parameterlist/components/addModel.vue @@ -317,7 +317,7 @@ {{$t('submit')}}
- +
diff --git a/jero-web/src/views/projectManagement/components/certificationList/index.vue b/jero-web/src/views/projectManagement/components/certificationList/index.vue index 21166c48f..cf788bfe9 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/index.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/index.vue @@ -402,6 +402,7 @@ + {{ $t('Submitting') }} @@ -514,6 +515,7 @@ pageNo: 1, pageSize: 50, total: 0, + JTextLoading: false, CertificationColor: { 'Test passed': 'accordColor', 'Test failed': 'nonConformityColor', @@ -973,25 +975,49 @@ processResetClick() { let _this = this if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { - this.$confirm({ - content: _this.$t('confirmResetProcess'), - onOk() { - let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys)) - postAction('/project/projectCertificationInventoryEO/resetFlow', { - ids: idList.join(','), - projectLibraryId: _this.$route.query.id, - operatorType: 'certificationInventoryStudioReset' - }).then((res) => { - if (res.success) { - _this.$message.success(_this.$t('OperationSuccessful')) - _this.selectedRowKeys = [] - _this.getList() - } else { - _this.$message.warning(res.message) - } - }) + let ids = [] + let notConditions = [] + for (let i = 0; i < this.selectedRowKeysList.length; i++) { + if (this.selectedRowKeysList[i].flowStatus == 'List to be released') { + notConditions.push(this.selectedRowKeysList[i].inspectionItem) + } else { + ids.push(this.selectedRowKeysList[i].id) } - }) + } + let data = '' + if (notConditions && notConditions.length > 0) { + data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('dataWithProcessReleasedCannotBeReset') + } + if (ids && ids.length > 0) { + this.$confirm({ + content: _this.$t('confirmResetProcess'), + onOk() { + _this.JTextLoading = true + let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys)) + postAction('/project/projectCertificationInventoryEO/resetFlow', { + ids: idList.join(','), + projectLibraryId: _this.$route.query.id, + operatorType: 'certificationInventoryStudioReset' + }).then((res) => { + if (res.success) { + _this.$message.success(_this.$t('OperationSuccessful')) + _this.selectedRowKeys = [] + _this.getList() + if (notConditions && notConditions.length > 0) { + _this.failedMessage(data) + } + _this.JTextLoading = false + } else { + _this.$message.warning(res.message) + _this.JTextLoading = false + } + }) + } + }) + } else { + this.failedMessage(data) + this.JTextLoading = false + } } else { this.$message.warning(this.$t('selectLeastOne')) } diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index 8053df156..7ab49a743 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -1528,7 +1528,7 @@ _this.selectedRowKeys = [] _this.getList() if (detailedWarningList && detailedWarningList.length > 0) { - this.promptInformation(detailedWarningList) + _this.promptInformation(detailedWarningList) } } else { _this.$message.warning(_this.$t('operationFailed')) @@ -1689,19 +1689,20 @@ for (let i = 0; i < this.dataSource.length; i++) { for (let j = 0; j < selectedRowKeys.length; j++) { if (this.dataSource[i].id == selectedRowKeys[j]) { - content.push(this.dataSource[i]) + // content.push(this.dataSource[i]) + isTrue = true } } } - for (let i = 0; i < content.length; i++) { - if (content[i].designFlowStatus == 'List to be released' && - content[i].verifyFlowStatus == 'List to be released') { - isTrue = false - - } else { - isTrue = true - } - } + // for (let i = 0; i < content.length; i++) { + // if (content[i].designFlowStatus == 'List to be released' && + // content[i].verifyFlowStatus == 'List to be released') { + // isTrue = false + // + // } else { + // isTrue = true + // } + // } if (isTrue) { this.changeInterface(selectedRowKeys) } @@ -2389,9 +2390,11 @@ _this.detailedWarningList.push( < div > { dataList[i].serialNumber + _this.$t('pleaseSelectTheDataverificationVerified') } < /div>) } + } if (this.requestsNum == 0) { - _this.promptInformation(_this.detailedWarningList) + this.$message.warning(_this.$t('theDataYouInitiate')) + // _this.promptInformation(_this.detailedWarningList) this.JTextLoading = false } },