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.umd.js
CHANGED
|
@@ -7324,7 +7324,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".popub-container[data-v-6850137e]{widt
|
|
|
7324
7324
|
|
|
7325
7325
|
/***/ }),
|
|
7326
7326
|
|
|
7327
|
-
/***/
|
|
7327
|
+
/***/ 7529:
|
|
7328
7328
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7329
7329
|
|
|
7330
7330
|
"use strict";
|
|
@@ -7343,7 +7343,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
7343
7343
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
7344
7344
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
7345
7345
|
// Module
|
|
7346
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-
|
|
7346
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-067f09e4]{text-align:right}.submit-handle-container .idea-button-container .van-cell__value .van-button[data-v-067f09e4]{margin-right:0;margin-left:5px}.submit-handle-container .curIdea-filed[data-v-067f09e4] .van-cell__title,.submit-handle-container .curIdea-filed[data-v-067f09e4]:after{display:none}.submit-handle-container .clearfix[data-v-067f09e4]:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.submit-handle-container .van-wflow-operate-detail-cell[data-v-067f09e4]:after{border-top-width:0}.submit-handle-container .van-wflow-operate-detail-cell-path[data-v-067f09e4]:after{border-width:1px;-webkit-transform:scale(.5);transform:scale(.5)}.submit-handle-container .tnLimit-container[data-v-067f09e4] .van-field__body:after{color:#323233;content:attr(value-suffix)}.submit-handle-container .delete-icon[data-v-067f09e4]{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.submit-handle-container .delete-icon .van-icon[data-v-067f09e4]{line-height:24px;margin-left:5px;font-size:16px}.selectBox_title[data-v-067f09e4]{height:45px;line-height:45px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px}.selectBox_content[data-v-067f09e4],.selectBox_title[data-v-067f09e4]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 15px}.selectBox_content[data-v-067f09e4]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap}.selectBox_content .selectBox_content_son[data-v-067f09e4]{border:1px solid #f1f1f1}.selectBox_content .selectBox_content_son[data-v-067f09e4],.selectBox_content .selectBox_content_son_change[data-v-067f09e4]{padding:4px;background:#f8fafb;font-size:14px;margin-bottom:10px!important;text-align:center;height:22px;line-height:22px;width:calc(25% - 17.5px);margin-right:10px}.selectBox_content .selectBox_content_son_change[data-v-067f09e4]{border:1px solid #3f88f1;background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");background-repeat:no-repeat;background-size:15px 15px;background-position:100% 100%;color:#3f88f1}.selectBox_content_sonall[data-v-067f09e4]{white-space:nowrap;overflow:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.selectBox_content_sonall[data-v-067f09e4]:nth-child(4n){margin-right:0}.selectBox_content_sonall[data-v-067f09e4]::-webkit-scrollbar{display:none}.viewAllComments[data-v-067f09e4]{height:45px;line-height:45px;text-align:center;color:#b7b7b7;font-size:12px;background:#fff;display:block;width:100%}", ""]);
|
|
7347
7347
|
// Exports
|
|
7348
7348
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
7349
7349
|
|
|
@@ -32497,19 +32497,19 @@ var update = add("41a40148", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
32497
32497
|
|
|
32498
32498
|
/***/ }),
|
|
32499
32499
|
|
|
32500
|
-
/***/
|
|
32500
|
+
/***/ 7013:
|
|
32501
32501
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
32502
32502
|
|
|
32503
32503
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
32504
32504
|
|
|
32505
32505
|
// load the styles
|
|
32506
|
-
var content = __webpack_require__(
|
|
32506
|
+
var content = __webpack_require__(7529);
|
|
32507
32507
|
if(content.__esModule) content = content.default;
|
|
32508
32508
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
32509
32509
|
if(content.locals) module.exports = content.locals;
|
|
32510
32510
|
// add the styles to the DOM
|
|
32511
32511
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
32512
|
-
var update = add("
|
|
32512
|
+
var update = add("9053b718", content, true, {"sourceMap":false,"shadowMode":false});
|
|
32513
32513
|
|
|
32514
32514
|
/***/ }),
|
|
32515
32515
|
|
|
@@ -39575,6 +39575,16 @@ var wfengine_install = function install(Vue) {
|
|
|
39575
39575
|
}
|
|
39576
39576
|
});
|
|
39577
39577
|
}
|
|
39578
|
+
if ($scope.wfInstance.udmNodes && $scope.wfInstance.udmNodes !== '') {
|
|
39579
|
+
var udmNodes = JSON.parse($scope.wfInstance.udmNodes);
|
|
39580
|
+
for (var _i = 0; _i < udmNodes.length; _i++) {
|
|
39581
|
+
if (udmNodes[_i].name === 'chartData') {
|
|
39582
|
+
$scope.wfInstance.passenger.chartData = udmNodes[_i];
|
|
39583
|
+
udmNodes.splice(_i--, 1);
|
|
39584
|
+
}
|
|
39585
|
+
}
|
|
39586
|
+
$scope.wfInstance.udmNodes = udmNodes;
|
|
39587
|
+
}
|
|
39578
39588
|
$scope.commonIdeaList = $scope.wfInstance.passenger.commonIdeaList;
|
|
39579
39589
|
if ($scope.commonIdeaList === undefined) $scope.commonIdeaList = [];
|
|
39580
39590
|
// $scope.commonIdeaList.unshift('---选择常用意见---')
|
|
@@ -39718,6 +39728,124 @@ var wfengine_install = function install(Vue) {
|
|
|
39718
39728
|
});
|
|
39719
39729
|
});
|
|
39720
39730
|
},
|
|
39731
|
+
setUdmCustomRoutes: function setUdmCustomRoutes($scope) {
|
|
39732
|
+
var curNode = null;
|
|
39733
|
+
var curNodeIndex = -1;
|
|
39734
|
+
var customRoutes = [];
|
|
39735
|
+
$scope.wfInstance.udmNodes.forEach(function (taskNode, index) {
|
|
39736
|
+
if (taskNode.name === $scope.curTN.tnNodeName) {
|
|
39737
|
+
curNode = taskNode;
|
|
39738
|
+
curNodeIndex = index;
|
|
39739
|
+
if ($scope.wfInstance.passenger.udmNodeUsers) {
|
|
39740
|
+
var nextRoute = null;
|
|
39741
|
+
if ($scope.wfInstance.passenger.chartData) {
|
|
39742
|
+
//从流程配置图中获取提交路径、下一节点
|
|
39743
|
+
curNode.canEndWflow = 0;
|
|
39744
|
+
var paths = $scope.wfInstance.passenger.chartData.paths;
|
|
39745
|
+
paths.forEach(function (path) {
|
|
39746
|
+
if (path.preNodeId === curNode.uuid) {
|
|
39747
|
+
var nextNodes = $scope.wfInstance.udmNodes.filter(function (udmNode) {
|
|
39748
|
+
if (udmNode.uuid === path.targetNodeId) {
|
|
39749
|
+
if (!udmNode.users) udmNode.users = [];
|
|
39750
|
+
return true;
|
|
39751
|
+
}
|
|
39752
|
+
});
|
|
39753
|
+
nextRoute = {
|
|
39754
|
+
evtMsg: '',
|
|
39755
|
+
mustNextTN: '',
|
|
39756
|
+
evtCplPercent: '0',
|
|
39757
|
+
name: path.name,
|
|
39758
|
+
fullName: path.name,
|
|
39759
|
+
taskNodes: [],
|
|
39760
|
+
type: path.pathType + '' || '0'
|
|
39761
|
+
};
|
|
39762
|
+
if (nextNodes.length > 0) {
|
|
39763
|
+
nextRoute.taskNodes.push(JSON.parse(JSON.stringify(nextNodes[0])));
|
|
39764
|
+
nextRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers[nextNodes[0].name] || [];
|
|
39765
|
+
}
|
|
39766
|
+
customRoutes.push(nextRoute);
|
|
39767
|
+
}
|
|
39768
|
+
});
|
|
39769
|
+
}
|
|
39770
|
+
if (nextRoute === null) {
|
|
39771
|
+
//根据自定义环节数组,动态计算生成提交路径、下一节点
|
|
39772
|
+
if ($scope.wfInstance.udmNodes.length > index + 1) {
|
|
39773
|
+
curNode.canEndWflow = 0;
|
|
39774
|
+
var nextNode = $scope.wfInstance.udmNodes[index + 1];
|
|
39775
|
+
if (!nextNode.users) {
|
|
39776
|
+
nextNode.users = [];
|
|
39777
|
+
}
|
|
39778
|
+
nextRoute = {
|
|
39779
|
+
evtMsg: '',
|
|
39780
|
+
mustNextTN: '',
|
|
39781
|
+
evtCplPercent: '0',
|
|
39782
|
+
name: $scope.$tx('ecwapp.Wflowform.SubmitHandle.sendRoute', {
|
|
39783
|
+
nextNode: nextNode.name
|
|
39784
|
+
}, "\u9001".concat(nextNode.name)),
|
|
39785
|
+
fullName: $scope.$tx('ecwapp.Wflowform.SubmitHandle.sendRoute', {
|
|
39786
|
+
nextNode: nextNode.name
|
|
39787
|
+
}, "\u9001".concat(nextNode.name)),
|
|
39788
|
+
taskNodes: [JSON.parse(JSON.stringify(nextNode))],
|
|
39789
|
+
type: '0'
|
|
39790
|
+
};
|
|
39791
|
+
nextRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers[nextNode.name] || [];
|
|
39792
|
+
customRoutes.push(nextRoute);
|
|
39793
|
+
} else {
|
|
39794
|
+
curNode.canEndWflow = 1;
|
|
39795
|
+
}
|
|
39796
|
+
}
|
|
39797
|
+
}
|
|
39798
|
+
}
|
|
39799
|
+
if (index === 0) {
|
|
39800
|
+
taskNode.icon = 'el-icon-video-play';
|
|
39801
|
+
} else if (index + 1 === $scope.wfInstance.udmNodes.length) {
|
|
39802
|
+
taskNode.icon = 'el-icon-finished';
|
|
39803
|
+
} else {
|
|
39804
|
+
taskNode.icon = 'el-icon-edit-outline';
|
|
39805
|
+
}
|
|
39806
|
+
});
|
|
39807
|
+
if (curNode == null) {
|
|
39808
|
+
$scope.udmNode = null;
|
|
39809
|
+
$scope.wfInstance.udmNodes = null;
|
|
39810
|
+
return customRoutes;
|
|
39811
|
+
}
|
|
39812
|
+
if (curNode.canEndWflow !== 0) {
|
|
39813
|
+
var endRoute = {
|
|
39814
|
+
evtMsg: '',
|
|
39815
|
+
mustNextTN: '',
|
|
39816
|
+
evtCplPercent: '0',
|
|
39817
|
+
name: $scope.$tx('ecwapp.Wflowform.SubmitHandle.endProcessing', '结束处理'),
|
|
39818
|
+
fullName: $scope.$tx('ecwapp.Wflowform.SubmitHandle.endProcessing', '结束处理'),
|
|
39819
|
+
taskNodes: [],
|
|
39820
|
+
type: '4'
|
|
39821
|
+
};
|
|
39822
|
+
customRoutes.push(endRoute);
|
|
39823
|
+
}
|
|
39824
|
+
if (curNode.returnHistoryTN !== 0 && curNodeIndex > 0 && $scope.wfInstance.passenger.udmNodeUsers) {
|
|
39825
|
+
var backRoute = {
|
|
39826
|
+
evtMsg: '',
|
|
39827
|
+
mustNextTN: '',
|
|
39828
|
+
evtCplPercent: '0',
|
|
39829
|
+
name: $scope.$tx('ecwapp.Wflowform.SubmitHandle.sendBack', '退回'),
|
|
39830
|
+
taskNodes: [],
|
|
39831
|
+
type: '3'
|
|
39832
|
+
};
|
|
39833
|
+
if (curNode.returnHistoryTN == 2) {
|
|
39834
|
+
//退回到发起节点
|
|
39835
|
+
backRoute.name = '退回发起人';
|
|
39836
|
+
backRoute.taskNodes.push(JSON.parse(JSON.stringify($scope.wfInstance.udmNodes[0])));
|
|
39837
|
+
backRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
39838
|
+
} else {
|
|
39839
|
+
//退回到上一节点
|
|
39840
|
+
backRoute.name = '退回上一节点';
|
|
39841
|
+
backRoute.taskNodes.push(JSON.parse(JSON.stringify($scope.wfInstance.udmNodes[curNodeIndex - 1])));
|
|
39842
|
+
backRoute.taskNodes[0].users = $scope.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
39843
|
+
}
|
|
39844
|
+
backRoute.fullName = backRoute.name;
|
|
39845
|
+
customRoutes.push(backRoute);
|
|
39846
|
+
}
|
|
39847
|
+
return customRoutes;
|
|
39848
|
+
},
|
|
39721
39849
|
setCommandBar: function setCommandBar($scope, commandBar) {
|
|
39722
39850
|
commandBar.forEach(function (btn) {
|
|
39723
39851
|
if (btn.btnAlign === 2) btn.btnAlign = 1;
|
|
@@ -39860,8 +39988,12 @@ var wfengine_install = function install(Vue) {
|
|
|
39860
39988
|
params.copyWfNodeUser = 1;
|
|
39861
39989
|
params.asyncLoading = 1;
|
|
39862
39990
|
params.submitMode = window.submitMode;
|
|
39991
|
+
var wfInstanceVo = JSON.parse(JSON.stringify(wfInstance));
|
|
39992
|
+
if (wfInstanceVo.udmNodes && wfInstanceVo.passenger.chartData) {
|
|
39993
|
+
wfInstanceVo.udmNodes.push(wfInstanceVo.passenger.chartData);
|
|
39994
|
+
}
|
|
39863
39995
|
var saveData = {
|
|
39864
|
-
wfInstance: JSON.stringify(
|
|
39996
|
+
wfInstance: JSON.stringify(wfInstanceVo),
|
|
39865
39997
|
curTN: JSON.stringify($scope.curTN)
|
|
39866
39998
|
};
|
|
39867
39999
|
$scope.$http({
|
|
@@ -39940,13 +40072,17 @@ var wfengine_install = function install(Vue) {
|
|
|
39940
40072
|
$scope.vobak = JSON.parse(JSON.stringify($scope.vo));
|
|
39941
40073
|
$scope.wfJsonDatabak = JSON.parse(JSON.stringify($scope.wfJsonData || {}));
|
|
39942
40074
|
$scope.wfInstancebak = JSON.parse(JSON.stringify($scope.wfInstance));
|
|
39943
|
-
$scope.wfInstance.title = $scope.vo.flSubject || $scope.wfInstance.wfName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39944
40075
|
if ($scope.vo.status === -1) $scope.vo.status = 0;
|
|
39945
40076
|
$scope.wfInstance.passenger.busiData = $scope.vo;
|
|
39946
40077
|
if ($scope.wfInstance.udmNodes && $scope.wfInstance.udmNodes !== '') {
|
|
40078
|
+
$scope.wfInstance.title = $scope.vo.flSubject || $scope.vo.flFormName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39947
40079
|
$scope.wfInstance.passenger.wfName = $scope.vo.flFormName;
|
|
40080
|
+
if ($scope.wfInstance.passenger.chartData) {
|
|
40081
|
+
$scope.wfInstance.udmNodes.push($scope.wfInstance.passenger.chartData);
|
|
40082
|
+
}
|
|
39948
40083
|
} else {
|
|
39949
40084
|
$scope.wfInstance.udmNodes = '';
|
|
40085
|
+
$scope.wfInstance.title = $scope.vo.flSubject || $scope.wfInstance.wfName + '-' + $scope.wfInstance.creator + '-' + $scope.wfInstance.startTime;
|
|
39950
40086
|
}
|
|
39951
40087
|
|
|
39952
40088
|
// 数据封装
|
|
@@ -59029,8 +59165,8 @@ var SelectOuterDeputy_component = (0,componentNormalizer/* default */.A)(
|
|
|
59029
59165
|
)
|
|
59030
59166
|
|
|
59031
59167
|
/* harmony default export */ var SelectOuterDeputy = (SelectOuterDeputy_component.exports);
|
|
59032
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=template&id=
|
|
59033
|
-
var
|
|
59168
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=template&id=067f09e4&scoped=true
|
|
59169
|
+
var SubmitHandlevue_type_template_id_067f09e4_scoped_true_render = function render() {
|
|
59034
59170
|
var _vm = this,
|
|
59035
59171
|
_c = _vm._self._c;
|
|
59036
59172
|
return _vm.initiated ? _c('div', {
|
|
@@ -59047,7 +59183,7 @@ var SubmitHandlevue_type_template_id_06943904_scoped_true_render = function rend
|
|
|
59047
59183
|
expression: "'defineSteps'"
|
|
59048
59184
|
}],
|
|
59049
59185
|
attrs: {
|
|
59050
|
-
"title": "
|
|
59186
|
+
"title": "流程环节"
|
|
59051
59187
|
}
|
|
59052
59188
|
}, [_c('van-icon', {
|
|
59053
59189
|
staticStyle: {
|
|
@@ -59094,7 +59230,7 @@ var SubmitHandlevue_type_template_id_06943904_scoped_true_render = function rend
|
|
|
59094
59230
|
return _vm.editUdmNode(taskNode);
|
|
59095
59231
|
}
|
|
59096
59232
|
}
|
|
59097
|
-
}), _c('van-icon', {
|
|
59233
|
+
}), !_vm.chartData ? _c('van-icon', {
|
|
59098
59234
|
attrs: {
|
|
59099
59235
|
"color": index == 0 ? '#f3a3a3' : '#ee0a24',
|
|
59100
59236
|
"name": "cross"
|
|
@@ -59105,7 +59241,7 @@ var SubmitHandlevue_type_template_id_06943904_scoped_true_render = function rend
|
|
|
59105
59241
|
return _vm.delUdmNode(index);
|
|
59106
59242
|
}
|
|
59107
59243
|
}
|
|
59108
|
-
})], 1)], 2);
|
|
59244
|
+
}) : _vm._e()], 1)], 2);
|
|
59109
59245
|
})], 2) : _vm._e(), _vm.wfJsonData && _vm.wfJsonData.routes && _vm.wfJsonData.routes.length > 0 ? _vm._t("default", function () {
|
|
59110
59246
|
return [_vm.curTN.tnIdeaLabelID !== null && _vm.curTN.tnIdeaLabelID !== '' ? _c('div', {
|
|
59111
59247
|
staticClass: "form-slicer"
|
|
@@ -59685,10 +59821,10 @@ var SubmitHandlevue_type_template_id_06943904_scoped_true_render = function rend
|
|
|
59685
59821
|
}
|
|
59686
59822
|
})], 1) : _vm._e()], 2) : _vm._e();
|
|
59687
59823
|
};
|
|
59688
|
-
var
|
|
59824
|
+
var SubmitHandlevue_type_template_id_067f09e4_scoped_true_staticRenderFns = [];
|
|
59689
59825
|
|
|
59690
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/WfTaskNode.vue?vue&type=template&id=
|
|
59691
|
-
var
|
|
59826
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/WfTaskNode.vue?vue&type=template&id=8e60a7d4&scoped=true
|
|
59827
|
+
var WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_render = function render() {
|
|
59692
59828
|
var _vm = this,
|
|
59693
59829
|
_c = _vm._self._c;
|
|
59694
59830
|
return _c('div', [_c('van-cell-group', [_c('div', {
|
|
@@ -60312,7 +60448,7 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_render = function render
|
|
|
60312
60448
|
}
|
|
60313
60449
|
}, [_vm._v("取 消")])]], 2)], 1);
|
|
60314
60450
|
};
|
|
60315
|
-
var
|
|
60451
|
+
var WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_staticRenderFns = [];
|
|
60316
60452
|
|
|
60317
60453
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/WfTaskNode.vue?vue&type=script&lang=js
|
|
60318
60454
|
|
|
@@ -60558,6 +60694,9 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_staticRenderFns = [];
|
|
|
60558
60694
|
taskNode: {
|
|
60559
60695
|
handler: function handler(newValue, oldValue) {
|
|
60560
60696
|
var _this = this;
|
|
60697
|
+
if (this.taskNode.nodeType === undefined) {
|
|
60698
|
+
this.taskNode.nodeType = 1;
|
|
60699
|
+
}
|
|
60561
60700
|
if (this.taskNode.selectType !== undefined) {
|
|
60562
60701
|
this.selectTypeOptions.forEach(function (item) {
|
|
60563
60702
|
if (item.value === _this.taskNode.selectType) {
|
|
@@ -60896,11 +61035,11 @@ var WfTaskNodevue_type_template_id_1f810977_scoped_true_staticRenderFns = [];
|
|
|
60896
61035
|
;
|
|
60897
61036
|
var WfTaskNode_component = (0,componentNormalizer/* default */.A)(
|
|
60898
61037
|
src_WfTaskNodevue_type_script_lang_js,
|
|
60899
|
-
|
|
60900
|
-
|
|
61038
|
+
WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_render,
|
|
61039
|
+
WfTaskNodevue_type_template_id_8e60a7d4_scoped_true_staticRenderFns,
|
|
60901
61040
|
false,
|
|
60902
61041
|
null,
|
|
60903
|
-
"
|
|
61042
|
+
"8e60a7d4",
|
|
60904
61043
|
null
|
|
60905
61044
|
|
|
60906
61045
|
)
|
|
@@ -61039,7 +61178,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61039
61178
|
selectCount: 0
|
|
61040
61179
|
};
|
|
61041
61180
|
},
|
|
61042
|
-
computed: {
|
|
61181
|
+
computed: {
|
|
61182
|
+
chartData: function chartData() {
|
|
61183
|
+
return this.wfInstance.passenger.chartData;
|
|
61184
|
+
}
|
|
61185
|
+
},
|
|
61043
61186
|
watch: {
|
|
61044
61187
|
wfJsonData: {
|
|
61045
61188
|
handler: function handler(newValue, oldValue) {
|
|
@@ -61057,77 +61200,10 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61057
61200
|
},
|
|
61058
61201
|
wfInstance: {
|
|
61059
61202
|
handler: function handler(newValue, oldValue) {
|
|
61060
|
-
var _this2 = this;
|
|
61061
61203
|
var _this = this;
|
|
61062
61204
|
if (this.wfInstance.udmNodes && this.wfInstance.udmNodes !== '[]' && typeof this.wfInstance.udmNodes === 'string') this.wfInstance.udmNodes = JSON.parse(this.wfInstance.udmNodes);
|
|
61063
61205
|
if (this.wfInstance.udmNodes && SubmitHandlevue_type_script_lang_js_typeof(this.wfInstance.udmNodes) === 'object' && this.curTN.tnNodeID !== null) {
|
|
61064
|
-
|
|
61065
|
-
var curNodeIndex = -1;
|
|
61066
|
-
var customRoutes = [];
|
|
61067
|
-
this.wfInstance.udmNodes.forEach(function (taskNode, index) {
|
|
61068
|
-
if (taskNode.name === _this2.curTN.tnNodeName) {
|
|
61069
|
-
curNode = taskNode;
|
|
61070
|
-
curNodeIndex = index;
|
|
61071
|
-
if (curNode.canSendToNext !== 0 && _this2.wfInstance.udmNodes.length > index + 1 && _this.wfInstance.passenger.udmNodeUsers) {
|
|
61072
|
-
var nextNode = _this2.wfInstance.udmNodes[index + 1];
|
|
61073
|
-
if (!nextNode.users) {
|
|
61074
|
-
nextNode.users = [];
|
|
61075
|
-
}
|
|
61076
|
-
var nextRoute = {
|
|
61077
|
-
evtMsg: '',
|
|
61078
|
-
mustNextTN: '',
|
|
61079
|
-
evtCplPercent: '0',
|
|
61080
|
-
name: '送' + nextNode.name,
|
|
61081
|
-
fullName: '送' + nextNode.name,
|
|
61082
|
-
taskNodes: [JSON.parse(JSON.stringify(nextNode))],
|
|
61083
|
-
type: '0'
|
|
61084
|
-
};
|
|
61085
|
-
nextRoute.taskNodes[0].users = _this2.wfInstance.passenger.udmNodeUsers.nextUsers || [];
|
|
61086
|
-
customRoutes.push(nextRoute);
|
|
61087
|
-
}
|
|
61088
|
-
}
|
|
61089
|
-
});
|
|
61090
|
-
if (curNode == null) {
|
|
61091
|
-
this.udmNode = null;
|
|
61092
|
-
this.wfInstance.udmNodes = null;
|
|
61093
|
-
return;
|
|
61094
|
-
}
|
|
61095
|
-
if (curNode.canEndWflow !== 0) {
|
|
61096
|
-
var endRoute = {
|
|
61097
|
-
evtMsg: '',
|
|
61098
|
-
mustNextTN: '',
|
|
61099
|
-
evtCplPercent: '0',
|
|
61100
|
-
name: '结束处理',
|
|
61101
|
-
fullName: '结束处理',
|
|
61102
|
-
taskNodes: [],
|
|
61103
|
-
type: '4'
|
|
61104
|
-
};
|
|
61105
|
-
customRoutes.push(endRoute);
|
|
61106
|
-
}
|
|
61107
|
-
if (curNode.returnHistoryTN !== 0 && curNodeIndex > 0 && this.wfInstance.passenger.udmNodeUsers) {
|
|
61108
|
-
var backRoute = {
|
|
61109
|
-
evtMsg: '',
|
|
61110
|
-
mustNextTN: '',
|
|
61111
|
-
evtCplPercent: '0',
|
|
61112
|
-
name: this.$tx('ecwapp.Wflowform.SubmitHandle.sendBack', '退回'),
|
|
61113
|
-
taskNodes: [],
|
|
61114
|
-
type: '3'
|
|
61115
|
-
};
|
|
61116
|
-
if (curNode.returnHistoryTN == 2) {
|
|
61117
|
-
//退回到发起节点
|
|
61118
|
-
backRoute.name = '退回发起人';
|
|
61119
|
-
backRoute.taskNodes.push(JSON.parse(JSON.stringify(this.wfInstance.udmNodes[0])));
|
|
61120
|
-
backRoute.taskNodes[0].users = this.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
61121
|
-
} else {
|
|
61122
|
-
//退回到上一节点
|
|
61123
|
-
backRoute.name = '退回上一节点';
|
|
61124
|
-
backRoute.taskNodes.push(JSON.parse(JSON.stringify(this.wfInstance.udmNodes[curNodeIndex - 1])));
|
|
61125
|
-
backRoute.taskNodes[0].users = this.wfInstance.passenger.udmNodeUsers.returnHistoryTNUser;
|
|
61126
|
-
}
|
|
61127
|
-
backRoute.fullName = backRoute.name;
|
|
61128
|
-
customRoutes.push(backRoute);
|
|
61129
|
-
}
|
|
61130
|
-
this.wfJsonData.routes = customRoutes;
|
|
61206
|
+
this.wfJsonData.routes = _this.$wfEngine.setUdmCustomRoutes(_this);
|
|
61131
61207
|
this.initSubmitHandle();
|
|
61132
61208
|
}
|
|
61133
61209
|
this.$forceUpdate();
|
|
@@ -61155,14 +61231,14 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61155
61231
|
clearInterval(this.timer);
|
|
61156
61232
|
},
|
|
61157
61233
|
mounted: function mounted() {
|
|
61158
|
-
var
|
|
61234
|
+
var _this2 = this;
|
|
61159
61235
|
this.msgTypeOptions = this.wfInstance.passenger.msgTypeOptions || null;
|
|
61160
61236
|
this.initSubmitHandle();
|
|
61161
61237
|
this.curUserIdea = this.submitHandle.curUserIdea;
|
|
61162
61238
|
this.timer = setInterval(function () {
|
|
61163
|
-
if (
|
|
61164
|
-
|
|
61165
|
-
|
|
61239
|
+
if (_this2.submitHandle.curUserIdea !== _this2.curUserIdea && _this2.submitHandle.curUserIdea !== '') {
|
|
61240
|
+
_this2.saveCurTNIdea('AutoSave');
|
|
61241
|
+
_this2.curUserIdea = _this2.submitHandle.curUserIdea;
|
|
61166
61242
|
}
|
|
61167
61243
|
}, 5 * 60 * 1000);
|
|
61168
61244
|
if (this.$vnode.context.attachments) {
|
|
@@ -61184,7 +61260,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61184
61260
|
},
|
|
61185
61261
|
// 表单内选择
|
|
61186
61262
|
selectBanlFn: function selectBanlFn(item, users, wfNode) {
|
|
61187
|
-
var
|
|
61263
|
+
var _this3 = this;
|
|
61188
61264
|
if (item.changed) {
|
|
61189
61265
|
if (users.length > 1) {
|
|
61190
61266
|
item.changed = false;
|
|
@@ -61232,7 +61308,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61232
61308
|
this.submitHandle.route[title].showUsers = showUsers;
|
|
61233
61309
|
this.$forceUpdate();
|
|
61234
61310
|
this.$nextTick(function () {
|
|
61235
|
-
|
|
61311
|
+
_this3.submitHandleValChange();
|
|
61236
61312
|
});
|
|
61237
61313
|
} else {
|
|
61238
61314
|
// 直接选择人员
|
|
@@ -61250,7 +61326,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61250
61326
|
this.submitHandle.route[_title].showUsers = _showUsers;
|
|
61251
61327
|
this.$forceUpdate();
|
|
61252
61328
|
this.$nextTick(function () {
|
|
61253
|
-
|
|
61329
|
+
_this3.submitHandleValChange();
|
|
61254
61330
|
});
|
|
61255
61331
|
}
|
|
61256
61332
|
},
|
|
@@ -61258,7 +61334,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61258
61334
|
this.$bus.emit('submitHandleValChange', this);
|
|
61259
61335
|
},
|
|
61260
61336
|
initSubmitHandle: function initSubmitHandle(action) {
|
|
61261
|
-
var
|
|
61337
|
+
var _this4 = this;
|
|
61262
61338
|
var _this = this;
|
|
61263
61339
|
_this.showTimeLimit = false;
|
|
61264
61340
|
_this.isUdmNodes = _this.wfInstance.passenger.isUdmNodes;
|
|
@@ -61266,11 +61342,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61266
61342
|
new Promise(function (resolve, reject) {
|
|
61267
61343
|
// 响应路径单击事件
|
|
61268
61344
|
if (action === 'click') {
|
|
61269
|
-
|
|
61345
|
+
_this4.wfJsonData.routes.forEach(function (item, index) {
|
|
61270
61346
|
item.index = index;
|
|
61271
61347
|
item.text = item.name;
|
|
61272
61348
|
});
|
|
61273
|
-
|
|
61349
|
+
_this4.$bus.emit('openListitemDialog', _this4.$tx('ecmapp.wflowform.pSubmitPath', '请选择提交路径'), _this4.wfJsonData.routes.filter(function (obj) {
|
|
61274
61350
|
return obj.type !== 16 && obj.type !== '16';
|
|
61275
61351
|
}), function (rst) {
|
|
61276
61352
|
if (rst.code === 'success') {
|
|
@@ -61289,23 +61365,23 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61289
61365
|
} else {
|
|
61290
61366
|
reject('cancel');
|
|
61291
61367
|
}
|
|
61292
|
-
},
|
|
61368
|
+
}, _this4.submitHandle.route.index);
|
|
61293
61369
|
} else {
|
|
61294
61370
|
resolve(0);
|
|
61295
61371
|
}
|
|
61296
61372
|
}).then(function (res) {
|
|
61297
|
-
if (
|
|
61298
|
-
if (!
|
|
61299
|
-
|
|
61373
|
+
if (_this4.wfJsonData.routes.length === 1 && _this4.wfJsonData.routes[0].name.indexOf('结束') > -1) {
|
|
61374
|
+
if (!_this4.showOverPath) {
|
|
61375
|
+
_this4.showOverPatnRow = false;
|
|
61300
61376
|
} else {
|
|
61301
|
-
|
|
61377
|
+
_this4.showOverPatnRow = true;
|
|
61302
61378
|
}
|
|
61303
61379
|
}
|
|
61304
61380
|
_this.submitHandle.route.index = res;
|
|
61305
|
-
var selRoute =
|
|
61381
|
+
var selRoute = _this4.wfJsonData.routes[_this4.submitHandle.route.index];
|
|
61306
61382
|
var _loop = function _loop(_i) {
|
|
61307
61383
|
var taskNode = selRoute.taskNodes[_i];
|
|
61308
|
-
|
|
61384
|
+
_this4.submitHandle.route[taskNode.name] = {
|
|
61309
61385
|
user: [],
|
|
61310
61386
|
showUsers: '',
|
|
61311
61387
|
isLink: true
|
|
@@ -61335,13 +61411,13 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61335
61411
|
} else if (selectedNodes.length > 2) {
|
|
61336
61412
|
showUsers = selectedNodes[0].name + '、' + selectedNodes[1].name + '等' + selectedNodes.length + '人';
|
|
61337
61413
|
}
|
|
61338
|
-
|
|
61339
|
-
|
|
61414
|
+
_this4.submitHandle.route[taskNode.name].users = selectedNodes;
|
|
61415
|
+
_this4.submitHandle.route[taskNode.name].showUsers = showUsers;
|
|
61340
61416
|
} else {
|
|
61341
61417
|
selRoute.taskNodes.splice(_i--, 1);
|
|
61342
61418
|
}
|
|
61343
61419
|
} else {
|
|
61344
|
-
var wfusers =
|
|
61420
|
+
var wfusers = _this4.Cookies.get('route-wfuser-' + _this4.wfInstance.id + '-' + taskNode.id);
|
|
61345
61421
|
if (wfusers !== undefined && wfusers !== null) {
|
|
61346
61422
|
var _selectedNodes = [];
|
|
61347
61423
|
taskNode.users.forEach(function (user) {
|
|
@@ -61357,33 +61433,33 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61357
61433
|
} else if (_selectedNodes.length > 2) {
|
|
61358
61434
|
_showUsers2 = _selectedNodes[0].name + '、' + _selectedNodes[1].name + '等' + _selectedNodes.length + '人';
|
|
61359
61435
|
}
|
|
61360
|
-
|
|
61361
|
-
|
|
61436
|
+
_this4.submitHandle.route[taskNode.name].users = _selectedNodes;
|
|
61437
|
+
_this4.submitHandle.route[taskNode.name].showUsers = _showUsers2;
|
|
61362
61438
|
}
|
|
61363
61439
|
}
|
|
61364
|
-
if (
|
|
61365
|
-
|
|
61366
|
-
|
|
61440
|
+
if (_this4.submitHandle.route[taskNode.name].users) {
|
|
61441
|
+
_this4.submitHandle.route[taskNode.name].users.forEach(function (user) {
|
|
61442
|
+
_this4.selectBanlFn(user, taskNode.users, taskNode);
|
|
61367
61443
|
});
|
|
61368
61444
|
}
|
|
61369
61445
|
if (parseInt(taskNode.tmLmtType) !== 9 && parseInt(taskNode.tmLmtCanEdit) === 1) {
|
|
61370
|
-
|
|
61446
|
+
_this4.showTimeLimit = true;
|
|
61371
61447
|
}
|
|
61372
61448
|
if ((selRoute.taskNodes.length === 1 || selRoute.mustNextTN.indexOf(taskNode.name) !== -1) && taskNode.users.length === 1 && taskNode.users[0].type !== 'asyncLoadingUsers') {
|
|
61373
|
-
|
|
61374
|
-
|
|
61375
|
-
|
|
61376
|
-
|
|
61449
|
+
_this4.submitHandle.route[taskNode.name].users = taskNode.users;
|
|
61450
|
+
_this4.submitHandle.route[taskNode.name].showUsers = taskNode.users[0].name;
|
|
61451
|
+
_this4.submitHandle.route[taskNode.name].isLink = false;
|
|
61452
|
+
_this4.selectBanlFn(taskNode.users[0], taskNode.users, taskNode);
|
|
61377
61453
|
}
|
|
61378
61454
|
i = _i;
|
|
61379
61455
|
};
|
|
61380
61456
|
for (var i = 0; i < selRoute.taskNodes.length; i++) {
|
|
61381
61457
|
_loop(i);
|
|
61382
61458
|
}
|
|
61383
|
-
|
|
61384
|
-
|
|
61385
|
-
|
|
61386
|
-
var suffixs =
|
|
61459
|
+
_this4.initiated = true;
|
|
61460
|
+
_this4.$forceUpdate();
|
|
61461
|
+
_this4.$nextTick(function () {
|
|
61462
|
+
var suffixs = _this4.$el.querySelectorAll('.tnLimit-container .van-field__body');
|
|
61387
61463
|
suffixs.forEach(function (suffix) {
|
|
61388
61464
|
suffix.setAttribute('value-suffix', '天');
|
|
61389
61465
|
});
|
|
@@ -61394,8 +61470,8 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61394
61470
|
var askMsgTypes = this.submitHandle.askMsgTypes.split(',');
|
|
61395
61471
|
this.wfInstance.passenger.msgTypeOptions.forEach(function (msgType) {
|
|
61396
61472
|
if (askMsgTypes.indexOf(msgType.value + '') !== -1) {
|
|
61397
|
-
if (
|
|
61398
|
-
|
|
61473
|
+
if (_this4.msgType) _this4.msgType += '、';
|
|
61474
|
+
_this4.msgType += msgType.text;
|
|
61399
61475
|
}
|
|
61400
61476
|
});
|
|
61401
61477
|
}
|
|
@@ -61446,7 +61522,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61446
61522
|
}
|
|
61447
61523
|
},
|
|
61448
61524
|
saveCommonIdea: function saveCommonIdea() {
|
|
61449
|
-
var
|
|
61525
|
+
var _this5 = this;
|
|
61450
61526
|
if (this.submitHandle.curUserIdea === null || this.submitHandle.curUserIdea.trim() === '') {
|
|
61451
61527
|
this.$dialog.alert({
|
|
61452
61528
|
message: this.$tx('ecmapp.common.pWriteOpinion', '请填写处理意见。'),
|
|
@@ -61459,11 +61535,11 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61459
61535
|
this.$options.components['BusiForm'] = this.$wfEngine.loadBusiform(this, this.commonIdeaModuleInfo.formTemplate, 'M');
|
|
61460
61536
|
this.popupDialogVisible = true;
|
|
61461
61537
|
setTimeout(function () {
|
|
61462
|
-
|
|
61538
|
+
_this5.$bus.emit('openBusiform', _this5.commonIdeaModuleInfo, null, 1, _this5.closePopupDialog);
|
|
61463
61539
|
}, 0);
|
|
61464
61540
|
},
|
|
61465
61541
|
applyCommonIdea: function applyCommonIdea() {
|
|
61466
|
-
var
|
|
61542
|
+
var _this6 = this;
|
|
61467
61543
|
if (this.commonIdeaList.length === 0) {
|
|
61468
61544
|
this.$dialog.alert({
|
|
61469
61545
|
message: this.$tx('ecmapp.wflowform.noComOpinion', '暂无常用意见。'),
|
|
@@ -61481,24 +61557,24 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61481
61557
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.wflowform.selectComOpinion', '选择常用意见'), itemlist, function (res) {
|
|
61482
61558
|
if (res.code !== 'success') return;
|
|
61483
61559
|
var ideaContent = res.value.text;
|
|
61484
|
-
if (
|
|
61485
|
-
|
|
61486
|
-
|
|
61487
|
-
} else if (
|
|
61488
|
-
|
|
61489
|
-
|
|
61560
|
+
if (_this6.submitHandle.curUserIdea === undefined || _this6.submitHandle.curUserIdea === null || _this6.submitHandle.curUserIdea.trim() === '') {
|
|
61561
|
+
_this6.submitHandle.curUserIdea = ideaContent;
|
|
61562
|
+
_this6.$forceUpdate();
|
|
61563
|
+
} else if (_this6.commonIdeaFillMode === 'append') {
|
|
61564
|
+
_this6.submitHandle.curUserIdea += ideaContent;
|
|
61565
|
+
_this6.$forceUpdate();
|
|
61490
61566
|
} else {
|
|
61491
|
-
|
|
61492
|
-
message:
|
|
61567
|
+
_this6.$dialog.confirm({
|
|
61568
|
+
message: _this6.$tx('ecmapp.wflowform.alreadlyHave', '意见已存在,是否确认使用常用意见?')
|
|
61493
61569
|
}).then(function () {
|
|
61494
|
-
|
|
61495
|
-
|
|
61570
|
+
_this6.submitHandle.curUserIdea = ideaContent;
|
|
61571
|
+
_this6.$forceUpdate();
|
|
61496
61572
|
});
|
|
61497
61573
|
}
|
|
61498
61574
|
}, null, false, 'bottomDialog');
|
|
61499
61575
|
},
|
|
61500
61576
|
saveSubmitTemplate: function saveSubmitTemplate() {
|
|
61501
|
-
var
|
|
61577
|
+
var _this7 = this;
|
|
61502
61578
|
if (this.curTN.tnIdeaLabelID && this.curTN.tnIdeaIsMust === 1) {
|
|
61503
61579
|
if (this.submitHandle.curUserIdea === null || this.submitHandle.curUserIdea.trim() === '') {
|
|
61504
61580
|
this.$dialog.alert({
|
|
@@ -61519,7 +61595,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61519
61595
|
this.$options.components['BusiForm'] = this.$wfEngine.loadBusiform(this, this.submitTemplateModuleInfo.formTemplate, 'M');
|
|
61520
61596
|
this.popupDialogVisible = true;
|
|
61521
61597
|
setTimeout(function () {
|
|
61522
|
-
|
|
61598
|
+
_this7.$bus.emit('openBusiform', _this7.submitTemplateModuleInfo, null, 1, _this7.closePopupDialog);
|
|
61523
61599
|
}, 0);
|
|
61524
61600
|
},
|
|
61525
61601
|
onBasicFormBeforeOpen: function onBasicFormBeforeOpen($scope, vo, defer) {
|
|
@@ -61574,7 +61650,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61574
61650
|
this.curNode = null;
|
|
61575
61651
|
},
|
|
61576
61652
|
applySubmitTemplate: function applySubmitTemplate() {
|
|
61577
|
-
var
|
|
61653
|
+
var _this8 = this;
|
|
61578
61654
|
if (this.submitTemplateList.length === 0) {
|
|
61579
61655
|
this.$dialog.alert({
|
|
61580
61656
|
message: this.$tx('ecmapp.wflowform.noTemplate', '暂无办理模板。')
|
|
@@ -61592,9 +61668,9 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61592
61668
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.Wflowform.fields.selectTemplate', '选择办理模板'), itemlist, function (res) {
|
|
61593
61669
|
if (res.code !== 'success') return;
|
|
61594
61670
|
var submitTemplateIndex = res.value.value;
|
|
61595
|
-
_this.$wfEngine.applySubmitTemplate(_this, JSON.parse(
|
|
61596
|
-
if (_this.wfJsonData.routes[
|
|
61597
|
-
_this.wfJsonData.routes[
|
|
61671
|
+
_this.$wfEngine.applySubmitTemplate(_this, JSON.parse(_this8.submitTemplateList[submitTemplateIndex].submitJsondata));
|
|
61672
|
+
if (_this.wfJsonData.routes[_this8.submitHandle.route.index].taskNodes) {
|
|
61673
|
+
_this.wfJsonData.routes[_this8.submitHandle.route.index].taskNodes.forEach(function (taskNode) {
|
|
61598
61674
|
if (_this.submitHandle.route[taskNode.name]) {
|
|
61599
61675
|
var users = _this.submitHandle.route[taskNode.name].users;
|
|
61600
61676
|
if (users) {
|
|
@@ -61633,7 +61709,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61633
61709
|
this.$forceUpdate();
|
|
61634
61710
|
},
|
|
61635
61711
|
selectWfNodeUser: function selectWfNodeUser(title, wfNode) {
|
|
61636
|
-
var
|
|
61712
|
+
var _this9 = this;
|
|
61637
61713
|
if (wfNode.showNodeUsers === 2) return; // 自动全选、并且不允许修改
|
|
61638
61714
|
|
|
61639
61715
|
var condition = {
|
|
@@ -61675,26 +61751,26 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61675
61751
|
} else if (res.value.length > 2) {
|
|
61676
61752
|
showUsers = res.value[0].name + '、' + res.value[1].name + '等' + res.value.length + '人';
|
|
61677
61753
|
}
|
|
61678
|
-
if (!
|
|
61679
|
-
|
|
61680
|
-
|
|
61754
|
+
if (!_this9.submitHandle.route[title]) _this9.submitHandle.route[title] = {};
|
|
61755
|
+
_this9.submitHandle.route[title].users = res.value;
|
|
61756
|
+
_this9.submitHandle.route[title].showUsers = showUsers;
|
|
61681
61757
|
|
|
61682
61758
|
//当前环节设置为选择人员后自动填写组合意见
|
|
61683
|
-
if (
|
|
61759
|
+
if (_this9.curTN.tnIdeaAutoFillType == 2 && _this9.curTN.tnIdeaAutoFillContent) {
|
|
61684
61760
|
var userNames = '';
|
|
61685
61761
|
res.value.forEach(function (user) {
|
|
61686
61762
|
if (userNames) userNames += '、';
|
|
61687
61763
|
userNames += user.name;
|
|
61688
61764
|
});
|
|
61689
61765
|
var oldUserNames = '';
|
|
61690
|
-
if (
|
|
61691
|
-
|
|
61766
|
+
if (_this9.submitHandle.route[title].users) {
|
|
61767
|
+
_this9.submitHandle.route[title].users.forEach(function (user) {
|
|
61692
61768
|
if (oldUserNames) oldUserNames += '、';
|
|
61693
61769
|
oldUserNames += user.name;
|
|
61694
61770
|
});
|
|
61695
61771
|
}
|
|
61696
|
-
var idea =
|
|
61697
|
-
var oldIdea =
|
|
61772
|
+
var idea = _this9.curTN.tnIdeaAutoFillContent;
|
|
61773
|
+
var oldIdea = _this9.curTN.tnIdeaAutoFillContent;
|
|
61698
61774
|
if (idea.indexOf('${sendTo}') !== -1) {
|
|
61699
61775
|
idea = idea.replace('${sendTo}', userNames);
|
|
61700
61776
|
oldIdea = oldIdea.replace('${sendTo}', oldUserNames);
|
|
@@ -61707,13 +61783,13 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61707
61783
|
idea = idea.replace(_regex, userNames);
|
|
61708
61784
|
oldIdea = oldIdea.replace(_regex, oldUserNames);
|
|
61709
61785
|
}
|
|
61710
|
-
if (!
|
|
61711
|
-
|
|
61786
|
+
if (!_this9.submitHandle.curUserIdea || _this9.submitHandle.curUserIdea === oldIdea) {
|
|
61787
|
+
_this9.$set(_this9.submitHandle, 'curUserIdea', idea);
|
|
61712
61788
|
}
|
|
61713
61789
|
}
|
|
61714
|
-
|
|
61715
|
-
|
|
61716
|
-
|
|
61790
|
+
_this9.$forceUpdate();
|
|
61791
|
+
_this9.$nextTick(function () {
|
|
61792
|
+
_this9.submitHandleValChange();
|
|
61717
61793
|
});
|
|
61718
61794
|
}
|
|
61719
61795
|
}, oldValue);
|
|
@@ -61782,7 +61858,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61782
61858
|
return copytreeData;
|
|
61783
61859
|
},
|
|
61784
61860
|
selectMsgType: function selectMsgType() {
|
|
61785
|
-
var
|
|
61861
|
+
var _this10 = this;
|
|
61786
61862
|
this.$bus.emit('openListitemDialog', this.$tx('ecmapp.wflowform.reminderMethod', '提醒方式'), this.msgTypeOptions, function (res) {
|
|
61787
61863
|
if (res.code !== 'success') return;
|
|
61788
61864
|
var askMsgTypes = '';
|
|
@@ -61796,14 +61872,14 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61796
61872
|
msgType = item.text;
|
|
61797
61873
|
}
|
|
61798
61874
|
});
|
|
61799
|
-
|
|
61800
|
-
|
|
61875
|
+
_this10.submitHandle.askMsgTypes = askMsgTypes;
|
|
61876
|
+
_this10.msgType = msgType;
|
|
61801
61877
|
if (msgType) {
|
|
61802
|
-
|
|
61878
|
+
_this10.submitHandle.askSMS = 1;
|
|
61803
61879
|
} else {
|
|
61804
|
-
|
|
61880
|
+
_this10.submitHandle.askSMS = 0;
|
|
61805
61881
|
}
|
|
61806
|
-
|
|
61882
|
+
_this10.$forceUpdate();
|
|
61807
61883
|
}, this.submitHandle.askMsgTypes,
|
|
61808
61884
|
//默认选中
|
|
61809
61885
|
true,
|
|
@@ -61829,7 +61905,7 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61829
61905
|
this.wfNodeDialogVisible = true;
|
|
61830
61906
|
},
|
|
61831
61907
|
delUdmNode: function delUdmNode(index) {
|
|
61832
|
-
var
|
|
61908
|
+
var _this11 = this;
|
|
61833
61909
|
if (index === 0) return;
|
|
61834
61910
|
if (this.curTN.tnNodeID) {
|
|
61835
61911
|
this.wfInstance.udmNodes.splice(index, 1);
|
|
@@ -61846,18 +61922,18 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61846
61922
|
}).then(function (res) {
|
|
61847
61923
|
if (res.code === 'success') {
|
|
61848
61924
|
var historyWflogs = res.body.listdata.filter(function (wflog) {
|
|
61849
|
-
return wflog.nodeName ===
|
|
61925
|
+
return wflog.nodeName === _this11.wfInstance.udmNodes[index].name;
|
|
61850
61926
|
});
|
|
61851
61927
|
if (historyWflogs.length > 0) {
|
|
61852
|
-
|
|
61928
|
+
_this11.$dialog.alert({
|
|
61853
61929
|
message: '不允许删除已经送审批或办理的节点!'
|
|
61854
61930
|
});
|
|
61855
61931
|
} else {
|
|
61856
|
-
|
|
61857
|
-
|
|
61932
|
+
_this11.wfInstance.udmNodes.splice(index, 1);
|
|
61933
|
+
_this11.$forceUpdate();
|
|
61858
61934
|
}
|
|
61859
61935
|
} else {
|
|
61860
|
-
|
|
61936
|
+
_this11.$dialog.alert({
|
|
61861
61937
|
message: res.message
|
|
61862
61938
|
});
|
|
61863
61939
|
}
|
|
@@ -61868,9 +61944,9 @@ var SubmitHandlevue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
|
61868
61944
|
});
|
|
61869
61945
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=script&lang=js
|
|
61870
61946
|
/* harmony default export */ var src_SubmitHandlevue_type_script_lang_js = (SubmitHandlevue_type_script_lang_js);
|
|
61871
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=
|
|
61872
|
-
var
|
|
61873
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=
|
|
61947
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=067f09e4&prod&scoped=true&lang=scss
|
|
61948
|
+
var SubmitHandlevue_type_style_index_0_id_067f09e4_prod_scoped_true_lang_scss = __webpack_require__(7013);
|
|
61949
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=067f09e4&prod&scoped=true&lang=scss
|
|
61874
61950
|
|
|
61875
61951
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue
|
|
61876
61952
|
|
|
@@ -61883,11 +61959,11 @@ var SubmitHandlevue_type_style_index_0_id_06943904_prod_scoped_true_lang_scss =
|
|
|
61883
61959
|
|
|
61884
61960
|
var SubmitHandle_component = (0,componentNormalizer/* default */.A)(
|
|
61885
61961
|
src_SubmitHandlevue_type_script_lang_js,
|
|
61886
|
-
|
|
61887
|
-
|
|
61962
|
+
SubmitHandlevue_type_template_id_067f09e4_scoped_true_render,
|
|
61963
|
+
SubmitHandlevue_type_template_id_067f09e4_scoped_true_staticRenderFns,
|
|
61888
61964
|
false,
|
|
61889
61965
|
null,
|
|
61890
|
-
"
|
|
61966
|
+
"067f09e4",
|
|
61891
61967
|
null
|
|
61892
61968
|
|
|
61893
61969
|
)
|