update 法规采购流程
This commit is contained in:
@@ -148,6 +148,10 @@ export default {
|
||||
case '2':
|
||||
path = '/workCenter/StandardConsultationProcess'
|
||||
break
|
||||
// 法规采购流程
|
||||
case '6':
|
||||
path = '/workCenter/StandardProcurementProcess'
|
||||
break
|
||||
// 企标立项、变更计划
|
||||
case '7':
|
||||
path = '/workCenter/enterpriseStandardInitChange/planApprovalChangeFlow'
|
||||
|
||||
@@ -244,6 +244,7 @@ export default {
|
||||
created () {
|
||||
if (this.$route.query.processInstanceId || this.$route.query.draftId) {
|
||||
this.currentNode = this.$route.query.nodeId
|
||||
this.initProcessInfo()
|
||||
} else {
|
||||
this.currentNode = ProcurementProcessNodes.initiate.value
|
||||
}
|
||||
@@ -289,6 +290,26 @@ export default {
|
||||
this.dataSource.push(record)
|
||||
}
|
||||
},
|
||||
initProcessInfo () {
|
||||
this.loading = true
|
||||
const params = {
|
||||
processInstanceId: this.$route.query.processInstanceId,
|
||||
draftId: this.$route.query.draftId,
|
||||
taskId: this.$route.query.taskId
|
||||
}
|
||||
initProcurementProcess(params).then(res => {
|
||||
if (res.success) {
|
||||
const { result } = res
|
||||
this.processInfo = Object.assign({}, result.basicProcessInfoDTO || {})
|
||||
this.dataSource = result.businessInfoDTO || []
|
||||
this.approvalInfo = Object.assign({}, result.basicTaskInfoDTO || {})
|
||||
this.$nextTick(() => {
|
||||
this.processInfoForm.setFieldsValue(this.processInfo)
|
||||
this.approvalInfoForm.setFieldsValue(this.approvalInfo)
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
dealFormData (isSave) {
|
||||
let flag = true, formData = {}, processInfo = {}, approvalInfo = {}, businessInfo = [], userInfoMap = {}
|
||||
if (isSave) {
|
||||
|
||||
Reference in New Issue
Block a user