ecinc-cloud-mappaio 9.6.22 → 9.6.24
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/ecmappaio.common.js +298 -200
- package/lib/ecmappaio.umd.js +298 -200
- package/lib/ecmappaio.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -494,22 +494,26 @@ function getPageTitle(itemName, i18nCode, href, $scope) {
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
function getLanguage() {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
if (chooseLanguage
|
|
500
|
-
|
|
501
|
-
|
|
497
|
+
try {
|
|
498
|
+
var chooseLanguage = js_cookie__WEBPACK_IMPORTED_MODULE_0___default().get('language');
|
|
499
|
+
if (chooseLanguage) {
|
|
500
|
+
if (chooseLanguage == 'zh-CN') chooseLanguage = 'zhCN';
|
|
501
|
+
return chooseLanguage;
|
|
502
|
+
}
|
|
502
503
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
504
|
+
// if has not choose language
|
|
505
|
+
var language = (navigator.language || navigator.browserLanguage || '').toLowerCase();
|
|
506
|
+
if ($messages) {
|
|
507
|
+
var locales = Object.keys($messages);
|
|
508
|
+
for (var _i = 0, _locales = locales; _i < _locales.length; _i++) {
|
|
509
|
+
var locale = _locales[_i];
|
|
510
|
+
if (language.indexOf(locale) > -1) {
|
|
511
|
+
return locale;
|
|
512
|
+
}
|
|
511
513
|
}
|
|
512
514
|
}
|
|
515
|
+
} catch (e) {
|
|
516
|
+
console.log(e);
|
|
513
517
|
}
|
|
514
518
|
return 'zhCN';
|
|
515
519
|
}
|
|
@@ -7320,7 +7324,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".popub-container[data-v-6850137e]{widt
|
|
|
7320
7324
|
|
|
7321
7325
|
/***/ }),
|
|
7322
7326
|
|
|
7323
|
-
/***/
|
|
7327
|
+
/***/ 7529:
|
|
7324
7328
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7325
7329
|
|
|
7326
7330
|
"use strict";
|
|
@@ -7339,7 +7343,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
7339
7343
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
7340
7344
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
7341
7345
|
// Module
|
|
7342
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-
|
|
7346
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-067f09e4]{text-align:right}.submit-handle-container .idea-button-container .van-cell__value .van-button[data-v-067f09e4]{margin-right:0;margin-left:5px}.submit-handle-container .curIdea-filed[data-v-067f09e4] .van-cell__title,.submit-handle-container .curIdea-filed[data-v-067f09e4]:after{display:none}.submit-handle-container .clearfix[data-v-067f09e4]:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.submit-handle-container .van-wflow-operate-detail-cell[data-v-067f09e4]:after{border-top-width:0}.submit-handle-container .van-wflow-operate-detail-cell-path[data-v-067f09e4]:after{border-width:1px;-webkit-transform:scale(.5);transform:scale(.5)}.submit-handle-container .tnLimit-container[data-v-067f09e4] .van-field__body:after{color:#323233;content:attr(value-suffix)}.submit-handle-container .delete-icon[data-v-067f09e4]{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.submit-handle-container .delete-icon .van-icon[data-v-067f09e4]{line-height:24px;margin-left:5px;font-size:16px}.selectBox_title[data-v-067f09e4]{height:45px;line-height:45px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px}.selectBox_content[data-v-067f09e4],.selectBox_title[data-v-067f09e4]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 15px}.selectBox_content[data-v-067f09e4]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap}.selectBox_content .selectBox_content_son[data-v-067f09e4]{border:1px solid #f1f1f1}.selectBox_content .selectBox_content_son[data-v-067f09e4],.selectBox_content .selectBox_content_son_change[data-v-067f09e4]{padding:4px;background:#f8fafb;font-size:14px;margin-bottom:10px!important;text-align:center;height:22px;line-height:22px;width:calc(25% - 17.5px);margin-right:10px}.selectBox_content .selectBox_content_son_change[data-v-067f09e4]{border:1px solid #3f88f1;background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");background-repeat:no-repeat;background-size:15px 15px;background-position:100% 100%;color:#3f88f1}.selectBox_content_sonall[data-v-067f09e4]{white-space:nowrap;overflow:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.selectBox_content_sonall[data-v-067f09e4]:nth-child(4n){margin-right:0}.selectBox_content_sonall[data-v-067f09e4]::-webkit-scrollbar{display:none}.viewAllComments[data-v-067f09e4]{height:45px;line-height:45px;text-align:center;color:#b7b7b7;font-size:12px;background:#fff;display:block;width:100%}", ""]);
|
|
7343
7347
|
// Exports
|
|
7344
7348
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
7345
7349
|
|
|
@@ -32493,19 +32497,19 @@ var update = add("41a40148", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
32493
32497
|
|
|
32494
32498
|
/***/ }),
|
|
32495
32499
|
|
|
32496
|
-
/***/
|
|
32500
|
+
/***/ 7013:
|
|
32497
32501
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
32498
32502
|
|
|
32499
32503
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
32500
32504
|
|
|
32501
32505
|
// load the styles
|
|
32502
|
-
var content = __webpack_require__(
|
|
32506
|
+
var content = __webpack_require__(7529);
|
|
32503
32507
|
if(content.__esModule) content = content.default;
|
|
32504
32508
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
32505
32509
|
if(content.locals) module.exports = content.locals;
|
|
32506
32510
|
// add the styles to the DOM
|
|
32507
32511
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
32508
|
-
var update = add("
|
|
32512
|
+
var update = add("9053b718", content, true, {"sourceMap":false,"shadowMode":false});
|
|
32509
32513
|
|
|
32510
32514
|
/***/ }),
|
|
32511
32515
|
|
|
@@ -38962,43 +38966,56 @@ service.interceptors.response.use(function (response) {
|
|
|
38962
38966
|
} else if (error.response && error.response.data && error.response.data.code) {
|
|
38963
38967
|
return error.response.data;
|
|
38964
38968
|
} else if (error.response && error.response.data) {
|
|
38965
|
-
var
|
|
38969
|
+
var _errrst = {
|
|
38966
38970
|
code: 'error',
|
|
38967
38971
|
body: {}
|
|
38968
38972
|
};
|
|
38969
38973
|
if (error.response.data.message) {
|
|
38970
|
-
|
|
38974
|
+
_errrst.message = error.response.data.message;
|
|
38971
38975
|
} else if (error.response.data.error) {
|
|
38972
38976
|
if (error.response.data.status === 404) {
|
|
38973
|
-
|
|
38977
|
+
_errrst.message = window.$tx('request.status404');
|
|
38974
38978
|
} else {
|
|
38975
|
-
|
|
38979
|
+
_errrst.message = error.response.data.error;
|
|
38976
38980
|
}
|
|
38977
38981
|
} else if (error.response.data.msg) {
|
|
38978
|
-
|
|
38982
|
+
_errrst.message = error.response.data.msg;
|
|
38979
38983
|
} else {
|
|
38980
|
-
|
|
38984
|
+
_errrst.message = error.response.data;
|
|
38981
38985
|
}
|
|
38986
|
+
_errrst.message += '<br>' + error.config.url;
|
|
38982
38987
|
if (window.vType === 'wapp') {
|
|
38983
|
-
window.$alert(
|
|
38988
|
+
window.$alert(_errrst.message, window.$tx('common.operationTip'), {
|
|
38984
38989
|
type: 'error',
|
|
38985
38990
|
dangerouslyUseHTMLString: true
|
|
38986
38991
|
});
|
|
38987
38992
|
} else {
|
|
38988
38993
|
window.$alert({
|
|
38989
|
-
message:
|
|
38994
|
+
message: _errrst.message,
|
|
38990
38995
|
type: 'error',
|
|
38991
38996
|
allowHtml: true
|
|
38992
38997
|
});
|
|
38993
38998
|
}
|
|
38994
|
-
return Promise.reject(
|
|
38999
|
+
return Promise.reject(_errrst.message);
|
|
38995
39000
|
} else {
|
|
38996
|
-
var
|
|
38997
|
-
|
|
38998
|
-
|
|
38999
|
-
|
|
39000
|
-
|
|
39001
|
-
|
|
39001
|
+
var errmsg = error;
|
|
39002
|
+
if (typeof errmsg !== 'string' && error.message) {
|
|
39003
|
+
errmsg = error.message;
|
|
39004
|
+
}
|
|
39005
|
+
errmsg += '<br>' + error.config.url;
|
|
39006
|
+
if (window.vType === 'wapp') {
|
|
39007
|
+
window.$alert(errmsg, window.$tx('common.operationTip'), {
|
|
39008
|
+
type: 'error',
|
|
39009
|
+
dangerouslyUseHTMLString: true
|
|
39010
|
+
});
|
|
39011
|
+
} else {
|
|
39012
|
+
window.$alert({
|
|
39013
|
+
message: errmsg,
|
|
39014
|
+
type: 'error',
|
|
39015
|
+
allowHtml: true
|
|
39016
|
+
});
|
|
39017
|
+
}
|
|
39018
|
+
return Promise.reject(errrst);
|
|
39002
39019
|
}
|
|
39003
39020
|
});
|
|
39004
39021
|
/* harmony default export */ var request = (service);
|
|
@@ -39558,6 +39575,16 @@ var wfengine_install = function install(Vue) {
|
|
|
39558
39575
|
}
|
|
39559
39576
|
});
|
|
39560
39577
|
}
|
|
39578
|
+
if ($scope.wfInstance.udmNodes && $scope.wfInstance.udmNodes !== '') {
|
|
39579
|
+
var udmNodes = JSON.parse($scope.wfInstance.udmNodes);
|
|
39580
|
+
for (var _i = 0; _i < udmNodes.length; _i++) {
|
|
39581
|
+
if (udmNodes[_i].name === 'chartData') {
|
|
39582
|
+
$scope.wfInstance.passenger.chartData = udmNodes[_i];
|
|
39583
|
+
udmNodes.splice(_i--, 1);
|
|
39584
|
+
}
|
|
39585
|
+
}
|
|
39586
|
+
$scope.wfInstance.udmNodes = udmNodes;
|
|
39587
|
+
}
|
|
39561
39588
|
$scope.commonIdeaList = $scope.wfInstance.passenger.commonIdeaList;
|
|
39562
39589
|
if ($scope.commonIdeaList === undefined) $scope.commonIdeaList = [];
|
|
39563
39590
|
// $scope.commonIdeaList.unshift('---选择常用意见---')
|
|
@@ -39701,6 +39728,124 @@ var wfengine_install = function install(Vue) {
|
|
|
39701
39728
|
});
|
|
39702
39729
|
});
|
|
39703
39730
|
},
|
|
39731
|
+
setUdmCustomRoutes: function setUdmCustomRoutes($scope) {
|
|
39732
|
+
var curNode = null;
|
|
39733
|
+
var curNodeIndex = -1;
|
|
39734
|
+
var customRoutes = [];
|
|
39735
|
+
$scope.wfInstance.udmNodes.forEach(function (taskNode, index) {
|
|
39736
|
+
if (taskNode.name === $scope.curTN.tnNodeName) {
|
|
39737
|
+
curNode = taskNode;
|
|
39738
|
+
curNodeIndex = index;
|
|
39739
|
+
if ($scope.wfInstance.passenger.udmNodeUsers) {
|
|
39740
|
+
var nextRoute = null;
|
|
39741
|
+
if ($scope.wfInstance.passenger.chartData) {
|
|
39742
|
+
//从流程配置图中获取提交路径、下一节点
|
|
39743
|
+
curNode.canEndWflow = 0;
|
|
39744
|
+
var paths = $scope.wfInstance.passenger.chartData.paths;
|
|
39745
|
+
paths.forEach(function (path) {
|
|
39746
|
+
if (path.preNodeId === curNode.uuid) {
|
|
39747
|
+
var nextNodes = $scope.wfInstance.udmNodes.filter(function (udmNode) {
|
|
39748
|
+
if (udmNode.uuid === path.targetNodeId) {
|
|
39749
|
+
if (!udmNode.users) udmNode.users = [];
|
|
39750
|
+
return true;
|
|
39751
|
+
}
|
|
39752
|
+
});
|
|
39753
|
+
nextRoute = {
|
|
39754
|
+
evtMsg: '',
|
|
39755
|
+
mustNextTN: '',
|
|
39756
|
+
evtCplPercent: '0',
|
|
39757
|
+
name: path.name,
|
|
39758
|
+
fullName: path.name,
|
|
39759
|
+
taskNodes: [],
|
|
39760
|
+
type: path.pathType + '' || '0'
|
|
39761
|
+
};
|
|
39762
|
+
if (nextNodes.length > 0) {
|
|
39763
|
+
nextRoute.taskNodes.push(JSON.parse(JSON.stringify(nextNodes[0])));
|
|
39764
|
+
nextRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers[nextNodes[0].name] || [];
|
|
39765
|
+
}
|
|
39766
|
+
customRoutes.push(nextRoute);
|
|
39767
|
+
}
|
|
39768
|
+
});
|
|
39769
|
+
}
|
|
39770
|
+
if (nextRoute === null) {
|
|
39771
|
+
//根据自定义环节数组,动态计算生成提交路径、下一节点
|
|
39772
|
+
if ($scope.wfInstance.udmNodes.length > index + 1) {
|
|
39773
|
+
curNode.canEndWflow = 0;
|
|
39774
|
+
var nextNode = $scope.wfInstance.udmNodes[index + 1];
|
|
39775
|
+
if (!nextNode.users) {
|
|
39776
|
+
nextNode.users = [];
|
|
39777
|
+
}
|
|
39778
|
+
nextRoute = {
|
|
39779
|
+
evtMsg: '',
|
|
39780
|
+
mustNextTN: '',
|
|
39781
|
+
evtCplPercent: '0',
|
|
39782
|
+
name: $scope.$tx('ecwapp.Wflowform.SubmitHandle.sendRoute', {
|
|
39783
|
+
nextNode: nextNode.name
|
|
39784
|
+
}, "\u9001".concat(nextNode.name)),
|
|
39785
|
+
fullName: $scope.$tx('ecwapp.Wflowform.SubmitHandle.sendRoute', {
|
|
39786
|
+
nextNode: nextNode.name
|
|
39787
|
+
}, "\u9001".concat(nextNode.name)),
|
|
39788
|
+
taskNodes: [JSON.parse(JSON.stringify(nextNode))],
|
|
39789
|
+
type: '0'
|
|
39790
|
+
};
|
|
39791
|
+
nextRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers[nextNode.name] || [];
|
|
39792
|
+
customRoutes.push(nextRoute);
|
|
39793
|
+
} else {
|
|
39794
|
+
curNode.canEndWflow = 1;
|
|
39795
|
+
}
|
|
39796
|
+
}
|
|
39797
|
+
}
|
|
39798
|
+
}
|
|
39799
|
+
if (index === 0) {
|
|
39800
|
+
taskNode.icon = 'el-icon-video-play';
|
|
39801
|
+
} else if (index + 1 === $scope.wfInstance.udmNodes.length) {
|
|
39802
|
+
taskNode.icon = 'el-icon-finished';
|
|
39803
|
+
} else {
|
|
39804
|
+
taskNode.icon = 'el-icon-edit-outline';
|
|
39805
|
+
}
|
|
39806
|
+
});
|
|
39807
|
+
if (curNode == null) {
|
|
39808
|
+
$scope.udmNode = null;
|
|
39809
|
+
$scope.wfInstance.udmNodes = null;
|
|
39810
|
+
return customRoutes;
|
|
39811
|
+
}
|
|
39812
|
+
if (curNode.canEndWflow !== 0) {
|
|
39813
|
+
var endRoute = {
|
|
39814
|
+
evtMsg: '',
|
|
39815
|
+
mustNextTN: '',
|
|
39816
|
+
evtCplPercent: '0',
|
|
39817
|
+
name: $scope.$tx('ecwapp.Wflowform.SubmitHandle.endProcessing', '结束处理'),
|
|
39818
|
+
fullName: $scope.$tx('ecwapp.Wflowform.SubmitHandle.endProcessing', '结束处理'),
|
|
39819
|
+
taskNodes: [],
|
|
39820
|
+
type: '4'
|
|
39821
|
+
};
|
|
39822
|
+
customRoutes.push(endRoute);
|
|
39823
|
+
}
|
|
39824
|
+
if (curNode.returnHistoryTN !== 0 && curNodeIndex > 0 && $scope.wfInstance.passenger.udmNodeUsers) {
|
|
39825
|
+
var backRoute = {
|
|
39826
|
+
evtMsg: '',
|
|
39827
|
+
mustNextTN: '',
|
|
39828
|
+
evtCplPercent: '0',
|
|
39829
|
+
name: $scope.$tx('ecwapp.Wflowform.SubmitHandle.sendBack', '退回'),
|
|
39830
|
+
taskNodes: [],
|
|
39831
|
+
type: '3'
|
|
39832
|
+
};
|
|
39833
|
+
if (curNode.returnHistoryTN == 2) {
|
|
39834
|
+
//退回到发起节点
|
|
39835
|
+
backRoute.name = '退回发起人';
|
|
39836
|
+
backRoute.taskNodes.push(JSON.parse(JSON.stringify($scope.wfInstance.udmNodes[0])));
|
|
39837
|
+
backRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
39838
|
+
} else {
|
|
39839
|
+
//退回到上一节点
|
|
39840
|
+
backRoute.name = '退回上一节点';
|
|
39841
|
+
backRoute.taskNodes.push(JSON.parse(JSON.stringify($scope.wfInstance.udmNodes[curNodeIndex - 1])));
|
|
39842
|
+
backRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
39843
|
+
}
|
|
39844
|
+
backRoute.fullName = backRoute.name;
|
|
39845
|
+
customRoutes.push(backRoute);
|
|
39846
|
+
}
|
|
39847
|
+
return customRoutes;
|
|
39848
|
+
},
|
|
39704
39849
|
setCommandBar: function setCommandBar($scope, commandBar) {
|
|
39705
39850
|
commandBar.forEach(function (btn) {
|
|
39706
39851
|
if (btn.btnAlign === 2) btn.btnAlign = 1;
|
|
@@ -39843,8 +39988,12 @@ var wfengine_install = function install(Vue) {
|
|
|
39843
39988
|
params.copyWfNodeUser = 1;
|
|
39844
39989
|
params.asyncLoading = 1;
|
|
39845
39990
|
params.submitMode = window.submitMode;
|
|
39991
|
+
var wfInstanceVo = JSON.parse(JSON.stringify(wfInstance));
|
|
39992
|
+
if (wfInstanceVo.udmNodes && wfInstanceVo.passenger.chartData) {
|
|
39993
|
+
wfInstanceVo.udmNodes.push(wfInstanceVo.passenger.chartData);
|
|
39994
|
+
}
|
|
39846
39995
|
var saveData = {
|
|
39847
|
-
wfInstance: JSON.stringify(
|
|
39996
|
+
wfInstance: JSON.stringify(wfInstanceVo),
|
|
39848
39997
|
curTN: JSON.stringify($scope.curTN)
|
|
39849
39998
|
};
|
|
39850
39999
|
$scope.$http({
|
|
@@ -39923,13 +40072,17 @@ var wfengine_install = function install(Vue) {
|
|
|
39923
40072
|
$scope.vobak = JSON.parse(JSON.stringify($scope.vo));
|
|
39924
40073
|
$scope.wfJsonDatabak = JSON.parse(JSON.stringify($scope.wfJsonData || {}));
|
|
39925
40074
|
$scope.wfInstancebak = JSON.parse(JSON.stringify($scope.wfInstance));
|
|
39926
|
-
$scope.wfInstance.title = $scope.vo.flSubject || $scope.wfInstance.wfName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39927
40075
|
if ($scope.vo.status === -1) $scope.vo.status = 0;
|
|
39928
40076
|
$scope.wfInstance.passenger.busiData = $scope.vo;
|
|
39929
40077
|
if ($scope.wfInstance.udmNodes && $scope.wfInstance.udmNodes !== '') {
|
|
40078
|
+
$scope.wfInstance.title = $scope.vo.flSubject || $scope.vo.flFormName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39930
40079
|
$scope.wfInstance.passenger.wfName = $scope.vo.flFormName;
|
|
40080
|
+
if ($scope.wfInstance.passenger.chartData) {
|
|
40081
|
+
$scope.wfInstance.udmNodes.push($scope.wfInstance.passenger.chartData);
|
|
40082
|
+
}
|
|
39931
40083
|
} else {
|
|
39932
40084
|
$scope.wfInstance.udmNodes = '';
|
|
40085
|
+
$scope.wfInstance.title = $scope.vo.flSubject || $scope.wfInstance.wfName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39933
40086
|
}
|
|
39934
40087
|
|
|
39935
40088
|
// 数据封装
|
|
@@ -59012,8 +59165,8 @@ var SelectOuterDeputy_component = (0,componentNormalizer/* default */.A)(
|
|
|
59012
59165
|
)
|
|
59013
59166
|
|
|
59014
59167
|
/* harmony default export */ var SelectOuterDeputy = (SelectOuterDeputy_component.exports);
|
|
59015
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=template&id=
|
|
59016
|
-
var
|
|
59168
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=template&id=067f09e4&scoped=true
|
|
59169
|
+
var SubmitHandlevue_type_template_id_067f09e4_scoped_true_render = function render() {
|
|
59017
59170
|
var _vm = this,
|
|
59018
59171
|
_c = _vm._self._c;
|
|
59019
59172
|
return _vm.initiated ? _c('div', {
|
|
@@ -59030,7 +59183,7 @@ var SubmitHandlevue_type_template_id_7c76928e_scoped_true_render = function rend
|
|
|
59030
59183
|
expression: "'defineSteps'"
|
|
59031
59184
|
}],
|
|
59032
59185
|
attrs: {
|
|
59033
|
-
"title": "
|
|
59186
|
+
"title": "流程环节"
|
|
59034
59187
|
}
|
|
59035
59188
|
}, [_c('van-icon', {
|
|
59036
59189
|
staticStyle: {
|
|
@@ -59077,7 +59230,7 @@ var SubmitHandlevue_type_template_id_7c76928e_scoped_true_render = function rend
|
|
|
59077
59230
|
return _vm.editUdmNode(taskNode);
|
|
59078
59231
|
}
|
|
59079
59232
|
}
|
|
59080
|
-
}), _c('van-icon', {
|
|
59233
|
+
}), !_vm.chartData ? _c('van-icon', {
|
|
59081
59234
|
attrs: {
|
|
59082
59235
|
"color": index == 0 ? '#f3a3a3' : '#ee0a24',
|
|
59083
59236
|
"name": "cross"
|
|
@@ -59088,7 +59241,7 @@ var SubmitHandlevue_type_template_id_7c76928e_scoped_true_render = function rend
|
|
|
59088
59241
|
return _vm.delUdmNode(index);
|
|
59089
59242
|
}
|
|
59090
59243
|
}
|
|
59091
|
-
})], 1)], 2);
|
|
59244
|
+
}) : _vm._e()], 1)], 2);
|
|
59092
59245
|
})], 2) : _vm._e(), _vm.wfJsonData && _vm.wfJsonData.routes && _vm.wfJsonData.routes.length > 0 ? _vm._t("default", function () {
|
|
59093
59246
|
return [_vm.curTN.tnIdeaLabelID !== null && _vm.curTN.tnIdeaLabelID !== '' ? _c('div', {
|
|
59094
59247
|
staticClass: "form-slicer"
|
|
@@ -59668,10 +59821,10 @@ var SubmitHandlevue_type_template_id_7c76928e_scoped_true_render = function rend
|
|
|
59668
59821
|
}
|
|
59669
59822
|
})], 1) : _vm._e()], 2) : _vm._e();
|
|
59670
59823
|
};
|
|
59671
|
-
var
|
|
59824
|
+
var SubmitHandlevue_type_template_id_067f09e4_scoped_true_staticRenderFns = [];
|
|
59672
59825
|
|
|
59673
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/WfTaskNode.vue?vue&type=template&id=
|
|
59674
|
-
var
|
|
59826
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/WfTaskNode.vue?vue&type=template&id=8e60a7d4&scoped=true
|
|
59827
|
+
var WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_render = function render() {
|
|
59675
59828
|
var _vm = this,
|
|
59676
59829
|
_c = _vm._self._c;
|
|
59677
59830
|
return _c('div', [_c('van-cell-group', [_c('div', {
|
|
@@ -60295,7 +60448,7 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_render = function render
|
|
|
60295
60448
|
}
|
|
60296
60449
|
}, [_vm._v("取 消")])]], 2)], 1);
|
|
60297
60450
|
};
|
|
60298
|
-
var
|
|
60451
|
+
var WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_staticRenderFns = [];
|
|
60299
60452
|
|
|
60300
60453
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/WfTaskNode.vue?vue&type=script&lang=js
|
|
60301
60454
|
|
|
@@ -60541,6 +60694,9 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_staticRenderFns = [];
|
|
|
60541
60694
|
taskNode: {
|
|
60542
60695
|
handler: function handler(newValue, oldValue) {
|
|
60543
60696
|
var _this = this;
|
|
60697
|
+
if (this.taskNode.nodeType === undefined) {
|
|
60698
|
+
this.taskNode.nodeType = 1;
|
|
60699
|
+
}
|
|
60544
60700
|
if (this.taskNode.selectType !== undefined) {
|
|
60545
60701
|
this.selectTypeOptions.forEach(function (item) {
|
|
60546
60702
|
if (item.value === _this.taskNode.selectType) {
|
|
@@ -60879,11 +61035,11 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_staticRenderFns = [];
|
|
|
60879
61035
|
;
|
|
60880
61036
|
var WfTaskNode_component = (0,componentNormalizer/* default */.A)(
|
|
60881
61037
|
src_WfTaskNodevue_type_script_lang_js,
|
|
60882
|
-
|
|
60883
|
-
|
|
61038
|
+
WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_render,
|
|
61039
|
+
WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_staticRenderFns,
|
|
60884
61040
|
false,
|
|
60885
61041
|
null,
|
|
60886
|
-
"
|
|
61042
|
+
"8e60a7d4",
|
|
60887
61043
|
null
|
|
60888
61044
|
|
|
60889
61045
|
)
|
|
@@ -61022,7 +61178,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61022
61178
|
selectCount: 0
|
|
61023
61179
|
};
|
|
61024
61180
|
},
|
|
61025
|
-
computed: {
|
|
61181
|
+
computed: {
|
|
61182
|
+
chartData: function chartData() {
|
|
61183
|
+
return this.wfInstance.passenger.chartData;
|
|
61184
|
+
}
|
|
61185
|
+
},
|
|
61026
61186
|
watch: {
|
|
61027
61187
|
wfJsonData: {
|
|
61028
61188
|
handler: function handler(newValue, oldValue) {
|
|
@@ -61040,77 +61200,10 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61040
61200
|
},
|
|
61041
61201
|
wfInstance: {
|
|
61042
61202
|
handler: function handler(newValue, oldValue) {
|
|
61043
|
-
var _this2 = this;
|
|
61044
61203
|
var _this = this;
|
|
61045
61204
|
if (this.wfInstance.udmNodes && this.wfInstance.udmNodes !== '[]' && typeof this.wfInstance.udmNodes === 'string') this.wfInstance.udmNodes = JSON.parse(this.wfInstance.udmNodes);
|
|
61046
61205
|
if (this.wfInstance.udmNodes && SubmitHandlevue_type_script_lang_js_typeof(this.wfInstance.udmNodes) === 'object' && this.curTN.tnNodeID !== null) {
|
|
61047
|
-
|
|
61048
|
-
var curNodeIndex = -1;
|
|
61049
|
-
var customRoutes = [];
|
|
61050
|
-
this.wfInstance.udmNodes.forEach(function (taskNode, index) {
|
|
61051
|
-
if (taskNode.name === _this2.curTN.tnNodeName) {
|
|
61052
|
-
curNode = taskNode;
|
|
61053
|
-
curNodeIndex = index;
|
|
61054
|
-
if (curNode.canSendToNext !== 0 && _this2.wfInstance.udmNodes.length > index + 1 && _this.wfInstance.passenger.udmNodeUsers) {
|
|
61055
|
-
var nextNode = _this2.wfInstance.udmNodes[index + 1];
|
|
61056
|
-
if (!nextNode.users) {
|
|
61057
|
-
nextNode.users = [];
|
|
61058
|
-
}
|
|
61059
|
-
var nextRoute = {
|
|
61060
|
-
evtMsg: '',
|
|
61061
|
-
mustNextTN: '',
|
|
61062
|
-
evtCplPercent: '0',
|
|
61063
|
-
name: '送' + nextNode.name,
|
|
61064
|
-
fullName: '送' + nextNode.name,
|
|
61065
|
-
taskNodes: [JSON.parse(JSON.stringify(nextNode))],
|
|
61066
|
-
type: '0'
|
|
61067
|
-
};
|
|
61068
|
-
nextRoute.taskNodes[0].users = _this2.wfInstance.passenger.udmNodeUsers.nextUsers || [];
|
|
61069
|
-
customRoutes.push(nextRoute);
|
|
61070
|
-
}
|
|
61071
|
-
}
|
|
61072
|
-
});
|
|
61073
|
-
if (curNode == null) {
|
|
61074
|
-
this.udmNode = null;
|
|
61075
|
-
this.wfInstance.udmNodes = null;
|
|
61076
|
-
return;
|
|
61077
|
-
}
|
|
61078
|
-
if (curNode.canEndWflow !== 0) {
|
|
61079
|
-
var endRoute = {
|
|
61080
|
-
evtMsg: '',
|
|
61081
|
-
mustNextTN: '',
|
|
61082
|
-
evtCplPercent: '0',
|
|
61083
|
-
name: '结束处理',
|
|
61084
|
-
fullName: '结束处理',
|
|
61085
|
-
taskNodes: [],
|
|
61086
|
-
type: '4'
|
|
61087
|
-
};
|
|
61088
|
-
customRoutes.push(endRoute);
|
|
61089
|
-
}
|
|
61090
|
-
if (curNode.returnHistoryTN !== 0 && curNodeIndex > 0 && this.wfInstance.passenger.udmNodeUsers) {
|
|
61091
|
-
var backRoute = {
|
|
61092
|
-
evtMsg: '',
|
|
61093
|
-
mustNextTN: '',
|
|
61094
|
-
evtCplPercent: '0',
|
|
61095
|
-
name: this.$tx('ecwapp.Wflowform.SubmitHandle.sendBack', '退回'),
|
|
61096
|
-
taskNodes: [],
|
|
61097
|
-
type: '3'
|
|
61098
|
-
};
|
|
61099
|
-
if (curNode.returnHistoryTN == 2) {
|
|
61100
|
-
//退回到发起节点
|
|
61101
|
-
backRoute.name = '退回发起人';
|
|
61102
|
-
backRoute.taskNodes.push(JSON.parse(JSON.stringify(this.wfInstance.udmNodes[0])));
|
|
61103
|
-
backRoute.taskNodes[0].users = this.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
61104
|
-
} else {
|
|
61105
|
-
//退回到上一节点
|
|
61106
|
-
backRoute.name = '退回上一节点';
|
|
61107
|
-
backRoute.taskNodes.push(JSON.parse(JSON.stringify(this.wfInstance.udmNodes[curNodeIndex - 1])));
|
|
61108
|
-
backRoute.taskNodes[0].users = this.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
61109
|
-
}
|
|
61110
|
-
backRoute.fullName = backRoute.name;
|
|
61111
|
-
customRoutes.push(backRoute);
|
|
61112
|
-
}
|
|
61113
|
-
this.wfJsonData.routes = customRoutes;
|
|
61206
|
+
this.wfJsonData.routes = _this.$wfEngine.setUdmCustomRoutes(_this);
|
|
61114
61207
|
this.initSubmitHandle();
|
|
61115
61208
|
}
|
|
61116
61209
|
this.$forceUpdate();
|
|
@@ -61138,14 +61231,14 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61138
61231
|
clearInterval(this.timer);
|
|
61139
61232
|
},
|
|
61140
61233
|
mounted: function mounted() {
|
|
61141
|
-
var
|
|
61234
|
+
var _this2 = this;
|
|
61142
61235
|
this.msgTypeOptions = this.wfInstance.passenger.msgTypeOptions || null;
|
|
61143
61236
|
this.initSubmitHandle();
|
|
61144
61237
|
this.curUserIdea = this.submitHandle.curUserIdea;
|
|
61145
61238
|
this.timer = setInterval(function () {
|
|
61146
|
-
if (
|
|
61147
|
-
|
|
61148
|
-
|
|
61239
|
+
if (_this2.submitHandle.curUserIdea !== _this2.curUserIdea && _this2.submitHandle.curUserIdea !== '') {
|
|
61240
|
+
_this2.saveCurTNIdea('AutoSave');
|
|
61241
|
+
_this2.curUserIdea = _this2.submitHandle.curUserIdea;
|
|
61149
61242
|
}
|
|
61150
61243
|
}, 5 * 60 * 1000);
|
|
61151
61244
|
if (this.$vnode.context.attachments) {
|
|
@@ -61167,7 +61260,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61167
61260
|
},
|
|
61168
61261
|
// 表单内选择
|
|
61169
61262
|
selectBanlFn: function selectBanlFn(item, users, wfNode) {
|
|
61170
|
-
var
|
|
61263
|
+
var _this3 = this;
|
|
61171
61264
|
if (item.changed) {
|
|
61172
61265
|
if (users.length > 1) {
|
|
61173
61266
|
item.changed = false;
|
|
@@ -61215,7 +61308,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61215
61308
|
this.submitHandle.route[title].showUsers = showUsers;
|
|
61216
61309
|
this.$forceUpdate();
|
|
61217
61310
|
this.$nextTick(function () {
|
|
61218
|
-
|
|
61311
|
+
_this3.submitHandleValChange();
|
|
61219
61312
|
});
|
|
61220
61313
|
} else {
|
|
61221
61314
|
// 直接选择人员
|
|
@@ -61233,7 +61326,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61233
61326
|
this.submitHandle.route[_title].showUsers = _showUsers;
|
|
61234
61327
|
this.$forceUpdate();
|
|
61235
61328
|
this.$nextTick(function () {
|
|
61236
|
-
|
|
61329
|
+
_this3.submitHandleValChange();
|
|
61237
61330
|
});
|
|
61238
61331
|
}
|
|
61239
61332
|
},
|
|
@@ -61241,7 +61334,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61241
61334
|
this.$bus.emit('submitHandleValChange', this);
|
|
61242
61335
|
},
|
|
61243
61336
|
initSubmitHandle: function initSubmitHandle(action) {
|
|
61244
|
-
var
|
|
61337
|
+
var _this4 = this;
|
|
61245
61338
|
var _this = this;
|
|
61246
61339
|
_this.showTimeLimit = false;
|
|
61247
61340
|
_this.isUdmNodes = _this.wfInstance.passenger.isUdmNodes;
|
|
@@ -61249,11 +61342,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61249
61342
|
new Promise(function (resolve, reject) {
|
|
61250
61343
|
// 响应路径单击事件
|
|
61251
61344
|
if (action === 'click') {
|
|
61252
|
-
|
|
61345
|
+
_this4.wfJsonData.routes.forEach(function (item, index) {
|
|
61253
61346
|
item.index = index;
|
|
61254
61347
|
item.text = item.name;
|
|
61255
61348
|
});
|
|
61256
|
-
|
|
61349
|
+
_this4.$bus.emit('openListitemDialog', _this4.$tx('ecmapp.wflowform.pSubmitPath', '请选择提交路径'), _this4.wfJsonData.routes.filter(function (obj) {
|
|
61257
61350
|
return obj.type !== 16 && obj.type !== '16';
|
|
61258
61351
|
}), function (rst) {
|
|
61259
61352
|
if (rst.code === 'success') {
|
|
@@ -61272,23 +61365,23 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61272
61365
|
} else {
|
|
61273
61366
|
reject('cancel');
|
|
61274
61367
|
}
|
|
61275
|
-
},
|
|
61368
|
+
}, _this4.submitHandle.route.index);
|
|
61276
61369
|
} else {
|
|
61277
61370
|
resolve(0);
|
|
61278
61371
|
}
|
|
61279
61372
|
}).then(function (res) {
|
|
61280
|
-
if (
|
|
61281
|
-
if (!
|
|
61282
|
-
|
|
61373
|
+
if (_this4.wfJsonData.routes.length === 1 && _this4.wfJsonData.routes[0].name.indexOf('结束') > -1) {
|
|
61374
|
+
if (!_this4.showOverPath) {
|
|
61375
|
+
_this4.showOverPatnRow = false;
|
|
61283
61376
|
} else {
|
|
61284
|
-
|
|
61377
|
+
_this4.showOverPatnRow = true;
|
|
61285
61378
|
}
|
|
61286
61379
|
}
|
|
61287
61380
|
_this.submitHandle.route.index = res;
|
|
61288
|
-
var selRoute =
|
|
61381
|
+
var selRoute = _this4.wfJsonData.routes[_this4.submitHandle.route.index];
|
|
61289
61382
|
var _loop = function _loop(_i) {
|
|
61290
61383
|
var taskNode = selRoute.taskNodes[_i];
|
|
61291
|
-
|
|
61384
|
+
_this4.submitHandle.route[taskNode.name] = {
|
|
61292
61385
|
user: [],
|
|
61293
61386
|
showUsers: '',
|
|
61294
61387
|
isLink: true
|
|
@@ -61318,13 +61411,13 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61318
61411
|
} else if (selectedNodes.length > 2) {
|
|
61319
61412
|
showUsers = selectedNodes[0].name + '、' + selectedNodes[1].name + '等' + selectedNodes.length + '人';
|
|
61320
61413
|
}
|
|
61321
|
-
|
|
61322
|
-
|
|
61414
|
+
_this4.submitHandle.route[taskNode.name].users = selectedNodes;
|
|
61415
|
+
_this4.submitHandle.route[taskNode.name].showUsers = showUsers;
|
|
61323
61416
|
} else {
|
|
61324
61417
|
selRoute.taskNodes.splice(_i--, 1);
|
|
61325
61418
|
}
|
|
61326
61419
|
} else {
|
|
61327
|
-
var wfusers =
|
|
61420
|
+
var wfusers = _this4.Cookies.get('route-wfuser-' + _this4.wfInstance.id + '-' + taskNode.id);
|
|
61328
61421
|
if (wfusers !== undefined && wfusers !== null) {
|
|
61329
61422
|
var _selectedNodes = [];
|
|
61330
61423
|
taskNode.users.forEach(function (user) {
|
|
@@ -61340,28 +61433,33 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61340
61433
|
} else if (_selectedNodes.length > 2) {
|
|
61341
61434
|
_showUsers2 = _selectedNodes[0].name + '、' + _selectedNodes[1].name + '等' + _selectedNodes.length + '人';
|
|
61342
61435
|
}
|
|
61343
|
-
|
|
61344
|
-
|
|
61436
|
+
_this4.submitHandle.route[taskNode.name].users = _selectedNodes;
|
|
61437
|
+
_this4.submitHandle.route[taskNode.name].showUsers = _showUsers2;
|
|
61345
61438
|
}
|
|
61346
61439
|
}
|
|
61440
|
+
if (_this4.submitHandle.route[taskNode.name].users) {
|
|
61441
|
+
_this4.submitHandle.route[taskNode.name].users.forEach(function (user) {
|
|
61442
|
+
_this4.selectBanlFn(user, taskNode.users, taskNode);
|
|
61443
|
+
});
|
|
61444
|
+
}
|
|
61347
61445
|
if (parseInt(taskNode.tmLmtType) !== 9 && parseInt(taskNode.tmLmtCanEdit) === 1) {
|
|
61348
|
-
|
|
61446
|
+
_this4.showTimeLimit = true;
|
|
61349
61447
|
}
|
|
61350
61448
|
if ((selRoute.taskNodes.length === 1 || selRoute.mustNextTN.indexOf(taskNode.name) !== -1) && taskNode.users.length === 1 && taskNode.users[0].type !== 'asyncLoadingUsers') {
|
|
61351
|
-
|
|
61352
|
-
|
|
61353
|
-
|
|
61354
|
-
|
|
61449
|
+
_this4.submitHandle.route[taskNode.name].users = taskNode.users;
|
|
61450
|
+
_this4.submitHandle.route[taskNode.name].showUsers = taskNode.users[0].name;
|
|
61451
|
+
_this4.submitHandle.route[taskNode.name].isLink = false;
|
|
61452
|
+
_this4.selectBanlFn(taskNode.users[0], taskNode.users, taskNode);
|
|
61355
61453
|
}
|
|
61356
61454
|
i = _i;
|
|
61357
61455
|
};
|
|
61358
61456
|
for (var i = 0; i < selRoute.taskNodes.length; i++) {
|
|
61359
61457
|
_loop(i);
|
|
61360
61458
|
}
|
|
61361
|
-
|
|
61362
|
-
|
|
61363
|
-
|
|
61364
|
-
var suffixs =
|
|
61459
|
+
_this4.initiated = true;
|
|
61460
|
+
_this4.$forceUpdate();
|
|
61461
|
+
_this4.$nextTick(function () {
|
|
61462
|
+
var suffixs = _this4.$el.querySelectorAll('.tnLimit-container .van-field__body');
|
|
61365
61463
|
suffixs.forEach(function (suffix) {
|
|
61366
61464
|
suffix.setAttribute('value-suffix', '天');
|
|
61367
61465
|
});
|
|
@@ -61372,8 +61470,8 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61372
61470
|
var askMsgTypes = this.submitHandle.askMsgTypes.split(',');
|
|
61373
61471
|
this.wfInstance.passenger.msgTypeOptions.forEach(function (msgType) {
|
|
61374
61472
|
if (askMsgTypes.indexOf(msgType.value + '') !== -1) {
|
|
61375
|
-
if (
|
|
61376
|
-
|
|
61473
|
+
if (_this4.msgType) _this4.msgType += '、';
|
|
61474
|
+
_this4.msgType += msgType.text;
|
|
61377
61475
|
}
|
|
61378
61476
|
});
|
|
61379
61477
|
}
|
|
@@ -61424,7 +61522,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61424
61522
|
}
|
|
61425
61523
|
},
|
|
61426
61524
|
saveCommonIdea: function saveCommonIdea() {
|
|
61427
|
-
var
|
|
61525
|
+
var _this5 = this;
|
|
61428
61526
|
if (this.submitHandle.curUserIdea === null || this.submitHandle.curUserIdea.trim() === '') {
|
|
61429
61527
|
this.$dialog.alert({
|
|
61430
61528
|
message: this.$tx('ecmapp.common.pWriteOpinion', '请填写处理意见。'),
|
|
@@ -61437,11 +61535,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61437
61535
|
this.$options.components['BusiForm'] = this.$wfEngine.loadBusiform(this, this.commonIdeaModuleInfo.formTemplate, 'M');
|
|
61438
61536
|
this.popupDialogVisible = true;
|
|
61439
61537
|
setTimeout(function () {
|
|
61440
|
-
|
|
61538
|
+
_this5.$bus.emit('openBusiform', _this5.commonIdeaModuleInfo, null, 1, _this5.closePopupDialog);
|
|
61441
61539
|
}, 0);
|
|
61442
61540
|
},
|
|
61443
61541
|
applyCommonIdea: function applyCommonIdea() {
|
|
61444
|
-
var
|
|
61542
|
+
var _this6 = this;
|
|
61445
61543
|
if (this.commonIdeaList.length === 0) {
|
|
61446
61544
|
this.$dialog.alert({
|
|
61447
61545
|
message: this.$tx('ecmapp.wflowform.noComOpinion', '暂无常用意见。'),
|
|
@@ -61459,24 +61557,24 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61459
61557
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.wflowform.selectComOpinion', '选择常用意见'), itemlist, function (res) {
|
|
61460
61558
|
if (res.code !== 'success') return;
|
|
61461
61559
|
var ideaContent = res.value.text;
|
|
61462
|
-
if (
|
|
61463
|
-
|
|
61464
|
-
|
|
61465
|
-
} else if (
|
|
61466
|
-
|
|
61467
|
-
|
|
61560
|
+
if (_this6.submitHandle.curUserIdea === undefined || _this6.submitHandle.curUserIdea === null || _this6.submitHandle.curUserIdea.trim() === '') {
|
|
61561
|
+
_this6.submitHandle.curUserIdea = ideaContent;
|
|
61562
|
+
_this6.$forceUpdate();
|
|
61563
|
+
} else if (_this6.commonIdeaFillMode === 'append') {
|
|
61564
|
+
_this6.submitHandle.curUserIdea += ideaContent;
|
|
61565
|
+
_this6.$forceUpdate();
|
|
61468
61566
|
} else {
|
|
61469
|
-
|
|
61470
|
-
message:
|
|
61567
|
+
_this6.$dialog.confirm({
|
|
61568
|
+
message: _this6.$tx('ecmapp.wflowform.alreadlyHave', '意见已存在,是否确认使用常用意见?')
|
|
61471
61569
|
}).then(function () {
|
|
61472
|
-
|
|
61473
|
-
|
|
61570
|
+
_this6.submitHandle.curUserIdea = ideaContent;
|
|
61571
|
+
_this6.$forceUpdate();
|
|
61474
61572
|
});
|
|
61475
61573
|
}
|
|
61476
61574
|
}, null, false, 'bottomDialog');
|
|
61477
61575
|
},
|
|
61478
61576
|
saveSubmitTemplate: function saveSubmitTemplate() {
|
|
61479
|
-
var
|
|
61577
|
+
var _this7 = this;
|
|
61480
61578
|
if (this.curTN.tnIdeaLabelID && this.curTN.tnIdeaIsMust === 1) {
|
|
61481
61579
|
if (this.submitHandle.curUserIdea === null || this.submitHandle.curUserIdea.trim() === '') {
|
|
61482
61580
|
this.$dialog.alert({
|
|
@@ -61497,7 +61595,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61497
61595
|
this.$options.components['BusiForm'] = this.$wfEngine.loadBusiform(this, this.submitTemplateModuleInfo.formTemplate, 'M');
|
|
61498
61596
|
this.popupDialogVisible = true;
|
|
61499
61597
|
setTimeout(function () {
|
|
61500
|
-
|
|
61598
|
+
_this7.$bus.emit('openBusiform', _this7.submitTemplateModuleInfo, null, 1, _this7.closePopupDialog);
|
|
61501
61599
|
}, 0);
|
|
61502
61600
|
},
|
|
61503
61601
|
onBasicFormBeforeOpen: function onBasicFormBeforeOpen($scope, vo, defer) {
|
|
@@ -61552,7 +61650,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61552
61650
|
this.curNode = null;
|
|
61553
61651
|
},
|
|
61554
61652
|
applySubmitTemplate: function applySubmitTemplate() {
|
|
61555
|
-
var
|
|
61653
|
+
var _this8 = this;
|
|
61556
61654
|
if (this.submitTemplateList.length === 0) {
|
|
61557
61655
|
this.$dialog.alert({
|
|
61558
61656
|
message: this.$tx('ecmapp.wflowform.noTemplate', '暂无办理模板。')
|
|
@@ -61570,9 +61668,9 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61570
61668
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.Wflowform.fields.selectTemplate', '选择办理模板'), itemlist, function (res) {
|
|
61571
61669
|
if (res.code !== 'success') return;
|
|
61572
61670
|
var submitTemplateIndex = res.value.value;
|
|
61573
|
-
_this.$wfEngine.applySubmitTemplate(_this, JSON.parse(
|
|
61574
|
-
if (_this.wfJsonData.routes[
|
|
61575
|
-
_this.wfJsonData.routes[
|
|
61671
|
+
_this.$wfEngine.applySubmitTemplate(_this, JSON.parse(_this8.submitTemplateList[submitTemplateIndex].submitJsondata));
|
|
61672
|
+
if (_this.wfJsonData.routes[_this8.submitHandle.route.index].taskNodes) {
|
|
61673
|
+
_this.wfJsonData.routes[_this8.submitHandle.route.index].taskNodes.forEach(function (taskNode) {
|
|
61576
61674
|
if (_this.submitHandle.route[taskNode.name]) {
|
|
61577
61675
|
var users = _this.submitHandle.route[taskNode.name].users;
|
|
61578
61676
|
if (users) {
|
|
@@ -61611,7 +61709,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61611
61709
|
this.$forceUpdate();
|
|
61612
61710
|
},
|
|
61613
61711
|
selectWfNodeUser: function selectWfNodeUser(title, wfNode) {
|
|
61614
|
-
var
|
|
61712
|
+
var _this9 = this;
|
|
61615
61713
|
if (wfNode.showNodeUsers === 2) return; // 自动全选、并且不允许修改
|
|
61616
61714
|
|
|
61617
61715
|
var condition = {
|
|
@@ -61653,26 +61751,26 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61653
61751
|
} else if (res.value.length > 2) {
|
|
61654
61752
|
showUsers = res.value[0].name + '、' + res.value[1].name + '等' + res.value.length + '人';
|
|
61655
61753
|
}
|
|
61656
|
-
if (!
|
|
61657
|
-
|
|
61658
|
-
|
|
61754
|
+
if (!_this9.submitHandle.route[title]) _this9.submitHandle.route[title] = {};
|
|
61755
|
+
_this9.submitHandle.route[title].users = res.value;
|
|
61756
|
+
_this9.submitHandle.route[title].showUsers = showUsers;
|
|
61659
61757
|
|
|
61660
61758
|
//当前环节设置为选择人员后自动填写组合意见
|
|
61661
|
-
if (
|
|
61759
|
+
if (_this9.curTN.tnIdeaAutoFillType == 2 && _this9.curTN.tnIdeaAutoFillContent) {
|
|
61662
61760
|
var userNames = '';
|
|
61663
61761
|
res.value.forEach(function (user) {
|
|
61664
61762
|
if (userNames) userNames += '、';
|
|
61665
61763
|
userNames += user.name;
|
|
61666
61764
|
});
|
|
61667
61765
|
var oldUserNames = '';
|
|
61668
|
-
if (
|
|
61669
|
-
|
|
61766
|
+
if (_this9.submitHandle.route[title].users) {
|
|
61767
|
+
_this9.submitHandle.route[title].users.forEach(function (user) {
|
|
61670
61768
|
if (oldUserNames) oldUserNames += '、';
|
|
61671
61769
|
oldUserNames += user.name;
|
|
61672
61770
|
});
|
|
61673
61771
|
}
|
|
61674
|
-
var idea =
|
|
61675
|
-
var oldIdea =
|
|
61772
|
+
var idea = _this9.curTN.tnIdeaAutoFillContent;
|
|
61773
|
+
var oldIdea = _this9.curTN.tnIdeaAutoFillContent;
|
|
61676
61774
|
if (idea.indexOf('${sendTo}') !== -1) {
|
|
61677
61775
|
idea = idea.replace('${sendTo}', userNames);
|
|
61678
61776
|
oldIdea = oldIdea.replace('${sendTo}', oldUserNames);
|
|
@@ -61685,13 +61783,13 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61685
61783
|
idea = idea.replace(_regex, userNames);
|
|
61686
61784
|
oldIdea = oldIdea.replace(_regex, oldUserNames);
|
|
61687
61785
|
}
|
|
61688
|
-
if (!
|
|
61689
|
-
|
|
61786
|
+
if (!_this9.submitHandle.curUserIdea || _this9.submitHandle.curUserIdea === oldIdea) {
|
|
61787
|
+
_this9.$set(_this9.submitHandle, 'curUserIdea', idea);
|
|
61690
61788
|
}
|
|
61691
61789
|
}
|
|
61692
|
-
|
|
61693
|
-
|
|
61694
|
-
|
|
61790
|
+
_this9.$forceUpdate();
|
|
61791
|
+
_this9.$nextTick(function () {
|
|
61792
|
+
_this9.submitHandleValChange();
|
|
61695
61793
|
});
|
|
61696
61794
|
}
|
|
61697
61795
|
}, oldValue);
|
|
@@ -61760,7 +61858,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61760
61858
|
return copytreeData;
|
|
61761
61859
|
},
|
|
61762
61860
|
selectMsgType: function selectMsgType() {
|
|
61763
|
-
var
|
|
61861
|
+
var _this10 = this;
|
|
61764
61862
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.wflowform.reminderMethod', '提醒方式'), this.msgTypeOptions, function (res) {
|
|
61765
61863
|
if (res.code !== 'success') return;
|
|
61766
61864
|
var askMsgTypes = '';
|
|
@@ -61774,14 +61872,14 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61774
61872
|
msgType = item.text;
|
|
61775
61873
|
}
|
|
61776
61874
|
});
|
|
61777
|
-
|
|
61778
|
-
|
|
61875
|
+
_this10.submitHandle.askMsgTypes = askMsgTypes;
|
|
61876
|
+
_this10.msgType = msgType;
|
|
61779
61877
|
if (msgType) {
|
|
61780
|
-
|
|
61878
|
+
_this10.submitHandle.askSMS = 1;
|
|
61781
61879
|
} else {
|
|
61782
|
-
|
|
61880
|
+
_this10.submitHandle.askSMS = 0;
|
|
61783
61881
|
}
|
|
61784
|
-
|
|
61882
|
+
_this10.$forceUpdate();
|
|
61785
61883
|
}, this.submitHandle.askMsgTypes,
|
|
61786
61884
|
//默认选中
|
|
61787
61885
|
true,
|
|
@@ -61807,7 +61905,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61807
61905
|
this.wfNodeDialogVisible = true;
|
|
61808
61906
|
},
|
|
61809
61907
|
delUdmNode: function delUdmNode(index) {
|
|
61810
|
-
var
|
|
61908
|
+
var _this11 = this;
|
|
61811
61909
|
if (index === 0) return;
|
|
61812
61910
|
if (this.curTN.tnNodeID) {
|
|
61813
61911
|
this.wfInstance.udmNodes.splice(index, 1);
|
|
@@ -61824,18 +61922,18 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61824
61922
|
}).then(function (res) {
|
|
61825
61923
|
if (res.code === 'success') {
|
|
61826
61924
|
var historyWflogs = res.body.listdata.filter(function (wflog) {
|
|
61827
|
-
return wflog.nodeName ===
|
|
61925
|
+
return wflog.nodeName === _this11.wfInstance.udmNodes[index].name;
|
|
61828
61926
|
});
|
|
61829
61927
|
if (historyWflogs.length > 0) {
|
|
61830
|
-
|
|
61928
|
+
_this11.$dialog.alert({
|
|
61831
61929
|
message: '不允许删除已经送审批或办理的节点!'
|
|
61832
61930
|
});
|
|
61833
61931
|
} else {
|
|
61834
|
-
|
|
61835
|
-
|
|
61932
|
+
_this11.wfInstance.udmNodes.splice(index, 1);
|
|
61933
|
+
_this11.$forceUpdate();
|
|
61836
61934
|
}
|
|
61837
61935
|
} else {
|
|
61838
|
-
|
|
61936
|
+
_this11.$dialog.alert({
|
|
61839
61937
|
message: res.message
|
|
61840
61938
|
});
|
|
61841
61939
|
}
|
|
@@ -61846,9 +61944,9 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61846
61944
|
});
|
|
61847
61945
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=script&lang=js
|
|
61848
61946
|
/* harmony default export */ var src_SubmitHandlevue_type_script_lang_js = (SubmitHandlevue_type_script_lang_js);
|
|
61849
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=
|
|
61850
|
-
var
|
|
61851
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=
|
|
61947
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=067f09e4&prod&scoped=true&lang=scss
|
|
61948
|
+
var SubmitHandlevue_type_style_index_0_id_067f09e4_prod_scoped_true_lang_scss = __webpack_require__(7013);
|
|
61949
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=067f09e4&prod&scoped=true&lang=scss
|
|
61852
61950
|
|
|
61853
61951
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue
|
|
61854
61952
|
|
|
@@ -61861,11 +61959,11 @@ var SubmitHandlevue_type_style_index_0_id_7c76928e_prod_scoped_true_lang_scss =
|
|
|
61861
61959
|
|
|
61862
61960
|
var SubmitHandle_component = (0,componentNormalizer/* default */.A)(
|
|
61863
61961
|
src_SubmitHandlevue_type_script_lang_js,
|
|
61864
|
-
|
|
61865
|
-
|
|
61962
|
+
SubmitHandlevue_type_template_id_067f09e4_scoped_true_render,
|
|
61963
|
+
SubmitHandlevue_type_template_id_067f09e4_scoped_true_staticRenderFns,
|
|
61866
61964
|
false,
|
|
61867
61965
|
null,
|
|
61868
|
-
"
|
|
61966
|
+
"067f09e4",
|
|
61869
61967
|
null
|
|
61870
61968
|
|
|
61871
61969
|
)
|