eoss-mobiles 0.3.32 → 0.3.34
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 +229 -72
- package/lib/flow.js +205 -47
- package/lib/index.js +1 -1
- package/lib/selector.js +23 -24
- package/package.json +1 -1
- package/packages/flow/src/components/Handle.vue +85 -15
- package/packages/flow/src/components/Message.vue +0 -1
- package/packages/flow/src/components/Opinion.vue +48 -17
- package/packages/flow/src/components/supervise.vue +4 -2
- package/packages/selector/src/selector-field.vue +16 -21
- package/src/index.js +1 -1
package/lib/selector.js
CHANGED
|
@@ -4358,8 +4358,8 @@ var selector_tree_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4358
4358
|
)
|
|
4359
4359
|
|
|
4360
4360
|
/* harmony default export */ var selector_tree = (selector_tree_component.exports);
|
|
4361
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-field.vue?vue&type=template&id=
|
|
4362
|
-
var
|
|
4361
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-field.vue?vue&type=template&id=986a3612
|
|
4362
|
+
var selector_fieldvue_type_template_id_986a3612_render = function () {
|
|
4363
4363
|
var _vm = this
|
|
4364
4364
|
var _h = _vm.$createElement
|
|
4365
4365
|
var _c = _vm._self._c || _h
|
|
@@ -4533,11 +4533,11 @@ var selector_fieldvue_type_template_id_338153d2_render = function () {
|
|
|
4533
4533
|
1
|
|
4534
4534
|
)
|
|
4535
4535
|
}
|
|
4536
|
-
var
|
|
4537
|
-
|
|
4536
|
+
var selector_fieldvue_type_template_id_986a3612_staticRenderFns = []
|
|
4537
|
+
selector_fieldvue_type_template_id_986a3612_render._withStripped = true
|
|
4538
4538
|
|
|
4539
4539
|
|
|
4540
|
-
// CONCATENATED MODULE: ./packages/selector/src/selector-field.vue?vue&type=template&id=
|
|
4540
|
+
// CONCATENATED MODULE: ./packages/selector/src/selector-field.vue?vue&type=template&id=986a3612
|
|
4541
4541
|
|
|
4542
4542
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-field.vue?vue&type=script&lang=js
|
|
4543
4543
|
//
|
|
@@ -4677,7 +4677,7 @@ selector_fieldvue_type_template_id_338153d2_render._withStripped = true
|
|
|
4677
4677
|
item.name = item.username || item[_that.labelKey];
|
|
4678
4678
|
item.value = item.userId || item[_that.valueKey];
|
|
4679
4679
|
});
|
|
4680
|
-
this.newNextUserList = val;
|
|
4680
|
+
this.newNextUserList = JSON.parse(JSON.stringify(val));
|
|
4681
4681
|
},
|
|
4682
4682
|
|
|
4683
4683
|
deep: true,
|
|
@@ -4703,14 +4703,16 @@ selector_fieldvue_type_template_id_338153d2_render._withStripped = true
|
|
|
4703
4703
|
var selectArr = [];
|
|
4704
4704
|
var _that = this;
|
|
4705
4705
|
if (this.multiple) {
|
|
4706
|
-
this.data.map(function (
|
|
4707
|
-
|
|
4708
|
-
!item[_that.labelKey] && (item[_that.labelKey] = item.username || item.userName);
|
|
4706
|
+
var selectId = this.data.map(function (x) {
|
|
4707
|
+
return x[_that.valueKey];
|
|
4709
4708
|
});
|
|
4710
|
-
|
|
4711
|
-
|
|
4709
|
+
this.newNextUserList.map(function (x) {
|
|
4710
|
+
if (selectId.includes(x[_that.valueKey])) {
|
|
4711
|
+
selectArr.push(x);
|
|
4712
|
+
}
|
|
4713
|
+
x.checked = selectId.includes(x[_that.valueKey]);
|
|
4712
4714
|
});
|
|
4713
|
-
this.newSelectList = [].concat(this.data, selectArr);
|
|
4715
|
+
this.newSelectList = [].concat(JSON.parse(JSON.stringify(this.data)), JSON.parse(JSON.stringify(selectArr)));
|
|
4714
4716
|
this.newSelectList = this.arrDistinctByProp(this.newSelectList, _that.valueKey);
|
|
4715
4717
|
} else {
|
|
4716
4718
|
this.selectValue = '';
|
|
@@ -4733,15 +4735,13 @@ selector_fieldvue_type_template_id_338153d2_render._withStripped = true
|
|
|
4733
4735
|
handleChange: function handleChange(val, info) {
|
|
4734
4736
|
var _this = this;
|
|
4735
4737
|
_this.openSelect = false;
|
|
4738
|
+
// info.checked = !info.checked
|
|
4739
|
+
var content = JSON.parse(JSON.stringify(this.newSelectList));
|
|
4736
4740
|
if (_this.multiple) {
|
|
4737
4741
|
if (info.checked) {
|
|
4738
|
-
|
|
4739
|
-
this.newSelectList = info;
|
|
4740
|
-
} else {
|
|
4741
|
-
this.newSelectList.push(info);
|
|
4742
|
-
}
|
|
4742
|
+
content.push(JSON.parse(JSON.stringify(info)));
|
|
4743
4743
|
} else {
|
|
4744
|
-
|
|
4744
|
+
content = content.filter(function (obj) {
|
|
4745
4745
|
return obj[_this.valueKey] != info[_this.valueKey];
|
|
4746
4746
|
});
|
|
4747
4747
|
}
|
|
@@ -4749,11 +4749,10 @@ selector_fieldvue_type_template_id_338153d2_render._withStripped = true
|
|
|
4749
4749
|
var data = this.newNextUserList.filter(function (x) {
|
|
4750
4750
|
return x.userId === val || x[_this.valueKey] === val;
|
|
4751
4751
|
});
|
|
4752
|
-
if (data.length > 0)
|
|
4752
|
+
if (data.length > 0) content = data;
|
|
4753
4753
|
}
|
|
4754
|
-
|
|
4755
|
-
this.$
|
|
4756
|
-
this.$emit('change', { list: _this.newSelectList });
|
|
4754
|
+
this.$parent.$emit('change', { list: content });
|
|
4755
|
+
this.$emit('change', { list: content });
|
|
4757
4756
|
},
|
|
4758
4757
|
|
|
4759
4758
|
/**
|
|
@@ -4812,8 +4811,8 @@ selector_fieldvue_type_template_id_338153d2_render._withStripped = true
|
|
|
4812
4811
|
|
|
4813
4812
|
var selector_field_component = Object(componentNormalizer["a" /* default */])(
|
|
4814
4813
|
src_selector_fieldvue_type_script_lang_js,
|
|
4815
|
-
|
|
4816
|
-
|
|
4814
|
+
selector_fieldvue_type_template_id_986a3612_render,
|
|
4815
|
+
selector_fieldvue_type_template_id_986a3612_staticRenderFns,
|
|
4817
4816
|
false,
|
|
4818
4817
|
null,
|
|
4819
4818
|
null,
|
package/package.json
CHANGED
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
:isForceDisplayDefaultOptionForPrefix="
|
|
42
42
|
isForceDisplayDefaultOptionForPrefix
|
|
43
43
|
"
|
|
44
|
-
:
|
|
44
|
+
:pendingItemHandleDescription="pendingItemHandleDescription"
|
|
45
|
+
:placeholder="pendingItemHandleDescription || opinionHandleExplainText"
|
|
45
46
|
:nodeDefaultSubmitOpinion="nodeDefaultSubmitOpinion"
|
|
46
47
|
:nodeFixedOpinionSelectList="nodeFixedOpinionSelectList"
|
|
47
48
|
:isHiddenOftenOpinion="isHiddenOftenOpinion == 1 ? false : true"
|
|
@@ -391,10 +392,26 @@
|
|
|
391
392
|
<!-- 办理说明 -->
|
|
392
393
|
<div class="item" v-if="isHandleExplain">
|
|
393
394
|
<van-field
|
|
395
|
+
v-model="form.handleExplain"
|
|
394
396
|
value="办理说明"
|
|
395
397
|
label="办理说明"
|
|
396
|
-
|
|
397
|
-
|
|
398
|
+
placeholder="请输入办理说明"
|
|
399
|
+
/>
|
|
400
|
+
</div>
|
|
401
|
+
<div
|
|
402
|
+
class="item"
|
|
403
|
+
v-if="
|
|
404
|
+
currentNodeEnableItemHandleDescription &&
|
|
405
|
+
nodeList.length != 0 &&
|
|
406
|
+
isShowNode &&
|
|
407
|
+
isNextUser
|
|
408
|
+
"
|
|
409
|
+
>
|
|
410
|
+
<van-field
|
|
411
|
+
v-model="form.nextItemHandleDescription"
|
|
412
|
+
value="办理说明"
|
|
413
|
+
label="办理说明"
|
|
414
|
+
placeholder="请输入办理说明"
|
|
398
415
|
/>
|
|
399
416
|
</div>
|
|
400
417
|
</div>
|
|
@@ -652,6 +669,10 @@ export default {
|
|
|
652
669
|
{ name: '后置加签', value: 'postAddSign' }
|
|
653
670
|
],
|
|
654
671
|
otherOrgDisabledObjId: [],
|
|
672
|
+
currentNodeEnableItemHandleDescription: false,
|
|
673
|
+
pendingItemHandleDescription: '',
|
|
674
|
+
taskOperationShiftedNodeList:null,
|
|
675
|
+
oldNextOperate:'',
|
|
655
676
|
processFormType: 'freeStart',
|
|
656
677
|
currentOrgDisabledObjId: [],
|
|
657
678
|
nextNodeDefault: 0,
|
|
@@ -807,7 +828,8 @@ export default {
|
|
|
807
828
|
customPresetHintMessage: '',
|
|
808
829
|
enableCustomLimitTimeSetting: false,
|
|
809
830
|
showCustomLimitTimeText: false,
|
|
810
|
-
needRetrialAuth: false
|
|
831
|
+
needRetrialAuth: false,
|
|
832
|
+
defaultNextNode: ''
|
|
811
833
|
};
|
|
812
834
|
},
|
|
813
835
|
created() {
|
|
@@ -1137,7 +1159,7 @@ export default {
|
|
|
1137
1159
|
delete this.form.nextOperate;
|
|
1138
1160
|
delete this.form.nextNodeId;
|
|
1139
1161
|
}
|
|
1140
|
-
if (this.form.nextOperate == 9) {
|
|
1162
|
+
if (this.form.nextOperate == 9 || this.oldNextOperate == 9) {
|
|
1141
1163
|
this.form.isReturnRejectNode = 1;
|
|
1142
1164
|
this.form.processDefinitionId =
|
|
1143
1165
|
this.processObj.taskExamine.processDefinitionId;
|
|
@@ -1197,9 +1219,10 @@ export default {
|
|
|
1197
1219
|
// _that.form.userId = 'u3a0bc559d4cf4f6ea47106ed7e76cae6';
|
|
1198
1220
|
_that.form.mobileKey = $.getStorage('deviceId') || '123';
|
|
1199
1221
|
_that.form.nextNodeId =
|
|
1200
|
-
_that.form.nextOperate == 0 || _that.form.nextOperate == 1
|
|
1222
|
+
_that.form.nextOperate == 0 || _that.form.nextOperate == 1 || _that.oldNextOperate === 0 || _that.oldNextOperate === 1
|
|
1201
1223
|
? _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode
|
|
1202
1224
|
: '';
|
|
1225
|
+
_that.form.nextOperate = _that.oldNextOperate !== '' ? _that.oldNextOperate : _that.form.nextOperate;
|
|
1203
1226
|
if (!_that.isCanPreAddSign || _that.form.isAddSign != '1') {
|
|
1204
1227
|
delete _that.form.addSignMode;
|
|
1205
1228
|
}
|
|
@@ -1209,6 +1232,9 @@ export default {
|
|
|
1209
1232
|
if (!this.isSpecial) {
|
|
1210
1233
|
delete _that.form.nextUserId;
|
|
1211
1234
|
}
|
|
1235
|
+
if (!_that.currentNodeEnableItemHandleDescription) {
|
|
1236
|
+
delete _that.form.nextItemHandleDescription;
|
|
1237
|
+
}
|
|
1212
1238
|
let formData = new FormData();
|
|
1213
1239
|
if (_that.form.isImageOpinion == 1) {
|
|
1214
1240
|
formData.append('file', _that.file);
|
|
@@ -1365,18 +1391,40 @@ export default {
|
|
|
1365
1391
|
} else {
|
|
1366
1392
|
}
|
|
1367
1393
|
}
|
|
1394
|
+
if(this.taskOperationShiftedNodeList && !val.isNextNode){
|
|
1395
|
+
this.nodeList = this.nodeList.filter(x => this.taskOperationShiftedNodeList.indexOf(x.nodeId) == -1)
|
|
1396
|
+
}
|
|
1397
|
+
if(val.isNextNode){
|
|
1398
|
+
this.oldNextOperate = val.nextOperate
|
|
1399
|
+
}else{
|
|
1400
|
+
this.oldNextOperate = ''
|
|
1401
|
+
}
|
|
1402
|
+
if(val.isNextNode){
|
|
1403
|
+
this.nodeInfos = [];
|
|
1404
|
+
this.form.nextNodeId = val.key;
|
|
1405
|
+
this.form.nextNodeName = val.value;
|
|
1406
|
+
this.$toast.loading({
|
|
1407
|
+
message: '加载中...',
|
|
1408
|
+
forbidClick: true,
|
|
1409
|
+
loadingType: 'spinner',
|
|
1410
|
+
overlay: true,
|
|
1411
|
+
duration: 0
|
|
1412
|
+
});
|
|
1413
|
+
|
|
1414
|
+
this.getNodeObj(this.form.nextNodeId);
|
|
1415
|
+
}
|
|
1368
1416
|
if (this.nodeList && this.nodeList.length > 0) {
|
|
1369
1417
|
let defNode = this.nodeList.filter(
|
|
1370
|
-
(i) => i.nodeId === this.
|
|
1418
|
+
(i) => i.nodeId === this.defaultNextNode
|
|
1371
1419
|
);
|
|
1372
1420
|
if (defNode.length > 0) {
|
|
1373
1421
|
this.form.nextNodeId = defNode[0].nodeId;
|
|
1374
1422
|
this.form.nextNodeName = defNode[0].nodeName;
|
|
1375
|
-
}else{
|
|
1376
|
-
|
|
1423
|
+
} else {
|
|
1424
|
+
this.form.nextNodeId = this.nodeList[0].nodeId;
|
|
1377
1425
|
this.form.nextNodeName = this.nodeList[0].nodeName;
|
|
1378
1426
|
}
|
|
1379
|
-
|
|
1427
|
+
|
|
1380
1428
|
this.$toast.loading({
|
|
1381
1429
|
message: '加载中...',
|
|
1382
1430
|
forbidClick: true,
|
|
@@ -1384,6 +1432,7 @@ export default {
|
|
|
1384
1432
|
overlay: true,
|
|
1385
1433
|
duration: 0
|
|
1386
1434
|
});
|
|
1435
|
+
|
|
1387
1436
|
if (isDef !== true) this.getNodeObj(this.form.nextNodeId);
|
|
1388
1437
|
}
|
|
1389
1438
|
|
|
@@ -1392,7 +1441,6 @@ export default {
|
|
|
1392
1441
|
|
|
1393
1442
|
// 确认流程节点操作
|
|
1394
1443
|
onConfirmNextNode(val) {
|
|
1395
|
-
console.log(val, 'cal');
|
|
1396
1444
|
if (this.nextNodeCheckType === 'select') {
|
|
1397
1445
|
this.form.nextNodeId = val.nodeId;
|
|
1398
1446
|
this.form.nextNodeName = val.nodeName;
|
|
@@ -1531,11 +1579,21 @@ export default {
|
|
|
1531
1579
|
readOnlyNotificationType,
|
|
1532
1580
|
otherOrgName,
|
|
1533
1581
|
nextNodeCheckType,
|
|
1582
|
+
pendingItemHandleDescription,
|
|
1534
1583
|
defaultNotificationMessage,
|
|
1535
1584
|
defaultNotificationType,
|
|
1585
|
+
taskOperationShiftedNodeList,
|
|
1536
1586
|
isCanPreAddSign
|
|
1537
1587
|
}
|
|
1538
1588
|
} = res;
|
|
1589
|
+
if(taskOperationShiftedNodeList && taskOperationShiftedNodeList.length>0){
|
|
1590
|
+
that.taskOperationShiftedNodeList = []
|
|
1591
|
+
taskOperationShiftedNodeList.map(x =>{
|
|
1592
|
+
that.taskOperationShiftedNodeList.push(x.nodeId)
|
|
1593
|
+
that.taskOperations.push({key: x.nodeId, value: x.nodeName,isNextNode: true,nextOperate:x.nextOperate,})
|
|
1594
|
+
})
|
|
1595
|
+
}
|
|
1596
|
+
that.pendingItemHandleDescription = pendingItemHandleDescription;
|
|
1539
1597
|
nextNodeCheckType && (that.nextNodeCheckType = nextNodeCheckType);
|
|
1540
1598
|
that.customPresetHintMessage = customPresetHintMessage;
|
|
1541
1599
|
that.currentOrgName = currentOrgName;
|
|
@@ -1559,7 +1617,7 @@ export default {
|
|
|
1559
1617
|
(that.defaultNotificationType =
|
|
1560
1618
|
defaultNotificationType.split(','));
|
|
1561
1619
|
that.nodeInfoMapInfo = nodeInfoMap;
|
|
1562
|
-
|
|
1620
|
+
that.defaultNextNode = nodeInfoMap.nodeExtAttr.defaultNextNode;
|
|
1563
1621
|
that.opinionHandleExplainText =
|
|
1564
1622
|
nodeInfoMap.nodeExtAttr.opinionHandleExplainText;
|
|
1565
1623
|
that.isCanAddSign = res.data.isCanAddSign;
|
|
@@ -1572,7 +1630,7 @@ export default {
|
|
|
1572
1630
|
}
|
|
1573
1631
|
that.isSpecial = res.data.isSpecial;
|
|
1574
1632
|
that.processObj = res.data;
|
|
1575
|
-
that.taskOperations = res.data.taskOperations;
|
|
1633
|
+
that.taskOperations = [...res.data.taskOperations,...that.taskOperations];
|
|
1576
1634
|
if (that.taskOperations && that.taskOperations.length > 0) {
|
|
1577
1635
|
let isSelected = false;
|
|
1578
1636
|
that.taskOperations.map((item) => {
|
|
@@ -1622,7 +1680,8 @@ export default {
|
|
|
1622
1680
|
x.nodeId === nodeInfoMap.nodeExtAttr.defaultNextNode
|
|
1623
1681
|
) {
|
|
1624
1682
|
info.push(x);
|
|
1625
|
-
that.nextNodeDefault =
|
|
1683
|
+
that.nextNodeDefault =
|
|
1684
|
+
nodeInfoMap.nodeExtAttr.defaultNextNode;
|
|
1626
1685
|
}
|
|
1627
1686
|
});
|
|
1628
1687
|
if (info.length == 0 && that.nodeList.length != 0)
|
|
@@ -1638,9 +1697,9 @@ export default {
|
|
|
1638
1697
|
if (item.key == 9) {
|
|
1639
1698
|
that.isReject = true;
|
|
1640
1699
|
}
|
|
1641
|
-
that.changeNextOperate(item, true);
|
|
1642
1700
|
}
|
|
1643
1701
|
});
|
|
1702
|
+
|
|
1644
1703
|
if (!isSelected) {
|
|
1645
1704
|
that.form.nextOperate = that.taskOperations[0].key;
|
|
1646
1705
|
that.form.nextOperateName = that.taskOperations[0].value;
|
|
@@ -1650,7 +1709,16 @@ export default {
|
|
|
1650
1709
|
that.form.nextNodeName = that.nodeList[0].nodeName;
|
|
1651
1710
|
}
|
|
1652
1711
|
}
|
|
1712
|
+
that.tagKey = that.form.nextOperate;
|
|
1653
1713
|
}
|
|
1714
|
+
that.changeNextOperate(
|
|
1715
|
+
{
|
|
1716
|
+
value: that.form.nextOperateName,
|
|
1717
|
+
key: that.form.nextOperate,
|
|
1718
|
+
taskNodeList: that.nodeList
|
|
1719
|
+
},
|
|
1720
|
+
true
|
|
1721
|
+
);
|
|
1654
1722
|
if (nodeInfoMap && JSON.stringify(nodeInfoMap) != '{}') {
|
|
1655
1723
|
that.needRetrialAuth =
|
|
1656
1724
|
!!nodeInfoMap.nodeExtAttr.isCurrentNodeSubmitNeedRetrialAuth;
|
|
@@ -1765,6 +1833,8 @@ export default {
|
|
|
1765
1833
|
}).then((res) => {
|
|
1766
1834
|
this.$toast.clear();
|
|
1767
1835
|
if (res.status == 'success') {
|
|
1836
|
+
_that.currentNodeEnableItemHandleDescription =
|
|
1837
|
+
res.data.nodeExtAttr.currentNodeEnableItemHandleDescription == 1;
|
|
1768
1838
|
_that.deptRoleCode = res.data.nodeExtAttr.deptRoleCode;
|
|
1769
1839
|
_that.enableCustomLimitTimeSetting =
|
|
1770
1840
|
res.data.nodeExtAttr.enableCustomLimitTimeSetting == 1;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:name="item.type"
|
|
11
11
|
>
|
|
12
12
|
<em-esign
|
|
13
|
-
style="padding:0px 10px"
|
|
13
|
+
style="padding: 0px 10px"
|
|
14
14
|
v-show="isImageOpinion === 1"
|
|
15
15
|
@save="handleSave"
|
|
16
16
|
:file-path="esignPath"
|
|
@@ -19,15 +19,19 @@
|
|
|
19
19
|
<div
|
|
20
20
|
v-show="isImageOpinion === 0"
|
|
21
21
|
class="item em-flow-opion-box"
|
|
22
|
-
style="padding-bottom:20px"
|
|
22
|
+
style="padding-bottom: 20px"
|
|
23
23
|
>
|
|
24
24
|
<em-input
|
|
25
25
|
:label="label"
|
|
26
26
|
:placeholder="placeholder"
|
|
27
27
|
v-model="opinion"
|
|
28
|
+
ref="opinionInp"
|
|
29
|
+
autofocus
|
|
28
30
|
type="textarea"
|
|
29
31
|
rows="3"
|
|
30
32
|
@input="onInput"
|
|
33
|
+
@focus="handleFocus"
|
|
34
|
+
@blur="handleBlur"
|
|
31
35
|
:disabled="disabled || fixedDisabled"
|
|
32
36
|
:required="isOpinionRequired == 1 ? true : false"
|
|
33
37
|
/>
|
|
@@ -42,13 +46,17 @@
|
|
|
42
46
|
</em-tabs>
|
|
43
47
|
</div>
|
|
44
48
|
<div v-else-if="show">
|
|
45
|
-
<div class="item em-flow-opion-box" style="position: relative
|
|
49
|
+
<div class="item em-flow-opion-box" style="position: relative">
|
|
46
50
|
<em-input
|
|
47
51
|
:label="label"
|
|
48
52
|
:placeholder="placeholder"
|
|
49
53
|
v-model="opinion"
|
|
54
|
+
ref="opinionInp"
|
|
50
55
|
type="textarea"
|
|
51
56
|
rows="3"
|
|
57
|
+
autofocus
|
|
58
|
+
@focus="handleFocus"
|
|
59
|
+
@blur="handleBlur"
|
|
52
60
|
@input="onInput"
|
|
53
61
|
:disabled="disabled || fixedDisabled"
|
|
54
62
|
:required="isOpinionRequired == 1 ? true : false"
|
|
@@ -137,9 +145,9 @@ export default {
|
|
|
137
145
|
type: Boolean,
|
|
138
146
|
default: false
|
|
139
147
|
},
|
|
140
|
-
esignLineWidth:{
|
|
141
|
-
type:[String,Number],
|
|
142
|
-
default:5
|
|
148
|
+
esignLineWidth: {
|
|
149
|
+
type: [String, Number],
|
|
150
|
+
default: 5
|
|
143
151
|
},
|
|
144
152
|
userId: {
|
|
145
153
|
type: String,
|
|
@@ -156,6 +164,10 @@ export default {
|
|
|
156
164
|
oldOpinion: {
|
|
157
165
|
type: String,
|
|
158
166
|
default: ''
|
|
167
|
+
},
|
|
168
|
+
pendingItemHandleDescription: {
|
|
169
|
+
type: String,
|
|
170
|
+
default: ''
|
|
159
171
|
}
|
|
160
172
|
},
|
|
161
173
|
// components: {
|
|
@@ -167,6 +179,7 @@ export default {
|
|
|
167
179
|
newOpinion: '',
|
|
168
180
|
fixedDisabled: false,
|
|
169
181
|
showPicker: false,
|
|
182
|
+
showDescription: true,
|
|
170
183
|
esignPath: '',
|
|
171
184
|
tabs: [
|
|
172
185
|
{ id: 0, text: '键盘签批', type: 0 },
|
|
@@ -174,19 +187,19 @@ export default {
|
|
|
174
187
|
],
|
|
175
188
|
isImageOpinion: 0,
|
|
176
189
|
file: '',
|
|
177
|
-
show:true,
|
|
190
|
+
show: true,
|
|
178
191
|
opinionList: [] //意见列表
|
|
179
192
|
};
|
|
180
193
|
},
|
|
181
194
|
watch: {
|
|
182
|
-
placeholder:{
|
|
183
|
-
handler(val){
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
this.show = true
|
|
187
|
-
},0)
|
|
195
|
+
placeholder: {
|
|
196
|
+
handler(val) {
|
|
197
|
+
this.show = false;
|
|
198
|
+
setTimeout(() => {
|
|
199
|
+
this.show = true;
|
|
200
|
+
}, 0);
|
|
188
201
|
},
|
|
189
|
-
immediate:true
|
|
202
|
+
immediate: true
|
|
190
203
|
},
|
|
191
204
|
isForceDisplayDefaultOptionForPrefix: {
|
|
192
205
|
handler(val) {
|
|
@@ -208,7 +221,6 @@ export default {
|
|
|
208
221
|
}
|
|
209
222
|
},
|
|
210
223
|
created() {
|
|
211
|
-
|
|
212
224
|
if (this.nodeFixedOpinionSelectList.length > 0) {
|
|
213
225
|
this.opinionList = this.nodeFixedOpinionSelectList;
|
|
214
226
|
this.fixedDisabled = true;
|
|
@@ -217,7 +229,26 @@ export default {
|
|
|
217
229
|
}
|
|
218
230
|
},
|
|
219
231
|
methods: {
|
|
220
|
-
|
|
232
|
+
handleFocus() {
|
|
233
|
+
if (this.showDescription && this.pendingItemHandleDescription) {
|
|
234
|
+
this.$dialog
|
|
235
|
+
.confirm({
|
|
236
|
+
message: `确定填入<span style="color:red">${this.pendingItemHandleDescription}</span>说明吗?`
|
|
237
|
+
})
|
|
238
|
+
.then(() => {
|
|
239
|
+
this.opinion = this.pendingItemHandleDescription;
|
|
240
|
+
this.$refs.opinionInp[0].$children[0].focus();
|
|
241
|
+
})
|
|
242
|
+
.catch(() => {
|
|
243
|
+
// on cancel
|
|
244
|
+
this.$refs.opinionInp[0].$children[0].focus();
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
handleBlur() {
|
|
249
|
+
this.showDescription = !this.showDescription
|
|
250
|
+
},
|
|
251
|
+
|
|
221
252
|
handleSave(info) {
|
|
222
253
|
const { isImageOpinion } = this;
|
|
223
254
|
this.esignPath = info.data;
|
|
@@ -245,7 +276,7 @@ export default {
|
|
|
245
276
|
request({
|
|
246
277
|
url: _that.baseUrl ? _that.baseUrl + commonOpion : commonOpion,
|
|
247
278
|
params: { userId: _that.userId }
|
|
248
|
-
}).then(res => {
|
|
279
|
+
}).then((res) => {
|
|
249
280
|
if (res.status == 'success') {
|
|
250
281
|
this.opinionList = res.data.list;
|
|
251
282
|
}
|
|
@@ -43,7 +43,8 @@ export default {
|
|
|
43
43
|
components: { Message },
|
|
44
44
|
props: {
|
|
45
45
|
baseUrl: String,
|
|
46
|
-
businessId: String
|
|
46
|
+
businessId: String,
|
|
47
|
+
appId:{type:String,default:''}
|
|
47
48
|
},
|
|
48
49
|
data() {
|
|
49
50
|
return {
|
|
@@ -70,7 +71,8 @@ export default {
|
|
|
70
71
|
urgeUserIds: selectInfo.map(item=>item.userid).join(','),
|
|
71
72
|
notificationType: Array.isArray(noticeType) ? noticeType.join(',') : noticeType,
|
|
72
73
|
notificationMessage: notificationMsg,
|
|
73
|
-
businessId: this.businessId
|
|
74
|
+
businessId: this.businessId,
|
|
75
|
+
appId:this.appId
|
|
74
76
|
}
|
|
75
77
|
};
|
|
76
78
|
|
|
@@ -132,7 +132,7 @@ export default {
|
|
|
132
132
|
item.name = item.username || item[_that.labelKey];
|
|
133
133
|
item.value = item.userId || item[_that.valueKey];
|
|
134
134
|
});
|
|
135
|
-
this.newNextUserList = val;
|
|
135
|
+
this.newNextUserList = JSON.parse(JSON.stringify(val));
|
|
136
136
|
},
|
|
137
137
|
deep: true,
|
|
138
138
|
immediate: true
|
|
@@ -154,16 +154,14 @@ export default {
|
|
|
154
154
|
let selectArr = [];
|
|
155
155
|
const _that = this;
|
|
156
156
|
if (this.multiple) {
|
|
157
|
-
this.data.map(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
);
|
|
166
|
-
this.newSelectList = [...this.data, ...selectArr];
|
|
157
|
+
let selectId = this.data.map(x => x[_that.valueKey])
|
|
158
|
+
this.newNextUserList.map(x => {
|
|
159
|
+
if(selectId.includes(x[_that.valueKey])){
|
|
160
|
+
selectArr.push(x)
|
|
161
|
+
}
|
|
162
|
+
x.checked = selectId.includes(x[_that.valueKey])
|
|
163
|
+
})
|
|
164
|
+
this.newSelectList = [...JSON.parse(JSON.stringify(this.data)), ...JSON.parse(JSON.stringify(selectArr))];
|
|
167
165
|
this.newSelectList = this.arrDistinctByProp(
|
|
168
166
|
this.newSelectList,
|
|
169
167
|
_that.valueKey
|
|
@@ -191,15 +189,13 @@ export default {
|
|
|
191
189
|
handleChange(val, info) {
|
|
192
190
|
const _this = this;
|
|
193
191
|
_this.openSelect = false;
|
|
192
|
+
// info.checked = !info.checked
|
|
193
|
+
let content = JSON.parse(JSON.stringify(this.newSelectList))
|
|
194
194
|
if (_this.multiple) {
|
|
195
195
|
if (info.checked) {
|
|
196
|
-
|
|
197
|
-
this.newSelectList = info;
|
|
198
|
-
} else {
|
|
199
|
-
this.newSelectList.push(info);
|
|
200
|
-
}
|
|
196
|
+
content.push(JSON.parse(JSON.stringify(info)));
|
|
201
197
|
} else {
|
|
202
|
-
|
|
198
|
+
content = content.filter(obj => {
|
|
203
199
|
return obj[_this.valueKey] != info[_this.valueKey];
|
|
204
200
|
});
|
|
205
201
|
}
|
|
@@ -207,11 +203,10 @@ export default {
|
|
|
207
203
|
let data = this.newNextUserList.filter(
|
|
208
204
|
x => x.userId === val || x[_this.valueKey] === val
|
|
209
205
|
);
|
|
210
|
-
if (data.length > 0)
|
|
206
|
+
if (data.length > 0) content = data;
|
|
211
207
|
}
|
|
212
|
-
|
|
213
|
-
this.$
|
|
214
|
-
this.$emit('change', { list: _this.newSelectList });
|
|
208
|
+
this.$parent.$emit('change', { list: content });
|
|
209
|
+
this.$emit('change', { list: content });
|
|
215
210
|
},
|
|
216
211
|
/**
|
|
217
212
|
* clickTree
|