ui-process-h5 0.1.32 → 0.1.36

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 (36) hide show
  1. package/package.json +6 -49
  2. package/packages/components/approval/index.js +0 -0
  3. package/packages/components/process/{index.ts → index.js} +2 -3
  4. package/packages/components/process/src/attchlist-upload.vue +585 -0
  5. package/packages/components/process/src/operation/backNode.vue +141 -0
  6. package/packages/components/process/src/operation/cancel.vue +170 -0
  7. package/packages/components/process/src/operation/ccTask.vue +170 -0
  8. package/packages/components/process/src/operation/complete.vue +224 -0
  9. package/packages/components/process/src/operation/counterSign.vue +178 -0
  10. package/packages/components/process/src/operation/delegateTask.vue +168 -0
  11. package/packages/components/process/src/operation/index.js +9 -0
  12. package/packages/components/process/src/operation/restart.vue +172 -0
  13. package/packages/components/process/src/popup.vue +176 -74
  14. package/packages/components/process/src/process.vue +900 -0
  15. package/packages/components/process/src/tab.vue +189 -197
  16. package/packages/components/process/src/tip.vue +207 -0
  17. package/packages/components/process/theme/img/add-file.png +0 -0
  18. package/packages/components/process/theme/img/del.png +0 -0
  19. package/packages/components/process/theme/img/doc.png +0 -0
  20. package/packages/components/process/theme/img/file.png +0 -0
  21. package/packages/components/process/theme/img/image.png +0 -0
  22. package/packages/components/process/theme/img/pdf.png +0 -0
  23. package/packages/components/process/theme/img/xls.png +0 -0
  24. package/packages/components/process/theme/img/zip.png +0 -0
  25. package/packages/components/process/theme/status/error.png +0 -0
  26. package/packages/components/process/theme/status/loading.png +0 -0
  27. package/packages/components/process/theme/status/success.png +0 -0
  28. package/packages/index.js +4 -0
  29. package/packages/component.ts +0 -4
  30. package/packages/components/process/src/button.vue +0 -55
  31. package/packages/components/process/src/index.vue +0 -447
  32. package/packages/components/utils/request/api.ts +0 -11
  33. package/packages/components/utils/request/cache.d.ts +0 -52
  34. package/packages/components/utils/request/cache.js +0 -99
  35. package/packages/components/utils/request/request.ts +0 -62
  36. package/packages/index.ts +0 -4
@@ -0,0 +1,178 @@
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>
@@ -0,0 +1,168 @@
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>
@@ -0,0 +1,9 @@
1
+ import counterSign from "./counterSign.vue"
2
+ import delegateTask from "./delegateTask.vue"
3
+ import complete from "./complete.vue"
4
+ import cancel from "./cancel.vue"
5
+ import backNode from "./backNode.vue"
6
+ import ccTask from "./ccTask.vue"
7
+ import restart from "./restart.vue"
8
+
9
+ export { counterSign, delegateTask, complete, cancel, backNode, ccTask, restart }
@@ -0,0 +1,172 @@
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>