eoss-mobiles 0.3.77 → 0.3.78
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/eoss-mobile.common.js +234 -142
- package/lib/flow.js +233 -141
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/components/Handle.vue +24 -7
- package/packages/flow/src/components/Reject.vue +9 -2
- package/packages/flow/src/components/StartFlow.vue +13 -4
- package/packages/flow/src/components/TaskRead.vue +6 -0
- package/packages/flow/src/components/reset.vue +14 -4
- package/packages/flow/src/components/supervise.vue +7 -2
- package/packages/flow/src/components/taskUnionExamine.vue +8 -2
- package/src/index.js +1 -1
- package/src/utils/axios.js +4 -4
package/package.json
CHANGED
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
@closePop="showFreeStart = false"
|
|
15
15
|
@success="handleSuccess"
|
|
16
16
|
:opinion="form.opinion"
|
|
17
|
+
:hideMessage="hideMessage"
|
|
18
|
+
:flowLabelConfig="flowLabelConfig"
|
|
17
19
|
:copy-history="freeStartFlowParams.pendedHistoryHandle"
|
|
18
20
|
:formType="processFormType"
|
|
19
21
|
:orgId="orgId"
|
|
@@ -262,12 +264,14 @@
|
|
|
262
264
|
!isCustomUser || isCurrentNodeForbiddenChangeCandidate == 1
|
|
263
265
|
"
|
|
264
266
|
:selectDisabled="isCurrentNodeForbiddenChangeCandidate == 1"
|
|
265
|
-
placeholder="
|
|
267
|
+
:placeholder="`请选择${
|
|
268
|
+
flowLabelConfig.nextUser || '下步办理人'
|
|
269
|
+
}`"
|
|
266
270
|
:param="{
|
|
267
271
|
pid: pid,
|
|
268
272
|
onlyMyOrg: onlyMyOrg
|
|
269
273
|
}"
|
|
270
|
-
label="下步办理人"
|
|
274
|
+
:label="`${flowLabelConfig.nextUser || '下步办理人'}`"
|
|
271
275
|
@change="disposeAppUser($event, 'nextUserSelectList')"
|
|
272
276
|
/>
|
|
273
277
|
</div>
|
|
@@ -306,9 +310,9 @@
|
|
|
306
310
|
:isOtherUnit="false"
|
|
307
311
|
:label="currentOrgName ? currentOrgName : '本单位'"
|
|
308
312
|
@change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
313
|
+
/>
|
|
314
|
+
</div>
|
|
315
|
+
<!-- :nextUserList="nextUserList" -->
|
|
312
316
|
<!-- 外单位 -->
|
|
313
317
|
<!-- v-if="isHideOtherOrg" -->
|
|
314
318
|
<div class="item" v-if="isHideOtherOrg">
|
|
@@ -537,6 +541,8 @@
|
|
|
537
541
|
ref="processSetting"
|
|
538
542
|
:processDefinitionId="taskExamineInfo.processDefinitionId"
|
|
539
543
|
:nodeId="form.nextNodeId"
|
|
544
|
+
:hideMessage="hideMessage"
|
|
545
|
+
:flowLabelConfig="flowLabelConfig"
|
|
540
546
|
:taskId="processObj.taskExamine.taskId"
|
|
541
547
|
:pendingId="pendingId"
|
|
542
548
|
:businessId="taskExamineInfo.businessId"
|
|
@@ -562,7 +568,7 @@
|
|
|
562
568
|
</div>
|
|
563
569
|
|
|
564
570
|
<!-- 通知方式 -->
|
|
565
|
-
<div class="item-msg item-msg2">
|
|
571
|
+
<div class="item-msg item-msg2" v-if="!hideMessage">
|
|
566
572
|
<Message
|
|
567
573
|
ref="message"
|
|
568
574
|
:code="msgCode"
|
|
@@ -594,6 +600,8 @@
|
|
|
594
600
|
v-else
|
|
595
601
|
:pendingId="pendingId"
|
|
596
602
|
:before-submit="beforeSubmit"
|
|
603
|
+
:hideMessage="hideMessage"
|
|
604
|
+
:flowLabelConfig="flowLabelConfig"
|
|
597
605
|
@close="handleFlow = true"
|
|
598
606
|
/>
|
|
599
607
|
<em-popup class="em-flow-popup" v-model="showDefList">
|
|
@@ -690,6 +698,14 @@ export default {
|
|
|
690
698
|
selectorParams: {
|
|
691
699
|
type: Object,
|
|
692
700
|
default: () => {}
|
|
701
|
+
},
|
|
702
|
+
flowLabelConfig: {
|
|
703
|
+
type: Object,
|
|
704
|
+
default: () => ({})
|
|
705
|
+
},
|
|
706
|
+
hideMessage: {
|
|
707
|
+
type: Boolean,
|
|
708
|
+
default: false
|
|
693
709
|
}
|
|
694
710
|
},
|
|
695
711
|
data() {
|
|
@@ -1144,7 +1160,7 @@ export default {
|
|
|
1144
1160
|
this.form.isAddSign != '1' &&
|
|
1145
1161
|
!this.isReject
|
|
1146
1162
|
) {
|
|
1147
|
-
this.$toast('
|
|
1163
|
+
this.$toast(`请选择${this.flowLabelConfig.nextUser || '办理人'}`);
|
|
1148
1164
|
return;
|
|
1149
1165
|
}
|
|
1150
1166
|
// if (this.form.isAddSign == '1' && !this.form.addSignUserId) {
|
|
@@ -1743,6 +1759,7 @@ export default {
|
|
|
1743
1759
|
that.form.isSerialSubmit = taskExamine.isSerialSubmit;
|
|
1744
1760
|
that.form.notificationMsg = defaultNotificationMessage;
|
|
1745
1761
|
defaultNotificationType &&
|
|
1762
|
+
!that.hideMessage &&
|
|
1746
1763
|
(that.defaultNotificationType =
|
|
1747
1764
|
defaultNotificationType.split(','));
|
|
1748
1765
|
that.nodeInfoMapInfo = nodeInfoMap;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</em-input>
|
|
28
28
|
</div>
|
|
29
29
|
<Message
|
|
30
|
-
v-if="rejectObj && rejectObj.length != 0"
|
|
30
|
+
v-if="rejectObj && rejectObj.length != 0 && !hideMessage"
|
|
31
31
|
ref="message"
|
|
32
32
|
:code="msgCode"
|
|
33
33
|
:baseUrl="baseUrl"
|
|
@@ -72,6 +72,10 @@ export default {
|
|
|
72
72
|
userId: {
|
|
73
73
|
type: String,
|
|
74
74
|
default: ''
|
|
75
|
+
},
|
|
76
|
+
hideMessage: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: false
|
|
75
79
|
}
|
|
76
80
|
},
|
|
77
81
|
data() {
|
|
@@ -245,7 +249,10 @@ export default {
|
|
|
245
249
|
}
|
|
246
250
|
this.processObj = res.data;
|
|
247
251
|
this.form.notificationMsg = defaultNotificationMessage;
|
|
248
|
-
this.
|
|
252
|
+
if(!this.hideMessage) {
|
|
253
|
+
this.defaultNotificationType = defaultNotificationType.split(',');
|
|
254
|
+
}
|
|
255
|
+
|
|
249
256
|
let list = [];
|
|
250
257
|
if (rejectTaskNodes) {
|
|
251
258
|
for (let i in rejectTaskNodes) {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
:objType="objType"
|
|
121
121
|
:nextUserList="nextUserList"
|
|
122
122
|
@change="handleChange($event, 'nextUserSelectList')"
|
|
123
|
-
label="办理人"
|
|
123
|
+
:label="`${flowLabelConfig.nextUser|| '办理人'}`"
|
|
124
124
|
/>
|
|
125
125
|
</div>
|
|
126
126
|
<div class="item" v-if="enableCustomLimitTimeSetting">
|
|
@@ -194,6 +194,7 @@
|
|
|
194
194
|
/>
|
|
195
195
|
<!-- 通知方式 -->
|
|
196
196
|
<Message
|
|
197
|
+
v-if="!hideMessage"
|
|
197
198
|
ref="message"
|
|
198
199
|
:code="msgCode"
|
|
199
200
|
:readOnlyNotificationType="readOnlyNotificationType"
|
|
@@ -302,7 +303,15 @@ export default {
|
|
|
302
303
|
selectorParams: {
|
|
303
304
|
type: Object,
|
|
304
305
|
default: () => {}
|
|
305
|
-
}
|
|
306
|
+
},
|
|
307
|
+
flowLabelConfig: {
|
|
308
|
+
type: Object,
|
|
309
|
+
default: () => ({})
|
|
310
|
+
},
|
|
311
|
+
hideMessage: {
|
|
312
|
+
type: Boolean,
|
|
313
|
+
default: false
|
|
314
|
+
},
|
|
306
315
|
},
|
|
307
316
|
data() {
|
|
308
317
|
return {
|
|
@@ -454,7 +463,7 @@ export default {
|
|
|
454
463
|
return;
|
|
455
464
|
}
|
|
456
465
|
if (!this.form.nextUserId && this.isNextUser) {
|
|
457
|
-
this.$toast('
|
|
466
|
+
this.$toast(`请选择${this.flowLabelConfig.nextUser || '办理人'}`);
|
|
458
467
|
return;
|
|
459
468
|
}
|
|
460
469
|
if (!this.form.nextNodeId) {
|
|
@@ -791,7 +800,7 @@ export default {
|
|
|
791
800
|
let defaultNotificationTypes = [];
|
|
792
801
|
if (
|
|
793
802
|
res.results.notificationTypes &&
|
|
794
|
-
that.defaultNotificationType.length == 0
|
|
803
|
+
that.defaultNotificationType.length == 0 && !that.hideMessage
|
|
795
804
|
) {
|
|
796
805
|
defaultNotificationTypes = res.results.notificationTypes.filter(
|
|
797
806
|
(x) => x.defaultSelected == 'true'
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
</div>
|
|
78
78
|
<div class="item">
|
|
79
79
|
<Message
|
|
80
|
+
v-if="!hideMessage"
|
|
80
81
|
ref="message"
|
|
81
82
|
:code="msgCode"
|
|
82
83
|
:readOnlyNotificationType="readOnlyNotificationType"
|
|
@@ -175,6 +176,10 @@ export default {
|
|
|
175
176
|
isAllCheck: {
|
|
176
177
|
type: Boolean,
|
|
177
178
|
default: false
|
|
179
|
+
},
|
|
180
|
+
hideMessage: {
|
|
181
|
+
type: Boolean,
|
|
182
|
+
default: false
|
|
178
183
|
}
|
|
179
184
|
},
|
|
180
185
|
computed: {
|
|
@@ -298,6 +303,7 @@ export default {
|
|
|
298
303
|
.then((res) => {
|
|
299
304
|
const { status, message, data } = res;
|
|
300
305
|
if (status === 'success') {
|
|
306
|
+
if(this.hideMessage) return
|
|
301
307
|
this.form.notificationMsgType = message.split(',');
|
|
302
308
|
this.defaultNotificationType = message.split(',');
|
|
303
309
|
if (data) {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
:objType="objType"
|
|
65
65
|
:nextUserList="nextUserList"
|
|
66
66
|
@change="handleChange($event, 'nextUserSelectList')"
|
|
67
|
-
label="办理人"
|
|
67
|
+
:label="`${flowLabelConfig.nextUser|| '办理人'}`"
|
|
68
68
|
/>
|
|
69
69
|
</div>
|
|
70
70
|
<div class="item" v-if="enableCustomLimitTimeSetting">
|
|
@@ -138,6 +138,7 @@
|
|
|
138
138
|
/>
|
|
139
139
|
<!-- 通知方式 -->
|
|
140
140
|
<Message
|
|
141
|
+
v-if="!hideMessage"
|
|
141
142
|
ref="message"
|
|
142
143
|
:code="msgCode"
|
|
143
144
|
:readOnlyNotificationType="readOnlyNotificationType"
|
|
@@ -238,7 +239,15 @@ export default {
|
|
|
238
239
|
opinion: {
|
|
239
240
|
type: String,
|
|
240
241
|
default: ''
|
|
241
|
-
}
|
|
242
|
+
},
|
|
243
|
+
hideMessage: {
|
|
244
|
+
type: Boolean,
|
|
245
|
+
default: false
|
|
246
|
+
},
|
|
247
|
+
flowLabelConfig: {
|
|
248
|
+
type: Object,
|
|
249
|
+
default: () => ({})
|
|
250
|
+
},
|
|
242
251
|
},
|
|
243
252
|
data() {
|
|
244
253
|
return {
|
|
@@ -309,6 +318,7 @@ export default {
|
|
|
309
318
|
url: findSysCodes
|
|
310
319
|
}).then((res) => {
|
|
311
320
|
// this.form.notificationMsg = res.message;
|
|
321
|
+
if(this.hideMessage) return
|
|
312
322
|
this.defaultNotificationType = res.message.split(',');
|
|
313
323
|
});
|
|
314
324
|
},
|
|
@@ -387,7 +397,7 @@ export default {
|
|
|
387
397
|
return;
|
|
388
398
|
}
|
|
389
399
|
if (!this.form.nextUserId) {
|
|
390
|
-
this.$toast('
|
|
400
|
+
this.$toast(`请选择${this.flowLabelConfig.nextUser|| '办理人'}`);
|
|
391
401
|
return;
|
|
392
402
|
}
|
|
393
403
|
if (!this.form.nextNodeId) {
|
|
@@ -481,7 +491,7 @@ export default {
|
|
|
481
491
|
this.$refs.selectTree.getContent(label);
|
|
482
492
|
});
|
|
483
493
|
let obj = {
|
|
484
|
-
label: '
|
|
494
|
+
label: `请选择${this.flowLabelConfig.nextUser|| '办理人'}`,
|
|
485
495
|
show: true
|
|
486
496
|
};
|
|
487
497
|
this.$emit('informNav', obj);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<em-input v-model="form.currentHandleNode" label-width="90" label="当前办理节点" readonly />
|
|
5
5
|
<em-input v-model="form.pendingUserNames" label-width="90" label="当前办理人" readonly /> -->
|
|
6
6
|
<Message
|
|
7
|
+
v-if="!hideMessage"
|
|
7
8
|
ref="message"
|
|
8
9
|
:code="msgCode"
|
|
9
10
|
:baseUrl="baseUrl"
|
|
@@ -48,7 +49,8 @@ export default {
|
|
|
48
49
|
type: String,
|
|
49
50
|
default: 'notification_type'
|
|
50
51
|
},
|
|
51
|
-
appId:{type:String,default:''}
|
|
52
|
+
appId:{type:String,default:''},
|
|
53
|
+
hideMessage:{type:Boolean,default:false}
|
|
52
54
|
},
|
|
53
55
|
data() {
|
|
54
56
|
return {
|
|
@@ -116,7 +118,10 @@ export default {
|
|
|
116
118
|
this.form = res.results;
|
|
117
119
|
this.form.notificationMsg = res.results.notifyMessage
|
|
118
120
|
this.flowList = res.results.taskSuperviseHistories;
|
|
119
|
-
this.
|
|
121
|
+
if(!this.hideMessage){
|
|
122
|
+
this.form.noticeType = res.results.fixedNotificationType.split(',');
|
|
123
|
+
}
|
|
124
|
+
|
|
120
125
|
this.showFlowList = true;
|
|
121
126
|
} else {
|
|
122
127
|
this.$toast(res.msg);
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
<!-- v-if="showMessage" -->
|
|
82
82
|
<Message
|
|
83
83
|
ref="message"
|
|
84
|
-
v-if="showMessage"
|
|
84
|
+
v-if="showMessage && !hideMessage"
|
|
85
85
|
:code="msgCode"
|
|
86
86
|
:baseUrl="baseUrl"
|
|
87
87
|
:readOnlyNotificationType="readOnlyNotificationType"
|
|
@@ -149,6 +149,10 @@ export default {
|
|
|
149
149
|
isAllCheck: {
|
|
150
150
|
type: Boolean,
|
|
151
151
|
default: false
|
|
152
|
+
},
|
|
153
|
+
hideMessage: {
|
|
154
|
+
type: Boolean,
|
|
155
|
+
default: false
|
|
152
156
|
}
|
|
153
157
|
},
|
|
154
158
|
data() {
|
|
@@ -298,7 +302,9 @@ export default {
|
|
|
298
302
|
const { status, message } = res;
|
|
299
303
|
this.$toast.clear();
|
|
300
304
|
if (status === 'success') {
|
|
301
|
-
this.
|
|
305
|
+
if(!this.hideMessage){
|
|
306
|
+
this.infoList.noticeType = message.split(',');
|
|
307
|
+
}
|
|
302
308
|
} else {
|
|
303
309
|
this.$toast(message || '系统错误,请联系管理员!');
|
|
304
310
|
}
|
package/src/index.js
CHANGED
package/src/utils/axios.js
CHANGED
|
@@ -14,7 +14,7 @@ const ajax = (url, params = {}, headers = {}, format = true, type = 'get') => {
|
|
|
14
14
|
withCredentials: false
|
|
15
15
|
});
|
|
16
16
|
http.interceptors.request.use(
|
|
17
|
-
config => {
|
|
17
|
+
(config) => {
|
|
18
18
|
if ((params.params || params) instanceof FormData === false) {
|
|
19
19
|
if (type === 'post' && !format) {
|
|
20
20
|
config.data = qs.stringify(params.params || params);
|
|
@@ -96,12 +96,12 @@ const ajax = (url, params = {}, headers = {}, format = true, type = 'get') => {
|
|
|
96
96
|
}
|
|
97
97
|
return config;
|
|
98
98
|
},
|
|
99
|
-
error => {
|
|
99
|
+
(error) => {
|
|
100
100
|
return Promise.error(error);
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
103
|
http.interceptors.response.use(
|
|
104
|
-
response => {
|
|
104
|
+
(response) => {
|
|
105
105
|
if (response.status === 200) {
|
|
106
106
|
if (response.data.rCode === 64 || response.data.rCode === 27) {
|
|
107
107
|
$.H5TokenInvalid();
|
|
@@ -112,7 +112,7 @@ const ajax = (url, params = {}, headers = {}, format = true, type = 'get') => {
|
|
|
112
112
|
return Promise.reject(response.data);
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
|
-
error => {
|
|
115
|
+
(error) => {
|
|
116
116
|
if (error && error.response) {
|
|
117
117
|
if (error.response.status) {
|
|
118
118
|
switch (error.response.status) {
|