eoss-ui 0.8.3 → 0.8.5
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/button-group.js +46 -45
- package/lib/button.js +46 -45
- package/lib/calogin.js +89 -57
- package/lib/checkbox-group.js +46 -45
- package/lib/data-table-form.js +46 -45
- package/lib/data-table.js +95 -69
- package/lib/date-picker.js +46 -45
- package/lib/dialog.js +46 -45
- package/lib/eoss-ui.common.js +401 -333
- package/lib/flow-group.js +46 -45
- package/lib/flow-list.js +46 -45
- package/lib/flow.js +285 -270
- package/lib/form.js +46 -45
- package/lib/handle-user.js +46 -45
- package/lib/handler.js +46 -45
- package/lib/icon.js +46 -45
- package/lib/index.js +1 -1
- package/lib/input-number.js +46 -45
- package/lib/input.js +46 -45
- package/lib/login.js +46 -45
- package/lib/main.js +63 -61
- package/lib/nav.js +46 -45
- package/lib/page.js +46 -45
- package/lib/pagination.js +46 -45
- package/lib/player.js +46 -45
- package/lib/qr-code.js +46 -45
- package/lib/radio-group.js +46 -45
- package/lib/retrial-auth.js +46 -45
- package/lib/select-ganged.js +46 -45
- package/lib/select.js +46 -45
- package/lib/selector-panel.js +46 -45
- package/lib/selector.js +46 -45
- package/lib/sizer.js +46 -45
- package/lib/steps.js +46 -45
- package/lib/switch.js +46 -45
- package/lib/table-form.js +46 -45
- package/lib/tabs.js +46 -45
- package/lib/tips.js +46 -45
- package/lib/tree-group.js +46 -45
- package/lib/tree.js +46 -45
- package/lib/upload.js +46 -45
- package/lib/utils/util.js +46 -45
- package/lib/wujie.js +46 -45
- package/lib/wxlogin.js +46 -45
- package/package.json +1 -1
- package/packages/calogin/src/plugin.js +3 -3
- package/packages/data-table/src/main.vue +49 -20
- package/packages/flow/src/processForm.vue +259 -228
- package/packages/main/src/main.vue +1 -1
- package/packages/main/src/simplicityTop/index.vue +6 -5
- package/src/index.js +1 -1
- package/src/utils/util.js +49 -48
package/lib/flow.js
CHANGED
|
@@ -286,6 +286,7 @@ var lodash = __webpack_require__(12);
|
|
|
286
286
|
|
|
287
287
|
|
|
288
288
|
var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
|
|
289
|
+
var winTop = getWinTop();
|
|
289
290
|
var isIE = /MSIE|Trident/.test(navigator.userAgent);
|
|
290
291
|
var parser = new external_ua_parser_js_["UAParser"]();
|
|
291
292
|
var $hueStep = 2;
|
|
@@ -833,19 +834,19 @@ var busEmit = function busEmit(that, _ref3) {
|
|
|
833
834
|
return;
|
|
834
835
|
}
|
|
835
836
|
if (isIE) {
|
|
836
|
-
if (
|
|
837
|
-
|
|
837
|
+
if (winTop !== win.self) {
|
|
838
|
+
winTop.postMessage({ method: method, query: args, args: args }, '*');
|
|
838
839
|
return;
|
|
839
840
|
}
|
|
840
841
|
var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
|
|
841
842
|
bus && (Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args));
|
|
842
843
|
} else {
|
|
843
|
-
if (
|
|
844
|
+
if (winTop !== win.self) {
|
|
844
845
|
var _bus2 = win.$wujie ? win.$wujie.bus : null;
|
|
845
846
|
if (_bus2) {
|
|
846
847
|
Array.isArray(args) ? _bus2.$emit.apply(_bus2, [method].concat(args)) : _bus2.$emit(method, args);
|
|
847
848
|
} else {
|
|
848
|
-
|
|
849
|
+
winTop.postMessage({ method: method, query: args, args: args }, '*');
|
|
849
850
|
}
|
|
850
851
|
return;
|
|
851
852
|
}
|
|
@@ -1083,7 +1084,7 @@ var delUrlParam = function delUrlParam(_ref4) {
|
|
|
1083
1084
|
|
|
1084
1085
|
var pUrl = '';
|
|
1085
1086
|
try {
|
|
1086
|
-
pUrl =
|
|
1087
|
+
pUrl = winTop.location.href;
|
|
1087
1088
|
} catch (error) {
|
|
1088
1089
|
pUrl = win.location.href;
|
|
1089
1090
|
}
|
|
@@ -2537,7 +2538,7 @@ var isLogined = function () {
|
|
|
2537
2538
|
pathname = '';
|
|
2538
2539
|
|
|
2539
2540
|
try {
|
|
2540
|
-
pathname =
|
|
2541
|
+
pathname = winTop.location.pathname;
|
|
2541
2542
|
} catch (error) {
|
|
2542
2543
|
pathname = win.location.pathname;
|
|
2543
2544
|
}
|
|
@@ -2603,12 +2604,12 @@ var isLogined = function () {
|
|
|
2603
2604
|
});
|
|
2604
2605
|
try {
|
|
2605
2606
|
var url = delUrlParam({
|
|
2606
|
-
url:
|
|
2607
|
+
url: winTop.location.href,
|
|
2607
2608
|
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2608
2609
|
});
|
|
2609
|
-
|
|
2610
|
+
winTop.location.href = url;
|
|
2610
2611
|
setTimeout(function () {
|
|
2611
|
-
|
|
2612
|
+
winTop.location.reload();
|
|
2612
2613
|
}, 200);
|
|
2613
2614
|
} catch (error) {
|
|
2614
2615
|
var _url2 = delUrlParam({
|
|
@@ -2627,8 +2628,8 @@ var isLogined = function () {
|
|
|
2627
2628
|
break;
|
|
2628
2629
|
case 3:
|
|
2629
2630
|
try {
|
|
2630
|
-
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(
|
|
2631
|
-
|
|
2631
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(winTop.location.href));
|
|
2632
|
+
winTop.location.href = href;
|
|
2632
2633
|
} catch (error) {
|
|
2633
2634
|
var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.location.href));
|
|
2634
2635
|
win.location.href = _href;
|
|
@@ -2642,18 +2643,18 @@ var isLogined = function () {
|
|
|
2642
2643
|
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
2643
2644
|
try {
|
|
2644
2645
|
if (loginPage) {
|
|
2645
|
-
|
|
2646
|
+
winTop.location.replace(loginPage);
|
|
2646
2647
|
} else if (document.referrer) {
|
|
2647
2648
|
var referrerUrl = new URL(document.referrer);
|
|
2648
|
-
if (referrerUrl.host !==
|
|
2649
|
-
|
|
2650
|
-
} else if (
|
|
2651
|
-
|
|
2649
|
+
if (referrerUrl.host !== winTop.location.host) {
|
|
2650
|
+
winTop.location.replace(document.referrer);
|
|
2651
|
+
} else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
|
|
2652
|
+
winTop.location.href = './login.html';
|
|
2652
2653
|
} else {
|
|
2653
2654
|
next('/login');
|
|
2654
2655
|
}
|
|
2655
|
-
} else if (
|
|
2656
|
-
|
|
2656
|
+
} else if (winTop.location.href.indexOf('main.html') > -1) {
|
|
2657
|
+
winTop.location.href = './login.html';
|
|
2657
2658
|
} else {
|
|
2658
2659
|
next('/login');
|
|
2659
2660
|
}
|
|
@@ -2672,18 +2673,18 @@ var isLogined = function () {
|
|
|
2672
2673
|
callback: function callback() {
|
|
2673
2674
|
try {
|
|
2674
2675
|
if (loginPage) {
|
|
2675
|
-
|
|
2676
|
+
winTop.location.replace(loginPage);
|
|
2676
2677
|
} else if (document.referrer) {
|
|
2677
2678
|
var referrerUrl = new URL(document.referrer);
|
|
2678
|
-
if (referrerUrl.host !==
|
|
2679
|
-
|
|
2680
|
-
} else if (
|
|
2681
|
-
|
|
2679
|
+
if (referrerUrl.host !== winTop.location.host) {
|
|
2680
|
+
winTop.location.replace(document.referrer);
|
|
2681
|
+
} else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
|
|
2682
|
+
winTop.location.href = './login.html';
|
|
2682
2683
|
} else {
|
|
2683
2684
|
next('/login');
|
|
2684
2685
|
}
|
|
2685
|
-
} else if (
|
|
2686
|
-
|
|
2686
|
+
} else if (winTop.location.href.indexOf('main.html') > -1) {
|
|
2687
|
+
winTop.location.href = './login.html';
|
|
2687
2688
|
} else {
|
|
2688
2689
|
next('/login');
|
|
2689
2690
|
}
|
|
@@ -2712,19 +2713,19 @@ var isLogined = function () {
|
|
|
2712
2713
|
} else {
|
|
2713
2714
|
try {
|
|
2714
2715
|
if (loginPage) {
|
|
2715
|
-
|
|
2716
|
+
winTop.location.replace(loginPage);
|
|
2716
2717
|
} else if (document.referrer) {
|
|
2717
2718
|
referrerUrl = new URL(document.referrer);
|
|
2718
2719
|
|
|
2719
|
-
if (referrerUrl.host !==
|
|
2720
|
-
|
|
2721
|
-
} else if (
|
|
2722
|
-
|
|
2720
|
+
if (referrerUrl.host !== winTop.location.host) {
|
|
2721
|
+
winTop.location.replace(document.referrer);
|
|
2722
|
+
} else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
|
|
2723
|
+
winTop.location.href = './login.html';
|
|
2723
2724
|
} else {
|
|
2724
2725
|
next('/login');
|
|
2725
2726
|
}
|
|
2726
|
-
} else if (
|
|
2727
|
-
|
|
2727
|
+
} else if (winTop.location.href.indexOf('main.html') > -1) {
|
|
2728
|
+
winTop.location.href = './login.html';
|
|
2728
2729
|
} else {
|
|
2729
2730
|
next('/login');
|
|
2730
2731
|
}
|
|
@@ -2856,7 +2857,7 @@ var util_loading = function loading($loading, res) {
|
|
|
2856
2857
|
}
|
|
2857
2858
|
if (isObject(res)) {
|
|
2858
2859
|
var config = extend({}, {
|
|
2859
|
-
target:
|
|
2860
|
+
target: winTop.document.body,
|
|
2860
2861
|
fullscreen: true,
|
|
2861
2862
|
background: 'rgba(0, 0, 0, 0.65)',
|
|
2862
2863
|
spinner: 'el-icon-loading',
|
|
@@ -2865,7 +2866,7 @@ var util_loading = function loading($loading, res) {
|
|
|
2865
2866
|
return $loading(config);
|
|
2866
2867
|
} else {
|
|
2867
2868
|
var _loading = $loading({
|
|
2868
|
-
target:
|
|
2869
|
+
target: winTop.document.body,
|
|
2869
2870
|
fullscreen: true,
|
|
2870
2871
|
background: 'rgba(0, 0, 0, 0.65)',
|
|
2871
2872
|
spinner: 'el-icon-loading',
|
|
@@ -3011,7 +3012,7 @@ var util_responses = function responses(data) {
|
|
|
3011
3012
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
|
|
3012
3013
|
var href = '';
|
|
3013
3014
|
try {
|
|
3014
|
-
href =
|
|
3015
|
+
href = winTop.location.href;
|
|
3015
3016
|
} catch (error) {
|
|
3016
3017
|
href = win.location.href;
|
|
3017
3018
|
}
|
|
@@ -3036,7 +3037,7 @@ var util_responses = function responses(data) {
|
|
|
3036
3037
|
if (loginPage) {
|
|
3037
3038
|
var src = void 0;
|
|
3038
3039
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
3039
|
-
var pathname =
|
|
3040
|
+
var pathname = winTop.location.pathname;
|
|
3040
3041
|
if (pathname !== '/') {
|
|
3041
3042
|
pathname = pathname.split('/');
|
|
3042
3043
|
pathname.splice(pathname.length - 1);
|
|
@@ -3048,16 +3049,16 @@ var util_responses = function responses(data) {
|
|
|
3048
3049
|
} else {
|
|
3049
3050
|
src = loginPage;
|
|
3050
3051
|
}
|
|
3051
|
-
|
|
3052
|
-
} else if (
|
|
3053
|
-
|
|
3052
|
+
winTop.location.href = src;
|
|
3053
|
+
} else if (winTop.location.href.indexOf('main.html') > -1) {
|
|
3054
|
+
winTop.location.href = './login.html';
|
|
3054
3055
|
} else {
|
|
3055
|
-
var hash =
|
|
3056
|
+
var hash = winTop.location.hash;
|
|
3056
3057
|
if (hash) {
|
|
3057
|
-
var len =
|
|
3058
|
-
|
|
3058
|
+
var len = winTop.location.href.indexOf(hash);
|
|
3059
|
+
winTop.location.href = win.location.href.slice(0, len) + '#/login';
|
|
3059
3060
|
} else {
|
|
3060
|
-
|
|
3061
|
+
winTop.location.href = '/login.html';
|
|
3061
3062
|
}
|
|
3062
3063
|
}
|
|
3063
3064
|
} catch (error) {
|
|
@@ -3876,9 +3877,9 @@ var removeCookie = function removeCookie(key) {
|
|
|
3876
3877
|
|
|
3877
3878
|
var winTopOpen = function winTopOpen(config) {
|
|
3878
3879
|
if (isIE) {
|
|
3879
|
-
if (
|
|
3880
|
+
if (winTop !== win.self) {
|
|
3880
3881
|
try {
|
|
3881
|
-
|
|
3882
|
+
winTop.windowOpen(config);
|
|
3882
3883
|
} catch (error) {
|
|
3883
3884
|
win.postMessage({ method: 'windowOpen', query: config }, '*');
|
|
3884
3885
|
}
|
|
@@ -8914,8 +8915,8 @@ var CommonOpinions_component = Object(componentNormalizer["a" /* default */])(
|
|
|
8914
8915
|
)
|
|
8915
8916
|
|
|
8916
8917
|
/* harmony default export */ var CommonOpinions = (CommonOpinions_component.exports);
|
|
8917
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=
|
|
8918
|
-
var
|
|
8918
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=6df91879&
|
|
8919
|
+
var processFormvue_type_template_id_6df91879_render = function () {
|
|
8919
8920
|
var _vm = this
|
|
8920
8921
|
var _h = _vm.$createElement
|
|
8921
8922
|
var _c = _vm._self._c || _h
|
|
@@ -9743,11 +9744,11 @@ var processFormvue_type_template_id_80a2c5c2_render = function () {
|
|
|
9743
9744
|
1
|
|
9744
9745
|
)
|
|
9745
9746
|
}
|
|
9746
|
-
var
|
|
9747
|
-
|
|
9747
|
+
var processFormvue_type_template_id_6df91879_staticRenderFns = []
|
|
9748
|
+
processFormvue_type_template_id_6df91879_render._withStripped = true
|
|
9748
9749
|
|
|
9749
9750
|
|
|
9750
|
-
// CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=
|
|
9751
|
+
// CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=6df91879&
|
|
9751
9752
|
|
|
9752
9753
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/selectUser.vue?vue&type=template&id=5424da0a&
|
|
9753
9754
|
var selectUservue_type_template_id_5424da0a_render = function () {
|
|
@@ -11864,7 +11865,10 @@ var processFormvue_type_script_lang_js_components;
|
|
|
11864
11865
|
nextCurrentOrgObjSelect: [],
|
|
11865
11866
|
isHideCurrentOrg: false,
|
|
11866
11867
|
isHideOtherOrg: false,
|
|
11867
|
-
currentOrgSelectorParams: {
|
|
11868
|
+
currentOrgSelectorParams: {
|
|
11869
|
+
filid: JSON.parse(util["a" /* default */].getStorage('mainConfig')).userModel.orgId,
|
|
11870
|
+
only_filid: true
|
|
11871
|
+
},
|
|
11868
11872
|
foreignOrgSelectorParams: { filid: 'all', nofilid: 1 },
|
|
11869
11873
|
nextNode: {
|
|
11870
11874
|
nodeName: '',
|
|
@@ -12099,6 +12103,8 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12099
12103
|
}
|
|
12100
12104
|
},
|
|
12101
12105
|
selecNext: function selecNext(val) {
|
|
12106
|
+
var _this3 = this;
|
|
12107
|
+
|
|
12102
12108
|
this.nextNode.nextUser = [];
|
|
12103
12109
|
this.options = [];
|
|
12104
12110
|
this.selectUserList = [];
|
|
@@ -12110,7 +12116,11 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12110
12116
|
}
|
|
12111
12117
|
this.nextNode.nodeInfo = this.operationList[val].list;
|
|
12112
12118
|
if (this.nextNode.nodeInfo.length > 0) {
|
|
12113
|
-
|
|
12119
|
+
var defaultNodeData = this.nextNode.nodeInfo.filter(function (x) {
|
|
12120
|
+
return x.nodeId == _this3.defaultNextNode;
|
|
12121
|
+
});
|
|
12122
|
+
length;
|
|
12123
|
+
this.nextNode.nextNode = defaultNodeData.length > 0 ? this.defaultNextNode : this.nextNode.nodeInfo[0].nodeId;
|
|
12114
12124
|
}
|
|
12115
12125
|
this.getNodeInfos();
|
|
12116
12126
|
},
|
|
@@ -12185,7 +12195,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12185
12195
|
this.getsubProcessColumns();
|
|
12186
12196
|
},
|
|
12187
12197
|
getNodeType: function getNodeType() {
|
|
12188
|
-
var
|
|
12198
|
+
var _this4 = this;
|
|
12189
12199
|
|
|
12190
12200
|
util["a" /* default */].ajax({
|
|
12191
12201
|
url: api["B" /* findCodeValues */],
|
|
@@ -12198,23 +12208,23 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12198
12208
|
data = res.data;
|
|
12199
12209
|
|
|
12200
12210
|
if (status === 'success') {
|
|
12201
|
-
|
|
12211
|
+
_this4.nextNode.noticeList = data;
|
|
12202
12212
|
}
|
|
12203
12213
|
}).catch(function (err) {
|
|
12204
|
-
if (
|
|
12205
|
-
|
|
12214
|
+
if (_this4.showBtn) {
|
|
12215
|
+
_this4.loading = false;
|
|
12206
12216
|
} else {
|
|
12207
|
-
|
|
12217
|
+
_this4.allLoading.close();
|
|
12208
12218
|
}
|
|
12209
12219
|
if (err.message && err.message !== 'canceled') {
|
|
12210
|
-
|
|
12220
|
+
_this4.$message.error(err.message);
|
|
12211
12221
|
}
|
|
12212
12222
|
});
|
|
12213
12223
|
},
|
|
12214
12224
|
|
|
12215
12225
|
//获取通知信息
|
|
12216
12226
|
getMessage: function getMessage() {
|
|
12217
|
-
var
|
|
12227
|
+
var _this5 = this;
|
|
12218
12228
|
|
|
12219
12229
|
var params = {
|
|
12220
12230
|
processDefinitionId: this.processDefinitionId,
|
|
@@ -12226,21 +12236,21 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12226
12236
|
}
|
|
12227
12237
|
util["a" /* default */].ajax({ url: api["W" /* getNotificationMsg */], params: params, methods: 'post' }).then(function (res) {
|
|
12228
12238
|
if (res.status === 'success') {
|
|
12229
|
-
if (!
|
|
12230
|
-
|
|
12231
|
-
|
|
12239
|
+
if (!_this5.showBtn) {
|
|
12240
|
+
_this5.oldMessage = res.message;
|
|
12241
|
+
_this5.nextNode.noticeInfo = res.message.replace('{title}', _this5.formTitle);
|
|
12232
12242
|
} else {
|
|
12233
|
-
|
|
12243
|
+
_this5.nextNode.noticeInfo = res.message;
|
|
12234
12244
|
}
|
|
12235
12245
|
}
|
|
12236
12246
|
}).catch(function (err) {
|
|
12237
|
-
if (
|
|
12238
|
-
|
|
12247
|
+
if (_this5.showBtn) {
|
|
12248
|
+
_this5.loading = false;
|
|
12239
12249
|
} else {
|
|
12240
|
-
|
|
12250
|
+
_this5.allLoading.close();
|
|
12241
12251
|
}
|
|
12242
12252
|
if (err.message && err.message !== 'canceled') {
|
|
12243
|
-
|
|
12253
|
+
_this5.$message.error(err.message);
|
|
12244
12254
|
}
|
|
12245
12255
|
});
|
|
12246
12256
|
},
|
|
@@ -12250,11 +12260,11 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12250
12260
|
this.saveProcess(formName);
|
|
12251
12261
|
},
|
|
12252
12262
|
saveProcess: function saveProcess(formName) {
|
|
12253
|
-
var
|
|
12263
|
+
var _this6 = this;
|
|
12254
12264
|
|
|
12255
12265
|
this.$refs[formName].validate(function (valid) {
|
|
12256
12266
|
if (valid) {
|
|
12257
|
-
var _nextNode =
|
|
12267
|
+
var _nextNode = _this6.nextNode,
|
|
12258
12268
|
nextNode = _nextNode.nextNode,
|
|
12259
12269
|
nextUser = _nextNode.nextUser,
|
|
12260
12270
|
noticeInfo = _nextNode.noticeInfo,
|
|
@@ -12271,31 +12281,31 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12271
12281
|
// return this.$message.warning('请选择通知方式');
|
|
12272
12282
|
// }
|
|
12273
12283
|
|
|
12274
|
-
if (
|
|
12275
|
-
if ((nextUser == '' ||
|
|
12276
|
-
return
|
|
12284
|
+
if (_this6.isShowNextUser) {
|
|
12285
|
+
if ((nextUser == '' || _this6.multiple && nextUser.length == 0) && !_this6.isHideCurrentOrg && !_this6.isHideOtherOrg) {
|
|
12286
|
+
return _this6.$message.warning('请选择下步办理人');
|
|
12277
12287
|
}
|
|
12278
12288
|
} else {
|
|
12279
|
-
if (nextOrgId == '' ||
|
|
12280
|
-
return
|
|
12289
|
+
if (nextOrgId == '' || _this6.multiple && nextOrgId.length == 0) {
|
|
12290
|
+
return _this6.$message.warning('请选择办理对象');
|
|
12281
12291
|
}
|
|
12282
12292
|
}
|
|
12283
|
-
if ((
|
|
12284
|
-
return
|
|
12293
|
+
if ((_this6.isHideOtherOrg || _this6.isHideCurrentOrg) && !nextCurrentOrgObj && !nextOtherOrgObj) {
|
|
12294
|
+
return _this6.$message.warning('请选择办理对象');
|
|
12285
12295
|
}
|
|
12286
|
-
if (
|
|
12287
|
-
|
|
12296
|
+
if (_this6.isCancelSecondConfirmationType) {
|
|
12297
|
+
_this6.$confirm('确认提交吗?', '提示', {
|
|
12288
12298
|
confirmButtonText: '确定',
|
|
12289
12299
|
cancelButtonText: '取消',
|
|
12290
12300
|
type: 'warning'
|
|
12291
12301
|
}).then(function () {
|
|
12292
|
-
if (
|
|
12293
|
-
|
|
12302
|
+
if (_this6.showBtn) {
|
|
12303
|
+
_this6.loading = true;
|
|
12294
12304
|
} else {
|
|
12295
|
-
|
|
12305
|
+
_this6.allLoading = util["a" /* default */].loading(_this6.$loading, '加载中...');
|
|
12296
12306
|
}
|
|
12297
12307
|
var newNextUser = [];
|
|
12298
|
-
if (
|
|
12308
|
+
if (_this6.multiple) {
|
|
12299
12309
|
nextUser && nextUser.map(function (item) {
|
|
12300
12310
|
return newNextUser.push(item);
|
|
12301
12311
|
});
|
|
@@ -12305,108 +12315,108 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12305
12315
|
newNoticeType = noticeType.join(',');
|
|
12306
12316
|
}
|
|
12307
12317
|
var params = {
|
|
12308
|
-
processDefinitionId:
|
|
12309
|
-
nextUserId:
|
|
12318
|
+
processDefinitionId: _this6.processDefinitionId,
|
|
12319
|
+
nextUserId: _this6.multiple ? newNextUser.join(',') : nextUser,
|
|
12310
12320
|
nextNodeId: nextNode,
|
|
12311
|
-
businessId:
|
|
12321
|
+
businessId: _this6.businessId,
|
|
12312
12322
|
notificationType: newNoticeType,
|
|
12313
12323
|
userId: util["a" /* default */].getStorage('userId'),
|
|
12314
12324
|
notificationMsg: noticeInfo,
|
|
12315
|
-
customPresetUserJson: JSON.stringify(
|
|
12316
|
-
presetUserJson: JSON.stringify(
|
|
12317
|
-
nextReadUserId:
|
|
12318
|
-
nextOrgId: !
|
|
12325
|
+
customPresetUserJson: JSON.stringify(_this6.presetList),
|
|
12326
|
+
presetUserJson: JSON.stringify(_this6.presetUserJson),
|
|
12327
|
+
nextReadUserId: _this6.readMultiple ? _this6.mixReadList && _this6.mixReadList.join('|') : nextReadUserId,
|
|
12328
|
+
nextOrgId: !_this6.isShowNextUser ? _this6.multiple ? _this6.mixOrgIdList && _this6.mixOrgIdList.join('|') : nextOrgId : '',
|
|
12319
12329
|
handleExplain: handleExplain,
|
|
12320
|
-
presetReadUserId:
|
|
12321
|
-
opinion:
|
|
12330
|
+
presetReadUserId: _this6.mixPresetList && _this6.mixPresetList.length > 0 ? _this6.mixPresetList.join('|') : presetReadUserId.join(','),
|
|
12331
|
+
opinion: _this6.newOpinion || newOpinion
|
|
12322
12332
|
};
|
|
12323
|
-
if (
|
|
12333
|
+
if (_this6.enableCustomLimitTimeSetting) {
|
|
12324
12334
|
params.customLimitTime = customLimitTime;
|
|
12325
12335
|
if (!customLimitTime) {
|
|
12326
|
-
|
|
12327
|
-
|
|
12336
|
+
_this6.$message.warning('请选择或输入限时办理的天数');
|
|
12337
|
+
_this6.nextNode.customLimitTime = '';
|
|
12328
12338
|
return;
|
|
12329
12339
|
} else if (!Number(customLimitTime) || customLimitTime.indexOf('.') != -1 || Number(customLimitTime) < 0) {
|
|
12330
|
-
|
|
12331
|
-
|
|
12340
|
+
_this6.$message.warning('请输入正确的天数');
|
|
12341
|
+
_this6.nextNode.customLimitTime = '';
|
|
12332
12342
|
return;
|
|
12333
12343
|
}
|
|
12334
12344
|
}
|
|
12335
|
-
if (
|
|
12345
|
+
if (_this6.isHideCurrentOrg) {
|
|
12336
12346
|
params.nextCurrentOrgObj = nextCurrentOrgObj;
|
|
12337
12347
|
}
|
|
12338
|
-
if (
|
|
12348
|
+
if (_this6.isHideOtherOrg) {
|
|
12339
12349
|
params.nextOtherOrgObj = nextOtherOrgObj;
|
|
12340
12350
|
}
|
|
12341
|
-
if (
|
|
12342
|
-
if (
|
|
12351
|
+
if (_this6.activeNames != '1') delete params.customPresetUserJson;
|
|
12352
|
+
if (_this6.isFreeStartFlow || _this6.formType === 'readTransfer') {
|
|
12343
12353
|
var newParm = {};
|
|
12344
|
-
newParm.copyHistory =
|
|
12354
|
+
newParm.copyHistory = _this6.copyHistory === 'needCopyPendedHistory';
|
|
12345
12355
|
newParm.startFlowParamJson = params;
|
|
12346
12356
|
// newParm.startFlowParamJson.businessId = this.id; //this.id
|
|
12347
12357
|
newParm.startFlowParamJson.taskExamineParam = {
|
|
12348
|
-
startFlowFirstNodeName:
|
|
12358
|
+
startFlowFirstNodeName: _this6.taskExamineParam
|
|
12349
12359
|
};
|
|
12350
12360
|
newParm.startFlowParamJson = JSON.stringify(newParm.startFlowParamJson);
|
|
12351
|
-
for (var key in
|
|
12352
|
-
if (Array.isArray(
|
|
12353
|
-
|
|
12361
|
+
for (var key in _this6.taskParams) {
|
|
12362
|
+
if (Array.isArray(_this6.taskParams[key])) {
|
|
12363
|
+
_this6.taskParams[key] = _this6.taskParams[key].length > 0 ? _this6.taskParams[key].join(',') : '';
|
|
12354
12364
|
}
|
|
12355
12365
|
}
|
|
12356
12366
|
|
|
12357
|
-
newParm.submitTaskParamJson = JSON.stringify(
|
|
12358
|
-
if (
|
|
12367
|
+
newParm.submitTaskParamJson = JSON.stringify(_this6.taskParams);
|
|
12368
|
+
if (_this6.formType == 'readTransfer') {
|
|
12359
12369
|
newParm.readTransferHandleStartFlowParamJson = JSON.stringify(params);
|
|
12360
|
-
newParm.taskReadEndParamJson = JSON.stringify(
|
|
12370
|
+
newParm.taskReadEndParamJson = JSON.stringify(_this6.taskParams);
|
|
12361
12371
|
delete newParm.copyHistory;
|
|
12362
12372
|
delete newParm.startFlowParamJson;
|
|
12363
12373
|
delete newParm.submitTaskParamJson;
|
|
12364
12374
|
}
|
|
12365
12375
|
params = newParm;
|
|
12366
12376
|
}
|
|
12367
|
-
if (
|
|
12368
|
-
params.pendingId =
|
|
12377
|
+
if (_this6.copyHistory && !_this6.isFreeStartFlow) {
|
|
12378
|
+
params.pendingId = _this6.pendingId;
|
|
12369
12379
|
delete params.businessId;
|
|
12370
12380
|
}
|
|
12371
12381
|
util["a" /* default */].ajax({
|
|
12372
|
-
url:
|
|
12382
|
+
url: _this6.isFreeStartFlow ? api["H" /* freeStartFlowWithSubmitTask */] : _this6.formType == 'readTransfer' ? api["Yb" /* startReadTransferHandleFlowWithTaskReadEnd */] : _this6.copyHistory ? api["G" /* freeStartFlow */] : api["Lb" /* register */],
|
|
12373
12383
|
method: 'post',
|
|
12374
12384
|
data: params
|
|
12375
12385
|
}).then(function (res) {
|
|
12376
12386
|
var status = res.status,
|
|
12377
12387
|
message = res.message;
|
|
12378
12388
|
|
|
12379
|
-
if (
|
|
12380
|
-
|
|
12389
|
+
if (_this6.showBtn) {
|
|
12390
|
+
_this6.loading = false;
|
|
12381
12391
|
} else {
|
|
12382
|
-
|
|
12392
|
+
_this6.allLoading.close();
|
|
12383
12393
|
}
|
|
12384
12394
|
if (status === 'success' || res.rCode == 0) {
|
|
12385
|
-
|
|
12386
|
-
|
|
12395
|
+
_this6.quit(true);
|
|
12396
|
+
_this6.simpleTips && _this6.$message.success('操作成功');
|
|
12387
12397
|
} else {
|
|
12388
|
-
|
|
12398
|
+
_this6.$message.error(message || '系统错误,请联系管理员!');
|
|
12389
12399
|
}
|
|
12390
12400
|
}).catch(function (err) {
|
|
12391
|
-
if (
|
|
12392
|
-
|
|
12401
|
+
if (_this6.showBtn) {
|
|
12402
|
+
_this6.loading = false;
|
|
12393
12403
|
} else {
|
|
12394
|
-
|
|
12404
|
+
_this6.allLoading.close();
|
|
12395
12405
|
}
|
|
12396
12406
|
if (err.message && err.message !== 'canceled') {
|
|
12397
|
-
|
|
12407
|
+
_this6.$message.error(err.message);
|
|
12398
12408
|
}
|
|
12399
12409
|
});
|
|
12400
12410
|
});
|
|
12401
12411
|
return;
|
|
12402
12412
|
}
|
|
12403
|
-
if (
|
|
12404
|
-
|
|
12413
|
+
if (_this6.showBtn) {
|
|
12414
|
+
_this6.loading = true;
|
|
12405
12415
|
} else {
|
|
12406
|
-
|
|
12416
|
+
_this6.allLoading = util["a" /* default */].loading(_this6.$loading, '加载中...');
|
|
12407
12417
|
}
|
|
12408
12418
|
var newNextUser = [];
|
|
12409
|
-
if (
|
|
12419
|
+
if (_this6.multiple) {
|
|
12410
12420
|
nextUser && nextUser.map(function (item) {
|
|
12411
12421
|
return newNextUser.push(item);
|
|
12412
12422
|
});
|
|
@@ -12416,96 +12426,96 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12416
12426
|
newNoticeType = noticeType.join(',');
|
|
12417
12427
|
}
|
|
12418
12428
|
var params = {
|
|
12419
|
-
processDefinitionId:
|
|
12420
|
-
nextUserId:
|
|
12429
|
+
processDefinitionId: _this6.processDefinitionId,
|
|
12430
|
+
nextUserId: _this6.multiple ? newNextUser.join(',') : nextUser,
|
|
12421
12431
|
nextNodeId: nextNode,
|
|
12422
|
-
businessId:
|
|
12432
|
+
businessId: _this6.businessId,
|
|
12423
12433
|
notificationType: newNoticeType,
|
|
12424
12434
|
userId: util["a" /* default */].getStorage('userId'),
|
|
12425
12435
|
notificationMsg: noticeInfo,
|
|
12426
|
-
customPresetUserJson: JSON.stringify(
|
|
12427
|
-
presetUserJson: JSON.stringify(
|
|
12428
|
-
nextReadUserId:
|
|
12429
|
-
nextOrgId: !
|
|
12436
|
+
customPresetUserJson: JSON.stringify(_this6.presetList),
|
|
12437
|
+
presetUserJson: JSON.stringify(_this6.presetUserJson),
|
|
12438
|
+
nextReadUserId: _this6.readMultiple ? _this6.mixReadList && _this6.mixReadList.join('|') : nextReadUserId,
|
|
12439
|
+
nextOrgId: !_this6.isShowNextUser ? _this6.multiple ? _this6.mixOrgIdList && _this6.mixOrgIdList.join('|') : nextOrgId : '',
|
|
12430
12440
|
handleExplain: handleExplain,
|
|
12431
|
-
presetReadUserId:
|
|
12432
|
-
opinion:
|
|
12441
|
+
presetReadUserId: _this6.mixPresetList && _this6.mixPresetList.length > 0 ? _this6.mixPresetList.join('|') : presetReadUserId.join(','),
|
|
12442
|
+
opinion: _this6.newOpinion || newOpinion
|
|
12433
12443
|
};
|
|
12434
|
-
if (
|
|
12444
|
+
if (_this6.enableCustomLimitTimeSetting) {
|
|
12435
12445
|
params.customLimitTime = customLimitTime;
|
|
12436
12446
|
if (!customLimitTime) {
|
|
12437
|
-
|
|
12438
|
-
|
|
12447
|
+
_this6.$message.warning('请选择或输入限时办理的天数');
|
|
12448
|
+
_this6.nextNode.customLimitTime = '';
|
|
12439
12449
|
return;
|
|
12440
12450
|
} else if (!Number(customLimitTime) || customLimitTime.indexOf('.') != -1 || Number(customLimitTime) < 0) {
|
|
12441
|
-
|
|
12442
|
-
|
|
12451
|
+
_this6.$message.warning('请输入正确的天数');
|
|
12452
|
+
_this6.nextNode.customLimitTime = '';
|
|
12443
12453
|
return;
|
|
12444
12454
|
}
|
|
12445
12455
|
}
|
|
12446
|
-
if (
|
|
12456
|
+
if (_this6.isHideCurrentOrg) {
|
|
12447
12457
|
params.nextCurrentOrgObj = nextCurrentOrgObj;
|
|
12448
12458
|
}
|
|
12449
|
-
if (
|
|
12459
|
+
if (_this6.isHideOtherOrg) {
|
|
12450
12460
|
params.nextOtherOrgObj = nextOtherOrgObj;
|
|
12451
12461
|
}
|
|
12452
|
-
if (
|
|
12453
|
-
if (
|
|
12462
|
+
if (_this6.activeNames != '1') delete params.customPresetUserJson;
|
|
12463
|
+
if (_this6.isFreeStartFlow || _this6.formType === 'readTransfer') {
|
|
12454
12464
|
var newParm = {};
|
|
12455
|
-
newParm.copyHistory =
|
|
12465
|
+
newParm.copyHistory = _this6.copyHistory === 'needCopyPendedHistory';
|
|
12456
12466
|
newParm.startFlowParamJson = params;
|
|
12457
12467
|
// newParm.startFlowParamJson.businessId = this.id; //this.id
|
|
12458
12468
|
newParm.startFlowParamJson.taskExamineParam = {
|
|
12459
|
-
startFlowFirstNodeName:
|
|
12469
|
+
startFlowFirstNodeName: _this6.taskExamineParam
|
|
12460
12470
|
};
|
|
12461
12471
|
newParm.startFlowParamJson = JSON.stringify(newParm.startFlowParamJson);
|
|
12462
|
-
for (var key in
|
|
12463
|
-
if (Array.isArray(
|
|
12464
|
-
|
|
12472
|
+
for (var key in _this6.taskParams) {
|
|
12473
|
+
if (Array.isArray(_this6.taskParams[key])) {
|
|
12474
|
+
_this6.taskParams[key] = _this6.taskParams[key].length > 0 ? _this6.taskParams[key].join(',') : '';
|
|
12465
12475
|
}
|
|
12466
12476
|
}
|
|
12467
12477
|
|
|
12468
|
-
newParm.submitTaskParamJson = JSON.stringify(
|
|
12469
|
-
if (
|
|
12478
|
+
newParm.submitTaskParamJson = JSON.stringify(_this6.taskParams);
|
|
12479
|
+
if (_this6.formType == 'readTransfer') {
|
|
12470
12480
|
newParm.readTransferHandleStartFlowParamJson = JSON.stringify(params);
|
|
12471
|
-
newParm.taskReadEndParamJson = JSON.stringify(
|
|
12481
|
+
newParm.taskReadEndParamJson = JSON.stringify(_this6.taskParams);
|
|
12472
12482
|
delete newParm.copyHistory;
|
|
12473
12483
|
delete newParm.startFlowParamJson;
|
|
12474
12484
|
delete newParm.submitTaskParamJson;
|
|
12475
12485
|
}
|
|
12476
12486
|
params = newParm;
|
|
12477
12487
|
}
|
|
12478
|
-
if (
|
|
12479
|
-
params.pendingId =
|
|
12488
|
+
if (_this6.copyHistory && !_this6.isFreeStartFlow) {
|
|
12489
|
+
params.pendingId = _this6.pendingId;
|
|
12480
12490
|
delete params.businessId;
|
|
12481
12491
|
}
|
|
12482
12492
|
util["a" /* default */].ajax({
|
|
12483
|
-
url:
|
|
12493
|
+
url: _this6.isFreeStartFlow ? api["H" /* freeStartFlowWithSubmitTask */] : _this6.formType == 'readTransfer' ? api["Yb" /* startReadTransferHandleFlowWithTaskReadEnd */] : _this6.copyHistory ? api["G" /* freeStartFlow */] : api["Lb" /* register */],
|
|
12484
12494
|
method: 'post',
|
|
12485
12495
|
data: params
|
|
12486
12496
|
}).then(function (res) {
|
|
12487
12497
|
var status = res.status,
|
|
12488
12498
|
message = res.message;
|
|
12489
12499
|
|
|
12490
|
-
if (
|
|
12491
|
-
|
|
12500
|
+
if (_this6.showBtn) {
|
|
12501
|
+
_this6.loading = false;
|
|
12492
12502
|
} else {
|
|
12493
|
-
|
|
12503
|
+
_this6.allLoading.close();
|
|
12494
12504
|
}
|
|
12495
12505
|
if (status === 'success' || res.rCode == 0) {
|
|
12496
|
-
|
|
12497
|
-
|
|
12506
|
+
_this6.quit(true);
|
|
12507
|
+
_this6.simpleTips && _this6.$message.success('操作成功');
|
|
12498
12508
|
} else {
|
|
12499
|
-
|
|
12509
|
+
_this6.$message.error(message || '系统错误,请联系管理员!');
|
|
12500
12510
|
}
|
|
12501
12511
|
}).catch(function (err) {
|
|
12502
|
-
if (
|
|
12503
|
-
|
|
12512
|
+
if (_this6.showBtn) {
|
|
12513
|
+
_this6.loading = false;
|
|
12504
12514
|
} else {
|
|
12505
|
-
|
|
12515
|
+
_this6.allLoading.close();
|
|
12506
12516
|
}
|
|
12507
12517
|
if (err.message && err.message !== 'canceled') {
|
|
12508
|
-
|
|
12518
|
+
_this6.$message.error(err.message);
|
|
12509
12519
|
}
|
|
12510
12520
|
});
|
|
12511
12521
|
} else {
|
|
@@ -12514,7 +12524,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12514
12524
|
});
|
|
12515
12525
|
},
|
|
12516
12526
|
getNodeInfos: function getNodeInfos(nodeId, index) {
|
|
12517
|
-
var
|
|
12527
|
+
var _this7 = this;
|
|
12518
12528
|
|
|
12519
12529
|
var params = {
|
|
12520
12530
|
processDefinitionId: this.processDefinitionId,
|
|
@@ -12532,83 +12542,82 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12532
12542
|
countersignaturetypeText = _res$data.countersignaturetypeText,
|
|
12533
12543
|
countersignaturetypeCode = _res$data.countersignaturetypeCode;
|
|
12534
12544
|
|
|
12535
|
-
if (
|
|
12536
|
-
|
|
12545
|
+
if (_this7.showBtn) {
|
|
12546
|
+
_this7.loading = false;
|
|
12537
12547
|
} else {
|
|
12538
|
-
|
|
12548
|
+
_this7.allLoading.close();
|
|
12539
12549
|
}
|
|
12540
12550
|
if (status === 'success') {
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
if (
|
|
12547
|
-
|
|
12551
|
+
_this7.isCurrentNodeForbiddenChangeCandidate = nodeExtAttr.isCurrentNodeForbiddenChangeCandidate;
|
|
12552
|
+
_this7.nextNode.userInfo = nextUserList;
|
|
12553
|
+
_this7.countersignaturetypeCode = countersignaturetypeCode;
|
|
12554
|
+
_this7.nextNode.countersignaturetypeText = countersignaturetypeText;
|
|
12555
|
+
_this7.enableCustomLimitTimeSetting = nodeExtAttr.enableCustomLimitTimeSetting == 1;
|
|
12556
|
+
if (_this7.enableCustomLimitTimeSetting && nodeMoreInfo.defaultCustomLimitDays) {
|
|
12557
|
+
_this7.nextNode.customLimitTime = _this7.nextNode.customLimitTimeText = nodeMoreInfo.defaultCustomLimitDays + '';
|
|
12548
12558
|
}
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12559
|
+
_this7.isTaskread = nodeExtAttr.isTaskread;
|
|
12560
|
+
_this7.isHandleExplain = nodeExtAttr.isHandleExplain;
|
|
12561
|
+
_this7.isCustomUser = nodeExtAttr.isCustomUser; //是否展示选人组件按钮
|
|
12562
|
+
_this7.presetEdit = nodeExtAttr.presetEdit; //是否展示备选人
|
|
12563
|
+
_this7.isDefSelectedObj = nodeExtAttr.isDefSelectedObj; //是否默认选中
|
|
12554
12564
|
if (nodeExtAttr.userSelectionType == 7 || nodeExtAttr.userSelectionType == 8 || nodeExtAttr.userSelectionType == 9 || nodeExtAttr.userSelectionType == 10 || nodeExtAttr.userSelectionType == 11 || nodeExtAttr.userSelectionType == 12) {
|
|
12555
|
-
|
|
12565
|
+
_this7.getIsShowNextUser(nodeExtAttr && nodeExtAttr.userSelectionType);
|
|
12556
12566
|
} else {
|
|
12557
|
-
var _isMultiple =
|
|
12567
|
+
var _isMultiple = _this7.isMultiple(nodeExtAttr.userSelectionType),
|
|
12558
12568
|
multiple = _isMultiple.multiple,
|
|
12559
12569
|
_params = _isMultiple.params;
|
|
12560
12570
|
|
|
12561
|
-
|
|
12562
|
-
|
|
12571
|
+
_this7.multiple = multiple;
|
|
12572
|
+
_this7.params = _params;
|
|
12563
12573
|
}
|
|
12564
12574
|
// this.isReadMultiple(nodeExtAttr.userSelectionType);
|
|
12565
12575
|
if (nodeExtAttr.nodeType === 1 || nodeExtAttr.nodeType === 2) {
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
_this6.isHideOtherOrg = nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
|
|
12576
|
+
_this7.isHideCurrentOrg = nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
|
|
12577
|
+
_this7.isHideOtherOrg = nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
|
|
12569
12578
|
} else {
|
|
12570
|
-
|
|
12571
|
-
|
|
12579
|
+
_this7.isHideCurrentOrg = false;
|
|
12580
|
+
_this7.isHideOtherOrg = false;
|
|
12572
12581
|
}
|
|
12573
12582
|
nextUserList.map(function (item) {
|
|
12574
|
-
if (
|
|
12575
|
-
|
|
12576
|
-
|
|
12583
|
+
if (_this7.multiple && nodeExtAttr.isDefSelectedObj == 1 && nextUserList !== undefined) {
|
|
12584
|
+
_this7.nextNode.nextUser.push(item.userId);
|
|
12585
|
+
_this7.selectUserList.push({
|
|
12577
12586
|
showname: item.username,
|
|
12578
12587
|
showid: item.userId
|
|
12579
12588
|
});
|
|
12580
12589
|
}
|
|
12581
12590
|
|
|
12582
|
-
|
|
12591
|
+
_this7.options.push({
|
|
12583
12592
|
showname: item.username,
|
|
12584
12593
|
showid: item.userId
|
|
12585
12594
|
});
|
|
12586
12595
|
});
|
|
12587
|
-
if (
|
|
12588
|
-
|
|
12596
|
+
if (_this7.multiple) {
|
|
12597
|
+
_this7.nextNode.nextReadUserId = [];
|
|
12589
12598
|
} else {
|
|
12590
|
-
|
|
12599
|
+
_this7.nextNode.nextReadUserId = '';
|
|
12591
12600
|
}
|
|
12592
|
-
if (nextUserList.length > 0 && nodeExtAttr.isDefSelectedObj == 1 && !
|
|
12593
|
-
|
|
12594
|
-
|
|
12601
|
+
if (nextUserList.length > 0 && nodeExtAttr.isDefSelectedObj == 1 && !_this7.multiple) {
|
|
12602
|
+
_this7.nextNode.nextUser = nextUserList[0].userId;
|
|
12603
|
+
_this7.selectUserList.push({
|
|
12595
12604
|
showname: nextUserList[0].username,
|
|
12596
12605
|
showid: nextUserList[0].userId
|
|
12597
12606
|
});
|
|
12598
12607
|
}
|
|
12599
|
-
|
|
12608
|
+
_this7.radioList = _this7.options;
|
|
12600
12609
|
} else {
|
|
12601
|
-
|
|
12610
|
+
_this7.$message.error(message || '系统错误,请联系管理员!');
|
|
12602
12611
|
}
|
|
12603
|
-
nodeId &&
|
|
12612
|
+
nodeId && _this7.$refs.selectUser[index].changeInfo();
|
|
12604
12613
|
}).catch(function (err) {
|
|
12605
|
-
if (
|
|
12606
|
-
|
|
12614
|
+
if (_this7.showBtn) {
|
|
12615
|
+
_this7.loading = false;
|
|
12607
12616
|
} else {
|
|
12608
|
-
|
|
12617
|
+
_this7.allLoading.close();
|
|
12609
12618
|
}
|
|
12610
12619
|
if (err.message && err.message !== 'canceled') {
|
|
12611
|
-
|
|
12620
|
+
_this7.$message.error(err.message);
|
|
12612
12621
|
}
|
|
12613
12622
|
});
|
|
12614
12623
|
},
|
|
@@ -12631,7 +12640,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12631
12640
|
this.$emit('cancel', false);
|
|
12632
12641
|
},
|
|
12633
12642
|
getFind: function getFind() {
|
|
12634
|
-
var
|
|
12643
|
+
var _this8 = this;
|
|
12635
12644
|
|
|
12636
12645
|
util["a" /* default */].ajax({
|
|
12637
12646
|
url: api["D" /* findSysCodes */]
|
|
@@ -12640,27 +12649,27 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12640
12649
|
message = res.message;
|
|
12641
12650
|
|
|
12642
12651
|
if (status === 'success') {
|
|
12643
|
-
|
|
12652
|
+
_this8.nextNode.noticeType = message.split(',');
|
|
12644
12653
|
var arr = [];
|
|
12645
|
-
|
|
12646
|
-
|
|
12654
|
+
_this8.nextNode.noticeList.map(function (item) {
|
|
12655
|
+
_this8.nextNode.noticeType.map(function (x) {
|
|
12647
12656
|
if (x == item.cciValue) {
|
|
12648
12657
|
arr.push(x);
|
|
12649
12658
|
}
|
|
12650
12659
|
});
|
|
12651
12660
|
});
|
|
12652
|
-
|
|
12661
|
+
_this8.nextNode.noticeType = arr;
|
|
12653
12662
|
} else {
|
|
12654
|
-
|
|
12663
|
+
_this8.$message.error(message || '系统错误,请联系管理员!');
|
|
12655
12664
|
}
|
|
12656
12665
|
}).catch(function (err) {
|
|
12657
|
-
if (
|
|
12658
|
-
|
|
12666
|
+
if (_this8.showBtn) {
|
|
12667
|
+
_this8.loading = false;
|
|
12659
12668
|
} else {
|
|
12660
|
-
|
|
12669
|
+
_this8.allLoading.close();
|
|
12661
12670
|
}
|
|
12662
12671
|
if (err.message && err.message !== 'canceled') {
|
|
12663
|
-
|
|
12672
|
+
_this8.$message.error(err.message);
|
|
12664
12673
|
}
|
|
12665
12674
|
});
|
|
12666
12675
|
},
|
|
@@ -12703,7 +12712,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12703
12712
|
return { multiple: multiple, params: params };
|
|
12704
12713
|
},
|
|
12705
12714
|
getStartFlow: function getStartFlow(processId) {
|
|
12706
|
-
var
|
|
12715
|
+
var _this9 = this;
|
|
12707
12716
|
|
|
12708
12717
|
if (!processId) {
|
|
12709
12718
|
return false;
|
|
@@ -12720,7 +12729,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12720
12729
|
businessId: this.businessId
|
|
12721
12730
|
};
|
|
12722
12731
|
if (!this.shwowBtn) {
|
|
12723
|
-
params.taskAction =
|
|
12732
|
+
params.taskAction = 'toStartFlowWithoutTempSave';
|
|
12724
12733
|
}
|
|
12725
12734
|
// 获取节点
|
|
12726
12735
|
util["a" /* default */].ajax({ url: api["sc" /* toStartFlow */], params: params }).then(function (res) {
|
|
@@ -12730,98 +12739,104 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12730
12739
|
data = res.data;
|
|
12731
12740
|
|
|
12732
12741
|
if (status == 'success') {
|
|
12733
|
-
data.nodeInfoMap.nodeExtAttr.submitTipsMsg &&
|
|
12742
|
+
data.nodeInfoMap.nodeExtAttr.submitTipsMsg && _this9.$confirm(data.nodeInfoMap.nodeExtAttr.submitTipsMsg, '提示', {
|
|
12734
12743
|
confirmButtonText: '确定',
|
|
12735
12744
|
cancelButtonText: '取消',
|
|
12736
12745
|
type: 'warning'
|
|
12737
12746
|
}).then(function () {}).catch(function () {
|
|
12738
|
-
|
|
12747
|
+
_this9.quit();
|
|
12739
12748
|
});
|
|
12740
|
-
data.nextNodeCheckType && (
|
|
12741
|
-
data.nextOperateCheckType && (
|
|
12742
|
-
|
|
12743
|
-
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
if (
|
|
12753
|
-
|
|
12749
|
+
data.nextNodeCheckType && (_this9.nextNodeCheckType = data.nextNodeCheckType);
|
|
12750
|
+
data.nextOperateCheckType && (_this9.nextOperateCheckType = data.nextOperateCheckType);
|
|
12751
|
+
_this9.customPresetHintMessage = data.customPresetHintMessage;
|
|
12752
|
+
_this9.readOnlyNotificationType = data.readOnlyNotificationType;
|
|
12753
|
+
_this9.notificationMessageReadOnly = data.notificationMessageReadOnly == 'true';
|
|
12754
|
+
_this9.nextNode.nodeInfo = data.nextNodeList;
|
|
12755
|
+
_this9.nextNode.nextNode = data.nextNodeList[0].nodeId;
|
|
12756
|
+
_this9.isPreset = data.isPreset;
|
|
12757
|
+
_this9.isHideDefaultOperation = data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation;
|
|
12758
|
+
_this9.defaultNextNode = data.nodeInfoMap.nodeExtAttr.defaultNextNode;
|
|
12759
|
+
_this9.isChooseNextNode = data.nodeInfoMap.nodeExtAttr.isChooseNextNode;
|
|
12760
|
+
_this9.isCdjxjTaskHandle = data.isCdjxjTaskHandle;
|
|
12761
|
+
if (_this9.isChooseNextNode == 1) {
|
|
12762
|
+
_this9.operationList = [
|
|
12754
12763
|
// { key: 0, value: '默认', list: [] },
|
|
12755
12764
|
{ key: 1, value: '自定义', list: [] }];
|
|
12756
12765
|
if (data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation != 1) {
|
|
12757
|
-
|
|
12766
|
+
_this9.operationList.unshift({
|
|
12767
|
+
key: 0,
|
|
12768
|
+
value: '默认',
|
|
12769
|
+
list: data.nextNodeList
|
|
12770
|
+
});
|
|
12758
12771
|
}
|
|
12759
12772
|
var arr = [];
|
|
12760
12773
|
for (var key in data.taskNodeMap) {
|
|
12761
12774
|
arr.push({ nodeName: data.taskNodeMap[key], nodeId: key });
|
|
12762
12775
|
}
|
|
12763
12776
|
// this.operationList[0].list = data.nextNodeList;
|
|
12764
|
-
|
|
12765
|
-
if (
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
if (
|
|
12777
|
+
_this9.operationList[data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation != 1 ? 1 : 0].list = arr;
|
|
12778
|
+
if (_this9.isHideDefaultOperation != 1) {
|
|
12779
|
+
_this9.nextNode.nextOperate = 0;
|
|
12780
|
+
_this9.nextNode.nodeInfo = _this9.operationList[0].list;
|
|
12781
|
+
if (_this9.nextNode.nodeInfo.length > 0) {
|
|
12769
12782
|
var defaultNodeData = data.nextNodeList.filter(function (x) {
|
|
12770
|
-
return x.nodeId ==
|
|
12783
|
+
return x.nodeId == _this9.defaultNextNode;
|
|
12771
12784
|
});
|
|
12772
|
-
|
|
12785
|
+
_this9.nextNode.nextNode = defaultNodeData.length > 0 ? _this9.defaultNextNode : data.nextNodeList[0].nodeId;
|
|
12773
12786
|
}
|
|
12774
|
-
}
|
|
12787
|
+
}
|
|
12788
|
+
if (data.nodeInfoMap.nodeExtAttr.defaultNextOperate == 1 || data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation == 1) {
|
|
12775
12789
|
// this.nextNode.nodeInfo = data.nextNodeList
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
|
|
12790
|
+
_this9.nextNode.nextOperate = 1;
|
|
12791
|
+
_this9.nextNode.nodeInfo = _this9.operationList[_this9.isHideDefaultOperation != 1 ? 1 : 0].list;
|
|
12792
|
+
|
|
12793
|
+
if (_this9.nextNode.nodeInfo.length > 0) {
|
|
12794
|
+
var _defaultNodeData = _this9.nextNode.nodeInfo.filter(function (x) {
|
|
12795
|
+
return x.nodeId == _this9.defaultNextNode;
|
|
12781
12796
|
});
|
|
12782
|
-
|
|
12797
|
+
_this9.nextNode.nextNode = _defaultNodeData.length > 0 ? _this9.defaultNextNode : _this9.nextNode.nodeInfo[0].nodeId;
|
|
12783
12798
|
}
|
|
12784
12799
|
}
|
|
12785
12800
|
}
|
|
12786
|
-
|
|
12787
|
-
|
|
12788
|
-
|
|
12789
|
-
|
|
12790
|
-
|
|
12801
|
+
_this9.isCustomPreset = data.isCustomPreset;
|
|
12802
|
+
_this9.presetTaskNodeKeyStr = data.presetTaskNodeKeyStr;
|
|
12803
|
+
_this9.presetTaskNodeMap = data.presetTaskNodeMap;
|
|
12804
|
+
_this9.isSinglePage = data.taskExamine.isSinglePage;
|
|
12805
|
+
_this9.isSinglePage && (_this9.nextNode.opinion = data.taskExamine.opinion);
|
|
12791
12806
|
// this.nextNode.noticeInfo = data.taskExamine.notificationMsg;
|
|
12792
|
-
|
|
12793
|
-
|
|
12807
|
+
_this9.nextNode.nodeName = data.taskExamine.nodeName;
|
|
12808
|
+
_this9.canPresetRead = data.canPresetRead;
|
|
12794
12809
|
if (data.canPresetRead) {
|
|
12795
12810
|
var ids = data.nodeInfoMap.nodeExtAttr.presetReadCandinateIds.split(',');
|
|
12796
12811
|
var names = data.nodeInfoMap.nodeExtAttr.presetReadCandinateNames.split(',');
|
|
12797
12812
|
ids.map(function (item, index) {
|
|
12798
|
-
|
|
12813
|
+
_this9.presetReadUserId.push({
|
|
12799
12814
|
showid: item,
|
|
12800
12815
|
showname: names[index]
|
|
12801
12816
|
});
|
|
12802
|
-
|
|
12817
|
+
_this9.selectPresetUserList.push({
|
|
12803
12818
|
showid: item,
|
|
12804
12819
|
showname: names[index]
|
|
12805
12820
|
});
|
|
12806
|
-
|
|
12821
|
+
_this9.nextNode.presetReadUserId.push(item);
|
|
12807
12822
|
});
|
|
12808
12823
|
}
|
|
12809
|
-
|
|
12824
|
+
_this9.getNodeInfos();
|
|
12810
12825
|
// this.getPresetFlowInfo();
|
|
12811
|
-
|
|
12812
|
-
|
|
12813
|
-
|
|
12826
|
+
_this9.isCustomPreset && _this9.$refs.customPreset.getPresetFlowInfo(_this9.nextNode.nextNode);
|
|
12827
|
+
_this9.getFind();
|
|
12828
|
+
_this9.getMessage();
|
|
12814
12829
|
} else {
|
|
12815
|
-
|
|
12830
|
+
_this9.$message.error(message || '系统错误,请联系管理员!');
|
|
12816
12831
|
}
|
|
12817
12832
|
}).catch(function (err) {
|
|
12818
|
-
if (
|
|
12819
|
-
|
|
12833
|
+
if (_this9.showBtn) {
|
|
12834
|
+
_this9.loading = false;
|
|
12820
12835
|
} else {
|
|
12821
|
-
|
|
12836
|
+
_this9.allLoading.close();
|
|
12822
12837
|
}
|
|
12823
12838
|
if (err.message && err.message !== 'canceled') {
|
|
12824
|
-
|
|
12839
|
+
_this9.$message.error(err.message);
|
|
12825
12840
|
}
|
|
12826
12841
|
});
|
|
12827
12842
|
}
|
|
@@ -12839,8 +12854,8 @@ var processFormvue_type_script_lang_js_components;
|
|
|
12839
12854
|
|
|
12840
12855
|
var processForm_component = Object(componentNormalizer["a" /* default */])(
|
|
12841
12856
|
src_processFormvue_type_script_lang_js_,
|
|
12842
|
-
|
|
12843
|
-
|
|
12857
|
+
processFormvue_type_template_id_6df91879_render,
|
|
12858
|
+
processFormvue_type_template_id_6df91879_staticRenderFns,
|
|
12844
12859
|
false,
|
|
12845
12860
|
null,
|
|
12846
12861
|
null,
|