manage-client 3.2.207 → 3.2.209
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/build/dev-server.js +193 -190
- package/package.json +1 -1
- package/src/components/SellReport/AnLiReport.vue +1 -1
- package/src/components/SellReport/ManageBusSummaryNew.vue +181 -0
- package/src/components/SellReport/ManageSellTypeNew.vue +34 -19
- package/src/components/SellReport/jingwei/ManageHandSellMoneyNew.vue +166 -0
- package/src/components/sale/businessquery/InspectListUser.vue +3 -2
- package/src/filiale/WEINAN/ChargeQuery.vue +0 -6
- package/src/filiale/WEINAN/config/exportConfig.js +1 -1
- package/src/filiale/qianneng/OtherChargeQuery.vue +18 -2
- package/src/filiale/qianneng/exportConfig.js +2 -2
- package/src/filiale/shanxian/AreaGeneralQuery.vue +633 -0
- package/src/filiale/shanxian/FmyGasDeviceQuery.vue +855 -0
- package/src/filiale/shanxian/GasDeviceQuery.vue +964 -0
- package/src/filiale/shanxian/InspectListGas.vue +22 -1
- package/src/filiale/shanxian/Paymentpie.vue +205 -0
- package/src/filiale/shanxian/RecordInfoQuery.vue +1 -1
- package/src/filiale/shanxian/SiteManager.vue +3 -1
- package/src/filiale/shanxian/config/exportConfig.js +2 -2
- package/src/filiale/shanxian/reportManage.js +4 -1
- package/src/filiale/shanxian/sale.js +4 -2
- package/src/filiale/wuhai/ReportList.vue +10 -1
- package/src/reportManage.js +10 -2
package/build/dev-server.js
CHANGED
|
@@ -1,190 +1,193 @@
|
|
|
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')
|
|
6
|
-
|
|
7
|
-
var app = express()
|
|
8
|
-
var compiler = webpack(config)
|
|
9
|
-
// var proxy = httpProxy.createProxyServer()
|
|
10
|
-
|
|
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://119.146.1.106:8300/'
|
|
15
|
-
var qtx= 'http://36.103.222.144:6300/'
|
|
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://
|
|
20
|
-
// var bendi = 'http://121.36.106.17:8400/'
|
|
21
|
-
// var fuwu = 'http://203.57.101.233:9001'
|
|
22
|
-
var system = 'http://192.168.50.4:8400'
|
|
23
|
-
// 192.168.
|
|
24
|
-
// var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
|
|
25
|
-
// var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
|
|
26
|
-
var proxyTable = {
|
|
27
|
-
'/
|
|
28
|
-
target:
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// '/rs/sql/
|
|
34
|
-
// target: 'http://localhost:8080/'
|
|
35
|
-
// },
|
|
36
|
-
// '/rs/
|
|
37
|
-
// target: 'http://localhost:8080/'
|
|
38
|
-
// },
|
|
39
|
-
// '/rs/
|
|
40
|
-
// target: 'http://localhost:8080/'
|
|
41
|
-
// },
|
|
42
|
-
'/
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
'/rs/logic/
|
|
58
|
-
target: bendi
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'/rs/
|
|
65
|
-
target: bendi
|
|
66
|
-
},
|
|
67
|
-
'/rs/
|
|
68
|
-
target: bendi
|
|
69
|
-
},
|
|
70
|
-
'/rs/
|
|
71
|
-
target: bendi
|
|
72
|
-
},
|
|
73
|
-
'/rs/
|
|
74
|
-
target: bendi
|
|
75
|
-
},
|
|
76
|
-
'/
|
|
77
|
-
target: bendi
|
|
78
|
-
},
|
|
79
|
-
'/
|
|
80
|
-
target: bendi
|
|
81
|
-
},
|
|
82
|
-
'/rs/
|
|
83
|
-
target: bendi
|
|
84
|
-
},
|
|
85
|
-
'/rs/
|
|
86
|
-
target: bendi
|
|
87
|
-
},
|
|
88
|
-
'/rs/
|
|
89
|
-
target: bendi
|
|
90
|
-
},
|
|
91
|
-
'/rs/
|
|
92
|
-
target: bendi
|
|
93
|
-
},
|
|
94
|
-
'/rs/
|
|
95
|
-
target:
|
|
96
|
-
},
|
|
97
|
-
'/rs': {
|
|
98
|
-
target:
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
})
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
//
|
|
132
|
-
|
|
133
|
-
//
|
|
134
|
-
// res.header('
|
|
135
|
-
// res.header('Access-Control-Allow-
|
|
136
|
-
// res.header('
|
|
137
|
-
//
|
|
138
|
-
//
|
|
139
|
-
|
|
140
|
-
//
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
//
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
//
|
|
148
|
-
app.use(
|
|
149
|
-
|
|
150
|
-
//
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
//
|
|
154
|
-
//
|
|
155
|
-
|
|
156
|
-
//
|
|
157
|
-
//
|
|
158
|
-
|
|
159
|
-
//
|
|
160
|
-
//
|
|
161
|
-
//
|
|
162
|
-
//
|
|
163
|
-
//
|
|
164
|
-
//
|
|
165
|
-
//
|
|
166
|
-
|
|
167
|
-
//
|
|
168
|
-
//
|
|
169
|
-
|
|
170
|
-
//
|
|
171
|
-
//
|
|
172
|
-
|
|
173
|
-
//
|
|
174
|
-
//
|
|
175
|
-
|
|
176
|
-
//
|
|
177
|
-
//
|
|
178
|
-
//
|
|
179
|
-
//
|
|
180
|
-
//
|
|
181
|
-
//
|
|
182
|
-
//
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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')
|
|
6
|
+
|
|
7
|
+
var app = express()
|
|
8
|
+
var compiler = webpack(config)
|
|
9
|
+
// var proxy = httpProxy.createProxyServer()
|
|
10
|
+
|
|
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://119.146.1.106:8300/'
|
|
15
|
+
var qtx= 'http://36.103.222.144:6300/'
|
|
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://121.36.106.17:8400/'
|
|
20
|
+
// var bendi = 'http://121.36.106.17:8400/'
|
|
21
|
+
// var fuwu = 'http://203.57.101.233:9001'
|
|
22
|
+
var system = 'http://192.168.50.4:8400'
|
|
23
|
+
// 192.168.
|
|
24
|
+
// var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
|
|
25
|
+
// var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
|
|
26
|
+
var proxyTable = {
|
|
27
|
+
'/report':{
|
|
28
|
+
target: 'http://aote-office.f3322.net:31039'
|
|
29
|
+
},
|
|
30
|
+
'/rs/logic/exportfile': {
|
|
31
|
+
target: bendi
|
|
32
|
+
},
|
|
33
|
+
// '/rs/sql/otherChargeQuery': {
|
|
34
|
+
// target: 'http://localhost:8080/'
|
|
35
|
+
// },
|
|
36
|
+
// '/rs/sql/BusinessType': {
|
|
37
|
+
// target: 'http://localhost:8080/'
|
|
38
|
+
// },
|
|
39
|
+
// '/rs/logic/getBatchOperaPro': {
|
|
40
|
+
// target: 'http://localhost:8080/'
|
|
41
|
+
// },
|
|
42
|
+
// '/rs/customExport/areaChargeExportExcel': {
|
|
43
|
+
// target: 'http://localhost:8080/'
|
|
44
|
+
// },
|
|
45
|
+
'/files': {
|
|
46
|
+
target: bendi
|
|
47
|
+
},
|
|
48
|
+
// 查找资源服务数据
|
|
49
|
+
'/rs/search': {
|
|
50
|
+
target: bendi
|
|
51
|
+
},
|
|
52
|
+
// 查找资源服务数据
|
|
53
|
+
'/rs/logic/getLogin': {
|
|
54
|
+
target: bendi
|
|
55
|
+
},
|
|
56
|
+
// 查找资源服务数据
|
|
57
|
+
'/rs/logic/getInitData': {
|
|
58
|
+
target: bendi
|
|
59
|
+
},
|
|
60
|
+
'/rs/logic/getSaleInitData': {
|
|
61
|
+
target: bendi
|
|
62
|
+
},
|
|
63
|
+
// 用户登录服务地址
|
|
64
|
+
'/rs/user': {
|
|
65
|
+
target: bendi
|
|
66
|
+
},
|
|
67
|
+
'/rs/path/getParams': {
|
|
68
|
+
target: bendi
|
|
69
|
+
},
|
|
70
|
+
'/rs/data': {
|
|
71
|
+
target: bendi
|
|
72
|
+
},
|
|
73
|
+
'/rs/license': {
|
|
74
|
+
target: bendi
|
|
75
|
+
},
|
|
76
|
+
'/rs/db': {
|
|
77
|
+
target: bendi
|
|
78
|
+
},
|
|
79
|
+
'/excel': {
|
|
80
|
+
target: bendi
|
|
81
|
+
},
|
|
82
|
+
'/rs/config': {
|
|
83
|
+
target: bendi
|
|
84
|
+
},
|
|
85
|
+
'/rs/sql/getLicenseById': {
|
|
86
|
+
target: bendi
|
|
87
|
+
},
|
|
88
|
+
'/rs/report': {
|
|
89
|
+
target: bendi
|
|
90
|
+
},
|
|
91
|
+
'/rs/vue': {
|
|
92
|
+
target: bendi
|
|
93
|
+
},
|
|
94
|
+
'/rs/file': {
|
|
95
|
+
target: bendi
|
|
96
|
+
},
|
|
97
|
+
'/rs/logic/SumSettleFileImport': {
|
|
98
|
+
target: 'http://127.0.0.1:8080'
|
|
99
|
+
},
|
|
100
|
+
'/rs': {
|
|
101
|
+
target: bendi
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
106
|
+
publicPath: config.output.publicPath,
|
|
107
|
+
stats: {
|
|
108
|
+
colors: true,
|
|
109
|
+
chunks: false
|
|
110
|
+
}
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
114
|
+
// force page reload when html-webpack-plugin template changes
|
|
115
|
+
compiler.plugin('compilation', function (compilation) {
|
|
116
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
117
|
+
hotMiddleware.publish({action: 'reload'})
|
|
118
|
+
cb()
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
// proxy api requests
|
|
123
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
124
|
+
var options = proxyTable[context]
|
|
125
|
+
if (typeof options === 'string') {
|
|
126
|
+
options = {target: options}
|
|
127
|
+
}
|
|
128
|
+
app.use(proxyMiddleware(context, options))
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
// handle fallback for HTML5 history API
|
|
132
|
+
app.use(require('connect-history-api-fallback')())
|
|
133
|
+
// app.use(function (req, res, next) {
|
|
134
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
135
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
136
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
137
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
138
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
139
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
140
|
+
// next()
|
|
141
|
+
// })
|
|
142
|
+
|
|
143
|
+
// serve webpack bundle output
|
|
144
|
+
app.use(devMiddleware)
|
|
145
|
+
|
|
146
|
+
// enable hot-reload and state-preserving
|
|
147
|
+
// compilation error display
|
|
148
|
+
app.use(hotMiddleware)
|
|
149
|
+
|
|
150
|
+
// serve pure static assets
|
|
151
|
+
app.use('/static', express.static('./static'))
|
|
152
|
+
|
|
153
|
+
// app.all('/rs/*', function (req, res) {
|
|
154
|
+
// proxy.web(req, res, {
|
|
155
|
+
// target: 'http://127.0.0.1:8081/reports'
|
|
156
|
+
// })
|
|
157
|
+
// })
|
|
158
|
+
|
|
159
|
+
// app.all('/rs/*', function (req, res) {
|
|
160
|
+
// proxy.web(req, res, {
|
|
161
|
+
// target: 'http://127.0.0.1:8081/ldap'
|
|
162
|
+
// })
|
|
163
|
+
// })
|
|
164
|
+
// app.all('/excel/*', function (req, res) {
|
|
165
|
+
// proxy.web(req, res, {
|
|
166
|
+
// target: 'http://127.0.0.1:8081/charge'
|
|
167
|
+
// })
|
|
168
|
+
// })
|
|
169
|
+
|
|
170
|
+
// app.all('/rs/*', function (req, res) {
|
|
171
|
+
// proxy.web(req, res, {
|
|
172
|
+
// target: 'http://127.0.0.1:82/charge'
|
|
173
|
+
// })
|
|
174
|
+
// })
|
|
175
|
+
|
|
176
|
+
// app.all('/*', function (req, res) {
|
|
177
|
+
// proxy.web(req, res, {
|
|
178
|
+
// target: 'http://127.0.0.1:82'
|
|
179
|
+
// })
|
|
180
|
+
// })
|
|
181
|
+
// app.all('/rs/user', function (req, res) {
|
|
182
|
+
// proxy.web(req, res, {
|
|
183
|
+
// target: 'http://127.0.0.1:82'
|
|
184
|
+
// })
|
|
185
|
+
// })
|
|
186
|
+
|
|
187
|
+
module.exports = app.listen(8015, function (err) {
|
|
188
|
+
if (err) {
|
|
189
|
+
console.log(err)
|
|
190
|
+
return
|
|
191
|
+
}
|
|
192
|
+
console.log('Listening at http://localhost:8085')
|
|
193
|
+
})
|
package/package.json
CHANGED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 100%">
|
|
3
|
+
<div class="form-group" >
|
|
4
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-3 form-group" >
|
|
7
|
+
<label class="font_normal_body" for="startDate">开始日期:</label>
|
|
8
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
9
|
+
v-model="model.startDate"
|
|
10
|
+
:value.sync="model.startDate"
|
|
11
|
+
:disabled-days-of-Week="[]"
|
|
12
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
13
|
+
:show-reset-button="reset">
|
|
14
|
+
</datepicker>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-3 form-group" >
|
|
17
|
+
<label class="font_normal_body" for="endDate">结束日期:</label>
|
|
18
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
19
|
+
v-model="model.endDate"
|
|
20
|
+
:value.sync="model.endDate"
|
|
21
|
+
:disabled-days-of-Week="[]"
|
|
22
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
23
|
+
:show-reset-button="reset">
|
|
24
|
+
</datepicker>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="col-sm-3 form-group" >
|
|
27
|
+
<label class="font_normal_body" for="org">公  司:</label>
|
|
28
|
+
<right-tree id="org" @re-res="getRes"></right-tree>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-3 form-group">
|
|
31
|
+
<label class="font_normal_body" for="dep" >部  门:</label>
|
|
32
|
+
<res-select id="dep" restype='department'
|
|
33
|
+
@res-select="getdep"
|
|
34
|
+
:parentresid="depresid"
|
|
35
|
+
:initresid='queryData.depid' >
|
|
36
|
+
</res-select>
|
|
37
|
+
|
|
38
|
+
</div>
|
|
39
|
+
<div class="col-sm-3 form-group">
|
|
40
|
+
<label class="font_normal_body" for="oper">人  员:</label>
|
|
41
|
+
<res-select id="oper" restype='user'
|
|
42
|
+
is-mul="false"
|
|
43
|
+
@res-select="getuser"
|
|
44
|
+
:parentresid="userresid"
|
|
45
|
+
:initresid='queryData.operatorid'>
|
|
46
|
+
</res-select>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="col-sm-3 form-group">
|
|
49
|
+
<label class="font_normal_body">用户类型</label>
|
|
50
|
+
<v-select :value.sync="queryData.f_user_type"
|
|
51
|
+
v-model="queryData.f_user_type"
|
|
52
|
+
:options='user_type' placeholder='请选择'
|
|
53
|
+
close-on-select :value-single="true"></v-select>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="col-sm-2 form-group" style="float:right;">
|
|
56
|
+
<button class="button_search" @click="searchData()">查询</button>
|
|
57
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':criteriaShow,
|
|
58
|
+
'button_shrink_bottom':!criteriaShow}" @click="hidden()"></div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div style="width:100%;height: 100%;margin-top: 2%" class="div-iframe">
|
|
63
|
+
<iframe class="iframe_style" style="width:100%;height:100%" :src="url" v-if="isShow"></iframe>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<script>
|
|
70
|
+
export default {
|
|
71
|
+
title: '新收费汇总报表',
|
|
72
|
+
data () {
|
|
73
|
+
return {
|
|
74
|
+
orgCondtionStr: '1=1',
|
|
75
|
+
model: {
|
|
76
|
+
startDate: '',
|
|
77
|
+
endDate: '',
|
|
78
|
+
f_orgid: []
|
|
79
|
+
},
|
|
80
|
+
isShow: false,
|
|
81
|
+
url: '',
|
|
82
|
+
urlPrefix: '/report/jmreport/shareView/783966412390916096',
|
|
83
|
+
queryData: {
|
|
84
|
+
f_user_type: '',
|
|
85
|
+
f_depid: [],
|
|
86
|
+
f_operatorid: []
|
|
87
|
+
},
|
|
88
|
+
orgname: '',
|
|
89
|
+
depresid: [],
|
|
90
|
+
userresid: [],
|
|
91
|
+
depname: '',
|
|
92
|
+
operatorname: '',
|
|
93
|
+
operatorid: [],
|
|
94
|
+
depid: [],
|
|
95
|
+
criteriaShow: false
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
ready () {
|
|
99
|
+
this.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
100
|
+
this.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
101
|
+
this.searchData()
|
|
102
|
+
},
|
|
103
|
+
methods: {
|
|
104
|
+
searchData () {
|
|
105
|
+
let queryData = ''
|
|
106
|
+
queryData = this.orgCondtionStr
|
|
107
|
+
let f_orgid = ''
|
|
108
|
+
f_orgid = this.orgCondtionStr
|
|
109
|
+
if (this.model.f_orgid.length > 0) {
|
|
110
|
+
f_orgid = f_orgid + ' and f_orgid in (' + "'" + this.model.f_orgid + "'" + ')'
|
|
111
|
+
}
|
|
112
|
+
console.log(f_orgid)
|
|
113
|
+
for (let key in this.queryData) {
|
|
114
|
+
if (this.queryData[key] !== null && this.queryData[key] !== '' && this.queryData[key] !== undefined && this.queryData[key].length > 0) {
|
|
115
|
+
if (Array.isArray(this.queryData[key])) {
|
|
116
|
+
let stringValue = ''
|
|
117
|
+
for (var i = 0; i < this.queryData[key].length; i++) {
|
|
118
|
+
if (i === this.queryData[key].length - 1) {
|
|
119
|
+
stringValue = stringValue + "'" + this.queryData[key][i] + "'"
|
|
120
|
+
} else {
|
|
121
|
+
stringValue = stringValue + "'" + this.queryData[key][i] + "',"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
queryData = queryData + ' and ' + key + ' in (' + stringValue + ')'
|
|
125
|
+
} else {
|
|
126
|
+
queryData = queryData + ' and ' + key + ' = ' + "'" + this.queryData[key] + "'"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
console.log(queryData)
|
|
131
|
+
// 重置url
|
|
132
|
+
this.url = ''
|
|
133
|
+
// encodeURIComponent是将该参数中的特殊符号进行编码,后端会进行解码
|
|
134
|
+
this.url = this.urlPrefix + '?condition=' + encodeURIComponent(queryData) +
|
|
135
|
+
'&startDate=' + encodeURIComponent(this.model.startDate) +
|
|
136
|
+
'&f_orgid=' + encodeURIComponent(f_orgid) +
|
|
137
|
+
'&endDate=' + encodeURIComponent(this.model.endDate)
|
|
138
|
+
console.log('报表===' + queryData)
|
|
139
|
+
console.log('报表===>' + this.url)
|
|
140
|
+
this.isShow = true
|
|
141
|
+
},
|
|
142
|
+
load () {
|
|
143
|
+
this.isShow = true
|
|
144
|
+
},
|
|
145
|
+
getRes (obj) {
|
|
146
|
+
this.orgname = obj.res[0]
|
|
147
|
+
this.depresid = obj.resids
|
|
148
|
+
this.userresid = obj.resids
|
|
149
|
+
this.model.f_orgid = obj.resids
|
|
150
|
+
},
|
|
151
|
+
getdep (obj, val) {
|
|
152
|
+
this.depname = val[0]
|
|
153
|
+
this.userresid = obj
|
|
154
|
+
this.queryData.f_depid = obj
|
|
155
|
+
},
|
|
156
|
+
getuser (obj, val) {
|
|
157
|
+
this.operatorname = val[0]
|
|
158
|
+
this.queryData.f_operatorid = obj
|
|
159
|
+
},
|
|
160
|
+
hidden () {
|
|
161
|
+
this.criteriaShow = !this.criteriaShow
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
computed: {
|
|
165
|
+
user_type () {
|
|
166
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
</script>
|
|
171
|
+
<style scoped>
|
|
172
|
+
.noborder{
|
|
173
|
+
border: none;
|
|
174
|
+
}
|
|
175
|
+
.span{
|
|
176
|
+
height: 0;
|
|
177
|
+
}
|
|
178
|
+
.iframe_style{
|
|
179
|
+
border: medium none;
|
|
180
|
+
}
|
|
181
|
+
</style>
|