sd-prison-select 1.0.17 → 1.0.19

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.
@@ -0,0 +1,3676 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("gxx-general-approve", [], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["gxx-general-approve"] = factory();
8
+ else
9
+ root["gxx-general-approve"] = factory();
10
+ })(typeof self !== 'undefined' ? self : this, function() {
11
+ return /******/ (function(modules) { // webpackBootstrap
12
+ /******/ // The module cache
13
+ /******/ var installedModules = {};
14
+ /******/
15
+ /******/ // The require function
16
+ /******/ function __webpack_require__(moduleId) {
17
+ /******/
18
+ /******/ // Check if module is in cache
19
+ /******/ if(installedModules[moduleId]) {
20
+ /******/ return installedModules[moduleId].exports;
21
+ /******/ }
22
+ /******/ // Create a new module (and put it into the cache)
23
+ /******/ var module = installedModules[moduleId] = {
24
+ /******/ i: moduleId,
25
+ /******/ l: false,
26
+ /******/ exports: {}
27
+ /******/ };
28
+ /******/
29
+ /******/ // Execute the module function
30
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
+ /******/
32
+ /******/ // Flag the module as loaded
33
+ /******/ module.l = true;
34
+ /******/
35
+ /******/ // Return the exports of the module
36
+ /******/ return module.exports;
37
+ /******/ }
38
+ /******/
39
+ /******/
40
+ /******/ // expose the modules object (__webpack_modules__)
41
+ /******/ __webpack_require__.m = modules;
42
+ /******/
43
+ /******/ // expose the module cache
44
+ /******/ __webpack_require__.c = installedModules;
45
+ /******/
46
+ /******/ // define getter function for harmony exports
47
+ /******/ __webpack_require__.d = function(exports, name, getter) {
48
+ /******/ if(!__webpack_require__.o(exports, name)) {
49
+ /******/ Object.defineProperty(exports, name, {
50
+ /******/ configurable: false,
51
+ /******/ enumerable: true,
52
+ /******/ get: getter
53
+ /******/ });
54
+ /******/ }
55
+ /******/ };
56
+ /******/
57
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
58
+ /******/ __webpack_require__.n = function(module) {
59
+ /******/ var getter = module && module.__esModule ?
60
+ /******/ function getDefault() { return module['default']; } :
61
+ /******/ function getModuleExports() { return module; };
62
+ /******/ __webpack_require__.d(getter, 'a', getter);
63
+ /******/ return getter;
64
+ /******/ };
65
+ /******/
66
+ /******/ // Object.prototype.hasOwnProperty.call
67
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
68
+ /******/
69
+ /******/ // __webpack_public_path__
70
+ /******/ __webpack_require__.p = "/dist/";
71
+ /******/
72
+ /******/ // Load entry module and return exports
73
+ /******/ return __webpack_require__(__webpack_require__.s = 5);
74
+ /******/ })
75
+ /************************************************************************/
76
+ /******/ ([
77
+ /* 0 */
78
+ /***/ (function(module, exports) {
79
+
80
+ /*
81
+ MIT License http://www.opensource.org/licenses/mit-license.php
82
+ Author Tobias Koppers @sokra
83
+ */
84
+ // css base code, injected by the css-loader
85
+ module.exports = function(useSourceMap) {
86
+ var list = [];
87
+
88
+ // return the list of modules as css string
89
+ list.toString = function toString() {
90
+ return this.map(function (item) {
91
+ var content = cssWithMappingToString(item, useSourceMap);
92
+ if(item[2]) {
93
+ return "@media " + item[2] + "{" + content + "}";
94
+ } else {
95
+ return content;
96
+ }
97
+ }).join("");
98
+ };
99
+
100
+ // import a list of modules into the list
101
+ list.i = function(modules, mediaQuery) {
102
+ if(typeof modules === "string")
103
+ modules = [[null, modules, ""]];
104
+ var alreadyImportedModules = {};
105
+ for(var i = 0; i < this.length; i++) {
106
+ var id = this[i][0];
107
+ if(typeof id === "number")
108
+ alreadyImportedModules[id] = true;
109
+ }
110
+ for(i = 0; i < modules.length; i++) {
111
+ var item = modules[i];
112
+ // skip already imported module
113
+ // this implementation is not 100% perfect for weird media query combinations
114
+ // when a module is imported multiple times with different media queries.
115
+ // I hope this will never occur (Hey this way we have smaller bundles)
116
+ if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
117
+ if(mediaQuery && !item[2]) {
118
+ item[2] = mediaQuery;
119
+ } else if(mediaQuery) {
120
+ item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
121
+ }
122
+ list.push(item);
123
+ }
124
+ }
125
+ };
126
+ return list;
127
+ };
128
+
129
+ function cssWithMappingToString(item, useSourceMap) {
130
+ var content = item[1] || '';
131
+ var cssMapping = item[3];
132
+ if (!cssMapping) {
133
+ return content;
134
+ }
135
+
136
+ if (useSourceMap && typeof btoa === 'function') {
137
+ var sourceMapping = toComment(cssMapping);
138
+ var sourceURLs = cssMapping.sources.map(function (source) {
139
+ return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
140
+ });
141
+
142
+ return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
143
+ }
144
+
145
+ return [content].join('\n');
146
+ }
147
+
148
+ // Adapted from convert-source-map (MIT)
149
+ function toComment(sourceMap) {
150
+ // eslint-disable-next-line no-undef
151
+ var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
152
+ var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
153
+
154
+ return '/*# ' + data + ' */';
155
+ }
156
+
157
+
158
+ /***/ }),
159
+ /* 1 */
160
+ /***/ (function(module, exports, __webpack_require__) {
161
+
162
+ /*
163
+ MIT License http://www.opensource.org/licenses/mit-license.php
164
+ Author Tobias Koppers @sokra
165
+ Modified by Evan You @yyx990803
166
+ */
167
+
168
+ var hasDocument = typeof document !== 'undefined'
169
+
170
+ if (typeof DEBUG !== 'undefined' && DEBUG) {
171
+ if (!hasDocument) {
172
+ throw new Error(
173
+ 'vue-style-loader cannot be used in a non-browser environment. ' +
174
+ "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
175
+ ) }
176
+ }
177
+
178
+ var listToStyles = __webpack_require__(9)
179
+
180
+ /*
181
+ type StyleObject = {
182
+ id: number;
183
+ parts: Array<StyleObjectPart>
184
+ }
185
+
186
+ type StyleObjectPart = {
187
+ css: string;
188
+ media: string;
189
+ sourceMap: ?string
190
+ }
191
+ */
192
+
193
+ var stylesInDom = {/*
194
+ [id: number]: {
195
+ id: number,
196
+ refs: number,
197
+ parts: Array<(obj?: StyleObjectPart) => void>
198
+ }
199
+ */}
200
+
201
+ var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
202
+ var singletonElement = null
203
+ var singletonCounter = 0
204
+ var isProduction = false
205
+ var noop = function () {}
206
+
207
+ // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
208
+ // tags it will allow on a page
209
+ var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
210
+
211
+ module.exports = function (parentId, list, _isProduction) {
212
+ isProduction = _isProduction
213
+
214
+ var styles = listToStyles(parentId, list)
215
+ addStylesToDom(styles)
216
+
217
+ return function update (newList) {
218
+ var mayRemove = []
219
+ for (var i = 0; i < styles.length; i++) {
220
+ var item = styles[i]
221
+ var domStyle = stylesInDom[item.id]
222
+ domStyle.refs--
223
+ mayRemove.push(domStyle)
224
+ }
225
+ if (newList) {
226
+ styles = listToStyles(parentId, newList)
227
+ addStylesToDom(styles)
228
+ } else {
229
+ styles = []
230
+ }
231
+ for (var i = 0; i < mayRemove.length; i++) {
232
+ var domStyle = mayRemove[i]
233
+ if (domStyle.refs === 0) {
234
+ for (var j = 0; j < domStyle.parts.length; j++) {
235
+ domStyle.parts[j]()
236
+ }
237
+ delete stylesInDom[domStyle.id]
238
+ }
239
+ }
240
+ }
241
+ }
242
+
243
+ function addStylesToDom (styles /* Array<StyleObject> */) {
244
+ for (var i = 0; i < styles.length; i++) {
245
+ var item = styles[i]
246
+ var domStyle = stylesInDom[item.id]
247
+ if (domStyle) {
248
+ domStyle.refs++
249
+ for (var j = 0; j < domStyle.parts.length; j++) {
250
+ domStyle.parts[j](item.parts[j])
251
+ }
252
+ for (; j < item.parts.length; j++) {
253
+ domStyle.parts.push(addStyle(item.parts[j]))
254
+ }
255
+ if (domStyle.parts.length > item.parts.length) {
256
+ domStyle.parts.length = item.parts.length
257
+ }
258
+ } else {
259
+ var parts = []
260
+ for (var j = 0; j < item.parts.length; j++) {
261
+ parts.push(addStyle(item.parts[j]))
262
+ }
263
+ stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
264
+ }
265
+ }
266
+ }
267
+
268
+ function createStyleElement () {
269
+ var styleElement = document.createElement('style')
270
+ styleElement.type = 'text/css'
271
+ head.appendChild(styleElement)
272
+ return styleElement
273
+ }
274
+
275
+ function addStyle (obj /* StyleObjectPart */) {
276
+ var update, remove
277
+ var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]')
278
+
279
+ if (styleElement) {
280
+ if (isProduction) {
281
+ // has SSR styles and in production mode.
282
+ // simply do nothing.
283
+ return noop
284
+ } else {
285
+ // has SSR styles but in dev mode.
286
+ // for some reason Chrome can't handle source map in server-rendered
287
+ // style tags - source maps in <style> only works if the style tag is
288
+ // created and inserted dynamically. So we remove the server rendered
289
+ // styles and inject new ones.
290
+ styleElement.parentNode.removeChild(styleElement)
291
+ }
292
+ }
293
+
294
+ if (isOldIE) {
295
+ // use singleton mode for IE9.
296
+ var styleIndex = singletonCounter++
297
+ styleElement = singletonElement || (singletonElement = createStyleElement())
298
+ update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
299
+ remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
300
+ } else {
301
+ // use multi-style-tag mode in all other cases
302
+ styleElement = createStyleElement()
303
+ update = applyToTag.bind(null, styleElement)
304
+ remove = function () {
305
+ styleElement.parentNode.removeChild(styleElement)
306
+ }
307
+ }
308
+
309
+ update(obj)
310
+
311
+ return function updateStyle (newObj /* StyleObjectPart */) {
312
+ if (newObj) {
313
+ if (newObj.css === obj.css &&
314
+ newObj.media === obj.media &&
315
+ newObj.sourceMap === obj.sourceMap) {
316
+ return
317
+ }
318
+ update(obj = newObj)
319
+ } else {
320
+ remove()
321
+ }
322
+ }
323
+ }
324
+
325
+ var replaceText = (function () {
326
+ var textStore = []
327
+
328
+ return function (index, replacement) {
329
+ textStore[index] = replacement
330
+ return textStore.filter(Boolean).join('\n')
331
+ }
332
+ })()
333
+
334
+ function applyToSingletonTag (styleElement, index, remove, obj) {
335
+ var css = remove ? '' : obj.css
336
+
337
+ if (styleElement.styleSheet) {
338
+ styleElement.styleSheet.cssText = replaceText(index, css)
339
+ } else {
340
+ var cssNode = document.createTextNode(css)
341
+ var childNodes = styleElement.childNodes
342
+ if (childNodes[index]) styleElement.removeChild(childNodes[index])
343
+ if (childNodes.length) {
344
+ styleElement.insertBefore(cssNode, childNodes[index])
345
+ } else {
346
+ styleElement.appendChild(cssNode)
347
+ }
348
+ }
349
+ }
350
+
351
+ function applyToTag (styleElement, obj) {
352
+ var css = obj.css
353
+ var media = obj.media
354
+ var sourceMap = obj.sourceMap
355
+
356
+ if (media) {
357
+ styleElement.setAttribute('media', media)
358
+ }
359
+
360
+ if (sourceMap) {
361
+ // https://developer.chrome.com/devtools/docs/javascript-debugging
362
+ // this makes source maps inside style tags work properly in Chrome
363
+ css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
364
+ // http://stackoverflow.com/a/26603875
365
+ css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
366
+ }
367
+
368
+ if (styleElement.styleSheet) {
369
+ styleElement.styleSheet.cssText = css
370
+ } else {
371
+ while (styleElement.firstChild) {
372
+ styleElement.removeChild(styleElement.firstChild)
373
+ }
374
+ styleElement.appendChild(document.createTextNode(css))
375
+ }
376
+ }
377
+
378
+
379
+ /***/ }),
380
+ /* 2 */
381
+ /***/ (function(module, exports) {
382
+
383
+ /* globals __VUE_SSR_CONTEXT__ */
384
+
385
+ // IMPORTANT: Do NOT use ES2015 features in this file.
386
+ // This module is a runtime utility for cleaner component module output and will
387
+ // be included in the final webpack user bundle.
388
+
389
+ module.exports = function normalizeComponent (
390
+ rawScriptExports,
391
+ compiledTemplate,
392
+ functionalTemplate,
393
+ injectStyles,
394
+ scopeId,
395
+ moduleIdentifier /* server only */
396
+ ) {
397
+ var esModule
398
+ var scriptExports = rawScriptExports = rawScriptExports || {}
399
+
400
+ // ES6 modules interop
401
+ var type = typeof rawScriptExports.default
402
+ if (type === 'object' || type === 'function') {
403
+ esModule = rawScriptExports
404
+ scriptExports = rawScriptExports.default
405
+ }
406
+
407
+ // Vue.extend constructor export interop
408
+ var options = typeof scriptExports === 'function'
409
+ ? scriptExports.options
410
+ : scriptExports
411
+
412
+ // render functions
413
+ if (compiledTemplate) {
414
+ options.render = compiledTemplate.render
415
+ options.staticRenderFns = compiledTemplate.staticRenderFns
416
+ options._compiled = true
417
+ }
418
+
419
+ // functional template
420
+ if (functionalTemplate) {
421
+ options.functional = true
422
+ }
423
+
424
+ // scopedId
425
+ if (scopeId) {
426
+ options._scopeId = scopeId
427
+ }
428
+
429
+ var hook
430
+ if (moduleIdentifier) { // server build
431
+ hook = function (context) {
432
+ // 2.3 injection
433
+ context =
434
+ context || // cached call
435
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
436
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
437
+ // 2.2 with runInNewContext: true
438
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
439
+ context = __VUE_SSR_CONTEXT__
440
+ }
441
+ // inject component styles
442
+ if (injectStyles) {
443
+ injectStyles.call(this, context)
444
+ }
445
+ // register component module identifier for async chunk inferrence
446
+ if (context && context._registeredComponents) {
447
+ context._registeredComponents.add(moduleIdentifier)
448
+ }
449
+ }
450
+ // used by ssr in case component is cached and beforeCreate
451
+ // never gets called
452
+ options._ssrRegister = hook
453
+ } else if (injectStyles) {
454
+ hook = injectStyles
455
+ }
456
+
457
+ if (hook) {
458
+ var functional = options.functional
459
+ var existing = functional
460
+ ? options.render
461
+ : options.beforeCreate
462
+
463
+ if (!functional) {
464
+ // inject component registration as beforeCreate hook
465
+ options.beforeCreate = existing
466
+ ? [].concat(existing, hook)
467
+ : [hook]
468
+ } else {
469
+ // for template-only hot-reload because in that case the render fn doesn't
470
+ // go through the normalizer
471
+ options._injectStyles = hook
472
+ // register for functioal component in vue file
473
+ options.render = function renderWithStyleInjection (h, context) {
474
+ hook.call(context)
475
+ return existing(h, context)
476
+ }
477
+ }
478
+ }
479
+
480
+ return {
481
+ esModule: esModule,
482
+ exports: scriptExports,
483
+ options: options
484
+ }
485
+ }
486
+
487
+
488
+ /***/ }),
489
+ /* 3 */
490
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
491
+
492
+ "use strict";
493
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_audit_methods__ = __webpack_require__(10);
494
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__flow_general_history_components_flow_general_history_vue__ = __webpack_require__(13);
495
+ //
496
+ //
497
+ //
498
+ //
499
+ //
500
+ //
501
+ //
502
+ //
503
+ //
504
+ //
505
+ //
506
+ //
507
+ //
508
+ //
509
+ //
510
+ //
511
+ //
512
+ //
513
+ //
514
+ //
515
+ //
516
+ //
517
+ //
518
+ //
519
+ //
520
+ //
521
+ //
522
+ //
523
+ //
524
+ //
525
+ //
526
+ //
527
+ //
528
+ //
529
+ //
530
+ //
531
+ //
532
+ //
533
+ //
534
+ //
535
+ //
536
+ //
537
+ //
538
+ //
539
+ //
540
+ //
541
+ //
542
+ //
543
+ //
544
+ //
545
+ //
546
+ //
547
+ //
548
+ //
549
+ //
550
+ //
551
+ //
552
+ //
553
+ //
554
+ //
555
+ //
556
+ //
557
+ //
558
+ //
559
+ //
560
+ //
561
+ //
562
+ //
563
+ //
564
+ //
565
+ //
566
+ //
567
+ //
568
+ //
569
+ //
570
+ //
571
+ //
572
+ //
573
+ //
574
+ //
575
+ //
576
+ //
577
+ //
578
+ //
579
+ //
580
+ //
581
+ //
582
+ //
583
+ //
584
+ //
585
+ //
586
+ //
587
+ //
588
+ //
589
+ //
590
+ //
591
+ //
592
+ //
593
+ //
594
+ //
595
+ //
596
+ //
597
+ //
598
+ //
599
+ //
600
+
601
+
602
+
603
+
604
+ /* harmony default export */ __webpack_exports__["a"] = ({
605
+ components: {
606
+ sGeneralHistory: __WEBPACK_IMPORTED_MODULE_1__flow_general_history_components_flow_general_history_vue__["a" /* default */]
607
+ },
608
+ mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_audit_methods__["a" /* default */]],
609
+ data: function data() {
610
+ return {
611
+ tabValue: 'sp',
612
+ showSp: true,
613
+ timer: new Date().getTime()
614
+ };
615
+ },
616
+
617
+ watch: {
618
+ delegationState: function delegationState(val) {
619
+ if (val == "PENDING") {
620
+ this.delegationName = "【委派】";
621
+ } else {
622
+ this.delegationName = "";
623
+ }
624
+ },
625
+ isLastUserTask: function isLastUserTask(val) {
626
+ if (val) {
627
+ this.formValidate.approvalContent = "同意";
628
+ } else {
629
+ this.formValidate.approvalContent = "同意上报";
630
+ }
631
+ }
632
+ }
633
+ });
634
+
635
+ /***/ }),
636
+ /* 4 */
637
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
638
+
639
+ "use strict";
640
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user__ = __webpack_require__(16);
641
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user__);
642
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_track_methods__ = __webpack_require__(17);
643
+ //
644
+ //
645
+ //
646
+ //
647
+ //
648
+ //
649
+ //
650
+ //
651
+ //
652
+ //
653
+ //
654
+ //
655
+ //
656
+ //
657
+ //
658
+ //
659
+ //
660
+ //
661
+ //
662
+ //
663
+ //
664
+ //
665
+ //
666
+ //
667
+ //
668
+ //
669
+ //
670
+ //
671
+ //
672
+ //
673
+ //
674
+ //
675
+ //
676
+ //
677
+ //
678
+ //
679
+ //
680
+ //
681
+ //
682
+ //
683
+ //
684
+ //
685
+ //
686
+ //
687
+ //
688
+ //
689
+ //
690
+ //
691
+ //
692
+ //
693
+ //
694
+ //
695
+ //
696
+ //
697
+ //
698
+ //
699
+ //
700
+ //
701
+ //
702
+ //
703
+ //
704
+ //
705
+ //
706
+ //
707
+ //
708
+ //
709
+ //
710
+ //
711
+ //
712
+ //
713
+ //
714
+ //
715
+ //
716
+ //
717
+ //
718
+ //
719
+ //
720
+ //
721
+ //
722
+ //
723
+ //
724
+ //
725
+ //
726
+ //
727
+ //
728
+ //
729
+ //
730
+ //
731
+ //
732
+ //
733
+ //
734
+ //
735
+ //
736
+ //
737
+ //
738
+ //
739
+ //
740
+ //
741
+ //
742
+ //
743
+ //
744
+ //
745
+ //
746
+ //
747
+ //
748
+ //
749
+ //
750
+ //
751
+ //
752
+ //
753
+ //
754
+ //
755
+ //
756
+ //
757
+ //
758
+ //
759
+ //
760
+ //
761
+ //
762
+ //
763
+ //
764
+ //
765
+ //
766
+ //
767
+ //
768
+ //
769
+ //
770
+ //
771
+ //
772
+ //
773
+ //
774
+ //
775
+ //
776
+ //
777
+ //
778
+ //
779
+ //
780
+ //
781
+ //
782
+ //
783
+ //
784
+ //
785
+ //
786
+ //
787
+ //
788
+ //
789
+ //
790
+ //
791
+ //
792
+ //
793
+ //
794
+ //
795
+ //
796
+ //
797
+ //
798
+ //
799
+ //
800
+ //
801
+ //
802
+ //
803
+ //
804
+ //
805
+ //
806
+ //
807
+ //
808
+ //
809
+ //
810
+ //
811
+ //
812
+ //
813
+ //
814
+ //
815
+ //
816
+ //
817
+ //
818
+ //
819
+ //
820
+ //
821
+ //
822
+ //
823
+ //
824
+ //
825
+ //
826
+ //
827
+ //
828
+ //
829
+ //
830
+ //
831
+ //
832
+ //
833
+ //
834
+ //
835
+ //
836
+ //
837
+ //
838
+ //
839
+ //
840
+ //
841
+ //
842
+ //
843
+ //
844
+ //
845
+ //
846
+ //
847
+ //
848
+ //
849
+ //
850
+ //
851
+ //
852
+ //
853
+ //
854
+ //
855
+ //
856
+ //
857
+ //
858
+ //
859
+ //
860
+ //
861
+ //
862
+ //
863
+ //
864
+ //
865
+ //
866
+ //
867
+ //
868
+ //
869
+ //
870
+ //
871
+ //
872
+ //
873
+ //
874
+ //
875
+ //
876
+ //
877
+ //
878
+ //
879
+ //
880
+ //
881
+ //
882
+ //
883
+ //
884
+ //
885
+ //
886
+ //
887
+ //
888
+ //
889
+ //
890
+ //
891
+ //
892
+ //
893
+ //
894
+ //
895
+ //
896
+ //
897
+ //
898
+
899
+
900
+
901
+
902
+ /* harmony default export */ __webpack_exports__["a"] = ({
903
+ components: {
904
+ modifyApproveUser: __WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user__["modifyApproveUser"]
905
+ },
906
+ mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_track_methods__["a" /* default */]],
907
+ props: {},
908
+ data: function data() {
909
+ return {};
910
+ },
911
+
912
+ filters: {
913
+ dateFormat: function dateFormat(dateStr) {
914
+ var date = new Date(dateStr);
915
+ var year = date.getFullYear();
916
+ /* 在日期格式中,月份是从0开始的,因此要加0使用三元表达式在小于10的前面加0,以达到格式统一 如 09:11:05 */
917
+ var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
918
+ var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
919
+ var hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
920
+ var minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
921
+ var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
922
+ // 拼接
923
+ return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
924
+ }
925
+ },
926
+ mounted: function mounted() {
927
+ this.getApprovalTrack();
928
+ },
929
+
930
+ methods: {
931
+ callbackSuccess: function callbackSuccess(data) {
932
+ var _this = this;
933
+
934
+ if (this.modifyUserCallback) {
935
+ this.getApprovalTrack();
936
+ return this.modifyUserCallback(data);
937
+ } else {
938
+ // 重新获取审批历史
939
+ return new Promise(function (resolve, reject) {
940
+ var that = _this;
941
+ _this.getApprovalTrack();
942
+ setTimeout(function () {
943
+ that.$Modal.success({
944
+ title: '温馨提示',
945
+ content: '修改审批人成功'
946
+ });
947
+ resolve({ success: true });
948
+ }, 1000);
949
+ });
950
+ }
951
+ },
952
+ testErr: function testErr() {
953
+ var _this2 = this;
954
+
955
+ return new Promise(function (resolve, reject) {
956
+ var that = _this2;
957
+ setTimeout(function () {
958
+ that.$Modal.error({
959
+ title: '温馨提示',
960
+ content: '修改审批人失败,请稍后重试'
961
+ });
962
+ resolve({ success: false });
963
+ }, 1000);
964
+ });
965
+ }
966
+ }
967
+ });
968
+
969
+ /***/ }),
970
+ /* 5 */
971
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
972
+
973
+ "use strict";
974
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
975
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_flow_general_audit_vue__ = __webpack_require__(6);
976
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "GeneralApprove", function() { return __WEBPACK_IMPORTED_MODULE_0__components_flow_general_audit_vue__["a"]; });
977
+
978
+ var Plugin = {
979
+ install: function install(Vue) {
980
+ Vue.component('general-approve', __WEBPACK_IMPORTED_MODULE_0__components_flow_general_audit_vue__["a" /* default */]);
981
+ }
982
+ };
983
+
984
+ /* harmony default export */ __webpack_exports__["default"] = (Plugin);
985
+
986
+ /***/ }),
987
+ /* 6 */
988
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
989
+
990
+ "use strict";
991
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_audit_vue__ = __webpack_require__(3);
992
+ /* unused harmony namespace reexport */
993
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_3c1754b7_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_audit_vue__ = __webpack_require__(20);
994
+ function injectStyle (ssrContext) {
995
+ __webpack_require__(7)
996
+ }
997
+ var normalizeComponent = __webpack_require__(2)
998
+ /* script */
999
+
1000
+
1001
+ /* template */
1002
+
1003
+ /* template functional */
1004
+ var __vue_template_functional__ = false
1005
+ /* styles */
1006
+ var __vue_styles__ = injectStyle
1007
+ /* scopeId */
1008
+ var __vue_scopeId__ = "data-v-3c1754b7"
1009
+ /* moduleIdentifier (server only) */
1010
+ var __vue_module_identifier__ = null
1011
+ var Component = normalizeComponent(
1012
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_audit_vue__["a" /* default */],
1013
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_3c1754b7_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_audit_vue__["a" /* default */],
1014
+ __vue_template_functional__,
1015
+ __vue_styles__,
1016
+ __vue_scopeId__,
1017
+ __vue_module_identifier__
1018
+ )
1019
+
1020
+ /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
1021
+
1022
+
1023
+ /***/ }),
1024
+ /* 7 */
1025
+ /***/ (function(module, exports, __webpack_require__) {
1026
+
1027
+ // style-loader: Adds some css to the DOM by adding a <style> tag
1028
+
1029
+ // load the styles
1030
+ var content = __webpack_require__(8);
1031
+ if(typeof content === 'string') content = [[module.i, content, '']];
1032
+ if(content.locals) module.exports = content.locals;
1033
+ // add the styles to the DOM
1034
+ var update = __webpack_require__(1)("5e1dfc74", content, true);
1035
+
1036
+ /***/ }),
1037
+ /* 8 */
1038
+ /***/ (function(module, exports, __webpack_require__) {
1039
+
1040
+ exports = module.exports = __webpack_require__(0)(false);
1041
+ // imports
1042
+
1043
+
1044
+ // module
1045
+ exports.push([module.i, ".uni-ctnt[data-v-3c1754b7]{padding:5px 0 20px}.uni-sel[data-v-3c1754b7]{display:flex}.uni-sel>.sel[data-v-3c1754b7]{width:80%}.uni-sel>.check[data-v-3c1754b7]{width:20%;margin-left:20px}.uni-list[data-v-3c1754b7]{max-height:100px;overflow:auto;width:500px}[data-v-3c1754b7] .bsp-flow-modal .ivu-modal-header{padding:0}[data-v-3c1754b7] .bsp-flow-modal .ivu-icon-ios-close{font-size:32px}[data-v-3c1754b7] .bsp-flow-modal .ivu-tag-text{font-size:16px}[data-v-3c1754b7] .bsp-flow-modal .ivu-tag-dot{padding:0 8px}[data-v-3c1754b7] .bsp-flow-modal .ivu-tag-dot-inner{margin-right:2px}[data-v-3c1754b7] .bsp-flow-modal .ivu-tag .ivu-icon-ios-close{font-size:18px;top:1px;margin-left:4px!important}[data-v-3c1754b7] .ivu-form .ivu-form-item-label,[data-v-3c1754b7] textarea.ivu-input{font-size:16px}[data-v-3c1754b7] .bsp-flow-modal .bsp-sel-user .ivu-icon-md-add{font-size:18px}[data-v-3c1754b7] .bsp-flow-modal .bsp-sel-user>.ivu-icon+span,[data-v-3c1754b7] .bsp-flow-modal .bsp-sel-user>span+.ivu-icon{margin-left:0;font-size:16px}[data-v-3c1754b7] .ivu-select-input{font-size:16px}[data-v-3c1754b7] .ivu-select-item{font-size:16px!important}[data-v-3c1754b7] .ivu-checkbox-wrapper{font-size:16px}[data-v-3c1754b7] .ivu-form-item{margin-bottom:0;padding-bottom:10px}[data-v-3c1754b7] .ivu-modal-body{max-height:450px;overflow-y:auto;overflow-x:hidden}[data-v-3c1754b7] .ivu-modal-footer{height:50px;line-height:50px;padding:0 12px}.bsp-flow-modal .bsp-flow-modal-title[data-v-3c1754b7]{height:40px;background:#2b5fda;width:100%;text-indent:1em;color:#fff;line-height:40px;font-size:15px}.bsp-flow-people-ctnt>div[data-v-3c1754b7]{display:inline-block}.bsp-flow-modal [data-v-3c1754b7]::-webkit-scrollbar{width:5px;height:1px}.bsp-flow-modal [data-v-3c1754b7]::-webkit-scrollbar-thumb{border-radius:3px;box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#c9c9c9}.bsp-flow-modal [data-v-3c1754b7]::-webkit-scrollbar-track{box-shadow:inset 0 0 5px rgba(0,0,0,.2);border-radius:4px;background:#ededed}.cancle-button[data-v-3c1754b7],.submit-button[data-v-3c1754b7]{min-width:60px;font-size:14px;border-radius:0}.cancle-button[data-v-3c1754b7]{border:1px solid #2b5fd9;color:#2b5fd9;background-color:#fff}.submit-button[data-v-3c1754b7]{border:1px solid #2b5fd9;color:#fff;background-color:#2b5fd9}.tip-container[data-v-3c1754b7]{margin-top:10px;background-color:#f2f6fc;padding:16px}.tip-container .tip-title[data-v-3c1754b7]{font-size:16px;font-weight:700;padding-right:10px}.tip-container .tip-warning[data-v-3c1754b7]{color:#e60012;font-weight:16px}.tip-container p[data-v-3c1754b7]{font-size:16px;margin:20px}.bsp-approve[data-v-3c1754b7]{background:#fafbff;border-radius:0 0 0 0;border:1px solid #cee0f0;padding:16px 16px 2px 0;margin-top:16px}.footer-approve[data-v-3c1754b7]{text-align:center;margin:0 16px 16px}.bsp-general-wrap[data-v-3c1754b7]{width:99%;font-family:\"Noto Sans TC, Microsoft YaHei, Segoe UI, Tahoma, Arial, Verdana, sans-serif\"}.bsp-general-wrap[data-v-3c1754b7] .ivu-tabs-tab{font-size:18px!important}.bsp-general-wrap[data-v-3c1754b7] .ivu-tabs-tab-active{font-weight:700!important}", ""]);
1046
+
1047
+ // exports
1048
+
1049
+
1050
+ /***/ }),
1051
+ /* 9 */
1052
+ /***/ (function(module, exports) {
1053
+
1054
+ /**
1055
+ * Translates the list format produced by css-loader into something
1056
+ * easier to manipulate.
1057
+ */
1058
+ module.exports = function listToStyles (parentId, list) {
1059
+ var styles = []
1060
+ var newStyles = {}
1061
+ for (var i = 0; i < list.length; i++) {
1062
+ var item = list[i]
1063
+ var id = item[0]
1064
+ var css = item[1]
1065
+ var media = item[2]
1066
+ var sourceMap = item[3]
1067
+ var part = {
1068
+ id: parentId + ':' + i,
1069
+ css: css,
1070
+ media: media,
1071
+ sourceMap: sourceMap
1072
+ }
1073
+ if (!newStyles[id]) {
1074
+ styles.push(newStyles[id] = { id: id, parts: [part] })
1075
+ } else {
1076
+ newStyles[id].parts.push(part)
1077
+ }
1078
+ }
1079
+ return styles
1080
+ }
1081
+
1082
+
1083
+ /***/ }),
1084
+ /* 10 */
1085
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1086
+
1087
+ "use strict";
1088
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__data__ = __webpack_require__(11);
1089
+
1090
+
1091
+ /* harmony default export */ __webpack_exports__["a"] = ({
1092
+ mixins: [__WEBPACK_IMPORTED_MODULE_0__data__["a" /* default */]],
1093
+ mounted: function mounted() {
1094
+ this.getCurrentApprovalTrack();
1095
+ },
1096
+
1097
+ methods: {
1098
+ getFormField: function getFormField() {
1099
+ var _this = this;
1100
+
1101
+ if (this.formId) {
1102
+ this.$store.dispatch('postRequest', {
1103
+ url: '/bsp-com/com/form/getFormFieldByFormId',
1104
+ params: {
1105
+ formId: this.formId
1106
+ }
1107
+ }).then(function (resp) {
1108
+ if (resp.success) {
1109
+ if (resp.data && resp.data.length > 0) {
1110
+ resp.data.forEach(function (item) {
1111
+ if (item.isMain == '1') {
1112
+ _this.formArr = item.children;
1113
+ var obj = {};
1114
+ var keyName = '';
1115
+ _this.formArr.forEach(function (ele) {
1116
+ if (ele.isProcessVar && ele.isProcessVar == '1') {
1117
+ keyName = ele.fieldName;
1118
+ obj[keyName] = _this.formDataVarObj[ele.fieldName];
1119
+ }
1120
+ });
1121
+ _this.ProcessVarObj = obj;
1122
+ }
1123
+ });
1124
+ _this.getAduitApprovalUser();
1125
+ } else {
1126
+ _this.getAduitApprovalUser();
1127
+ }
1128
+ }
1129
+ });
1130
+ }
1131
+ },
1132
+ getForm: function getForm() {
1133
+ var _this2 = this;
1134
+
1135
+ var params = {
1136
+ operType: this.operType,
1137
+ formId: this.formId,
1138
+ businessId: this.businessId
1139
+ };
1140
+ this.$store.dispatch('postRequest', {
1141
+ url: '/bsp-com/com/form/handle/getFormData',
1142
+ params: params
1143
+ }).then(function (resp) {
1144
+ if (resp.success) {
1145
+ // console.log(resp,resp.success,'resp.data')
1146
+ _this2.formDataVarObj = resp.formData;
1147
+ _this2.getFormField();
1148
+ } else {
1149
+ _this2.warnSwal('文书模版加载出错。原因:' + resp.msg);
1150
+ }
1151
+ });
1152
+ },
1153
+ initData: function initData() {
1154
+ if (this.businessId === '') {
1155
+ this.warnSwal('未设置业务编号[businessId]。');
1156
+ return;
1157
+ }
1158
+ if (this.module === '') {
1159
+ this.warnSwal('未设置模块名称[module]。');
1160
+ }
1161
+ },
1162
+
1163
+ // 获取当前审批节点
1164
+ getCurrentApprovalTrack: function getCurrentApprovalTrack() {
1165
+ var _this3 = this;
1166
+
1167
+ if (!this.actInstId) {
1168
+ this.warnSwal('流程实例ID不能为空');
1169
+ return;
1170
+ }
1171
+ this.$store.dispatch('postRequest', {
1172
+ url: 'bsp-bpm/bpm/approveProcess/currentApprovalTrack',
1173
+ params: {
1174
+ actInstId: this.actInstId
1175
+ }
1176
+ }).then(function (resp) {
1177
+ if (resp.success) {
1178
+ _this3.hasApproveAuth = true;
1179
+ _this3.showSp = true;
1180
+ _this3.$nextTick(function () {
1181
+ if (this.bindEvent && this.$slots.func) {
1182
+ this.reference = this.$slots.func[0].elm;
1183
+ if (this.reference) {
1184
+ this.reference.addEventListener('click', this.openAudit);
1185
+ }
1186
+ }
1187
+ });
1188
+
1189
+ _this3.currentNodeName = resp.currentNodeName;
1190
+ _this3.isLastUserTask = resp.isLastUserTask;
1191
+ _this3.formValidate.taskId = resp.taskId;
1192
+ _this3.showTc = resp.firstNodeShowTc;
1193
+ _this3.initBtn(resp.buttons);
1194
+ _this3.formId ? _this3.getForm() : _this3.getAduitApprovalUser();
1195
+ if (resp.isLastUserTask || resp.delegationState == 'PENDING') {
1196
+ _this3.showApproveUser = false;
1197
+ }
1198
+ _this3.delegationState = resp.delegationState;
1199
+ _this3.currentNodeId = resp.currentNodeId ? resp.currentNodeId : '';
1200
+
1201
+ _this3.getButtonByInstIdAndNodeId(_this3.actInstId, resp.currentNodeId);
1202
+
1203
+ _this3.rollbackNodeList = resp.rollbackNodeList;
1204
+ if (_this3.rollbackNodeList && _this3.rollbackNodeList.length > 0) {
1205
+ _this3.formValidate.backNodeId = _this3.rollbackNodeList[0]['id'];
1206
+ }
1207
+
1208
+ // 组装当前任务节点信息
1209
+ _this3.currTask.currentNodeName = resp.currentNodeName;
1210
+ _this3.currTask.taskId = resp.taskId;
1211
+ _this3.currTask.isLastUserTask = resp.isLastUserTask;
1212
+ _this3.currTask.firstNodeShowTc = resp.firstNodeShowTc;
1213
+ _this3.currTask.delegationState = resp.delegationState;
1214
+ _this3.currTask.currentNodeId = resp.currentNodeId;
1215
+ _this3.currTask.isFirstNode = resp.isFirstNode;
1216
+ _this3.currTask.buttons = resp.buttons;
1217
+ _this3.currTask.rollbackNodeList = resp.rollbackNodeList;
1218
+ _this3.currTask.curentTaskApproveUser = resp.curentTaskApproveUser;
1219
+
1220
+ // 判断当前节点是否为法制审核节点
1221
+ // this.justFzshCurNode()
1222
+ } else {
1223
+ _this3.hasApproveAuth = false;
1224
+ _this3.showSp = false;
1225
+ _this3.tabValue = 'flow';
1226
+ }
1227
+ _this3.$emit('init', _this3.hasApproveAuth);
1228
+ });
1229
+ },
1230
+
1231
+ // 判断当前节点是否为法制审核节点
1232
+ justFzshCurNode: function justFzshCurNode() {
1233
+ var _this4 = this;
1234
+
1235
+ this.postRequest({
1236
+ url: 'bsp-bpm/bpm/nodeSetting/isFzsh',
1237
+ params: {
1238
+ actInstId: this.actInstId,
1239
+ nodeId: this.currentNodeId
1240
+ }
1241
+ }).then(function (resp) {
1242
+ if (resp.success) {
1243
+ // 是否需要法制审核
1244
+ _this4.curNodeSffzsh = resp.sffzsh;
1245
+ }
1246
+ });
1247
+ },
1248
+
1249
+ // 判断所选择的节点是否需要法制审核
1250
+ justFzshNextNode: function justFzshNextNode() {
1251
+ var _this5 = this;
1252
+
1253
+ if (this.selectNode) {
1254
+ this.postRequest({
1255
+ url: 'bsp-bpm/bpm/nodeSetting/isFzsh',
1256
+ params: {
1257
+ actInstId: this.actInstId,
1258
+ nodeId: this.selectNode
1259
+ }
1260
+ }).then(function (resp) {
1261
+ if (resp.success) {
1262
+ // 是否需要法制审核
1263
+ _this5.selectNodeSffzsh = resp.sffzsh;
1264
+ if (_this5.selectNodeSffzsh) {
1265
+ // 审核结果修改
1266
+ _this5.optionsBtnArr.forEach(function (item) {
1267
+ if (item.code == 1) item.name = '流转法制';
1268
+ });
1269
+ } else {
1270
+ _this5.optionsBtnArr.forEach(function (item) {
1271
+ if (item.code == 1) item.name = _this5.curAgreeButtonName;
1272
+ });
1273
+ }
1274
+ }
1275
+ });
1276
+ }
1277
+ },
1278
+ initBtn: function initBtn(data) {
1279
+ var _this6 = this;
1280
+
1281
+ this.customBtnArr = [];
1282
+ this.optionsBtnArr = [];
1283
+
1284
+ if (data && data.length < 1) return;
1285
+
1286
+ // 默认先初始化按钮
1287
+ // this.formValidate.isApprove = data[0].code
1288
+ // this.formValidate.isApproveStr = data[0].name
1289
+ // this.formValidate.approvalContent = data[0].defaultOption
1290
+
1291
+ data.map(function (item) {
1292
+ if (item.type == '1') {
1293
+ _this6.customBtnArr.push(item);
1294
+ } else {
1295
+ _this6.optionsBtnArr.push(item);
1296
+ }
1297
+ });
1298
+
1299
+ this.isApproveChange(data[0].code);
1300
+
1301
+ this.optionsBtnArr.forEach(function (item) {
1302
+ if (item.code == 1) _this6.curAgreeButtonName = item.name;
1303
+ });
1304
+ },
1305
+ onSelectNode: function onSelectNode(nodeId) {
1306
+ var _this7 = this;
1307
+
1308
+ this.nextNodeList.forEach(function (item) {
1309
+ if (item.nodeId == nodeId) {
1310
+ _this7.orgArr = item.orgUser;
1311
+ }
1312
+ });
1313
+ // 清空单位值,清空复选框
1314
+ /* this.orgUserList = []
1315
+ this.selectOrgArr = [] */
1316
+ // 默认选中第一项
1317
+ if (this.orgArr && this.orgArr.length > 0) {
1318
+ this.orgSelectEvent({
1319
+ label: this.orgArr[0].orgName,
1320
+ value: this.orgArr[0].orgId
1321
+ });
1322
+ this.selectOrgArr = [];
1323
+ this.selectOrgArr.push(this.orgArr[0].orgId);
1324
+ }
1325
+
1326
+ // 判断所选择的节点是否需要法制审核
1327
+ // this.justFzshNextNode()
1328
+ },
1329
+ checkAllGroupChange: function checkAllGroupChange(data) {
1330
+ var count = 0;
1331
+ this.orgUserList.forEach(function (item) {
1332
+ item.user.forEach(function (item) {
1333
+ count++;
1334
+ });
1335
+ });
1336
+ if (data.length === count) {
1337
+ this.indeterminate = false;
1338
+ this.checkAll = true;
1339
+ } else if (data.length > 0) {
1340
+ this.indeterminate = true;
1341
+ this.checkAll = false;
1342
+ } else {
1343
+ this.indeterminate = false;
1344
+ this.checkAll = false;
1345
+ }
1346
+ },
1347
+ handleCheckAll: function handleCheckAll() {
1348
+ var _this8 = this;
1349
+
1350
+ if (this.indeterminate) {
1351
+ this.checkAll = false;
1352
+ } else {
1353
+ this.checkAll = !this.checkAll;
1354
+ }
1355
+ this.indeterminate = false;
1356
+ if (this.checkAll) {
1357
+ this.orgUserList.forEach(function (item) {
1358
+ item.user.forEach(function (item) {
1359
+ _this8.checkedUser.push(item.userIdCard + '_' + item.orgCode);
1360
+ });
1361
+ });
1362
+ } else {
1363
+ this.checkedUser = [];
1364
+ }
1365
+ },
1366
+ getAduitApprovalUser: function getAduitApprovalUser() {
1367
+ var _this9 = this;
1368
+
1369
+ var formProcessVar = '';
1370
+ this.formId ? formProcessVar = JSON.stringify(this.ProcessVarObj) : '';
1371
+
1372
+ this.$store.dispatch('postRequest', {
1373
+ url: 'bsp-bpm/bpm/approveProcess/getApproveUser',
1374
+ params: {
1375
+ actInstId: this.actInstId,
1376
+ userId: this.assigneeUserId,
1377
+ extraOrgId: this.extraOrgId,
1378
+ extraRegId: this.extraRegId,
1379
+ extraCityId: this.extraCityId,
1380
+ formProcessVar: formProcessVar
1381
+ }
1382
+ }).then(function (resp) {
1383
+ if (resp.success) {
1384
+ var _data = resp.data;
1385
+ var nodeData = _data && _data.length > 0 ? _data[0] : {};
1386
+ // 如果下一节点是排它网关
1387
+ if (nodeData && nodeData.nodeType && nodeData.nodeType == 'exclusiveGateway') {
1388
+ _this9.nextNodeList = nodeData.orgUserList;
1389
+ // 默认选中第一个节点
1390
+ // this.selectNode = this.nextNodeList[0].nodeId
1391
+ // this.orgArr = this.nextNodeList[0].orgUser
1392
+ // 判断所选择的节点是否需要法制审核
1393
+ // this.justFzshNextNode()
1394
+ return;
1395
+ }
1396
+ // 当下一节点不是排它网关时
1397
+ _this9.selectNode = nodeData.nodeId;
1398
+ // 判断下一节点是否需要法制审核
1399
+ // this.justFzshNextNode()
1400
+ // 获取机构用户列表
1401
+ var orgUserList = nodeData.orgUserList;
1402
+ _this9.orgArr = orgUserList;
1403
+ // 默认选中第一项
1404
+ if (orgUserList && orgUserList.length > 0) {
1405
+ var selectOrg = _this9.getSelectOrg(orgUserList, _this9.extraOrgId, _this9.extraRegId);
1406
+ console.log(selectOrg, 'selectOrg');
1407
+ _this9.orgSelectEvent({
1408
+ label: selectOrg.orgName,
1409
+ value: selectOrg.orgId
1410
+ }, true);
1411
+ _this9.selectOrgArr.push(selectOrg.orgId);
1412
+ }
1413
+ }
1414
+ });
1415
+ },
1416
+ getSelectOrg: function getSelectOrg(orgUserList, extraOrgId, extraRegId) {
1417
+ var extraOrgIdArr = extraOrgId ? extraOrgId.split(',') : [];
1418
+ var extraRegionIdArr = extraRegId ? extraRegId.split(',') : [];
1419
+ // 先根据机构id匹配
1420
+ for (var i in extraOrgIdArr) {
1421
+ var matchOrgIdVal = extraOrgIdArr[i];
1422
+ for (var j in orgUserList) {
1423
+ var item = orgUserList[j];
1424
+ if (matchOrgIdVal === item['orgId']) {
1425
+ return item;
1426
+ }
1427
+ }
1428
+ }
1429
+ // 根据机构id没有匹配到时再根据区域id匹配
1430
+ for (var _i in extraRegionIdArr) {
1431
+ var matchRegionId = extraRegionIdArr[_i];
1432
+ for (var _j in orgUserList) {
1433
+ var _item = orgUserList[_j];
1434
+ if (matchRegionId === _item['regId']) {
1435
+ return _item;
1436
+ }
1437
+ }
1438
+ }
1439
+ // 都没匹配到就默认第一个
1440
+ return orgUserList[0];
1441
+ },
1442
+ orgSelectEvent: function orgSelectEvent(option, selectTag) {
1443
+ var _this10 = this;
1444
+
1445
+ // 默认全选
1446
+ this.indeterminate = false;
1447
+ this.checkAll = true;
1448
+ var index = this.orgArr.findIndex(function (item) {
1449
+ return item.orgId == option.value;
1450
+ });
1451
+ this.orgUserList = [];
1452
+ this.checkedUser = [];
1453
+ this.orgUserList.push(this.orgArr[index]);
1454
+ if (this.selectUsers && selectTag) {
1455
+ var selectUsersArr = this.selectUsers.split(',');
1456
+ this.orgArr[index].user.map(function (item) {
1457
+ return selectUsersArr.forEach(function (ele) {
1458
+ if (item.userIdCard == ele) {
1459
+ _this10.checkedUser.push(item.userIdCard + '_' + item.orgCode);
1460
+ }
1461
+ });
1462
+ });
1463
+ // 如果默认人员不存在 设置全选
1464
+ if (this.checkedUser && this.candidateUsers && this.candidateUsers.length == 0) {
1465
+ this.orgArr[index].user.map(function (item) {
1466
+ return _this10.checkedUser.push(item.userIdCard + '_' + item.orgCode);
1467
+ });
1468
+ }
1469
+ if (this.checkedUser.length == this.orgArr[index].user.length) {
1470
+ this.indeterminate = false;
1471
+ this.checkAll = true;
1472
+ } else {
1473
+ this.indeterminate = true;
1474
+ this.checkAll = false;
1475
+ }
1476
+ } else {
1477
+ this.orgArr[index].user.map(function (item) {
1478
+ return _this10.checkedUser.push(item.userIdCard + '_' + item.orgCode);
1479
+ });
1480
+ }
1481
+
1482
+ // // 判断当前项是选中还是取消选中
1483
+ // let selectIndex = this.selectOrgArr.findIndex(
1484
+ // (item) => option.value == item
1485
+ // );
1486
+ //
1487
+ // // 获取当前选中的机构对应用户
1488
+ // let index = this.orgArr.findIndex((item) => {
1489
+ // return item.orgId == option.value;
1490
+ // });
1491
+ //
1492
+ // if (selectIndex > -1) {
1493
+ // // 取消选中
1494
+ // this.orgArr[index].user.map((item) => {
1495
+ // let userIndex = this.checkedUser.findIndex(
1496
+ // (userIdCard) => userIdCard == item.userIdCard
1497
+ // );
1498
+ // if (userIndex > -1) this.checkedUser.splice(userIndex, 1);
1499
+ // });
1500
+ //
1501
+ // // 获取当前选中的机构对应用户
1502
+ // let orgUserIndex = this.orgUserList.findIndex((item) => {
1503
+ // return item.orgId == option.value;
1504
+ // });
1505
+ //
1506
+ // this.orgUserList.splice(orgUserIndex, 1);
1507
+ // } else {
1508
+ // // 选中
1509
+ // this.orgUserList.push(this.orgArr[index]);
1510
+ // this.orgArr[index].user.map((item) =>
1511
+ // this.checkedUser.push(item.userIdCard)
1512
+ // );
1513
+ // }
1514
+ },
1515
+ handleSubmit: function handleSubmit(name) {
1516
+ var _this11 = this;
1517
+
1518
+ if (this.formValidate.isApprove == 4) {
1519
+ this.ruleValidate.delegateUserName[0].required = true;
1520
+ } else if (this.formValidate.isApprove == 5) {
1521
+ this.ruleValidate.approveCheckedUser[0].required = false;
1522
+ this.ruleValidate.delegateUserName[0].required = false;
1523
+ } else if (this.formValidate.isApprove == 1 && !this.isLastUserTask) {
1524
+ if (this.checkedUser.length < 1) {
1525
+ this.$Notice.error({
1526
+ title: '错误提示',
1527
+ desc: '请选择审批人'
1528
+ });
1529
+ return;
1530
+ }
1531
+ this.ruleValidate.delegateUserName[0].required = false;
1532
+ } else {
1533
+ this.ruleValidate.delegateUserName[0].required = false;
1534
+ }
1535
+
1536
+ this.$refs[name].validate(function (valid) {
1537
+ if (valid) {
1538
+ if (!_this11.customizeValidate()) return;
1539
+ _this11.custom_loading = true;
1540
+ if (_this11.beforeAudit) {
1541
+ _this11.beforeAudit({
1542
+ 'formData': _this11.formValidate,
1543
+ 'currTask': _this11.currTask
1544
+ }).then(function (data) {
1545
+ if (data) {
1546
+ _this11.approval();
1547
+ } else {
1548
+ _this11.custom_loading = false;
1549
+ }
1550
+ }).catch(function (err) {
1551
+ _this11.custom_loading = false;
1552
+ _this11.$Notice.error({
1553
+ title: '错误提示',
1554
+ desc: err
1555
+ });
1556
+ });
1557
+ } else {
1558
+ _this11.approval();
1559
+ }
1560
+ } else {
1561
+ _this11.$Notice.error({
1562
+ title: '错误提示',
1563
+ desc: '表单验证不通过'
1564
+ });
1565
+ }
1566
+ });
1567
+ },
1568
+ approval: function approval() {
1569
+ var _this12 = this;
1570
+
1571
+ this.custom_loading = true;
1572
+ this.assembleData();
1573
+ this.$store.dispatch('postRequest', {
1574
+ url: 'bsp-bpm/bpm/approveProcess/approvalProcess',
1575
+ params: {
1576
+ processCmd: JSON.stringify(this.bootData)
1577
+ }
1578
+ }).then(function (resp) {
1579
+ _this12.custom_loading = false;
1580
+ if (resp.success) {
1581
+ _this12.disabledSubmit = true;
1582
+ if (_this12.auditComplete) {
1583
+ _this12.auditComplete(resp);
1584
+ } else {
1585
+ // 隐藏审批按钮
1586
+ _this12.hasApproveAuth = false;
1587
+ _this12.$Modal.success({
1588
+ title: '温馨提示',
1589
+ content: '审批成功'
1590
+ });
1591
+ }
1592
+ _this12.$emit('audit-close');
1593
+ } else {
1594
+ if (_this12.error) {
1595
+ _this12.error(resp);
1596
+ } else {
1597
+ _this12.$Modal.error({
1598
+ title: '温馨提示',
1599
+ content: '审批失败,请重试'
1600
+ });
1601
+ }
1602
+ }
1603
+ });
1604
+ },
1605
+
1606
+ // 组装请求参数
1607
+ assembleData: function assembleData() {
1608
+ this.bootData = {
1609
+ actInstId: this.actInstId,
1610
+ assigneeUserId: this.assigneeUserId,
1611
+ assigneeUserName: this.assigneeUserName,
1612
+ assigneeOrgId: this.assigneeOrgId,
1613
+ assigneeOrgName: this.assigneeOrgName,
1614
+ businessId: this.businessId,
1615
+ fApp: this.module,
1616
+ fXxpt: this.platform,
1617
+ isTerminateTask: this.isTerminateTask,
1618
+ variables: this.variables,
1619
+ msgUrl: this.msgUrl,
1620
+ msgTit: this.msgTit
1621
+ };
1622
+
1623
+ this.formValidate.candidateUsers = this.convertCandidateUsers();
1624
+ Object.assign(this.bootData, this.formValidate, {
1625
+ csldbh: this.convertCsldbh()
1626
+ }, {
1627
+ delegateUser: this.convertDelegate()
1628
+ });
1629
+ this.bootData.variables.nextNodeId = this.selectNode;
1630
+ },
1631
+ convertDelegate: function convertDelegate() {
1632
+ return {
1633
+ idCard: this.delegateUser.idCard,
1634
+ orgCode: this.delegateUser.orgCode
1635
+ };
1636
+ },
1637
+ convertCsldbh: function convertCsldbh() {
1638
+ return this.csldList.map(function (item) {
1639
+ return {
1640
+ idCard: item.idCard,
1641
+ orgCode: item.orgCode
1642
+ };
1643
+ });
1644
+ },
1645
+ convertCandidateUsers: function convertCandidateUsers() {
1646
+ return this.checkedUser.map(function (item) {
1647
+ var array = item.split('_');
1648
+ return {
1649
+ idCard: array[0],
1650
+ orgCode: array[1]
1651
+ };
1652
+ });
1653
+ },
1654
+
1655
+ // 自定义验证
1656
+ customizeValidate: function customizeValidate() {
1657
+ var validate = true;
1658
+
1659
+ // 退查或不同意时不做验证
1660
+ if (!this.showApproveUser) {
1661
+ return validate;
1662
+ }
1663
+
1664
+ if (!this.selectNode) {
1665
+ this.$Modal.warning({
1666
+ title: '错误提示',
1667
+ content: '审核节点不能为空'
1668
+ });
1669
+ validate = false;
1670
+ } else if (this.selectOrgArr.length <= 0) {
1671
+ this.$Modal.warning({
1672
+ title: '错误提示',
1673
+ desc: '审核部门不能为空'
1674
+ });
1675
+ validate = false;
1676
+ } else if (this.checkedUser.length <= 0) {
1677
+ this.$Notice.error({
1678
+ title: '错误提示',
1679
+ desc: '审核人不能为空'
1680
+ });
1681
+ validate = false;
1682
+ }
1683
+ return validate;
1684
+ },
1685
+
1686
+ dateFormat: function dateFormat(date) {
1687
+ // var date = new Date(time)
1688
+ var year = date.getFullYear();
1689
+ /* 在日期格式中,月份是从0开始的,因此要加0使用三元表达式在小于10的前面加0,以达到格式统一 如 09:11:05 */
1690
+ var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
1691
+ var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
1692
+ var hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
1693
+ var minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
1694
+ var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
1695
+ // 拼接
1696
+ return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
1697
+ },
1698
+ // 重置表单
1699
+ handleReset: function handleReset(name) {
1700
+ this.$refs[name].resetFields();
1701
+ // 重新生成时间
1702
+ this.formValidate.approvalDate = this.dateFormat(new Date());
1703
+ // 清空机构选择
1704
+ this.selectOrgArr = [];
1705
+ // 清空人员选择
1706
+ this.checkedUser = [];
1707
+ // 清空人员机构选择
1708
+ this.orgUserList = [];
1709
+
1710
+ this.defaultEvent();
1711
+
1712
+ this.showApproveUser = true;
1713
+
1714
+ this.formValidate.isDelegateTask = false;
1715
+ },
1716
+
1717
+ // 审批意见改变事件时
1718
+ isApproveChange: function isApproveChange(value) {
1719
+ this.formValidate.isApprove = value;
1720
+ this.$emit('changeApproveVal', value);
1721
+ var curBtnArr = this.optionsBtnArr.filter(function (item) {
1722
+ return item.code == value;
1723
+ });
1724
+
1725
+ this.formValidate.isApproveStr = curBtnArr[0].name;
1726
+ this.formValidate.approvalContent = curBtnArr[0].defaultOption;
1727
+
1728
+ switch (value) {
1729
+ case '1':
1730
+ this.formValidate.isBack = false;
1731
+ this.formValidate.isDelegateTask = false;
1732
+ this.formValidate.isTerminateTask = false;
1733
+ if (this.delegationState == 'PENDING' || this.isLastUserTask) {
1734
+ this.showApproveUser = false;
1735
+ } else {
1736
+ this.showApproveUser = true;
1737
+ }
1738
+ this.defaultEvent();
1739
+ break;
1740
+ case '2':
1741
+ this.formValidate.isBack = false;
1742
+ this.formValidate.isDelegateTask = false;
1743
+ this.formValidate.isTerminateTask = false;
1744
+ this.showApproveUser = false;
1745
+ this.defaultEvent();
1746
+ break;
1747
+ case '3':
1748
+ this.formValidate.isBack = true;
1749
+ this.formValidate.isDelegateTask = false;
1750
+ this.formValidate.isTerminateTask = false;
1751
+ this.showApproveUser = false;
1752
+ this.defaultEvent();
1753
+ break;
1754
+ case '4':
1755
+ this.formValidate.isBack = false;
1756
+ this.formValidate.isDelegateTask = true;
1757
+ this.formValidate.isTerminateTask = false;
1758
+ this.showApproveUser = false;
1759
+ this.delegateEvent();
1760
+ break;
1761
+ case '5':
1762
+ // 同意并结束流程
1763
+ this.formValidate.isBack = false;
1764
+ this.formValidate.isDelegateTask = false;
1765
+ this.formValidate.isTerminateTask = true;
1766
+ if (this.delegationState == 'PENDING' || this.isLastUserTask) {
1767
+ this.showApproveUser = false;
1768
+ } else {
1769
+ this.showApproveUser = false;
1770
+ }
1771
+ this.defaultEvent();
1772
+ break;
1773
+ case '6':
1774
+ // 不同意并结束流程
1775
+ this.formValidate.isBack = false;
1776
+ this.formValidate.isDelegateTask = false;
1777
+ this.formValidate.isTerminateTask = true;
1778
+ this.showApproveUser = false;
1779
+ this.defaultEvent();
1780
+ break;
1781
+ }
1782
+ },
1783
+ getButtonByInstIdAndNodeId: function getButtonByInstIdAndNodeId(actInstId, nodeId) {
1784
+ var _this13 = this;
1785
+
1786
+ this.$store.dispatch('postRequest', {
1787
+ url: 'bsp-bpm/bpm/nodeButton/getNodeButtonByParams',
1788
+ params: {
1789
+ actInstId: actInstId,
1790
+ nodeId: nodeId
1791
+ }
1792
+ }).then(function (resp) {
1793
+ if (resp.success) {
1794
+ if (resp.data) {
1795
+ resp.data.map(function (item) {
1796
+ _this13.curNodeBtnMarkArr.push(item.mark);
1797
+ });
1798
+ }
1799
+ }
1800
+ });
1801
+ },
1802
+
1803
+ // 委派事件
1804
+ delegateEvent: function delegateEvent() {
1805
+ this.formLabel.approvalContent = '指派意见';
1806
+ this.formLabel.approvalDate = '指派时间';
1807
+ },
1808
+ defaultEvent: function defaultEvent() {
1809
+ this.formLabel.approvalContent = '审批意见';
1810
+ this.formLabel.approvalDate = '审批时间';
1811
+ },
1812
+ openUserSelect: function openUserSelect() {
1813
+ this.showSelectModal = true;
1814
+ this.component = 'userSelect';
1815
+ },
1816
+ selectCallBack: function selectCallBack(data) {
1817
+ this.formValidate.delegateUserId = data[0].idCard;
1818
+ this.formValidate.delegateUserName = data[0].name;
1819
+ },
1820
+ cancelCallBack: function cancelCallBack() {
1821
+ this.showSelectModal = false;
1822
+ this.component = null;
1823
+ },
1824
+ selectDelegate: function selectDelegate(data) {
1825
+ this.delegateUser = data[0];
1826
+ },
1827
+ clearDelegate: function clearDelegate() {
1828
+ this.delegateUser = {};
1829
+ },
1830
+
1831
+ // 删除抄送人
1832
+ csld_close: function csld_close(idx) {
1833
+ this.csldList.splice(idx, 1);
1834
+ },
1835
+
1836
+ // 选择抄送人回调
1837
+ policeConfirm: function policeConfirm(policeList) {
1838
+ var _this14 = this;
1839
+
1840
+ this.csldList = policeList;
1841
+
1842
+ this.formValidate.csldbh = '';
1843
+ policeList.map(function (item, index) {
1844
+ if (index != 0) {
1845
+ _this14.formValidate.csldbh += ',';
1846
+ }
1847
+ _this14.formValidate.csldbh += item.idCard;
1848
+ });
1849
+ },
1850
+
1851
+ // 对话框取消事件
1852
+ cancel: function cancel() {
1853
+ this.$emit('cancel');
1854
+ },
1855
+
1856
+ // 打开审核审批
1857
+ openAudit: function openAudit() {
1858
+ var _this15 = this;
1859
+
1860
+ if (this.beforeOpen) {
1861
+ this.beforeOpen().then(function (data) {
1862
+ if (data) {
1863
+ _this15.initData();
1864
+ _this15.isOpen = true;
1865
+ }
1866
+ });
1867
+ } else {
1868
+ this.initData();
1869
+ this.isOpen = true;
1870
+ }
1871
+ },
1872
+ warnSwal: function warnSwal(msg, callback) {
1873
+ this.$Modal.warning({
1874
+ title: '温馨提示',
1875
+ content: msg
1876
+ });
1877
+ }
1878
+ },
1879
+ watch: {
1880
+ hasApproveAuth: function hasApproveAuth(val) {
1881
+ this.$emit('hasApproveAuth', val);
1882
+ }
1883
+ }
1884
+ });
1885
+
1886
+ /***/ }),
1887
+ /* 11 */
1888
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1889
+
1890
+ "use strict";
1891
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_gs_user_selector__ = __webpack_require__(12);
1892
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_gs_user_selector___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_gs_user_selector__);
1893
+
1894
+
1895
+ /* harmony default export */ __webpack_exports__["a"] = ({
1896
+ props: {
1897
+ // 流程实例ID
1898
+ actInstId: {
1899
+ type: String
1900
+ },
1901
+ showBack: {
1902
+ type: Boolean,
1903
+ default: false
1904
+ },
1905
+ operType: {
1906
+ type: String,
1907
+ default: '0' //新增 0 编辑 1
1908
+ },
1909
+ formId: {
1910
+ type: String,
1911
+ default: '' //1858415537667837952
1912
+ },
1913
+ defaultUsers: {
1914
+ type: Array,
1915
+ default: function _default() {
1916
+ return [];
1917
+ }
1918
+ },
1919
+ // 中间节点审批不同意,直接终止流程
1920
+ isTerminateTask: {
1921
+ type: Boolean,
1922
+ default: false
1923
+ },
1924
+ // 审批用户ID(身份证号)
1925
+ assigneeUserId: String,
1926
+ // 审批用户姓名
1927
+ assigneeUserName: String,
1928
+ // 审批用户机构代码
1929
+ assigneeOrgId: String,
1930
+ // 审批用户机构名称
1931
+ assigneeOrgName: String,
1932
+ // 消息标题
1933
+ msgTit: {
1934
+ type: String,
1935
+ default: ''
1936
+ },
1937
+ // 消息地址
1938
+ msgUrl: {
1939
+ type: String,
1940
+ default: ''
1941
+ },
1942
+ businessId: {
1943
+ type: String,
1944
+ default: ''
1945
+ },
1946
+ // 来源应用
1947
+ module: {
1948
+ type: String,
1949
+ default: ''
1950
+ },
1951
+ variables: {
1952
+ type: Object,
1953
+ default: function _default() {
1954
+ return {};
1955
+ }
1956
+ },
1957
+ // 来源消息平台
1958
+ platform: {
1959
+ type: String,
1960
+ default: 'pc'
1961
+ },
1962
+ // 流程审核完成后事件
1963
+ auditComplete: {
1964
+ type: Function,
1965
+ default: null
1966
+ },
1967
+ error: {
1968
+ type: Function,
1969
+ default: null
1970
+ },
1971
+ // 流程审核前事件
1972
+ beforeAudit: {
1973
+ type: Function,
1974
+ default: null
1975
+ },
1976
+ customSlotName: {
1977
+ type: String,
1978
+ default: ''
1979
+ },
1980
+ tit: {
1981
+ type: String,
1982
+ default: '审批'
1983
+ },
1984
+ beforeOpen: { //打开审批组件前置事件
1985
+ type: Function,
1986
+ default: null
1987
+ },
1988
+ // 自定义卡槽内容是否绑定点击事件
1989
+ bindEvent: {
1990
+ type: Boolean,
1991
+ default: true
1992
+ },
1993
+ showCustomSlot: {
1994
+ type: Boolean,
1995
+ default: false
1996
+ },
1997
+ /* showFileUpload: {
1998
+ type: Boolean,
1999
+ default: false
2000
+ }, */
2001
+ showcc: {
2002
+ type: Boolean,
2003
+ default: false
2004
+ },
2005
+ confirmBtnText: {
2006
+ type: String,
2007
+ default: "提 交"
2008
+ },
2009
+ cancelBtnText: {
2010
+ type: String,
2011
+ default: "取 消"
2012
+ },
2013
+ modalWidth: {
2014
+ type: String,
2015
+ default: "800"
2016
+ },
2017
+ modalHeight: {
2018
+ type: String,
2019
+ default: "500"
2020
+ },
2021
+ extraOrgId: {
2022
+ type: String,
2023
+ default: ''
2024
+ },
2025
+ extraRegId: {
2026
+ type: String,
2027
+ default: ''
2028
+ },
2029
+ selectUsers: {
2030
+ type: String,
2031
+ default: ''
2032
+ },
2033
+ extraCityId: {
2034
+ type: String,
2035
+ default: ''
2036
+ }
2037
+ },
2038
+ components: {
2039
+ userSelector: __WEBPACK_IMPORTED_MODULE_0_gs_user_selector__["userSelector"]
2040
+ },
2041
+ data: function data() {
2042
+ return {
2043
+ formArr: [],
2044
+ formDataVarObj: {},
2045
+ ProcessVarObj: {},
2046
+ indeterminate: false,
2047
+ checkAll: true,
2048
+ bootData: {},
2049
+ custom_loading: false,
2050
+ hasApproveAuth: false,
2051
+ activeTab: "track",
2052
+ currentNodeName: "",
2053
+ currentNodeId: "",
2054
+ isLastUserTask: false,
2055
+ showApproveUser: true,
2056
+ showTc: true,
2057
+ formValidate: {
2058
+ taskId: "",
2059
+ isApprove: "1",
2060
+ isApproveStr: "同意上报",
2061
+ approvalContent: "同意上报",
2062
+ approvalDate: this.dateFormat(new Date()),
2063
+ csldbh: "",
2064
+ candidateUsers: [],
2065
+ isBack: false,
2066
+ isDelegateTask: false,
2067
+ delegateUserId: "",
2068
+ delegateUserName: ""
2069
+ },
2070
+ currTask: {},
2071
+ component: null,
2072
+ showSelectModal: false,
2073
+ formLabel: {
2074
+ approvalContent: "审核意见",
2075
+ approvalDate: "审核时间",
2076
+ approvalNode: "审核节点",
2077
+ approvalOrg: "审核部门",
2078
+ approvalUser: "审核人"
2079
+ },
2080
+ ruleValidate: {
2081
+ isApprove: [{
2082
+ required: true,
2083
+ message: "审核结果不能为空",
2084
+ trigger: "blur,change"
2085
+ }],
2086
+ approvalContent: [{
2087
+ required: true,
2088
+ message: "审核意见不能为空",
2089
+ trigger: "blur,change"
2090
+ }],
2091
+ approvalDate: [{
2092
+ required: true,
2093
+ message: "审核时间不能为空",
2094
+ trigger: "blur,change",
2095
+ pattern: /.+/
2096
+ }],
2097
+ delegateUserName: [{
2098
+ required: true,
2099
+ message: "委派人不能为空",
2100
+ trigger: "blur,change"
2101
+ }],
2102
+ approveCheckedUser: [{
2103
+ required: true,
2104
+ message: "审批人不能为空",
2105
+ trigger: "blur,change"
2106
+ }],
2107
+ backNodeId: [{
2108
+ required: true,
2109
+ message: "退回节点不能为空",
2110
+ trigger: "blur,change"
2111
+ }]
2112
+ },
2113
+ orgArr: [],
2114
+ selectOrgArr: [],
2115
+ orgUserList: [],
2116
+ checkedUser: [],
2117
+ trackArr: [],
2118
+ curNodeBtnMarkArr: [],
2119
+ delegationState: "",
2120
+ delegationName: "",
2121
+ disabledSubmit: false,
2122
+ // 审批意见型按钮数组
2123
+ optionsBtnArr: [],
2124
+ // 自定义类型按钮
2125
+ customBtnArr: [],
2126
+ isApprove: '1',
2127
+ rollbackNodeList: [],
2128
+ csldList: [], // 抄送领导
2129
+ isOpen: false,
2130
+ uploadList: [],
2131
+ reference: null,
2132
+ selectNode: '',
2133
+ nextNodeList: [],
2134
+ //所选择的节点是否需要法制审核
2135
+ selectNodeSffzsh: false,
2136
+ //当前节点是否是法制审核节点
2137
+ curNodeSffzsh: false,
2138
+ //当前同意按钮名称
2139
+ curAgreeButtonName: '',
2140
+ //委派人员
2141
+ delegateUser: {}
2142
+ };
2143
+ }
2144
+ });
2145
+
2146
+ /***/ }),
2147
+ /* 12 */
2148
+ /***/ (function(module, exports, __webpack_require__) {
2149
+
2150
+ (function webpackUniversalModuleDefinition(root, factory) {
2151
+ if(true)
2152
+ module.exports = factory();
2153
+ else if(typeof define === 'function' && define.amd)
2154
+ define("gs-user-selector", [], factory);
2155
+ else if(typeof exports === 'object')
2156
+ exports["gs-user-selector"] = factory();
2157
+ else
2158
+ root["gs-user-selector"] = factory();
2159
+ })(typeof self !== 'undefined' ? self : this, function() {
2160
+ return /******/ (function(modules) { // webpackBootstrap
2161
+ /******/ // The module cache
2162
+ /******/ var installedModules = {};
2163
+ /******/
2164
+ /******/ // The require function
2165
+ /******/ function __webpack_require__(moduleId) {
2166
+ /******/
2167
+ /******/ // Check if module is in cache
2168
+ /******/ if(installedModules[moduleId]) {
2169
+ /******/ return installedModules[moduleId].exports;
2170
+ /******/ }
2171
+ /******/ // Create a new module (and put it into the cache)
2172
+ /******/ var module = installedModules[moduleId] = {
2173
+ /******/ i: moduleId,
2174
+ /******/ l: false,
2175
+ /******/ exports: {}
2176
+ /******/ };
2177
+ /******/
2178
+ /******/ // Execute the module function
2179
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
2180
+ /******/
2181
+ /******/ // Flag the module as loaded
2182
+ /******/ module.l = true;
2183
+ /******/
2184
+ /******/ // Return the exports of the module
2185
+ /******/ return module.exports;
2186
+ /******/ }
2187
+ /******/
2188
+ /******/
2189
+ /******/ // expose the modules object (__webpack_modules__)
2190
+ /******/ __webpack_require__.m = modules;
2191
+ /******/
2192
+ /******/ // expose the module cache
2193
+ /******/ __webpack_require__.c = installedModules;
2194
+ /******/
2195
+ /******/ // define getter function for harmony exports
2196
+ /******/ __webpack_require__.d = function(exports, name, getter) {
2197
+ /******/ if(!__webpack_require__.o(exports, name)) {
2198
+ /******/ Object.defineProperty(exports, name, {
2199
+ /******/ configurable: false,
2200
+ /******/ enumerable: true,
2201
+ /******/ get: getter
2202
+ /******/ });
2203
+ /******/ }
2204
+ /******/ };
2205
+ /******/
2206
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
2207
+ /******/ __webpack_require__.n = function(module) {
2208
+ /******/ var getter = module && module.__esModule ?
2209
+ /******/ function getDefault() { return module['default']; } :
2210
+ /******/ function getModuleExports() { return module; };
2211
+ /******/ __webpack_require__.d(getter, 'a', getter);
2212
+ /******/ return getter;
2213
+ /******/ };
2214
+ /******/
2215
+ /******/ // Object.prototype.hasOwnProperty.call
2216
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
2217
+ /******/
2218
+ /******/ // __webpack_public_path__
2219
+ /******/ __webpack_require__.p = "/dist/";
2220
+ /******/
2221
+ /******/ // Load entry module and return exports
2222
+ /******/ return __webpack_require__(__webpack_require__.s = 1);
2223
+ /******/ })
2224
+ /************************************************************************/
2225
+ /******/ ([
2226
+ /* 0 */
2227
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2228
+
2229
+ "use strict";
2230
+ //
2231
+ //
2232
+ //
2233
+ //
2234
+ //
2235
+ //
2236
+ //
2237
+ //
2238
+ //
2239
+ //
2240
+ //
2241
+ //
2242
+ //
2243
+ //
2244
+ //
2245
+ //
2246
+ //
2247
+ //
2248
+ //
2249
+ //
2250
+ //
2251
+ //
2252
+ //
2253
+ //
2254
+ //
2255
+ //
2256
+ //
2257
+ //
2258
+ //
2259
+ //
2260
+ //
2261
+ //
2262
+ //
2263
+ //
2264
+ //
2265
+ //
2266
+ //
2267
+ //
2268
+ //
2269
+ //
2270
+ //
2271
+ //
2272
+ //
2273
+ //
2274
+ //
2275
+ //
2276
+ //
2277
+ //
2278
+ //
2279
+ //
2280
+ //
2281
+ //
2282
+ //
2283
+ //
2284
+ //
2285
+ //
2286
+ //
2287
+ //
2288
+ //
2289
+ //
2290
+ //
2291
+ //
2292
+ //
2293
+ //
2294
+ //
2295
+ //
2296
+ //
2297
+ //
2298
+ //
2299
+ //
2300
+ //
2301
+ //
2302
+ //
2303
+ //
2304
+ //
2305
+ //
2306
+ //
2307
+ //
2308
+ //
2309
+ //
2310
+ //
2311
+ //
2312
+ //
2313
+ //
2314
+ //
2315
+ //
2316
+ //
2317
+ //
2318
+ //
2319
+ //
2320
+ //
2321
+ //
2322
+ //
2323
+ //
2324
+ //
2325
+ //
2326
+ //
2327
+ //
2328
+ //
2329
+ //
2330
+ //
2331
+ //
2332
+ //
2333
+ //
2334
+ //
2335
+ //
2336
+
2337
+ /* harmony default export */ __webpack_exports__["a"] = ({
2338
+ name: 'user-selector',
2339
+ props: {
2340
+ // 选择框的值
2341
+ value: {
2342
+ type: String,
2343
+ default: ''
2344
+ },
2345
+ text: {
2346
+ type: String,
2347
+ default: ''
2348
+ },
2349
+ tit: {
2350
+ type: String,
2351
+ default: '民警选择'
2352
+ },
2353
+ // 页面上放置返回内容的id(id或loginId或idCard)
2354
+ idField: String,
2355
+ // 返回字段,结合idField使用(id或loginId或idCard)
2356
+ // 例如返回身份证展示在页面上:<input :id="test" value="" />,则idField为test,returnField为idCard
2357
+ returnField: {
2358
+ type: String,
2359
+ default: 'idCard'
2360
+ },
2361
+ button: {
2362
+ type: String,
2363
+ default: '选 择'
2364
+ },
2365
+ // 数量表达式(对选择人数的限制,例如num>2,num3)
2366
+ numExp: {
2367
+ type: String,
2368
+ default: ''
2369
+ },
2370
+ orgCode: {
2371
+ type: String,
2372
+ default: ''
2373
+ },
2374
+ bindEvent: {
2375
+ type: Boolean,
2376
+ default: true
2377
+ },
2378
+ // 不满足数量表达式时的提示信息
2379
+ msg: String,
2380
+ disabled: {
2381
+ type: Boolean,
2382
+ default: false
2383
+ },
2384
+ // 当传入显示文本为空时,默认是否查询显示文本内容
2385
+ defaultSearchText: {
2386
+ type: Boolean,
2387
+ default: false
2388
+ },
2389
+ orgChange: {
2390
+ type: Boolean,
2391
+ default: true
2392
+ },
2393
+ // 是否默认全选单位
2394
+ defaultSelectAll: {
2395
+ type: Boolean,
2396
+ default: false
2397
+ },
2398
+ // 岗位
2399
+ post: {
2400
+ type: String,
2401
+ default: ''
2402
+ },
2403
+ // 是否可选择岗位
2404
+ selectPost: {
2405
+ type: Boolean,
2406
+ default: false
2407
+ },
2408
+ // 岗位多选
2409
+ multiPost: {
2410
+ type: Boolean,
2411
+ default: true
2412
+ }
2413
+ },
2414
+ data: function data() {
2415
+ return {
2416
+ title: '用户选择',
2417
+ modal: false,
2418
+ showmModal: false,
2419
+ // 单位编号(修改后id保存的其实就是code的值,后台只需维护一个字段,前端this.$store.state.common.orgCode依然保存的是单位编号)
2420
+ orgId: '',
2421
+ // 查询条件(姓名、登录名、身份证号等)
2422
+ condition: '',
2423
+ // 是否包含其他单位
2424
+ hasOthers: false,
2425
+ // 左侧已选民警身份证号数组
2426
+ selectedIdCardArr: [],
2427
+ // 右侧已选列表
2428
+ selectedList: [],
2429
+ // 左侧可选民警列表
2430
+ policeList: [],
2431
+ // 民警缓存,用于本地筛选
2432
+ policeCache: [],
2433
+ reference: null,
2434
+ timer: null,
2435
+ isSensitiveDataEncrypt: serverConfig.isSensitiveDataEncrypt,
2436
+ sensitiveDataEncryptMethod: serverConfig.sensitiveDataEncryptMethod,
2437
+ sensitiveDataProp: serverConfig.sensitiveDataProp,
2438
+ checkAll: false,
2439
+ postCode: this.post
2440
+ };
2441
+ },
2442
+
2443
+ watch: {
2444
+ value: function value(_value) {
2445
+ // 获取左侧民警数据
2446
+ this.getPoliceData();
2447
+ // 初始化已选择民警
2448
+ this.getPoliceByFieldData(_value);
2449
+ },
2450
+ selectedList: {
2451
+ handler: function handler(newvalue, oldvalue) {
2452
+ if (newvalue.length == 0) {
2453
+ this.checkAll = false;
2454
+ } else if (newvalue.length > 0 && newvalue.length == this.policeList.length) {
2455
+ this.checkAll = true;
2456
+ } else {
2457
+ this.checkAll = false;
2458
+ }
2459
+ },
2460
+
2461
+ deep: true,
2462
+ immediate: true
2463
+ }
2464
+ },
2465
+ mounted: function mounted() {
2466
+ if (this.bindEvent && this.$slots.func) {
2467
+ this.reference = this.$slots.func[0].elm;
2468
+ this.reference.addEventListener('click', this.openDialog);
2469
+ }
2470
+ },
2471
+ beforeDestroy: function beforeDestroy() {
2472
+ if (this.reference) {
2473
+ this.reference.removeEventListener('click', this.changeVisiable, false);
2474
+ }
2475
+ },
2476
+
2477
+ methods: {
2478
+ orgAll: function orgAll(val) {
2479
+ this.searchData();
2480
+ },
2481
+ openDialog: function openDialog() {
2482
+ if (this.defaultSelectAll) this.hasOthers = true;
2483
+ this.orgId = this.orgCode ? this.orgCode : this.$store.state.common.orgCode;
2484
+ // 获取左侧民警数据
2485
+ this.getPoliceData();
2486
+ // 初始化已选择民警
2487
+ this.getPoliceByFieldData(this.value);
2488
+ this.showmModal = true;
2489
+ this.modal = true;
2490
+ },
2491
+ clearData: function clearData() {
2492
+ this.$emit('input', '');
2493
+ this.$emit('update:text', '');
2494
+ this.$emit('onClear');
2495
+ },
2496
+
2497
+ // 民警数据解密
2498
+ decrypt: function decrypt(userList) {
2499
+ var userListUncode = userList;
2500
+ // 加密的属性
2501
+ var propList = this.sensitiveDataProp.split(',');
2502
+ var _iteratorNormalCompletion = true;
2503
+ var _didIteratorError = false;
2504
+ var _iteratorError = undefined;
2505
+
2506
+ try {
2507
+ for (var _iterator = userListUncode[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
2508
+ var user = _step.value;
2509
+ var _iteratorNormalCompletion2 = true;
2510
+ var _didIteratorError2 = false;
2511
+ var _iteratorError2 = undefined;
2512
+
2513
+ try {
2514
+ for (var _iterator2 = propList[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
2515
+ var prop = _step2.value;
2516
+
2517
+ if (prop in user) {
2518
+ // 加密方式判断
2519
+ if (this.sensitiveDataEncryptMethod == "base64") {
2520
+ user[prop] = decodeURIComponent(atob(user[prop]));
2521
+ }
2522
+ }
2523
+ }
2524
+ } catch (err) {
2525
+ _didIteratorError2 = true;
2526
+ _iteratorError2 = err;
2527
+ } finally {
2528
+ try {
2529
+ if (!_iteratorNormalCompletion2 && _iterator2.return) {
2530
+ _iterator2.return();
2531
+ }
2532
+ } finally {
2533
+ if (_didIteratorError2) {
2534
+ throw _iteratorError2;
2535
+ }
2536
+ }
2537
+ }
2538
+ }
2539
+ } catch (err) {
2540
+ _didIteratorError = true;
2541
+ _iteratorError = err;
2542
+ } finally {
2543
+ try {
2544
+ if (!_iteratorNormalCompletion && _iterator.return) {
2545
+ _iterator.return();
2546
+ }
2547
+ } finally {
2548
+ if (_didIteratorError) {
2549
+ throw _iteratorError;
2550
+ }
2551
+ }
2552
+ }
2553
+
2554
+ return userListUncode;
2555
+ },
2556
+
2557
+ // 获取民警数据
2558
+ getPoliceData: function getPoliceData() {
2559
+ var _this2 = this;
2560
+
2561
+ var orgId = this.orgId;
2562
+ // 查询全部
2563
+ if (this.hasOthers) {
2564
+ orgId = '';
2565
+ }
2566
+ this.policeList = [];
2567
+ // 查询服务获取民警列表
2568
+ this.$store.dispatch('postRequest', {
2569
+ url: '/bsp-uac/uac/user/getOptionalPolice', params: { orgId: orgId, condition: this.condition, post: this.postCode }
2570
+ }).then(function (d) {
2571
+ if (d.success) {
2572
+ if (_this2.isSensitiveDataEncrypt) {
2573
+ d.data = _this2.decrypt(d.data);
2574
+ }
2575
+ d.data.forEach(function (item) {
2576
+ item.keyId = '' + item.idCard + item.orgId;
2577
+ });
2578
+ _this2.policeList = d.data;
2579
+ _this2.policeCache = d.data;
2580
+ _this2.selectedIdCardArr = [];
2581
+ if (_this2.selectedList.length > 0) {
2582
+ var _iteratorNormalCompletion3 = true;
2583
+ var _didIteratorError3 = false;
2584
+ var _iteratorError3 = undefined;
2585
+
2586
+ try {
2587
+ for (var _iterator3 = _this2.selectedList[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
2588
+ var i = _step3.value;
2589
+
2590
+ if (_this2.isSensitiveDataEncrypt) {
2591
+ _this2.selectedIdCardArr.push(decodeURIComponent(atob(i.idCard)) + i.orgId);
2592
+ } else {
2593
+ var obj = '' + i.idCard + i.orgId;
2594
+ _this2.selectedIdCardArr.push(obj);
2595
+ }
2596
+ }
2597
+ // console.log(this.selectedIdCardArr,'this.selectedIdCardArr')
2598
+ } catch (err) {
2599
+ _didIteratorError3 = true;
2600
+ _iteratorError3 = err;
2601
+ } finally {
2602
+ try {
2603
+ if (!_iteratorNormalCompletion3 && _iterator3.return) {
2604
+ _iterator3.return();
2605
+ }
2606
+ } finally {
2607
+ if (_didIteratorError3) {
2608
+ throw _iteratorError3;
2609
+ }
2610
+ }
2611
+ }
2612
+ }
2613
+ } else {
2614
+ console.log(d.msg);
2615
+ }
2616
+ });
2617
+ },
2618
+
2619
+ // 根据字段初始值获取民警信息
2620
+ getPoliceByFieldData: function getPoliceByFieldData(data) {
2621
+ var _this3 = this;
2622
+
2623
+ var _this = this;
2624
+ if (data == '') {
2625
+ this.selectedIdCardArr = [];
2626
+ this.selectedList = [];
2627
+ return false;
2628
+ }
2629
+
2630
+ this.$store.dispatch('postRequest', { url: '/bsp-uac/uac/user/getByFieldData', params: { field: this.returnField, value: data } }).then(function (d) {
2631
+ if (d.success) {
2632
+ // 渲染右侧列表
2633
+ d.data.forEach(function (item, index) {
2634
+ item.keyId = '' + item.idCard + _this3.orgCode;
2635
+ });
2636
+ _this.selectedList = d.data;
2637
+ _this3.selectedIdCardArr = [];
2638
+ if (_this3.policeList.length > 0) {
2639
+ var _iteratorNormalCompletion4 = true;
2640
+ var _didIteratorError4 = false;
2641
+ var _iteratorError4 = undefined;
2642
+
2643
+ try {
2644
+ for (var _iterator4 = _this3.selectedList[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
2645
+ var i = _step4.value;
2646
+
2647
+ if (_this3.isSensitiveDataEncrypt) {
2648
+ _this3.selectedIdCardArr.push(decodeURIComponent(atob(i.idCard)) + i.orgId);
2649
+ } else {
2650
+ var obj = '' + i.idCard + i.orgId;
2651
+ _this3.selectedIdCardArr.push(obj);
2652
+ }
2653
+ }
2654
+ } catch (err) {
2655
+ _didIteratorError4 = true;
2656
+ _iteratorError4 = err;
2657
+ } finally {
2658
+ try {
2659
+ if (!_iteratorNormalCompletion4 && _iterator4.return) {
2660
+ _iterator4.return();
2661
+ }
2662
+ } finally {
2663
+ if (_didIteratorError4) {
2664
+ throw _iteratorError4;
2665
+ }
2666
+ }
2667
+ }
2668
+ }
2669
+
2670
+ // 渲染左侧选中状态
2671
+ setTimeout(function () {}, 1000);
2672
+
2673
+ // 渲染左侧选中状态
2674
+ // if (_this.selectedList != undefined && _this.selectedList != null) {
2675
+ // this.selectedIdCardArr = []
2676
+ // _this.selectedList.forEach((item, index) => {
2677
+ // this.selectedIdCardArr.push(item.keyId)
2678
+ // /* let idx = this.selectedIdCardArr.indexOf(item.idCard)
2679
+ // if(idx === -1){
2680
+ // this.selectedIdCardArr.push(item.idCard)
2681
+ // } */
2682
+ // if (!this.text && this.defaultSearchText) {
2683
+ // let names = []
2684
+ // let ids = []
2685
+ // this.selectedList.forEach(item => {
2686
+ // names.push(item.name)
2687
+ // ids.push(item[this.returnField])
2688
+ // })
2689
+
2690
+ // let textValue = names.join(',')
2691
+ // this.$emit('update:text', textValue)
2692
+ // }
2693
+ // })
2694
+ // }
2695
+ } else {
2696
+ _this3.$Modal.warning({
2697
+ title: '温馨提示',
2698
+ content: d.msg
2699
+ });
2700
+ }
2701
+ });
2702
+ },
2703
+
2704
+ // keyUp监听
2705
+ onKeyUp: function onKeyUp() {
2706
+ var _this = this;
2707
+ var oldValue = _this.condition;
2708
+ if (_this.timer) {
2709
+ clearInterval(_this.timer);
2710
+ }
2711
+
2712
+ _this.timer = setInterval(function () {
2713
+ if (oldValue === _this.condition) {
2714
+ _this.searchData();
2715
+ clearInterval(_this.timer);
2716
+ }
2717
+ }, 500);
2718
+ },
2719
+
2720
+ // 改变单位
2721
+ changeOrg: function changeOrg() {
2722
+ this.condition = '';
2723
+ this.getPoliceData();
2724
+ },
2725
+
2726
+ // 改变岗位
2727
+ changePost: function changePost() {
2728
+ this.condition = '';
2729
+ this.getPoliceData();
2730
+ },
2731
+
2732
+ // 搜索
2733
+ searchData: function searchData() {
2734
+ if (this.hasOthers) {
2735
+ // 从服务器查询
2736
+ this.getPoliceData();
2737
+ } else {
2738
+ // 从缓存中查询
2739
+ this.policeList = [];
2740
+
2741
+ for (var i = 0; i < this.policeCache.length; i++) {
2742
+ var condition = this.condition;
2743
+ if (condition != '') {
2744
+ if (this.policeCache[i].name.indexOf(condition) != -1 || this.policeCache[i].loginId.indexOf(condition) != -1 || this.policeCache[i].idCard.toUpperCase().indexOf(condition.toUpperCase()) != -1) {
2745
+ this.policeList.push(this.policeCache[i]);
2746
+ // break;
2747
+ }
2748
+ } else {
2749
+ this.getPoliceData();
2750
+ break;
2751
+ }
2752
+ }
2753
+ }
2754
+ },
2755
+
2756
+ // 左侧民警选择事件
2757
+ selectPolice: function selectPolice(index, item) {
2758
+ var idx = this.selectedIdCardArr.indexOf(item.keyId);
2759
+ if (idx != -1) {
2760
+ this.selectedIdCardArr.splice(idx, 1);
2761
+ this.selectedList = this.selectedList.filter(function (obj) {
2762
+ return obj.keyId !== item.keyId;
2763
+ });
2764
+ if (this.selectedList.length == 0) {
2765
+ return false;
2766
+ }
2767
+ } else {
2768
+ if (this.numExp === 'num==1') {
2769
+ this.selectedIdCardArr = [];
2770
+ this.selectedList = [];
2771
+ }
2772
+ this.selectedIdCardArr.push(item.keyId);
2773
+
2774
+ if (this.isSensitiveDataEncrypt) {
2775
+ item.idCard = window.btoa(unescape(encodeURIComponent(item.idCard)));
2776
+ }
2777
+ // 添加到右侧已选列表
2778
+ this.selectedList.push(item);
2779
+ }
2780
+ },
2781
+
2782
+ // 右侧删除事件
2783
+ cancelSelected: function cancelSelected(item, index) {
2784
+ // this.$set(item,'idCardOrgid',item.idCard+item.orgId)
2785
+ var idx = this.selectedIdCardArr.indexOf(item.keyId);
2786
+ if (idx != -1) {
2787
+ this.selectedIdCardArr.splice(idx, 1);
2788
+ this.selectedList.splice(index, 1);
2789
+ } else {
2790
+ var ids = this.selectedList.findIndex(function (ele) {
2791
+ return item.keyId === ele.keyId;
2792
+ });
2793
+ this.selectedList.splice(ids, 1);
2794
+ }
2795
+ this.checkAll = false;
2796
+ },
2797
+
2798
+ // 对话框确定事件
2799
+ ok: function ok() {
2800
+ var _this4 = this;
2801
+
2802
+ // 是否选择人员
2803
+ // if (this.selectedList.length == 0) {
2804
+ // this.$Modal.warning({
2805
+ // title: '温馨提示',
2806
+ // content: this.msg
2807
+ // });
2808
+ // return false
2809
+ // }
2810
+
2811
+ // 人数条件判断
2812
+ var num = this.selectedList.length;
2813
+ if (this.selectedList.length == 0 || this.numExp && !eval(this.numExp)) {
2814
+ this.$Modal.warning({
2815
+ title: '温馨提示',
2816
+ content: this.msg
2817
+ });
2818
+ return false;
2819
+ }
2820
+
2821
+ var names = [];
2822
+ var ids = [];
2823
+ this.selectedList.forEach(function (item) {
2824
+ names.push(item.name);
2825
+ ids.push(item[_this4.returnField]);
2826
+ });
2827
+ this.$emit('input', ids.join(','));
2828
+ var textValue = names.join(',');
2829
+ this.$emit('update:text', textValue);
2830
+ this.$emit('onSelect', this.selectedList);
2831
+ this.cancel();
2832
+ },
2833
+
2834
+ // 对话框取消事件
2835
+ cancel: function cancel(bool) {
2836
+ this.modal = false;
2837
+ this.selectedIdCardArr = [];
2838
+ this.selectedList = [];
2839
+ if (bool) this.$emit('onCancel');
2840
+ },
2841
+ focus: function focus() {
2842
+ this.$refs['input'].focus();
2843
+ },
2844
+
2845
+ // 左侧民警选择事件(全选/反选)
2846
+ selectPoliceAll: function selectPoliceAll(index, item, checkAll) {
2847
+ var idx = this.selectedIdCardArr.indexOf(item.keyId);
2848
+ if (idx != -1) {
2849
+ if (!checkAll) {
2850
+ this.selectedIdCardArr.splice(idx, 1);
2851
+ this.selectedList = this.selectedList.filter(function (obj) {
2852
+ return obj.keyId !== item.keyId;
2853
+ });
2854
+ if (this.selectedList.length == 0) {
2855
+ return false;
2856
+ }
2857
+ }
2858
+ } else {
2859
+ if (this.numExp === 'num==1') {
2860
+ this.selectedIdCardArr = [];
2861
+ this.selectedList = [];
2862
+ }
2863
+ this.selectedIdCardArr.push(item.keyId);
2864
+
2865
+ if (this.isSensitiveDataEncrypt) {
2866
+ item.idCard = window.btoa(unescape(encodeURIComponent(item.idCard)));
2867
+ }
2868
+ // 添加到右侧已选列表
2869
+ this.selectedList.push(item);
2870
+ }
2871
+ },
2872
+ handleAllChecked: function handleAllChecked() {
2873
+ var _this5 = this;
2874
+
2875
+ this.checkAll = !this.checkAll;
2876
+ this.policeList.forEach(function (item, index) {
2877
+ _this5.selectPoliceAll(index, item, _this5.checkAll);
2878
+ });
2879
+ }
2880
+ }
2881
+
2882
+ });
2883
+
2884
+ /***/ }),
2885
+ /* 1 */
2886
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2887
+
2888
+ "use strict";
2889
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
2890
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__user_selector__ = __webpack_require__(2);
2891
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "userSelector", function() { return __WEBPACK_IMPORTED_MODULE_0__user_selector__["a"]; });
2892
+
2893
+
2894
+ var Plugin = {
2895
+ install: function install(Vue) {
2896
+ Vue.component('user-selector', __WEBPACK_IMPORTED_MODULE_0__user_selector__["a" /* default */]);
2897
+ }
2898
+ };
2899
+
2900
+ /* harmony default export */ __webpack_exports__["default"] = (Plugin);
2901
+
2902
+ /***/ }),
2903
+ /* 2 */
2904
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2905
+
2906
+ "use strict";
2907
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_user_selector_vue__ = __webpack_require__(0);
2908
+ /* unused harmony namespace reexport */
2909
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_c8dbda5c_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_user_selector_vue__ = __webpack_require__(9);
2910
+ function injectStyle (ssrContext) {
2911
+ __webpack_require__(3)
2912
+ }
2913
+ var normalizeComponent = __webpack_require__(8)
2914
+ /* script */
2915
+
2916
+
2917
+ /* template */
2918
+
2919
+ /* template functional */
2920
+ var __vue_template_functional__ = false
2921
+ /* styles */
2922
+ var __vue_styles__ = injectStyle
2923
+ /* scopeId */
2924
+ var __vue_scopeId__ = "data-v-c8dbda5c"
2925
+ /* moduleIdentifier (server only) */
2926
+ var __vue_module_identifier__ = null
2927
+ var Component = normalizeComponent(
2928
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_user_selector_vue__["a" /* default */],
2929
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_c8dbda5c_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_user_selector_vue__["a" /* default */],
2930
+ __vue_template_functional__,
2931
+ __vue_styles__,
2932
+ __vue_scopeId__,
2933
+ __vue_module_identifier__
2934
+ )
2935
+
2936
+ /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
2937
+
2938
+
2939
+ /***/ }),
2940
+ /* 3 */
2941
+ /***/ (function(module, exports, __webpack_require__) {
2942
+
2943
+ // style-loader: Adds some css to the DOM by adding a <style> tag
2944
+
2945
+ // load the styles
2946
+ var content = __webpack_require__(4);
2947
+ if(typeof content === 'string') content = [[module.i, content, '']];
2948
+ if(content.locals) module.exports = content.locals;
2949
+ // add the styles to the DOM
2950
+ var update = __webpack_require__(6)("0ae7f6df", content, true);
2951
+
2952
+ /***/ }),
2953
+ /* 4 */
2954
+ /***/ (function(module, exports, __webpack_require__) {
2955
+
2956
+ exports = module.exports = __webpack_require__(5)(false);
2957
+ // imports
2958
+
2959
+
2960
+ // module
2961
+ exports.push([module.i, "[data-v-c8dbda5c].ivu-input:hover{border:1px solid #cee0f0}[data-v-c8dbda5c].ivu-input:focus{border:1px solid #2b5fd9;box-shadow:none}[data-v-c8dbda5c].user-selector-modal .ivu-modal-header{padding:0!important}[data-v-c8dbda5c].user-selector-modal .ivu-modal-body{height:550px;padding:16px!important}[data-v-c8dbda5c].user-selector-modal .ivu-modal-footer{height:50px;line-height:50px;background:#f7faff;padding:0 18px}[data-v-c8dbda5c].user-selector-modal .ivu-modal-footer .ivu-btn>span{font-size:16px}[data-v-c8dbda5c].user-selector-modal .ivu-input{font-size:16px;height:32px;line-height:1.5}[data-v-c8dbda5c].user-selector-modal .ivu-checkbox-wrapper.ivu-checkbox-large{font-size:16px}[data-v-c8dbda5c].user-selector-input .ivu-input-icon{right:66px;font-size:20px}[data-v-c8dbda5c].user-selector-input .ivu-input{font-size:16px}[data-v-c8dbda5c].user-selector-modal .ivu-icon-ios-close{font-size:32px;line-height:40px}[data-v-c8dbda5c].user-selector-input .ivu-input-search{font-size:15px;padding:0!important;width:70px;max-width:70px}.user-selector-modal .bsp-warp[data-v-c8dbda5c]{width:100%;height:100%;color:#333}.user-selector-modal .bsp-user-search-box[data-v-c8dbda5c]{display:flex;box-sizing:border-box;padding-left:5px}.user-selector-modal .bsp-user-search-box>input[data-v-c8dbda5c]{margin-left:0;font-size:16px;width:38%;height:30px;border:1px solid #e1e1e1;padding-left:10px;border-radius:2px}div.v-selectpage div.sp-input-container div.sp-input[data-v-c8dbda5c]{font-size:16px}.user-selector-modal .bsp-user-search-box>label[data-v-c8dbda5c]{font-size:16px;line-height:30px;margin:0 10px}[data-v-c8dbda5c].user-selector-modal .ivu-input{height:30px;line-height:30px}.user-selector-modal .bsp-user-Chebox[data-v-c8dbda5c]{line-height:30px;padding:0 0 0 16px}.user-selector-modal .bsp-user-center-in[data-v-c8dbda5c]{margin:10px 0 0}.user-selector-modal .bsp-user-lt_center[data-v-c8dbda5c]{width:100%;border-radius:2px}.user-selector-modal .bsp-user-lt_center>ul[data-v-c8dbda5c]{list-style:none;height:433px;overflow:auto;border:1px solid #cee0f0;border-top:none}.user-selector-modal .bsp-user-lt_center .cli[data-v-c8dbda5c],.user-selector-modal .bsp-user-lt_center_center .cli[data-v-c8dbda5c]{display:flex;justify-content:space-between;align-items:center;height:36px;line-height:36px;box-sizing:border-box;background-size:16px;cursor:pointer;position:relative}.user-selector-modal .bsp-user-lt_center .cli[data-v-c8dbda5c]{padding:22px 40px 22px 10px}.user-selector-modal .bsp-user-lt_center_center .cli[data-v-c8dbda5c]{padding:22px 10px}.user-selector-modal .bsp-user-lt_center .cli[data-v-c8dbda5c]{background:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA4ElEQVQ4je3VsWrCYBTF8f/3WRJBTWJCXVpwEl2z1d36TNIHCH2m1r1O7qVLBzsaxUYIEZNyIwURh37NmvMAP85dzlXLzy3AAHgGJoCDWXbAHJiFffdDwCGwuOs2vaBt0dDKSDvmBesk42uTSrOHGyC695vebcc2LHaKFOg5NkrhreI00nKm37L+hZ1HrgOmAjqmZ16LVqXR1pWli9RgDdbgX8GdTFDV5EVpJALO4/2hMrhOSuNFBnYEvMkmBi0Lbbg8uQzsPmMVlwM7/n0BstoR8Ah0DMt9A6/AU9h3338A7TA+NnRfwIoAAAAASUVORK5CYII=\") no-repeat 96%;background-size:18px}.user-selector-modal .bsp-user-lt_center .cli.active[data-v-c8dbda5c]{background:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABeklEQVQ4ja3U3ytDcRjH8fc5+RXapoxFSrKIe60lSpILUpPQLswF90palJEa7l240FZSygUlN0YUpUm51OQfIIn9yOWmZ2abOrNs53P5/Z7n1fN8zzlfpXPqEcAKbAD9gIH/JQKcA27gqQRoA4KA6Z/QT6QBB9AH2FTAWwSWHTG8ampMvTKgFnBmf6Va1RFLpiDQNVjD7XYrC5Pm4sGpwRrmJ8xUVag4eoz5wfJShZaGMk3M2W9ifjzT1d7Ze37Q527i2NvM+qwFNWt3tNeI21mHoqSwwDtbh29/g/KwtfG7u2G7gdVpS3JtpNuAx1Wfxg4uw2zuv2pOIb9eInthyG7AO2NBTRUHHz7paq9Md3t0HWbZ90IiocVpjHxyE2HFnymwdWQw2fP4c2OaoOTwKsza7u/C07soizvPxOO5MUlJrg05J0VRmBur5eI+luwsH4bWGRYbNXWf6ZWYgHI56pWAgEvAhw6iGEsChuTrkJcLRAuApEZqbUDoC8xYY482/HjCAAAAAElFTkSuQmCC\") no-repeat 96%;background-size:18px}.user-selector-modal .bsp-user-lt_center_center .cli .btn-icon[data-v-c8dbda5c]{display:inline-block;width:25px;height:25px;background:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABiklEQVQ4jY2UP08CQRTEfxwgoUAKCxrBwgYsSTRqA1FptUGpNbHw01jaaWUswMLaBDUmRv0CUBgbaCwsUCPyx2DeZU/21r3IJJvszXsz2Z3d29Dh2QMWlIBtYB1IA32gBdwCVeDSlESM7yxwBBQNPqpqMvaBa+AAaHoNjtZcAB4tJjYUVW/BNMoBF0BiAhMPCaXJekYh4BhI6l1TkfAfpYUTzYl4OCrQZb1ayGeolBaIx8YRyly4Yn7ONBPthhhVdDYWDZNJJZlJximv5VwDGTIXLp2adnsM7MjxPwHzOq8LXztdl/Pm51dNPr8GptGzo+6JD93ekFq94QrF4B8TwaxjY4MwGo0Ca2LUNklza97KvMwsaIvRnRm2biJb1LcpNUvYdTE61Zne4JvWy9uvieSlZyY16TFQlVMLqVX57pJcvv7QL7BxgPz1K7IiSXAPeNOrFoGN6wC74uGdWgPYBN5tSQbgA9hSWt/ffwMsAfcTmEjPotK4MM9S3pdV9bCVAx62mnrYxpcK+AFqcJJFhDD72QAAAABJRU5ErkJggg==\") no-repeat 96%;background-size:20px}.user-selector-modal .bsp-user-lt_center .cli[data-v-c8dbda5c]:hover{background-color:#f0f5ff}.user-selector-modal .bsp-user-lt_center_center[data-v-c8dbda5c]{width:100%;background:#fafbff}.user-selector-modal .bsp-user-lt_center_center .bsp-user-lt_center_ul[data-v-c8dbda5c]{list-style:none;height:433px;overflow:auto;border:1px solid #cee0f0;border-top:none}.user-selector-modal .bsp-user-loginId[data-v-c8dbda5c]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 10px;width:70px;font-size:16px}.user-selector-modal .bsp-user-name[data-v-c8dbda5c]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:80px;font-size:16px}.user-selector-modal .bsp-user-orgId[data-v-c8dbda5c]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:200px;font-size:16px}.user-selector-modal .bsp-user-btn[data-v-c8dbda5c]{text-align:right}.user-selector-modal .bsp-user-btn button[data-v-c8dbda5c]{padding:4px 30px;margin:0 5px;outline:none;border:none;background:#0ea7e0;color:#fff;cursor:pointer;border-radius:2px}.user-selector-modal .btn button.no[data-v-c8dbda5c]{background:none;border:1px solid #ddd;color:#666}.user-selector-modal .btn button[data-v-c8dbda5c]:hover{opacity:.9}.user-selector-modal .flow-modal-title[data-v-c8dbda5c]{height:40px;background:#2b5fda;width:100%;text-indent:1em;color:#fff;line-height:40px}.cancle_btn[data-v-c8dbda5c]{min-width:60px;height:30px;background:#fff;border:1px solid #2b5fd9;color:#2b5fd9;border-radius:2px}.sure_btn[data-v-c8dbda5c]{min-width:60px;height:30px;background:#2b5fd9;border-radius:2px}.bsp-user-lt_center_ul[data-v-c8dbda5c]::-webkit-scrollbar,.bsp-user-lt_ul[data-v-c8dbda5c]::-webkit-scrollbar{width:10px;height:10px}.bsp-user-lt_center_ul[data-v-c8dbda5c]::-webkit-scrollbar-thumb,.bsp-user-lt_ul[data-v-c8dbda5c]::-webkit-scrollbar-thumb{border-radius:3px;background:#b7c7dd}.bsp-user-lt_center_ul[data-v-c8dbda5c]::-webkit-scrollbar-track,.bsp-user-lt_ul[data-v-c8dbda5c]::-webkit-scrollbar-track{border-radius:3px;background:#ededed}table[data-v-c8dbda5c]{border-collapse:collapse;border-spacing:0}td[data-v-c8dbda5c]{border:1px solid #cee0f0}.postName[data-v-c8dbda5c]{width:100px}.textOverflow[data-v-c8dbda5c]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}", ""]);
2962
+
2963
+ // exports
2964
+
2965
+
2966
+ /***/ }),
2967
+ /* 5 */
2968
+ /***/ (function(module, exports) {
2969
+
2970
+ /*
2971
+ MIT License http://www.opensource.org/licenses/mit-license.php
2972
+ Author Tobias Koppers @sokra
2973
+ */
2974
+ // css base code, injected by the css-loader
2975
+ module.exports = function(useSourceMap) {
2976
+ var list = [];
2977
+
2978
+ // return the list of modules as css string
2979
+ list.toString = function toString() {
2980
+ return this.map(function (item) {
2981
+ var content = cssWithMappingToString(item, useSourceMap);
2982
+ if(item[2]) {
2983
+ return "@media " + item[2] + "{" + content + "}";
2984
+ } else {
2985
+ return content;
2986
+ }
2987
+ }).join("");
2988
+ };
2989
+
2990
+ // import a list of modules into the list
2991
+ list.i = function(modules, mediaQuery) {
2992
+ if(typeof modules === "string")
2993
+ modules = [[null, modules, ""]];
2994
+ var alreadyImportedModules = {};
2995
+ for(var i = 0; i < this.length; i++) {
2996
+ var id = this[i][0];
2997
+ if(typeof id === "number")
2998
+ alreadyImportedModules[id] = true;
2999
+ }
3000
+ for(i = 0; i < modules.length; i++) {
3001
+ var item = modules[i];
3002
+ // skip already imported module
3003
+ // this implementation is not 100% perfect for weird media query combinations
3004
+ // when a module is imported multiple times with different media queries.
3005
+ // I hope this will never occur (Hey this way we have smaller bundles)
3006
+ if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
3007
+ if(mediaQuery && !item[2]) {
3008
+ item[2] = mediaQuery;
3009
+ } else if(mediaQuery) {
3010
+ item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
3011
+ }
3012
+ list.push(item);
3013
+ }
3014
+ }
3015
+ };
3016
+ return list;
3017
+ };
3018
+
3019
+ function cssWithMappingToString(item, useSourceMap) {
3020
+ var content = item[1] || '';
3021
+ var cssMapping = item[3];
3022
+ if (!cssMapping) {
3023
+ return content;
3024
+ }
3025
+
3026
+ if (useSourceMap && typeof btoa === 'function') {
3027
+ var sourceMapping = toComment(cssMapping);
3028
+ var sourceURLs = cssMapping.sources.map(function (source) {
3029
+ return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
3030
+ });
3031
+
3032
+ return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
3033
+ }
3034
+
3035
+ return [content].join('\n');
3036
+ }
3037
+
3038
+ // Adapted from convert-source-map (MIT)
3039
+ function toComment(sourceMap) {
3040
+ // eslint-disable-next-line no-undef
3041
+ var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
3042
+ var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
3043
+
3044
+ return '/*# ' + data + ' */';
3045
+ }
3046
+
3047
+
3048
+ /***/ }),
3049
+ /* 6 */
3050
+ /***/ (function(module, exports, __webpack_require__) {
3051
+
3052
+ /*
3053
+ MIT License http://www.opensource.org/licenses/mit-license.php
3054
+ Author Tobias Koppers @sokra
3055
+ Modified by Evan You @yyx990803
3056
+ */
3057
+
3058
+ var hasDocument = typeof document !== 'undefined'
3059
+
3060
+ if (typeof DEBUG !== 'undefined' && DEBUG) {
3061
+ if (!hasDocument) {
3062
+ throw new Error(
3063
+ 'vue-style-loader cannot be used in a non-browser environment. ' +
3064
+ "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
3065
+ ) }
3066
+ }
3067
+
3068
+ var listToStyles = __webpack_require__(7)
3069
+
3070
+ /*
3071
+ type StyleObject = {
3072
+ id: number;
3073
+ parts: Array<StyleObjectPart>
3074
+ }
3075
+
3076
+ type StyleObjectPart = {
3077
+ css: string;
3078
+ media: string;
3079
+ sourceMap: ?string
3080
+ }
3081
+ */
3082
+
3083
+ var stylesInDom = {/*
3084
+ [id: number]: {
3085
+ id: number,
3086
+ refs: number,
3087
+ parts: Array<(obj?: StyleObjectPart) => void>
3088
+ }
3089
+ */}
3090
+
3091
+ var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
3092
+ var singletonElement = null
3093
+ var singletonCounter = 0
3094
+ var isProduction = false
3095
+ var noop = function () {}
3096
+
3097
+ // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
3098
+ // tags it will allow on a page
3099
+ var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
3100
+
3101
+ module.exports = function (parentId, list, _isProduction) {
3102
+ isProduction = _isProduction
3103
+
3104
+ var styles = listToStyles(parentId, list)
3105
+ addStylesToDom(styles)
3106
+
3107
+ return function update (newList) {
3108
+ var mayRemove = []
3109
+ for (var i = 0; i < styles.length; i++) {
3110
+ var item = styles[i]
3111
+ var domStyle = stylesInDom[item.id]
3112
+ domStyle.refs--
3113
+ mayRemove.push(domStyle)
3114
+ }
3115
+ if (newList) {
3116
+ styles = listToStyles(parentId, newList)
3117
+ addStylesToDom(styles)
3118
+ } else {
3119
+ styles = []
3120
+ }
3121
+ for (var i = 0; i < mayRemove.length; i++) {
3122
+ var domStyle = mayRemove[i]
3123
+ if (domStyle.refs === 0) {
3124
+ for (var j = 0; j < domStyle.parts.length; j++) {
3125
+ domStyle.parts[j]()
3126
+ }
3127
+ delete stylesInDom[domStyle.id]
3128
+ }
3129
+ }
3130
+ }
3131
+ }
3132
+
3133
+ function addStylesToDom (styles /* Array<StyleObject> */) {
3134
+ for (var i = 0; i < styles.length; i++) {
3135
+ var item = styles[i]
3136
+ var domStyle = stylesInDom[item.id]
3137
+ if (domStyle) {
3138
+ domStyle.refs++
3139
+ for (var j = 0; j < domStyle.parts.length; j++) {
3140
+ domStyle.parts[j](item.parts[j])
3141
+ }
3142
+ for (; j < item.parts.length; j++) {
3143
+ domStyle.parts.push(addStyle(item.parts[j]))
3144
+ }
3145
+ if (domStyle.parts.length > item.parts.length) {
3146
+ domStyle.parts.length = item.parts.length
3147
+ }
3148
+ } else {
3149
+ var parts = []
3150
+ for (var j = 0; j < item.parts.length; j++) {
3151
+ parts.push(addStyle(item.parts[j]))
3152
+ }
3153
+ stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
3154
+ }
3155
+ }
3156
+ }
3157
+
3158
+ function createStyleElement () {
3159
+ var styleElement = document.createElement('style')
3160
+ styleElement.type = 'text/css'
3161
+ head.appendChild(styleElement)
3162
+ return styleElement
3163
+ }
3164
+
3165
+ function addStyle (obj /* StyleObjectPart */) {
3166
+ var update, remove
3167
+ var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]')
3168
+
3169
+ if (styleElement) {
3170
+ if (isProduction) {
3171
+ // has SSR styles and in production mode.
3172
+ // simply do nothing.
3173
+ return noop
3174
+ } else {
3175
+ // has SSR styles but in dev mode.
3176
+ // for some reason Chrome can't handle source map in server-rendered
3177
+ // style tags - source maps in <style> only works if the style tag is
3178
+ // created and inserted dynamically. So we remove the server rendered
3179
+ // styles and inject new ones.
3180
+ styleElement.parentNode.removeChild(styleElement)
3181
+ }
3182
+ }
3183
+
3184
+ if (isOldIE) {
3185
+ // use singleton mode for IE9.
3186
+ var styleIndex = singletonCounter++
3187
+ styleElement = singletonElement || (singletonElement = createStyleElement())
3188
+ update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
3189
+ remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
3190
+ } else {
3191
+ // use multi-style-tag mode in all other cases
3192
+ styleElement = createStyleElement()
3193
+ update = applyToTag.bind(null, styleElement)
3194
+ remove = function () {
3195
+ styleElement.parentNode.removeChild(styleElement)
3196
+ }
3197
+ }
3198
+
3199
+ update(obj)
3200
+
3201
+ return function updateStyle (newObj /* StyleObjectPart */) {
3202
+ if (newObj) {
3203
+ if (newObj.css === obj.css &&
3204
+ newObj.media === obj.media &&
3205
+ newObj.sourceMap === obj.sourceMap) {
3206
+ return
3207
+ }
3208
+ update(obj = newObj)
3209
+ } else {
3210
+ remove()
3211
+ }
3212
+ }
3213
+ }
3214
+
3215
+ var replaceText = (function () {
3216
+ var textStore = []
3217
+
3218
+ return function (index, replacement) {
3219
+ textStore[index] = replacement
3220
+ return textStore.filter(Boolean).join('\n')
3221
+ }
3222
+ })()
3223
+
3224
+ function applyToSingletonTag (styleElement, index, remove, obj) {
3225
+ var css = remove ? '' : obj.css
3226
+
3227
+ if (styleElement.styleSheet) {
3228
+ styleElement.styleSheet.cssText = replaceText(index, css)
3229
+ } else {
3230
+ var cssNode = document.createTextNode(css)
3231
+ var childNodes = styleElement.childNodes
3232
+ if (childNodes[index]) styleElement.removeChild(childNodes[index])
3233
+ if (childNodes.length) {
3234
+ styleElement.insertBefore(cssNode, childNodes[index])
3235
+ } else {
3236
+ styleElement.appendChild(cssNode)
3237
+ }
3238
+ }
3239
+ }
3240
+
3241
+ function applyToTag (styleElement, obj) {
3242
+ var css = obj.css
3243
+ var media = obj.media
3244
+ var sourceMap = obj.sourceMap
3245
+
3246
+ if (media) {
3247
+ styleElement.setAttribute('media', media)
3248
+ }
3249
+
3250
+ if (sourceMap) {
3251
+ // https://developer.chrome.com/devtools/docs/javascript-debugging
3252
+ // this makes source maps inside style tags work properly in Chrome
3253
+ css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
3254
+ // http://stackoverflow.com/a/26603875
3255
+ css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
3256
+ }
3257
+
3258
+ if (styleElement.styleSheet) {
3259
+ styleElement.styleSheet.cssText = css
3260
+ } else {
3261
+ while (styleElement.firstChild) {
3262
+ styleElement.removeChild(styleElement.firstChild)
3263
+ }
3264
+ styleElement.appendChild(document.createTextNode(css))
3265
+ }
3266
+ }
3267
+
3268
+
3269
+ /***/ }),
3270
+ /* 7 */
3271
+ /***/ (function(module, exports) {
3272
+
3273
+ /**
3274
+ * Translates the list format produced by css-loader into something
3275
+ * easier to manipulate.
3276
+ */
3277
+ module.exports = function listToStyles (parentId, list) {
3278
+ var styles = []
3279
+ var newStyles = {}
3280
+ for (var i = 0; i < list.length; i++) {
3281
+ var item = list[i]
3282
+ var id = item[0]
3283
+ var css = item[1]
3284
+ var media = item[2]
3285
+ var sourceMap = item[3]
3286
+ var part = {
3287
+ id: parentId + ':' + i,
3288
+ css: css,
3289
+ media: media,
3290
+ sourceMap: sourceMap
3291
+ }
3292
+ if (!newStyles[id]) {
3293
+ styles.push(newStyles[id] = { id: id, parts: [part] })
3294
+ } else {
3295
+ newStyles[id].parts.push(part)
3296
+ }
3297
+ }
3298
+ return styles
3299
+ }
3300
+
3301
+
3302
+ /***/ }),
3303
+ /* 8 */
3304
+ /***/ (function(module, exports) {
3305
+
3306
+ /* globals __VUE_SSR_CONTEXT__ */
3307
+
3308
+ // IMPORTANT: Do NOT use ES2015 features in this file.
3309
+ // This module is a runtime utility for cleaner component module output and will
3310
+ // be included in the final webpack user bundle.
3311
+
3312
+ module.exports = function normalizeComponent (
3313
+ rawScriptExports,
3314
+ compiledTemplate,
3315
+ functionalTemplate,
3316
+ injectStyles,
3317
+ scopeId,
3318
+ moduleIdentifier /* server only */
3319
+ ) {
3320
+ var esModule
3321
+ var scriptExports = rawScriptExports = rawScriptExports || {}
3322
+
3323
+ // ES6 modules interop
3324
+ var type = typeof rawScriptExports.default
3325
+ if (type === 'object' || type === 'function') {
3326
+ esModule = rawScriptExports
3327
+ scriptExports = rawScriptExports.default
3328
+ }
3329
+
3330
+ // Vue.extend constructor export interop
3331
+ var options = typeof scriptExports === 'function'
3332
+ ? scriptExports.options
3333
+ : scriptExports
3334
+
3335
+ // render functions
3336
+ if (compiledTemplate) {
3337
+ options.render = compiledTemplate.render
3338
+ options.staticRenderFns = compiledTemplate.staticRenderFns
3339
+ options._compiled = true
3340
+ }
3341
+
3342
+ // functional template
3343
+ if (functionalTemplate) {
3344
+ options.functional = true
3345
+ }
3346
+
3347
+ // scopedId
3348
+ if (scopeId) {
3349
+ options._scopeId = scopeId
3350
+ }
3351
+
3352
+ var hook
3353
+ if (moduleIdentifier) { // server build
3354
+ hook = function (context) {
3355
+ // 2.3 injection
3356
+ context =
3357
+ context || // cached call
3358
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
3359
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
3360
+ // 2.2 with runInNewContext: true
3361
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
3362
+ context = __VUE_SSR_CONTEXT__
3363
+ }
3364
+ // inject component styles
3365
+ if (injectStyles) {
3366
+ injectStyles.call(this, context)
3367
+ }
3368
+ // register component module identifier for async chunk inferrence
3369
+ if (context && context._registeredComponents) {
3370
+ context._registeredComponents.add(moduleIdentifier)
3371
+ }
3372
+ }
3373
+ // used by ssr in case component is cached and beforeCreate
3374
+ // never gets called
3375
+ options._ssrRegister = hook
3376
+ } else if (injectStyles) {
3377
+ hook = injectStyles
3378
+ }
3379
+
3380
+ if (hook) {
3381
+ var functional = options.functional
3382
+ var existing = functional
3383
+ ? options.render
3384
+ : options.beforeCreate
3385
+
3386
+ if (!functional) {
3387
+ // inject component registration as beforeCreate hook
3388
+ options.beforeCreate = existing
3389
+ ? [].concat(existing, hook)
3390
+ : [hook]
3391
+ } else {
3392
+ // for template-only hot-reload because in that case the render fn doesn't
3393
+ // go through the normalizer
3394
+ options._injectStyles = hook
3395
+ // register for functioal component in vue file
3396
+ options.render = function renderWithStyleInjection (h, context) {
3397
+ hook.call(context)
3398
+ return existing(h, context)
3399
+ }
3400
+ }
3401
+ }
3402
+
3403
+ return {
3404
+ esModule: esModule,
3405
+ exports: scriptExports,
3406
+ options: options
3407
+ }
3408
+ }
3409
+
3410
+
3411
+ /***/ }),
3412
+ /* 9 */
3413
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3414
+
3415
+ "use strict";
3416
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[(_vm.$slots.func)?_vm._t("func"):_c('Input',{ref:"input",staticClass:"user-selector-input",attrs:{"disabled":_vm.disabled,"readonly":"","clearable":"","search":"","enter-button":_vm.button,"placeholder":""},on:{"on-clear":_vm.clearData,"on-search":_vm.openDialog},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}),_vm._v(" "),_c('div',[(_vm.showmModal)?_c('Modal',{attrs:{"class-name":"user-selector-modal","width":"1100","title":_vm.title,"closable":false,"mask-closable":false},on:{"on-cancel":_vm.cancel},model:{value:(_vm.modal),callback:function ($$v) {_vm.modal=$$v},expression:"modal"}},[_c('div',{staticClass:"flow-modal-title",attrs:{"slot":"header"},slot:"header"},[_c('span',{staticStyle:{"font-size":"17px"}},[_vm._v(_vm._s(_vm.tit))]),_vm._v(" "),_c('span',{staticStyle:{"position":"absolute","right":"6px","cursor":"pointer"},on:{"click":function($event){return _vm.cancel(true)}}},[_c('i',{staticClass:"ivu-icon ivu-icon-ios-close"})])]),_vm._v(" "),[_c('div',{staticClass:"bsp-warp"},[_c('div',{staticClass:"pos-box"},[_c('div',[_c('div',{staticClass:"bsp-user-search-box"},[_c('label',[_vm._v("机构单位: ")]),_vm._v(" "),_c('div',{staticClass:"dicgrid"},[_c('s-dicgrid',{ref:"dicGrid",staticStyle:{"width":"300px"},attrs:{"clear":false,"dicName":"ZD_ORG_ID","disabled":!_vm.orgChange || _vm.hasOthers == true},on:{"change":_vm.changeOrg},model:{value:(_vm.orgId),callback:function ($$v) {_vm.orgId=$$v},expression:"orgId"}})],1),_vm._v(" "),_c('div',{staticClass:"bsp-user-Chebox"},[(_vm.orgChange)?_c('Checkbox',{attrs:{"size":"large"},on:{"on-change":_vm.orgAll},model:{value:(_vm.hasOthers),callback:function ($$v) {_vm.hasOthers=$$v},expression:"hasOthers"}},[_vm._v("机构全选")]):_vm._e()],1),_vm._v(" "),(_vm.selectPost)?[_c('label',[_vm._v(" 岗位: ")]),_vm._v(" "),_c('div',{staticClass:"post-dic",staticStyle:{"width":"430px"}},[_c('s-dicgrid',{ref:"post",attrs:{"isSearch":false,"multiple":_vm.multiPost,"dicName":"ZD_POST"},on:{"change":_vm.changePost},model:{value:(_vm.postCode),callback:function ($$v) {_vm.postCode=$$v},expression:"postCode"}})],1)]:_vm._e()],2),_vm._v(" "),_c('div',{staticClass:"bsp-user-center-in"},[_c('table',{staticStyle:{"border-width":"0px"}},[_c('tr',[_c('td',{staticStyle:{"border-bottom":"none","display":"flex","justify-content":"space-between","align-items":"center","padding":"0px 17px","width":"476px","height":"40px","line-height":"40px","background":"#F2F6FC"}},[_c('p',{staticStyle:{"font-size":"16px","font-weight":"bold","color":"#333"}},[_vm._v("用户列表")]),_vm._v(" "),_c('div',{staticStyle:{"width":"300px"}},[_c('Input',{attrs:{"type":"text","suffix":"ios-search","placeholder":"请输入姓名、警号或身份证查询","clearable":""},on:{"on-keyup":_vm.onKeyUp,"on-enter":_vm.searchData,"on-clear":_vm.searchData},model:{value:(_vm.condition),callback:function ($$v) {_vm.condition=$$v},expression:"condition"}})],1)]),_vm._v(" "),_c('td',{staticStyle:{"border-width":"0px","min-width":"16px"}}),_vm._v(" "),_c('td',{staticStyle:{"box-sizing":"border-box","width":"476px"}},[_c('div',{staticStyle:{"height":"40px","line-height":"40px","background":"#F2F6FC","color":"#333","font-size":"16px","font-weight":"bold","padding-left":"17px"}},[_vm._v("\n 已选用户")])])]),_vm._v(" "),_c('tr',[_c('td',{staticStyle:{"width":"476px","border-width":"0px","text-align":"left","background":"#FFFFFF"}},[_c('div',{staticClass:"bsp-user-lt_center"},[_c('ul',{staticClass:"bsp-user-lt_ul"},_vm._l((_vm.policeList),function(item,index){return _c('li',{key:index + 'AA',staticClass:"cli",class:{ active: _vm.selectedIdCardArr.indexOf(item.keyId) != -1 },on:{"click":function($event){return _vm.selectPolice(index, item)}}},[_c('div',{staticClass:"bsp-user-name",attrs:{"title":item.name}},[_vm._v(_vm._s(item.name))]),_vm._v(" "),_c('div',{staticClass:"bsp-user-loginId",attrs:{"title":item.loginId}},[_vm._v(_vm._s(item.loginId))]),_vm._v(" "),_c('div',{staticClass:"bsp-user-orgId",attrs:{"title":item.orgName}},[_vm._v(_vm._s(item.orgName))]),_vm._v(" "),_c('div',{staticClass:"postName textOverflow",attrs:{"title":item.postName}},[_vm._v(_vm._s(item.postName))])])}),0)])]),_vm._v(" "),_c('td',{staticStyle:{"border-width":"0px","min-width":"16px"}}),_vm._v(" "),_c('td',{staticStyle:{"width":"491px","border-width":"0px","text-align":"left"}},[_c('div',{staticClass:"bsp-user-lt_center_center"},[_c('ul',{staticClass:"bsp-user-lt_center_ul"},_vm._l((_vm.selectedList),function(item,index){return _c('li',{key:item.loginId + item.idCard,staticClass:"cli"},[_c('div',{staticClass:"bsp-user-name",attrs:{"title":item.orgName}},[_vm._v(_vm._s(item.name))]),_vm._v(" "),_c('div',{staticClass:"bsp-user-loginId",attrs:{"title":item.orgName}},[_vm._v(_vm._s(item.loginId))]),_vm._v(" "),_c('div',{staticClass:"bsp-user-orgId"},[_vm._v(_vm._s(item.orgName))]),_vm._v(" "),_c('div',{staticClass:"postName textOverflow",attrs:{"title":item.postName}},[_vm._v(_vm._s(item.postName))]),_vm._v(" "),_c('div',{staticClass:"btn-icon",on:{"click":function($event){return _vm.cancelSelected(item, index)}}})])}),0)])])])])])])])])],_vm._v(" "),_c('div',{staticStyle:{"display":"flex","justify-content":"space-between"},attrs:{"slot":"footer"},slot:"footer"},[(_vm.numExp !== 'num==1')?_c('div',[_c('Checkbox',{nativeOn:{"click":function($event){$event.preventDefault();return _vm.handleAllChecked.apply(null, arguments)}},model:{value:(_vm.checkAll),callback:function ($$v) {_vm.checkAll=$$v},expression:"checkAll"}},[_vm._v("用户全选/反选")])],1):_vm._e(),_vm._v(" "),_c('div',[_c('Button',{staticClass:"cancle_btn",on:{"click":function($event){return _vm.cancel(true)}}},[_vm._v("取  消")]),_vm._v(" "),_c('Button',{staticClass:"sure_btn",attrs:{"type":"primary"},on:{"click":_vm.ok}},[_vm._v("确  认")])],1)])],2):_vm._e()],1)],2)}
3417
+ var staticRenderFns = []
3418
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
3419
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
3420
+
3421
+ /***/ })
3422
+ /******/ ]);
3423
+ });
3424
+ //# sourceMappingURL=gs-user-selector.js.map
3425
+
3426
+ /***/ }),
3427
+ /* 13 */
3428
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3429
+
3430
+ "use strict";
3431
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__ = __webpack_require__(4);
3432
+ /* unused harmony namespace reexport */
3433
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_4b0e953f_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__ = __webpack_require__(19);
3434
+ function injectStyle (ssrContext) {
3435
+ __webpack_require__(14)
3436
+ }
3437
+ var normalizeComponent = __webpack_require__(2)
3438
+ /* script */
3439
+
3440
+
3441
+ /* template */
3442
+
3443
+ /* template functional */
3444
+ var __vue_template_functional__ = false
3445
+ /* styles */
3446
+ var __vue_styles__ = injectStyle
3447
+ /* scopeId */
3448
+ var __vue_scopeId__ = "data-v-4b0e953f"
3449
+ /* moduleIdentifier (server only) */
3450
+ var __vue_module_identifier__ = null
3451
+ var Component = normalizeComponent(
3452
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__["a" /* default */],
3453
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_4b0e953f_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__["a" /* default */],
3454
+ __vue_template_functional__,
3455
+ __vue_styles__,
3456
+ __vue_scopeId__,
3457
+ __vue_module_identifier__
3458
+ )
3459
+
3460
+ /* harmony default export */ __webpack_exports__["a"] = (Component.exports);
3461
+
3462
+
3463
+ /***/ }),
3464
+ /* 14 */
3465
+ /***/ (function(module, exports, __webpack_require__) {
3466
+
3467
+ // style-loader: Adds some css to the DOM by adding a <style> tag
3468
+
3469
+ // load the styles
3470
+ var content = __webpack_require__(15);
3471
+ if(typeof content === 'string') content = [[module.i, content, '']];
3472
+ if(content.locals) module.exports = content.locals;
3473
+ // add the styles to the DOM
3474
+ var update = __webpack_require__(1)("d3d99126", content, true);
3475
+
3476
+ /***/ }),
3477
+ /* 15 */
3478
+ /***/ (function(module, exports, __webpack_require__) {
3479
+
3480
+ exports = module.exports = __webpack_require__(0)(false);
3481
+ // imports
3482
+
3483
+
3484
+ // module
3485
+ exports.push([module.i, ".history-audit[data-v-4b0e953f]{padding:15px;font-family:\"Noto Sans TC, Microsoft YaHei, Segoe UI, Tahoma, Arial, Verdana, sans-serif\"}.task-container[data-v-4b0e953f]{margin-bottom:10px}.task-container .task-title[data-v-4b0e953f]{font-size:18px;font-weight:700;color:#333}.line-gray[data-v-4b0e953f]{padding:0}.history-audit .content[data-v-4b0e953f]{width:100%;padding:10px 18px;background-color:#fff}[data-v-4b0e953f] .ivu-timeline-item-content{padding:10px 10px 10px 24px;top:-16px}.row-col-title[data-v-4b0e953f]{text-align:right}.row-col-title span[data-v-4b0e953f]{font-size:16px;color:#7a8499}.padding-btm-10[data-v-4b0e953f]{padding:5px 0}.row-col-content[data-v-4b0e953f]{padding-left:10px}.row-col-content span[data-v-4b0e953f]{color:#333;font-size:16px;text-overflow:-o-ellipsis-lastline;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.success[data-v-4b0e953f]{padding:4px;background-color:#d9fce8;color:#13ba5a;margin-left:10px}.error[data-v-4b0e953f]{padding:4px;background-color:#ffd6dd;color:#f23051;margin-left:10px}.warning[data-v-4b0e953f]{padding:4px;background-color:#ffe7d6;color:#f83;margin-left:10px}.primary[data-v-4b0e953f]{padding:4px;background-color:#e5f0ff;color:#2b5fda;margin-left:10px}.task-oper[data-v-4b0e953f]{float:right}.history-audit .oper-container[data-v-4b0e953f]{width:100%;display:flex;justify-content:space-between;flex-direction:row}.slot-button[data-v-4b0e953f]{background-color:#2b5fda;color:#fff;font-size:14px}.back-button[data-v-4b0e953f]{background-color:#f36279;color:#fff;font-size:14px}[data-v-4b0e953f] .ivu-icon-ios-radio-button-off{background-color:#dae1ec;border-radius:50%}.customIcon[data-v-4b0e953f]{position:relative;left:-31px;top:0;background:#fff}.task-title-active[data-v-4b0e953f]{border-bottom:2px solid #2b5fda}[data-v-4b0e953f] .ivu-timeline-item-head{background:transparent!important}.taskStatus[data-v-4b0e953f]{width:10px;height:10px;display:inline-block;border-radius:50%;margin-right:10px}.row-col-content-taskStatus[data-v-4b0e953f]{display:flex;align-items:center}.ing[data-v-4b0e953f]{background:#ff7d00}.will[data-v-4b0e953f]{background:#f53f3f}[data-v-4b0e953f] .ivu-icon-md-radio-button-off:before{background:#fff;border-radius:50%}", ""]);
3486
+
3487
+ // exports
3488
+
3489
+
3490
+ /***/ }),
3491
+ /* 16 */
3492
+ /***/ (function(module, exports, __webpack_require__) {
3493
+
3494
+ !function(e,t){ true?module.exports=t():"function"==typeof define&&define.amd?define("sd-modify-approve-user",[],t):"object"==typeof exports?exports["sd-modify-approve-user"]=t():e["sd-modify-approve-user"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=3)}([function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var s=[],i=0;i<n.parts.length;i++)s.push(o(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:s}}}}function i(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+m+'~="'+e.id+'"]');if(r){if(h)return g;r.parentNode.removeChild(r)}if(x){var o=p++;r=f||(f=i()),t=s.bind(null,r,o,!1),n=s.bind(null,r,o,!0)}else r=i(),t=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function s(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function a(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),v.ssrId&&e.setAttribute(m,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(7),d={},u=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,h=!1,g=function(){},v=null,m="data-vue-ssr-id",x="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,i){h=n,v=i||{};var o=l(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var s=o[i],a=d[s.id];a.refs--,n.push(a)}t?(o=l(e,t),r(o)):o=[];for(var i=0;i<n.length;i++){var a=n[i];if(0===a.refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete d[a.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,o){try{var s=t[i](o),a=s.value}catch(e){return void n(e)}if(!s.done)return Promise.resolve(a).then(function(e){r("next",e)},function(e){r("throw",e)});e(a)}return r("next")})}}t.a={name:"modify-approve-user",props:{actInstId:{type:String},module:{type:String,default:""},platform:{type:String,default:"pc"},extraOrgId:{type:String,default:""},extraRegId:{type:String,default:""},extraCityId:{type:String,default:""},complete:{type:Function,default:null},error:{type:Function,default:null},bindEvent:{type:Boolean,default:!0}},data:function(){return{isInitData:!1,openStatus:!1,nodeName:"领导审核",loading:!1,indeterminate:!0,checkAll:!1,orgUserList:[],orgId:"",userList:[],candidateUsers:[],isCanChang:!1,taskId:"",reference:null}},mounted:function(){this.bindEvent&&this.$slots.func&&(this.reference=this.$slots.func[0].elm,this.reference&&this.reference.addEventListener("click",this.initData))},methods:{initData:function(){this.isInitData?this.openStatus=!0:this.getOrgUserList(this.actInstId)},warnSwal:function(e,t){this.$swal({type:"warning",text:e,confirmButtonText:"确 定"}).then(function(e){t&&t(e)})},getOrgUserList:function(e){var t=this,n={actInstId:e,extraOrgId:this.extraOrgId,extraRegId:this.extraRegId,extraCityId:this.extraCityId};this.$store.dispatch("authGetRequest",{url:"bsp-bpm/bpm/approveProcess/taskIdentityLinks",params:n}).then(function(e){if(e.success){t.openStatus=!0,t.isInitData=!0;var n=e.data;t.nodeName=n.nodeName,t.isCanChang=n.isCanChang,t.taskId=n.taskId;var r=n.orgUserList;if(r.length>1){var i=[];n.orgUserList.forEach(function(e){var t=e.user;t&&t.length>0&&(i=i.concat(t))}),r.push({orgId:"allOrg",orgName:"所有单位",user:i})}t.orgUserList=r,r.length>=1&&t.$nextTick(function(){t.orgId=r[0].orgId,t.onSelectOrg(r[0].orgId)})}else t.warnSwal("启动流程失败。")})},clearCheckbox:function(){this.indeterminate=!1,this.checkAll=!1,this.candidateUsers=[],this.$forceUpdate()},onSelectOrg:function(e){if(e){var t=this.orgUserList.findIndex(function(t){return t.orgId==e});t>-1&&(this.userList=this.orgUserList[t].user),this.clearCheckbox(),this.$refs.checkAllRef.$el.click(),this.$forceUpdate()}},convertCandidateUsers:function(){return this.candidateUsers.map(function(e){var t=e.split("_");return{idCard:t[0],orgCode:t[1]}})},submit:function(){var e=this;return r(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.candidateUsers&&0!==e.candidateUsers.length){t.next=3;break}return e.$Modal.warning({title:"温馨提示",content:"请选择审批人。"}),t.abrupt("return");case 3:e.loading=!0,n={taskId:e.taskId,candidateUsers:JSON.stringify(e.convertCandidateUsers()),fApp:e.module,fXxpt:e.platform},e.$store.dispatch("postRequest",{url:"bsp-bpm/bpm/approveProcess/saveTaskIdentityLinks",params:n}).then(function(t){t.success?e.complete?e.complete(t).then(function(t){e.loading=!1,t.success&&e.cancel()}):(e.cancel(),e.$Modal.success({title:"温馨提示",content:"审批人修改成功!"})):(e.loading=!1,e.error?e.error(t):e.$Modal.error({title:"温馨提示",content:"审批人修改失败。原因:"+t.msg}))});case 6:case"end":return t.stop()}},t,e)}))()},handleCheckAll:function(){var e=this;this.indeterminate?this.checkAll=!1:this.checkAll=!this.checkAll,this.indeterminate=!1,this.checkAll?this.userList.forEach(function(t){e.candidateUsers.push(t.userIdCard+"_"+t.orgCode)}):this.candidateUsers=[]},checkAllGroupChange:function(e){e.length===this.userList.length?(this.indeterminate=!1,this.checkAll=!0):e.length>0?(this.indeterminate=!0,this.checkAll=!1):(this.indeterminate=!1,this.checkAll=!1)},cancel:function(){this.openStatus=!1,this.loading=!1}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);n.d(t,"modifyApproveUser",function(){return r.a});var i={install:function(e){e.component("modify-approve-user",r.a)}};t.default=i},function(e,t,n){"use strict";function r(e){n(5),n(8)}var i=n(2),o=n(11),s=n(10),a=r,c=s(i.a,o.a,!1,a,"data-v-07e6c48d",null);t.a=c.exports},function(e,t,n){var r=n(6);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("75c7965a",r,!0,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,".flow-modal{color:#333;font-size:15px}.flow-modal .ivu-modal-body,.flow-modal .ivu-modal-header{padding:0}.flow-modal .ivu-checkbox-wrapper,.flow-modal .ivu-select-input{font-size:15px}.flow-modal .ivu-select-item{font-size:15px!important}",""])},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],s=o[0],a=o[1],c=o[2],l=o[3],d={id:e+":"+i,css:a,media:c,sourceMap:l};r[s]?r[s].parts.push(d):n.push(r[s]={id:s,parts:[d]})}return n}},function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("53157a8c",r,!0,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,".flow-modal-title[data-v-07e6c48d]{height:40px;background:#1171d0;width:100%;text-indent:1em;color:#fff;line-height:40px;font-size:15px}.content-1[data-v-07e6c48d]{padding:5px;display:flex;justify-content:space-between;align-items:center}",""])},function(e,t){e.exports=function(e,t,n,r,i,o){var s,a=e=e||{},c=typeof e.default;"object"!==c&&"function"!==c||(s=e,a=e.default);var l="function"==typeof a?a.options:a;t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i);var d;if(o?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=d):r&&(d=r),d){var u=l.functional,f=u?l.render:l.beforeCreate;u?(l._injectStyles=d,l.render=function(e,t){return d.call(t),f(e,t)}):l.beforeCreate=f?[].concat(f,d):[d]}return{esModule:s,exports:a,options:l}}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[e._t("func"),e._v(" "),n("Modal",{attrs:{"class-name":"flow-modal",width:580,closable:!1,"mask-closable":!1},model:{value:e.openStatus,callback:function(t){e.openStatus=t},expression:"openStatus"}},[n("div",{staticClass:"flow-modal-title",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("修改审核审批人员信息")]),e._v(" "),n("span",{staticStyle:{position:"absolute",right:"6px","font-size":"32px",cursor:"pointer"},on:{click:e.cancel}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-close"})])]),e._v(" "),n("div",{staticStyle:{"min-height":"220px",padding:"10px"}},[n("table",{staticStyle:{width:"100%","border-collapse":"collapse","border-spacing":"0"}},[n("tr",[n("td",{staticStyle:{width:"85%",border:"solid 1px #dedede","border-bottom":"solid 1px #fff",background:"#f6f6f6"}},[n("div",{staticClass:"content-1",staticStyle:{height:"58px","align-items":"center"}},[n("h3",[e._v(e._s(e.nodeName))]),e._v(" "),n("span",{staticStyle:{"font-size":"15px"}},[n("Select",{staticStyle:{width:"350px"},attrs:{placeholder:"请选择审批单位",filterable:""},on:{"on-change":e.onSelectOrg},model:{value:e.orgId,callback:function(t){e.orgId=t},expression:"orgId"}},e._l(e.orgUserList,function(t){return n("Option",{key:t.orgId,attrs:{value:t.orgId}},[e._v(e._s(t.orgName))])}),1)],1),e._v(" "),n("Checkbox",{ref:"checkAllRef",attrs:{size:"large",indeterminate:e.indeterminate,value:e.checkAll},nativeOn:{click:function(t){return t.preventDefault(),e.handleCheckAll.apply(null,arguments)}}},[e._v("全选")])],1)])]),e._v(" "),n("tr",[n("td",{staticStyle:{border:"solid 1px #dedede",background:"#f6f6f6"}},[n("div",{staticStyle:{width:"90%",margin:"0 auto","line-height":"20px","min-height":"60px","align-items":"center",display:"flex"}},[n("CheckboxGroup",{staticStyle:{width:"100%"},on:{"on-change":e.checkAllGroupChange},model:{value:e.candidateUsers,callback:function(t){e.candidateUsers=t},expression:"candidateUsers"}},[e._l(e.userList,function(t){return[n("span",{staticStyle:{"min-width":"24%",display:"inline-block","margin-bottom":"10px","margin-top":"10px"}},[n("Checkbox",{key:t.userIdCard+"_"+t.orgCode,attrs:{size:"large",label:t.userIdCard+"_"+t.orgCode}},[e._v(e._s(t.userName)+" ")])],1)]})],2)],1)])])])]),e._v(" "),n("template",{slot:"footer"},[n("Button",{staticStyle:{width:"90px",height:"36px","font-size":"15px"},on:{click:e.cancel}},[e._v("取  消")]),e._v(" "),n("Button",{staticStyle:{width:"90px",height:"36px","font-size":"15px"},attrs:{loading:e.loading,type:"primary"},on:{click:e.submit}},[e._v("确  认")])],1)],2)],2)},i=[],o={render:r,staticRenderFns:i};t.a=o}])});
3495
+ //# sourceMappingURL=sd-modify-approve-user.js.map
3496
+
3497
+ /***/ }),
3498
+ /* 17 */
3499
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3500
+
3501
+ "use strict";
3502
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__data__ = __webpack_require__(18);
3503
+ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
3504
+
3505
+ /* 审批轨迹相关方法 */
3506
+
3507
+
3508
+ /* harmony default export */ __webpack_exports__["a"] = ({
3509
+ mixins: [__WEBPACK_IMPORTED_MODULE_0__data__["a" /* default */]],
3510
+ methods: {
3511
+ // 获取流程轨迹
3512
+ getApprovalTrack: function getApprovalTrack() {
3513
+ var _this = this;
3514
+
3515
+ this.$store.dispatch('postRequest', {
3516
+ url: 'bsp-bpm/bpm/approveProcess/approveTrack',
3517
+ params: { actInstId: this.actInstId }
3518
+ }).then(function (resp) {
3519
+ if (resp.success) {
3520
+ if (!resp.data) return;
3521
+ resp.data.map(function (item) {
3522
+ if (item.createTime) {
3523
+ if (item.endTime) {
3524
+ item.taskStatus = '2';
3525
+ } else {
3526
+ item.taskStatus = '1';
3527
+ }
3528
+ } else {
3529
+ item.taskStatus = '0';
3530
+ }
3531
+ });
3532
+ _this.trackArr = resp.data;
3533
+ } else {
3534
+ _this.trackArr = [];
3535
+ }
3536
+ });
3537
+ },
3538
+
3539
+ // 撤回流程
3540
+ revoke: function revoke(taskId, preIsBeginTask) {
3541
+ var _this2 = this;
3542
+
3543
+ this.$Modal.confirm({
3544
+ title: '是否确认撤回?',
3545
+ // loading: true,
3546
+ onOk: function () {
3547
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
3548
+ return regeneratorRuntime.wrap(function _callee$(_context) {
3549
+ while (1) {
3550
+ switch (_context.prev = _context.next) {
3551
+ case 0:
3552
+ _this2.loading = true;
3553
+ _this2.$store.dispatch('postRequest', {
3554
+ url: 'bsp-bpm/bpm/approveProcess/revokeProcess',
3555
+ params: { actInstId: _this2.actInstId, taskId: taskId, preIsBeginTask: preIsBeginTask }
3556
+ }).then(function (resp) {
3557
+ if (resp.success) {
3558
+ if (_this2.revokeCallback) {
3559
+ _this2.revokeCallback(resp).then(function (data) {
3560
+ _this2.loading = false;
3561
+ if (data.success) {
3562
+ // window.location.reload()
3563
+ _this2.getApprovalTrack();
3564
+ }
3565
+ });
3566
+ } else {
3567
+ _this2.loading = false;
3568
+ _this2.$Modal.success({
3569
+ title: '温馨提示',
3570
+ content: '操作成功',
3571
+ onOk: function onOk() {
3572
+ // window.location.reload()
3573
+ _this2.getApprovalTrack();
3574
+ }
3575
+ });
3576
+ }
3577
+ }
3578
+ });
3579
+
3580
+ case 2:
3581
+ case 'end':
3582
+ return _context.stop();
3583
+ }
3584
+ }
3585
+ }, _callee, _this2);
3586
+ }));
3587
+
3588
+ return function onOk() {
3589
+ return _ref.apply(this, arguments);
3590
+ };
3591
+ }()
3592
+ });
3593
+ }
3594
+ }
3595
+ });
3596
+
3597
+ /***/ }),
3598
+ /* 18 */
3599
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3600
+
3601
+ "use strict";
3602
+
3603
+ /* harmony default export */ __webpack_exports__["a"] = ({
3604
+ props: {
3605
+ // 流程实例ID
3606
+ actInstId: {
3607
+ type: String
3608
+ },
3609
+ // 是否显示撤回按钮
3610
+ showRevokeBtn: {
3611
+ type: Boolean,
3612
+ default: true
3613
+ },
3614
+ // 是否显示修改审批人按钮
3615
+ showModifyBtn: {
3616
+ type: Boolean,
3617
+ default: true
3618
+ },
3619
+ modifyBtnText: {
3620
+ type: String,
3621
+ default: '修改审批人'
3622
+ },
3623
+ extraOrgId: {
3624
+ type: String,
3625
+ default: ''
3626
+ },
3627
+ extraRegId: {
3628
+ type: String,
3629
+ default: ''
3630
+ },
3631
+ extraCityId: {
3632
+ type: String,
3633
+ default: ''
3634
+ },
3635
+ revokeCallback: {
3636
+ type: Function,
3637
+ default: null
3638
+ },
3639
+ modifyUserCallback: {
3640
+ type: Function,
3641
+ default: null
3642
+ }
3643
+ },
3644
+ data: function data() {
3645
+ return {
3646
+ trackArr: [],
3647
+ loading: false,
3648
+ activeName: ''
3649
+ };
3650
+ }
3651
+ });
3652
+
3653
+ /***/ }),
3654
+ /* 19 */
3655
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3656
+
3657
+ "use strict";
3658
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"history-audit"},[_c('Timeline',[_vm._l((_vm.trackArr),function(item){return [(!item.children)?_c('TimelineItem',{key:item.id,staticClass:"line-gray"},[(item.taskStatus == 2)?_c('Icon',{attrs:{"slot":"dot","type":"md-checkmark-circle","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(item.taskStatus == 1)?_c('Icon',{attrs:{"slot":"dot","type":"md-radio-button-off","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(item.taskStatus == 0)?_c('Icon',{attrs:{"slot":"dot","type":"ios-radio-button-off","size":"24","color":"#dae1ec"},slot:"dot"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"oper-container"},[_c('p',{staticClass:"task-container"},[_c('span',{staticClass:"task-title"},[_vm._v(_vm._s(item.taskName))]),_vm._v(" "),_c('span',[(item.isApprove == 1 || item.isApprove == 5)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(item.isApprove == 2 || item.isApprove == 6)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e(),_vm._v(" "),(item.isApprove == 3)?[_c('span',{staticClass:"warning"},[_vm._v("退回")])]:_vm._e(),_vm._v(" "),(item.isApprove == 4)?[_c('span',{staticClass:"primary"},[_vm._v("委派")])]:_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"task-oper"},[(item.taskStatus == 1)?[(_vm.showModifyBtn)?_c('modify-approve-user',{ref:"modifyApproveUser",refInFor:true,attrs:{"actInstId":_vm.actInstId,"complete":_vm.callbackSuccess,"extraOrgId":_vm.extraOrgId,"extraRegId":_vm.extraRegId,"extraCityId":_vm.extraCityId,"error":_vm.testErr}},[_c('Button',{staticClass:"slot-button",attrs:{"slot":"func","size":"small","type":"primary"},slot:"func"},[_vm._v(_vm._s(_vm.modifyBtnText))])],1):_vm._e()]:_vm._e(),_vm._v(" "),(item.revokeNodeId && _vm.showRevokeBtn)?_c('Button',{staticClass:"back-button",staticStyle:{"margin-left":"5px"},attrs:{"type":"error","size":"small","loading":_vm.loading},on:{"click":function($event){return _vm.revoke(item.preTaskId, item.preIsBeginTask)}}},[_vm._v("撤回")]):_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"content"},[(item.isApprove)?[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","content":item.executeUserName,"placement":"top"}},[_c('span',[_vm._v(_vm._s(item.executeUserName))])])],1)],1)],1),_vm._v(" "),(item.approvalContent)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理意见:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","placement":"top","theme":"light","content":item.approvalContent}},[(item.isApprove == 1 || item.isApprove == 5)?_c('span',{staticStyle:{"color":"#13BA5A"}},[_vm._v(_vm._s(item.approvalContent))]):(item.isApprove == 2 || item.isApprove == 6)?_c('span',{staticStyle:{"color":"red"}},[_vm._v(_vm._s(item.approvalContent))]):_c('span',[_vm._v(_vm._s(item.approvalContent))])])],1)],1)],1):_vm._e(),_vm._v(" "),_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理时间:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(item.endTime)))])])],1)],1)]:[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理状态:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content row-col-content-taskStatus",attrs:{"span":"19"}},[(item.taskStatus == 1)?[_c('i',{staticClass:"taskStatus ing"}),_c('span',[_vm._v("处理中")])]:_vm._e(),_vm._v(" "),(item.taskStatus == 0)?[_c('i',{staticClass:"taskStatus will"}),_c('span',[_vm._v("未处理")])]:_vm._e()],2)],1)],1),_vm._v(" "),(item.nodeUser)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[[_c('Tooltip',{attrs:{"max-width":"400","content":item.nodeUser,"placement":"top"}},[_c('span',[_vm._v(_vm._s(item.nodeUser))])])]],2)],1)],1):_vm._e()]],2)],1):_c('TimelineItem',{key:item.parentNodeId,staticClass:"line-gray"},[_c('div',{staticClass:"task-container",staticStyle:{"display":"flex","z-index":"999","position":"relative"}},_vm._l((item.children),function(ele){return _c('span',{key:ele.taskId,class:['task-title', ele.active ? 'task-title-active' : ''],staticStyle:{"cursor":"pointer","margin-right":"16px"},attrs:{"label":ele.taskName,"name":ele.taskId},on:{"click":function($event){return _vm.changeTab(ele)}}},[_vm._v("\n "+_vm._s(ele.taskName)+"\n ")])}),0),_vm._v(" "),_c('div',[_c('div',{staticStyle:{"display":"flex","margin-top":"-40px"}},_vm._l((item.children),function(ele){return _c('div',{key:ele.taskId,attrs:{"label":ele.taskName,"name":ele.taskId}},[(ele.active)?_c('div',[(ele.taskStatus == 2)?_c('Icon',{staticClass:"customIcon",attrs:{"slot":"dot","type":"md-checkmark-circle","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(ele.taskStatus == 1)?_c('Icon',{staticClass:"customIcon",attrs:{"slot":"dot","type":"md-radio-button-off","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(ele.taskStatus == 0)?_c('Icon',{staticClass:"customIcon",attrs:{"slot":"dot","type":"ios-radio-button-off","size":"24","color":"#dae1ec"},slot:"dot"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"oper-container"},[_c('p',{staticClass:"task-container"},[_c('span',[(ele.isApprove == 1)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 2)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 3)?[_c('span',{staticClass:"warning"},[_vm._v("退回")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 4)?[_c('span',{staticClass:"primary"},[_vm._v("委派")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 5)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 6)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"task-oper"},[(ele.taskStatus == 1)?[(_vm.showModifyBtn)?_c('modify-approve-user',{ref:"modifyApproveUser",refInFor:true,attrs:{"actInstId":_vm.actInstId,"complete":_vm.callbackSuccess,"extraOrgId":_vm.extraOrgId,"extraRegId":_vm.extraRegId,"extraCityId":_vm.extraCityId,"error":_vm.testErr}},[_c('Button',{staticClass:"slot-button",attrs:{"slot":"func","size":"small","type":"primary"},slot:"func"},[_vm._v(_vm._s(_vm.modifyBtnText))])],1):_vm._e()]:_vm._e(),_vm._v(" "),(ele.revokeNodeId && _vm.showRevokeBtn)?_c('Button',{staticClass:"back-button",staticStyle:{"margin-left":"5px"},attrs:{"type":"error","size":"small","loading":_vm.loading},on:{"click":function($event){return _vm.revoke(ele.preTaskId, ele.preIsBeginTask)}}},[_vm._v("撤回")]):_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"content"},[(ele.isApprove)?[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","content":ele.executeUserName,"placement":"top"}},[_c('span',[_vm._v(_vm._s(ele.executeUserName))])])],1)],1)],1),_vm._v(" "),(ele.approvalContent)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理意见:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","placement":"top","theme":"light","content":ele.approvalContent}},[_c('span',[_vm._v(_vm._s(ele.approvalContent))])])],1)],1)],1):_vm._e(),_vm._v(" "),_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理时间:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(ele.endTime)))])])],1)],1)]:[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理状态:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content row-col-content-taskStatus",attrs:{"span":"19"}},[(ele.taskStatus == 1)?[_c('i',{staticClass:"taskStatus ing"}),_vm._v(" "),_c('span',[_vm._v("处理中")])]:_vm._e(),_vm._v(" "),(ele.taskStatus == 0)?[_c('i',{staticClass:"taskStatus will"}),_c('span',[_vm._v("未处理")])]:_vm._e()],2)],1)],1),_vm._v(" "),(ele.nodeUser)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[[_c('Tooltip',{attrs:{"max-width":"400","content":ele.nodeUser,"placement":"top"}},[_c('span',[_vm._v(_vm._s(ele.nodeUser))])])]],2)],1)],1):_vm._e()]],2)],1):_vm._e()])}),0)])])]})],2)],1)}
3659
+ var staticRenderFns = []
3660
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
3661
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
3662
+
3663
+ /***/ }),
3664
+ /* 20 */
3665
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3666
+
3667
+ "use strict";
3668
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"bsp-general-wrap"},[_c('Tabs',{attrs:{"value":_vm.tabValue},on:{"on-click":function (data) { _vm.tabValue = data }}},[(_vm.showSp)?_c('TabPane',{attrs:{"label":"审批","name":"sp"}},[(_vm.tabValue == 'sp')?_c('div',{staticClass:"bsp-approve"},[_c('Form',{ref:"approvalForm",staticClass:"form-ctnt",attrs:{"label-width":120,"label-colon":"","label-position":"right","model":_vm.formValidate,"rules":_vm.ruleValidate}},[(_vm.showApproveUser && _vm.nextNodeList.length > 0)?_c('FormItem',{attrs:{"label":_vm.formLabel.approvalNode,"required":""}},[_c('Select',{staticStyle:{"width":"100%"},attrs:{"filterable":"","transfer":true},on:{"on-change":_vm.onSelectNode},model:{value:(_vm.selectNode),callback:function ($$v) {_vm.selectNode=$$v},expression:"selectNode"}},_vm._l((_vm.nextNodeList),function(item){return _c('Option',{key:item.nodeId,attrs:{"value":item.nodeId}},[_vm._v(_vm._s(item.nodeName)+"\n ")])}),1)],1):_vm._e(),_vm._v(" "),(_vm.selectNode)?_c('FormItem',{attrs:{"label":"审批结果","required":"","prop":"isApprove"}},[_c('RadioGroup',{on:{"on-change":_vm.isApproveChange},model:{value:(_vm.formValidate.isApprove),callback:function ($$v) {_vm.$set(_vm.formValidate, "isApprove", $$v)},expression:"formValidate.isApprove"}},_vm._l((_vm.optionsBtnArr),function(item){return _c('Radio',{key:item.id,attrs:{"size":"large","label":item.code}},[_vm._v(_vm._s(item.name)+"\n ")])}),1)],1):_vm._e(),_vm._v(" "),(_vm.selectNode)?_c('FormItem',{attrs:{"label":_vm.formLabel.approvalContent,"prop":"approvalContent"}},[_c('Input',{staticStyle:{"width":"100%"},attrs:{"type":"textarea","autosize":{ minRows: 2 },"placeholder":"请输入审批意见"},model:{value:(_vm.formValidate.approvalContent),callback:function ($$v) {_vm.$set(_vm.formValidate, "approvalContent", $$v)},expression:"formValidate.approvalContent"}})],1):_vm._e(),_vm._v(" "),(_vm.selectNode)?_c('FormItem',{attrs:{"label":_vm.formLabel.approvalDate,"prop":"approvalDate"}},[_c('el-date-picker',{staticStyle:{"width":"100%","font-size":"16px"},attrs:{"type":"datetime","size":"small","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:(_vm.formValidate.approvalDate),callback:function ($$v) {_vm.$set(_vm.formValidate, "approvalDate", $$v)},expression:"formValidate.approvalDate"}})],1):_vm._e(),_vm._v(" "),(_vm.showApproveUser && _vm.selectNode)?_c('FormItem',{attrs:{"label":_vm.formLabel.approvalOrg}},[_c('div',{staticClass:"uni-ctnt"},[_c('div',{staticClass:"uni-sel"},[_c('Select',{staticClass:"sel",staticStyle:{"width":"100%"},attrs:{"filterable":"","transfer":true},on:{"on-select":_vm.orgSelectEvent},model:{value:(_vm.selectOrgArr),callback:function ($$v) {_vm.selectOrgArr=$$v},expression:"selectOrgArr"}},_vm._l((_vm.orgArr),function(item){return _c('Option',{key:item.orgId,attrs:{"value":item.orgId}},[_vm._v(_vm._s(item.orgName))])}),1)],1),_vm._v(" "),_c('div',{staticClass:"checkAll"},[_c('Checkbox',{attrs:{"indeterminate":_vm.indeterminate,"value":_vm.checkAll},nativeOn:{"click":function($event){$event.preventDefault();return _vm.handleCheckAll.apply(null, arguments)}}},[_vm._v("全选\n ")])],1),_vm._v(" "),_c('div',{staticClass:"uni-list"},_vm._l((_vm.orgUserList),function(orgItem){return _c('div',{key:orgItem.orgId,staticStyle:{"float":"left"}},[_c('CheckboxGroup',{staticClass:"check",attrs:{"size":"large"},on:{"on-change":_vm.checkAllGroupChange},model:{value:(_vm.checkedUser),callback:function ($$v) {_vm.checkedUser=$$v},expression:"checkedUser"}},_vm._l((orgItem.user),function(user){return _c('Checkbox',{key:user.userIdCard + '_' + user.orgCode,attrs:{"label":user.userIdCard + '_' + user.orgCode}},[_vm._v(_vm._s(user.userName))])}),1)],1)}),0)])]):_vm._e(),_vm._v(" "),(_vm.formValidate.isBack)?_c('FormItem',{attrs:{"label":"退回节点","required":"","prop":"backNodeId"}},[_c('Select',{staticStyle:{"width":"100%"},attrs:{"transfer":true},model:{value:(_vm.formValidate.backNodeId),callback:function ($$v) {_vm.$set(_vm.formValidate, "backNodeId", $$v)},expression:"formValidate.backNodeId"}},_vm._l((_vm.rollbackNodeList),function(item){return _c('Option',{key:item.id,attrs:{"value":item.id}},[_vm._v(_vm._s(item.name))])}),1)],1):_vm._e(),_vm._v(" "),(_vm.formValidate.isDelegateTask)?_c('FormItem',{attrs:{"label":"被指派人","required":"","prop":"delegateUserName"}},[_c('div',{staticStyle:{"width":"100%"}},[_c('user-selector',{attrs:{"text":_vm.formValidate.delegateUserName,"tit":"选择被指派民警","numExp":"num==1","msg":"主办民警数量必须等于1人"},on:{"update:text":function($event){return _vm.$set(_vm.formValidate, "delegateUserName", $event)},"onSelect":_vm.selectDelegate,"onClear":_vm.clearDelegate},model:{value:(_vm.formValidate.delegateUserId),callback:function ($$v) {_vm.$set(_vm.formValidate, "delegateUserId", $$v)},expression:"formValidate.delegateUserId"}})],1)]):_vm._e(),_vm._v(" "),(_vm.showCustomSlot)?_c('FormItem',{attrs:{"label":_vm.customSlotName}},[_vm._t("customSlot")],2):_vm._e(),_vm._v(" "),(_vm.showcc && _vm.selectNode)?_c('FormItem',{attrs:{"label":"抄送"}},[_c('div',{staticStyle:{"background-color":"#CEE0F0","text-align":"left","width":"100%","border":"1px solid #CEE0F0"}},[_c('div',{staticClass:"bsp-flow-people-ctnt scroll-able",staticStyle:{"padding":"8px","background":"#fff","display":"flex"}},[_vm._l((_vm.csldList),function(item,i){return _c('Tag',{key:item.idcard,staticStyle:{"display":"flex","align-items":"center","text-overflow":"ellipsis"},attrs:{"type":"dot","closable":"","color":"primary"},on:{"on-close":function($event){return _vm.csld_close(i)}}},[_vm._v(_vm._s(item.name))])}),_vm._v(" "),_c('user-selector',{ref:"userSelector",attrs:{"tit":"选择抄送人员","value":_vm.formValidate.csldbh},on:{"onSelect":_vm.policeConfirm}},[_c('Button',{staticClass:"bsp-sel-user",staticStyle:{"padding":"0 10px","margin-top":"-1px"},attrs:{"slot":"func","icon":"md-add","type":"dashed"},slot:"func"},[_vm._v("添加人员")])],1)],2)])]):_vm._e()],1),_vm._v(" "),(!_vm.selectNode)?_c('div',{staticClass:"tip-container"},[_c('span',{staticClass:"tip-title"},[_vm._v("提示")]),_c('span',{staticClass:"tip-warning"},[_vm._v("(请注意区分审核节点选择的选项)")]),_vm._v(" "),_c('p',[_vm._v("领导审批: 由单位内法制领导审批")]),_vm._v(" "),_c('p',[_vm._v("法制审批: 由单位内法制领导审批")])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"footer-approve"},[(_vm.showBack)?_c('Button',{staticClass:"cancle-button",on:{"click":_vm.cancel}},[_vm._v(_vm._s(_vm.cancelBtnText))]):_vm._e(),_vm._v("  \n "),_c('Button',{staticClass:"submit-button",attrs:{"disabled":_vm.disabledSubmit,"type":"primary","loading":_vm.custom_loading},on:{"click":function($event){return _vm.handleSubmit('approvalForm')}}},[_vm._v(_vm._s(_vm.confirmBtnText))])],1)],1):_vm._e()]):_vm._e(),_vm._v(" "),_c('TabPane',{attrs:{"label":"流程轨迹","name":"flow"}},[(_vm.tabValue == 'flow')?_c('div',{staticClass:"bsp-approve"},[(_vm.actInstId)?_c('s-general-history',{key:_vm.timer,attrs:{"showModifyBtn":false,"actInstId":_vm.actInstId}}):_vm._e()],1):_vm._e()])],1)],1)}
3669
+ var staticRenderFns = []
3670
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
3671
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
3672
+
3673
+ /***/ })
3674
+ /******/ ]);
3675
+ });
3676
+ //# sourceMappingURL=gxx-general-approve.js.map