eoss 0.1.0-alpha.21 → 0.1.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/account-login.js +125 -125
- package/lib/alert.js +2 -2
- package/lib/aside.js +2 -2
- package/lib/autocomplete.js +239 -239
- package/lib/avatar.js +2 -2
- package/lib/backtop.js +4 -4
- package/lib/badge.js +2 -2
- package/lib/breadcrumb-item.js +2 -2
- package/lib/breadcrumb.js +2 -2
- package/lib/button-group.js +2 -2
- package/lib/button.js +2 -2
- package/lib/ca-login.js +6 -6
- package/lib/calendar.js +2 -2
- package/lib/card.js +2 -2
- package/lib/carousel-item.js +22 -22
- package/lib/carousel.js +40 -26
- package/lib/cascader-panel.js +12 -12
- package/lib/cascader.js +506 -492
- package/lib/checkbox-button.js +2 -2
- package/lib/checkbox-group.js +137 -137
- package/lib/checkbox.js +2 -2
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +1224 -1030
- package/lib/collapse.js +1225 -1030
- package/lib/color-picker.js +12 -12
- package/lib/container.js +2 -2
- package/lib/cron.js +2 -2
- package/lib/data-table.js +121 -121
- package/lib/date-picker.js +225 -225
- package/lib/dialog.js +17 -17
- package/lib/divider.js +2 -2
- package/lib/drawer.js +6 -6
- package/lib/dropdown-item.js +2 -2
- package/lib/dropdown-menu.js +10 -10
- package/lib/dropdown.js +13 -13
- package/lib/email-login.js +365 -365
- package/lib/empty.js +2 -2
- package/lib/eoss.common.js +21402 -20724
- package/lib/flip.js +2 -2
- package/lib/flow-group.js +251 -251
- package/lib/flow.js +15933 -18946
- package/lib/flows.js +9195 -0
- package/lib/footer.js +2 -2
- package/lib/form-item.js +28 -17
- package/lib/form.js +1228 -1033
- package/lib/header.js +2 -2
- package/lib/icon.js +129 -129
- package/lib/icons.js +4 -4
- package/lib/image-viewer.js +6 -6
- package/lib/image.js +4 -4
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +4 -4
- package/lib/input-number.js +11 -11
- package/lib/input.js +28 -14
- package/lib/link.js +2 -2
- package/lib/loading.js +6 -6
- package/lib/login.js +277 -229
- package/lib/lowcode.js +964 -325
- package/lib/main.js +634 -565
- package/lib/marquee.js +6 -6
- package/lib/menu-item-group.js +2 -2
- package/lib/menu-item.js +2 -2
- package/lib/menu.js +1934 -1934
- package/lib/message-box.js +12 -12
- package/lib/message.js +10 -10
- package/lib/notification.js +16 -16
- package/lib/option-group.js +2 -2
- package/lib/option.js +6 -6
- package/lib/page-header.js +2 -2
- package/lib/pagination.js +16 -16
- package/lib/phone-login.js +127 -127
- package/lib/popconfirm.js +4 -4
- package/lib/popover.js +219 -219
- package/lib/progress.js +2 -2
- package/lib/qr-code.js +8 -8
- package/lib/qrcode-login.js +119 -119
- package/lib/radio-button.js +2 -2
- package/lib/radio-group.js +119 -119
- package/lib/radio.js +2 -2
- package/lib/rate.js +6 -6
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +46 -32
- package/lib/select.js +823 -796
- package/lib/selector-panel.js +141 -141
- package/lib/selector.js +1040 -160
- package/lib/slider.js +2 -2
- package/lib/step.js +1225 -1030
- package/lib/steps.js +6 -6
- package/lib/submenu.js +27 -27
- package/lib/switch.js +15 -15
- package/lib/tab-pane.js +2 -2
- package/lib/table-column.js +8 -8
- package/lib/table.js +2530 -2516
- package/lib/tabs.js +28 -14
- package/lib/tag.js +2 -2
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/checkbox-group.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/descriptions-item.css +1 -1
- package/lib/theme-chalk/descriptions.css +1 -1
- package/lib/theme-chalk/empty.css +1 -1
- package/lib/theme-chalk/flow.css +1 -1
- package/lib/theme-chalk/flows.css +1 -0
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/lowcode.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/message.css +1 -1
- package/lib/theme-chalk/notification.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/scrollbar.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/selector-panel.css +1 -1
- package/lib/theme-chalk/selector.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/lib/theme-chalk/timeline-item.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/theme-chalk/tree.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/time-picker.js +16 -16
- package/lib/time-select.js +15 -15
- package/lib/timeline-item.js +2 -2
- package/lib/timeline.js +2 -2
- package/lib/tips.js +129 -129
- package/lib/toolbar.js +4 -4
- package/lib/tooltip.js +220 -220
- package/lib/transfer.js +8 -8
- package/lib/tree-group.js +124 -124
- package/lib/tree.js +144 -144
- package/lib/upload.js +155 -155
- package/lib/utils/resize-event.js +20 -6
- package/package.json +3 -1
- package/packages/carousel/src/carousel.vue +2 -2
- package/packages/flow/index.js +4 -4
- package/packages/flow/src/component/FreeCirculation.vue +4 -3
- package/packages/flow/src/component/SendMsg.vue +2 -4
- package/packages/flow/src/component/opinions.vue +203 -226
- package/packages/flow/src/component/taskUnionExamine.vue +2 -4
- package/packages/flow/src/freeStartFlow.vue +2 -2
- package/packages/flow/src/selectUser.vue +36 -1
- package/packages/flow/src/supervise.vue +4 -2
- package/packages/flows/index.js +7 -0
- package/packages/flows/readme.md +600 -0
- package/packages/flows/src/components/basis.vue +108 -0
- package/packages/flows/src/components/distribute.vue +42 -0
- package/packages/flows/src/components/opinions-file.vue +123 -0
- package/packages/{flow-copy/src/component → flows/src/components}/opinions.vue +227 -204
- package/packages/flows/src/components/quick-actions.vue +64 -0
- package/packages/flows/src/components/reject.vue +83 -0
- package/packages/flows/src/components/start-flow.vue +210 -0
- package/packages/flows/src/flow.vue +510 -0
- package/packages/{flow/src/flow.vue → flows/src/flows.vue} +40 -1327
- package/packages/form/src/form-item.vue +9 -2
- package/packages/form/src/label-wrap.vue +4 -1
- package/packages/login/src/login.vue +61 -32
- package/packages/lowcode/src/aside.vue +15 -2
- package/packages/lowcode/src/editor.vue +187 -0
- package/packages/lowcode/src/lowcode.vue +195 -41
- package/packages/lowcode/src/pages.vue +174 -26
- package/packages/lowcode/src/toolbar.vue +3 -18
- package/packages/main/src/components/pages.vue +97 -65
- package/packages/main/src/components/router-page.vue +0 -2
- package/packages/main/src/gzw.vue +3 -2
- package/packages/main/src/minxs.js +72 -51
- package/packages/menu/src/menu.vue +4 -4
- package/packages/select/src/select.vue +5 -0
- package/packages/selector/src/selector.vue +147 -17
- package/packages/theme-chalk/src/base.scss +6 -0
- package/packages/theme-chalk/src/checkbox-group.scss +1 -0
- package/packages/theme-chalk/src/common/var.scss +1 -1
- package/packages/theme-chalk/src/flow.scss +7 -4
- package/packages/theme-chalk/src/flows.scss +141 -0
- package/packages/theme-chalk/src/form.scss +1 -1
- package/packages/theme-chalk/src/index.scss +1 -0
- package/packages/theme-chalk/src/input.scss +1 -0
- package/packages/theme-chalk/src/lowcode.scss +21 -18
- package/packages/theme-chalk/src/select.scss +3 -1
- package/packages/theme-chalk/src/selector.scss +11 -5
- package/src/index.js +4 -1
- package/src/utils/resize-event.js +21 -7
- package/packages/flow/src/component/quick-actions.vue +0 -1168
- package/packages/flow-copy/index.js +0 -7
- package/packages/flow-copy/src/component/Circulate.vue +0 -452
- package/packages/flow-copy/src/component/CustomPreset.vue +0 -333
- package/packages/flow-copy/src/component/FreeCirculation.vue +0 -275
- package/packages/flow-copy/src/component/Preset.vue +0 -273
- package/packages/flow-copy/src/component/SendMsg.vue +0 -290
- package/packages/flow-copy/src/component/TimeLimit.vue +0 -205
- package/packages/flow-copy/src/component/taskUnionExamine.vue +0 -818
- package/packages/flow-copy/src/freeStartFlow.vue +0 -2912
- package/packages/flow-copy/src/processForm.vue +0 -1411
- package/packages/flow-copy/src/processReject.vue +0 -319
- package/packages/flow-copy/src/reset.vue +0 -944
- package/packages/flow-copy/src/selectUser.vue +0 -513
- package/packages/flow-copy/src/startTaskRead.vue +0 -723
- package/packages/flow-copy/src/supervise.vue +0 -182
- package/packages/flow-copy/src/table.vue +0 -65
- /package/packages/{flow-copy → flow}/src/component/FileList.vue +0 -0
- /package/packages/{flow-copy → flow}/src/main.vue +0 -0
- /package/packages/{flow-copy/src → flows/src/components}/form.vue +0 -0
- /package/packages/{flow/src/component → flows/src/components}/message.vue +0 -0
- /package/packages/{flow/src/component → flows/src/components}/opinions-list.vue +0 -0
|
@@ -1,452 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="es-flow task-union-examine" v-loading="loading === true">
|
|
3
|
-
<es-form
|
|
4
|
-
ref="infoList"
|
|
5
|
-
:model="infoList"
|
|
6
|
-
class=""
|
|
7
|
-
label-width="150px"
|
|
8
|
-
:label-position="labelPosition"
|
|
9
|
-
>
|
|
10
|
-
<es-form-item
|
|
11
|
-
v-if="isHideCurrentOrg == 0"
|
|
12
|
-
prop="nextCurrentOrgObj"
|
|
13
|
-
label="本单位"
|
|
14
|
-
>
|
|
15
|
-
<SelectUser
|
|
16
|
-
:nextUser="infoList.nextCurrentOrgObj"
|
|
17
|
-
:multiple="newMultiple"
|
|
18
|
-
mix
|
|
19
|
-
@change="changeSelectUser($event, 'nextCurrentOrgObj')"
|
|
20
|
-
:types="['employee', 'persongroup']"
|
|
21
|
-
:params="params"
|
|
22
|
-
/>
|
|
23
|
-
</es-form-item>
|
|
24
|
-
<es-form-item prop="nextOtherOrgObj" label="外单位">
|
|
25
|
-
<SelectUser
|
|
26
|
-
:nextUser="infoList.nextOtherOrgObj"
|
|
27
|
-
:multiple="newMultiple"
|
|
28
|
-
:where="{ filid: 'other', roleid: selectorParams.roleid }"
|
|
29
|
-
@change="changeSelectUser($event, 'nextOtherOrgObj')"
|
|
30
|
-
mix
|
|
31
|
-
:types="['enterprise', 'filgroup']"
|
|
32
|
-
:params="otherParams"
|
|
33
|
-
/>
|
|
34
|
-
</es-form-item>
|
|
35
|
-
|
|
36
|
-
<!-- :rules="[
|
|
37
|
-
{ required: false, message: `请选择通知方式`, trigger: 'blur' }
|
|
38
|
-
]" -->
|
|
39
|
-
<es-form-item
|
|
40
|
-
prop="noticeType"
|
|
41
|
-
label="通知方式"
|
|
42
|
-
v-show="infoList.noticeList != 0"
|
|
43
|
-
>
|
|
44
|
-
<es-checkbox-group
|
|
45
|
-
v-model="infoList.noticeType"
|
|
46
|
-
style="display: contents"
|
|
47
|
-
>
|
|
48
|
-
<es-checkbox
|
|
49
|
-
v-for="item of infoList.noticeList"
|
|
50
|
-
:key="item.cciValue"
|
|
51
|
-
:label="item.cciValue"
|
|
52
|
-
:disabled="
|
|
53
|
-
readOnlyNotificationType
|
|
54
|
-
? readOnlyNotificationType.indexOf(item.cciValue) != -1
|
|
55
|
-
: false
|
|
56
|
-
"
|
|
57
|
-
>
|
|
58
|
-
{{ item.shortName }}
|
|
59
|
-
</es-checkbox>
|
|
60
|
-
</es-checkbox-group>
|
|
61
|
-
</es-form-item>
|
|
62
|
-
<es-form-item
|
|
63
|
-
v-show="infoList.noticeType.length != 0"
|
|
64
|
-
prop="noticeInfo"
|
|
65
|
-
label="通知消息"
|
|
66
|
-
>
|
|
67
|
-
<es-input
|
|
68
|
-
style="
|
|
69
|
-
border-color: #ccc;
|
|
70
|
-
padding: 5px;
|
|
71
|
-
border-radius: 5px;
|
|
72
|
-
font-size: 13px;
|
|
73
|
-
"
|
|
74
|
-
type="textarea"
|
|
75
|
-
v-model="infoList.noticeInfo"
|
|
76
|
-
@change="handleChange"
|
|
77
|
-
:readonly="notificationMessageReadOnly"
|
|
78
|
-
/>
|
|
79
|
-
<!-- <span>{{ infoList.noticeInfo }}</span> -->
|
|
80
|
-
</es-form-item>
|
|
81
|
-
</es-form>
|
|
82
|
-
<div v-if="showBtn" style="text-align: right">
|
|
83
|
-
<es-button type="primary" size="small" @click="subMit"> 确定 </es-button>
|
|
84
|
-
<es-button @click="quit" size="small"> 取消 </es-button>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</template>
|
|
88
|
-
|
|
89
|
-
<script>
|
|
90
|
-
import SelectUser from '../selectUser.vue';
|
|
91
|
-
import {
|
|
92
|
-
findSysCodes,
|
|
93
|
-
getNotificationMsg,
|
|
94
|
-
findCodeValues,
|
|
95
|
-
directStartTaskCircularRead,
|
|
96
|
-
endFlowAndStartTaskCircularRead
|
|
97
|
-
} from 'eoss/src/config/api';
|
|
98
|
-
import { error, success, warning, loading } from 'eoss/src/utils/util';
|
|
99
|
-
import { ajax } from 'eoss/src/utils/ajax';
|
|
100
|
-
import { getStorage } from 'eoss/src/utils/storage';
|
|
101
|
-
export default {
|
|
102
|
-
name: 'Circulate',
|
|
103
|
-
components: {
|
|
104
|
-
SelectUser
|
|
105
|
-
},
|
|
106
|
-
props: {
|
|
107
|
-
/**
|
|
108
|
-
* 待办ID
|
|
109
|
-
*/
|
|
110
|
-
pendingId: { type: String, default: '' },
|
|
111
|
-
/**
|
|
112
|
-
* 默认选中子流程ID
|
|
113
|
-
*/
|
|
114
|
-
processDefinitionId: { type: String, default: '' },
|
|
115
|
-
/**
|
|
116
|
-
* 业务ID
|
|
117
|
-
*/
|
|
118
|
-
businessId: { type: String, default: '' },
|
|
119
|
-
/**
|
|
120
|
-
* 流程类型
|
|
121
|
-
*/
|
|
122
|
-
type: { type: String, default: '' },
|
|
123
|
-
/**
|
|
124
|
-
* 默认意见
|
|
125
|
-
*/
|
|
126
|
-
defaultOpinion: { type: String, default: '' },
|
|
127
|
-
/**
|
|
128
|
-
* 历史意见
|
|
129
|
-
*/
|
|
130
|
-
oldOption: { type: String, default: '' },
|
|
131
|
-
/**
|
|
132
|
-
* 是否禁用
|
|
133
|
-
*/
|
|
134
|
-
disabled: { type: Boolean, default: false },
|
|
135
|
-
/**
|
|
136
|
-
* 是否提交成功后弹窗确认
|
|
137
|
-
*/
|
|
138
|
-
simpleTips: { type: Boolean, default: true },
|
|
139
|
-
/**
|
|
140
|
-
* 是否显示按钮
|
|
141
|
-
*/
|
|
142
|
-
showBtn: { type: Boolean, default: true },
|
|
143
|
-
/**
|
|
144
|
-
* 待办ID
|
|
145
|
-
*/
|
|
146
|
-
multiple: { type: Boolean, default: true },
|
|
147
|
-
/**
|
|
148
|
-
* 人员选择器参数
|
|
149
|
-
*/
|
|
150
|
-
selectorParams: {
|
|
151
|
-
type: Object,
|
|
152
|
-
default: () => {
|
|
153
|
-
return {};
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
/**
|
|
157
|
-
* 表单标题对齐方式
|
|
158
|
-
*/
|
|
159
|
-
labelPosition: {
|
|
160
|
-
type: String,
|
|
161
|
-
default: 'left'
|
|
162
|
-
},
|
|
163
|
-
/**
|
|
164
|
-
* 是否开始流程
|
|
165
|
-
*/
|
|
166
|
-
startFlowPageEmbeddedIntoStartFlowIndex: {
|
|
167
|
-
type: Boolean,
|
|
168
|
-
default: false
|
|
169
|
-
},
|
|
170
|
-
/**
|
|
171
|
-
* 表单标题
|
|
172
|
-
*/
|
|
173
|
-
formTitle: {
|
|
174
|
-
type: String,
|
|
175
|
-
default: ''
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
inheritAttrs: false,
|
|
179
|
-
data() {
|
|
180
|
-
return {
|
|
181
|
-
opinion: '', //办理意见
|
|
182
|
-
readOnlyNotificationType: '',
|
|
183
|
-
notificationMessageReadOnly: false,
|
|
184
|
-
otherMix: false,
|
|
185
|
-
currentMix: false,
|
|
186
|
-
oldMessage: '',
|
|
187
|
-
infoList: {
|
|
188
|
-
nextOtherOrgObj: [],
|
|
189
|
-
nextCurrentOrgObj: [],
|
|
190
|
-
noticeType: [],
|
|
191
|
-
noticeInfo: '',
|
|
192
|
-
opinion: ''
|
|
193
|
-
},
|
|
194
|
-
onlyName: '',
|
|
195
|
-
currentOrgTabs: [],
|
|
196
|
-
foreignOrgTabs: [],
|
|
197
|
-
currentOrgProcessKey: '',
|
|
198
|
-
isChangeMessage: false,
|
|
199
|
-
isSubFlow: true,
|
|
200
|
-
choiceDeptId: '',
|
|
201
|
-
choiceOrgId: '',
|
|
202
|
-
isSinglePage: false,
|
|
203
|
-
isChoiceOtherOrgDept: '',
|
|
204
|
-
currentOrgName: '',
|
|
205
|
-
otherOrgName: '',
|
|
206
|
-
newMultiple: true,
|
|
207
|
-
params: { filid: 'all', only_filid: true },
|
|
208
|
-
isHideOtherOrg: '',
|
|
209
|
-
isHideCurrentOrg: 0,
|
|
210
|
-
isOpinionRequired: 0,
|
|
211
|
-
otherParams: { filid: 'other', nofilid: 1 },
|
|
212
|
-
loading: false,
|
|
213
|
-
subLoading: null,
|
|
214
|
-
userModel: {}
|
|
215
|
-
};
|
|
216
|
-
},
|
|
217
|
-
watch: {
|
|
218
|
-
selectorParams: {
|
|
219
|
-
handler(val) {
|
|
220
|
-
this.params = val;
|
|
221
|
-
},
|
|
222
|
-
deep: true,
|
|
223
|
-
immediate: true
|
|
224
|
-
},
|
|
225
|
-
oldOption: {
|
|
226
|
-
handler(val) {
|
|
227
|
-
this.opinion = val;
|
|
228
|
-
},
|
|
229
|
-
deep: true,
|
|
230
|
-
immediate: true
|
|
231
|
-
},
|
|
232
|
-
formTitle: {
|
|
233
|
-
handler(val) {
|
|
234
|
-
if (!this.showBtn && !this.isChangeMessage) {
|
|
235
|
-
this.infoList.noticeInfo = this.oldMessage.replace('{title}', val);
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
deep: true,
|
|
239
|
-
immediate: true
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
mounted() {
|
|
243
|
-
let mainConfig = getStorage('mainConfig');
|
|
244
|
-
if (mainConfig) {
|
|
245
|
-
this.userModel = JSON.parse(mainConfig).userModel;
|
|
246
|
-
this.params.filid = this.userModel.orgId;
|
|
247
|
-
this.otherParams.nofilid = this.userModel.orgId;
|
|
248
|
-
this.otherParams.roleid = this.params.roleid;
|
|
249
|
-
}
|
|
250
|
-
this.loading = true;
|
|
251
|
-
this.newMultiple = this.multiple;
|
|
252
|
-
this.opinion = this.oldOption;
|
|
253
|
-
this.getNodeType();
|
|
254
|
-
// this.getFind();
|
|
255
|
-
this.getMessage();
|
|
256
|
-
},
|
|
257
|
-
methods: {
|
|
258
|
-
handleChange() {
|
|
259
|
-
this.isChangeMessage = true;
|
|
260
|
-
},
|
|
261
|
-
isMultiple(val) {
|
|
262
|
-
if (val == 7 || val == 9 || val == 11) {
|
|
263
|
-
this.newMultiple = false;
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
subMit() {
|
|
267
|
-
let {
|
|
268
|
-
infoList: {
|
|
269
|
-
nextCurrentOrgObj,
|
|
270
|
-
nextOtherOrgObj,
|
|
271
|
-
noticeType,
|
|
272
|
-
noticeInfo
|
|
273
|
-
},
|
|
274
|
-
processDefinitionId,
|
|
275
|
-
opinion,
|
|
276
|
-
businessId
|
|
277
|
-
} = this;
|
|
278
|
-
if (
|
|
279
|
-
(!nextCurrentOrgObj || nextCurrentOrgObj.length == 0) &&
|
|
280
|
-
(!nextOtherOrgObj || nextOtherOrgObj.length == 0)
|
|
281
|
-
) {
|
|
282
|
-
return warning('请选择处理对象!');
|
|
283
|
-
}
|
|
284
|
-
const param = {
|
|
285
|
-
url:
|
|
286
|
-
this.showBtn || this.startFlowPageEmbeddedIntoStartFlowIndex
|
|
287
|
-
? directStartTaskCircularRead
|
|
288
|
-
: endFlowAndStartTaskCircularRead,
|
|
289
|
-
data: {
|
|
290
|
-
opinion,
|
|
291
|
-
businessId,
|
|
292
|
-
|
|
293
|
-
processDefinitionId,
|
|
294
|
-
nextOtherOrgObj: Array.isArray(nextOtherOrgObj)
|
|
295
|
-
? nextOtherOrgObj.join(',')
|
|
296
|
-
: nextOtherOrgObj,
|
|
297
|
-
nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj)
|
|
298
|
-
? nextCurrentOrgObj.join(',')
|
|
299
|
-
: nextCurrentOrgObj,
|
|
300
|
-
notificationMsg: noticeInfo,
|
|
301
|
-
notificationType: noticeType.join(','),
|
|
302
|
-
userId: JSON.parse(getStorage('mainConfig')).userModel.userId
|
|
303
|
-
},
|
|
304
|
-
headers: { Accept: 'application/json,text/plain' },
|
|
305
|
-
method: 'POST'
|
|
306
|
-
};
|
|
307
|
-
if (!this.showBtn && !this.startFlowPageEmbeddedIntoStartFlowIndex) {
|
|
308
|
-
param.data.pendingId = this.pendingId;
|
|
309
|
-
delete param.data.processDefinitionId;
|
|
310
|
-
this.subLoading = loading('提交中');
|
|
311
|
-
} else if (this.startFlowPageEmbeddedIntoStartFlowIndex) {
|
|
312
|
-
this.subLoading = loading('提交中');
|
|
313
|
-
} else {
|
|
314
|
-
this.loading = true;
|
|
315
|
-
}
|
|
316
|
-
ajax(param)
|
|
317
|
-
.then((res) => {
|
|
318
|
-
const { message, status, rCode } = res;
|
|
319
|
-
if (!this.showBtn || this.startFlowPageEmbeddedIntoStartFlowIndex) {
|
|
320
|
-
this.subLoading.close();
|
|
321
|
-
} else {
|
|
322
|
-
this.loading = false;
|
|
323
|
-
}
|
|
324
|
-
if (status == 'success' || rCode == 0) {
|
|
325
|
-
this.simpleTips &&
|
|
326
|
-
this.$message({
|
|
327
|
-
message: '提交成功',
|
|
328
|
-
type: 'success'
|
|
329
|
-
});
|
|
330
|
-
this.quit(true);
|
|
331
|
-
} else {
|
|
332
|
-
this.$message({
|
|
333
|
-
message: message || '系统错误,请联系管理员!',
|
|
334
|
-
type: 'error'
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
})
|
|
338
|
-
.catch((err) => {
|
|
339
|
-
if (!this.showBtn || this.startFlowPageEmbeddedIntoStartFlowIndex) {
|
|
340
|
-
this.subLoading.close();
|
|
341
|
-
} else {
|
|
342
|
-
this.loading = false;
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
},
|
|
346
|
-
quit(val) {
|
|
347
|
-
if (val === true) return this.$emit('cancel', val);
|
|
348
|
-
this.$emit('cancel');
|
|
349
|
-
},
|
|
350
|
-
changeSelectUser(val, type) {
|
|
351
|
-
const { nextUser, options } = val;
|
|
352
|
-
let newNextUser = [];
|
|
353
|
-
let obj = {};
|
|
354
|
-
options.map((item) => {
|
|
355
|
-
if (obj[item.stype]) {
|
|
356
|
-
obj[item.stype].push(item.id);
|
|
357
|
-
} else {
|
|
358
|
-
obj[item.stype] = [item.id];
|
|
359
|
-
}
|
|
360
|
-
// if (newNextUser) {
|
|
361
|
-
// newNextUser += `,${item.stype}-${item.id}`;
|
|
362
|
-
// } else {
|
|
363
|
-
// newNextUser = `${item.stype}-${item.id}`;
|
|
364
|
-
// }
|
|
365
|
-
});
|
|
366
|
-
for (let key in obj) {
|
|
367
|
-
newNextUser.push(`${key}-${obj[key].join(',')}`);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
this.infoList[type] = newNextUser.join('|');
|
|
371
|
-
},
|
|
372
|
-
getNodeType() {
|
|
373
|
-
ajax({
|
|
374
|
-
url: findCodeValues,
|
|
375
|
-
params: {
|
|
376
|
-
ccCode: 'notification_type',
|
|
377
|
-
userId: getStorage('userId'),
|
|
378
|
-
pendingId: this.pendingId,
|
|
379
|
-
startCircularRead: true
|
|
380
|
-
}
|
|
381
|
-
})
|
|
382
|
-
.then((res) => {
|
|
383
|
-
const { status, data } = res;
|
|
384
|
-
this.loading = false;
|
|
385
|
-
if (status === 'success') {
|
|
386
|
-
this.infoList.noticeList = data;
|
|
387
|
-
this.getFind();
|
|
388
|
-
}
|
|
389
|
-
})
|
|
390
|
-
.catch((err) => {
|
|
391
|
-
this.loading = false;
|
|
392
|
-
});
|
|
393
|
-
},
|
|
394
|
-
//获取通知信息
|
|
395
|
-
getMessage() {
|
|
396
|
-
let params = {
|
|
397
|
-
pendingId: this.pendingId,
|
|
398
|
-
processDefinitionId: this.processDefinitionId,
|
|
399
|
-
businessId: this.businessId
|
|
400
|
-
};
|
|
401
|
-
if (!this.showBtn) {
|
|
402
|
-
params.openMode = 'samepage';
|
|
403
|
-
}
|
|
404
|
-
ajax({ url: getNotificationMsg, params, methods: 'post' })
|
|
405
|
-
.then((res) => {
|
|
406
|
-
if (res.status === 'success') {
|
|
407
|
-
if (!this.showBtn) {
|
|
408
|
-
this.oldMessage = res.message;
|
|
409
|
-
this.infoList.noticeInfo = res.message.replace(
|
|
410
|
-
'{title}',
|
|
411
|
-
this.formTitle
|
|
412
|
-
);
|
|
413
|
-
} else {
|
|
414
|
-
this.infoList.noticeInfo = res.message;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
this.loading = false;
|
|
418
|
-
})
|
|
419
|
-
.catch((err) => {
|
|
420
|
-
this.loading = false;
|
|
421
|
-
});
|
|
422
|
-
},
|
|
423
|
-
getFind() {
|
|
424
|
-
ajax({
|
|
425
|
-
url: findSysCodes
|
|
426
|
-
})
|
|
427
|
-
.then((res) => {
|
|
428
|
-
const { status, message } = res;
|
|
429
|
-
if (status === 'success') {
|
|
430
|
-
this.infoList.noticeType = message.split(',');
|
|
431
|
-
let arr = [];
|
|
432
|
-
this.infoList.noticeList.map((item) => {
|
|
433
|
-
this.infoList.noticeType.map((x) => {
|
|
434
|
-
if (x == item.cciValue) {
|
|
435
|
-
arr.push(x);
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
});
|
|
439
|
-
this.infoList.noticeType = arr;
|
|
440
|
-
} else {
|
|
441
|
-
error(message || '系统错误,请联系管理员!');
|
|
442
|
-
}
|
|
443
|
-
})
|
|
444
|
-
.catch((err) => {
|
|
445
|
-
this.loading = false;
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
};
|
|
450
|
-
</script>
|
|
451
|
-
|
|
452
|
-
<style></style>
|