eoss-mobiles 0.1.13

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 (285) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +28 -0
  3. package/lib/action-sheet.js +313 -0
  4. package/lib/button-group.js +421 -0
  5. package/lib/button.js +278 -0
  6. package/lib/calendar.js +301 -0
  7. package/lib/cascader.js +336 -0
  8. package/lib/cell.js +366 -0
  9. package/lib/checkbox.js +2170 -0
  10. package/lib/circle.js +299 -0
  11. package/lib/config/api.js +31 -0
  12. package/lib/count-down.js +299 -0
  13. package/lib/date.js +956 -0
  14. package/lib/empty.js +274 -0
  15. package/lib/eoss-mobile.common.js +15072 -0
  16. package/lib/field.js +440 -0
  17. package/lib/flow.js +5664 -0
  18. package/lib/form.js +714 -0
  19. package/lib/grid-item.js +274 -0
  20. package/lib/grid.js +317 -0
  21. package/lib/image-preview.js +325 -0
  22. package/lib/index.js +1 -0
  23. package/lib/list.js +315 -0
  24. package/lib/loading.js +279 -0
  25. package/lib/nav-bar.js +283 -0
  26. package/lib/pagination.js +323 -0
  27. package/lib/picker.js +2714 -0
  28. package/lib/popover.js +306 -0
  29. package/lib/popup.js +297 -0
  30. package/lib/radio.js +2137 -0
  31. package/lib/rate.js +300 -0
  32. package/lib/search.js +316 -0
  33. package/lib/selector.js +3496 -0
  34. package/lib/skeleton.js +277 -0
  35. package/lib/stepper.js +300 -0
  36. package/lib/switch.js +304 -0
  37. package/lib/tab.js +274 -0
  38. package/lib/table-column.js +2991 -0
  39. package/lib/table.js +2652 -0
  40. package/lib/tabs.js +315 -0
  41. package/lib/tag.js +281 -0
  42. package/lib/theme-chalk/action-sheet.css +0 -0
  43. package/lib/theme-chalk/base.css +1 -0
  44. package/lib/theme-chalk/button-group.css +1 -0
  45. package/lib/theme-chalk/button.css +1 -0
  46. package/lib/theme-chalk/calendar.css +1 -0
  47. package/lib/theme-chalk/cascader.css +1 -0
  48. package/lib/theme-chalk/cell.css +1 -0
  49. package/lib/theme-chalk/checkbox.css +1 -0
  50. package/lib/theme-chalk/circle.css +1 -0
  51. package/lib/theme-chalk/count-down.css +0 -0
  52. package/lib/theme-chalk/date.css +0 -0
  53. package/lib/theme-chalk/empty.css +0 -0
  54. package/lib/theme-chalk/field.css +1 -0
  55. package/lib/theme-chalk/flow.css +1 -0
  56. package/lib/theme-chalk/fonts/iconfont.scss +530 -0
  57. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  58. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  59. package/lib/theme-chalk/form.css +0 -0
  60. package/lib/theme-chalk/grid-item.css +1 -0
  61. package/lib/theme-chalk/grid.css +0 -0
  62. package/lib/theme-chalk/icon.css +1 -0
  63. package/lib/theme-chalk/image-preview.css +0 -0
  64. package/lib/theme-chalk/index.css +1 -0
  65. package/lib/theme-chalk/list.css +0 -0
  66. package/lib/theme-chalk/loading.css +0 -0
  67. package/lib/theme-chalk/nav-bar.css +0 -0
  68. package/lib/theme-chalk/navbar.css +1 -0
  69. package/lib/theme-chalk/pagination.css +1 -0
  70. package/lib/theme-chalk/picker.css +1 -0
  71. package/lib/theme-chalk/popover.css +0 -0
  72. package/lib/theme-chalk/popup.css +0 -0
  73. package/lib/theme-chalk/radio.css +1 -0
  74. package/lib/theme-chalk/rate.css +0 -0
  75. package/lib/theme-chalk/search.css +0 -0
  76. package/lib/theme-chalk/selector.css +1 -0
  77. package/lib/theme-chalk/skeleton.css +0 -0
  78. package/lib/theme-chalk/stepper.css +1 -0
  79. package/lib/theme-chalk/switch.css +1 -0
  80. package/lib/theme-chalk/tab.css +0 -0
  81. package/lib/theme-chalk/table-column.css +0 -0
  82. package/lib/theme-chalk/table.css +1 -0
  83. package/lib/theme-chalk/tabs.css +1 -0
  84. package/lib/theme-chalk/tag.css +1 -0
  85. package/lib/theme-chalk/theme.css +0 -0
  86. package/lib/theme-chalk/tree.css +1 -0
  87. package/lib/theme-chalk/uploader.css +0 -0
  88. package/lib/uploader.js +307 -0
  89. package/lib/utils/axios.js +199 -0
  90. package/lib/utils/date-util.js +320 -0
  91. package/lib/utils/http.js +74 -0
  92. package/lib/utils/rules.js +21 -0
  93. package/lib/utils/store.js +24 -0
  94. package/lib/utils/util.js +1315 -0
  95. package/package.json +153 -0
  96. package/packages/action-sheet/index.js +5 -0
  97. package/packages/action-sheet/src/main.vue +32 -0
  98. package/packages/button/index.js +5 -0
  99. package/packages/button/src/main.vue +15 -0
  100. package/packages/button-group/index.js +5 -0
  101. package/packages/button-group/src/main.vue +80 -0
  102. package/packages/calendar/index.js +5 -0
  103. package/packages/calendar/src/main.vue +34 -0
  104. package/packages/cascader/index.js +5 -0
  105. package/packages/cascader/src/main.vue +40 -0
  106. package/packages/cell/index.js +5 -0
  107. package/packages/cell/src/main.vue +72 -0
  108. package/packages/checkbox/index.js +5 -0
  109. package/packages/checkbox/src/main.vue +149 -0
  110. package/packages/circle/index.js +5 -0
  111. package/packages/circle/src/main.vue +27 -0
  112. package/packages/count-down/index.js +5 -0
  113. package/packages/count-down/src/main.vue +27 -0
  114. package/packages/date/index.js +5 -0
  115. package/packages/date/src/date-time.vue +290 -0
  116. package/packages/date/src/main.vue +319 -0
  117. package/packages/empty/index.js +5 -0
  118. package/packages/empty/src/main.vue +16 -0
  119. package/packages/field/index.js +5 -0
  120. package/packages/field/src/main.vue +130 -0
  121. package/packages/flow/index.js +5 -0
  122. package/packages/flow/src/components/Handle.vue +1031 -0
  123. package/packages/flow/src/components/Message.vue +96 -0
  124. package/packages/flow/src/components/Opinion.vue +112 -0
  125. package/packages/flow/src/components/Reject.vue +202 -0
  126. package/packages/flow/src/components/StartFlow.vue +440 -0
  127. package/packages/flow/src/components/TaskRead.vue +237 -0
  128. package/packages/flow/src/main.vue +43 -0
  129. package/packages/form/index.js +5 -0
  130. package/packages/form/src/main.vue +158 -0
  131. package/packages/grid/index.js +5 -0
  132. package/packages/grid/src/main.vue +28 -0
  133. package/packages/grid-item/index.js +5 -0
  134. package/packages/grid-item/src/main.vue +16 -0
  135. package/packages/image-preview/index.js +5 -0
  136. package/packages/image-preview/src/main.vue +34 -0
  137. package/packages/list/index.js +5 -0
  138. package/packages/list/src/main.vue +32 -0
  139. package/packages/loading/index.js +5 -0
  140. package/packages/loading/src/main.vue +20 -0
  141. package/packages/nav-bar/index.js +5 -0
  142. package/packages/nav-bar/src/main.vue +16 -0
  143. package/packages/pagination/index.js +5 -0
  144. package/packages/pagination/src/main.vue +29 -0
  145. package/packages/picker/index.js +5 -0
  146. package/packages/picker/src/main.vue +500 -0
  147. package/packages/popover/index.js +5 -0
  148. package/packages/popover/src/main.vue +32 -0
  149. package/packages/popup/index.js +5 -0
  150. package/packages/popup/src/main.vue +27 -0
  151. package/packages/radio/index.js +5 -0
  152. package/packages/radio/src/main.vue +147 -0
  153. package/packages/rate/index.js +5 -0
  154. package/packages/rate/src/main.vue +27 -0
  155. package/packages/search/index.js +5 -0
  156. package/packages/search/src/main.vue +39 -0
  157. package/packages/selector/index.js +5 -0
  158. package/packages/selector/src/main.vue +77 -0
  159. package/packages/selector/src/selector-field.vue +225 -0
  160. package/packages/selector/src/selector-tree.vue +472 -0
  161. package/packages/selector/src/tree.vue +179 -0
  162. package/packages/skeleton/index.js +5 -0
  163. package/packages/skeleton/src/main.vue +17 -0
  164. package/packages/stepper/index.js +5 -0
  165. package/packages/stepper/src/main.vue +25 -0
  166. package/packages/switch/index.js +5 -0
  167. package/packages/switch/src/main.vue +29 -0
  168. package/packages/tab/index.js +5 -0
  169. package/packages/tab/src/main.vue +16 -0
  170. package/packages/table/index.js +5 -0
  171. package/packages/table/src/main.vue +830 -0
  172. package/packages/table-column/index.js +5 -0
  173. package/packages/table-column/src/main.vue +742 -0
  174. package/packages/table-column/src/mixins/table.js +12 -0
  175. package/packages/tabs/index.js +5 -0
  176. package/packages/tabs/src/main.vue +34 -0
  177. package/packages/tag/index.js +5 -0
  178. package/packages/tag/src/main.vue +16 -0
  179. package/packages/theme-chalk/README.md +33 -0
  180. package/packages/theme-chalk/lib/action-sheet.css +0 -0
  181. package/packages/theme-chalk/lib/base.css +1 -0
  182. package/packages/theme-chalk/lib/button-group.css +1 -0
  183. package/packages/theme-chalk/lib/button.css +1 -0
  184. package/packages/theme-chalk/lib/calendar.css +1 -0
  185. package/packages/theme-chalk/lib/cascader.css +1 -0
  186. package/packages/theme-chalk/lib/cell.css +1 -0
  187. package/packages/theme-chalk/lib/checkbox.css +1 -0
  188. package/packages/theme-chalk/lib/circle.css +1 -0
  189. package/packages/theme-chalk/lib/count-down.css +0 -0
  190. package/packages/theme-chalk/lib/date.css +0 -0
  191. package/packages/theme-chalk/lib/empty.css +0 -0
  192. package/packages/theme-chalk/lib/field.css +1 -0
  193. package/packages/theme-chalk/lib/flow.css +1 -0
  194. package/packages/theme-chalk/lib/fonts/iconfont.scss +530 -0
  195. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  196. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  197. package/packages/theme-chalk/lib/form.css +0 -0
  198. package/packages/theme-chalk/lib/grid-item.css +1 -0
  199. package/packages/theme-chalk/lib/grid.css +0 -0
  200. package/packages/theme-chalk/lib/icon.css +1 -0
  201. package/packages/theme-chalk/lib/image-preview.css +0 -0
  202. package/packages/theme-chalk/lib/index.css +1 -0
  203. package/packages/theme-chalk/lib/list.css +0 -0
  204. package/packages/theme-chalk/lib/loading.css +0 -0
  205. package/packages/theme-chalk/lib/nav-bar.css +0 -0
  206. package/packages/theme-chalk/lib/navbar.css +1 -0
  207. package/packages/theme-chalk/lib/pagination.css +1 -0
  208. package/packages/theme-chalk/lib/picker.css +1 -0
  209. package/packages/theme-chalk/lib/popover.css +0 -0
  210. package/packages/theme-chalk/lib/popup.css +0 -0
  211. package/packages/theme-chalk/lib/radio.css +1 -0
  212. package/packages/theme-chalk/lib/rate.css +0 -0
  213. package/packages/theme-chalk/lib/search.css +0 -0
  214. package/packages/theme-chalk/lib/selector.css +1 -0
  215. package/packages/theme-chalk/lib/skeleton.css +0 -0
  216. package/packages/theme-chalk/lib/stepper.css +1 -0
  217. package/packages/theme-chalk/lib/switch.css +1 -0
  218. package/packages/theme-chalk/lib/tab.css +0 -0
  219. package/packages/theme-chalk/lib/table-column.css +0 -0
  220. package/packages/theme-chalk/lib/table.css +1 -0
  221. package/packages/theme-chalk/lib/tabs.css +1 -0
  222. package/packages/theme-chalk/lib/tag.css +1 -0
  223. package/packages/theme-chalk/lib/theme.css +0 -0
  224. package/packages/theme-chalk/lib/tree.css +1 -0
  225. package/packages/theme-chalk/lib/uploader.css +0 -0
  226. package/packages/theme-chalk/package.json +35 -0
  227. package/packages/theme-chalk/src/action-sheet.scss +0 -0
  228. package/packages/theme-chalk/src/base.scss +182 -0
  229. package/packages/theme-chalk/src/button-group.scss +26 -0
  230. package/packages/theme-chalk/src/button.scss +3 -0
  231. package/packages/theme-chalk/src/calendar.scss +12 -0
  232. package/packages/theme-chalk/src/cascader.scss +12 -0
  233. package/packages/theme-chalk/src/cell.scss +14 -0
  234. package/packages/theme-chalk/src/checkbox.scss +10 -0
  235. package/packages/theme-chalk/src/circle.scss +7 -0
  236. package/packages/theme-chalk/src/common/var.scss +1525 -0
  237. package/packages/theme-chalk/src/count-down.scss +0 -0
  238. package/packages/theme-chalk/src/date.scss +0 -0
  239. package/packages/theme-chalk/src/empty.scss +0 -0
  240. package/packages/theme-chalk/src/field.scss +28 -0
  241. package/packages/theme-chalk/src/flow.scss +542 -0
  242. package/packages/theme-chalk/src/fonts/iconfont.scss +530 -0
  243. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  244. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  245. package/packages/theme-chalk/src/form.scss +15 -0
  246. package/packages/theme-chalk/src/grid-item.scss +8 -0
  247. package/packages/theme-chalk/src/grid.scss +0 -0
  248. package/packages/theme-chalk/src/icon.scss +1661 -0
  249. package/packages/theme-chalk/src/image-preview.scss +0 -0
  250. package/packages/theme-chalk/src/index.scss +38 -0
  251. package/packages/theme-chalk/src/list.scss +0 -0
  252. package/packages/theme-chalk/src/loading.scss +0 -0
  253. package/packages/theme-chalk/src/mixins/color.scss +117 -0
  254. package/packages/theme-chalk/src/mixins/mixins.scss +25 -0
  255. package/packages/theme-chalk/src/nav-bar.scss +0 -0
  256. package/packages/theme-chalk/src/navbar.scss +6 -0
  257. package/packages/theme-chalk/src/pagination.scss +10 -0
  258. package/packages/theme-chalk/src/picker.scss +27 -0
  259. package/packages/theme-chalk/src/popover.scss +0 -0
  260. package/packages/theme-chalk/src/popup.scss +0 -0
  261. package/packages/theme-chalk/src/radio.scss +7 -0
  262. package/packages/theme-chalk/src/rate.scss +0 -0
  263. package/packages/theme-chalk/src/search.scss +0 -0
  264. package/packages/theme-chalk/src/selector.scss +218 -0
  265. package/packages/theme-chalk/src/skeleton.scss +0 -0
  266. package/packages/theme-chalk/src/stepper.scss +10 -0
  267. package/packages/theme-chalk/src/switch.scss +6 -0
  268. package/packages/theme-chalk/src/tab.scss +0 -0
  269. package/packages/theme-chalk/src/table-column.scss +0 -0
  270. package/packages/theme-chalk/src/table.scss +42 -0
  271. package/packages/theme-chalk/src/tabs.scss +21 -0
  272. package/packages/theme-chalk/src/tag.scss +13 -0
  273. package/packages/theme-chalk/src/theme.scss +2 -0
  274. package/packages/theme-chalk/src/tree.scss +115 -0
  275. package/packages/theme-chalk/src/uploader.scss +0 -0
  276. package/packages/uploader/index.js +5 -0
  277. package/packages/uploader/src/main.vue +31 -0
  278. package/src/config/api.js +29 -0
  279. package/src/index.js +130 -0
  280. package/src/utils/axios.js +198 -0
  281. package/src/utils/date-util.js +312 -0
  282. package/src/utils/http.js +66 -0
  283. package/src/utils/rules.js +18 -0
  284. package/src/utils/store.js +21 -0
  285. package/src/utils/util.js +1346 -0
@@ -0,0 +1,440 @@
1
+ <template>
2
+ <!-- 开始流程组件 -->
3
+ <div class="process-start">
4
+ <div class="startFlow-content">
5
+ <!-- 当前节点 -->
6
+ <div class="present-node" v-if="showPresentNode">
7
+ <div class="label">当前节点:</div>
8
+ <div>{{ processObj.nodeName }}</div>
9
+ </div>
10
+ <!-- 意见 -->
11
+ <Opinion
12
+ v-if="showOpinion"
13
+ :code="processObj.attachedCode"
14
+ :ownId="businessId"
15
+ :isFile="false"
16
+ @onInputOpintion="onInputOpintion"
17
+ :isOpinionRequired="isOpinionRequired"
18
+ :disabled="isBanInputOpinion != 0"
19
+ ></Opinion>
20
+ <div class="input-box">
21
+ <!-- 下一步所有相关操作-->
22
+ <div>
23
+ <div @click="isNextBox = !isNextBox" class="shrink-btn">
24
+ {{ isNextBox ? '收起下一步操作和节点' : '展开下一步操作和节点' }}
25
+ </div>
26
+ <div class="next-box" v-show="isNextBox">
27
+ <!-- 下一步操作 -->
28
+ <div class="item">
29
+ <em-picker
30
+ title="下步操作"
31
+ label="下步操作"
32
+ required
33
+ show-toolbar
34
+ v-model="form.nextName"
35
+ label-width="100%"
36
+ :columns="nextList"
37
+ value-key="nodeKey"
38
+ label-key="itemName"
39
+ @confirm="onConfirmNext"
40
+ @cancel="showNextList = false"
41
+ />
42
+ </div>
43
+ <!-- 下步节点 -->
44
+ <div class="item">
45
+ <em-picker
46
+ title="流程节点"
47
+ label="流程节点"
48
+ required
49
+ show-toolbar
50
+ v-model="form.nextNodeName"
51
+ label-width="100%"
52
+ :columns="nodeList"
53
+ value-key="nodeId"
54
+ label-key="nodeName"
55
+ @confirm="onConfirmNextNode"
56
+ @cancel="showNextNodeList = false"
57
+ />
58
+ </div>
59
+ </div>
60
+ <!--办理人 -->
61
+ <div class="item item-two-line">
62
+ <em-selector
63
+ v-model="nextUserSelectList"
64
+ :multiple="!isRadio"
65
+ required
66
+ :param="{
67
+ pid: pid,
68
+ onlyMyOrg: true
69
+ }"
70
+ :objType="objType"
71
+ :nextUserList="nextUserList"
72
+ @change="handleChange($event, 'nextUserSelectList')"
73
+ label="办理人"
74
+ />
75
+ </div>
76
+ <!-- 通知方式 -->
77
+ <Message
78
+ ref="message"
79
+ :code="'notification_type'"
80
+ :defaultNotificationMsg="form.notificationMsg"
81
+ :defaultNotificationType="defaultNotificationType"
82
+ @onInputMsg="onInputMsg"
83
+ ></Message>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ <div class="btn-list">
88
+ <div class="btn" @click="goBack">取消</div>
89
+ <div class="btn" @click="onSubmit()">确定</div>
90
+ <!-- <div
91
+ class="btn"
92
+ @click="
93
+ $router.push({
94
+ path: '/Preinstall',
95
+ })
96
+ "
97
+ >
98
+ 流程设置
99
+ </div> -->
100
+ </div>
101
+ </div>
102
+ </template>
103
+ <script>
104
+ import {
105
+ toStartFlow,
106
+ getNodeInfo,
107
+ registerNew
108
+ } from '../../../../src/config/api';
109
+ import request from '../../../../src/utils/http.js';
110
+ import Opinion from './Opinion.vue';
111
+ import Message from './Message.vue';
112
+ export default {
113
+ name: 'StartFlow',
114
+ inheritAttrs: false,
115
+ props: {
116
+ showPresentNode: {
117
+ type: Boolean,
118
+ default: true // 是否当前节点
119
+ },
120
+ beforeSubmit: Function,
121
+ businessId: String, //提交意见附件所需id一般是业务id
122
+ defId: String, //流程id
123
+ baseUrl: String, //流程地址
124
+ },
125
+ data() {
126
+ return {
127
+ showOpinion: true,
128
+ form: {
129
+ nextNodeId: undefined, // 流程节点id
130
+ nextNodeName: undefined, // 流程节点名称
131
+ nextUserName: undefined, // 办理人
132
+ nextUserId: undefined, // 办理人id
133
+ nextName: undefined, //下一步
134
+ opinion: undefined, // 审批意见
135
+ nodeId: undefined,
136
+ notificationMsg: undefined, //系统消息
137
+ notificationType: []
138
+ },
139
+ nextUserList: [],
140
+ isOpinionRequired: 0, //办理意见是否必填
141
+ isBanInputOpinion: 0, //是否禁用意见
142
+ isNextBox: false, // 是否展开隐藏下步操作
143
+ defaultNotificationType: [], //选中消息数组
144
+ // showAppUser: false, // 办理人遮罩层
145
+ showNextList: false, // 下一步遮罩层
146
+ showNextNodeList: false, // 流程节点遮罩层
147
+ nextList: [], //下一步列表
148
+ nodeList: [], // 流程节点列表
149
+ processObj: {}, //流程信息
150
+ peopleObj: {}, //办理人信息
151
+ isRadio: false, //办理人是否单选
152
+ treeType: undefined, //办理人选择类别
153
+ pid: undefined, // 办理人树选择pid
154
+ objType: 'enterprise', //办理人树选择objType
155
+ selectType: '', //办理人树选择selectType
156
+ nextUserSelectList: [], //选中人数组
157
+ flowObj: {} //流程参数信息
158
+ };
159
+ },
160
+ components: {
161
+ Opinion,
162
+ Message
163
+ },
164
+ mounted() {
165
+ let obj = {
166
+ processDefinitionId: this.defId,
167
+ businessId: this.businessId
168
+ };
169
+ this.geAllData(obj);
170
+ },
171
+
172
+ methods: {
173
+ goBack() {
174
+ this.$parent.$emit('close');
175
+ },
176
+ handleChange(val, selectLabel) {
177
+ // this[res.label] = res.list;
178
+ // this.showAppUser = false;
179
+ let label = selectLabel.substring(
180
+ 0,
181
+ selectLabel.lastIndexOf('SelectList')
182
+ );
183
+ let idStr = '';
184
+ val.list.map((r, i) => {
185
+ idStr = idStr + r.showid + (i === val.list.length - 1 ? '' : ',');
186
+ });
187
+ this.form[label + 'Id'] = idStr;
188
+ },
189
+ geAllData(res) {
190
+ this.flowObj = res;
191
+ this.$toast.loading({
192
+ message: '加载中...',
193
+ forbidClick: true,
194
+ loadingType: 'spinner',
195
+ overlay: true,
196
+ duration: 0
197
+ });
198
+ //获取流程发起信息后去获取节点信息和办理人信息
199
+ Promise.all([this.getProcessObj(res)]).then(() => {
200
+ this.getPeopleObj(this.form.nextNodeId);
201
+ });
202
+ },
203
+ // 通知消息回调
204
+ onInputMsg(obj) {
205
+ this.form.notificationType = obj.notificationType.join(',');
206
+ this.form.notificationMsg = obj.notificationMsg;
207
+ },
208
+ // 删除.
209
+ delteList(label, i) {
210
+ this[label].splice(i, 1);
211
+ },
212
+ // 意见回调
213
+ onInputOpintion(val) {
214
+ this.form.opinion = val;
215
+ },
216
+ // 提交流程
217
+ onSubmit() {
218
+ if (!this.form.nextUserId) {
219
+ this.$toast('请选择办理人');
220
+ return;
221
+ }
222
+ if (!this.form.nextNodeId) {
223
+ this.$toast('请选择流程节点');
224
+ return;
225
+ }
226
+ if (!this.form.opinion && this.isOpinionRequired == 1) {
227
+ this.$toast('请选择输入审批意见');
228
+ return;
229
+ }
230
+ if (!this.form.notificationType) {
231
+ this.$toast('请选择通知消息');
232
+ return;
233
+ }
234
+
235
+ let info = {
236
+ processDefinitionId: this.flowObj.processDefinitionId,
237
+ nextUserId: this.form.nextUserId,
238
+ nextNodeId: this.form.nextNodeId,
239
+ businessId: this.businessId,
240
+ notificationType: this.form.notificationType,
241
+ opinion: this.form.opinion,
242
+ nodeId: this.form.nodeId,
243
+ userId: sessionStorage.getItem('userId'),
244
+ notificationMsg: this.form.notificationMsg,
245
+ loginType: 'a' //登录方式
246
+ };
247
+ if (this.beforeSubmit) {
248
+ this.beforeSubmit(info);
249
+ return;
250
+ }
251
+ this.$toast.loading({
252
+ message: '加载中...',
253
+ forbidClick: true,
254
+ loadingType: 'spinner',
255
+ overlay: true,
256
+ duration: 0
257
+ });
258
+ const _that = this
259
+ request({
260
+ url:_that.baseUrl ? _that.baseUrl + registerNew : registerNew,
261
+ params: {
262
+ params: JSON.stringify(info)
263
+ }
264
+ }).then(res => {
265
+ this.$toast.clear();
266
+ if (res.rCode == 0) {
267
+ this.$toast('操作成功');
268
+ this.$parent.$emit('success');
269
+ } else {
270
+ this.$toast(res.msg);
271
+ }
272
+ });
273
+ },
274
+ // 确认常用意见
275
+ onConfirmOpinion(val) {
276
+ this.form.opinion = val.content;
277
+ this.showOpinion = false;
278
+ },
279
+ // 选择办理人
280
+ onClickPeople(label) {
281
+ this.$nextTick(function() {
282
+ this.$refs.selectTree.getContent(label);
283
+ });
284
+ let obj = {
285
+ label: '请选择办理人',
286
+ show: true
287
+ };
288
+ this.$emit('informNav', obj);
289
+ this.showAppUser = true;
290
+ },
291
+ // 获取树选择范围
292
+ getTreeChangeType() {
293
+ /**
294
+ * 办理人选择方式(1:机构内单选人;2:机构内多选;3:所有机构单选人;4:所有机构多选人;5:科室内单选人;6:科室内多选人;11:单选机构;12:多选机构;13:本部门角色;14:本单位角色;15:上级单位单选人;16:上级单位多选人;)
295
+ */
296
+ this.treeType % 2 == 0 ? (this.isRadio = false) : (this.isRadio = true);
297
+ if (this.treeType === 1 || this.treeType === 2) {
298
+ this.pid = this.orgId;
299
+ this.objType = 'enterprise';
300
+ this.selectType = 'employee';
301
+ } else if (this.treeType === 3 || this.treeType === 4) {
302
+ this.pid = 'root';
303
+ this.selectType = 'employee';
304
+ this.objType = 'employee';
305
+ } else if (this.treeType === 5 || this.treeType === 6) {
306
+ this.pid = this.depId;
307
+ this.selectType = 'employee';
308
+ this.objType = 'employee';
309
+ } else if (this.treeType === 11 || this.treeType === 12) {
310
+ this.selectType = 'employee';
311
+ this.objType = 'enterprise';
312
+ this.pid = '';
313
+ } else if (this.treeType === 13) {
314
+ this.pid = this.depId;
315
+ this.selectType = 'employee';
316
+ } else if (this.treeType === 14) {
317
+ this.pid = this.orgId;
318
+ this.selectType = 'employee';
319
+ } else if (this.treeType === 15 || this.treeType === 16) {
320
+ this.pid = this.orgId;
321
+ this.selectType = 'employee';
322
+ } else if (this.treeType == 'department') {
323
+ this.pid = '';
324
+ this.selectType = 'department';
325
+ this.objType = 'department';
326
+ }
327
+ },
328
+ // 确认下一步操作
329
+ onConfirmNext(val) {
330
+ this.form.nextName = val.itemName;
331
+ this.nodeList = val.list;
332
+ this.form.nextNodeId = val.list[0].nodeId;
333
+ this.form.nextNodeName = val.list[0].nodeName;
334
+ val.list[0].transactorInfos &&
335
+ (this.nextUserList = val.list[0].transactorInfos);
336
+ this.showNextList = false;
337
+ this.getPeopleObj(this.form.nextNodeId);
338
+ },
339
+ // 确认流程节点操作
340
+ onConfirmNextNode(val) {
341
+ this.form.nextNodeId = val.nodeId;
342
+ this.form.nextNodeName = val.nodeName;
343
+ this.showNextNodeList = false;
344
+ this.getPeopleObj(this.form.nextNodeId);
345
+ },
346
+ // 办理人选择完回调
347
+ disposeAppUser(res) {
348
+ this[res.label] = res.list;
349
+ this.showAppUser = false;
350
+ let label = res.label.substring(0, res.label.lastIndexOf('SelectList'));
351
+ let idStr = '';
352
+ res.list.map((r, i) => {
353
+ idStr = idStr + r.showid + (i === res.list.length - 1 ? '' : ',');
354
+ });
355
+ this.form[label + 'Id'] = idStr;
356
+ },
357
+ // 获取发起流程信息
358
+ getProcessObj(res) {
359
+ let that = this;
360
+ return new Promise(function(resolve, reiect) {
361
+ request({
362
+ url:that.baseUrl ? that.baseUrl + toStartFlow : toStartFlow,
363
+ params: res
364
+ }).then(res => {
365
+ if (res.rCode == 0) {
366
+ that.processObj = res.results;
367
+ that.nextList = res.results.nodeList;
368
+ that.isOpinionRequired = res.results.nodeExtr.isOpinionRequired;
369
+ that.isBanInputOpinion = res.results.nodeExtr.isBanInputOpinion;
370
+ if (!that.isOpinionRequired) {
371
+ that.isOpinionRequired = 0;
372
+ }
373
+ if (!that.isBanInputOpinion) {
374
+ that.isBanInputOpinion = 0;
375
+ }
376
+ that.nodeList = res.results.nodeList[0].list;
377
+ that.form.nextName = that.nextList[0].itemName;
378
+ that.form.nextNodeId = that.nextList[0].list[0].nodeId;
379
+ that.form.nextNodeName = that.nextList[0].list[0].nodeName;
380
+ that.nextList[0].list[0].transactorInfos &&
381
+ (that.nextUserList = that.nextList[0].list[0].transactorInfos);
382
+ that.form.notificationMsg = res.results.notificationMsg;
383
+ that.form.nodeId = res.results.nodeId;
384
+ let defaultNotificationTypes = [];
385
+ if (
386
+ res.results.notificationTypes &&
387
+ that.defaultNotificationType.length == 0
388
+ ) {
389
+ defaultNotificationTypes = res.results.notificationTypes.filter(
390
+ x => x.defaultSelected == 'true'
391
+ );
392
+ }
393
+ defaultNotificationTypes.map(x => {
394
+ that.defaultNotificationType.push(x.notificationCode);
395
+ });
396
+ resolve();
397
+ } else {
398
+ that.$toast(res.message);
399
+ reiect();
400
+ }
401
+ });
402
+ });
403
+ },
404
+ // 获取节点信息(获取节点属性及办理人)
405
+ getPeopleObj(res) {
406
+ const _that = this
407
+ request({
408
+ url:_that.baseUrl ? _that.baseUrl+ getNodeInfo : getNodeInfo,
409
+ params: {
410
+ processDefinitionId: this.flowObj.processDefinitionId,
411
+ nodeId: res,
412
+ taskId: this.processObj.taskId
413
+ }
414
+ }).then(res => {
415
+ this.$toast.clear();
416
+ if (res.rCode == 0) {
417
+ this.peopleObj = res.results.nodeExtr;
418
+ if (res.results.nodeExtr.userSelectionType) {
419
+ this.treeType = res.results.nodeExtr.userSelectionType;
420
+ let list = res.results.transactorInfos;
421
+ let idStr = '';
422
+ list.map((r, i) => {
423
+ r.showid = r.userId;
424
+ r.showname = r.userName;
425
+ if (r.userId || r.userName) {
426
+ idStr = idStr + r.showid + (i === list.length - 1 ? '' : ',');
427
+ }
428
+ });
429
+ this.form.nextUserId = idStr;
430
+ this.nextUserSelectList = list.filter(x => x.showname && x.showid);
431
+ this.getTreeChangeType();
432
+ }
433
+ } else {
434
+ this.$toast(res.message);
435
+ }
436
+ });
437
+ }
438
+ }
439
+ };
440
+ </script>
@@ -0,0 +1,237 @@
1
+ <template>
2
+ <div class="process-task">
3
+ <div class="transfer-content">
4
+ <div class="present-node">
5
+ <div class="label">当前节点:</div>
6
+ <div>{{ processObj.taskExamine.nodeName }}</div>
7
+ </div>
8
+ <div class="input-box">
9
+ <div class="item" v-if="!taskReadType">
10
+ <em-selector
11
+ label="分阅人员"
12
+ required
13
+ multiple
14
+ :param="{
15
+ pid: processObj.choiceOrgId
16
+ }"
17
+ v-model="nextReadUserSelectList"
18
+ @change="disposeAppUser"
19
+ />
20
+ </div>
21
+ <div class="item" v-if="taskReadType === '阅结'">
22
+ <em-input
23
+ readonly
24
+ clickable
25
+ label="下步节点"
26
+ :required="true"
27
+ :value="'阅结'"
28
+ @click="$toast('没有可选择操作')"
29
+ />
30
+ </div>
31
+ <div class="item">
32
+ <em-input
33
+ label="办理说明"
34
+ placeholder="请填写办理说明"
35
+ v-model="form.handleExplain"
36
+ type="textarea"
37
+ rows="3"
38
+ />
39
+ </div>
40
+ <div class="item">
41
+ <Message
42
+ ref="message"
43
+ :code="'notification_type'"
44
+ :defaultNotificationMsg="form.notificationMsgType"
45
+ @onInputMsg="onInputMsg"
46
+ ></Message>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ <div class="btn-list">
51
+ <div class="btn" @click="goBack">取消</div>
52
+ <div class="btn" @click="onSubmit()">确定</div>
53
+ </div>
54
+ </div>
55
+ </template>
56
+ <script>
57
+ import Message from './Message.vue';
58
+ import {
59
+ toStartTaskReadHtml,
60
+ taskReadHtml,
61
+ handleTaskRead
62
+ } from '../../../../src/config/api';
63
+ import request from '../../../../src/utils/http.js';
64
+ export default {
65
+ data() {
66
+ return {
67
+ dataJson: {
68
+ isCdjxjTaskHandle: undefined
69
+ },
70
+ form: {
71
+ nextReadUserId: undefined,
72
+ handleExplain: undefined //办理说明
73
+ },
74
+ processObj: {
75
+ taskExamine: { nodeName: undefined },
76
+ nodeInfoMap: { nextUserList: [] }
77
+ },
78
+ nextUserIdSelectList: [],
79
+ nextReadUserSelectList: []
80
+ };
81
+ },
82
+ components: {
83
+ Message
84
+ },
85
+ props: {
86
+ taskReadType: String,
87
+ appid: String,
88
+ beforeSubmit: Function,
89
+ pendingId: String,
90
+ userId: String,
91
+ businessId: String,
92
+ baseUrl:String
93
+ },
94
+ mounted() {
95
+ if (this.taskReadType === '阅结') {
96
+ this.processObj.taskExamine.nodeName = '阅结';
97
+ } else {
98
+ this.getProcessObj();
99
+ }
100
+ },
101
+
102
+ methods: {
103
+ // 通知消息回调
104
+ onInputMsg(obj) {
105
+ this.form.notificationMsgType = obj.notificationType.join(',');
106
+ this.form.notificationMsg = obj.notificationMsg;
107
+ },
108
+
109
+ getProcessObj() {
110
+ const _that = this
111
+ request({
112
+ url:_that.baseUrl?_that.baseUrl + toStartTaskReadHtml : toStartTaskReadHtml,
113
+ params: {
114
+ appId: this.appid,
115
+ pendingId: this.pendingId,
116
+ identityIds: this.userId
117
+ }
118
+ }).then(res => {
119
+ if (res.rCode == 0) {
120
+ this.processObj = res.results;
121
+ } else {
122
+ this.$toast(res.msg);
123
+ }
124
+ });
125
+ },
126
+ // 删除
127
+ delteList(i) {
128
+ this.nextReadUserSelectList.splice(i, 1);
129
+ },
130
+ // 选择转办对象
131
+
132
+ // 办理人选择完回调
133
+ disposeAppUser(res) {
134
+ this.nextReadUserSelectList = res.list;
135
+ },
136
+ goBack() {
137
+ this.$parent.$emit('close');
138
+ },
139
+ onSubmit() {
140
+ if (this.taskReadType) {
141
+ this.onSubmitReadEnd();
142
+ } else {
143
+ this.onSubmitRead();
144
+ }
145
+ },
146
+ onSubmitReadEnd() {
147
+ const _that = this
148
+ let params = {
149
+ url:_that.baseUrl ? _that.baseUrl + handleTaskRead : handleTaskRead,
150
+ params: {
151
+ pendingId: this.pendingId,
152
+ businessId: this.businessId,
153
+ opinion: this.form.handleExplain,
154
+ notificationMsgType: this.form.notificationMsgType,
155
+ notificationMsg: this.form.notificationMsg,
156
+ isImageOpinion: 0
157
+ }
158
+ };
159
+ if (this.beforeSubmit) {
160
+ this.beforeSubmit(params.params);
161
+ return;
162
+ }
163
+ this.$toast.loading({
164
+ message: '加载中...',
165
+ forbidClick: true,
166
+ loadingType: 'spinner',
167
+ overlay: true,
168
+ duration: 0
169
+ });
170
+
171
+ request(params)
172
+ .then(res => {
173
+ if (res.rCode == 0) {
174
+ this.$toast('操作成功');
175
+ this.$parent.$emit('success');
176
+ } else {
177
+ this.$toast(res.msg);
178
+ }
179
+ })
180
+ .catch(err => {
181
+ this.$toast('数据返回失败');
182
+ });
183
+ },
184
+ onSubmitRead() {
185
+ const _that = this
186
+ if (
187
+ !this.nextReadUserSelectList ||
188
+ this.nextReadUserSelectList.length === 0
189
+ ) {
190
+ this.$toast('请选择分阅人员');
191
+ return;
192
+ }
193
+ let ids = '';
194
+ this.nextReadUserSelectList.map((r, i) => {
195
+ ids =
196
+ ids +
197
+ r.showid +
198
+ (i === this.nextReadUserSelectList.length - 1 ? '' : ',');
199
+ });
200
+ let params = {
201
+ url:_that.baseUrl ? _that.baseUrl + taskReadHtml : taskReadHtml,
202
+ params: {
203
+ pendingId: this.pendingId,
204
+ appId: this.appid,
205
+ handleExplain: this.form.handleExplain,
206
+ notificationMsgType: this.form.notificationMsgType,
207
+ notificationMsg: this.form.notificationMsg,
208
+ nextReadUserId: ids
209
+ }
210
+ };
211
+ if (this.beforeSubmit) {
212
+ this.beforeSubmit(params.params);
213
+ return;
214
+ }
215
+ this.$toast.loading({
216
+ message: '加载中...',
217
+ forbidClick: true,
218
+ loadingType: 'spinner',
219
+ overlay: true,
220
+ duration: 0
221
+ });
222
+ request(params)
223
+ .then(res => {
224
+ if (res.rCode == 0) {
225
+ this.$toast('操作成功');
226
+ this.$parent.$emit('success');
227
+ } else {
228
+ this.$toast(res.msg);
229
+ }
230
+ })
231
+ .catch(err => {
232
+ this.$toast('数据返回失败');
233
+ });
234
+ }
235
+ }
236
+ };
237
+ </script>