修改中英文

This commit is contained in:
高嵩
2023-07-17 11:44:49 +08:00
parent f82b4d94f0
commit 878226b0a5
6 changed files with 25 additions and 12 deletions
@@ -434,7 +434,7 @@ public class ToDoCenterServiceImpl implements IToDoCenterService {
if (StringUtils.equals(data.getFlowType(), FlowTypeEnum.QDQR.getValue())) { if (StringUtils.equals(data.getFlowType(), FlowTypeEnum.QDQR.getValue())) {
String taskDefinitionKeyName = "任务发起"; String taskDefinitionKeyName = "任务发起";
if (StringUtils.equals(cut, CutEnum.EN.getValue())) { if (StringUtils.equals(cut, CutEnum.EN.getValue())) {
taskDefinitionKeyName = "Task initiation"; taskDefinitionKeyName = "Task Initiation";
} }
data.setTaskDefinitionKeyName(taskDefinitionKeyName); data.setTaskDefinitionKeyName(taskDefinitionKeyName);
} }
@@ -8,10 +8,10 @@ import org.apache.commons.lang3.StringUtils;
*/ */
public enum VerifyComplianceFlowNodeKeyEnum { public enum VerifyComplianceFlowNodeKeyEnum {
FQLC("发起流程","Task Initiation","fqlc"), FQLC("发起流程","Task Initiation","fqlc"),
ZRRQR("任务责任确认","Responsibility Confirm","zrrqr"), // 责任人确认 ZRRQR("任务责任确认","Responsibilty Confirmation","zrrqr"), // 责任人确认
DEZRRQR("任务责任确认","Responsibility Confirm","dezrrqr"),// 第二责任人确认 DEZRRQR("任务责任确认","Responsibilty Confirmation","dezrrqr"),// 第二责任人确认
ZRRTJJFW("符合性确认","Compliance Confirm","zrrtjjfw"),// "责任人提交交付物" ZRRTJJFW("符合性确认","Compliance Confirmation","zrrtjjfw"),// "责任人提交交付物"
DEZRRTJJFW("符合性确认","Compliance Confirm","dezrrtjjfw"),// 第二责任人提交交付物 DEZRRTJJFW("符合性确认","Compliance Confirmation","dezrrtjjfw"),// 第二责任人提交交付物
FGGCSSH("符合性审查","Compliance Review","fggcssh"), // 法规工程师审核 FGGCSSH("符合性审查","Compliance Review","fggcssh"), // 法规工程师审核
TGSC("通过审查","","tgsc"), // 通过审查,发消息用 TGSC("通过审查","","tgsc"), // 通过审查,发消息用
@@ -161,11 +161,15 @@ public class ProcessHistoryEOServiceImpl extends ServiceImpl<ProcessHistoryEOMap
String approvalFiles = datas.stream().map(ProcessHistoryEO::getApprovalFile).distinct().collect(Collectors.joining(",")); String approvalFiles = datas.stream().map(ProcessHistoryEO::getApprovalFile).distinct().collect(Collectors.joining(","));
List<OSSFile> approvalFileList = this.ossFileService.getFileInfos(approvalFiles); List<OSSFile> approvalFileList = this.ossFileService.getFileInfos(approvalFiles);
int index = 0;
for (ProcessHistoryEO data : datas) { for (ProcessHistoryEO data : datas) {
if(StringUtils.isNotEmpty(data.getOperatorResult())){ if(StringUtils.isNotEmpty(data.getOperatorResult())){
data.setReviewResult(ReviewResultEnum.getTextByValue(data.getOperatorResult(),cut)); data.setReviewResult(ReviewResultEnum.getTextByValue(data.getOperatorResult(),cut));
} }
if(StringUtils.isNotEmpty(data.getOperatorResult())){ if(StringUtils.isNotEmpty(data.getOperatorResult())){
if(StringUtils.equals(data.getOperatorResult(),ReviewResultEnum.RETURNED.getValue())){
data.setOperatorResult(datas.get(index-1).getOperatorResult());
}
data.setOperatorResultName(ReviewResultEnum.getTextByValue(data.getOperatorResult(),cut)); data.setOperatorResultName(ReviewResultEnum.getTextByValue(data.getOperatorResult(),cut));
} }
if(StringUtils.isNotEmpty(data.getOperatorPersonId()) && CollectionUtils.isNotEmpty(sysUserList)){ if(StringUtils.isNotEmpty(data.getOperatorPersonId()) && CollectionUtils.isNotEmpty(sysUserList)){
@@ -206,6 +210,7 @@ public class ProcessHistoryEOServiceImpl extends ServiceImpl<ProcessHistoryEOMap
data.setApprovalFileName(approvalFileNames); data.setApprovalFileName(approvalFileNames);
} }
} }
index ++;
} }
} }
} }
+2 -2
View File
@@ -46,9 +46,9 @@
<!-- {{$t('languageSwitching')}}--> <!-- {{$t('languageSwitching')}}-->
语言/Language 语言/Language
</span> </span>
<span class="lang" :class="{'langWeight':!checked}">Cn</span> <span class="lang" :class="{'langWeight':!checked}">CN</span>
<van-switch @change="checkedChange" :loading="isLoading" v-model="checked"/> <van-switch @change="checkedChange" :loading="isLoading" v-model="checked"/>
<span class="lang" :class="{'langWeight':checked}">En</span> <span class="lang" :class="{'langWeight':checked}">EN</span>
</div> </div>
<van-tabbar v-model="active" @change="onChange"> <van-tabbar v-model="active" @change="onChange">
<van-tabbar-item name="search" icon="search">{{$t('phoneSearch')}}</van-tabbar-item> <van-tabbar-item name="search" icon="search">{{$t('phoneSearch')}}</van-tabbar-item>
@@ -764,9 +764,9 @@
// return false // return false
// } // }
if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') { if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') {
return true
} else {
return false return false
} else {
return true
} }
}, },
isEditVerifi(val) { isEditVerifi(val) {
@@ -777,9 +777,9 @@
// return false // return false
// } // }
if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') { if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') {
return true
} else {
return false return false
} else {
return true
} }
}, },
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
@@ -2039,6 +2039,8 @@
contentList[i].verifyFlowStatus == 'Duty Person Rejected' || contentList[i].verifyFlowStatus == 'Duty Person Rejected' ||
contentList[i].designFlowStatus == 'Duty Person Rejected') { contentList[i].designFlowStatus == 'Duty Person Rejected') {
idList.push(contentList[i].id) idList.push(contentList[i].id)
}else if(contentList[i].designFlowStatus == 'NA' || contentList[i].verifyFlowStatus == 'NA'){
} else { } else {
detailedWarningList.push( detailedWarningList.push(
< div > { contentList[i].serialNumber + this.$t('pleaseSelectTheDataverificationVerified') } < /div>) < div > { contentList[i].serialNumber + this.$t('pleaseSelectTheDataverificationVerified') } < /div>)
@@ -2912,7 +2914,9 @@
dataSource[i].designFlowStatus == 'Duty Person Rejected') { dataSource[i].designFlowStatus == 'Duty Person Rejected') {
idList.push(dataSource[i].id) idList.push(dataSource[i].id)
this.rowKeysSuccessList.push(dataSource[i]) this.rowKeysSuccessList.push(dataSource[i])
} else { } else if(dataSource[i].designFlowStatus == 'NA' || dataSource[i].verifyFlowStatus == 'NA'){
}else {
this.detailedWarningList.push( this.detailedWarningList.push(
< div > { dataSource[i].serialNumber + this.$t('pleaseSelectTheDataverificationVerified') } < /div>) < div > { dataSource[i].serialNumber + this.$t('pleaseSelectTheDataverificationVerified') } < /div>)
} }
@@ -2994,6 +2998,8 @@
} }
// _this.startProcess(dataList[i], 2, this.requestsNum) // _this.startProcess(dataList[i], 2, this.requestsNum)
} }
}else if(dataList[i].designFlowStatus == 'NA'){
} else { } else {
_this.detailedWarningList.push( _this.detailedWarningList.push(
< div > { dataList[i].serialNumber + _this.$t('pleaseSelectTheDataverificationVerified') } < /div>) < div > { dataList[i].serialNumber + _this.$t('pleaseSelectTheDataverificationVerified') } < /div>)
@@ -3012,6 +3018,8 @@
} }
// _this.startProcess(dataList[i], 4, this.requestsNum) // _this.startProcess(dataList[i], 4, this.requestsNum)
} }
}else if(dataList[i].verifyFlowStatus == 'NA'){
} else { } else {
_this.detailedWarningList.push( _this.detailedWarningList.push(
< div > { dataList[i].serialNumber + _this.$t('pleaseSelectTheDataverificationVerified') } < /div>) < div > { dataList[i].serialNumber + _this.$t('pleaseSelectTheDataverificationVerified') } < /div>)