ui-process-h5 0.1.40 → 1.0.1

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 (58) hide show
  1. package/build/configure/README.md +83 -42
  2. package/build/configure/package.json +3 -2
  3. package/package.json +5 -2
  4. package/src/App.vue +87 -16
  5. package/src/assets/js/auth.js +36 -12
  6. package/src/assets/js/request.js +80 -71
  7. package/src/assets/js/utils.js +2 -1
  8. package/src/assets/status/check.png +0 -0
  9. package/src/assets/status/del.png +0 -0
  10. package/src/main.js +14 -12
  11. package/src/packages/attchUpload/index.js +19 -16
  12. package/src/packages/attchUpload/index.scss +10 -3
  13. package/src/packages/downSelect/index.js +25 -7
  14. package/src/packages/downSelect/index.scss +4 -0
  15. package/src/packages/downSelect/index.vue +6 -3
  16. package/src/packages/popup/index.js +17 -5
  17. package/src/packages/popup/index.scss +0 -1
  18. package/src/packages/popup/index.vue +1 -0
  19. package/src/packages/preview/index.vue +1 -1
  20. package/src/packages/previewImage/index.js +125 -2
  21. package/src/packages/previewImage/index.scss +19 -2
  22. package/src/packages/previewImage/index.vue +25 -4
  23. package/src/packages/process/index.js +299 -55
  24. package/src/packages/process/index.scss +12 -1
  25. package/src/packages/process/index.vue +114 -40
  26. package/src/packages/process/operation/backNode.vue +117 -25
  27. package/src/packages/process/operation/cancel.vue +133 -14
  28. package/src/packages/process/operation/ccTask.vue +46 -34
  29. package/src/packages/process/operation/complete.vue +729 -91
  30. package/src/packages/process/operation/counterSign.vue +130 -25
  31. package/src/packages/process/operation/delegateTask.vue +130 -23
  32. package/src/packages/process/operation/msgList.vue +174 -0
  33. package/src/packages/process/operation/restart.vue +15 -4
  34. package/src/packages/submitPopup/index.js +407 -59
  35. package/src/packages/submitPopup/index.scss +51 -46
  36. package/src/packages/submitPopup/index.vue +21 -5
  37. package/src/packages/tab/index.js +34 -5
  38. package/src/packages/tab/index.scss +2 -1
  39. package/src/packages/tab/index.vue +7 -7
  40. package/src/packages/tip/index.js +8 -2
  41. package/src/packages/tip/index.scss +39 -0
  42. package/src/packages/tip/index.vue +1 -1
  43. package/src/packages/viewAttchList/index.js +16 -14
  44. package/vite.config.ts +101 -72
  45. package/ui-process-h5/README.md +0 -171
  46. package/ui-process-h5/package.json +0 -27
  47. package/ui-process-h5/scripts/postinstall.mjs +0 -14
  48. package/ui-process-h5/scripts/switch-cli.mjs +0 -4
  49. package/ui-process-h5/scripts/utils.mjs +0 -60
  50. package/ui-process-h5/v2/style.css +0 -1
  51. package/ui-process-h5/v2/ui-process-h5.js +0 -13467
  52. package/ui-process-h5/v2/ui-process-h5.umd.cjs +0 -67
  53. package/ui-process-h5/v2.7/style.css +0 -1
  54. package/ui-process-h5/v2.7/ui-process-h5.js +0 -12844
  55. package/ui-process-h5/v2.7/ui-process-h5.umd.cjs +0 -67
  56. package/ui-process-h5/v3/style.css +0 -1
  57. package/ui-process-h5/v3/ui-process-h5.js +0 -10336
  58. package/ui-process-h5/v3/ui-process-h5.umd.cjs +0 -55
@@ -1,5 +1,14 @@
1
1
  <template>
2
2
  <div class="process-popup-content">
3
+ <div v-if="param.isMsg">
4
+ <div
5
+ class="process-radio-item"
6
+ @click="handleOpenMsg()"
7
+ style="color: #1389ff; font-size: 14px;"
8
+ >
9
+ 常用意见
10
+ </div>
11
+ </div>
3
12
  <div class="process-pc-label">
4
13
  拒绝理由: <span class="process-pc-label--re">*</span>
5
14
  </div>
@@ -14,6 +23,11 @@
14
23
  maxlength="200"
15
24
  ></textarea>
16
25
  </div>
26
+ <div class="msg-btn" v-if="param.isMsg">
27
+ <span class="msg-btn-click" @click="handleMakeMsg()"
28
+ >设置为常用意见</span
29
+ >
30
+ </div>
17
31
  </div>
18
32
  <template
19
33
  v-if="
@@ -30,10 +44,11 @@
30
44
  )
31
45
  "
32
46
  >
33
- <div class="process-pc-label">
47
+ <div>
34
48
  {{ item.userTaskModelDTO.name }}
35
49
  <br />
36
- 审批人:
50
+ 审批人
51
+ <span class="process-pc-label--re">*</span>
37
52
  </div>
38
53
  <div
39
54
  class="process-pc-value"
@@ -104,9 +119,9 @@
104
119
  :isDrawer="true"
105
120
  >
106
121
  <departPerson
122
+ :isTitle="false"
107
123
  :visible.sync="visible"
108
124
  :request="param.request"
109
- :businessId="param.formData.businessKey"
110
125
  v-bind="entity"
111
126
  @callback="handleCallback"
112
127
  @cancel="handleCancel"
@@ -123,6 +138,33 @@
123
138
  :linkUrl="param.linkUrl"
124
139
  @getValue="getValues"
125
140
  />
141
+
142
+ <TopPopup
143
+ v-bind:visible="visibleListMsg"
144
+ v-on:update:visible="(val) => (visibleListMsg = val)"
145
+ ref="TopPopup"
146
+ titleText="常用意见"
147
+ :isDrawer="true"
148
+ >
149
+ <MsgList
150
+ :visible="visibleListMsg"
151
+ :request="param.request"
152
+ :useInfo="param.userInfo"
153
+ @handleTips="handleTips"
154
+ @handleMsg="handleMsg"
155
+ ></MsgList>
156
+ </TopPopup>
157
+
158
+ <TopPopup
159
+ titleText="操作消息提示"
160
+ :isTips="true"
161
+ :context="`将${commentMsg}设置为常用意见`"
162
+ :cancel="handleTipsCancel"
163
+ :comfig="handleTipsComfig"
164
+ v-bind:visible="visibleMsgComfig"
165
+ v-on:update:visible="(val) => (visibleMsgComfig = val)"
166
+ >
167
+ </TopPopup>
126
168
  </div>
127
169
  </template>
128
170
  <script>
@@ -130,6 +172,7 @@ import TopTips from "../../tip/index.vue";
130
172
  import attchViews from "../../attchUpload/index.vue";
131
173
  import TopPopup from "../../popup/index.vue";
132
174
  import { departPerson } from "checked-pick-app";
175
+ import MsgList from "./msgList.vue";
133
176
  export default {
134
177
  name: "cancel",
135
178
  props: {
@@ -143,10 +186,22 @@ export default {
143
186
  attchViews,
144
187
  TopPopup,
145
188
  departPerson,
189
+ MsgList,
190
+ },
191
+ watch: {
192
+ param: {
193
+ async handler(val, preVal) {
194
+ this.entity.checkedArray = [];
195
+ this.actionName = val.actionName;
196
+ },
197
+ immediate: true,
198
+ deep: true,
199
+ },
146
200
  },
147
201
  data() {
148
202
  return {
149
203
  commentMsg: "",
204
+ actionName: "",
150
205
  style: {
151
206
  color: "#333",
152
207
  disableColor: "#F7F6F6",
@@ -173,9 +228,9 @@ export default {
173
228
  source: "0",
174
229
  type: "0",
175
230
  request: this.param.request, //'http://59.53.91.231:2100' 0002
176
- businessId: this.param.businessKey,
177
231
  codeType: [3], // 可选类型 1-主体 2-部门 3-人员
178
232
  multiple: true, // 是否多选
233
+ checkedArray: [],
179
234
  },
180
235
  /* {
181
236
  source: "0",
@@ -191,13 +246,53 @@ export default {
191
246
  partObjId: [],
192
247
  // 选中人员信息
193
248
  partNode: {},
249
+
250
+ visibleListMsg: false,
251
+ visibleMsgComfig: false,
194
252
  };
195
253
  },
196
254
  created() {
197
- console.log("isVue2", this.param);
255
+ // console.log("isVue2", this.param);
198
256
  this.makeDelegateTaskButtonAnnex();
199
257
  },
200
258
  methods: {
259
+ // 设置msg
260
+ handleMakeMsg() {
261
+ if (this.commentMsg == "" && !this.commentMsg.length) {
262
+ this.handleTips("请输入审批意见!", false, "success");
263
+ this.visibleMsgComfig = false;
264
+ } else {
265
+ this.visibleMsgComfig = true;
266
+ }
267
+ },
268
+ handleOpenMsg() {
269
+ this.visibleListMsg = true;
270
+ },
271
+ handleTipsCancel() {
272
+ this.visibleMsgComfig = false;
273
+ },
274
+ handleTipsComfig() {
275
+ this.handleTips("", true, "loading");
276
+ this.visibleMsgComfig = false;
277
+ this.param.request
278
+ .post("/auth//user/opinion/save", {
279
+ opinionName: this.commentMsg,
280
+ })
281
+ .then((res) => {
282
+ if (res.code === 200) {
283
+ this.handleTips("设置成功!", true, "success");
284
+ } else {
285
+ this.handleTips(res.msg, true, "error");
286
+ }
287
+ })
288
+ .catch((error) => {
289
+ this.handleTips(error.msg, true, "error");
290
+ });
291
+ },
292
+ handleMsg(val) {
293
+ this.commentMsg = val;
294
+ this.visibleListMsg = false;
295
+ },
201
296
  handleOpenPopup(id) {
202
297
  this.visible = true;
203
298
  this.partObjId = id;
@@ -217,6 +312,7 @@ export default {
217
312
  if (res.code == 200) {
218
313
  this.$emit("handleClosePopup1");
219
314
  this.handleTips("提交成功!", false, "success");
315
+ this.handleFinal();
220
316
  this.commentMsg = "";
221
317
  } else {
222
318
  this.handleTips(res.msg, true, "error");
@@ -230,31 +326,36 @@ export default {
230
326
  this.limit = str[2];
231
327
  this.requires = JSON.parse(str[1]);
232
328
  this.labels = str[0];
233
- console.log(
329
+ /* console.log(
234
330
  "makeDelegateTaskButtonAnnex",
235
331
  this.otherList,
236
332
  this.limit,
237
333
  this.requires,
238
334
  this.labels
239
- );
335
+ ); */
240
336
  }
241
337
  },
242
338
 
243
339
  handleCallback(res) {
340
+ this.visible = false;
244
341
  this.multiNodeParticipant[this.partObjId] = [];
245
342
  this.partNode[this.partObjId] = [];
246
343
  res.map((v, i) => {
247
344
  this.multiNodeParticipant[this.partObjId].push(v.uid);
248
345
  this.partNode[this.partObjId].push(v.name);
346
+ this.entity.checkedArray.push({
347
+ type: 3,
348
+ uid: v.uid,
349
+ });
249
350
  });
250
- console.log("callback_OK", res, this.multiNodeParticipant);
351
+ // console.log("callback_OK", res, this.multiNodeParticipant);
251
352
  },
252
353
  handleCancel() {
253
- console.log("cancel_No");
354
+ // console.log("cancel_No");
254
355
  },
255
356
 
256
357
  getValues(data) {
257
- console.log("获取当前附件信息::::", data);
358
+ // console.log("获取当前附件信息::::", data);
258
359
  this.attchLists = data;
259
360
  },
260
361
 
@@ -278,11 +379,11 @@ export default {
278
379
  saveMetaAnnexCmdList: param,
279
380
  }
280
381
  );
281
- console.log("asd", ress);
382
+ // console.log("asd", ress);
282
383
  if (ress.success) {
283
384
  this.$emit("handleClosePopup1");
284
385
  this.handleTips("提交成功!", false, "success");
285
- this.handleFinal()
386
+ this.handleFinal();
286
387
  this.commentMsg = "";
287
388
  } else {
288
389
  this.handleTips("上传失败", true, "error");
@@ -309,7 +410,7 @@ export default {
309
410
 
310
411
  handleFinal() {
311
412
  if (this.param.endFunction) {
312
- this.param.endFunction();
413
+ this.param.endFunction("拒绝");
313
414
  }
314
415
  },
315
416
  },
@@ -374,6 +475,11 @@ export default {
374
475
  margin: 0;
375
476
  text-decoration: inherit;
376
477
  height: 100%;
478
+ font-size: 14px;
479
+ }
480
+
481
+ .process-popup-textarea .textarea-item::placeholder {
482
+ line-height: 4;
377
483
  }
378
484
  .process-pc-label--re {
379
485
  color: #ee0000;
@@ -381,10 +487,11 @@ export default {
381
487
 
382
488
  .process-pc-value--people {
383
489
  width: 100%;
384
- height: 43px;
490
+ min-height: 43px;
385
491
  padding: 10px 26px 10px 0;
386
492
  box-sizing: border-box;
387
493
  position: relative;
494
+ font-size: 14px;
388
495
  }
389
496
 
390
497
  .process-pc-value--people::after {
@@ -396,4 +503,16 @@ export default {
396
503
  bottom: 0;
397
504
  left: 0;
398
505
  }
506
+
507
+ ::v-deep .departPerson-main {
508
+ width: 100% !important;
509
+ height: 100% !important;
510
+ }
511
+
512
+ .msg-btn {
513
+ font-size: 14px;
514
+ margin: 8px 0;
515
+ text-align: right;
516
+ color: #1890ff;
517
+ }
399
518
  </style>
@@ -9,16 +9,12 @@
9
9
  <template v-for="item in nextNodeData">
10
10
  <template
11
11
  v-if="
12
- item.type != 'endEvent' &&
13
- isOption(
14
- item?.userTaskModelDTO?.humanPerformer?.name
15
- )
12
+ item.type != 'endEvent'
16
13
  "
17
14
  >
18
- <div class="process-pc-label">
19
- {{ item.userTaskModelDTO.name }}
20
- <br />
21
- 审批人:
15
+ <div>
16
+ 抄送人员
17
+ <span class="process-pc-label--re">*</span>
22
18
  </div>
23
19
  <div
24
20
  class="process-pc-value"
@@ -42,7 +38,7 @@
42
38
  style="color: #888;"
43
39
  >
44
40
  <span>
45
- 请选择审批人
41
+ 请选择抄送人员
46
42
  </span>
47
43
  </div>
48
44
  </div>
@@ -53,16 +49,9 @@
53
49
 
54
50
  <template v-else-if="outGatewayUserTaskModel.length">
55
51
  <template v-for="item in outGatewayUserTaskModel">
56
- <template
57
- v-if="
58
- item.type != 'endEvent' &&
59
- isOption(item.humanPerformerName)
60
- "
61
- >
62
- <div class="process-pc-label">
63
- {{ item.name }}
64
- <br />
65
- 审批人
52
+ <template v-if="item.type != 'endEvent'">
53
+ <div>
54
+ 抄送人员
66
55
  <span class="process-pc-label--re">*</span>
67
56
  </div>
68
57
  <div
@@ -78,7 +67,7 @@
78
67
  "
79
68
  >
80
69
  <span v-for="(v, i) in partNode[item.id]">
81
- {{ i == 0 ? v : `,${v}` }}
70
+ {{ i == 0 ? v : `;${v}` }}
82
71
  </span>
83
72
  </div>
84
73
  <div
@@ -87,7 +76,7 @@
87
76
  style="color: #888;"
88
77
  >
89
78
  <span>
90
- 请选择审批人
79
+ 请选择抄送人员
91
80
  </span>
92
81
  </div>
93
82
  </div>
@@ -110,9 +99,9 @@
110
99
  :isDrawer="true"
111
100
  >
112
101
  <departPerson
102
+ :isTitle="false"
113
103
  :visible.sync="visible"
114
104
  :request="param.request"
115
- :businessId="param.formData.businessKey"
116
105
  v-bind="entity"
117
106
  @callback="handleCallback"
118
107
  @cancel="handleCancel"
@@ -179,9 +168,9 @@ export default {
179
168
  source: "0",
180
169
  type: "0",
181
170
  request: this.param.request, //'http://59.53.91.231:2100' 0002
182
- businessId: this.param.businessKey,
183
171
  codeType: [3], // 可选类型 1-主体 2-部门 3-人员
184
172
  multiple: true, // 是否多选
173
+ checkedArray: [],
185
174
  },
186
175
  /* {
187
176
  source: "0",
@@ -197,6 +186,7 @@ export default {
197
186
  partObjId: [],
198
187
  // 选中人员信息
199
188
  partNode: {},
189
+ actionName: "",
200
190
  };
201
191
  },
202
192
  watch: {
@@ -205,8 +195,9 @@ export default {
205
195
  this.nextNodeData = val.nextNodeData;
206
196
  this.taskNode = val.taskNode;
207
197
  this.outGatewayUserTaskModel = val.outGatewayUserTaskModel;
198
+ this.actionName = val.actionName;
208
199
  if (val.nextNodeData.length) {
209
- console.log("handler::::", this.nextNodeData[0]);
200
+ // console.log("handler::::", this.nextNodeData[0]);
210
201
  if (
211
202
  this.nextNodeData[0].type == "userTask" ||
212
203
  this.nextNodeData[0].type == "UserTaskModel"
@@ -214,6 +205,7 @@ export default {
214
205
  this.entity.multiple = true;
215
206
  this.entity.codeType = [3];
216
207
  this.entity.source = "1";
208
+ this.entity.checkedArray = [];
217
209
  } else if (
218
210
  this.nextNodeData[0].type == "ExclusiveGatewayModel"
219
211
  ) {
@@ -226,6 +218,7 @@ export default {
226
218
  this.entity.multiple = true;
227
219
  this.entity.codeType = [3];
228
220
  this.entity.source = "1";
221
+ this.entity.checkedArray = [];
229
222
  } else if (
230
223
  val.outGatewayUserTaskModel[0].type ==
231
224
  "ExclusiveGatewayModel"
@@ -239,6 +232,7 @@ export default {
239
232
  ) {
240
233
  this.entity.multiple = true;
241
234
  this.entity.codeType = [3];
235
+ this.entity.checkedArray = [];
242
236
  this.entity.source = "1";
243
237
  }
244
238
  }
@@ -248,7 +242,7 @@ export default {
248
242
  },
249
243
  },
250
244
  created() {
251
- console.log("isVue2", this.param);
245
+ // console.log("isVue2", this.param);
252
246
  this.makeDelegateTaskButtonAnnex();
253
247
  },
254
248
  methods: {
@@ -280,6 +274,7 @@ export default {
280
274
  if (res.code == 200) {
281
275
  this.$emit("handleClosePopup1");
282
276
  this.handleTips("提交成功!", false, "success");
277
+ this.handleFinal();
283
278
  } else {
284
279
  this.handleTips(res.msg, true, "error");
285
280
  }
@@ -292,31 +287,36 @@ export default {
292
287
  this.limit = str[2];
293
288
  this.requires = JSON.parse(str[1]);
294
289
  this.labels = str[0];
295
- console.log(
290
+ /* console.log(
296
291
  "makeDelegateTaskButtonAnnex",
297
292
  this.otherList,
298
293
  this.limit,
299
294
  this.requires,
300
295
  this.labels
301
- );
296
+ ); */
302
297
  }
303
298
  },
304
299
 
305
300
  handleCallback(res) {
301
+ this.visible = false;
306
302
  this.multiNodeParticipant[this.partObjId] = [];
307
303
  this.partNode[this.partObjId] = [];
308
304
  res.map((v, i) => {
309
305
  this.multiNodeParticipant[this.partObjId].push(v.uid);
310
306
  this.partNode[this.partObjId].push(v.name);
307
+ this.entity.checkedArray.push({
308
+ type: 3,
309
+ uid: v.uid,
310
+ });
311
311
  });
312
- console.log("callback_OK", res, this.multiNodeParticipant);
312
+ // console.log("callback_OK", res, this.multiNodeParticipant);
313
313
  },
314
314
  handleCancel() {
315
- console.log("cancel_No");
315
+ // console.log("cancel_No");
316
316
  },
317
317
 
318
318
  getValues(data) {
319
- console.log("获取当前附件信息::::", data);
319
+ // console.log("获取当前附件信息::::", data);
320
320
  this.attchLists = data;
321
321
  },
322
322
 
@@ -340,11 +340,11 @@ export default {
340
340
  saveMetaAnnexCmdList: param,
341
341
  }
342
342
  );
343
- console.log("asd", ress);
343
+ // console.log("asd", ress);
344
344
  if (ress.success) {
345
345
  this.$emit("handleClosePopup1");
346
346
  this.handleTips("提交成功!", false, "success");
347
- this.handleFinal()
347
+ this.handleFinal();
348
348
  this.commentMsg = "";
349
349
  } else {
350
350
  this.handleTips("上传失败", true, "error");
@@ -371,7 +371,7 @@ export default {
371
371
 
372
372
  handleFinal() {
373
373
  if (this.param.endFunction) {
374
- this.param.endFunction();
374
+ this.param.endFunction("ccTask");
375
375
  }
376
376
  },
377
377
  },
@@ -436,17 +436,24 @@ export default {
436
436
  margin: 0;
437
437
  text-decoration: inherit;
438
438
  height: 100%;
439
+ font-size: 14px;
440
+ }
441
+
442
+ .process-popup-textarea .textarea-item::placeholder{
443
+ line-height: 4;
439
444
  }
445
+
440
446
  .process-pc-label--re {
441
447
  color: #ee0000;
442
448
  }
443
449
 
444
450
  .process-pc-value--people {
445
451
  width: 100%;
446
- height: 43px;
452
+ min-height: 43px;
447
453
  padding: 10px 26px 10px 0;
448
454
  box-sizing: border-box;
449
455
  position: relative;
456
+ font-size: 14px;
450
457
  }
451
458
 
452
459
  .process-pc-value--people::after {
@@ -458,4 +465,9 @@ export default {
458
465
  bottom: 0;
459
466
  left: 0;
460
467
  }
468
+
469
+ ::v-deep .departPerson-main {
470
+ width: 100% !important;
471
+ height: 100% !important;
472
+ }
461
473
  </style>