n20-common-lib 2.12.16 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -98,54 +98,59 @@ export default {
|
|
|
98
98
|
*/
|
|
99
99
|
async getHandlingAdvice(typeCode, procInstId) {
|
|
100
100
|
try {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
noMsg: true
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
if (code === 200) {
|
|
109
|
-
this.otherAttDataA = data.customizationList || []
|
|
110
|
-
this.whether = data.whether
|
|
111
|
-
this.visible = data.whether === true || this.otherAttDataA.length > 0
|
|
112
|
-
this.flowOptions = data?.opinions?.map((d) => {
|
|
113
|
-
return {
|
|
114
|
-
label: d,
|
|
115
|
-
value: d
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
if (!data.whether && this.afterGetConf && this.otherAttDataA.length === 0) {
|
|
119
|
-
this.afterGetConf()
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
// 回显操作
|
|
123
|
-
if (procInstId) {
|
|
124
|
-
const { data } = await this.$axios.get(
|
|
125
|
-
`/bems/activiti/sample/getStartEventFlowHistory/${procInstId}`,
|
|
126
|
-
{},
|
|
101
|
+
this.$axios
|
|
102
|
+
.post(
|
|
103
|
+
`/bems/activiti/admin/todo/isFlowStartWithOptions`,
|
|
104
|
+
{ typeCode },
|
|
127
105
|
{
|
|
128
106
|
noMsg: true
|
|
129
107
|
}
|
|
130
108
|
)
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
109
|
+
.then(async ({ code, data }) => {
|
|
110
|
+
if (code === 200) {
|
|
111
|
+
this.otherAttDataA = data.customizationList || []
|
|
112
|
+
this.whether = data.whether
|
|
113
|
+
this.visible = data.whether === true || this.otherAttDataA.length > 0
|
|
114
|
+
this.flowOptions = data?.opinions?.map((d) => {
|
|
115
|
+
return {
|
|
116
|
+
label: d,
|
|
117
|
+
value: d
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
if (!data.whether && this.afterGetConf && this.otherAttDataA.length === 0) {
|
|
121
|
+
this.afterGetConf()
|
|
122
|
+
}
|
|
144
123
|
}
|
|
124
|
+
// 回显操作
|
|
125
|
+
if (procInstId) {
|
|
126
|
+
const { data } = await this.$axios.get(
|
|
127
|
+
`/bems/activiti/sample/getStartEventFlowHistory/${procInstId}`,
|
|
128
|
+
{},
|
|
129
|
+
{
|
|
130
|
+
noMsg: true
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
this.reason = data?.suggestion || ''
|
|
134
|
+
this.reasonSelect = data?.suggestion || ''
|
|
135
|
+
if (data.flowHistoryCfgs && data.flowHistoryCfgs.length > 0) {
|
|
136
|
+
this.otherAttDataA = this.otherAttDataA.map((item) => {
|
|
137
|
+
const bcData = data.flowHistoryCfgs.find((item2) => {
|
|
138
|
+
return item2.cfgKey === item.cfgKey
|
|
139
|
+
})
|
|
140
|
+
return {
|
|
141
|
+
...item,
|
|
142
|
+
cfgVal: ['31'].includes(item.cfgType) ? bcData.cfgVal.split(',') : bcData.cfgVal,
|
|
143
|
+
selectList: ['31'].includes(item.cfgType) ? bcData.cfgVal.split(',') : undefined,
|
|
144
|
+
checkList: ['32'].includes(item.cfgType) ? bcData.cfgVal.split(',') : undefined,
|
|
145
|
+
cfgHasRemark: bcData.cfgHasRemark,
|
|
146
|
+
cfgRemark: bcData.cfgRemark
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
// 重新执行一次 使数据更新
|
|
152
|
+
this.$refs.showOtherAttNew && this.$refs.showOtherAttNew.getData(this.otherAttDataA)
|
|
145
153
|
})
|
|
146
|
-
}
|
|
147
|
-
// 重新执行一次 使数据更新
|
|
148
|
-
this.$refs.showOtherAttNew && this.$refs.showOtherAttNew.getData(this.otherAttDataA)
|
|
149
154
|
} catch (error) {
|
|
150
155
|
if (this.afterGetConf) {
|
|
151
156
|
this.afterGetConf()
|