manage-client 3.3.71 → 3.3.72-wn
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 +180 -180
- package/package.json +1 -1
- package/src/filiale/WEINAN/ManageCompanyGasDetail.vue +262 -0
- package/src/filiale/WEINAN/ManageCompanyGasManage.vue +54 -0
- package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +498 -0
- package/src/filiale/WEINAN/config/exportConfig.js +7 -0
- package/src/filiale/WEINAN/reportManage.js +4 -0
- package/src/filiale/tongchuan/ManageBusSummary.vue +251 -251
- package/src/main.js +72 -70
package/build/dev-server.js
CHANGED
|
@@ -1,180 +1,180 @@
|
|
|
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
|
-
|
|
19
|
-
// var bendi = 'http://203.57.101.233:8400/'
|
|
20
|
-
// var bendi = 'http://121.36.106.17:8400/'
|
|
21
|
-
// var fuwu = 'http://203.57.101.233:9001'
|
|
22
|
-
var bendi = 'http://
|
|
23
|
-
// var bendi = 'http://119.187.112.234:8400/'
|
|
24
|
-
var wode = 'http://
|
|
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
|
-
'/files': {
|
|
33
|
-
target: bendi
|
|
34
|
-
},
|
|
35
|
-
// 查找资源服务数据
|
|
36
|
-
'/rs/search': {
|
|
37
|
-
target: bendi
|
|
38
|
-
},
|
|
39
|
-
// 查找资源服务数据
|
|
40
|
-
'/rs/logic/getLogin': {
|
|
41
|
-
target: bendi
|
|
42
|
-
},
|
|
43
|
-
// 查找资源服务数据
|
|
44
|
-
'/rs/logic/getInitData': {
|
|
45
|
-
target: bendi
|
|
46
|
-
},
|
|
47
|
-
'/rs/logic/getSaleInitData': {
|
|
48
|
-
target: bendi
|
|
49
|
-
},
|
|
50
|
-
// 用户登录服务地址
|
|
51
|
-
'/rs/user': {
|
|
52
|
-
target: bendi
|
|
53
|
-
},
|
|
54
|
-
'/rs/path/getParams': {
|
|
55
|
-
target: bendi
|
|
56
|
-
},
|
|
57
|
-
'/rs/data': {
|
|
58
|
-
target: bendi
|
|
59
|
-
},
|
|
60
|
-
'/rs/license': {
|
|
61
|
-
target: bendi
|
|
62
|
-
},
|
|
63
|
-
'/rs/db': {
|
|
64
|
-
target: bendi
|
|
65
|
-
},
|
|
66
|
-
'/excel': {
|
|
67
|
-
target: bendi
|
|
68
|
-
},
|
|
69
|
-
'/rs/config': {
|
|
70
|
-
target: bendi
|
|
71
|
-
},
|
|
72
|
-
'/rs/sql/getLicenseById': {
|
|
73
|
-
target: bendi
|
|
74
|
-
},
|
|
75
|
-
'/rs/report': {
|
|
76
|
-
target: bendi
|
|
77
|
-
},
|
|
78
|
-
'/rs/vue': {
|
|
79
|
-
target: bendi
|
|
80
|
-
},
|
|
81
|
-
'/rs/file': {
|
|
82
|
-
target: bendi
|
|
83
|
-
},
|
|
84
|
-
'/rs/sql/singleTable': {
|
|
85
|
-
target: bendi
|
|
86
|
-
},
|
|
87
|
-
'/rs': {
|
|
88
|
-
target:
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
93
|
-
publicPath: config.output.publicPath,
|
|
94
|
-
stats: {
|
|
95
|
-
colors: true,
|
|
96
|
-
chunks: false
|
|
97
|
-
}
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
101
|
-
// force page reload when html-webpack-plugin template changes
|
|
102
|
-
compiler.plugin('compilation', function (compilation) {
|
|
103
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
104
|
-
hotMiddleware.publish({action: 'reload'})
|
|
105
|
-
cb()
|
|
106
|
-
})
|
|
107
|
-
})
|
|
108
|
-
|
|
109
|
-
// proxy api requests
|
|
110
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
111
|
-
var options = proxyTable[context]
|
|
112
|
-
if (typeof options === 'string') {
|
|
113
|
-
options = {target: options}
|
|
114
|
-
}
|
|
115
|
-
app.use(proxyMiddleware(context, options))
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
// handle fallback for HTML5 history API
|
|
119
|
-
app.use(require('connect-history-api-fallback')())
|
|
120
|
-
// app.use(function (req, res, next) {
|
|
121
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
122
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
123
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
124
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
125
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
126
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
127
|
-
// next()
|
|
128
|
-
// })
|
|
129
|
-
|
|
130
|
-
// serve webpack bundle output
|
|
131
|
-
app.use(devMiddleware)
|
|
132
|
-
|
|
133
|
-
// enable hot-reload and state-preserving
|
|
134
|
-
// compilation error display
|
|
135
|
-
app.use(hotMiddleware)
|
|
136
|
-
|
|
137
|
-
// serve pure static assets
|
|
138
|
-
app.use('/static', express.static('./static'))
|
|
139
|
-
|
|
140
|
-
// app.all('/rs/*', function (req, res) {
|
|
141
|
-
// proxy.web(req, res, {
|
|
142
|
-
// target: 'http://127.0.0.1:8081/reports'
|
|
143
|
-
// })
|
|
144
|
-
// })
|
|
145
|
-
|
|
146
|
-
// app.all('/rs/*', function (req, res) {
|
|
147
|
-
// proxy.web(req, res, {
|
|
148
|
-
// target: 'http://127.0.0.1:8081/ldap'
|
|
149
|
-
// })
|
|
150
|
-
// })
|
|
151
|
-
// app.all('/excel/*', function (req, res) {
|
|
152
|
-
// proxy.web(req, res, {
|
|
153
|
-
// target: 'http://127.0.0.1:8081/charge'
|
|
154
|
-
// })
|
|
155
|
-
// })
|
|
156
|
-
|
|
157
|
-
// app.all('/rs/*', function (req, res) {
|
|
158
|
-
// proxy.web(req, res, {
|
|
159
|
-
// target: 'http://127.0.0.1:82/charge'
|
|
160
|
-
// })
|
|
161
|
-
// })
|
|
162
|
-
|
|
163
|
-
// app.all('/*', function (req, res) {
|
|
164
|
-
// proxy.web(req, res, {
|
|
165
|
-
// target: 'http://127.0.0.1:82'
|
|
166
|
-
// })
|
|
167
|
-
// })
|
|
168
|
-
// app.all('/rs/user', function (req, res) {
|
|
169
|
-
// proxy.web(req, res, {
|
|
170
|
-
// target: 'http://127.0.0.1:82'
|
|
171
|
-
// })
|
|
172
|
-
// })
|
|
173
|
-
|
|
174
|
-
module.exports = app.listen(8015, function (err) {
|
|
175
|
-
if (err) {
|
|
176
|
-
console.log(err)
|
|
177
|
-
return
|
|
178
|
-
}
|
|
179
|
-
console.log('Listening at http://localhost:8015')
|
|
180
|
-
})
|
|
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://203.57.101.233:8400/'
|
|
20
|
+
// var bendi = 'http://121.36.106.17:8400/'
|
|
21
|
+
// var fuwu = 'http://203.57.101.233:9001'
|
|
22
|
+
// var bendi = 'http://192.168.50.4:8400/'
|
|
23
|
+
// var bendi = 'http://119.187.112.234:8400/'
|
|
24
|
+
var wode = 'http://127.0.0.1:8488/'
|
|
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
|
+
'/files': {
|
|
33
|
+
target: bendi
|
|
34
|
+
},
|
|
35
|
+
// 查找资源服务数据
|
|
36
|
+
'/rs/search': {
|
|
37
|
+
target: bendi
|
|
38
|
+
},
|
|
39
|
+
// 查找资源服务数据
|
|
40
|
+
'/rs/logic/getLogin': {
|
|
41
|
+
target: bendi
|
|
42
|
+
},
|
|
43
|
+
// 查找资源服务数据
|
|
44
|
+
'/rs/logic/getInitData': {
|
|
45
|
+
target: bendi
|
|
46
|
+
},
|
|
47
|
+
'/rs/logic/getSaleInitData': {
|
|
48
|
+
target: bendi
|
|
49
|
+
},
|
|
50
|
+
// 用户登录服务地址
|
|
51
|
+
'/rs/user': {
|
|
52
|
+
target: bendi
|
|
53
|
+
},
|
|
54
|
+
'/rs/path/getParams': {
|
|
55
|
+
target: bendi
|
|
56
|
+
},
|
|
57
|
+
'/rs/data': {
|
|
58
|
+
target: bendi
|
|
59
|
+
},
|
|
60
|
+
'/rs/license': {
|
|
61
|
+
target: bendi
|
|
62
|
+
},
|
|
63
|
+
'/rs/db': {
|
|
64
|
+
target: bendi
|
|
65
|
+
},
|
|
66
|
+
'/excel': {
|
|
67
|
+
target: bendi
|
|
68
|
+
},
|
|
69
|
+
'/rs/config': {
|
|
70
|
+
target: bendi
|
|
71
|
+
},
|
|
72
|
+
'/rs/sql/getLicenseById': {
|
|
73
|
+
target: bendi
|
|
74
|
+
},
|
|
75
|
+
'/rs/report': {
|
|
76
|
+
target: bendi
|
|
77
|
+
},
|
|
78
|
+
'/rs/vue': {
|
|
79
|
+
target: bendi
|
|
80
|
+
},
|
|
81
|
+
'/rs/file': {
|
|
82
|
+
target: bendi
|
|
83
|
+
},
|
|
84
|
+
'/rs/sql/singleTable': {
|
|
85
|
+
target: bendi
|
|
86
|
+
},
|
|
87
|
+
'/rs': {
|
|
88
|
+
target: bendi
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
93
|
+
publicPath: config.output.publicPath,
|
|
94
|
+
stats: {
|
|
95
|
+
colors: true,
|
|
96
|
+
chunks: false
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
|
|
100
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
101
|
+
// force page reload when html-webpack-plugin template changes
|
|
102
|
+
compiler.plugin('compilation', function (compilation) {
|
|
103
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
104
|
+
hotMiddleware.publish({action: 'reload'})
|
|
105
|
+
cb()
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
// proxy api requests
|
|
110
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
111
|
+
var options = proxyTable[context]
|
|
112
|
+
if (typeof options === 'string') {
|
|
113
|
+
options = {target: options}
|
|
114
|
+
}
|
|
115
|
+
app.use(proxyMiddleware(context, options))
|
|
116
|
+
})
|
|
117
|
+
|
|
118
|
+
// handle fallback for HTML5 history API
|
|
119
|
+
app.use(require('connect-history-api-fallback')())
|
|
120
|
+
// app.use(function (req, res, next) {
|
|
121
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
122
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
123
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
124
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
125
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
126
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
127
|
+
// next()
|
|
128
|
+
// })
|
|
129
|
+
|
|
130
|
+
// serve webpack bundle output
|
|
131
|
+
app.use(devMiddleware)
|
|
132
|
+
|
|
133
|
+
// enable hot-reload and state-preserving
|
|
134
|
+
// compilation error display
|
|
135
|
+
app.use(hotMiddleware)
|
|
136
|
+
|
|
137
|
+
// serve pure static assets
|
|
138
|
+
app.use('/static', express.static('./static'))
|
|
139
|
+
|
|
140
|
+
// app.all('/rs/*', function (req, res) {
|
|
141
|
+
// proxy.web(req, res, {
|
|
142
|
+
// target: 'http://127.0.0.1:8081/reports'
|
|
143
|
+
// })
|
|
144
|
+
// })
|
|
145
|
+
|
|
146
|
+
// app.all('/rs/*', function (req, res) {
|
|
147
|
+
// proxy.web(req, res, {
|
|
148
|
+
// target: 'http://127.0.0.1:8081/ldap'
|
|
149
|
+
// })
|
|
150
|
+
// })
|
|
151
|
+
// app.all('/excel/*', function (req, res) {
|
|
152
|
+
// proxy.web(req, res, {
|
|
153
|
+
// target: 'http://127.0.0.1:8081/charge'
|
|
154
|
+
// })
|
|
155
|
+
// })
|
|
156
|
+
|
|
157
|
+
// app.all('/rs/*', function (req, res) {
|
|
158
|
+
// proxy.web(req, res, {
|
|
159
|
+
// target: 'http://127.0.0.1:82/charge'
|
|
160
|
+
// })
|
|
161
|
+
// })
|
|
162
|
+
|
|
163
|
+
// app.all('/*', function (req, res) {
|
|
164
|
+
// proxy.web(req, res, {
|
|
165
|
+
// target: 'http://127.0.0.1:82'
|
|
166
|
+
// })
|
|
167
|
+
// })
|
|
168
|
+
// app.all('/rs/user', function (req, res) {
|
|
169
|
+
// proxy.web(req, res, {
|
|
170
|
+
// target: 'http://127.0.0.1:82'
|
|
171
|
+
// })
|
|
172
|
+
// })
|
|
173
|
+
|
|
174
|
+
module.exports = app.listen(8015, function (err) {
|
|
175
|
+
if (err) {
|
|
176
|
+
console.log(err)
|
|
177
|
+
return
|
|
178
|
+
}
|
|
179
|
+
console.log('Listening at http://localhost:8015')
|
|
180
|
+
})
|
package/package.json
CHANGED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="span" style="float:right;">
|
|
9
|
+
<!-- <button class="button_search button_spacing" @click="search()">查询</button>-->
|
|
10
|
+
<!-- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>-->
|
|
11
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
|
|
12
|
+
</div>
|
|
13
|
+
<!-- <export-excel :data="$parent.$parent.getCondition"-->
|
|
14
|
+
<!-- :field="$parent.$parent.getfield"-->
|
|
15
|
+
<!-- :header="$parent.$parent.other"-->
|
|
16
|
+
<!-- :footer="$parent.$parent.footer"-->
|
|
17
|
+
<!-- sqlurl="rs/logic/exportfile"-->
|
|
18
|
+
<!-- sql-name="manage_companyGasSummary"-->
|
|
19
|
+
<!-- template-name='单位用气售气汇总'-->
|
|
20
|
+
<!-- :choose-col="true"></export-excel>-->
|
|
21
|
+
<!-- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"-->
|
|
22
|
+
<!-- :field="$parent.$parent.getfield"-->
|
|
23
|
+
<!-- titletable="单位用气售气汇总" :starthead="$parent.$parent.startDate"-->
|
|
24
|
+
<!-- :defaultfield="$parent.$parent.defaultfield"-->
|
|
25
|
+
<!-- :sumsmodel="$parent.$parent.sumsmodel"></print-data>-->
|
|
26
|
+
<!-- <div-->
|
|
27
|
+
<!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
|
|
28
|
+
<!-- @click="$parent.$parent.hidden()"-->
|
|
29
|
+
<!-- class="button_spacing"-->
|
|
30
|
+
<!-- style="float: right"></div>-->
|
|
31
|
+
<!-- </div>-->
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</criteria>
|
|
35
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
36
|
+
<template partial='head'>
|
|
37
|
+
<tr>
|
|
38
|
+
<th>
|
|
39
|
+
<nobr>序号</nobr>
|
|
40
|
+
</th>
|
|
41
|
+
<th>
|
|
42
|
+
<nobr>客户编号</nobr>
|
|
43
|
+
</th>
|
|
44
|
+
<th>
|
|
45
|
+
<nobr>客户名称</nobr>
|
|
46
|
+
</th>
|
|
47
|
+
<th>
|
|
48
|
+
<nobr>气表品牌</nobr>
|
|
49
|
+
</th>
|
|
50
|
+
<th>
|
|
51
|
+
<nobr>表号</nobr>
|
|
52
|
+
</th>
|
|
53
|
+
<th>
|
|
54
|
+
<nobr>用气类型</nobr>
|
|
55
|
+
</th>
|
|
56
|
+
<th>
|
|
57
|
+
<nobr>用气机构</nobr>
|
|
58
|
+
</th>
|
|
59
|
+
<th>
|
|
60
|
+
<nobr>使用性质</nobr>
|
|
61
|
+
</th>
|
|
62
|
+
<th>
|
|
63
|
+
<nobr>用气性质</nobr>
|
|
64
|
+
</th>
|
|
65
|
+
<th>
|
|
66
|
+
<nobr>用气量</nobr>
|
|
67
|
+
</th>
|
|
68
|
+
<th>
|
|
69
|
+
<nobr>售气量</nobr>
|
|
70
|
+
</th>
|
|
71
|
+
<th>
|
|
72
|
+
<nobr>联系电话</nobr>
|
|
73
|
+
</th>
|
|
74
|
+
<th>
|
|
75
|
+
<nobr>气表状态</nobr>
|
|
76
|
+
</th>
|
|
77
|
+
</tr>
|
|
78
|
+
</template>
|
|
79
|
+
<template partial='body'>
|
|
80
|
+
<td style="text-align:center">
|
|
81
|
+
<nobr>{{ $index + 1 }}</nobr>
|
|
82
|
+
</td>
|
|
83
|
+
<td style="text-align:center">
|
|
84
|
+
<nobr>{{ row.f_userinfo_code }}</nobr>
|
|
85
|
+
</td>
|
|
86
|
+
<td style="text-align: center;">
|
|
87
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
88
|
+
</td>
|
|
89
|
+
<td style="text-align: center;">
|
|
90
|
+
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
91
|
+
</td>
|
|
92
|
+
<td style="text-align: center;">
|
|
93
|
+
<nobr>{{ row.f_meternumber }}</nobr>
|
|
94
|
+
</td>
|
|
95
|
+
<td style="text-align: center;">
|
|
96
|
+
<nobr>{{ row.f_user_usetype }}</nobr>
|
|
97
|
+
</td>
|
|
98
|
+
<td style="text-align: center;">
|
|
99
|
+
<nobr>{{ row.f_use_institution }}</nobr>
|
|
100
|
+
</td>
|
|
101
|
+
<td style="text-align: center;">
|
|
102
|
+
<nobr>{{ row.f_user_usenature }}</nobr>
|
|
103
|
+
</td>
|
|
104
|
+
<td style="text-align: center;">
|
|
105
|
+
<nobr>{{ row.f_gasproperties }}</nobr>
|
|
106
|
+
</td>
|
|
107
|
+
<td style="text-align: center;">
|
|
108
|
+
<nobr>{{ row.f_oughtamount }}</nobr>
|
|
109
|
+
</td>
|
|
110
|
+
<td style="text-align: center;">
|
|
111
|
+
<nobr>{{ row.f_pregas }}</nobr>
|
|
112
|
+
</td>
|
|
113
|
+
<td style="text-align: center;">
|
|
114
|
+
<nobr>{{ row.f_user_phone }}</nobr>
|
|
115
|
+
</td>
|
|
116
|
+
<td style="text-align: center;">
|
|
117
|
+
<nobr>{{ row.f_table_state }}</nobr>
|
|
118
|
+
</td>
|
|
119
|
+
</template>
|
|
120
|
+
<template partial='foot'></template>
|
|
121
|
+
</data-grid>
|
|
122
|
+
</criteria-paged>
|
|
123
|
+
<!-- <table class="table-hover">-->
|
|
124
|
+
<!-- <tr style="position: relative" class="table-bordered">-->
|
|
125
|
+
<!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
|
|
126
|
+
<!-- 汇总信息-->
|
|
127
|
+
<!-- </td>-->
|
|
128
|
+
<!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
|
|
129
|
+
<!-- 用气量: {{ sumsmodel.f_oughtamount }}m³-->
|
|
130
|
+
<!-- </td>-->
|
|
131
|
+
<!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
|
|
132
|
+
<!-- 售气量: {{ sumsmodel.f_pregas }}m³-->
|
|
133
|
+
<!-- </td>-->
|
|
134
|
+
<!-- </tr>-->
|
|
135
|
+
<!-- </table>-->
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</template>
|
|
139
|
+
<script>
|
|
140
|
+
import {PagedList} from 'vue-client'
|
|
141
|
+
import exportConfig from './config/exportConfig'
|
|
142
|
+
|
|
143
|
+
export default {
|
|
144
|
+
title: '单位表具详情',
|
|
145
|
+
data () {
|
|
146
|
+
return {
|
|
147
|
+
depresid: [],
|
|
148
|
+
userresid: [],
|
|
149
|
+
f_orgid: this.$login.f.orgid,
|
|
150
|
+
f_depid: this.$login.f.depids,
|
|
151
|
+
f_operatorid: this.$login.f.id,
|
|
152
|
+
operatorid: [],
|
|
153
|
+
depid: [],
|
|
154
|
+
orgname: '',
|
|
155
|
+
depname: [],
|
|
156
|
+
operatorname: '',
|
|
157
|
+
condition: '',
|
|
158
|
+
orgConditionStr: '',
|
|
159
|
+
data: {},
|
|
160
|
+
other: [],
|
|
161
|
+
footer: [],
|
|
162
|
+
model: new PagedList('rs/sql/manage_companyMeterDetail', 20, {
|
|
163
|
+
startDate: 'this.model.startDate',
|
|
164
|
+
endDate: 'this.model.endDate'
|
|
165
|
+
}),
|
|
166
|
+
gasproperties: [],
|
|
167
|
+
show: false,
|
|
168
|
+
rowdata: {},
|
|
169
|
+
areaList: [],
|
|
170
|
+
modelval: [],
|
|
171
|
+
startDate: '',
|
|
172
|
+
endDate: '',
|
|
173
|
+
inputtouPerson: [],
|
|
174
|
+
printshow: false,
|
|
175
|
+
all: false,
|
|
176
|
+
fields: {},
|
|
177
|
+
thead: '',
|
|
178
|
+
tfoot: '',
|
|
179
|
+
defaultfield: [],
|
|
180
|
+
sumsmodel: {},
|
|
181
|
+
sumExport: {'f_oughtamount': '期间用气量', 'f_pregas': '期间售气量'},
|
|
182
|
+
initres: {
|
|
183
|
+
org: [this.$login.f.orgid]
|
|
184
|
+
},
|
|
185
|
+
criteriaShow: false,
|
|
186
|
+
userusetypes: [],
|
|
187
|
+
useinstitutions: [],
|
|
188
|
+
userusenatures: [],
|
|
189
|
+
corporatename: []
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
ready () {
|
|
193
|
+
this.search()
|
|
194
|
+
},
|
|
195
|
+
props: ['data'],
|
|
196
|
+
methods: {
|
|
197
|
+
clear () {
|
|
198
|
+
// 清空部门和人员
|
|
199
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
200
|
+
// 部门和人员变为全选
|
|
201
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
202
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
203
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
204
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
205
|
+
})
|
|
206
|
+
},
|
|
207
|
+
getotherfooter () {
|
|
208
|
+
this.other = []
|
|
209
|
+
this.footer = []
|
|
210
|
+
let exportdata = this.getCondition
|
|
211
|
+
let otherInData = []
|
|
212
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
213
|
+
let footerData = [], exportfield = this.sumExport
|
|
214
|
+
footerData.push('合计')
|
|
215
|
+
let self = this
|
|
216
|
+
for (var field in self.sumsmodel) {
|
|
217
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
218
|
+
}
|
|
219
|
+
this.footer.push(footerData)
|
|
220
|
+
this.other.push(otherInData)
|
|
221
|
+
},
|
|
222
|
+
search () {
|
|
223
|
+
this.$refs.paged.$refs.cri.search()
|
|
224
|
+
},
|
|
225
|
+
selfSearch (args) {
|
|
226
|
+
args.condition = `${args.condition} and f_corporate_name_id = '${this.data.id}'`
|
|
227
|
+
this.$refs.paged.$refs.cri.model.startDate = this.data.startDate
|
|
228
|
+
this.$refs.paged.$refs.cri.model.endDate = this.data.endDate
|
|
229
|
+
this.condition = args.condition
|
|
230
|
+
console.log('查看条件', this.condition)
|
|
231
|
+
this.model.search(args.condition, args.model)
|
|
232
|
+
},
|
|
233
|
+
getRes (obj) {
|
|
234
|
+
this.orgConditionStr = obj
|
|
235
|
+
},
|
|
236
|
+
cancel () {
|
|
237
|
+
this.data = null
|
|
238
|
+
this.$dispatch('cancel')
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
watch: {
|
|
242
|
+
'data' (val) {
|
|
243
|
+
if (val) {
|
|
244
|
+
this.search()
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
computed: {
|
|
249
|
+
getCondition () {
|
|
250
|
+
return {
|
|
251
|
+
condition: this.condition,
|
|
252
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
253
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
getfield () {
|
|
257
|
+
return exportConfig.manageCompanyGasSummary
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
</script>
|
|
262
|
+
|