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.
Files changed (102) hide show
  1. package/build/configure/README.md +171 -0
  2. package/build/configure/package.json +27 -0
  3. package/build/scripts/postinstall.mjs +14 -0
  4. package/build/scripts/switch-cli.mjs +4 -0
  5. package/build/scripts/utils.mjs +60 -0
  6. package/index.html +12 -0
  7. package/package.json +48 -20
  8. package/src/App.vue +151 -0
  9. package/src/assets/font-icon/iconfont.scss +57 -0
  10. package/src/assets/font-icon/iconfont.ttf +0 -0
  11. package/src/assets/img/arrow-right.png +0 -0
  12. package/src/assets/img/arrow.png +0 -0
  13. package/src/assets/img/check.png +0 -0
  14. package/src/assets/js/auth.js +41 -0
  15. package/src/assets/js/errorCode.js +6 -0
  16. package/src/assets/js/message.js +352 -0
  17. package/src/assets/js/request.js +90 -0
  18. package/src/assets/js/toast.js +239 -0
  19. package/src/assets/js/top.js +229 -0
  20. package/src/assets/js/utils.js +82 -0
  21. package/src/assets/js/vuePopper.js +123 -0
  22. package/src/assets/query.png +0 -0
  23. package/src/main.js +15 -0
  24. package/src/packages/attchUpload/index.js +371 -0
  25. package/src/packages/attchUpload/index.scss +136 -0
  26. package/src/packages/attchUpload/index.vue +173 -0
  27. package/src/packages/downSelect/index.js +81 -0
  28. package/src/packages/downSelect/index.scss +82 -0
  29. package/src/packages/downSelect/index.vue +54 -0
  30. package/src/packages/index.js +6 -0
  31. package/src/packages/popup/index.js +61 -0
  32. package/src/packages/popup/index.scss +174 -0
  33. package/src/packages/popup/index.vue +79 -0
  34. package/src/packages/preview/index.js +36 -0
  35. package/src/packages/preview/index.vue +15 -0
  36. package/src/packages/previewImage/index.js +158 -0
  37. package/src/packages/previewImage/index.scss +59 -0
  38. package/src/packages/previewImage/index.vue +32 -0
  39. package/{packages/components/process/src/process.vue → src/packages/process/index.js} +219 -440
  40. package/src/packages/process/index.scss +164 -0
  41. package/src/packages/process/index.vue +189 -0
  42. package/src/packages/process/operation/backNode.vue +393 -0
  43. package/src/packages/process/operation/cancel.vue +399 -0
  44. package/src/packages/process/operation/ccTask.vue +461 -0
  45. package/src/packages/process/operation/complete.vue +488 -0
  46. package/src/packages/process/operation/counterSign.vue +485 -0
  47. package/src/packages/process/operation/delegateTask.vue +480 -0
  48. package/src/packages/process/operation/restart.vue +305 -0
  49. package/src/packages/submitPopup/index.js +296 -0
  50. package/src/packages/submitPopup/index.scss +83 -0
  51. package/src/packages/submitPopup/index.vue +138 -0
  52. package/src/packages/tab/index.js +207 -0
  53. package/src/packages/tab/index.scss +176 -0
  54. package/src/packages/tab/index.vue +155 -0
  55. package/src/packages/tip/index.js +74 -0
  56. package/src/packages/tip/index.scss +82 -0
  57. package/src/packages/tip/index.vue +57 -0
  58. package/src/packages/viewAttchList/index.js +132 -0
  59. package/src/packages/viewAttchList/index.scss +76 -0
  60. package/src/packages/viewAttchList/index.vue +112 -0
  61. package/src/style.css +80 -0
  62. package/ui-process-h5/README.md +171 -0
  63. package/ui-process-h5/package.json +27 -0
  64. package/ui-process-h5/scripts/postinstall.mjs +14 -0
  65. package/ui-process-h5/scripts/switch-cli.mjs +4 -0
  66. package/ui-process-h5/scripts/utils.mjs +60 -0
  67. package/ui-process-h5/v2/style.css +1 -0
  68. package/ui-process-h5/v2/ui-process-h5.js +13467 -0
  69. package/ui-process-h5/v2/ui-process-h5.umd.cjs +67 -0
  70. package/ui-process-h5/v2.7/style.css +1 -0
  71. package/ui-process-h5/v2.7/ui-process-h5.js +12844 -0
  72. package/ui-process-h5/v2.7/ui-process-h5.umd.cjs +67 -0
  73. package/ui-process-h5/v3/style.css +1 -0
  74. package/ui-process-h5/v3/ui-process-h5.js +10336 -0
  75. package/ui-process-h5/v3/ui-process-h5.umd.cjs +55 -0
  76. package/vite.config.ts +78 -0
  77. package/packages/components/approval/index.js +0 -0
  78. package/packages/components/process/index.js +0 -8
  79. package/packages/components/process/src/attchlist-upload.vue +0 -585
  80. package/packages/components/process/src/operation/backNode.vue +0 -141
  81. package/packages/components/process/src/operation/cancel.vue +0 -170
  82. package/packages/components/process/src/operation/ccTask.vue +0 -170
  83. package/packages/components/process/src/operation/complete.vue +0 -224
  84. package/packages/components/process/src/operation/counterSign.vue +0 -178
  85. package/packages/components/process/src/operation/delegateTask.vue +0 -168
  86. package/packages/components/process/src/operation/restart.vue +0 -172
  87. package/packages/components/process/src/popup.vue +0 -230
  88. package/packages/components/process/src/tab.vue +0 -459
  89. package/packages/components/process/src/tip.vue +0 -207
  90. package/packages/index.js +0 -4
  91. /package/{packages/components/process/theme → src/assets}/img/add-file.png +0 -0
  92. /package/{packages/components/process/theme → src/assets}/img/del.png +0 -0
  93. /package/{packages/components/process/theme → src/assets}/img/doc.png +0 -0
  94. /package/{packages/components/process/theme → src/assets}/img/file.png +0 -0
  95. /package/{packages/components/process/theme → src/assets}/img/image.png +0 -0
  96. /package/{packages/components/process/theme → src/assets}/img/pdf.png +0 -0
  97. /package/{packages/components/process/theme → src/assets}/img/xls.png +0 -0
  98. /package/{packages/components/process/theme → src/assets}/img/zip.png +0 -0
  99. /package/{packages/components/process/theme → src/assets}/status/error.png +0 -0
  100. /package/{packages/components/process/theme → src/assets}/status/loading.png +0 -0
  101. /package/{packages/components/process/theme → src/assets}/status/success.png +0 -0
  102. /package/{packages/components/process/src → src/packages/process}/operation/index.js +0 -0
@@ -0,0 +1,485 @@
1
+ <template>
2
+ <div class="process-popup-content">
3
+ <div class="process-pc-label">
4
+ 加签理由:<span class="process-pc-label--re">*</span>
5
+ </div>
6
+ <div class="process-pc-value">
7
+ <div class="process-popup-textarea">
8
+ <textarea
9
+ v-model="commentMsg"
10
+ class="textarea-item"
11
+ name="description"
12
+ cols="40"
13
+ placeholder="请输入审批意见(200字以内)"
14
+ maxlength="200"
15
+ ></textarea>
16
+ </div>
17
+ </div>
18
+
19
+ <template
20
+ v-if="
21
+ taskNode && taskNode.length > 0 && taskNode[0].taskState != 11
22
+ "
23
+ >
24
+ <template v-if="nextNodeData.length">
25
+ <template v-for="item in nextNodeData">
26
+ <template
27
+ v-if="
28
+ item.type != 'endEvent' &&
29
+ isOption(
30
+ item?.userTaskModelDTO?.humanPerformer?.name
31
+ )
32
+ "
33
+ >
34
+ <div class="process-pc-label">
35
+ {{ item.userTaskModelDTO.name }}
36
+ <br />
37
+ 审批人:
38
+ </div>
39
+ <div
40
+ class="process-pc-value"
41
+ @click="handleOpenPopup(item.id)"
42
+ >
43
+ <div class="process-pc-value--people">
44
+ <div
45
+ class="process-pc-value--data"
46
+ v-if="
47
+ partNode[item.id] &&
48
+ partNode[item.id].length
49
+ "
50
+ >
51
+ <span v-for="(v, i) in partNode[item.id]">
52
+ {{ i == 0 ? v : `,${v}` }}
53
+ </span>
54
+ </div>
55
+ <div
56
+ v-else
57
+ class="process-pc-value--data"
58
+ style="color: #888;"
59
+ >
60
+ <span>
61
+ 请选择审批人
62
+ </span>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </template>
67
+ </template>
68
+ </template>
69
+
70
+ <template v-else-if="outGatewayUserTaskModel.length">
71
+ <template v-for="item in outGatewayUserTaskModel">
72
+ <template
73
+ v-if="
74
+ item.type != 'endEvent' &&
75
+ isOption(item.humanPerformerName)
76
+ "
77
+ >
78
+ <div class="process-pc-label">
79
+ {{ item.name }}
80
+ <br />
81
+ 审批人
82
+ <span class="process-pc-label--re">*</span>
83
+ </div>
84
+ <div
85
+ class="process-pc-value"
86
+ @click="handleOpenPopup(item.id)"
87
+ >
88
+ <div class="process-pc-value--people">
89
+ <div
90
+ class="process-pc-value--data"
91
+ v-if="
92
+ partNode[item.id] &&
93
+ partNode[item.id].length
94
+ "
95
+ >
96
+ <span v-for="(v, i) in partNode[item.id]">
97
+ {{ i == 0 ? v : `,${v}` }}
98
+ </span>
99
+ </div>
100
+ <div
101
+ v-else
102
+ class="process-pc-value--data"
103
+ style="color: #888;"
104
+ >
105
+ <span>
106
+ 请选择审批人
107
+ </span>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ </template>
112
+ </template>
113
+ </template>
114
+ </template>
115
+ <TopTips
116
+ ref="topTips"
117
+ :text="textTips"
118
+ :statusTips="statusTips"
119
+ :type="typeTips"
120
+ />
121
+ <TopPopup
122
+ v-bind:visible="visible"
123
+ v-on:update:visible="(val) => (visible = val)"
124
+ ref="TopPopup"
125
+ titleText="选人"
126
+ :isDrawer="true"
127
+ >
128
+ <departPerson
129
+ :visible.sync="visible"
130
+ :request="param.request"
131
+ :businessId="param.formData.businessKey"
132
+ v-bind="entity"
133
+ @callback="handleCallback"
134
+ @cancel="handleCancel"
135
+ >
136
+ </departPerson>
137
+ <!-- 初始测试啊啊啊啊啊啊 -->
138
+ </TopPopup>
139
+
140
+ <attchViews
141
+ v-if="labels == '5'"
142
+ :limit="limit ? limit : -1"
143
+ :requires="requires"
144
+ :request="param.request"
145
+ :linkUrl="param.linkUrl"
146
+ @getValue="getValues"
147
+ />
148
+ </div>
149
+ </template>
150
+ <script>
151
+ import TopTips from "../../tip/index.vue";
152
+ import attchViews from "../../attchUpload/index.vue";
153
+ import TopPopup from "../../popup/index.vue";
154
+ import { departPerson } from "checked-pick-app";
155
+ export default {
156
+ name: "counterSign",
157
+ props: {
158
+ param: {
159
+ type: Object,
160
+ defalut: () => {},
161
+ },
162
+ },
163
+ components: {
164
+ TopTips,
165
+ attchViews,
166
+ TopPopup,
167
+ departPerson,
168
+ },
169
+ data() {
170
+ return {
171
+ commentMsg: "",
172
+ style: {
173
+ color: "#333",
174
+ disableColor: "#F7F6F6",
175
+ },
176
+ textTips: "",
177
+ statusTips: false,
178
+ typeTips: "success",
179
+ // annex 附件属性
180
+ limit: "",
181
+ requires: "",
182
+ labels: "",
183
+ otherList: "",
184
+ attchLists: [],
185
+ // next
186
+ nextNodeData: [],
187
+ taskNode: [],
188
+
189
+ outGatewayUserTaskModel: [],
190
+ formData: {},
191
+
192
+ // 选人组件
193
+ visible: false,
194
+ entity: {
195
+ source: "0",
196
+ type: "0",
197
+ request: this.param.request, //'http://59.53.91.231:2100' 0002
198
+ businessId: this.param.businessKey,
199
+ codeType: [3], // 可选类型 1-主体 2-部门 3-人员
200
+ multiple: true, // 是否多选
201
+ },
202
+ /* {
203
+ source: "0",
204
+ type: "0",
205
+ request: this.param.request, //'http://59.53.91.231:2100' 0002
206
+ businessId: "6a9aaf5742572e82b5d89d6f7e52e2f2",
207
+ codeType: [3], // 可选类型 1-主体 2-部门 3-人员
208
+ multiple: true, // 是否多选
209
+ } */
210
+ // 存储选人信息
211
+ multiNodeParticipant: {},
212
+ // 当前评估对象
213
+ partObjId: [],
214
+ // 选中人员信息
215
+ partNode: {},
216
+ };
217
+ },
218
+ watch: {
219
+ param: {
220
+ handler(val, preVal) {
221
+ this.nextNodeData = val.nextNodeData;
222
+ this.taskNode = val.taskNode;
223
+ this.outGatewayUserTaskModel = val.outGatewayUserTaskModel;
224
+ if (val.nextNodeData.length) {
225
+ console.log("handler::::", this.nextNodeData[0]);
226
+ if (
227
+ this.nextNodeData[0].type == "userTask" ||
228
+ this.nextNodeData[0].type == "UserTaskModel"
229
+ ) {
230
+ this.entity.multiple = true;
231
+ this.entity.codeType = [3];
232
+ this.entity.source = "1";
233
+ } else if (
234
+ this.nextNodeData[0].type == "ExclusiveGatewayModel"
235
+ ) {
236
+ } else if (
237
+ this.nextNodeData[0].type == "InclusiveGatewayModel"
238
+ ) {
239
+ }
240
+ } else if (val.outGatewayUserTaskModel.length) {
241
+ if (val.outGatewayUserTaskModel[0].type == "userTask") {
242
+ this.entity.multiple = true;
243
+ this.entity.codeType = [3];
244
+ this.entity.source = "1";
245
+ } else if (
246
+ val.outGatewayUserTaskModel[0].type ==
247
+ "ExclusiveGatewayModel"
248
+ ) {
249
+ } else if (
250
+ val.outGatewayUserTaskModel[0].type ==
251
+ "InclusiveGatewayModel"
252
+ ) {
253
+ } else if (
254
+ val.outGatewayUserTaskModel[0].type == "UserTaskModel"
255
+ ) {
256
+ this.entity.multiple = true;
257
+ this.entity.codeType = [3];
258
+ this.entity.source = "1";
259
+ }
260
+ }
261
+ },
262
+ immediate: true,
263
+ deep: true,
264
+ },
265
+ },
266
+ created() {
267
+ console.log("isVue2", this.param);
268
+ this.makeDelegateTaskButtonAnnex();
269
+ },
270
+ methods: {
271
+ handleOpenPopup(id) {
272
+ this.visible = true;
273
+ this.partObjId = id;
274
+ },
275
+ confirm() {
276
+ if (!this.commentMsg) {
277
+ this.textTips = "请输入加签理由!";
278
+ this.$refs.topTips.handleOpen();
279
+ return false;
280
+ }
281
+ let arr = "";
282
+ this.multiNodeParticipant[this.partObjId].map((v, i) => {
283
+ if (i == 0) {
284
+ arr = v;
285
+ } else {
286
+ arr = `${arr} ${v}`;
287
+ }
288
+ });
289
+ this.handleTips("", true, "loading");
290
+ this.param.request
291
+ .post("/aws/tis/createDynamicTask", {
292
+ title:
293
+ this.param.formData.title ||
294
+ this.param.formData.reason ||
295
+ this.param.formData.meetingTheme,
296
+ participant: arr,
297
+ processInstId: this.param.processInstId,
298
+ adHocType: 2,
299
+ parentTaskInstId: this.param.taskInstId,
300
+ reason: this.commentMsg,
301
+ })
302
+ .then((res) => {
303
+ if (res.code == 200) {
304
+ this.$emit("handleClosePopup1");
305
+ this.handleTips("提交成功!", false, "success");
306
+ this.commentMsg = "";
307
+ } else {
308
+ this.handleTips(res.msg, true, "error");
309
+ }
310
+ });
311
+ },
312
+ makeDelegateTaskButtonAnnex() {
313
+ if (this.param.annex && this.param.annex.length) {
314
+ this.otherList = this.param.annex;
315
+ let str = this.otherList.split(";");
316
+ this.limit = str[2];
317
+ this.requires = JSON.parse(str[1]);
318
+ this.labels = str[0];
319
+ console.log(
320
+ "makeDelegateTaskButtonAnnex",
321
+ this.otherList,
322
+ this.limit,
323
+ this.requires,
324
+ this.labels
325
+ );
326
+ }
327
+ },
328
+
329
+ handleCallback(res) {
330
+ this.multiNodeParticipant[this.partObjId] = [];
331
+ this.partNode[this.partObjId] = [];
332
+ res.map((v, i) => {
333
+ this.multiNodeParticipant[this.partObjId].push(v.uid);
334
+ this.partNode[this.partObjId].push(v.name);
335
+ });
336
+ console.log("callback_OK", res, this.multiNodeParticipant);
337
+ },
338
+ handleCancel() {
339
+ console.log("cancel_No");
340
+ },
341
+
342
+ getValues(data) {
343
+ console.log("获取当前附件信息::::", data);
344
+ this.attchLists = data;
345
+ },
346
+
347
+ async uploadAttch() {
348
+ if (this.attchLists.length > 0) {
349
+ this.attchLists.map((v, i) => {
350
+ v.size = v.fileSize;
351
+ v.format = v.originFileName.substring(
352
+ v.originFileName.lastIndexOf(".") + 1
353
+ );
354
+ v.uploadTime = v.createTime;
355
+ v.processInstId = this.param.processInstId;
356
+ v.taskInstId = this.param.taskInstId;
357
+ v.name = v.originFileName;
358
+ });
359
+
360
+ let param = this.attchLists;
361
+ const ress = await this.param.request.post(
362
+ "/aws/meta/annex/patchSave",
363
+ {
364
+ saveMetaAnnexCmdList: param,
365
+ }
366
+ );
367
+ console.log("asd", ress);
368
+ if (ress.success) {
369
+ this.$emit("handleClosePopup1");
370
+ this.handleTips("提交成功!", false, "success");
371
+ this.handleFinal()
372
+ this.commentMsg = "";
373
+ } else {
374
+ this.handleTips("上传失败", true, "error");
375
+ }
376
+ }
377
+ },
378
+
379
+ isOption(humanPerformer) {
380
+ return (
381
+ humanPerformer == "任意指定" ||
382
+ humanPerformer == "固定部门" ||
383
+ humanPerformer == "固定单位" ||
384
+ humanPerformer == "与流程申请人所在组织结构的位置相关" ||
385
+ humanPerformer == "固定群组"
386
+ );
387
+ },
388
+
389
+ handleTips(text, status, type) {
390
+ this.textTips = text;
391
+ this.statusTips = status;
392
+ this.typeTips = type;
393
+ this.$refs.topTips.handleOpen();
394
+ },
395
+
396
+ handleFinal() {
397
+ if (this.param.endFunction) {
398
+ this.param.endFunction();
399
+ }
400
+ },
401
+ },
402
+ };
403
+ </script>
404
+ <style scoped>
405
+ .process-popup-content {
406
+ flex: 1;
407
+ }
408
+
409
+ .process-popup-content .process-pc-label {
410
+ font-size: 15px;
411
+ display: flex;
412
+ align-items: center;
413
+ font-weight: 400;
414
+ color: #333333;
415
+ padding-top: 20px;
416
+ padding-bottom: 5px;
417
+ }
418
+
419
+ .process-popup-content .process-pc-value .van-field {
420
+ border-bottom: 1px solid #e8e8e8;
421
+ padding: 0;
422
+ }
423
+
424
+ .input-padding {
425
+ padding: 0;
426
+ }
427
+
428
+ .process-popup-textarea {
429
+ position: relative;
430
+ width: 100%;
431
+ height: 62px;
432
+ min-height: 62px;
433
+ }
434
+
435
+ .process-popup-textarea::after {
436
+ position: absolute;
437
+ content: "";
438
+ width: 100%;
439
+ height: 1px;
440
+ background-color: #f2f2f2;
441
+ bottom: 0;
442
+ left: 0;
443
+ }
444
+
445
+ .process-popup-textarea .textarea-item {
446
+ resize: none;
447
+ background: none;
448
+ color: inherit;
449
+ opacity: 1;
450
+ font: inherit;
451
+ line-height: inherit;
452
+ letter-spacing: inherit;
453
+ text-align: inherit;
454
+ text-indent: inherit;
455
+ text-transform: inherit;
456
+ text-shadow: inherit;
457
+ outline: none;
458
+ border: none;
459
+ padding: 0;
460
+ margin: 0;
461
+ text-decoration: inherit;
462
+ height: 100%;
463
+ }
464
+ .process-pc-label--re {
465
+ color: #ee0000;
466
+ }
467
+
468
+ .process-pc-value--people {
469
+ width: 100%;
470
+ height: 43px;
471
+ padding: 10px 26px 10px 0;
472
+ box-sizing: border-box;
473
+ position: relative;
474
+ }
475
+
476
+ .process-pc-value--people::after {
477
+ position: absolute;
478
+ content: "";
479
+ width: 100%;
480
+ height: 1px;
481
+ background-color: #e8e8e8;
482
+ bottom: 0;
483
+ left: 0;
484
+ }
485
+ </style>