update 征求意见流程
This commit is contained in:
@@ -170,7 +170,7 @@ export default {
|
|||||||
// 耗时
|
// 耗时
|
||||||
{
|
{
|
||||||
title: this.$t('workCenter.processDetail.timeConsuming'),
|
title: this.$t('workCenter.processDetail.timeConsuming'),
|
||||||
width: 100,
|
width: 150,
|
||||||
scopedSlots: { customRender: 'timeConsuming' }
|
scopedSlots: { customRender: 'timeConsuming' }
|
||||||
},
|
},
|
||||||
// 审批意见
|
// 审批意见
|
||||||
|
|||||||
@@ -90,6 +90,7 @@
|
|||||||
v-decorator="['standardTextFileName', validatorRules.standardText]"
|
v-decorator="['standardTextFileName', validatorRules.standardText]"
|
||||||
readonly
|
readonly
|
||||||
disabled
|
disabled
|
||||||
|
:title="basicServiceInfo.standardTextFileName"
|
||||||
:placeholder="$t('pleaseSelect') + $t('workCenter.standardConsultationProcess.standardText')" />
|
:placeholder="$t('pleaseSelect') + $t('workCenter.standardConsultationProcess.standardText')" />
|
||||||
<a-button type="primary" class="button-box" @click="chooseStandardText">
|
<a-button type="primary" class="button-box" @click="chooseStandardText">
|
||||||
{{ this.$t('workCenter.standardConsultationProcess.selectText') }}
|
{{ this.$t('workCenter.standardConsultationProcess.selectText') }}
|
||||||
@@ -301,6 +302,7 @@ import {
|
|||||||
rejectConsultationProcess
|
rejectConsultationProcess
|
||||||
} from '../../../api/workCenter'
|
} from '../../../api/workCenter'
|
||||||
import UserSelectModal from '../../../components/selection/UserSelectModal'
|
import UserSelectModal from '../../../components/selection/UserSelectModal'
|
||||||
|
import { getFileInfo } from '../../../api/api'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'StandardConsultationProcess',
|
name: 'StandardConsultationProcess',
|
||||||
@@ -770,7 +772,7 @@ export default {
|
|||||||
this.currentNode = this.$route.query.nodeId || ConsultationProcess.initiate.value
|
this.currentNode = this.$route.query.nodeId || ConsultationProcess.initiate.value
|
||||||
this.initProcessDetailData()
|
this.initProcessDetailData()
|
||||||
} else {
|
} else {
|
||||||
this.currentNode = ConsultationProcess.initial.value
|
this.currentNode = ConsultationProcess.initiate.value
|
||||||
}
|
}
|
||||||
// 获取人员信息数据
|
// 获取人员信息数据
|
||||||
this.getPersonInfoStructure(ProcessKey.CONSULTATION.value, () => {
|
this.getPersonInfoStructure(ProcessKey.CONSULTATION.value, () => {
|
||||||
@@ -788,7 +790,7 @@ export default {
|
|||||||
draftId: this.$route.query.draftId,
|
draftId: this.$route.query.draftId,
|
||||||
taskId: this.$route.query.taskId
|
taskId: this.$route.query.taskId
|
||||||
}
|
}
|
||||||
queryConsultationProcessDetail(params).then(res => {
|
queryConsultationProcessDetail(params).then(async res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
const { result } = res
|
const { result } = res
|
||||||
// 处理流程信息
|
// 处理流程信息
|
||||||
@@ -798,6 +800,9 @@ export default {
|
|||||||
this.approvalInfo.taskId = this.approvalInfo.taskId || this.$route.query.taskId
|
this.approvalInfo.taskId = this.approvalInfo.taskId || this.$route.query.taskId
|
||||||
// 业务基本信息
|
// 业务基本信息
|
||||||
this.basicServiceInfo = Object.assign({}, result.businessInfoDTO.processFbStandardConsultation || {})
|
this.basicServiceInfo = Object.assign({}, result.businessInfoDTO.processFbStandardConsultation || {})
|
||||||
|
if (this.currentNode.indexOf(ConsultationProcess.initiate.value) !== -1 && this.basicServiceInfo.standardTextFileId) {
|
||||||
|
await this.queryFileName()
|
||||||
|
}
|
||||||
// 业务分派信息
|
// 业务分派信息
|
||||||
this.dispatchInfo = Object.assign({}, result.businessInfoDTO.processFbConsultationUserLink || {})
|
this.dispatchInfo = Object.assign({}, result.businessInfoDTO.processFbConsultationUserLink || {})
|
||||||
// 征求意见列表
|
// 征求意见列表
|
||||||
@@ -816,6 +821,17 @@ export default {
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
queryFileName () {
|
||||||
|
return new Promise(resolve => {
|
||||||
|
getFileInfo({ id: this.basicServiceInfo.standardTextFileId }).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.basicServiceInfo.standardTextFileName = res.result.fileName
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
resolve()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
switchChange (value) {
|
switchChange (value) {
|
||||||
this.switchValue = value
|
this.switchValue = value
|
||||||
},
|
},
|
||||||
@@ -825,6 +841,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleStandardChange (name) {
|
handleStandardChange (name) {
|
||||||
this.basicServiceInfoForm.setFieldsValue({ standardName: name, standardTextFileName: null })
|
this.basicServiceInfoForm.setFieldsValue({ standardName: name, standardTextFileName: null })
|
||||||
|
delete this.basicServiceInfo.standardTextFileName
|
||||||
delete this.basicServiceInfo.standardText
|
delete this.basicServiceInfo.standardText
|
||||||
delete this.basicServiceInfo.standardTextFileId
|
delete this.basicServiceInfo.standardTextFileId
|
||||||
},
|
},
|
||||||
@@ -883,7 +900,8 @@ export default {
|
|||||||
},
|
},
|
||||||
handleEdit (record, index) {
|
handleEdit (record, index) {
|
||||||
record.index = index
|
record.index = index
|
||||||
this.$refs.consultationModal.edit(null, record)
|
const pdfId = this.basicServiceInfo.standardTextFileId
|
||||||
|
this.$refs.consultationModal.edit(pdfId, record)
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 处理页面数据
|
* 处理页面数据
|
||||||
@@ -1111,8 +1129,8 @@ export default {
|
|||||||
* @param item
|
* @param item
|
||||||
*/
|
*/
|
||||||
handleSelectedFile (item) {
|
handleSelectedFile (item) {
|
||||||
console.log(item)
|
|
||||||
this.basicServiceInfoForm.setFieldsValue({ standardTextFileName: item.fileName })
|
this.basicServiceInfoForm.setFieldsValue({ standardTextFileName: item.fileName })
|
||||||
|
this.basicServiceInfo.standardTextFileName = item.fileName
|
||||||
this.basicServiceInfo.standardText = item.publishBeforeId
|
this.basicServiceInfo.standardText = item.publishBeforeId
|
||||||
this.basicServiceInfo.standardTextFileId = item.fileId
|
this.basicServiceInfo.standardTextFileId = item.fileId
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user