eoss-mobiles 0.2.5 → 0.2.6

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.
@@ -728,8 +728,8 @@ mainvue_type_template_id_73ff2f1c_render._withStripped = true
728
728
 
729
729
  // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=73ff2f1c&
730
730
 
731
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=template&id=50a2b4fd&
732
- var selector_treevue_type_template_id_50a2b4fd_render = function () {
731
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=template&id=567a990b&
732
+ var selector_treevue_type_template_id_567a990b_render = function () {
733
733
  var _vm = this
734
734
  var _h = _vm.$createElement
735
735
  var _c = _vm._self._c || _h
@@ -892,11 +892,11 @@ var selector_treevue_type_template_id_50a2b4fd_render = function () {
892
892
  1
893
893
  )
894
894
  }
895
- var selector_treevue_type_template_id_50a2b4fd_staticRenderFns = []
896
- selector_treevue_type_template_id_50a2b4fd_render._withStripped = true
895
+ var selector_treevue_type_template_id_567a990b_staticRenderFns = []
896
+ selector_treevue_type_template_id_567a990b_render._withStripped = true
897
897
 
898
898
 
899
- // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=50a2b4fd&
899
+ // CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=567a990b&
900
900
 
901
901
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=template&id=bacc904e&
902
902
  var treevue_type_template_id_bacc904e_render = function () {
@@ -2806,8 +2806,9 @@ var registerNew = '/api/v1/mecpItask/registerNew.json';
2806
2806
  // 获取节点信息(获取节点属性及办理人,发起)
2807
2807
  var getNodeInfo = '/api/mecp/v1/mecpItask/getNodeInfo.json';
2808
2808
  // 获取发起流程信息
2809
+ // export const toStartFlow = '/api/mecp/v1/mecpItask/toStartFlow.json';
2809
2810
  var toStartFlow = '/api/mecp/v1/mecpItask/toStartFlow.json';
2810
- // export const toStartFlow = activiti + mecp + '/bpmBackend/toStartFlow';
2811
+ // export const toStartFlow = activiti + mecp + '/bpmBackend/toStartFlowIndex';
2811
2812
 
2812
2813
  // 驳回(为H5提供接口)
2813
2814
  // export const taskRejectHtml = '/api/mecp/v1/mecpItask/taskRejectHtml.json';
@@ -2896,8 +2897,10 @@ http.interceptors.request.use(function (config) {
2896
2897
  config.data = external_qs_default.a.stringify(data);
2897
2898
  } else {
2898
2899
  config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
2899
- Object.assign(data, config.data);
2900
- config.data = external_qs_default.a.stringify(data);
2900
+ if (Object.prototype.toString.call(config.data).slice(8, -1).toLowerCase() !== 'formdata') {
2901
+ Object.assign(data, config.data);
2902
+ config.data = external_qs_default.a.stringify(data);
2903
+ }
2901
2904
  }
2902
2905
  } else {
2903
2906
  Object.assign(config.params, data);
@@ -3364,7 +3367,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3364
3367
  isSearch: false,
3365
3368
  newParam: {},
3366
3369
  oldIsSearch: false,
3367
- selectIndex: 0
3370
+ selectIndex: 0,
3371
+ first: true
3368
3372
  };
3369
3373
  },
3370
3374
 
@@ -4038,8 +4042,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4038
4042
 
4039
4043
  var selector_tree_component = normalizeComponent(
4040
4044
  src_selector_treevue_type_script_lang_js_,
4041
- selector_treevue_type_template_id_50a2b4fd_render,
4042
- selector_treevue_type_template_id_50a2b4fd_staticRenderFns,
4045
+ selector_treevue_type_template_id_567a990b_render,
4046
+ selector_treevue_type_template_id_567a990b_staticRenderFns,
4043
4047
  false,
4044
4048
  null,
4045
4049
  null,
@@ -10628,8 +10632,8 @@ mainvue_type_template_id_56353196_render._withStripped = true
10628
10632
 
10629
10633
  // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=56353196&
10630
10634
 
10631
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=template&id=1ab5f2f0&
10632
- var StartFlowvue_type_template_id_1ab5f2f0_render = function () {
10635
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=template&id=5b4823aa&
10636
+ var StartFlowvue_type_template_id_5b4823aa_render = function () {
10633
10637
  var _vm = this
10634
10638
  var _h = _vm.$createElement
10635
10639
  var _c = _vm._self._c || _h
@@ -10649,6 +10653,7 @@ var StartFlowvue_type_template_id_1ab5f2f0_render = function () {
10649
10653
  attrs: {
10650
10654
  code: _vm.processObj.attachedCode,
10651
10655
  ownId: _vm.businessId,
10656
+ esign: _vm.esign,
10652
10657
  isFile: false,
10653
10658
  baseUrl: _vm.baseUrl,
10654
10659
  isOpinionRequired: _vm.isOpinionRequired,
@@ -10835,14 +10840,14 @@ var StartFlowvue_type_template_id_1ab5f2f0_render = function () {
10835
10840
  ]),
10836
10841
  ])
10837
10842
  }
10838
- var StartFlowvue_type_template_id_1ab5f2f0_staticRenderFns = []
10839
- StartFlowvue_type_template_id_1ab5f2f0_render._withStripped = true
10843
+ var StartFlowvue_type_template_id_5b4823aa_staticRenderFns = []
10844
+ StartFlowvue_type_template_id_5b4823aa_render._withStripped = true
10840
10845
 
10841
10846
 
10842
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=1ab5f2f0&
10847
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=5b4823aa&
10843
10848
 
10844
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Opinion.vue?vue&type=template&id=37d0b4da&
10845
- var Opinionvue_type_template_id_37d0b4da_render = function () {
10849
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Opinion.vue?vue&type=template&id=7bc36072&
10850
+ var Opinionvue_type_template_id_7bc36072_render = function () {
10846
10851
  var _vm = this
10847
10852
  var _h = _vm.$createElement
10848
10853
  var _c = _vm._self._c || _h
@@ -10857,60 +10862,158 @@ var Opinionvue_type_template_id_37d0b4da_render = function () {
10857
10862
  attrs: { type: _vm.isFile ? "haveFile" : "noHaveFile" },
10858
10863
  },
10859
10864
  [
10860
- _c(
10861
- "div",
10862
- { staticClass: "item" },
10863
- [
10864
- _c("em-input", {
10865
- attrs: {
10866
- label: _vm.label,
10867
- placeholder: _vm.placeholder,
10868
- type: "textarea",
10869
- rows: "3",
10870
- disabled: _vm.disabled || _vm.fixedDisabled,
10871
- required: _vm.isOpinionRequired == 1 ? true : false,
10872
- },
10873
- on: { input: _vm.onInput },
10874
- model: {
10875
- value: _vm.opinion,
10876
- callback: function ($$v) {
10877
- _vm.opinion = $$v
10878
- },
10879
- expression: "opinion",
10880
- },
10881
- }),
10882
- ],
10883
- 1
10884
- ),
10885
- _vm.opinionList.length > 0 && _vm.isHiddenOftenOpinion
10865
+ _vm.esign
10886
10866
  ? _c(
10887
10867
  "div",
10888
- { staticClass: "item" },
10889
10868
  [
10890
- _c("em-input", {
10891
- attrs: {
10892
- "label-width": "100%",
10893
- readonly: "",
10894
- placeholder: "请选择常用语",
10895
- label: "请选择常用语",
10896
- },
10897
- on: {
10898
- click: function ($event) {
10899
- _vm.showPicker = true
10900
- },
10901
- },
10902
- model: {
10903
- value: _vm.selectOpinion,
10904
- callback: function ($$v) {
10905
- _vm.selectOpinion = $$v
10869
+ _c(
10870
+ "em-tabs",
10871
+ {
10872
+ on: { change: _vm.handleChange },
10873
+ model: {
10874
+ value: _vm.isImageOpinion,
10875
+ callback: function ($$v) {
10876
+ _vm.isImageOpinion = $$v
10877
+ },
10878
+ expression: "isImageOpinion",
10906
10879
  },
10907
- expression: "selectOpinion",
10908
10880
  },
10909
- }),
10881
+ _vm._l(_vm.tabs, function (item) {
10882
+ return _c(
10883
+ "em-tab",
10884
+ {
10885
+ key: item.id,
10886
+ attrs: { title: item.text, name: item.type },
10887
+ },
10888
+ [
10889
+ _c("em-esign", {
10890
+ directives: [
10891
+ {
10892
+ name: "show",
10893
+ rawName: "v-show",
10894
+ value: _vm.isImageOpinion === 1,
10895
+ expression: "isImageOpinion === 1",
10896
+ },
10897
+ ],
10898
+ staticStyle: { padding: "0px 10px" },
10899
+ attrs: { "file-path": _vm.esignPath },
10900
+ on: { save: _vm.handleSave },
10901
+ }),
10902
+ _c(
10903
+ "div",
10904
+ {
10905
+ directives: [
10906
+ {
10907
+ name: "show",
10908
+ rawName: "v-show",
10909
+ value: _vm.isImageOpinion === 0,
10910
+ expression: "isImageOpinion === 0",
10911
+ },
10912
+ ],
10913
+ staticClass: "item em-flow-opion-box",
10914
+ staticStyle: { "padding-bottom": "20px" },
10915
+ },
10916
+ [
10917
+ _c("em-input", {
10918
+ attrs: {
10919
+ label: _vm.label,
10920
+ placeholder: _vm.placeholder,
10921
+ type: "textarea",
10922
+ rows: "3",
10923
+ disabled: _vm.disabled || _vm.fixedDisabled,
10924
+ required:
10925
+ _vm.isOpinionRequired == 1 ? true : false,
10926
+ },
10927
+ on: { input: _vm.onInput },
10928
+ model: {
10929
+ value: _vm.opinion,
10930
+ callback: function ($$v) {
10931
+ _vm.opinion = $$v
10932
+ },
10933
+ expression: "opinion",
10934
+ },
10935
+ }),
10936
+ _vm.opinionList.length > 0 &&
10937
+ _vm.isHiddenOftenOpinion
10938
+ ? _c(
10939
+ "span",
10940
+ {
10941
+ staticClass: "em-flow-opion",
10942
+ on: {
10943
+ click: function ($event) {
10944
+ _vm.showPicker = true
10945
+ },
10946
+ },
10947
+ },
10948
+ [
10949
+ _vm._v("常见意见 "),
10950
+ _c("i", {
10951
+ staticClass: "iconfont icon-youjiantou",
10952
+ }),
10953
+ ]
10954
+ )
10955
+ : _vm._e(),
10956
+ ],
10957
+ 1
10958
+ ),
10959
+ ],
10960
+ 1
10961
+ )
10962
+ }),
10963
+ 1
10964
+ ),
10910
10965
  ],
10911
10966
  1
10912
10967
  )
10913
- : _vm._e(),
10968
+ : _c("div", [
10969
+ _c(
10970
+ "div",
10971
+ {
10972
+ staticClass: "item em-flow-opion-box",
10973
+ staticStyle: { "padding-bottom": "20px" },
10974
+ },
10975
+ [
10976
+ _c("em-input", {
10977
+ attrs: {
10978
+ label: _vm.label,
10979
+ placeholder: _vm.placeholder,
10980
+ type: "textarea",
10981
+ rows: "3",
10982
+ disabled: _vm.disabled || _vm.fixedDisabled,
10983
+ required: _vm.isOpinionRequired == 1 ? true : false,
10984
+ },
10985
+ on: { input: _vm.onInput },
10986
+ model: {
10987
+ value: _vm.opinion,
10988
+ callback: function ($$v) {
10989
+ _vm.opinion = $$v
10990
+ },
10991
+ expression: "opinion",
10992
+ },
10993
+ }),
10994
+ _vm.opinionList.length > 0 && _vm.isHiddenOftenOpinion
10995
+ ? _c(
10996
+ "span",
10997
+ {
10998
+ staticClass: "em-flow-opion",
10999
+ on: {
11000
+ click: function ($event) {
11001
+ _vm.showPicker = true
11002
+ },
11003
+ },
11004
+ },
11005
+ [
11006
+ _vm._v("常见意见 "),
11007
+ _c("i", {
11008
+ staticClass: "iconfont icon-youjiantou",
11009
+ }),
11010
+ ]
11011
+ )
11012
+ : _vm._e(),
11013
+ ],
11014
+ 1
11015
+ ),
11016
+ ]),
10914
11017
  ]
10915
11018
  ),
10916
11019
  _vm.isFile
@@ -10946,11 +11049,11 @@ var Opinionvue_type_template_id_37d0b4da_render = function () {
10946
11049
  1
10947
11050
  )
10948
11051
  }
10949
- var Opinionvue_type_template_id_37d0b4da_staticRenderFns = []
10950
- Opinionvue_type_template_id_37d0b4da_render._withStripped = true
11052
+ var Opinionvue_type_template_id_7bc36072_staticRenderFns = []
11053
+ Opinionvue_type_template_id_7bc36072_render._withStripped = true
10951
11054
 
10952
11055
 
10953
- // CONCATENATED MODULE: ./packages/flow/src/components/Opinion.vue?vue&type=template&id=37d0b4da&
11056
+ // CONCATENATED MODULE: ./packages/flow/src/components/Opinion.vue?vue&type=template&id=7bc36072&
10954
11057
 
10955
11058
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Opinion.vue?vue&type=script&lang=js&
10956
11059
  //
@@ -11002,6 +11105,53 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
11002
11105
  //
11003
11106
  //
11004
11107
  //
11108
+ //
11109
+ //
11110
+ //
11111
+ //
11112
+ //
11113
+ //
11114
+ //
11115
+ //
11116
+ //
11117
+ //
11118
+ //
11119
+ //
11120
+ //
11121
+ //
11122
+ //
11123
+ //
11124
+ //
11125
+ //
11126
+ //
11127
+ //
11128
+ //
11129
+ //
11130
+ //
11131
+ //
11132
+ //
11133
+ //
11134
+ //
11135
+ //
11136
+ //
11137
+ //
11138
+ //
11139
+ //
11140
+ //
11141
+ //
11142
+ //
11143
+ //
11144
+ //
11145
+ //
11146
+ //
11147
+ //
11148
+ //
11149
+ //
11150
+ //
11151
+ //
11152
+ //
11153
+ //
11154
+ //
11005
11155
 
11006
11156
 
11007
11157
 
@@ -11041,6 +11191,10 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
11041
11191
  default: function _default() {
11042
11192
  return [];
11043
11193
  }
11194
+ },
11195
+ esign: {
11196
+ type: Boolean,
11197
+ default: false
11044
11198
  }
11045
11199
  },
11046
11200
  // components: {
@@ -11049,9 +11203,12 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
11049
11203
  data: function data() {
11050
11204
  return {
11051
11205
  opinion: '',
11052
- selectOpinion: '',
11053
11206
  fixedDisabled: false,
11054
11207
  showPicker: false,
11208
+ esignPath: '',
11209
+ tabs: [{ id: 0, text: '键盘签批', type: 0 }, { id: 1, text: '手写签批', type: 1 }],
11210
+ isImageOpinion: 0,
11211
+ file: '',
11055
11212
  opinionList: [] //意见列表
11056
11213
  };
11057
11214
  },
@@ -11065,6 +11222,27 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
11065
11222
  },
11066
11223
 
11067
11224
  methods: {
11225
+ handleSave: function handleSave(info) {
11226
+ var isImageOpinion = this.isImageOpinion;
11227
+
11228
+ this.esignPath = info.data;
11229
+ this.file = info.file;
11230
+ this.$emit('onInputOpintion', {
11231
+ opinion: this.opinion,
11232
+ isImageOpinion: isImageOpinion,
11233
+ file: info.file
11234
+ });
11235
+ },
11236
+ handleChange: function handleChange() {
11237
+ var isImageOpinion = this.isImageOpinion,
11238
+ file = this.file;
11239
+
11240
+ this.$emit('onInputOpintion', {
11241
+ opinion: this.opinion,
11242
+ isImageOpinion: isImageOpinion,
11243
+ file: file
11244
+ });
11245
+ },
11068
11246
  handleClose: function handleClose() {
11069
11247
  this.showPicker = false;
11070
11248
  },
@@ -11086,13 +11264,15 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
11086
11264
 
11087
11265
  // 将input的值传递到父组件
11088
11266
  onInput: function onInput(val) {
11267
+ var isImageOpinion = this.isImageOpinion,
11268
+ file = this.file;
11269
+
11089
11270
  this.opinion = typeof val === 'string' ? val : val.content;
11090
- if (typeof val != 'string') {
11091
- this.selectOpinion = val.content;
11092
- } else {
11093
- this.selectOpinion = '';
11094
- }
11095
- this.$emit('onInputOpintion', typeof val === 'string' ? val : val.content);
11271
+ this.$emit('onInputOpintion', {
11272
+ opinion: this.opinion,
11273
+ isImageOpinion: isImageOpinion,
11274
+ file: file
11275
+ });
11096
11276
  this.showPicker = false;
11097
11277
  }
11098
11278
  }
@@ -11109,8 +11289,8 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
11109
11289
 
11110
11290
  var Opinion_component = normalizeComponent(
11111
11291
  components_Opinionvue_type_script_lang_js_,
11112
- Opinionvue_type_template_id_37d0b4da_render,
11113
- Opinionvue_type_template_id_37d0b4da_staticRenderFns,
11292
+ Opinionvue_type_template_id_7bc36072_render,
11293
+ Opinionvue_type_template_id_7bc36072_staticRenderFns,
11114
11294
  false,
11115
11295
  null,
11116
11296
  null,
@@ -11336,8 +11516,7 @@ var Message_component = normalizeComponent(
11336
11516
 
11337
11517
  /* harmony default export */ var Message = (Message_component.exports);
11338
11518
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=script&lang=js&
11339
- var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
11340
-
11519
+ //
11341
11520
  //
11342
11521
  //
11343
11522
  //
@@ -11469,6 +11648,10 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
11469
11648
  paddingTop: {
11470
11649
  type: [String, Number],
11471
11650
  default: 0
11651
+ },
11652
+ esign: {
11653
+ type: Boolean,
11654
+ default: false
11472
11655
  }
11473
11656
  },
11474
11657
  data: function data() {
@@ -11483,8 +11666,10 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
11483
11666
  opinion: undefined, // 审批意见
11484
11667
  nodeId: undefined,
11485
11668
  notificationMsg: undefined, //系统消息
11486
- notificationType: []
11669
+ notificationType: [],
11670
+ isImageOpinion: 0
11487
11671
  },
11672
+ file: '',
11488
11673
  nextUserList: [],
11489
11674
  isChooseNextNode: 0,
11490
11675
  isOpinionRequired: 0, //办理意见是否必填
@@ -11515,6 +11700,8 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
11515
11700
  mounted: function mounted() {
11516
11701
  var obj = {
11517
11702
  processDefinitionId: this.defId,
11703
+ // isOnly: true,
11704
+ // hideTempSave: true,
11518
11705
  businessId: this.businessId
11519
11706
  };
11520
11707
  this.geAllData(obj);
@@ -11565,13 +11752,23 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
11565
11752
 
11566
11753
  // 意见回调
11567
11754
  onInputOpintion: function onInputOpintion(val) {
11568
- this.form.opinion = val;
11755
+ var opinion = val.opinion,
11756
+ isImageOpinion = val.isImageOpinion,
11757
+ file = val.file;
11758
+
11759
+ this.form.opinion = opinion;
11760
+ this.form.isImageOpinion = isImageOpinion;
11761
+ this.file = file;
11569
11762
  },
11570
11763
 
11571
11764
  // 提交流程
11572
11765
  onSubmit: function onSubmit() {
11573
11766
  var _this2 = this;
11574
11767
 
11768
+ if (!this.form.opinion && this.isOpinionRequired == 1 && this.form.isImageOpinion == 0 || !this.file && this.isOpinionRequired == 1 && this.form.isImageOpinion == 1) {
11769
+ this.$toast('请选择输入审批意见');
11770
+ return;
11771
+ }
11575
11772
  if (!this.form.nextUserId) {
11576
11773
  this.$toast('请选择办理人');
11577
11774
  return;
@@ -11580,10 +11777,6 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
11580
11777
  this.$toast('请选择流程节点');
11581
11778
  return;
11582
11779
  }
11583
- if (!this.form.opinion && this.isOpinionRequired == 1) {
11584
- this.$toast('请选择输入审批意见');
11585
- return;
11586
- }
11587
11780
  // if (!this.form.notificationType) {
11588
11781
  // this.$toast('请选择通知消息');
11589
11782
  // return;
@@ -11599,12 +11792,23 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
11599
11792
  nodeId: this.form.nodeId,
11600
11793
  userId: sessionStorage.getItem('userId'),
11601
11794
  notificationMsg: this.form.notificationMsg,
11602
- loginType: 2 //登录方式
11795
+ loginType: 2, //登录方式
11796
+ isImageOpinion: this.form.isImageOpinion
11603
11797
  };
11604
11798
  if (this.beforeSubmit) {
11605
11799
  this.beforeSubmit(info);
11606
11800
  return;
11607
11801
  }
11802
+ var formData = new FormData();
11803
+ if (this.form.isImageOpinion == 1) {
11804
+ formData.append('file', this.file);
11805
+ }
11806
+ formData.append('pendingId', this.pendingId);
11807
+ for (var key in info) {
11808
+ if (info[key] !== '' && info[key] !== undefined) {
11809
+ formData.append(key, info[key]);
11810
+ }
11811
+ }
11608
11812
  this.$toast.loading({
11609
11813
  message: '加载中...',
11610
11814
  forbidClick: true,
@@ -11616,7 +11820,7 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
11616
11820
  utils_http({
11617
11821
  url: _that.apiBaseUrl ? _that.apiBaseUrl + registerNew : registerNew,
11618
11822
  type: 'post',
11619
- params: StartFlowvue_type_script_lang_js_extends({}, info)
11823
+ params: formData
11620
11824
  }).then(function (res) {
11621
11825
  _this2.$toast.clear();
11622
11826
  if (res.rCode == 0) {
@@ -11822,8 +12026,8 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
11822
12026
 
11823
12027
  var StartFlow_component = normalizeComponent(
11824
12028
  components_StartFlowvue_type_script_lang_js_,
11825
- StartFlowvue_type_template_id_1ab5f2f0_render,
11826
- StartFlowvue_type_template_id_1ab5f2f0_staticRenderFns,
12029
+ StartFlowvue_type_template_id_5b4823aa_render,
12030
+ StartFlowvue_type_template_id_5b4823aa_staticRenderFns,
11827
12031
  false,
11828
12032
  null,
11829
12033
  null,
@@ -11832,8 +12036,8 @@ var StartFlow_component = normalizeComponent(
11832
12036
  )
11833
12037
 
11834
12038
  /* harmony default export */ var StartFlow = (StartFlow_component.exports);
11835
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=870cfad8&
11836
- var Handlevue_type_template_id_870cfad8_render = function () {
12039
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=1173cb46&
12040
+ var Handlevue_type_template_id_1173cb46_render = function () {
11837
12041
  var _vm = this
11838
12042
  var _h = _vm.$createElement
11839
12043
  var _c = _vm._self._c || _h
@@ -11866,6 +12070,7 @@ var Handlevue_type_template_id_870cfad8_render = function () {
11866
12070
  attrs: {
11867
12071
  code: _vm.processObj.attachedCode,
11868
12072
  ownId: _vm.pendingId,
12073
+ esign: _vm.esign,
11869
12074
  isOpinionRequired: _vm.isOpinionRequired,
11870
12075
  disabled: _vm.isBanInputOpinion != 0,
11871
12076
  baseUrl: _vm.baseUrl,
@@ -12814,14 +13019,14 @@ var Handlevue_type_template_id_870cfad8_render = function () {
12814
13019
  1
12815
13020
  )
12816
13021
  }
12817
- var Handlevue_type_template_id_870cfad8_staticRenderFns = []
12818
- Handlevue_type_template_id_870cfad8_render._withStripped = true
13022
+ var Handlevue_type_template_id_1173cb46_staticRenderFns = []
13023
+ Handlevue_type_template_id_1173cb46_render._withStripped = true
12819
13024
 
12820
13025
 
12821
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=870cfad8&
13026
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=1173cb46&
12822
13027
 
12823
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=template&id=244de01c&
12824
- var Rejectvue_type_template_id_244de01c_render = function () {
13028
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=template&id=3c26866b&
13029
+ var Rejectvue_type_template_id_3c26866b_render = function () {
12825
13030
  var _vm = this
12826
13031
  var _h = _vm.$createElement
12827
13032
  var _c = _vm._self._c || _h
@@ -12838,6 +13043,7 @@ var Rejectvue_type_template_id_244de01c_render = function () {
12838
13043
  attrs: {
12839
13044
  code: _vm.processObj.attachedCode,
12840
13045
  ownId: _vm.$route.query.pendingId,
13046
+ esign: _vm.esign,
12841
13047
  isOpinionRequired: _vm.isBanInputOpinion,
12842
13048
  disabled: _vm.isBanInputOpinion != 0,
12843
13049
  baseUrl: _vm.baseUrl,
@@ -12916,11 +13122,11 @@ var Rejectvue_type_template_id_244de01c_render = function () {
12916
13122
  ]),
12917
13123
  ])
12918
13124
  }
12919
- var Rejectvue_type_template_id_244de01c_staticRenderFns = []
12920
- Rejectvue_type_template_id_244de01c_render._withStripped = true
13125
+ var Rejectvue_type_template_id_3c26866b_staticRenderFns = []
13126
+ Rejectvue_type_template_id_3c26866b_render._withStripped = true
12921
13127
 
12922
13128
 
12923
- // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=template&id=244de01c&
13129
+ // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=template&id=3c26866b&
12924
13130
 
12925
13131
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=script&lang=js&
12926
13132
  var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -12966,6 +13172,7 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
12966
13172
  //
12967
13173
  //
12968
13174
  //
13175
+ //
12969
13176
 
12970
13177
 
12971
13178
 
@@ -12979,7 +13186,11 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
12979
13186
  pendingId: String,
12980
13187
  userId: String,
12981
13188
  beforeSubmit: Function,
12982
- baseUrl: String
13189
+ baseUrl: String,
13190
+ esign: {
13191
+ type: Boolean,
13192
+ default: false
13193
+ }
12983
13194
  },
12984
13195
  data: function data() {
12985
13196
  return {
@@ -12989,8 +13200,10 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
12989
13200
  opinion: undefined, // 审批意见
12990
13201
  notificationMsg: undefined, //系统消息
12991
13202
  nextNodeId: undefined,
12992
- loginType: 2 //登录方式
13203
+ loginType: 2, //登录方式
13204
+ isImageOpinion: 0
12993
13205
  },
13206
+ file: '',
12994
13207
  processObj: {
12995
13208
  taskExamine: { nodeName: undefined },
12996
13209
  nodeInfoMap: { nextUserList: [] }
@@ -13021,7 +13234,13 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
13021
13234
 
13022
13235
  // 意见回调
13023
13236
  onInputOpintion: function onInputOpintion(val) {
13024
- this.form.opinion = val;
13237
+ var opinion = val.opinion,
13238
+ isImageOpinion = val.isImageOpinion,
13239
+ file = val.file;
13240
+
13241
+ this.form.opinion = opinion;
13242
+ this.form.isImageOpinion = isImageOpinion;
13243
+ this.file = file;
13025
13244
  },
13026
13245
  goBack: function goBack() {
13027
13246
  this.$parent.$emit('close');
@@ -13032,8 +13251,8 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
13032
13251
  onSubmit: function onSubmit() {
13033
13252
  var _this = this;
13034
13253
 
13035
- if (!this.form.opinion && this.isBanInputOpinion == 0) {
13036
- this.$toast('请选择输入审批意见');
13254
+ if (!this.form.opinion && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 0 || !this.file && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 1) {
13255
+ this.$toast('请输入审批意见');
13037
13256
  return;
13038
13257
  }
13039
13258
  var str = '';
@@ -13047,6 +13266,16 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
13047
13266
  this.beforeSubmit(Rejectvue_type_script_lang_js_extends({ pendingId: this.pendingId }, this.form));
13048
13267
  return;
13049
13268
  }
13269
+ var formData = new FormData();
13270
+ if (this.form.isImageOpinion == 1) {
13271
+ formData.append('file', this.file);
13272
+ }
13273
+ formData.append('pendingId', this.pendingId);
13274
+ for (var key in this.form) {
13275
+ if (this.form[key] !== '' && this.form[key] !== undefined) {
13276
+ formData.append(key, this.form[key]);
13277
+ }
13278
+ }
13050
13279
  this.$toast.loading({
13051
13280
  message: '加载中...',
13052
13281
  forbidClick: true,
@@ -13058,9 +13287,7 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
13058
13287
  utils_http({
13059
13288
  url: _that.baseUrl ? _that.baseUrl + taskRejectHtml : taskRejectHtml,
13060
13289
  type: 'post',
13061
- params: Rejectvue_type_script_lang_js_extends({
13062
- pendingId: _that.pendingId
13063
- }, this.form)
13290
+ params: formData
13064
13291
  }).then(function (res) {
13065
13292
  if (res.status == 'success') {
13066
13293
  _this.$toast('操作成功');
@@ -13154,8 +13381,8 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
13154
13381
 
13155
13382
  var Reject_component = normalizeComponent(
13156
13383
  components_Rejectvue_type_script_lang_js_,
13157
- Rejectvue_type_template_id_244de01c_render,
13158
- Rejectvue_type_template_id_244de01c_staticRenderFns,
13384
+ Rejectvue_type_template_id_3c26866b_render,
13385
+ Rejectvue_type_template_id_3c26866b_staticRenderFns,
13159
13386
  false,
13160
13387
  null,
13161
13388
  null,
@@ -13832,6 +14059,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
13832
14059
  //
13833
14060
  //
13834
14061
  //
14062
+ //
13835
14063
 
13836
14064
 
13837
14065
 
@@ -13860,6 +14088,10 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
13860
14088
  paddingTop: {
13861
14089
  type: [String, Number],
13862
14090
  default: 0
14091
+ },
14092
+ esign: {
14093
+ type: Boolean,
14094
+ default: false
13863
14095
  }
13864
14096
  },
13865
14097
  data: function data() {
@@ -13884,6 +14116,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
13884
14116
  isAddSignList: [{ name: '是', value: '1' }, { name: '否', value: '2' }],
13885
14117
  form: {
13886
14118
  opinion: undefined, // 审批意见
14119
+ isImageOpinion: 0,
13887
14120
  isAddSign: undefined, //是否加签
13888
14121
  addSignUserId: undefined, //加签人员id
13889
14122
  isRemoveSign: undefined, //是否减签
@@ -13925,7 +14158,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
13925
14158
  advanceNoticeType: [] //催办通知方式
13926
14159
  },
13927
14160
  isCanFenyue: '0'
13928
- }, _ref['isChooseNextNode'] = 1, _ref.isOpinionRequired = 0, _ref.isBanInputOpinion = 0, _ref.showTimeList = false, _ref.timeList = [], _ref.nextUserList = [], _ref.nextCurrentOrgObjSelect = [], _ref.nextOtherOrgObjSelect = [], _ref.nextReadUserSelectList = [], _ref.addSignUserSelectList = [], _ref.removeSignUserSelectList = [], _ref.nextUserSelectList = [], _ref.showAppUser = false, _ref.showNextOperate = false, _ref.showNextNodeList = false, _ref.nodeList = [], _ref.selectList = [], _ref.opinionList = [], _ref.processObj = { taskExamine: { nodeName: undefined } }, _ref.peopleObj = {}, _ref.userInfo = {}, _ref.isCanAddSign = false, _ref.isCanRemoveSign = false, _ref.isSpecial = true, _ref.taskOperations = [], _ref.countersignaturetypeCode = false, _ref.countersignaturetypeText = undefined, _ref.isCustomPreset = true, _ref.isHideCurrentOrg = false, _ref.isHideOtherOrg = false, _ref.isHandleExplain = false, _ref.isTaskread = false, _ref.defaultNotificationType = undefined, _ref.selectUnitType = 'department', _ref.isHiddenNextStepInfo = false, _ref.presetEdit = true, _ref.isLimitedTimeHandling = false, _ref.userSelectionType = undefined, _ref.orgSelectionType = undefined, _ref.notificationType = undefined, _ref.nodeType = undefined, _ref.deptRoleCode = undefined, _ref.orgRoleCode = undefined, _ref.appointNotUserIds = undefined, _ref.handleRoleId = undefined, _ref.nextRole = undefined, _ref.filterCandinateIds = undefined, _ref.selectorDefShowDeptId = undefined, _ref.isRadio = true, _ref.otherOrgName = undefined, _ref.currentOrgName = undefined, _ref.isMainSubProcess = false, _ref.isNextUser = false, _ref.isDealObject = false, _ref.isDealRole = false, _ref.nextUserflag = false, _ref.isSubmitButtonShowAgreeAndDisagree = 0, _ref.isCustomUserClick = false, _ref.timeListLable = undefined, _ref.nodeDefaultSubmitOpinion = undefined, _ref.isCustomUser = 0, _ref.choiceOrgId = '', _ref.choiceDeptId = '', _ref.taskExamineInfo = {}, _ref.nodeInfoMapInfo = {}, _ref.isEndUserTask = '', _ref.pOrgId = '', _ref;
14161
+ }, _ref['isChooseNextNode'] = 1, _ref.isOpinionRequired = 0, _ref.isBanInputOpinion = 0, _ref.showTimeList = false, _ref.timeList = [], _ref.nextUserList = [], _ref.nextCurrentOrgObjSelect = [], _ref.nextOtherOrgObjSelect = [], _ref.nextReadUserSelectList = [], _ref.addSignUserSelectList = [], _ref.removeSignUserSelectList = [], _ref.nextUserSelectList = [], _ref.showAppUser = false, _ref.showNextOperate = false, _ref.showNextNodeList = false, _ref.nodeList = [], _ref.selectList = [], _ref.opinionList = [], _ref.processObj = { taskExamine: { nodeName: undefined } }, _ref.peopleObj = {}, _ref.userInfo = {}, _ref.isCanAddSign = false, _ref.isCanRemoveSign = false, _ref.isSpecial = true, _ref.taskOperations = [], _ref.countersignaturetypeCode = false, _ref.countersignaturetypeText = undefined, _ref.isCustomPreset = true, _ref.isHideCurrentOrg = false, _ref.isHideOtherOrg = false, _ref.isHandleExplain = false, _ref.isTaskread = false, _ref.defaultNotificationType = undefined, _ref.selectUnitType = 'department', _ref.isHiddenNextStepInfo = false, _ref.presetEdit = true, _ref.isLimitedTimeHandling = false, _ref.userSelectionType = undefined, _ref.orgSelectionType = undefined, _ref.notificationType = undefined, _ref.nodeType = undefined, _ref.deptRoleCode = undefined, _ref.orgRoleCode = undefined, _ref.appointNotUserIds = undefined, _ref.handleRoleId = undefined, _ref.nextRole = undefined, _ref.filterCandinateIds = undefined, _ref.selectorDefShowDeptId = undefined, _ref.isRadio = true, _ref.otherOrgName = undefined, _ref.currentOrgName = undefined, _ref.isMainSubProcess = false, _ref.isNextUser = false, _ref.isDealObject = false, _ref.isDealRole = false, _ref.nextUserflag = false, _ref.isSubmitButtonShowAgreeAndDisagree = 0, _ref.isCustomUserClick = false, _ref.timeListLable = undefined, _ref.nodeDefaultSubmitOpinion = undefined, _ref.isCustomUser = 0, _ref.choiceOrgId = '', _ref.choiceDeptId = '', _ref.taskExamineInfo = {}, _ref.nodeInfoMapInfo = {}, _ref.file = '', _ref.isEndUserTask = '', _ref.pOrgId = '', _ref;
13929
14162
  },
13930
14163
  created: function created() {
13931
14164
  var _this2 = this;
@@ -14074,6 +14307,10 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
14074
14307
  idStr = idStr + r.showid + (i === _this4.nextUserSelectList.length - 1 ? '' : ',');
14075
14308
  });
14076
14309
  this.form.nextUserId = idStr;
14310
+ if (!this.form.opinion && this.isOpinionRequired == 1 && !this.nodeDefaultSubmitOpinion && this.form.isImageOpinion == 0 || !this.file && this.isOpinionRequired == 1 && !this.nodeDefaultSubmitOpinion && this.form.isImageOpinion == 1) {
14311
+ this.$toast('请选择输入审批意见');
14312
+ return;
14313
+ }
14077
14314
  if (this.isSpecial && this.isNextUser && !this.form.nextUserId && idStr === '' && !this.isReject) {
14078
14315
  this.$toast('请选择办理人');
14079
14316
  return;
@@ -14082,10 +14319,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
14082
14319
  this.$toast('请选择流程节点');
14083
14320
  return;
14084
14321
  }
14085
- if (!this.form.opinion && this.isOpinionRequired == 1 && !this.nodeDefaultSubmitOpinion) {
14086
- this.$toast('请选择输入审批意见');
14087
- return;
14088
- }
14322
+
14089
14323
  var str = '';
14090
14324
  if (this.form.opinion) {
14091
14325
  str = this.form.opinion.replace(/\s+/g, '');
@@ -14161,12 +14395,20 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
14161
14395
  _that.form.isSubFlow = taskExamineInfo.isSubFlow;
14162
14396
  _that.form.nodeId = taskExamineInfo.nodeId;
14163
14397
  _that.form.nextNodeId = _that.form.nextOperate == 0 || _that.form.nextOperate == 1 ? _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode : '';
14398
+ var formData = new FormData();
14399
+ if (_that.form.isImageOpinion == 1) {
14400
+ formData.append('file', _that.file);
14401
+ }
14402
+ formData.append('pendingId', _that.pendingId);
14403
+ for (var key in _that.form) {
14404
+ if (_that.form[key] !== '' && _that.form[key] !== undefined) {
14405
+ formData.append(key, _that.form[key]);
14406
+ }
14407
+ }
14164
14408
  utils_http({
14165
14409
  url: _that.baseUrl ? _that.baseUrl + taskHandleHtml : taskHandleHtml,
14166
14410
  type: 'post',
14167
- params: Handlevue_type_script_lang_js_extends({
14168
- pendingId: _that.pendingId
14169
- }, _that.form)
14411
+ params: formData
14170
14412
  }).then(function (res) {
14171
14413
  _this4.$toast.clear();
14172
14414
  if (res.status == 'success') {
@@ -14309,7 +14551,13 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
14309
14551
 
14310
14552
  // 意见回调
14311
14553
  onInputOpintion: function onInputOpintion(val) {
14312
- this.form.opinion = val;
14554
+ var opinion = val.opinion,
14555
+ isImageOpinion = val.isImageOpinion,
14556
+ file = val.file;
14557
+
14558
+ this.form.opinion = opinion;
14559
+ this.form.isImageOpinion = isImageOpinion;
14560
+ this.file = file;
14313
14561
  },
14314
14562
 
14315
14563
  // 办理人选择完回调
@@ -14723,8 +14971,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
14723
14971
 
14724
14972
  var Handle_component = normalizeComponent(
14725
14973
  components_Handlevue_type_script_lang_js_,
14726
- Handlevue_type_template_id_870cfad8_render,
14727
- Handlevue_type_template_id_870cfad8_staticRenderFns,
14974
+ Handlevue_type_template_id_1173cb46_render,
14975
+ Handlevue_type_template_id_1173cb46_staticRenderFns,
14728
14976
  false,
14729
14977
  null,
14730
14978
  null,
@@ -15379,8 +15627,8 @@ var TaskRead_component = normalizeComponent(
15379
15627
  )
15380
15628
 
15381
15629
  /* harmony default export */ var TaskRead = (TaskRead_component.exports);
15382
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=0cefc67d&
15383
- var taskUnionExaminevue_type_template_id_0cefc67d_render = function () {
15630
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=70a11c5a&
15631
+ var taskUnionExaminevue_type_template_id_70a11c5a_render = function () {
15384
15632
  var _vm = this
15385
15633
  var _h = _vm.$createElement
15386
15634
  var _c = _vm._self._c || _h
@@ -15394,12 +15642,8 @@ var taskUnionExaminevue_type_template_id_0cefc67d_render = function () {
15394
15642
  _c("div", [_vm._v(_vm._s(_vm.nodeName))]),
15395
15643
  ]),
15396
15644
  _c("Opinion", {
15397
- attrs: { baseUrl: _vm.baseUrl },
15398
- on: {
15399
- onInputOpintion: function (val) {
15400
- return (_vm.opinion = val)
15401
- },
15402
- },
15645
+ attrs: { esign: _vm.esign, baseUrl: _vm.baseUrl },
15646
+ on: { onInputOpintion: _vm.onInputOpintion },
15403
15647
  }),
15404
15648
  _c(
15405
15649
  "div",
@@ -15527,11 +15771,11 @@ var taskUnionExaminevue_type_template_id_0cefc67d_render = function () {
15527
15771
  ]),
15528
15772
  ])
15529
15773
  }
15530
- var taskUnionExaminevue_type_template_id_0cefc67d_staticRenderFns = []
15531
- taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
15774
+ var taskUnionExaminevue_type_template_id_70a11c5a_staticRenderFns = []
15775
+ taskUnionExaminevue_type_template_id_70a11c5a_render._withStripped = true
15532
15776
 
15533
15777
 
15534
- // CONCATENATED MODULE: ./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=0cefc67d&
15778
+ // CONCATENATED MODULE: ./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=70a11c5a&
15535
15779
 
15536
15780
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/taskUnionExamine.vue?vue&type=script&lang=js&
15537
15781
  //
@@ -15619,6 +15863,7 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
15619
15863
  //
15620
15864
  //
15621
15865
  //
15866
+ //
15622
15867
 
15623
15868
 
15624
15869
 
@@ -15641,11 +15886,17 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
15641
15886
  paddingTop: {
15642
15887
  type: [String, Number],
15643
15888
  default: 0
15889
+ },
15890
+ esign: {
15891
+ type: Boolean,
15892
+ default: false
15644
15893
  }
15645
15894
  },
15646
15895
  data: function data() {
15647
15896
  return {
15648
15897
  opinion: '', //办理意见
15898
+ isImageOpinion: 0,
15899
+ file: '',
15649
15900
  infoList: {
15650
15901
  nextOtherOrgObj: [],
15651
15902
  nextCurrentOrgObj: [],
@@ -15703,6 +15954,15 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
15703
15954
  }
15704
15955
  },
15705
15956
  methods: {
15957
+ onInputOpintion: function onInputOpintion(val) {
15958
+ var opinion = val.opinion,
15959
+ isImageOpinion = val.isImageOpinion,
15960
+ file = val.file;
15961
+
15962
+ this.opinion = opinion;
15963
+ this.isImageOpinion = isImageOpinion;
15964
+ this.file = file;
15965
+ },
15706
15966
  getIsCanStartSubFlow: function getIsCanStartSubFlow() {
15707
15967
  var _this = this;
15708
15968
 
@@ -15919,6 +16179,8 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
15919
16179
  nextOtherOrgObj = _infoList.nextOtherOrgObj,
15920
16180
  noticeType = _infoList.noticeType,
15921
16181
  noticeInfo = _infoList.noticeInfo,
16182
+ isImageOpinion = this.isImageOpinion,
16183
+ file = this.file,
15922
16184
  isOpinionRequired = this.isOpinionRequired,
15923
16185
  opinion = this.opinion,
15924
16186
  type = this.type,
@@ -15929,30 +16191,40 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
15929
16191
  isSubFlow = this.isSubFlow,
15930
16192
  pendingId = this.pendingId;
15931
16193
 
16194
+ if (isOpinionRequired == 1 && !opinion && isImageOpinion == 0 || isOpinionRequired == 1 && isImageOpinion == 1 && !file) {
16195
+ return this.$toast('当前步骤必须输入意见!');
16196
+ }
15932
16197
  if (type == 'takeAdvice' && (nextCurrentOrgObj == '' || nextCurrentOrgObj == null && isHideCurrentOrg == 0) || isHideOtherOrg == 0 && nextOtherOrgObj == '' || nextOtherOrgObj == null) {
15933
16198
  return this.$toast('请选择处理对象!');
15934
16199
  } else if (isHideCurrentOrg == 0 && (nextOtherOrgObj == '' || nextOtherOrgObj == null)) {
15935
16200
  return this.$toast('请选择处理对象!');
15936
16201
  }
15937
-
15938
- if (isOpinionRequired == 1 && (opinion == '' || opinion == null)) {
15939
- return this.$toast('当前步骤必须输入意见!');
16202
+ var info = {
16203
+ opinion: opinion,
16204
+ pendingId: pendingId,
16205
+ nextOtherOrgObj: Array.isArray(nextOtherOrgObj) ? nextOtherOrgObj.join(',') : nextOtherOrgObj,
16206
+ nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj) ? nextCurrentOrgObj.join(',') : nextCurrentOrgObj,
16207
+ notificationMsg: noticeInfo,
16208
+ notificationType: noticeType.join(','),
16209
+ choiceDeptId: choiceDeptId,
16210
+ isSubFlow: isSubFlow,
16211
+ choiceOrgId: choiceOrgId
16212
+ };
16213
+ var formData = new FormData();
16214
+ if (isImageOpinion == 1) {
16215
+ formData.append('file', file);
16216
+ }
16217
+ formData.append('pendingId', pendingId);
16218
+ for (var key in info) {
16219
+ if (info[key] !== '' && info[key] !== undefined) {
16220
+ formData.append(key, info[key]);
16221
+ }
15940
16222
  }
15941
16223
  // if (this.type != 'startDraf' && this.type != 'unionSeal' && this.type != 'twoOfficesDispatch')
15942
16224
  // return this.$toast('暂未开放,敬请期待!');
15943
16225
  var param = {
15944
16226
  url: this.type === 'startDraf' ? taskStartDraft : this.type == 'unionSeal' ? taskUnionSeal : this.type === 'twoOfficesDispatch' ? twoOfficesDispatch : this.type == 'takeAdvice' ? taskTakeAdvice : taskUnionExamine,
15945
- params: {
15946
- opinion: opinion,
15947
- pendingId: pendingId,
15948
- nextOtherOrgObj: Array.isArray(nextOtherOrgObj) ? nextOtherOrgObj.join(',') : nextOtherOrgObj,
15949
- nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj) ? nextCurrentOrgObj.join(',') : nextCurrentOrgObj,
15950
- notificationMsg: noticeInfo,
15951
- notificationType: noticeType.join(','),
15952
- choiceDeptId: choiceDeptId,
15953
- isSubFlow: isSubFlow,
15954
- choiceOrgId: choiceOrgId
15955
- },
16227
+ params: formData,
15956
16228
  headers: { Accept: 'application/json,text/plain' },
15957
16229
  type: 'post'
15958
16230
  };
@@ -16004,7 +16276,6 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
16004
16276
  pendingId: this.pendingId
16005
16277
  }
16006
16278
  }).then(function (res) {
16007
- console.log(res, 'res');
16008
16279
  // const {
16009
16280
  // status,
16010
16281
  // message,
@@ -16059,8 +16330,8 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
16059
16330
 
16060
16331
  var taskUnionExamine_component = normalizeComponent(
16061
16332
  components_taskUnionExaminevue_type_script_lang_js_,
16062
- taskUnionExaminevue_type_template_id_0cefc67d_render,
16063
- taskUnionExaminevue_type_template_id_0cefc67d_staticRenderFns,
16333
+ taskUnionExaminevue_type_template_id_70a11c5a_render,
16334
+ taskUnionExaminevue_type_template_id_70a11c5a_staticRenderFns,
16064
16335
  false,
16065
16336
  null,
16066
16337
  null,
@@ -18259,8 +18530,8 @@ stepper_src_main.install = function (Vue) {
18259
18530
  };
18260
18531
 
18261
18532
  /* harmony default export */ var stepper = (stepper_src_main);
18262
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/esign/src/main.vue?vue&type=template&id=6ea85a5e&
18263
- var mainvue_type_template_id_6ea85a5e_render = function () {
18533
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/esign/src/main.vue?vue&type=template&id=dd4e0e96&
18534
+ var mainvue_type_template_id_dd4e0e96_render = function () {
18264
18535
  var _vm = this
18265
18536
  var _h = _vm.$createElement
18266
18537
  var _c = _vm._self._c || _h
@@ -18339,8 +18610,8 @@ var mainvue_type_template_id_6ea85a5e_render = function () {
18339
18610
  attrs: {
18340
18611
  isCrop: false,
18341
18612
  height: _vm.esignHeight,
18342
- lineWidth: _vm.lineWidth,
18343
- lineColor: _vm.lineColor,
18613
+ lineWidth: _vm.esignLineWidth,
18614
+ lineColor: _vm.esignColor,
18344
18615
  },
18345
18616
  }),
18346
18617
  _c(
@@ -18389,15 +18660,13 @@ var mainvue_type_template_id_6ea85a5e_render = function () {
18389
18660
  2
18390
18661
  )
18391
18662
  }
18392
- var mainvue_type_template_id_6ea85a5e_staticRenderFns = []
18393
- mainvue_type_template_id_6ea85a5e_render._withStripped = true
18663
+ var mainvue_type_template_id_dd4e0e96_staticRenderFns = []
18664
+ mainvue_type_template_id_dd4e0e96_render._withStripped = true
18394
18665
 
18395
18666
 
18396
- // CONCATENATED MODULE: ./packages/esign/src/main.vue?vue&type=template&id=6ea85a5e&
18667
+ // CONCATENATED MODULE: ./packages/esign/src/main.vue?vue&type=template&id=dd4e0e96&
18397
18668
 
18398
18669
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/esign/src/main.vue?vue&type=script&lang=js&
18399
- var _props;
18400
-
18401
18670
  //
18402
18671
  //
18403
18672
  //
@@ -18469,7 +18738,7 @@ var _props;
18469
18738
  };
18470
18739
  },
18471
18740
 
18472
- props: (_props = {
18741
+ props: {
18473
18742
  filePath: {
18474
18743
  type: String,
18475
18744
  default: ''
@@ -18478,7 +18747,7 @@ var _props;
18478
18747
  type: [String, Number],
18479
18748
  default: 80
18480
18749
  },
18481
- esignWidth: {
18750
+ esignLineWidth: {
18482
18751
  type: Number,
18483
18752
  default: 1
18484
18753
  },
@@ -18489,11 +18758,12 @@ var _props;
18489
18758
  esignHeight: {
18490
18759
  type: [String, Number],
18491
18760
  default: 550
18761
+ },
18762
+ esignWidth: {
18763
+ type: [String, Number],
18764
+ default: '330'
18492
18765
  }
18493
- }, _props['esignWidth'] = {
18494
- type: [String, Number],
18495
- default: '330'
18496
- }, _props),
18766
+ },
18497
18767
  watch: {
18498
18768
  filePath: {
18499
18769
  handler: function handler(val) {
@@ -18555,8 +18825,8 @@ var _props;
18555
18825
 
18556
18826
  var esign_src_main_component = normalizeComponent(
18557
18827
  packages_esign_src_mainvue_type_script_lang_js_,
18558
- mainvue_type_template_id_6ea85a5e_render,
18559
- mainvue_type_template_id_6ea85a5e_staticRenderFns,
18828
+ mainvue_type_template_id_dd4e0e96_render,
18829
+ mainvue_type_template_id_dd4e0e96_staticRenderFns,
18560
18830
  false,
18561
18831
  null,
18562
18832
  null,
@@ -18798,7 +19068,7 @@ if (typeof window !== 'undefined' && window.Vue) {
18798
19068
  }
18799
19069
 
18800
19070
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
18801
- version: '0.2.5',
19071
+ version: '0.2.6',
18802
19072
  install: install,
18803
19073
  Button: packages_button,
18804
19074
  ButtonGroup: button_group,