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,480 +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 == '1'"
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: "delegateTask",
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
- async confirm() {
276
- if (!this.commentMsg) {
277
- this.textTips = "请输入转审理由!";
278
- this.$refs.topTips.handleOpen();
279
- return;
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
-
290
- this.handleTips("", true, "loading");
291
- await this.param.request
292
- .post("/aws/tis/delegate", {
293
- delegateReason: this.commentMsg,
294
- taskInstId: this.param.taskInstId,
295
- targetUID: arr,
296
- })
297
- .then((res) => {
298
- if (res.code == 200) {
299
- this.$emit("handleClosePopup1");
300
- this.handleTips("提交成功!", false, "success");
301
- this.commentMsg = "";
302
- } else {
303
- this.handleTips(res.msg, true, "error");
304
- }
305
- });
306
- },
307
- makeDelegateTaskButtonAnnex() {
308
- if (this.param.annex && this.param.annex.length) {
309
- this.otherList = this.param.annex;
310
- let str = this.otherList.split(";");
311
- this.limit = str[2];
312
- this.requires = JSON.parse(str[1]);
313
- this.labels = str[0];
314
- console.log(
315
- "makeDelegateTaskButtonAnnex",
316
- this.otherList,
317
- this.limit,
318
- this.requires,
319
- this.labels
320
- );
321
- }
322
- },
323
-
324
- handleCallback(res) {
325
- this.multiNodeParticipant[this.partObjId] = [];
326
- this.partNode[this.partObjId] = [];
327
- res.map((v, i) => {
328
- this.multiNodeParticipant[this.partObjId].push(v.uid);
329
- this.partNode[this.partObjId].push(v.name);
330
- });
331
- console.log("callback_OK", res, this.multiNodeParticipant);
332
- },
333
- handleCancel() {
334
- console.log("cancel_No");
335
- },
336
-
337
- getValues(data) {
338
- console.log("获取当前附件信息::::", data);
339
- this.attchLists = data;
340
- },
341
-
342
- async uploadAttch() {
343
- if (this.attchLists.length > 0) {
344
- this.attchLists.map((v, i) => {
345
- v.size = v.fileSize;
346
- v.format = v.originFileName.substring(
347
- v.originFileName.lastIndexOf(".") + 1
348
- );
349
- v.uploadTime = v.createTime;
350
- v.processInstId = this.param.processInstId;
351
- v.taskInstId = this.param.taskInstId;
352
- v.name = v.originFileName;
353
- });
354
-
355
- let param = this.attchLists;
356
- const ress = await this.param.request.post(
357
- "/aws/meta/annex/patchSave",
358
- {
359
- saveMetaAnnexCmdList: param,
360
- }
361
- );
362
- console.log("asd", ress);
363
- if (ress.success) {
364
- this.$emit("handleClosePopup1");
365
- this.handleTips("提交成功!", false, "success");
366
- this.handleFinal()
367
- this.commentMsg = "";
368
- } else {
369
- this.handleTips("上传失败", true, "error");
370
- }
371
- }
372
- },
373
-
374
- isOption(humanPerformer) {
375
- return (
376
- humanPerformer == "任意指定" ||
377
- humanPerformer == "固定部门" ||
378
- humanPerformer == "固定单位" ||
379
- humanPerformer == "与流程申请人所在组织结构的位置相关" ||
380
- humanPerformer == "固定群组"
381
- );
382
- },
383
-
384
- handleTips(text, status, type) {
385
- this.textTips = text;
386
- this.statusTips = status;
387
- this.typeTips = type;
388
- this.$refs.topTips.handleOpen();
389
- },
390
-
391
- handleFinal() {
392
- if (this.param.endFunction) {
393
- this.param.endFunction();
394
- }
395
- },
396
- },
397
- };
398
- </script>
399
- <style scoped>
400
- .process-popup-content {
401
- flex: 1;
402
- }
403
-
404
- .process-popup-content .process-pc-label {
405
- font-size: 15px;
406
- display: flex;
407
- align-items: center;
408
- font-weight: 400;
409
- color: #333333;
410
- padding-top: 20px;
411
- padding-bottom: 5px;
412
- }
413
-
414
- .process-popup-content .process-pc-value .van-field {
415
- border-bottom: 1px solid #e8e8e8;
416
- padding: 0;
417
- }
418
-
419
- .input-padding {
420
- padding: 0;
421
- }
422
-
423
- .process-popup-textarea {
424
- position: relative;
425
- width: 100%;
426
- height: 62px;
427
- min-height: 62px;
428
- }
429
-
430
- .process-popup-textarea::after {
431
- position: absolute;
432
- content: "";
433
- width: 100%;
434
- height: 1px;
435
- background-color: #f2f2f2;
436
- bottom: 0;
437
- left: 0;
438
- }
439
-
440
- .process-popup-textarea .textarea-item {
441
- resize: none;
442
- background: none;
443
- color: inherit;
444
- opacity: 1;
445
- font: inherit;
446
- line-height: inherit;
447
- letter-spacing: inherit;
448
- text-align: inherit;
449
- text-indent: inherit;
450
- text-transform: inherit;
451
- text-shadow: inherit;
452
- outline: none;
453
- border: none;
454
- padding: 0;
455
- margin: 0;
456
- text-decoration: inherit;
457
- height: 100%;
458
- }
459
- .process-pc-label--re {
460
- color: #ee0000;
461
- }
462
-
463
- .process-pc-value--people {
464
- width: 100%;
465
- height: 43px;
466
- padding: 10px 26px 10px 0;
467
- box-sizing: border-box;
468
- position: relative;
469
- }
470
-
471
- .process-pc-value--people::after {
472
- position: absolute;
473
- content: "";
474
- width: 100%;
475
- height: 1px;
476
- background-color: #e8e8e8;
477
- bottom: 0;
478
- left: 0;
479
- }
480
- </style>
@@ -1,9 +0,0 @@
1
- import counterSign from "./counterSign.vue"
2
- import delegateTask from "./delegateTask.vue"
3
- import complete from "./complete.vue"
4
- import cancel from "./cancel.vue"
5
- import backNode from "./backNode.vue"
6
- import ccTask from "./ccTask.vue"
7
- import restart from "./restart.vue"
8
-
9
- export { counterSign, delegateTask, complete, cancel, backNode, ccTask, restart }