Commit 45cd8b06 by lanyulei

fix: 修复流程删除后,无法展示工单内容的问题。

parent ce3e22ea
Showing with 5 additions and 2 deletions
...@@ -76,13 +76,13 @@ ...@@ -76,13 +76,13 @@
currentNode.hideTpls.indexOf(tplItem.form_structure.id)===-1" currentNode.hideTpls.indexOf(tplItem.form_structure.id)===-1"
:key="tplIndex" :key="tplIndex"
:ref="'generateForm-'+tplItem.id" :ref="'generateForm-'+tplItem.id"
:preview="(currentNode.hideTpls!==undefined && :preview="!!((currentNode.hideTpls!==undefined &&
currentNode.hideTpls!==null && currentNode.hideTpls!==null &&
currentNode.hideTpls.indexOf(tplItem.form_structure.id)!==-1) || currentNode.hideTpls.indexOf(tplItem.form_structure.id)!==-1) ||
(currentNode.writeTpls===undefined || (currentNode.writeTpls===undefined ||
currentNode.writeTpls===null || currentNode.writeTpls===null ||
currentNode.writeTpls.indexOf(tplItem.form_structure.id)===-1)|| currentNode.writeTpls.indexOf(tplItem.form_structure.id)===-1)||
(isActiveProcessing && currentNode.activeOrder)?true:false" (isActiveProcessing && currentNode.activeOrder))"
:remote="remoteFunc" :remote="remoteFunc"
:value="tplItem.form_data" :value="tplItem.form_data"
:data="tplItem.form_structure" :data="tplItem.form_structure"
...@@ -201,6 +201,7 @@ export default { ...@@ -201,6 +201,7 @@ export default {
processStructureValue: { processStructureValue: {
workOrder: { title: '' } workOrder: { title: '' }
}, },
processRemarks: '',
ruleForm: { ruleForm: {
title: '', title: '',
process: '', process: '',
...@@ -245,6 +246,7 @@ export default { ...@@ -245,6 +246,7 @@ export default {
this.circulationHistoryList = this.processStructureValue.circulationHistory this.circulationHistoryList = this.processStructureValue.circulationHistory
// 获取当前展示节点列表 // 获取当前展示节点列表
this.nodeStepList = [] this.nodeStepList = []
if (this.processStructureValue.nodes) {
for (var i = 0; i < this.processStructureValue.nodes.length; i++) { for (var i = 0; i < this.processStructureValue.nodes.length; i++) {
if (this.processStructureValue.nodes[i].id === this.processStructureValue.workOrder.current_state) { if (this.processStructureValue.nodes[i].id === this.processStructureValue.workOrder.current_state) {
// 当前节点 // 当前节点
...@@ -259,6 +261,7 @@ export default { ...@@ -259,6 +261,7 @@ export default {
this.nodeStepList.push(this.processStructureValue.nodes[i]) this.nodeStepList.push(this.processStructureValue.nodes[i])
} }
} }
}
// 如果回退到初始节点则可编辑。 // 如果回退到初始节点则可编辑。
if (this.activeIndex === 0 && this.currentNode.clazz === 'start') { if (this.activeIndex === 0 && this.currentNode.clazz === 'start') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment