eoss-mobiles 0.3.0 → 0.3.2
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 +110 -48
- package/lib/flow.js +109 -47
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/components/Handle.vue +25 -16
- package/packages/flow/src/components/ProcessSettings.vue +12 -6
- package/packages/flow/src/components/StartFlow.vue +18 -13
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -408,8 +408,8 @@
|
|
|
408
408
|
@confirm="onConfirmTimeList"
|
|
409
409
|
/>
|
|
410
410
|
</van-popup>
|
|
411
|
-
|
|
412
|
-
v-if="isCustomPreset"
|
|
411
|
+
<ProcessSetting
|
|
412
|
+
v-if="isCustomPreset && isPreset"
|
|
413
413
|
ref="processSetting"
|
|
414
414
|
:processDefinitionId="taskExamineInfo.processDefinitionId"
|
|
415
415
|
:nodeId="form.nextNodeId"
|
|
@@ -418,10 +418,11 @@
|
|
|
418
418
|
:businessId="taskExamineInfo.businessId"
|
|
419
419
|
:apiBaseUrl="apiBaseUrl"
|
|
420
420
|
:paddingTop="paddingTop"
|
|
421
|
+
:customPresetHintMessage="customPresetHintMessage"
|
|
421
422
|
:choiceOrgId="choiceOrgId"
|
|
422
423
|
:pOrgId="pOrgId"
|
|
423
424
|
:choiceDeptId="choiceDeptId"
|
|
424
|
-
/>
|
|
425
|
+
/>
|
|
425
426
|
<!-- 催办通知方式 -->
|
|
426
427
|
<div class="item-msg item-msg1" v-if="isLimitedTimeHandling">
|
|
427
428
|
<Message
|
|
@@ -511,6 +512,10 @@ export default {
|
|
|
511
512
|
type: Boolean,
|
|
512
513
|
default: false
|
|
513
514
|
},
|
|
515
|
+
isPreset: {
|
|
516
|
+
type: Boolean,
|
|
517
|
+
default: true
|
|
518
|
+
},
|
|
514
519
|
esign: {
|
|
515
520
|
type: Boolean,
|
|
516
521
|
default: false
|
|
@@ -666,6 +671,7 @@ export default {
|
|
|
666
671
|
isEndUserTask: '',
|
|
667
672
|
tagKey: '',
|
|
668
673
|
pOrgId: '',
|
|
674
|
+
customPresetHintMessage:'',
|
|
669
675
|
needRetrialAuth: false
|
|
670
676
|
};
|
|
671
677
|
},
|
|
@@ -915,18 +921,18 @@ export default {
|
|
|
915
921
|
if (this.isMainSubProcess && typeof this.form.mainSubId == 'object') {
|
|
916
922
|
this.form.mainSubId = this.form.mainSubId.value;
|
|
917
923
|
}
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
924
|
+
if (this.isCustomPreset && this.isPreset) {
|
|
925
|
+
if (this.$refs.processSetting.active.length != 0) {
|
|
926
|
+
if(!this.$refs.processSetting.getValue())return
|
|
927
|
+
this.form.customPresetUserJson = this.$refs.processSetting.getValue();
|
|
928
|
+
this.form.isCustomPreset = true;
|
|
929
|
+
this.form.presetUserJson = JSON.stringify([])
|
|
930
|
+
} else {
|
|
931
|
+
delete this.form.customPresetUserJson;
|
|
932
|
+
delete this.form.isCustomPreset;
|
|
933
|
+
delete this.form.presetUserJson;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
930
936
|
this.$toast.loading({
|
|
931
937
|
message: '加载中...',
|
|
932
938
|
forbidClick: true,
|
|
@@ -1106,7 +1112,8 @@ export default {
|
|
|
1106
1112
|
} else {
|
|
1107
1113
|
}
|
|
1108
1114
|
}
|
|
1109
|
-
if (this.nodeList) {
|
|
1115
|
+
if (this.nodeList && this.nodeList.length > 0) {
|
|
1116
|
+
console.log(this.nodeList);
|
|
1110
1117
|
this.form.nextNodeId = this.nodeList[this.nextNodeDefault].nodeId;
|
|
1111
1118
|
this.form.nextNodeName = this.nodeList[this.nextNodeDefault].nodeName;
|
|
1112
1119
|
this.$toast.loading({
|
|
@@ -1252,6 +1259,7 @@ export default {
|
|
|
1252
1259
|
choiceDeptId,
|
|
1253
1260
|
pOrgId,
|
|
1254
1261
|
taskExamine,
|
|
1262
|
+
customPresetHintMessage,
|
|
1255
1263
|
currentOrgName,
|
|
1256
1264
|
notificationMessageReadOnly,
|
|
1257
1265
|
readOnlyNotificationType,
|
|
@@ -1261,6 +1269,7 @@ export default {
|
|
|
1261
1269
|
isCanPreAddSign
|
|
1262
1270
|
}
|
|
1263
1271
|
} = res;
|
|
1272
|
+
that.customPresetHintMessage=customPresetHintMessage
|
|
1264
1273
|
that.currentOrgName = currentOrgName;
|
|
1265
1274
|
that.notificationMessageReadOnly =
|
|
1266
1275
|
notificationMessageReadOnly == 'true';
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="em-flow-setting">
|
|
3
3
|
<van-collapse v-model="active">
|
|
4
|
-
<van-collapse-item title="
|
|
4
|
+
<van-collapse-item :title="customPresetHintMessage || '预设节点信息(折叠不作处理)'" name="1">
|
|
5
5
|
<div
|
|
6
6
|
class="em-flow-setting-item"
|
|
7
7
|
v-for="(item, index) in flowList"
|
|
8
8
|
:key="index"
|
|
9
9
|
>
|
|
10
|
-
<!-- <em-input v-model="name" :label="`节点${index + 1}`" /> -->
|
|
11
10
|
<em-picker
|
|
12
11
|
:title="`节点${index + 1}`"
|
|
13
12
|
:label="`节点${index + 1}`"
|
|
@@ -66,6 +65,10 @@ export default {
|
|
|
66
65
|
type: String,
|
|
67
66
|
default: ''
|
|
68
67
|
},
|
|
68
|
+
customPresetHintMessage: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: ''
|
|
71
|
+
},
|
|
69
72
|
pendingId: {
|
|
70
73
|
type: String,
|
|
71
74
|
default: ''
|
|
@@ -122,7 +125,10 @@ export default {
|
|
|
122
125
|
let PresetData = [];
|
|
123
126
|
let newFlowList = this.flowList.filter((x) => x.nodeId);
|
|
124
127
|
for (let i = 0; i < newFlowList.length; i++) {
|
|
125
|
-
if (
|
|
128
|
+
if (
|
|
129
|
+
newFlowList[i].nextUserSelectList.length == 0 &&
|
|
130
|
+
newFlowList[i].showSelectUser
|
|
131
|
+
) {
|
|
126
132
|
pass = false;
|
|
127
133
|
this.$toast(`请选择节点${i + 1}的办理人`);
|
|
128
134
|
return false;
|
|
@@ -130,15 +136,15 @@ export default {
|
|
|
130
136
|
}
|
|
131
137
|
if (pass) {
|
|
132
138
|
newFlowList.map((x, i) => {
|
|
133
|
-
|
|
134
|
-
name: typeof x.nodeId == 'object'? x.nodeId.nodeId : x.nodeId,
|
|
139
|
+
PresetData.push({
|
|
140
|
+
name: typeof x.nodeId == 'object' ? x.nodeId.nodeId : x.nodeId,
|
|
135
141
|
value: x.nextUserSelectList
|
|
136
142
|
.map((y) => {
|
|
137
143
|
return y.showid;
|
|
138
144
|
})
|
|
139
145
|
.join(','),
|
|
140
146
|
lastName: i == 0 ? this.nodeId : PresetData[i - 1].name,
|
|
141
|
-
sequence: i + 1 +''
|
|
147
|
+
sequence: i + 1 + ''
|
|
142
148
|
});
|
|
143
149
|
});
|
|
144
150
|
}
|
|
@@ -80,10 +80,11 @@
|
|
|
80
80
|
label="办理人"
|
|
81
81
|
/>
|
|
82
82
|
</div>
|
|
83
|
-
|
|
84
|
-
v-if="processObj.isCustomPreset"
|
|
83
|
+
<ProcessSetting
|
|
84
|
+
v-if="processObj.isCustomPreset && isPreset"
|
|
85
85
|
ref="processSetting"
|
|
86
86
|
:processDefinitionId="processObj.processDefinitionId"
|
|
87
|
+
:customPresetHintMessage="processObj.customPresetHintMessage"
|
|
87
88
|
:nodeId="form.nextNodeId"
|
|
88
89
|
:taskId="processObj.taskId"
|
|
89
90
|
:pendingId="processObj.pendingId"
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
:choiceOrgId="orgId"
|
|
94
95
|
:pOrgId="orgId"
|
|
95
96
|
:choiceDeptId="depId"
|
|
96
|
-
/>
|
|
97
|
+
/>
|
|
97
98
|
<!-- 通知方式 -->
|
|
98
99
|
<Message
|
|
99
100
|
ref="message"
|
|
@@ -159,6 +160,10 @@ export default {
|
|
|
159
160
|
type: Boolean,
|
|
160
161
|
default: false
|
|
161
162
|
},
|
|
163
|
+
isPreset: {
|
|
164
|
+
type: Boolean,
|
|
165
|
+
default: true
|
|
166
|
+
},
|
|
162
167
|
esign: {
|
|
163
168
|
type: Boolean,
|
|
164
169
|
default: false
|
|
@@ -312,16 +317,16 @@ export default {
|
|
|
312
317
|
userId: this.userId || $.getStorage('userId'),
|
|
313
318
|
mobileKey: $.getStorage('deviceId') || '123'
|
|
314
319
|
};
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
320
|
+
if (this.processObj.isCustomPreset && this.isPreset) {
|
|
321
|
+
if (this.$refs.processSetting.active.length != 0) {
|
|
322
|
+
if(!this.$refs.processSetting.getValue())return
|
|
323
|
+
info.customPresetUserJson = this.$refs.processSetting.getValue();
|
|
324
|
+
info.isCustomPreset = true;
|
|
325
|
+
} else {
|
|
326
|
+
delete info.customPresetUserJson;
|
|
327
|
+
delete info.isCustomPreset;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
325
330
|
if (this.beforeSubmit) {
|
|
326
331
|
this.beforeSubmit(info);
|
|
327
332
|
return;
|