eoss-mobiles 0.3.35 → 0.3.37
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 +81 -60
- package/lib/field.js +8 -2
- package/lib/flow.js +54 -43
- package/lib/index.js +1 -1
- package/lib/selector.js +13 -9
- package/package.json +1 -1
- package/packages/field/src/main.vue +5 -0
- package/packages/flow/src/components/Handle.vue +84 -35
- package/packages/flow/src/components/Opinion.vue +2 -4
- package/packages/selector/src/selector-tree.vue +6 -2
- package/src/index.js +1 -1
package/lib/selector.js
CHANGED
|
@@ -2264,8 +2264,8 @@ render._withStripped = true
|
|
|
2264
2264
|
|
|
2265
2265
|
// CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=17308961
|
|
2266
2266
|
|
|
2267
|
-
// 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-tree.vue?vue&type=template&id=
|
|
2268
|
-
var
|
|
2267
|
+
// 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-tree.vue?vue&type=template&id=1c4984fc
|
|
2268
|
+
var selector_treevue_type_template_id_1c4984fc_render = function () {
|
|
2269
2269
|
var _vm = this
|
|
2270
2270
|
var _h = _vm.$createElement
|
|
2271
2271
|
var _c = _vm._self._c || _h
|
|
@@ -2445,11 +2445,11 @@ var selector_treevue_type_template_id_ed62cd92_render = function () {
|
|
|
2445
2445
|
1
|
|
2446
2446
|
)
|
|
2447
2447
|
}
|
|
2448
|
-
var
|
|
2449
|
-
|
|
2448
|
+
var selector_treevue_type_template_id_1c4984fc_staticRenderFns = []
|
|
2449
|
+
selector_treevue_type_template_id_1c4984fc_render._withStripped = true
|
|
2450
2450
|
|
|
2451
2451
|
|
|
2452
|
-
// CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=
|
|
2452
|
+
// CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=1c4984fc
|
|
2453
2453
|
|
|
2454
2454
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=template&id=d9c99060
|
|
2455
2455
|
var treevue_type_template_id_d9c99060_render = function () {
|
|
@@ -4020,10 +4020,14 @@ var _props, _methods;
|
|
|
4020
4020
|
this.newParam = _extends({}, JSON.parse(JSON.stringify(this.param)));
|
|
4021
4021
|
this.newParam.selecttype = this.newTabs[this.selectIndex].param.selecttype;
|
|
4022
4022
|
if (this.newParam.selecttype === 'persongroup') {
|
|
4023
|
-
this.newParam.
|
|
4023
|
+
if (this.newParam[this.newTabs[this.selectIndex].name]) {
|
|
4024
|
+
this.newParam = _extends({}, this.newTabs[this.selectIndex].param, this.newParam[this.newTabs[this.selectIndex].name] ? this.newParam[this.newTabs[this.selectIndex].name] : {});
|
|
4025
|
+
} else {
|
|
4026
|
+
this.newParam.pid = 'root';
|
|
4027
|
+
}
|
|
4024
4028
|
this.newParam.myUserid = this.newParam.myUserid || util["a" /* default */].getStorage('userId');
|
|
4025
4029
|
} else {
|
|
4026
|
-
this.newParam = _extends({}, this.newTabs[this.selectIndex].param, this.newParam);
|
|
4030
|
+
this.newParam = _extends({}, this.newTabs[this.selectIndex].param, this.newParam[this.newTabs[this.selectIndex].name] ? this.newParam[this.newTabs[this.selectIndex].name] : {});
|
|
4027
4031
|
// this.newTabs[this.selectIndex].param.pid || this.param.pid || 'root';
|
|
4028
4032
|
}
|
|
4029
4033
|
delete this.newParam.department;
|
|
@@ -4348,8 +4352,8 @@ var _props, _methods;
|
|
|
4348
4352
|
|
|
4349
4353
|
var selector_tree_component = Object(componentNormalizer["a" /* default */])(
|
|
4350
4354
|
src_selector_treevue_type_script_lang_js,
|
|
4351
|
-
|
|
4352
|
-
|
|
4355
|
+
selector_treevue_type_template_id_1c4984fc_render,
|
|
4356
|
+
selector_treevue_type_template_id_1c4984fc_staticRenderFns,
|
|
4353
4357
|
false,
|
|
4354
4358
|
null,
|
|
4355
4359
|
null,
|
package/package.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
:required="
|
|
29
29
|
required || (Array.isArray(rules) ? rules[0].required : rules.required)
|
|
30
30
|
"
|
|
31
|
+
:autofocus="autofocus"
|
|
31
32
|
:error="
|
|
32
33
|
(!newErrorMessage &&
|
|
33
34
|
!modelValue &&
|
|
@@ -109,6 +110,10 @@ export default {
|
|
|
109
110
|
type: String,
|
|
110
111
|
default: ''
|
|
111
112
|
},
|
|
113
|
+
autofocus: {
|
|
114
|
+
type: Boolean,
|
|
115
|
+
default: false
|
|
116
|
+
},
|
|
112
117
|
labelPosition: {
|
|
113
118
|
type: String,
|
|
114
119
|
default: 'left'
|
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
isForceDisplayDefaultOptionForPrefix
|
|
43
43
|
"
|
|
44
44
|
:pendingItemHandleDescription="pendingItemHandleDescription"
|
|
45
|
-
:placeholder="
|
|
45
|
+
:placeholder="
|
|
46
|
+
pendingItemHandleDescription || opinionHandleExplainText
|
|
47
|
+
"
|
|
46
48
|
:nodeDefaultSubmitOpinion="nodeDefaultSubmitOpinion"
|
|
47
49
|
:nodeFixedOpinionSelectList="nodeFixedOpinionSelectList"
|
|
48
50
|
:isHiddenOftenOpinion="isHiddenOftenOpinion == 1 ? false : true"
|
|
@@ -285,11 +287,8 @@
|
|
|
285
287
|
:paddingTop="paddingTop"
|
|
286
288
|
isDepartment
|
|
287
289
|
:objType="'enterprise'"
|
|
288
|
-
:tabs="
|
|
289
|
-
:param="
|
|
290
|
-
department: { pid: orgId, roleid: deptRoleCode },
|
|
291
|
-
myemployee: { pid: orgId, roleid: deptRoleCode }
|
|
292
|
-
}"
|
|
290
|
+
:tabs="currentOrgSelectorTabs"
|
|
291
|
+
:param="currentOrgSelectorParams"
|
|
293
292
|
:disableds="currentOrgDisabledObjId"
|
|
294
293
|
:baseUrl="apiBaseUrl"
|
|
295
294
|
:isOtherUnit="false"
|
|
@@ -306,10 +305,8 @@
|
|
|
306
305
|
:isAllCheck="isAllCheck"
|
|
307
306
|
:paddingTop="paddingTop"
|
|
308
307
|
:objType="'enterprise'"
|
|
309
|
-
:param="
|
|
310
|
-
|
|
311
|
-
}"
|
|
312
|
-
:tabs="'enterprise'"
|
|
308
|
+
:param="foreignOrgSelectorParams"
|
|
309
|
+
:tabs="foreignOrgSelectorTabs"
|
|
313
310
|
:baseUrl="apiBaseUrl"
|
|
314
311
|
:disableds="otherOrgDisabledObjId"
|
|
315
312
|
:isOtherUnit="true"
|
|
@@ -668,11 +665,15 @@ export default {
|
|
|
668
665
|
{ name: '前置加签', value: 'preAddSign' },
|
|
669
666
|
{ name: '后置加签', value: 'postAddSign' }
|
|
670
667
|
],
|
|
668
|
+
currentOrgSelectorParams: { pid: 'root' },
|
|
669
|
+
currentOrgSelectorTabs: 'employee, persongroup',
|
|
670
|
+
foreignOrgSelectorTabs: 'enterprise,filgroupobj',
|
|
671
|
+
foreignOrgSelectorParams: { pid: 'root', roleid: '' },
|
|
671
672
|
otherOrgDisabledObjId: [],
|
|
672
673
|
currentNodeEnableItemHandleDescription: false,
|
|
673
674
|
pendingItemHandleDescription: '',
|
|
674
|
-
taskOperationShiftedNodeList:null,
|
|
675
|
-
oldNextOperate:'',
|
|
675
|
+
taskOperationShiftedNodeList: null,
|
|
676
|
+
oldNextOperate: '',
|
|
676
677
|
processFormType: 'freeStart',
|
|
677
678
|
currentOrgDisabledObjId: [],
|
|
678
679
|
nextNodeDefault: 0,
|
|
@@ -1146,11 +1147,12 @@ export default {
|
|
|
1146
1147
|
return;
|
|
1147
1148
|
}
|
|
1148
1149
|
if (
|
|
1149
|
-
this.isHideCurrentOrg &&
|
|
1150
|
-
!this.form.nextCurrentOrgObjJson &&
|
|
1150
|
+
(this.isHideCurrentOrg || this.isHideOtherOrg) &&
|
|
1151
|
+
!this.form.nextCurrentOrgObjJson && !this.form.nextOtherOrgObjJson &&
|
|
1151
1152
|
this.form.isAddSign != '1'
|
|
1152
1153
|
) {
|
|
1153
|
-
this.$toast(`请选择${this.currentOrgName || '本单位'}`);
|
|
1154
|
+
// this.$toast(`请选择${this.currentOrgName || '本单位'}`);
|
|
1155
|
+
this.$toast(`请选择办理对象`);
|
|
1154
1156
|
return;
|
|
1155
1157
|
}
|
|
1156
1158
|
delete this.form.nextNodeName;
|
|
@@ -1219,10 +1221,16 @@ export default {
|
|
|
1219
1221
|
// _that.form.userId = 'u3a0bc559d4cf4f6ea47106ed7e76cae6';
|
|
1220
1222
|
_that.form.mobileKey = $.getStorage('deviceId') || '123';
|
|
1221
1223
|
_that.form.nextNodeId =
|
|
1222
|
-
_that.form.nextOperate == 0 ||
|
|
1224
|
+
_that.form.nextOperate == 0 ||
|
|
1225
|
+
_that.form.nextOperate == 1 ||
|
|
1226
|
+
_that.oldNextOperate === 0 ||
|
|
1227
|
+
_that.oldNextOperate === 1
|
|
1223
1228
|
? _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode
|
|
1224
1229
|
: '';
|
|
1225
|
-
|
|
1230
|
+
_that.form.nextOperate =
|
|
1231
|
+
_that.oldNextOperate !== ''
|
|
1232
|
+
? _that.oldNextOperate
|
|
1233
|
+
: _that.form.nextOperate;
|
|
1226
1234
|
if (!_that.isCanPreAddSign || _that.form.isAddSign != '1') {
|
|
1227
1235
|
delete _that.form.addSignMode;
|
|
1228
1236
|
}
|
|
@@ -1391,26 +1399,28 @@ export default {
|
|
|
1391
1399
|
} else {
|
|
1392
1400
|
}
|
|
1393
1401
|
}
|
|
1394
|
-
if(this.taskOperationShiftedNodeList && !val.isNextNode){
|
|
1395
|
-
this.nodeList = this.nodeList.filter(
|
|
1402
|
+
if (this.taskOperationShiftedNodeList && !val.isNextNode) {
|
|
1403
|
+
this.nodeList = this.nodeList.filter(
|
|
1404
|
+
(x) => this.taskOperationShiftedNodeList.indexOf(x.nodeId) == -1
|
|
1405
|
+
);
|
|
1396
1406
|
}
|
|
1397
|
-
if(val.isNextNode){
|
|
1398
|
-
this.oldNextOperate = val.nextOperate
|
|
1399
|
-
}else{
|
|
1400
|
-
this.oldNextOperate = ''
|
|
1407
|
+
if (val.isNextNode) {
|
|
1408
|
+
this.oldNextOperate = val.nextOperate;
|
|
1409
|
+
} else {
|
|
1410
|
+
this.oldNextOperate = '';
|
|
1401
1411
|
}
|
|
1402
|
-
if(val.isNextNode){
|
|
1412
|
+
if (val.isNextNode) {
|
|
1403
1413
|
this.nodeInfos = [];
|
|
1404
1414
|
this.form.nextNodeId = val.key;
|
|
1405
1415
|
this.form.nextNodeName = val.value;
|
|
1406
|
-
|
|
1416
|
+
this.$toast.loading({
|
|
1407
1417
|
message: '加载中...',
|
|
1408
1418
|
forbidClick: true,
|
|
1409
1419
|
loadingType: 'spinner',
|
|
1410
1420
|
overlay: true,
|
|
1411
1421
|
duration: 0
|
|
1412
1422
|
});
|
|
1413
|
-
|
|
1423
|
+
|
|
1414
1424
|
this.getNodeObj(this.form.nextNodeId);
|
|
1415
1425
|
}
|
|
1416
1426
|
if (this.nodeList && this.nodeList.length > 0) {
|
|
@@ -1424,7 +1434,7 @@ export default {
|
|
|
1424
1434
|
this.form.nextNodeId = this.nodeList[0].nodeId;
|
|
1425
1435
|
this.form.nextNodeName = this.nodeList[0].nodeName;
|
|
1426
1436
|
}
|
|
1427
|
-
|
|
1437
|
+
|
|
1428
1438
|
this.$toast.loading({
|
|
1429
1439
|
message: '加载中...',
|
|
1430
1440
|
forbidClick: true,
|
|
@@ -1432,7 +1442,7 @@ export default {
|
|
|
1432
1442
|
overlay: true,
|
|
1433
1443
|
duration: 0
|
|
1434
1444
|
});
|
|
1435
|
-
|
|
1445
|
+
|
|
1436
1446
|
if (isDef !== true) this.getNodeObj(this.form.nextNodeId);
|
|
1437
1447
|
}
|
|
1438
1448
|
|
|
@@ -1575,6 +1585,7 @@ export default {
|
|
|
1575
1585
|
taskExamine,
|
|
1576
1586
|
customPresetHintMessage,
|
|
1577
1587
|
currentOrgName,
|
|
1588
|
+
currentOrgSelectorParams,
|
|
1578
1589
|
notificationMessageReadOnly,
|
|
1579
1590
|
readOnlyNotificationType,
|
|
1580
1591
|
otherOrgName,
|
|
@@ -1586,12 +1597,47 @@ export default {
|
|
|
1586
1597
|
isCanPreAddSign
|
|
1587
1598
|
}
|
|
1588
1599
|
} = res;
|
|
1589
|
-
if(
|
|
1590
|
-
that.
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1600
|
+
if (currentOrgSelectorParams.enableCurrentOrgConfig == 'true') {
|
|
1601
|
+
that.currentOrgSelectorTabs =
|
|
1602
|
+
currentOrgSelectorParams.currentOrgType.split(',');
|
|
1603
|
+
let currentOrgparams =
|
|
1604
|
+
currentOrgSelectorParams.currentOrgRange.split(',');
|
|
1605
|
+
that.currentOrgSelectorTabs.map((x, i) => {
|
|
1606
|
+
that.currentOrgSelectorParams[x] = {
|
|
1607
|
+
pid: currentOrgparams[i] == 'my' ? choiceOrgId : currentOrgparams[i]
|
|
1608
|
+
};
|
|
1609
|
+
});
|
|
1610
|
+
that.currentOrgSelectorTabs = that.currentOrgSelectorTabs.join(',')
|
|
1611
|
+
}
|
|
1612
|
+
if (currentOrgSelectorParams.enableForeignOrgConfig == 'true') {
|
|
1613
|
+
that.foreignOrgSelectorTabs =
|
|
1614
|
+
currentOrgSelectorParams.foreignOrgType.split(',');
|
|
1615
|
+
let foreignOrgparams =
|
|
1616
|
+
currentOrgSelectorParams.foreignOrgRange.split(',');
|
|
1617
|
+
that.foreignOrgSelectorTabs.map((x, i) => {
|
|
1618
|
+
that.foreignOrgSelectorParams[x] = {
|
|
1619
|
+
pid:
|
|
1620
|
+
foreignOrgparams[i] == 'my'
|
|
1621
|
+
? choiceOrgId
|
|
1622
|
+
: foreignOrgparams[i]
|
|
1623
|
+
};
|
|
1624
|
+
});
|
|
1625
|
+
that.foreignOrgSelectorTabs = that.foreignOrgSelectorTabs.join(',')
|
|
1626
|
+
}
|
|
1627
|
+
if (
|
|
1628
|
+
taskOperationShiftedNodeList &&
|
|
1629
|
+
taskOperationShiftedNodeList.length > 0
|
|
1630
|
+
) {
|
|
1631
|
+
that.taskOperationShiftedNodeList = [];
|
|
1632
|
+
taskOperationShiftedNodeList.map((x) => {
|
|
1633
|
+
that.taskOperationShiftedNodeList.push(x.nodeId);
|
|
1634
|
+
that.taskOperations.push({
|
|
1635
|
+
key: x.nodeId,
|
|
1636
|
+
value: x.nodeName,
|
|
1637
|
+
isNextNode: true,
|
|
1638
|
+
nextOperate: x.nextOperate
|
|
1639
|
+
});
|
|
1640
|
+
});
|
|
1595
1641
|
}
|
|
1596
1642
|
that.pendingItemHandleDescription = pendingItemHandleDescription;
|
|
1597
1643
|
nextNodeCheckType && (that.nextNodeCheckType = nextNodeCheckType);
|
|
@@ -1630,7 +1676,10 @@ export default {
|
|
|
1630
1676
|
}
|
|
1631
1677
|
that.isSpecial = res.data.isSpecial;
|
|
1632
1678
|
that.processObj = res.data;
|
|
1633
|
-
that.taskOperations = [
|
|
1679
|
+
that.taskOperations = [
|
|
1680
|
+
...res.data.taskOperations,
|
|
1681
|
+
...that.taskOperations
|
|
1682
|
+
];
|
|
1634
1683
|
if (that.taskOperations && that.taskOperations.length > 0) {
|
|
1635
1684
|
let isSelected = false;
|
|
1636
1685
|
that.taskOperations.map((item) => {
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
:placeholder="placeholder"
|
|
27
27
|
v-model="opinion"
|
|
28
28
|
ref="opinionInp"
|
|
29
|
-
:autofocus="pendingItemHandleDescription && showDescription"
|
|
30
29
|
type="textarea"
|
|
31
30
|
rows="3"
|
|
32
31
|
@input="onInput"
|
|
@@ -54,7 +53,6 @@
|
|
|
54
53
|
ref="opinionInp"
|
|
55
54
|
type="textarea"
|
|
56
55
|
rows="3"
|
|
57
|
-
:autofocus="pendingItemHandleDescription && showDescription"
|
|
58
56
|
@focus="handleFocus"
|
|
59
57
|
@blur="handleBlur"
|
|
60
58
|
@input="onInput"
|
|
@@ -237,7 +235,7 @@ export default {
|
|
|
237
235
|
})
|
|
238
236
|
.then(() => {
|
|
239
237
|
this.opinion = this.pendingItemHandleDescription;
|
|
240
|
-
|
|
238
|
+
this.$refs.opinionInp[0].$children[0].focus();
|
|
241
239
|
})
|
|
242
240
|
.catch(() => {
|
|
243
241
|
// on cancel
|
|
@@ -246,7 +244,7 @@ export default {
|
|
|
246
244
|
}
|
|
247
245
|
},
|
|
248
246
|
handleBlur() {
|
|
249
|
-
this.showDescription = !this.showDescription
|
|
247
|
+
this.showDescription = !this.showDescription;
|
|
250
248
|
},
|
|
251
249
|
|
|
252
250
|
handleSave(info) {
|
|
@@ -742,11 +742,15 @@ export default {
|
|
|
742
742
|
this.newParam.selecttype =
|
|
743
743
|
this.newTabs[this.selectIndex].param.selecttype;
|
|
744
744
|
if (this.newParam.selecttype === 'persongroup') {
|
|
745
|
-
this.newParam.
|
|
745
|
+
if(this.newParam[this.newTabs[this.selectIndex].name]){
|
|
746
|
+
this.newParam = {...this.newTabs[this.selectIndex].param,...this.newParam[this.newTabs[this.selectIndex].name]?this.newParam[this.newTabs[this.selectIndex].name]:{}}
|
|
747
|
+
}else{
|
|
748
|
+
this.newParam.pid = 'root';
|
|
749
|
+
}
|
|
746
750
|
this.newParam.myUserid =
|
|
747
751
|
this.newParam.myUserid || $.getStorage('userId');
|
|
748
752
|
} else {
|
|
749
|
-
this.newParam = {...this.newTabs[this.selectIndex].param,...this.newParam}
|
|
753
|
+
this.newParam = {...this.newTabs[this.selectIndex].param,...this.newParam[this.newTabs[this.selectIndex].name]?this.newParam[this.newTabs[this.selectIndex].name]:{}}
|
|
750
754
|
// this.newTabs[this.selectIndex].param.pid || this.param.pid || 'root';
|
|
751
755
|
}
|
|
752
756
|
delete this.newParam.department
|