n20-common-lib 2.11.1 → 2.11.2
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
|
@@ -7,25 +7,12 @@
|
|
|
7
7
|
title="自定义项"
|
|
8
8
|
:default-expand="false"
|
|
9
9
|
>
|
|
10
|
-
<el-form
|
|
11
|
-
ref="approveBtnGroup"
|
|
12
|
-
label-position="right"
|
|
13
|
-
:label-width="_lang === 'zh' ? '12em' : '12em'"
|
|
14
|
-
>
|
|
10
|
+
<el-form ref="approveBtnGroup" label-position="right" :label-width="_lang === 'zh' ? '12em' : '12em'">
|
|
15
11
|
<div
|
|
16
12
|
class="p-b-lg p-t-lg p-r-lg"
|
|
17
|
-
style="
|
|
18
|
-
max-height: 150px;
|
|
19
|
-
overflow-y: auto;
|
|
20
|
-
border: 1px dashed var(--border-color-base);
|
|
21
|
-
border-radius: 5px;
|
|
22
|
-
"
|
|
13
|
+
style="max-height: 150px; overflow-y: auto; border: 1px dashed var(--border-color-base); border-radius: 5px"
|
|
23
14
|
>
|
|
24
|
-
<show-other-att-new
|
|
25
|
-
ref="showOtherAttNew"
|
|
26
|
-
:task-id="taskId"
|
|
27
|
-
:form="customizationDtos"
|
|
28
|
-
/>
|
|
15
|
+
<show-other-att-new ref="showOtherAttNew" :task-id="taskId" :form="customizationDtos" />
|
|
29
16
|
</div>
|
|
30
17
|
</el-form>
|
|
31
18
|
</ExpandablePane>
|
|
@@ -40,17 +27,9 @@
|
|
|
40
27
|
</div>
|
|
41
28
|
</div>
|
|
42
29
|
<!-- 抄送加签 -->
|
|
43
|
-
<el-form
|
|
44
|
-
ref="approveBtnGroup"
|
|
45
|
-
label-position="right"
|
|
46
|
-
:label-width="_lang === 'zh' ? '6em' : '12em'"
|
|
47
|
-
>
|
|
30
|
+
<el-form ref="approveBtnGroup" label-position="right" :label-width="_lang === 'zh' ? '6em' : '12em'">
|
|
48
31
|
<div v-if="taskId && showBtn" class="flex-box">
|
|
49
|
-
<el-form-item
|
|
50
|
-
v-if="authList.includes('isCarboncopy')"
|
|
51
|
-
:label="'抄送' | $lc"
|
|
52
|
-
class="flex-1 m-b-s"
|
|
53
|
-
>
|
|
32
|
+
<el-form-item v-if="authList.includes('isCarboncopy')" :label="'抄送' | $lc" class="flex-1 m-b-s">
|
|
54
33
|
<el-input
|
|
55
34
|
:value="carbonCopyList.map((c) => c.uname).join(', ')"
|
|
56
35
|
type="textarea"
|
|
@@ -59,11 +38,7 @@
|
|
|
59
38
|
/>
|
|
60
39
|
</el-form-item>
|
|
61
40
|
<el-form-item
|
|
62
|
-
v-if="
|
|
63
|
-
authList.includes('isAddtask') ||
|
|
64
|
-
authList.includes('isAddForwardTask') ||
|
|
65
|
-
preAddTask
|
|
66
|
-
"
|
|
41
|
+
v-if="authList.includes('isAddtask') || authList.includes('isAddForwardTask') || preAddTask"
|
|
67
42
|
:label="'加签' | $lc"
|
|
68
43
|
:error="addMsg"
|
|
69
44
|
class="flex-1 m-b-s"
|
|
@@ -80,11 +55,7 @@
|
|
|
80
55
|
</label>
|
|
81
56
|
<div class="flex-box">
|
|
82
57
|
<el-select
|
|
83
|
-
v-if="
|
|
84
|
-
authList.includes('isAddtask') ||
|
|
85
|
-
authList.includes('isAddForwardTask') ||
|
|
86
|
-
preAddTask
|
|
87
|
-
"
|
|
58
|
+
v-if="authList.includes('isAddtask') || authList.includes('isAddForwardTask') || preAddTask"
|
|
88
59
|
v-model="addTaskWay"
|
|
89
60
|
class="m-r-ss"
|
|
90
61
|
clearable
|
|
@@ -98,11 +69,7 @@
|
|
|
98
69
|
value="2"
|
|
99
70
|
/>
|
|
100
71
|
<el-option
|
|
101
|
-
v-if="
|
|
102
|
-
addTaskMode === '1' ||
|
|
103
|
-
authList.includes('isAddtask') ||
|
|
104
|
-
preAddTask
|
|
105
|
-
"
|
|
72
|
+
v-if="addTaskMode === '1' || authList.includes('isAddtask') || preAddTask"
|
|
106
73
|
:label="'向后加签' | $lc"
|
|
107
74
|
value="1"
|
|
108
75
|
/>
|
|
@@ -119,13 +86,7 @@
|
|
|
119
86
|
>
|
|
120
87
|
<el-option :label="'普通节点' | $lc" value="1" />
|
|
121
88
|
</el-select>
|
|
122
|
-
<el-select
|
|
123
|
-
v-else
|
|
124
|
-
v-model="addTaskType"
|
|
125
|
-
clearable
|
|
126
|
-
:placeholder="'请选择审批方式' | $lc"
|
|
127
|
-
style="width: 10em"
|
|
128
|
-
>
|
|
89
|
+
<el-select v-else v-model="addTaskType" clearable :placeholder="'请选择审批方式' | $lc" style="width: 10em">
|
|
129
90
|
<el-option :label="'普通节点' | $lc" value="1" />
|
|
130
91
|
<el-option :label="'会签并行' | $lc" value="2" />
|
|
131
92
|
<el-option :label="'普通串行' | $lc" value="3" />
|
|
@@ -140,22 +101,13 @@
|
|
|
140
101
|
@focus="setAddtaskV = true"
|
|
141
102
|
/>
|
|
142
103
|
<el-select v-model="addTaskTag" class="m-l-ss" clearable>
|
|
143
|
-
<el-option
|
|
144
|
-
v-for="item in remarkOpt"
|
|
145
|
-
:key="item.code"
|
|
146
|
-
:label="item.name"
|
|
147
|
-
:value="item.code"
|
|
148
|
-
/>
|
|
104
|
+
<el-option v-for="item in remarkOpt" :key="item.code" :label="item.name" :value="item.code" />
|
|
149
105
|
</el-select>
|
|
150
106
|
</div>
|
|
151
107
|
</el-form-item>
|
|
152
108
|
</div>
|
|
153
109
|
|
|
154
|
-
<el-form-item
|
|
155
|
-
:label="'审批意见' | $lc"
|
|
156
|
-
:error="errMsg"
|
|
157
|
-
:required="requiredC"
|
|
158
|
-
>
|
|
110
|
+
<el-form-item :label="'审批意见' | $lc" :error="errMsg" :required="requiredC">
|
|
159
111
|
<template v-if="taskId && showBtn">
|
|
160
112
|
<show-app-opi
|
|
161
113
|
v-if="opiAndUser || authList.includes('showAppOpi')"
|
|
@@ -197,98 +149,50 @@
|
|
|
197
149
|
:on-remove="onRemove"
|
|
198
150
|
show-file-list
|
|
199
151
|
:action="
|
|
200
|
-
apiPrefix
|
|
201
|
-
? apiPrefix + `/neams/eamsbaserecord/batchSavejson`
|
|
202
|
-
: `/neams/eamsbaserecord/batchSavejson`
|
|
152
|
+
apiPrefix ? apiPrefix + `/neams/eamsbaserecord/batchSavejson` : `/neams/eamsbaserecord/batchSavejson`
|
|
203
153
|
"
|
|
204
154
|
msg-type="message"
|
|
205
155
|
/>
|
|
206
156
|
</el-form-item>
|
|
207
157
|
</el-form>
|
|
208
158
|
<!-- 加签按钮 -->
|
|
209
|
-
<div
|
|
210
|
-
v-if="authList.includes('
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
<el-button
|
|
214
|
-
v-if="authList.includes('approval')"
|
|
215
|
-
type="primary"
|
|
216
|
-
@click="checkFlowFn"
|
|
217
|
-
>{{ '加 签' | $lc }}</el-button
|
|
218
|
-
>
|
|
159
|
+
<div v-if="authList.includes('byAddTask') && addTaskList.length > 0" class="text-c">
|
|
160
|
+
<el-button v-if="authList.includes('approval')" type="primary" @click="checkFlowFn">{{
|
|
161
|
+
'加 签' | $lc
|
|
162
|
+
}}</el-button>
|
|
219
163
|
</div>
|
|
220
164
|
<!-- 审批按钮 -->
|
|
221
|
-
<div
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
>
|
|
225
|
-
<el-button type="primary" @click="checkFlowFn">{{
|
|
226
|
-
'批 准' | $lc
|
|
227
|
-
}}</el-button>
|
|
228
|
-
<el-button type="primary" @click="approvalToV = true">{{
|
|
229
|
-
'批准至' | $lc
|
|
230
|
-
}}</el-button>
|
|
165
|
+
<div v-if="authList.includes('byAddTask') && !addTaskList.length" class="text-c">
|
|
166
|
+
<el-button type="primary" @click="checkFlowFn">{{ '批 准' | $lc }}</el-button>
|
|
167
|
+
<el-button type="primary" @click="approvalToV = true">{{ '批准至' | $lc }}</el-button>
|
|
231
168
|
<el-button plain @click="rejectToB">{{ '驳回至' | $lc }}</el-button>
|
|
232
169
|
<el-button plain @click="rejectFn">{{ '驳回至发起人' | $lc }}</el-button>
|
|
233
|
-
<el-button type="danger" plain @click="discardFn">{{
|
|
234
|
-
'作 废' | $lc
|
|
235
|
-
}}</el-button>
|
|
170
|
+
<el-button type="danger" plain @click="discardFn">{{ '作 废' | $lc }}</el-button>
|
|
236
171
|
<el-button plain @click="goFrom">{{ '返 回' | $lc }}</el-button>
|
|
237
172
|
</div>
|
|
238
173
|
|
|
239
174
|
<div v-else-if="!authList.includes('byAddTask')" class="text-c">
|
|
240
175
|
<!-- 特殊会签按钮 START -->
|
|
241
|
-
<el-button
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
@click="checkFlowFn"
|
|
245
|
-
>{{ '通 过' | $lc }}</el-button
|
|
246
|
-
>
|
|
247
|
-
<el-button v-if="authList.includes('refuse')" plain @click="rejectFn">{{
|
|
248
|
-
'拒 绝' | $lc
|
|
249
|
-
}}</el-button>
|
|
176
|
+
<el-button v-if="authList.includes('pass')" type="primary" @click="checkFlowFn">{{ '通 过' | $lc }}</el-button>
|
|
177
|
+
<el-button v-if="authList.includes('refuse')" plain @click="rejectFn">{{ '拒 绝' | $lc }}</el-button>
|
|
178
|
+
<el-button v-if="authList.includes('takeOff')" plain @click="checkFlowFn('1')">{{ '请 假' | $lc }}</el-button>
|
|
250
179
|
<!-- END -->
|
|
251
|
-
<el-button
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
>
|
|
257
|
-
<el-button
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
>
|
|
263
|
-
<el-button
|
|
264
|
-
v-if="showApprovalTo"
|
|
265
|
-
type="primary"
|
|
266
|
-
@click="approvalToV = true"
|
|
267
|
-
>{{ '批准至' | $lc }}</el-button
|
|
268
|
-
>
|
|
269
|
-
<el-button
|
|
270
|
-
v-if="authList.includes('rejectTo')"
|
|
271
|
-
plain
|
|
272
|
-
@click="rejectToB"
|
|
273
|
-
>{{ '驳回至' | $lc }}</el-button
|
|
274
|
-
>
|
|
275
|
-
<el-button v-if="authList.includes('reject')" plain @click="rejectFn">{{
|
|
276
|
-
'驳回至发起人' | $lc
|
|
180
|
+
<el-button v-if="authList.includes('approval')" type="primary" @click="checkFlowFn">{{
|
|
181
|
+
'批 准' | $lc
|
|
182
|
+
}}</el-button>
|
|
183
|
+
<el-button v-if="authList.includes('approval') && nextApproval && nextBtn" type="primary" @click="approvalNext">{{
|
|
184
|
+
'批准并审批下一条' | $lc
|
|
185
|
+
}}</el-button>
|
|
186
|
+
<el-button v-if="showApprovalTo" type="primary" @click="approvalToV = true">{{ '批准至' | $lc }}</el-button>
|
|
187
|
+
<el-button v-if="authList.includes('rejectTo')" plain @click="rejectToB">{{ '驳回至' | $lc }}</el-button>
|
|
188
|
+
<el-button v-if="authList.includes('reject')" plain @click="rejectFn">{{ '驳回至发起人' | $lc }}</el-button>
|
|
189
|
+
<el-button v-if="authList.includes('rejectPre')" plain @click="rejectPreFn">{{
|
|
190
|
+
'驳回至上一节点' | $lc
|
|
277
191
|
}}</el-button>
|
|
278
|
-
<el-button
|
|
279
|
-
v-if="authList.includes('rejectPre')"
|
|
280
|
-
plain
|
|
281
|
-
@click="rejectPreFn"
|
|
282
|
-
>{{ '驳回至上一节点' | $lc }}</el-button
|
|
283
|
-
>
|
|
284
192
|
|
|
285
|
-
<el-button
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
plain
|
|
289
|
-
@click="discardFn"
|
|
290
|
-
>{{ '作 废' | $lc }}</el-button
|
|
291
|
-
>
|
|
193
|
+
<el-button v-if="authList.includes('discard')" type="danger" plain @click="discardFn">{{
|
|
194
|
+
'作 废' | $lc
|
|
195
|
+
}}</el-button>
|
|
292
196
|
<el-button plain @click="goFrom">{{ '返 回' | $lc }}</el-button>
|
|
293
197
|
</div>
|
|
294
198
|
<!-- 设置抄送用户 -->
|
|
@@ -300,11 +204,7 @@
|
|
|
300
204
|
append-to-body
|
|
301
205
|
top="7.5vh"
|
|
302
206
|
>
|
|
303
|
-
<carboncopy-prop
|
|
304
|
-
:carbon-copy-list="carbonCopyList"
|
|
305
|
-
@close="setCarboncopyV = false"
|
|
306
|
-
@confirm="setCarboncopyOk"
|
|
307
|
-
/>
|
|
207
|
+
<carboncopy-prop :carbon-copy-list="carbonCopyList" @close="setCarboncopyV = false" @confirm="setCarboncopyOk" />
|
|
308
208
|
</cl-dialog>
|
|
309
209
|
<!-- 设置加签用户 -->
|
|
310
210
|
<cl-dialog
|
|
@@ -323,14 +223,7 @@
|
|
|
323
223
|
/>
|
|
324
224
|
</cl-dialog>
|
|
325
225
|
<!-- 驳回至节点 -->
|
|
326
|
-
<cl-dialog
|
|
327
|
-
v-drag
|
|
328
|
-
:visible.sync="rejectToV"
|
|
329
|
-
:title="'驳回至节点' | $lc"
|
|
330
|
-
width="960px"
|
|
331
|
-
append-to-body
|
|
332
|
-
top="7.5vh"
|
|
333
|
-
>
|
|
226
|
+
<cl-dialog v-drag :visible.sync="rejectToV" :title="'驳回至节点' | $lc" width="960px" append-to-body top="7.5vh">
|
|
334
227
|
<reject-to-prop
|
|
335
228
|
:task-id="taskId"
|
|
336
229
|
:show-retrace-flow="isShowRetrace"
|
|
@@ -339,20 +232,8 @@
|
|
|
339
232
|
/>
|
|
340
233
|
</cl-dialog>
|
|
341
234
|
<!-- 批准至节点 -->
|
|
342
|
-
<cl-dialog
|
|
343
|
-
|
|
344
|
-
:visible.sync="approvalToV"
|
|
345
|
-
:title="'批准至节点' | $lc"
|
|
346
|
-
width="960px"
|
|
347
|
-
append-to-body
|
|
348
|
-
top="7.5vh"
|
|
349
|
-
>
|
|
350
|
-
<reject-to-prop
|
|
351
|
-
:task-id="taskId"
|
|
352
|
-
type="approvalTo"
|
|
353
|
-
@close="approvalToV = false"
|
|
354
|
-
@confirm="approvalToFn"
|
|
355
|
-
/>
|
|
235
|
+
<cl-dialog v-drag :visible.sync="approvalToV" :title="'批准至节点' | $lc" width="960px" append-to-body top="7.5vh">
|
|
236
|
+
<reject-to-prop :task-id="taskId" type="approvalTo" @close="approvalToV = false" @confirm="approvalToFn" />
|
|
356
237
|
</cl-dialog>
|
|
357
238
|
<!-- 驳回发起人是否重走流程 -->
|
|
358
239
|
<cl-dialog
|
|
@@ -367,79 +248,36 @@
|
|
|
367
248
|
<el-radio label="0">{{ '重走流程' | $lc }}</el-radio>
|
|
368
249
|
<el-radio label="1"
|
|
369
250
|
>{{ '不重走流程' | $lc }}
|
|
370
|
-
<i
|
|
371
|
-
v-title="tips"
|
|
372
|
-
class="n20-icon-xinxitishi"
|
|
373
|
-
style="color: var(--color-warning)"
|
|
374
|
-
></i
|
|
251
|
+
<i v-title="tips" class="n20-icon-xinxitishi" style="color: var(--color-warning)"></i
|
|
375
252
|
></el-radio>
|
|
376
253
|
</el-radio-group>
|
|
377
254
|
<div slot="footer">
|
|
378
|
-
<el-button type="primary" @click="handleIsJumpSave">{{
|
|
379
|
-
|
|
380
|
-
}}</el-button>
|
|
381
|
-
<el-button @click="showFlowDialog = false">{{
|
|
382
|
-
'取消' | $lc
|
|
383
|
-
}}</el-button>
|
|
255
|
+
<el-button type="primary" @click="handleIsJumpSave">{{ '确定' | $lc }}</el-button>
|
|
256
|
+
<el-button @click="showFlowDialog = false">{{ '取消' | $lc }}</el-button>
|
|
384
257
|
</div>
|
|
385
258
|
</cl-dialog>
|
|
386
259
|
<!-- 校验结果 -->
|
|
387
|
-
<cl-dialog
|
|
388
|
-
v-drag
|
|
389
|
-
:visible.sync="verifyV"
|
|
390
|
-
:title="'校验结果' | $lc"
|
|
391
|
-
width="960px"
|
|
392
|
-
append-to-body
|
|
393
|
-
top="7.5vh"
|
|
394
|
-
>
|
|
260
|
+
<cl-dialog v-drag :visible.sync="verifyV" :title="'校验结果' | $lc" width="960px" append-to-body top="7.5vh">
|
|
395
261
|
<div class="m-t m-b">
|
|
396
262
|
<span class="m-r-ss">{{ '结果统计:' | $lc }}</span>
|
|
397
263
|
{{ '共计校验' | $lc }}<span>{{ verifyMsg.checkSum }}</span
|
|
398
|
-
>{{ '条,其中通过' | $lc
|
|
399
|
-
}}<span class="color-
|
|
400
|
-
verifyMsg.checkSum - verifyMsg.errorCount
|
|
401
|
-
}}</span
|
|
402
|
-
>{{ '条,未通过' | $lc
|
|
403
|
-
}}<span class="color-danger">{{ verifyMsg.errorCount }}</span
|
|
264
|
+
>{{ '条,其中通过' | $lc }}<span class="color-success">{{ verifyMsg.checkSum - verifyMsg.errorCount }}</span
|
|
265
|
+
>{{ '条,未通过' | $lc }}<span class="color-danger">{{ verifyMsg.errorCount }}</span
|
|
404
266
|
>{{ '条,未通过详情如下:' | $lc }}
|
|
405
267
|
</div>
|
|
406
268
|
<el-table :data="verifyMsg.checkFlowVoList" border max-height="400">
|
|
407
|
-
<el-table-column
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
align="center"
|
|
411
|
-
width="50"
|
|
412
|
-
/>
|
|
413
|
-
<el-table-column
|
|
414
|
-
prop="businessId"
|
|
415
|
-
:label="'业务流水号' | $lc"
|
|
416
|
-
align="center"
|
|
417
|
-
width="120"
|
|
418
|
-
/>
|
|
419
|
-
<el-table-column
|
|
420
|
-
prop="typeName"
|
|
421
|
-
:label="'交易类型' | $lc"
|
|
422
|
-
align="center"
|
|
423
|
-
width="120"
|
|
424
|
-
>
|
|
269
|
+
<el-table-column type="index" :label="'序号' | $lc" align="center" width="50" />
|
|
270
|
+
<el-table-column prop="businessId" :label="'业务流水号' | $lc" align="center" width="120" />
|
|
271
|
+
<el-table-column prop="typeName" :label="'交易类型' | $lc" align="center" width="120">
|
|
425
272
|
<template slot-scope="{ row }">
|
|
426
273
|
{{ row.typeName }}
|
|
427
274
|
</template>
|
|
428
275
|
</el-table-column>
|
|
429
|
-
<el-table-column
|
|
430
|
-
prop="status"
|
|
431
|
-
:label="'校验状态' | $lc"
|
|
432
|
-
align="center"
|
|
433
|
-
width="120"
|
|
434
|
-
>
|
|
276
|
+
<el-table-column prop="status" :label="'校验状态' | $lc" align="center" width="120">
|
|
435
277
|
<template slot-scope="{ row }">
|
|
436
278
|
<div
|
|
437
279
|
:class="
|
|
438
|
-
row.status === 'PASS'
|
|
439
|
-
? 'color-success'
|
|
440
|
-
: row.status === 'PROMPT'
|
|
441
|
-
? 'color-warning'
|
|
442
|
-
: 'color-danger'
|
|
280
|
+
row.status === 'PASS' ? 'color-success' : row.status === 'PROMPT' ? 'color-warning' : 'color-danger'
|
|
443
281
|
"
|
|
444
282
|
>
|
|
445
283
|
{{ row.statusName }}
|
|
@@ -450,22 +288,14 @@
|
|
|
450
288
|
</el-table>
|
|
451
289
|
<span slot="footer">
|
|
452
290
|
<div v-if="promptType === '1'">
|
|
453
|
-
<el-button type="primary" @click="onContinue">{{
|
|
454
|
-
$l('继续审批')
|
|
455
|
-
}}</el-button>
|
|
291
|
+
<el-button type="primary" @click="onContinue">{{ $l('继续审批') }}</el-button>
|
|
456
292
|
<el-button plain @click="onceCancelFn">{{ $l('取消') }}</el-button>
|
|
457
293
|
<div class="m-t-s color-danger f-s-s">
|
|
458
|
-
{{
|
|
459
|
-
$l(
|
|
460
|
-
'*点击【继续审批】将提交校验通过和待确认数据,未通过数据需要到待审核详情页处理。'
|
|
461
|
-
)
|
|
462
|
-
}}
|
|
294
|
+
{{ $l('*点击【继续审批】将提交校验通过和待确认数据,未通过数据需要到待审核详情页处理。') }}
|
|
463
295
|
</div>
|
|
464
296
|
</div>
|
|
465
297
|
<div v-if="promptType === '2'">
|
|
466
|
-
<el-button v-if="!!successNum" type="primary" @click="onContinue">{{
|
|
467
|
-
$l('继续审批')
|
|
468
|
-
}}</el-button>
|
|
298
|
+
<el-button v-if="!!successNum" type="primary" @click="onContinue">{{ $l('继续审批') }}</el-button>
|
|
469
299
|
<el-button plain @click="onceCancelFn">{{ $l('取消') }}</el-button>
|
|
470
300
|
</div>
|
|
471
301
|
</span>
|
|
@@ -493,8 +323,7 @@ const prefixCls = 'n20-approval-Button'
|
|
|
493
323
|
// window._approvalExtend = { 'addtask.chdUserInfo.extend': {}, 'appOpi.queryAppOpiAndUser.exist': undefined, 'card.countermand.suggestion': false }
|
|
494
324
|
if (!window._approvalExtend) window._approvalExtend = {}
|
|
495
325
|
if (!window._approvalExtend['addtask.chdUserInfo.extend']) {
|
|
496
|
-
window._approvalExtend['addtask.chdUserInfo.extend'] =
|
|
497
|
-
window._isAddtask_get_userlist_extend_data_ || {}
|
|
326
|
+
window._approvalExtend['addtask.chdUserInfo.extend'] = window._isAddtask_get_userlist_extend_data_ || {}
|
|
498
327
|
}
|
|
499
328
|
|
|
500
329
|
export default {
|
|
@@ -649,9 +478,7 @@ export default {
|
|
|
649
478
|
}
|
|
650
479
|
},
|
|
651
480
|
tips() {
|
|
652
|
-
return $lc(
|
|
653
|
-
`此模式下被回退节点提交后将绕过中间已办节点,造成流程不严谨,谨慎使用!`
|
|
654
|
-
)
|
|
481
|
+
return $lc(`此模式下被回退节点提交后将绕过中间已办节点,造成流程不严谨,谨慎使用!`)
|
|
655
482
|
}
|
|
656
483
|
},
|
|
657
484
|
created() {
|
|
@@ -698,15 +525,13 @@ export default {
|
|
|
698
525
|
getTodoList() {
|
|
699
526
|
return new Promise((resolve, reject) => {
|
|
700
527
|
const dto = JSON.parse(sessionStorage.getItem(`approvalDto`))
|
|
701
|
-
axios
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}
|
|
709
|
-
})
|
|
528
|
+
axios.post('/bems/activiti/admin/todo/todo', dto).then(({ data, code }) => {
|
|
529
|
+
if (code === 200) {
|
|
530
|
+
const { list } = data
|
|
531
|
+
this.todoList = list || []
|
|
532
|
+
resolve({ data, code })
|
|
533
|
+
}
|
|
534
|
+
})
|
|
710
535
|
})
|
|
711
536
|
},
|
|
712
537
|
// 获取加签方式的模式
|
|
@@ -756,30 +581,16 @@ export default {
|
|
|
756
581
|
} else {
|
|
757
582
|
this.authList = this.btnList
|
|
758
583
|
}
|
|
759
|
-
if (
|
|
760
|
-
!(
|
|
761
|
-
this.authList.includes('isAddtask') ||
|
|
762
|
-
this.authList.includes('isAddForwardTask')
|
|
763
|
-
)
|
|
764
|
-
) {
|
|
584
|
+
if (!(this.authList.includes('isAddtask') || this.authList.includes('isAddForwardTask'))) {
|
|
765
585
|
this.getHasPreAddTask()
|
|
766
586
|
}
|
|
767
|
-
if (
|
|
768
|
-
this.authList.includes('isAddtask') ||
|
|
769
|
-
this.authList.includes('isAddForwardTask') ||
|
|
770
|
-
this.preAddTask
|
|
771
|
-
) {
|
|
587
|
+
if (this.authList.includes('isAddtask') || this.authList.includes('isAddForwardTask') || this.preAddTask) {
|
|
772
588
|
this.getMdmDataDoc()
|
|
773
589
|
}
|
|
774
590
|
})
|
|
775
591
|
.catch(() => {
|
|
776
592
|
this.authList = this.btnList
|
|
777
|
-
if (
|
|
778
|
-
!(
|
|
779
|
-
this.authList.includes('isAddtask') ||
|
|
780
|
-
this.authList.includes('isAddForwardTask')
|
|
781
|
-
)
|
|
782
|
-
) {
|
|
593
|
+
if (!(this.authList.includes('isAddtask') || this.authList.includes('isAddForwardTask'))) {
|
|
783
594
|
this.getHasPreAddTask()
|
|
784
595
|
}
|
|
785
596
|
})
|
|
@@ -788,13 +599,9 @@ export default {
|
|
|
788
599
|
getShowApprovalTo() {
|
|
789
600
|
if (this.showBtn && this.$route.query.state === '2') {
|
|
790
601
|
axios
|
|
791
|
-
.get(
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
{
|
|
795
|
-
noMsg: true
|
|
796
|
-
}
|
|
797
|
-
)
|
|
602
|
+
.get(`/bems/activiti/sample/getTaskMoveVos/${this.$route.query.taskId}/1`, null, {
|
|
603
|
+
noMsg: true
|
|
604
|
+
})
|
|
798
605
|
.then(() => {
|
|
799
606
|
this.showApprovalTo = true
|
|
800
607
|
})
|
|
@@ -802,19 +609,14 @@ export default {
|
|
|
802
609
|
},
|
|
803
610
|
// 刺探是否具有向前加签功能
|
|
804
611
|
getHasPreAddTask() {
|
|
805
|
-
if (
|
|
806
|
-
this.showBtn &&
|
|
807
|
-
window._approvalExtend['appOpi.addTaskWay.exist'] === undefined
|
|
808
|
-
) {
|
|
612
|
+
if (this.showBtn && window._approvalExtend['appOpi.addTaskWay.exist'] === undefined) {
|
|
809
613
|
axios
|
|
810
614
|
.get('/bems/activiti/online/addTaskWay', null, {
|
|
811
615
|
loading: false,
|
|
812
616
|
noMsg: true
|
|
813
617
|
})
|
|
814
618
|
.then(() => {
|
|
815
|
-
this.preAddTask = window._approvalExtend[
|
|
816
|
-
'appOpi.addTaskWay.exist'
|
|
817
|
-
] = true
|
|
619
|
+
this.preAddTask = window._approvalExtend['appOpi.addTaskWay.exist'] = true
|
|
818
620
|
})
|
|
819
621
|
.catch(() => {
|
|
820
622
|
window._approvalExtend['appOpi.addTaskWay.exist'] = false
|
|
@@ -825,26 +627,20 @@ export default {
|
|
|
825
627
|
},
|
|
826
628
|
// 刺探审批意见接口是否存在
|
|
827
629
|
getHasQueryAppOpiAndUser() {
|
|
828
|
-
if (
|
|
829
|
-
this.showBtn &&
|
|
830
|
-
window._approvalExtend['appOpi.queryAppOpiAndUser.exist'] === undefined
|
|
831
|
-
) {
|
|
630
|
+
if (this.showBtn && window._approvalExtend['appOpi.queryAppOpiAndUser.exist'] === undefined) {
|
|
832
631
|
axios
|
|
833
632
|
.post('/bems/activiti/actAppOpi/queryAppOpiAndUser', null, {
|
|
834
633
|
loading: false,
|
|
835
634
|
noMsg: true
|
|
836
635
|
})
|
|
837
636
|
.then(() => {
|
|
838
|
-
this.opiAndUser = window._approvalExtend[
|
|
839
|
-
'appOpi.queryAppOpiAndUser.exist'
|
|
840
|
-
] = true
|
|
637
|
+
this.opiAndUser = window._approvalExtend['appOpi.queryAppOpiAndUser.exist'] = true
|
|
841
638
|
})
|
|
842
639
|
.catch(() => {
|
|
843
640
|
window._approvalExtend['appOpi.queryAppOpiAndUser.exist'] = false
|
|
844
641
|
})
|
|
845
642
|
} else {
|
|
846
|
-
this.opiAndUser =
|
|
847
|
-
window._approvalExtend['appOpi.queryAppOpiAndUser.exist']
|
|
643
|
+
this.opiAndUser = window._approvalExtend['appOpi.queryAppOpiAndUser.exist']
|
|
848
644
|
}
|
|
849
645
|
},
|
|
850
646
|
// 获取提交参数
|
|
@@ -953,30 +749,24 @@ export default {
|
|
|
953
749
|
// 驳回
|
|
954
750
|
async rejectFn() {
|
|
955
751
|
if (!this.messageC) {
|
|
956
|
-
return this.errMsgFn(
|
|
957
|
-
this.authList.includes('refuse') ? $lc('拒绝') : $lc('驳回')
|
|
958
|
-
)
|
|
752
|
+
return this.errMsgFn(this.authList.includes('refuse') ? $lc('拒绝') : $lc('驳回'))
|
|
959
753
|
}
|
|
960
754
|
this.showFlowDialog = await this.getIsShowRetraceFlow()
|
|
961
755
|
|
|
962
756
|
if (this.showFlowDialog) return
|
|
963
757
|
|
|
964
758
|
this.beforeFn(this.beforeReject, () => {
|
|
965
|
-
axios
|
|
966
|
-
.
|
|
967
|
-
|
|
968
|
-
this.thenMsg(data, $lc('驳回至发起人'))
|
|
969
|
-
})
|
|
759
|
+
axios.post('/bems/activiti/admin/todo/reject', this.getParam()).then(({ data }) => {
|
|
760
|
+
this.thenMsg(data, $lc('驳回至发起人'))
|
|
761
|
+
})
|
|
970
762
|
})
|
|
971
763
|
},
|
|
972
764
|
handleIsJumpSave() {
|
|
973
765
|
this.showFlowDialog = false
|
|
974
766
|
this.beforeFn(this.beforeReject, () => {
|
|
975
|
-
axios
|
|
976
|
-
.
|
|
977
|
-
|
|
978
|
-
this.thenMsg(data, $lc('驳回至发起人'))
|
|
979
|
-
})
|
|
767
|
+
axios.post('/bems/activiti/admin/todo/reject', this.getParam()).then(({ data }) => {
|
|
768
|
+
this.thenMsg(data, $lc('驳回至发起人'))
|
|
769
|
+
})
|
|
980
770
|
})
|
|
981
771
|
},
|
|
982
772
|
async rejectToB() {
|
|
@@ -994,11 +784,9 @@ export default {
|
|
|
994
784
|
item.taskMoveVo = { taskId }
|
|
995
785
|
})
|
|
996
786
|
this.beforeFn(this.beforeRejectPre, () => {
|
|
997
|
-
axios
|
|
998
|
-
.
|
|
999
|
-
|
|
1000
|
-
this.thenMsg(data, $lc('驳回至'))
|
|
1001
|
-
})
|
|
787
|
+
axios.post('/bems/activiti/admin/todo/rejectpre', param).then(({ data }) => {
|
|
788
|
+
this.thenMsg(data, $lc('驳回至'))
|
|
789
|
+
})
|
|
1002
790
|
})
|
|
1003
791
|
},
|
|
1004
792
|
// 驳回到上一步
|
|
@@ -1007,30 +795,25 @@ export default {
|
|
|
1007
795
|
return this.errMsgFn($lc('驳回'))
|
|
1008
796
|
}
|
|
1009
797
|
this.beforeFn(this.beforeRejectPre, () => {
|
|
1010
|
-
axios
|
|
1011
|
-
.
|
|
1012
|
-
|
|
1013
|
-
this.thenMsg(data, $lc('驳回至上一节'))
|
|
1014
|
-
})
|
|
798
|
+
axios.post('/bems/activiti/admin/todo/rejectpre', this.getParam()).then(({ data }) => {
|
|
799
|
+
this.thenMsg(data, $lc('驳回至上一节'))
|
|
800
|
+
})
|
|
1015
801
|
})
|
|
1016
802
|
},
|
|
1017
803
|
onContinue() {
|
|
1018
804
|
this.verifyV = false
|
|
1019
805
|
this.approvalFn()
|
|
1020
806
|
},
|
|
1021
|
-
async checkFlowFn() {
|
|
807
|
+
async checkFlowFn(isTakeOff = undefined) {
|
|
1022
808
|
if (this.requiredC && !this.messageC) {
|
|
1023
809
|
return this.errMsgFn(
|
|
1024
|
-
this.authList.includes('byAddTask') && this.addTaskList.length > 0
|
|
1025
|
-
? $lc('加签')
|
|
1026
|
-
: $lc('批准')
|
|
810
|
+
this.authList.includes('byAddTask') && this.addTaskList.length > 0 ? $lc('加签') : $lc('批准')
|
|
1027
811
|
)
|
|
1028
812
|
}
|
|
1029
813
|
if (this.addTaskList.length > 0 && !this.addTaskType) {
|
|
1030
814
|
return this.addErrFn()
|
|
1031
815
|
}
|
|
1032
|
-
let { isCheck, taskId, appNo, groupNo, typeCode, orderId, isAgentcy } =
|
|
1033
|
-
this.$route.query
|
|
816
|
+
let { isCheck, taskId, appNo, groupNo, typeCode, orderId, isAgentcy } = this.$route.query
|
|
1034
817
|
if (isCheck === '1') {
|
|
1035
818
|
let params = {
|
|
1036
819
|
plainText: '',
|
|
@@ -1038,6 +821,7 @@ export default {
|
|
|
1038
821
|
isCheck,
|
|
1039
822
|
auditAdvanceDtos: [
|
|
1040
823
|
{
|
|
824
|
+
isTakeOff,
|
|
1041
825
|
appNo,
|
|
1042
826
|
taskId,
|
|
1043
827
|
groupNo,
|
|
@@ -1048,10 +832,7 @@ export default {
|
|
|
1048
832
|
}
|
|
1049
833
|
]
|
|
1050
834
|
}
|
|
1051
|
-
const { code, data } = await this.$axios.post(
|
|
1052
|
-
`/bems/activiti/admin/todo/checkFlowNew`,
|
|
1053
|
-
params
|
|
1054
|
-
)
|
|
835
|
+
const { code, data } = await this.$axios.post(`/bems/activiti/admin/todo/checkFlowNew`, params)
|
|
1055
836
|
if (code === 200) {
|
|
1056
837
|
this.promptType = data.promptType
|
|
1057
838
|
switch (data.promptType) {
|
|
@@ -1079,9 +860,7 @@ export default {
|
|
|
1079
860
|
approvalFn() {
|
|
1080
861
|
if (this.requiredC && !this.messageC) {
|
|
1081
862
|
return this.errMsgFn(
|
|
1082
|
-
this.authList.includes('byAddTask') && this.addTaskList.length > 0
|
|
1083
|
-
? $lc('加签')
|
|
1084
|
-
: $lc('批准')
|
|
863
|
+
this.authList.includes('byAddTask') && this.addTaskList.length > 0 ? $lc('加签') : $lc('批准')
|
|
1085
864
|
)
|
|
1086
865
|
}
|
|
1087
866
|
if (this.addTaskList.length > 0 && !this.addTaskType) {
|
|
@@ -1089,24 +868,18 @@ export default {
|
|
|
1089
868
|
}
|
|
1090
869
|
|
|
1091
870
|
this.beforeFn(this.beforeRatify, () => {
|
|
1092
|
-
axios
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
this.
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
? $lc('加签')
|
|
1099
|
-
: $lc('批准')
|
|
1100
|
-
)
|
|
1101
|
-
})
|
|
871
|
+
axios.post('/bems/activiti/admin/todo/advance', this.getParam()).then(({ data }) => {
|
|
872
|
+
this.thenMsg(
|
|
873
|
+
data,
|
|
874
|
+
this.authList.includes('byAddTask') && this.addTaskList.length > 0 ? $lc('加签') : $lc('批准')
|
|
875
|
+
)
|
|
876
|
+
})
|
|
1102
877
|
})
|
|
1103
878
|
},
|
|
1104
879
|
approvalNext() {
|
|
1105
880
|
if (this.requiredC && !this.messageC) {
|
|
1106
881
|
return this.errMsgFn(
|
|
1107
|
-
this.authList.includes('byAddTask') && this.addTaskList.length > 0
|
|
1108
|
-
? $lc('加签')
|
|
1109
|
-
: $lc('批准')
|
|
882
|
+
this.authList.includes('byAddTask') && this.addTaskList.length > 0 ? $lc('加签') : $lc('批准')
|
|
1110
883
|
)
|
|
1111
884
|
}
|
|
1112
885
|
if (this.addTaskList.length > 0 && !this.addTaskType) {
|
|
@@ -1114,44 +887,36 @@ export default {
|
|
|
1114
887
|
}
|
|
1115
888
|
|
|
1116
889
|
this.beforeFn(this.beforeRatify, () => {
|
|
1117
|
-
axios
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
failList.forEach((f = {}) => {
|
|
1125
|
-
Object.assign(_failList, f)
|
|
1126
|
-
})
|
|
1127
|
-
failList = _failList
|
|
1128
|
-
}
|
|
1129
|
-
let errArr = Object.values(failList)
|
|
1130
|
-
if (errArr.length > 0) {
|
|
1131
|
-
this.$message.error(errArr.join('、'))
|
|
1132
|
-
} else {
|
|
1133
|
-
this.$message.error($lc('审批失败'))
|
|
1134
|
-
}
|
|
1135
|
-
} else {
|
|
1136
|
-
this.$message.success($lc('审批成功'))
|
|
1137
|
-
closeTagsForBackPage()
|
|
1138
|
-
this.getTodoList().finally(() => {
|
|
1139
|
-
this.goApproval(this.todoList[0])
|
|
890
|
+
axios.post('/bems/activiti/admin/todo/advance', this.getParam()).then(({ data }) => {
|
|
891
|
+
let { failCount, failList = {} } = data
|
|
892
|
+
if (failCount > 0) {
|
|
893
|
+
if (Array.isArray(failList)) {
|
|
894
|
+
let _failList = {}
|
|
895
|
+
failList.forEach((f = {}) => {
|
|
896
|
+
Object.assign(_failList, f)
|
|
1140
897
|
})
|
|
898
|
+
failList = _failList
|
|
1141
899
|
}
|
|
1142
|
-
|
|
900
|
+
let errArr = Object.values(failList)
|
|
901
|
+
if (errArr.length > 0) {
|
|
902
|
+
this.$message.error(errArr.join('、'))
|
|
903
|
+
} else {
|
|
904
|
+
this.$message.error($lc('审批失败'))
|
|
905
|
+
}
|
|
906
|
+
} else {
|
|
907
|
+
this.$message.success($lc('审批成功'))
|
|
908
|
+
closeTagsForBackPage()
|
|
909
|
+
this.getTodoList().finally(() => {
|
|
910
|
+
this.goApproval(this.todoList[0])
|
|
911
|
+
})
|
|
912
|
+
}
|
|
913
|
+
})
|
|
1143
914
|
})
|
|
1144
915
|
},
|
|
1145
916
|
async goApproval(row) {
|
|
1146
|
-
const { appUrl = {} } = await getJsonc(
|
|
1147
|
-
'activiti/server-config.jsonc',
|
|
1148
|
-
null,
|
|
1149
|
-
true
|
|
1150
|
-
)
|
|
917
|
+
const { appUrl = {} } = await getJsonc('activiti/server-config.jsonc', null, true)
|
|
1151
918
|
if (appUrl[row.appNo]) {
|
|
1152
|
-
let path =
|
|
1153
|
-
toExaminePath(row, appUrl) ||
|
|
1154
|
-
appUrl[row.appNo] + $lc('/') + row.typeCode
|
|
919
|
+
let path = toExaminePath(row, appUrl) || appUrl[row.appNo] + $lc('/') + row.typeCode
|
|
1155
920
|
linkPush(path, {
|
|
1156
921
|
orderId: row.businessId,
|
|
1157
922
|
taskId: row.taskId,
|
|
@@ -1166,9 +931,7 @@ export default {
|
|
|
1166
931
|
...dCloumn(row)
|
|
1167
932
|
})
|
|
1168
933
|
} else {
|
|
1169
|
-
this.$message.warning(
|
|
1170
|
-
$lc('该业务跳转路径没有配置,请联系工作流相关前端人员配置')
|
|
1171
|
-
)
|
|
934
|
+
this.$message.warning($lc('该业务跳转路径没有配置,请联系工作流相关前端人员配置'))
|
|
1172
935
|
}
|
|
1173
936
|
},
|
|
1174
937
|
approvalToFn(taskId) {
|
|
@@ -1178,11 +941,9 @@ export default {
|
|
|
1178
941
|
item.taskMoveVo = { taskId }
|
|
1179
942
|
})
|
|
1180
943
|
this.beforeFn(this.beforeRatify, () => {
|
|
1181
|
-
axios
|
|
1182
|
-
.
|
|
1183
|
-
|
|
1184
|
-
this.thenMsg(data, $lc('批准至'))
|
|
1185
|
-
})
|
|
944
|
+
axios.post('/bems/activiti/admin/todo/advance', param).then(({ data }) => {
|
|
945
|
+
this.thenMsg(data, $lc('批准至'))
|
|
946
|
+
})
|
|
1186
947
|
})
|
|
1187
948
|
},
|
|
1188
949
|
// 获取数据字典加签备注
|
|
@@ -1201,11 +962,9 @@ export default {
|
|
|
1201
962
|
return this.errMsgFn($lc('作废'))
|
|
1202
963
|
}
|
|
1203
964
|
this.beforeFn(this.beforeDiscard, () => {
|
|
1204
|
-
axios
|
|
1205
|
-
.
|
|
1206
|
-
|
|
1207
|
-
this.thenMsg(data, $lc('作废'))
|
|
1208
|
-
})
|
|
965
|
+
axios.post('/bems/activiti/admin/todo/cancle', this.getParam()).then(({ data }) => {
|
|
966
|
+
this.thenMsg(data, $lc('作废'))
|
|
967
|
+
})
|
|
1209
968
|
})
|
|
1210
969
|
},
|
|
1211
970
|
setCarboncopyOk(list) {
|
|
@@ -24,7 +24,12 @@
|
|
|
24
24
|
class="p-b-lg p-t-lg p-r-lg"
|
|
25
25
|
style="max-height: 150px; overflow-y: auto; border: 1px dashed var(--border-color-base); border-radius: 5px"
|
|
26
26
|
>
|
|
27
|
-
<show-other-att-new
|
|
27
|
+
<show-other-att-new
|
|
28
|
+
ref="showOtherAttNew"
|
|
29
|
+
:form="customizationList"
|
|
30
|
+
:other-att-data-a="otherAttDataA"
|
|
31
|
+
:task-id="processInstanceId || this.$route.query.processInstanceId"
|
|
32
|
+
/>
|
|
28
33
|
</div>
|
|
29
34
|
</el-form>
|
|
30
35
|
</ExpandablePane>
|
|
@@ -42,6 +47,7 @@ import ShowOtherAttNew from '../ApprovalButtons/showOtherAttrNew.vue'
|
|
|
42
47
|
import ExpandablePane from '../Expandable/main.vue'
|
|
43
48
|
export default {
|
|
44
49
|
name: 'HandlingAdvice',
|
|
50
|
+
components: { ShowOtherAttNew, ExpandablePane },
|
|
45
51
|
props: {
|
|
46
52
|
afterGetConf: {
|
|
47
53
|
type: Function,
|
|
@@ -62,9 +68,12 @@ export default {
|
|
|
62
68
|
rows: {
|
|
63
69
|
type: Number,
|
|
64
70
|
default: 5
|
|
71
|
+
},
|
|
72
|
+
processInstanceId: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: ''
|
|
65
75
|
}
|
|
66
76
|
},
|
|
67
|
-
components: { ShowOtherAttNew, ExpandablePane },
|
|
68
77
|
data() {
|
|
69
78
|
return {
|
|
70
79
|
customizationList: {},
|