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.common.js
CHANGED
|
@@ -484,22 +484,26 @@ function getPageTitle(itemName, i18nCode, href, $scope) {
|
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
function getLanguage() {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
if (chooseLanguage
|
|
490
|
-
|
|
491
|
-
|
|
487
|
+
try {
|
|
488
|
+
var chooseLanguage = js_cookie__WEBPACK_IMPORTED_MODULE_0___default().get('language');
|
|
489
|
+
if (chooseLanguage) {
|
|
490
|
+
if (chooseLanguage == 'zh-CN') chooseLanguage = 'zhCN';
|
|
491
|
+
return chooseLanguage;
|
|
492
|
+
}
|
|
492
493
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
494
|
+
// if has not choose language
|
|
495
|
+
var language = (navigator.language || navigator.browserLanguage || '').toLowerCase();
|
|
496
|
+
if ($messages) {
|
|
497
|
+
var locales = Object.keys($messages);
|
|
498
|
+
for (var _i = 0, _locales = locales; _i < _locales.length; _i++) {
|
|
499
|
+
var locale = _locales[_i];
|
|
500
|
+
if (language.indexOf(locale) > -1) {
|
|
501
|
+
return locale;
|
|
502
|
+
}
|
|
501
503
|
}
|
|
502
504
|
}
|
|
505
|
+
} catch (e) {
|
|
506
|
+
console.log(e);
|
|
503
507
|
}
|
|
504
508
|
return 'zhCN';
|
|
505
509
|
}
|
|
@@ -7310,7 +7314,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".popub-container[data-v-6850137e]{widt
|
|
|
7310
7314
|
|
|
7311
7315
|
/***/ }),
|
|
7312
7316
|
|
|
7313
|
-
/***/
|
|
7317
|
+
/***/ 2681:
|
|
7314
7318
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7315
7319
|
|
|
7316
7320
|
"use strict";
|
|
@@ -7329,7 +7333,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
7329
7333
|
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()));
|
|
7330
7334
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
7331
7335
|
// Module
|
|
7332
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-
|
|
7336
|
+
___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%}", ""]);
|
|
7333
7337
|
// Exports
|
|
7334
7338
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
7335
7339
|
|
|
@@ -32483,19 +32487,19 @@ var update = add("0bbd0584", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
32483
32487
|
|
|
32484
32488
|
/***/ }),
|
|
32485
32489
|
|
|
32486
|
-
/***/
|
|
32490
|
+
/***/ 7331:
|
|
32487
32491
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
32488
32492
|
|
|
32489
32493
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
32490
32494
|
|
|
32491
32495
|
// load the styles
|
|
32492
|
-
var content = __webpack_require__(
|
|
32496
|
+
var content = __webpack_require__(2681);
|
|
32493
32497
|
if(content.__esModule) content = content.default;
|
|
32494
32498
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
32495
32499
|
if(content.locals) module.exports = content.locals;
|
|
32496
32500
|
// add the styles to the DOM
|
|
32497
32501
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
32498
|
-
var update = add("
|
|
32502
|
+
var update = add("1be003b0", content, true, {"sourceMap":false,"shadowMode":false});
|
|
32499
32503
|
|
|
32500
32504
|
/***/ }),
|
|
32501
32505
|
|
|
@@ -38952,43 +38956,56 @@ service.interceptors.response.use(function (response) {
|
|
|
38952
38956
|
} else if (error.response && error.response.data && error.response.data.code) {
|
|
38953
38957
|
return error.response.data;
|
|
38954
38958
|
} else if (error.response && error.response.data) {
|
|
38955
|
-
var
|
|
38959
|
+
var _errrst = {
|
|
38956
38960
|
code: 'error',
|
|
38957
38961
|
body: {}
|
|
38958
38962
|
};
|
|
38959
38963
|
if (error.response.data.message) {
|
|
38960
|
-
|
|
38964
|
+
_errrst.message = error.response.data.message;
|
|
38961
38965
|
} else if (error.response.data.error) {
|
|
38962
38966
|
if (error.response.data.status === 404) {
|
|
38963
|
-
|
|
38967
|
+
_errrst.message = window.$tx('request.status404');
|
|
38964
38968
|
} else {
|
|
38965
|
-
|
|
38969
|
+
_errrst.message = error.response.data.error;
|
|
38966
38970
|
}
|
|
38967
38971
|
} else if (error.response.data.msg) {
|
|
38968
|
-
|
|
38972
|
+
_errrst.message = error.response.data.msg;
|
|
38969
38973
|
} else {
|
|
38970
|
-
|
|
38974
|
+
_errrst.message = error.response.data;
|
|
38971
38975
|
}
|
|
38976
|
+
_errrst.message += '<br>' + error.config.url;
|
|
38972
38977
|
if (window.vType === 'wapp') {
|
|
38973
|
-
window.$alert(
|
|
38978
|
+
window.$alert(_errrst.message, window.$tx('common.operationTip'), {
|
|
38974
38979
|
type: 'error',
|
|
38975
38980
|
dangerouslyUseHTMLString: true
|
|
38976
38981
|
});
|
|
38977
38982
|
} else {
|
|
38978
38983
|
window.$alert({
|
|
38979
|
-
message:
|
|
38984
|
+
message: _errrst.message,
|
|
38980
38985
|
type: 'error',
|
|
38981
38986
|
allowHtml: true
|
|
38982
38987
|
});
|
|
38983
38988
|
}
|
|
38984
|
-
return Promise.reject(
|
|
38989
|
+
return Promise.reject(_errrst.message);
|
|
38985
38990
|
} else {
|
|
38986
|
-
var
|
|
38987
|
-
|
|
38988
|
-
|
|
38989
|
-
|
|
38990
|
-
|
|
38991
|
-
|
|
38991
|
+
var errmsg = error;
|
|
38992
|
+
if (typeof errmsg !== 'string' && error.message) {
|
|
38993
|
+
errmsg = error.message;
|
|
38994
|
+
}
|
|
38995
|
+
errmsg += '<br>' + error.config.url;
|
|
38996
|
+
if (window.vType === 'wapp') {
|
|
38997
|
+
window.$alert(errmsg, window.$tx('common.operationTip'), {
|
|
38998
|
+
type: 'error',
|
|
38999
|
+
dangerouslyUseHTMLString: true
|
|
39000
|
+
});
|
|
39001
|
+
} else {
|
|
39002
|
+
window.$alert({
|
|
39003
|
+
message: errmsg,
|
|
39004
|
+
type: 'error',
|
|
39005
|
+
allowHtml: true
|
|
39006
|
+
});
|
|
39007
|
+
}
|
|
39008
|
+
return Promise.reject(errrst);
|
|
38992
39009
|
}
|
|
38993
39010
|
});
|
|
38994
39011
|
/* harmony default export */ var request = (service);
|
|
@@ -39548,6 +39565,16 @@ var wfengine_install = function install(Vue) {
|
|
|
39548
39565
|
}
|
|
39549
39566
|
});
|
|
39550
39567
|
}
|
|
39568
|
+
if ($scope.wfInstance.udmNodes && $scope.wfInstance.udmNodes !== '') {
|
|
39569
|
+
var udmNodes = JSON.parse($scope.wfInstance.udmNodes);
|
|
39570
|
+
for (var _i = 0; _i < udmNodes.length; _i++) {
|
|
39571
|
+
if (udmNodes[_i].name === 'chartData') {
|
|
39572
|
+
$scope.wfInstance.passenger.chartData = udmNodes[_i];
|
|
39573
|
+
udmNodes.splice(_i--, 1);
|
|
39574
|
+
}
|
|
39575
|
+
}
|
|
39576
|
+
$scope.wfInstance.udmNodes = udmNodes;
|
|
39577
|
+
}
|
|
39551
39578
|
$scope.commonIdeaList = $scope.wfInstance.passenger.commonIdeaList;
|
|
39552
39579
|
if ($scope.commonIdeaList === undefined) $scope.commonIdeaList = [];
|
|
39553
39580
|
// $scope.commonIdeaList.unshift('---选择常用意见---')
|
|
@@ -39691,6 +39718,124 @@ var wfengine_install = function install(Vue) {
|
|
|
39691
39718
|
});
|
|
39692
39719
|
});
|
|
39693
39720
|
},
|
|
39721
|
+
setUdmCustomRoutes: function setUdmCustomRoutes($scope) {
|
|
39722
|
+
var curNode = null;
|
|
39723
|
+
var curNodeIndex = -1;
|
|
39724
|
+
var customRoutes = [];
|
|
39725
|
+
$scope.wfInstance.udmNodes.forEach(function (taskNode, index) {
|
|
39726
|
+
if (taskNode.name === $scope.curTN.tnNodeName) {
|
|
39727
|
+
curNode = taskNode;
|
|
39728
|
+
curNodeIndex = index;
|
|
39729
|
+
if ($scope.wfInstance.passenger.udmNodeUsers) {
|
|
39730
|
+
var nextRoute = null;
|
|
39731
|
+
if ($scope.wfInstance.passenger.chartData) {
|
|
39732
|
+
//从流程配置图中获取提交路径、下一节点
|
|
39733
|
+
curNode.canEndWflow = 0;
|
|
39734
|
+
var paths = $scope.wfInstance.passenger.chartData.paths;
|
|
39735
|
+
paths.forEach(function (path) {
|
|
39736
|
+
if (path.preNodeId === curNode.uuid) {
|
|
39737
|
+
var nextNodes = $scope.wfInstance.udmNodes.filter(function (udmNode) {
|
|
39738
|
+
if (udmNode.uuid === path.targetNodeId) {
|
|
39739
|
+
if (!udmNode.users) udmNode.users = [];
|
|
39740
|
+
return true;
|
|
39741
|
+
}
|
|
39742
|
+
});
|
|
39743
|
+
nextRoute = {
|
|
39744
|
+
evtMsg: '',
|
|
39745
|
+
mustNextTN: '',
|
|
39746
|
+
evtCplPercent: '0',
|
|
39747
|
+
name: path.name,
|
|
39748
|
+
fullName: path.name,
|
|
39749
|
+
taskNodes: [],
|
|
39750
|
+
type: path.pathType + '' || '0'
|
|
39751
|
+
};
|
|
39752
|
+
if (nextNodes.length > 0) {
|
|
39753
|
+
nextRoute.taskNodes.push(JSON.parse(JSON.stringify(nextNodes[0])));
|
|
39754
|
+
nextRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers[nextNodes[0].name] || [];
|
|
39755
|
+
}
|
|
39756
|
+
customRoutes.push(nextRoute);
|
|
39757
|
+
}
|
|
39758
|
+
});
|
|
39759
|
+
}
|
|
39760
|
+
if (nextRoute === null) {
|
|
39761
|
+
//根据自定义环节数组,动态计算生成提交路径、下一节点
|
|
39762
|
+
if ($scope.wfInstance.udmNodes.length > index + 1) {
|
|
39763
|
+
curNode.canEndWflow = 0;
|
|
39764
|
+
var nextNode = $scope.wfInstance.udmNodes[index + 1];
|
|
39765
|
+
if (!nextNode.users) {
|
|
39766
|
+
nextNode.users = [];
|
|
39767
|
+
}
|
|
39768
|
+
nextRoute = {
|
|
39769
|
+
evtMsg: '',
|
|
39770
|
+
mustNextTN: '',
|
|
39771
|
+
evtCplPercent: '0',
|
|
39772
|
+
name: $scope.$tx('ecwapp.Wflowform.SubmitHandle.sendRoute', {
|
|
39773
|
+
nextNode: nextNode.name
|
|
39774
|
+
}, "\u9001".concat(nextNode.name)),
|
|
39775
|
+
fullName: $scope.$tx('ecwapp.Wflowform.SubmitHandle.sendRoute', {
|
|
39776
|
+
nextNode: nextNode.name
|
|
39777
|
+
}, "\u9001".concat(nextNode.name)),
|
|
39778
|
+
taskNodes: [JSON.parse(JSON.stringify(nextNode))],
|
|
39779
|
+
type: '0'
|
|
39780
|
+
};
|
|
39781
|
+
nextRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers[nextNode.name] || [];
|
|
39782
|
+
customRoutes.push(nextRoute);
|
|
39783
|
+
} else {
|
|
39784
|
+
curNode.canEndWflow = 1;
|
|
39785
|
+
}
|
|
39786
|
+
}
|
|
39787
|
+
}
|
|
39788
|
+
}
|
|
39789
|
+
if (index === 0) {
|
|
39790
|
+
taskNode.icon = 'el-icon-video-play';
|
|
39791
|
+
} else if (index + 1 === $scope.wfInstance.udmNodes.length) {
|
|
39792
|
+
taskNode.icon = 'el-icon-finished';
|
|
39793
|
+
} else {
|
|
39794
|
+
taskNode.icon = 'el-icon-edit-outline';
|
|
39795
|
+
}
|
|
39796
|
+
});
|
|
39797
|
+
if (curNode == null) {
|
|
39798
|
+
$scope.udmNode = null;
|
|
39799
|
+
$scope.wfInstance.udmNodes = null;
|
|
39800
|
+
return customRoutes;
|
|
39801
|
+
}
|
|
39802
|
+
if (curNode.canEndWflow !== 0) {
|
|
39803
|
+
var endRoute = {
|
|
39804
|
+
evtMsg: '',
|
|
39805
|
+
mustNextTN: '',
|
|
39806
|
+
evtCplPercent: '0',
|
|
39807
|
+
name: $scope.$tx('ecwapp.Wflowform.SubmitHandle.endProcessing', '结束处理'),
|
|
39808
|
+
fullName: $scope.$tx('ecwapp.Wflowform.SubmitHandle.endProcessing', '结束处理'),
|
|
39809
|
+
taskNodes: [],
|
|
39810
|
+
type: '4'
|
|
39811
|
+
};
|
|
39812
|
+
customRoutes.push(endRoute);
|
|
39813
|
+
}
|
|
39814
|
+
if (curNode.returnHistoryTN !== 0 && curNodeIndex > 0 && $scope.wfInstance.passenger.udmNodeUsers) {
|
|
39815
|
+
var backRoute = {
|
|
39816
|
+
evtMsg: '',
|
|
39817
|
+
mustNextTN: '',
|
|
39818
|
+
evtCplPercent: '0',
|
|
39819
|
+
name: $scope.$tx('ecwapp.Wflowform.SubmitHandle.sendBack', '退回'),
|
|
39820
|
+
taskNodes: [],
|
|
39821
|
+
type: '3'
|
|
39822
|
+
};
|
|
39823
|
+
if (curNode.returnHistoryTN == 2) {
|
|
39824
|
+
//退回到发起节点
|
|
39825
|
+
backRoute.name = '退回发起人';
|
|
39826
|
+
backRoute.taskNodes.push(JSON.parse(JSON.stringify($scope.wfInstance.udmNodes[0])));
|
|
39827
|
+
backRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
39828
|
+
} else {
|
|
39829
|
+
//退回到上一节点
|
|
39830
|
+
backRoute.name = '退回上一节点';
|
|
39831
|
+
backRoute.taskNodes.push(JSON.parse(JSON.stringify($scope.wfInstance.udmNodes[curNodeIndex - 1])));
|
|
39832
|
+
backRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
39833
|
+
}
|
|
39834
|
+
backRoute.fullName = backRoute.name;
|
|
39835
|
+
customRoutes.push(backRoute);
|
|
39836
|
+
}
|
|
39837
|
+
return customRoutes;
|
|
39838
|
+
},
|
|
39694
39839
|
setCommandBar: function setCommandBar($scope, commandBar) {
|
|
39695
39840
|
commandBar.forEach(function (btn) {
|
|
39696
39841
|
if (btn.btnAlign === 2) btn.btnAlign = 1;
|
|
@@ -39833,8 +39978,12 @@ var wfengine_install = function install(Vue) {
|
|
|
39833
39978
|
params.copyWfNodeUser = 1;
|
|
39834
39979
|
params.asyncLoading = 1;
|
|
39835
39980
|
params.submitMode = window.submitMode;
|
|
39981
|
+
var wfInstanceVo = JSON.parse(JSON.stringify(wfInstance));
|
|
39982
|
+
if (wfInstanceVo.udmNodes && wfInstanceVo.passenger.chartData) {
|
|
39983
|
+
wfInstanceVo.udmNodes.push(wfInstanceVo.passenger.chartData);
|
|
39984
|
+
}
|
|
39836
39985
|
var saveData = {
|
|
39837
|
-
wfInstance: JSON.stringify(
|
|
39986
|
+
wfInstance: JSON.stringify(wfInstanceVo),
|
|
39838
39987
|
curTN: JSON.stringify($scope.curTN)
|
|
39839
39988
|
};
|
|
39840
39989
|
$scope.$http({
|
|
@@ -39913,13 +40062,17 @@ var wfengine_install = function install(Vue) {
|
|
|
39913
40062
|
$scope.vobak = JSON.parse(JSON.stringify($scope.vo));
|
|
39914
40063
|
$scope.wfJsonDatabak = JSON.parse(JSON.stringify($scope.wfJsonData || {}));
|
|
39915
40064
|
$scope.wfInstancebak = JSON.parse(JSON.stringify($scope.wfInstance));
|
|
39916
|
-
$scope.wfInstance.title = $scope.vo.flSubject || $scope.wfInstance.wfName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39917
40065
|
if ($scope.vo.status === -1) $scope.vo.status = 0;
|
|
39918
40066
|
$scope.wfInstance.passenger.busiData = $scope.vo;
|
|
39919
40067
|
if ($scope.wfInstance.udmNodes && $scope.wfInstance.udmNodes !== '') {
|
|
40068
|
+
$scope.wfInstance.title = $scope.vo.flSubject || $scope.vo.flFormName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39920
40069
|
$scope.wfInstance.passenger.wfName = $scope.vo.flFormName;
|
|
40070
|
+
if ($scope.wfInstance.passenger.chartData) {
|
|
40071
|
+
$scope.wfInstance.udmNodes.push($scope.wfInstance.passenger.chartData);
|
|
40072
|
+
}
|
|
39921
40073
|
} else {
|
|
39922
40074
|
$scope.wfInstance.udmNodes = '';
|
|
40075
|
+
$scope.wfInstance.title = $scope.vo.flSubject || $scope.wfInstance.wfName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39923
40076
|
}
|
|
39924
40077
|
|
|
39925
40078
|
// 数据封装
|
|
@@ -59002,8 +59155,8 @@ var SelectOuterDeputy_component = (0,componentNormalizer/* default */.A)(
|
|
|
59002
59155
|
)
|
|
59003
59156
|
|
|
59004
59157
|
/* harmony default export */ var SelectOuterDeputy = (SelectOuterDeputy_component.exports);
|
|
59005
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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=
|
|
59006
|
-
var
|
|
59158
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
59159
|
+
var SubmitHandlevue_type_template_id_067f09e4_scoped_true_render = function render() {
|
|
59007
59160
|
var _vm = this,
|
|
59008
59161
|
_c = _vm._self._c;
|
|
59009
59162
|
return _vm.initiated ? _c('div', {
|
|
@@ -59020,7 +59173,7 @@ var SubmitHandlevue_type_template_id_7c76928e_scoped_true_render = function rend
|
|
|
59020
59173
|
expression: "'defineSteps'"
|
|
59021
59174
|
}],
|
|
59022
59175
|
attrs: {
|
|
59023
|
-
"title": "
|
|
59176
|
+
"title": "流程环节"
|
|
59024
59177
|
}
|
|
59025
59178
|
}, [_c('van-icon', {
|
|
59026
59179
|
staticStyle: {
|
|
@@ -59067,7 +59220,7 @@ var SubmitHandlevue_type_template_id_7c76928e_scoped_true_render = function rend
|
|
|
59067
59220
|
return _vm.editUdmNode(taskNode);
|
|
59068
59221
|
}
|
|
59069
59222
|
}
|
|
59070
|
-
}), _c('van-icon', {
|
|
59223
|
+
}), !_vm.chartData ? _c('van-icon', {
|
|
59071
59224
|
attrs: {
|
|
59072
59225
|
"color": index == 0 ? '#f3a3a3' : '#ee0a24',
|
|
59073
59226
|
"name": "cross"
|
|
@@ -59078,7 +59231,7 @@ var SubmitHandlevue_type_template_id_7c76928e_scoped_true_render = function rend
|
|
|
59078
59231
|
return _vm.delUdmNode(index);
|
|
59079
59232
|
}
|
|
59080
59233
|
}
|
|
59081
|
-
})], 1)], 2);
|
|
59234
|
+
}) : _vm._e()], 1)], 2);
|
|
59082
59235
|
})], 2) : _vm._e(), _vm.wfJsonData && _vm.wfJsonData.routes && _vm.wfJsonData.routes.length > 0 ? _vm._t("default", function () {
|
|
59083
59236
|
return [_vm.curTN.tnIdeaLabelID !== null && _vm.curTN.tnIdeaLabelID !== '' ? _c('div', {
|
|
59084
59237
|
staticClass: "form-slicer"
|
|
@@ -59658,10 +59811,10 @@ var SubmitHandlevue_type_template_id_7c76928e_scoped_true_render = function rend
|
|
|
59658
59811
|
}
|
|
59659
59812
|
})], 1) : _vm._e()], 2) : _vm._e();
|
|
59660
59813
|
};
|
|
59661
|
-
var
|
|
59814
|
+
var SubmitHandlevue_type_template_id_067f09e4_scoped_true_staticRenderFns = [];
|
|
59662
59815
|
|
|
59663
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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=
|
|
59664
|
-
var
|
|
59816
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
59817
|
+
var WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_render = function render() {
|
|
59665
59818
|
var _vm = this,
|
|
59666
59819
|
_c = _vm._self._c;
|
|
59667
59820
|
return _c('div', [_c('van-cell-group', [_c('div', {
|
|
@@ -60285,7 +60438,7 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_render = function render
|
|
|
60285
60438
|
}
|
|
60286
60439
|
}, [_vm._v("取 消")])]], 2)], 1);
|
|
60287
60440
|
};
|
|
60288
|
-
var
|
|
60441
|
+
var WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_staticRenderFns = [];
|
|
60289
60442
|
|
|
60290
60443
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
60291
60444
|
|
|
@@ -60531,6 +60684,9 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_staticRenderFns = [];
|
|
|
60531
60684
|
taskNode: {
|
|
60532
60685
|
handler: function handler(newValue, oldValue) {
|
|
60533
60686
|
var _this = this;
|
|
60687
|
+
if (this.taskNode.nodeType === undefined) {
|
|
60688
|
+
this.taskNode.nodeType = 1;
|
|
60689
|
+
}
|
|
60534
60690
|
if (this.taskNode.selectType !== undefined) {
|
|
60535
60691
|
this.selectTypeOptions.forEach(function (item) {
|
|
60536
60692
|
if (item.value === _this.taskNode.selectType) {
|
|
@@ -60869,11 +61025,11 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_staticRenderFns = [];
|
|
|
60869
61025
|
;
|
|
60870
61026
|
var WfTaskNode_component = (0,componentNormalizer/* default */.A)(
|
|
60871
61027
|
src_WfTaskNodevue_type_script_lang_js,
|
|
60872
|
-
|
|
60873
|
-
|
|
61028
|
+
WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_render,
|
|
61029
|
+
WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_staticRenderFns,
|
|
60874
61030
|
false,
|
|
60875
61031
|
null,
|
|
60876
|
-
"
|
|
61032
|
+
"8e60a7d4",
|
|
60877
61033
|
null
|
|
60878
61034
|
|
|
60879
61035
|
)
|
|
@@ -61012,7 +61168,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61012
61168
|
selectCount: 0
|
|
61013
61169
|
};
|
|
61014
61170
|
},
|
|
61015
|
-
computed: {
|
|
61171
|
+
computed: {
|
|
61172
|
+
chartData: function chartData() {
|
|
61173
|
+
return this.wfInstance.passenger.chartData;
|
|
61174
|
+
}
|
|
61175
|
+
},
|
|
61016
61176
|
watch: {
|
|
61017
61177
|
wfJsonData: {
|
|
61018
61178
|
handler: function handler(newValue, oldValue) {
|
|
@@ -61030,77 +61190,10 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61030
61190
|
},
|
|
61031
61191
|
wfInstance: {
|
|
61032
61192
|
handler: function handler(newValue, oldValue) {
|
|
61033
|
-
var _this2 = this;
|
|
61034
61193
|
var _this = this;
|
|
61035
61194
|
if (this.wfInstance.udmNodes && this.wfInstance.udmNodes !== '[]' && typeof this.wfInstance.udmNodes === 'string') this.wfInstance.udmNodes = JSON.parse(this.wfInstance.udmNodes);
|
|
61036
61195
|
if (this.wfInstance.udmNodes && SubmitHandlevue_type_script_lang_js_typeof(this.wfInstance.udmNodes) === 'object' && this.curTN.tnNodeID !== null) {
|
|
61037
|
-
|
|
61038
|
-
var curNodeIndex = -1;
|
|
61039
|
-
var customRoutes = [];
|
|
61040
|
-
this.wfInstance.udmNodes.forEach(function (taskNode, index) {
|
|
61041
|
-
if (taskNode.name === _this2.curTN.tnNodeName) {
|
|
61042
|
-
curNode = taskNode;
|
|
61043
|
-
curNodeIndex = index;
|
|
61044
|
-
if (curNode.canSendToNext !== 0 && _this2.wfInstance.udmNodes.length > index + 1 && _this.wfInstance.passenger.udmNodeUsers) {
|
|
61045
|
-
var nextNode = _this2.wfInstance.udmNodes[index + 1];
|
|
61046
|
-
if (!nextNode.users) {
|
|
61047
|
-
nextNode.users = [];
|
|
61048
|
-
}
|
|
61049
|
-
var nextRoute = {
|
|
61050
|
-
evtMsg: '',
|
|
61051
|
-
mustNextTN: '',
|
|
61052
|
-
evtCplPercent: '0',
|
|
61053
|
-
name: '送' + nextNode.name,
|
|
61054
|
-
fullName: '送' + nextNode.name,
|
|
61055
|
-
taskNodes: [JSON.parse(JSON.stringify(nextNode))],
|
|
61056
|
-
type: '0'
|
|
61057
|
-
};
|
|
61058
|
-
nextRoute.taskNodes[0].users = _this2.wfInstance.passenger.udmNodeUsers.nextUsers || [];
|
|
61059
|
-
customRoutes.push(nextRoute);
|
|
61060
|
-
}
|
|
61061
|
-
}
|
|
61062
|
-
});
|
|
61063
|
-
if (curNode == null) {
|
|
61064
|
-
this.udmNode = null;
|
|
61065
|
-
this.wfInstance.udmNodes = null;
|
|
61066
|
-
return;
|
|
61067
|
-
}
|
|
61068
|
-
if (curNode.canEndWflow !== 0) {
|
|
61069
|
-
var endRoute = {
|
|
61070
|
-
evtMsg: '',
|
|
61071
|
-
mustNextTN: '',
|
|
61072
|
-
evtCplPercent: '0',
|
|
61073
|
-
name: '结束处理',
|
|
61074
|
-
fullName: '结束处理',
|
|
61075
|
-
taskNodes: [],
|
|
61076
|
-
type: '4'
|
|
61077
|
-
};
|
|
61078
|
-
customRoutes.push(endRoute);
|
|
61079
|
-
}
|
|
61080
|
-
if (curNode.returnHistoryTN !== 0 && curNodeIndex > 0 && this.wfInstance.passenger.udmNodeUsers) {
|
|
61081
|
-
var backRoute = {
|
|
61082
|
-
evtMsg: '',
|
|
61083
|
-
mustNextTN: '',
|
|
61084
|
-
evtCplPercent: '0',
|
|
61085
|
-
name: this.$tx('ecwapp.Wflowform.SubmitHandle.sendBack', '退回'),
|
|
61086
|
-
taskNodes: [],
|
|
61087
|
-
type: '3'
|
|
61088
|
-
};
|
|
61089
|
-
if (curNode.returnHistoryTN == 2) {
|
|
61090
|
-
//退回到发起节点
|
|
61091
|
-
backRoute.name = '退回发起人';
|
|
61092
|
-
backRoute.taskNodes.push(JSON.parse(JSON.stringify(this.wfInstance.udmNodes[0])));
|
|
61093
|
-
backRoute.taskNodes[0].users = this.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
61094
|
-
} else {
|
|
61095
|
-
//退回到上一节点
|
|
61096
|
-
backRoute.name = '退回上一节点';
|
|
61097
|
-
backRoute.taskNodes.push(JSON.parse(JSON.stringify(this.wfInstance.udmNodes[curNodeIndex - 1])));
|
|
61098
|
-
backRoute.taskNodes[0].users = this.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
61099
|
-
}
|
|
61100
|
-
backRoute.fullName = backRoute.name;
|
|
61101
|
-
customRoutes.push(backRoute);
|
|
61102
|
-
}
|
|
61103
|
-
this.wfJsonData.routes = customRoutes;
|
|
61196
|
+
this.wfJsonData.routes = _this.$wfEngine.setUdmCustomRoutes(_this);
|
|
61104
61197
|
this.initSubmitHandle();
|
|
61105
61198
|
}
|
|
61106
61199
|
this.$forceUpdate();
|
|
@@ -61128,14 +61221,14 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61128
61221
|
clearInterval(this.timer);
|
|
61129
61222
|
},
|
|
61130
61223
|
mounted: function mounted() {
|
|
61131
|
-
var
|
|
61224
|
+
var _this2 = this;
|
|
61132
61225
|
this.msgTypeOptions = this.wfInstance.passenger.msgTypeOptions || null;
|
|
61133
61226
|
this.initSubmitHandle();
|
|
61134
61227
|
this.curUserIdea = this.submitHandle.curUserIdea;
|
|
61135
61228
|
this.timer = setInterval(function () {
|
|
61136
|
-
if (
|
|
61137
|
-
|
|
61138
|
-
|
|
61229
|
+
if (_this2.submitHandle.curUserIdea !== _this2.curUserIdea && _this2.submitHandle.curUserIdea !== '') {
|
|
61230
|
+
_this2.saveCurTNIdea('AutoSave');
|
|
61231
|
+
_this2.curUserIdea = _this2.submitHandle.curUserIdea;
|
|
61139
61232
|
}
|
|
61140
61233
|
}, 5 * 60 * 1000);
|
|
61141
61234
|
if (this.$vnode.context.attachments) {
|
|
@@ -61157,7 +61250,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61157
61250
|
},
|
|
61158
61251
|
// 表单内选择
|
|
61159
61252
|
selectBanlFn: function selectBanlFn(item, users, wfNode) {
|
|
61160
|
-
var
|
|
61253
|
+
var _this3 = this;
|
|
61161
61254
|
if (item.changed) {
|
|
61162
61255
|
if (users.length > 1) {
|
|
61163
61256
|
item.changed = false;
|
|
@@ -61205,7 +61298,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61205
61298
|
this.submitHandle.route[title].showUsers = showUsers;
|
|
61206
61299
|
this.$forceUpdate();
|
|
61207
61300
|
this.$nextTick(function () {
|
|
61208
|
-
|
|
61301
|
+
_this3.submitHandleValChange();
|
|
61209
61302
|
});
|
|
61210
61303
|
} else {
|
|
61211
61304
|
// 直接选择人员
|
|
@@ -61223,7 +61316,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61223
61316
|
this.submitHandle.route[_title].showUsers = _showUsers;
|
|
61224
61317
|
this.$forceUpdate();
|
|
61225
61318
|
this.$nextTick(function () {
|
|
61226
|
-
|
|
61319
|
+
_this3.submitHandleValChange();
|
|
61227
61320
|
});
|
|
61228
61321
|
}
|
|
61229
61322
|
},
|
|
@@ -61231,7 +61324,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61231
61324
|
this.$bus.emit('submitHandleValChange', this);
|
|
61232
61325
|
},
|
|
61233
61326
|
initSubmitHandle: function initSubmitHandle(action) {
|
|
61234
|
-
var
|
|
61327
|
+
var _this4 = this;
|
|
61235
61328
|
var _this = this;
|
|
61236
61329
|
_this.showTimeLimit = false;
|
|
61237
61330
|
_this.isUdmNodes = _this.wfInstance.passenger.isUdmNodes;
|
|
@@ -61239,11 +61332,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61239
61332
|
new Promise(function (resolve, reject) {
|
|
61240
61333
|
// 响应路径单击事件
|
|
61241
61334
|
if (action === 'click') {
|
|
61242
|
-
|
|
61335
|
+
_this4.wfJsonData.routes.forEach(function (item, index) {
|
|
61243
61336
|
item.index = index;
|
|
61244
61337
|
item.text = item.name;
|
|
61245
61338
|
});
|
|
61246
|
-
|
|
61339
|
+
_this4.$bus.emit('openListitemDialog', _this4.$tx('ecmapp.wflowform.pSubmitPath', '请选择提交路径'), _this4.wfJsonData.routes.filter(function (obj) {
|
|
61247
61340
|
return obj.type !== 16 && obj.type !== '16';
|
|
61248
61341
|
}), function (rst) {
|
|
61249
61342
|
if (rst.code === 'success') {
|
|
@@ -61262,23 +61355,23 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61262
61355
|
} else {
|
|
61263
61356
|
reject('cancel');
|
|
61264
61357
|
}
|
|
61265
|
-
},
|
|
61358
|
+
}, _this4.submitHandle.route.index);
|
|
61266
61359
|
} else {
|
|
61267
61360
|
resolve(0);
|
|
61268
61361
|
}
|
|
61269
61362
|
}).then(function (res) {
|
|
61270
|
-
if (
|
|
61271
|
-
if (!
|
|
61272
|
-
|
|
61363
|
+
if (_this4.wfJsonData.routes.length === 1 && _this4.wfJsonData.routes[0].name.indexOf('结束') > -1) {
|
|
61364
|
+
if (!_this4.showOverPath) {
|
|
61365
|
+
_this4.showOverPatnRow = false;
|
|
61273
61366
|
} else {
|
|
61274
|
-
|
|
61367
|
+
_this4.showOverPatnRow = true;
|
|
61275
61368
|
}
|
|
61276
61369
|
}
|
|
61277
61370
|
_this.submitHandle.route.index = res;
|
|
61278
|
-
var selRoute =
|
|
61371
|
+
var selRoute = _this4.wfJsonData.routes[_this4.submitHandle.route.index];
|
|
61279
61372
|
var _loop = function _loop(_i) {
|
|
61280
61373
|
var taskNode = selRoute.taskNodes[_i];
|
|
61281
|
-
|
|
61374
|
+
_this4.submitHandle.route[taskNode.name] = {
|
|
61282
61375
|
user: [],
|
|
61283
61376
|
showUsers: '',
|
|
61284
61377
|
isLink: true
|
|
@@ -61308,13 +61401,13 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61308
61401
|
} else if (selectedNodes.length > 2) {
|
|
61309
61402
|
showUsers = selectedNodes[0].name + '、' + selectedNodes[1].name + '等' + selectedNodes.length + '人';
|
|
61310
61403
|
}
|
|
61311
|
-
|
|
61312
|
-
|
|
61404
|
+
_this4.submitHandle.route[taskNode.name].users = selectedNodes;
|
|
61405
|
+
_this4.submitHandle.route[taskNode.name].showUsers = showUsers;
|
|
61313
61406
|
} else {
|
|
61314
61407
|
selRoute.taskNodes.splice(_i--, 1);
|
|
61315
61408
|
}
|
|
61316
61409
|
} else {
|
|
61317
|
-
var wfusers =
|
|
61410
|
+
var wfusers = _this4.Cookies.get('route-wfuser-' + _this4.wfInstance.id + '-' + taskNode.id);
|
|
61318
61411
|
if (wfusers !== undefined && wfusers !== null) {
|
|
61319
61412
|
var _selectedNodes = [];
|
|
61320
61413
|
taskNode.users.forEach(function (user) {
|
|
@@ -61330,28 +61423,33 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61330
61423
|
} else if (_selectedNodes.length > 2) {
|
|
61331
61424
|
_showUsers2 = _selectedNodes[0].name + '、' + _selectedNodes[1].name + '等' + _selectedNodes.length + '人';
|
|
61332
61425
|
}
|
|
61333
|
-
|
|
61334
|
-
|
|
61426
|
+
_this4.submitHandle.route[taskNode.name].users = _selectedNodes;
|
|
61427
|
+
_this4.submitHandle.route[taskNode.name].showUsers = _showUsers2;
|
|
61335
61428
|
}
|
|
61336
61429
|
}
|
|
61430
|
+
if (_this4.submitHandle.route[taskNode.name].users) {
|
|
61431
|
+
_this4.submitHandle.route[taskNode.name].users.forEach(function (user) {
|
|
61432
|
+
_this4.selectBanlFn(user, taskNode.users, taskNode);
|
|
61433
|
+
});
|
|
61434
|
+
}
|
|
61337
61435
|
if (parseInt(taskNode.tmLmtType) !== 9 && parseInt(taskNode.tmLmtCanEdit) === 1) {
|
|
61338
|
-
|
|
61436
|
+
_this4.showTimeLimit = true;
|
|
61339
61437
|
}
|
|
61340
61438
|
if ((selRoute.taskNodes.length === 1 || selRoute.mustNextTN.indexOf(taskNode.name) !== -1) && taskNode.users.length === 1 && taskNode.users[0].type !== 'asyncLoadingUsers') {
|
|
61341
|
-
|
|
61342
|
-
|
|
61343
|
-
|
|
61344
|
-
|
|
61439
|
+
_this4.submitHandle.route[taskNode.name].users = taskNode.users;
|
|
61440
|
+
_this4.submitHandle.route[taskNode.name].showUsers = taskNode.users[0].name;
|
|
61441
|
+
_this4.submitHandle.route[taskNode.name].isLink = false;
|
|
61442
|
+
_this4.selectBanlFn(taskNode.users[0], taskNode.users, taskNode);
|
|
61345
61443
|
}
|
|
61346
61444
|
i = _i;
|
|
61347
61445
|
};
|
|
61348
61446
|
for (var i = 0; i < selRoute.taskNodes.length; i++) {
|
|
61349
61447
|
_loop(i);
|
|
61350
61448
|
}
|
|
61351
|
-
|
|
61352
|
-
|
|
61353
|
-
|
|
61354
|
-
var suffixs =
|
|
61449
|
+
_this4.initiated = true;
|
|
61450
|
+
_this4.$forceUpdate();
|
|
61451
|
+
_this4.$nextTick(function () {
|
|
61452
|
+
var suffixs = _this4.$el.querySelectorAll('.tnLimit-container .van-field__body');
|
|
61355
61453
|
suffixs.forEach(function (suffix) {
|
|
61356
61454
|
suffix.setAttribute('value-suffix', '天');
|
|
61357
61455
|
});
|
|
@@ -61362,8 +61460,8 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61362
61460
|
var askMsgTypes = this.submitHandle.askMsgTypes.split(',');
|
|
61363
61461
|
this.wfInstance.passenger.msgTypeOptions.forEach(function (msgType) {
|
|
61364
61462
|
if (askMsgTypes.indexOf(msgType.value + '') !== -1) {
|
|
61365
|
-
if (
|
|
61366
|
-
|
|
61463
|
+
if (_this4.msgType) _this4.msgType += '、';
|
|
61464
|
+
_this4.msgType += msgType.text;
|
|
61367
61465
|
}
|
|
61368
61466
|
});
|
|
61369
61467
|
}
|
|
@@ -61414,7 +61512,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61414
61512
|
}
|
|
61415
61513
|
},
|
|
61416
61514
|
saveCommonIdea: function saveCommonIdea() {
|
|
61417
|
-
var
|
|
61515
|
+
var _this5 = this;
|
|
61418
61516
|
if (this.submitHandle.curUserIdea === null || this.submitHandle.curUserIdea.trim() === '') {
|
|
61419
61517
|
this.$dialog.alert({
|
|
61420
61518
|
message: this.$tx('ecmapp.common.pWriteOpinion', '请填写处理意见。'),
|
|
@@ -61427,11 +61525,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61427
61525
|
this.$options.components['BusiForm'] = this.$wfEngine.loadBusiform(this, this.commonIdeaModuleInfo.formTemplate, 'M');
|
|
61428
61526
|
this.popupDialogVisible = true;
|
|
61429
61527
|
setTimeout(function () {
|
|
61430
|
-
|
|
61528
|
+
_this5.$bus.emit('openBusiform', _this5.commonIdeaModuleInfo, null, 1, _this5.closePopupDialog);
|
|
61431
61529
|
}, 0);
|
|
61432
61530
|
},
|
|
61433
61531
|
applyCommonIdea: function applyCommonIdea() {
|
|
61434
|
-
var
|
|
61532
|
+
var _this6 = this;
|
|
61435
61533
|
if (this.commonIdeaList.length === 0) {
|
|
61436
61534
|
this.$dialog.alert({
|
|
61437
61535
|
message: this.$tx('ecmapp.wflowform.noComOpinion', '暂无常用意见。'),
|
|
@@ -61449,24 +61547,24 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61449
61547
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.wflowform.selectComOpinion', '选择常用意见'), itemlist, function (res) {
|
|
61450
61548
|
if (res.code !== 'success') return;
|
|
61451
61549
|
var ideaContent = res.value.text;
|
|
61452
|
-
if (
|
|
61453
|
-
|
|
61454
|
-
|
|
61455
|
-
} else if (
|
|
61456
|
-
|
|
61457
|
-
|
|
61550
|
+
if (_this6.submitHandle.curUserIdea === undefined || _this6.submitHandle.curUserIdea === null || _this6.submitHandle.curUserIdea.trim() === '') {
|
|
61551
|
+
_this6.submitHandle.curUserIdea = ideaContent;
|
|
61552
|
+
_this6.$forceUpdate();
|
|
61553
|
+
} else if (_this6.commonIdeaFillMode === 'append') {
|
|
61554
|
+
_this6.submitHandle.curUserIdea += ideaContent;
|
|
61555
|
+
_this6.$forceUpdate();
|
|
61458
61556
|
} else {
|
|
61459
|
-
|
|
61460
|
-
message:
|
|
61557
|
+
_this6.$dialog.confirm({
|
|
61558
|
+
message: _this6.$tx('ecmapp.wflowform.alreadlyHave', '意见已存在,是否确认使用常用意见?')
|
|
61461
61559
|
}).then(function () {
|
|
61462
|
-
|
|
61463
|
-
|
|
61560
|
+
_this6.submitHandle.curUserIdea = ideaContent;
|
|
61561
|
+
_this6.$forceUpdate();
|
|
61464
61562
|
});
|
|
61465
61563
|
}
|
|
61466
61564
|
}, null, false, 'bottomDialog');
|
|
61467
61565
|
},
|
|
61468
61566
|
saveSubmitTemplate: function saveSubmitTemplate() {
|
|
61469
|
-
var
|
|
61567
|
+
var _this7 = this;
|
|
61470
61568
|
if (this.curTN.tnIdeaLabelID && this.curTN.tnIdeaIsMust === 1) {
|
|
61471
61569
|
if (this.submitHandle.curUserIdea === null || this.submitHandle.curUserIdea.trim() === '') {
|
|
61472
61570
|
this.$dialog.alert({
|
|
@@ -61487,7 +61585,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61487
61585
|
this.$options.components['BusiForm'] = this.$wfEngine.loadBusiform(this, this.submitTemplateModuleInfo.formTemplate, 'M');
|
|
61488
61586
|
this.popupDialogVisible = true;
|
|
61489
61587
|
setTimeout(function () {
|
|
61490
|
-
|
|
61588
|
+
_this7.$bus.emit('openBusiform', _this7.submitTemplateModuleInfo, null, 1, _this7.closePopupDialog);
|
|
61491
61589
|
}, 0);
|
|
61492
61590
|
},
|
|
61493
61591
|
onBasicFormBeforeOpen: function onBasicFormBeforeOpen($scope, vo, defer) {
|
|
@@ -61542,7 +61640,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61542
61640
|
this.curNode = null;
|
|
61543
61641
|
},
|
|
61544
61642
|
applySubmitTemplate: function applySubmitTemplate() {
|
|
61545
|
-
var
|
|
61643
|
+
var _this8 = this;
|
|
61546
61644
|
if (this.submitTemplateList.length === 0) {
|
|
61547
61645
|
this.$dialog.alert({
|
|
61548
61646
|
message: this.$tx('ecmapp.wflowform.noTemplate', '暂无办理模板。')
|
|
@@ -61560,9 +61658,9 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61560
61658
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.Wflowform.fields.selectTemplate', '选择办理模板'), itemlist, function (res) {
|
|
61561
61659
|
if (res.code !== 'success') return;
|
|
61562
61660
|
var submitTemplateIndex = res.value.value;
|
|
61563
|
-
_this.$wfEngine.applySubmitTemplate(_this, JSON.parse(
|
|
61564
|
-
if (_this.wfJsonData.routes[
|
|
61565
|
-
_this.wfJsonData.routes[
|
|
61661
|
+
_this.$wfEngine.applySubmitTemplate(_this, JSON.parse(_this8.submitTemplateList[submitTemplateIndex].submitJsondata));
|
|
61662
|
+
if (_this.wfJsonData.routes[_this8.submitHandle.route.index].taskNodes) {
|
|
61663
|
+
_this.wfJsonData.routes[_this8.submitHandle.route.index].taskNodes.forEach(function (taskNode) {
|
|
61566
61664
|
if (_this.submitHandle.route[taskNode.name]) {
|
|
61567
61665
|
var users = _this.submitHandle.route[taskNode.name].users;
|
|
61568
61666
|
if (users) {
|
|
@@ -61601,7 +61699,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61601
61699
|
this.$forceUpdate();
|
|
61602
61700
|
},
|
|
61603
61701
|
selectWfNodeUser: function selectWfNodeUser(title, wfNode) {
|
|
61604
|
-
var
|
|
61702
|
+
var _this9 = this;
|
|
61605
61703
|
if (wfNode.showNodeUsers === 2) return; // 自动全选、并且不允许修改
|
|
61606
61704
|
|
|
61607
61705
|
var condition = {
|
|
@@ -61643,26 +61741,26 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61643
61741
|
} else if (res.value.length > 2) {
|
|
61644
61742
|
showUsers = res.value[0].name + '、' + res.value[1].name + '等' + res.value.length + '人';
|
|
61645
61743
|
}
|
|
61646
|
-
if (!
|
|
61647
|
-
|
|
61648
|
-
|
|
61744
|
+
if (!_this9.submitHandle.route[title]) _this9.submitHandle.route[title] = {};
|
|
61745
|
+
_this9.submitHandle.route[title].users = res.value;
|
|
61746
|
+
_this9.submitHandle.route[title].showUsers = showUsers;
|
|
61649
61747
|
|
|
61650
61748
|
//当前环节设置为选择人员后自动填写组合意见
|
|
61651
|
-
if (
|
|
61749
|
+
if (_this9.curTN.tnIdeaAutoFillType == 2 && _this9.curTN.tnIdeaAutoFillContent) {
|
|
61652
61750
|
var userNames = '';
|
|
61653
61751
|
res.value.forEach(function (user) {
|
|
61654
61752
|
if (userNames) userNames += '、';
|
|
61655
61753
|
userNames += user.name;
|
|
61656
61754
|
});
|
|
61657
61755
|
var oldUserNames = '';
|
|
61658
|
-
if (
|
|
61659
|
-
|
|
61756
|
+
if (_this9.submitHandle.route[title].users) {
|
|
61757
|
+
_this9.submitHandle.route[title].users.forEach(function (user) {
|
|
61660
61758
|
if (oldUserNames) oldUserNames += '、';
|
|
61661
61759
|
oldUserNames += user.name;
|
|
61662
61760
|
});
|
|
61663
61761
|
}
|
|
61664
|
-
var idea =
|
|
61665
|
-
var oldIdea =
|
|
61762
|
+
var idea = _this9.curTN.tnIdeaAutoFillContent;
|
|
61763
|
+
var oldIdea = _this9.curTN.tnIdeaAutoFillContent;
|
|
61666
61764
|
if (idea.indexOf('${sendTo}') !== -1) {
|
|
61667
61765
|
idea = idea.replace('${sendTo}', userNames);
|
|
61668
61766
|
oldIdea = oldIdea.replace('${sendTo}', oldUserNames);
|
|
@@ -61675,13 +61773,13 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61675
61773
|
idea = idea.replace(_regex, userNames);
|
|
61676
61774
|
oldIdea = oldIdea.replace(_regex, oldUserNames);
|
|
61677
61775
|
}
|
|
61678
|
-
if (!
|
|
61679
|
-
|
|
61776
|
+
if (!_this9.submitHandle.curUserIdea || _this9.submitHandle.curUserIdea === oldIdea) {
|
|
61777
|
+
_this9.$set(_this9.submitHandle, 'curUserIdea', idea);
|
|
61680
61778
|
}
|
|
61681
61779
|
}
|
|
61682
|
-
|
|
61683
|
-
|
|
61684
|
-
|
|
61780
|
+
_this9.$forceUpdate();
|
|
61781
|
+
_this9.$nextTick(function () {
|
|
61782
|
+
_this9.submitHandleValChange();
|
|
61685
61783
|
});
|
|
61686
61784
|
}
|
|
61687
61785
|
}, oldValue);
|
|
@@ -61750,7 +61848,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61750
61848
|
return copytreeData;
|
|
61751
61849
|
},
|
|
61752
61850
|
selectMsgType: function selectMsgType() {
|
|
61753
|
-
var
|
|
61851
|
+
var _this10 = this;
|
|
61754
61852
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.wflowform.reminderMethod', '提醒方式'), this.msgTypeOptions, function (res) {
|
|
61755
61853
|
if (res.code !== 'success') return;
|
|
61756
61854
|
var askMsgTypes = '';
|
|
@@ -61764,14 +61862,14 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61764
61862
|
msgType = item.text;
|
|
61765
61863
|
}
|
|
61766
61864
|
});
|
|
61767
|
-
|
|
61768
|
-
|
|
61865
|
+
_this10.submitHandle.askMsgTypes = askMsgTypes;
|
|
61866
|
+
_this10.msgType = msgType;
|
|
61769
61867
|
if (msgType) {
|
|
61770
|
-
|
|
61868
|
+
_this10.submitHandle.askSMS = 1;
|
|
61771
61869
|
} else {
|
|
61772
|
-
|
|
61870
|
+
_this10.submitHandle.askSMS = 0;
|
|
61773
61871
|
}
|
|
61774
|
-
|
|
61872
|
+
_this10.$forceUpdate();
|
|
61775
61873
|
}, this.submitHandle.askMsgTypes,
|
|
61776
61874
|
//默认选中
|
|
61777
61875
|
true,
|
|
@@ -61797,7 +61895,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61797
61895
|
this.wfNodeDialogVisible = true;
|
|
61798
61896
|
},
|
|
61799
61897
|
delUdmNode: function delUdmNode(index) {
|
|
61800
|
-
var
|
|
61898
|
+
var _this11 = this;
|
|
61801
61899
|
if (index === 0) return;
|
|
61802
61900
|
if (this.curTN.tnNodeID) {
|
|
61803
61901
|
this.wfInstance.udmNodes.splice(index, 1);
|
|
@@ -61814,18 +61912,18 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61814
61912
|
}).then(function (res) {
|
|
61815
61913
|
if (res.code === 'success') {
|
|
61816
61914
|
var historyWflogs = res.body.listdata.filter(function (wflog) {
|
|
61817
|
-
return wflog.nodeName ===
|
|
61915
|
+
return wflog.nodeName === _this11.wfInstance.udmNodes[index].name;
|
|
61818
61916
|
});
|
|
61819
61917
|
if (historyWflogs.length > 0) {
|
|
61820
|
-
|
|
61918
|
+
_this11.$dialog.alert({
|
|
61821
61919
|
message: '不允许删除已经送审批或办理的节点!'
|
|
61822
61920
|
});
|
|
61823
61921
|
} else {
|
|
61824
|
-
|
|
61825
|
-
|
|
61922
|
+
_this11.wfInstance.udmNodes.splice(index, 1);
|
|
61923
|
+
_this11.$forceUpdate();
|
|
61826
61924
|
}
|
|
61827
61925
|
} else {
|
|
61828
|
-
|
|
61926
|
+
_this11.$dialog.alert({
|
|
61829
61927
|
message: res.message
|
|
61830
61928
|
});
|
|
61831
61929
|
}
|
|
@@ -61836,9 +61934,9 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61836
61934
|
});
|
|
61837
61935
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=script&lang=js
|
|
61838
61936
|
/* harmony default export */ var src_SubmitHandlevue_type_script_lang_js = (SubmitHandlevue_type_script_lang_js);
|
|
61839
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=
|
|
61840
|
-
var
|
|
61841
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=
|
|
61937
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
|
|
61938
|
+
var SubmitHandlevue_type_style_index_0_id_067f09e4_prod_scoped_true_lang_scss = __webpack_require__(7331);
|
|
61939
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=067f09e4&prod&scoped=true&lang=scss
|
|
61842
61940
|
|
|
61843
61941
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue
|
|
61844
61942
|
|
|
@@ -61851,11 +61949,11 @@ var SubmitHandlevue_type_style_index_0_id_7c76928e_prod_scoped_true_lang_scss =
|
|
|
61851
61949
|
|
|
61852
61950
|
var SubmitHandle_component = (0,componentNormalizer/* default */.A)(
|
|
61853
61951
|
src_SubmitHandlevue_type_script_lang_js,
|
|
61854
|
-
|
|
61855
|
-
|
|
61952
|
+
SubmitHandlevue_type_template_id_067f09e4_scoped_true_render,
|
|
61953
|
+
SubmitHandlevue_type_template_id_067f09e4_scoped_true_staticRenderFns,
|
|
61856
61954
|
false,
|
|
61857
61955
|
null,
|
|
61858
|
-
"
|
|
61956
|
+
"067f09e4",
|
|
61859
61957
|
null
|
|
61860
61958
|
|
|
61861
61959
|
)
|