manage-client 4.1.53 → 4.1.54-bfsy

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/.eslintrc.js CHANGED
@@ -15,6 +15,8 @@ module.exports = {
15
15
  // allow debugger during development
16
16
  'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
17
17
  // 必须使用全等
18
- 'eqeqeq': 0
18
+ 'eqeqeq': 0,
19
+ "import/no-unresolved": ["error", { "caseSensitive": true }],
20
+ "camelcase": "off"
19
21
  }
20
22
  }
@@ -1,142 +1,108 @@
1
- var express = require('express')
2
- var webpack = require('webpack')
3
- var config = require('./webpack.dev.conf')
4
- var proxyMiddleware = require('http-proxy-middleware')
5
- // var httpProxy = require('http-proxy')
1
+ const express = require('express')
2
+ const webpack = require('webpack')
3
+ const config = require('./webpack.dev.conf')
4
+ const proxyMiddleware = require('http-proxy-middleware')
6
5
 
7
- var app = express()
8
- var compiler = webpack(config)
9
- // var proxy = httpProxy.createProxyServer()
6
+ const app = express()
7
+ const compiler = webpack(config)
10
8
 
11
- // Define HTTP proxies to your custom API backend
12
- // https://github.com/chimurai/http-proxy-middleware
13
- // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
- var shaoguan = 'http://123.57.3.66:31467/'
15
- var qtx = 'http://123.57.3.66:31467/'
16
- // var bendi = 'http://220.194.141.253:8600/'
17
- // var bendi = 'http://203.57.101.233:9001'
18
- // var bendi = 'http://172.168.1.11:9001/'
19
- // var bendi = 'http://203.57.101.233:9001/'
20
- // var bendi = 'http://121.36.106.17:8400/'
21
- // var fuwu = 'http://203.57.101.233:9001'
22
- var bendi = 'http://123.57.3.66:31467/'
23
- // var bendi = 'http://119.187.112.234:8400/'
24
- var wode = 'http://123.57.3.66:31467/'
25
- // 192.168.
26
- // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
27
- // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
28
- var proxyTable = {
29
- // '/rs/logic/exportfile': {
30
- // target: bendi
31
- // },
32
- // '/dataManage': {
33
- // target: 'http://203.57.101.233:9001/'
34
- //
35
- // },
36
- // '/api/af-revenue/sql/WeChatPaydetail': {
37
- // pathRewrite: {
38
- // '^/api/af-revenue': '/rs'
39
- // },
40
- // target: 'http://127.0.0.1:8080/'
41
- // },
42
- // '/api/af-revenue/sql/WeChatPayment': {
43
- // pathRewrite: {
44
- // '^/api/af-revenue': '/rs'
45
- // },
46
- // target: 'http://127.0.0.1:8080/'
47
- // },
48
- // '/api/af-revenue/sql/getGasInspection': {
49
- // pathRewrite: {
50
- // '^/api/af-revenue': '/rs'
51
- // },
52
- // target: 'http://127.0.0.1:8080/'
53
- // },
54
- // '/api/af-revenue/sql/inspectList_sellinggas': {
55
- // pathRewrite: {
56
- // '^/api/af-revenue': '/rs'
57
- // },
58
- // target: 'http://127.0.0.1:8080/'
59
- // },
60
- // '/api/af-revenue/sql/inspectList': {
61
- // pathRewrite: {
62
- // '^/api/af-revenue': '/rs'
63
- // },
64
- // target: 'http://127.0.0.1:8080/'
65
- // },
66
- // '/api': {
67
- // target: 'http://123.57.3.66:31467/'
68
- //
69
- // },
70
- // '/rs/sql/chargeQuery_by_gasproperties': {
71
- // target: 'http://localhost:8084/'
72
- // },
73
- // '/rs/logic/chargeQuery_by_gasproperties_line': {
74
- // target: 'http://localhost:8084/'
75
- // },
76
- // '/files': {
77
- // target: bendi
78
- // },
79
- // // 查找资源服务数据
80
- // '/rs/search': {
81
- // target: 'http://123.57.3.66:31467/'
82
- // },
83
- // // 查找资源服务数据
84
- // '/rs/logic/getLogin': {
85
- // target: bendi
86
- // },
87
- // // 查找资源服务数据
88
- // '/rs/logic/getInitData': {
89
- // target: bendi
90
- // },
91
- // '/rs/logic/getSaleInitData': {
92
- // target: bendi
93
- // },
94
- // // 用户登录服务地址
95
- // '/rs/user': {
96
- // target: bendi
97
- // },
98
- // '/rs/path/getParams': {
99
- // target: bendi
100
- // },
101
- // '/rs/data': {
102
- // target: bendi
103
- // },
104
- // '/rs/license': {
105
- // target: bendi
106
- // },
107
- // '/rs/db': {
108
- // target: bendi
109
- // },
110
- // '/excel': {
111
- // target: bendi
112
- // },
113
- // '/rs/config': {
114
- // target: bendi
115
- // },
116
- // '/rs/sql/getLicenseById': {
117
- // target: bendi
118
- // },
119
- // '/rs/report': {
120
- // target: bendi
121
- // },
122
- // '/rs/vue': {
123
- // target: 'http://123.57.3.66:31467/'
124
- // },
125
- // '/rs/file': {
126
- // target: bendi
127
- // },
128
- // '/rs/sql/singleTable': {
129
- // target: bendi
130
- // },
9
+ const server = 'http://192.168.50.67:31567/'
10
+ const local = 'http://127.0.0.1:9026/'
11
+ const proxyTable = {
12
+ '/rs/logic/exportfile': {
13
+ target: server
14
+ },
15
+ '/dataManage': {
16
+ target: server
17
+ },
18
+ '/api/af-revenue/sql/': {
19
+ // pathRewrite: {
20
+ // '^/api/af-revenue': '/rs'
21
+ // },
22
+ target: server
23
+ },
24
+ '/api/af-revenue/report/': {
25
+ // pathRewrite: {
26
+ // '^/api/af-revenue': '/rs'
27
+ // },
28
+ target: server
29
+ },
30
+ '/api/af-revenue/logic/commonAuditLogic': {
31
+ pathRewrite: {
32
+ '^/api/af-revenue': '/'
33
+ },
34
+ target: local
35
+ },
131
36
  '/api': {
132
- target: wode
37
+ target: server
38
+ },
39
+ '/rs/sql/chargeQuery_by_gasproperties': {
40
+ target: server
41
+ },
42
+ '/rs/logic/chargeQuery_by_gasproperties_line': {
43
+ target: server
44
+ },
45
+ '/files': {
46
+ target: server
47
+ },
48
+ // 查找资源服务数据
49
+ '/rs/search': {
50
+ target: server
51
+ },
52
+ // 查找资源服务数据
53
+ '/rs/logic/getLogin': {
54
+ target: server
55
+ },
56
+ // 查找资源服务数据
57
+ '/rs/logic/getInitData': {
58
+ target: server
59
+ },
60
+ '/rs/logic/getSaleInitData': {
61
+ target: server
62
+ },
63
+ // 用户登录服务地址
64
+ '/rs/user': {
65
+ target: server
66
+ },
67
+ '/rs/path/getParams': {
68
+ target: server
69
+ },
70
+ '/rs/data': {
71
+ target: server
72
+ },
73
+ '/rs/license': {
74
+ target: server
75
+ },
76
+ '/rs/db': {
77
+ target: server
78
+ },
79
+ '/excel': {
80
+ target: server
81
+ },
82
+ '/rs/config': {
83
+ target: server
84
+ },
85
+ '/rs/sql/getLicenseById': {
86
+ target: server
87
+ },
88
+ '/rs/report': {
89
+ target: server
90
+ },
91
+ '/rs/vue': {
92
+ target: server
93
+ },
94
+ '/rs/file': {
95
+ target: server
96
+ },
97
+ '/rs/sql/singleTable': {
98
+ target: server
133
99
  },
134
100
  '/rs': {
135
- target: wode
101
+ target: server
136
102
  }
137
103
  }
138
104
 
139
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
105
+ const devMiddleware = require('webpack-dev-middleware')(compiler, {
140
106
  publicPath: config.output.publicPath,
141
107
  stats: {
142
108
  colors: true,
@@ -144,7 +110,7 @@ var devMiddleware = require('webpack-dev-middleware')(compiler, {
144
110
  }
145
111
  })
146
112
 
147
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
113
+ const hotMiddleware = require('webpack-hot-middleware')(compiler)
148
114
  // force page reload when html-webpack-plugin template changes
149
115
  compiler.plugin('compilation', function (compilation) {
150
116
  compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
@@ -155,69 +121,21 @@ compiler.plugin('compilation', function (compilation) {
155
121
 
156
122
  // proxy api requests
157
123
  Object.keys(proxyTable).forEach(function (context) {
158
- var options = proxyTable[context]
124
+ let options = proxyTable[context]
159
125
  if (typeof options === 'string') {
160
126
  options = {target: options}
161
127
  }
162
128
  app.use(proxyMiddleware(context, options))
163
129
  })
164
130
 
165
- // handle fallback for HTML5 history API
166
131
  app.use(require('connect-history-api-fallback')())
167
- // app.use(function (req, res, next) {
168
- // res.header('Access-Control-Allow-Origin', '*')
169
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
170
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
171
- // res.header('X-Powered-By', '3,2,1')
172
- // res.header('Access-Control-Allow-Credentials', 'true')
173
- // res.header('Content-Type', 'application/json;charset=utf-8')
174
- // next()
175
- // })
176
132
 
177
- // serve webpack bundle output
178
133
  app.use(devMiddleware)
179
134
 
180
- // enable hot-reload and state-preserving
181
- // compilation error display
182
135
  app.use(hotMiddleware)
183
136
 
184
- // serve pure static assets
185
137
  app.use('/static', express.static('./static'))
186
138
 
187
- // app.all('/rs/*', function (req, res) {
188
- // proxy.web(req, res, {
189
- // target: 'http://127.0.0.1:8081/reports'
190
- // })
191
- // })
192
-
193
- // app.all('/rs/*', function (req, res) {
194
- // proxy.web(req, res, {
195
- // target: 'http://127.0.0.1:8081/ldap'
196
- // })
197
- // })
198
- // app.all('/excel/*', function (req, res) {
199
- // proxy.web(req, res, {
200
- // target: 'http://127.0.0.1:8081/charge'
201
- // })
202
- // })
203
-
204
- // app.all('/rs/*', function (req, res) {
205
- // proxy.web(req, res, {
206
- // target: 'http://127.0.0.1:82/charge'
207
- // })
208
- // })
209
-
210
- // app.all('/*', function (req, res) {
211
- // proxy.web(req, res, {
212
- // target: 'http://127.0.0.1:82'
213
- // })
214
- // })
215
- // app.all('/rs/user', function (req, res) {
216
- // proxy.web(req, res, {
217
- // target: 'http://127.0.0.1:82'
218
- // })
219
- // })
220
-
221
139
  module.exports = app.listen(8015, function (err) {
222
140
  if (err) {
223
141
  console.log(err)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.1.53",
3
+ "version": "4.1.54-bfsy",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -24,14 +24,15 @@
24
24
  "cross-spawn": "^2.1.5",
25
25
  "css-loader": "^0.23.0",
26
26
  "echarts": "^4.1.0",
27
- "eslint": "^2.0.0",
28
- "eslint-config-standard": "^5.1.0",
29
- "eslint-friendly-formatter": "^1.2.2",
30
- "eslint-loader": "^1.3.0",
31
- "eslint-plugin-html": "^1.3.0",
32
- "eslint-plugin-promise": "^1.0.8",
33
- "eslint-plugin-standard": "^1.3.2",
34
- "eslint-plugin-vue": "^0.1.1",
27
+ "eslint": "^3.19.0",
28
+ "eslint-config-standard": "^10.2.1",
29
+ "eslint-friendly-formatter": "^3.0.0",
30
+ "eslint-loader": "^1.7.1",
31
+ "eslint-plugin-html": "^3.0.0",
32
+ "eslint-plugin-import": "^2.7.0",
33
+ "eslint-plugin-node": "^5.2.0",
34
+ "eslint-plugin-promise": "^3.4.0",
35
+ "eslint-plugin-standard": "^3.0.1",
35
36
  "eventsource-polyfill": "^0.9.6",
36
37
  "express": "^4.13.3",
37
38
  "extract-text-webpack-plugin": "^1.0.1",
@@ -71,7 +72,7 @@
71
72
  "ldap-clients": "3.0.96",
72
73
  "url-loader": "^0.5.7",
73
74
  "vue-amap": "0.5.10",
74
- "vue-client": "1.24.162",
75
+ "vue-client": "1.26.3",
75
76
  "vue-hot-reload-api": "^1.2.0",
76
77
  "vue-html-loader": "^1.0.0",
77
78
  "vue-loader": "8.2.1",
@@ -42,6 +42,7 @@
42
42
  <!--</div>-->
43
43
  <div style = "float:right;">
44
44
  <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
45
+ <button class="button_search" @click="$parent.$parent.pushAudit()">推送审核</button>
45
46
  <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
46
47
  <report-excel id='gasprice'></report-excel>
47
48
  </div>
@@ -112,6 +113,80 @@
112
113
  <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
113
114
  </footer>
114
115
  </modal>
116
+ <modal :show.sync="pushAuditShow" v-ref:pushAuditShowModal large backdrop="false" width="40%" >
117
+ <header slot="modal-header" class="modal-header" style="text-align: center">
118
+ <h4 class="modal-title">推送审核</h4>
119
+ </header>
120
+ <article slot="modal-body" class="modal-body">
121
+ <validator name='v'>
122
+ <form class="form-horizontal select-overspread">
123
+ <div class="form-group" :class="[$v.f_audit_person.required ? 'has-error' : '']">
124
+ <label class="col-sm-4 font_normal_body">下一步审核人:</label>
125
+ <input type="text" v-show="false" v-model="$refs.f_audit_person.selectedItems"
126
+ v-validate:f_audit_person='{required: true }'>
127
+ <div class="col-sm-8">
128
+ <v-select v-model="pushAuditData.f_audit_person"
129
+ placeholder='请选择'
130
+ :value.sync="pushAuditData.f_audit_person"
131
+ :options='auditor'
132
+ :value-single="true"
133
+ close-on-select
134
+ clear-button
135
+ v-ref:f_audit_person>
136
+ </v-select>
137
+ </div>
138
+
139
+ </div>
140
+ <div class="form-group" >
141
+ <label class="col-sm-4 font_normal_body">报表审核人:</label>
142
+ <div class="col-sm-8">
143
+ <input class="input_search" style="width:60%" type="text"
144
+ v-model="pushAuditData.f_name" placeholder="报表审核人">
145
+ </div>
146
+ </div>
147
+ <div class="form-group" >
148
+ <label class="col-sm-4 font_normal_body">报表审核结果:</label>
149
+ <div class="col-sm-8">
150
+ <input class="input_search" style="width:60%" type="text"
151
+ v-model="pushAuditData.f_jieguo" placeholder="报表审核结果">
152
+ </div>
153
+ </div>
154
+ <div class="form-group" >
155
+ <label class="col-sm-4 font_normal_body">报表审核时间:</label>
156
+ <div class="col-sm-8">
157
+ <datepicker id="startDate" placeholder="报表审核时间" style="width: 60%"
158
+ v-model="pushAuditData.f_date"
159
+ :value.sync="pushAuditData.f_date"
160
+ :disabled-days-of-Week="[]"
161
+ :format="'yyyy-MM-dd HH:mm:ss'"
162
+ :show-reset-button="reset">
163
+ </datepicker>
164
+ </div>
165
+ </div>
166
+ </form>
167
+ </validator>
168
+ </article>
169
+ <footer slot="modal-footer" class="modal-footer">
170
+ <button class="button_search" style="width: max-content" @click="uploadFiles()">上传/查看附件</button>
171
+ <button class="button_search" style="width: max-content" @click="uploadPictures()">拍照</button>
172
+ <button class="button_search" @click="auditConfirm()" :disabled="!$v.valid">提交审核</button>
173
+ <button class="button_clear" @click="cancel()">取消</button>
174
+ </footer>
175
+ </modal>
176
+ <modal :show.sync="showFiles" styles="margin-top:50px" v-ref:showFiles backdrop="false" width="80%" >
177
+ <header slot="modal-header" class="modal-header">
178
+ <button type="button" class="close" @click="showFilesClose"><span class="glyphicon glyphicon-remove"></span></button>
179
+ </header>
180
+ <article slot="modal-body">
181
+ <upload-idcard :blodid="randomId" isremark="true" style="width:auto"
182
+ fusetype="数据推送审核" v-ref:upload>
183
+ </upload-idcard>
184
+ </article>
185
+ <footer slot="modal-footer" class="modal-footer">
186
+ </footer>
187
+ </modal>
188
+ <high-meter :show.sync="highMeterShow" v-if="highMeterShow" @photo-finish="newPhoto">
189
+ </high-meter>
115
190
  </div>
116
191
  </template>
117
192
 
@@ -128,8 +203,11 @@ let saveFile = function * (self) {
128
203
  return
129
204
  }
130
205
  let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
131
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
132
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
206
+ f_files_name: self.filename,
207
+ f_files_type: self.data.f_report_type,
208
+ f_component_name: 'manage-bus-summary',
209
+ f_operator: this.$login.f.name,
210
+ f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
133
211
  f_outlets: this.$login.f.depname})
134
212
  if (saveBack.data.status === 'succeed') {
135
213
  self.show = false
@@ -147,10 +225,17 @@ export default {
147
225
  depresid: [],
148
226
  userresid: [],
149
227
  initres: {
150
- org:[this.$login.f.orgid],
151
- dep:[],
152
- user:[]
228
+ org: [this.$login.f.orgid],
229
+ dep: [],
230
+ user: []
153
231
  },
232
+ pushAuditData: {},
233
+ auditor: [],
234
+ resid: [],
235
+ showFiles: false,
236
+ highMeterShow: false,
237
+ pushAuditShow: false,
238
+ randomId: '',
154
239
  f_orgid: this.$login.f.orgid,
155
240
  f_depid: this.$login.f.depids,
156
241
  f_operatorid: this.$login.f.id,
@@ -160,19 +245,117 @@ export default {
160
245
  depname: '',
161
246
  operatorname: '',
162
247
  orgCondtionStr: '1=1',
163
- model: new DataModel('api/af-revenue/report/otherChargeBeiFangShiYe', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
164
- f_orgid: 'this.model.f_orgid'}),
248
+ model: new DataModel('api/af-revenue/report/otherChargeBeiFangShiYe', {
249
+ startDate: 'this.model.startDate',
250
+ endDate: 'this.model.endDate',
251
+ f_orgid: 'this.model.f_orgid'
252
+ }),
165
253
  reportStr: null,
166
254
  show: false,
167
255
  spans: ''
168
256
  }
169
257
  },
170
258
  ready () {
259
+ this.getAuditor()
260
+ this.randomId = this.getRandomId()
171
261
  this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
172
262
  this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
173
263
  // this.$refs.paged.$refs.criteria.search()
174
264
  },
175
265
  methods: {
266
+ newPhoto (ImgBase64) {
267
+ this.$refs.upload.newPhoto(ImgBase64)
268
+ },
269
+ uploadFiles () {
270
+ this.showFiles = !this.showFiles
271
+ },
272
+ uploadPictures () {
273
+ this.highMeterShow = !this.highMeterShow
274
+ },
275
+ showFilesClose () {
276
+ this.showFiles = false
277
+ },
278
+ async getAuditor () {
279
+ await this.$MagGetSaleParam.initinputtor()
280
+ this.auditor = this.$MagGetSaleParam.getAudit(this.$login.f.orgid)
281
+ },
282
+ cancel () {
283
+ this.pushAuditShow = false
284
+ },
285
+ auditConfirm () {
286
+ if (this.$refs.upload.fileInfoData.length === 0) {
287
+ this.$showMessage('请至少上传一张附件')
288
+ return
289
+ }
290
+ let fileParam = []
291
+ for (let row of this.$refs.upload.fileInfoData) {
292
+ fileParam.push({id: row.id})
293
+ }
294
+ let param = {
295
+ // 业务参数
296
+ requestParam: {
297
+ f_operator: this.$login.f.name,
298
+ f_operatorid: this.$login.f.id,
299
+ f_orgid: this.$login.f.orgid,
300
+ f_orgname: this.$login.f.orgs,
301
+ f_depid: this.$login.f.depids,
302
+ f_depname: this.$login.f.deps,
303
+ type: '其他收费汇总报表推送',
304
+ ...this.pushAuditData
305
+ },
306
+ form: {
307
+ '业务描述': `${this.$login.f.name}对${this.pushAuditData.startDate}-${this.pushAuditData.endDate}其他收费汇总报表数据发起推送审核操作`,
308
+ '业务类型': `其他收费汇总报表推送审核`,
309
+ '报表审核人': this.pushAuditData.f_name,
310
+ '报表审核结果': this.pushAuditData.f_jieguo,
311
+ '报表审核时间': this.pushAuditData.f_date
312
+ },
313
+ // 审核人
314
+ f_audit_person: this.pushAuditData.f_audit_person,
315
+ // 描述
316
+ f_describe: `${this.$login.f.name}发起其他收费汇总报表推送审核操作`,
317
+ // 附件
318
+ fileParam: fileParam,
319
+ // 登录人信息
320
+ userBaseInfo: {
321
+ f_operator: this.$login.f.name,
322
+ f_operatorid: this.$login.f.id,
323
+ f_orgid: this.$login.f.orgid,
324
+ f_orgname: this.$login.f.orgs,
325
+ f_depid: this.$login.f.depids,
326
+ f_depname: this.$login.f.deps
327
+ },
328
+ // 业务类型
329
+ type: '其他收费汇总报表推送',
330
+ f_type: '其他收费汇总报表推送审核',
331
+ f_otherparam: [],
332
+ logicName: 'gasSalesReportReview'
333
+ }
334
+ console.log(param, this.pushAuditData)
335
+ this.$resetpost('api/af-revenue/logic/commonAuditLogic', param, {
336
+ warnMsg: `确定要对当前查询的报表数据进行推送审核吗?`,
337
+ resolveMsg: `提交审核完成!!`,
338
+ rejectMsg: `提交审核失败!!请重试!!`
339
+ }).then((res) => {
340
+ this.pushAuditShow = false
341
+ this.pushAuditData.f_audit_person = ''
342
+ this.pushAuditData.f_audit_person = ''
343
+ this.pushAuditData.f_name = ''
344
+ this.pushAuditData.f_jieguo = ''
345
+ this.pushAuditData.f_date = ''
346
+ this.randomId = this.getRandomId()
347
+ })
348
+ },
349
+ pushAudit () {
350
+ this.pushAuditShow = true
351
+ },
352
+ getRandomId () {
353
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
354
+ let res = Math.random() * 16 | 0
355
+ let v = c == 'x' ? res : (res & 0x3 | 0x8)
356
+ return v.toString(16)
357
+ })
358
+ },
176
359
  searchData () {
177
360
  this.$refs.paged.$refs.criteria.search()
178
361
  },
@@ -182,6 +365,9 @@ export default {
182
365
  args.condition = `${args.condition} ` + orgstr
183
366
  this.$refs.paged.$refs.criteria.model.f_orgid = orgstr
184
367
  this.$refs.paged.search(args)
368
+ this.pushAuditData.startDate = this.model.params.startDate
369
+ this.pushAuditData.endDate = this.model.params.endDate
370
+ this.pushAuditData.condition = args.condition.replace(/'/g, "''")
185
371
  },
186
372
  getRes (condition, obj) {
187
373
  this.orgCondtionStr = condition
@@ -235,7 +421,7 @@ export default {
235
421
  var num = 0
236
422
  for (let td of tds) {
237
423
  let span = td.getAttribute('colspan')
238
- num = num + ((span ? span : 1) - 0)
424
+ num = num + ((span || 1) - 0)
239
425
  }
240
426
  this.spans = num
241
427
  }