manage-client 3.2.119 → 3.2.120

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,176 +1,176 @@
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://203.57.101.233:9001'
17
- // var bendi = 'http://172.168.1.11:9001'
18
- var fuwu = 'http://61.150.94.253:8400'
19
- // var fuwu = 'http://203.57.101.233:9001'
20
- var system = 'http://192.168.50.4:8400'
21
- //192.168.
22
- // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
23
- // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
24
- var proxyTable = {
25
- '/rs/logic/exportfile': {
26
- target: fuwu
27
- },
28
- '/files': {
29
- target: fuwu
30
- },
31
- // 查找资源服务数据
32
- '/rs/search': {
33
- target: fuwu
34
- },
35
- // 查找资源服务数据
36
- '/rs/logic/getLogin': {
37
- target: fuwu
38
- },
39
- // 查找资源服务数据
40
- '/rs/logic/getInitData': {
41
- target: fuwu
42
- },
43
- '/rs/logic/getSaleInitData':{
44
- target: fuwu
45
- },
46
- // 用户登录服务地址
47
- '/rs/user': {
48
- target: fuwu
49
- },
50
- '/rs/path/getParams': {
51
- target: fuwu
52
- },
53
- '/rs/data': {
54
- target: fuwu
55
- },
56
- '/rs/license': {
57
- target: fuwu
58
- },
59
- '/rs/db': {
60
- target: fuwu
61
- },
62
- '/excel': {
63
- target: fuwu
64
- },
65
- '/rs/config': {
66
- target: fuwu
67
- },
68
- '/rs/sql/getLicenseById': {
69
- target: fuwu
70
- },
71
- '/rs/report': {
72
- target: bendi
73
- },
74
- '/rs/vue': {
75
- target: fuwu
76
- },
77
- '/rs/file': {
78
- target: bendi
79
- },
80
- '/rs/logic/SumSettleFileImport': {
81
- target: 'http://127.0.0.1:8080'
82
- },
83
- '/rs': {
84
- target: fuwu
85
- }
86
- }
87
-
88
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
89
- publicPath: config.output.publicPath,
90
- stats: {
91
- colors: true,
92
- chunks: false
93
- }
94
- })
95
-
96
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
97
- // force page reload when html-webpack-plugin template changes
98
- compiler.plugin('compilation', function (compilation) {
99
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
100
- hotMiddleware.publish({action: 'reload'})
101
- cb()
102
- })
103
- })
104
-
105
- // proxy api requests
106
- Object.keys(proxyTable).forEach(function (context) {
107
- var options = proxyTable[context]
108
- if (typeof options === 'string') {
109
- options = {target: options}
110
- }
111
- app.use(proxyMiddleware(context, options))
112
- })
113
-
114
- // handle fallback for HTML5 history API
115
- app.use(require('connect-history-api-fallback')())
116
- // app.use(function (req, res, next) {
117
- // res.header('Access-Control-Allow-Origin', '*')
118
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
119
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
120
- // res.header('X-Powered-By', '3,2,1')
121
- // res.header('Access-Control-Allow-Credentials', 'true')
122
- // res.header('Content-Type', 'application/json;charset=utf-8')
123
- // next()
124
- // })
125
-
126
- // serve webpack bundle output
127
- app.use(devMiddleware)
128
-
129
- // enable hot-reload and state-preserving
130
- // compilation error display
131
- app.use(hotMiddleware)
132
-
133
- // serve pure static assets
134
- app.use('/static', express.static('./static'))
135
-
136
- // app.all('/rs/*', function (req, res) {
137
- // proxy.web(req, res, {
138
- // target: 'http://127.0.0.1:8081/reports'
139
- // })
140
- // })
141
-
142
- // app.all('/rs/*', function (req, res) {
143
- // proxy.web(req, res, {
144
- // target: 'http://127.0.0.1:8081/ldap'
145
- // })
146
- // })
147
- // app.all('/excel/*', function (req, res) {
148
- // proxy.web(req, res, {
149
- // target: 'http://127.0.0.1:8081/charge'
150
- // })
151
- // })
152
-
153
- // app.all('/rs/*', function (req, res) {
154
- // proxy.web(req, res, {
155
- // target: 'http://127.0.0.1:82/charge'
156
- // })
157
- // })
158
-
159
- // app.all('/*', function (req, res) {
160
- // proxy.web(req, res, {
161
- // target: 'http://127.0.0.1:82'
162
- // })
163
- // })
164
- // app.all('/rs/user', function (req, res) {
165
- // proxy.web(req, res, {
166
- // target: 'http://127.0.0.1:82'
167
- // })
168
- // })
169
-
170
- module.exports = app.listen(8085, function (err) {
171
- if (err) {
172
- console.log(err)
173
- return
174
- }
175
- console.log('Listening at http://localhost:8085')
176
- })
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://127.0.0.1:8090'
17
+ // var bendi = 'http://172.168.1.11:9001'
18
+ var fuwu = 'http://121.36.106.17:8400'
19
+ // var fuwu = 'http://203.57.101.233:9001'
20
+ var system = 'http://192.168.50.4:8400'
21
+ //192.168.
22
+ // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
23
+ // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
24
+ var proxyTable = {
25
+ '/rs/logic/exportfile': {
26
+ target: fuwu
27
+ },
28
+ '/files': {
29
+ target: fuwu
30
+ },
31
+ // 查找资源服务数据
32
+ '/rs/search': {
33
+ target: fuwu
34
+ },
35
+ // 查找资源服务数据
36
+ '/rs/logic/getLogin': {
37
+ target: fuwu
38
+ },
39
+ // 查找资源服务数据
40
+ '/rs/logic/getInitData': {
41
+ target: fuwu
42
+ },
43
+ '/rs/logic/getSaleInitData':{
44
+ target: fuwu
45
+ },
46
+ // 用户登录服务地址
47
+ '/rs/user': {
48
+ target: fuwu
49
+ },
50
+ '/rs/path/getParams': {
51
+ target: fuwu
52
+ },
53
+ '/rs/data': {
54
+ target: fuwu
55
+ },
56
+ '/rs/license': {
57
+ target: fuwu
58
+ },
59
+ '/rs/db': {
60
+ target: fuwu
61
+ },
62
+ '/excel': {
63
+ target: fuwu
64
+ },
65
+ '/rs/config': {
66
+ target: fuwu
67
+ },
68
+ '/rs/sql/getLicenseById': {
69
+ target: fuwu
70
+ },
71
+ '/rs/report': {
72
+ target: bendi
73
+ },
74
+ '/rs/vue': {
75
+ target: fuwu
76
+ },
77
+ '/rs/file': {
78
+ target: bendi
79
+ },
80
+ '/rs/logic/SumSettleFileImport': {
81
+ target: 'http://127.0.0.1:8080'
82
+ },
83
+ '/rs': {
84
+ target: bendi
85
+ }
86
+ }
87
+
88
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
89
+ publicPath: config.output.publicPath,
90
+ stats: {
91
+ colors: true,
92
+ chunks: false
93
+ }
94
+ })
95
+
96
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
97
+ // force page reload when html-webpack-plugin template changes
98
+ compiler.plugin('compilation', function (compilation) {
99
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
100
+ hotMiddleware.publish({action: 'reload'})
101
+ cb()
102
+ })
103
+ })
104
+
105
+ // proxy api requests
106
+ Object.keys(proxyTable).forEach(function (context) {
107
+ var options = proxyTable[context]
108
+ if (typeof options === 'string') {
109
+ options = {target: options}
110
+ }
111
+ app.use(proxyMiddleware(context, options))
112
+ })
113
+
114
+ // handle fallback for HTML5 history API
115
+ app.use(require('connect-history-api-fallback')())
116
+ // app.use(function (req, res, next) {
117
+ // res.header('Access-Control-Allow-Origin', '*')
118
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
119
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
120
+ // res.header('X-Powered-By', '3,2,1')
121
+ // res.header('Access-Control-Allow-Credentials', 'true')
122
+ // res.header('Content-Type', 'application/json;charset=utf-8')
123
+ // next()
124
+ // })
125
+
126
+ // serve webpack bundle output
127
+ app.use(devMiddleware)
128
+
129
+ // enable hot-reload and state-preserving
130
+ // compilation error display
131
+ app.use(hotMiddleware)
132
+
133
+ // serve pure static assets
134
+ app.use('/static', express.static('./static'))
135
+
136
+ // app.all('/rs/*', function (req, res) {
137
+ // proxy.web(req, res, {
138
+ // target: 'http://127.0.0.1:8081/reports'
139
+ // })
140
+ // })
141
+
142
+ // app.all('/rs/*', function (req, res) {
143
+ // proxy.web(req, res, {
144
+ // target: 'http://127.0.0.1:8081/ldap'
145
+ // })
146
+ // })
147
+ // app.all('/excel/*', function (req, res) {
148
+ // proxy.web(req, res, {
149
+ // target: 'http://127.0.0.1:8081/charge'
150
+ // })
151
+ // })
152
+
153
+ // app.all('/rs/*', function (req, res) {
154
+ // proxy.web(req, res, {
155
+ // target: 'http://127.0.0.1:82/charge'
156
+ // })
157
+ // })
158
+
159
+ // app.all('/*', function (req, res) {
160
+ // proxy.web(req, res, {
161
+ // target: 'http://127.0.0.1:82'
162
+ // })
163
+ // })
164
+ // app.all('/rs/user', function (req, res) {
165
+ // proxy.web(req, res, {
166
+ // target: 'http://127.0.0.1:82'
167
+ // })
168
+ // })
169
+
170
+ module.exports = app.listen(8085, function (err) {
171
+ if (err) {
172
+ console.log(err)
173
+ return
174
+ }
175
+ console.log('Listening at http://localhost:8085')
176
+ })
@@ -0,0 +1,2 @@
1
+ Manifest-Version: 1.0
2
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.119",
3
+ "version": "3.2.120",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -371,6 +371,9 @@
371
371
  <th>
372
372
  <nobr>卡号</nobr>
373
373
  </th>
374
+ <th>
375
+ <nobr>气价名称</nobr>
376
+ </th>
374
377
  <th>
375
378
  <nobr>购气次数</nobr>
376
379
  </th>
@@ -565,6 +568,9 @@
565
568
  <td style="text-align: center;">
566
569
  <nobr>{{row.f_card_id}}</nobr>
567
570
  </td>
571
+ <td style="text-align: center;">
572
+ <nobr>{{row.f_price_name}}</nobr>
573
+ </td>
568
574
  <td style="text-align: center;">
569
575
  <nobr>{{row.f_times}}</nobr>
570
576
  </td>
@@ -87,7 +87,7 @@ export default{
87
87
  },
88
88
  chargeConfig: {
89
89
  'id': '收费编号', 'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_user_name': '客户名称', 'f_user_phone': '客户电话', 'f_address': '客户地址', 'f_zones': '片区', 'f_user_type': '客户类型',
90
- 'f_gasproperties': '用气性质', 'f_meternumber': '表号', 'f_meter_brand': '气表品牌', 'f_times': '购气次数',
90
+ 'f_gasproperties': '用气性质', 'f_meternumber': '表号', 'f_meter_brand': '气表品牌', 'f_times': '购气次数', 'f_price_name': '气价名称',
91
91
  'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_pregas': '气量', 'fee': '金额', 'f_preamount': '燃气费', 'f_collection': '收款', 'f_privilege_money': '优惠金额', 'f_balance': '上期结余',
92
92
  'f_curbalance': '本期结余', 'f_type': '收费类型', 'f_payment': '付款方式', 'f_bank_type': '支付渠道', 'f_state': '状态', 'f_operate_date': '收费日期', 'f_serial_id': '流水号',
93
93
  'f_delaypay': '滞纳金', 'f_comments': '备注', 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司',
@@ -292,7 +292,7 @@ export default{
292
292
  'f_money': '收款', 'f_payment': '付款方式', 'f_state': '状态', 'f_operate_date': '收费日期'
293
293
  },
294
294
  cardhandplanConfig: {
295
- 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_meternumber': '表号', 'f_olduserinfo_code': '档案编号', 'f_address': '客户地址', 'f_meternumber': '表号',
295
+ 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_meternumber': '表号', 'f_olduserinfo_code': '档案编号', 'f_address': '客户地址',
296
296
  'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_real_amount': '用气量', 'f_total_gas': '总购气量',
297
297
  'f_yuliang': '余量', 'f_inputtor': '抄表员', 'f_hand_date': '下发日期', 'f_input_date': '录入日期',
298
298
  'f_meter_state': '抄表状态', 'f_operator': '操作员', 'f_depname': '部门'
@@ -376,6 +376,11 @@ export default{
376
376
  'f_pregas': '预购气量', 'f_preamount': '预购金额', 'f_collection': '实交金额', 'f_inputtor': '抄表员', 'f_book_slice_area': '表册片区',
377
377
  'f_hand_number': '抄表次数', 'f_date': '抄表区间', 'f_input_day': '天数', 'f_oughtamount': '用气量', 'f_oughtfee': '用气金额', 'f_usetype': '使用类型'
378
378
  },
379
+ notgasConfig: {
380
+ 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_olduserinfo_code': '档案编号', 'f_user_phone': '客户电话', 'f_credentials': '证件类型',
381
+ 'f_idnumber': '证件号码', 'f_address': '客户地址', 'f_user_type': '客户类型', 'f_gasproperties': '用气性质', 'f_residential_area': '小区',
382
+ 'f_meternumber': '表号', 'f_meter_brand': '气表品牌', 'f_meter_classify': '气表类型','f_oughtamount': '用气量'
383
+ },
379
384
  handRateConfig: {
380
385
  'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_olduserinfo_code': '档案编号', 'f_user_phone': '客户电话', 'f_address': '客户地址',
381
386
  'f_user_type': '客户类型', 'f_gasproperties': '用气性质', 'f_meternumber': '表号', 'f_meter_classify': '气表类型',
@@ -3,7 +3,7 @@
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex">
5
5
  <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
7
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
8
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
9
  <div class="row">
@@ -259,7 +259,8 @@
259
259
  <template partial='head'>
260
260
  <tr>
261
261
  <th>
262
- <nobr>客户编号</nobr>
262
+ <!--<nobr>客户编号</nobr>-->
263
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
263
264
  </th>
264
265
  <th>
265
266
  <nobr>客户名称</nobr>
@@ -271,7 +272,8 @@
271
272
  <nobr>身份证号</nobr>
272
273
  </th>
273
274
  <th>
274
- <nobr>客户地址</nobr>
275
+ <!--<nobr>客户地址</nobr>-->
276
+ <data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
275
277
  </th>
276
278
  <th>
277
279
  <nobr>表册片区</nobr>
@@ -315,10 +317,12 @@
315
317
  <nobr>通气人</nobr>
316
318
  </th>
317
319
  <th>
318
- <nobr>通气时间</nobr>
320
+ <!--<nobr>通气时间</nobr>-->
321
+ <data-order field="f_gas_date" name="通气时间" :order.sync="$parent.$parent.$parent.orderFields.f_gas_date"></data-order>
319
322
  </th>
320
323
  <th>
321
- <nobr>建表时间</nobr>
324
+ <!--<nobr>建表时间</nobr>-->
325
+ <data-order field="f_input_date" name="建表时间" :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
322
326
  </th>
323
327
  <th>
324
328
  <nobr>气表状态</nobr>
@@ -512,7 +516,7 @@
512
516
  isSingleUser: null,
513
517
  other:[],
514
518
  footer:[],
515
- model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
519
+ model: new PagedList('rs/sql/meterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_user_id,f_table_state desc'`}, {f_balance_amount: 0}),
516
520
  criteriaShow: false,
517
521
  orgCondtionStr: '',
518
522
 
@@ -520,6 +524,11 @@
520
524
  printshow: false,
521
525
  all: false,
522
526
  fields: {},
527
+ //排序
528
+ orderitem:'f_user_id,f_table_state desc',
529
+ orderFields: {
530
+ f_userinfo_id: 'no'
531
+ },
523
532
  thead: '',
524
533
  tfoot: '',
525
534
  initres: {
@@ -766,6 +775,24 @@
766
775
  })
767
776
  }
768
777
  },
778
+ sort (field, rule) {
779
+ // 将所有排序方式设为不排序,实现相互排斥
780
+ for (let key in this.orderFields) {
781
+ if (key === field) {
782
+ this.orderFields[key] = rule
783
+ } else {
784
+ this.orderFields[key] = 'no'
785
+ }
786
+ }
787
+ // 如果新规则不排序,还原为默认排序
788
+ if (rule === 'no') {
789
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
790
+ } else {
791
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
792
+ }
793
+
794
+ this.search()
795
+ }
769
796
  },
770
797
  watch: {
771
798
  'model.rows.length' () {
@@ -854,7 +881,7 @@
854
881
  }
855
882
  },
856
883
  getCondition() {
857
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
884
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
858
885
  },
859
886
  getfield() {
860
887
  let data = {}
@@ -3,7 +3,7 @@
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex">
5
5
  <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
7
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
8
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
9
  <div class="row">
@@ -212,7 +212,8 @@
212
212
  <template partial='head'>
213
213
  <tr>
214
214
  <th>
215
- <nobr>客户编号</nobr>
215
+ <!--<nobr>客户编号</nobr>-->
216
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
216
217
  </th>
217
218
  <th>
218
219
  <nobr>客户名称</nobr>
@@ -224,7 +225,11 @@
224
225
  <nobr>身份证号</nobr>
225
226
  </th>
226
227
  <th>
227
- <nobr>客户地址</nobr>
228
+ <!--<nobr>客户地址</nobr>-->
229
+ <data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
230
+ </th>
231
+ <th>
232
+ <nobr>表册片区</nobr>
228
233
  </th>
229
234
  <th>
230
235
  <nobr>表上余额</nobr>
@@ -265,10 +270,12 @@
265
270
  <nobr>通气人</nobr>
266
271
  </th>
267
272
  <th>
268
- <nobr>通气时间</nobr>
273
+ <!--<nobr>通气时间</nobr>-->
274
+ <data-order field="f_gas_date" name="通气时间" :order.sync="$parent.$parent.$parent.orderFields.f_gas_date"></data-order>
269
275
  </th>
270
276
  <th>
271
- <nobr>建表时间</nobr>
277
+ <!--<nobr>建表时间</nobr>-->
278
+ <data-order field="f_input_date" name="建表时间" :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
272
279
  </th>
273
280
  <th>
274
281
  <nobr>气表状态</nobr>
@@ -447,7 +454,7 @@
447
454
  isSingleUser: null,
448
455
  other:[],
449
456
  footer:[],
450
- model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
457
+ model: new PagedList('rs/sql/meterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_user_id,f_table_state desc'`}, {f_balance_amount: 0}),
451
458
  criteriaShow: false,
452
459
  orgCondtionStr: '',
453
460
 
@@ -455,6 +462,11 @@
455
462
  printshow: false,
456
463
  all: false,
457
464
  fields: {},
465
+ //排序
466
+ orderitem:'f_user_id,f_table_state desc',
467
+ orderFields: {
468
+ f_userinfo_id: 'no'
469
+ },
458
470
  thead: '',
459
471
  tfoot: '',
460
472
  initres: {
@@ -674,6 +686,24 @@
674
686
  })
675
687
  }
676
688
  },
689
+ sort (field, rule) {
690
+ // 将所有排序方式设为不排序,实现相互排斥
691
+ for (let key in this.orderFields) {
692
+ if (key === field) {
693
+ this.orderFields[key] = rule
694
+ } else {
695
+ this.orderFields[key] = 'no'
696
+ }
697
+ }
698
+ // 如果新规则不排序,还原为默认排序
699
+ if (rule === 'no') {
700
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
701
+ } else {
702
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
703
+ }
704
+
705
+ this.search()
706
+ }
677
707
  },
678
708
  watch: {
679
709
  'model.rows.length' () {
@@ -759,7 +789,7 @@
759
789
  }
760
790
  },
761
791
  getCondition() {
762
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
792
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
763
793
  },
764
794
  getfield() {
765
795
  let data = {}
@@ -3,7 +3,7 @@
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex">
5
5
  <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
7
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
8
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
9
  <div class="row">
@@ -195,7 +195,7 @@
195
195
  <template partial='head'>
196
196
  <tr>
197
197
  <th>
198
- <nobr>客户编号</nobr>
198
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
199
199
  </th>
200
200
  <th>
201
201
  <nobr>客户名称</nobr>
@@ -204,7 +204,7 @@
204
204
  <nobr>客户电话</nobr>
205
205
  </th>
206
206
  <th>
207
- <nobr>客户地址</nobr>
207
+ <data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
208
208
  </th>
209
209
  <th>
210
210
  <nobr>表上余额</nobr>
@@ -240,10 +240,10 @@
240
240
  <nobr>通气人</nobr>
241
241
  </th>
242
242
  <th>
243
- <nobr>通气时间</nobr>
243
+ <data-order field="f_gas_date" name="通气时间" :order.sync="$parent.$parent.$parent.orderFields.f_gas_date"></data-order>
244
244
  </th>
245
245
  <th>
246
- <nobr>建表时间</nobr>
246
+ <data-order field="f_input_date" name="建表时间" :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
247
247
  </th>
248
248
  <th>
249
249
  <nobr>气表状态</nobr>
@@ -384,7 +384,7 @@
384
384
  return {
385
385
  other:[],
386
386
  footer:[],
387
- model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
387
+ model: new PagedList('rs/sql/meterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_user_id,f_table_state desc'`}, {f_balance_amount: 0}),
388
388
  criteriaShow: false,
389
389
  orgCondtionStr: '',
390
390
 
@@ -392,6 +392,11 @@
392
392
  printshow: false,
393
393
  all: false,
394
394
  fields: {},
395
+ //排序
396
+ orderitem:'f_user_id,f_table_state desc',
397
+ orderFields: {
398
+ f_userinfo_id: 'no'
399
+ },
395
400
  thead: '',
396
401
  tfoot: '',
397
402
  initres: {
@@ -549,6 +554,24 @@
549
554
  await this.$MagLoadParams.loadParam(this.f_filialeid)
550
555
  this.initParams()
551
556
  },
557
+ sort (field, rule) {
558
+ // 将所有排序方式设为不排序,实现相互排斥
559
+ for (let key in this.orderFields) {
560
+ if (key === field) {
561
+ this.orderFields[key] = rule
562
+ } else {
563
+ this.orderFields[key] = 'no'
564
+ }
565
+ }
566
+ // 如果新规则不排序,还原为默认排序
567
+ if (rule === 'no') {
568
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
569
+ } else {
570
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
571
+ }
572
+
573
+ this.search()
574
+ }
552
575
  },
553
576
  watch: {
554
577
  'all'(val) {
@@ -629,7 +652,7 @@
629
652
  }
630
653
  },
631
654
  getCondition() {
632
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
655
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
633
656
  },
634
657
  getfield() {
635
658
  let data = {}
@@ -3,7 +3,7 @@
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex">
5
5
  <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
7
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
8
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
9
  <div class="row">
@@ -255,7 +255,7 @@
255
255
  <template partial='head'>
256
256
  <tr>
257
257
  <th>
258
- <nobr>客户编号</nobr>
258
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
259
259
  </th>
260
260
  <th>
261
261
  <nobr>客户名称</nobr>
@@ -267,7 +267,7 @@
267
267
  <nobr>身份证号</nobr>
268
268
  </th>
269
269
  <th>
270
- <nobr>客户地址</nobr>
270
+ <data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
271
271
  </th>
272
272
  <th>
273
273
  <nobr>表册片区</nobr>
@@ -496,7 +496,7 @@
496
496
  isSingleUser: null,
497
497
  other:[],
498
498
  footer:[],
499
- model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
499
+ model: new PagedList('rs/sql/meterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_user_id,f_table_state desc'`}, {f_balance_amount: 0}),
500
500
  criteriaShow: false,
501
501
  orgCondtionStr: '',
502
502
 
@@ -504,6 +504,11 @@
504
504
  printshow: false,
505
505
  all: false,
506
506
  fields: {},
507
+ //排序
508
+ orderitem:'f_user_id,f_table_state desc',
509
+ orderFields: {
510
+ f_userinfo_id: 'no'
511
+ },
507
512
  thead: '',
508
513
  tfoot: '',
509
514
  initres: {
@@ -750,6 +755,24 @@
750
755
  })
751
756
  }
752
757
  },
758
+ sort (field, rule) {
759
+ // 将所有排序方式设为不排序,实现相互排斥
760
+ for (let key in this.orderFields) {
761
+ if (key === field) {
762
+ this.orderFields[key] = rule
763
+ } else {
764
+ this.orderFields[key] = 'no'
765
+ }
766
+ }
767
+ // 如果新规则不排序,还原为默认排序
768
+ if (rule === 'no') {
769
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
770
+ } else {
771
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
772
+ }
773
+
774
+ this.search()
775
+ }
753
776
  },
754
777
  watch: {
755
778
  'model.rows.length' () {
@@ -835,7 +858,7 @@
835
858
  }
836
859
  },
837
860
  getCondition() {
838
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
861
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
839
862
  },
840
863
  getfield() {
841
864
  let data = {}
@@ -56,6 +56,13 @@
56
56
  condition="f_user_state = '{}'"
57
57
  close-on-select></v-select>
58
58
  </div>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">用户类型</label>
61
+ <v-select :value.sync="model.f_user_type"
62
+ v-model="model.f_user_type" condition="f_user_type = '{}'"
63
+ :options='$parent.$parent.userTypes' placeholder='请选择'
64
+ close-on-select></v-select>
65
+ </div>
59
66
  <div class="col-sm-2 form-group">
60
67
  <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人数&nbsp;&nbsp;&nbsp;</label>
61
68
  <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
@@ -756,6 +763,9 @@
756
763
  }
757
764
  return [{label: '全部', value: ''}, ...rs]
758
765
  },
766
+ userTypes () {
767
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
768
+ },
759
769
  userstates() {
760
770
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
761
771
  }
@@ -3,7 +3,7 @@
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex">
5
5
  <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
7
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
8
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
9
  <div class="row">
@@ -219,7 +219,7 @@
219
219
  <template partial='head'>
220
220
  <tr>
221
221
  <th>
222
- <nobr>客户编号</nobr>
222
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
223
223
  </th>
224
224
  <th>
225
225
  <nobr>客户名称</nobr>
@@ -231,7 +231,7 @@
231
231
  <nobr>身份证号</nobr>
232
232
  </th>
233
233
  <th>
234
- <nobr>客户地址</nobr>
234
+ <data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
235
235
  </th>
236
236
  <th>
237
237
  <nobr>表上余额</nobr>
@@ -269,10 +269,10 @@
269
269
  <nobr>通气人</nobr>
270
270
  </th>
271
271
  <th>
272
- <nobr>通气时间</nobr>
272
+ <data-order field="f_gas_date" name="通气时间" :order.sync="$parent.$parent.$parent.orderFields.f_gas_date"></data-order>
273
273
  </th>
274
274
  <th>
275
- <nobr>建表时间</nobr>
275
+ <data-order field="f_input_date" name="建表时间" :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
276
276
  </th>
277
277
  <th>
278
278
  <nobr>气表状态</nobr>
@@ -447,7 +447,7 @@
447
447
  isSingleUser: null,
448
448
  other:[],
449
449
  footer:[],
450
- model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
450
+ model: new PagedList('rs/sql/meterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_user_id,f_table_state desc'`}, {f_balance_amount: 0}),
451
451
  criteriaShow: false,
452
452
  orgCondtionStr: '',
453
453
 
@@ -455,6 +455,11 @@
455
455
  printshow: false,
456
456
  all: false,
457
457
  fields: {},
458
+ //排序
459
+ orderitem:'f_user_id,f_table_state desc',
460
+ orderFields: {
461
+ f_userinfo_id: 'no'
462
+ },
458
463
  thead: '',
459
464
  tfoot: '',
460
465
  initres: {
@@ -674,6 +679,24 @@
674
679
  })
675
680
  }
676
681
  },
682
+ sort (field, rule) {
683
+ // 将所有排序方式设为不排序,实现相互排斥
684
+ for (let key in this.orderFields) {
685
+ if (key === field) {
686
+ this.orderFields[key] = rule
687
+ } else {
688
+ this.orderFields[key] = 'no'
689
+ }
690
+ }
691
+ // 如果新规则不排序,还原为默认排序
692
+ if (rule === 'no') {
693
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
694
+ } else {
695
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
696
+ }
697
+
698
+ this.search()
699
+ }
677
700
  },
678
701
  watch: {
679
702
  'model.rows.length' () {
@@ -759,7 +782,7 @@
759
782
  }
760
783
  },
761
784
  getCondition() {
762
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
785
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
763
786
  },
764
787
  getfield() {
765
788
  let data = {}
@@ -3,7 +3,7 @@
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex">
5
5
  <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
7
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
8
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
9
  <div class="row">
@@ -266,7 +266,7 @@
266
266
  <template partial='head'>
267
267
  <tr>
268
268
  <th>
269
- <nobr>客户编号</nobr>
269
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
270
270
  </th>
271
271
  <th>
272
272
  <nobr>客户名称</nobr>
@@ -281,7 +281,7 @@
281
281
  <nobr>身份证号</nobr>
282
282
  </th>
283
283
  <th>
284
- <nobr>客户地址</nobr>
284
+ <data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
285
285
  </th>
286
286
  <th>
287
287
  <nobr>表册片区</nobr>
@@ -325,10 +325,10 @@
325
325
  <nobr>通气人</nobr>
326
326
  </th>
327
327
  <th>
328
- <nobr>通气时间</nobr>
328
+ <data-order field="f_gas_date" name="通气时间" :order.sync="$parent.$parent.$parent.orderFields.f_gas_date"></data-order>
329
329
  </th>
330
330
  <th>
331
- <nobr>建表时间</nobr>
331
+ <data-order field="f_input_date" name="建表时间" :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
332
332
  </th>
333
333
  <th>
334
334
  <nobr>气表状态</nobr>
@@ -512,7 +512,7 @@
512
512
  isSingleUser: null,
513
513
  other:[],
514
514
  footer:[],
515
- model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
515
+ model: new PagedList('rs/sql/meterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_user_id,f_table_state desc'`}, {f_balance_amount: 0}),
516
516
  criteriaShow: false,
517
517
  orgCondtionStr: '',
518
518
 
@@ -520,6 +520,11 @@
520
520
  printshow: false,
521
521
  all: false,
522
522
  fields: {},
523
+ //排序
524
+ orderitem:'f_user_id,f_table_state desc',
525
+ orderFields: {
526
+ f_userinfo_id: 'no'
527
+ },
523
528
  thead: '',
524
529
  tfoot: '',
525
530
  initres: {
@@ -767,6 +772,24 @@
767
772
  })
768
773
  }
769
774
  },
775
+ sort (field, rule) {
776
+ // 将所有排序方式设为不排序,实现相互排斥
777
+ for (let key in this.orderFields) {
778
+ if (key === field) {
779
+ this.orderFields[key] = rule
780
+ } else {
781
+ this.orderFields[key] = 'no'
782
+ }
783
+ }
784
+ // 如果新规则不排序,还原为默认排序
785
+ if (rule === 'no') {
786
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
787
+ } else {
788
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
789
+ }
790
+
791
+ this.search()
792
+ },
770
793
  async getpcd(){
771
794
  let HttpReset = new HttpResetClass()
772
795
  console.log('开始获取区域')
@@ -840,7 +863,7 @@
840
863
  }
841
864
  this.updateParams()
842
865
  }
843
- },
866
+ }
844
867
  },
845
868
  computed: {
846
869
  authArr () {
@@ -876,7 +899,7 @@
876
899
  }
877
900
  },
878
901
  getCondition() {
879
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
902
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
880
903
  },
881
904
  getfield() {
882
905
  let data = {}
File without changes