eoss-ui 0.5.50 → 0.5.52
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/eoss-ui.common.js +94 -42
- package/lib/flow.js +88 -36
- package/lib/index.js +1 -1
- package/lib/theme-chalk/flow.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/package.json +1 -1
- package/packages/flow/src/component/CommonOpinions.vue +35 -9
- package/packages/flow/src/main.vue +18 -12
- package/packages/theme-chalk/lib/flow.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/flow.scss +1 -1
- package/src/index.js +1 -1
- package/CHANGELOG.md +0 -929
package/lib/eoss-ui.common.js
CHANGED
|
@@ -29441,8 +29441,8 @@ form_src_main.install = function (Vue) {
|
|
|
29441
29441
|
};
|
|
29442
29442
|
|
|
29443
29443
|
/* harmony default export */ var packages_form = (form_src_main);
|
|
29444
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=
|
|
29445
|
-
var
|
|
29444
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=4dbe5794&
|
|
29445
|
+
var mainvue_type_template_id_4dbe5794_render = function () {
|
|
29446
29446
|
var _vm = this
|
|
29447
29447
|
var _h = _vm.$createElement
|
|
29448
29448
|
var _c = _vm._self._c || _h
|
|
@@ -29451,7 +29451,7 @@ var mainvue_type_template_id_5512ddf8_render = function () {
|
|
|
29451
29451
|
"div",
|
|
29452
29452
|
{
|
|
29453
29453
|
staticClass: "es-flow-index",
|
|
29454
|
-
class: { "es-flow-narrow": _vm.shrink
|
|
29454
|
+
class: { "es-flow-narrow": _vm.shrink },
|
|
29455
29455
|
style: _vm.styles,
|
|
29456
29456
|
},
|
|
29457
29457
|
[
|
|
@@ -29641,6 +29641,7 @@ var mainvue_type_template_id_5512ddf8_render = function () {
|
|
|
29641
29641
|
slot: "prepend",
|
|
29642
29642
|
placeholder: "请选择流程",
|
|
29643
29643
|
},
|
|
29644
|
+
on: { change: _vm.handleChange },
|
|
29644
29645
|
slot: "prepend",
|
|
29645
29646
|
model: {
|
|
29646
29647
|
value: _vm.nodeInfo.nextNode,
|
|
@@ -31161,14 +31162,14 @@ var mainvue_type_template_id_5512ddf8_render = function () {
|
|
|
31161
31162
|
)
|
|
31162
31163
|
: _vm._e()
|
|
31163
31164
|
}
|
|
31164
|
-
var
|
|
31165
|
-
|
|
31165
|
+
var mainvue_type_template_id_4dbe5794_staticRenderFns = []
|
|
31166
|
+
mainvue_type_template_id_4dbe5794_render._withStripped = true
|
|
31166
31167
|
|
|
31167
31168
|
|
|
31168
|
-
// CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=
|
|
31169
|
+
// CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=4dbe5794&
|
|
31169
31170
|
|
|
31170
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=
|
|
31171
|
-
var
|
|
31171
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=2f580d06&
|
|
31172
|
+
var CommonOpinionsvue_type_template_id_2f580d06_render = function () {
|
|
31172
31173
|
var _vm = this
|
|
31173
31174
|
var _h = _vm.$createElement
|
|
31174
31175
|
var _c = _vm._self._c || _h
|
|
@@ -31176,23 +31177,40 @@ var CommonOpinionsvue_type_template_id_4e1f4030_render = function () {
|
|
|
31176
31177
|
"div",
|
|
31177
31178
|
{ staticClass: "commonOpinion" },
|
|
31178
31179
|
[
|
|
31179
|
-
_c(
|
|
31180
|
-
|
|
31181
|
-
|
|
31182
|
-
|
|
31183
|
-
|
|
31184
|
-
placeholder: "请输入意见",
|
|
31185
|
-
rows: 10,
|
|
31186
|
-
},
|
|
31187
|
-
on: { change: _vm.changeOpinion },
|
|
31188
|
-
model: {
|
|
31189
|
-
value: _vm.value,
|
|
31190
|
-
callback: function ($$v) {
|
|
31191
|
-
_vm.value = $$v
|
|
31192
|
-
},
|
|
31193
|
-
expression: "value",
|
|
31180
|
+
_c(
|
|
31181
|
+
"el-form",
|
|
31182
|
+
{
|
|
31183
|
+
ref: "ruleForm",
|
|
31184
|
+
attrs: { model: _vm.form, rules: _vm.rules, "label-width": "0" },
|
|
31194
31185
|
},
|
|
31195
|
-
|
|
31186
|
+
[
|
|
31187
|
+
_c(
|
|
31188
|
+
"el-form-item",
|
|
31189
|
+
{ attrs: { label: "", prop: "value" } },
|
|
31190
|
+
[
|
|
31191
|
+
_c("el-input", {
|
|
31192
|
+
attrs: {
|
|
31193
|
+
disabled: _vm.isBanInputOpinion == "1" || _vm.disabled,
|
|
31194
|
+
type: "textarea",
|
|
31195
|
+
clear: "inp",
|
|
31196
|
+
placeholder: "请输入意见",
|
|
31197
|
+
rows: 10,
|
|
31198
|
+
},
|
|
31199
|
+
on: { change: _vm.changeOpinion },
|
|
31200
|
+
model: {
|
|
31201
|
+
value: _vm.form.value,
|
|
31202
|
+
callback: function ($$v) {
|
|
31203
|
+
_vm.$set(_vm.form, "value", $$v)
|
|
31204
|
+
},
|
|
31205
|
+
expression: "form.value",
|
|
31206
|
+
},
|
|
31207
|
+
}),
|
|
31208
|
+
],
|
|
31209
|
+
1
|
|
31210
|
+
),
|
|
31211
|
+
],
|
|
31212
|
+
1
|
|
31213
|
+
),
|
|
31196
31214
|
_c(
|
|
31197
31215
|
"el-input",
|
|
31198
31216
|
{
|
|
@@ -31337,11 +31355,11 @@ var CommonOpinionsvue_type_template_id_4e1f4030_render = function () {
|
|
|
31337
31355
|
1
|
|
31338
31356
|
)
|
|
31339
31357
|
}
|
|
31340
|
-
var
|
|
31341
|
-
|
|
31358
|
+
var CommonOpinionsvue_type_template_id_2f580d06_staticRenderFns = []
|
|
31359
|
+
CommonOpinionsvue_type_template_id_2f580d06_render._withStripped = true
|
|
31342
31360
|
|
|
31343
31361
|
|
|
31344
|
-
// CONCATENATED MODULE: ./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=
|
|
31362
|
+
// CONCATENATED MODULE: ./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=2f580d06&
|
|
31345
31363
|
|
|
31346
31364
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/table.vue?vue&type=template&id=67f38db6&
|
|
31347
31365
|
var tablevue_type_template_id_67f38db6_render = function () {
|
|
@@ -31862,6 +31880,15 @@ var CommonOpinionsvue_type_script_lang_js_components;
|
|
|
31862
31880
|
//
|
|
31863
31881
|
//
|
|
31864
31882
|
//
|
|
31883
|
+
//
|
|
31884
|
+
//
|
|
31885
|
+
//
|
|
31886
|
+
//
|
|
31887
|
+
//
|
|
31888
|
+
//
|
|
31889
|
+
//
|
|
31890
|
+
//
|
|
31891
|
+
//
|
|
31865
31892
|
|
|
31866
31893
|
|
|
31867
31894
|
|
|
@@ -31873,6 +31900,12 @@ var CommonOpinionsvue_type_script_lang_js_components;
|
|
|
31873
31900
|
data: function data() {
|
|
31874
31901
|
return {
|
|
31875
31902
|
value: '',
|
|
31903
|
+
form: {
|
|
31904
|
+
value: ''
|
|
31905
|
+
},
|
|
31906
|
+
rules: {
|
|
31907
|
+
value: [{ required: true, message: '请输入意见', trigger: 'blur' }]
|
|
31908
|
+
},
|
|
31876
31909
|
input3: '',
|
|
31877
31910
|
selectValue: '',
|
|
31878
31911
|
optionList: [],
|
|
@@ -31917,6 +31950,18 @@ var CommonOpinionsvue_type_script_lang_js_components;
|
|
|
31917
31950
|
}
|
|
31918
31951
|
},
|
|
31919
31952
|
methods: {
|
|
31953
|
+
validate: function validate() {
|
|
31954
|
+
var validSate = true;
|
|
31955
|
+
this.$refs.ruleForm.validate(function (valid) {
|
|
31956
|
+
if (valid) {
|
|
31957
|
+
validSate = true;
|
|
31958
|
+
} else {
|
|
31959
|
+
validSate = false;
|
|
31960
|
+
}
|
|
31961
|
+
});
|
|
31962
|
+
return validSate;
|
|
31963
|
+
},
|
|
31964
|
+
|
|
31920
31965
|
/**
|
|
31921
31966
|
* changeOpinion
|
|
31922
31967
|
* @desc:监听意见变化
|
|
@@ -32103,8 +32148,8 @@ var CommonOpinionsvue_type_script_lang_js_components;
|
|
|
32103
32148
|
|
|
32104
32149
|
var CommonOpinions_component = normalizeComponent(
|
|
32105
32150
|
component_CommonOpinionsvue_type_script_lang_js_,
|
|
32106
|
-
|
|
32107
|
-
|
|
32151
|
+
CommonOpinionsvue_type_template_id_2f580d06_render,
|
|
32152
|
+
CommonOpinionsvue_type_template_id_2f580d06_staticRenderFns,
|
|
32108
32153
|
false,
|
|
32109
32154
|
null,
|
|
32110
32155
|
null,
|
|
@@ -38766,6 +38811,7 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
38766
38811
|
//
|
|
38767
38812
|
//
|
|
38768
38813
|
//
|
|
38814
|
+
//
|
|
38769
38815
|
|
|
38770
38816
|
|
|
38771
38817
|
|
|
@@ -38823,7 +38869,6 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
38823
38869
|
nextCurrentOrgObjSelect: [],
|
|
38824
38870
|
loading: null, // 加载中
|
|
38825
38871
|
newTypeCode: '',
|
|
38826
|
-
requiredValue: false,
|
|
38827
38872
|
NodeName: '', // 当前节点值
|
|
38828
38873
|
radioList: [],
|
|
38829
38874
|
value: '',
|
|
@@ -39011,6 +39056,9 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
39011
39056
|
}
|
|
39012
39057
|
},
|
|
39013
39058
|
methods: {
|
|
39059
|
+
handleChange: function handleChange(val) {
|
|
39060
|
+
this.$parent.$emit('flowChange', val);
|
|
39061
|
+
},
|
|
39014
39062
|
getsubProcessColumns: function getsubProcessColumns() {
|
|
39015
39063
|
if (!this.isMainSubProcess || !this.isNodeShowProcess) return [];
|
|
39016
39064
|
var data = [];
|
|
@@ -39357,19 +39405,16 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
39357
39405
|
var _this8 = this;
|
|
39358
39406
|
|
|
39359
39407
|
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
39408
|
+
if (!this.value) {
|
|
39409
|
+
if (!this.$refs.commonOpinions.validate()) return;
|
|
39410
|
+
}
|
|
39360
39411
|
if (this.beforeSubmit != undefined) {
|
|
39361
39412
|
this.beforeSubmit().then(function (next) {
|
|
39362
|
-
|
|
39363
|
-
// return this.$message.warning('请填写意见');
|
|
39364
|
-
return _this8.requiredValue = true;
|
|
39365
|
-
}
|
|
39413
|
+
|
|
39366
39414
|
_this8.showReject = true;
|
|
39367
39415
|
}).catch(function (e) {});
|
|
39368
39416
|
} else {
|
|
39369
|
-
|
|
39370
|
-
// return this.$message.warning('请填写意见');
|
|
39371
|
-
return this.requiredValue = true;
|
|
39372
|
-
}
|
|
39417
|
+
|
|
39373
39418
|
this.showReject = true;
|
|
39374
39419
|
}
|
|
39375
39420
|
},
|
|
@@ -39678,7 +39723,11 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
39678
39723
|
rejectAndEnd: function rejectAndEnd(res) {
|
|
39679
39724
|
var _this18 = this;
|
|
39680
39725
|
|
|
39726
|
+
if (this.isOpinionRequired == 1 && (this.value == '' || !this.value)) {
|
|
39727
|
+
if (!this.$refs.commonOpinions.validate()) return;
|
|
39728
|
+
}
|
|
39681
39729
|
if (this.beforeSubmit != undefined) {
|
|
39730
|
+
|
|
39682
39731
|
this.beforeSubmit().then(function (next) {
|
|
39683
39732
|
_this18.saveRejectAndEnd(res);
|
|
39684
39733
|
}).catch(function (e) {});
|
|
@@ -39690,7 +39739,7 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
39690
39739
|
var _this19 = this;
|
|
39691
39740
|
|
|
39692
39741
|
this.$confirm('确认' + res.value + '?').then(function () {
|
|
39693
|
-
|
|
39742
|
+
|
|
39694
39743
|
// return this.$message.warning('请填写意见');
|
|
39695
39744
|
var params = {
|
|
39696
39745
|
url: api["mb" /* rejectAndEnd */],
|
|
@@ -40308,6 +40357,9 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
40308
40357
|
_this24.nodeInfo.nextNode = '';
|
|
40309
40358
|
}
|
|
40310
40359
|
}
|
|
40360
|
+
if (_this24.nodeInfo.nextNode) {
|
|
40361
|
+
_this24.handleChange(_this24.nodeInfo.nextNode);
|
|
40362
|
+
}
|
|
40311
40363
|
}
|
|
40312
40364
|
} else {
|
|
40313
40365
|
_this24.$message.error(message || '系统错误,请联系管理员!');
|
|
@@ -40608,8 +40660,8 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
|
|
|
40608
40660
|
|
|
40609
40661
|
var flow_src_main_component = normalizeComponent(
|
|
40610
40662
|
packages_flow_src_mainvue_type_script_lang_js_,
|
|
40611
|
-
|
|
40612
|
-
|
|
40663
|
+
mainvue_type_template_id_4dbe5794_render,
|
|
40664
|
+
mainvue_type_template_id_4dbe5794_staticRenderFns,
|
|
40613
40665
|
false,
|
|
40614
40666
|
null,
|
|
40615
40667
|
null,
|
|
@@ -72600,7 +72652,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
72600
72652
|
}
|
|
72601
72653
|
|
|
72602
72654
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
72603
|
-
version: '0.5.
|
|
72655
|
+
version: '0.5.52',
|
|
72604
72656
|
install: install,
|
|
72605
72657
|
Button: packages_button,
|
|
72606
72658
|
ButtonGroup: button_group,
|
package/lib/flow.js
CHANGED
|
@@ -3920,7 +3920,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
3920
3920
|
// ESM COMPAT FLAG
|
|
3921
3921
|
__webpack_require__.r(__webpack_exports__);
|
|
3922
3922
|
|
|
3923
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=
|
|
3923
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=4dbe5794&
|
|
3924
3924
|
var render = function () {
|
|
3925
3925
|
var _vm = this
|
|
3926
3926
|
var _h = _vm.$createElement
|
|
@@ -3930,7 +3930,7 @@ var render = function () {
|
|
|
3930
3930
|
"div",
|
|
3931
3931
|
{
|
|
3932
3932
|
staticClass: "es-flow-index",
|
|
3933
|
-
class: { "es-flow-narrow": _vm.shrink
|
|
3933
|
+
class: { "es-flow-narrow": _vm.shrink },
|
|
3934
3934
|
style: _vm.styles,
|
|
3935
3935
|
},
|
|
3936
3936
|
[
|
|
@@ -4120,6 +4120,7 @@ var render = function () {
|
|
|
4120
4120
|
slot: "prepend",
|
|
4121
4121
|
placeholder: "请选择流程",
|
|
4122
4122
|
},
|
|
4123
|
+
on: { change: _vm.handleChange },
|
|
4123
4124
|
slot: "prepend",
|
|
4124
4125
|
model: {
|
|
4125
4126
|
value: _vm.nodeInfo.nextNode,
|
|
@@ -5644,14 +5645,14 @@ var staticRenderFns = []
|
|
|
5644
5645
|
render._withStripped = true
|
|
5645
5646
|
|
|
5646
5647
|
|
|
5647
|
-
// CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=
|
|
5648
|
+
// CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=4dbe5794&
|
|
5648
5649
|
|
|
5649
5650
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
5650
5651
|
var regenerator_ = __webpack_require__(12);
|
|
5651
5652
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
|
|
5652
5653
|
|
|
5653
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=
|
|
5654
|
-
var
|
|
5654
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=2f580d06&
|
|
5655
|
+
var CommonOpinionsvue_type_template_id_2f580d06_render = function () {
|
|
5655
5656
|
var _vm = this
|
|
5656
5657
|
var _h = _vm.$createElement
|
|
5657
5658
|
var _c = _vm._self._c || _h
|
|
@@ -5659,23 +5660,40 @@ var CommonOpinionsvue_type_template_id_4e1f4030_render = function () {
|
|
|
5659
5660
|
"div",
|
|
5660
5661
|
{ staticClass: "commonOpinion" },
|
|
5661
5662
|
[
|
|
5662
|
-
_c(
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
placeholder: "请输入意见",
|
|
5668
|
-
rows: 10,
|
|
5669
|
-
},
|
|
5670
|
-
on: { change: _vm.changeOpinion },
|
|
5671
|
-
model: {
|
|
5672
|
-
value: _vm.value,
|
|
5673
|
-
callback: function ($$v) {
|
|
5674
|
-
_vm.value = $$v
|
|
5675
|
-
},
|
|
5676
|
-
expression: "value",
|
|
5663
|
+
_c(
|
|
5664
|
+
"el-form",
|
|
5665
|
+
{
|
|
5666
|
+
ref: "ruleForm",
|
|
5667
|
+
attrs: { model: _vm.form, rules: _vm.rules, "label-width": "0" },
|
|
5677
5668
|
},
|
|
5678
|
-
|
|
5669
|
+
[
|
|
5670
|
+
_c(
|
|
5671
|
+
"el-form-item",
|
|
5672
|
+
{ attrs: { label: "", prop: "value" } },
|
|
5673
|
+
[
|
|
5674
|
+
_c("el-input", {
|
|
5675
|
+
attrs: {
|
|
5676
|
+
disabled: _vm.isBanInputOpinion == "1" || _vm.disabled,
|
|
5677
|
+
type: "textarea",
|
|
5678
|
+
clear: "inp",
|
|
5679
|
+
placeholder: "请输入意见",
|
|
5680
|
+
rows: 10,
|
|
5681
|
+
},
|
|
5682
|
+
on: { change: _vm.changeOpinion },
|
|
5683
|
+
model: {
|
|
5684
|
+
value: _vm.form.value,
|
|
5685
|
+
callback: function ($$v) {
|
|
5686
|
+
_vm.$set(_vm.form, "value", $$v)
|
|
5687
|
+
},
|
|
5688
|
+
expression: "form.value",
|
|
5689
|
+
},
|
|
5690
|
+
}),
|
|
5691
|
+
],
|
|
5692
|
+
1
|
|
5693
|
+
),
|
|
5694
|
+
],
|
|
5695
|
+
1
|
|
5696
|
+
),
|
|
5679
5697
|
_c(
|
|
5680
5698
|
"el-input",
|
|
5681
5699
|
{
|
|
@@ -5820,11 +5838,11 @@ var CommonOpinionsvue_type_template_id_4e1f4030_render = function () {
|
|
|
5820
5838
|
1
|
|
5821
5839
|
)
|
|
5822
5840
|
}
|
|
5823
|
-
var
|
|
5824
|
-
|
|
5841
|
+
var CommonOpinionsvue_type_template_id_2f580d06_staticRenderFns = []
|
|
5842
|
+
CommonOpinionsvue_type_template_id_2f580d06_render._withStripped = true
|
|
5825
5843
|
|
|
5826
5844
|
|
|
5827
|
-
// CONCATENATED MODULE: ./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=
|
|
5845
|
+
// CONCATENATED MODULE: ./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=2f580d06&
|
|
5828
5846
|
|
|
5829
5847
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
5830
5848
|
var api = __webpack_require__(1);
|
|
@@ -6354,6 +6372,15 @@ var _components;
|
|
|
6354
6372
|
//
|
|
6355
6373
|
//
|
|
6356
6374
|
//
|
|
6375
|
+
//
|
|
6376
|
+
//
|
|
6377
|
+
//
|
|
6378
|
+
//
|
|
6379
|
+
//
|
|
6380
|
+
//
|
|
6381
|
+
//
|
|
6382
|
+
//
|
|
6383
|
+
//
|
|
6357
6384
|
|
|
6358
6385
|
|
|
6359
6386
|
|
|
@@ -6365,6 +6392,12 @@ var _components;
|
|
|
6365
6392
|
data: function data() {
|
|
6366
6393
|
return {
|
|
6367
6394
|
value: '',
|
|
6395
|
+
form: {
|
|
6396
|
+
value: ''
|
|
6397
|
+
},
|
|
6398
|
+
rules: {
|
|
6399
|
+
value: [{ required: true, message: '请输入意见', trigger: 'blur' }]
|
|
6400
|
+
},
|
|
6368
6401
|
input3: '',
|
|
6369
6402
|
selectValue: '',
|
|
6370
6403
|
optionList: [],
|
|
@@ -6409,6 +6442,18 @@ var _components;
|
|
|
6409
6442
|
}
|
|
6410
6443
|
},
|
|
6411
6444
|
methods: {
|
|
6445
|
+
validate: function validate() {
|
|
6446
|
+
var validSate = true;
|
|
6447
|
+
this.$refs.ruleForm.validate(function (valid) {
|
|
6448
|
+
if (valid) {
|
|
6449
|
+
validSate = true;
|
|
6450
|
+
} else {
|
|
6451
|
+
validSate = false;
|
|
6452
|
+
}
|
|
6453
|
+
});
|
|
6454
|
+
return validSate;
|
|
6455
|
+
},
|
|
6456
|
+
|
|
6412
6457
|
/**
|
|
6413
6458
|
* changeOpinion
|
|
6414
6459
|
* @desc:监听意见变化
|
|
@@ -6595,8 +6640,8 @@ var _components;
|
|
|
6595
6640
|
|
|
6596
6641
|
var CommonOpinions_component = Object(componentNormalizer["a" /* default */])(
|
|
6597
6642
|
component_CommonOpinionsvue_type_script_lang_js_,
|
|
6598
|
-
|
|
6599
|
-
|
|
6643
|
+
CommonOpinionsvue_type_template_id_2f580d06_render,
|
|
6644
|
+
CommonOpinionsvue_type_template_id_2f580d06_staticRenderFns,
|
|
6600
6645
|
false,
|
|
6601
6646
|
null,
|
|
6602
6647
|
null,
|
|
@@ -13101,6 +13146,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
13101
13146
|
//
|
|
13102
13147
|
//
|
|
13103
13148
|
//
|
|
13149
|
+
//
|
|
13104
13150
|
|
|
13105
13151
|
|
|
13106
13152
|
|
|
@@ -13158,7 +13204,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
13158
13204
|
nextCurrentOrgObjSelect: [],
|
|
13159
13205
|
loading: null, // 加载中
|
|
13160
13206
|
newTypeCode: '',
|
|
13161
|
-
requiredValue: false,
|
|
13162
13207
|
NodeName: '', // 当前节点值
|
|
13163
13208
|
radioList: [],
|
|
13164
13209
|
value: '',
|
|
@@ -13346,6 +13391,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
13346
13391
|
}
|
|
13347
13392
|
},
|
|
13348
13393
|
methods: {
|
|
13394
|
+
handleChange: function handleChange(val) {
|
|
13395
|
+
this.$parent.$emit('flowChange', val);
|
|
13396
|
+
},
|
|
13349
13397
|
getsubProcessColumns: function getsubProcessColumns() {
|
|
13350
13398
|
if (!this.isMainSubProcess || !this.isNodeShowProcess) return [];
|
|
13351
13399
|
var data = [];
|
|
@@ -13692,19 +13740,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
13692
13740
|
var _this8 = this;
|
|
13693
13741
|
|
|
13694
13742
|
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
13743
|
+
if (!this.value) {
|
|
13744
|
+
if (!this.$refs.commonOpinions.validate()) return;
|
|
13745
|
+
}
|
|
13695
13746
|
if (this.beforeSubmit != undefined) {
|
|
13696
13747
|
this.beforeSubmit().then(function (next) {
|
|
13697
|
-
|
|
13698
|
-
// return this.$message.warning('请填写意见');
|
|
13699
|
-
return _this8.requiredValue = true;
|
|
13700
|
-
}
|
|
13748
|
+
|
|
13701
13749
|
_this8.showReject = true;
|
|
13702
13750
|
}).catch(function (e) {});
|
|
13703
13751
|
} else {
|
|
13704
|
-
|
|
13705
|
-
// return this.$message.warning('请填写意见');
|
|
13706
|
-
return this.requiredValue = true;
|
|
13707
|
-
}
|
|
13752
|
+
|
|
13708
13753
|
this.showReject = true;
|
|
13709
13754
|
}
|
|
13710
13755
|
},
|
|
@@ -14013,7 +14058,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
14013
14058
|
rejectAndEnd: function rejectAndEnd(res) {
|
|
14014
14059
|
var _this18 = this;
|
|
14015
14060
|
|
|
14061
|
+
if (this.isOpinionRequired == 1 && (this.value == '' || !this.value)) {
|
|
14062
|
+
if (!this.$refs.commonOpinions.validate()) return;
|
|
14063
|
+
}
|
|
14016
14064
|
if (this.beforeSubmit != undefined) {
|
|
14065
|
+
|
|
14017
14066
|
this.beforeSubmit().then(function (next) {
|
|
14018
14067
|
_this18.saveRejectAndEnd(res);
|
|
14019
14068
|
}).catch(function (e) {});
|
|
@@ -14025,7 +14074,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
14025
14074
|
var _this19 = this;
|
|
14026
14075
|
|
|
14027
14076
|
this.$confirm('确认' + res.value + '?').then(function () {
|
|
14028
|
-
|
|
14077
|
+
|
|
14029
14078
|
// return this.$message.warning('请填写意见');
|
|
14030
14079
|
var params = {
|
|
14031
14080
|
url: api["mb" /* rejectAndEnd */],
|
|
@@ -14643,6 +14692,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
14643
14692
|
_this24.nodeInfo.nextNode = '';
|
|
14644
14693
|
}
|
|
14645
14694
|
}
|
|
14695
|
+
if (_this24.nodeInfo.nextNode) {
|
|
14696
|
+
_this24.handleChange(_this24.nodeInfo.nextNode);
|
|
14697
|
+
}
|
|
14646
14698
|
}
|
|
14647
14699
|
} else {
|
|
14648
14700
|
_this24.$message.error(message || '系统错误,请联系管理员!');
|