修改文档库分享改订阅

This commit is contained in:
gaosong
2023-11-18 13:27:32 +08:00
parent e4a2ad5a56
commit 13f034fb98
5 changed files with 51 additions and 17 deletions
@@ -163,7 +163,7 @@ public class ParamsManifestEOController extends JeroController<ParamsManifestEO,
} }
} }
@ApiOperation(value = "参数清单-更新模板更新参数", notes = "参数清单-更新模板更新参数") @ApiOperation(value = "参数清单-更新模板", notes = "参数清单-更新模板更新参数")
@PostMapping(value = "/updateModel") @PostMapping(value = "/updateModel")
public Result<?> updateModel(String mid, String version,String cid) { public Result<?> updateModel(String mid, String version,String cid) {
boolean isSuccess = paramsManifestEOService.updateModel(mid,version, cid); boolean isSuccess = paramsManifestEOService.updateModel(mid,version, cid);
@@ -9408,12 +9408,18 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
projectLawsInventoryEO.setDesignFlowStatus(ComplianceFlowStatusEnum.UNINVOLVED.getValue()); projectLawsInventoryEO.setDesignFlowStatus(ComplianceFlowStatusEnum.UNINVOLVED.getValue());
}else if (StringUtils.equals(projectLawsInventoryEO.getDesignFlowStatus(), ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) }else if (StringUtils.equals(projectLawsInventoryEO.getDesignFlowStatus(), ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|| StringUtils.equals(projectLawsInventoryEO.getDesignFlowStatus(), ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())) { || StringUtils.equals(projectLawsInventoryEO.getDesignFlowStatus(), ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())) {
if(ObjectUtils.isEmpty(projectLawsInventoryEO.getDesignDueDate())){
return Result.error("编号:"+projectLawsInventoryEO.getSerialNumber()+"的设计符合性交付日期不能为空!");
}
projectLawsInventoryEO.setDesignFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()); projectLawsInventoryEO.setDesignFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
} }
if(StringUtils.equals(projectLawsInventoryEO.getVerifyDeliverableType(),naType)){ if(StringUtils.equals(projectLawsInventoryEO.getVerifyDeliverableType(),naType)){
projectLawsInventoryEO.setVerifyFlowStatus(ComplianceFlowStatusEnum.UNINVOLVED.getValue()); projectLawsInventoryEO.setVerifyFlowStatus(ComplianceFlowStatusEnum.UNINVOLVED.getValue());
}else if (StringUtils.equals(projectLawsInventoryEO.getVerifyFlowStatus(), ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) }else if (StringUtils.equals(projectLawsInventoryEO.getVerifyFlowStatus(), ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue())
|| StringUtils.equals(projectLawsInventoryEO.getVerifyFlowStatus(), ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())) { || StringUtils.equals(projectLawsInventoryEO.getVerifyFlowStatus(), ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())) {
if(ObjectUtils.isEmpty(projectLawsInventoryEO.getVerifyDueDate())){
return Result.error("编号:"+projectLawsInventoryEO.getSerialNumber()+"的验证符合性交付日期不能为空!");
}
projectLawsInventoryEO.setVerifyFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()); projectLawsInventoryEO.setVerifyFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
} }
projectLawsInventoryEO.setInventoryAffirmDueDate(endTime); projectLawsInventoryEO.setInventoryAffirmDueDate(endTime);
@@ -42,17 +42,23 @@
</div> </div>
<div @click="CollectionClick({'collectFlag':collectFlag,'id':documentId})" <div @click="CollectionClick({'collectFlag':collectFlag,'id':documentId})"
v-has="'bussLog:collect'" class="operator-text-text" v-has="'bussLog:collect'" class="operator-text-text"
:title="$t('Collection')"> :title="collectFlag == '1' ? $t('CancelCollection') : $t('Collection')">
<a-icon class="icon" type="star" /> <a-icon class="icon" type="star" />
{{ collectFlag == '1' ? $t('CancelCollection') : $t('Collection') }} {{ collectFlag == '1' ? $t('CancelCollection') : $t('Collection') }}
</div> </div>
<div @click="shareClick" v-has="'bussLog:share'" class="operator-text-text" <!-- <div @click="shareClick" v-has="'bussLog:share'" class="operator-text-text"-->
:title="$t('share')"> <!-- :title="$t('share')">-->
<a-icon type="share-alt" /> <!-- <a-icon type="share-alt" />-->
{{ $t('share') }} <!-- {{ $t('share') }}-->
</div> <!-- </div>-->
<div @click="subscribeClick({'subscribeFlag':subscribeFlag,'id':documentId})"
v-has="'bussLog:subscribe'" class="operator-text-text"
:title="subscribeFlag == '1' ? $t('CancelSubscribe') : $t('subscribe')">
<a-icon type="pushpin" />
{{ subscribeFlag == '1' ? $t('CancelSubscribe') : $t('subscribe') }}
</div>
</div> </div>
</div> </div>
<div style="margin-top: 68px;background: #fff" class="detail-box"> <div style="margin-top: 68px;background: #fff" class="detail-box">
@@ -466,6 +472,28 @@ export default {
} }
}) })
}, },
subscribeClick(val){
let _this = this
this.$confirm({
content: val.subscribeFlag == 0 || !val.subscribeFlag ? _this.$t('ConfirmSubscribe') : _this.$t('cancelConfirmSubscribe'),
onOk() {
let url = ''
if (val.subscribeFlag == 0 || !val.subscribeFlag) {
url = 'document/bussDocumentLibraryEO/addSubscribe'
} else {
url = 'document/bussDocumentLibraryEO/cancelSubscribe'
}
getAction(url, { id: val.id }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.getWdkCollectAndSubscribeInfoByUser()
} else {
_this.$message.warning(_this.$t('operationFailed'))
}
})
}
})
},
CollectionClick(val) { CollectionClick(val) {
let _this = this let _this = this
this.$confirm({ this.$confirm({
@@ -959,14 +987,14 @@ body {
font-weight: 400; font-weight: 400;
color: #040B29; color: #040B29;
display: inline-block; display: inline-block;
width: 130px; max-width: 130px;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
height: 40px; height: 40px;
border: 1px solid #CED0D8; //border: 1px solid #CED0D8;
border-radius: 4px; //border-radius: 4px;
line-height: 40px; line-height: 40px;
padding: 0 5px; padding: 0 5px;
} }
@@ -758,22 +758,22 @@
], ],
designRemark: [ designRemark: [
{ {
max: 300, max: 1000,
message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 300 + this.$t('Characters'), message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 1000 + this.$t('Characters'),
trigger: 'blur' trigger: 'blur'
} }
], ],
verifyRemark: [ verifyRemark: [
{ {
max: 300, max: 1000,
message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 300 + this.$t('Characters'), message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 1000 + this.$t('Characters'),
trigger: 'blur' trigger: 'blur'
} }
], ],
prehomoRemark: [ prehomoRemark: [
{ {
max: 300, max: 1000,
message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 300 + this.$t('Characters'), message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 1000 + this.$t('Characters'),
trigger: 'blur' trigger: 'blur'
} }
], ],
@@ -2997,7 +2997,7 @@
this.confirmLoading = false this.confirmLoading = false
this.getList() this.getList()
} else { } else {
this.$message.warning(this.$t('operationFailed')) this.$message.warning(res.message)
this.confirmLoading = false this.confirmLoading = false
} }
let that = this let that = this