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,393 @@
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>