eoss-mobiles 0.3.63 → 0.3.65
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 +40 -18
- package/lib/flow.js +39 -17
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/components/Handle.vue +64 -37
- 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
|
};
|
|
@@ -1728,21 +1739,36 @@ export default {
|
|
|
1728
1739
|
...res.data.taskOperations,
|
|
1729
1740
|
...that.taskOperations
|
|
1730
1741
|
];
|
|
1742
|
+
let isSelected = false;
|
|
1743
|
+
let isSelectIndex = 0;
|
|
1731
1744
|
if (that.taskOperations && that.taskOperations.length > 0) {
|
|
1732
|
-
|
|
1733
|
-
that.taskOperations.map((item) => {
|
|
1745
|
+
that.taskOperations.map((item,index) => {
|
|
1734
1746
|
if (item.isSelected || that.taskOperations.length == 1) {
|
|
1735
1747
|
isSelected = true;
|
|
1748
|
+
isSelectIndex = index;
|
|
1736
1749
|
if (that.taskOperations.length == 1) {
|
|
1737
|
-
|
|
1750
|
+
|
|
1751
|
+
if (that.taskOperations[0].isNextNode) {
|
|
1752
|
+
|
|
1753
|
+
that.form.nextOperate =
|
|
1754
|
+
that.taskOperations[0].nextOperate;
|
|
1755
|
+
} else {
|
|
1756
|
+
that.form.nextOperate = that.taskOperations[0].key;
|
|
1757
|
+
}
|
|
1738
1758
|
that.form.nextOperateName = that.taskOperations[0].value;
|
|
1739
1759
|
if (
|
|
1740
|
-
|
|
1741
|
-
that.taskOperations[0].taskNodeList.length === 0
|
|
1760
|
+
( !that.taskOperations[0].taskNodeList ||
|
|
1761
|
+
(that.taskOperations[0].taskNodeList.length === 0)) &&
|
|
1762
|
+
!that.taskOperations[0].isNextNode
|
|
1742
1763
|
) {
|
|
1764
|
+
|
|
1743
1765
|
that.form.nextNodeId = undefined;
|
|
1744
1766
|
that.form.nextNodeName = undefined;
|
|
1767
|
+
} else if (that.taskOperations[0].isNextNode) {
|
|
1768
|
+
that.form.nextNodeId = that.taskOperations[0].key;
|
|
1769
|
+
that.form.nextNodeName = that.taskOperations[0].value;
|
|
1745
1770
|
} else {
|
|
1771
|
+
|
|
1746
1772
|
that.nodeList = that.taskOperations[0].taskNodeList;
|
|
1747
1773
|
let info = [];
|
|
1748
1774
|
that.nodeList.map((x) => {
|
|
@@ -1811,7 +1837,9 @@ export default {
|
|
|
1811
1837
|
that.changeNextOperate(
|
|
1812
1838
|
{
|
|
1813
1839
|
value: that.form.nextOperateName,
|
|
1814
|
-
key: that.
|
|
1840
|
+
key: that.taskOperations[isSelectIndex].key,
|
|
1841
|
+
nextOperate: that.taskOperations[isSelectIndex].nextOperate,
|
|
1842
|
+
isNextNode:that.taskOperations[isSelectIndex].isNextNode,
|
|
1815
1843
|
taskNodeList: that.nodeList
|
|
1816
1844
|
},
|
|
1817
1845
|
true
|
|
@@ -1895,7 +1923,7 @@ export default {
|
|
|
1895
1923
|
message,
|
|
1896
1924
|
data: { isCanFenyue, taskExamine, taskReadOpinionRequired }
|
|
1897
1925
|
} = res;
|
|
1898
|
-
this.showFlowBtn = true
|
|
1926
|
+
this.showFlowBtn = true;
|
|
1899
1927
|
if (status === 'success') {
|
|
1900
1928
|
this.taskExamineInfo = taskExamine;
|
|
1901
1929
|
this.isCanFenyue = isCanFenyue;
|
|
@@ -1910,8 +1938,8 @@ export default {
|
|
|
1910
1938
|
})
|
|
1911
1939
|
.catch((err) => {
|
|
1912
1940
|
this.$toast.clear();
|
|
1913
|
-
|
|
1914
|
-
this.showFlowBtn = true
|
|
1941
|
+
|
|
1942
|
+
this.showFlowBtn = true;
|
|
1915
1943
|
if (err.message && err.message !== 'canceled') {
|
|
1916
1944
|
this.$toast(err.message);
|
|
1917
1945
|
}
|
|
@@ -1932,9 +1960,8 @@ export default {
|
|
|
1932
1960
|
}
|
|
1933
1961
|
}).then((res) => {
|
|
1934
1962
|
this.$toast.clear();
|
|
1935
|
-
this.showFlowBtn = true
|
|
1963
|
+
this.showFlowBtn = true;
|
|
1936
1964
|
if (res.status == 'success') {
|
|
1937
|
-
|
|
1938
1965
|
_that.currentNodeEnableItemHandleDescription =
|
|
1939
1966
|
res.data.nodeExtAttr.currentNodeEnableItemHandleDescription == 1;
|
|
1940
1967
|
_that.deptRoleCode = res.data.nodeExtAttr.deptRoleCode;
|
|
@@ -2037,7 +2064,7 @@ export default {
|
|
|
2037
2064
|
: false; // 判断是否隐藏下一步节点信息和接收人信息
|
|
2038
2065
|
if (res.data.globalNodeType === 'endEvent') {
|
|
2039
2066
|
this.isNextUser = false;
|
|
2040
|
-
_that.endFlow = true
|
|
2067
|
+
_that.endFlow = true;
|
|
2041
2068
|
this.form.nextUserId = '流程办结';
|
|
2042
2069
|
} else {
|
|
2043
2070
|
this.nodeType != 1 &&
|