[update] 修改bug81874
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
ref="processCommonLayout"
|
ref="processCommonLayout"
|
||||||
class="page-box"
|
class="page-box"
|
||||||
:processKey="ProcessKey.ES_EDIT.value"
|
:processKey="ProcessKey.ES_EDIT.value"
|
||||||
:canChooseFields="personInfoCanChooseFields"
|
|
||||||
:loading="loading">
|
:loading="loading">
|
||||||
<template v-slot:process>
|
<template v-slot:process>
|
||||||
<!-- 流程信息 -->
|
<!-- 流程信息 -->
|
||||||
@@ -179,7 +178,7 @@ import DepartLiaisonIssueBaseInfo
|
|||||||
from '@/views/workCenter/enterpriseStandardRevision/module/DepartLiaisonIssueBaseInfo'
|
from '@/views/workCenter/enterpriseStandardRevision/module/DepartLiaisonIssueBaseInfo'
|
||||||
import OnlyOnlineEditBaseInfo from '@/views/workCenter/enterpriseStandardRevision/module/OnlyOnlineEditBaseInfo'
|
import OnlyOnlineEditBaseInfo from '@/views/workCenter/enterpriseStandardRevision/module/OnlyOnlineEditBaseInfo'
|
||||||
import ZUpload from '@/components/ZUpload'
|
import ZUpload from '@/components/ZUpload'
|
||||||
import {Base64} from "js-base64";
|
import { Base64 } from 'js-base64'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'EnterpriseStandardRevision',
|
name: 'EnterpriseStandardRevision',
|
||||||
@@ -194,11 +193,6 @@ export default {
|
|||||||
CalendarField,
|
CalendarField,
|
||||||
ZUpload
|
ZUpload
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
personInfoCanChooseFields () {
|
|
||||||
return this.currentNode === 7 ? ['adviceUserList'] : []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted () {
|
mounted () {
|
||||||
// 初始化节点
|
// 初始化节点
|
||||||
const nodeId = this.$route.query.nodeId
|
const nodeId = this.$route.query.nodeId
|
||||||
@@ -302,11 +296,11 @@ export default {
|
|||||||
this.processInfoForm = Object.assign({}, prcObj)
|
this.processInfoForm = Object.assign({}, prcObj)
|
||||||
result.data = JSON.parse(result.infoJsonStr).data
|
result.data = JSON.parse(result.infoJsonStr).data
|
||||||
// 如果是节点7的保存回显人员信息
|
// 如果是节点7的保存回显人员信息
|
||||||
if (this.currentNode === 7) {
|
// if (this.currentNode === 7) {
|
||||||
this.$refs.processCommonLayout.$nextTick(() => {
|
// this.$refs.processCommonLayout.$nextTick(() => {
|
||||||
this.$refs.processCommonLayout.draftInitPersonInfo(JSON.parse(result.infoJsonStr).personnelObj)
|
// this.$refs.processCommonLayout.draftInitPersonInfo(JSON.parse(result.infoJsonStr).personnelObj)
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
console.log(result.data)
|
console.log(result.data)
|
||||||
} else {
|
} else {
|
||||||
this.processInfoForm = result.common
|
this.processInfoForm = result.common
|
||||||
@@ -498,15 +492,6 @@ export default {
|
|||||||
// 提交
|
// 提交
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
let personnelObj = {}
|
|
||||||
if (this.currentNode === 7) {
|
|
||||||
// 说明是部所联络人下发节点,需要传人员信息
|
|
||||||
personnelObj = this.$refs.processCommonLayout.getDataObjVerify()
|
|
||||||
if (!personnelObj) {
|
|
||||||
this.$refs.processCommonLayout.activeTab = 'person'
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.$refs.processForm.validate().then(async () => {
|
this.$refs.processForm.validate().then(async () => {
|
||||||
const data = await this.$refs.baseInfoRef.getDataValidate()
|
const data = await this.$refs.baseInfoRef.getDataValidate()
|
||||||
if (data) {
|
if (data) {
|
||||||
@@ -514,9 +499,6 @@ export default {
|
|||||||
param.common = Object.assign({}, this.processInfoForm)
|
param.common = Object.assign({}, this.processInfoForm)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.data = data
|
param.data = data
|
||||||
if (this.currentNode === 7) {
|
|
||||||
param.flowUser = personnelObj
|
|
||||||
}
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
enStandardEditAgree(param).then(res => {
|
enStandardEditAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user