eoss-ui 0.6.61 → 0.6.63
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/button-group.js +118 -114
- package/lib/button.js +118 -114
- package/lib/checkbox-group.js +120 -116
- package/lib/clients.js +3 -3
- package/lib/config/api.js +3 -1
- package/lib/data-table-form.js +120 -116
- package/lib/data-table.js +123 -119
- package/lib/date-picker.js +118 -114
- package/lib/dialog.js +118 -114
- package/lib/eoss-ui.common.js +1578 -857
- package/lib/flow-group.js +118 -114
- package/lib/flow-list.js +167 -128
- package/lib/flow.js +1372 -687
- package/lib/form.js +120 -116
- package/lib/handle-user.js +119 -115
- package/lib/handler.js +119 -115
- package/lib/icon.js +119 -115
- package/lib/index.js +1 -1
- package/lib/input-number.js +118 -114
- package/lib/input.js +118 -114
- package/lib/login.js +131 -127
- package/lib/main.js +162 -157
- package/lib/nav.js +118 -114
- package/lib/notify.js +121 -117
- package/lib/page.js +118 -114
- package/lib/pagination.js +118 -114
- package/lib/player.js +118 -114
- package/lib/qr-code.js +118 -114
- package/lib/radio-group.js +120 -116
- package/lib/retrial-auth.js +121 -117
- package/lib/select-ganged.js +120 -116
- package/lib/select.js +120 -116
- package/lib/selector-panel.js +136 -132
- package/lib/selector.js +119 -115
- package/lib/sizer.js +120 -116
- package/lib/steps.js +118 -114
- package/lib/switch.js +118 -114
- package/lib/table-form.js +118 -114
- package/lib/tabs.js +118 -114
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/lib/theme-chalk/sizer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/tips.js +119 -115
- package/lib/tree-group.js +118 -114
- package/lib/tree.js +119 -115
- package/lib/upload.js +130 -126
- package/lib/wujie.js +118 -114
- package/lib/wxlogin.js +118 -114
- package/package.json +1 -1
- package/packages/clients/src/main.vue +1 -1
- package/packages/flow/src/component/Circulate.vue +322 -0
- package/packages/flow/src/component/CommonOpinions.vue +3 -2
- package/packages/flow/src/component/SendMsg.vue +39 -27
- package/packages/flow/src/component/taskUnionExamine.vue +7 -5
- package/packages/flow/src/main.vue +109 -20
- package/packages/flow/src/processForm.vue +5 -1
- package/packages/flow/src/processReject.vue +3 -2
- package/packages/flow/src/startTaskRead.vue +3 -2
- package/packages/flow/src/supervise.vue +77 -72
- package/packages/flow-list/src/main.vue +61 -32
- package/packages/main/src/simplicity/index.vue +1 -0
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/lib/sizer.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/base.scss +1 -0
- package/src/config/api.js +4 -0
- package/src/index.js +1 -1
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="es-flow-index task-union-examine" v-loading="loading">
|
|
3
|
+
<el-form
|
|
4
|
+
ref="infoList"
|
|
5
|
+
:model="infoList"
|
|
6
|
+
class=""
|
|
7
|
+
label-width="120px"
|
|
8
|
+
>
|
|
9
|
+
<el-form-item
|
|
10
|
+
v-if="isHideCurrentOrg == 0"
|
|
11
|
+
prop="nextCurrentOrgObj"
|
|
12
|
+
label="本单位"
|
|
13
|
+
>
|
|
14
|
+
<SelectUser
|
|
15
|
+
:nextUser="infoList.nextCurrentOrgObj"
|
|
16
|
+
:multiple="newMultiple"
|
|
17
|
+
mix
|
|
18
|
+
@change="changeSelectUser($event, 'nextCurrentOrgObj')"
|
|
19
|
+
:types="['department', 'employee']"
|
|
20
|
+
:params="params"
|
|
21
|
+
/>
|
|
22
|
+
</el-form-item>
|
|
23
|
+
<el-form-item prop="nextOtherOrgObj" label="外单位">
|
|
24
|
+
<SelectUser
|
|
25
|
+
:nextUser="infoList.nextOtherOrgObj"
|
|
26
|
+
:multiple="newMultiple"
|
|
27
|
+
@change="changeSelectUser($event, 'nextOtherOrgObj')"
|
|
28
|
+
mix
|
|
29
|
+
:types="['enterprise', 'department']"
|
|
30
|
+
:params="otherParams"
|
|
31
|
+
/>
|
|
32
|
+
</el-form-item>
|
|
33
|
+
<el-form-item
|
|
34
|
+
prop="noticeType"
|
|
35
|
+
label="通知方式"
|
|
36
|
+
:rules="[
|
|
37
|
+
{ required: false, message: `请选择通知方式`, trigger: 'blur' }
|
|
38
|
+
]"
|
|
39
|
+
>
|
|
40
|
+
<el-checkbox-group
|
|
41
|
+
v-model="infoList.noticeType"
|
|
42
|
+
style="display: contents"
|
|
43
|
+
>
|
|
44
|
+
<el-checkbox
|
|
45
|
+
v-for="item of infoList.noticeList"
|
|
46
|
+
:key="item.cciValue"
|
|
47
|
+
:label="item.cciValue"
|
|
48
|
+
:disabled="
|
|
49
|
+
readOnlyNotificationType
|
|
50
|
+
? readOnlyNotificationType.indexOf(item.cciValue) != -1
|
|
51
|
+
: false
|
|
52
|
+
"
|
|
53
|
+
>
|
|
54
|
+
{{ item.shortName }}
|
|
55
|
+
</el-checkbox>
|
|
56
|
+
</el-checkbox-group>
|
|
57
|
+
</el-form-item>
|
|
58
|
+
<el-form-item
|
|
59
|
+
v-show="infoList.noticeType.length != 0"
|
|
60
|
+
prop="noticeInfo"
|
|
61
|
+
label="通知消息"
|
|
62
|
+
>
|
|
63
|
+
<es-input
|
|
64
|
+
style="
|
|
65
|
+
border-color: #ccc;
|
|
66
|
+
padding: 5px;
|
|
67
|
+
border-radius: 5px;
|
|
68
|
+
font-size: 13px;
|
|
69
|
+
"
|
|
70
|
+
type="textarea"
|
|
71
|
+
v-model="infoList.noticeInfo"
|
|
72
|
+
:readonly="notificationMessageReadOnly"
|
|
73
|
+
/>
|
|
74
|
+
<!-- <span>{{ infoList.noticeInfo }}</span> -->
|
|
75
|
+
</el-form-item>
|
|
76
|
+
</el-form>
|
|
77
|
+
<div style="text-align: right">
|
|
78
|
+
<el-button type="primary" size="small" @click="subMit"> 确定 </el-button>
|
|
79
|
+
<el-button @click="quit" size="small"> 取消 </el-button>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</template>
|
|
83
|
+
|
|
84
|
+
<script>
|
|
85
|
+
import CommonOpinions from './CommonOpinions.vue';
|
|
86
|
+
import SelectUser from '../selectUser.vue';
|
|
87
|
+
import {
|
|
88
|
+
findSysCodes,
|
|
89
|
+
getNotificationMsg,
|
|
90
|
+
findCodeValues,
|
|
91
|
+
directStartTaskCircularRead,
|
|
92
|
+
} from 'eoss-ui/src/config/api';
|
|
93
|
+
import util from 'eoss-ui/src/utils/util.js';
|
|
94
|
+
export default {
|
|
95
|
+
name: 'Circulate',
|
|
96
|
+
components: {
|
|
97
|
+
[CommonOpinions.name]: CommonOpinions,
|
|
98
|
+
[SelectUser.name]: SelectUser
|
|
99
|
+
},
|
|
100
|
+
props: {
|
|
101
|
+
pendingId: { type: String, default: '' },
|
|
102
|
+
processDefinitionId: { type: String, default: '' },
|
|
103
|
+
businessId: { type: String, default: '' },
|
|
104
|
+
type: { type: String, default: '' },
|
|
105
|
+
defaultOpinion: { type: String, default: '' },
|
|
106
|
+
oldOption: { type: String, default: '' },
|
|
107
|
+
disabled: { type: Boolean, default: false },
|
|
108
|
+
simpleTips: { type: Boolean, default: true },
|
|
109
|
+
multiple: { type: Boolean, default: true }
|
|
110
|
+
},
|
|
111
|
+
inheritAttrs: false,
|
|
112
|
+
data() {
|
|
113
|
+
return {
|
|
114
|
+
opinion: '', //办理意见
|
|
115
|
+
readOnlyNotificationType: '',
|
|
116
|
+
notificationMessageReadOnly: false,
|
|
117
|
+
otherMix: false,
|
|
118
|
+
currentMix: false,
|
|
119
|
+
infoList: {
|
|
120
|
+
nextOtherOrgObj: [],
|
|
121
|
+
nextCurrentOrgObj: [],
|
|
122
|
+
noticeType: [],
|
|
123
|
+
noticeInfo: '',
|
|
124
|
+
opinion: ''
|
|
125
|
+
},
|
|
126
|
+
onlyName: '',
|
|
127
|
+
currentOrgTabs: [],
|
|
128
|
+
foreignOrgTabs: [],
|
|
129
|
+
currentOrgProcessKey: '',
|
|
130
|
+
isSubFlow: true,
|
|
131
|
+
choiceDeptId: '',
|
|
132
|
+
choiceOrgId: '',
|
|
133
|
+
isSinglePage: false,
|
|
134
|
+
isChoiceOtherOrgDept: '',
|
|
135
|
+
currentOrgName: '',
|
|
136
|
+
otherOrgName: '',
|
|
137
|
+
newMultiple: true,
|
|
138
|
+
params: { filid: 'all' },
|
|
139
|
+
isHideOtherOrg: '',
|
|
140
|
+
isHideCurrentOrg: 0,
|
|
141
|
+
isOpinionRequired: 0,
|
|
142
|
+
otherParams: { filid: 'other' },
|
|
143
|
+
loading: false
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
mounted() {
|
|
147
|
+
this.loading = true;
|
|
148
|
+
this.newMultiple = this.multiple;
|
|
149
|
+
this.opinion = this.oldOption;
|
|
150
|
+
this.getNodeType();
|
|
151
|
+
// this.getFind();
|
|
152
|
+
this.getMessage();
|
|
153
|
+
},
|
|
154
|
+
methods: {
|
|
155
|
+
isMultiple(val) {
|
|
156
|
+
if (val == 7 || val == 9 || val == 11) {
|
|
157
|
+
this.newMultiple = false;
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
subMit() {
|
|
161
|
+
|
|
162
|
+
let {
|
|
163
|
+
infoList: {
|
|
164
|
+
nextCurrentOrgObj,
|
|
165
|
+
nextOtherOrgObj,
|
|
166
|
+
noticeType,
|
|
167
|
+
noticeInfo
|
|
168
|
+
},
|
|
169
|
+
processDefinitionId,
|
|
170
|
+
opinion,
|
|
171
|
+
businessId,
|
|
172
|
+
} = this;
|
|
173
|
+
if (
|
|
174
|
+
(!nextCurrentOrgObj || nextCurrentOrgObj.length == 0)&&
|
|
175
|
+
(!nextOtherOrgObj || nextOtherOrgObj.length == 0)
|
|
176
|
+
) {
|
|
177
|
+
return this.$message.warning('请选择处理对象!');
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const param = {
|
|
181
|
+
url: directStartTaskCircularRead,
|
|
182
|
+
data: {
|
|
183
|
+
opinion,
|
|
184
|
+
businessId,
|
|
185
|
+
processDefinitionId,
|
|
186
|
+
nextOtherOrgObj: Array.isArray(nextOtherOrgObj)
|
|
187
|
+
? nextOtherOrgObj.join(',')
|
|
188
|
+
: nextOtherOrgObj,
|
|
189
|
+
nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj)
|
|
190
|
+
? nextCurrentOrgObj.join(',')
|
|
191
|
+
: nextCurrentOrgObj,
|
|
192
|
+
notificationMsg: noticeInfo,
|
|
193
|
+
notificationType: noticeType.join(','),
|
|
194
|
+
userId:JSON.parse(util.getStorage('mainConfig')).userModel.userId,
|
|
195
|
+
},
|
|
196
|
+
headers: { Accept: 'application/json,text/plain' },
|
|
197
|
+
method: 'POST'
|
|
198
|
+
};
|
|
199
|
+
this.loading = true;
|
|
200
|
+
util
|
|
201
|
+
.ajax(param)
|
|
202
|
+
.then((res) => {
|
|
203
|
+
const { message, status,rCode } = res;
|
|
204
|
+
this.loading = false;
|
|
205
|
+
if (status == 'success' || rCode == 0) {
|
|
206
|
+
this.simpleTips && this.$message.success('提交成功');
|
|
207
|
+
this.quit(true);
|
|
208
|
+
} else {
|
|
209
|
+
this.$message.error(message || '系统错误,请联系管理员!');
|
|
210
|
+
}
|
|
211
|
+
})
|
|
212
|
+
.catch((err) => {
|
|
213
|
+
this.loading = false;
|
|
214
|
+
if (err.message && err.message !== 'canceled') {
|
|
215
|
+
this.$message.error(err.message);
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
},
|
|
219
|
+
quit(val) {
|
|
220
|
+
if (val === true) return this.$emit('cancel', val);
|
|
221
|
+
this.$emit('cancel');
|
|
222
|
+
},
|
|
223
|
+
changeSelectUser(val, type) {
|
|
224
|
+
const { nextUser, options } = val;
|
|
225
|
+
let newNextUser = [];
|
|
226
|
+
let obj = {};
|
|
227
|
+
options.map((item) => {
|
|
228
|
+
if (obj[item.stype]) {
|
|
229
|
+
obj[item.stype].push(item.id);
|
|
230
|
+
} else {
|
|
231
|
+
obj[item.stype] = [item.id];
|
|
232
|
+
}
|
|
233
|
+
// if (newNextUser) {
|
|
234
|
+
// newNextUser += `,${item.stype}-${item.id}`;
|
|
235
|
+
// } else {
|
|
236
|
+
// newNextUser = `${item.stype}-${item.id}`;
|
|
237
|
+
// }
|
|
238
|
+
});
|
|
239
|
+
for (let key in obj) {
|
|
240
|
+
newNextUser.push(`${key}-${obj[key].join(',')}`);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
this.infoList[type] = newNextUser.join('|');
|
|
244
|
+
},
|
|
245
|
+
getNodeType() {
|
|
246
|
+
util
|
|
247
|
+
.ajax({
|
|
248
|
+
url: findCodeValues,
|
|
249
|
+
params: {
|
|
250
|
+
ccCode: 'notification_type',
|
|
251
|
+
userId: util.getStorage('userId')
|
|
252
|
+
}
|
|
253
|
+
})
|
|
254
|
+
.then((res) => {
|
|
255
|
+
const { status, data } = res;
|
|
256
|
+
this.loading = false;
|
|
257
|
+
if (status === 'success') {
|
|
258
|
+
this.infoList.noticeList = data;
|
|
259
|
+
this.getFind()
|
|
260
|
+
}
|
|
261
|
+
})
|
|
262
|
+
.catch((err) => {
|
|
263
|
+
this.loading = false;
|
|
264
|
+
if (err.message && err.message !== 'canceled') {
|
|
265
|
+
this.$message.error(err.message);
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
},
|
|
269
|
+
//获取通知信息
|
|
270
|
+
getMessage() {
|
|
271
|
+
let params = {
|
|
272
|
+
pendingId: this.pendingId
|
|
273
|
+
};
|
|
274
|
+
util
|
|
275
|
+
.ajax({ url: getNotificationMsg, params, methods: 'post' })
|
|
276
|
+
.then((res) => {
|
|
277
|
+
if (res.status === 'success') {
|
|
278
|
+
this.infoList.noticeInfo = res.message;
|
|
279
|
+
}
|
|
280
|
+
this.loading = false;
|
|
281
|
+
})
|
|
282
|
+
.catch((err) => {
|
|
283
|
+
this.loading = false;
|
|
284
|
+
if (err.message && err.message !== 'canceled') {
|
|
285
|
+
this.$message.error(err.message);
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
},
|
|
289
|
+
getFind() {
|
|
290
|
+
util
|
|
291
|
+
.ajax({
|
|
292
|
+
url: findSysCodes
|
|
293
|
+
})
|
|
294
|
+
.then((res) => {
|
|
295
|
+
const { status, message } = res;
|
|
296
|
+
if (status === 'success') {
|
|
297
|
+
this.infoList.noticeType = message.split(',');
|
|
298
|
+
let arr = [];
|
|
299
|
+
this.infoList.noticeList.map((item) => {
|
|
300
|
+
this.infoList.noticeType.map((x) => {
|
|
301
|
+
if (x == item.cciValue) {
|
|
302
|
+
arr.push(x);
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
this.infoList.noticeType = arr;
|
|
307
|
+
} else {
|
|
308
|
+
this.$message.error(message || '系统错误,请联系管理员!');
|
|
309
|
+
}
|
|
310
|
+
})
|
|
311
|
+
.catch((err) => {
|
|
312
|
+
this.loading = false;
|
|
313
|
+
if (err.message && err.message !== 'canceled') {
|
|
314
|
+
this.$message.error(err.message);
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
</script>
|
|
321
|
+
|
|
322
|
+
<style></style>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="commonOpinion">
|
|
3
3
|
<el-form
|
|
4
4
|
:model="form"
|
|
5
|
-
:rules="rules"
|
|
5
|
+
:rules="required?rules:{}"
|
|
6
6
|
ref="ruleForm"
|
|
7
7
|
label-width="0"
|
|
8
8
|
>
|
|
@@ -145,7 +145,8 @@ export default {
|
|
|
145
145
|
rows: {
|
|
146
146
|
type: [Number,String],
|
|
147
147
|
default: 10
|
|
148
|
-
}
|
|
148
|
+
},
|
|
149
|
+
required:{type:Boolean,default:false}
|
|
149
150
|
},
|
|
150
151
|
mounted() {
|
|
151
152
|
if (this.nodeFixedOpinionSelectList.length > 0) {
|
|
@@ -16,14 +16,19 @@
|
|
|
16
16
|
{ required: false, message: `请选择通知方式`, trigger: 'blur' }
|
|
17
17
|
]"
|
|
18
18
|
>
|
|
19
|
-
<el-checkbox-group
|
|
19
|
+
<el-checkbox-group
|
|
20
|
+
v-model="sendInfo.notificationType"
|
|
21
|
+
style="display: contents"
|
|
22
|
+
>
|
|
20
23
|
<el-checkbox
|
|
21
24
|
v-for="item of notificationList"
|
|
22
25
|
:key="item.cciValue"
|
|
23
26
|
:label="item.cciValue"
|
|
24
|
-
:disabled="
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
:disabled="
|
|
28
|
+
readOnlyNotificationType
|
|
29
|
+
? readOnlyNotificationType.indexOf(item.cciValue) != -1
|
|
30
|
+
: false
|
|
31
|
+
"
|
|
27
32
|
>
|
|
28
33
|
{{ item.shortName }}
|
|
29
34
|
</el-checkbox>
|
|
@@ -56,15 +61,13 @@
|
|
|
56
61
|
<el-table-column label="状态" show-overflow-tooltip>
|
|
57
62
|
<template slot-scope="scope"
|
|
58
63
|
><span
|
|
59
|
-
:style="
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}`
|
|
67
|
-
"
|
|
64
|
+
:style="`${
|
|
65
|
+
scope.row.pendstate == 0
|
|
66
|
+
? 'color:red'
|
|
67
|
+
: scope.row.pendstate == 1
|
|
68
|
+
? 'color:green'
|
|
69
|
+
: ''
|
|
70
|
+
}`"
|
|
68
71
|
>{{ scope.row.querykeywords }}</span
|
|
69
72
|
></template
|
|
70
73
|
>
|
|
@@ -76,13 +79,11 @@
|
|
|
76
79
|
</el-table-column>
|
|
77
80
|
</el-table>
|
|
78
81
|
<el-form-item>
|
|
79
|
-
<div style="text-align:right">
|
|
82
|
+
<div style="text-align: right">
|
|
80
83
|
<el-button type="primary" size="small" @click="subMit">
|
|
81
84
|
确定
|
|
82
85
|
</el-button>
|
|
83
|
-
<el-button @click="quit" size="small">
|
|
84
|
-
取消
|
|
85
|
-
</el-button>
|
|
86
|
+
<el-button @click="quit" size="small"> 取消 </el-button>
|
|
86
87
|
</div>
|
|
87
88
|
</el-form-item>
|
|
88
89
|
</el-form>
|
|
@@ -114,6 +115,10 @@ export default {
|
|
|
114
115
|
newsList: {
|
|
115
116
|
type: Array,
|
|
116
117
|
default: () => []
|
|
118
|
+
},
|
|
119
|
+
simpleTips: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
default: true
|
|
117
122
|
}
|
|
118
123
|
},
|
|
119
124
|
mounted() {
|
|
@@ -146,17 +151,17 @@ export default {
|
|
|
146
151
|
};
|
|
147
152
|
util
|
|
148
153
|
.ajax(params)
|
|
149
|
-
.then(res => {
|
|
154
|
+
.then((res) => {
|
|
150
155
|
const { message, status } = res;
|
|
151
156
|
this.loading = false;
|
|
152
157
|
if (status === 'success') {
|
|
153
|
-
this.$message.success('操作成功');
|
|
158
|
+
this.simpleTips && this.$message.success('操作成功');
|
|
154
159
|
this.quit(true);
|
|
155
160
|
} else {
|
|
156
161
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
157
162
|
}
|
|
158
163
|
})
|
|
159
|
-
.catch(err => {
|
|
164
|
+
.catch((err) => {
|
|
160
165
|
this.loading = false;
|
|
161
166
|
if (err.message && err.message !== 'canceled') {
|
|
162
167
|
this.$message.error(err.message);
|
|
@@ -177,13 +182,13 @@ export default {
|
|
|
177
182
|
let rows = this.sendTable.filter(
|
|
178
183
|
(item, index) => item.pendstate == 2 && index == 0
|
|
179
184
|
);
|
|
180
|
-
rows.forEach(row => {
|
|
185
|
+
rows.forEach((row) => {
|
|
181
186
|
this.$refs.multipleTable.toggleRowSelection(row);
|
|
182
187
|
});
|
|
183
188
|
});
|
|
184
189
|
},
|
|
185
190
|
handleSelectionChange(val) {
|
|
186
|
-
let ids = val.map(item => {
|
|
191
|
+
let ids = val.map((item) => {
|
|
187
192
|
if (item.pendstate == 2) {
|
|
188
193
|
return item.id;
|
|
189
194
|
}
|
|
@@ -197,17 +202,24 @@ export default {
|
|
|
197
202
|
url: toSendMsg,
|
|
198
203
|
params: { pendingId: this.$attrs.pendingId }
|
|
199
204
|
})
|
|
200
|
-
.then(res => {
|
|
205
|
+
.then((res) => {
|
|
201
206
|
const {
|
|
202
207
|
status,
|
|
203
208
|
message,
|
|
204
|
-
data: {
|
|
209
|
+
data: {
|
|
210
|
+
title,
|
|
211
|
+
wfHistoryList,
|
|
212
|
+
appId,
|
|
213
|
+
notificationMessageReadOnly,
|
|
214
|
+
readOnlyNotificationType
|
|
215
|
+
}
|
|
205
216
|
} = res;
|
|
206
217
|
this.loading = false;
|
|
207
218
|
if (status === 'success') {
|
|
208
219
|
this.sendInfo.title = title;
|
|
209
|
-
this.readOnlyNotificationType =readOnlyNotificationType;
|
|
210
|
-
this.notificationMessageReadOnly =
|
|
220
|
+
this.readOnlyNotificationType = readOnlyNotificationType;
|
|
221
|
+
this.notificationMessageReadOnly =
|
|
222
|
+
notificationMessageReadOnly == 'true';
|
|
211
223
|
this.appId = appId;
|
|
212
224
|
this.sendTable = wfHistoryList;
|
|
213
225
|
this.checkList();
|
|
@@ -215,7 +227,7 @@ export default {
|
|
|
215
227
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
216
228
|
}
|
|
217
229
|
})
|
|
218
|
-
.catch(err => {
|
|
230
|
+
.catch((err) => {
|
|
219
231
|
this.loading = false;
|
|
220
232
|
if (err.message && err.message !== 'canceled') {
|
|
221
233
|
this.$message.error(err.message);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
ref="infoList"
|
|
5
5
|
:model="infoList"
|
|
6
6
|
class="demo-dynamic"
|
|
7
|
-
label-width="
|
|
7
|
+
label-width="120px"
|
|
8
8
|
>
|
|
9
9
|
<el-form-item v-if="isSinglePage" prop="opinion" label="意见">
|
|
10
10
|
<CommonOpinions @change="(val) => (opinion = val)" />
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
? currentOrgName
|
|
19
19
|
: '本单位'
|
|
20
20
|
: type == 'startDraf'
|
|
21
|
-
? '
|
|
21
|
+
? '呈送单位/对象'
|
|
22
22
|
: type === 'taskReview'
|
|
23
23
|
? '复核人'
|
|
24
24
|
: type === 'twoOfficesDispatch'
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
? ['enterprise', 'employee']
|
|
50
50
|
: ['enterprise']
|
|
51
51
|
"
|
|
52
|
-
:params="params"
|
|
52
|
+
:params="type == 'startDraf'?otherParams:params"
|
|
53
53
|
:tabs="currentOrgTabsParam"
|
|
54
54
|
:disabled="disabled"
|
|
55
55
|
:onlyName="onlyName"
|
|
@@ -160,6 +160,7 @@ export default {
|
|
|
160
160
|
defaultOpinion: { type: String, default: '' },
|
|
161
161
|
oldOption: { type: String, default: '' },
|
|
162
162
|
disabled: { type: Boolean, default: false },
|
|
163
|
+
simpleTips: { type: Boolean, default: true },
|
|
163
164
|
multiple: { type: Boolean, default: true }
|
|
164
165
|
},
|
|
165
166
|
inheritAttrs: false,
|
|
@@ -243,7 +244,7 @@ export default {
|
|
|
243
244
|
const { message, status } = res;
|
|
244
245
|
this.loading = false;
|
|
245
246
|
if (status === 'success') {
|
|
246
|
-
|
|
247
|
+
this.simpleTips && this.$message.success('提交成功');
|
|
247
248
|
this.quit(true);
|
|
248
249
|
} else {
|
|
249
250
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
@@ -361,6 +362,7 @@ export default {
|
|
|
361
362
|
).userModel.orgId;
|
|
362
363
|
}
|
|
363
364
|
}
|
|
365
|
+
|
|
364
366
|
if (res.data.customizedConfig.foreignOrgSelectorCustomized) {
|
|
365
367
|
this.otherMix =
|
|
366
368
|
res.data.customizedConfig.foreignOrgSelectorSelectMix ==
|
|
@@ -499,7 +501,7 @@ export default {
|
|
|
499
501
|
const { message, status } = res;
|
|
500
502
|
this.loading = false;
|
|
501
503
|
if (status == 'success') {
|
|
502
|
-
|
|
504
|
+
this.simpleTips && this.$message.success('提交成功');
|
|
503
505
|
this.quit(true);
|
|
504
506
|
} else {
|
|
505
507
|
this.$message.error(message || '系统错误,请联系管理员!');
|