对接法规技术评估

This commit is contained in:
qq787203167
2022-07-13 18:16:56 +08:00
parent 66f618dd51
commit 5d519167c1
5 changed files with 85 additions and 14 deletions
+1
View File
@@ -1131,4 +1131,5 @@ module.exports = {
clauseEvaluation:'Clause evaluation', clauseEvaluation:'Clause evaluation',
standardDocuments:'Standard documents', standardDocuments:'Standard documents',
pleaseCompleteTheEvaluationMethodorEvaluator:'Please complete the evaluation method or evaluator in the list', pleaseCompleteTheEvaluationMethodorEvaluator:'Please complete the evaluation method or evaluator in the list',
reviewComments:'Review comments',
} }
+1
View File
@@ -1135,4 +1135,5 @@ module.exports = {
clauseEvaluation:'条款评估', clauseEvaluation:'条款评估',
standardDocuments:'标准文件', standardDocuments:'标准文件',
pleaseCompleteTheEvaluationMethodorEvaluator:'请补全列表中评估方式或评估人', pleaseCompleteTheEvaluationMethodorEvaluator:'请补全列表中评估方式或评估人',
reviewComments:'审核意见',
} }
@@ -50,7 +50,7 @@
<span class="Required" v-if="!disabled">*</span> <span class="Required" v-if="!disabled">*</span>
<span class="title-text-text" :title="$t('relevantSections')">{{$t('relevantSections')}}</span> <span class="title-text-text" :title="$t('relevantSections')">{{$t('relevantSections')}}</span>
</div> </div>
<div class="title-text-right" v-if="disabled"> <div class="title-text-right" :title="item.relatedSection" v-if="disabled">
{{item.relatedSection}} {{item.relatedSection}}
</div> </div>
<a-form-model-item class="itemModel" v-if="!disabled" <a-form-model-item class="itemModel" v-if="!disabled"
@@ -72,7 +72,7 @@
<span class="title-text-text" <span class="title-text-text"
:title="$t('problemDescription')">{{$t('problemDescription')}}</span> :title="$t('problemDescription')">{{$t('problemDescription')}}</span>
</div> </div>
<div class="title-text-right" v-if="disabled"> <div class="title-text-right" :title="item.issueOrSuggest" v-if="disabled">
{{item.issueOrSuggest}} {{item.issueOrSuggest}}
</div> </div>
<a-form-model-item class="itemModel" :prop="'dataList.'+index+'.issueOrSuggest'" v-if="!disabled" <a-form-model-item class="itemModel" :prop="'dataList.'+index+'.issueOrSuggest'" v-if="!disabled"
@@ -94,8 +94,9 @@
<span class="title-text-text" :title="$t('enclosure')">{{$t('enclosure')}}</span> <span class="title-text-text" :title="$t('enclosure')">{{$t('enclosure')}}</span>
</div> </div>
<div class="title-text-right" v-if="disabled"> <div class="title-text-right" v-if="disabled">
<span style="color: #21c9cc" v-if="item.accessoryFile" @click="viewUploadedFilesClick(item.accessoryFile)"> <span style="color: #21c9cc;cursor: pointer"
{{$t('viewUploadedFiles')}} v-if="item.accessoryFile" @click="viewUploadedFilesClick(item.accessoryFile)">
{{$t('viewFile')}}
</span> </span>
<span v-else> <span v-else>
-- --
@@ -113,6 +114,25 @@
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
<div class="box-text" style="margin-top: 10px" v-if="disabled">
<div class="header-text">
{{$t('sponsorReview')}}
</div>
</div>
<a-row :gutter="24" v-if="disabled">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<span class="Required">*</span>
<span class="title-text-text" :title="$t('reviewComments')">{{$t('reviewComments')}}</span>
</div>
<a-form-model-item class="itemModel" prop="approvalOpinion">
<a-textarea :placeholder="$t('pleaseEnter')+$t('reviewComments')" v-model="formInline.approvalOpinion"
:rows="4"/>
</a-form-model-item>
</div>
</a-col>
</a-row>
</a-form-model> </a-form-model>
</div> </div>
<uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile> <uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile>
@@ -124,6 +144,7 @@
import { getAction, postAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
import uploadFile from '@/components/uploadFile/file' import uploadFile from '@/components/uploadFile/file'
import viewFileModel from '@/components/viewFileModel/index' import viewFileModel from '@/components/viewFileModel/index'
export default { export default {
name: 'evaluatorFeedback', name: 'evaluatorFeedback',
components: { components: {
@@ -157,6 +178,18 @@
trigger: 'change' trigger: 'change'
} }
], ],
approvalOpinion: [
{
required: true,
message: this.$t('reviewComments') + this.$t('cannotEmpty'),
trigger: 'blur'
},
{
max: 300,
message: this.$t('reviewComments') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
trigger: 'blur'
}
],
relatedSection: [ relatedSection: [
{ {
required: true, required: true,
@@ -315,7 +348,7 @@
} }
.itemModel { .itemModel {
width: calc(100% - 130px); width: calc(100% - 110px);
display: inline-block; display: inline-block;
margin-top: 2px; margin-top: 2px;
margin-bottom: 12px; margin-bottom: 12px;
@@ -324,8 +357,8 @@
.title-text-right { .title-text-right {
display: inline-block; display: inline-block;
width: calc(100% - 130px); width: calc(100% - 130px);
padding-top: 15px; padding-top: 12px;
font-size: 14px; font-size: 16px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@@ -351,7 +384,7 @@
} }
.feedbackPoint { .feedbackPoint {
font-size: 14px; font-size: 16px;
font-weight: 400; font-weight: 400;
color: #000F16; color: #000F16;
margin-bottom: 10px; margin-bottom: 10px;
@@ -68,7 +68,7 @@
getList() { getList() {
let query = { let query = {
actiProcInstId: this.$route.query.prcId, actiProcInstId: this.$route.query.prcId,
flowType: '5' flowType: this.$route.query.prcType
} }
getAction('/lawsOpinionGather/lawsProcessHistoryEO/list', query).then((res) => { getAction('/lawsOpinionGather/lawsProcessHistoryEO/list', query).then((res) => {
if (res.success) { if (res.success) {
@@ -26,10 +26,12 @@
/> />
<footerProcess <footerProcess
v-if="isDisplay" v-if="isDisplay"
isPreservation :isPreservation="isPreservation"
:isSubmit="true" :isSubmit="true"
:isSendBack="isSendBack"
@preservation="preservation" @preservation="preservation"
@submit="submit" @submit="submit"
@sendBack="sendBack"
/> />
<circulationHistory v-if="isDisplay"/> <circulationHistory v-if="isDisplay"/>
</div> </div>
@@ -70,7 +72,9 @@
isDisplay: true, isDisplay: true,
feedbackDataList: [], feedbackDataList: [],
queryProject: {}, queryProject: {},
complianceResult:{}, complianceResult: {},
isPreservation: false,
isSendBack: false,
isTrue: false, isTrue: false,
standardContentList: [ standardContentList: [
{ {
@@ -107,6 +111,13 @@
}, },
mounted() { mounted() {
this.isDisplay = false this.isDisplay = false
if (this.$route.query.taskDefinitionKey == 'pgrqr') {
this.isPreservation = true
this.isSendBack = false
} else {
this.isPreservation = false
this.isSendBack = true
}
this.queryTaskDetailByTask() this.queryTaskDetailByTask()
}, },
methods: { methods: {
@@ -176,15 +187,40 @@
} }
}) })
}, },
sendBack() {
if (this.isTrue) {
} else {
this.$refs.evaluatorFeedbackRef.preservationData((res) => {
this.loading = true
this.queryProject.approvalOpinion = res.approvalOpinion
this.queryProject.flag = '2'
this.completeTask()
})
}
},
submit() { submit() {
this.$refs.evaluatorFeedbackRef.submitData((res) => { if (this.isTrue) {
this.insertBatch(res, 2)
}) } else {
this.$refs.evaluatorFeedbackRef.submitData((res) => {
if (this.$route.query.taskDefinitionKey == 'pgrqr') {
this.loading = true
this.insertBatch(res, 2)
} else {
this.loading = true
this.queryProject.approvalOpinion = res.approvalOpinion
this.queryProject.flag = '1'
this.completeTask()
}
})
}
}, },
completeTask() { completeTask() {
let query = { let query = {
userid: this.userInfo().id, userid: this.userInfo().id,
taskId: this.$route.query.taskIds, taskId: this.$route.query.taskIds,
flag: this.queryProject.flag,
json: JSON.stringify(this.queryProject).replace(/\"/g, '\'') json: JSON.stringify(this.queryProject).replace(/\"/g, '\'')
} }
postAction('/workFlow/completeTask', query).then((res) => { postAction('/workFlow/completeTask', query).then((res) => {