sd-prison-select 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gs-start-approval.js +1441 -0
- package/dist/gs-start-approval.js.map +1 -0
- package/dist/gs-user-selector.js +252 -72
- package/dist/gs-user-selector.js.map +1 -1
- package/dist/sd-data-grid.js +82 -24
- package/dist/sd-data-grid.js.map +1 -1
- package/dist/sd-minio-upfile.js +5 -4
- package/dist/sd-minio-upfile.js.map +1 -1
- package/dist/sd-prison-select.js +7 -7
- package/dist/sd-prison-select.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1441 @@
|
|
|
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("gs-start-approval", [], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["gs-start-approval"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["gs-start-approval"] = 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 = 3);
|
|
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__(7)
|
|
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, __webpack_exports__, __webpack_require__) {
|
|
382
|
+
|
|
383
|
+
"use strict";
|
|
384
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sd_user_selector__ = __webpack_require__(11);
|
|
385
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sd_user_selector___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_sd_user_selector__);
|
|
386
|
+
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"); }); }; }
|
|
387
|
+
|
|
388
|
+
//
|
|
389
|
+
//
|
|
390
|
+
//
|
|
391
|
+
//
|
|
392
|
+
//
|
|
393
|
+
//
|
|
394
|
+
//
|
|
395
|
+
//
|
|
396
|
+
//
|
|
397
|
+
//
|
|
398
|
+
//
|
|
399
|
+
//
|
|
400
|
+
//
|
|
401
|
+
//
|
|
402
|
+
//
|
|
403
|
+
//
|
|
404
|
+
//
|
|
405
|
+
//
|
|
406
|
+
//
|
|
407
|
+
//
|
|
408
|
+
//
|
|
409
|
+
//
|
|
410
|
+
//
|
|
411
|
+
//
|
|
412
|
+
//
|
|
413
|
+
//
|
|
414
|
+
//
|
|
415
|
+
//
|
|
416
|
+
//
|
|
417
|
+
//
|
|
418
|
+
//
|
|
419
|
+
//
|
|
420
|
+
//
|
|
421
|
+
//
|
|
422
|
+
//
|
|
423
|
+
//
|
|
424
|
+
//
|
|
425
|
+
//
|
|
426
|
+
//
|
|
427
|
+
//
|
|
428
|
+
//
|
|
429
|
+
//
|
|
430
|
+
//
|
|
431
|
+
//
|
|
432
|
+
//
|
|
433
|
+
//
|
|
434
|
+
//
|
|
435
|
+
//
|
|
436
|
+
//
|
|
437
|
+
//
|
|
438
|
+
//
|
|
439
|
+
//
|
|
440
|
+
//
|
|
441
|
+
//
|
|
442
|
+
//
|
|
443
|
+
//
|
|
444
|
+
//
|
|
445
|
+
//
|
|
446
|
+
//
|
|
447
|
+
//
|
|
448
|
+
//
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
// import userSelector from '../../../src/components/start-approval/start-approval'
|
|
452
|
+
|
|
453
|
+
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
454
|
+
name: 'start-approval',
|
|
455
|
+
props: {
|
|
456
|
+
businessId: {
|
|
457
|
+
type: String,
|
|
458
|
+
default: ''
|
|
459
|
+
},
|
|
460
|
+
operType: {
|
|
461
|
+
type: String,
|
|
462
|
+
default: '1' //新增 0 编辑 1
|
|
463
|
+
},
|
|
464
|
+
formId: {
|
|
465
|
+
type: String,
|
|
466
|
+
default: '' //1858415537667837952
|
|
467
|
+
},
|
|
468
|
+
msgTit: {
|
|
469
|
+
type: String,
|
|
470
|
+
default: ''
|
|
471
|
+
},
|
|
472
|
+
msgUrl: {
|
|
473
|
+
type: String,
|
|
474
|
+
default: ''
|
|
475
|
+
},
|
|
476
|
+
sponsor: {
|
|
477
|
+
type: String,
|
|
478
|
+
default: ''
|
|
479
|
+
},
|
|
480
|
+
sponsorOrg: {
|
|
481
|
+
type: String,
|
|
482
|
+
default: ''
|
|
483
|
+
},
|
|
484
|
+
module: {
|
|
485
|
+
type: String,
|
|
486
|
+
default: ''
|
|
487
|
+
},
|
|
488
|
+
variables: {
|
|
489
|
+
type: Object,
|
|
490
|
+
default: function _default() {
|
|
491
|
+
return {};
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
platform: {
|
|
495
|
+
type: String,
|
|
496
|
+
default: 'pc'
|
|
497
|
+
},
|
|
498
|
+
definition: {
|
|
499
|
+
type: Array,
|
|
500
|
+
default: function _default() {
|
|
501
|
+
return [];
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
beforeOpen: {
|
|
505
|
+
// 打开启动流程组件钱事件
|
|
506
|
+
type: Function,
|
|
507
|
+
default: null
|
|
508
|
+
},
|
|
509
|
+
startUpSuccess: {
|
|
510
|
+
type: Function,
|
|
511
|
+
default: null
|
|
512
|
+
},
|
|
513
|
+
beforeSatrtUp: {
|
|
514
|
+
type: Function,
|
|
515
|
+
default: null
|
|
516
|
+
},
|
|
517
|
+
error: {
|
|
518
|
+
type: Function,
|
|
519
|
+
default: null
|
|
520
|
+
},
|
|
521
|
+
isDelProcInst: {
|
|
522
|
+
// 流程启动失败是否删除流程实例
|
|
523
|
+
type: Boolean,
|
|
524
|
+
default: true
|
|
525
|
+
},
|
|
526
|
+
delProcInstCallback: {
|
|
527
|
+
type: Function,
|
|
528
|
+
default: null
|
|
529
|
+
},
|
|
530
|
+
showcc: {
|
|
531
|
+
type: Boolean,
|
|
532
|
+
default: true
|
|
533
|
+
},
|
|
534
|
+
tit: {
|
|
535
|
+
type: String,
|
|
536
|
+
default: '提交审批'
|
|
537
|
+
},
|
|
538
|
+
bindEvent: {
|
|
539
|
+
type: Boolean,
|
|
540
|
+
default: true
|
|
541
|
+
},
|
|
542
|
+
orgCode: {
|
|
543
|
+
type: String,
|
|
544
|
+
default: ''
|
|
545
|
+
},
|
|
546
|
+
assigneeUserId: {
|
|
547
|
+
type: String,
|
|
548
|
+
default: ''
|
|
549
|
+
},
|
|
550
|
+
assigneeUserName: {
|
|
551
|
+
type: String,
|
|
552
|
+
default: ''
|
|
553
|
+
},
|
|
554
|
+
assigneeOrgId: {
|
|
555
|
+
type: String,
|
|
556
|
+
default: ''
|
|
557
|
+
},
|
|
558
|
+
assigneeOrgName: {
|
|
559
|
+
type: String,
|
|
560
|
+
default: ''
|
|
561
|
+
},
|
|
562
|
+
assigneeAreaId: {
|
|
563
|
+
type: String,
|
|
564
|
+
default: ''
|
|
565
|
+
},
|
|
566
|
+
assigneeAreaName: {
|
|
567
|
+
type: String,
|
|
568
|
+
default: ''
|
|
569
|
+
},
|
|
570
|
+
extraOrgId: {
|
|
571
|
+
type: String,
|
|
572
|
+
default: ''
|
|
573
|
+
},
|
|
574
|
+
extraRegId: {
|
|
575
|
+
type: String,
|
|
576
|
+
default: ''
|
|
577
|
+
},
|
|
578
|
+
selectUsers: {
|
|
579
|
+
type: String,
|
|
580
|
+
default: ''
|
|
581
|
+
},
|
|
582
|
+
extraCityId: {
|
|
583
|
+
type: String,
|
|
584
|
+
default: ''
|
|
585
|
+
},
|
|
586
|
+
showCbyj: {
|
|
587
|
+
type: Boolean,
|
|
588
|
+
default: false
|
|
589
|
+
},
|
|
590
|
+
approvalContent: {
|
|
591
|
+
type: String,
|
|
592
|
+
default: ''
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
components: {
|
|
596
|
+
userSelector: __WEBPACK_IMPORTED_MODULE_0_sd_user_selector__["userSelector"]
|
|
597
|
+
},
|
|
598
|
+
data: function data() {
|
|
599
|
+
return {
|
|
600
|
+
bootData: {},
|
|
601
|
+
isInitData: false,
|
|
602
|
+
openStatus: false,
|
|
603
|
+
nodeName: '部门',
|
|
604
|
+
loading: false,
|
|
605
|
+
indeterminate: false,
|
|
606
|
+
checkAll: true,
|
|
607
|
+
bpmDefinition: [],
|
|
608
|
+
orgUserList: [],
|
|
609
|
+
actDefKey: '',
|
|
610
|
+
actDefName: '',
|
|
611
|
+
orgId: '',
|
|
612
|
+
userList: [],
|
|
613
|
+
candidateUsers: [],
|
|
614
|
+
csldList: [], // 抄送领导
|
|
615
|
+
selectedUser: '',
|
|
616
|
+
selectNode: '',
|
|
617
|
+
nextNodeList: [],
|
|
618
|
+
// 所选择的节点是否需要法制审核
|
|
619
|
+
selectNodeSffzsh: false,
|
|
620
|
+
formValidate: {
|
|
621
|
+
approvalContent: this.approvalContent
|
|
622
|
+
},
|
|
623
|
+
orgArr: [],
|
|
624
|
+
selectOrgArr: [],
|
|
625
|
+
formArr: [],
|
|
626
|
+
formData: {},
|
|
627
|
+
ProcessVarObj: {}
|
|
628
|
+
};
|
|
629
|
+
},
|
|
630
|
+
mounted: function mounted() {
|
|
631
|
+
if (this.bindEvent && this.$slots.func) {
|
|
632
|
+
this.reference = this.$slots.func[0].elm;
|
|
633
|
+
this.reference.addEventListener('click', this.openStartApproval);
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
|
|
637
|
+
watch: {
|
|
638
|
+
approvalContent: function approvalContent(value) {
|
|
639
|
+
this.formValidate.approvalContent = value;
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
methods: {
|
|
643
|
+
openStartApproval: function openStartApproval() {
|
|
644
|
+
var _this = this;
|
|
645
|
+
|
|
646
|
+
if (this.beforeOpen) {
|
|
647
|
+
|
|
648
|
+
this.beforeOpen().then(function (data) {
|
|
649
|
+
if (data) {
|
|
650
|
+
_this.formId ? _this.getForm() : _this.initData();
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
} else {
|
|
654
|
+
this.formId ? this.getForm() : this.initData();
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
getFormField: function getFormField() {
|
|
658
|
+
var _this2 = this;
|
|
659
|
+
|
|
660
|
+
if (this.formId) {
|
|
661
|
+
this.$store.dispatch('postRequest', { url: '/bsp-com/com/form/getFormFieldByFormId', params: { formId: this.formId } }).then(function (resp) {
|
|
662
|
+
if (resp.success) {
|
|
663
|
+
if (resp.data && resp.data.length > 0) {
|
|
664
|
+
resp.data.forEach(function (item) {
|
|
665
|
+
if (item.isMain == '1') {
|
|
666
|
+
_this2.formArr = item.children;
|
|
667
|
+
var obj = {};
|
|
668
|
+
var keyName = '';
|
|
669
|
+
_this2.formArr.forEach(function (ele) {
|
|
670
|
+
if (ele.isProcessVar && ele.isProcessVar == '1') {
|
|
671
|
+
keyName = ele.fieldName;
|
|
672
|
+
obj[keyName] = _this2.formData[ele.fieldName];
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
_this2.ProcessVarObj = obj;
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
_this2.initData();
|
|
679
|
+
} else {
|
|
680
|
+
_this2.initData();
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
getForm: function getForm() {
|
|
687
|
+
var _this3 = this;
|
|
688
|
+
|
|
689
|
+
var params = {
|
|
690
|
+
operType: this.operType,
|
|
691
|
+
formId: this.formId,
|
|
692
|
+
businessId: this.businessId
|
|
693
|
+
};
|
|
694
|
+
this.$store.dispatch('postRequest', { url: '/bsp-com/com/form/handle/getFormData', params: params }).then(function (resp) {
|
|
695
|
+
if (resp.success) {
|
|
696
|
+
console.log(resp, resp.success, 'resp.data');
|
|
697
|
+
_this3.formData = resp.formData;
|
|
698
|
+
_this3.getFormField();
|
|
699
|
+
} else {
|
|
700
|
+
_this3.warnSwal('文书模版加载出错。原因:' + resp.msg);
|
|
701
|
+
}
|
|
702
|
+
});
|
|
703
|
+
},
|
|
704
|
+
initData: function initData() {
|
|
705
|
+
// 清空抄送人员
|
|
706
|
+
this.csldList = [];
|
|
707
|
+
if (this.isInitData) {
|
|
708
|
+
this.openStatus = true;
|
|
709
|
+
} else {
|
|
710
|
+
if (this.definition.length < 1) {
|
|
711
|
+
this.warnSwal('未设置流程。');
|
|
712
|
+
return;
|
|
713
|
+
}
|
|
714
|
+
if (this.businessId === '') {
|
|
715
|
+
this.warnSwal('未设置业务编号[businessId]。');
|
|
716
|
+
return;
|
|
717
|
+
}
|
|
718
|
+
if (this.module === '') {
|
|
719
|
+
this.warnSwal('未设置模块名称[module]。');
|
|
720
|
+
return;
|
|
721
|
+
}
|
|
722
|
+
this.bootData = {
|
|
723
|
+
definition: this.definition,
|
|
724
|
+
businessId: this.businessId,
|
|
725
|
+
fApp: this.module,
|
|
726
|
+
fXxpt: this.platform,
|
|
727
|
+
variables: this.variables,
|
|
728
|
+
zbrUserId: this.sponsor,
|
|
729
|
+
zbrOrgId: this.sponsorOrg,
|
|
730
|
+
msgUrl: this.msgUrl,
|
|
731
|
+
msgTit: this.msgTit,
|
|
732
|
+
assigneeUserId: this.assigneeUserId,
|
|
733
|
+
assigneeUserName: this.assigneeUserName,
|
|
734
|
+
assigneeOrgId: this.assigneeOrgId,
|
|
735
|
+
assigneeOrgName: this.assigneeOrgName,
|
|
736
|
+
assigneeAreaId: this.assigneeAreaId,
|
|
737
|
+
assigneeAreaName: this.assigneeAreaName
|
|
738
|
+
};
|
|
739
|
+
this.initDefiniton(this.bootData.definition);
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
warnSwal: function warnSwal(msg, callback) {
|
|
743
|
+
this.$Modal.warning({
|
|
744
|
+
title: '温馨提示',
|
|
745
|
+
content: msg
|
|
746
|
+
});
|
|
747
|
+
},
|
|
748
|
+
|
|
749
|
+
// 判断所选择的节点是否需要法制审核
|
|
750
|
+
justFzshNextNode: function justFzshNextNode() {
|
|
751
|
+
var _this4 = this;
|
|
752
|
+
|
|
753
|
+
if (this.selectNode) {
|
|
754
|
+
this.$store.dispatch('postRequest', { url: '/bsp-bpm/bpm/nodeSetting/isFzsh', params: { defKey: this.actDefKey, nodeId: this.selectNode } }).then(function (resp) {
|
|
755
|
+
if (resp.success) {
|
|
756
|
+
// 是否需要法制审核
|
|
757
|
+
_this4.selectNodeSffzsh = resp.sffzsh;
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
initDefiniton: function initDefiniton(bpmDefinition) {
|
|
763
|
+
if (bpmDefinition.length < 1) {
|
|
764
|
+
this.warnSwal('未配置流程。');
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
this.bpmDefinition = bpmDefinition;
|
|
768
|
+
this.actDefKey = bpmDefinition[0].defKey;
|
|
769
|
+
this.actDefName = bpmDefinition[0].name;
|
|
770
|
+
this.getOrgUserList(this.actDefKey, null, this.bootData.assigneeUserId);
|
|
771
|
+
},
|
|
772
|
+
getOrgUserList: function getOrgUserList(actDefKey, actInstId, userId) {
|
|
773
|
+
var _this5 = this;
|
|
774
|
+
|
|
775
|
+
// if (!userId) userId = this.$store.state.common.idCard;
|
|
776
|
+
var url = '';
|
|
777
|
+
var param = {};
|
|
778
|
+
var formProcessVar = '';
|
|
779
|
+
this.formId ? formProcessVar = JSON.stringify(this.ProcessVarObj) : '';
|
|
780
|
+
if (actInstId) {
|
|
781
|
+
// 审批过程获取用户信息
|
|
782
|
+
url = '/bsp-bpm/bpm/approveProcess/getApproveUser';
|
|
783
|
+
param = { actInstId: actInstId, userId: userId, formProcessVar: formProcessVar };
|
|
784
|
+
} else {
|
|
785
|
+
url = '/bsp-bpm/bpm/approveProcess/getStartApproveUser';
|
|
786
|
+
param = {
|
|
787
|
+
defKey: actDefKey,
|
|
788
|
+
startUserId: userId,
|
|
789
|
+
startRegId: this.bootData.assigneeAreaId,
|
|
790
|
+
startOrgId: this.bootData.assigneeOrgId,
|
|
791
|
+
extraOrgId: this.extraOrgId,
|
|
792
|
+
extraRegId: this.extraRegId,
|
|
793
|
+
extraCityId: this.extraCityId,
|
|
794
|
+
zbrUserId: this.bootData.zbrUserId,
|
|
795
|
+
zbrOrgId: this.bootData.zbrOrgId,
|
|
796
|
+
formProcessVar: formProcessVar
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
this.$store.dispatch('postRequest', { url: url, params: param }).then(function (data) {
|
|
800
|
+
if (data.success && data.data.length > 0) {
|
|
801
|
+
_this5.openStatus = true;
|
|
802
|
+
_this5.isInitData = true;
|
|
803
|
+
var nodeData = data.data[0];
|
|
804
|
+
if (nodeData.nodeType == 'exclusiveGateway') {
|
|
805
|
+
_this5.nextNodeList = nodeData.orgUserList;
|
|
806
|
+
// 默认选中第一个节点
|
|
807
|
+
// this.selectNode = this.nextNodeList[0].nodeId
|
|
808
|
+
// this.nodeName = this.nextNodeList[0].nodeName
|
|
809
|
+
// this.orgUserList = this.nextNodeList[0].orgUser
|
|
810
|
+
// this.clearCheckbox()
|
|
811
|
+
// 判断所选择的节点是否需要法制审核
|
|
812
|
+
// this.justFzshNextNode()
|
|
813
|
+
return;
|
|
814
|
+
}
|
|
815
|
+
// 当下一节点不是排它网关时
|
|
816
|
+
_this5.selectNode = nodeData.nodeId;
|
|
817
|
+
// 判断下一节点是否需要法制审核
|
|
818
|
+
// this.justFzshNextNode()
|
|
819
|
+
|
|
820
|
+
var orgUserList = nodeData.orgUserList;
|
|
821
|
+
_this5.orgArr = orgUserList;
|
|
822
|
+
|
|
823
|
+
// 默认选中第一项
|
|
824
|
+
if (orgUserList && orgUserList.length > 0) {
|
|
825
|
+
var selectOrg = _this5.getSelectOrg(orgUserList, _this5.extraOrgId, _this5.extraRegId);
|
|
826
|
+
_this5.orgSelectEvent({
|
|
827
|
+
label: selectOrg.orgName,
|
|
828
|
+
value: selectOrg.orgId
|
|
829
|
+
}, true);
|
|
830
|
+
_this5.selectOrgArr = [];
|
|
831
|
+
_this5.selectOrgArr.push(selectOrg.orgId);
|
|
832
|
+
}
|
|
833
|
+
} else {
|
|
834
|
+
_this5.warnSwal(data.msg);
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
},
|
|
838
|
+
onSelectNode: function onSelectNode(nodeId) {
|
|
839
|
+
var _this6 = this;
|
|
840
|
+
|
|
841
|
+
this.nextNodeList.forEach(function (item) {
|
|
842
|
+
if (item.nodeId == nodeId) {
|
|
843
|
+
_this6.orgArr = item.orgUser;
|
|
844
|
+
}
|
|
845
|
+
});
|
|
846
|
+
// 清空单位值,清空复选框
|
|
847
|
+
/* this.orgUserList = []
|
|
848
|
+
this.selectOrgArr = [] */
|
|
849
|
+
// 默认选中第一项
|
|
850
|
+
if (this.orgArr && this.orgArr.length > 0) {
|
|
851
|
+
this.orgSelectEvent({
|
|
852
|
+
label: this.orgArr[0].orgName,
|
|
853
|
+
value: this.orgArr[0].orgId
|
|
854
|
+
});
|
|
855
|
+
this.selectOrgArr = [];
|
|
856
|
+
this.selectOrgArr.push(this.orgArr[0].orgId);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
// 判断所选择的节点是否需要法制审核
|
|
860
|
+
// this.justFzshNextNode()
|
|
861
|
+
},
|
|
862
|
+
getSelectOrg: function getSelectOrg(orgUserList, extraOrgId, extraRegId) {
|
|
863
|
+
var extraOrgIdArr = extraOrgId ? extraOrgId.split(',') : [];
|
|
864
|
+
var extraRegionIdArr = extraRegId ? extraRegId.split(',') : [];
|
|
865
|
+
// 先根据机构id匹配
|
|
866
|
+
for (var i in extraOrgIdArr) {
|
|
867
|
+
var matchOrgIdVal = extraOrgIdArr[i];
|
|
868
|
+
for (var j in orgUserList) {
|
|
869
|
+
var item = orgUserList[j];
|
|
870
|
+
if (matchOrgIdVal === item['orgId']) {
|
|
871
|
+
return item;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
// 根据机构id没有匹配到时再根据区域id匹配
|
|
876
|
+
for (var _i in extraRegionIdArr) {
|
|
877
|
+
var matchRegionId = extraRegionIdArr[_i];
|
|
878
|
+
for (var _j in orgUserList) {
|
|
879
|
+
var _item = orgUserList[_j];
|
|
880
|
+
if (matchRegionId === _item['regId']) {
|
|
881
|
+
return _item;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
// 都没匹配到就默认第一个
|
|
886
|
+
return orgUserList[0];
|
|
887
|
+
},
|
|
888
|
+
orgSelectEvent: function orgSelectEvent(option, selectTag) {
|
|
889
|
+
var _this7 = this;
|
|
890
|
+
|
|
891
|
+
var index = this.orgArr.findIndex(function (item) {
|
|
892
|
+
return item.orgId == option.value;
|
|
893
|
+
});
|
|
894
|
+
this.orgUserList = [];
|
|
895
|
+
this.candidateUsers = [];
|
|
896
|
+
this.orgUserList.push(this.orgArr[index]);
|
|
897
|
+
// 默认全选
|
|
898
|
+
this.indeterminate = false;
|
|
899
|
+
this.checkAll = true;
|
|
900
|
+
if (this.selectUsers && selectTag) {
|
|
901
|
+
var selectUsersArr = this.selectUsers.split(',');
|
|
902
|
+
this.orgArr[index].user.map(function (item) {
|
|
903
|
+
return selectUsersArr.forEach(function (ele) {
|
|
904
|
+
if (item.userIdCard == ele) {
|
|
905
|
+
_this7.candidateUsers.push(item.userIdCard + '_' + item.orgCode);
|
|
906
|
+
}
|
|
907
|
+
});
|
|
908
|
+
});
|
|
909
|
+
// 如果默认人员不存在 设置全选
|
|
910
|
+
if (this.candidateUsers && this.candidateUsers.length == 0) {
|
|
911
|
+
this.orgArr[index].user.map(function (item) {
|
|
912
|
+
return _this7.candidateUsers.push(item.userIdCard + '_' + item.orgCode);
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
if (this.candidateUsers.length == this.orgArr[index].user.length) {
|
|
916
|
+
this.indeterminate = false;
|
|
917
|
+
this.checkAll = true;
|
|
918
|
+
} else {
|
|
919
|
+
this.indeterminate = true;
|
|
920
|
+
this.checkAll = false;
|
|
921
|
+
}
|
|
922
|
+
} else {
|
|
923
|
+
this.orgArr[index].user.map(function (item) {
|
|
924
|
+
return _this7.candidateUsers.push(item.userIdCard + '_' + item.orgCode);
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
// this.orgArr[index].user.map(item => this.candidateUsers.push(item.userIdCard + '_' + item.orgCode))
|
|
928
|
+
},
|
|
929
|
+
onSelectFlow: function onSelectFlow(data) {
|
|
930
|
+
var actDefKey = data.value;
|
|
931
|
+
var index = this.bpmDefinition.findIndex(function (item) {
|
|
932
|
+
return item.defKey == actDefKey;
|
|
933
|
+
});
|
|
934
|
+
if (index > -1) {
|
|
935
|
+
this.actDefKey = this.bpmDefinition[index].defKey;
|
|
936
|
+
this.actDefName = this.bpmDefinition[index].name;
|
|
937
|
+
}
|
|
938
|
+
// 清空单位值,清空复选框
|
|
939
|
+
this.orgArr = [];
|
|
940
|
+
this.orgUserList = [];
|
|
941
|
+
this.candidateUsers = [];
|
|
942
|
+
this.selectOrgArr = [];
|
|
943
|
+
this.nextNodeList = [];
|
|
944
|
+
this.selectNode = '';
|
|
945
|
+
this.getOrgUserList(this.actDefKey, null, this.bootData.assigneeUserId);
|
|
946
|
+
},
|
|
947
|
+
convertCandidateUsers: function convertCandidateUsers() {
|
|
948
|
+
return this.candidateUsers.map(function (item) {
|
|
949
|
+
var array = item.split('_');
|
|
950
|
+
return {
|
|
951
|
+
idCard: array[0],
|
|
952
|
+
orgCode: array[1]
|
|
953
|
+
};
|
|
954
|
+
});
|
|
955
|
+
},
|
|
956
|
+
convertCsldbh: function convertCsldbh() {
|
|
957
|
+
return this.csldList.map(function (item) {
|
|
958
|
+
return {
|
|
959
|
+
idCard: item.idCard,
|
|
960
|
+
orgCode: item.orgCode
|
|
961
|
+
};
|
|
962
|
+
});
|
|
963
|
+
},
|
|
964
|
+
submit: function submit() {
|
|
965
|
+
var _this8 = this;
|
|
966
|
+
|
|
967
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
968
|
+
var exParam, param;
|
|
969
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
970
|
+
while (1) {
|
|
971
|
+
switch (_context.prev = _context.next) {
|
|
972
|
+
case 0:
|
|
973
|
+
exParam = {
|
|
974
|
+
actDefKey: _this8.actDefKey,
|
|
975
|
+
candidateUsers: _this8.convertCandidateUsers(),
|
|
976
|
+
csldbh: _this8.convertCsldbh()
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
_this8.formId ? exParam.formProcessVar = JSON.stringify(_this8.ProcessVarObj) : '';
|
|
980
|
+
_this8.bootData.variables.nextNodeId = _this8.selectNode;
|
|
981
|
+
param = Object.assign(_this8.bootData, exParam);
|
|
982
|
+
|
|
983
|
+
if (_this8.showCbyj) {
|
|
984
|
+
param.approvalContent = _this8.formValidate.approvalContent;
|
|
985
|
+
}
|
|
986
|
+
_this8.$store.dispatch('postRequest', {
|
|
987
|
+
url: '/bsp-bpm/bpm/approveProcess/startProcess',
|
|
988
|
+
params: { processCmd: JSON.stringify(param) }
|
|
989
|
+
}).then(function (data) {
|
|
990
|
+
if (data.success) {
|
|
991
|
+
console.log(data.data, data.data.bpmTrail.taskId, 'data.datadata.datadata.data.bpmProcinst.actDefId');
|
|
992
|
+
var bmpData = {
|
|
993
|
+
actDefId: data.data.bpmProcinst.actDefId,
|
|
994
|
+
businessId: data.data.bpmProcinst.businessId,
|
|
995
|
+
actInstId: data.data.bpmProcinst.actInstId,
|
|
996
|
+
taskId: data.data.bpmTrail.taskId, //成功回调新增taskId
|
|
997
|
+
defId: data.data.bpmProcinst.defId,
|
|
998
|
+
defKey: data.data.defKey
|
|
999
|
+
};
|
|
1000
|
+
if (_this8.startUpSuccess) {
|
|
1001
|
+
_this8.startUpSuccess(bmpData).then(function (d) {
|
|
1002
|
+
_this8.loading = false;
|
|
1003
|
+
if (d) {
|
|
1004
|
+
_this8.cancel();
|
|
1005
|
+
_this8.isInitData = false;
|
|
1006
|
+
} else {
|
|
1007
|
+
// 删除流程示例
|
|
1008
|
+
if (_this8.isDelProcInst) {
|
|
1009
|
+
var _that = _this8;
|
|
1010
|
+
_that.deleteProcInst(bmpData.actInstId, function (dd) {
|
|
1011
|
+
if (_that.delProcInstCallback) {
|
|
1012
|
+
_that.delProcInstCallback(dd);
|
|
1013
|
+
}
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
1018
|
+
} else {
|
|
1019
|
+
_this8.cancel();
|
|
1020
|
+
_this8.isInitData = false;
|
|
1021
|
+
_this8.$Modal.success({
|
|
1022
|
+
title: '温馨提示',
|
|
1023
|
+
content: '流程启动成功。'
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
} else {
|
|
1027
|
+
alert(data.msg);
|
|
1028
|
+
_this8.loading = false;
|
|
1029
|
+
if (_this8.error) {
|
|
1030
|
+
_this8.error(data);
|
|
1031
|
+
} else {
|
|
1032
|
+
_this8.$Modal.error({
|
|
1033
|
+
title: '温馨提示',
|
|
1034
|
+
content: data.msg
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
});
|
|
1039
|
+
|
|
1040
|
+
case 6:
|
|
1041
|
+
case 'end':
|
|
1042
|
+
return _context.stop();
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}, _callee, _this8);
|
|
1046
|
+
}))();
|
|
1047
|
+
},
|
|
1048
|
+
handleCheckAll: function handleCheckAll() {
|
|
1049
|
+
var _this9 = this;
|
|
1050
|
+
|
|
1051
|
+
if (this.indeterminate) {
|
|
1052
|
+
this.checkAll = false;
|
|
1053
|
+
} else {
|
|
1054
|
+
this.checkAll = !this.checkAll;
|
|
1055
|
+
}
|
|
1056
|
+
this.indeterminate = false;
|
|
1057
|
+
if (this.checkAll) {
|
|
1058
|
+
this.orgUserList.forEach(function (item) {
|
|
1059
|
+
item.user.forEach(function (item) {
|
|
1060
|
+
_this9.candidateUsers.push(item.userIdCard + '_' + item.orgCode);
|
|
1061
|
+
});
|
|
1062
|
+
});
|
|
1063
|
+
} else {
|
|
1064
|
+
this.candidateUsers = [];
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
checkAllGroupChange: function checkAllGroupChange(data) {
|
|
1068
|
+
var count = 0;
|
|
1069
|
+
this.orgUserList.forEach(function (item) {
|
|
1070
|
+
item.user.forEach(function (item) {
|
|
1071
|
+
count++;
|
|
1072
|
+
});
|
|
1073
|
+
});
|
|
1074
|
+
if (data.length === count) {
|
|
1075
|
+
this.indeterminate = false;
|
|
1076
|
+
this.checkAll = true;
|
|
1077
|
+
} else if (data.length > 0) {
|
|
1078
|
+
this.indeterminate = true;
|
|
1079
|
+
this.checkAll = false;
|
|
1080
|
+
} else {
|
|
1081
|
+
this.indeterminate = false;
|
|
1082
|
+
this.checkAll = false;
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
cancel: function cancel() {
|
|
1086
|
+
this.openStatus = false;
|
|
1087
|
+
this.loading = false;
|
|
1088
|
+
this.isInitData = false;
|
|
1089
|
+
},
|
|
1090
|
+
start: function start(name) {
|
|
1091
|
+
var _this10 = this;
|
|
1092
|
+
|
|
1093
|
+
this.$refs[name].validate(function (valid) {
|
|
1094
|
+
if (valid) {
|
|
1095
|
+
if (!_this10.customizeValidate()) return;
|
|
1096
|
+
_this10.loading = true;
|
|
1097
|
+
if (_this10.beforeSatrtUp) {
|
|
1098
|
+
_this10.beforeSatrtUp(_this10.actDefKey, _this10.convertCandidateUsers()).then(function (data) {
|
|
1099
|
+
if (data) {
|
|
1100
|
+
_this10.submit();
|
|
1101
|
+
} else {
|
|
1102
|
+
_this10.loading = false;
|
|
1103
|
+
}
|
|
1104
|
+
});
|
|
1105
|
+
} else {
|
|
1106
|
+
_this10.submit();
|
|
1107
|
+
}
|
|
1108
|
+
} else {
|
|
1109
|
+
_this10.$Notice.error({
|
|
1110
|
+
title: '错误提示',
|
|
1111
|
+
desc: '表单验证不通过'
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
});
|
|
1115
|
+
},
|
|
1116
|
+
|
|
1117
|
+
// 自定义验证
|
|
1118
|
+
customizeValidate: function customizeValidate() {
|
|
1119
|
+
var validate = true;
|
|
1120
|
+
/* if (!this.actDefKey) {
|
|
1121
|
+
this.$Modal.warning({
|
|
1122
|
+
title: '温馨提示',
|
|
1123
|
+
content: '请选择审批流程。'
|
|
1124
|
+
})
|
|
1125
|
+
validate = false
|
|
1126
|
+
} */
|
|
1127
|
+
if (!this.selectNode) {
|
|
1128
|
+
this.$Modal.warning({
|
|
1129
|
+
title: '错误提示',
|
|
1130
|
+
content: '审核节点不能为空'
|
|
1131
|
+
});
|
|
1132
|
+
validate = false;
|
|
1133
|
+
} else if (!this.candidateUsers || this.candidateUsers.length === 0) {
|
|
1134
|
+
this.$Modal.warning({
|
|
1135
|
+
title: '温馨提示',
|
|
1136
|
+
content: '请选择审批人。'
|
|
1137
|
+
});
|
|
1138
|
+
validate = false;
|
|
1139
|
+
}
|
|
1140
|
+
return validate;
|
|
1141
|
+
},
|
|
1142
|
+
|
|
1143
|
+
// 删除抄送人
|
|
1144
|
+
csld_close: function csld_close(idx) {
|
|
1145
|
+
this.csldList.splice(idx, 1);
|
|
1146
|
+
},
|
|
1147
|
+
|
|
1148
|
+
// 选择抄送人回调
|
|
1149
|
+
policeConfirm: function policeConfirm(policeList) {
|
|
1150
|
+
this.csldList = policeList;
|
|
1151
|
+
var _that = this;
|
|
1152
|
+
_that.selectedUser = '';
|
|
1153
|
+
_that.csldList.map(function (item, index) {
|
|
1154
|
+
if (index != 0) {
|
|
1155
|
+
_that.selectedUser += ',';
|
|
1156
|
+
}
|
|
1157
|
+
_that.selectedUser += item.idCard;
|
|
1158
|
+
});
|
|
1159
|
+
},
|
|
1160
|
+
deleteProcInst: function deleteProcInst(actInstId, callback) {
|
|
1161
|
+
this.$store.dispatch('postRequest', { url: '/bsp-bpm/bpm/procinst/deleteByActInstIds', params: { actInstIds: actInstId } }).then(function (data) {
|
|
1162
|
+
if (callback) {
|
|
1163
|
+
callback(data);
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
});
|
|
1169
|
+
|
|
1170
|
+
/***/ }),
|
|
1171
|
+
/* 3 */
|
|
1172
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1173
|
+
|
|
1174
|
+
"use strict";
|
|
1175
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
1176
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__start_approval_vue__ = __webpack_require__(4);
|
|
1177
|
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "startApproval", function() { return __WEBPACK_IMPORTED_MODULE_0__start_approval_vue__["a"]; });
|
|
1178
|
+
|
|
1179
|
+
var Plugin = {
|
|
1180
|
+
install: function install(Vue) {
|
|
1181
|
+
Vue.component('start-approval', __WEBPACK_IMPORTED_MODULE_0__start_approval_vue__["a" /* default */]);
|
|
1182
|
+
}
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
/* harmony default export */ __webpack_exports__["default"] = (Plugin);
|
|
1186
|
+
|
|
1187
|
+
/***/ }),
|
|
1188
|
+
/* 4 */
|
|
1189
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1190
|
+
|
|
1191
|
+
"use strict";
|
|
1192
|
+
/* 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_start_approval_vue__ = __webpack_require__(2);
|
|
1193
|
+
/* unused harmony namespace reexport */
|
|
1194
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_b150bb1c_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_start_approval_vue__ = __webpack_require__(12);
|
|
1195
|
+
function injectStyle (ssrContext) {
|
|
1196
|
+
__webpack_require__(5)
|
|
1197
|
+
__webpack_require__(8)
|
|
1198
|
+
}
|
|
1199
|
+
var normalizeComponent = __webpack_require__(10)
|
|
1200
|
+
/* script */
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
/* template */
|
|
1204
|
+
|
|
1205
|
+
/* template functional */
|
|
1206
|
+
var __vue_template_functional__ = false
|
|
1207
|
+
/* styles */
|
|
1208
|
+
var __vue_styles__ = injectStyle
|
|
1209
|
+
/* scopeId */
|
|
1210
|
+
var __vue_scopeId__ = "data-v-b150bb1c"
|
|
1211
|
+
/* moduleIdentifier (server only) */
|
|
1212
|
+
var __vue_module_identifier__ = null
|
|
1213
|
+
var Component = normalizeComponent(
|
|
1214
|
+
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_start_approval_vue__["a" /* default */],
|
|
1215
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_b150bb1c_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_start_approval_vue__["a" /* default */],
|
|
1216
|
+
__vue_template_functional__,
|
|
1217
|
+
__vue_styles__,
|
|
1218
|
+
__vue_scopeId__,
|
|
1219
|
+
__vue_module_identifier__
|
|
1220
|
+
)
|
|
1221
|
+
|
|
1222
|
+
/* harmony default export */ __webpack_exports__["a"] = (Component.exports);
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
/***/ }),
|
|
1226
|
+
/* 5 */
|
|
1227
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1228
|
+
|
|
1229
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1230
|
+
|
|
1231
|
+
// load the styles
|
|
1232
|
+
var content = __webpack_require__(6);
|
|
1233
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
1234
|
+
if(content.locals) module.exports = content.locals;
|
|
1235
|
+
// add the styles to the DOM
|
|
1236
|
+
var update = __webpack_require__(1)("ed29c6ce", content, true);
|
|
1237
|
+
|
|
1238
|
+
/***/ }),
|
|
1239
|
+
/* 6 */
|
|
1240
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1241
|
+
|
|
1242
|
+
exports = module.exports = __webpack_require__(0)(false);
|
|
1243
|
+
// imports
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
// module
|
|
1247
|
+
exports.push([module.i, ".uni-ctnt[data-v-b150bb1c]{padding:5px 0 20px;position:relative}.uni-ctnt .checkAll[data-v-b150bb1c]{margin-top:10px;max-height:100px;position:absolute;left:-75px}.uni-sel[data-v-b150bb1c]{display:flex}.uni-sel>.sel[data-v-b150bb1c]{width:80%}.uni-sel>.check[data-v-b150bb1c]{width:20%;margin-left:20px}.uni-list[data-v-b150bb1c]{margin-top:10px;max-height:200px;overflow:auto;width:500px}.bsp-flow-modal .bsp-flow-modal-title[data-v-b150bb1c]{height:40px;background:#2b5fda;width:100%;text-indent:1em;color:#fff;line-height:40px;font-size:15px}.bsp-flow-people-ctnt>div[data-v-b150bb1c]{display:inline-block}.bsp-flow-modal [data-v-b150bb1c]::-webkit-scrollbar{width:5px;height:1px}.bsp-flow-modal [data-v-b150bb1c]::-webkit-scrollbar-thumb{border-radius:3px;box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#c9c9c9}.bsp-flow-modal [data-v-b150bb1c]::-webkit-scrollbar-track{box-shadow:inset 0 0 5px rgba(0,0,0,.2);border-radius:4px;background:#ededed}.cancle-button[data-v-b150bb1c],.submit-button[data-v-b150bb1c]{min-width:60px;font-size:14px;border-radius:0}.cancle-button[data-v-b150bb1c]{border:1px solid #2b5fd9;color:#2b5fd9;background-color:#fff}.submit-button[data-v-b150bb1c]{border:1px solid #2b5fd9;color:#fff;background-color:#2b5fd9}.tip-container[data-v-b150bb1c]{margin-top:10px;background-color:#f2f6fc;padding:16px}.tip-container .tip-title[data-v-b150bb1c]{font-size:16px;font-weight:700;padding-right:10px}.tip-container .tip-warning[data-v-b150bb1c]{color:#e60012;font-weight:16px}.tip-container p[data-v-b150bb1c]{font-size:16px;margin:20px}", ""]);
|
|
1248
|
+
|
|
1249
|
+
// exports
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
/***/ }),
|
|
1253
|
+
/* 7 */
|
|
1254
|
+
/***/ (function(module, exports) {
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* Translates the list format produced by css-loader into something
|
|
1258
|
+
* easier to manipulate.
|
|
1259
|
+
*/
|
|
1260
|
+
module.exports = function listToStyles (parentId, list) {
|
|
1261
|
+
var styles = []
|
|
1262
|
+
var newStyles = {}
|
|
1263
|
+
for (var i = 0; i < list.length; i++) {
|
|
1264
|
+
var item = list[i]
|
|
1265
|
+
var id = item[0]
|
|
1266
|
+
var css = item[1]
|
|
1267
|
+
var media = item[2]
|
|
1268
|
+
var sourceMap = item[3]
|
|
1269
|
+
var part = {
|
|
1270
|
+
id: parentId + ':' + i,
|
|
1271
|
+
css: css,
|
|
1272
|
+
media: media,
|
|
1273
|
+
sourceMap: sourceMap
|
|
1274
|
+
}
|
|
1275
|
+
if (!newStyles[id]) {
|
|
1276
|
+
styles.push(newStyles[id] = { id: id, parts: [part] })
|
|
1277
|
+
} else {
|
|
1278
|
+
newStyles[id].parts.push(part)
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
return styles
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
/***/ }),
|
|
1286
|
+
/* 8 */
|
|
1287
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1288
|
+
|
|
1289
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1290
|
+
|
|
1291
|
+
// load the styles
|
|
1292
|
+
var content = __webpack_require__(9);
|
|
1293
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
1294
|
+
if(content.locals) module.exports = content.locals;
|
|
1295
|
+
// add the styles to the DOM
|
|
1296
|
+
var update = __webpack_require__(1)("114b6bfb", content, true);
|
|
1297
|
+
|
|
1298
|
+
/***/ }),
|
|
1299
|
+
/* 9 */
|
|
1300
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1301
|
+
|
|
1302
|
+
exports = module.exports = __webpack_require__(0)(false);
|
|
1303
|
+
// imports
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
// module
|
|
1307
|
+
exports.push([module.i, ".bsp-flow-modal .ivu-modal-header{padding:0}.bsp-flow-modal .ivu-icon-ios-close{font-size:32px}.bsp-flow-modal .ivu-tag-text{font-size:16px}.bsp-flow-modal .ivu-tag-dot{padding:0 8px}.bsp-flow-modal .ivu-tag-dot-inner{margin-right:2px}.bsp-flow-modal .ivu-tag .ivu-icon-ios-close{font-size:18px;top:1px;margin-left:4px!important}.bsp-flow-modal .ivu-form .ivu-form-item-label{font-size:16px}.bsp-flow-modal textarea.ivu-input{font-size:16px;height:80px}.bsp-flow-modal .ivu-form-item-error-tip{position:inherit}.bsp-flow-modal .bsp-sel-user .ivu-icon-md-add{font-size:18px}.bsp-flow-modal .bsp-sel-user>.ivu-icon+span,.bsp-flow-modal .bsp-sel-user>span+.ivu-icon{margin-left:0;font-size:16px}.bsp-flow-modal .ivu-select-input{font-size:16px}.bsp-flow-modal .ivu-select-item{font-size:16px!important}.bsp-flow-modal .ivu-checkbox-wrapper{font-size:16px}.bsp-flow-modal .ivu-form-item{margin-bottom:0;padding-bottom:10px}.bsp-flow-modal .ivu-modal-body{max-height:450px;overflow-y:auto;overflow-x:hidden}.bsp-flow-modal .ivu-modal-footer{height:50px;line-height:50px;padding:0 12px}", ""]);
|
|
1308
|
+
|
|
1309
|
+
// exports
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
/***/ }),
|
|
1313
|
+
/* 10 */
|
|
1314
|
+
/***/ (function(module, exports) {
|
|
1315
|
+
|
|
1316
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
1317
|
+
|
|
1318
|
+
// IMPORTANT: Do NOT use ES2015 features in this file.
|
|
1319
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
1320
|
+
// be included in the final webpack user bundle.
|
|
1321
|
+
|
|
1322
|
+
module.exports = function normalizeComponent (
|
|
1323
|
+
rawScriptExports,
|
|
1324
|
+
compiledTemplate,
|
|
1325
|
+
functionalTemplate,
|
|
1326
|
+
injectStyles,
|
|
1327
|
+
scopeId,
|
|
1328
|
+
moduleIdentifier /* server only */
|
|
1329
|
+
) {
|
|
1330
|
+
var esModule
|
|
1331
|
+
var scriptExports = rawScriptExports = rawScriptExports || {}
|
|
1332
|
+
|
|
1333
|
+
// ES6 modules interop
|
|
1334
|
+
var type = typeof rawScriptExports.default
|
|
1335
|
+
if (type === 'object' || type === 'function') {
|
|
1336
|
+
esModule = rawScriptExports
|
|
1337
|
+
scriptExports = rawScriptExports.default
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
// Vue.extend constructor export interop
|
|
1341
|
+
var options = typeof scriptExports === 'function'
|
|
1342
|
+
? scriptExports.options
|
|
1343
|
+
: scriptExports
|
|
1344
|
+
|
|
1345
|
+
// render functions
|
|
1346
|
+
if (compiledTemplate) {
|
|
1347
|
+
options.render = compiledTemplate.render
|
|
1348
|
+
options.staticRenderFns = compiledTemplate.staticRenderFns
|
|
1349
|
+
options._compiled = true
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
// functional template
|
|
1353
|
+
if (functionalTemplate) {
|
|
1354
|
+
options.functional = true
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
// scopedId
|
|
1358
|
+
if (scopeId) {
|
|
1359
|
+
options._scopeId = scopeId
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
var hook
|
|
1363
|
+
if (moduleIdentifier) { // server build
|
|
1364
|
+
hook = function (context) {
|
|
1365
|
+
// 2.3 injection
|
|
1366
|
+
context =
|
|
1367
|
+
context || // cached call
|
|
1368
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1369
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
1370
|
+
// 2.2 with runInNewContext: true
|
|
1371
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1372
|
+
context = __VUE_SSR_CONTEXT__
|
|
1373
|
+
}
|
|
1374
|
+
// inject component styles
|
|
1375
|
+
if (injectStyles) {
|
|
1376
|
+
injectStyles.call(this, context)
|
|
1377
|
+
}
|
|
1378
|
+
// register component module identifier for async chunk inferrence
|
|
1379
|
+
if (context && context._registeredComponents) {
|
|
1380
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
// used by ssr in case component is cached and beforeCreate
|
|
1384
|
+
// never gets called
|
|
1385
|
+
options._ssrRegister = hook
|
|
1386
|
+
} else if (injectStyles) {
|
|
1387
|
+
hook = injectStyles
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
if (hook) {
|
|
1391
|
+
var functional = options.functional
|
|
1392
|
+
var existing = functional
|
|
1393
|
+
? options.render
|
|
1394
|
+
: options.beforeCreate
|
|
1395
|
+
|
|
1396
|
+
if (!functional) {
|
|
1397
|
+
// inject component registration as beforeCreate hook
|
|
1398
|
+
options.beforeCreate = existing
|
|
1399
|
+
? [].concat(existing, hook)
|
|
1400
|
+
: [hook]
|
|
1401
|
+
} else {
|
|
1402
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
1403
|
+
// go through the normalizer
|
|
1404
|
+
options._injectStyles = hook
|
|
1405
|
+
// register for functioal component in vue file
|
|
1406
|
+
options.render = function renderWithStyleInjection (h, context) {
|
|
1407
|
+
hook.call(context)
|
|
1408
|
+
return existing(h, context)
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
return {
|
|
1414
|
+
esModule: esModule,
|
|
1415
|
+
exports: scriptExports,
|
|
1416
|
+
options: options
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
/***/ }),
|
|
1422
|
+
/* 11 */
|
|
1423
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1424
|
+
|
|
1425
|
+
!function(e,t){ true?module.exports=t():"function"==typeof define&&define.amd?define("sd-user-selector",[],t):"object"==typeof exports?exports["sd-user-selector"]=t():e["sd-user-selector"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(a){if(s[a])return s[a].exports;var r=s[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var s={};return t.m=e,t.c=s,t.d=function(e,s,a){t.o(e,s)||Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,"a",s),s},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=1)}([function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a={name:"user-selector",props:{value:{type:String,default:""},text:{type:String,default:""},tit:{type:String,default:"民警选择"},returnField:{type:String,default:"idCard"},button:{type:String,default:"选 择"},numExp:{type:String,default:""},orgCode:{type:String,default:""},bindEvent:{type:Boolean,default:!0},msg:String,disabled:{type:Boolean,default:!1},defaultSearchText:{type:Boolean,default:!1}},data:function(){return{loaded:!1,showText:this.text,title:"用户选择",modal:!1,showmModal:!1,orgId:"",condition:"",hasOthers:!1,selectedIdCardArr:[],selectedList:[],policeList:[],policeCache:[],reference:null,timer:null}},watch:{value:function(e){this.loaded||this.getPoliceByFieldData(this.value)}},mounted:function(){this.bindEvent&&this.$slots.func&&(this.reference=this.$slots.func[0].elm,this.reference.addEventListener("click",this.openDialog))},beforeDestroy:function(){this.reference&&this.reference.removeEventListener("click",this.changeVisiable,!1)},methods:{openDialog:function(){this.orgId=this.orgCode?this.orgCode:this.$store.state.common.orgCode,this.getPoliceData(),this.getPoliceByFieldData(this.value),this.showmModal=!0,this.modal=!0},clearData:function(){this.$emit("input",""),this.$emit("update:text",""),this.$emit("onClear")},getPoliceData:function(){var e=this,t=this.orgId;this.hasOthers&&(t=""),this.policeList=[],this.$store.dispatch("postRequest",{url:"/bsp-uac/uac/user/getOptionalPolice",params:{orgId:t,condition:this.condition}}).then(function(t){t.success?(e.policeList=t.data,e.policeCache=t.data):console.log(t.msg)})},getPoliceByFieldData:function(e){var t=this,s=this;if(""==e)return this.loaded=!0,this.selectedIdCardArr=[],this.selectedList=[],!1;this.$store.dispatch("postRequest",{url:"/bsp-uac/uac/user/getByFieldData",params:{field:this.returnField,value:e}}).then(function(e){e.success?(t.loaded=!0,s.selectedList=e.data,void 0!=s.selectedList&&null!=s.selectedList&&(t.selectedIdCardArr=[],s.selectedList.forEach(function(e,s){if(t.selectedIdCardArr.push(e.idCard),!t.showText&&t.defaultSearchText){var a=[],r=[];t.selectedList.forEach(function(e){a.push(e.name),r.push(e[t.returnField])}),t.textValue=a.join(","),t.$emit("update:text",t.textValue),t.showText=t.textValue}}))):t.$Modal.warning({title:"温馨提示",content:e.msg})})},onKeyUp:function(){var e=this,t=e.condition;e.timer&&clearInterval(e.timer),e.timer=setInterval(function(){t===e.condition&&(e.searchData(),clearInterval(e.timer))},500)},changeOrg:function(){this.getPoliceData()},searchData:function(){var e=this;this.hasOthers?this.getPoliceData():(this.policeList=[],this.policeCache.forEach(function(t,s){var a=e.condition;if(""!=a){if(-1!=t.name.indexOf(a)||-1!=t.loginId.indexOf(a)||-1!=t.idCard.toUpperCase().indexOf(a.toUpperCase()))return e.policeList.push(t),!0}else e.policeList=e.policeCache}))},selectPolice:function(e,t){var s=this.selectedIdCardArr.indexOf(t.idCard);if(-1!=s){if(this.selectedIdCardArr.splice(s,1),this.selectedList=this.selectedList.filter(function(e){return e.idCard!=t.idCard}),0==this.selectedList.length)return!1}else"num==1"===this.numExp&&(this.selectedIdCardArr=[],this.selectedList=[]),this.selectedIdCardArr.push(t.idCard),this.selectedList.push(t)},cancelSelected:function(e,t){this.selectedList.splice(t,1);var s=this.selectedIdCardArr.indexOf(e.idCard);-1!=s&&this.selectedIdCardArr.splice(s,1)},ok:function ok(){var _this5=this;if(0==this.selectedList.length)return this.$Modal.warning({title:"温馨提示",content:"请选择民警"}),!1;var num=this.selectedList.length;if(this.numExp&&!eval(this.numExp))return this.$Modal.warning({title:"温馨提示",content:this.msg}),!1;var names=[],ids=[];this.selectedList.forEach(function(e){names.push(e.name),ids.push(e[_this5.returnField])}),this.$emit("input",ids.join(",")),this.textValue=names.join(","),this.$emit("update:text",this.textValue),this.showText=this.textValue,this.$emit("onSelect",this.selectedList),this.cancel(!1)},cancel:function(e){this.modal=!1,this.selectedIdCardArr=[],this.selectedList=[],e&&this.$emit("onCancel")},focus:function(){this.$refs.input.focus()}}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(2);s.d(t,"userSelector",function(){return a.a});var r={install:function(e){e.component("user-selector",a.a)}};t.default=r},function(e,t,s){"use strict";function a(e){s(3)}var r=s(0),i=s(9),n=s(8),o=a,l=n(r.a,i.a,!1,o,"data-v-3b8ba31c",null);t.a=l.exports},function(e,t,s){var a=s(4);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);s(6)("4a26f82f",a,!0,{})},function(e,t,s){t=e.exports=s(5)(!1),t.push([e.i,'[data-v-3b8ba31c] .user-selector-modal .ivu-modal-body,[data-v-3b8ba31c] .user-selector-modal .ivu-modal-header{padding:0!important}[data-v-3b8ba31c] .user-selector-modal .ivu-modal-footer{padding:8px 18px}[data-v-3b8ba31c] .user-selector-modal .ivu-modal-footer .ivu-btn>span{font-size:16px}[data-v-3b8ba31c] .user-selector-modal .ivu-input{font-size:16px;height:32px;line-height:1.5}[data-v-3b8ba31c] .user-selector-modal .ivu-checkbox-wrapper.ivu-checkbox-large{font-size:16px}[data-v-3b8ba31c] .user-selector-input .ivu-input-icon{right:66px;font-size:20px}[data-v-3b8ba31c] .user-selector-input .ivu-input{font-size:16px}[data-v-3b8ba31c] .user-selector-modal .ivu-icon-ios-close{font-size:32px;line-height:40px}[data-v-3b8ba31c] .user-selector-input .ivu-input-search{font-size:15px;padding:0!important;width:70px;max-width:70px}.user-selector-modal .bsp-warp[data-v-3b8ba31c]{margin:5px}.user-selector-modal .bsp-user-search-box[data-v-3b8ba31c]{display:flex;margin-top:10px;padding-left:5px}.user-selector-modal .bsp-user-search-box>input[data-v-3b8ba31c]{margin-left:0;width:38%;height:30px;border:1px solid #e1e1e1;padding-left:10px;border-radius:2px}.user-selector-modal .bsp-user-search-box>label[data-v-3b8ba31c]{line-height:30px;margin:0 10px;font-size:16px}.user-selector-modal .bsp-user-Chebox[data-v-3b8ba31c]{line-height:30px;padding:0 4px}.user-selector-modal .bsp-user-center-in[data-v-3b8ba31c]{margin:10px 10px 0 3px}.user-selector-modal .bsp-user-lt_center[data-v-3b8ba31c]{border:1px solid #e1e1e1;width:100%;border-radius:2px}.user-selector-modal .bsp-user-lt_center .cli[data-v-3b8ba31c],.user-selector-modal .bsp-user-lt_center_center .cli[data-v-3b8ba31c]{height:36px;line-height:36px;padding:0 10px;background-size:16px;cursor:pointer;position:relative}.user-selector-modal .bsp-user-lt_center .cli[data-v-3b8ba31c]{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAB10lEQVQ4jaWVQW7TQBSG/xmm8YBcuV5CWizECnbeUVYoXABUcQzOUOUKHAOEOAEICaFWLMiOLlARadOIFU4kt7Gd8Qz6kR1FVeI2zb+x9Pz+zzPPb96I779HaNA9AB0A96uUEwCfAAzjKFjoUktYz5QUbxzw0Neq1BvyDoPZ1F6kmbklgF+9/vh1HAWfLxsvr/C2kuJ9S8nddqi3fL34e2lucPY3GxXGHhjr9uIomCwCekqKw9BvPd4OdaupDrUGSVYkafHDWPckjoKcYTnbuxQfQr/16Lowirn00FvHamBXb8jd7VB714XNQT16e/1xdwZUUuzdDfXWqrBa9JJRA9sOeOB7y3741aKXjF5/3Caws6lVeWNapYrRIXDHq/psHVWMHQJz67D2CmsROCxMma8LyqeWzT0g8NtFXop1gee54eMrgcfOYXCe33zX9DqH0zgKjv/3obHu7TCZNI6dJtFrrHuHuZOyn03twSDJVq4lPdnUHsZRsD8P5CpfJmlxxAO/AozD4chY96KOzYD8Uca6p0lafPz5Jx011ZTvmMNceupJQy2b2F0lxSsHRJtaWTYte7Uw5STNSiWAPmtWb3NeV10BbQDPeQIAsBSnAL4AOFt4BQD4B1zv2S0fhZD5AAAAAElFTkSuQmCC") no-repeat 96%;background-size:18px}.user-selector-modal .bsp-user-lt_center .cli.active[data-v-3b8ba31c]{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAB3klEQVQ4jZWUPUhbURTHf++RvsTWGChdOsRBBIM2Q7HSD5CEiIJD1UqJ4NDiUuggCKG4iKjoUroWp9KlLip+gFCIVgWRlg5C00JEcFFxrghaE1A5L/eZ6zPa5MDjce85/x/n3nPONcIf/lLAYkCX+lcq9w6wDEwC39wSj2sdAsaBaAF4tfreAKvAW2DTcZpaYAT4eQ3EbVEVG3GDJJN5wF8ExDG/0oQckAF8BgIlQBwLKK0hoCbgSbHK14+8fO+t4F3U52yJtklA8WIhr+q9JCI+7lgGL8KW7oqbqsS2eT1QddcsCOl+aJHIZ8HERkZ3x0QVdFaf4uXM9fgZa72NaeSjOsMW/bEyjAvICR/X/+mgoIBOUDdefS+XzfPaWwy15IRtdRaDzXnIVCrD+5VLENukIfeBmjNgdPGYUZVNxwOL+xUmDUHPRXazfzJ2zNnVk++ZqrFsW0hnGdECH1fmIeIbThaEiK0LaELfmfmdYWzpsiC5lWXg6xGn11CAL3K0JPBD76XJX7mK9DX6WNnOMpQ8vgki2kVn+kNqo9TuPgCeAmm7TKlEQKa4HTgsASKx7alEIC0L93skmcns/G9kJPse/Rlxv0fieAY0Ay/VHErDyqXtAmvAtNwJaPUAzgELVXfFiYQ0ggAAAABJRU5ErkJggg==") no-repeat 96%;background-size:18px}.user-selector-modal .bsp-user-lt_center_center .cli .btn-icon[data-v-3b8ba31c]{display:inline-block;width:25px;height:25px;position:absolute;right:5px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABiklEQVQ4jY2UP08CQRTEfxwgoUAKCxrBwgYsSTRqA1FptUGpNbHw01jaaWUswMLaBDUmRv0CUBgbaCwsUCPyx2DeZU/21r3IJJvszXsz2Z3d29Dh2QMWlIBtYB1IA32gBdwCVeDSlESM7yxwBBQNPqpqMvaBa+AAaHoNjtZcAB4tJjYUVW/BNMoBF0BiAhMPCaXJekYh4BhI6l1TkfAfpYUTzYl4OCrQZb1ayGeolBaIx8YRyly4Yn7ONBPthhhVdDYWDZNJJZlJximv5VwDGTIXLp2adnsM7MjxPwHzOq8LXztdl/Pm51dNPr8GptGzo+6JD93ekFq94QrF4B8TwaxjY4MwGo0Ca2LUNklza97KvMwsaIvRnRm2biJb1LcpNUvYdTE61Zne4JvWy9uvieSlZyY16TFQlVMLqVX57pJcvv7QL7BxgPz1K7IiSXAPeNOrFoGN6wC74uGdWgPYBN5tSQbgA9hSWt/ffwMsAfcTmEjPotK4MM9S3pdV9bCVAx62mnrYxpcK+AFqcJJFhDD72QAAAABJRU5ErkJggg==") no-repeat 96%;top:5px;right:10px;background-size:20px}.user-selector-modal .bsp-user-lt_center .cli[data-v-3b8ba31c]:hover{background-color:#e8e8e8}.user-selector-modal .bsp-user-lt_center_center[data-v-3b8ba31c]{width:100%;margin-left:10px;border:1px solid #e1e1e1;border-radius:2px;background:#f5f5f5}.user-selector-modal .bsp-user-loginId[data-v-3b8ba31c]{margin:0 10px;font-size:16px}.user-selector-modal .bsp-user-name[data-v-3b8ba31c]{font-size:16px}.user-selector-modal .bsp-user-btn[data-v-3b8ba31c]{text-align:right}.user-selector-modal .bsp-user-btn button[data-v-3b8ba31c]{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-3b8ba31c]{background:none;border:1px solid #ddd;color:#666}.user-selector-modal .btn button[data-v-3b8ba31c]:hover{opacity:.9}.user-selector-modal .flow-modal-title[data-v-3b8ba31c]{height:40px;background:#2b5fda;width:100%;text-indent:1em;color:#fff;line-height:40px}',""])},function(e,t){function s(e,t){var s=e[1]||"",r=e[3];if(!r)return s;if(t&&"function"==typeof btoa){var i=a(r);return[s].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([i]).join("\n")}return[s].join("\n")}function a(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 a=s(t,e);return t[2]?"@media "+t[2]+"{"+a+"}":a}).join("")},t.i=function(e,s){"string"==typeof e&&(e=[[null,e,""]]);for(var a={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(a[i]=!0)}for(r=0;r<e.length;r++){var n=e[r];"number"==typeof n[0]&&a[n[0]]||(s&&!n[2]?n[2]=s:s&&(n[2]="("+n[2]+") and ("+s+")"),t.push(n))}},t}},function(e,t,s){function a(e){for(var t=0;t<e.length;t++){var s=e[t],a=d[s.id];if(a){a.refs++;for(var r=0;r<a.parts.length;r++)a.parts[r](s.parts[r]);for(;r<s.parts.length;r++)a.parts.push(i(s.parts[r]));a.parts.length>s.parts.length&&(a.parts.length=s.parts.length)}else{for(var n=[],r=0;r<s.parts.length;r++)n.push(i(s.parts[r]));d[s.id]={id:s.id,refs:1,parts:n}}}}function r(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function i(e){var t,s,a=document.querySelector("style["+g+'~="'+e.id+'"]');if(a){if(f)return b;a.parentNode.removeChild(a)}if(x){var i=h++;a=p||(p=r()),t=n.bind(null,a,i,!1),s=n.bind(null,a,i,!0)}else a=r(),t=o.bind(null,a),s=function(){a.parentNode.removeChild(a)};return t(e),function(a){if(a){if(a.css===e.css&&a.media===e.media&&a.sourceMap===e.sourceMap)return;t(e=a)}else s()}}function n(e,t,s,a){var r=s?"":a.css;if(e.styleSheet)e.styleSheet.cssText=m(t,r);else{var i=document.createTextNode(r),n=e.childNodes;n[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i)}}function o(e,t){var s=t.css,a=t.media,r=t.sourceMap;if(a&&e.setAttribute("media",a),v.ssrId&&e.setAttribute(g,t.id),r&&(s+="\n/*# sourceURL="+r.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=s;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(s))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)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 c=s(7),d={},u=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,h=0,f=!1,b=function(){},v=null,g="data-vue-ssr-id",x="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,s,r){f=s,v=r||{};var i=c(e,t);return a(i),function(t){for(var s=[],r=0;r<i.length;r++){var n=i[r],o=d[n.id];o.refs--,s.push(o)}t?(i=c(e,t),a(i)):i=[];for(var r=0;r<s.length;r++){var o=s[r];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete d[o.id]}}}};var m=function(){var e=[];return function(t,s){return e[t]=s,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var s=[],a={},r=0;r<t.length;r++){var i=t[r],n=i[0],o=i[1],l=i[2],c=i[3],d={id:e+":"+r,css:o,media:l,sourceMap:c};a[n]?a[n].parts.push(d):s.push(a[n]={id:n,parts:[d]})}return s}},function(e,t){e.exports=function(e,t,s,a,r,i){var n,o=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(n=e,o=e.default);var c="function"==typeof o?o.options:o;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),s&&(c.functional=!0),r&&(c._scopeId=r);var d;if(i?(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__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=d):a&&(d=a),d){var u=c.functional,p=u?c.render:c.beforeCreate;u?(c._injectStyles=d,c.render=function(e,t){return d.call(t),p(e,t)}):c.beforeCreate=p?[].concat(p,d):[d]}return{esModule:n,exports:o,options:c}}},function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("span",[e.$slots.func?e._t("func"):s("Input",{ref:"input",staticClass:"user-selector-input",attrs:{disabled:e.disabled,readonly:"",clearable:"",search:"","enter-button":e.button,placeholder:""},on:{"on-clear":e.clearData,"on-search":e.openDialog},model:{value:e.showText,callback:function(t){e.showText=t},expression:"showText"}}),e._v(" "),s("div",[e.showmModal?s("Modal",{attrs:{"class-name":"user-selector-modal",width:"800",title:e.title,closable:!1,"mask-closable":!1},on:{"on-cancel":function(t){return e.cancel(!0)}},model:{value:e.modal,callback:function(t){e.modal=t},expression:"modal"}},[s("div",{staticClass:"flow-modal-title",attrs:{slot:"header"},slot:"header"},[s("span",{staticStyle:{"font-size":"17px"}},[e._v(e._s(e.tit))]),e._v(" "),s("span",{staticStyle:{position:"absolute",right:"6px",cursor:"pointer"},on:{click:function(t){return e.cancel(!0)}}},[s("i",{staticClass:"ivu-icon ivu-icon-ios-close"})])]),e._v(" "),[s("div",{staticClass:"bsp-warp"},[s("div",{staticClass:"pos-box"},[s("div",[s("div",{staticClass:"bsp-user-search-box"},[s("div",{staticStyle:{width:"246px"}},[s("Input",{attrs:{type:"text",placeholder:"请输入姓名、警号查询",clearable:""},on:{"on-keyup":e.onKeyUp,"on-enter":e.searchData,"on-clear":e.searchData},model:{value:e.condition,callback:function(t){e.condition=t},expression:"condition"}})],1),e._v(" "),s("label",[e._v("机构单位: ")]),e._v(" "),s("div",{staticClass:"dicgrid"},[s("s-dicgrid",{ref:"dicGrid",staticStyle:{width:"376px"},attrs:{clear:!1,dicName:"ZD_ORG_ID",disabled:1==e.hasOthers},on:{change:e.changeOrg},model:{value:e.orgId,callback:function(t){e.orgId=t},expression:"orgId"}})],1),e._v(" "),s("div",{staticClass:"bsp-user-Chebox"},[s("Checkbox",{attrs:{size:"large"},model:{value:e.hasOthers,callback:function(t){e.hasOthers=t},expression:"hasOthers"}},[e._v("全部")])],1)]),e._v(" "),s("div",{staticClass:"bsp-user-center-in"},[s("table",{staticStyle:{"border-width":"0px"}},[s("tr",[s("td",{staticStyle:{width:"320px","border-width":"0px","text-align":"left"}},[s("div",{staticClass:"bsp-user-lt_center"},[s("ul",{staticStyle:{"list-style":"none",height:"450px",overflow:"auto"}},e._l(e.policeList,function(t,a){return s("li",{key:a,staticClass:"cli",class:{active:-1!=e.selectedIdCardArr.indexOf(t.idCard)},on:{click:function(s){return e.selectPolice(a,t)}}},[s("span",{staticClass:"bsp-user-name"},[e._v(e._s(t.name))]),e._v(" "),s("span",{staticClass:"bsp-user-loginId"},[e._v("("+e._s(t.loginId)+")")])])}),0)])]),e._v(" "),s("td",{staticStyle:{"border-width":"0px"}}),e._v(" "),s("td",{staticStyle:{width:"445px","border-width":"0px","text-align":"left"}},[s("div",{staticClass:"bsp-user-lt_center_center"},[s("ul",{staticStyle:{"list-style":"none",height:"450px",overflow:"auto"}},e._l(e.selectedList,function(t,a){return s("li",{key:t.loginId,staticClass:"cli"},[s("span",{staticClass:"bsp-user-name",attrs:{title:t.orgName}},[e._v(e._s(t.name))]),e._v(" "),s("span",{staticClass:"bsp-user-loginId",attrs:{title:t.orgName}},[e._v("("+e._s(t.loginId)+")")]),e._v(" "),s("span",{staticClass:"btn-icon",on:{click:function(s){return e.cancelSelected(t,a)}}})])}),0)])])])])])])])])],e._v(" "),s("div",{attrs:{slot:"footer"},slot:"footer"},[s("Button",{staticStyle:{width:"90px",height:"36px"},on:{click:function(t){return e.cancel(!0)}}},[e._v("取 消")]),e._v(" "),s("Button",{staticStyle:{width:"90px",height:"36px"},attrs:{type:"primary"},on:{click:e.ok}},[e._v("确 认")])],1)],2):e._e()],1)],2)},r=[],i={render:a,staticRenderFns:r};t.a=i}])});
|
|
1426
|
+
//# sourceMappingURL=sd-user-selector.js.map
|
|
1427
|
+
|
|
1428
|
+
/***/ }),
|
|
1429
|
+
/* 12 */
|
|
1430
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1431
|
+
|
|
1432
|
+
"use strict";
|
|
1433
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_vm._t("func"),_vm._v(" "),_c('Modal',{attrs:{"class-name":"bsp-flow-modal","width":670,"closable":false,"mask-closable":false},model:{value:(_vm.openStatus),callback:function ($$v) {_vm.openStatus=$$v},expression:"openStatus"}},[_c('div',{staticClass:"bsp-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","font-size":"32px","cursor":"pointer"},on:{"click":_vm.cancel}},[_c('i',{staticClass:"ivu-icon ivu-icon-ios-close"})])]),_vm._v(" "),_c('Form',{ref:"approvalForm",staticClass:"form-ctnt",attrs:{"label-width":120,"label-colon":"","label-position":"right","model":_vm.formValidate}},[_c('FormItem',{attrs:{"label":_vm.bpmDefinition.length === 1 ? '已选流程' : '选择流程',"required":""}},[_c('Select',{staticStyle:{"width":"400px"},attrs:{"filterable":"","disabled":_vm.bpmDefinition.length === 1},on:{"on-select":_vm.onSelectFlow},model:{value:(_vm.actDefKey),callback:function ($$v) {_vm.actDefKey=$$v},expression:"actDefKey"}},_vm._l((_vm.bpmDefinition),function(item){return _c('Option',{key:item.defKey,attrs:{"value":item.defKey}},[_vm._v(_vm._s(item.name))])}),1)],1),_vm._v(" "),(_vm.nextNodeList.length > 0)?_c('FormItem',{attrs:{"label":"审核节点","required":""}},[_c('Select',{staticStyle:{"width":"400px"},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))])}),1)],1):_vm._e(),_vm._v(" "),(_vm.showCbyj && _vm.selectNode)?_c('FormItem',{attrs:{"label":"呈报意见","prop":"approvalContent","rules":{ required: true, message: '呈报意见不能为空', trigger: 'blur,change' }}},[_c('Input',{staticStyle:{"width":"400px"},attrs:{"type":"textarea","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',{staticStyle:{"background-color":"#f2f6fc"},attrs:{"label":"审核部门"}},[_c('div',{staticClass:"uni-ctnt"},[_c('div',{staticClass:"uni-sel"},[_c('Select',{staticClass:"sel",staticStyle:{"width":"400px"},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("全选")])],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.candidateUsers),callback:function ($$v) {_vm.candidateUsers=$$v},expression:"candidateUsers"}},_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.showcc && _vm.selectNode)?_c('FormItem',{staticStyle:{"background-color":"#f2f6fc"},attrs:{"label":"抄送"}},[_c('div',{staticStyle:{"background-color":"#cee0f0","text-align":"left","width":"400px","border":"1px solid #cee0f0"}},[_c('div',{staticClass:"bsp-flow-people-ctnt scroll-able",staticStyle:{"padding":"8px","background":"#fff"}},[_vm._l((_vm.csldList),function(item,i){return _c('Tag',{key:item.idCard + '_' + item.orgCode,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.selectedUser,"orgCode":_vm.orgCode},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(" "),_c('template',{slot:"footer"},[_c('Button',{staticClass:"cancle-button",on:{"click":_vm.cancel}},[_vm._v("取 消")]),_vm._v(" \n "),_c('Button',{staticClass:"submit-button",attrs:{"loading":_vm.loading,"type":"primary"},on:{"click":function($event){return _vm.start('approvalForm')}}},[_vm._v("确 认")])],1)],2)],2)}
|
|
1434
|
+
var staticRenderFns = []
|
|
1435
|
+
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
1436
|
+
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
1437
|
+
|
|
1438
|
+
/***/ })
|
|
1439
|
+
/******/ ]);
|
|
1440
|
+
});
|
|
1441
|
+
//# sourceMappingURL=gs-start-approval.js.map
|