ui-process-h5 0.1.36 → 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 (92) hide show
  1. package/build/configure/README.md +212 -0
  2. package/build/configure/package.json +28 -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 +51 -20
  8. package/src/App.vue +222 -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 +65 -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 +99 -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 +83 -0
  21. package/src/assets/js/vuePopper.js +123 -0
  22. package/src/assets/query.png +0 -0
  23. package/src/assets/status/check.png +0 -0
  24. package/src/assets/status/del.png +0 -0
  25. package/src/main.js +17 -0
  26. package/src/packages/attchUpload/index.js +374 -0
  27. package/src/packages/attchUpload/index.scss +143 -0
  28. package/src/packages/attchUpload/index.vue +173 -0
  29. package/src/packages/downSelect/index.js +99 -0
  30. package/src/packages/downSelect/index.scss +86 -0
  31. package/src/packages/downSelect/index.vue +57 -0
  32. package/src/packages/index.js +6 -0
  33. package/src/packages/popup/index.js +73 -0
  34. package/src/packages/popup/index.scss +173 -0
  35. package/src/packages/popup/index.vue +80 -0
  36. package/src/packages/preview/index.js +36 -0
  37. package/src/packages/preview/index.vue +15 -0
  38. package/src/packages/previewImage/index.js +281 -0
  39. package/src/packages/previewImage/index.scss +76 -0
  40. package/src/packages/previewImage/index.vue +53 -0
  41. package/src/packages/process/index.js +923 -0
  42. package/src/packages/process/index.scss +175 -0
  43. package/src/packages/process/index.vue +263 -0
  44. package/src/packages/process/operation/backNode.vue +485 -0
  45. package/src/packages/process/operation/cancel.vue +518 -0
  46. package/src/packages/process/operation/ccTask.vue +473 -0
  47. package/src/packages/process/operation/complete.vue +1126 -0
  48. package/src/packages/process/operation/counterSign.vue +590 -0
  49. package/src/packages/process/operation/delegateTask.vue +587 -0
  50. package/src/packages/process/operation/msgList.vue +174 -0
  51. package/src/packages/process/operation/restart.vue +316 -0
  52. package/src/packages/submitPopup/index.js +644 -0
  53. package/src/packages/submitPopup/index.scss +88 -0
  54. package/src/packages/submitPopup/index.vue +154 -0
  55. package/src/packages/tab/index.js +236 -0
  56. package/src/packages/tab/index.scss +177 -0
  57. package/src/packages/tab/index.vue +155 -0
  58. package/src/packages/tip/index.js +80 -0
  59. package/src/packages/tip/index.scss +121 -0
  60. package/src/packages/tip/index.vue +57 -0
  61. package/src/packages/viewAttchList/index.js +134 -0
  62. package/src/packages/viewAttchList/index.scss +76 -0
  63. package/src/packages/viewAttchList/index.vue +112 -0
  64. package/src/style.css +80 -0
  65. package/vite.config.ts +107 -0
  66. package/packages/components/approval/index.js +0 -0
  67. package/packages/components/process/index.js +0 -8
  68. package/packages/components/process/src/attchlist-upload.vue +0 -585
  69. package/packages/components/process/src/operation/backNode.vue +0 -141
  70. package/packages/components/process/src/operation/cancel.vue +0 -170
  71. package/packages/components/process/src/operation/ccTask.vue +0 -170
  72. package/packages/components/process/src/operation/complete.vue +0 -224
  73. package/packages/components/process/src/operation/counterSign.vue +0 -178
  74. package/packages/components/process/src/operation/delegateTask.vue +0 -168
  75. package/packages/components/process/src/operation/restart.vue +0 -172
  76. package/packages/components/process/src/popup.vue +0 -230
  77. package/packages/components/process/src/process.vue +0 -900
  78. package/packages/components/process/src/tab.vue +0 -459
  79. package/packages/components/process/src/tip.vue +0 -207
  80. package/packages/index.js +0 -4
  81. /package/{packages/components/process/theme → src/assets}/img/add-file.png +0 -0
  82. /package/{packages/components/process/theme → src/assets}/img/del.png +0 -0
  83. /package/{packages/components/process/theme → src/assets}/img/doc.png +0 -0
  84. /package/{packages/components/process/theme → src/assets}/img/file.png +0 -0
  85. /package/{packages/components/process/theme → src/assets}/img/image.png +0 -0
  86. /package/{packages/components/process/theme → src/assets}/img/pdf.png +0 -0
  87. /package/{packages/components/process/theme → src/assets}/img/xls.png +0 -0
  88. /package/{packages/components/process/theme → src/assets}/img/zip.png +0 -0
  89. /package/{packages/components/process/theme → src/assets}/status/error.png +0 -0
  90. /package/{packages/components/process/theme → src/assets}/status/loading.png +0 -0
  91. /package/{packages/components/process/theme → src/assets}/status/success.png +0 -0
  92. /package/{packages/components/process/src → src/packages/process}/operation/index.js +0 -0
@@ -0,0 +1,212 @@
1
+ # ui-process-h5
2
+
3
+ > App 端 流程、附件上传、附件列表、送审插件
4
+
5
+ ## 安装
6
+
7
+ > vue2.7 以上版本安装指令
8
+ >
9
+ > > ```bash
10
+ > > npm i ui-process-h5 -D
11
+ > > ```
12
+
13
+ > vue2.7 以下版本安装指令
14
+ >
15
+ > > ```bash
16
+ > > npm i @vue/composition-api -D
17
+ > > npm i ui-process-h5 -D
18
+ > > ```
19
+
20
+ ## 使用
21
+
22
+ 在需要使用的组件内引入
23
+
24
+ ```js
25
+ import {
26
+ TopProcess,
27
+ attchViews,
28
+ TopSumbitPopup,
29
+ ViewAttchList,
30
+ } from "ui-process-h5";
31
+ export default {
32
+ components: { TopProcess, attchViews, TopSumbitPopup, ViewAttchList },
33
+ };
34
+ ```
35
+
36
+ ```html
37
+ <template>
38
+ <TopProcess
39
+ :processInstId="processInstId"
40
+ :processDefId="processDefId"
41
+ :formData="formData"
42
+ :isView="isView"
43
+ :userId="userId"
44
+ :request="request"
45
+ :tapList="tapList"
46
+ :selfTapList="selfTapList"
47
+ :endFunction="endFunction"
48
+ :isDocument="isDocument"
49
+ >
50
+ <slot></slot>
51
+ </TopProcess>
52
+ <attchViews
53
+ v-if="labels == '1'"
54
+ :limit="limit ? limit : -1"
55
+ :requires="requires"
56
+ :request="param.request"
57
+ :linkUrl="param.linkUrl"
58
+ @getValue="getValues"
59
+ />
60
+ <ViewAttchList :inList="inList"></ViewAttchList>
61
+ <TopSumbitPopup
62
+ :visible="visible"
63
+ :request="request"
64
+ :appId="appId"
65
+ :resubmit="resubmit"
66
+ :id="businessKey"
67
+ :businessType="businessType"
68
+ :todoParameter="todoParameter"
69
+ :title="title"
70
+ @successFn="successFn"
71
+ :beforeFunction="beforeFunction"
72
+ ></TopSumbitPopup>
73
+ </template>
74
+ <script>
75
+ import "ui-process-h5/style.css";
76
+ import {
77
+ TopProcess,
78
+ attchViews,
79
+ TopSumbitPopup,
80
+ ViewAttchList,
81
+ } from "ui-process-h5";
82
+ export default {
83
+ components: { TopProcess, attchViews, TopSumbitPopup, ViewAttchList },
84
+ data() {
85
+ return {
86
+ formData: {
87
+ businessKey: businessKey,
88
+ processInstId: processInstId,
89
+ processDefId: processDefId,
90
+ title: title,
91
+ subjectId: subjectId,
92
+ userId: userId,
93
+ userName: userName,
94
+ reason: reason,
95
+ meetingTheme: meetingTheme,
96
+ },
97
+ selfBtn: [
98
+ {
99
+ name: "测试",
100
+ type: "danger",
101
+ click: () => {
102
+ console.log("当前::");
103
+ },
104
+ },
105
+ {
106
+ name: "测试2",
107
+ type: "default",
108
+ click: () => {
109
+ console.log("当前::");
110
+ },
111
+ },
112
+ ],
113
+ };
114
+ },
115
+ methods: {
116
+ endFunction() {
117
+ console.log("endFunction");
118
+ },
119
+ beforeFunction() {
120
+ console.log("beforeFunction");
121
+ },
122
+ },
123
+ };
124
+ </script>
125
+ ```
126
+
127
+ ## 属性-Attributes (TopProcess)
128
+
129
+ | 参数 | 类型 | 默认值 | 说明 |
130
+ | -------------- | -------- | ----------------- | ----------------------------------------------- |
131
+ | tapList | Array | [] | tab 节点插入、自定义附件等信息 |
132
+ | selfTapList | Array | [] | 自定义 tab 节点,传入后覆盖原本参数 |
133
+ | processDefId | String | '' | 流程 ID |
134
+ | request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
135
+ | processInstId | String | '' | 流程实例 ID |
136
+ | userId | String | '' | 当前角色 id |
137
+ | formData | Object | {} | 集合数据 内部存储流程相关信息 |
138
+ | isAdditional | boolean | false | 自定义按钮 |
139
+ | getVars | Function | null | 业务方法 |
140
+ | endFunction | Function | null | 弹窗结束后执行方法 |
141
+ | beforeFunction | Function | null | 弹窗开启前执行方法 |
142
+ | restartData | Object | null | 重新提交参数 |
143
+ | isDocument | Boolean | false | 公文独立配置 |
144
+ | selfList | Array | {id,name} | 自定义流程列表 |
145
+ | selfBtn | Array | {name,type,click} | 自定义流程按钮(查看案例 data) |
146
+
147
+ ## 属性-Attributes (attchViews)
148
+
149
+ | 参数 | 类型 | 默认值 | 说明 |
150
+ | -------- | ---------------- | ------ | ----------------------------------------------- |
151
+ | request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
152
+ | limit | [String, Number] | 4 | 最大上传数 |
153
+ | getValue | Function | null | 返回上传数据 url |
154
+ | requires | Boolean | false | 必填 |
155
+ | inComing | Array | Array | 回显已上传列表 |
156
+ | deletFn | Function | null | 组件本身提供静态删除功能,动态删除需传入相应方法 |
157
+
158
+ ## 属性-Attributes (ViewAttchList)
159
+
160
+ | 参数 | 类型 | 默认值 | 说明 |
161
+ | ------ | ----- | ------ | ------------ |
162
+ | inList | Array | [] | 附件列表展示 |
163
+
164
+ ## 属性-Attributes (TopSumbitPopup)
165
+
166
+ | 参数 | 类型 | 默认值 | 说明 |
167
+ | -------------- | ---------------- | --------- | ----------------------------------------------- |
168
+ | visible | Boolean | false | 展示参数 | |
169
+ | title | String | "" | 送审提交标题参数 |
170
+ | todoParameter | Object | {} | 发起流程时的其他参数 |
171
+ | businessType | [String, Number] | null | 业务类型 |
172
+ | id | String | "" | 业务 Id |
173
+ | resubmit | Boolean | false | 是否为重新提交 |
174
+ | request | Object | null | axios 接口请求方法 [需要包含 get post 请求方式] |
175
+ | appId | String | '' | appId |
176
+ | beforeFunction | Function | null | 提交前执行事件 |
177
+ | successFn | Function | null | 成功后回调 |
178
+ | manual | Boolean | false | 手动执行启动(ref 绑定后执行 handleSongshen()) |
179
+ | selfList | Array | {id,name} | 自定义流程列表 |
180
+
181
+ > ### tapList-对象说明
182
+ >
183
+ > | 属性名 | 类型 | 说明 |
184
+ > | ------ | ------ | ---------------------------------------------------------------------------- |
185
+ > | label | String | 选项卡 title |
186
+ > | key | String | 选项卡 ID 请勿重复 defaultTabList 内已拥有的默认 key(a、b、c 为默认节点 key) |
187
+ > | type | String | 插槽类型 默认 default 插槽 slot |
188
+ > | slot | String | 插槽名 |
189
+ > | sort | Number | 排序参数,无参数默认插入末尾 |
190
+
191
+ ### selfTapList-对象说明 同上
192
+
193
+ ### formData-对象说明
194
+
195
+ | 属性名 | 类型 | 说明 |
196
+ | ------------------------- | ------ | ----------- |
197
+ | businessKey | String | 业务 ID |
198
+ | processDefId | String | 流程 ID |
199
+ | processInstId | String | 流程实例 ID |
200
+ | title reason meetingTheme | String | 标题 |
201
+ | userId | String | 角色 id |
202
+ | userName | String | 姓名 |
203
+
204
+ 附件相关列表,参考 getValue 回调参数
205
+
206
+ ### restartData-对象说明
207
+
208
+ | 属性名 | 类型 | 说明 |
209
+ | ------------ | ------ | -------------------- |
210
+ | businessType | String | 业务 类型 |
211
+ | showType | String | 流程类型(all,pc,app) |
212
+ | processName | String | 流程查询字段 |
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "ui-process-h5",
3
+ "version": "1.3.28",
4
+ "description": "> app端 流程插件",
5
+ "main": "./ui-process-h5.umd.cjs",
6
+ "style": "./style.css",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./ui-process-h5.js",
11
+ "require": "./ui-process-h5.umd.cjs"
12
+ },
13
+ "./style.css": {
14
+ "import": "./style.css",
15
+ "require": "./style.css"
16
+ }
17
+ },
18
+ "scripts": {
19
+ "test": "echo \"Error: no test specified\" && exit 1",
20
+ "postinstall": "node scripts/postinstall.mjs"
21
+ },
22
+ "devDependencies": {
23
+ "checked-pick-app": "^1.3.10",
24
+ "dsbridge": "^3.1.4"
25
+ },
26
+ "author": "",
27
+ "license": "ISC"
28
+ }
@@ -0,0 +1,14 @@
1
+ import { isNull, switchVersion } from './utils.mjs'
2
+ try {
3
+ import('vue').then(res => {
4
+ const version = isNull(res.version) ? res.default.version : res.version
5
+ if (isNull(version))
6
+ console.warn('[vue-demi-sfc-component-template] Vue is not found. Please run "npm install vue" to install.')
7
+ else
8
+ switchVersion(version)
9
+ })
10
+ } catch (error) {
11
+ console.log('error', error)
12
+ }
13
+
14
+
@@ -0,0 +1,4 @@
1
+ import { switchVersion } from './utils.mjs'
2
+
3
+ const version = process.argv[2]
4
+ switchVersion(version)
@@ -0,0 +1,60 @@
1
+ import path from 'path'
2
+ import fs from 'fs'
3
+ import { fileURLToPath } from 'url'
4
+ const __filename = fileURLToPath(import.meta.url)
5
+ const __dirname = path.dirname(__filename)
6
+
7
+ function switchVersion(version) {
8
+ const src = getLibDir(version)
9
+ const dest = path.join(src, '..')
10
+ console.log(`[frontend-shared] switch ui-process-h5 to vue version ${version}`)
11
+ copyDir(src, dest)
12
+ }
13
+
14
+ function getLibDir(version) {
15
+ const dirname = getDirName(version)
16
+ return path.join(__dirname, `../../ui-process-h5/${dirname}`)
17
+ }
18
+
19
+ function getDirName(version) {
20
+ return String(version).startsWith('2.7.') ? 'v2.7' : String(version).startsWith('2') ? 'v2' : 'v3'
21
+ }
22
+
23
+ function copyDir(src, dest) {
24
+ console.log(`copying from ${src} to ${dest}`)
25
+ // unlink for pnpm, #92
26
+ try {
27
+ fs.unlinkSync(dest)
28
+ } catch (error) { }
29
+ try {
30
+ copyRecursiveSync(src, dest)
31
+ } catch (error) {
32
+ console.error(error)
33
+ }
34
+ }
35
+
36
+ function copyRecursiveSync(src, dest) {
37
+ const exists = fs.existsSync(src)
38
+ const stats = exists && fs.statSync(src)
39
+ const isDirectory = stats && stats.isDirectory()
40
+ if (isDirectory) {
41
+ !fs.existsSync(dest) && fs.mkdirSync(dest)
42
+ fs.readdirSync(src).forEach((childItemName) => {
43
+ copyRecursiveSync(path.join(src, childItemName), path.join(dest, childItemName))
44
+ })
45
+ } else {
46
+ fs.copyFileSync(src, dest)
47
+ }
48
+ }
49
+ // 判断是否为空
50
+ function isNull(str) {
51
+ if (str === null) return true;
52
+ if (str === undefined) return true;
53
+ if (str === "null") return true;
54
+ if (str === "NaN") return true;
55
+ if (str === "undefined") return true;
56
+ if (str.length === 0) return true;
57
+ // if (/^\s*$/i.test(str)) return true;
58
+ return false;
59
+ }
60
+ export { getLibDir, copyDir, switchVersion, isNull }
package/index.html ADDED
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <meta name="format-detection" content="telephone=yes"/>
7
+ </head>
8
+ <body>
9
+ <div id="app"></div>
10
+ <script type="module" src="/src/main.js"></script>
11
+ </body>
12
+ </html>
package/package.json CHANGED
@@ -2,28 +2,59 @@
2
2
  "name": "ui-process-h5",
3
3
  "private": false,
4
4
  "description": "流程组件",
5
- "version": "0.1.36",
5
+ "version": "1.0.1",
6
6
  "type": "module",
7
- "files": [
8
- "packages/*",
9
- "Readme.md",
10
- "package.json"
11
- ],
12
- "publicConfig": {
13
- "registry": "http://registry.npmjs.org/"
14
- },
15
- "main": "./packages/index.js",
16
- "module": "./packages/index.js",
17
- "exports": {
18
- ".": {
19
- "import": "./packages/index.js",
20
- "require": "./packages/index.js"
21
- }
7
+ "scripts": {
8
+ "dev": "vite --host 0.0.0.0",
9
+ "build": "npm run clean && run-s build:*",
10
+ "clean": "rimraf ./ui-process-h5",
11
+ "dev:2": "npm run switch:2 && vite",
12
+ "dev:2.7": "npm run switch:2.7 && vite",
13
+ "dev:3": "npm run switch:3 && vite --force",
14
+ "switch:2": "vue-demi-switch 2 vue2",
15
+ "switch:2.7": "vue-demi-switch 2.7 vue2.7",
16
+ "switch:3": "vue-demi-switch 3 vue3",
17
+ "build:2": "npm run switch:2 && vite build",
18
+ "build:2.7": "npm run switch:2.7 && vite build",
19
+ "build:3": "npm run switch:3 && vite build"
22
20
  },
23
21
  "dependencies": {
24
- "vue-demi": "^0.14.0"
22
+ "@types/node": "^18.16.3",
23
+ "@vue/composition-api": "^1.7.1",
24
+ "axios": "^1.3.6",
25
+ "checked-pick-app": "^1.3.10",
26
+ "dsbridge": "^3.1.4",
27
+ "js-cookie": "^3.0.5",
28
+ "json-bigint": "^1.0.0",
29
+ "npm-run-all": "^4.1.5",
30
+ "perfect-scrollbar": "^1.5.5",
31
+ "sass": "^1.62.1",
32
+ "ui-process-h5": "^1.0.36",
33
+ "vconsole": "^3.15.1",
34
+ "vue-demi": "^0.13.8"
35
+ },
36
+ "peerDependencies": {
37
+ "@vue/composition-api": "^1.7.0",
38
+ "vue": "^2.0.0 || >=3.0.0"
39
+ },
40
+ "peerDependenciesMeta": {
41
+ "@vue/composition-api": {
42
+ "optional": true
43
+ }
25
44
  },
26
- "engines": {
27
- "node": ">=16.0.0"
45
+ "devDependencies": {
46
+ "@vitejs/plugin-vue": "^3.0.3",
47
+ "postcss-relaxed-unit": "^1.1.1",
48
+ "rimraf": "^3.0.2",
49
+ "rollup-plugin-copy": "^3.4.0",
50
+ "vite": "^3.0.7",
51
+ "vite-plugin-vue2": "^2.0.2",
52
+ "vue": "2.6.14",
53
+ "vue-eslint-parser": "^9.0.3",
54
+ "vue-template-compiler": "2.6.14",
55
+ "vue-tsc": "^0.39.5",
56
+ "vue2": "npm:vue@2.6.14",
57
+ "vue2.7": "npm:vue@2.7.14",
58
+ "vue3": "npm:vue@^3.2.36"
28
59
  }
29
- }
60
+ }
package/src/App.vue ADDED
@@ -0,0 +1,222 @@
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
+ :isDocument="false"
15
+ :isMsg="true"
16
+ :isView="false"
17
+ >
18
+ <!-- :isDocument="true" -->
19
+ <!-- :isAdditional="true" -->
20
+ <!-- :getVars="getVars" -->
21
+ <template #default>展示当前形态</template>
22
+ <template #attch>attch</template>
23
+ <template #fsList>fsList</template>
24
+ <template #documentPage>documentPage</template>
25
+ <template v-slot:btn="data">
26
+ <div>123{{ data.data.status }}</div>
27
+ </template>
28
+ </TopProcess>
29
+ </template>
30
+ <script>
31
+ import { TopProcess } from "@/packages/index.js";
32
+ import request from "@/assets/js/request";
33
+ import { defineComponent } from "vue-demi";
34
+ import { setToken, setSubject, setProject } from "@/assets/js/auth";
35
+ // import departPerson from "@/packages/checked-pick-app";
36
+ export default {
37
+ data() {
38
+ return {
39
+ formData: {
40
+ businessKey: "db6bf1d242f940d0cef14eb775cab458",
41
+ processInstId: "0fff228a-eb2b-4ce6-8127-aa27c6dfbc1c",
42
+ processDefId: "obj_6534ff52252941f280a87516a9754b77",
43
+ title: "测试",
44
+ subjectId: "3a4ef115e32c85a78239e3f5f76b9637",
45
+ tel: "15107910151",
46
+ userId: "8c7d012761a680dff78b19e10e794c99",
47
+ userName: "刘博文",
48
+ uid:"2a8e7180ea1666679d3052f26f3fa8ee",
49
+ },
50
+ appId: "com.awspaas.user.apps.recevie.document",
51
+ isView: false,
52
+ info: {},
53
+ bizId: "",
54
+ style: {
55
+ color: "#333",
56
+ disableColor: "#F7F6F6",
57
+ },
58
+ param: {
59
+ realStartTime: "",
60
+ realEndTime: "",
61
+ estimateHours: 0,
62
+ estimateMinutes: 0,
63
+ },
64
+ realDays: "",
65
+ timeLoading: false,
66
+ processIDS: "",
67
+ request: request,
68
+ // 选人组件
69
+ visible: false,
70
+ entity: {
71
+ source: "0",
72
+ type: "5",
73
+ request: this.request, //'http://59.53.91.231:2100' 0002
74
+ businessId: "0003",
75
+ codeType: [1, 2, 3], // 可选类型 1-主体 2-部门 3-人员
76
+ multiple: true, // 是否多选
77
+ },
78
+ tapList: [
79
+ {
80
+ label: "附件",
81
+ key: "attch",
82
+ type: "slot",
83
+ sort: 2,
84
+ slot: "attch",
85
+ },
86
+ {
87
+ label: "分送记录",
88
+ key: "fsList",
89
+ type: "slot",
90
+ slot: "fsList",
91
+ },
92
+ {
93
+ label: "正文",
94
+ key: "documentPage",
95
+ type: "slot",
96
+ sort: 3,
97
+ slot: "documentPage",
98
+ },
99
+ ],
100
+ restartData: {
101
+ businessType: "4",
102
+ title: "测试送审",
103
+ showType: "all",
104
+ processName: "",
105
+ },
106
+ selfBtn: [
107
+ {
108
+ name: "测试",
109
+ type: "danger",
110
+ click: () => {
111
+ console.log("当前::");
112
+ },
113
+ },
114
+ {
115
+ name: "测试2",
116
+ type: "default",
117
+ click: () => {
118
+ console.log("当前::");
119
+ },
120
+ },
121
+ ],
122
+ };
123
+ },
124
+ components: {
125
+ /* topProcess, */
126
+ TopProcess,
127
+ // departPerson,
128
+ },
129
+ onLoad(e) {
130
+ this.bizId = e.bizId;
131
+ this.getInfo();
132
+
133
+ this.processIDS = e.processId;
134
+ },
135
+ mounted() {
136
+ console.log("this.request", this.request);
137
+ setToken("b2cd4a4d-200a-4ac3-bee5-8842f39233c3");
138
+ // 7369abf4-e2b4-44d0-87b2-7c46a444d3b5
139
+ // da6bab4f-fa42-4730-b0fe-c5e022123c0c
140
+ setSubject("9f13a9c9c400fa6e6228848ce1f131ee");
141
+ /* setProject("4b23dd7dcb9cf7cb548fbd087ce9d748"); */
142
+ console.log("processIDS", request);
143
+ },
144
+ methods: {
145
+ getVars() {
146
+ console.log("getVars");
147
+ return true;
148
+ },
149
+ endFunction(val) {
150
+ console.log("endFunction:::",val);
151
+ /* location.reload(); */
152
+ },
153
+ beforeFunction() {
154
+ console.log("beforeFunction111");
155
+ return true;
156
+ },
157
+ },
158
+ };
159
+ </script>
160
+ <style lang="scss">
161
+ body {
162
+ margin: 0;
163
+ }
164
+ #app {
165
+ font-family: Avenir, Helvetica, Arial, sans-serif;
166
+ -webkit-font-smoothing: antialiased;
167
+ -moz-osx-font-smoothing: grayscale;
168
+ text-align: center;
169
+ color: #2c3e50;
170
+ width: 100vw;
171
+ height: 100vh;
172
+ }
173
+ .info-box {
174
+ background-color: #fff;
175
+ padding: 10px;
176
+ .info {
177
+ display: flex;
178
+ justify-content: space-between;
179
+ font-size: 14px;
180
+ margin-bottom: 10px;
181
+ b {
182
+ font-weight: 400;
183
+ color: #959595;
184
+ }
185
+ }
186
+ .time-info {
187
+ background-color: #f6f6f6;
188
+ padding: 10px;
189
+ border-radius: 10px;
190
+ margin-bottom: 10px;
191
+ div {
192
+ margin-bottom: 10px;
193
+ font-size: 14px;
194
+ display: flex;
195
+ justify-content: space-between;
196
+ i {
197
+ color: #000;
198
+ font-style: normal;
199
+ font-weight: bold;
200
+ }
201
+ em {
202
+ font-style: normal;
203
+ font-size: 12px;
204
+ color: #4e87d4;
205
+ }
206
+ }
207
+ }
208
+ }
209
+ ::v-deep .uni-date-x--border {
210
+ border: none;
211
+ }
212
+ em {
213
+ font-style: normal;
214
+ font-size: 12px;
215
+ color: #4e87d4;
216
+ }
217
+ .ren-title {
218
+ font-weight: bold;
219
+ font-size: 16px;
220
+ margin-bottom: 18px;
221
+ }
222
+ </style>