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
@@ -1,178 +0,0 @@
1
- <template>
2
- <div class="process-popup-content">
3
- <div class="process-pc-label">加签理由:</div>
4
- <div class="process-pc-value">
5
- <div v-if="VueVersion">
6
- <uni-easyinput
7
- :clearable="false"
8
- placeholder="请输入加签理由(200字以内)"
9
- :styles="style"
10
- type="textarea"
11
- v-model="commentMsg"
12
- />
13
- </div>
14
- <div v-else>
15
- <!-- <van-field
16
- v-model="commentMsg"
17
- rows="2"
18
- label=""
19
- type="textarea"
20
- show-word-limit
21
- placeholder="请输入加签理由(200字以内)"
22
- /> -->
23
- <div class="process-popup-textarea">
24
- <textarea
25
- v-model="commentMsg"
26
- class="textarea-item"
27
- name="description"
28
- cols="40"
29
- placeholder="请输入加签理由(200字以内)"
30
- maxlength="200"
31
- ></textarea>
32
- </div>
33
- </div>
34
- </div>
35
- <TopTips
36
- ref="topTips"
37
- :text="textTips"
38
- :statusTips="statusTips"
39
- :type="typeTips"
40
- />
41
- <!-- <attchViews
42
- v-if="labels == '1'"
43
- :limit="limit ? limit : -1"
44
- :require="require"
45
- @getValue="getValues"
46
- ref="attchViewsa"
47
- /> -->
48
- </div>
49
- </template>
50
- <script>
51
- import { isVue2 } from "vue-demi";
52
- import TopTips from "../tip.vue";
53
- export default {
54
- name: "counterSign",
55
- props: {
56
- param: {
57
- defalut: () => {},
58
- },
59
- },
60
- components: {
61
- TopTips,
62
- },
63
- data() {
64
- return {
65
- VueVersion: isVue2,
66
- commentMsg: "",
67
- style: {
68
- color: "#333",
69
- disableColor: "#F7F6F6",
70
- },
71
- textTips: "",
72
- statusTips: false,
73
- typeTips: "success",
74
- };
75
- },
76
- created() {
77
- console.log("isVue2", isVue2);
78
- },
79
- methods: {
80
- confirm() {
81
- if (!this.commentMsg) {
82
- this.textTips = "请输入加签理由!";
83
- this.$refs.topTips.handleOpen();
84
- return false;
85
- }
86
- this.handleTips("", true, "loading");
87
- this.param.api
88
- .createDynamicTask({
89
- title:
90
- this.param.formData.title ||
91
- this.param.formData.reason ||
92
- this.param.formData.meetingTheme,
93
- participant: "87026a8df81e0749ae153c5729357b67",
94
- processInstId: this.param.processInstId,
95
- adHocType: 2,
96
- parentTaskInstId: this.param.taskInstId,
97
- reason: this.commentMsg,
98
- })
99
- .then((res) => {
100
- if (res.code == 200) {
101
- this.$emit("handleClosePopup1");
102
- this.handleTips("提交成功!", false, "success");
103
- this.commentMsg = "";
104
- } else {
105
- this.handleTips(res.msg, true, "error");
106
- }
107
- });
108
- },
109
- handleTips(text, status, type) {
110
- this.textTips = text;
111
- this.statusTips = status;
112
- this.typeTips = type;
113
- this.$refs.topTips.handleOpen();
114
- },
115
- },
116
- };
117
- </script>
118
- <style scoped>
119
- .process-popup-content {
120
- flex: 1;
121
- }
122
-
123
- .process-popup-content .process-pc-label {
124
- font-size: 15px;
125
- display: flex;
126
- align-items: center;
127
- font-weight: 400;
128
- color: #333333;
129
- padding-top: 20px;
130
- padding-bottom: 5px;
131
- }
132
-
133
- .process-popup-content .process-pc-value .van-field {
134
- border-bottom: 1px solid #e8e8e8;
135
- padding: 0;
136
- }
137
-
138
- /deep/ .input-padding {
139
- padding: 0;
140
- }
141
-
142
- .process-popup-textarea {
143
- position: relative;
144
- width: 100%;
145
- height: 62px;
146
- min-height: 62px;
147
- }
148
-
149
- .process-popup-textarea::after {
150
- position: absolute;
151
- content: "";
152
- width: 100%;
153
- height: 1px;
154
- background-color: #f2f2f2;
155
- bottom: 0;
156
- left: 0;
157
- }
158
-
159
- .process-popup-textarea .textarea-item {
160
- resize: none;
161
- background: none;
162
- color: inherit;
163
- opacity: 1;
164
- font: inherit;
165
- line-height: inherit;
166
- letter-spacing: inherit;
167
- text-align: inherit;
168
- text-indent: inherit;
169
- text-transform: inherit;
170
- text-shadow: inherit;
171
- outline: none;
172
- border: none;
173
- padding: 0;
174
- margin: 0;
175
- text-decoration: inherit;
176
- height: 100%;
177
- }
178
- </style>
@@ -1,168 +0,0 @@
1
- <template>
2
- <div class="process-popup-content">
3
- <div class="process-pc-label">转审理由:</div>
4
- <div class="process-pc-value">
5
- <div v-if="VueVersion">
6
- <uni-easyinput
7
- :clearable="false"
8
- placeholder="请输入转审理由(200字以内)"
9
- :styles="style"
10
- type="textarea"
11
- v-model="commentMsg"
12
- />
13
- </div>
14
- <div v-else>
15
- <!-- <van-field
16
- v-model="commentMsg"
17
- rows="2"
18
- label=""
19
- type="textarea"
20
- show-word-limit
21
- placeholder="请输入转审理由(200字以内)"
22
- /> -->
23
- <div class="process-popup-textarea">
24
- <textarea
25
- v-model="commentMsg"
26
- class="textarea-item"
27
- name="description"
28
- cols="40"
29
- placeholder="请输入转审理由(200字以内)"
30
- maxlength="200"
31
- ></textarea>
32
- </div>
33
- </div>
34
- </div>
35
- <TopTips ref="topTips" :text="textTips" />
36
- <!-- <attchViews
37
- v-if="labels == '1'"
38
- :limit="limit ? limit : -1"
39
- :require="require"
40
- @getValue="getValues"
41
- ref="attchViewsa"
42
- /> -->
43
- </div>
44
- </template>
45
- <script>
46
- import { isVue2 } from "vue-demi";
47
- import TopTips from "../tip.vue";
48
- export default {
49
- name: "delegateTask",
50
- props: {
51
- param: {
52
- defalut: () => {},
53
- },
54
- },
55
- components: {
56
- TopTips,
57
- },
58
- data() {
59
- return {
60
- VueVersion: isVue2,
61
- commentMsg: "",
62
- style: {
63
- color: "#333",
64
- disableColor: "#F7F6F6",
65
- },
66
- textTips: "",
67
- statusTips: false,
68
- typeTips: "success",
69
- };
70
- },
71
- created() {
72
- console.log("isVue2", isVue2, this.param);
73
- },
74
- methods: {
75
- async confirm() {
76
- if (!this.commentMsg) {
77
- this.textTips = "请输入转审理由!";
78
- this.$refs.topTips.handleOpen();
79
- return;
80
- }
81
-
82
- this.handleTips("", true, "loading");
83
- await this.param.api
84
- .delegate({
85
- delegateReason: this.commentMsg,
86
- taskInstId: this.param.taskInstId,
87
- targetUID: "87026a8df81e0749ae153c5729357b67",
88
- })
89
- .then((res) => {
90
- if (res.code == 200) {
91
- this.$emit("handleClosePopup1");
92
- this.handleTips("提交成功!", false, "success");
93
- this.commentMsg = "";
94
- } else {
95
- this.handleTips(res.msg, true, "error");
96
- }
97
- });
98
- },
99
- handleTips(text, status, type) {
100
- this.textTips = text;
101
- this.statusTips = status;
102
- this.typeTips = type;
103
- this.$refs.topTips.handleOpen();
104
- },
105
- },
106
- };
107
- </script>
108
- <style scoped>
109
- .process-popup-content {
110
- flex: 1;
111
- }
112
-
113
- .process-popup-content .process-pc-label {
114
- font-size: 15px;
115
- display: flex;
116
- align-items: center;
117
- font-weight: 400;
118
- color: #333333;
119
- padding-top: 20px;
120
- padding-bottom: 5px;
121
- }
122
-
123
- .process-popup-content .process-pc-value .van-field {
124
- border-bottom: 1px solid #e8e8e8;
125
- padding: 0;
126
- }
127
-
128
- /deep/ .input-padding {
129
- padding: 0;
130
- }
131
-
132
- .process-popup-textarea {
133
- position: relative;
134
- width: 100%;
135
- height: 62px;
136
- min-height: 62px;
137
- }
138
-
139
- .process-popup-textarea::after {
140
- position: absolute;
141
- content: "";
142
- width: 100%;
143
- height: 1px;
144
- background-color: #f2f2f2;
145
- bottom: 0;
146
- left: 0;
147
- }
148
-
149
- .process-popup-textarea .textarea-item {
150
- resize: none;
151
- background: none;
152
- color: inherit;
153
- opacity: 1;
154
- font: inherit;
155
- line-height: inherit;
156
- letter-spacing: inherit;
157
- text-align: inherit;
158
- text-indent: inherit;
159
- text-transform: inherit;
160
- text-shadow: inherit;
161
- outline: none;
162
- border: none;
163
- padding: 0;
164
- margin: 0;
165
- text-decoration: inherit;
166
- height: 100%;
167
- }
168
- </style>
@@ -1,172 +0,0 @@
1
- <template>
2
- <div class="process-popup-content">
3
- <div class="process-pc-label">重新提交</div>
4
- <div class="process-pc-value">
5
- <div v-if="VueVersion">
6
- <uni-easyinput
7
- :clearable="false"
8
- placeholder="重新提交"
9
- :styles="style"
10
- type="textarea"
11
- v-model="commentMsg"
12
- />
13
- </div>
14
- <div v-else>
15
- <!-- <van-field
16
- v-model="commentMsg"
17
- rows="2"
18
- label=""
19
- type="textarea"
20
- show-word-limit
21
- placeholder="请输入拒绝理由(200字以内)"
22
- /> -->
23
- <div class="process-popup-textarea">
24
- <textarea
25
- v-model="commentMsg"
26
- class="textarea-item"
27
- name="description"
28
- cols="40"
29
- placeholder="重新提交"
30
- maxlength="200"
31
- ></textarea>
32
- </div>
33
- </div>
34
- </div>
35
- <TopTips
36
- ref="topTips"
37
- :text="textTips"
38
- :statusTips="statusTips"
39
- :type="typeTips"
40
- />
41
- <!-- <attchViews
42
- v-if="labels == '1'"
43
- :limit="limit ? limit : -1"
44
- :require="require"
45
- @getValue="getValues"
46
- ref="attchViewsa"
47
- /> -->
48
- </div>
49
- </template>
50
- <script>
51
- import { isVue2 } from "vue-demi";
52
- import TopTips from "../tip.vue";
53
- export default {
54
- name: "restart",
55
- props: {
56
- param: {
57
- defalut: () => {},
58
- },
59
- },
60
- components: {
61
- TopTips,
62
- },
63
- data() {
64
- return {
65
- VueVersion: isVue2,
66
- commentMsg: "",
67
- style: {
68
- color: "#333",
69
- disableColor: "#F7F6F6",
70
- },
71
- textTips: "",
72
- statusTips: false,
73
- typeTips: "success",
74
- };
75
- },
76
- created() {
77
- console.log("isVue2", isVue2, this.param);
78
- },
79
- methods: {
80
- async confirm() {
81
- let params = {
82
- isClearHistory: true,
83
- processInstId: this.param.processInstId,
84
- reactivateReason: "重新提交",
85
- multiNodeParticipant: {
86
- obj_41d255cb314942188d3b1ab7d82daf19: [
87
- "87026a8df81e0749ae153c5729357b67",
88
- ],
89
- },
90
- };
91
- this.handleTips("", true, "loading");
92
- await this.param.api
93
- .reactivate(params)
94
- .then((res) => {
95
- if (res.code == 200) {
96
- this.$emit("handleClosePopup1")
97
- this.handleTips("提交成功!", false, "success");
98
- } else {
99
- this.handleTips(res.msg, true, "error");
100
- }
101
- })
102
- },
103
- handleTips(text, status, type) {
104
- this.textTips = text;
105
- this.statusTips = status;
106
- this.typeTips = type;
107
- this.$refs.topTips.handleOpen();
108
- },
109
- },
110
- };
111
- </script>
112
- <style scoped>
113
- .process-popup-content {
114
- flex: 1;
115
- }
116
-
117
- .process-popup-content .process-pc-label {
118
- font-size: 15px;
119
- display: flex;
120
- align-items: center;
121
- font-weight: 400;
122
- color: #333333;
123
- padding-top: 20px;
124
- padding-bottom: 5px;
125
- }
126
-
127
- .process-popup-content .process-pc-value .van-field {
128
- border-bottom: 1px solid #e8e8e8;
129
- padding: 0;
130
- }
131
-
132
- /deep/ .input-padding {
133
- padding: 0;
134
- }
135
-
136
- .process-popup-textarea {
137
- position: relative;
138
- width: 100%;
139
- height: 62px;
140
- min-height: 62px;
141
- }
142
-
143
- .process-popup-textarea::after {
144
- position: absolute;
145
- content: "";
146
- width: 100%;
147
- height: 1px;
148
- background-color: #f2f2f2;
149
- bottom: 0;
150
- left: 0;
151
- }
152
-
153
- .process-popup-textarea .textarea-item {
154
- resize: none;
155
- background: none;
156
- color: inherit;
157
- opacity: 1;
158
- font: inherit;
159
- line-height: inherit;
160
- letter-spacing: inherit;
161
- text-align: inherit;
162
- text-indent: inherit;
163
- text-transform: inherit;
164
- text-shadow: inherit;
165
- outline: none;
166
- border: none;
167
- padding: 0;
168
- margin: 0;
169
- text-decoration: inherit;
170
- height: 100%;
171
- }
172
- </style>