eoss-mobiles 0.2.5 → 0.2.7

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=37ffcb14&
3463
+ var Handlevue_type_template_id_37ffcb14_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,
@@ -3529,33 +3733,62 @@ var Handlevue_type_template_id_870cfad8_render = function () {
3529
3733
  "div",
3530
3734
  { staticClass: "item" },
3531
3735
  [
3532
- _c("em-picker", {
3533
- attrs: {
3534
- title: "下步操作",
3535
- label: "下步操作",
3536
- required: "",
3537
- "show-toolbar": "",
3538
- "label-width": "100%",
3539
- columns: _vm.taskOperations,
3540
- "value-key": "key",
3541
- "label-key": "value",
3542
- },
3543
- on: {
3544
- confirm: _vm.changeNextOperate,
3545
- },
3546
- model: {
3547
- value: _vm.form.nextOperateName,
3548
- callback: function ($$v) {
3549
- _vm.$set(
3550
- _vm.form,
3551
- "nextOperateName",
3552
- $$v
3553
- )
3736
+ _c(
3737
+ "em-input",
3738
+ {
3739
+ attrs: {
3740
+ value: "下步操作",
3741
+ label: "下步操作",
3742
+ required: "",
3743
+ disabled: true,
3744
+ "label-position": "top",
3554
3745
  },
3555
- expression:
3556
- "form.nextOperateName",
3557
3746
  },
3558
- }),
3747
+ [
3748
+ _c(
3749
+ "template",
3750
+ { slot: "input" },
3751
+ _vm._l(
3752
+ _vm.taskOperations,
3753
+ function (item) {
3754
+ return _c(
3755
+ "span",
3756
+ {
3757
+ key: item.key,
3758
+ staticClass:
3759
+ "em-flow-tag",
3760
+ class: {
3761
+ "em-flow-tag-active":
3762
+ _vm.tagKey ===
3763
+ item.key,
3764
+ },
3765
+ on: {
3766
+ click: function (
3767
+ $event
3768
+ ) {
3769
+ _vm.changeNextOperate(
3770
+ item
3771
+ )
3772
+ },
3773
+ },
3774
+ },
3775
+ [
3776
+ _vm._v(
3777
+ "\n " +
3778
+ _vm._s(
3779
+ item.value
3780
+ ) +
3781
+ "\n "
3782
+ ),
3783
+ ]
3784
+ )
3785
+ }
3786
+ ),
3787
+ 0
3788
+ ),
3789
+ ],
3790
+ 2
3791
+ ),
3559
3792
  ],
3560
3793
  1
3561
3794
  )
@@ -4238,14 +4471,14 @@ var Handlevue_type_template_id_870cfad8_render = function () {
4238
4471
  1
4239
4472
  )
4240
4473
  }
4241
- var Handlevue_type_template_id_870cfad8_staticRenderFns = []
4242
- Handlevue_type_template_id_870cfad8_render._withStripped = true
4474
+ var Handlevue_type_template_id_37ffcb14_staticRenderFns = []
4475
+ Handlevue_type_template_id_37ffcb14_render._withStripped = true
4243
4476
 
4244
4477
 
4245
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=870cfad8&
4478
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=37ffcb14&
4246
4479
 
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 () {
4480
+ // 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&
4481
+ var Rejectvue_type_template_id_3c26866b_render = function () {
4249
4482
  var _vm = this
4250
4483
  var _h = _vm.$createElement
4251
4484
  var _c = _vm._self._c || _h
@@ -4262,6 +4495,7 @@ var Rejectvue_type_template_id_244de01c_render = function () {
4262
4495
  attrs: {
4263
4496
  code: _vm.processObj.attachedCode,
4264
4497
  ownId: _vm.$route.query.pendingId,
4498
+ esign: _vm.esign,
4265
4499
  isOpinionRequired: _vm.isBanInputOpinion,
4266
4500
  disabled: _vm.isBanInputOpinion != 0,
4267
4501
  baseUrl: _vm.baseUrl,
@@ -4340,14 +4574,14 @@ var Rejectvue_type_template_id_244de01c_render = function () {
4340
4574
  ]),
4341
4575
  ])
4342
4576
  }
4343
- var Rejectvue_type_template_id_244de01c_staticRenderFns = []
4344
- Rejectvue_type_template_id_244de01c_render._withStripped = true
4577
+ var Rejectvue_type_template_id_3c26866b_staticRenderFns = []
4578
+ Rejectvue_type_template_id_3c26866b_render._withStripped = true
4345
4579
 
4346
4580
 
4347
- // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=template&id=244de01c&
4581
+ // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=template&id=3c26866b&
4348
4582
 
4349
4583
  // 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; };
4584
+ 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
4585
 
4352
4586
  //
4353
4587
  //
@@ -4390,6 +4624,7 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4390
4624
  //
4391
4625
  //
4392
4626
  //
4627
+ //
4393
4628
 
4394
4629
 
4395
4630
 
@@ -4403,7 +4638,11 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4403
4638
  pendingId: String,
4404
4639
  userId: String,
4405
4640
  beforeSubmit: Function,
4406
- baseUrl: String
4641
+ baseUrl: String,
4642
+ esign: {
4643
+ type: Boolean,
4644
+ default: false
4645
+ }
4407
4646
  },
4408
4647
  data: function data() {
4409
4648
  return {
@@ -4413,8 +4652,10 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4413
4652
  opinion: undefined, // 审批意见
4414
4653
  notificationMsg: undefined, //系统消息
4415
4654
  nextNodeId: undefined,
4416
- loginType: 2 //登录方式
4655
+ loginType: 2, //登录方式
4656
+ isImageOpinion: 0
4417
4657
  },
4658
+ file: '',
4418
4659
  processObj: {
4419
4660
  taskExamine: { nodeName: undefined },
4420
4661
  nodeInfoMap: { nextUserList: [] }
@@ -4445,7 +4686,13 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4445
4686
 
4446
4687
  // 意见回调
4447
4688
  onInputOpintion: function onInputOpintion(val) {
4448
- this.form.opinion = val;
4689
+ var opinion = val.opinion,
4690
+ isImageOpinion = val.isImageOpinion,
4691
+ file = val.file;
4692
+
4693
+ this.form.opinion = opinion;
4694
+ this.form.isImageOpinion = isImageOpinion;
4695
+ this.file = file;
4449
4696
  },
4450
4697
  goBack: function goBack() {
4451
4698
  this.$parent.$emit('close');
@@ -4456,8 +4703,8 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4456
4703
  onSubmit: function onSubmit() {
4457
4704
  var _this = this;
4458
4705
 
4459
- if (!this.form.opinion && this.isBanInputOpinion == 0) {
4460
- this.$toast('请选择输入审批意见');
4706
+ if (!this.form.opinion && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 0 || !this.file && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 1) {
4707
+ this.$toast('请输入审批意见');
4461
4708
  return;
4462
4709
  }
4463
4710
  var str = '';
@@ -4468,9 +4715,19 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4468
4715
  this.form.opinion = this.nodeDefaultRejectOpinion;
4469
4716
  }
4470
4717
  if (this.beforeSubmit) {
4471
- this.beforeSubmit(Rejectvue_type_script_lang_js_extends({ pendingId: this.pendingId }, this.form));
4718
+ this.beforeSubmit(_extends({ pendingId: this.pendingId }, this.form));
4472
4719
  return;
4473
4720
  }
4721
+ var formData = new FormData();
4722
+ if (this.form.isImageOpinion == 1) {
4723
+ formData.append('file', this.file);
4724
+ }
4725
+ formData.append('pendingId', this.pendingId);
4726
+ for (var key in this.form) {
4727
+ if (this.form[key] !== '' && this.form[key] !== undefined) {
4728
+ formData.append(key, this.form[key]);
4729
+ }
4730
+ }
4474
4731
  this.$toast.loading({
4475
4732
  message: '加载中...',
4476
4733
  forbidClick: true,
@@ -4482,9 +4739,7 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4482
4739
  Object(http["a" /* default */])({
4483
4740
  url: _that.baseUrl ? _that.baseUrl + api["n" /* taskRejectHtml */] : api["n" /* taskRejectHtml */],
4484
4741
  type: 'post',
4485
- params: Rejectvue_type_script_lang_js_extends({
4486
- pendingId: _that.pendingId
4487
- }, this.form)
4742
+ params: formData
4488
4743
  }).then(function (res) {
4489
4744
  if (res.status == 'success') {
4490
4745
  _this.$toast('操作成功');
@@ -4578,8 +4833,8 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
4578
4833
 
4579
4834
  var Reject_component = Object(componentNormalizer["a" /* default */])(
4580
4835
  components_Rejectvue_type_script_lang_js_,
4581
- Rejectvue_type_template_id_244de01c_render,
4582
- Rejectvue_type_template_id_244de01c_staticRenderFns,
4836
+ Rejectvue_type_template_id_3c26866b_render,
4837
+ Rejectvue_type_template_id_3c26866b_staticRenderFns,
4583
4838
  false,
4584
4839
  null,
4585
4840
  null,
@@ -5259,6 +5514,20 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5259
5514
  //
5260
5515
  //
5261
5516
  //
5517
+ //
5518
+ //
5519
+ //
5520
+ //
5521
+ //
5522
+ //
5523
+ //
5524
+ //
5525
+ //
5526
+ //
5527
+ //
5528
+ //
5529
+ //
5530
+ //
5262
5531
 
5263
5532
 
5264
5533
 
@@ -5287,6 +5556,10 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5287
5556
  paddingTop: {
5288
5557
  type: [String, Number],
5289
5558
  default: 0
5559
+ },
5560
+ esign: {
5561
+ type: Boolean,
5562
+ default: false
5290
5563
  }
5291
5564
  },
5292
5565
  data: function data() {
@@ -5311,6 +5584,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5311
5584
  isAddSignList: [{ name: '是', value: '1' }, { name: '否', value: '2' }],
5312
5585
  form: {
5313
5586
  opinion: undefined, // 审批意见
5587
+ isImageOpinion: 0,
5314
5588
  isAddSign: undefined, //是否加签
5315
5589
  addSignUserId: undefined, //加签人员id
5316
5590
  isRemoveSign: undefined, //是否减签
@@ -5352,7 +5626,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5352
5626
  advanceNoticeType: [] //催办通知方式
5353
5627
  },
5354
5628
  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;
5629
+ }, _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.tagKey = '', _ref.pOrgId = '', _ref;
5356
5630
  },
5357
5631
  created: function created() {
5358
5632
  var _this2 = this;
@@ -5457,6 +5731,15 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5457
5731
  opinion: this.form.opinion,
5458
5732
  taskAction: 'complete'
5459
5733
  };
5734
+ var formData = new FormData();
5735
+ if (this.form.isImageOpinion == 1) {
5736
+ formData.append('file', this.file);
5737
+ }
5738
+ for (var key in params) {
5739
+ if (params[key] !== '' && params[key] !== undefined) {
5740
+ formData.append(key, params[key]);
5741
+ }
5742
+ }
5460
5743
  this.$toast.loading({
5461
5744
  message: '加载中...',
5462
5745
  forbidClick: true,
@@ -5470,7 +5753,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5470
5753
  Accept: 'application/json,text/plain'
5471
5754
  },
5472
5755
  type: 'post',
5473
- params: params
5756
+ params: formData
5474
5757
  }).then(function (res) {
5475
5758
  var status = res.status,
5476
5759
  message = res.message;
@@ -5501,6 +5784,10 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5501
5784
  idStr = idStr + r.showid + (i === _this4.nextUserSelectList.length - 1 ? '' : ',');
5502
5785
  });
5503
5786
  this.form.nextUserId = idStr;
5787
+ if (!this.form.opinion && this.isOpinionRequired == 1 && !this.nodeDefaultSubmitOpinion && this.form.isImageOpinion == 0 || !this.file && this.isOpinionRequired == 1 && !this.nodeDefaultSubmitOpinion && this.form.isImageOpinion == 1) {
5788
+ this.$toast('请选择输入审批意见');
5789
+ return;
5790
+ }
5504
5791
  if (this.isSpecial && this.isNextUser && !this.form.nextUserId && idStr === '' && !this.isReject) {
5505
5792
  this.$toast('请选择办理人');
5506
5793
  return;
@@ -5509,10 +5796,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5509
5796
  this.$toast('请选择流程节点');
5510
5797
  return;
5511
5798
  }
5512
- if (!this.form.opinion && this.isOpinionRequired == 1 && !this.nodeDefaultSubmitOpinion) {
5513
- this.$toast('请选择输入审批意见');
5514
- return;
5515
- }
5799
+
5516
5800
  var str = '';
5517
5801
  if (this.form.opinion) {
5518
5802
  str = this.form.opinion.replace(/\s+/g, '');
@@ -5588,12 +5872,20 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5588
5872
  _that.form.isSubFlow = taskExamineInfo.isSubFlow;
5589
5873
  _that.form.nodeId = taskExamineInfo.nodeId;
5590
5874
  _that.form.nextNodeId = _that.form.nextOperate == 0 || _that.form.nextOperate == 1 ? _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode : '';
5875
+ var formData = new FormData();
5876
+ if (_that.form.isImageOpinion == 1) {
5877
+ formData.append('file', _that.file);
5878
+ }
5879
+ formData.append('pendingId', _that.pendingId);
5880
+ for (var key in _that.form) {
5881
+ if (_that.form[key] !== '' && _that.form[key] !== undefined) {
5882
+ formData.append(key, _that.form[key]);
5883
+ }
5884
+ }
5591
5885
  Object(http["a" /* default */])({
5592
5886
  url: _that.baseUrl ? _that.baseUrl + api["l" /* taskHandleHtml */] : api["l" /* taskHandleHtml */],
5593
5887
  type: 'post',
5594
- params: Handlevue_type_script_lang_js_extends({
5595
- pendingId: _that.pendingId
5596
- }, _that.form)
5888
+ params: formData
5597
5889
  }).then(function (res) {
5598
5890
  _this4.$toast.clear();
5599
5891
  if (res.status == 'success') {
@@ -5643,6 +5935,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5643
5935
 
5644
5936
  // 切换下一步操作
5645
5937
  changeNextOperate: function changeNextOperate(val, isDef) {
5938
+ if (!isDef && val.key === this.tagKey) return;
5939
+ this.tagKey = val.key;
5646
5940
  //恢复默认
5647
5941
  this.isNextUser = false;
5648
5942
  this.isShowNode = false;
@@ -5736,7 +6030,13 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5736
6030
 
5737
6031
  // 意见回调
5738
6032
  onInputOpintion: function onInputOpintion(val) {
5739
- this.form.opinion = val;
6033
+ var opinion = val.opinion,
6034
+ isImageOpinion = val.isImageOpinion,
6035
+ file = val.file;
6036
+
6037
+ this.form.opinion = opinion;
6038
+ this.form.isImageOpinion = isImageOpinion;
6039
+ this.file = file;
5740
6040
  },
5741
6041
 
5742
6042
  // 办理人选择完回调
@@ -6150,8 +6450,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
6150
6450
 
6151
6451
  var Handle_component = Object(componentNormalizer["a" /* default */])(
6152
6452
  components_Handlevue_type_script_lang_js_,
6153
- Handlevue_type_template_id_870cfad8_render,
6154
- Handlevue_type_template_id_870cfad8_staticRenderFns,
6453
+ Handlevue_type_template_id_37ffcb14_render,
6454
+ Handlevue_type_template_id_37ffcb14_staticRenderFns,
6155
6455
  false,
6156
6456
  null,
6157
6457
  null,
@@ -6806,8 +7106,8 @@ var TaskRead_component = Object(componentNormalizer["a" /* default */])(
6806
7106
  )
6807
7107
 
6808
7108
  /* 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 () {
7109
+ // 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&
7110
+ var taskUnionExaminevue_type_template_id_70a11c5a_render = function () {
6811
7111
  var _vm = this
6812
7112
  var _h = _vm.$createElement
6813
7113
  var _c = _vm._self._c || _h
@@ -6821,12 +7121,8 @@ var taskUnionExaminevue_type_template_id_0cefc67d_render = function () {
6821
7121
  _c("div", [_vm._v(_vm._s(_vm.nodeName))]),
6822
7122
  ]),
6823
7123
  _c("Opinion", {
6824
- attrs: { baseUrl: _vm.baseUrl },
6825
- on: {
6826
- onInputOpintion: function (val) {
6827
- return (_vm.opinion = val)
6828
- },
6829
- },
7124
+ attrs: { esign: _vm.esign, baseUrl: _vm.baseUrl },
7125
+ on: { onInputOpintion: _vm.onInputOpintion },
6830
7126
  }),
6831
7127
  _c(
6832
7128
  "div",
@@ -6954,11 +7250,11 @@ var taskUnionExaminevue_type_template_id_0cefc67d_render = function () {
6954
7250
  ]),
6955
7251
  ])
6956
7252
  }
6957
- var taskUnionExaminevue_type_template_id_0cefc67d_staticRenderFns = []
6958
- taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7253
+ var taskUnionExaminevue_type_template_id_70a11c5a_staticRenderFns = []
7254
+ taskUnionExaminevue_type_template_id_70a11c5a_render._withStripped = true
6959
7255
 
6960
7256
 
6961
- // CONCATENATED MODULE: ./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=0cefc67d&
7257
+ // CONCATENATED MODULE: ./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=70a11c5a&
6962
7258
 
6963
7259
  // 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
7260
  //
@@ -7046,6 +7342,7 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7046
7342
  //
7047
7343
  //
7048
7344
  //
7345
+ //
7049
7346
 
7050
7347
 
7051
7348
 
@@ -7068,11 +7365,17 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7068
7365
  paddingTop: {
7069
7366
  type: [String, Number],
7070
7367
  default: 0
7368
+ },
7369
+ esign: {
7370
+ type: Boolean,
7371
+ default: false
7071
7372
  }
7072
7373
  },
7073
7374
  data: function data() {
7074
7375
  return {
7075
7376
  opinion: '', //办理意见
7377
+ isImageOpinion: 0,
7378
+ file: '',
7076
7379
  infoList: {
7077
7380
  nextOtherOrgObj: [],
7078
7381
  nextCurrentOrgObj: [],
@@ -7130,6 +7433,15 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7130
7433
  }
7131
7434
  },
7132
7435
  methods: {
7436
+ onInputOpintion: function onInputOpintion(val) {
7437
+ var opinion = val.opinion,
7438
+ isImageOpinion = val.isImageOpinion,
7439
+ file = val.file;
7440
+
7441
+ this.opinion = opinion;
7442
+ this.isImageOpinion = isImageOpinion;
7443
+ this.file = file;
7444
+ },
7133
7445
  getIsCanStartSubFlow: function getIsCanStartSubFlow() {
7134
7446
  var _this = this;
7135
7447
 
@@ -7346,6 +7658,8 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7346
7658
  nextOtherOrgObj = _infoList.nextOtherOrgObj,
7347
7659
  noticeType = _infoList.noticeType,
7348
7660
  noticeInfo = _infoList.noticeInfo,
7661
+ isImageOpinion = this.isImageOpinion,
7662
+ file = this.file,
7349
7663
  isOpinionRequired = this.isOpinionRequired,
7350
7664
  opinion = this.opinion,
7351
7665
  type = this.type,
@@ -7356,30 +7670,40 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7356
7670
  isSubFlow = this.isSubFlow,
7357
7671
  pendingId = this.pendingId;
7358
7672
 
7673
+ if (isOpinionRequired == 1 && !opinion && isImageOpinion == 0 || isOpinionRequired == 1 && isImageOpinion == 1 && !file) {
7674
+ return this.$toast('当前步骤必须输入意见!');
7675
+ }
7359
7676
  if (type == 'takeAdvice' && (nextCurrentOrgObj == '' || nextCurrentOrgObj == null && isHideCurrentOrg == 0) || isHideOtherOrg == 0 && nextOtherOrgObj == '' || nextOtherOrgObj == null) {
7360
7677
  return this.$toast('请选择处理对象!');
7361
7678
  } else if (isHideCurrentOrg == 0 && (nextOtherOrgObj == '' || nextOtherOrgObj == null)) {
7362
7679
  return this.$toast('请选择处理对象!');
7363
7680
  }
7364
-
7365
- if (isOpinionRequired == 1 && (opinion == '' || opinion == null)) {
7366
- return this.$toast('当前步骤必须输入意见!');
7681
+ var info = {
7682
+ opinion: opinion,
7683
+ pendingId: pendingId,
7684
+ nextOtherOrgObj: Array.isArray(nextOtherOrgObj) ? nextOtherOrgObj.join(',') : nextOtherOrgObj,
7685
+ nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj) ? nextCurrentOrgObj.join(',') : nextCurrentOrgObj,
7686
+ notificationMsg: noticeInfo,
7687
+ notificationType: noticeType.join(','),
7688
+ choiceDeptId: choiceDeptId,
7689
+ isSubFlow: isSubFlow,
7690
+ choiceOrgId: choiceOrgId
7691
+ };
7692
+ var formData = new FormData();
7693
+ if (isImageOpinion == 1) {
7694
+ formData.append('file', file);
7695
+ }
7696
+ formData.append('pendingId', pendingId);
7697
+ for (var key in info) {
7698
+ if (info[key] !== '' && info[key] !== undefined) {
7699
+ formData.append(key, info[key]);
7700
+ }
7367
7701
  }
7368
7702
  // if (this.type != 'startDraf' && this.type != 'unionSeal' && this.type != 'twoOfficesDispatch')
7369
7703
  // return this.$toast('暂未开放,敬请期待!');
7370
7704
  var param = {
7371
7705
  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
- },
7706
+ params: formData,
7383
7707
  headers: { Accept: 'application/json,text/plain' },
7384
7708
  type: 'post'
7385
7709
  };
@@ -7431,7 +7755,6 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7431
7755
  pendingId: this.pendingId
7432
7756
  }
7433
7757
  }).then(function (res) {
7434
- console.log(res, 'res');
7435
7758
  // const {
7436
7759
  // status,
7437
7760
  // message,
@@ -7486,8 +7809,8 @@ taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
7486
7809
 
7487
7810
  var taskUnionExamine_component = Object(componentNormalizer["a" /* default */])(
7488
7811
  components_taskUnionExaminevue_type_script_lang_js_,
7489
- taskUnionExaminevue_type_template_id_0cefc67d_render,
7490
- taskUnionExaminevue_type_template_id_0cefc67d_staticRenderFns,
7812
+ taskUnionExaminevue_type_template_id_70a11c5a_render,
7813
+ taskUnionExaminevue_type_template_id_70a11c5a_staticRenderFns,
7491
7814
  false,
7492
7815
  null,
7493
7816
  null,