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