合并分支 'master' 到 'dev_third_stage'

Master

查看合并请求 laws-nio/laws-weilai!52
This commit is contained in:
李雪涛
2022-07-06 21:28:40 +08:00
6 changed files with 88 additions and 41 deletions
@@ -152,10 +152,11 @@ public class ProjectLawsInventoryEOController extends JeroController<ProjectLaws
*/
@AutoLog(value = "项目库-法规清单表-批量删除")
@ApiOperation(value="项目库-法规清单表-批量删除", notes="项目库-法规清单表-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids,
@RequestParam(name="projectLibraryId",required=true) String projectLibraryId,
@RequestParam(name="cut",required=true) String cut) {
@PostMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestBody JSONObject json) {
String ids = json.getString("ids");
String projectLibraryId = json.getString("projectLibraryId");
String cut = json.getString("cut");
this.projectLawsInventoryEOService.deleteByIds(Arrays.asList(ids.split(",")),projectLibraryId,cut);
return Result.OK("批量删除成功!");
}
@@ -1060,7 +1060,14 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
}
//如果是拒绝
}else if(StringUtils.equals(inventoryAffirmStatus,InventoryAffirmStatusEnum.REJECTED.getValue())){
if(StringUtils.isNotEmpty(projectLawsInventoryEO.getHomologationEngineerSubmitStatus())
if((StringUtils.isNotEmpty(projectLawsInventoryEO.getHomologationEngineerSubmitStatus())&& StringUtils.equals(projectLawsInventoryEO.getHomologationEngineerSubmitStatus(),OperatorResultEnum.REJECTED.getValue()))
&& (StringUtils.isNotEmpty(projectLawsInventoryEO.getRegulationOwnerSubmitStatus())&& StringUtils.equals(projectLawsInventoryEO.getRegulationOwnerSubmitStatus(),OperatorResultEnum.REJECTED.getValue()))){
if(StringUtils.equals(cut, CutEnum.CN.getValue())){
projectLawsInventoryEO.setInventoryAffirmStatusName(InventoryAffirmStatusEnum.REJECTED.getName());
}else {
projectLawsInventoryEO.setInventoryAffirmStatusName(InventoryAffirmStatusEnum.REJECTED.getValue());
}
}else if(StringUtils.isNotEmpty(projectLawsInventoryEO.getHomologationEngineerSubmitStatus())
&& StringUtils.equals(projectLawsInventoryEO.getHomologationEngineerSubmitStatus(),OperatorResultEnum.REJECTED.getValue())){
//如果认证工程师提交状态不为空并且认证工程师提交状态为拒绝
if(StringUtils.equals(cut, CutEnum.CN.getValue())){
@@ -904,7 +904,7 @@
verifyDutyIdDisabled: false,
verifyInitiatorIdDisabled: false,
DeliverableTreeList: [],
userInfoQuery:{},
userInfoQuery: {}
}
},
mounted() {
@@ -1240,6 +1240,33 @@
formInline[res] = formInline[res].join(',')
}
})
if (!formInline.verifyDutyId) {
formInline.verifyDutyId = ''
}
if (!formInline.regulationOwnerId) {
formInline.regulationOwnerId = ''
}
if (!formInline.engineeringInterfacePerson) {
formInline.engineeringInterfacePerson = ''
}
if (!formInline.homologationEngineerId) {
formInline.homologationEngineerId = ''
}
if (!formInline.designInitiatorId) {
formInline.designInitiatorId = ''
}
if (!formInline.designDutyId) {
formInline.designDutyId = ''
}
if (!formInline.prehomoInitiatorId) {
formInline.prehomoInitiatorId = ''
}
if (!formInline.prehomoDutyId) {
formInline.prehomoDutyId = ''
}
if (!formInline.verifyInitiatorId) {
formInline.verifyInitiatorId = ''
}
this.confirmLoading = true
putAction(this.url.editModel, formInline).then((res) => {
if (res.success) {
@@ -1241,7 +1241,7 @@
content: _this.$t('ConfirmBatchDeletion'),
onOk() {
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
deleteAction(_this.url.deleteBatch, {
postAction(_this.url.deleteBatch, {
ids: idList.join(','),
projectLibraryId: _this.$route.query.id
}).then((res) => {
@@ -1615,7 +1615,7 @@
})
},
getRowKeys(value, callBack) {
getRowKeys(value,num, callBack) {
let isTrue = true
let dataSource = []
for (let i = 0; i < this.dataSource.length; i++) {
@@ -1651,35 +1651,36 @@
// this.$message.warning(dataSource[i].serialNumber + this.$t('submitted'))
// return
}
if((dataSource[i].designInitiatorId == dataSource[i].regulationOwnerId
&& dataSource[i].designInitiatorId == this.userInfo().id) ||
(dataSource[i].designInitiatorId == dataSource[i].homologationEngineerId
&& dataSource[i].designInitiatorId == this.userInfo().id)){
if(!dataSource[i].designDutyId || !dataSource[i].designDueDate){
this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('confirmationOfDesignConformity') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>)
continue
}
}
if((dataSource[i].prehomoInitiatorId == dataSource[i].regulationOwnerId
&& dataSource[i].prehomoInitiatorId == this.userInfo().id) ||
(dataSource[i].prehomoInitiatorId == dataSource[i].homologationEngineerId
&& dataSource[i].prehomoInitiatorId == this.userInfo().id)){
if(!dataSource[i].prehomoDutyId || !dataSource[i].prehomoDueDate){
this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('PrehomoConfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>)
continue
if(num == 1){
if((dataSource[i].designInitiatorId == dataSource[i].regulationOwnerId
&& dataSource[i].designInitiatorId == this.userInfo().id) ||
(dataSource[i].designInitiatorId == dataSource[i].homologationEngineerId
&& dataSource[i].designInitiatorId == this.userInfo().id)){
if(!dataSource[i].designDutyId || !dataSource[i].designDueDate){
this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('confirmationOfDesignConformity') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>)
continue
}
}
}
if((dataSource[i].verifyInitiatorId == dataSource[i].regulationOwnerId
&& dataSource[i].verifyInitiatorId == this.userInfo().id) ||
(dataSource[i].verifyInitiatorId == dataSource[i].homologationEngineerId
&& dataSource[i].verifyInitiatorId == this.userInfo().id)){
if(!dataSource[i].verifyDutyId || !dataSource[i].verifyDueDate){
this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('verificationAndConformityconfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>)
continue
if((dataSource[i].prehomoInitiatorId == dataSource[i].regulationOwnerId
&& dataSource[i].prehomoInitiatorId == this.userInfo().id) ||
(dataSource[i].prehomoInitiatorId == dataSource[i].homologationEngineerId
&& dataSource[i].prehomoInitiatorId == this.userInfo().id)){
if(!dataSource[i].prehomoDutyId || !dataSource[i].prehomoDueDate){
this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('PrehomoConfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>)
continue
}
}
if((dataSource[i].verifyInitiatorId == dataSource[i].regulationOwnerId
&& dataSource[i].verifyInitiatorId == this.userInfo().id) ||
(dataSource[i].verifyInitiatorId == dataSource[i].homologationEngineerId
&& dataSource[i].verifyInitiatorId == this.userInfo().id)){
if(!dataSource[i].verifyDutyId || !dataSource[i].verifyDueDate){
this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('verificationAndConformityconfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>)
continue
}
}
}
this.rowKeysSuccessList.push(dataSource[i])
} else {
this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('incorrectsubmitted') } < /div>)
// isTrue = false
@@ -1760,12 +1761,12 @@
onOk() {
if (num == 0) {
let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys))
_this.getRowKeys(selectedRowKeys, function() {
_this.getRowKeys(selectedRowKeys, 1,function() {
_this.updateStatusBatch(num, selectedRowKeys)
})
} else {
let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys))
_this.getRowKeys(selectedRowKeys, function() {
_this.getRowKeys(selectedRowKeys, 2,function() {
_this.visibleComment = true
})
}
@@ -113,6 +113,17 @@
{{$t('edit')}}
</a>
</span>
<span slot="regulatoryEngineer" >
<span :title="$t('regulatoryEngineer')">
{{$t('regulatoryEngineer')}}
</span>
</span>
<span slot="engineeringInterfacePerson" :title="$t('engineeringInterfacePerson')">
{{$t('engineeringInterfacePerson')}}
</span>
<span slot="certifiedEngineer" :title="$t('certifiedEngineer')">
{{$t('certifiedEngineer')}}
</span>
</a-table>
<!-- <div class="page">-->
<!-- <a-pagination-->
@@ -267,20 +278,20 @@
ellipsis: true
},
{
title: this.$t('regulatoryEngineer'),
align: 'center',
dataIndex: 'lawEngineerName',
slots:{title:'regulatoryEngineer'},
ellipsis: true
},
{
title: this.$t('engineeringInterfacePerson'),
align: 'center',
slots:{title:'engineeringInterfacePerson'},
dataIndex: 'engineeringInterfacePersonName',
ellipsis: true
},
{
title: this.$t('certifiedEngineer'),
align: 'center',
slots:{title:'certifiedEngineer'},
dataIndex: 'certificationEngineerName',
ellipsis: true
},
@@ -293,7 +304,7 @@
{
title: this.$t('operation'),
align: 'center',
width: 100,
width: 110,
fixed: 'right',
scopedSlots: { customRender: 'operation' }
}
+2 -2
View File
@@ -130,7 +130,7 @@
title: this.$t('serialNumber'),
dataIndex: '',
key: 'rowIndex',
width: 20,
width: 90,
align: 'center',
customRender: function(t, r, index) {
return parseInt(index) + 1
@@ -160,7 +160,7 @@
},
{
title: this.$t('operation'),
width: 100,
width: 200,
dataIndex: 'action',
align: 'center',
scopedSlots: { customRender: 'action' }