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