Merge remote-tracking branch 'origin/dev_2nd_LCYH' into dev_2nd_LCYH

This commit is contained in:
zyx.net
2023-03-27 14:46:02 +08:00
7 changed files with 71 additions and 56 deletions
@@ -2070,6 +2070,21 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
String itemName = (String) standNameAndItemName.get("itemName"); String itemName = (String) standNameAndItemName.get("itemName");
try { try {
for (ProjectCertificationInventoryEO projectCertificationInventoryEO : projectCertificationInventoryEOList) {
// 把交付结果、截止日期清空,流程状态 设置为 清单待发布
LambdaUpdateWrapper<ProjectCertificationInventoryEO> updateWrap = new LambdaUpdateWrapper<>();
updateWrap.set(ProjectCertificationInventoryEO::getDeliveryResult,null);
// 流程重置,清空截止日期, 撤回不清空。 对应禅道问题:67048
if(StringUtils.equals(operatorType,OperatorTypeEnum.CERTIFICATION_INVENTORY_STUDIO_RESET.getValue())){
updateWrap.set(ProjectCertificationInventoryEO::getEndTime,null);
}
updateWrap.set(ProjectCertificationInventoryEO::getFlowStatus,CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
updateWrap.eq(ProjectCertificationInventoryEO::getId,projectCertificationInventoryEO.getId());
this.update(updateWrap);
}
// 处理待办中心相关数据 // 处理待办中心相关数据
// 更新该项目认证流程中,认证工程师的任务状态。 // 更新该项目认证流程中,认证工程师的任务状态。
// 认证工程师接受任务节点 // 认证工程师接受任务节点
@@ -2090,21 +2105,6 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
detailRemoveWrap.lambda().in(ProcessInfoDetailEO::getProjectLawsInventoryId,idList); detailRemoveWrap.lambda().in(ProcessInfoDetailEO::getProjectLawsInventoryId,idList);
this.processInfoDetailEOService.remove(detailRemoveWrap); this.processInfoDetailEOService.remove(detailRemoveWrap);
for (ProjectCertificationInventoryEO projectCertificationInventoryEO : projectCertificationInventoryEOList) {
// 把交付结果、截止日期清空,流程状态 设置为 清单待发布
LambdaUpdateWrapper<ProjectCertificationInventoryEO> updateWrap = new LambdaUpdateWrapper<>();
updateWrap.set(ProjectCertificationInventoryEO::getDeliveryResult,null);
// 流程重置,清空截止日期, 撤回不清空。 对应禅道问题:67048
if(StringUtils.equals(operatorType,OperatorTypeEnum.CERTIFICATION_INVENTORY_STUDIO_RESET.getValue())){
updateWrap.set(ProjectCertificationInventoryEO::getEndTime,null);
}
updateWrap.set(ProjectCertificationInventoryEO::getFlowStatus,CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
updateWrap.eq(ProjectCertificationInventoryEO::getId,projectCertificationInventoryEO.getId());
this.update(updateWrap);
}
try { try {
List<SysUser> certificationEngineerList = this.sysUserService.querySysUserListByIdList(certificationEngineerIdList); List<SysUser> certificationEngineerList = this.sysUserService.querySysUserListByIdList(certificationEngineerIdList);
if(CollectionUtils.isNotEmpty(certificationEngineerList)){ if(CollectionUtils.isNotEmpty(certificationEngineerList)){
+1
View File
@@ -1718,4 +1718,5 @@ module.exports = {
youCanOnlySelectStatusClearSubmit:'You can only select data with a process status of Clear to Submit', youCanOnlySelectStatusClearSubmit:'You can only select data with a process status of Clear to Submit',
note:'Note: The attachment includes the list of test items and test report. Test standard or technical specification', note:'Note: The attachment includes the list of test items and test report. Test standard or technical specification',
format:'It supports doc/docx/pdf format and is less than 50M in size', format:'It supports doc/docx/pdf format and is less than 50M in size',
cantTransferToYourself:"Can't transfer to yourself",
} }
+1
View File
@@ -1818,4 +1818,5 @@ module.exports = {
youCanOnlySelectStatusClearSubmit:'只能选择流程状态为清单待提交的数据', youCanOnlySelectStatusClearSubmit:'只能选择流程状态为清单待提交的数据',
note:':附件包括测试项目清单测试报告测试标准或技术规范', note:':附件包括测试项目清单测试报告测试标准或技术规范',
format:'支持doc/docx/pdf格式,大小50M以内', format:'支持doc/docx/pdf格式,大小50M以内',
cantTransferToYourself:"不能转办给自己",
} }
@@ -70,7 +70,7 @@
<span slot="hardwareversioninformation" slot-scope="text,record"> <span slot="hardwareversioninformation" slot-scope="text,record">
<a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input> <a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input>
</span> </span>
<span slot="softwaredevelopmententerprise" slot-scope="text,record"> <span slot="softwaredevelopmententerprise" slot-scope="text,record">
<a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input> <a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input>
</span> </span>
@@ -93,10 +93,10 @@
}}</a-button> }}</a-button>
<div style='margin-top: 20px'> <div style='margin-top: 20px'>
<p>注:附件包括测试项目清单、测试报告.测试标准或技术规范</p> <p>{{ $t('note') }}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;支持doc/docx/pdf格式,大小50M以内</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;{{ $t('format') }}</p>
</div> </div>
</div> </div>
<div class="bootom-button"> <div class="bootom-button">
<a-button style="margin-right:50px" @click="save">{{$t('preservation')}}</a-button> <a-button style="margin-right:50px" @click="save">{{$t('preservation')}}</a-button>
@@ -317,7 +317,7 @@ import ImportFile from '@/components/ImportFileData/index'
otaIdT='' otaIdT=''
} }
getAction('/ota/otaBaCxKsjjsmccs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{ getAction('/ota/otaBaCxKsjjsmccs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
if(res.code==200){ if(res.code==200){
if(res.result.list.length==0){ if(res.result.list.length==0){
this.dataSource=[ this.dataSource=[
{ {
@@ -38,6 +38,10 @@
</a-button> </a-button>
</span> </span>
</a-table> </a-table>
<div style='margin-top: 20px'>
<p>{{ $t('note') }}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;{{ $t('format') }}</p>
</div>
<div class="bootom-button"> <div class="bootom-button">
<a-button class='btn' @click="save">{{$t('preservation')}}</a-button> <a-button class='btn' @click="save">{{$t('preservation')}}</a-button>
<a-button type="primary" style='width: 73px;margin-right: 50px' @click='last'>{{$t('last')}}</a-button> <a-button type="primary" style='width: 73px;margin-right: 50px' @click='last'>{{$t('last')}}</a-button>
@@ -182,10 +186,10 @@ import ImportFile from '@/components/ImportFileData/index'
// this.getList() // this.getList()
this.getData() this.getData()
}, },
methods: { methods: {
// 模板下载 // 模板下载
handleModule() { handleModule() {
downloadFile('ota/otaBaCxAqcs/exportTemplate', '安全措施' + '.zip', {}) downloadFile('ota/otaBaCxAqcs/exportTemplate', '安全措施' + '.zip', {})
}, },
@@ -196,7 +200,7 @@ import ImportFile from '@/components/ImportFileData/index'
} }
getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{ getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
if(res.code == 200){ if(res.code == 200){
this.dataSource[0].info = res.result.bhjz this.dataSource[0].info = res.result.bhjz
this.dataSource[1].info =res.result.fsxjz this.dataSource[1].info =res.result.fsxjz
// this.dataSource[2].info= Number(res.result.sjsbcs)== 0 ? undefined :Number(res.result.sjsbcs) // this.dataSource[2].info= Number(res.result.sjsbcs)== 0 ? undefined :Number(res.result.sjsbcs)
@@ -211,7 +215,7 @@ import ImportFile from '@/components/ImportFileData/index'
this.loading = false this.loading = false
} }
}) })
}, },
uploadSuccess(data) { uploadSuccess(data) {
let attIdList = [] let attIdList = []
@@ -1383,13 +1383,13 @@
for (let i = 0; i < this.selectedRowKeysList.length; i++) { for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') { if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') {
isTrue = true isTrue = true
}else{ } else {
isTrue = false isTrue = false
this.$message.warning(this.$t('youCanOnlySelectStatusClearSubmit')) this.$message.warning(this.$t('youCanOnlySelectStatusClearSubmit'))
return return
} }
} }
if (isTrue){ if (isTrue) {
this.$refs.referenceDeliverablesListRef.transferModel(JSON.parse(JSON.stringify(this.selectedRowKeys))) this.$refs.referenceDeliverablesListRef.transferModel(JSON.parse(JSON.stringify(this.selectedRowKeys)))
} }
} else { } else {
@@ -1453,6 +1453,11 @@
}, },
//转办接口 //转办接口
SelectedByForm(userIds) { SelectedByForm(userIds) {
if (this.userInfo().id == userIds) {
this.$refs.SelectedByRef.submitLoading = false
this.$message.warning(this.$t('cantTransferToYourself'))
return
}
let query = { let query = {
transferUserId: userIds, transferUserId: userIds,
'projectLibraryId': this.$route.query.id, 'projectLibraryId': this.$route.query.id,
@@ -761,14 +761,14 @@
scopedSlots: { customRender: 'verifyDeliverableTemplateName' } scopedSlots: { customRender: 'verifyDeliverableTemplateName' }
} }
] ]
},
{
title: this.$t('operation'),
align: 'left',
fixed: 'right',
width: 260,
scopedSlots: { customRender: 'operation' }
} }
// {
// title: this.$t('operation'),
// align: 'left',
// fixed: 'right',
// width: 260,
// scopedSlots: { customRender: 'operation' }
// }
], ],
columnsAll: [], columnsAll: [],
columnsFileAll: [ columnsFileAll: [
@@ -1998,39 +1998,43 @@
moduleFlag: '法规清单' moduleFlag: '法规清单'
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
this.columnsAll = res.result if (res.result && res.result.length > 0) {
for (let j = 0; j < this.columnsAll.length; j++) { this.columnsAll = res.result
for (let i = 0; i < this.column.length; i++) { for (let j = 0; j < this.columnsAll.length; j++) {
if (this.columnsAll[j].title == this.$t('confirmationOfDesignConformity')) { for (let i = 0; i < this.column.length; i++) {
if (this.column[i].title == this.$t('confirmationOfDesignConformity')) { if (this.columnsAll[j].title == this.$t('confirmationOfDesignConformity')) {
if (this.columnsAll[j].children && this.columnsAll[j].children.length > 0) { if (this.column[i].title == this.$t('confirmationOfDesignConformity')) {
for (let k = 0; k < this.columnsAll[j].children.length; k++) { if (this.columnsAll[j].children && this.columnsAll[j].children.length > 0) {
for (let l = 0; l < this.column[i].children.length; l++) { for (let k = 0; k < this.columnsAll[j].children.length; k++) {
if (this.columnsAll[j].children[k].title == this.column[i].children[l].title) { for (let l = 0; l < this.column[i].children.length; l++) {
this.columnsAll[j].children[k] = this.column[i].children[l] if (this.columnsAll[j].children[k].title == this.column[i].children[l].title) {
this.columnsAll[j].children[k] = this.column[i].children[l]
}
} }
} }
} }
} }
} } else if (this.columnsAll[j].title == this.$t('verificationAndConformityconfirmation')) {
} else if (this.columnsAll[j].title == this.$t('verificationAndConformityconfirmation')) { if (this.column[i].title == this.$t('verificationAndConformityconfirmation')) {
if (this.column[i].title == this.$t('verificationAndConformityconfirmation')) { if (this.columnsAll[j].children && this.columnsAll[j].children.length > 0) {
if (this.columnsAll[j].children && this.columnsAll[j].children.length > 0) { for (let k = 0; k < this.columnsAll[j].children.length; k++) {
for (let k = 0; k < this.columnsAll[j].children.length; k++) { for (let l = 0; l < this.column[i].children.length; l++) {
for (let l = 0; l < this.column[i].children.length; l++) { if (this.columnsAll[j].children[k].title == this.column[i].children[l].title) {
if (this.columnsAll[j].children[k].title == this.column[i].children[l].title) { this.columnsAll[j].children[k] = this.column[i].children[l]
this.columnsAll[j].children[k] = this.column[i].children[l] }
} }
} }
} }
} }
} } else {
} else { if (this.column[i].dataIndex == this.columnsAll[j].dataIndex) {
if (this.column[i].dataIndex == this.columnsAll[j].dataIndex) { this.columnsAll[j] = this.column[i]
this.columnsAll[j] = this.column[i] }
} }
} }
} }
} else {
this.columnsAll = this.column
} }
this.columnsAll.push({ this.columnsAll.push({
title: this.$t('operation'), title: this.$t('operation'),
@@ -2511,7 +2515,7 @@
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful')) _this.$message.success(_this.$t('OperationSuccessful'))
this.selectedRowKeys = [] _this.selectedRowKeys = []
_this.getList() _this.getList()
} else { } else {
_this.$message.warning(_this.$t('operationFailed')) _this.$message.warning(_this.$t('operationFailed'))