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,25 +1,39 @@
1
1
  <template>
2
2
  <div>
3
3
  <div class="process-warp">
4
- <div class="process-main" v-if="processStatus.status">
4
+ <div
5
+ class="process-main"
6
+ v-if="
7
+ formData.currentState ||
8
+ processStatus.bizStatusName ||
9
+ processStatus.status
10
+ "
11
+ id="process-header"
12
+ ref="processheader"
13
+ >
5
14
  <div class="process-ml-item border">
6
15
  <div class="process-mli-name">流程状态</div>
7
- <!-- <div class="process-mli-name" @click="handleTest">测试</div> -->
16
+ <!-- <div class="process-mli-name" @click="handleTestS">测试</div> -->
8
17
  <div class="process-mli-value">
9
18
  <div
10
19
  class="process-mliv-dd"
11
20
  :style="{
12
- background: getColor(processStatus.status),
21
+ background: getColor(
22
+ formData.currentState ||
23
+ processStatus.bizStatusName ||
24
+ processStatus.status
25
+ ),
13
26
  }"
14
27
  v-if="
15
- processStatus.status ||
16
- processStatus.bizStatusName
28
+ formData.currentState ||
29
+ processStatus.bizStatusName ||
30
+ processStatus.status
17
31
  "
18
32
  >
19
33
  {{
20
- processStatus.bizStatusName
21
- ? processStatus.bizStatusName
22
- : processStatus.status
34
+ formData.currentState ||
35
+ processStatus.bizStatusName ||
36
+ processStatus.status
23
37
  }}
24
38
  </div>
25
39
  </div>
@@ -39,7 +53,10 @@
39
53
  "
40
54
  >
41
55
  <div class="process-mli-name">审批节点</div>
42
- <div class="process-mli-value">
56
+ <div
57
+ class="process-mli-value"
58
+ style="width: 50%; text-align: right;"
59
+ >
43
60
  <span class="process-mliv-jd">{{
44
61
  `${
45
62
  processStatus.taskState == 4
@@ -59,48 +76,90 @@
59
76
  :taskComment="taskCommentList"
60
77
  :trackList="trackList"
61
78
  >
62
- <template #default><slot></slot></template>
79
+ <template v-if="selfTapList && selfTapList.length">
80
+ <div
81
+ v-for="(v, i) in selfTapList"
82
+ :key="i"
83
+ :slot="v.slot"
84
+ >
85
+ <slot :name="v.slot"></slot>
86
+ </div>
87
+ </template>
88
+ <template v-else>
89
+ <div slot="default" style="100%">
90
+ <slot name="default"> </slot>
91
+ </div>
92
+ <div
93
+ style="100%"
94
+ v-for="(v, i) in tapList"
95
+ :key="i"
96
+ :slot="v.slot"
97
+ >
98
+ <slot :name="v.slot"></slot>
99
+ </div>
100
+ </template>
63
101
  </TopTab>
64
102
  </div>
65
- <div class="process-foot" v-if="isAdditional">
66
- <div class="footBtnRow">
67
- <slot name="btn"></slot>
103
+ <div
104
+ class="process-btn"
105
+ id="process-footer"
106
+ :style="{ bottom: processBtn }"
107
+ v-if="!isView"
108
+ >
109
+ <div class="footBtnRow" v-if="isAdditional">
110
+ <slot name="btn" :data="processStatus"></slot>
68
111
  </div>
69
- </div>
70
- <div class="process-btn">
71
- <template v-if="processStatus.status != '已完成'">
72
- <div
112
+ <template v-else>
113
+ <template
73
114
  v-if="
74
- processStatus.status === '已撤销' ||
75
- processStatus.status === '已驳回'
115
+ isDocument &&
116
+ (formData.currentState == '编文号套红' ||
117
+ formData.currentState == '盖章')
76
118
  "
77
- class="top-button"
78
- :style="getBtnStyle('default')"
79
- @click="handleRestart"
80
119
  >
81
- 重新提交
82
- </div>
83
- <template v-else v-for="(item, index) in operBtn">
120
+ <div class="top-button" :style="getBtnStyle('default')">
121
+ 请去PC端处理该流程
122
+ </div>
123
+ </template>
124
+ <template v-else>
125
+ <template
126
+ v-if="
127
+ formData.currentState != '已完成' ||
128
+ processStatus.status != '已完成' ||
129
+ processStatus.bizStatusName != '已完成'
130
+ "
131
+ >
132
+ <template v-for="(item, index) in operBtn">
133
+ <div
134
+ class="top-button"
135
+ :style="
136
+ getBtnStyle(
137
+ item.btnProps.type.toString()
138
+ )
139
+ "
140
+ :key="item.name"
141
+ v-if="index < 3"
142
+ @click="item.click(item.name)"
143
+ >
144
+ {{ item.name }}
145
+ </div>
146
+ </template>
147
+ </template>
84
148
  <div
85
- class="top-button"
86
- :style="getBtnStyle(item.btnProps.type.toString())"
87
- :key="item.name"
88
- v-if="index < 3"
89
- @click="item.click(item.name)"
149
+ class="elips"
150
+ v-if="
151
+ operBtn.length > 3 &&
152
+ actionBtn &&
153
+ actionBtn.length
154
+ "
155
+ @click="handleActionOpen"
90
156
  >
91
- {{ item.name }}
157
+ <div class="circle"></div>
158
+ <div class="circle"></div>
159
+ <div class="circle"></div>
92
160
  </div>
93
161
  </template>
94
162
  </template>
95
- <div
96
- class="elips"
97
- v-if="operBtn.length > 3 && actionBtn && actionBtn.length"
98
- @click="handleActionOpen"
99
- >
100
- <div class="circle"></div>
101
- <div class="circle"></div>
102
- <div class="circle"></div>
103
- </div>
104
163
  </div>
105
164
  </div>
106
165
  <TopPopup
@@ -108,6 +167,7 @@
108
167
  :cancel="handleCancel"
109
168
  :comfig="handleComfig"
110
169
  :titleText="titleText"
170
+ :visible.sync="TopPopup1"
111
171
  >
112
172
  <!-- @success="operationSuccess"
113
173
  @fail="operationFail" -->
@@ -181,6 +241,20 @@
181
241
  : 'visibility: hidden; opacity: 0;'
182
242
  "
183
243
  ></div>
244
+ <TopSumbitPopup
245
+ :visible.sync="visibleSong"
246
+ ref="actionPop"
247
+ :request="request"
248
+ :appId="processStatus.appId"
249
+ :id="formData.businessKey"
250
+ :resubmit="true"
251
+ v-bind="restartDataS"
252
+ @successFn="endFunction"
253
+ :selfList="selfList"
254
+ @change="handleTestsss"
255
+ ></TopSumbitPopup>
256
+ <!-- @change="handleChange"
257
+ :todoParameter="todoParameter" :resubmit="resubmit" :beforeFunction="saveAndStart" -->
184
258
  </div>
185
259
  </template>
186
260
  <script src="./index.js"></script>
@@ -25,6 +25,15 @@
25
25
  ></TopDownSelect>
26
26
  </div>
27
27
 
28
+ <div v-if="param.isMsg">
29
+ <div
30
+ class="process-radio-item"
31
+ @click="handleOpenMsg()"
32
+ style="color: #1389ff; font-size: 14px;"
33
+ >
34
+ 常用意见
35
+ </div>
36
+ </div>
28
37
  <div class="process-pc-label">
29
38
  退回理由: <span class="process-pc-label--re">*</span>
30
39
  </div>
@@ -39,6 +48,11 @@
39
48
  maxlength="200"
40
49
  ></textarea>
41
50
  </div>
51
+ <div class="msg-btn" v-if="param.isMsg">
52
+ <span class="msg-btn-click" @click="handleMakeMsg()"
53
+ >设置为常用意见</span
54
+ >
55
+ </div>
42
56
  </div>
43
57
 
44
58
  <TopTips
@@ -47,23 +61,32 @@
47
61
  :statusTips="statusTips"
48
62
  :type="typeTips"
49
63
  />
50
- <!-- <TopPopup
51
- v-bind:visible="visible"
52
- v-on:update:visible="(val) => (visible = val)"
64
+ <TopPopup
65
+ v-bind:visible="visibleListMsg"
66
+ v-on:update:visible="(val) => (visibleListMsg = val)"
53
67
  ref="TopPopup"
54
- titleText="选人"
68
+ titleText="常用意见"
55
69
  :isDrawer="true"
56
70
  >
57
- <departPerson
58
- :visible.sync="visible"
71
+ <MsgList
72
+ :visible="visibleListMsg"
59
73
  :request="param.request"
60
- :businessId="param.formData.businessKey"
61
- v-bind="entity"
62
- @callback="handleCallback"
63
- @cancel="handleCancel"
64
- >
65
- </departPerson>
66
- </TopPopup> -->
74
+ :useInfo="param.userInfo"
75
+ @handleTips="handleTips"
76
+ @handleMsg="handleMsg"
77
+ ></MsgList>
78
+ </TopPopup>
79
+
80
+ <TopPopup
81
+ titleText="操作消息提示"
82
+ :isTips="true"
83
+ :context="`将${commentMsg}设置为常用意见`"
84
+ :cancel="handleTipsCancel"
85
+ :comfig="handleTipsComfig"
86
+ v-bind:visible="visibleMsgComfig"
87
+ v-on:update:visible="(val) => (visibleMsgComfig = val)"
88
+ >
89
+ </TopPopup>
67
90
 
68
91
  <attchViews
69
92
  v-if="labels == '退回'"
@@ -81,6 +104,7 @@ import attchViews from "../../attchUpload/index.vue";
81
104
  import TopPopup from "../../popup/index.vue";
82
105
  import TopDownSelect from "../../downSelect/index.vue";
83
106
  import { departPerson } from "checked-pick-app";
107
+ import MsgList from "./msgList.vue";
84
108
  export default {
85
109
  name: "backNode",
86
110
  props: {
@@ -95,6 +119,7 @@ export default {
95
119
  TopPopup,
96
120
  departPerson,
97
121
  TopDownSelect,
122
+ MsgList,
98
123
  },
99
124
  data() {
100
125
  return {
@@ -125,9 +150,9 @@ export default {
125
150
  source: "0",
126
151
  type: "0",
127
152
  request: this.param.request, //'http://59.53.91.231:2100' 0002
128
- businessId: this.param.businessKey,
129
153
  codeType: [3], // 可选类型 1-主体 2-部门 3-人员
130
154
  multiple: true, // 是否多选
155
+ checkedArray: [],
131
156
  },
132
157
  /* {
133
158
  source: "0",
@@ -146,6 +171,10 @@ export default {
146
171
  // 下拉节点
147
172
  option: [],
148
173
  nodeId: "",
174
+
175
+ actionName: "",
176
+ visibleListMsg: false,
177
+ visibleMsgComfig: false,
149
178
  };
150
179
  },
151
180
  watch: {
@@ -154,6 +183,9 @@ export default {
154
183
  this.nextNodeData = val.nextNodeData;
155
184
  this.taskNode = val.taskNode;
156
185
  this.outGatewayUserTaskModel = val.outGatewayUserTaskModel;
186
+ this.entity.checkedArray = [];
187
+
188
+ this.actionName = val.actionName;
157
189
  },
158
190
  immediate: true,
159
191
  deep: true,
@@ -164,8 +196,45 @@ export default {
164
196
  this.getReturnNode();
165
197
  },
166
198
  methods: {
199
+ // 设置msg
200
+ handleMakeMsg() {
201
+ if (this.commentMsg == "" && !this.commentMsg.length) {
202
+ this.handleTips("请输入审批意见!", false, "success");
203
+ this.visibleMsgComfig = false;
204
+ } else {
205
+ this.visibleMsgComfig = true;
206
+ }
207
+ },
208
+ handleOpenMsg() {
209
+ this.visibleListMsg = true;
210
+ },
211
+ handleTipsCancel() {
212
+ this.visibleMsgComfig = false;
213
+ },
214
+ handleTipsComfig() {
215
+ this.handleTips("", true, "loading");
216
+ this.visibleMsgComfig = false;
217
+ this.param.request
218
+ .post("/auth//user/opinion/save", {
219
+ opinionName: this.commentMsg,
220
+ })
221
+ .then((res) => {
222
+ if (res.code === 200) {
223
+ this.handleTips("设置成功!", true, "success");
224
+ } else {
225
+ this.handleTips(res.msg, true, "error");
226
+ }
227
+ })
228
+ .catch((error) => {
229
+ this.handleTips(error.msg, true, "error");
230
+ });
231
+ },
232
+ handleMsg(val) {
233
+ this.commentMsg = val;
234
+ this.visibleListMsg = false;
235
+ },
167
236
  getReturnNode() {
168
- console.log("this.param.taskInstId", this.param.taskInstId);
237
+ // console.log("this.param.taskInstId", this.param.taskInstId);
169
238
  this.param.request
170
239
  .get("/aws/tis/getReturnableNodes", {
171
240
  params: { taskId: this.param.taskInstId },
@@ -177,7 +246,7 @@ export default {
177
246
  });
178
247
  },
179
248
  handleChange(val) {
180
- console.log("退回节点,", val);
249
+ // console.log("退回节点,", val);
181
250
  this.nodeId = val.id;
182
251
  },
183
252
  handleOpenPopup(id) {
@@ -208,6 +277,7 @@ export default {
208
277
  if (res.code == 200) {
209
278
  this.$emit("handleClosePopup1");
210
279
  this.handleTips("提交成功!", false, "success");
280
+ this.handleFinal();
211
281
  this.commentMsg = "";
212
282
  } else {
213
283
  this.handleTips(res.msg, true, "error");
@@ -224,31 +294,36 @@ export default {
224
294
  this.limit = str[2];
225
295
  this.requires = JSON.parse(str[1]);
226
296
  this.labels = str[0];
227
- console.log(
297
+ /* console.log(
228
298
  "makeDelegateTaskButtonAnnex",
229
299
  this.otherList,
230
300
  this.limit,
231
301
  this.requires,
232
302
  this.labels
233
- );
303
+ ); */
234
304
  }
235
305
  },
236
306
 
237
307
  handleCallback(res) {
308
+ this.visible = false;
238
309
  this.multiNodeParticipant[this.partObjId] = [];
239
310
  this.partNode[this.partObjId] = [];
240
311
  res.map((v, i) => {
241
312
  this.multiNodeParticipant[this.partObjId].push(v.uid);
242
313
  this.partNode[this.partObjId].push(v.name);
314
+ this.entity.checkedArray.push({
315
+ type: 3,
316
+ uid: v.uid,
317
+ });
243
318
  });
244
- console.log("callback_OK", res, this.multiNodeParticipant);
319
+ // console.log("callback_OK", res, this.multiNodeParticipant);
245
320
  },
246
321
  handleCancel() {
247
- console.log("cancel_No");
322
+ // console.log("cancel_No");
248
323
  },
249
324
 
250
325
  getValues(data) {
251
- console.log("获取当前附件信息::::", data);
326
+ // console.log("获取当前附件信息::::", data);
252
327
  this.attchLists = data;
253
328
  },
254
329
 
@@ -272,11 +347,11 @@ export default {
272
347
  saveMetaAnnexCmdList: param,
273
348
  }
274
349
  );
275
- console.log("asd", ress);
350
+ // console.log("asd", ress);
276
351
  if (ress.success) {
277
352
  this.$emit("handleClosePopup1");
278
353
  this.handleTips("提交成功!", false, "success");
279
- this.handleFinal()
354
+ this.handleFinal();
280
355
  this.commentMsg = "";
281
356
  } else {
282
357
  this.handleTips("上传失败", true, "error");
@@ -303,7 +378,7 @@ export default {
303
378
 
304
379
  handleFinal() {
305
380
  if (this.param.endFunction) {
306
- this.param.endFunction();
381
+ this.param.endFunction("退回");
307
382
  }
308
383
  },
309
384
  },
@@ -368,6 +443,11 @@ export default {
368
443
  margin: 0;
369
444
  text-decoration: inherit;
370
445
  height: 100%;
446
+ font-size: 14px;
447
+ }
448
+
449
+ .process-popup-textarea .textarea-item::placeholder {
450
+ line-height: 4;
371
451
  }
372
452
  .process-pc-label--re {
373
453
  color: #ee0000;
@@ -375,7 +455,7 @@ export default {
375
455
 
376
456
  .process-pc-value--people {
377
457
  width: 100%;
378
- height: 43px;
458
+ min-height: 43px;
379
459
  padding: 10px 26px 10px 0;
380
460
  box-sizing: border-box;
381
461
  position: relative;
@@ -390,4 +470,16 @@ export default {
390
470
  bottom: 0;
391
471
  left: 0;
392
472
  }
473
+
474
+ ::v-deep .departPerson-main {
475
+ width: 100% !important;
476
+ height: 100% !important;
477
+ }
478
+
479
+ .msg-btn {
480
+ font-size: 14px;
481
+ margin: 8px 0;
482
+ text-align: right;
483
+ color: #1890ff;
484
+ }
393
485
  </style>