eoss-mobiles 0.3.63 → 0.3.64
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 +37 -16
- package/lib/flow.js +36 -15
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/components/Handle.vue +61 -35
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -50,7 +50,10 @@
|
|
|
50
50
|
:isHiddenOftenOpinion="isHiddenOftenOpinion == 1 ? false : true"
|
|
51
51
|
></Opinion>
|
|
52
52
|
<!-- 审核内容 -->
|
|
53
|
-
<div
|
|
53
|
+
<div
|
|
54
|
+
class="special-box input-box"
|
|
55
|
+
v-if="typeCode != 'fenyue' && (!endFlow || taskOperations.length>1 || taskOperationShiftedNodeList)"
|
|
56
|
+
>
|
|
54
57
|
<!-- 加签 -->
|
|
55
58
|
<div
|
|
56
59
|
class="item"
|
|
@@ -399,7 +402,8 @@
|
|
|
399
402
|
<div
|
|
400
403
|
class="item"
|
|
401
404
|
v-if="
|
|
402
|
-
currentNodeEnableItemHandleDescription &&
|
|
405
|
+
currentNodeEnableItemHandleDescription &&
|
|
406
|
+
nodeList &&
|
|
403
407
|
nodeList.length != 0 &&
|
|
404
408
|
isShowNode &&
|
|
405
409
|
isNextUser
|
|
@@ -564,7 +568,10 @@
|
|
|
564
568
|
</div>
|
|
565
569
|
</div>
|
|
566
570
|
</div>
|
|
567
|
-
<div
|
|
571
|
+
<div
|
|
572
|
+
v-if="isSubmitButtonShowAgreeAndDisagree && showFlowBtn"
|
|
573
|
+
class="btn-list"
|
|
574
|
+
>
|
|
568
575
|
<div class="btn" @click="handleFlow = false">不同意</div>
|
|
569
576
|
<div class="btn" @click="onSubmit()">同意</div>
|
|
570
577
|
</div>
|
|
@@ -666,7 +673,7 @@ export default {
|
|
|
666
673
|
type: String,
|
|
667
674
|
default: ''
|
|
668
675
|
},
|
|
669
|
-
selectorParams:{
|
|
676
|
+
selectorParams: {
|
|
670
677
|
type: Object,
|
|
671
678
|
default: () => {}
|
|
672
679
|
}
|
|
@@ -677,8 +684,8 @@ export default {
|
|
|
677
684
|
{ name: '前置加签', value: 'preAddSign' },
|
|
678
685
|
{ name: '后置加签', value: 'postAddSign' }
|
|
679
686
|
],
|
|
680
|
-
showFlowBtn:false,
|
|
681
|
-
endFlow:false,
|
|
687
|
+
showFlowBtn: false,
|
|
688
|
+
endFlow: false,
|
|
682
689
|
currentOrgSelectorParams: {},
|
|
683
690
|
currentOrgSelectorTabs: 'employee, persongroup',
|
|
684
691
|
foreignOrgSelectorTabs: 'enterprise,filgroupobj',
|
|
@@ -1357,9 +1364,7 @@ export default {
|
|
|
1357
1364
|
},
|
|
1358
1365
|
// 切换下一步操作
|
|
1359
1366
|
changeNextOperate(val, isDef) {
|
|
1360
|
-
console.log(val,isDef,this.tagKey,'isDef')
|
|
1361
1367
|
if (!isDef && val.key === this.tagKey) return;
|
|
1362
|
-
console.log(val,isDef,this.tagKey,'isDef2222')
|
|
1363
1368
|
this.tagKey = val.key;
|
|
1364
1369
|
//恢复默认
|
|
1365
1370
|
this.isNextUser = false;
|
|
@@ -1383,13 +1388,13 @@ export default {
|
|
|
1383
1388
|
} else {
|
|
1384
1389
|
this.isReject = false;
|
|
1385
1390
|
}
|
|
1386
|
-
this.form.nextOperate = val.key;
|
|
1391
|
+
this.form.nextOperate = val.isNextNode? val.nextOperate:val.key;
|
|
1387
1392
|
this.form.nextOperateName = val.value;
|
|
1388
1393
|
this.nodeList = val.taskNodeList;
|
|
1389
1394
|
if (this.isSpecial) {
|
|
1390
1395
|
if (val.key == -1) {
|
|
1391
1396
|
this.form.isSerialSubmit = 1;
|
|
1392
|
-
this.showFlowBtn = true
|
|
1397
|
+
this.showFlowBtn = true;
|
|
1393
1398
|
return;
|
|
1394
1399
|
} else if (val.key == 0) {
|
|
1395
1400
|
this.isNextUser = true;
|
|
@@ -1399,35 +1404,35 @@ export default {
|
|
|
1399
1404
|
this.isShowNode = true;
|
|
1400
1405
|
} else if (val.key == 2) {
|
|
1401
1406
|
this.form.isReturnSubmitter = 1;
|
|
1402
|
-
this.showFlowBtn = true
|
|
1407
|
+
this.showFlowBtn = true;
|
|
1403
1408
|
return;
|
|
1404
1409
|
} else if (val.key == 3) {
|
|
1405
1410
|
this.form.isUndertakeReply = 1;
|
|
1406
|
-
this.showFlowBtn = true
|
|
1411
|
+
this.showFlowBtn = true;
|
|
1407
1412
|
return;
|
|
1408
1413
|
} else if (val.key == 4) {
|
|
1409
1414
|
this.form.isTakeAdviceReply = 1;
|
|
1410
|
-
this.showFlowBtn = true
|
|
1415
|
+
this.showFlowBtn = true;
|
|
1411
1416
|
return;
|
|
1412
1417
|
} else if (val.key == 5) {
|
|
1413
1418
|
this.form.isUndertakeEnd = 1;
|
|
1414
|
-
this.showFlowBtn = true
|
|
1419
|
+
this.showFlowBtn = true;
|
|
1415
1420
|
return;
|
|
1416
1421
|
} else if (val.key == 6) {
|
|
1417
1422
|
this.form.isTakeAdviceEnd = 1;
|
|
1418
|
-
this.showFlowBtn = true
|
|
1423
|
+
this.showFlowBtn = true;
|
|
1419
1424
|
return;
|
|
1420
1425
|
} else if (val.key == 7) {
|
|
1421
1426
|
this.form.isReadDealReply = 1;
|
|
1422
|
-
this.showFlowBtn = true
|
|
1427
|
+
this.showFlowBtn = true;
|
|
1423
1428
|
return;
|
|
1424
1429
|
} else if (val.key == 8) {
|
|
1425
1430
|
this.form.isReadDealEnd = 1;
|
|
1426
|
-
this.showFlowBtn = true
|
|
1431
|
+
this.showFlowBtn = true;
|
|
1427
1432
|
return;
|
|
1428
1433
|
} else if (val.key == 9) {
|
|
1429
1434
|
this.form.isReturnRejectNode = 1;
|
|
1430
|
-
this.showFlowBtn = true
|
|
1435
|
+
this.showFlowBtn = true;
|
|
1431
1436
|
return;
|
|
1432
1437
|
} else {
|
|
1433
1438
|
}
|
|
@@ -1455,8 +1460,8 @@ export default {
|
|
|
1455
1460
|
});
|
|
1456
1461
|
|
|
1457
1462
|
this.getNodeObj(this.form.nextNodeId);
|
|
1458
|
-
}else{
|
|
1459
|
-
|
|
1463
|
+
} else {
|
|
1464
|
+
this.showFlowBtn = true;
|
|
1460
1465
|
}
|
|
1461
1466
|
if (this.nodeList && this.nodeList.length > 0) {
|
|
1462
1467
|
let defNode = this.nodeList.filter(
|
|
@@ -1479,8 +1484,8 @@ export default {
|
|
|
1479
1484
|
});
|
|
1480
1485
|
|
|
1481
1486
|
if (isDef !== true) this.getNodeObj(this.form.nextNodeId);
|
|
1482
|
-
}else{
|
|
1483
|
-
this.showFlowBtn = true
|
|
1487
|
+
} else {
|
|
1488
|
+
this.showFlowBtn = true;
|
|
1484
1489
|
}
|
|
1485
1490
|
|
|
1486
1491
|
this.showNextOperate = false;
|
|
@@ -1645,7 +1650,7 @@ export default {
|
|
|
1645
1650
|
currentOrgparams[i] == 'my'
|
|
1646
1651
|
? choiceOrgId
|
|
1647
1652
|
: currentOrgparams[i],
|
|
1648
|
-
only_filid:true
|
|
1653
|
+
only_filid: true
|
|
1649
1654
|
};
|
|
1650
1655
|
});
|
|
1651
1656
|
that.currentOrgSelectorTabs =
|
|
@@ -1661,10 +1666,16 @@ export default {
|
|
|
1661
1666
|
pid:
|
|
1662
1667
|
foreignOrgparams[i] == 'my'
|
|
1663
1668
|
? choiceOrgId
|
|
1664
|
-
: foreignOrgparams[i] == 'other' ||
|
|
1669
|
+
: foreignOrgparams[i] == 'other' ||
|
|
1670
|
+
foreignOrgparams[i] == 'nofilidorg'
|
|
1665
1671
|
? 'root'
|
|
1666
1672
|
: foreignOrgparams[i],
|
|
1667
|
-
nofilid:
|
|
1673
|
+
nofilid:
|
|
1674
|
+
foreignOrgparams[i] == 'nofilidorg'
|
|
1675
|
+
? that.orgId || JSON.parse($.getStorage('userInfo')).orgId
|
|
1676
|
+
: foreignOrgparams[i] == 'other'
|
|
1677
|
+
? 1
|
|
1678
|
+
: 0,
|
|
1668
1679
|
myUserid: x == 'filgroup' ? $.getStorage('userId') : '',
|
|
1669
1680
|
...that.selectorParams
|
|
1670
1681
|
};
|
|
@@ -1732,17 +1743,31 @@ export default {
|
|
|
1732
1743
|
let isSelected = false;
|
|
1733
1744
|
that.taskOperations.map((item) => {
|
|
1734
1745
|
if (item.isSelected || that.taskOperations.length == 1) {
|
|
1746
|
+
|
|
1735
1747
|
isSelected = true;
|
|
1736
1748
|
if (that.taskOperations.length == 1) {
|
|
1737
|
-
|
|
1749
|
+
|
|
1750
|
+
if (that.taskOperations[0].isNextNode) {
|
|
1751
|
+
|
|
1752
|
+
that.form.nextOperate =
|
|
1753
|
+
that.taskOperations[0].nextOperate;
|
|
1754
|
+
} else {
|
|
1755
|
+
that.form.nextOperate = that.taskOperations[0].key;
|
|
1756
|
+
}
|
|
1738
1757
|
that.form.nextOperateName = that.taskOperations[0].value;
|
|
1739
1758
|
if (
|
|
1740
|
-
|
|
1741
|
-
that.taskOperations[0].taskNodeList.length === 0
|
|
1759
|
+
( !that.taskOperations[0].taskNodeList ||
|
|
1760
|
+
(that.taskOperations[0].taskNodeList.length === 0)) &&
|
|
1761
|
+
!that.taskOperations[0].isNextNode
|
|
1742
1762
|
) {
|
|
1763
|
+
|
|
1743
1764
|
that.form.nextNodeId = undefined;
|
|
1744
1765
|
that.form.nextNodeName = undefined;
|
|
1766
|
+
} else if (that.taskOperations[0].isNextNode) {
|
|
1767
|
+
that.form.nextNodeId = that.taskOperations[0].key;
|
|
1768
|
+
that.form.nextNodeName = that.taskOperations[0].value;
|
|
1745
1769
|
} else {
|
|
1770
|
+
|
|
1746
1771
|
that.nodeList = that.taskOperations[0].taskNodeList;
|
|
1747
1772
|
let info = [];
|
|
1748
1773
|
that.nodeList.map((x) => {
|
|
@@ -1811,7 +1836,9 @@ export default {
|
|
|
1811
1836
|
that.changeNextOperate(
|
|
1812
1837
|
{
|
|
1813
1838
|
value: that.form.nextOperateName,
|
|
1814
|
-
key: that.
|
|
1839
|
+
key: that.taskOperations[0].key,
|
|
1840
|
+
nextOperate: that.taskOperations[0].nextOperate,
|
|
1841
|
+
isNextNode:that.taskOperations[0].isNextNode,
|
|
1815
1842
|
taskNodeList: that.nodeList
|
|
1816
1843
|
},
|
|
1817
1844
|
true
|
|
@@ -1895,7 +1922,7 @@ export default {
|
|
|
1895
1922
|
message,
|
|
1896
1923
|
data: { isCanFenyue, taskExamine, taskReadOpinionRequired }
|
|
1897
1924
|
} = res;
|
|
1898
|
-
this.showFlowBtn = true
|
|
1925
|
+
this.showFlowBtn = true;
|
|
1899
1926
|
if (status === 'success') {
|
|
1900
1927
|
this.taskExamineInfo = taskExamine;
|
|
1901
1928
|
this.isCanFenyue = isCanFenyue;
|
|
@@ -1910,8 +1937,8 @@ export default {
|
|
|
1910
1937
|
})
|
|
1911
1938
|
.catch((err) => {
|
|
1912
1939
|
this.$toast.clear();
|
|
1913
|
-
|
|
1914
|
-
this.showFlowBtn = true
|
|
1940
|
+
|
|
1941
|
+
this.showFlowBtn = true;
|
|
1915
1942
|
if (err.message && err.message !== 'canceled') {
|
|
1916
1943
|
this.$toast(err.message);
|
|
1917
1944
|
}
|
|
@@ -1932,9 +1959,8 @@ export default {
|
|
|
1932
1959
|
}
|
|
1933
1960
|
}).then((res) => {
|
|
1934
1961
|
this.$toast.clear();
|
|
1935
|
-
this.showFlowBtn = true
|
|
1962
|
+
this.showFlowBtn = true;
|
|
1936
1963
|
if (res.status == 'success') {
|
|
1937
|
-
|
|
1938
1964
|
_that.currentNodeEnableItemHandleDescription =
|
|
1939
1965
|
res.data.nodeExtAttr.currentNodeEnableItemHandleDescription == 1;
|
|
1940
1966
|
_that.deptRoleCode = res.data.nodeExtAttr.deptRoleCode;
|
|
@@ -2037,7 +2063,7 @@ export default {
|
|
|
2037
2063
|
: false; // 判断是否隐藏下一步节点信息和接收人信息
|
|
2038
2064
|
if (res.data.globalNodeType === 'endEvent') {
|
|
2039
2065
|
this.isNextUser = false;
|
|
2040
|
-
_that.endFlow = true
|
|
2066
|
+
_that.endFlow = true;
|
|
2041
2067
|
this.form.nextUserId = '流程办结';
|
|
2042
2068
|
} else {
|
|
2043
2069
|
this.nodeType != 1 &&
|