ui-process-h5 2.0.8-beta → 2.1.0-beta
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.
- package/README.md +11 -204
- package/build/configure/README.md +211 -0
- package/build/configure/package.json +32 -0
- package/debug.js +9 -0
- package/index.html +12 -0
- package/package.json +56 -25
- package/src/App.vue +233 -0
- package/src/assets/font-icon/iconfont.scss +57 -0
- package/src/assets/font-icon/iconfont.ttf +0 -0
- package/src/assets/img/add-file.png +0 -0
- package/src/assets/img/arrow-right.png +0 -0
- package/src/assets/img/arrow.png +0 -0
- package/src/assets/img/check.png +0 -0
- package/src/assets/img/del.png +0 -0
- package/src/assets/img/doc.png +0 -0
- package/src/assets/img/file.png +0 -0
- package/src/assets/img/image.png +0 -0
- package/src/assets/img/pdf.png +0 -0
- package/src/assets/img/process.png +0 -0
- package/src/assets/img/xls.png +0 -0
- package/src/assets/img/zip.png +0 -0
- package/src/assets/js/auth.js +65 -0
- package/src/assets/js/errorCode.js +6 -0
- package/src/assets/js/message.js +352 -0
- package/src/assets/js/request.js +99 -0
- package/src/assets/js/toast.js +239 -0
- package/src/assets/js/top.js +229 -0
- package/src/assets/js/utils.js +83 -0
- package/src/assets/js/vuePopper.js +123 -0
- package/src/assets/query.png +0 -0
- package/src/assets/status/check.png +0 -0
- package/src/assets/status/del.png +0 -0
- package/src/assets/status/error.png +0 -0
- package/src/assets/status/loading.png +0 -0
- package/src/assets/status/success.png +0 -0
- package/src/main.js +17 -0
- package/src/packages/attchUpload/index.js +375 -0
- package/src/packages/attchUpload/index.scss +143 -0
- package/src/packages/attchUpload/index.vue +173 -0
- package/src/packages/downSelect/index.js +119 -0
- package/src/packages/downSelect/index.scss +88 -0
- package/src/packages/downSelect/index.vue +62 -0
- package/src/packages/index.js +6 -0
- package/src/packages/popup/index.js +125 -0
- package/src/packages/popup/index.scss +178 -0
- package/src/packages/popup/index.vue +80 -0
- package/src/packages/preview/index.js +40 -0
- package/src/packages/preview/index.vue +15 -0
- package/src/packages/previewImage/index.js +286 -0
- package/src/packages/previewImage/index.scss +76 -0
- package/src/packages/previewImage/index.vue +53 -0
- package/src/packages/process/index.js +1016 -0
- package/src/packages/process/index.scss +188 -0
- package/src/packages/process/index.vue +291 -0
- package/src/packages/process/operation/backNode.vue +396 -0
- package/src/packages/process/operation/cancel.vue +425 -0
- package/src/packages/process/operation/ccTask.vue +256 -0
- package/src/packages/process/operation/complete.vue +1384 -0
- package/src/packages/process/operation/counterSign.vue +498 -0
- package/src/packages/process/operation/delegateTask.vue +493 -0
- package/src/packages/process/operation/index.js +8 -0
- package/src/packages/process/operation/index.scss +212 -0
- package/src/packages/process/operation/msgList.vue +174 -0
- package/src/packages/process/operation/treeNode.vue +901 -0
- package/src/packages/process/operation/treePerson.vue +304 -0
- package/src/packages/submitPopup/index.js +708 -0
- package/src/packages/submitPopup/index.scss +190 -0
- package/src/packages/submitPopup/index.vue +125 -0
- package/src/packages/tab/index.js +236 -0
- package/src/packages/tab/index.scss +177 -0
- package/src/packages/tab/index.vue +155 -0
- package/src/packages/tip/index.js +80 -0
- package/src/packages/tip/index.scss +121 -0
- package/src/packages/tip/index.vue +57 -0
- package/src/packages/viewAttchList/index.js +138 -0
- package/src/packages/viewAttchList/index.scss +76 -0
- package/src/packages/viewAttchList/index.vue +121 -0
- package/src/style.css +80 -0
- package/vite.config.ts +118 -0
- package/v2/style.css +0 -1
- package/v2/ui-process-h5.js +0 -9945
- package/v2/ui-process-h5.umd.cjs +0 -18
- package/v2.7/style.css +0 -1
- package/v2.7/ui-process-h5.js +0 -9322
- package/v2.7/ui-process-h5.umd.cjs +0 -18
- package/v3/style.css +0 -1
- package/v3/ui-process-h5.js +0 -6842
- package/v3/ui-process-h5.umd.cjs +0 -6
- /package/{scripts → build/scripts}/postinstall.mjs +0 -0
- /package/{scripts → build/scripts}/switch-cli.mjs +0 -0
- /package/{scripts → build/scripts}/utils.mjs +0 -0
package/src/App.vue
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<TopProcess
|
|
3
|
+
:processInstId="formData.processInstId"
|
|
4
|
+
:processDefId="formData.processDefId"
|
|
5
|
+
:formData="formData"
|
|
6
|
+
:appId="appId"
|
|
7
|
+
:uid="formData.uid"
|
|
8
|
+
:request="request"
|
|
9
|
+
:tapList="tapList"
|
|
10
|
+
:endFunction="endFunction"
|
|
11
|
+
:beforeFunction="beforeFunction"
|
|
12
|
+
:restartData="restartData"
|
|
13
|
+
:selfBtn="selfBtn"
|
|
14
|
+
:isQuickReply="true"
|
|
15
|
+
:isMsg="true"
|
|
16
|
+
:isView="false"
|
|
17
|
+
:isRequire="true"
|
|
18
|
+
>
|
|
19
|
+
<!-- :isDocument="true" -->
|
|
20
|
+
<!-- :isAdditional="true" -->
|
|
21
|
+
<!-- :getVars="getVars" -->
|
|
22
|
+
<template #default>展示当前形态</template>
|
|
23
|
+
<template #attch>attch</template>
|
|
24
|
+
<template #fsList>fsList</template>
|
|
25
|
+
<template #documentPage>documentPage</template>
|
|
26
|
+
<!-- <template #completeSlot>completeSlot</template> -->
|
|
27
|
+
<template v-slot:btn="data">
|
|
28
|
+
<div>123{{ data.data.status }}</div>
|
|
29
|
+
</template>
|
|
30
|
+
</TopProcess>
|
|
31
|
+
</template>
|
|
32
|
+
<script>
|
|
33
|
+
import { TopProcess } from "@/packages/index.js";
|
|
34
|
+
import request from "@/assets/js/request";
|
|
35
|
+
import { defineComponent } from "vue-demi";
|
|
36
|
+
import { setToken, setSubject, setProject } from "@/assets/js/auth";
|
|
37
|
+
// import departPerson from "@/packages/checked-pick-app";
|
|
38
|
+
// import { TopProcess } from "ui-process-h5";
|
|
39
|
+
export default {
|
|
40
|
+
data() {
|
|
41
|
+
return {
|
|
42
|
+
formData: {
|
|
43
|
+
businessKey: "eada9d68437547b790b1194327cd6c45",
|
|
44
|
+
processInstId: "2256c30f-4651-413c-827f-0403730c3e23",
|
|
45
|
+
processDefId: "obj_5402fe691cad48b3ae39da0699d53be1",
|
|
46
|
+
title: "测试",
|
|
47
|
+
subjectId: "3a4ef115e32c85a78239e3f5f76b9637",
|
|
48
|
+
tel: "15107910151",
|
|
49
|
+
userId: "8c7d012761a680dff78b19e10e794c99",
|
|
50
|
+
userName: "刘博文",
|
|
51
|
+
uid: "c59f9cc2c341e5608befb566c1a625a5",
|
|
52
|
+
},
|
|
53
|
+
appId: "com.awspaas.user.apps.recevie.document",
|
|
54
|
+
isView: false,
|
|
55
|
+
info: {},
|
|
56
|
+
bizId: "",
|
|
57
|
+
style: {
|
|
58
|
+
color: "#333",
|
|
59
|
+
disableColor: "#F7F6F6",
|
|
60
|
+
},
|
|
61
|
+
param: {
|
|
62
|
+
realStartTime: "",
|
|
63
|
+
realEndTime: "",
|
|
64
|
+
estimateHours: 0,
|
|
65
|
+
estimateMinutes: 0,
|
|
66
|
+
},
|
|
67
|
+
realDays: "",
|
|
68
|
+
timeLoading: false,
|
|
69
|
+
processIDS: "",
|
|
70
|
+
request: request,
|
|
71
|
+
// 选人组件
|
|
72
|
+
visible: false,
|
|
73
|
+
entity: {
|
|
74
|
+
source: "0",
|
|
75
|
+
type: "5",
|
|
76
|
+
request: this.request, //'http://59.53.91.231:2100' 0002
|
|
77
|
+
businessId: "0003",
|
|
78
|
+
codeType: [1, 2, 3], // 可选类型 1-主体 2-部门 3-人员
|
|
79
|
+
multiple: true, // 是否多选
|
|
80
|
+
},
|
|
81
|
+
tapList: [
|
|
82
|
+
{
|
|
83
|
+
label: "附件",
|
|
84
|
+
key: "attch",
|
|
85
|
+
type: "slot",
|
|
86
|
+
sort: 2,
|
|
87
|
+
slot: "attch",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
label: "分送记录",
|
|
91
|
+
key: "fsList",
|
|
92
|
+
type: "slot",
|
|
93
|
+
slot: "fsList",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: "正文",
|
|
97
|
+
key: "documentPage",
|
|
98
|
+
type: "slot",
|
|
99
|
+
sort: 3,
|
|
100
|
+
slot: "documentPage",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
restartData: {
|
|
104
|
+
businessType: "4",
|
|
105
|
+
title: "测试送审",
|
|
106
|
+
showType: "all",
|
|
107
|
+
processName: "",
|
|
108
|
+
},
|
|
109
|
+
selfBtn: [
|
|
110
|
+
{
|
|
111
|
+
name: "测试",
|
|
112
|
+
type: "danger",
|
|
113
|
+
click: () => {
|
|
114
|
+
console.log("当前::");
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "测试2",
|
|
119
|
+
type: "default",
|
|
120
|
+
click: () => {
|
|
121
|
+
console.log("当前::");
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
userData: false,
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
components: {
|
|
129
|
+
/* topProcess, */
|
|
130
|
+
TopProcess,
|
|
131
|
+
// departPerson,
|
|
132
|
+
},
|
|
133
|
+
onLoad(e) {
|
|
134
|
+
this.bizId = e.bizId;
|
|
135
|
+
this.getInfo();
|
|
136
|
+
|
|
137
|
+
this.processIDS = e.processId;
|
|
138
|
+
},
|
|
139
|
+
mounted() {
|
|
140
|
+
console.log("this.request", this.request);
|
|
141
|
+
setToken("8655b06d-b030-465b-807e-5d02aa24c962");
|
|
142
|
+
// 7369abf4-e2b4-44d0-87b2-7c46a444d3b5
|
|
143
|
+
// da6bab4f-fa42-4730-b0fe-c5e022123c0c
|
|
144
|
+
setSubject("9f13a9c9c400fa6e6228848ce1f131ee");
|
|
145
|
+
/* setProject("4b23dd7dcb9cf7cb548fbd087ce9d748"); */
|
|
146
|
+
console.log("processIDS", request);
|
|
147
|
+
},
|
|
148
|
+
methods: {
|
|
149
|
+
getVars() {
|
|
150
|
+
console.log("getVars");
|
|
151
|
+
return true;
|
|
152
|
+
},
|
|
153
|
+
endFunction(val) {
|
|
154
|
+
console.log("endFunction:::", val);
|
|
155
|
+
/* location.reload(); */
|
|
156
|
+
},
|
|
157
|
+
async beforeFunction() {
|
|
158
|
+
let res = await this.request.get("/app/user/info");
|
|
159
|
+
if (res.code === 200) {
|
|
160
|
+
return true
|
|
161
|
+
} else {
|
|
162
|
+
return false
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// return false
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
</script>
|
|
170
|
+
<style lang="scss">
|
|
171
|
+
* {
|
|
172
|
+
margin: 0;
|
|
173
|
+
padding: 0;
|
|
174
|
+
}
|
|
175
|
+
#app {
|
|
176
|
+
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
177
|
+
-webkit-font-smoothing: antialiased;
|
|
178
|
+
-moz-osx-font-smoothing: grayscale;
|
|
179
|
+
text-align: center;
|
|
180
|
+
color: #2c3e50;
|
|
181
|
+
width: 100vw;
|
|
182
|
+
height: 100vh;
|
|
183
|
+
}
|
|
184
|
+
.info-box {
|
|
185
|
+
background-color: #fff;
|
|
186
|
+
padding: 10px;
|
|
187
|
+
.info {
|
|
188
|
+
display: flex;
|
|
189
|
+
justify-content: space-between;
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
margin-bottom: 10px;
|
|
192
|
+
b {
|
|
193
|
+
font-weight: 400;
|
|
194
|
+
color: #959595;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
.time-info {
|
|
198
|
+
background-color: #f6f6f6;
|
|
199
|
+
padding: 10px;
|
|
200
|
+
border-radius: 10px;
|
|
201
|
+
margin-bottom: 10px;
|
|
202
|
+
div {
|
|
203
|
+
margin-bottom: 10px;
|
|
204
|
+
font-size: 14px;
|
|
205
|
+
display: flex;
|
|
206
|
+
justify-content: space-between;
|
|
207
|
+
i {
|
|
208
|
+
color: #000;
|
|
209
|
+
font-style: normal;
|
|
210
|
+
font-weight: bold;
|
|
211
|
+
}
|
|
212
|
+
em {
|
|
213
|
+
font-style: normal;
|
|
214
|
+
font-size: 12px;
|
|
215
|
+
color: #4e87d4;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
::v-deep .uni-date-x--border {
|
|
221
|
+
border: none;
|
|
222
|
+
}
|
|
223
|
+
em {
|
|
224
|
+
font-style: normal;
|
|
225
|
+
font-size: 12px;
|
|
226
|
+
color: #4e87d4;
|
|
227
|
+
}
|
|
228
|
+
.ren-title {
|
|
229
|
+
font-weight: bold;
|
|
230
|
+
font-size: 16px;
|
|
231
|
+
margin-bottom: 18px;
|
|
232
|
+
}
|
|
233
|
+
</style>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "iconfont";
|
|
3
|
+
src: url("iconfont.ttf") format("truetype");
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.iconfont {
|
|
7
|
+
font-family: "iconfont" !important;
|
|
8
|
+
font-size: 16px;
|
|
9
|
+
font-style: normal;
|
|
10
|
+
-webkit-font-smoothing: antialiased;
|
|
11
|
+
-moz-osx-font-smoothing: grayscale;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.icon-jiantouyou:before {
|
|
15
|
+
content: "\e62d";
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.icon-chaxun:before {
|
|
19
|
+
content: "\e6b4";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.icon-warning-circle-fill:before {
|
|
23
|
+
content: "\e848";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.icon-error-fill:before {
|
|
27
|
+
content: "\e839";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.icon-info-fill:before {
|
|
31
|
+
content: "\e83d";
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.icon-success-fill:before {
|
|
35
|
+
content: "\e842";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.icon-nan:before {
|
|
39
|
+
content: "\e623";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.icon-nv:before {
|
|
43
|
+
content: "\e624";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.icon-cuowuguanbiquxiao:before {
|
|
47
|
+
content: "\e8e7";
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.icon-zuzhijigou:before {
|
|
51
|
+
content: "\e608";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.icon-pedigree:before {
|
|
55
|
+
content: "\e60e";
|
|
56
|
+
}
|
|
57
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import Cookies from "js-cookie";
|
|
2
|
+
|
|
3
|
+
const TokenKey = "Admin-Token";
|
|
4
|
+
|
|
5
|
+
const ExpiresInKey = "Admin-Expires-In";
|
|
6
|
+
|
|
7
|
+
export function getToken() {
|
|
8
|
+
return Cookies.get(TokenKey);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function setToken(token) {
|
|
12
|
+
return Cookies.set(TokenKey, token);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function removeToken() {
|
|
16
|
+
return Cookies.remove(TokenKey);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function getExpiresIn() {
|
|
20
|
+
return Cookies.get(ExpiresInKey) || -1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function setExpiresIn(time) {
|
|
24
|
+
return Cookies.set(ExpiresInKey, time);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function removeExpiresIn() {
|
|
28
|
+
return Cookies.remove(ExpiresInKey);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function setSystemId(systemId) {
|
|
32
|
+
return Cookies.set("systemId", systemId);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function getSystemId() {
|
|
36
|
+
return Cookies.get("systemId") || "oa";
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function removeSystemId() {
|
|
40
|
+
return Cookies.remove("systemId");
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function getSubject() {
|
|
44
|
+
return Cookies.get("subjectId");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function setSubject(token) {
|
|
48
|
+
return Cookies.set("subjectId", token);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function removeSubject() {
|
|
52
|
+
return Cookies.remove("subjectId");
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function getProject() {
|
|
56
|
+
return Cookies.get("projectId");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function setProject(token) {
|
|
60
|
+
return Cookies.set("projectId", token);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function removeProject() {
|
|
64
|
+
return Cookies.remove("projectId");
|
|
65
|
+
}
|