eoss-ui 0.8.37 → 0.8.38
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-ui.common.js +115 -72
- package/lib/flow-group.js +23 -5
- package/lib/flow.js +81 -56
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/flow.vue +52 -36
- package/packages/flow/src/main.vue +11 -8
- package/packages/flow/src/processForm.vue +21 -8
- package/packages/flow/src/startTaskRead.vue +718 -717
- package/packages/flow-group/src/main.vue +756 -750
- package/packages/theme-chalk/gulpfile.js +25 -0
- package/src/index.js +1 -1
- package/packages/theme-chalk/lib/archives.css +0 -1
- package/packages/theme-chalk/lib/base.css +0 -1
- package/packages/theme-chalk/lib/button-group.css +0 -1
- package/packages/theme-chalk/lib/button.css +0 -1
- package/packages/theme-chalk/lib/calendar.css +0 -1
- package/packages/theme-chalk/lib/calogin.css +0 -0
- package/packages/theme-chalk/lib/card.css +0 -1
- package/packages/theme-chalk/lib/cascader.css +0 -0
- package/packages/theme-chalk/lib/checkbox-group.css +0 -1
- package/packages/theme-chalk/lib/clients.css +0 -1
- package/packages/theme-chalk/lib/data-table-form.css +0 -1
- package/packages/theme-chalk/lib/data-table.css +0 -1
- package/packages/theme-chalk/lib/date-picker.css +0 -1
- package/packages/theme-chalk/lib/dialog.css +0 -1
- package/packages/theme-chalk/lib/enable-drag.css +0 -1
- package/packages/theme-chalk/lib/enterprise.css +0 -1
- package/packages/theme-chalk/lib/error-page.css +0 -1
- package/packages/theme-chalk/lib/flow-chart.css +0 -0
- package/packages/theme-chalk/lib/flow-group.css +0 -1
- package/packages/theme-chalk/lib/flow-list.css +0 -1
- package/packages/theme-chalk/lib/flow.css +0 -1
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/form.css +0 -1
- package/packages/theme-chalk/lib/handle-user.css +0 -1
- package/packages/theme-chalk/lib/handler.css +0 -1
- package/packages/theme-chalk/lib/icon.css +0 -1
- package/packages/theme-chalk/lib/icons.css +0 -1
- package/packages/theme-chalk/lib/index.css +0 -1
- package/packages/theme-chalk/lib/input-number.css +0 -0
- package/packages/theme-chalk/lib/input.css +0 -1
- package/packages/theme-chalk/lib/label.css +0 -1
- package/packages/theme-chalk/lib/layout.css +0 -1
- package/packages/theme-chalk/lib/login.css +0 -1
- package/packages/theme-chalk/lib/main.css +0 -1
- package/packages/theme-chalk/lib/menu.css +0 -1
- package/packages/theme-chalk/lib/nav.css +0 -1
- package/packages/theme-chalk/lib/notify.css +0 -0
- package/packages/theme-chalk/lib/page.css +0 -1
- package/packages/theme-chalk/lib/pagination.css +0 -1
- package/packages/theme-chalk/lib/player.css +0 -1
- package/packages/theme-chalk/lib/qr-code.css +0 -1
- package/packages/theme-chalk/lib/radio-group.css +0 -1
- package/packages/theme-chalk/lib/retrial-auth.css +0 -1
- package/packages/theme-chalk/lib/select-ganged.css +0 -1
- package/packages/theme-chalk/lib/select.css +0 -1
- package/packages/theme-chalk/lib/selector-panel.css +0 -1
- package/packages/theme-chalk/lib/selector.css +0 -1
- package/packages/theme-chalk/lib/simplicity-top.css +0 -1
- package/packages/theme-chalk/lib/simplicity.css +0 -1
- package/packages/theme-chalk/lib/sizer.css +0 -1
- package/packages/theme-chalk/lib/steps.css +0 -1
- package/packages/theme-chalk/lib/switch.css +0 -1
- package/packages/theme-chalk/lib/table-form.css +0 -0
- package/packages/theme-chalk/lib/tabs-panel.css +0 -0
- package/packages/theme-chalk/lib/tabs.css +0 -1
- package/packages/theme-chalk/lib/tips.css +0 -1
- package/packages/theme-chalk/lib/toolbar.css +0 -1
- package/packages/theme-chalk/lib/tree-group.css +0 -1
- package/packages/theme-chalk/lib/tree.css +0 -1
- package/packages/theme-chalk/lib/upload.css +0 -1
- package/packages/theme-chalk/lib/wujie.css +0 -0
- package/packages/theme-chalk/lib/wxlogin.css +0 -1
package/package.json
CHANGED
|
@@ -928,8 +928,8 @@
|
|
|
928
928
|
@cancel="closeProcess($event, 'showReject')"
|
|
929
929
|
/>
|
|
930
930
|
<StartTaskRead
|
|
931
|
-
v-else-if="btnType === 'toStartTaskRead'"
|
|
932
|
-
ref="
|
|
931
|
+
v-else-if="btnType === 'toStartTaskRead' || btnType==='toTaskReadAndEnd'"
|
|
932
|
+
:ref="btnType"
|
|
933
933
|
:pending-id="pendingId"
|
|
934
934
|
hideBtn
|
|
935
935
|
class="es-info"
|
|
@@ -2493,22 +2493,24 @@ export default {
|
|
|
2493
2493
|
**/
|
|
2494
2494
|
taskReadBtn(res) {
|
|
2495
2495
|
// return this.$message.warning('暂未开放!敬请期待');
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
this.beforeSubmit
|
|
2499
|
-
.
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2496
|
+
this.btnType=''
|
|
2497
|
+
setTimeout(() => {
|
|
2498
|
+
if (this.beforeSubmit != undefined) {
|
|
2499
|
+
this.beforeSubmit()
|
|
2500
|
+
.then((next) => {
|
|
2501
|
+
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
2502
|
+
this.taskReadType = 'create';
|
|
2503
|
+
// this.showTaskRead = true;
|
|
2504
|
+
this.btnType = this.btnFunValue(res.fun);
|
|
2505
|
+
})
|
|
2506
|
+
.catch((e) => {});
|
|
2507
|
+
} else {
|
|
2508
|
+
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
2509
|
+
this.taskReadType = 'create';
|
|
2510
|
+
// this.showTaskRead = true;
|
|
2511
|
+
this.btnType = this.btnFunValue(res.fun);
|
|
2512
|
+
}
|
|
2513
|
+
}, 0);
|
|
2512
2514
|
},
|
|
2513
2515
|
/**
|
|
2514
2516
|
* getFind
|
|
@@ -2676,6 +2678,8 @@ export default {
|
|
|
2676
2678
|
// 驳回:taskRejectHtml
|
|
2677
2679
|
// 直接办结:endFlowHtml
|
|
2678
2680
|
// 自由发起子流程:toFreeStartFlow
|
|
2681
|
+
|
|
2682
|
+
|
|
2679
2683
|
if (res.type == 4) {
|
|
2680
2684
|
this.$emit(
|
|
2681
2685
|
'buttonClick',
|
|
@@ -2857,19 +2861,25 @@ export default {
|
|
|
2857
2861
|
* @date 2022年9月29日
|
|
2858
2862
|
**/
|
|
2859
2863
|
toTaskReadAndEnd(res) {
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2864
|
+
this.btnType=''
|
|
2865
|
+
setTimeout(() => {
|
|
2866
|
+
if (this.beforeSubmit != undefined) {
|
|
2867
|
+
this.beforeSubmit()
|
|
2868
|
+
.then((next) => {
|
|
2869
|
+
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
2870
|
+
this.taskReadType = 'taskReadAndEnd';
|
|
2871
|
+
this.btnType = this.btnFunValue(res.fun);
|
|
2872
|
+
|
|
2873
|
+
// this.showTaskRead = true;
|
|
2874
|
+
})
|
|
2875
|
+
.catch((e) => {});
|
|
2876
|
+
} else {
|
|
2877
|
+
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
2878
|
+
this.taskReadType = 'taskReadAndEnd';
|
|
2879
|
+
this.btnType = this.btnFunValue(res.fun);
|
|
2880
|
+
// this.showTaskRead = true;
|
|
2881
|
+
}
|
|
2882
|
+
}, 0);
|
|
2873
2883
|
},
|
|
2874
2884
|
/**
|
|
2875
2885
|
* rejectAndEnd
|
|
@@ -3775,7 +3785,13 @@ export default {
|
|
|
3775
3785
|
this.flowSuccess(true);
|
|
3776
3786
|
// this.$emit('success');
|
|
3777
3787
|
} else {
|
|
3778
|
-
|
|
3788
|
+
if(type == 'showTaskRead'){
|
|
3789
|
+
!this.simpleTips && this.$message.success('分阅成功')
|
|
3790
|
+
this.$emit('success','taskRead');
|
|
3791
|
+
}else{
|
|
3792
|
+
this.$emit('cancel');
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3779
3795
|
}
|
|
3780
3796
|
},
|
|
3781
3797
|
/**
|
|
@@ -4246,8 +4262,8 @@ export default {
|
|
|
4246
4262
|
presetUserJson: JSON.stringify(this.presetUserJson),
|
|
4247
4263
|
removeSignUserId,
|
|
4248
4264
|
nextReadUserId: this.readMultiple
|
|
4249
|
-
? this.mixReadList
|
|
4250
|
-
: this.nextNode.nextReadUserId,
|
|
4265
|
+
? this.mixReadList ? this.mixReadList.join('|') : ''
|
|
4266
|
+
: this.nextNode.nextReadUserId.join(','),
|
|
4251
4267
|
nextOrgId: !this.isShowNextUser
|
|
4252
4268
|
? this.multiple
|
|
4253
4269
|
? this.mixOrgIdList && this.mixOrgIdList.join('|')
|
|
@@ -4363,8 +4379,8 @@ export default {
|
|
|
4363
4379
|
presetUserJson: JSON.stringify(this.presetUserJson),
|
|
4364
4380
|
removeSignUserId,
|
|
4365
4381
|
nextReadUserId: this.readMultiple
|
|
4366
|
-
? this.mixReadList
|
|
4367
|
-
|
|
4382
|
+
? this.mixReadList ? this.mixReadList.join('|') : ''
|
|
4383
|
+
: this.nextNode.nextReadUserId.join(','),
|
|
4368
4384
|
nextOrgId: !this.isShowNextUser
|
|
4369
4385
|
? this.multiple
|
|
4370
4386
|
? this.mixOrgIdList && this.mixOrgIdList.join('|')
|
|
@@ -1915,7 +1915,6 @@ export default {
|
|
|
1915
1915
|
}
|
|
1916
1916
|
},
|
|
1917
1917
|
getNodeInfoForStartFlow(processDefinitionId) {
|
|
1918
|
-
console.log('processDefinitionId',processDefinitionId);
|
|
1919
1918
|
let params = {
|
|
1920
1919
|
url: getNodeInfoForStart,
|
|
1921
1920
|
params: { processDefinitionId }
|
|
@@ -1991,8 +1990,13 @@ export default {
|
|
|
1991
1990
|
this.$refs.esContent.scrollTop += this.$refs.messagebox.clientHeight;
|
|
1992
1991
|
});
|
|
1993
1992
|
},
|
|
1994
|
-
handleNewFlowSuccess() {
|
|
1995
|
-
|
|
1993
|
+
handleNewFlowSuccess(type) {
|
|
1994
|
+
if(type == 'taskRead'){
|
|
1995
|
+
this.$emit('successRead',type);
|
|
1996
|
+
|
|
1997
|
+
}else{
|
|
1998
|
+
this.$emit('success');
|
|
1999
|
+
}
|
|
1996
2000
|
},
|
|
1997
2001
|
freeStartFlowSuccess() {
|
|
1998
2002
|
this.showFreeStartFlow = false;
|
|
@@ -2000,7 +2004,6 @@ export default {
|
|
|
2000
2004
|
// this.$emit('success');
|
|
2001
2005
|
},
|
|
2002
2006
|
handleChange(val, isForStartFlow) {
|
|
2003
|
-
console.log('handleChange val', val);
|
|
2004
2007
|
this.getNodeInfoForStartFlow(val, isForStartFlow);
|
|
2005
2008
|
this.$parent.$emit('flowChange', val);
|
|
2006
2009
|
},
|
|
@@ -4143,8 +4146,8 @@ export default {
|
|
|
4143
4146
|
presetUserJson: JSON.stringify(this.presetUserJson),
|
|
4144
4147
|
removeSignUserId,
|
|
4145
4148
|
nextReadUserId: this.readMultiple
|
|
4146
|
-
? this.mixReadList
|
|
4147
|
-
: this.nextNode.nextReadUserId,
|
|
4149
|
+
? this.mixReadList ? this.mixReadList.join('|') : ''
|
|
4150
|
+
: this.nextNode.nextReadUserId.join(','),
|
|
4148
4151
|
nextOrgId: !this.isShowNextUser
|
|
4149
4152
|
? this.multiple
|
|
4150
4153
|
? this.mixOrgIdList && this.mixOrgIdList.join('|')
|
|
@@ -4261,8 +4264,8 @@ export default {
|
|
|
4261
4264
|
presetUserJson: JSON.stringify(this.presetUserJson),
|
|
4262
4265
|
removeSignUserId,
|
|
4263
4266
|
nextReadUserId: this.readMultiple
|
|
4264
|
-
? this.mixReadList
|
|
4265
|
-
: this.nextNode.nextReadUserId,
|
|
4267
|
+
? this.mixReadList ? this.mixReadList.join('|') : ''
|
|
4268
|
+
: this.nextNode.nextReadUserId.join(','),
|
|
4266
4269
|
nextOrgId: !this.isShowNextUser
|
|
4267
4270
|
? this.multiple
|
|
4268
4271
|
? this.mixOrgIdList && this.mixOrgIdList.join('|')
|
|
@@ -1253,17 +1253,24 @@ export default {
|
|
|
1253
1253
|
) {
|
|
1254
1254
|
return this.$message.warning('请选择办理对象');
|
|
1255
1255
|
}
|
|
1256
|
-
if (this.isCustomPreset && this.activeNames == '1'){
|
|
1256
|
+
if (this.isCustomPreset && this.activeNames == '1') {
|
|
1257
1257
|
for (let i = 0; i < this.presetList.length; i++) {
|
|
1258
|
-
if
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1258
|
+
if (
|
|
1259
|
+
this.presetList[i].name &&
|
|
1260
|
+
this.presetList[i].name != '1' &&
|
|
1261
|
+
this.presetList[i].name != 'endEvent' &&
|
|
1262
|
+
(!this.presetList[i].value ||
|
|
1263
|
+
this.presetList[i].value.length == 0)
|
|
1264
|
+
) {
|
|
1265
|
+
return this.$message.warning(
|
|
1266
|
+
`预设节点<节点${this.presetList[i].sequence}-${this.presetList[i].label}>必须选择办理人!`
|
|
1267
|
+
);
|
|
1268
|
+
} else {
|
|
1262
1269
|
delete this.presetList[i].label;
|
|
1263
1270
|
}
|
|
1264
1271
|
}
|
|
1265
1272
|
}
|
|
1266
|
-
|
|
1273
|
+
|
|
1267
1274
|
if (this.isCancelSecondConfirmationType) {
|
|
1268
1275
|
this.$confirm('确认提交吗?', '提示', {
|
|
1269
1276
|
confirmButtonText: '确定',
|
|
@@ -1355,6 +1362,8 @@ export default {
|
|
|
1355
1362
|
|
|
1356
1363
|
newParm.submitTaskParamJson = JSON.stringify(this.taskParams);
|
|
1357
1364
|
if (this.formType == 'readTransfer') {
|
|
1365
|
+
newParm.customPresetUserJson = params.customPresetUserJson;
|
|
1366
|
+
delete params.customPresetUserJson;
|
|
1358
1367
|
newParm.readTransferHandleStartFlowParamJson =
|
|
1359
1368
|
JSON.stringify(params);
|
|
1360
1369
|
newParm.taskReadEndParamJson = JSON.stringify(
|
|
@@ -1493,13 +1502,17 @@ export default {
|
|
|
1493
1502
|
|
|
1494
1503
|
newParm.submitTaskParamJson = JSON.stringify(this.taskParams);
|
|
1495
1504
|
if (this.formType == 'readTransfer') {
|
|
1505
|
+
newParm.customPresetUserJson = params.customPresetUserJson;
|
|
1506
|
+
newParm.taskReadEndParamJson = JSON.stringify(this.taskParams);
|
|
1507
|
+
delete params.customPresetUserJson;
|
|
1496
1508
|
newParm.readTransferHandleStartFlowParamJson =
|
|
1497
1509
|
JSON.stringify(params);
|
|
1498
|
-
|
|
1510
|
+
|
|
1499
1511
|
delete newParm.copyHistory;
|
|
1500
1512
|
delete newParm.startFlowParamJson;
|
|
1501
1513
|
delete newParm.submitTaskParamJson;
|
|
1502
1514
|
}
|
|
1515
|
+
|
|
1503
1516
|
params = newParm;
|
|
1504
1517
|
}
|
|
1505
1518
|
if (this.copyHistory && !this.isFreeStartFlow) {
|
|
@@ -1516,6 +1529,7 @@ export default {
|
|
|
1516
1529
|
? freeStartFlow
|
|
1517
1530
|
: register,
|
|
1518
1531
|
method: 'post',
|
|
1532
|
+
|
|
1519
1533
|
data: params
|
|
1520
1534
|
})
|
|
1521
1535
|
.then((res) => {
|
|
@@ -1820,7 +1834,6 @@ export default {
|
|
|
1820
1834
|
if (pOrgId) {
|
|
1821
1835
|
params.filid = pOrgId;
|
|
1822
1836
|
}
|
|
1823
|
-
|
|
1824
1837
|
}
|
|
1825
1838
|
return { multiple, params };
|
|
1826
1839
|
},
|