eoss-mobiles 0.2.66 → 0.2.68
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/checkbox.js +37 -4
- package/lib/eoss-mobile.common.js +928 -841
- package/lib/flow.js +884 -830
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/checkbox/src/main.vue +31 -8
- package/packages/flow/src/components/Handle.vue +4 -1
- package/packages/flow/src/components/Reject.vue +1 -0
- package/packages/flow/src/components/StartFlow.vue +2 -1
- package/packages/flow/src/components/TaskRead.vue +7 -3
- package/packages/flow/src/components/taskUnionExamine.vue +41 -33
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -15,10 +15,14 @@
|
|
|
15
15
|
v-bind="exclAttribute({ data: item, attrs: 'checkedColor' })"
|
|
16
16
|
v-on="$listeners"
|
|
17
17
|
:disabled="item.disabled"
|
|
18
|
-
:
|
|
18
|
+
:label-disabled="item.labelDisabled || labelDisabled"
|
|
19
|
+
:label-position="item.labelPosition || labelPosition"
|
|
20
|
+
:shape="item.shape || shape"
|
|
21
|
+
:checked-color="item.checkedColor || checkedColor"
|
|
22
|
+
:icon-size="item.iconSize || iconSize"
|
|
19
23
|
:name="item[valueKey]"
|
|
20
|
-
|
|
21
|
-
<span v-html="item[labelKey]"></span>
|
|
24
|
+
>
|
|
25
|
+
<span v-html="item[labelKey]"></span>
|
|
22
26
|
<slot
|
|
23
27
|
slot="icon"
|
|
24
28
|
:checked="newValue.indexOf(item[valueKey]) != -1"
|
|
@@ -31,7 +35,11 @@
|
|
|
31
35
|
v-bind="$attrs"
|
|
32
36
|
v-model="newValue"
|
|
33
37
|
v-on="$listeners"
|
|
38
|
+
:label-disabled="labelDisabled"
|
|
39
|
+
:label-position="labelPosition"
|
|
40
|
+
:shape="shape"
|
|
34
41
|
:checked-color="checkedColor"
|
|
42
|
+
:icon-size="iconSize"
|
|
35
43
|
:disabled="disabled"
|
|
36
44
|
:name="$attrs[valueKey]"
|
|
37
45
|
>{{ $attrs.name }}
|
|
@@ -42,7 +50,7 @@
|
|
|
42
50
|
<script>
|
|
43
51
|
import { findSysCode } from '../../../src/config/api';
|
|
44
52
|
import request from '../../../src/utils/http.js';
|
|
45
|
-
import util from '../../../src/utils/util'
|
|
53
|
+
import util from '../../../src/utils/util';
|
|
46
54
|
export default {
|
|
47
55
|
name: 'EmCheckboxGroup',
|
|
48
56
|
inheritAttrs: false,
|
|
@@ -52,7 +60,7 @@ export default {
|
|
|
52
60
|
};
|
|
53
61
|
},
|
|
54
62
|
props: {
|
|
55
|
-
checkedColor:String,
|
|
63
|
+
checkedColor: String,
|
|
56
64
|
disabled: {
|
|
57
65
|
type: Boolean,
|
|
58
66
|
default: false
|
|
@@ -61,6 +69,22 @@ export default {
|
|
|
61
69
|
type: [Array, Boolean],
|
|
62
70
|
default: () => []
|
|
63
71
|
},
|
|
72
|
+
labelDisabled: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: false
|
|
75
|
+
},
|
|
76
|
+
shape: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: 'round'
|
|
79
|
+
},
|
|
80
|
+
iconSize: {
|
|
81
|
+
type: [String, Number],
|
|
82
|
+
default: '20px'
|
|
83
|
+
},
|
|
84
|
+
labelPosition: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: 'right'
|
|
87
|
+
},
|
|
64
88
|
data: {
|
|
65
89
|
type: Array,
|
|
66
90
|
default: () => []
|
|
@@ -100,8 +124,7 @@ export default {
|
|
|
100
124
|
allowHtml: {
|
|
101
125
|
type: Boolean,
|
|
102
126
|
default: false
|
|
103
|
-
}
|
|
104
|
-
|
|
127
|
+
}
|
|
105
128
|
},
|
|
106
129
|
computed: {
|
|
107
130
|
newValue: {
|
|
@@ -134,7 +157,7 @@ export default {
|
|
|
134
157
|
}
|
|
135
158
|
},
|
|
136
159
|
methods: {
|
|
137
|
-
|
|
160
|
+
exclAttribute({ data, attrs }) {
|
|
138
161
|
return util.exclAttribute({ data, attrs });
|
|
139
162
|
},
|
|
140
163
|
handleChange() {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<!-- 审核内容 -->
|
|
33
33
|
<div
|
|
34
34
|
class="special-box input-box"
|
|
35
|
-
v-if="
|
|
35
|
+
v-if=" typeCode != 'fenyue'"
|
|
36
36
|
>
|
|
37
37
|
<!-- 加签 -->
|
|
38
38
|
<div
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
</template>
|
|
88
88
|
</em-input>
|
|
89
89
|
</div>
|
|
90
|
+
<div v-if="isSpecial && typeCode != 'fenyue'">
|
|
90
91
|
<div
|
|
91
92
|
class="item item-user"
|
|
92
93
|
label="减少办理人"
|
|
@@ -415,6 +416,7 @@
|
|
|
415
416
|
></Message>
|
|
416
417
|
</div>
|
|
417
418
|
</div>
|
|
419
|
+
</div>
|
|
418
420
|
</div>
|
|
419
421
|
<div v-if="isSubmitButtonShowAgreeAndDisagree" class="btn-list">
|
|
420
422
|
<div class="btn" @click="handleFlow = false">不同意</div>
|
|
@@ -892,6 +894,7 @@ export default {
|
|
|
892
894
|
_that.form.isSubFlow = taskExamineInfo.isSubFlow;
|
|
893
895
|
_that.form.nodeId = taskExamineInfo.nodeId;
|
|
894
896
|
_that.form.userId = _that.userId || $.getStorage('userId');
|
|
897
|
+
_that.form.mobileKey = $.getStorage('deviceId') || '123'
|
|
895
898
|
_that.form.nextNodeId =
|
|
896
899
|
_that.form.nextOperate == 0 || _that.form.nextOperate == 1
|
|
897
900
|
? _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode
|
|
@@ -139,6 +139,7 @@ export default {
|
|
|
139
139
|
this.beforeSubmit({ pendingId: this.pendingId, ...this.form });
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
+
this.form.mobileKey = $.getStorage('deviceId') || '123'
|
|
142
143
|
let formData = new FormData();
|
|
143
144
|
if (this.form.isImageOpinion == 1) {
|
|
144
145
|
formData.append('file', this.file);
|
|
@@ -288,7 +288,8 @@ export default {
|
|
|
288
288
|
notificationMsg: this.form.notificationMsg,
|
|
289
289
|
loginType: 2, //登录方式
|
|
290
290
|
isImageOpinion: this.form.isImageOpinion,
|
|
291
|
-
userId: this.userId || $.getStorage('userId')
|
|
291
|
+
userId: this.userId || $.getStorage('userId'),
|
|
292
|
+
mobileKey:$.getStorage('deviceId') || '123',
|
|
292
293
|
};
|
|
293
294
|
if (this.beforeSubmit) {
|
|
294
295
|
this.beforeSubmit(info);
|
|
@@ -215,7 +215,8 @@ export default {
|
|
|
215
215
|
pendingId,
|
|
216
216
|
isSubFlow: taskExamine.isSubFlow,
|
|
217
217
|
isSinglePage: taskExamine.isSinglePage,
|
|
218
|
-
userId: this.userId
|
|
218
|
+
userId: this.userId,
|
|
219
|
+
mobileKey:util.getStorage('deviceId') || '123'
|
|
219
220
|
}
|
|
220
221
|
};
|
|
221
222
|
request(params)
|
|
@@ -280,7 +281,8 @@ export default {
|
|
|
280
281
|
let params = {
|
|
281
282
|
pendingId: this.pendingId,
|
|
282
283
|
taskAction: _that.newType,
|
|
283
|
-
userId: _that.userId
|
|
284
|
+
userId: _that.userId,
|
|
285
|
+
mobileKey:util.getStorage('deviceId') || '123'
|
|
284
286
|
};
|
|
285
287
|
if (_that.newType != 'taskReadAndEnd') delete params.taskAction;
|
|
286
288
|
|
|
@@ -335,7 +337,8 @@ export default {
|
|
|
335
337
|
isImageOpinion: 0,
|
|
336
338
|
loginType: 2,
|
|
337
339
|
taskAction: this.type,
|
|
338
|
-
userId: _that.userId
|
|
340
|
+
userId: _that.userId,
|
|
341
|
+
mobileKey:util.getStorage('deviceId') || '123'
|
|
339
342
|
}
|
|
340
343
|
};
|
|
341
344
|
if (this.beforeSubmit) {
|
|
@@ -424,6 +427,7 @@ export default {
|
|
|
424
427
|
choiceOrgId,
|
|
425
428
|
businessName,
|
|
426
429
|
processDefinitionId,
|
|
430
|
+
mobileKey:util.getStorage('deviceId') || '123',
|
|
427
431
|
bCode,
|
|
428
432
|
bName,
|
|
429
433
|
loginType: 2,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
</div>
|
|
8
8
|
<Opinion
|
|
9
9
|
@onInputOpintion="onInputOpintion"
|
|
10
|
-
|
|
10
|
+
:esign="esign"
|
|
11
11
|
:baseUrl="baseUrl"
|
|
12
12
|
></Opinion>
|
|
13
13
|
<div class="input-box">
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
import request from '../../../../src/utils/http.js';
|
|
102
102
|
import Opinion from './Opinion.vue';
|
|
103
103
|
import Message from './Message.vue';
|
|
104
|
-
import $ from '../../../../src/utils/util'
|
|
104
|
+
import $ from '../../../../src/utils/util';
|
|
105
105
|
export default {
|
|
106
106
|
name: 'TaskUnionExamine',
|
|
107
107
|
props: {
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
112
112
|
inevitableNode: { type: String, default: '' },
|
|
113
113
|
appId: { type: String, default: '' },
|
|
114
114
|
defaultOpinion: { type: String, default: '' },
|
|
115
|
-
userId:{type:String,default:''},
|
|
115
|
+
userId: { type: String, default: '' },
|
|
116
116
|
// disabled: { type: Boolean, default: false },
|
|
117
117
|
// multiple: { type: Boolean, default: true },
|
|
118
118
|
baseUrl: { type: String, default: '' },
|
|
@@ -125,16 +125,16 @@ export default {
|
|
|
125
125
|
type: Boolean,
|
|
126
126
|
default: false
|
|
127
127
|
},
|
|
128
|
-
isAllCheck:{
|
|
129
|
-
type:Boolean,
|
|
130
|
-
default:false
|
|
128
|
+
isAllCheck: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
default: false
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
data() {
|
|
134
134
|
return {
|
|
135
135
|
opinion: '', //办理意见
|
|
136
|
-
isImageOpinion:0,
|
|
137
|
-
file:'',
|
|
136
|
+
isImageOpinion: 0,
|
|
137
|
+
file: '',
|
|
138
138
|
infoList: {
|
|
139
139
|
nextOtherOrgObj: [],
|
|
140
140
|
nextCurrentOrgObj: [],
|
|
@@ -197,7 +197,7 @@ export default {
|
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
199
|
methods: {
|
|
200
|
-
|
|
200
|
+
onInputOpintion(val) {
|
|
201
201
|
const { opinion, isImageOpinion, file } = val;
|
|
202
202
|
this.opinion = opinion;
|
|
203
203
|
this.isImageOpinion = isImageOpinion;
|
|
@@ -327,7 +327,7 @@ export default {
|
|
|
327
327
|
: this.type == 'twoOfficesDispatch'
|
|
328
328
|
? toTwoOfficesDispatch
|
|
329
329
|
: toTaskUnionExamine,
|
|
330
|
-
params: { pendingId: this.pendingId,userId: this.userId },
|
|
330
|
+
params: { pendingId: this.pendingId, userId: this.userId },
|
|
331
331
|
headers: { Accept: 'application/json,text/plain' }
|
|
332
332
|
};
|
|
333
333
|
this.$toast.loading({
|
|
@@ -434,16 +434,24 @@ export default {
|
|
|
434
434
|
isSubFlow,
|
|
435
435
|
pendingId
|
|
436
436
|
} = this;
|
|
437
|
-
|
|
437
|
+
if (
|
|
438
|
+
(isOpinionRequired == 1 && !opinion && isImageOpinion == 0) ||
|
|
439
|
+
(isOpinionRequired == 1 && isImageOpinion == 1 && !file)
|
|
440
|
+
) {
|
|
438
441
|
return this.$toast('当前步骤必须输入意见!');
|
|
439
442
|
}
|
|
440
443
|
if (
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
+
(type == 'takeAdvice' &&
|
|
445
|
+
isHideCurrentOrg == 0 &&
|
|
446
|
+
(!nextCurrentOrgObj || nextCurrentOrgObj.length == 0) &&
|
|
447
|
+
(isHideOtherOrg == 0 &&
|
|
448
|
+
(!nextOtherOrgObj || nextOtherOrgObj.length == 0))) ||
|
|
449
|
+
(type != 'takeAdvice' &&
|
|
450
|
+
isHideOtherOrg == 0 &&
|
|
451
|
+
(!nextOtherOrgObj || nextOtherOrgObj.length == 0))
|
|
444
452
|
) {
|
|
445
453
|
return this.$toast('请选择处理对象!');
|
|
446
|
-
}
|
|
454
|
+
}
|
|
447
455
|
// else if (
|
|
448
456
|
// isHideCurrentOrg == 0 &&
|
|
449
457
|
// (nextOtherOrgObj == '' || nextOtherOrgObj == null)
|
|
@@ -451,22 +459,23 @@ export default {
|
|
|
451
459
|
// return this.$toast('请选择处理对象!');
|
|
452
460
|
// }
|
|
453
461
|
let info = {
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
462
|
+
opinion,
|
|
463
|
+
pendingId,
|
|
464
|
+
nextOtherOrgObj: Array.isArray(nextOtherOrgObj)
|
|
465
|
+
? nextOtherOrgObj.join(',')
|
|
466
|
+
: nextOtherOrgObj,
|
|
467
|
+
nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj)
|
|
468
|
+
? nextCurrentOrgObj.join(',')
|
|
469
|
+
: nextCurrentOrgObj,
|
|
470
|
+
notificationMsg: noticeInfo,
|
|
471
|
+
notificationType: noticeType.join(','),
|
|
472
|
+
choiceDeptId,
|
|
473
|
+
isSubFlow,
|
|
474
|
+
choiceOrgId,
|
|
475
|
+
userId: this.userId || $.getStorage('userId'),
|
|
476
|
+
mobileKey: $.getStorage('deviceId') || '123'
|
|
477
|
+
};
|
|
478
|
+
let formData = new FormData();
|
|
470
479
|
if (isImageOpinion == 1) {
|
|
471
480
|
formData.append('file', file);
|
|
472
481
|
}
|
|
@@ -492,8 +501,7 @@ export default {
|
|
|
492
501
|
params: formData,
|
|
493
502
|
headers: { Accept: 'application/json,text/plain' },
|
|
494
503
|
type: 'post',
|
|
495
|
-
format:false
|
|
496
|
-
|
|
504
|
+
format: false
|
|
497
505
|
};
|
|
498
506
|
this.$toast.loading({
|
|
499
507
|
message: '加载中...',
|