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.
package/lib/flow.js CHANGED
@@ -1571,8 +1571,9 @@ var registerNew = '/api/v1/mecpItask/registerNew.json';
1571
1571
  // 获取节点信息(获取节点属性及办理人,发起)
1572
1572
  var getNodeInfo = '/api/mecp/v1/mecpItask/getNodeInfo.json';
1573
1573
  // 获取发起流程信息
1574
+ // export const toStartFlow = '/api/mecp/v1/mecpItask/toStartFlow.json';
1574
1575
  var toStartFlow = '/api/mecp/v1/mecpItask/toStartFlow.json';
1575
- // export const toStartFlow = activiti + mecp + '/bpmBackend/toStartFlow';
1576
+ // export const toStartFlow = activiti + mecp + '/bpmBackend/toStartFlowIndex';
1576
1577
 
1577
1578
  // 驳回(为H5提供接口)
1578
1579
  // export const taskRejectHtml = '/api/mecp/v1/mecpItask/taskRejectHtml.json';
@@ -1671,8 +1672,10 @@ http.interceptors.request.use(function (config) {
1671
1672
  config.data = external_qs_default.a.stringify(data);
1672
1673
  } else {
1673
1674
  config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
1674
- Object.assign(data, config.data);
1675
- config.data = external_qs_default.a.stringify(data);
1675
+ if (Object.prototype.toString.call(config.data).slice(8, -1).toLowerCase() !== 'formdata') {
1676
+ Object.assign(data, config.data);
1677
+ config.data = external_qs_default.a.stringify(data);
1678
+ }
1676
1679
  }
1677
1680
  } else {
1678
1681
  Object.assign(config.params, data);
@@ -2040,8 +2043,8 @@ render._withStripped = true
2040
2043
 
2041
2044
  // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=56353196&
2042
2045
 
2043
- // 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&
2044
- var StartFlowvue_type_template_id_1ab5f2f0_render = function () {
2046
+ // 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&
2047
+ var StartFlowvue_type_template_id_5b4823aa_render = function () {
2045
2048
  var _vm = this
2046
2049
  var _h = _vm.$createElement
2047
2050
  var _c = _vm._self._c || _h
@@ -2061,6 +2064,7 @@ var StartFlowvue_type_template_id_1ab5f2f0_render = function () {
2061
2064
  attrs: {
2062
2065
  code: _vm.processObj.attachedCode,
2063
2066
  ownId: _vm.businessId,
2067
+ esign: _vm.esign,
2064
2068
  isFile: false,
2065
2069
  baseUrl: _vm.baseUrl,
2066
2070
  isOpinionRequired: _vm.isOpinionRequired,
@@ -2247,11 +2251,11 @@ var StartFlowvue_type_template_id_1ab5f2f0_render = function () {
2247
2251
  ]),
2248
2252
  ])
2249
2253
  }
2250
- var StartFlowvue_type_template_id_1ab5f2f0_staticRenderFns = []
2251
- StartFlowvue_type_template_id_1ab5f2f0_render._withStripped = true
2254
+ var StartFlowvue_type_template_id_5b4823aa_staticRenderFns = []
2255
+ StartFlowvue_type_template_id_5b4823aa_render._withStripped = true
2252
2256
 
2253
2257
 
2254
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=1ab5f2f0&
2258
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=5b4823aa&
2255
2259
 
2256
2260
  // EXTERNAL MODULE: ./src/config/api.js
2257
2261
  var api = __webpack_require__(2);
@@ -2259,8 +2263,8 @@ var api = __webpack_require__(2);
2259
2263
  // EXTERNAL MODULE: ./src/utils/http.js + 1 modules
2260
2264
  var http = __webpack_require__(3);
2261
2265
 
2262
- // 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&
2263
- var Opinionvue_type_template_id_37d0b4da_render = function () {
2266
+ // 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&
2267
+ var Opinionvue_type_template_id_7bc36072_render = function () {
2264
2268
  var _vm = this
2265
2269
  var _h = _vm.$createElement
2266
2270
  var _c = _vm._self._c || _h
@@ -2275,60 +2279,158 @@ var Opinionvue_type_template_id_37d0b4da_render = function () {
2275
2279
  attrs: { type: _vm.isFile ? "haveFile" : "noHaveFile" },
2276
2280
  },
2277
2281
  [
2278
- _c(
2279
- "div",
2280
- { staticClass: "item" },
2281
- [
2282
- _c("em-input", {
2283
- attrs: {
2284
- label: _vm.label,
2285
- placeholder: _vm.placeholder,
2286
- type: "textarea",
2287
- rows: "3",
2288
- disabled: _vm.disabled || _vm.fixedDisabled,
2289
- required: _vm.isOpinionRequired == 1 ? true : false,
2290
- },
2291
- on: { input: _vm.onInput },
2292
- model: {
2293
- value: _vm.opinion,
2294
- callback: function ($$v) {
2295
- _vm.opinion = $$v
2296
- },
2297
- expression: "opinion",
2298
- },
2299
- }),
2300
- ],
2301
- 1
2302
- ),
2303
- _vm.opinionList.length > 0 && _vm.isHiddenOftenOpinion
2282
+ _vm.esign
2304
2283
  ? _c(
2305
2284
  "div",
2306
- { staticClass: "item" },
2307
2285
  [
2308
- _c("em-input", {
2309
- attrs: {
2310
- "label-width": "100%",
2311
- readonly: "",
2312
- placeholder: "请选择常用语",
2313
- label: "请选择常用语",
2314
- },
2315
- on: {
2316
- click: function ($event) {
2317
- _vm.showPicker = true
2318
- },
2319
- },
2320
- model: {
2321
- value: _vm.selectOpinion,
2322
- callback: function ($$v) {
2323
- _vm.selectOpinion = $$v
2286
+ _c(
2287
+ "em-tabs",
2288
+ {
2289
+ on: { change: _vm.handleChange },
2290
+ model: {
2291
+ value: _vm.isImageOpinion,
2292
+ callback: function ($$v) {
2293
+ _vm.isImageOpinion = $$v
2294
+ },
2295
+ expression: "isImageOpinion",
2324
2296
  },
2325
- expression: "selectOpinion",
2326
2297
  },
2327
- }),
2298
+ _vm._l(_vm.tabs, function (item) {
2299
+ return _c(
2300
+ "em-tab",
2301
+ {
2302
+ key: item.id,
2303
+ attrs: { title: item.text, name: item.type },
2304
+ },
2305
+ [
2306
+ _c("em-esign", {
2307
+ directives: [
2308
+ {
2309
+ name: "show",
2310
+ rawName: "v-show",
2311
+ value: _vm.isImageOpinion === 1,
2312
+ expression: "isImageOpinion === 1",
2313
+ },
2314
+ ],
2315
+ staticStyle: { padding: "0px 10px" },
2316
+ attrs: { "file-path": _vm.esignPath },
2317
+ on: { save: _vm.handleSave },
2318
+ }),
2319
+ _c(
2320
+ "div",
2321
+ {
2322
+ directives: [
2323
+ {
2324
+ name: "show",
2325
+ rawName: "v-show",
2326
+ value: _vm.isImageOpinion === 0,
2327
+ expression: "isImageOpinion === 0",
2328
+ },
2329
+ ],
2330
+ staticClass: "item em-flow-opion-box",
2331
+ staticStyle: { "padding-bottom": "20px" },
2332
+ },
2333
+ [
2334
+ _c("em-input", {
2335
+ attrs: {
2336
+ label: _vm.label,
2337
+ placeholder: _vm.placeholder,
2338
+ type: "textarea",
2339
+ rows: "3",
2340
+ disabled: _vm.disabled || _vm.fixedDisabled,
2341
+ required:
2342
+ _vm.isOpinionRequired == 1 ? true : false,
2343
+ },
2344
+ on: { input: _vm.onInput },
2345
+ model: {
2346
+ value: _vm.opinion,
2347
+ callback: function ($$v) {
2348
+ _vm.opinion = $$v
2349
+ },
2350
+ expression: "opinion",
2351
+ },
2352
+ }),
2353
+ _vm.opinionList.length > 0 &&
2354
+ _vm.isHiddenOftenOpinion
2355
+ ? _c(
2356
+ "span",
2357
+ {
2358
+ staticClass: "em-flow-opion",
2359
+ on: {
2360
+ click: function ($event) {
2361
+ _vm.showPicker = true
2362
+ },
2363
+ },
2364
+ },
2365
+ [
2366
+ _vm._v("常见意见 "),
2367
+ _c("i", {
2368
+ staticClass: "iconfont icon-youjiantou",
2369
+ }),
2370
+ ]
2371
+ )
2372
+ : _vm._e(),
2373
+ ],
2374
+ 1
2375
+ ),
2376
+ ],
2377
+ 1
2378
+ )
2379
+ }),
2380
+ 1
2381
+ ),
2328
2382
  ],
2329
2383
  1
2330
2384
  )
2331
- : _vm._e(),
2385
+ : _c("div", [
2386
+ _c(
2387
+ "div",
2388
+ {
2389
+ staticClass: "item em-flow-opion-box",
2390
+ staticStyle: { "padding-bottom": "20px" },
2391
+ },
2392
+ [
2393
+ _c("em-input", {
2394
+ attrs: {
2395
+ label: _vm.label,
2396
+ placeholder: _vm.placeholder,
2397
+ type: "textarea",
2398
+ rows: "3",
2399
+ disabled: _vm.disabled || _vm.fixedDisabled,
2400
+ required: _vm.isOpinionRequired == 1 ? true : false,
2401
+ },
2402
+ on: { input: _vm.onInput },
2403
+ model: {
2404
+ value: _vm.opinion,
2405
+ callback: function ($$v) {
2406
+ _vm.opinion = $$v
2407
+ },
2408
+ expression: "opinion",
2409
+ },
2410
+ }),
2411
+ _vm.opinionList.length > 0 && _vm.isHiddenOftenOpinion
2412
+ ? _c(
2413
+ "span",
2414
+ {
2415
+ staticClass: "em-flow-opion",
2416
+ on: {
2417
+ click: function ($event) {
2418
+ _vm.showPicker = true
2419
+ },
2420
+ },
2421
+ },
2422
+ [
2423
+ _vm._v("常见意见 "),
2424
+ _c("i", {
2425
+ staticClass: "iconfont icon-youjiantou",
2426
+ }),
2427
+ ]
2428
+ )
2429
+ : _vm._e(),
2430
+ ],
2431
+ 1
2432
+ ),
2433
+ ]),
2332
2434
  ]
2333
2435
  ),
2334
2436
  _vm.isFile
@@ -2364,11 +2466,11 @@ var Opinionvue_type_template_id_37d0b4da_render = function () {
2364
2466
  1
2365
2467
  )
2366
2468
  }
2367
- var Opinionvue_type_template_id_37d0b4da_staticRenderFns = []
2368
- Opinionvue_type_template_id_37d0b4da_render._withStripped = true
2469
+ var Opinionvue_type_template_id_7bc36072_staticRenderFns = []
2470
+ Opinionvue_type_template_id_7bc36072_render._withStripped = true
2369
2471
 
2370
2472
 
2371
- // CONCATENATED MODULE: ./packages/flow/src/components/Opinion.vue?vue&type=template&id=37d0b4da&
2473
+ // CONCATENATED MODULE: ./packages/flow/src/components/Opinion.vue?vue&type=template&id=7bc36072&
2372
2474
 
2373
2475
  // 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&
2374
2476
  //
@@ -2420,6 +2522,53 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
2420
2522
  //
2421
2523
  //
2422
2524
  //
2525
+ //
2526
+ //
2527
+ //
2528
+ //
2529
+ //
2530
+ //
2531
+ //
2532
+ //
2533
+ //
2534
+ //
2535
+ //
2536
+ //
2537
+ //
2538
+ //
2539
+ //
2540
+ //
2541
+ //
2542
+ //
2543
+ //
2544
+ //
2545
+ //
2546
+ //
2547
+ //
2548
+ //
2549
+ //
2550
+ //
2551
+ //
2552
+ //
2553
+ //
2554
+ //
2555
+ //
2556
+ //
2557
+ //
2558
+ //
2559
+ //
2560
+ //
2561
+ //
2562
+ //
2563
+ //
2564
+ //
2565
+ //
2566
+ //
2567
+ //
2568
+ //
2569
+ //
2570
+ //
2571
+ //
2423
2572
 
2424
2573
 
2425
2574
 
@@ -2459,6 +2608,10 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
2459
2608
  default: function _default() {
2460
2609
  return [];
2461
2610
  }
2611
+ },
2612
+ esign: {
2613
+ type: Boolean,
2614
+ default: false
2462
2615
  }
2463
2616
  },
2464
2617
  // components: {
@@ -2467,9 +2620,12 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
2467
2620
  data: function data() {
2468
2621
  return {
2469
2622
  opinion: '',
2470
- selectOpinion: '',
2471
2623
  fixedDisabled: false,
2472
2624
  showPicker: false,
2625
+ esignPath: '',
2626
+ tabs: [{ id: 0, text: '键盘签批', type: 0 }, { id: 1, text: '手写签批', type: 1 }],
2627
+ isImageOpinion: 0,
2628
+ file: '',
2473
2629
  opinionList: [] //意见列表
2474
2630
  };
2475
2631
  },
@@ -2483,6 +2639,27 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
2483
2639
  },
2484
2640
 
2485
2641
  methods: {
2642
+ handleSave: function handleSave(info) {
2643
+ var isImageOpinion = this.isImageOpinion;
2644
+
2645
+ this.esignPath = info.data;
2646
+ this.file = info.file;
2647
+ this.$emit('onInputOpintion', {
2648
+ opinion: this.opinion,
2649
+ isImageOpinion: isImageOpinion,
2650
+ file: info.file
2651
+ });
2652
+ },
2653
+ handleChange: function handleChange() {
2654
+ var isImageOpinion = this.isImageOpinion,
2655
+ file = this.file;
2656
+
2657
+ this.$emit('onInputOpintion', {
2658
+ opinion: this.opinion,
2659
+ isImageOpinion: isImageOpinion,
2660
+ file: file
2661
+ });
2662
+ },
2486
2663
  handleClose: function handleClose() {
2487
2664
  this.showPicker = false;
2488
2665
  },
@@ -2504,13 +2681,15 @@ Opinionvue_type_template_id_37d0b4da_render._withStripped = true
2504
2681
 
2505
2682
  // 将input的值传递到父组件
2506
2683
  onInput: function onInput(val) {
2684
+ var isImageOpinion = this.isImageOpinion,
2685
+ file = this.file;
2686
+
2507
2687
  this.opinion = typeof val === 'string' ? val : val.content;
2508
- if (typeof val != 'string') {
2509
- this.selectOpinion = val.content;
2510
- } else {
2511
- this.selectOpinion = '';
2512
- }
2513
- this.$emit('onInputOpintion', typeof val === 'string' ? val : val.content);
2688
+ this.$emit('onInputOpintion', {
2689
+ opinion: this.opinion,
2690
+ isImageOpinion: isImageOpinion,
2691
+ file: file
2692
+ });
2514
2693
  this.showPicker = false;
2515
2694
  }
2516
2695
  }
@@ -2530,8 +2709,8 @@ var componentNormalizer = __webpack_require__(0);
2530
2709
 
2531
2710
  var component = Object(componentNormalizer["a" /* default */])(
2532
2711
  components_Opinionvue_type_script_lang_js_,
2533
- Opinionvue_type_template_id_37d0b4da_render,
2534
- Opinionvue_type_template_id_37d0b4da_staticRenderFns,
2712
+ Opinionvue_type_template_id_7bc36072_render,
2713
+ Opinionvue_type_template_id_7bc36072_staticRenderFns,
2535
2714
  false,
2536
2715
  null,
2537
2716
  null,
@@ -2760,8 +2939,7 @@ var Message_component = Object(componentNormalizer["a" /* default */])(
2760
2939
  var external_eoss_mobile_vant_ = __webpack_require__(6);
2761
2940
 
2762
2941
  // 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&
2763
- var _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; };
2764
-
2942
+ //
2765
2943
  //
2766
2944
  //
2767
2945
  //
@@ -2893,6 +3071,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2893
3071
  paddingTop: {
2894
3072
  type: [String, Number],
2895
3073
  default: 0
3074
+ },
3075
+ esign: {
3076
+ type: Boolean,
3077
+ default: false
2896
3078
  }
2897
3079
  },
2898
3080
  data: function data() {
@@ -2907,8 +3089,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2907
3089
  opinion: undefined, // 审批意见
2908
3090
  nodeId: undefined,
2909
3091
  notificationMsg: undefined, //系统消息
2910
- notificationType: []
3092
+ notificationType: [],
3093
+ isImageOpinion: 0
2911
3094
  },
3095
+ file: '',
2912
3096
  nextUserList: [],
2913
3097
  isChooseNextNode: 0,
2914
3098
  isOpinionRequired: 0, //办理意见是否必填
@@ -2939,6 +3123,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2939
3123
  mounted: function mounted() {
2940
3124
  var obj = {
2941
3125
  processDefinitionId: this.defId,
3126
+ // isOnly: true,
3127
+ // hideTempSave: true,
2942
3128
  businessId: this.businessId
2943
3129
  };
2944
3130
  this.geAllData(obj);
@@ -2989,13 +3175,23 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2989
3175
 
2990
3176
  // 意见回调
2991
3177
  onInputOpintion: function onInputOpintion(val) {
2992
- this.form.opinion = val;
3178
+ var opinion = val.opinion,
3179
+ isImageOpinion = val.isImageOpinion,
3180
+ file = val.file;
3181
+
3182
+ this.form.opinion = opinion;
3183
+ this.form.isImageOpinion = isImageOpinion;
3184
+ this.file = file;
2993
3185
  },
2994
3186
 
2995
3187
  // 提交流程
2996
3188
  onSubmit: function onSubmit() {
2997
3189
  var _this2 = this;
2998
3190
 
3191
+ if (!this.form.opinion && this.isOpinionRequired == 1 && this.form.isImageOpinion == 0 || !this.file && this.isOpinionRequired == 1 && this.form.isImageOpinion == 1) {
3192
+ this.$toast('请选择输入审批意见');
3193
+ return;
3194
+ }
2999
3195
  if (!this.form.nextUserId) {
3000
3196
  this.$toast('请选择办理人');
3001
3197
  return;
@@ -3004,10 +3200,6 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3004
3200
  this.$toast('请选择流程节点');
3005
3201
  return;
3006
3202
  }
3007
- if (!this.form.opinion && this.isOpinionRequired == 1) {
3008
- this.$toast('请选择输入审批意见');
3009
- return;
3010
- }
3011
3203
  // if (!this.form.notificationType) {
3012
3204
  // this.$toast('请选择通知消息');
3013
3205
  // return;
@@ -3023,12 +3215,23 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3023
3215
  nodeId: this.form.nodeId,
3024
3216
  userId: sessionStorage.getItem('userId'),
3025
3217
  notificationMsg: this.form.notificationMsg,
3026
- loginType: 2 //登录方式
3218
+ loginType: 2, //登录方式
3219
+ isImageOpinion: this.form.isImageOpinion
3027
3220
  };
3028
3221
  if (this.beforeSubmit) {
3029
3222
  this.beforeSubmit(info);
3030
3223
  return;
3031
3224
  }
3225
+ var formData = new FormData();
3226
+ if (this.form.isImageOpinion == 1) {
3227
+ formData.append('file', this.file);
3228
+ }
3229
+ formData.append('pendingId', this.pendingId);
3230
+ for (var key in info) {
3231
+ if (info[key] !== '' && info[key] !== undefined) {
3232
+ formData.append(key, info[key]);
3233
+ }
3234
+ }
3032
3235
  this.$toast.loading({
3033
3236
  message: '加载中...',
3034
3237
  forbidClick: true,
@@ -3040,7 +3243,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3040
3243
  Object(http["a" /* default */])({
3041
3244
  url: _that.apiBaseUrl ? _that.apiBaseUrl + api["j" /* registerNew */] : api["j" /* registerNew */],
3042
3245
  type: 'post',
3043
- params: _extends({}, info)
3246
+ params: formData
3044
3247
  }).then(function (res) {
3045
3248
  _this2.$toast.clear();
3046
3249
  if (res.rCode == 0) {
@@ -3246,8 +3449,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3246
3449
 
3247
3450
  var StartFlow_component = Object(componentNormalizer["a" /* default */])(
3248
3451
  components_StartFlowvue_type_script_lang_js_,
3249
- StartFlowvue_type_template_id_1ab5f2f0_render,
3250
- StartFlowvue_type_template_id_1ab5f2f0_staticRenderFns,
3452
+ StartFlowvue_type_template_id_5b4823aa_render,
3453
+ StartFlowvue_type_template_id_5b4823aa_staticRenderFns,
3251
3454
  false,
3252
3455
  null,
3253
3456
  null,
@@ -3256,8 +3459,8 @@ var StartFlow_component = Object(componentNormalizer["a" /* default */])(
3256
3459
  )
3257
3460
 
3258
3461
  /* harmony default export */ var StartFlow = (StartFlow_component.exports);
3259
- // 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&
3260
- var Handlevue_type_template_id_870cfad8_render = function () {
3462
+ // 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&
3463
+ var Handlevue_type_template_id_1173cb46_render = function () {
3261
3464
  var _vm = this
3262
3465
  var _h = _vm.$createElement
3263
3466
  var _c = _vm._self._c || _h
@@ -3290,6 +3493,7 @@ var Handlevue_type_template_id_870cfad8_render = function () {
3290
3493
  attrs: {
3291
3494
  code: _vm.processObj.attachedCode,
3292
3495
  ownId: _vm.pendingId,
3496
+ esign: _vm.esign,
3293
3497
  isOpinionRequired: _vm.isOpinionRequired,
3294
3498
  disabled: _vm.isBanInputOpinion != 0,
3295
3499
  baseUrl: _vm.baseUrl,
@@ -4238,14 +4442,14 @@ var Handlevue_type_template_id_870cfad8_render = function () {
4238
4442
  1
4239
4443
  )
4240
4444
  }
4241
- var Handlevue_type_template_id_870cfad8_staticRenderFns = []
4242
- Handlevue_type_template_id_870cfad8_render._withStripped = true
4445
+ var Handlevue_type_template_id_1173cb46_staticRenderFns = []
4446
+ Handlevue_type_template_id_1173cb46_render._withStripped = true
4243
4447
 
4244
4448
 
4245
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=870cfad8&
4449
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=1173cb46&
4246
4450
 
4247
- // 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&
4248
- var Rejectvue_type_template_id_244de01c_render = function () {
4451
+ // 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&
4452
+ var Rejectvue_type_template_id_3c26866b_render = function () {
4249
4453
  var _vm = this
4250
4454
  var _h = _vm.$createElement
4251
4455
  var _c = _vm._self._c || _h
@@ -4262,6 +4466,7 @@ var Rejectvue_type_template_id_244de01c_render = function () {
4262
4466
  attrs: {
4263
4467
  code: _vm.processObj.attachedCode,
4264
4468
  ownId: _vm.$route.query.pendingId,
4469
+ esign: _vm.esign,
4265
4470
  isOpinionRequired: _vm.isBanInputOpinion,
4266
4471
  disabled: _vm.isBanInputOpinion != 0,
4267
4472
  baseUrl: _vm.baseUrl,
@@ -4340,14 +4545,14 @@ var Rejectvue_type_template_id_244de01c_render = function () {
4340
4545
  ]),
4341
4546
  ])
4342
4547
  }
4343
- var Rejectvue_type_template_id_244de01c_staticRenderFns = []
4344
- Rejectvue_type_template_id_244de01c_render._withStripped = true
4548
+ var Rejectvue_type_template_id_3c26866b_staticRenderFns = []
4549
+ Rejectvue_type_template_id_3c26866b_render._withStripped = true
4345
4550
 
4346
4551
 
4347
- // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=template&id=244de01c&
4552
+ // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=template&id=3c26866b&
4348
4553
 
4349
4554
  // 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&
4350
- 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; };
4555
+ var _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; };
4351
4556
 
4352
4557
  //
4353
4558
  //
@@ -4390,6 +4595,7 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4390
4595
  //
4391
4596
  //
4392
4597
  //
4598
+ //
4393
4599
 
4394
4600
 
4395
4601
 
@@ -4403,7 +4609,11 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4403
4609
  pendingId: String,
4404
4610
  userId: String,
4405
4611
  beforeSubmit: Function,
4406
- baseUrl: String
4612
+ baseUrl: String,
4613
+ esign: {
4614
+ type: Boolean,
4615
+ default: false
4616
+ }
4407
4617
  },
4408
4618
  data: function data() {
4409
4619
  return {
@@ -4413,8 +4623,10 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4413
4623
  opinion: undefined, // 审批意见
4414
4624
  notificationMsg: undefined, //系统消息
4415
4625
  nextNodeId: undefined,
4416
- loginType: 2 //登录方式
4626
+ loginType: 2, //登录方式
4627
+ isImageOpinion: 0
4417
4628
  },
4629
+ file: '',
4418
4630
  processObj: {
4419
4631
  taskExamine: { nodeName: undefined },
4420
4632
  nodeInfoMap: { nextUserList: [] }
@@ -4445,7 +4657,13 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4445
4657
 
4446
4658
  // 意见回调
4447
4659
  onInputOpintion: function onInputOpintion(val) {
4448
- this.form.opinion = val;
4660
+ var opinion = val.opinion,
4661
+ isImageOpinion = val.isImageOpinion,
4662
+ file = val.file;
4663
+
4664
+ this.form.opinion = opinion;
4665
+ this.form.isImageOpinion = isImageOpinion;
4666
+ this.file = file;
4449
4667
  },
4450
4668
  goBack: function goBack() {
4451
4669
  this.$parent.$emit('close');
@@ -4456,8 +4674,8 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4456
4674
  onSubmit: function onSubmit() {
4457
4675
  var _this = this;
4458
4676
 
4459
- if (!this.form.opinion && this.isBanInputOpinion == 0) {
4460
- this.$toast('请选择输入审批意见');
4677
+ if (!this.form.opinion && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 0 || !this.file && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 1) {
4678
+ this.$toast('请输入审批意见');
4461
4679
  return;
4462
4680
  }
4463
4681
  var str = '';
@@ -4468,9 +4686,19 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4468
4686
  this.form.opinion = this.nodeDefaultRejectOpinion;
4469
4687
  }
4470
4688
  if (this.beforeSubmit) {
4471
- this.beforeSubmit(Rejectvue_type_script_lang_js_extends({ pendingId: this.pendingId }, this.form));
4689
+ this.beforeSubmit(_extends({ pendingId: this.pendingId }, this.form));
4472
4690
  return;
4473
4691
  }
4692
+ var formData = new FormData();
4693
+ if (this.form.isImageOpinion == 1) {
4694
+ formData.append('file', this.file);
4695
+ }
4696
+ formData.append('pendingId', this.pendingId);
4697
+ for (var key in this.form) {
4698
+ if (this.form[key] !== '' && this.form[key] !== undefined) {
4699
+ formData.append(key, this.form[key]);
4700
+ }
4701
+ }
4474
4702
  this.$toast.loading({
4475
4703
  message: '加载中...',
4476
4704
  forbidClick: true,
@@ -4482,9 +4710,7 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4482
4710
  Object(http["a" /* default */])({
4483
4711
  url: _that.baseUrl ? _that.baseUrl + api["n" /* taskRejectHtml */] : api["n" /* taskRejectHtml */],
4484
4712
  type: 'post',
4485
- params: Rejectvue_type_script_lang_js_extends({
4486
- pendingId: _that.pendingId
4487
- }, this.form)
4713
+ params: formData
4488
4714
  }).then(function (res) {
4489
4715
  if (res.status == 'success') {
4490
4716
  _this.$toast('操作成功');
@@ -4578,8 +4804,8 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4578
4804
 
4579
4805
  var Reject_component = Object(componentNormalizer["a" /* default */])(
4580
4806
  components_Rejectvue_type_script_lang_js_,
4581
- Rejectvue_type_template_id_244de01c_render,
4582
- Rejectvue_type_template_id_244de01c_staticRenderFns,
4807
+ Rejectvue_type_template_id_3c26866b_render,
4808
+ Rejectvue_type_template_id_3c26866b_staticRenderFns,
4583
4809
  false,
4584
4810
  null,
4585
4811
  null,
@@ -5259,6 +5485,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5259
5485
  //
5260
5486
  //
5261
5487
  //
5488
+ //
5262
5489
 
5263
5490
 
5264
5491
 
@@ -5287,6 +5514,10 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5287
5514
  paddingTop: {
5288
5515
  type: [String, Number],
5289
5516
  default: 0
5517
+ },
5518
+ esign: {
5519
+ type: Boolean,
5520
+ default: false
5290
5521
  }
5291
5522
  },
5292
5523
  data: function data() {
@@ -5311,6 +5542,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5311
5542
  isAddSignList: [{ name: '是', value: '1' }, { name: '否', value: '2' }],
5312
5543
  form: {
5313
5544
  opinion: undefined, // 审批意见
5545
+ isImageOpinion: 0,
5314
5546
  isAddSign: undefined, //是否加签
5315
5547
  addSignUserId: undefined, //加签人员id
5316
5548
  isRemoveSign: undefined, //是否减签
@@ -5352,7 +5584,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5352
5584
  advanceNoticeType: [] //催办通知方式
5353
5585
  },
5354
5586
  isCanFenyue: '0'
5355
- }, _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;
5587
+ }, _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;
5356
5588
  },
5357
5589
  created: function created() {
5358
5590
  var _this2 = this;
@@ -5501,6 +5733,10 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5501
5733
  idStr = idStr + r.showid + (i === _this4.nextUserSelectList.length - 1 ? '' : ',');
5502
5734
  });
5503
5735
  this.form.nextUserId = idStr;
5736
+ if (!this.form.opinion && this.isOpinionRequired == 1 && !this.nodeDefaultSubmitOpinion && this.form.isImageOpinion == 0 || !this.file && this.isOpinionRequired == 1 && !this.nodeDefaultSubmitOpinion && this.form.isImageOpinion == 1) {
5737
+ this.$toast('请选择输入审批意见');
5738
+ return;
5739
+ }
5504
5740
  if (this.isSpecial && this.isNextUser && !this.form.nextUserId && idStr === '' && !this.isReject) {
5505
5741
  this.$toast('请选择办理人');
5506
5742
  return;
@@ -5509,10 +5745,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5509
5745
  this.$toast('请选择流程节点');
5510
5746
  return;
5511
5747
  }
5512
- if (!this.form.opinion && this.isOpinionRequired == 1 && !this.nodeDefaultSubmitOpinion) {
5513
- this.$toast('请选择输入审批意见');
5514
- return;
5515
- }
5748
+
5516
5749
  var str = '';
5517
5750
  if (this.form.opinion) {
5518
5751
  str = this.form.opinion.replace(/\s+/g, '');
@@ -5588,12 +5821,20 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5588
5821
  _that.form.isSubFlow = taskExamineInfo.isSubFlow;
5589
5822
  _that.form.nodeId = taskExamineInfo.nodeId;
5590
5823
  _that.form.nextNodeId = _that.form.nextOperate == 0 || _that.form.nextOperate == 1 ? _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode : '';
5824
+ var formData = new FormData();
5825
+ if (_that.form.isImageOpinion == 1) {
5826
+ formData.append('file', _that.file);
5827
+ }
5828
+ formData.append('pendingId', _that.pendingId);
5829
+ for (var key in _that.form) {
5830
+ if (_that.form[key] !== '' && _that.form[key] !== undefined) {
5831
+ formData.append(key, _that.form[key]);
5832
+ }
5833
+ }
5591
5834
  Object(http["a" /* default */])({
5592
5835
  url: _that.baseUrl ? _that.baseUrl + api["l" /* taskHandleHtml */] : api["l" /* taskHandleHtml */],
5593
5836
  type: 'post',
5594
- params: Handlevue_type_script_lang_js_extends({
5595
- pendingId: _that.pendingId
5596
- }, _that.form)
5837
+ params: formData
5597
5838
  }).then(function (res) {
5598
5839
  _this4.$toast.clear();
5599
5840
  if (res.status == 'success') {
@@ -5736,7 +5977,13 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5736
5977
 
5737
5978
  // 意见回调
5738
5979
  onInputOpintion: function onInputOpintion(val) {
5739
- this.form.opinion = val;
5980
+ var opinion = val.opinion,
5981
+ isImageOpinion = val.isImageOpinion,
5982
+ file = val.file;
5983
+
5984
+ this.form.opinion = opinion;
5985
+ this.form.isImageOpinion = isImageOpinion;
5986
+ this.file = file;
5740
5987
  },
5741
5988
 
5742
5989
  // 办理人选择完回调
@@ -6150,8 +6397,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
6150
6397
 
6151
6398
  var Handle_component = Object(componentNormalizer["a" /* default */])(
6152
6399
  components_Handlevue_type_script_lang_js_,
6153
- Handlevue_type_template_id_870cfad8_render,
6154
- Handlevue_type_template_id_870cfad8_staticRenderFns,
6400
+ Handlevue_type_template_id_1173cb46_render,
6401
+ Handlevue_type_template_id_1173cb46_staticRenderFns,
6155
6402
  false,
6156
6403
  null,
6157
6404
  null,
@@ -6806,8 +7053,8 @@ var TaskRead_component = Object(componentNormalizer["a" /* default */])(
6806
7053
  )
6807
7054
 
6808
7055
  /* harmony default export */ var TaskRead = (TaskRead_component.exports);
6809
- // 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&
6810
- var taskUnionExaminevue_type_template_id_0cefc67d_render = function () {
7056
+ // 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&
7057
+ var taskUnionExaminevue_type_template_id_70a11c5a_render = function () {
6811
7058
  var _vm = this
6812
7059
  var _h = _vm.$createElement
6813
7060
  var _c = _vm._self._c || _h
@@ -6821,12 +7068,8 @@ var taskUnionExaminevue_type_template_id_0cefc67d_render = function () {
6821
7068
  _c("div", [_vm._v(_vm._s(_vm.nodeName))]),
6822
7069
  ]),
6823
7070
  _c("Opinion", {
6824
- attrs: { baseUrl: _vm.baseUrl },
6825
- on: {
6826
- onInputOpintion: function (val) {
6827
- return (_vm.opinion = val)
6828
- },
6829
- },
7071
+ attrs: { esign: _vm.esign, baseUrl: _vm.baseUrl },
7072
+ on: { onInputOpintion: _vm.onInputOpintion },
6830
7073
  }),
6831
7074
  _c(
6832
7075
  "div",
@@ -6954,11 +7197,11 @@ var taskUnionExaminevue_type_template_id_0cefc67d_render = function () {
6954
7197
  ]),
6955
7198
  ])
6956
7199
  }
6957
- var taskUnionExaminevue_type_template_id_0cefc67d_staticRenderFns = []
6958
- taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7200
+ var taskUnionExaminevue_type_template_id_70a11c5a_staticRenderFns = []
7201
+ taskUnionExaminevue_type_template_id_70a11c5a_render._withStripped = true
6959
7202
 
6960
7203
 
6961
- // CONCATENATED MODULE: ./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=0cefc67d&
7204
+ // CONCATENATED MODULE: ./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=70a11c5a&
6962
7205
 
6963
7206
  // 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&
6964
7207
  //
@@ -7046,6 +7289,7 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7046
7289
  //
7047
7290
  //
7048
7291
  //
7292
+ //
7049
7293
 
7050
7294
 
7051
7295
 
@@ -7068,11 +7312,17 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7068
7312
  paddingTop: {
7069
7313
  type: [String, Number],
7070
7314
  default: 0
7315
+ },
7316
+ esign: {
7317
+ type: Boolean,
7318
+ default: false
7071
7319
  }
7072
7320
  },
7073
7321
  data: function data() {
7074
7322
  return {
7075
7323
  opinion: '', //办理意见
7324
+ isImageOpinion: 0,
7325
+ file: '',
7076
7326
  infoList: {
7077
7327
  nextOtherOrgObj: [],
7078
7328
  nextCurrentOrgObj: [],
@@ -7130,6 +7380,15 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7130
7380
  }
7131
7381
  },
7132
7382
  methods: {
7383
+ onInputOpintion: function onInputOpintion(val) {
7384
+ var opinion = val.opinion,
7385
+ isImageOpinion = val.isImageOpinion,
7386
+ file = val.file;
7387
+
7388
+ this.opinion = opinion;
7389
+ this.isImageOpinion = isImageOpinion;
7390
+ this.file = file;
7391
+ },
7133
7392
  getIsCanStartSubFlow: function getIsCanStartSubFlow() {
7134
7393
  var _this = this;
7135
7394
 
@@ -7346,6 +7605,8 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7346
7605
  nextOtherOrgObj = _infoList.nextOtherOrgObj,
7347
7606
  noticeType = _infoList.noticeType,
7348
7607
  noticeInfo = _infoList.noticeInfo,
7608
+ isImageOpinion = this.isImageOpinion,
7609
+ file = this.file,
7349
7610
  isOpinionRequired = this.isOpinionRequired,
7350
7611
  opinion = this.opinion,
7351
7612
  type = this.type,
@@ -7356,30 +7617,40 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7356
7617
  isSubFlow = this.isSubFlow,
7357
7618
  pendingId = this.pendingId;
7358
7619
 
7620
+ if (isOpinionRequired == 1 && !opinion && isImageOpinion == 0 || isOpinionRequired == 1 && isImageOpinion == 1 && !file) {
7621
+ return this.$toast('当前步骤必须输入意见!');
7622
+ }
7359
7623
  if (type == 'takeAdvice' && (nextCurrentOrgObj == '' || nextCurrentOrgObj == null && isHideCurrentOrg == 0) || isHideOtherOrg == 0 && nextOtherOrgObj == '' || nextOtherOrgObj == null) {
7360
7624
  return this.$toast('请选择处理对象!');
7361
7625
  } else if (isHideCurrentOrg == 0 && (nextOtherOrgObj == '' || nextOtherOrgObj == null)) {
7362
7626
  return this.$toast('请选择处理对象!');
7363
7627
  }
7364
-
7365
- if (isOpinionRequired == 1 && (opinion == '' || opinion == null)) {
7366
- return this.$toast('当前步骤必须输入意见!');
7628
+ var info = {
7629
+ opinion: opinion,
7630
+ pendingId: pendingId,
7631
+ nextOtherOrgObj: Array.isArray(nextOtherOrgObj) ? nextOtherOrgObj.join(',') : nextOtherOrgObj,
7632
+ nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj) ? nextCurrentOrgObj.join(',') : nextCurrentOrgObj,
7633
+ notificationMsg: noticeInfo,
7634
+ notificationType: noticeType.join(','),
7635
+ choiceDeptId: choiceDeptId,
7636
+ isSubFlow: isSubFlow,
7637
+ choiceOrgId: choiceOrgId
7638
+ };
7639
+ var formData = new FormData();
7640
+ if (isImageOpinion == 1) {
7641
+ formData.append('file', file);
7642
+ }
7643
+ formData.append('pendingId', pendingId);
7644
+ for (var key in info) {
7645
+ if (info[key] !== '' && info[key] !== undefined) {
7646
+ formData.append(key, info[key]);
7647
+ }
7367
7648
  }
7368
7649
  // if (this.type != 'startDraf' && this.type != 'unionSeal' && this.type != 'twoOfficesDispatch')
7369
7650
  // return this.$toast('暂未开放,敬请期待!');
7370
7651
  var param = {
7371
7652
  url: this.type === 'startDraf' ? api["o" /* taskStartDraft */] : this.type == 'unionSeal' ? api["r" /* taskUnionSeal */] : this.type === 'twoOfficesDispatch' ? twoOfficesDispatch : this.type == 'takeAdvice' ? api["p" /* taskTakeAdvice */] : api["q" /* taskUnionExamine */],
7372
- params: {
7373
- opinion: opinion,
7374
- pendingId: pendingId,
7375
- nextOtherOrgObj: Array.isArray(nextOtherOrgObj) ? nextOtherOrgObj.join(',') : nextOtherOrgObj,
7376
- nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj) ? nextCurrentOrgObj.join(',') : nextCurrentOrgObj,
7377
- notificationMsg: noticeInfo,
7378
- notificationType: noticeType.join(','),
7379
- choiceDeptId: choiceDeptId,
7380
- isSubFlow: isSubFlow,
7381
- choiceOrgId: choiceOrgId
7382
- },
7653
+ params: formData,
7383
7654
  headers: { Accept: 'application/json,text/plain' },
7384
7655
  type: 'post'
7385
7656
  };
@@ -7431,7 +7702,6 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7431
7702
  pendingId: this.pendingId
7432
7703
  }
7433
7704
  }).then(function (res) {
7434
- console.log(res, 'res');
7435
7705
  // const {
7436
7706
  // status,
7437
7707
  // message,
@@ -7486,8 +7756,8 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7486
7756
 
7487
7757
  var taskUnionExamine_component = Object(componentNormalizer["a" /* default */])(
7488
7758
  components_taskUnionExaminevue_type_script_lang_js_,
7489
- taskUnionExaminevue_type_template_id_0cefc67d_render,
7490
- taskUnionExaminevue_type_template_id_0cefc67d_staticRenderFns,
7759
+ taskUnionExaminevue_type_template_id_70a11c5a_render,
7760
+ taskUnionExaminevue_type_template_id_70a11c5a_staticRenderFns,
7491
7761
  false,
7492
7762
  null,
7493
7763
  null,