对接待办中心

This commit is contained in:
sunFlower
2022-10-19 14:46:06 +08:00
parent 5e13b7bb92
commit 3fefe0198d
6 changed files with 186 additions and 17 deletions
@@ -156,12 +156,12 @@
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
<div class="box-text" style="margin-top: 10px" v-if="disabled"> <div class="box-text" style="margin-top: 10px" v-if="disabled && $route.query.taskDefinitionKey == 'fqrsc'">
<div class="header-text"> <div class="header-text">
{{$t('sponsorReview')}} {{$t('sponsorReview')}}
</div> </div>
</div> </div>
<a-row :gutter="24" v-if="disabled"> <a-row :gutter="24" v-if="disabled && $route.query.taskDefinitionKey == 'fqrsc' && !isTrue">
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -175,6 +175,18 @@
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="24" v-if="disabled && $route.query.taskDefinitionKey == 'fqrsc' && isTrue">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text" :title="$t('reviewComments')">{{$t('reviewComments')}}</span>
</div>
<div class="title-text-right" :class="{'title-text-right-text':disabled}" :title="formInline.approvalOpinion">
{{formInline.approvalOpinion}}
</div>
</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>
@@ -259,7 +271,8 @@
}, },
disabled: false, disabled: false,
uploadIndex: '', uploadIndex: '',
dataList: [] dataList: [],
isTrue:false,
} }
}, },
mounted() { mounted() {
@@ -283,8 +296,14 @@
}) })
if (this.$route.query.taskDefinitionKey == 'pgrqr') { if (this.$route.query.taskDefinitionKey == 'pgrqr') {
this.disabled = false this.disabled = false
if (this.$route.query.isDisabled) {
this.disabled = JSON.parse(this.$route.query.isDisabled)
}
} else { } else {
this.disabled = true this.disabled = true
if (this.$route.query.isDisabled) {
this.isTrue = JSON.parse(this.$route.query.isDisabled)
}
} }
}, },
methods: { methods: {
@@ -282,6 +282,81 @@
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'sponsorFeedback' } scopedSlots: { customRender: 'sponsorFeedback' }
} }
],
columnsOne: [
{
title: this.$t('clauseNo'),
dataIndex: 'itemNum',
align: 'center',
width: 180,
ellipsis: true
},
{
title: this.$t('clauseName'),
dataIndex: 'itemName',
align: 'center',
width: 180,
ellipsis: true
},
{
title: this.$t('clauseContent'),
dataIndex: 'itemContent',
align: 'center',
width: 280,
scopedSlots: { customRender: 'clauseContent' }
},
{
title: this.$t('evaluationMethod'),
dataIndex: 'evaluationMethodsName',
align: 'center',
width: 180,
ellipsis: true
},
{
title: this.$t('complianceResults'),
dataIndex: 'complianceResult',
align: 'center',
width: 180,
ellipsis: true,
scopedSlots: { customRender: 'Results' }
},
{
title: this.$t('nameTechnicalDocument'),
dataIndex: 'technicalFileName',
align: 'center',
width: 280,
ellipsis: true
},
{
title: this.$t('chapter'),
dataIndex: 'section',
align: 'center',
width: 180,
ellipsis: true
},
{
title: this.$t('opinion'),
dataIndex: 'opinion',
align: 'center',
width: 180,
ellipsis: true
},
{
title: this.$t('enclosure'),
dataIndex: 'accessoryFile',
align: 'center',
width: 180,
ellipsis: true,
scopedSlots: { customRender: 'accessoryFile' }
},
{
title: this.$t('sponsorFeedback'),
dataIndex: 'sponsorFeedback',
align: 'center',
width: 180,
ellipsis: true,
scopedSlots: { customRender: 'sponsorFeedbackIndex' }
}
] ]
} }
}, },
@@ -306,10 +381,18 @@
}, },
computed: { computed: {
columns() { columns() {
if (this.$route.query.taskDefinitionKey == 'pgrqr') { let disabled = false
return this.columnsTwo if (this.$route.query.isDisabled) {
disabled = JSON.parse(this.$route.query.isDisabled)
}
if (disabled) {
return this.columnsOne
} else { } else {
return this.columnsThree if (this.$route.query.taskDefinitionKey == 'pgrqr') {
return this.columnsTwo
} else {
return this.columnsThree
}
} }
} }
}, },
@@ -345,14 +428,14 @@
this.$message.warning(this.$t('PleaseCompleteList')) this.$message.warning(this.$t('PleaseCompleteList'))
return return
} }
Object.keys(this.dataSource[i]).forEach(res=>{ Object.keys(this.dataSource[i]).forEach(res => {
if (this.dataSource[i][res] && typeof this.dataSource[i][res] == 'string') { if (this.dataSource[i][res] && typeof this.dataSource[i][res] == 'string') {
this.dataSource[i][res] = this.dataSource[i][res].replace(/\"/g, '“') this.dataSource[i][res] = this.dataSource[i][res].replace(/\"/g, '“')
this.dataSource[i][res] = this.dataSource[i][res].replace(/\'/g, '‘') this.dataSource[i][res] = this.dataSource[i][res].replace(/\'/g, '‘')
} }
}) })
} }
if (this.$route.query.taskDefinitionKey == 'pgrqr'){ if (this.$route.query.taskDefinitionKey == 'pgrqr') {
let feedbackTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') let feedbackTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
for (let i = 0; i < this.dataSource.length; i++) { for (let i = 0; i < this.dataSource.length; i++) {
this.dataSource[i].feedbackTime = feedbackTime this.dataSource[i].feedbackTime = feedbackTime
@@ -361,7 +444,7 @@
callBack && callBack(this.dataSource) callBack && callBack(this.dataSource)
}, },
preservationData(callBack) { preservationData(callBack) {
if (this.$route.query.taskDefinitionKey == 'pgrqr'){ if (this.$route.query.taskDefinitionKey == 'pgrqr') {
let feedbackTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') let feedbackTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
for (let i = 0; i < this.dataSource.length; i++) { for (let i = 0; i < this.dataSource.length; i++) {
this.dataSource[i].feedbackTime = feedbackTime this.dataSource[i].feedbackTime = feedbackTime
@@ -26,7 +26,7 @@
:title="$t('evaluatorFeedback')" :title="$t('evaluatorFeedback')"
/> />
<footerProcess <footerProcess
v-if="isDisplay" v-if="isDisplay && !disabled"
:isPreservation="isPreservation" :isPreservation="isPreservation"
:isSubmit="true" :isSubmit="true"
:isSendBack="isSendBack" :isSendBack="isSendBack"
@@ -78,6 +78,7 @@
isPreservation: false, isPreservation: false,
isSendBack: false, isSendBack: false,
isTrue: false, isTrue: false,
disabled:false,
standardContentList: [], standardContentList: [],
standardContent: [ standardContent: [
{ {
@@ -155,6 +156,9 @@
this.isSendBack = true this.isSendBack = true
} }
this.queryTaskDetailByTask() this.queryTaskDetailByTask()
if (this.$route.query.isDisabled) {
this.disabled = JSON.parse(this.$route.query.isDisabled)
}
}, },
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
@@ -115,8 +115,40 @@
}) })
window.open(newUrl.href, '_blank') window.open(newUrl.href, '_blank')
}, },
viewClick(val) { viewClick(row) {
row.router = this.$route.path
let query = {}
if (row.flowType == '5') {
query = {
prcId: row.actiProcInstId,
taskIds: row.taskId,
prcType: row.flowType,
router: row.router,
prcNum: row.prcNum,
taskDefinitionKey: row.taskDefinitionKey,
isDisabled: true
}
let newUrl = this.$router.resolve({
path: '/regulatoryProcessReview',
query: query
})
window.open(newUrl.href, '_blank')
} else if (row.flowType == '6') {
query = {
taskDefinitionKey: row.taskDefinitionKey,
taskIds: row.taskId,
prcType: row.flowType,
prcNum: row.prcNum,
prcId: row.actiProcInstId,
router: row.router,
isDisabled: true
}
let newUrl = this.$router.resolve({
path: '/evaluationProcess',
query: query
})
window.open(newUrl.href, '_blank')
}
}, },
searchQuery(value) { searchQuery(value) {
this.queryParam = value this.queryParam = value
@@ -114,8 +114,40 @@
}) })
window.open(newUrl.href, '_blank') window.open(newUrl.href, '_blank')
}, },
viewClick(val){ viewClick(row){
row.router = this.$route.path
let query = {}
if (row.flowType == '5') {
query = {
prcId:row.actiProcInstId,
taskIds:row.taskId,
prcType:row.flowType,
router:row.router,
prcNum:row.prcNum,
taskDefinitionKey:row.taskDefinitionKey,
isDisabled:true
}
let newUrl = this.$router.resolve({
path: '/regulatoryProcessReview',
query: query
})
window.open(newUrl.href, '_blank')
} else if (row.flowType == '6') {
query = {
taskDefinitionKey:row.taskDefinitionKey,
taskIds:row.taskId,
prcType:row.flowType,
prcNum:row.prcNum,
prcId:row.actiProcInstId,
router:row.router,
isDisabled:true,
}
let newUrl = this.$router.resolve({
path: '/evaluationProcess',
query: query
})
window.open(newUrl.href, '_blank')
}
}, },
searchQuery(value) { searchQuery(value) {
this.queryParam = value this.queryParam = value
@@ -9,7 +9,7 @@
<span>{{$t('standardInformation')}}</span> <span>{{$t('standardInformation')}}</span>
</div> </div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standardInformation')" <a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standardInformation')"
v-model="queryParam.title"></a-input> v-model="queryParam.serialNumber"></a-input>
</div> </div>
</a-col> </a-col>
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
@@ -21,7 +21,7 @@
class="box-input" class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear allowClear
v-model="queryParam.taskType"> v-model="queryParam.flowType">
<a-select-option v-for="(item, key) in taskTypeList" <a-select-option v-for="(item, key) in taskTypeList"
:key="key" :key="key"
:value="item.value"> :value="item.value">
@@ -81,7 +81,6 @@
value: '6' value: '6'
} }
], ],
taskStatusList: [],
tabActive: this.$t('toDoProcess') tabActive: this.$t('toDoProcess')
} }
}, },