ui-process-h5 0.1.36 → 0.1.40
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/build/configure/README.md +171 -0
- package/build/configure/package.json +27 -0
- package/build/scripts/postinstall.mjs +14 -0
- package/build/scripts/switch-cli.mjs +4 -0
- package/build/scripts/utils.mjs +60 -0
- package/index.html +12 -0
- package/package.json +48 -20
- package/src/App.vue +151 -0
- package/src/assets/font-icon/iconfont.scss +57 -0
- package/src/assets/font-icon/iconfont.ttf +0 -0
- package/src/assets/img/arrow-right.png +0 -0
- package/src/assets/img/arrow.png +0 -0
- package/src/assets/img/check.png +0 -0
- package/src/assets/js/auth.js +41 -0
- package/src/assets/js/errorCode.js +6 -0
- package/src/assets/js/message.js +352 -0
- package/src/assets/js/request.js +90 -0
- package/src/assets/js/toast.js +239 -0
- package/src/assets/js/top.js +229 -0
- package/src/assets/js/utils.js +82 -0
- package/src/assets/js/vuePopper.js +123 -0
- package/src/assets/query.png +0 -0
- package/src/main.js +15 -0
- package/src/packages/attchUpload/index.js +371 -0
- package/src/packages/attchUpload/index.scss +136 -0
- package/src/packages/attchUpload/index.vue +173 -0
- package/src/packages/downSelect/index.js +81 -0
- package/src/packages/downSelect/index.scss +82 -0
- package/src/packages/downSelect/index.vue +54 -0
- package/src/packages/index.js +6 -0
- package/src/packages/popup/index.js +61 -0
- package/src/packages/popup/index.scss +174 -0
- package/src/packages/popup/index.vue +79 -0
- package/src/packages/preview/index.js +36 -0
- package/src/packages/preview/index.vue +15 -0
- package/src/packages/previewImage/index.js +158 -0
- package/src/packages/previewImage/index.scss +59 -0
- package/src/packages/previewImage/index.vue +32 -0
- package/{packages/components/process/src/process.vue → src/packages/process/index.js} +219 -440
- package/src/packages/process/index.scss +164 -0
- package/src/packages/process/index.vue +189 -0
- package/src/packages/process/operation/backNode.vue +393 -0
- package/src/packages/process/operation/cancel.vue +399 -0
- package/src/packages/process/operation/ccTask.vue +461 -0
- package/src/packages/process/operation/complete.vue +488 -0
- package/src/packages/process/operation/counterSign.vue +485 -0
- package/src/packages/process/operation/delegateTask.vue +480 -0
- package/src/packages/process/operation/restart.vue +305 -0
- package/src/packages/submitPopup/index.js +296 -0
- package/src/packages/submitPopup/index.scss +83 -0
- package/src/packages/submitPopup/index.vue +138 -0
- package/src/packages/tab/index.js +207 -0
- package/src/packages/tab/index.scss +176 -0
- package/src/packages/tab/index.vue +155 -0
- package/src/packages/tip/index.js +74 -0
- package/src/packages/tip/index.scss +82 -0
- package/src/packages/tip/index.vue +57 -0
- package/src/packages/viewAttchList/index.js +132 -0
- package/src/packages/viewAttchList/index.scss +76 -0
- package/src/packages/viewAttchList/index.vue +112 -0
- package/src/style.css +80 -0
- package/ui-process-h5/README.md +171 -0
- package/ui-process-h5/package.json +27 -0
- package/ui-process-h5/scripts/postinstall.mjs +14 -0
- package/ui-process-h5/scripts/switch-cli.mjs +4 -0
- package/ui-process-h5/scripts/utils.mjs +60 -0
- package/ui-process-h5/v2/style.css +1 -0
- package/ui-process-h5/v2/ui-process-h5.js +13467 -0
- package/ui-process-h5/v2/ui-process-h5.umd.cjs +67 -0
- package/ui-process-h5/v2.7/style.css +1 -0
- package/ui-process-h5/v2.7/ui-process-h5.js +12844 -0
- package/ui-process-h5/v2.7/ui-process-h5.umd.cjs +67 -0
- package/ui-process-h5/v3/style.css +1 -0
- package/ui-process-h5/v3/ui-process-h5.js +10336 -0
- package/ui-process-h5/v3/ui-process-h5.umd.cjs +55 -0
- package/vite.config.ts +78 -0
- package/packages/components/approval/index.js +0 -0
- package/packages/components/process/index.js +0 -8
- package/packages/components/process/src/attchlist-upload.vue +0 -585
- package/packages/components/process/src/operation/backNode.vue +0 -141
- package/packages/components/process/src/operation/cancel.vue +0 -170
- package/packages/components/process/src/operation/ccTask.vue +0 -170
- package/packages/components/process/src/operation/complete.vue +0 -224
- package/packages/components/process/src/operation/counterSign.vue +0 -178
- package/packages/components/process/src/operation/delegateTask.vue +0 -168
- package/packages/components/process/src/operation/restart.vue +0 -172
- package/packages/components/process/src/popup.vue +0 -230
- package/packages/components/process/src/tab.vue +0 -459
- package/packages/components/process/src/tip.vue +0 -207
- package/packages/index.js +0 -4
- /package/{packages/components/process/theme → src/assets}/img/add-file.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/del.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/doc.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/file.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/image.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/pdf.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/xls.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/zip.png +0 -0
- /package/{packages/components/process/theme → src/assets}/status/error.png +0 -0
- /package/{packages/components/process/theme → src/assets}/status/loading.png +0 -0
- /package/{packages/components/process/theme → src/assets}/status/success.png +0 -0
- /package/{packages/components/process/src → src/packages/process}/operation/index.js +0 -0
|
@@ -1,200 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<div class="process-ml-item border">
|
|
6
|
-
<div class="process-mli-name">流程状态</div>
|
|
7
|
-
<div class="process-mli-name" @click="handleTest">测试</div>
|
|
8
|
-
<div class="process-mli-value">
|
|
9
|
-
<div
|
|
10
|
-
class="process-mliv-dd"
|
|
11
|
-
:style="{
|
|
12
|
-
background: getColor(processStatus.status),
|
|
13
|
-
}"
|
|
14
|
-
v-if="
|
|
15
|
-
processStatus.status ||
|
|
16
|
-
processStatus.bizStatusName
|
|
17
|
-
"
|
|
18
|
-
>
|
|
19
|
-
{{
|
|
20
|
-
processStatus.bizStatusName
|
|
21
|
-
? processStatus.bizStatusName
|
|
22
|
-
: processStatus.status
|
|
23
|
-
}}
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="process-ml-item border">
|
|
28
|
-
<div class="process-mli-name">流程发起时间</div>
|
|
29
|
-
<div class="process-mli-value">
|
|
30
|
-
<span>{{ processStatus.createTime }}</span>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<div
|
|
35
|
-
class="process-ml-item"
|
|
36
|
-
v-if="
|
|
37
|
-
processStatus.allUserNames &&
|
|
38
|
-
processStatus.allUserNames.length
|
|
39
|
-
"
|
|
40
|
-
>
|
|
41
|
-
<div class="process-mli-name">审批节点</div>
|
|
42
|
-
<div class="process-mli-value">
|
|
43
|
-
<span class="process-mliv-jd">{{
|
|
44
|
-
`${
|
|
45
|
-
processStatus.taskState == 4
|
|
46
|
-
? processStatus.currUserName
|
|
47
|
-
: processStatus.allUserNames.toString()
|
|
48
|
-
}审批中`
|
|
49
|
-
}}</span>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="process-card" :style="{ height: processCardHeight }">
|
|
54
|
-
<TopTab
|
|
55
|
-
:tapList="tapList"
|
|
56
|
-
:selfTapList="selfTapList"
|
|
57
|
-
:processIntId="processIntId"
|
|
58
|
-
:track="trackUrl"
|
|
59
|
-
:taskComment="taskCommentList"
|
|
60
|
-
>
|
|
61
|
-
<template #default><slot></slot></template>
|
|
62
|
-
</TopTab>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="process-foot" v-if="isAdditional">
|
|
65
|
-
<div class="footBtnRow">
|
|
66
|
-
<slot name="btn"></slot>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
<div class="process-btn">
|
|
70
|
-
<template v-if="processStatus.status != '已完成'">
|
|
71
|
-
<div
|
|
72
|
-
v-if="
|
|
73
|
-
processStatus.status === '已撤销' ||
|
|
74
|
-
processStatus.status === '已驳回'
|
|
75
|
-
"
|
|
76
|
-
class="top-button"
|
|
77
|
-
:style="getBtnStyle('default')"
|
|
78
|
-
@click="handleRestart"
|
|
79
|
-
>
|
|
80
|
-
重新提交
|
|
81
|
-
</div>
|
|
82
|
-
<template v-else v-for="(item, index) in operBtn">
|
|
83
|
-
<div
|
|
84
|
-
class="top-button"
|
|
85
|
-
:style="getBtnStyle(item.btnProps.type.toString())"
|
|
86
|
-
:key="item.name"
|
|
87
|
-
v-if="index < 3"
|
|
88
|
-
@click="item.click(item.name)"
|
|
89
|
-
>
|
|
90
|
-
{{ item.name }}
|
|
91
|
-
</div>
|
|
92
|
-
</template>
|
|
93
|
-
</template>
|
|
94
|
-
<div
|
|
95
|
-
class="elips"
|
|
96
|
-
v-if="operBtn.length > 3 && actionBtn && actionBtn.length"
|
|
97
|
-
@click="handleActionOpen"
|
|
98
|
-
>
|
|
99
|
-
<div class="circle"></div>
|
|
100
|
-
<div class="circle"></div>
|
|
101
|
-
<div class="circle"></div>
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
<TopPopup
|
|
106
|
-
ref="TopPopup1"
|
|
107
|
-
:cancel="handleCancel"
|
|
108
|
-
:comfig="handleComfig"
|
|
109
|
-
:titleText="titleText"
|
|
110
|
-
>
|
|
111
|
-
<!-- @success="operationSuccess"
|
|
112
|
-
@fail="operationFail" -->
|
|
113
|
-
<component
|
|
114
|
-
:is="operationCom"
|
|
115
|
-
ref="operationRef"
|
|
116
|
-
:param="operationParam"
|
|
117
|
-
@handleClosePopup1="handleClosePopup1"
|
|
118
|
-
></component>
|
|
119
|
-
</TopPopup>
|
|
120
|
-
<TopPopup
|
|
121
|
-
ref="TopPopup2"
|
|
122
|
-
:titleText="titleText"
|
|
123
|
-
:isTips="true"
|
|
124
|
-
:context="popupContext"
|
|
125
|
-
:cancel="handleTipsCancel"
|
|
126
|
-
:comfig="handleTipsComfig"
|
|
127
|
-
>
|
|
128
|
-
</TopPopup>
|
|
129
|
-
<TopTips
|
|
130
|
-
ref="topTips"
|
|
131
|
-
:text="textTips"
|
|
132
|
-
:statusTips="statusTips"
|
|
133
|
-
:type="typeTips"
|
|
134
|
-
/>
|
|
135
|
-
<div
|
|
136
|
-
class="top-elips"
|
|
137
|
-
v-if="
|
|
138
|
-
(actionBtn && actionBtn.length) ||
|
|
139
|
-
(taskNodeList && taskNodeList.length)
|
|
140
|
-
"
|
|
141
|
-
:style="
|
|
142
|
-
actionShow
|
|
143
|
-
? 'transform: translateY(0)'
|
|
144
|
-
: 'transform: translateY(100%)'
|
|
145
|
-
"
|
|
146
|
-
>
|
|
147
|
-
<template v-if="taskNodeShow">
|
|
148
|
-
<div
|
|
149
|
-
class="top-elips-items"
|
|
150
|
-
v-for="v in taskNodeList"
|
|
151
|
-
@click="handleGet(v)"
|
|
152
|
-
:key="v.taskId"
|
|
153
|
-
>
|
|
154
|
-
{{ v.name }}
|
|
155
|
-
</div>
|
|
156
|
-
</template>
|
|
157
|
-
<template v-else>
|
|
158
|
-
<div
|
|
159
|
-
class="top-elips-items"
|
|
160
|
-
v-for="v in actionBtn"
|
|
161
|
-
@click="v.click(v.name)"
|
|
162
|
-
:key="v.name"
|
|
163
|
-
>
|
|
164
|
-
{{ v.name }}
|
|
165
|
-
</div>
|
|
166
|
-
</template>
|
|
167
|
-
<div
|
|
168
|
-
class="top-elips-items top-elips-items--cancel"
|
|
169
|
-
@click="handleActionClose"
|
|
170
|
-
>
|
|
171
|
-
取消
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
<div
|
|
175
|
-
class="top-elips-mask"
|
|
176
|
-
@click="handleActionClose"
|
|
177
|
-
:style="
|
|
178
|
-
actionShow
|
|
179
|
-
? 'visibility: visible; opacity: .7;'
|
|
180
|
-
: 'visibility: hidden; opacity: 0;'
|
|
181
|
-
"
|
|
182
|
-
></div>
|
|
183
|
-
</div>
|
|
184
|
-
</template>
|
|
185
|
-
|
|
186
|
-
<script>
|
|
187
|
-
import TopTab from "./tab.vue";
|
|
188
|
-
import TopPopup from "./popup.vue";
|
|
189
|
-
import TopTips from "./tip.vue";
|
|
1
|
+
import TopTab from "../tab/index.vue";
|
|
2
|
+
import TopPopup from "../popup/index.vue";
|
|
3
|
+
import TopTips from "../tip/index.vue";
|
|
4
|
+
import TopSumbitPopup from "../submitPopup/index.vue";
|
|
190
5
|
import * as operation from "./operation";
|
|
6
|
+
import { defineComponent } from "vue-demi";
|
|
7
|
+
import "checked-pick-app/style.css";
|
|
191
8
|
|
|
192
|
-
export default {
|
|
9
|
+
export default defineComponent({
|
|
193
10
|
name: "TopProcess",
|
|
194
11
|
components: {
|
|
195
12
|
TopTab,
|
|
196
13
|
TopPopup,
|
|
197
14
|
TopTips,
|
|
15
|
+
TopSumbitPopup,
|
|
198
16
|
},
|
|
199
17
|
props: {
|
|
200
18
|
// tab控制
|
|
@@ -203,31 +21,44 @@ export default {
|
|
|
203
21
|
selfTapList: { require: false, default: () => [], type: Array },
|
|
204
22
|
// 流程id
|
|
205
23
|
processDefId: { require: true, default: "", type: String },
|
|
24
|
+
processInstId: { require: true, default: "", type: String },
|
|
206
25
|
isAdditional: { require: false, default: false, type: Boolean },
|
|
207
26
|
isView: { default: false, type: Boolean },
|
|
208
27
|
// 当前账号 id
|
|
209
28
|
userId: { require: true, default: "", type: String },
|
|
210
29
|
// 表单信息
|
|
211
30
|
formData: { default: {}, type: Object },
|
|
212
|
-
/**
|
|
213
|
-
* 接口对象
|
|
214
|
-
* getTrackUrl 获取流程图
|
|
215
|
-
* getTaskCommentList 流程信息
|
|
216
|
-
* getProcessInstanceById ID
|
|
217
|
-
* queryTaskNodeList 审批记录
|
|
218
|
-
* getProcessStatus 流程状态
|
|
219
|
-
* getUserTaskModel 按钮信息
|
|
220
|
-
*/
|
|
221
|
-
|
|
222
|
-
api: { defalut: {}, type: Object },
|
|
223
31
|
|
|
224
32
|
// 弹窗开启前执行方法
|
|
225
33
|
getVarsStatus: { default: true, type: Boolean },
|
|
226
34
|
getVars: { default: null, type: Function },
|
|
35
|
+
|
|
36
|
+
// 请求
|
|
37
|
+
request: {
|
|
38
|
+
type: Function,
|
|
39
|
+
default: () => {
|
|
40
|
+
return { get: () => {}, post: () => {}, upload: () => {} };
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
// appid
|
|
45
|
+
appId: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: "",
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
// 结束执行事件
|
|
51
|
+
endFunction: {
|
|
52
|
+
type: Function,
|
|
53
|
+
default: null,
|
|
54
|
+
},
|
|
227
55
|
},
|
|
228
56
|
data() {
|
|
229
57
|
return {
|
|
230
58
|
processStatus: {},
|
|
59
|
+
processDefList: {},
|
|
60
|
+
processBusiness: {},
|
|
61
|
+
getFirstProcessNode: {},
|
|
231
62
|
// 底部按钮
|
|
232
63
|
taskNode: [],
|
|
233
64
|
taskNodeList: [],
|
|
@@ -272,19 +103,30 @@ export default {
|
|
|
272
103
|
statusTips: false,
|
|
273
104
|
// 状态类型
|
|
274
105
|
typeTips: "",
|
|
106
|
+
|
|
107
|
+
// 节点
|
|
108
|
+
outGatewayUserTaskModel: [],
|
|
109
|
+
nextNodeData: [],
|
|
110
|
+
|
|
111
|
+
// 测试送审节点
|
|
112
|
+
visibleSong: false,
|
|
113
|
+
|
|
114
|
+
trackList: [],
|
|
275
115
|
};
|
|
276
116
|
},
|
|
277
117
|
watch: {
|
|
278
|
-
|
|
118
|
+
processInstId: {
|
|
279
119
|
// 初始化获取流程相关信息
|
|
280
120
|
async handler(val, preVal) {
|
|
281
|
-
this.processIntId = this.
|
|
121
|
+
this.processIntId = this.processInstId;
|
|
282
122
|
if (val) {
|
|
283
123
|
// 流程图
|
|
284
|
-
this.
|
|
285
|
-
.getTrackUrl
|
|
286
|
-
|
|
287
|
-
|
|
124
|
+
this.request
|
|
125
|
+
.get("/aws/repository/getTrackUrl", {
|
|
126
|
+
params: {
|
|
127
|
+
processInstId: this.processIntId,
|
|
128
|
+
type: "mobile",
|
|
129
|
+
},
|
|
288
130
|
})
|
|
289
131
|
.then((res) => {
|
|
290
132
|
if (res.code == 200) {
|
|
@@ -292,11 +134,27 @@ export default {
|
|
|
292
134
|
}
|
|
293
135
|
});
|
|
294
136
|
|
|
137
|
+
// 流程图信息
|
|
138
|
+
this.request
|
|
139
|
+
.get("/aws/pis/findNodeParticipantRows", {
|
|
140
|
+
params: {
|
|
141
|
+
processInstId: this.processIntId,
|
|
142
|
+
},
|
|
143
|
+
})
|
|
144
|
+
.then((res) => {
|
|
145
|
+
// console.log("流程信息", res);
|
|
146
|
+
if (res.code == 200) {
|
|
147
|
+
this.trackList = res.data;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
|
|
295
151
|
// 流程信息
|
|
296
|
-
this.
|
|
297
|
-
.getTaskCommentList
|
|
298
|
-
|
|
299
|
-
|
|
152
|
+
this.request
|
|
153
|
+
.get("/aws/tis/getTaskCommentList", {
|
|
154
|
+
params: {
|
|
155
|
+
processInstId: this.processInstId,
|
|
156
|
+
processBusinessKey: this.formData.businessKey,
|
|
157
|
+
},
|
|
300
158
|
})
|
|
301
159
|
.then((res) => {
|
|
302
160
|
if (res.code == 200) {
|
|
@@ -305,9 +163,9 @@ export default {
|
|
|
305
163
|
});
|
|
306
164
|
|
|
307
165
|
// id
|
|
308
|
-
this.
|
|
309
|
-
.getProcessInstanceById
|
|
310
|
-
processInstId: this.
|
|
166
|
+
this.request
|
|
167
|
+
.get("/aws/pis/getProcessInstanceById", {
|
|
168
|
+
params: { processInstId: this.processInstId },
|
|
311
169
|
})
|
|
312
170
|
.then((res) => {
|
|
313
171
|
if (res.code == 200) {
|
|
@@ -316,9 +174,9 @@ export default {
|
|
|
316
174
|
});
|
|
317
175
|
|
|
318
176
|
// task信息 任务节点
|
|
319
|
-
await this.
|
|
320
|
-
.queryTaskNodeList
|
|
321
|
-
processInstId: this.
|
|
177
|
+
await this.request
|
|
178
|
+
.get("/aws/repository/queryTaskNodeList", {
|
|
179
|
+
params: { processInstId: this.processInstId },
|
|
322
180
|
})
|
|
323
181
|
.then((res) => {
|
|
324
182
|
if (res.code == 200) {
|
|
@@ -382,7 +240,7 @@ export default {
|
|
|
382
240
|
this.showOperation(
|
|
383
241
|
operation.complete,
|
|
384
242
|
name,
|
|
385
|
-
this.
|
|
243
|
+
this.request,
|
|
386
244
|
this.taskObj.completeButtonAnnex
|
|
387
245
|
);
|
|
388
246
|
};
|
|
@@ -400,7 +258,7 @@ export default {
|
|
|
400
258
|
this.showOperation(
|
|
401
259
|
operation.cancel,
|
|
402
260
|
name,
|
|
403
|
-
this.
|
|
261
|
+
this.request,
|
|
404
262
|
this.taskObj.otherButtonAnnexList
|
|
405
263
|
);
|
|
406
264
|
};
|
|
@@ -425,7 +283,7 @@ export default {
|
|
|
425
283
|
this.showOperation(
|
|
426
284
|
operation.backNode,
|
|
427
285
|
name,
|
|
428
|
-
this.
|
|
286
|
+
this.request,
|
|
429
287
|
this.taskObj.otherButtonAnnexList
|
|
430
288
|
);
|
|
431
289
|
};
|
|
@@ -444,7 +302,7 @@ export default {
|
|
|
444
302
|
this.showOperation(
|
|
445
303
|
operation.ccTask,
|
|
446
304
|
name,
|
|
447
|
-
this.
|
|
305
|
+
this.request,
|
|
448
306
|
this.taskObj.ccTaskButtonAnnex
|
|
449
307
|
);
|
|
450
308
|
};
|
|
@@ -462,7 +320,7 @@ export default {
|
|
|
462
320
|
this.showOperation(
|
|
463
321
|
operation.delegateTask,
|
|
464
322
|
name,
|
|
465
|
-
this.
|
|
323
|
+
this.request,
|
|
466
324
|
this.taskObj.delegateTaskButtonAnnex
|
|
467
325
|
);
|
|
468
326
|
};
|
|
@@ -480,7 +338,7 @@ export default {
|
|
|
480
338
|
this.showOperation(
|
|
481
339
|
operation.counterSign,
|
|
482
340
|
name,
|
|
483
|
-
this.
|
|
341
|
+
this.request,
|
|
484
342
|
this.taskObj.counterSignButtonAnnex
|
|
485
343
|
);
|
|
486
344
|
};
|
|
@@ -545,8 +403,43 @@ export default {
|
|
|
545
403
|
methods: {
|
|
546
404
|
// 测试
|
|
547
405
|
handleTest() {
|
|
548
|
-
|
|
406
|
+
// this.visibleSong = true
|
|
407
|
+
},
|
|
408
|
+
// 流程查询
|
|
409
|
+
async handleGetSimulation(vars) {
|
|
410
|
+
this.handleTips("", true, "loading");
|
|
411
|
+
let params = {
|
|
412
|
+
processInstId: this.processInstId,
|
|
413
|
+
taskInstId: this.taskNode.length ? this.taskNode[0].taskId : "",
|
|
414
|
+
vars: vars,
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
let simulationData = await this.request.post(
|
|
418
|
+
`/aws/tis/simulation`,
|
|
419
|
+
params
|
|
420
|
+
);
|
|
421
|
+
|
|
422
|
+
if (simulationData.success) {
|
|
423
|
+
this.handleTips("", false, "success");
|
|
424
|
+
this.nextNodeData = simulationData.data;
|
|
425
|
+
} else {
|
|
426
|
+
await this.request
|
|
427
|
+
.get("/aws/repository/getOutgoingProcessNode", {
|
|
428
|
+
params: {
|
|
429
|
+
taskId: this.taskNode.length
|
|
430
|
+
? this.taskNode[0].taskId
|
|
431
|
+
: "",
|
|
432
|
+
processNodeId: "",
|
|
433
|
+
},
|
|
434
|
+
})
|
|
435
|
+
.then((res) => {
|
|
436
|
+
this.handleTips("", false, "success");
|
|
437
|
+
console.log("outGatewayUserTaskModel", res);
|
|
438
|
+
this.outGatewayUserTaskModel = res.data;
|
|
439
|
+
});
|
|
440
|
+
}
|
|
549
441
|
},
|
|
442
|
+
|
|
550
443
|
// 集合
|
|
551
444
|
handleGet(task) {
|
|
552
445
|
this.taskNode = [].concat(task);
|
|
@@ -557,10 +450,14 @@ export default {
|
|
|
557
450
|
},
|
|
558
451
|
// 流程状态
|
|
559
452
|
handleGetProcessStatus() {
|
|
560
|
-
this.
|
|
561
|
-
.getProcessStatus
|
|
562
|
-
|
|
563
|
-
|
|
453
|
+
this.request
|
|
454
|
+
.get("/aws/pis/getProcessStatus", {
|
|
455
|
+
params: {
|
|
456
|
+
processInstId: this.processInstId,
|
|
457
|
+
taskId: this.taskNode.length
|
|
458
|
+
? this.taskNode[0].taskId
|
|
459
|
+
: "",
|
|
460
|
+
},
|
|
564
461
|
})
|
|
565
462
|
.then((res) => {
|
|
566
463
|
if (res.code == 200) {
|
|
@@ -570,49 +467,41 @@ export default {
|
|
|
570
467
|
},
|
|
571
468
|
// 按钮操作信息
|
|
572
469
|
handleGetUserTaskModel() {
|
|
573
|
-
this.
|
|
574
|
-
.
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
470
|
+
if (this.taskNode && this.taskNode.length) {
|
|
471
|
+
this.request
|
|
472
|
+
.get(`/aws/repository/getUserTaskModel`, {
|
|
473
|
+
params: {
|
|
474
|
+
taskId: this.taskNode[0].taskId,
|
|
475
|
+
},
|
|
476
|
+
})
|
|
477
|
+
.then((res) => {
|
|
478
|
+
if (res.code == 200) {
|
|
479
|
+
this.taskObj = res.data;
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
}
|
|
582
483
|
},
|
|
583
484
|
|
|
584
485
|
// 弹窗内部渲染
|
|
585
|
-
async showOperation(com, label,
|
|
486
|
+
async showOperation(com, label, request, annex) {
|
|
586
487
|
if (
|
|
587
488
|
this.processStatus.allUserNames &&
|
|
588
489
|
this.processStatus.allUserNames.length == 1
|
|
589
490
|
) {
|
|
590
491
|
if (this.taskNode[0] && this.taskNode[0].nodeId) {
|
|
591
492
|
let vars;
|
|
592
|
-
if (this.
|
|
593
|
-
|
|
594
|
-
vars = this.getVars();
|
|
595
|
-
if (vars === false) {
|
|
596
|
-
return false;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
} else {
|
|
600
|
-
if (label === "办理") {
|
|
601
|
-
if (this.getVars) {
|
|
602
|
-
vars = this.getVars();
|
|
603
|
-
if (vars === false) {
|
|
604
|
-
return false;
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
}
|
|
493
|
+
if (this.getVars) {
|
|
494
|
+
vars = this.getVars();
|
|
608
495
|
}
|
|
496
|
+
|
|
497
|
+
await this.handleGetSimulation(vars);
|
|
609
498
|
}
|
|
610
499
|
}
|
|
611
|
-
if (api) {
|
|
612
|
-
this.operationParam.api = api;
|
|
613
|
-
}
|
|
614
500
|
|
|
615
|
-
|
|
501
|
+
if (request) {
|
|
502
|
+
this.operationParam.request = request;
|
|
503
|
+
}
|
|
504
|
+
if (request) this.annexlabel = annex;
|
|
616
505
|
this.titleText = label;
|
|
617
506
|
this.operationCom = com;
|
|
618
507
|
|
|
@@ -622,6 +511,17 @@ export default {
|
|
|
622
511
|
this.operationParam.taskInstId = this.taskNode[0].taskId;
|
|
623
512
|
this.operationParam.actionName = label;
|
|
624
513
|
this.operationParam.formData = this.formData;
|
|
514
|
+
|
|
515
|
+
// 下次节点数据
|
|
516
|
+
this.operationParam.nextNodeData = this.nextNodeData;
|
|
517
|
+
this.operationParam.outGatewayUserTaskModel = this.outGatewayUserTaskModel;
|
|
518
|
+
|
|
519
|
+
this.operationParam.taskNode = this.taskNode;
|
|
520
|
+
|
|
521
|
+
this.operationParam.appId = this.processStatus.appId;
|
|
522
|
+
|
|
523
|
+
// 弹窗确认结束事件
|
|
524
|
+
this.operationParam.endFunction = this.endFunction;
|
|
625
525
|
},
|
|
626
526
|
// 弹窗取消
|
|
627
527
|
handleCancel() {
|
|
@@ -635,13 +535,15 @@ export default {
|
|
|
635
535
|
handleClosePopup1() {
|
|
636
536
|
this.$refs.TopPopup1.handleClose();
|
|
637
537
|
},
|
|
638
|
-
// 确认弹窗
|
|
538
|
+
// 确认弹窗(催办,撤销)
|
|
639
539
|
handleTipsComfig() {
|
|
640
540
|
this.$refs.TopPopup2.handleCancel();
|
|
641
541
|
if (this.handleTipsType == "催办") {
|
|
642
542
|
this.handleTips("", true, "loading");
|
|
643
|
-
this.
|
|
644
|
-
.reminders
|
|
543
|
+
this.request
|
|
544
|
+
.get("/aws/tis/reminders", {
|
|
545
|
+
params: { processInstId: this.processIntId },
|
|
546
|
+
})
|
|
645
547
|
.then((res) => {
|
|
646
548
|
if (res.code == 200) {
|
|
647
549
|
this.handleTips("催办成功", true, "success");
|
|
@@ -652,8 +554,8 @@ export default {
|
|
|
652
554
|
}
|
|
653
555
|
if (this.handleTipsType == "撤销") {
|
|
654
556
|
this.handleTips("", true, "loading");
|
|
655
|
-
this.
|
|
656
|
-
.revoke
|
|
557
|
+
this.request
|
|
558
|
+
.post("/aws/pis/revoke", {
|
|
657
559
|
processInstId: this.ProcessInsObj.id,
|
|
658
560
|
processBusinessKey: this.ProcessInsObj
|
|
659
561
|
.processBusinessKey,
|
|
@@ -712,14 +614,59 @@ export default {
|
|
|
712
614
|
}
|
|
713
615
|
},
|
|
714
616
|
// 复活流程
|
|
715
|
-
handleRestart() {
|
|
716
|
-
this
|
|
717
|
-
this.
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
617
|
+
async handleRestart() {
|
|
618
|
+
this.handleTips("", true, "loading");
|
|
619
|
+
await this.request
|
|
620
|
+
.get("/aws/repository/getProcessDefList", {
|
|
621
|
+
params: {
|
|
622
|
+
appId: this.processStatus.appId,
|
|
623
|
+
},
|
|
624
|
+
})
|
|
625
|
+
.then((res) => {
|
|
626
|
+
this.processDefList = res.data;
|
|
627
|
+
this.request
|
|
628
|
+
.get("/aws/pis/getProcessInstanceByBusinessKey", {
|
|
629
|
+
params: {
|
|
630
|
+
businessKey: this.formData.businessKey,
|
|
631
|
+
},
|
|
632
|
+
})
|
|
633
|
+
.then((res) => {
|
|
634
|
+
this.processBusiness = res.data;
|
|
635
|
+
this.request
|
|
636
|
+
.get("/aws/repository/getFirstProcessNode", {
|
|
637
|
+
params: {
|
|
638
|
+
processDefId: this.processBusiness
|
|
639
|
+
.processDefId,
|
|
640
|
+
},
|
|
641
|
+
})
|
|
642
|
+
.then((res) => {
|
|
643
|
+
console.log(
|
|
644
|
+
"getProcessInstanceByBusinessKey:::",
|
|
645
|
+
res
|
|
646
|
+
);
|
|
647
|
+
this.getFirstProcessNode = res.data[0];
|
|
648
|
+
this.operationParam.getFirstProcessNode = this.getFirstProcessNode;
|
|
649
|
+
this.operationParam.formData = this.formData;
|
|
650
|
+
this.handleTips("", false, "success");
|
|
651
|
+
this.$refs.TopPopup1.handleOpen();
|
|
652
|
+
this.handleActionClose();
|
|
653
|
+
this.showOperation(
|
|
654
|
+
operation.restart,
|
|
655
|
+
"重新提交",
|
|
656
|
+
this.request
|
|
657
|
+
);
|
|
658
|
+
})
|
|
659
|
+
.catch((err) => {
|
|
660
|
+
this.handleTips("请求出错", true, "error");
|
|
661
|
+
});
|
|
662
|
+
})
|
|
663
|
+
.catch((err) => {
|
|
664
|
+
this.handleTips("请求出错", true, "error");
|
|
665
|
+
});
|
|
666
|
+
})
|
|
667
|
+
.catch((err) => {
|
|
668
|
+
this.handleTips("请求出错", true, "error");
|
|
669
|
+
});
|
|
723
670
|
},
|
|
724
671
|
// tips公用方法(tips)
|
|
725
672
|
handleTips(text, status, type) {
|
|
@@ -729,172 +676,4 @@ export default {
|
|
|
729
676
|
this.$refs.topTips.handleOpen();
|
|
730
677
|
},
|
|
731
678
|
},
|
|
732
|
-
};
|
|
733
|
-
</script>
|
|
734
|
-
|
|
735
|
-
<style scoped>
|
|
736
|
-
.process-warp {
|
|
737
|
-
overflow: hidden;
|
|
738
|
-
height: 100vh;
|
|
739
|
-
width: 100%;
|
|
740
|
-
position: relative;
|
|
741
|
-
background-color: #f3f3f7;
|
|
742
|
-
}
|
|
743
|
-
.process-main {
|
|
744
|
-
display: flex;
|
|
745
|
-
justify-content: space-between;
|
|
746
|
-
flex-direction: column;
|
|
747
|
-
align-items: center;
|
|
748
|
-
padding: 0 17px;
|
|
749
|
-
background: #fff;
|
|
750
|
-
margin: 0 0 10px 0;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
.process-main .border {
|
|
754
|
-
border-bottom: #e8e8e8 1px solid;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
.process-main .process-ml-item {
|
|
758
|
-
display: flex;
|
|
759
|
-
align-items: center;
|
|
760
|
-
font-size: 15px;
|
|
761
|
-
font-weight: 400;
|
|
762
|
-
width: 100%;
|
|
763
|
-
justify-content: space-between;
|
|
764
|
-
height: 44px;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
.process-main .process-ml-item .process-mli-name {
|
|
768
|
-
color: #333333;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
.process-main .process-ml-item .process-mli-value {
|
|
772
|
-
color: #888888;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
.process-main .process-ml-item .process-mli-value .process-mliv-dd {
|
|
776
|
-
height: 26px;
|
|
777
|
-
min-width: 30px;
|
|
778
|
-
padding: 0 12px;
|
|
779
|
-
border-radius: 20px;
|
|
780
|
-
background: #1389ff;
|
|
781
|
-
color: #fff;
|
|
782
|
-
display: flex;
|
|
783
|
-
align-items: center;
|
|
784
|
-
justify-content: center;
|
|
785
|
-
font-size: 12px;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
.process-main .process-ml-item .process-mli-value .process-mliv-jd {
|
|
789
|
-
color: #1389ff;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
.process-btn {
|
|
793
|
-
display: flex;
|
|
794
|
-
min-height: 60px;
|
|
795
|
-
padding-top: 5px;
|
|
796
|
-
background: #fff;
|
|
797
|
-
border-top: 1px solid #dddddf9e;
|
|
798
|
-
/* box-sizing: border-box; */
|
|
799
|
-
justify-content: center;
|
|
800
|
-
align-items: center;
|
|
801
|
-
flex-direction: row-reverse;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
.process-btn .top-button,
|
|
805
|
-
.process-btn .elips {
|
|
806
|
-
margin: 0 5px;
|
|
807
|
-
}
|
|
808
|
-
/* .process-btn .top-button:first-child{
|
|
809
|
-
margin-left: 0;
|
|
810
|
-
} */
|
|
811
|
-
|
|
812
|
-
.elips {
|
|
813
|
-
min-width: 60px;
|
|
814
|
-
height: 100%;
|
|
815
|
-
background-color: white;
|
|
816
|
-
display: flex;
|
|
817
|
-
justify-content: center;
|
|
818
|
-
align-items: center;
|
|
819
|
-
}
|
|
820
|
-
.elips .circle {
|
|
821
|
-
width: 6px;
|
|
822
|
-
height: 6px;
|
|
823
|
-
margin: 0 2px;
|
|
824
|
-
background-color: #333333;
|
|
825
|
-
border-radius: 50%;
|
|
826
|
-
}
|
|
827
|
-
.top-elips {
|
|
828
|
-
width: 100%;
|
|
829
|
-
height: auto;
|
|
830
|
-
position: fixed;
|
|
831
|
-
left: 0;
|
|
832
|
-
background-color: #f7f8fa;
|
|
833
|
-
z-index: 197;
|
|
834
|
-
border-radius: 20px 20px 0 0;
|
|
835
|
-
box-sizing: border-box;
|
|
836
|
-
transition: all 0.3s ease;
|
|
837
|
-
bottom: 0;
|
|
838
|
-
}
|
|
839
|
-
.top-elips-mask {
|
|
840
|
-
position: fixed;
|
|
841
|
-
width: 100vw;
|
|
842
|
-
height: 100vh;
|
|
843
|
-
background-color: #000;
|
|
844
|
-
opacity: 0.7;
|
|
845
|
-
top: 0;
|
|
846
|
-
left: 0;
|
|
847
|
-
transition: all 0.5s ease;
|
|
848
|
-
z-index: 99;
|
|
849
|
-
display: block;
|
|
850
|
-
}
|
|
851
|
-
.top-elips-items {
|
|
852
|
-
padding: 14px 36px;
|
|
853
|
-
background-color: #fff;
|
|
854
|
-
width: 100%;
|
|
855
|
-
cursor: pointer;
|
|
856
|
-
text-align: center;
|
|
857
|
-
display: flex;
|
|
858
|
-
justify-content: center;
|
|
859
|
-
align-items: center;
|
|
860
|
-
box-sizing: border-box;
|
|
861
|
-
font-size: 16px;
|
|
862
|
-
color: #323233;
|
|
863
|
-
position: relative;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
.top-elips-items::after {
|
|
867
|
-
content: "";
|
|
868
|
-
width: 100%;
|
|
869
|
-
height: 1px;
|
|
870
|
-
position: absolute;
|
|
871
|
-
left: 0;
|
|
872
|
-
top: 0;
|
|
873
|
-
background-color: #f2f2f2;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
.top-elips-items:first-child {
|
|
877
|
-
border-radius: 20px 20px 0 0;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
.top-elips-items:first-child::after,
|
|
881
|
-
.top-elips-items:last-child::after {
|
|
882
|
-
display: none;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
.top-elips-items:nth-last-child(2) {
|
|
886
|
-
margin-bottom: 8px;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
.top-button {
|
|
890
|
-
width: 100%;
|
|
891
|
-
border-radius: 20px;
|
|
892
|
-
height: 36px;
|
|
893
|
-
background-color: #3c9cff;
|
|
894
|
-
color: #fff;
|
|
895
|
-
font-size: 14px;
|
|
896
|
-
justify-content: center;
|
|
897
|
-
display: flex;
|
|
898
|
-
align-items: center;
|
|
899
|
-
}
|
|
900
|
-
</style>
|
|
679
|
+
});
|