[update] 修改bug81874

This commit is contained in:
lideqin
2024-02-19 09:35:18 +08:00
parent e58bdbe71d
commit dd7cbb13ba
@@ -3,7 +3,6 @@
ref="processCommonLayout"
class="page-box"
:processKey="ProcessKey.ES_EDIT.value"
:canChooseFields="personInfoCanChooseFields"
:loading="loading">
<template v-slot:process>
<!-- 流程信息 -->
@@ -179,7 +178,7 @@ import DepartLiaisonIssueBaseInfo
from '@/views/workCenter/enterpriseStandardRevision/module/DepartLiaisonIssueBaseInfo'
import OnlyOnlineEditBaseInfo from '@/views/workCenter/enterpriseStandardRevision/module/OnlyOnlineEditBaseInfo'
import ZUpload from '@/components/ZUpload'
import {Base64} from "js-base64";
import { Base64 } from 'js-base64'
export default {
name: 'EnterpriseStandardRevision',
@@ -194,11 +193,6 @@ export default {
CalendarField,
ZUpload
},
computed: {
personInfoCanChooseFields () {
return this.currentNode === 7 ? ['adviceUserList'] : []
}
},
mounted () {
// 初始化节点
const nodeId = this.$route.query.nodeId
@@ -302,11 +296,11 @@ export default {
this.processInfoForm = Object.assign({}, prcObj)
result.data = JSON.parse(result.infoJsonStr).data
// 如果是节点7的保存回显人员信息
if (this.currentNode === 7) {
this.$refs.processCommonLayout.$nextTick(() => {
this.$refs.processCommonLayout.draftInitPersonInfo(JSON.parse(result.infoJsonStr).personnelObj)
})
}
// if (this.currentNode === 7) {
// this.$refs.processCommonLayout.$nextTick(() => {
// this.$refs.processCommonLayout.draftInitPersonInfo(JSON.parse(result.infoJsonStr).personnelObj)
// })
// }
console.log(result.data)
} else {
this.processInfoForm = result.common
@@ -498,15 +492,6 @@ export default {
// 提交
handleSubmit () {
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 () => {
const data = await this.$refs.baseInfoRef.getDataValidate()
if (data) {
@@ -514,9 +499,6 @@ export default {
param.common = Object.assign({}, this.processInfoForm)
param.common.taskId = this.$route.query.taskId
param.data = data
if (this.currentNode === 7) {
param.flowUser = personnelObj
}
this.loading = true
enStandardEditAgree(param).then(res => {
if (res.success) {