ui-process-h5 0.1.40 → 1.0.6

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 (89) hide show
  1. package/README.md +171 -18
  2. package/package.json +21 -51
  3. package/build/configure/README.md +0 -171
  4. package/build/configure/package.json +0 -27
  5. package/index.html +0 -12
  6. package/src/App.vue +0 -151
  7. package/src/assets/font-icon/iconfont.scss +0 -57
  8. package/src/assets/font-icon/iconfont.ttf +0 -0
  9. package/src/assets/img/add-file.png +0 -0
  10. package/src/assets/img/arrow-right.png +0 -0
  11. package/src/assets/img/arrow.png +0 -0
  12. package/src/assets/img/check.png +0 -0
  13. package/src/assets/img/del.png +0 -0
  14. package/src/assets/img/doc.png +0 -0
  15. package/src/assets/img/file.png +0 -0
  16. package/src/assets/img/image.png +0 -0
  17. package/src/assets/img/pdf.png +0 -0
  18. package/src/assets/img/xls.png +0 -0
  19. package/src/assets/img/zip.png +0 -0
  20. package/src/assets/js/auth.js +0 -41
  21. package/src/assets/js/errorCode.js +0 -6
  22. package/src/assets/js/message.js +0 -352
  23. package/src/assets/js/request.js +0 -90
  24. package/src/assets/js/toast.js +0 -239
  25. package/src/assets/js/top.js +0 -229
  26. package/src/assets/js/utils.js +0 -82
  27. package/src/assets/js/vuePopper.js +0 -123
  28. package/src/assets/query.png +0 -0
  29. package/src/assets/status/error.png +0 -0
  30. package/src/assets/status/loading.png +0 -0
  31. package/src/assets/status/success.png +0 -0
  32. package/src/main.js +0 -15
  33. package/src/packages/attchUpload/index.js +0 -371
  34. package/src/packages/attchUpload/index.scss +0 -136
  35. package/src/packages/attchUpload/index.vue +0 -173
  36. package/src/packages/downSelect/index.js +0 -81
  37. package/src/packages/downSelect/index.scss +0 -82
  38. package/src/packages/downSelect/index.vue +0 -54
  39. package/src/packages/index.js +0 -6
  40. package/src/packages/popup/index.js +0 -61
  41. package/src/packages/popup/index.scss +0 -174
  42. package/src/packages/popup/index.vue +0 -79
  43. package/src/packages/preview/index.js +0 -36
  44. package/src/packages/preview/index.vue +0 -15
  45. package/src/packages/previewImage/index.js +0 -158
  46. package/src/packages/previewImage/index.scss +0 -59
  47. package/src/packages/previewImage/index.vue +0 -32
  48. package/src/packages/process/index.js +0 -679
  49. package/src/packages/process/index.scss +0 -164
  50. package/src/packages/process/index.vue +0 -189
  51. package/src/packages/process/operation/backNode.vue +0 -393
  52. package/src/packages/process/operation/cancel.vue +0 -399
  53. package/src/packages/process/operation/ccTask.vue +0 -461
  54. package/src/packages/process/operation/complete.vue +0 -488
  55. package/src/packages/process/operation/counterSign.vue +0 -485
  56. package/src/packages/process/operation/delegateTask.vue +0 -480
  57. package/src/packages/process/operation/index.js +0 -9
  58. package/src/packages/process/operation/restart.vue +0 -305
  59. package/src/packages/submitPopup/index.js +0 -296
  60. package/src/packages/submitPopup/index.scss +0 -83
  61. package/src/packages/submitPopup/index.vue +0 -138
  62. package/src/packages/tab/index.js +0 -207
  63. package/src/packages/tab/index.scss +0 -176
  64. package/src/packages/tab/index.vue +0 -155
  65. package/src/packages/tip/index.js +0 -74
  66. package/src/packages/tip/index.scss +0 -82
  67. package/src/packages/tip/index.vue +0 -57
  68. package/src/packages/viewAttchList/index.js +0 -132
  69. package/src/packages/viewAttchList/index.scss +0 -76
  70. package/src/packages/viewAttchList/index.vue +0 -112
  71. package/src/style.css +0 -80
  72. package/ui-process-h5/README.md +0 -171
  73. package/ui-process-h5/package.json +0 -27
  74. package/ui-process-h5/scripts/postinstall.mjs +0 -14
  75. package/ui-process-h5/scripts/switch-cli.mjs +0 -4
  76. package/ui-process-h5/scripts/utils.mjs +0 -60
  77. package/vite.config.ts +0 -78
  78. /package/{build/scripts → scripts}/postinstall.mjs +0 -0
  79. /package/{build/scripts → scripts}/switch-cli.mjs +0 -0
  80. /package/{build/scripts → scripts}/utils.mjs +0 -0
  81. /package/{ui-process-h5/v2 → v2}/style.css +0 -0
  82. /package/{ui-process-h5/v2 → v2}/ui-process-h5.js +0 -0
  83. /package/{ui-process-h5/v2 → v2}/ui-process-h5.umd.cjs +0 -0
  84. /package/{ui-process-h5/v2.7 → v2.7}/style.css +0 -0
  85. /package/{ui-process-h5/v2.7 → v2.7}/ui-process-h5.js +0 -0
  86. /package/{ui-process-h5/v2.7 → v2.7}/ui-process-h5.umd.cjs +0 -0
  87. /package/{ui-process-h5/v3 → v3}/style.css +0 -0
  88. /package/{ui-process-h5/v3 → v3}/ui-process-h5.js +0 -0
  89. /package/{ui-process-h5/v3 → v3}/ui-process-h5.umd.cjs +0 -0
@@ -1,485 +0,0 @@
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>