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,305 +0,0 @@
1
- <template>
2
- <div class="process-popup-content">
3
- <template>
4
- <div class="process-pc-label">
5
- {{ getFirstProcessNode.name }}
6
- <br />
7
- 审批人:
8
- </div>
9
- <div
10
- class="process-pc-value"
11
- @click="handleOpenPopup(getFirstProcessNode.id)"
12
- >
13
- <div class="process-pc-value--people">
14
- <div
15
- class="process-pc-value--data"
16
- v-if="
17
- partNode[getFirstProcessNode.id] &&
18
- partNode[getFirstProcessNode.id].length
19
- "
20
- >
21
- <span
22
- v-for="(v, i) in partNode[getFirstProcessNode.id]"
23
- >
24
- {{ i == 0 ? v : `,${v}` }}
25
- </span>
26
- </div>
27
- <div
28
- v-else
29
- class="process-pc-value--data"
30
- style="color: #888;"
31
- >
32
- <span>
33
- 请选择审批人
34
- </span>
35
- </div>
36
- </div>
37
- </div>
38
- </template>
39
- <TopTips
40
- ref="topTips"
41
- :text="textTips"
42
- :statusTips="statusTips"
43
- :type="typeTips"
44
- />
45
- <TopPopup
46
- v-bind:visible="visible"
47
- v-on:update:visible="(val) => (visible = val)"
48
- titleText="选人"
49
- :isDrawer="true"
50
- >
51
- <departPerson
52
- :visible.sync="visible"
53
- :request="param.request"
54
- :businessId="param.formData.businessKey"
55
- v-bind="entity"
56
- @callback="handleCallback"
57
- @cancel="handleCancel"
58
- >
59
- </departPerson>
60
- </TopPopup>
61
- </div>
62
- </template>
63
- <script>
64
- import TopTips from "../../tip/index.vue";
65
- import attchViews from "../../attchUpload/index.vue";
66
- import TopPopup from "../../popup/index.vue";
67
- import { departPerson } from "checked-pick-app";
68
- export default {
69
- name: "restart",
70
- props: {
71
- param: {
72
- type: Object,
73
- defalut: () => {},
74
- },
75
- },
76
- components: {
77
- TopTips,
78
- attchViews,
79
- TopPopup,
80
- departPerson,
81
- },
82
- data() {
83
- return {
84
- commentMsg: "",
85
- style: {
86
- color: "#333",
87
- disableColor: "#F7F6F6",
88
- },
89
- textTips: "",
90
- statusTips: false,
91
- typeTips: "success",
92
- // annex 附件属性
93
- limit: "",
94
- requires: "",
95
- labels: "",
96
- otherList: "",
97
- attchLists: [],
98
- // next
99
- nextNodeData: [],
100
- taskNode: [],
101
-
102
- outGatewayUserTaskModel: [],
103
- formData: {},
104
-
105
- // 选人组件
106
- visible: false,
107
- entity: {
108
- source: "0",
109
- type: "0", //'http://59.53.91.231:2100' 0002
110
- businessId: this.param.businessKey,
111
- codeType: [3], // 可选类型 1-主体 2-部门 3-人员
112
- multiple: true, // 是否多选
113
- },
114
- /* {
115
- source: "0",
116
- type: "0",
117
- request: this.param.request, //'http://59.53.91.231:2100' 0002
118
- businessId: "6a9aaf5742572e82b5d89d6f7e52e2f2",
119
- codeType: [3], // 可选类型 1-主体 2-部门 3-人员
120
- multiple: true, // 是否多选
121
- } */
122
- // 存储选人信息
123
- multiNodeParticipant: {},
124
- // 当前评估对象
125
- partObjId: [],
126
- // 选中人员信息
127
- partNode: {},
128
- getFirstProcessNode: {},
129
- };
130
- },
131
- watch: {
132
- param: {
133
- handler(val, preVal) {
134
- console.log("handler::::", val);
135
- this.getFirstProcessNode = val.getFirstProcessNode;
136
- if (val.getFirstProcessNode && this.getFirstProcessNode) {
137
- if (
138
- val.getFirstProcessNode.type == "userTask" ||
139
- val.getFirstProcessNode.type == "UserTaskModel"
140
- ) {
141
- this.entity.multiple = false;
142
- this.entity.codeType = [3];
143
- this.entity.source = "1";
144
- } else if (
145
- val.getFirstProcessNode.type == "ExclusiveGatewayModel"
146
- ) {
147
- } else if (
148
- val.getFirstProcessNode.type == "InclusiveGatewayModel"
149
- ) {
150
- }
151
- }
152
- },
153
- immediate: true,
154
- deep: true,
155
- },
156
- },
157
- created() {
158
- console.log("isVue2", this.param);
159
- },
160
- methods: {
161
- handleOpenPopup(id) {
162
- this.visible = true;
163
- this.partObjId = id;
164
- },
165
- async confirm() {
166
- let params = {
167
- isClearHistory: false,
168
- processInstId: this.param.processInstId,
169
- reactivateReason: "重新提交",
170
- multiNodeParticipant: this.multiNodeParticipant,
171
- };
172
- this.handleTips("", true, "loading");
173
- await this.param.request
174
- .post("/aws/pis/reactivate", params)
175
- .then((res) => {
176
- if (res.code == 200) {
177
- this.$emit("handleClosePopup1");
178
- this.handleTips("提交成功!", false, "success");
179
- this.handleFinal();
180
- } else {
181
- this.handleTips(res.msg, true, "error");
182
- }
183
- });
184
- },
185
-
186
- handleCallback(res) {
187
- this.multiNodeParticipant[this.partObjId] = [];
188
- this.partNode[this.partObjId] = [];
189
- res.map((v, i) => {
190
- this.multiNodeParticipant[this.partObjId].push(v.uid);
191
- this.partNode[this.partObjId].push(v.name);
192
- });
193
- console.log("callback_OK", res, this.multiNodeParticipant);
194
- },
195
- handleCancel() {
196
- console.log("cancel_No");
197
- },
198
-
199
- isOption(humanPerformer) {
200
- return (
201
- humanPerformer == "任意指定" ||
202
- humanPerformer == "固定部门" ||
203
- humanPerformer == "固定单位" ||
204
- humanPerformer == "与流程申请人所在组织结构的位置相关" ||
205
- humanPerformer == "固定群组"
206
- );
207
- },
208
-
209
- handleTips(text, status, type) {
210
- this.textTips = text;
211
- this.statusTips = status;
212
- this.typeTips = type;
213
- this.$refs.topTips.handleOpen();
214
- },
215
-
216
- handleFinal() {
217
- if (this.param.endFunction) {
218
- this.param.endFunction();
219
- }
220
- },
221
- },
222
- };
223
- </script>
224
- <style scoped>
225
- .process-popup-content {
226
- flex: 1;
227
- }
228
-
229
- .process-popup-content .process-pc-label {
230
- font-size: 15px;
231
- display: flex;
232
- align-items: center;
233
- font-weight: 400;
234
- color: #333333;
235
- padding-top: 20px;
236
- padding-bottom: 5px;
237
- }
238
-
239
- .process-popup-content .process-pc-value .van-field {
240
- border-bottom: 1px solid #e8e8e8;
241
- padding: 0;
242
- }
243
-
244
- .input-padding {
245
- padding: 0;
246
- }
247
-
248
- .process-popup-textarea {
249
- position: relative;
250
- width: 100%;
251
- height: 62px;
252
- min-height: 62px;
253
- }
254
-
255
- .process-popup-textarea::after {
256
- position: absolute;
257
- content: "";
258
- width: 100%;
259
- height: 1px;
260
- background-color: #f2f2f2;
261
- bottom: 0;
262
- left: 0;
263
- }
264
-
265
- .process-popup-textarea .textarea-item {
266
- resize: none;
267
- background: none;
268
- color: inherit;
269
- opacity: 1;
270
- font: inherit;
271
- line-height: inherit;
272
- letter-spacing: inherit;
273
- text-align: inherit;
274
- text-indent: inherit;
275
- text-transform: inherit;
276
- text-shadow: inherit;
277
- outline: none;
278
- border: none;
279
- padding: 0;
280
- margin: 0;
281
- text-decoration: inherit;
282
- height: 100%;
283
- }
284
- .process-pc-label--re {
285
- color: #ee0000;
286
- }
287
-
288
- .process-pc-value--people {
289
- width: 100%;
290
- height: 43px;
291
- padding: 10px 26px 10px 0;
292
- box-sizing: border-box;
293
- position: relative;
294
- }
295
-
296
- .process-pc-value--people::after {
297
- position: absolute;
298
- content: "";
299
- width: 100%;
300
- height: 1px;
301
- background-color: #e8e8e8;
302
- bottom: 0;
303
- left: 0;
304
- }
305
- </style>
@@ -1,296 +0,0 @@
1
- import { defineComponent } from "vue-demi";
2
- import TopPopup from "../popup/index.vue";
3
- import TopDownSelect from "../downSelect/index.vue";
4
- import PreviewImage from "../previewImage/index.vue";
5
- import { departPerson } from "checked-pick-app";
6
- import TopTips from "../tip/index.vue";
7
-
8
- export default defineComponent({
9
- name: "TopSubmitPopup",
10
- components: {
11
- TopPopup,
12
- TopDownSelect,
13
- PreviewImage,
14
- departPerson,
15
- TopTips,
16
- },
17
- props: {
18
- visible: {
19
- type: Boolean,
20
- default: false,
21
- },
22
- // 请求
23
- request: {
24
- type: Function,
25
- default: () => {
26
- return { get: () => {}, post: () => {}, upload: () => {} };
27
- },
28
- },
29
- // appid
30
- appId: {
31
- type: String,
32
- default: "",
33
- },
34
- // 区分
35
- processName: {
36
- type: String,
37
- default: "",
38
- },
39
- // 是否为重新提交
40
- resubmit: {
41
- type: Boolean,
42
- default: false,
43
- },
44
- // 业务id
45
- id: {
46
- type: String,
47
- default: "",
48
- },
49
- // 业务
50
- businessType: {
51
- type: [String, Number],
52
- },
53
- // todoParameter
54
- todoParameter: {
55
- type: Object,
56
- default() {
57
- return {};
58
- },
59
- },
60
- // 是否清除送审记录
61
- isClearHistory: {
62
- type: Boolean,
63
- default: false,
64
- },
65
- // title
66
- title: {
67
- type: String,
68
- default: "测试",
69
- },
70
- },
71
- data() {
72
- return {
73
- show: false,
74
- option: [],
75
- checkedItem: {},
76
- personList: [],
77
- trackUrl: [],
78
- taskurlshow: false,
79
- isStyle: "width:35%",
80
- visiblePerson: false,
81
- entity: {
82
- source: "0",
83
- type: "0",
84
- request: this.request, //'http://59.53.91.231:2100' 0002
85
- /* businessId: this.param.businessKey, */
86
- codeType: [3], // 可选类型 1-主体 2-部门 3-人员
87
- multiple: false, // 是否多选
88
- },
89
-
90
- multiNodeParticipant: {},
91
- partNode: {},
92
- personObjId: "",
93
-
94
- // 流程id
95
- processId: "",
96
-
97
- // 提示弹窗
98
- textTips: "",
99
- statusTips: false,
100
- typeTips: "success",
101
- firstPerson: [],
102
- //
103
- };
104
- },
105
- watch: {
106
- visible: {
107
- async handler(val, preVal) {
108
- this.show = val;
109
- this.$emit("update:visible", this.show);
110
-
111
- // 流程列表
112
- await this.request
113
- .get("/aws/repository/getProcessDefList", {
114
- params: {
115
- appId: this.appId,
116
- },
117
- })
118
- .then((res) => {
119
- console.log("获取流程::", res);
120
- if (res.code == 200) {
121
- this.option = res.data;
122
- this.checkedItem = this.option[0];
123
- this.getAfferentParticipantNodeList();
124
- this.getDiagramUrl();
125
- }
126
- });
127
-
128
- // 第一个流程节点
129
- await this.request
130
- .get("/aws/repository/getFirstProcessNode", {
131
- params: {
132
- processDefId: this.checkedItem.id,
133
- },
134
- })
135
- .then((res) => {
136
- // console.log("getFirstProcessNode", res);
137
- if (res.code === 200) {
138
- this.firstPerson = res.data;
139
- }
140
- });
141
- },
142
- immediate: true,
143
- },
144
- },
145
-
146
- methods: {
147
- handleChange(item) {
148
- console.log("当前选择::::", item);
149
- this.checkedItem = item;
150
- this.getAfferentParticipantNodeList();
151
- this.getDiagramUrl();
152
- },
153
- // 获取当前流程下所有节点
154
- getAfferentParticipantNodeList() {
155
- this.request
156
- .get("/aws/repository/getAfferentParticipantNodeList", {
157
- params: {
158
- processDefId: this.checkedItem.id,
159
- },
160
- })
161
- .then((res) => {
162
- if (res.code == 200) {
163
- this.personList = res.data.slice(1);
164
- }
165
- });
166
- },
167
- // 获取流程图
168
- getDiagramUrl() {
169
- this.request
170
- .get("/aws/repository/getDiagramUrl", {
171
- params: {
172
- processDefId: this.checkedItem.id,
173
- diagramType: 1,
174
- type: "pc",
175
- },
176
- })
177
- .then((res) => {
178
- if (res.code == 200) {
179
- this.trackUrl = [res.data];
180
- }
181
- });
182
- },
183
- // 呼出选人
184
- handleOpenPerson(item) {
185
- console.log("选人弹窗", item);
186
- this.visiblePerson = true;
187
- this.personObjId = item.id;
188
- },
189
- handleCallback(res) {
190
- this.multiNodeParticipant[this.personObjId] = [];
191
- this.partNode[this.personObjId] = [];
192
- res.map((v, i) => {
193
- this.multiNodeParticipant[this.personObjId].push(v.uid);
194
- this.partNode[this.personObjId].push(v.name);
195
- });
196
- console.log("callback_OK", res, this.multiNodeParticipant);
197
- },
198
- handleCancel() {
199
- console.log("cancel_No");
200
- },
201
- async handleSumbit() {
202
- // 验证
203
- if (this.firstPerson && this.firstPerson.length) {
204
- if (!this.multiNodeParticipant[this.firstPerson[0].id]) {
205
- this.handleTips(
206
- `${this.firstPerson[0].name}节点未选择审批人`,
207
- true,
208
- "error"
209
- );
210
- return;
211
- }
212
- }
213
-
214
- // 送审
215
- this.handleTips("", true, "loading");
216
- if (this.resubmit) {
217
- console.log("送审重新提交", this.multiNodeParticipant);
218
- await this.request
219
- .post("/aws/pis/reactivate", {
220
- processInstId:
221
- this.processId ||
222
- "572405e4-e0dc-40fc-9a95-2b20f5bdfbf1",
223
- isClearHistory: this.isClearHistory,
224
- reactivateReason: "重新提交",
225
- multiNodeParticipant: this.multiNodeParticipant,
226
- })
227
- .then((res) => {
228
- if (res.code == 200) {
229
- this.show = false;
230
- this.handleTips("提交成功!", false, "success");
231
- } else {
232
- this.handleTips(res.msg, true, "error");
233
- }
234
- })
235
- .catch((error) => {
236
- this.handleTips(error.msg, true, "error");
237
- });
238
- } else {
239
- console.log("送审首次提交", this.multiNodeParticipant);
240
- await this.request
241
- .post("/aws/pis/createAndStart", {
242
- title: this.title,
243
- processDefId: this.checkedItem.id,
244
- processBusinessKey: this.id,
245
- showType: "app",
246
- businessType: this.businessType,
247
- multiNodeParticipant: this.multiNodeParticipant,
248
- todoParameter: this.todoParameter,
249
- })
250
- .then((res) => {
251
- if (res.code === 200) {
252
- this.show = false;
253
- this.handleTips("提交成功!", false, "success");
254
- } else if (res.code == 499) {
255
- this.request
256
- .post("/aws/pis/reactivate", {
257
- processInstId:
258
- this.processId ||
259
- "572405e4-e0dc-40fc-9a95-2b20f5bdfbf1",
260
- isClearHistory: this.isClearHistory,
261
- reactivateReason: "重新提交",
262
- multiNodeParticipant: this
263
- .multiNodeParticipant,
264
- })
265
- .then((res) => {
266
- if (res.code == 200) {
267
- this.show = false;
268
- this.handleTips(
269
- "提交成功!",
270
- false,
271
- "success"
272
- );
273
- } else {
274
- this.handleTips(res.msg, true, "error");
275
- }
276
- })
277
- .catch((error) => {
278
- this.handleTips(error.msg, true, "error");
279
- });
280
- } else {
281
- this.handleTips(res.msg, true, "error");
282
- }
283
- })
284
- .catch((error) => {
285
- this.handleTips(error.msg, true, "error");
286
- });
287
- }
288
- },
289
- handleTips(text, status, type) {
290
- this.textTips = text;
291
- this.statusTips = status;
292
- this.typeTips = type;
293
- this.$refs.topTips.handleOpen();
294
- },
295
- },
296
- });
@@ -1,83 +0,0 @@
1
- .textnone {
2
- text-align: center;
3
- margin-top: 30px;
4
- color: #999;
5
- font-size: 14px;
6
- }
7
-
8
- .viewTrack {
9
- width: 100%;
10
- height: 48px;
11
- display: flex;
12
- justify-content: center;
13
- align-items: center;
14
- font-size: 15px;
15
- color: #1389ff;
16
- }
17
-
18
- .person-views {
19
- .views-items {
20
- width: 100%;
21
- height: 48px;
22
- display: flex;
23
- justify-content: center;
24
- align-items: center;
25
- font-size: 15px;
26
- display: flex;
27
- justify-content: space-between;
28
- align-items: center;
29
- padding: 0 20px;
30
- box-sizing: border-box;
31
-
32
- &-set {
33
- width: 50%;
34
- display: flex;
35
- flex-basis: fit-content;
36
- align-items: center;
37
- &-btn {
38
- color: #1389ff;
39
- margin-left: 10px;
40
- min-width: 30px;
41
- }
42
- }
43
-
44
- &-name {
45
- width: 50%;
46
- &--re {
47
- color: #ee0000;
48
- }
49
- }
50
- }
51
-
52
- &-white{
53
- text-align: center;
54
- }
55
- }
56
-
57
- .person-btn {
58
- display: flex;
59
- min-height: 60px;
60
- padding-top: 5px;
61
- background: #fff;
62
- border-top: 1px solid #dddddf9e;
63
- box-sizing: border-box;
64
- justify-content: center;
65
- align-items: center;
66
- flex-direction: row-reverse;
67
- position: fixed;
68
- bottom: 0;
69
- width: 100%;
70
-
71
- .top-button {
72
- width: 100%;
73
- border-radius: 20px;
74
- height: 36px;
75
- background-color: #3c9cff;
76
- color: #fff;
77
- font-size: 14px;
78
- justify-content: center;
79
- display: flex;
80
- align-items: center;
81
- margin: 0 5px;
82
- }
83
- }