manage-client 3.2.237 → 3.2.239

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.
@@ -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
- // 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://192.168.50.4:8400'
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: wode
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:8080'
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: wode
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.237",
3
+ "version": "3.2.239",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -204,6 +204,18 @@
204
204
  <th>
205
205
  <nobr>付款方式</nobr>
206
206
  </th>
207
+ <th>
208
+ <nobr>气表底数</nobr>
209
+ </th>
210
+ <th>
211
+ <nobr>表上余额</nobr>
212
+ </th>
213
+ <th>
214
+ <nobr>累购气量</nobr>
215
+ </th>
216
+ <th>
217
+ <nobr>累购金额</nobr>
218
+ </th>
207
219
  <th>
208
220
  <!--<nobr>客户地址</nobr>-->
209
221
  <data-order field="f_address" name="客户地址"
@@ -281,6 +293,18 @@
281
293
  <td style="text-align: center;">
282
294
  <nobr>{{row.f_payment}}</nobr>
283
295
  </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_meter_base}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_balance_amount}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{row.leigougas}}</nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr>{{row.leigoumoney}}</nobr>
307
+ </td>
284
308
  <td style="text-align: center;">
285
309
  <nobr>{{row.f_address}}</nobr>
286
310
  </td>
@@ -358,6 +382,9 @@
358
382
  style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
359
383
  汇总信息
360
384
  </td>
385
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
386
+ 表上余额合计:&emsp;{{sumsmodel.f_balance_amount}}
387
+ </td>
361
388
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
362
389
  换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
363
390
  </td>
@@ -436,7 +463,7 @@
436
463
  footer:[],
437
464
  meterbrands: [],
438
465
  pricenames: [],
439
- model: new PagedList('rs/sql/changeMeterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0,hushu:0}),
466
+ model: new PagedList('rs/sql/changeMeterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_balance_amount: 0,f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0,hushu:0}),
440
467
  criteriaShow: false,
441
468
  orgCondtionStr: '',
442
469
  modelval: [],
@@ -256,7 +256,7 @@ export default{
256
256
  'f_type': '换表类型', 'f_changemeter_fee': '换表费', 'f_meternumber_old': '旧表号', 'f_meternumber': '新表号',
257
257
  'f_meter_brand_old': '旧气表品牌', 'f_meter_brand': '新气表品牌', 'f_remanent_gas': '补气量', 'f_remanent_money': '补气金额',
258
258
  'f_comments': '备注', 'f_change_operator': '换表人', 'f_state': '状态', 'f_operate_date': '操作日期', 'f_payment': '付款方式', 'f_othereason': '换表原因',
259
- 'f_operator': '人员', 'f_depname': '部门', 'f_orgname': '公司'
259
+ 'f_operator': '人员', 'f_depname': '部门', 'f_orgname': '公司', 'f_meter_base': '气表底数', 'f_balance_amount': '表上余额', 'leigougas': '累购气量', 'leigoumoney': '累购金额'
260
260
  },
261
261
  changemeterprintConfig: {
262
262
  'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_address': '客户地址',
@@ -194,14 +194,6 @@
194
194
  <!--condition="new_days <= {}" v-next-el='new_days' v-el:new_days-->
195
195
  <!--&gt;-->
196
196
  <!--</div>-->
197
- <div class="col-sm-2 form-group">
198
- <label class="font_normal_body">小区</label>
199
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area"
200
- placeholder='请输入小区'
201
- condition="f_residential_area like '%{}%'"
202
- >
203
- </div>
204
-
205
197
  </div>
206
198
 
207
199
 
@@ -115,12 +115,9 @@
115
115
  <div class="col-sm-2 form-group">
116
116
  <label class="font_normal_body">用户状态</label>
117
117
  <v-select
118
- placeholder='用户状态'
119
- value-single
118
+ placeholder='正常'
120
119
  style="width:60%"
121
- :value.sync="model.f_user_state"
122
- v-model="model.f_user_state"
123
- :options='$parent.$parent.userstate'
120
+ :value.sync="f_user_state"
124
121
  close-on-select condition="f_user_state ='{}'">
125
122
  </v-select>
126
123
  </div>
@@ -145,13 +142,6 @@
145
142
  close-on-select>
146
143
  </v-select>
147
144
  </div>
148
- <div class="col-sm-2 form-group">
149
- <label class="font_normal_body">小区</label>
150
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area"
151
- placeholder='请输入小区'
152
- condition="f_residential_area like '%{}%'"
153
- >
154
- </div>
155
145
 
156
146
  </div>
157
147
 
@@ -372,7 +362,8 @@
372
362
  {label: '用气性质', value: 'f_gasproperties'},
373
363
  {label: '分公司', value: 'f_orgname'},
374
364
  {label: '最长失联天数', value: 'max_days_type'},
375
- ]
365
+ ],
366
+ f_user_state:'正常'
376
367
  }
377
368
  },
378
369
  ready() {
@@ -176,13 +176,6 @@
176
176
  close-on-select>
177
177
  </v-select>
178
178
  </div>
179
- <div class="col-sm-2 form-group">
180
- <label class="font_normal_body">小区</label>
181
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area"
182
- placeholder='请输入小区'
183
- condition="f_residential_area like '%{}%'"
184
- >
185
- </div>
186
179
  </div>
187
180
  </div>
188
181
  </criteria>
@@ -14,7 +14,7 @@
14
14
  :value.sync="model.startDate"
15
15
  :format="'yyyy-MM-dd'"
16
16
  :show-reset-button="true"
17
- condition="f_operate_date >= '{} 00:00:00'">
17
+ condition="f_open_date >= '{} 00:00:00'">
18
18
  </datepicker>
19
19
  </div>
20
20
  <div class="col-sm-2 form-group">
@@ -24,7 +24,7 @@
24
24
  :value.sync="model.endDate"
25
25
  :format="'yyyy-MM-dd'"
26
26
  :show-reset-button="true"
27
- condition="f_operate_date <= '{} 23:59:59'">
27
+ condition="f_open_date <= '{} 23:59:59'">
28
28
  </datepicker>
29
29
  </div>
30
30
  <div class="span" style="float:right;">
@@ -171,10 +171,10 @@
171
171
  <nobr>{{row.isbgl}}</nobr>
172
172
  </td>
173
173
  <td style="text-align: center;">
174
- <nobr>{{row.operator}}</nobr>
174
+ <nobr>{{row.f_operator}}</nobr>
175
175
  </td>
176
176
  <td style="text-align: center;">
177
- <nobr>{{row.f_operate_date}}</nobr>
177
+ <nobr>{{row.f_open_date}}</nobr>
178
178
  </td>
179
179
  <td style="text-align: center;">
180
180
  <nobr>{{row.depname}}</nobr>
@@ -15,7 +15,7 @@
15
15
  <v-select :value.sync="model.a_jfyf"
16
16
  :options='$parent.$parent.jfyfArray' placeholder='请选择' v-model="model.a_jfyf"
17
17
  condition="a_jfyf in {}"
18
- close-on-select></v-select>
18
+ multiple></v-select>
19
19
  </div>
20
20
 
21
21
  <div class="col-sm-2 form-group">
@@ -270,20 +270,21 @@
270
270
  this.residentialArea = house
271
271
  },
272
272
  async getjfyf(){
273
- console.log('开始获取交费月份')
274
273
  let HttpReset = new HttpResetClass()
275
- var data = await HttpReset.load('POST', 'rs/sql/qnJgqgetjfyf', {
274
+ var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
276
275
  data: {
277
- condition: `1=1 `
276
+ condition: '1=1',
277
+ tablename: 'qn_jgq_hzb',
278
+ groupitem: 'a_jfyf',
279
+ orderitem: 'a_jfyf',
280
+ items: 'a_jfyf'
278
281
  }
279
- }, {resolveMsg: null, rejectMsg: '获取交费月份失败!'})
280
- console.log('交费月份',data)
281
- let a_jfyf = []
282
+ }, {resolveMsg: null, rejectMsg: '获取失败!'})
283
+ let nameArr = [{label: '全部', value: ''}]
282
284
  for (let row of data.data){
283
- console.log('开始保存交费月份')
284
- a_jfyf.push({label: row.a_jfyf, value: row.a_jfyf})
285
+ nameArr.push({label: row.a_jfyf, value: row.a_jfyf})
285
286
  }
286
- this.jfyfArray = a_jfyf
287
+ this.jfyfArray = nameArr
287
288
  },
288
289
 
289
290