eoss-mobiles 0.3.76 → 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 +241 -145
- package/lib/flow.js +240 -144
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/components/Handle.vue +22 -4
- package/packages/flow/src/components/Reject.vue +9 -2
- package/packages/flow/src/components/StartFlow.vue +17 -5
- 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>
|
|
@@ -308,6 +312,7 @@
|
|
|
308
312
|
@change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
|
|
309
313
|
/>
|
|
310
314
|
</div>
|
|
315
|
+
<!-- :nextUserList="nextUserList" -->
|
|
311
316
|
<!-- 外单位 -->
|
|
312
317
|
<!-- v-if="isHideOtherOrg" -->
|
|
313
318
|
<div class="item" v-if="isHideOtherOrg">
|
|
@@ -536,6 +541,8 @@
|
|
|
536
541
|
ref="processSetting"
|
|
537
542
|
:processDefinitionId="taskExamineInfo.processDefinitionId"
|
|
538
543
|
:nodeId="form.nextNodeId"
|
|
544
|
+
:hideMessage="hideMessage"
|
|
545
|
+
:flowLabelConfig="flowLabelConfig"
|
|
539
546
|
:taskId="processObj.taskExamine.taskId"
|
|
540
547
|
:pendingId="pendingId"
|
|
541
548
|
:businessId="taskExamineInfo.businessId"
|
|
@@ -561,7 +568,7 @@
|
|
|
561
568
|
</div>
|
|
562
569
|
|
|
563
570
|
<!-- 通知方式 -->
|
|
564
|
-
<div class="item-msg item-msg2">
|
|
571
|
+
<div class="item-msg item-msg2" v-if="!hideMessage">
|
|
565
572
|
<Message
|
|
566
573
|
ref="message"
|
|
567
574
|
:code="msgCode"
|
|
@@ -593,6 +600,8 @@
|
|
|
593
600
|
v-else
|
|
594
601
|
:pendingId="pendingId"
|
|
595
602
|
:before-submit="beforeSubmit"
|
|
603
|
+
:hideMessage="hideMessage"
|
|
604
|
+
:flowLabelConfig="flowLabelConfig"
|
|
596
605
|
@close="handleFlow = true"
|
|
597
606
|
/>
|
|
598
607
|
<em-popup class="em-flow-popup" v-model="showDefList">
|
|
@@ -689,6 +698,14 @@ export default {
|
|
|
689
698
|
selectorParams: {
|
|
690
699
|
type: Object,
|
|
691
700
|
default: () => {}
|
|
701
|
+
},
|
|
702
|
+
flowLabelConfig: {
|
|
703
|
+
type: Object,
|
|
704
|
+
default: () => ({})
|
|
705
|
+
},
|
|
706
|
+
hideMessage: {
|
|
707
|
+
type: Boolean,
|
|
708
|
+
default: false
|
|
692
709
|
}
|
|
693
710
|
},
|
|
694
711
|
data() {
|
|
@@ -1143,7 +1160,7 @@ export default {
|
|
|
1143
1160
|
this.form.isAddSign != '1' &&
|
|
1144
1161
|
!this.isReject
|
|
1145
1162
|
) {
|
|
1146
|
-
this.$toast('
|
|
1163
|
+
this.$toast(`请选择${this.flowLabelConfig.nextUser || '办理人'}`);
|
|
1147
1164
|
return;
|
|
1148
1165
|
}
|
|
1149
1166
|
// if (this.form.isAddSign == '1' && !this.form.addSignUserId) {
|
|
@@ -1742,6 +1759,7 @@ export default {
|
|
|
1742
1759
|
that.form.isSerialSubmit = taskExamine.isSerialSubmit;
|
|
1743
1760
|
that.form.notificationMsg = defaultNotificationMessage;
|
|
1744
1761
|
defaultNotificationType &&
|
|
1762
|
+
!that.hideMessage &&
|
|
1745
1763
|
(that.defaultNotificationType =
|
|
1746
1764
|
defaultNotificationType.split(','));
|
|
1747
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) {
|
|
@@ -547,9 +556,12 @@ export default {
|
|
|
547
556
|
info.businessId = this.businessId; //this.businessId
|
|
548
557
|
}
|
|
549
558
|
if (this.beforeSubmit) {
|
|
550
|
-
this.beforeSubmit(info);
|
|
559
|
+
this.beforeSubmit(info,this.sendData);
|
|
551
560
|
return;
|
|
552
561
|
}
|
|
562
|
+
this.sendData(info);
|
|
563
|
+
},
|
|
564
|
+
sendData(info){
|
|
553
565
|
let formData = new FormData();
|
|
554
566
|
// if (this.form.isImageOpinion == 1) {
|
|
555
567
|
// formData.append('file', this.file);
|
|
@@ -788,7 +800,7 @@ export default {
|
|
|
788
800
|
let defaultNotificationTypes = [];
|
|
789
801
|
if (
|
|
790
802
|
res.results.notificationTypes &&
|
|
791
|
-
that.defaultNotificationType.length == 0
|
|
803
|
+
that.defaultNotificationType.length == 0 && !that.hideMessage
|
|
792
804
|
) {
|
|
793
805
|
defaultNotificationTypes = res.results.notificationTypes.filter(
|
|
794
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) {
|