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,399 +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
- <template
19
- v-if="
20
- taskNode && taskNode.length > 0 && taskNode[0].taskState != 11
21
- "
22
- >
23
- <template v-if="nextNodeData.length">
24
- <template v-for="item in nextNodeData">
25
- <template
26
- v-if="
27
- item.type != 'endEvent' &&
28
- isOption(
29
- item?.userTaskModelDTO?.humanPerformer?.name
30
- )
31
- "
32
- >
33
- <div class="process-pc-label">
34
- {{ item.userTaskModelDTO.name }}
35
- <br />
36
- 审批人:
37
- </div>
38
- <div
39
- class="process-pc-value"
40
- @click="handleOpenPopup(item.id)"
41
- >
42
- <div class="process-pc-value--people">
43
- <div
44
- class="process-pc-value--data"
45
- v-if="
46
- partNode[item.id] &&
47
- partNode[item.id].length
48
- "
49
- >
50
- <span v-for="(v, i) in partNode[item.id]">
51
- {{ i == 0 ? v : `,${v}` }}
52
- </span>
53
- </div>
54
- <div
55
- v-else
56
- class="process-pc-value--data"
57
- style="color: #888;"
58
- >
59
- <span>
60
- 请选择审批人
61
- </span>
62
- </div>
63
- </div>
64
- </div>
65
- </template>
66
- </template>
67
- </template>
68
-
69
- <template v-else-if="outGatewayUserTaskModel.length">
70
- <template v-for="item in outGatewayUserTaskModel">
71
- <template
72
- v-if="
73
- item.type != 'endEvent' &&
74
- isOption(item.humanPerformerName)
75
- "
76
- >
77
- <div style="font-size: 15px;">
78
- {{ item.name }}
79
- </div>
80
- <div class="process-pc-label">
81
- 审批人
82
- <span class="process-pc-label--re">*</span>
83
- </div>
84
- <div class="process-pc-value" @click="handleOpenPopup">
85
- <div class="process-pc-value--people">
86
- {{ 234 }}
87
- </div>
88
- </div>
89
- </template>
90
- </template>
91
- </template>
92
- </template>
93
- <TopTips
94
- ref="topTips"
95
- :text="textTips"
96
- :statusTips="statusTips"
97
- :type="typeTips"
98
- />
99
- <TopPopup
100
- v-bind:visible="visible"
101
- v-on:update:visible="(val) => (visible = val)"
102
- ref="TopPopup"
103
- titleText="选人"
104
- :isDrawer="true"
105
- >
106
- <departPerson
107
- :visible.sync="visible"
108
- :request="param.request"
109
- :businessId="param.formData.businessKey"
110
- v-bind="entity"
111
- @callback="handleCallback"
112
- @cancel="handleCancel"
113
- >
114
- </departPerson>
115
- <!-- 初始测试啊啊啊啊啊啊 -->
116
- </TopPopup>
117
-
118
- <attchViews
119
- v-if="labels == '拒绝'"
120
- :limit="limit ? limit : -1"
121
- :requires="requires"
122
- :request="param.request"
123
- :linkUrl="param.linkUrl"
124
- @getValue="getValues"
125
- />
126
- </div>
127
- </template>
128
- <script>
129
- import TopTips from "../../tip/index.vue";
130
- import attchViews from "../../attchUpload/index.vue";
131
- import TopPopup from "../../popup/index.vue";
132
- import { departPerson } from "checked-pick-app";
133
- export default {
134
- name: "cancel",
135
- props: {
136
- param: {
137
- type: Object,
138
- defalut: () => {},
139
- },
140
- },
141
- components: {
142
- TopTips,
143
- attchViews,
144
- TopPopup,
145
- departPerson,
146
- },
147
- data() {
148
- return {
149
- commentMsg: "",
150
- style: {
151
- color: "#333",
152
- disableColor: "#F7F6F6",
153
- },
154
- textTips: "",
155
- statusTips: false,
156
- typeTips: "success",
157
- // annex 附件属性
158
- limit: "",
159
- requires: "",
160
- labels: "",
161
- otherList: "",
162
- attchLists: [],
163
- // next
164
- nextNodeData: [],
165
- taskNode: [],
166
-
167
- outGatewayUserTaskModel: [],
168
- formData: {},
169
-
170
- // 选人组件
171
- visible: false,
172
- entity: {
173
- source: "0",
174
- type: "0",
175
- request: this.param.request, //'http://59.53.91.231:2100' 0002
176
- businessId: this.param.businessKey,
177
- codeType: [3], // 可选类型 1-主体 2-部门 3-人员
178
- multiple: true, // 是否多选
179
- },
180
- /* {
181
- source: "0",
182
- type: "0",
183
- request: this.param.request, //'http://59.53.91.231:2100' 0002
184
- businessId: "6a9aaf5742572e82b5d89d6f7e52e2f2",
185
- codeType: [3], // 可选类型 1-主体 2-部门 3-人员
186
- multiple: true, // 是否多选
187
- } */
188
- // 存储选人信息
189
- multiNodeParticipant: {},
190
- // 当前评估对象
191
- partObjId: [],
192
- // 选中人员信息
193
- partNode: {},
194
- };
195
- },
196
- created() {
197
- console.log("isVue2", this.param);
198
- this.makeDelegateTaskButtonAnnex();
199
- },
200
- methods: {
201
- handleOpenPopup(id) {
202
- this.visible = true;
203
- this.partObjId = id;
204
- },
205
- async confirm() {
206
- if (!this.commentMsg) {
207
- this.handleTips("请输入拒绝理由!", false, "success");
208
- return false;
209
- }
210
- this.handleTips("", true, "loading");
211
- await this.param.request
212
- .post("/aws/tis/reject", {
213
- commentMsg: this.commentMsg,
214
- taskInstId: this.param.taskInstId,
215
- })
216
- .then((res) => {
217
- if (res.code == 200) {
218
- this.$emit("handleClosePopup1");
219
- this.handleTips("提交成功!", false, "success");
220
- this.commentMsg = "";
221
- } else {
222
- this.handleTips(res.msg, true, "error");
223
- }
224
- });
225
- },
226
- makeDelegateTaskButtonAnnex() {
227
- if (this.param.annex && this.param.annex.length) {
228
- this.otherList = this.param.annex;
229
- let str = this.otherList.split(";");
230
- this.limit = str[2];
231
- this.requires = JSON.parse(str[1]);
232
- this.labels = str[0];
233
- console.log(
234
- "makeDelegateTaskButtonAnnex",
235
- this.otherList,
236
- this.limit,
237
- this.requires,
238
- this.labels
239
- );
240
- }
241
- },
242
-
243
- handleCallback(res) {
244
- this.multiNodeParticipant[this.partObjId] = [];
245
- this.partNode[this.partObjId] = [];
246
- res.map((v, i) => {
247
- this.multiNodeParticipant[this.partObjId].push(v.uid);
248
- this.partNode[this.partObjId].push(v.name);
249
- });
250
- console.log("callback_OK", res, this.multiNodeParticipant);
251
- },
252
- handleCancel() {
253
- console.log("cancel_No");
254
- },
255
-
256
- getValues(data) {
257
- console.log("获取当前附件信息::::", data);
258
- this.attchLists = data;
259
- },
260
-
261
- async uploadAttch() {
262
- if (this.attchLists.length > 0) {
263
- this.attchLists.map((v, i) => {
264
- v.size = v.fileSize;
265
- v.format = v.originFileName.substring(
266
- v.originFileName.lastIndexOf(".") + 1
267
- );
268
- v.uploadTime = v.createTime;
269
- v.processInstId = this.param.processInstId;
270
- v.taskInstId = this.param.taskInstId;
271
- v.name = v.originFileName;
272
- });
273
-
274
- let param = this.attchLists;
275
- const ress = await this.param.request.post(
276
- "/aws/meta/annex/patchSave",
277
- {
278
- saveMetaAnnexCmdList: param,
279
- }
280
- );
281
- console.log("asd", ress);
282
- if (ress.success) {
283
- this.$emit("handleClosePopup1");
284
- this.handleTips("提交成功!", false, "success");
285
- this.handleFinal()
286
- this.commentMsg = "";
287
- } else {
288
- this.handleTips("上传失败", true, "error");
289
- }
290
- }
291
- },
292
-
293
- isOption(humanPerformer) {
294
- return (
295
- humanPerformer == "任意指定" ||
296
- humanPerformer == "固定部门" ||
297
- humanPerformer == "固定单位" ||
298
- humanPerformer == "与流程申请人所在组织结构的位置相关" ||
299
- humanPerformer == "固定群组"
300
- );
301
- },
302
-
303
- handleTips(text, status, type) {
304
- this.textTips = text;
305
- this.statusTips = status;
306
- this.typeTips = type;
307
- this.$refs.topTips.handleOpen();
308
- },
309
-
310
- handleFinal() {
311
- if (this.param.endFunction) {
312
- this.param.endFunction();
313
- }
314
- },
315
- },
316
- };
317
- </script>
318
- <style scoped>
319
- .process-popup-content {
320
- flex: 1;
321
- }
322
-
323
- .process-popup-content .process-pc-label {
324
- font-size: 15px;
325
- display: flex;
326
- align-items: center;
327
- font-weight: 400;
328
- color: #333333;
329
- padding-top: 20px;
330
- padding-bottom: 5px;
331
- }
332
-
333
- .process-popup-content .process-pc-value .van-field {
334
- border-bottom: 1px solid #e8e8e8;
335
- padding: 0;
336
- }
337
-
338
- .input-padding {
339
- padding: 0;
340
- }
341
-
342
- .process-popup-textarea {
343
- position: relative;
344
- width: 100%;
345
- height: 62px;
346
- min-height: 62px;
347
- }
348
-
349
- .process-popup-textarea::after {
350
- position: absolute;
351
- content: "";
352
- width: 100%;
353
- height: 1px;
354
- background-color: #f2f2f2;
355
- bottom: 0;
356
- left: 0;
357
- }
358
-
359
- .process-popup-textarea .textarea-item {
360
- resize: none;
361
- background: none;
362
- color: inherit;
363
- opacity: 1;
364
- font: inherit;
365
- line-height: inherit;
366
- letter-spacing: inherit;
367
- text-align: inherit;
368
- text-indent: inherit;
369
- text-transform: inherit;
370
- text-shadow: inherit;
371
- outline: none;
372
- border: none;
373
- padding: 0;
374
- margin: 0;
375
- text-decoration: inherit;
376
- height: 100%;
377
- }
378
- .process-pc-label--re {
379
- color: #ee0000;
380
- }
381
-
382
- .process-pc-value--people {
383
- width: 100%;
384
- height: 43px;
385
- padding: 10px 26px 10px 0;
386
- box-sizing: border-box;
387
- position: relative;
388
- }
389
-
390
- .process-pc-value--people::after {
391
- position: absolute;
392
- content: "";
393
- width: 100%;
394
- height: 1px;
395
- background-color: #e8e8e8;
396
- bottom: 0;
397
- left: 0;
398
- }
399
- </style>