ecinc-cloud-mappaio 9.6.23 → 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 +251 -175
- package/lib/ecmappaio.umd.js +251 -175
- package/lib/ecmappaio.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/ecmappaio.common.js
CHANGED
|
@@ -7314,7 +7314,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".popub-container[data-v-6850137e]{widt
|
|
|
7314
7314
|
|
|
7315
7315
|
/***/ }),
|
|
7316
7316
|
|
|
7317
|
-
/***/
|
|
7317
|
+
/***/ 2681:
|
|
7318
7318
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7319
7319
|
|
|
7320
7320
|
"use strict";
|
|
@@ -7333,7 +7333,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
7333
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()));
|
|
7334
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___);
|
|
7335
7335
|
// Module
|
|
7336
|
-
___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%}", ""]);
|
|
7337
7337
|
// Exports
|
|
7338
7338
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
7339
7339
|
|
|
@@ -32487,19 +32487,19 @@ var update = add("0bbd0584", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
32487
32487
|
|
|
32488
32488
|
/***/ }),
|
|
32489
32489
|
|
|
32490
|
-
/***/
|
|
32490
|
+
/***/ 7331:
|
|
32491
32491
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
32492
32492
|
|
|
32493
32493
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
32494
32494
|
|
|
32495
32495
|
// load the styles
|
|
32496
|
-
var content = __webpack_require__(
|
|
32496
|
+
var content = __webpack_require__(2681);
|
|
32497
32497
|
if(content.__esModule) content = content.default;
|
|
32498
32498
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
32499
32499
|
if(content.locals) module.exports = content.locals;
|
|
32500
32500
|
// add the styles to the DOM
|
|
32501
32501
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
32502
|
-
var update = add("
|
|
32502
|
+
var update = add("1be003b0", content, true, {"sourceMap":false,"shadowMode":false});
|
|
32503
32503
|
|
|
32504
32504
|
/***/ }),
|
|
32505
32505
|
|
|
@@ -39565,6 +39565,16 @@ var wfengine_install = function install(Vue) {
|
|
|
39565
39565
|
}
|
|
39566
39566
|
});
|
|
39567
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
|
+
}
|
|
39568
39578
|
$scope.commonIdeaList = $scope.wfInstance.passenger.commonIdeaList;
|
|
39569
39579
|
if ($scope.commonIdeaList === undefined) $scope.commonIdeaList = [];
|
|
39570
39580
|
// $scope.commonIdeaList.unshift('---选择常用意见---')
|
|
@@ -39708,6 +39718,124 @@ var wfengine_install = function install(Vue) {
|
|
|
39708
39718
|
});
|
|
39709
39719
|
});
|
|
39710
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
|
+
},
|
|
39711
39839
|
setCommandBar: function setCommandBar($scope, commandBar) {
|
|
39712
39840
|
commandBar.forEach(function (btn) {
|
|
39713
39841
|
if (btn.btnAlign === 2) btn.btnAlign = 1;
|
|
@@ -39850,8 +39978,12 @@ var wfengine_install = function install(Vue) {
|
|
|
39850
39978
|
params.copyWfNodeUser = 1;
|
|
39851
39979
|
params.asyncLoading = 1;
|
|
39852
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
|
+
}
|
|
39853
39985
|
var saveData = {
|
|
39854
|
-
wfInstance: JSON.stringify(
|
|
39986
|
+
wfInstance: JSON.stringify(wfInstanceVo),
|
|
39855
39987
|
curTN: JSON.stringify($scope.curTN)
|
|
39856
39988
|
};
|
|
39857
39989
|
$scope.$http({
|
|
@@ -39930,13 +40062,17 @@ var wfengine_install = function install(Vue) {
|
|
|
39930
40062
|
$scope.vobak = JSON.parse(JSON.stringify($scope.vo));
|
|
39931
40063
|
$scope.wfJsonDatabak = JSON.parse(JSON.stringify($scope.wfJsonData || {}));
|
|
39932
40064
|
$scope.wfInstancebak = JSON.parse(JSON.stringify($scope.wfInstance));
|
|
39933
|
-
$scope.wfInstance.title = $scope.vo.flSubject || $scope.wfInstance.wfName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39934
40065
|
if ($scope.vo.status === -1) $scope.vo.status = 0;
|
|
39935
40066
|
$scope.wfInstance.passenger.busiData = $scope.vo;
|
|
39936
40067
|
if ($scope.wfInstance.udmNodes && $scope.wfInstance.udmNodes !== '') {
|
|
40068
|
+
$scope.wfInstance.title = $scope.vo.flSubject || $scope.vo.flFormName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39937
40069
|
$scope.wfInstance.passenger.wfName = $scope.vo.flFormName;
|
|
40070
|
+
if ($scope.wfInstance.passenger.chartData) {
|
|
40071
|
+
$scope.wfInstance.udmNodes.push($scope.wfInstance.passenger.chartData);
|
|
40072
|
+
}
|
|
39938
40073
|
} else {
|
|
39939
40074
|
$scope.wfInstance.udmNodes = '';
|
|
40075
|
+
$scope.wfInstance.title = $scope.vo.flSubject || $scope.wfInstance.wfName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39940
40076
|
}
|
|
39941
40077
|
|
|
39942
40078
|
// 数据封装
|
|
@@ -59019,8 +59155,8 @@ var SelectOuterDeputy_component = (0,componentNormalizer/* default */.A)(
|
|
|
59019
59155
|
)
|
|
59020
59156
|
|
|
59021
59157
|
/* harmony default export */ var SelectOuterDeputy = (SelectOuterDeputy_component.exports);
|
|
59022
|
-
;// 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=
|
|
59023
|
-
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() {
|
|
59024
59160
|
var _vm = this,
|
|
59025
59161
|
_c = _vm._self._c;
|
|
59026
59162
|
return _vm.initiated ? _c('div', {
|
|
@@ -59037,7 +59173,7 @@ var SubmitHandlevue_type_template_id_06943904_scoped_true_render = function rend
|
|
|
59037
59173
|
expression: "'defineSteps'"
|
|
59038
59174
|
}],
|
|
59039
59175
|
attrs: {
|
|
59040
|
-
"title": "
|
|
59176
|
+
"title": "流程环节"
|
|
59041
59177
|
}
|
|
59042
59178
|
}, [_c('van-icon', {
|
|
59043
59179
|
staticStyle: {
|
|
@@ -59084,7 +59220,7 @@ var SubmitHandlevue_type_template_id_06943904_scoped_true_render = function rend
|
|
|
59084
59220
|
return _vm.editUdmNode(taskNode);
|
|
59085
59221
|
}
|
|
59086
59222
|
}
|
|
59087
|
-
}), _c('van-icon', {
|
|
59223
|
+
}), !_vm.chartData ? _c('van-icon', {
|
|
59088
59224
|
attrs: {
|
|
59089
59225
|
"color": index == 0 ? '#f3a3a3' : '#ee0a24',
|
|
59090
59226
|
"name": "cross"
|
|
@@ -59095,7 +59231,7 @@ var SubmitHandlevue_type_template_id_06943904_scoped_true_render = function rend
|
|
|
59095
59231
|
return _vm.delUdmNode(index);
|
|
59096
59232
|
}
|
|
59097
59233
|
}
|
|
59098
|
-
})], 1)], 2);
|
|
59234
|
+
}) : _vm._e()], 1)], 2);
|
|
59099
59235
|
})], 2) : _vm._e(), _vm.wfJsonData && _vm.wfJsonData.routes && _vm.wfJsonData.routes.length > 0 ? _vm._t("default", function () {
|
|
59100
59236
|
return [_vm.curTN.tnIdeaLabelID !== null && _vm.curTN.tnIdeaLabelID !== '' ? _c('div', {
|
|
59101
59237
|
staticClass: "form-slicer"
|
|
@@ -59675,10 +59811,10 @@ var SubmitHandlevue_type_template_id_06943904_scoped_true_render = function rend
|
|
|
59675
59811
|
}
|
|
59676
59812
|
})], 1) : _vm._e()], 2) : _vm._e();
|
|
59677
59813
|
};
|
|
59678
|
-
var
|
|
59814
|
+
var SubmitHandlevue_type_template_id_067f09e4_scoped_true_staticRenderFns = [];
|
|
59679
59815
|
|
|
59680
|
-
;// 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=
|
|
59681
|
-
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() {
|
|
59682
59818
|
var _vm = this,
|
|
59683
59819
|
_c = _vm._self._c;
|
|
59684
59820
|
return _c('div', [_c('van-cell-group', [_c('div', {
|
|
@@ -60302,7 +60438,7 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_render = function render
|
|
|
60302
60438
|
}
|
|
60303
60439
|
}, [_vm._v("取 消")])]], 2)], 1);
|
|
60304
60440
|
};
|
|
60305
|
-
var
|
|
60441
|
+
var WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_staticRenderFns = [];
|
|
60306
60442
|
|
|
60307
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
|
|
60308
60444
|
|
|
@@ -60548,6 +60684,9 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_staticRenderFns = [];
|
|
|
60548
60684
|
taskNode: {
|
|
60549
60685
|
handler: function handler(newValue, oldValue) {
|
|
60550
60686
|
var _this = this;
|
|
60687
|
+
if (this.taskNode.nodeType === undefined) {
|
|
60688
|
+
this.taskNode.nodeType = 1;
|
|
60689
|
+
}
|
|
60551
60690
|
if (this.taskNode.selectType !== undefined) {
|
|
60552
60691
|
this.selectTypeOptions.forEach(function (item) {
|
|
60553
60692
|
if (item.value === _this.taskNode.selectType) {
|
|
@@ -60886,11 +61025,11 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_staticRenderFns = [];
|
|
|
60886
61025
|
;
|
|
60887
61026
|
var WfTaskNode_component = (0,componentNormalizer/* default */.A)(
|
|
60888
61027
|
src_WfTaskNodevue_type_script_lang_js,
|
|
60889
|
-
|
|
60890
|
-
|
|
61028
|
+
WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_render,
|
|
61029
|
+
WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_staticRenderFns,
|
|
60891
61030
|
false,
|
|
60892
61031
|
null,
|
|
60893
|
-
"
|
|
61032
|
+
"8e60a7d4",
|
|
60894
61033
|
null
|
|
60895
61034
|
|
|
60896
61035
|
)
|
|
@@ -61029,7 +61168,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61029
61168
|
selectCount: 0
|
|
61030
61169
|
};
|
|
61031
61170
|
},
|
|
61032
|
-
computed: {
|
|
61171
|
+
computed: {
|
|
61172
|
+
chartData: function chartData() {
|
|
61173
|
+
return this.wfInstance.passenger.chartData;
|
|
61174
|
+
}
|
|
61175
|
+
},
|
|
61033
61176
|
watch: {
|
|
61034
61177
|
wfJsonData: {
|
|
61035
61178
|
handler: function handler(newValue, oldValue) {
|
|
@@ -61047,77 +61190,10 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61047
61190
|
},
|
|
61048
61191
|
wfInstance: {
|
|
61049
61192
|
handler: function handler(newValue, oldValue) {
|
|
61050
|
-
var _this2 = this;
|
|
61051
61193
|
var _this = this;
|
|
61052
61194
|
if (this.wfInstance.udmNodes && this.wfInstance.udmNodes !== '[]' && typeof this.wfInstance.udmNodes === 'string') this.wfInstance.udmNodes = JSON.parse(this.wfInstance.udmNodes);
|
|
61053
61195
|
if (this.wfInstance.udmNodes && SubmitHandlevue_type_script_lang_js_typeof(this.wfInstance.udmNodes) === 'object' && this.curTN.tnNodeID !== null) {
|
|
61054
|
-
|
|
61055
|
-
var curNodeIndex = -1;
|
|
61056
|
-
var customRoutes = [];
|
|
61057
|
-
this.wfInstance.udmNodes.forEach(function (taskNode, index) {
|
|
61058
|
-
if (taskNode.name === _this2.curTN.tnNodeName) {
|
|
61059
|
-
curNode = taskNode;
|
|
61060
|
-
curNodeIndex = index;
|
|
61061
|
-
if (curNode.canSendToNext !== 0 && _this2.wfInstance.udmNodes.length > index + 1 && _this.wfInstance.passenger.udmNodeUsers) {
|
|
61062
|
-
var nextNode = _this2.wfInstance.udmNodes[index + 1];
|
|
61063
|
-
if (!nextNode.users) {
|
|
61064
|
-
nextNode.users = [];
|
|
61065
|
-
}
|
|
61066
|
-
var nextRoute = {
|
|
61067
|
-
evtMsg: '',
|
|
61068
|
-
mustNextTN: '',
|
|
61069
|
-
evtCplPercent: '0',
|
|
61070
|
-
name: '送' + nextNode.name,
|
|
61071
|
-
fullName: '送' + nextNode.name,
|
|
61072
|
-
taskNodes: [JSON.parse(JSON.stringify(nextNode))],
|
|
61073
|
-
type: '0'
|
|
61074
|
-
};
|
|
61075
|
-
nextRoute.taskNodes[0].users = _this2.wfInstance.passenger.udmNodeUsers.nextUsers || [];
|
|
61076
|
-
customRoutes.push(nextRoute);
|
|
61077
|
-
}
|
|
61078
|
-
}
|
|
61079
|
-
});
|
|
61080
|
-
if (curNode == null) {
|
|
61081
|
-
this.udmNode = null;
|
|
61082
|
-
this.wfInstance.udmNodes = null;
|
|
61083
|
-
return;
|
|
61084
|
-
}
|
|
61085
|
-
if (curNode.canEndWflow !== 0) {
|
|
61086
|
-
var endRoute = {
|
|
61087
|
-
evtMsg: '',
|
|
61088
|
-
mustNextTN: '',
|
|
61089
|
-
evtCplPercent: '0',
|
|
61090
|
-
name: '结束处理',
|
|
61091
|
-
fullName: '结束处理',
|
|
61092
|
-
taskNodes: [],
|
|
61093
|
-
type: '4'
|
|
61094
|
-
};
|
|
61095
|
-
customRoutes.push(endRoute);
|
|
61096
|
-
}
|
|
61097
|
-
if (curNode.returnHistoryTN !== 0 && curNodeIndex > 0 && this.wfInstance.passenger.udmNodeUsers) {
|
|
61098
|
-
var backRoute = {
|
|
61099
|
-
evtMsg: '',
|
|
61100
|
-
mustNextTN: '',
|
|
61101
|
-
evtCplPercent: '0',
|
|
61102
|
-
name: this.$tx('ecwapp.Wflowform.SubmitHandle.sendBack', '退回'),
|
|
61103
|
-
taskNodes: [],
|
|
61104
|
-
type: '3'
|
|
61105
|
-
};
|
|
61106
|
-
if (curNode.returnHistoryTN == 2) {
|
|
61107
|
-
//退回到发起节点
|
|
61108
|
-
backRoute.name = '退回发起人';
|
|
61109
|
-
backRoute.taskNodes.push(JSON.parse(JSON.stringify(this.wfInstance.udmNodes[0])));
|
|
61110
|
-
backRoute.taskNodes[0].users = this.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
61111
|
-
} else {
|
|
61112
|
-
//退回到上一节点
|
|
61113
|
-
backRoute.name = '退回上一节点';
|
|
61114
|
-
backRoute.taskNodes.push(JSON.parse(JSON.stringify(this.wfInstance.udmNodes[curNodeIndex - 1])));
|
|
61115
|
-
backRoute.taskNodes[0].users = this.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
61116
|
-
}
|
|
61117
|
-
backRoute.fullName = backRoute.name;
|
|
61118
|
-
customRoutes.push(backRoute);
|
|
61119
|
-
}
|
|
61120
|
-
this.wfJsonData.routes = customRoutes;
|
|
61196
|
+
this.wfJsonData.routes = _this.$wfEngine.setUdmCustomRoutes(_this);
|
|
61121
61197
|
this.initSubmitHandle();
|
|
61122
61198
|
}
|
|
61123
61199
|
this.$forceUpdate();
|
|
@@ -61145,14 +61221,14 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61145
61221
|
clearInterval(this.timer);
|
|
61146
61222
|
},
|
|
61147
61223
|
mounted: function mounted() {
|
|
61148
|
-
var
|
|
61224
|
+
var _this2 = this;
|
|
61149
61225
|
this.msgTypeOptions = this.wfInstance.passenger.msgTypeOptions || null;
|
|
61150
61226
|
this.initSubmitHandle();
|
|
61151
61227
|
this.curUserIdea = this.submitHandle.curUserIdea;
|
|
61152
61228
|
this.timer = setInterval(function () {
|
|
61153
|
-
if (
|
|
61154
|
-
|
|
61155
|
-
|
|
61229
|
+
if (_this2.submitHandle.curUserIdea !== _this2.curUserIdea && _this2.submitHandle.curUserIdea !== '') {
|
|
61230
|
+
_this2.saveCurTNIdea('AutoSave');
|
|
61231
|
+
_this2.curUserIdea = _this2.submitHandle.curUserIdea;
|
|
61156
61232
|
}
|
|
61157
61233
|
}, 5 * 60 * 1000);
|
|
61158
61234
|
if (this.$vnode.context.attachments) {
|
|
@@ -61174,7 +61250,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61174
61250
|
},
|
|
61175
61251
|
// 表单内选择
|
|
61176
61252
|
selectBanlFn: function selectBanlFn(item, users, wfNode) {
|
|
61177
|
-
var
|
|
61253
|
+
var _this3 = this;
|
|
61178
61254
|
if (item.changed) {
|
|
61179
61255
|
if (users.length > 1) {
|
|
61180
61256
|
item.changed = false;
|
|
@@ -61222,7 +61298,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61222
61298
|
this.submitHandle.route[title].showUsers = showUsers;
|
|
61223
61299
|
this.$forceUpdate();
|
|
61224
61300
|
this.$nextTick(function () {
|
|
61225
|
-
|
|
61301
|
+
_this3.submitHandleValChange();
|
|
61226
61302
|
});
|
|
61227
61303
|
} else {
|
|
61228
61304
|
// 直接选择人员
|
|
@@ -61240,7 +61316,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61240
61316
|
this.submitHandle.route[_title].showUsers = _showUsers;
|
|
61241
61317
|
this.$forceUpdate();
|
|
61242
61318
|
this.$nextTick(function () {
|
|
61243
|
-
|
|
61319
|
+
_this3.submitHandleValChange();
|
|
61244
61320
|
});
|
|
61245
61321
|
}
|
|
61246
61322
|
},
|
|
@@ -61248,7 +61324,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61248
61324
|
this.$bus.emit('submitHandleValChange', this);
|
|
61249
61325
|
},
|
|
61250
61326
|
initSubmitHandle: function initSubmitHandle(action) {
|
|
61251
|
-
var
|
|
61327
|
+
var _this4 = this;
|
|
61252
61328
|
var _this = this;
|
|
61253
61329
|
_this.showTimeLimit = false;
|
|
61254
61330
|
_this.isUdmNodes = _this.wfInstance.passenger.isUdmNodes;
|
|
@@ -61256,11 +61332,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61256
61332
|
new Promise(function (resolve, reject) {
|
|
61257
61333
|
// 响应路径单击事件
|
|
61258
61334
|
if (action === 'click') {
|
|
61259
|
-
|
|
61335
|
+
_this4.wfJsonData.routes.forEach(function (item, index) {
|
|
61260
61336
|
item.index = index;
|
|
61261
61337
|
item.text = item.name;
|
|
61262
61338
|
});
|
|
61263
|
-
|
|
61339
|
+
_this4.$bus.emit('openListitemDialog', _this4.$tx('ecmapp.wflowform.pSubmitPath', '请选择提交路径'), _this4.wfJsonData.routes.filter(function (obj) {
|
|
61264
61340
|
return obj.type !== 16 && obj.type !== '16';
|
|
61265
61341
|
}), function (rst) {
|
|
61266
61342
|
if (rst.code === 'success') {
|
|
@@ -61279,23 +61355,23 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61279
61355
|
} else {
|
|
61280
61356
|
reject('cancel');
|
|
61281
61357
|
}
|
|
61282
|
-
},
|
|
61358
|
+
}, _this4.submitHandle.route.index);
|
|
61283
61359
|
} else {
|
|
61284
61360
|
resolve(0);
|
|
61285
61361
|
}
|
|
61286
61362
|
}).then(function (res) {
|
|
61287
|
-
if (
|
|
61288
|
-
if (!
|
|
61289
|
-
|
|
61363
|
+
if (_this4.wfJsonData.routes.length === 1 && _this4.wfJsonData.routes[0].name.indexOf('结束') > -1) {
|
|
61364
|
+
if (!_this4.showOverPath) {
|
|
61365
|
+
_this4.showOverPatnRow = false;
|
|
61290
61366
|
} else {
|
|
61291
|
-
|
|
61367
|
+
_this4.showOverPatnRow = true;
|
|
61292
61368
|
}
|
|
61293
61369
|
}
|
|
61294
61370
|
_this.submitHandle.route.index = res;
|
|
61295
|
-
var selRoute =
|
|
61371
|
+
var selRoute = _this4.wfJsonData.routes[_this4.submitHandle.route.index];
|
|
61296
61372
|
var _loop = function _loop(_i) {
|
|
61297
61373
|
var taskNode = selRoute.taskNodes[_i];
|
|
61298
|
-
|
|
61374
|
+
_this4.submitHandle.route[taskNode.name] = {
|
|
61299
61375
|
user: [],
|
|
61300
61376
|
showUsers: '',
|
|
61301
61377
|
isLink: true
|
|
@@ -61325,13 +61401,13 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61325
61401
|
} else if (selectedNodes.length > 2) {
|
|
61326
61402
|
showUsers = selectedNodes[0].name + '、' + selectedNodes[1].name + '等' + selectedNodes.length + '人';
|
|
61327
61403
|
}
|
|
61328
|
-
|
|
61329
|
-
|
|
61404
|
+
_this4.submitHandle.route[taskNode.name].users = selectedNodes;
|
|
61405
|
+
_this4.submitHandle.route[taskNode.name].showUsers = showUsers;
|
|
61330
61406
|
} else {
|
|
61331
61407
|
selRoute.taskNodes.splice(_i--, 1);
|
|
61332
61408
|
}
|
|
61333
61409
|
} else {
|
|
61334
|
-
var wfusers =
|
|
61410
|
+
var wfusers = _this4.Cookies.get('route-wfuser-' + _this4.wfInstance.id + '-' + taskNode.id);
|
|
61335
61411
|
if (wfusers !== undefined && wfusers !== null) {
|
|
61336
61412
|
var _selectedNodes = [];
|
|
61337
61413
|
taskNode.users.forEach(function (user) {
|
|
@@ -61347,33 +61423,33 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61347
61423
|
} else if (_selectedNodes.length > 2) {
|
|
61348
61424
|
_showUsers2 = _selectedNodes[0].name + '、' + _selectedNodes[1].name + '等' + _selectedNodes.length + '人';
|
|
61349
61425
|
}
|
|
61350
|
-
|
|
61351
|
-
|
|
61426
|
+
_this4.submitHandle.route[taskNode.name].users = _selectedNodes;
|
|
61427
|
+
_this4.submitHandle.route[taskNode.name].showUsers = _showUsers2;
|
|
61352
61428
|
}
|
|
61353
61429
|
}
|
|
61354
|
-
if (
|
|
61355
|
-
|
|
61356
|
-
|
|
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);
|
|
61357
61433
|
});
|
|
61358
61434
|
}
|
|
61359
61435
|
if (parseInt(taskNode.tmLmtType) !== 9 && parseInt(taskNode.tmLmtCanEdit) === 1) {
|
|
61360
|
-
|
|
61436
|
+
_this4.showTimeLimit = true;
|
|
61361
61437
|
}
|
|
61362
61438
|
if ((selRoute.taskNodes.length === 1 || selRoute.mustNextTN.indexOf(taskNode.name) !== -1) && taskNode.users.length === 1 && taskNode.users[0].type !== 'asyncLoadingUsers') {
|
|
61363
|
-
|
|
61364
|
-
|
|
61365
|
-
|
|
61366
|
-
|
|
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);
|
|
61367
61443
|
}
|
|
61368
61444
|
i = _i;
|
|
61369
61445
|
};
|
|
61370
61446
|
for (var i = 0; i < selRoute.taskNodes.length; i++) {
|
|
61371
61447
|
_loop(i);
|
|
61372
61448
|
}
|
|
61373
|
-
|
|
61374
|
-
|
|
61375
|
-
|
|
61376
|
-
var suffixs =
|
|
61449
|
+
_this4.initiated = true;
|
|
61450
|
+
_this4.$forceUpdate();
|
|
61451
|
+
_this4.$nextTick(function () {
|
|
61452
|
+
var suffixs = _this4.$el.querySelectorAll('.tnLimit-container .van-field__body');
|
|
61377
61453
|
suffixs.forEach(function (suffix) {
|
|
61378
61454
|
suffix.setAttribute('value-suffix', '天');
|
|
61379
61455
|
});
|
|
@@ -61384,8 +61460,8 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61384
61460
|
var askMsgTypes = this.submitHandle.askMsgTypes.split(',');
|
|
61385
61461
|
this.wfInstance.passenger.msgTypeOptions.forEach(function (msgType) {
|
|
61386
61462
|
if (askMsgTypes.indexOf(msgType.value + '') !== -1) {
|
|
61387
|
-
if (
|
|
61388
|
-
|
|
61463
|
+
if (_this4.msgType) _this4.msgType += '、';
|
|
61464
|
+
_this4.msgType += msgType.text;
|
|
61389
61465
|
}
|
|
61390
61466
|
});
|
|
61391
61467
|
}
|
|
@@ -61436,7 +61512,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61436
61512
|
}
|
|
61437
61513
|
},
|
|
61438
61514
|
saveCommonIdea: function saveCommonIdea() {
|
|
61439
|
-
var
|
|
61515
|
+
var _this5 = this;
|
|
61440
61516
|
if (this.submitHandle.curUserIdea === null || this.submitHandle.curUserIdea.trim() === '') {
|
|
61441
61517
|
this.$dialog.alert({
|
|
61442
61518
|
message: this.$tx('ecmapp.common.pWriteOpinion', '请填写处理意见。'),
|
|
@@ -61449,11 +61525,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61449
61525
|
this.$options.components['BusiForm'] = this.$wfEngine.loadBusiform(this, this.commonIdeaModuleInfo.formTemplate, 'M');
|
|
61450
61526
|
this.popupDialogVisible = true;
|
|
61451
61527
|
setTimeout(function () {
|
|
61452
|
-
|
|
61528
|
+
_this5.$bus.emit('openBusiform', _this5.commonIdeaModuleInfo, null, 1, _this5.closePopupDialog);
|
|
61453
61529
|
}, 0);
|
|
61454
61530
|
},
|
|
61455
61531
|
applyCommonIdea: function applyCommonIdea() {
|
|
61456
|
-
var
|
|
61532
|
+
var _this6 = this;
|
|
61457
61533
|
if (this.commonIdeaList.length === 0) {
|
|
61458
61534
|
this.$dialog.alert({
|
|
61459
61535
|
message: this.$tx('ecmapp.wflowform.noComOpinion', '暂无常用意见。'),
|
|
@@ -61471,24 +61547,24 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61471
61547
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.wflowform.selectComOpinion', '选择常用意见'), itemlist, function (res) {
|
|
61472
61548
|
if (res.code !== 'success') return;
|
|
61473
61549
|
var ideaContent = res.value.text;
|
|
61474
|
-
if (
|
|
61475
|
-
|
|
61476
|
-
|
|
61477
|
-
} else if (
|
|
61478
|
-
|
|
61479
|
-
|
|
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();
|
|
61480
61556
|
} else {
|
|
61481
|
-
|
|
61482
|
-
message:
|
|
61557
|
+
_this6.$dialog.confirm({
|
|
61558
|
+
message: _this6.$tx('ecmapp.wflowform.alreadlyHave', '意见已存在,是否确认使用常用意见?')
|
|
61483
61559
|
}).then(function () {
|
|
61484
|
-
|
|
61485
|
-
|
|
61560
|
+
_this6.submitHandle.curUserIdea = ideaContent;
|
|
61561
|
+
_this6.$forceUpdate();
|
|
61486
61562
|
});
|
|
61487
61563
|
}
|
|
61488
61564
|
}, null, false, 'bottomDialog');
|
|
61489
61565
|
},
|
|
61490
61566
|
saveSubmitTemplate: function saveSubmitTemplate() {
|
|
61491
|
-
var
|
|
61567
|
+
var _this7 = this;
|
|
61492
61568
|
if (this.curTN.tnIdeaLabelID && this.curTN.tnIdeaIsMust === 1) {
|
|
61493
61569
|
if (this.submitHandle.curUserIdea === null || this.submitHandle.curUserIdea.trim() === '') {
|
|
61494
61570
|
this.$dialog.alert({
|
|
@@ -61509,7 +61585,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61509
61585
|
this.$options.components['BusiForm'] = this.$wfEngine.loadBusiform(this, this.submitTemplateModuleInfo.formTemplate, 'M');
|
|
61510
61586
|
this.popupDialogVisible = true;
|
|
61511
61587
|
setTimeout(function () {
|
|
61512
|
-
|
|
61588
|
+
_this7.$bus.emit('openBusiform', _this7.submitTemplateModuleInfo, null, 1, _this7.closePopupDialog);
|
|
61513
61589
|
}, 0);
|
|
61514
61590
|
},
|
|
61515
61591
|
onBasicFormBeforeOpen: function onBasicFormBeforeOpen($scope, vo, defer) {
|
|
@@ -61564,7 +61640,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61564
61640
|
this.curNode = null;
|
|
61565
61641
|
},
|
|
61566
61642
|
applySubmitTemplate: function applySubmitTemplate() {
|
|
61567
|
-
var
|
|
61643
|
+
var _this8 = this;
|
|
61568
61644
|
if (this.submitTemplateList.length === 0) {
|
|
61569
61645
|
this.$dialog.alert({
|
|
61570
61646
|
message: this.$tx('ecmapp.wflowform.noTemplate', '暂无办理模板。')
|
|
@@ -61582,9 +61658,9 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61582
61658
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.Wflowform.fields.selectTemplate', '选择办理模板'), itemlist, function (res) {
|
|
61583
61659
|
if (res.code !== 'success') return;
|
|
61584
61660
|
var submitTemplateIndex = res.value.value;
|
|
61585
|
-
_this.$wfEngine.applySubmitTemplate(_this, JSON.parse(
|
|
61586
|
-
if (_this.wfJsonData.routes[
|
|
61587
|
-
_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) {
|
|
61588
61664
|
if (_this.submitHandle.route[taskNode.name]) {
|
|
61589
61665
|
var users = _this.submitHandle.route[taskNode.name].users;
|
|
61590
61666
|
if (users) {
|
|
@@ -61623,7 +61699,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61623
61699
|
this.$forceUpdate();
|
|
61624
61700
|
},
|
|
61625
61701
|
selectWfNodeUser: function selectWfNodeUser(title, wfNode) {
|
|
61626
|
-
var
|
|
61702
|
+
var _this9 = this;
|
|
61627
61703
|
if (wfNode.showNodeUsers === 2) return; // 自动全选、并且不允许修改
|
|
61628
61704
|
|
|
61629
61705
|
var condition = {
|
|
@@ -61665,26 +61741,26 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61665
61741
|
} else if (res.value.length > 2) {
|
|
61666
61742
|
showUsers = res.value[0].name + '、' + res.value[1].name + '等' + res.value.length + '人';
|
|
61667
61743
|
}
|
|
61668
|
-
if (!
|
|
61669
|
-
|
|
61670
|
-
|
|
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;
|
|
61671
61747
|
|
|
61672
61748
|
//当前环节设置为选择人员后自动填写组合意见
|
|
61673
|
-
if (
|
|
61749
|
+
if (_this9.curTN.tnIdeaAutoFillType == 2 && _this9.curTN.tnIdeaAutoFillContent) {
|
|
61674
61750
|
var userNames = '';
|
|
61675
61751
|
res.value.forEach(function (user) {
|
|
61676
61752
|
if (userNames) userNames += '、';
|
|
61677
61753
|
userNames += user.name;
|
|
61678
61754
|
});
|
|
61679
61755
|
var oldUserNames = '';
|
|
61680
|
-
if (
|
|
61681
|
-
|
|
61756
|
+
if (_this9.submitHandle.route[title].users) {
|
|
61757
|
+
_this9.submitHandle.route[title].users.forEach(function (user) {
|
|
61682
61758
|
if (oldUserNames) oldUserNames += '、';
|
|
61683
61759
|
oldUserNames += user.name;
|
|
61684
61760
|
});
|
|
61685
61761
|
}
|
|
61686
|
-
var idea =
|
|
61687
|
-
var oldIdea =
|
|
61762
|
+
var idea = _this9.curTN.tnIdeaAutoFillContent;
|
|
61763
|
+
var oldIdea = _this9.curTN.tnIdeaAutoFillContent;
|
|
61688
61764
|
if (idea.indexOf('${sendTo}') !== -1) {
|
|
61689
61765
|
idea = idea.replace('${sendTo}', userNames);
|
|
61690
61766
|
oldIdea = oldIdea.replace('${sendTo}', oldUserNames);
|
|
@@ -61697,13 +61773,13 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61697
61773
|
idea = idea.replace(_regex, userNames);
|
|
61698
61774
|
oldIdea = oldIdea.replace(_regex, oldUserNames);
|
|
61699
61775
|
}
|
|
61700
|
-
if (!
|
|
61701
|
-
|
|
61776
|
+
if (!_this9.submitHandle.curUserIdea || _this9.submitHandle.curUserIdea === oldIdea) {
|
|
61777
|
+
_this9.$set(_this9.submitHandle, 'curUserIdea', idea);
|
|
61702
61778
|
}
|
|
61703
61779
|
}
|
|
61704
|
-
|
|
61705
|
-
|
|
61706
|
-
|
|
61780
|
+
_this9.$forceUpdate();
|
|
61781
|
+
_this9.$nextTick(function () {
|
|
61782
|
+
_this9.submitHandleValChange();
|
|
61707
61783
|
});
|
|
61708
61784
|
}
|
|
61709
61785
|
}, oldValue);
|
|
@@ -61772,7 +61848,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61772
61848
|
return copytreeData;
|
|
61773
61849
|
},
|
|
61774
61850
|
selectMsgType: function selectMsgType() {
|
|
61775
|
-
var
|
|
61851
|
+
var _this10 = this;
|
|
61776
61852
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.wflowform.reminderMethod', '提醒方式'), this.msgTypeOptions, function (res) {
|
|
61777
61853
|
if (res.code !== 'success') return;
|
|
61778
61854
|
var askMsgTypes = '';
|
|
@@ -61786,14 +61862,14 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61786
61862
|
msgType = item.text;
|
|
61787
61863
|
}
|
|
61788
61864
|
});
|
|
61789
|
-
|
|
61790
|
-
|
|
61865
|
+
_this10.submitHandle.askMsgTypes = askMsgTypes;
|
|
61866
|
+
_this10.msgType = msgType;
|
|
61791
61867
|
if (msgType) {
|
|
61792
|
-
|
|
61868
|
+
_this10.submitHandle.askSMS = 1;
|
|
61793
61869
|
} else {
|
|
61794
|
-
|
|
61870
|
+
_this10.submitHandle.askSMS = 0;
|
|
61795
61871
|
}
|
|
61796
|
-
|
|
61872
|
+
_this10.$forceUpdate();
|
|
61797
61873
|
}, this.submitHandle.askMsgTypes,
|
|
61798
61874
|
//默认选中
|
|
61799
61875
|
true,
|
|
@@ -61819,7 +61895,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61819
61895
|
this.wfNodeDialogVisible = true;
|
|
61820
61896
|
},
|
|
61821
61897
|
delUdmNode: function delUdmNode(index) {
|
|
61822
|
-
var
|
|
61898
|
+
var _this11 = this;
|
|
61823
61899
|
if (index === 0) return;
|
|
61824
61900
|
if (this.curTN.tnNodeID) {
|
|
61825
61901
|
this.wfInstance.udmNodes.splice(index, 1);
|
|
@@ -61836,18 +61912,18 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61836
61912
|
}).then(function (res) {
|
|
61837
61913
|
if (res.code === 'success') {
|
|
61838
61914
|
var historyWflogs = res.body.listdata.filter(function (wflog) {
|
|
61839
|
-
return wflog.nodeName ===
|
|
61915
|
+
return wflog.nodeName === _this11.wfInstance.udmNodes[index].name;
|
|
61840
61916
|
});
|
|
61841
61917
|
if (historyWflogs.length > 0) {
|
|
61842
|
-
|
|
61918
|
+
_this11.$dialog.alert({
|
|
61843
61919
|
message: '不允许删除已经送审批或办理的节点!'
|
|
61844
61920
|
});
|
|
61845
61921
|
} else {
|
|
61846
|
-
|
|
61847
|
-
|
|
61922
|
+
_this11.wfInstance.udmNodes.splice(index, 1);
|
|
61923
|
+
_this11.$forceUpdate();
|
|
61848
61924
|
}
|
|
61849
61925
|
} else {
|
|
61850
|
-
|
|
61926
|
+
_this11.$dialog.alert({
|
|
61851
61927
|
message: res.message
|
|
61852
61928
|
});
|
|
61853
61929
|
}
|
|
@@ -61858,9 +61934,9 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61858
61934
|
});
|
|
61859
61935
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=script&lang=js
|
|
61860
61936
|
/* harmony default export */ var src_SubmitHandlevue_type_script_lang_js = (SubmitHandlevue_type_script_lang_js);
|
|
61861
|
-
// 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=
|
|
61862
|
-
var
|
|
61863
|
-
;// 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
|
|
61864
61940
|
|
|
61865
61941
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue
|
|
61866
61942
|
|
|
@@ -61873,11 +61949,11 @@ var SubmitHandlevue_type_style_index_0_id_06943904_prod_scoped_true_lang_scss =
|
|
|
61873
61949
|
|
|
61874
61950
|
var SubmitHandle_component = (0,componentNormalizer/* default */.A)(
|
|
61875
61951
|
src_SubmitHandlevue_type_script_lang_js,
|
|
61876
|
-
|
|
61877
|
-
|
|
61952
|
+
SubmitHandlevue_type_template_id_067f09e4_scoped_true_render,
|
|
61953
|
+
SubmitHandlevue_type_template_id_067f09e4_scoped_true_staticRenderFns,
|
|
61878
61954
|
false,
|
|
61879
61955
|
null,
|
|
61880
|
-
"
|
|
61956
|
+
"067f09e4",
|
|
61881
61957
|
null
|
|
61882
61958
|
|
|
61883
61959
|
)
|