eoss-mobiles 0.4.0 → 0.4.2

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 (232) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/lib/button-group.js +2 -2
  3. package/lib/button.js +2 -2
  4. package/lib/calendar.js +2 -2
  5. package/lib/cell.js +2 -2
  6. package/lib/checkbox.js +2 -2
  7. package/lib/circle.js +2 -2
  8. package/lib/count-down.js +2 -2
  9. package/lib/empty.js +2 -2
  10. package/lib/eoss-mobile.common.js +542 -93
  11. package/lib/field.js +2 -2
  12. package/lib/flow-btn.js +2 -2
  13. package/lib/flow.js +8 -8
  14. package/lib/form.js +593 -144
  15. package/lib/grid-item.js +2 -2
  16. package/lib/grid.js +2 -2
  17. package/lib/index.js +1 -1
  18. package/lib/list.js +2 -2
  19. package/lib/loading.js +85 -85
  20. package/lib/nav-bar.js +2 -2
  21. package/lib/picker.js +12 -11
  22. package/lib/popover.js +2 -2
  23. package/lib/radio.js +8 -7
  24. package/lib/search.js +2 -2
  25. package/lib/selector.js +28 -28
  26. package/lib/switch.js +2 -2
  27. package/lib/tab.js +2 -2
  28. package/lib/table-column.js +3 -2
  29. package/lib/tabs.js +2 -2
  30. package/lib/tag.js +2 -2
  31. package/lib/theme-chalk/fonts/iconfont.scss +98 -98
  32. package/lib/theme-chalk/fonts/iconfont1.scss +90 -90
  33. package/lib/theme-chalk/form.css +1 -1
  34. package/lib/theme-chalk/index.css +1 -1
  35. package/lib/uploader.js +3 -2
  36. package/package.json +1 -1
  37. package/packages/action-sheet/index.js +5 -5
  38. package/packages/action-sheet/src/main.vue +32 -32
  39. package/packages/button/index.js +5 -5
  40. package/packages/button/src/main.vue +15 -15
  41. package/packages/button-group/index.js +5 -5
  42. package/packages/button-group/src/main.vue +80 -80
  43. package/packages/calendar/index.js +5 -5
  44. package/packages/calendar/src/main.vue +34 -34
  45. package/packages/cascader/index.js +5 -5
  46. package/packages/cascader/src/main.vue +39 -39
  47. package/packages/cell/index.js +5 -5
  48. package/packages/cell/src/main.vue +77 -77
  49. package/packages/checkbox/index.js +5 -5
  50. package/packages/checkbox/src/main.vue +232 -232
  51. package/packages/circle/index.js +5 -5
  52. package/packages/circle/src/main.vue +27 -27
  53. package/packages/count-down/index.js +5 -5
  54. package/packages/count-down/src/main.vue +27 -27
  55. package/packages/date/index.js +5 -5
  56. package/packages/date/src/date-time.vue +290 -290
  57. package/packages/date/src/main.vue +401 -401
  58. package/packages/empty/index.js +5 -5
  59. package/packages/empty/src/main.vue +16 -16
  60. package/packages/esign/index.js +5 -5
  61. package/packages/esign/src/main.vue +144 -144
  62. package/packages/field/index.js +5 -5
  63. package/packages/flow/index.js +5 -5
  64. package/packages/flow/src/components/Circulate.vue +595 -595
  65. package/packages/flow/src/components/Handle.vue +2404 -2404
  66. package/packages/flow/src/components/Message.vue +208 -208
  67. package/packages/flow/src/components/ProcessSettings.vue +342 -342
  68. package/packages/flow/src/components/TaskRead.vue +1 -1
  69. package/packages/flow/src/components/supervise.vue +139 -139
  70. package/packages/flow/src/flowMix.js +288 -288
  71. package/packages/flow/src/main.vue +116 -116
  72. package/packages/flow-btn/index.js +5 -5
  73. package/packages/flow-btn/src/main.vue +494 -494
  74. package/packages/flow-list/index.js +5 -5
  75. package/packages/flow-list/src/main.vue +248 -248
  76. package/packages/form/index.js +5 -5
  77. package/packages/form/src/CustomCard.vue +201 -0
  78. package/packages/form/src/main.vue +32 -19
  79. package/packages/grid/index.js +5 -5
  80. package/packages/grid/src/main.vue +486 -486
  81. package/packages/grid-item/index.js +5 -5
  82. package/packages/grid-item/src/main.vue +16 -16
  83. package/packages/image/index.js +5 -5
  84. package/packages/image/src/main.vue +12 -12
  85. package/packages/image-preview/index.js +5 -5
  86. package/packages/list/index.js +5 -5
  87. package/packages/list/src/main.vue +32 -32
  88. package/packages/loading/index.js +5 -5
  89. package/packages/loading/src/main.vue +19 -19
  90. package/packages/nav-bar/index.js +5 -5
  91. package/packages/nav-bar/src/main.vue +24 -24
  92. package/packages/notice-bar/index.js +5 -5
  93. package/packages/notice-bar/src/main.vue +15 -15
  94. package/packages/pagination/index.js +5 -5
  95. package/packages/pagination/src/main.vue +73 -73
  96. package/packages/picker/index.js +5 -5
  97. package/packages/picker/src/main.vue +604 -604
  98. package/packages/popover/index.js +5 -5
  99. package/packages/popover/src/main.vue +32 -32
  100. package/packages/popup/index.js +5 -5
  101. package/packages/popup/src/main.vue +27 -27
  102. package/packages/pull-refresh/index.js +5 -5
  103. package/packages/pull-refresh/src/main.vue +31 -31
  104. package/packages/radio/index.js +5 -5
  105. package/packages/radio/src/main.vue +179 -179
  106. package/packages/rate/index.js +5 -5
  107. package/packages/rate/src/main.vue +26 -26
  108. package/packages/retrial-auth/index.js +5 -5
  109. package/packages/retrial-auth/src/main.vue +257 -257
  110. package/packages/search/index.js +5 -5
  111. package/packages/search/src/main.vue +39 -39
  112. package/packages/selector/index.js +5 -5
  113. package/packages/selector/src/main.vue +186 -186
  114. package/packages/selector/src/selector-tree.vue +1117 -1117
  115. package/packages/selector/src/tree.vue +405 -405
  116. package/packages/skeleton/index.js +5 -5
  117. package/packages/skeleton/src/main.vue +17 -17
  118. package/packages/stepper/index.js +5 -5
  119. package/packages/stepper/src/main.vue +25 -25
  120. package/packages/swipe/index.js +5 -5
  121. package/packages/swipe/src/main.vue +42 -42
  122. package/packages/switch/index.js +5 -5
  123. package/packages/switch/src/main.vue +38 -38
  124. package/packages/tab/index.js +5 -5
  125. package/packages/tab/src/main.vue +16 -16
  126. package/packages/table/index.js +5 -5
  127. package/packages/table/src/main.vue +1006 -1006
  128. package/packages/table-column/index.js +5 -5
  129. package/packages/table-column/src/main.vue +931 -931
  130. package/packages/table-column/src/mixins/table.js +12 -12
  131. package/packages/tabs/index.js +5 -5
  132. package/packages/tabs/src/main.vue +34 -34
  133. package/packages/tag/index.js +5 -5
  134. package/packages/tag/src/main.vue +16 -16
  135. package/packages/theme-chalk/lib/action-sheet.css +0 -0
  136. package/packages/theme-chalk/lib/base.css +1 -0
  137. package/packages/theme-chalk/lib/button-group.css +1 -0
  138. package/packages/theme-chalk/lib/button.css +1 -0
  139. package/packages/theme-chalk/lib/calendar.css +1 -0
  140. package/packages/theme-chalk/lib/cascader.css +1 -0
  141. package/packages/theme-chalk/lib/cell.css +1 -0
  142. package/packages/theme-chalk/lib/checkbox.css +1 -0
  143. package/packages/theme-chalk/lib/circle.css +1 -0
  144. package/packages/theme-chalk/lib/count-down.css +0 -0
  145. package/packages/theme-chalk/lib/date.css +0 -0
  146. package/packages/theme-chalk/lib/empty.css +0 -0
  147. package/packages/theme-chalk/lib/esign.css +1 -0
  148. package/packages/theme-chalk/lib/field.css +1 -0
  149. package/packages/theme-chalk/lib/flow-btn.css +1 -0
  150. package/packages/theme-chalk/lib/flow-list-task-read.css +1 -0
  151. package/packages/theme-chalk/lib/flow-list.css +1 -0
  152. package/packages/theme-chalk/lib/flow.css +1 -0
  153. package/packages/theme-chalk/lib/fonts/iconfont.scss +98 -0
  154. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  155. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  156. package/packages/theme-chalk/lib/fonts/iconfont1.scss +90 -0
  157. package/packages/theme-chalk/lib/form.css +1 -0
  158. package/packages/theme-chalk/lib/grid-item.css +1 -0
  159. package/packages/theme-chalk/lib/grid.css +1 -0
  160. package/packages/theme-chalk/lib/icon.css +1 -0
  161. package/packages/theme-chalk/lib/image-preview.css +0 -0
  162. package/packages/theme-chalk/lib/image.css +0 -0
  163. package/packages/theme-chalk/lib/index.css +1 -0
  164. package/packages/theme-chalk/lib/list.css +0 -0
  165. package/packages/theme-chalk/lib/loading.css +0 -0
  166. package/packages/theme-chalk/lib/nav-bar.css +0 -0
  167. package/packages/theme-chalk/lib/navbar.css +1 -0
  168. package/packages/theme-chalk/lib/notice-bar.css +0 -0
  169. package/packages/theme-chalk/lib/pagination.css +1 -0
  170. package/packages/theme-chalk/lib/picker.css +1 -0
  171. package/packages/theme-chalk/lib/popover.css +0 -0
  172. package/packages/theme-chalk/lib/popup.css +0 -0
  173. package/packages/theme-chalk/lib/pull-refresh.css +0 -0
  174. package/packages/theme-chalk/lib/radio.css +1 -0
  175. package/packages/theme-chalk/lib/rate.css +0 -0
  176. package/packages/theme-chalk/lib/retrial-auth.css +1 -0
  177. package/packages/theme-chalk/lib/search.css +0 -0
  178. package/packages/theme-chalk/lib/selector.css +1 -0
  179. package/packages/theme-chalk/lib/skeleton.css +0 -0
  180. package/packages/theme-chalk/lib/stepper.css +1 -0
  181. package/packages/theme-chalk/lib/swipe.css +0 -0
  182. package/packages/theme-chalk/lib/switch.css +1 -0
  183. package/packages/theme-chalk/lib/tab.css +0 -0
  184. package/packages/theme-chalk/lib/table-column.css +0 -0
  185. package/packages/theme-chalk/lib/table.css +1 -0
  186. package/packages/theme-chalk/lib/tabs.css +1 -0
  187. package/packages/theme-chalk/lib/tag.css +1 -0
  188. package/packages/theme-chalk/lib/theme.css +0 -0
  189. package/packages/theme-chalk/lib/tree.css +1 -0
  190. package/packages/theme-chalk/lib/uploader.css +0 -0
  191. package/packages/theme-chalk/src/base.scss +195 -195
  192. package/packages/theme-chalk/src/button-group.scss +25 -25
  193. package/packages/theme-chalk/src/button.scss +2 -2
  194. package/packages/theme-chalk/src/calendar.scss +11 -11
  195. package/packages/theme-chalk/src/cascader.scss +11 -11
  196. package/packages/theme-chalk/src/cell.scss +14 -14
  197. package/packages/theme-chalk/src/checkbox.scss +9 -9
  198. package/packages/theme-chalk/src/circle.scss +6 -6
  199. package/packages/theme-chalk/src/common/var.scss +1525 -1525
  200. package/packages/theme-chalk/src/esign.scss +51 -51
  201. package/packages/theme-chalk/src/field.scss +98 -98
  202. package/packages/theme-chalk/src/flow-btn.scss +99 -99
  203. package/packages/theme-chalk/src/flow-list.scss +122 -122
  204. package/packages/theme-chalk/src/fonts/iconfont.scss +98 -98
  205. package/packages/theme-chalk/src/fonts/iconfont1.scss +90 -90
  206. package/packages/theme-chalk/src/form.scss +107 -33
  207. package/packages/theme-chalk/src/grid-item.scss +16 -16
  208. package/packages/theme-chalk/src/grid.scss +46 -46
  209. package/packages/theme-chalk/src/icon.scss +1661 -1661
  210. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  211. package/packages/theme-chalk/src/navbar.scss +5 -5
  212. package/packages/theme-chalk/src/pagination.scss +12 -12
  213. package/packages/theme-chalk/src/picker.scss +31 -31
  214. package/packages/theme-chalk/src/radio.scss +6 -6
  215. package/packages/theme-chalk/src/retrial-auth.scss +28 -28
  216. package/packages/theme-chalk/src/selector.scss +247 -247
  217. package/packages/theme-chalk/src/stepper.scss +9 -9
  218. package/packages/theme-chalk/src/switch.scss +5 -5
  219. package/packages/theme-chalk/src/table.scss +86 -86
  220. package/packages/theme-chalk/src/tabs.scss +31 -31
  221. package/packages/theme-chalk/src/tag.scss +12 -12
  222. package/packages/theme-chalk/src/theme.scss +1 -1
  223. package/packages/theme-chalk/src/tree.scss +127 -127
  224. package/packages/uploader/index.js +5 -5
  225. package/src/config/api.js +190 -190
  226. package/src/index.js +1 -1
  227. package/src/utils/axios.js +217 -217
  228. package/src/utils/date-util.js +312 -312
  229. package/src/utils/http.js +106 -106
  230. package/src/utils/rules.js +18 -18
  231. package/src/utils/store.js +21 -21
  232. package/packages/theme-chalk/gulpfile.js +0 -25
@@ -1,494 +1,494 @@
1
- <template>
2
- <!-- 审核按钮 -->
3
- <div class="em-flow-btn" v-if="isShowBtnList">
4
- <div class="btn-list btn-list-1" v-if="type === 'fenyue'">
5
- <div class="right-one" @click="toRead" v-if="!rejectObj.fun">
6
- <div class="audit">阅结</div>
7
- </div>
8
- </div>
9
- <div class="btn-list" v-else>
10
- <div class="left">
11
- <div
12
- class="item"
13
- v-if="pointsReadingObj.fun"
14
- @click="toStartTaskRead(pointsReadingObj)"
15
- >
16
- <img
17
- class="icon"
18
- src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAjCAYAAAD8Bagg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lGd3smuJlAmk1kPwFSISinFsVjsGDM/bqItpbwQi9XfrFqWtUpKedHzvJ8q4WoCCSEmmdkU9SbXTESmk7SI6JZpd4Nat67gEFEKwLdSypfy+fyN8OLg+PBMX1b1chVCGMeSiH4N/q+4Mw1q6CQRbQRwRWvdlsvlrlYCJZPJEcuy2ph5T2VnY9pmcwtf831/n+/7f6TT6RUDlctlTiQS6+Px+JdEVFJK7fU871oYKCiFvwKwhYi2u657YUkJ6ziOAbqulNpRGd668hQYG00S0Tcm5Uqptkqg/v7+7cx8iplLRLTNdd3fK4F+APAkM3flcrlTK4EIr+np6VmTSqVMN7rWtu1dg4OD3y/OB4I+aU5uAJ9MT0+LxTpp0YYcxzkc9Fu/AfhASvl1IpEorfRLx+zsLFpaWkYBPMfMRWY2e/6ZTCaf0FpniWi3aQillC/n8/mFnmxJhAx1U1PTO8z8mvkWBOAfANMAFo76FQyj7fsArDNricjsY7pT8zWFmPksEb3nuu7pansvCPjQoUNJ3/efZeZXATxjmn4AkVvm20AvuV6Y2TzksVKp9PHo6OjU7R70P943RUDEn1FvAAAAAElFTkSuQmCC"
19
- />
20
- <div class="label">{{ pointsReadingObj.value }}</div>
21
- </div>
22
- <div
23
- class="item"
24
- v-if="moreList.length > 0"
25
- @click="isShowMore = !isShowMore"
26
- >
27
- <img
28
- class="icon"
29
- src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAAAXNSR0IArs4c6QAABjVJREFUWEftWG2MXFUZft5z794VdrPMbmkRulHiD2oiHwohUELjF9EYERQcCG1qprP33tldbAGTohXUQUwr1q9km92ZO5PdiaFV2JoGmroGYiLyQxJJJIoGogRad0n4WKfVLilzZ85D3nWmmd3O7FYZf5h4/uzHPffc57zneZ/3eY/gX0PS6XSv4zgXWmsTxhjW/7/4w1orIlJbu3btsfn5+eNRFMXNz9v8LmEYbgDgk7wWwFsi8jiAn0VR9Gard2T79u3dp06d+jSAewBcIiJum8UpIv8g+SiAH7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loOT2dTl/kuu5OkreJyACAKsmXSU56nlccHx8/eUbVXkYuzQot9S3HWfqY0+8qRxzHUUHcKCLHrbW/WmkjS6rz2QjVf3POEjB1vehEZJSL7UwayuWybXXMi2A6yRlVYxG5nuQV7ZJBROattc9Ya59rthgdyyaN6po1azZZax8EcA2ArnZHWneOCyLyCMmvNSxsx3QmlUpd7Hne4yTfB+AZADMiUmkDaB2AzwP4MIBsuVzeMz09XemYAg8NDSUdx1FPc8gYc28ul3tlBbIb3/c/Z4xRPzPved6msbGxNzpSm8Iw7BKRB+qF785CoTC+WtZt3ry5v6en56CIXFqtVj87OTn5bEeqtoIh+aB6YxEZyefz2hmsOFKpVKKrq2taRC4neWOhUPhdR/xMMxgAo1EUaXew4tDI9Pb2TgNQP/x/MKej9b8RmXfbN/2nBHZd96Ax5rJKpXJjqVRaJPC77ihVfQcGBu5RD6MiFkXRt1cz5Ol0+gOu6x4ieb7rup+YmJh4sWO99rZt2z7a1dV1hORfVHNqtdpvarWabdW3O45znjFmq4h8XdXadd2b1N907BZidHS011qrRn0rgL/r0evVTqsbDQB9AD6k1y8ktxQKhUOLczt5P1O3sNr+biXZt4KFjbWDAPCjOI6PNOxnw88s3lzpVYeIaHN1xlA3v27dutdWu7nKZrPu0aNH+40xulZLbxTH8UK1Wn1j//796o9PN3vvAJM7pkb7KNEiAAAAAElFTkSuQmCC"
30
- />
31
- <div class="label">更多</div>
32
- </div>
33
- </div>
34
- <div
35
- class="right-one"
36
- @click="
37
- toAudit(
38
- (currentNodeAttr && currentNodeAttr.submitButtonText) || '审核'
39
- )
40
- "
41
- v-if="!rejectObj.fun"
42
- >
43
- <div class="audit">
44
- {{ (currentNodeAttr && currentNodeAttr.submitButtonText) || '审核' }}
45
- </div>
46
- </div>
47
- <div class="right-two" v-else>
48
- <div class="reject" @click="reject(rejectObj)">
49
- {{ rejectObj.value }}
50
- </div>
51
- <div
52
- class="audit"
53
- @click="
54
- toAudit(
55
- (currentNodeAttr && currentNodeAttr.submitButtonText) || '审核'
56
- )
57
- "
58
- >
59
- {{ (currentNodeAttr && currentNodeAttr.submitButtonText) || '审核' }}
60
- </div>
61
- </div>
62
- </div>
63
- <div class="more-list" v-if="isShowMore && moreList.length > 0">
64
- <div
65
- @click="toView(res)"
66
- v-for="(res, index) in moreList"
67
- :key="index"
68
- class="item"
69
- >
70
- {{ res.value }}
71
- </div>
72
- </div>
73
- </div>
74
- </template>
75
- <script>
76
- import { getHandleButtonHtml, getSysParam } from '../../../src/config/api';
77
- import request from '../../../src/utils/http.js';
78
- // import {
79
- // getHandleButtonHtml,
80
- // endFlowHtml,
81
- // rejectAndEndHtml,
82
- // getSysParam,
83
- // } from "@/http/http.js";
84
-
85
- export default {
86
- name: 'EmFlowBtn',
87
- props: {
88
- pendingId: String, //待办id 必传
89
- appid: String, //业务id
90
- type: {
91
- type: String,
92
- default: ''
93
- }, // 按钮类型是抄送我 还是待处理
94
- save: Function,
95
- businessId: String //
96
- },
97
- data() {
98
- return {
99
- moreList: [], //更多数组
100
- pointsReadingObj: {
101
- value: '分阅',
102
- fun: undefined
103
- }, // 分阅
104
- rejectObj: {
105
- value: '驳回',
106
- fun: undefined
107
- },
108
- noNodeList: [], // 不能手机端办理节点数组
109
- isShowMore: false, //用来判断是否展示更多数组
110
- isShowBtnList: false, // 用来判断是否显示审核按钮
111
- currentNodeAttr: {}
112
- };
113
- },
114
- watch: {
115
- pendingId: {
116
- handler(val) {
117
- if (this.type !== 'fenyue' && val) {
118
- Promise.all([this.getBtnList(), this.getNoNode()]).then(() => {
119
- let name = this.$route.query.itemname;
120
- let is = this.noNodeList.includes(name);
121
- this.isShowBtnList = !is ? true : false;
122
- if (is) {
123
- this.$toast('当前节点不支持app办理,请去pc端办理');
124
- }
125
- });
126
- } else {
127
- this.isShowBtnList = true;
128
- }
129
- },
130
- deep: true,
131
- immediate: true
132
- }
133
- },
134
- created() {},
135
- methods: {
136
- // 获取不可办理节点
137
- getNoNode() {
138
- return new Promise((resolve, reject) => {
139
- request({
140
- url: getSysParam,
141
- params: {
142
- name: 'app_MECP_appNonSupportNode'
143
- }
144
- }).then(res => {
145
- if (res.rCode == 0) {
146
- this.noNodeList = res.results.split(',');
147
- resolve();
148
- } else {
149
- this.$toast(res.msg);
150
- reject();
151
- }
152
- });
153
- });
154
- },
155
- toRead() {
156
- this.$emit('click', {
157
- name: 'newProcessAudit',
158
- type: 'handle',
159
- typeCode: 'fenyue',
160
- h5HeadTitle: '阅结',
161
- pendingId: this.pendingId,
162
- businessId: this.businessId
163
- });
164
- // this.$router.push({
165
- // name: "newProcessAudit",
166
- // query: {
167
- // h5HeadTitle: "阅结",
168
- // pendingId: this.pendingId,
169
- // businessId: this.businessId,
170
- // typeCode: "fenyue",
171
- // },
172
- // });
173
- },
174
- // 获取审核按钮
175
- getBtnList() {
176
- return new Promise((resolve, reject) => {
177
- request({
178
- url: getHandleButtonHtml,
179
- params: {
180
- pendingId: this.pendingId
181
- }
182
- }).then(res => {
183
- if (res.rCode == 0) {
184
- let data = res.results.taskButtonList;
185
- this.moreList = [];
186
- if (data) {
187
- for (let i = 0; i < data.length; i++) {
188
- if (data[i].fun === 'reject()') {
189
- this.rejectObj = data[i];
190
- } else if (data[i].fun === 'toStartTaskRead()') {
191
- this.pointsReadingObj = data[i];
192
- } else if (data[i].fun === 'toSendMsg()') {
193
- // return
194
- } else {
195
- this.moreList.push(data[i]);
196
- }
197
- }
198
- this.currentNodeAttr = res.results.currentNodeAttr;
199
- }
200
- resolve();
201
- } else {
202
- this.$toast(res.msg);
203
- reject();
204
- }
205
- });
206
- });
207
- },
208
- toView(res) {
209
- // 驳回并办结:rejectAndEndHtml
210
- // 获取转办页面:toTaskTransferHtml
211
- // 转办:taskTransferHtml
212
- // 获取分阅页面信息:toStartTaskReadHtml
213
- // 分阅:taskReadHtml
214
- // 获取驳回页面信息:toTaskRejectHtml(注释有误:appId改为pendingId)
215
- // 驳回:taskRejectHtml
216
- // 直接办结:endFlowHtml
217
- if (res.fun === 'toStartTaskRead()') {
218
- // 分阅
219
- this.toStartTaskRead(res);
220
- } else if (res.fun === 'reject()') {
221
- // 驳回
222
- this.reject(res);
223
- } else if (res.fun === 'endFlow()') {
224
- // 直接办结
225
- this.endFlow(res);
226
- } else if (res.fun === 'rejectAndEnd()') {
227
- // 驳回并办结
228
- this.rejectAndEnd(res);
229
- } else if (res.fun === 'toTransfer()') {
230
- // 转办
231
- this.toTransfer(res);
232
- } else if (res.fun === 'toTaskReadAndEnd()') {
233
- this.toTaskReadAndEnd(res);
234
- } else if (res.fun === 'toSendMsg()') {
235
- this.toSendMsg(res);
236
- } else if (
237
- res.fun === 'toUnionExamine()' ||
238
- res.fun === 'toTakeAdvice()' ||
239
- res.fun === 'toStartDraf()'
240
- ) {
241
- const { itemname, appid } = this.$route.query;
242
- this.$emit('click', {
243
- name: 'newProcessAudit',
244
- type:
245
- res.fun == 'toUnionExamine()'
246
- ? 'unionExamine'
247
- : res.fun == 'toTakeAdvice()'
248
- ? 'takeAdvice'
249
- : res.fun === 'toStartDraf()'
250
- ? 'startDraf'
251
- : '',
252
- h5HeadTitle: '阅结',
253
- h5HeadTitle: res.value,
254
- pendingId: this.pendingId,
255
- businessId: this.businessId,
256
- // appid: this.businessId,
257
- itemname
258
- });
259
- // this.$router.push({
260
- // name: "newProcessAudit",
261
- // query: {
262
- // h5HeadTitle: res.value,
263
- // pendingId: this.pendingId,
264
- // itemname,
265
- // type:
266
- // res.fun == "toUnionExamine()"
267
- // ? "unionExamine"
268
- // : res.fun == "toTakeAdvice()"
269
- // ? "takeAdvice"
270
- // : res.fun === "toStartDraf()"
271
- // ? "startDraf"
272
- // : "",
273
- // appid:this.businessId,
274
- // userId: localStorage.getItem("userId"),
275
- // },
276
- // });
277
- }
278
- },
279
- toAudit(btnText) {
280
- if (
281
- this.$route.query.bcode &&
282
- this.$route.query.bcode.indexOf('form_') != -1
283
- ) {
284
- this.save()
285
- .then(res => {
286
- this.$emit('click', {
287
- name: 'newProcessAudit',
288
- h5HeadTitle: btnText,
289
- type: 'handle',
290
- pendingId: this.pendingId,
291
- taskRead: this.$route.query.taskRead,
292
- taskReadName: this.$route.query.taskReadName,
293
- businessId: this.businessId
294
- });
295
- // this.$router.push({
296
- // name: "newProcessAudit",
297
- // query: {
298
- // h5HeadTitle: "审核",
299
- // pendingId: this.pendingId,
300
- // taskRead: this.$route.query.taskRead,
301
- // taskReadName: this.$route.query.taskReadName,
302
- // businessId: this.$route.query.apprecordid,
303
- // },
304
- // });
305
- })
306
- .catch(err => {
307
- console.log('失败');
308
- })
309
- .finally(() => {});
310
- } else {
311
- this.$emit('click', {
312
- name: 'newProcessAudit',
313
- h5HeadTitle: btnText,
314
- type: 'handle',
315
- pendingId: this.pendingId,
316
- businessId: this.businessId
317
- });
318
- // this.$router.push({
319
- // name: "newProcessAudit",
320
- // query: {
321
- // h5HeadTitle: "审核",
322
- // pendingId: this.pendingId,
323
- // businessId: this.$route.query.apprecordid,
324
- // },
325
- // });
326
- }
327
- },
328
- toStartDraf(res) {
329
- this.$emit('click', {
330
- name: 'ProcessStartDraf',
331
- type: 'startDraf',
332
- h5HeadTitle: res.value,
333
- pendingId: this.pendingId,
334
- businessId: this.businessId
335
- // appid: this.businessId
336
- });
337
- // this.$router.push({
338
- // name: 'ProcessStartDraf',
339
- // query: {
340
- // h5HeadTitle: res.value,
341
- // pendingId: this.pendingId,
342
- // appid: this.businessId
343
- // }
344
- // });
345
- },
346
- reject(res) {
347
- this.$emit('click', {
348
- name: 'ProcessReject',
349
- type: 'reject',
350
- h5HeadTitle: res.value,
351
- pendingId: this.pendingId,
352
- businessId: this.businessId
353
- // appid: this.businessId
354
- });
355
- // this.$router.push({
356
- // name: 'ProcessReject',
357
- // query: {
358
- // h5HeadTitle: res.value,
359
- // pendingId: this.pendingId,
360
- // appid: this.businessId
361
- // }
362
- // });
363
- },
364
- toStartTaskRead(res) {
365
- this.$emit('click', {
366
- name: 'ProcessTaskRead',
367
- type: 'taskRead',
368
- h5HeadTitle: res.value,
369
- pendingId: this.pendingId,
370
- businessId: this.businessId
371
- // appid: this.businessId
372
- });
373
- // this.$router.push({
374
- // name: "ProcessTaskRead",
375
- // query: {
376
- // h5HeadTitle: res.value,
377
- // pendingId: this.pendingId,
378
- // appid: this.businessId,
379
- // },
380
- // });
381
- },
382
- endFlow(res) {
383
- this.$dialog
384
- .confirm({
385
- title: '标题',
386
- message: '确认' + res.value + '?'
387
- })
388
- .then(() => {
389
- this.$toast.loading({
390
- message: '加载中...',
391
- forbidClick: true,
392
- loadingType: 'spinner',
393
- overlay: true,
394
- duration: 0
395
- });
396
- request({
397
- url: endFlowHtml,
398
- params: {
399
- pendingId: this.pendingId
400
- }
401
- }).then(res => {
402
- if (res.rCode == 0) {
403
- this.$toast(res.msg);
404
- localStorage.setItem('taskEndFlow', true);
405
- this.$router.go(-1);
406
- } else {
407
- this.$toast(res.msg);
408
- }
409
- });
410
- })
411
- .catch(() => {
412
- // on cancel
413
- });
414
- },
415
- rejectAndEnd(res) {
416
- this.$dialog
417
- .confirm({
418
- title: '标题',
419
- message: '确认' + res.value + '?'
420
- })
421
- .then(() => {
422
- request({
423
- url: rejectAndEndHtml,
424
- params: {
425
- pendingId: this.pendingId
426
- }
427
- }).then(res => {
428
- if (res.rCode == 0) {
429
- this.$toast(res.msg);
430
- localStorage.setItem('taskEndFlow', true);
431
- this.$router.go(-1);
432
- } else {
433
- this.$toast(res.msg);
434
- }
435
- });
436
- })
437
- .catch(() => {
438
- // on cancel
439
- });
440
- },
441
- toTransfer(res) {
442
- this.$emit('click', {
443
- name: 'ProcessTransfer',
444
- type: 'transfer',
445
- h5HeadTitle: res.value,
446
- pendingId: this.pendingId
447
- });
448
- // this.$router.push({
449
- // name: 'ProcessTransfer',
450
- // query: {
451
- // h5HeadTitle: res.btnName,
452
- // pendingId: this.pendingId
453
- // }
454
- // });
455
- },
456
- toTaskReadAndEnd(res) {
457
- this.$emit('click', {
458
- name: 'ProcessTaskRead',
459
- type: 'taskRead',
460
- h5HeadTitle: res.value,
461
- businessId: this.businessId,
462
- // appid: this.businessId,
463
- pendingId: this.pendingId,
464
- taskAction: 'taskAction'
465
- });
466
- // this.$router.push({
467
- // name: 'ProcessTaskRead',
468
- // query: {
469
- // h5HeadTitle: res.value,
470
- // businessId: this.businessId,
471
- // // appid: this.businessId,
472
- // pendingId: this.pendingId,
473
- // taskAction: 'taskAction'
474
- // }
475
- // });
476
- },
477
- toSendMsg(res) {
478
- this.$emit('click', {
479
- name: 'ProcessSendMsg',
480
- type: 'sendMsg',
481
- h5HeadTitle: res.value,
482
- title: '测试表单'
483
- });
484
- // this.$router.push({
485
- // name: 'ProcessSendMsg',
486
- // query: {
487
- // h5HeadTitle: res.value,
488
- // title: '测试表单'
489
- // }
490
- // });
491
- }
492
- }
493
- };
494
- </script>
1
+ <template>
2
+ <!-- 审核按钮 -->
3
+ <div class="em-flow-btn" v-if="isShowBtnList">
4
+ <div class="btn-list btn-list-1" v-if="type === 'fenyue'">
5
+ <div class="right-one" @click="toRead" v-if="!rejectObj.fun">
6
+ <div class="audit">阅结</div>
7
+ </div>
8
+ </div>
9
+ <div class="btn-list" v-else>
10
+ <div class="left">
11
+ <div
12
+ class="item"
13
+ v-if="pointsReadingObj.fun"
14
+ @click="toStartTaskRead(pointsReadingObj)"
15
+ >
16
+ <img
17
+ class="icon"
18
+ src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAjCAYAAAD8BaggAAAAAXNSR0IArs4c6QAABNBJREFUWEftmE9oXFUUxr/z3vxNbKpUitpaEbGghbYbK11IN5a2JI2VNFELiU2cdzObbhR1YQtdKS6Ki4AhL/Mmo5WmOiAK0kVdmKQ0UouIVLS10FKotUIkUcdM83LvPXLDi7xMpp036Sx7IQTmnnvP753zvXvPeYTbD8pmszu01h3MvI2IngYQu4N9XVPMrIjoCoDzWuuTc3Nzk8ePH/+Xqu2SzWbXKqXeBtAN4EEiKgO4CWC+Lq9VjJmZAbQAeJiIZgGkmflvIvp0fn7+SDUgEkK8CeBd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APAkM3flcrlTK4EIr+np6VmTSqVMN7rWtu1dg4OD3y/OB4I+aU5uAJ9MT0+LxTpp0YYcxzkc9Fu/AfhASvl1IpEorfRLx+zsLFpaWkYBPMfMRWY2e/6ZTCaf0FpniWi3aQillC/n8/mFnmxJhAx1U1PTO8z8mvkWBOAfANMAFo76FQyj7fsArDNricjsY7pT8zWFmPksEb3nuu7pansvCPjQoUNJ3/efZeZXATxjmn4AkVvm20AvuV6Y2TzksVKp9PHo6OjU7R70P943RUDEn1FvAAAAAElFTkSuQmCC"
19
+ />
20
+ <div class="label">{{ pointsReadingObj.value }}</div>
21
+ </div>
22
+ <div
23
+ class="item"
24
+ v-if="moreList.length > 0"
25
+ @click="isShowMore = !isShowMore"
26
+ >
27
+ <img
28
+ class="icon"
29
+ src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAAAXNSR0IArs4c6QAABjVJREFUWEftWG2MXFUZft5z794VdrPMbmkRulHiD2oiHwohUELjF9EYERQcCG1qprP33tldbAGTohXUQUwr1q9km92ZO5PdiaFV2JoGmroGYiLyQxJJJIoGogRad0n4WKfVLilzZ85D3nWmmd3O7FYZf5h4/uzHPffc57zneZ/3eY/gX0PS6XSv4zgXWmsTxhjW/7/4w1orIlJbu3btsfn5+eNRFMXNz9v8LmEYbgDgk7wWwFsi8jiAn0VR9Gard2T79u3dp06d+jSAewBcIiJum8UpIv8g+SiAH7dbsPFuJpPZSHIfgMsBnABgAHSTfEpEtkdR9NLy74jv+3cYY6b0AckXAbyuYWieSFKBCMkNInIRgAkA90ZR9FYr4EEQXCciOd0cyYMAfm6Mcay1GQAfF5EnrbWjxWLx5eb3JQiCpwFcAeB7AB6N4/j1SqWyBIzneVxYWDCJROI6AHtF5AKSXygUCk8tB1OPiIL9IMlcHMfZUql0XOcNDQ293xiTF5EbADwBYEmE9FxnSb5K8pZisTi7Ehey2ayZm5vbLSJfBbCrXC7vnZ6erjV4FwTBRo2aiGyw1uattfdP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RB+qF785CoTC+WtZt3ry5v6en56CIXFqtVj87OTn5bEeqtoIh+aB6YxEZyefz2hmsOFKpVKKrq2taRC4neWOhUPhdR/xMMxgAo1EUaXew4tDI9Pb2TgNQP/x/MKej9b8RmXfbN/2nBHZd96Ax5rJKpXJjqVRaJPC77ihVfQcGBu5RD6MiFkXRt1cz5Ol0+gOu6x4ieb7rup+YmJh4sWO99rZt2z7a1dV1hORfVHNqtdpvarWabdW3O45znjFmq4h8XdXadd2b1N907BZidHS011qrRn0rgL/r0evVTqsbDQB9AD6k1y8ktxQKhUOLczt5P1O3sNr+biXZt4KFjbWDAPCjOI6PNOxnw88s3lzpVYeIaHN1xlA3v27dutdWu7nKZrPu0aNH+40xulZLbxTH8UK1Wn1j//796o9PN3vvAJM7pkb7KNEiAAAAAElFTkSuQmCC"
30
+ />
31
+ <div class="label">更多</div>
32
+ </div>
33
+ </div>
34
+ <div
35
+ class="right-one"
36
+ @click="
37
+ toAudit(
38
+ (currentNodeAttr && currentNodeAttr.submitButtonText) || '审核'
39
+ )
40
+ "
41
+ v-if="!rejectObj.fun"
42
+ >
43
+ <div class="audit">
44
+ {{ (currentNodeAttr && currentNodeAttr.submitButtonText) || '审核' }}
45
+ </div>
46
+ </div>
47
+ <div class="right-two" v-else>
48
+ <div class="reject" @click="reject(rejectObj)">
49
+ {{ rejectObj.value }}
50
+ </div>
51
+ <div
52
+ class="audit"
53
+ @click="
54
+ toAudit(
55
+ (currentNodeAttr && currentNodeAttr.submitButtonText) || '审核'
56
+ )
57
+ "
58
+ >
59
+ {{ (currentNodeAttr && currentNodeAttr.submitButtonText) || '审核' }}
60
+ </div>
61
+ </div>
62
+ </div>
63
+ <div class="more-list" v-if="isShowMore && moreList.length > 0">
64
+ <div
65
+ @click="toView(res)"
66
+ v-for="(res, index) in moreList"
67
+ :key="index"
68
+ class="item"
69
+ >
70
+ {{ res.value }}
71
+ </div>
72
+ </div>
73
+ </div>
74
+ </template>
75
+ <script>
76
+ import { getHandleButtonHtml, getSysParam } from '../../../src/config/api';
77
+ import request from '../../../src/utils/http.js';
78
+ // import {
79
+ // getHandleButtonHtml,
80
+ // endFlowHtml,
81
+ // rejectAndEndHtml,
82
+ // getSysParam,
83
+ // } from "@/http/http.js";
84
+
85
+ export default {
86
+ name: 'EmFlowBtn',
87
+ props: {
88
+ pendingId: String, //待办id 必传
89
+ appid: String, //业务id
90
+ type: {
91
+ type: String,
92
+ default: ''
93
+ }, // 按钮类型是抄送我 还是待处理
94
+ save: Function,
95
+ businessId: String //
96
+ },
97
+ data() {
98
+ return {
99
+ moreList: [], //更多数组
100
+ pointsReadingObj: {
101
+ value: '分阅',
102
+ fun: undefined
103
+ }, // 分阅
104
+ rejectObj: {
105
+ value: '驳回',
106
+ fun: undefined
107
+ },
108
+ noNodeList: [], // 不能手机端办理节点数组
109
+ isShowMore: false, //用来判断是否展示更多数组
110
+ isShowBtnList: false, // 用来判断是否显示审核按钮
111
+ currentNodeAttr: {}
112
+ };
113
+ },
114
+ watch: {
115
+ pendingId: {
116
+ handler(val) {
117
+ if (this.type !== 'fenyue' && val) {
118
+ Promise.all([this.getBtnList(), this.getNoNode()]).then(() => {
119
+ let name = this.$route.query.itemname;
120
+ let is = this.noNodeList.includes(name);
121
+ this.isShowBtnList = !is ? true : false;
122
+ if (is) {
123
+ this.$toast('当前节点不支持app办理,请去pc端办理');
124
+ }
125
+ });
126
+ } else {
127
+ this.isShowBtnList = true;
128
+ }
129
+ },
130
+ deep: true,
131
+ immediate: true
132
+ }
133
+ },
134
+ created() {},
135
+ methods: {
136
+ // 获取不可办理节点
137
+ getNoNode() {
138
+ return new Promise((resolve, reject) => {
139
+ request({
140
+ url: getSysParam,
141
+ params: {
142
+ name: 'app_MECP_appNonSupportNode'
143
+ }
144
+ }).then(res => {
145
+ if (res.rCode == 0) {
146
+ this.noNodeList = res.results.split(',');
147
+ resolve();
148
+ } else {
149
+ this.$toast(res.msg);
150
+ reject();
151
+ }
152
+ });
153
+ });
154
+ },
155
+ toRead() {
156
+ this.$emit('click', {
157
+ name: 'newProcessAudit',
158
+ type: 'handle',
159
+ typeCode: 'fenyue',
160
+ h5HeadTitle: '阅结',
161
+ pendingId: this.pendingId,
162
+ businessId: this.businessId
163
+ });
164
+ // this.$router.push({
165
+ // name: "newProcessAudit",
166
+ // query: {
167
+ // h5HeadTitle: "阅结",
168
+ // pendingId: this.pendingId,
169
+ // businessId: this.businessId,
170
+ // typeCode: "fenyue",
171
+ // },
172
+ // });
173
+ },
174
+ // 获取审核按钮
175
+ getBtnList() {
176
+ return new Promise((resolve, reject) => {
177
+ request({
178
+ url: getHandleButtonHtml,
179
+ params: {
180
+ pendingId: this.pendingId
181
+ }
182
+ }).then(res => {
183
+ if (res.rCode == 0) {
184
+ let data = res.results.taskButtonList;
185
+ this.moreList = [];
186
+ if (data) {
187
+ for (let i = 0; i < data.length; i++) {
188
+ if (data[i].fun === 'reject()') {
189
+ this.rejectObj = data[i];
190
+ } else if (data[i].fun === 'toStartTaskRead()') {
191
+ this.pointsReadingObj = data[i];
192
+ } else if (data[i].fun === 'toSendMsg()') {
193
+ // return
194
+ } else {
195
+ this.moreList.push(data[i]);
196
+ }
197
+ }
198
+ this.currentNodeAttr = res.results.currentNodeAttr;
199
+ }
200
+ resolve();
201
+ } else {
202
+ this.$toast(res.msg);
203
+ reject();
204
+ }
205
+ });
206
+ });
207
+ },
208
+ toView(res) {
209
+ // 驳回并办结:rejectAndEndHtml
210
+ // 获取转办页面:toTaskTransferHtml
211
+ // 转办:taskTransferHtml
212
+ // 获取分阅页面信息:toStartTaskReadHtml
213
+ // 分阅:taskReadHtml
214
+ // 获取驳回页面信息:toTaskRejectHtml(注释有误:appId改为pendingId)
215
+ // 驳回:taskRejectHtml
216
+ // 直接办结:endFlowHtml
217
+ if (res.fun === 'toStartTaskRead()') {
218
+ // 分阅
219
+ this.toStartTaskRead(res);
220
+ } else if (res.fun === 'reject()') {
221
+ // 驳回
222
+ this.reject(res);
223
+ } else if (res.fun === 'endFlow()') {
224
+ // 直接办结
225
+ this.endFlow(res);
226
+ } else if (res.fun === 'rejectAndEnd()') {
227
+ // 驳回并办结
228
+ this.rejectAndEnd(res);
229
+ } else if (res.fun === 'toTransfer()') {
230
+ // 转办
231
+ this.toTransfer(res);
232
+ } else if (res.fun === 'toTaskReadAndEnd()') {
233
+ this.toTaskReadAndEnd(res);
234
+ } else if (res.fun === 'toSendMsg()') {
235
+ this.toSendMsg(res);
236
+ } else if (
237
+ res.fun === 'toUnionExamine()' ||
238
+ res.fun === 'toTakeAdvice()' ||
239
+ res.fun === 'toStartDraf()'
240
+ ) {
241
+ const { itemname, appid } = this.$route.query;
242
+ this.$emit('click', {
243
+ name: 'newProcessAudit',
244
+ type:
245
+ res.fun == 'toUnionExamine()'
246
+ ? 'unionExamine'
247
+ : res.fun == 'toTakeAdvice()'
248
+ ? 'takeAdvice'
249
+ : res.fun === 'toStartDraf()'
250
+ ? 'startDraf'
251
+ : '',
252
+ h5HeadTitle: '阅结',
253
+ h5HeadTitle: res.value,
254
+ pendingId: this.pendingId,
255
+ businessId: this.businessId,
256
+ // appid: this.businessId,
257
+ itemname
258
+ });
259
+ // this.$router.push({
260
+ // name: "newProcessAudit",
261
+ // query: {
262
+ // h5HeadTitle: res.value,
263
+ // pendingId: this.pendingId,
264
+ // itemname,
265
+ // type:
266
+ // res.fun == "toUnionExamine()"
267
+ // ? "unionExamine"
268
+ // : res.fun == "toTakeAdvice()"
269
+ // ? "takeAdvice"
270
+ // : res.fun === "toStartDraf()"
271
+ // ? "startDraf"
272
+ // : "",
273
+ // appid:this.businessId,
274
+ // userId: localStorage.getItem("userId"),
275
+ // },
276
+ // });
277
+ }
278
+ },
279
+ toAudit(btnText) {
280
+ if (
281
+ this.$route.query.bcode &&
282
+ this.$route.query.bcode.indexOf('form_') != -1
283
+ ) {
284
+ this.save()
285
+ .then(res => {
286
+ this.$emit('click', {
287
+ name: 'newProcessAudit',
288
+ h5HeadTitle: btnText,
289
+ type: 'handle',
290
+ pendingId: this.pendingId,
291
+ taskRead: this.$route.query.taskRead,
292
+ taskReadName: this.$route.query.taskReadName,
293
+ businessId: this.businessId
294
+ });
295
+ // this.$router.push({
296
+ // name: "newProcessAudit",
297
+ // query: {
298
+ // h5HeadTitle: "审核",
299
+ // pendingId: this.pendingId,
300
+ // taskRead: this.$route.query.taskRead,
301
+ // taskReadName: this.$route.query.taskReadName,
302
+ // businessId: this.$route.query.apprecordid,
303
+ // },
304
+ // });
305
+ })
306
+ .catch(err => {
307
+ console.log('失败');
308
+ })
309
+ .finally(() => {});
310
+ } else {
311
+ this.$emit('click', {
312
+ name: 'newProcessAudit',
313
+ h5HeadTitle: btnText,
314
+ type: 'handle',
315
+ pendingId: this.pendingId,
316
+ businessId: this.businessId
317
+ });
318
+ // this.$router.push({
319
+ // name: "newProcessAudit",
320
+ // query: {
321
+ // h5HeadTitle: "审核",
322
+ // pendingId: this.pendingId,
323
+ // businessId: this.$route.query.apprecordid,
324
+ // },
325
+ // });
326
+ }
327
+ },
328
+ toStartDraf(res) {
329
+ this.$emit('click', {
330
+ name: 'ProcessStartDraf',
331
+ type: 'startDraf',
332
+ h5HeadTitle: res.value,
333
+ pendingId: this.pendingId,
334
+ businessId: this.businessId
335
+ // appid: this.businessId
336
+ });
337
+ // this.$router.push({
338
+ // name: 'ProcessStartDraf',
339
+ // query: {
340
+ // h5HeadTitle: res.value,
341
+ // pendingId: this.pendingId,
342
+ // appid: this.businessId
343
+ // }
344
+ // });
345
+ },
346
+ reject(res) {
347
+ this.$emit('click', {
348
+ name: 'ProcessReject',
349
+ type: 'reject',
350
+ h5HeadTitle: res.value,
351
+ pendingId: this.pendingId,
352
+ businessId: this.businessId
353
+ // appid: this.businessId
354
+ });
355
+ // this.$router.push({
356
+ // name: 'ProcessReject',
357
+ // query: {
358
+ // h5HeadTitle: res.value,
359
+ // pendingId: this.pendingId,
360
+ // appid: this.businessId
361
+ // }
362
+ // });
363
+ },
364
+ toStartTaskRead(res) {
365
+ this.$emit('click', {
366
+ name: 'ProcessTaskRead',
367
+ type: 'taskRead',
368
+ h5HeadTitle: res.value,
369
+ pendingId: this.pendingId,
370
+ businessId: this.businessId
371
+ // appid: this.businessId
372
+ });
373
+ // this.$router.push({
374
+ // name: "ProcessTaskRead",
375
+ // query: {
376
+ // h5HeadTitle: res.value,
377
+ // pendingId: this.pendingId,
378
+ // appid: this.businessId,
379
+ // },
380
+ // });
381
+ },
382
+ endFlow(res) {
383
+ this.$dialog
384
+ .confirm({
385
+ title: '标题',
386
+ message: '确认' + res.value + '?'
387
+ })
388
+ .then(() => {
389
+ this.$toast.loading({
390
+ message: '加载中...',
391
+ forbidClick: true,
392
+ loadingType: 'spinner',
393
+ overlay: true,
394
+ duration: 0
395
+ });
396
+ request({
397
+ url: endFlowHtml,
398
+ params: {
399
+ pendingId: this.pendingId
400
+ }
401
+ }).then(res => {
402
+ if (res.rCode == 0) {
403
+ this.$toast(res.msg);
404
+ localStorage.setItem('taskEndFlow', true);
405
+ this.$router.go(-1);
406
+ } else {
407
+ this.$toast(res.msg);
408
+ }
409
+ });
410
+ })
411
+ .catch(() => {
412
+ // on cancel
413
+ });
414
+ },
415
+ rejectAndEnd(res) {
416
+ this.$dialog
417
+ .confirm({
418
+ title: '标题',
419
+ message: '确认' + res.value + '?'
420
+ })
421
+ .then(() => {
422
+ request({
423
+ url: rejectAndEndHtml,
424
+ params: {
425
+ pendingId: this.pendingId
426
+ }
427
+ }).then(res => {
428
+ if (res.rCode == 0) {
429
+ this.$toast(res.msg);
430
+ localStorage.setItem('taskEndFlow', true);
431
+ this.$router.go(-1);
432
+ } else {
433
+ this.$toast(res.msg);
434
+ }
435
+ });
436
+ })
437
+ .catch(() => {
438
+ // on cancel
439
+ });
440
+ },
441
+ toTransfer(res) {
442
+ this.$emit('click', {
443
+ name: 'ProcessTransfer',
444
+ type: 'transfer',
445
+ h5HeadTitle: res.value,
446
+ pendingId: this.pendingId
447
+ });
448
+ // this.$router.push({
449
+ // name: 'ProcessTransfer',
450
+ // query: {
451
+ // h5HeadTitle: res.btnName,
452
+ // pendingId: this.pendingId
453
+ // }
454
+ // });
455
+ },
456
+ toTaskReadAndEnd(res) {
457
+ this.$emit('click', {
458
+ name: 'ProcessTaskRead',
459
+ type: 'taskRead',
460
+ h5HeadTitle: res.value,
461
+ businessId: this.businessId,
462
+ // appid: this.businessId,
463
+ pendingId: this.pendingId,
464
+ taskAction: 'taskAction'
465
+ });
466
+ // this.$router.push({
467
+ // name: 'ProcessTaskRead',
468
+ // query: {
469
+ // h5HeadTitle: res.value,
470
+ // businessId: this.businessId,
471
+ // // appid: this.businessId,
472
+ // pendingId: this.pendingId,
473
+ // taskAction: 'taskAction'
474
+ // }
475
+ // });
476
+ },
477
+ toSendMsg(res) {
478
+ this.$emit('click', {
479
+ name: 'ProcessSendMsg',
480
+ type: 'sendMsg',
481
+ h5HeadTitle: res.value,
482
+ title: '测试表单'
483
+ });
484
+ // this.$router.push({
485
+ // name: 'ProcessSendMsg',
486
+ // query: {
487
+ // h5HeadTitle: res.value,
488
+ // title: '测试表单'
489
+ // }
490
+ // });
491
+ }
492
+ }
493
+ };
494
+ </script>