manage-client 3.2.190 → 3.2.191

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,190 +1,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://47.93.217.125: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
- '/rs/logic/exportfile': {
28
- target: bendi
29
- },
30
- '/rs/sql/otherChargeQuery': {
31
- target: 'http://localhost:8080/'
32
- },
33
- '/rs/sql/BusinessType': {
34
- target: 'http://localhost:8080/'
35
- },
36
- '/rs/logic/getBatchOperaPro': {
37
- target: 'http://localhost:8080/'
38
- },
39
- '/rs/customExport/areaChargeExportExcel': {
40
- target: 'http://localhost:8080/'
41
- },
42
- '/files': {
43
- target: bendi
44
- },
45
- // 查找资源服务数据
46
- '/rs/search': {
47
- target: bendi
48
- },
49
- // 查找资源服务数据
50
- '/rs/logic/getLogin': {
51
- target: bendi
52
- },
53
- // 查找资源服务数据
54
- '/rs/logic/getInitData': {
55
- target: bendi
56
- },
57
- '/rs/logic/getSaleInitData': {
58
- target: bendi
59
- },
60
- // 用户登录服务地址
61
- '/rs/user': {
62
- target: bendi
63
- },
64
- '/rs/path/getParams': {
65
- target: bendi
66
- },
67
- '/rs/data': {
68
- target: bendi
69
- },
70
- '/rs/license': {
71
- target: bendi
72
- },
73
- '/rs/db': {
74
- target: bendi
75
- },
76
- '/excel': {
77
- target: bendi
78
- },
79
- '/rs/config': {
80
- target: bendi
81
- },
82
- '/rs/sql/getLicenseById': {
83
- target: bendi
84
- },
85
- '/rs/report': {
86
- target: bendi
87
- },
88
- '/rs/vue': {
89
- target: bendi
90
- },
91
- '/rs/file': {
92
- target: bendi
93
- },
94
- '/rs/logic/SumSettleFileImport': {
95
- target: 'http://127.0.0.1:8080'
96
- },
97
- '/rs': {
98
- target: bendi
99
- }
100
- }
101
-
102
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
103
- publicPath: config.output.publicPath,
104
- stats: {
105
- colors: true,
106
- chunks: false
107
- }
108
- })
109
-
110
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
111
- // force page reload when html-webpack-plugin template changes
112
- compiler.plugin('compilation', function (compilation) {
113
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
114
- hotMiddleware.publish({action: 'reload'})
115
- cb()
116
- })
117
- })
118
-
119
- // proxy api requests
120
- Object.keys(proxyTable).forEach(function (context) {
121
- var options = proxyTable[context]
122
- if (typeof options === 'string') {
123
- options = {target: options}
124
- }
125
- app.use(proxyMiddleware(context, options))
126
- })
127
-
128
- // handle fallback for HTML5 history API
129
- app.use(require('connect-history-api-fallback')())
130
- // app.use(function (req, res, next) {
131
- // res.header('Access-Control-Allow-Origin', '*')
132
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
133
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
134
- // res.header('X-Powered-By', '3,2,1')
135
- // res.header('Access-Control-Allow-Credentials', 'true')
136
- // res.header('Content-Type', 'application/json;charset=utf-8')
137
- // next()
138
- // })
139
-
140
- // serve webpack bundle output
141
- app.use(devMiddleware)
142
-
143
- // enable hot-reload and state-preserving
144
- // compilation error display
145
- app.use(hotMiddleware)
146
-
147
- // serve pure static assets
148
- app.use('/static', express.static('./static'))
149
-
150
- // app.all('/rs/*', function (req, res) {
151
- // proxy.web(req, res, {
152
- // target: 'http://127.0.0.1:8081/reports'
153
- // })
154
- // })
155
-
156
- // app.all('/rs/*', function (req, res) {
157
- // proxy.web(req, res, {
158
- // target: 'http://127.0.0.1:8081/ldap'
159
- // })
160
- // })
161
- // app.all('/excel/*', function (req, res) {
162
- // proxy.web(req, res, {
163
- // target: 'http://127.0.0.1:8081/charge'
164
- // })
165
- // })
166
-
167
- // app.all('/rs/*', function (req, res) {
168
- // proxy.web(req, res, {
169
- // target: 'http://127.0.0.1:82/charge'
170
- // })
171
- // })
172
-
173
- // app.all('/*', function (req, res) {
174
- // proxy.web(req, res, {
175
- // target: 'http://127.0.0.1:82'
176
- // })
177
- // })
178
- // app.all('/rs/user', function (req, res) {
179
- // proxy.web(req, res, {
180
- // target: 'http://127.0.0.1:82'
181
- // })
182
- // })
183
-
184
- module.exports = app.listen(8015, function (err) {
185
- if (err) {
186
- console.log(err)
187
- return
188
- }
189
- console.log('Listening at http://localhost:8085')
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://219.138.226.181:8401'
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
+ '/rs/logic/exportfile': {
28
+ target: bendi
29
+ },
30
+ '/rs/sql/otherChargeQuery': {
31
+ target: 'http://localhost:8080/'
32
+ },
33
+ '/rs/sql/BusinessType': {
34
+ target: 'http://localhost:8080/'
35
+ },
36
+ '/rs/logic/getBatchOperaPro': {
37
+ target: 'http://localhost:8080/'
38
+ },
39
+ '/rs/customExport/areaChargeExportExcel': {
40
+ target: 'http://localhost:8080/'
41
+ },
42
+ '/files': {
43
+ target: bendi
44
+ },
45
+ // 查找资源服务数据
46
+ '/rs/search': {
47
+ target: bendi
48
+ },
49
+ // 查找资源服务数据
50
+ '/rs/logic/getLogin': {
51
+ target: bendi
52
+ },
53
+ // 查找资源服务数据
54
+ '/rs/logic/getInitData': {
55
+ target: bendi
56
+ },
57
+ '/rs/logic/getSaleInitData': {
58
+ target: bendi
59
+ },
60
+ // 用户登录服务地址
61
+ '/rs/user': {
62
+ target: bendi
63
+ },
64
+ '/rs/path/getParams': {
65
+ target: bendi
66
+ },
67
+ '/rs/data': {
68
+ target: bendi
69
+ },
70
+ '/rs/license': {
71
+ target: bendi
72
+ },
73
+ '/rs/db': {
74
+ target: bendi
75
+ },
76
+ '/excel': {
77
+ target: bendi
78
+ },
79
+ '/rs/config': {
80
+ target: bendi
81
+ },
82
+ '/rs/sql/getLicenseById': {
83
+ target: bendi
84
+ },
85
+ '/rs/report': {
86
+ target: bendi
87
+ },
88
+ '/rs/vue': {
89
+ target: bendi
90
+ },
91
+ '/rs/file': {
92
+ target: bendi
93
+ },
94
+ '/rs/logic/SumSettleFileImport': {
95
+ target: 'http://127.0.0.1:8080'
96
+ },
97
+ '/rs': {
98
+ target: bendi
99
+ }
100
+ }
101
+
102
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
103
+ publicPath: config.output.publicPath,
104
+ stats: {
105
+ colors: true,
106
+ chunks: false
107
+ }
108
+ })
109
+
110
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
111
+ // force page reload when html-webpack-plugin template changes
112
+ compiler.plugin('compilation', function (compilation) {
113
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
114
+ hotMiddleware.publish({action: 'reload'})
115
+ cb()
116
+ })
117
+ })
118
+
119
+ // proxy api requests
120
+ Object.keys(proxyTable).forEach(function (context) {
121
+ var options = proxyTable[context]
122
+ if (typeof options === 'string') {
123
+ options = {target: options}
124
+ }
125
+ app.use(proxyMiddleware(context, options))
126
+ })
127
+
128
+ // handle fallback for HTML5 history API
129
+ app.use(require('connect-history-api-fallback')())
130
+ // app.use(function (req, res, next) {
131
+ // res.header('Access-Control-Allow-Origin', '*')
132
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
133
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
134
+ // res.header('X-Powered-By', '3,2,1')
135
+ // res.header('Access-Control-Allow-Credentials', 'true')
136
+ // res.header('Content-Type', 'application/json;charset=utf-8')
137
+ // next()
138
+ // })
139
+
140
+ // serve webpack bundle output
141
+ app.use(devMiddleware)
142
+
143
+ // enable hot-reload and state-preserving
144
+ // compilation error display
145
+ app.use(hotMiddleware)
146
+
147
+ // serve pure static assets
148
+ app.use('/static', express.static('./static'))
149
+
150
+ // app.all('/rs/*', function (req, res) {
151
+ // proxy.web(req, res, {
152
+ // target: 'http://127.0.0.1:8081/reports'
153
+ // })
154
+ // })
155
+
156
+ // app.all('/rs/*', function (req, res) {
157
+ // proxy.web(req, res, {
158
+ // target: 'http://127.0.0.1:8081/ldap'
159
+ // })
160
+ // })
161
+ // app.all('/excel/*', function (req, res) {
162
+ // proxy.web(req, res, {
163
+ // target: 'http://127.0.0.1:8081/charge'
164
+ // })
165
+ // })
166
+
167
+ // app.all('/rs/*', function (req, res) {
168
+ // proxy.web(req, res, {
169
+ // target: 'http://127.0.0.1:82/charge'
170
+ // })
171
+ // })
172
+
173
+ // app.all('/*', function (req, res) {
174
+ // proxy.web(req, res, {
175
+ // target: 'http://127.0.0.1:82'
176
+ // })
177
+ // })
178
+ // app.all('/rs/user', function (req, res) {
179
+ // proxy.web(req, res, {
180
+ // target: 'http://127.0.0.1:82'
181
+ // })
182
+ // })
183
+
184
+ module.exports = app.listen(8015, function (err) {
185
+ if (err) {
186
+ console.log(err)
187
+ return
188
+ }
189
+ console.log('Listening at http://localhost:8085')
190
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.190",
3
+ "version": "3.2.191",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -67,12 +67,12 @@
67
67
  close-on-select></v-select>
68
68
  </div>
69
69
  <!--<div class="col-sm-2 form-group">-->
70
- <!--<label class="font_normal_body">收费状态</label>-->
71
- <!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
72
- <!--v-model="$parent.$parent.f_state"-->
73
- <!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
74
- <!--condition="f_state in {}"-->
75
- <!--close-on-select></v-select>-->
70
+ <!--<label class="font_normal_body">收费状态</label>-->
71
+ <!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
72
+ <!--v-model="$parent.$parent.f_state"-->
73
+ <!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
74
+ <!--condition="f_state in {}"-->
75
+ <!--close-on-select></v-select>-->
76
76
  <!--</div>-->
77
77
  </div>
78
78
  </div>
@@ -124,114 +124,114 @@
124
124
  </template>
125
125
 
126
126
  <script>
127
- import { DataModel } from 'vue-client'
128
- import co from 'co'
127
+ import { DataModel } from 'vue-client'
128
+ import co from 'co'
129
129
 
130
- export default {
131
- title: '收费结账报表',
132
- props: ['data'],
133
- data () {
134
- return {
135
- printTime: this.$login.toStandardTimeString(),
136
- depresid: [],
137
- userresid: [],
138
- f_orgid: this.$login.f.orgid,
139
- f_depid: this.$login.f.depids,
140
- // f_operatorid: this.$login.f.id,
141
- operatorid: [],
142
- depid: [],
143
- orgname: '',
144
- depname: '',
145
- criteriaShow: false,
146
- operatorname: '',
147
- orgCondtionStr: '1=1',
148
- f_user_type: '',
149
- f_state:['有效'],
150
- model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
151
- f_orgid: 'this.model.f_orgid'}),
152
- reportStr: null,
153
- resshow:['company','department','operator'],
154
- spans: 0,
155
- initres: {
156
- org: [this.$login.f.orgid],
157
- dep: [],
158
- user: []
159
- }
130
+ export default {
131
+ title: '收费结账报表',
132
+ props: ['data'],
133
+ data () {
134
+ return {
135
+ printTime: this.$login.toStandardTimeString(),
136
+ depresid: [],
137
+ userresid: [],
138
+ f_orgid: this.$login.f.orgid,
139
+ f_depid: this.$login.f.depids,
140
+ // f_operatorid: this.$login.f.id,
141
+ operatorid: [],
142
+ depid: [],
143
+ orgname: '',
144
+ depname: '',
145
+ criteriaShow: false,
146
+ operatorname: '',
147
+ orgCondtionStr: '1=1',
148
+ f_user_type: '',
149
+ f_state:['有效'],
150
+ model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
151
+ f_orgid: 'this.model.f_orgid'}),
152
+ reportStr: null,
153
+ resshow:['company','department','operator'],
154
+ spans: 0,
155
+ initres: {
156
+ org: [this.$login.f.orgid],
157
+ dep: [],
158
+ user: []
160
159
  }
160
+ }
161
+ },
162
+ ready () {
163
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
164
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
165
+ console.log(this.$login.f)
166
+ },
167
+ methods: {
168
+ searchData () {
169
+ this.$refs.paged.$refs.criteria.search()
161
170
  },
162
- ready () {
163
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
164
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
165
- console.log(this.$login.f)
171
+ selfSearch (args) {
172
+ this.printTime = this.$login.toStandardTimeString()
173
+ let orgcondition = '1=1'
174
+ let orgstr = this.orgCondtionStr
175
+ orgcondition = orgcondition + orgstr
176
+ console.log('23231312321:',this.f_user_type)
177
+ if(this.f_user_type && this.f_user_type[0]) {
178
+ orgcondition += ` and f_user_type = '${ this.f_user_type} '`
179
+ }
180
+ /* if (this.f_orgid && this.f_orgid[0]) {
181
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
182
+ }
183
+ if (this.f_depid && this.f_depid[0]) {
184
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
185
+ }
186
+ if(this.f_operatorid && this.f_operatorid[0]) {
187
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
188
+ }*/
189
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
190
+ this.$refs.paged.search(args)
166
191
  },
167
- methods: {
168
- searchData () {
169
- this.$refs.paged.$refs.criteria.search()
170
- },
171
- selfSearch (args) {
172
- this.printTime = this.$login.toStandardTimeString()
173
- let orgcondition = '1=1'
174
- let orgstr = this.orgCondtionStr
175
- orgcondition = orgcondition + orgstr
176
- console.log('23231312321:',this.f_user_type)
177
- if(this.f_user_type && this.f_user_type[0]) {
178
- orgcondition += ` and f_user_type = '${ this.f_user_type} '`
179
- }
180
- /* if (this.f_orgid && this.f_orgid[0]) {
181
- orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
182
- }
183
- if (this.f_depid && this.f_depid[0]) {
184
- orgcondition += ' and f_depid in (' + this.f_depid + ')'
185
- }
186
- if(this.f_operatorid && this.f_operatorid[0]) {
187
- orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
188
- }*/
189
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
190
- this.$refs.paged.search(args)
191
- },
192
192
 
193
- hidden() {
194
- this.criteriaShow = !this.criteriaShow
195
- },
196
- getRes (condition, obj) {
197
- this.orgCondtionStr = condition
198
- this.orgname = obj.orgnames[0]
199
- this.depname = obj.depnames[0]
200
- },
201
- getdep (obj, val) {
202
- this.depname = val[0]
203
- this.userresid = obj
204
- this.f_depid = obj
205
- },
206
- getuser ( obj, val) {
207
- this.operatorname = val[0]
208
- this.f_operatorid = obj
209
- }
193
+ hidden() {
194
+ this.criteriaShow = !this.criteriaShow
195
+ },
196
+ getRes (condition, obj) {
197
+ this.orgCondtionStr = condition
198
+ this.orgname = obj.orgnames[0]
199
+ this.depname = obj.depnames[0]
210
200
  },
211
- watch: {
212
- 'model.data' (val) {
213
- let len=0
214
- let a=val.split('</tr>')
215
- for(let i=0;i<a.length;i++){
216
- if(a[i].split('</td>').length-1>len){
217
- len=a[i].split('</td>').length-1
218
- }
201
+ getdep (obj, val) {
202
+ this.depname = val[0]
203
+ this.userresid = obj
204
+ this.f_depid = obj
205
+ },
206
+ getuser ( obj, val) {
207
+ this.operatorname = val[0]
208
+ this.f_operatorid = obj
209
+ }
210
+ },
211
+ watch: {
212
+ 'model.data' (val) {
213
+ let len=0
214
+ let a=val.split('</tr>')
215
+ for(let i=0;i<a.length;i++){
216
+ if(a[i].split('</td>').length-1>len){
217
+ len=a[i].split('</td>').length-1
219
218
  }
220
- this.spans = len
221
219
  }
220
+ this.spans = len
221
+ }
222
+ },
223
+ computed: {
224
+ charge_state() {
225
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
222
226
  },
223
- computed: {
224
- charge_state() {
225
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
226
- },
227
- user_type () {
228
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
229
- }
227
+ user_type () {
228
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
230
229
  }
231
230
  }
231
+ }
232
232
  </script>
233
233
  <style scoped>
234
- .noborder{
235
- border: none;
236
- }
234
+ .noborder{
235
+ border: none;
236
+ }
237
237
  </style>
@@ -0,0 +1,290 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
+ <div class="row">
7
+ <div class="col-sm-2 form-group" >
8
+ <label class="font_normal_body" for="startDate">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ :disabled-days-of-Week="[]"
13
+ :format="'yyyy-MM-dd HH:mm:ss'"
14
+ :show-reset-button="reset">
15
+ </datepicker>
16
+ </div>
17
+ <div class="col-sm-2 form-group" >
18
+ <label class="font_normal_body" for="endDate">结束日期:</label>
19
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
20
+ v-model="model.endDate"
21
+ :value.sync="model.endDate"
22
+ :disabled-days-of-Week="[]"
23
+ :format="'yyyy-MM-dd HH:mm:ss'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div><!--
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ is-mul="false"
35
+ @res-select="$parent.$parent.getdep"
36
+ :parentresid="$parent.$parent.depresid"
37
+ :initresid='$parent.$parent.depid'>
38
+ </res-select>
39
+
40
+ </div>
41
+ <div class="col-sm-2 form-group">
42
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
43
+ <res-select restype='user'
44
+ is-mul="false"
45
+ @res-select="$parent.$parent.getuser"
46
+ :parentresid="$parent.$parent.userresid"
47
+ :initresid='$parent.$parent.operatorid'>
48
+ </res-select>
49
+ </div>
50
+ -->
51
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
52
+ </div>
53
+ <div class="col-sm-2 form-group">
54
+ <label class="font_normal_body">用户类型</label>
55
+ <v-select :value.sync="$parent.$parent.f_user_type"
56
+ v-model="$parent.$parent.f_user_type"
57
+ :options='$parent.$parent.user_type' placeholder='请选择'
58
+ condition="f_user_type in '{}'"
59
+ close-on-select></v-select>
60
+ </div>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
63
+ <v-select :value.sync="model.f_payment" multiple
64
+ v-model="model.f_payment"
65
+ :options='$parent.$parent.payment' placeholder='请选择'
66
+ condition="f_payment in {}"
67
+ close-on-select></v-select>
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">气表类型</label>
71
+ <v-select :value.sync="model.f_meter_type" multiple
72
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
73
+ condition="f_meter_type in {}"
74
+ close-on-select></v-select>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">气表品牌</label>
78
+ <v-select :value.sync="model.f_meter_brand" multiple
79
+ v-model="model.f_meter_brand"
80
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
81
+ condition="f_meter_brand in {}"
82
+ close-on-select></v-select>
83
+ </div>
84
+ <div class="span" style = "float:right;">
85
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
86
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
87
+ <report-excel id='gasprice'></report-excel>
88
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
89
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
90
+ </div>
91
+ <div class="row" v-show="$parent.$parent.criteriaShow">
92
+
93
+ <!--<div class="col-sm-2 form-group">-->
94
+ <!--<label class="font_normal_body">收费状态</label>-->
95
+ <!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
96
+ <!--v-model="$parent.$parent.f_state"-->
97
+ <!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
98
+ <!--condition="f_state in {}"-->
99
+ <!--close-on-select></v-select>-->
100
+ <!--</div>-->
101
+ </div>
102
+ </div>
103
+ </criteria>
104
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
105
+ <table class='tableprint' style="margin: 0px auto">
106
+ <thead>
107
+ <tr>
108
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
109
+ <h3 style="text-align: center">收费结账报表</h3>
110
+ </th>
111
+ </tr>
112
+ <tr>
113
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
114
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
115
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
116
+ <!--打印时间:{{{$parent.printTime}}}-->
117
+ 打印时间:{{$parent.printTime}}
118
+ <!--收费员:{{// $parent.operatorname}}-->
119
+ </th>
120
+ </tr>
121
+ <tr>
122
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
123
+ <div>
124
+ <span yle="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
125
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
126
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
127
+ </div>
128
+ </th>
129
+ </tr>
130
+ </thead>
131
+ <tr>
132
+ <td :colspan='$parent.spans' class="noborder">
133
+ {{{ model.data.substring(26,model.data.length-8) }}}
134
+ </td>
135
+ </tr>
136
+ <tfoot>
137
+ <tr style="text-align: left">
138
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
139
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
140
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
141
+ </tr>
142
+ </tfoot>
143
+ </table>
144
+ {{{ $parent.reportStr}}}
145
+ </div>
146
+ </criteria-paged>
147
+ </div>
148
+ </template>
149
+
150
+ <script>
151
+ import { DataModel } from 'vue-client'
152
+ import co from 'co'
153
+
154
+ let readySomething = async function (self) {
155
+ await self.$MagLoadParams.loadParam()
156
+ self.initParams()
157
+ }
158
+ export default {
159
+ title: '收费结账报表',
160
+ props: ['data'],
161
+ data () {
162
+ return {
163
+ printTime: this.$login.toStandardTimeString(),
164
+ depresid: [],
165
+ userresid: [],
166
+ f_orgid: this.$login.f.orgid,
167
+ f_depid: this.$login.f.depids,
168
+ // f_operatorid: this.$login.f.id,
169
+ operatorid: [],
170
+ depid: [],
171
+ orgname: '',
172
+ depname: '',
173
+ criteriaShow: false,
174
+ operatorname: '',
175
+ orgCondtionStr: '1=1',
176
+ f_user_type: '',
177
+ f_state:['有效'],
178
+ model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
179
+ f_orgid: 'this.model.f_orgid'}),
180
+ reportStr: null,
181
+ resshow:['company','department','operator'],
182
+ spans: 0,
183
+ user_type:[],
184
+ meterbrands: [],
185
+ initres: {
186
+ org: [this.$login.f.orgid],
187
+ dep: [],
188
+ user: []
189
+ }
190
+ }
191
+ },
192
+ ready () {
193
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
194
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
195
+ console.log(this.$login.f)
196
+ readySomething(this).then(() => {
197
+ this.$emit('ready')
198
+ }).catch((error) => {
199
+ this.$emit('error', error)
200
+ })
201
+ },
202
+ methods: {
203
+ searchData () {
204
+ this.$refs.paged.$refs.criteria.search()
205
+ },
206
+ initParams() {
207
+ // 初始化气表品牌
208
+ let brandArr = []
209
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
210
+ let temp = {}
211
+ temp.label = item.label
212
+ temp.value = item.value.f_meter_brand
213
+ brandArr.push(temp)
214
+ })
215
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
216
+
217
+ },
218
+ selfSearch (args) {
219
+ this.printTime = this.$login.toStandardTimeString()
220
+ let orgcondition = '1=1'
221
+ let orgstr = this.orgCondtionStr
222
+ orgcondition = orgcondition + orgstr
223
+ console.log('23231312321:',this.f_user_type)
224
+ if(this.f_user_type && this.f_user_type[0]) {
225
+ orgcondition += ` and f_user_type = '${ this.f_user_type} '`
226
+ }
227
+ /* if (this.f_orgid && this.f_orgid[0]) {
228
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
229
+ }
230
+ if (this.f_depid && this.f_depid[0]) {
231
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
232
+ }
233
+ if(this.f_operatorid && this.f_operatorid[0]) {
234
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
235
+ }*/
236
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
237
+ this.$refs.paged.search(args)
238
+ },
239
+
240
+ hidden() {
241
+ this.criteriaShow = !this.criteriaShow
242
+ },
243
+ getRes (condition, obj) {
244
+ this.orgCondtionStr = condition
245
+ this.orgname = obj.orgnames[0]
246
+ this.depname = obj.depnames[0]
247
+ },
248
+ getdep (obj, val) {
249
+ this.depname = val[0]
250
+ this.userresid = obj
251
+ this.f_depid = obj
252
+ },
253
+ getuser ( obj, val) {
254
+ this.operatorname = val[0]
255
+ this.f_operatorid = obj
256
+ }
257
+ },
258
+ watch: {
259
+ 'model.data' (val) {
260
+ let len=0
261
+ let a=val.split('</tr>')
262
+ for(let i=0;i<a.length;i++){
263
+ if(a[i].split('</td>').length-1>len){
264
+ len=a[i].split('</td>').length-1
265
+ }
266
+ }
267
+ this.spans = len
268
+ }
269
+ },
270
+ computed: {
271
+ payment() {
272
+ return [...this.$appdata.getParam('付款方式查询')]
273
+ },
274
+ user_type () {
275
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
276
+ },
277
+ metertypes() {
278
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
279
+ }
280
+ // meterbrands() {
281
+ // return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表品牌')]
282
+ // }
283
+ }
284
+ }
285
+ </script>
286
+ <style scoped>
287
+ .noborder{
288
+ border: none;
289
+ }
290
+ </style>
@@ -80,7 +80,7 @@
80
80
  </div>
81
81
  <div class="col-sm-2 form-group">
82
82
  <label style="width:35%" class="font_normal_body">气表品牌</label>
83
- <v-select :value.sync="model.f_balance_amount"
83
+ <v-select :value.sync="model.f_meter_brand"
84
84
  v-model="model.f_meter_brand"
85
85
  :options='$parent.$parent.meterbrands' placeholder='请选择'
86
86
  condition="f_meter_brand = '{}'"
@@ -31,6 +31,15 @@
31
31
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
32
32
  condition="ss.f_address like '%{}%'" v-next-el='f_address' v-el:f_address>
33
33
  </div>
34
+
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">用户类型</label>
37
+ <v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
38
+ :options='$parent.$parent.usertypes' placeholder='用户类型'
39
+ style="width:60%"
40
+ close-on-select
41
+ condition="f_user_type = '{}'"></v-select>
42
+ </div>
34
43
  <div class="span" style="float:right;margin-top:10px">
35
44
  <button class="button_search button_spacing" @click="search()">查询</button>
36
45
  <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
@@ -174,6 +183,7 @@
174
183
  <tr>
175
184
  <th><nobr>客户编号</nobr></th>
176
185
  <th><nobr>客户名称</nobr></th>
186
+ <th><nobr>用户类型</nobr></th>
177
187
  <th><nobr>小区</nobr></th>
178
188
  <th><nobr>地址</nobr></th>
179
189
  <th><nobr>电话</nobr></th>
@@ -208,6 +218,7 @@
208
218
  <tr >
209
219
  <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
210
220
  <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
221
+ <td style="text-align: left;"><nobr>{{row.f_user_type}}</nobr></td>
211
222
  <td style="text-align: left;"><nobr>{{row.f_residential_area}}</nobr></td>
212
223
  <td style="text-align: left;"><nobr>{{row.f_address}}</nobr></td>
213
224
  <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
package/src/main.js CHANGED
@@ -1,66 +1,66 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
-
5
- // import { sale } from 'sale-client'
6
- import { system } from 'system-clients'
7
- import { ldap } from 'ldap-clients'
8
- import saleManage from './saleManage'
9
- import webmeterManage from './webmeterManage'
10
- import reportManage from './reportManage'
11
- import newmanage from './newmanage'
12
- import ManageHome from './ManageHome'
13
- import echarts from 'echarts'
14
- import AMap from 'vue-amap'
15
-
16
- Vue.config.silent = true
17
- // Vue.mmType = 'AES'
18
-
19
- Vue.use(AMap);
20
-
21
- // 初始化vue-amap
22
- AMap.initAMapApiLoader({
23
- // 高德key
24
- key: '3cec9ae8e2349207f7ac29279e3f4abe',
25
- // 插件集合 (插件按需引入)
26
- plugin: [
27
- "AMap.Autocomplete", //输入提示插件
28
- "AMap.PlaceSearch", //POI搜索插件
29
- "AMap.Scale", //右下角缩略图插件 比例尺
30
- "AMap.OverView", //地图鹰眼插件
31
- "AMap.ToolBar", //地图工具条0
32
- "AMap.MapType", //类别切换控件,实现默认图层与卫星图、实施交通图层之间切换的控制
33
- "AMap.PolyEditor", //编辑 折线多,边形
34
- "AMap.CircleEditor", //圆形编辑器插件
35
- "AMap.Geolocation" //定位控件,用来获取和展示用户主机所在的经纬度位置
36
- ],
37
- uiVersion: "1.0"
38
- });
39
- /** **************************通用组件******************************/
40
-
41
- Vue.prototype.$echarts = echarts
42
- all()
43
- // sale()
44
- ldap()
45
- system(false)
46
-
47
- saleManage("zhongyi")
48
- webmeterManage()
49
- ManageHome()
50
- newmanage()
51
- reportManage()
52
- require('system-clients/src/styles/less/bootstrap.less')
53
- require('./components/qinhua/Style/qinhuaStyle.less')
54
- // require('./bootstrap/less/manageStyle/manageChile.less')
55
- // require('./bootstrap/less/manageStyle/safeStyle.less')
56
-
57
- //大屏展示要放开的样式
58
- // require('system-clients/src/styles/less/manageStyle/manageChile.less')
59
- // require('system-clients/src/styles/less/manageStyle/safeStyle.less')
60
- // require('system-clients/src/styles/less/manageStyle/manageStyle.less')
61
-
62
- new Vue({
63
- el: 'body',
64
- components: { App }
65
- })
66
-
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+
5
+ // import { sale } from 'sale-client'
6
+ import { system } from 'system-clients'
7
+ import { ldap } from 'ldap-clients'
8
+ import saleManage from './saleManage'
9
+ import webmeterManage from './webmeterManage'
10
+ import reportManage from './reportManage'
11
+ import newmanage from './newmanage'
12
+ import ManageHome from './ManageHome'
13
+ import echarts from 'echarts'
14
+ import AMap from 'vue-amap'
15
+
16
+ Vue.config.silent = true
17
+ // Vue.mmType = 'AES'
18
+
19
+ Vue.use(AMap);
20
+
21
+ // 初始化vue-amap
22
+ AMap.initAMapApiLoader({
23
+ // 高德key
24
+ key: '3cec9ae8e2349207f7ac29279e3f4abe',
25
+ // 插件集合 (插件按需引入)
26
+ plugin: [
27
+ "AMap.Autocomplete", //输入提示插件
28
+ "AMap.PlaceSearch", //POI搜索插件
29
+ "AMap.Scale", //右下角缩略图插件 比例尺
30
+ "AMap.OverView", //地图鹰眼插件
31
+ "AMap.ToolBar", //地图工具条0
32
+ "AMap.MapType", //类别切换控件,实现默认图层与卫星图、实施交通图层之间切换的控制
33
+ "AMap.PolyEditor", //编辑 折线多,边形
34
+ "AMap.CircleEditor", //圆形编辑器插件
35
+ "AMap.Geolocation" //定位控件,用来获取和展示用户主机所在的经纬度位置
36
+ ],
37
+ uiVersion: "1.0"
38
+ });
39
+ /** **************************通用组件******************************/
40
+
41
+ Vue.prototype.$echarts = echarts
42
+ all()
43
+ // sale()
44
+ ldap()
45
+ system(false)
46
+
47
+ saleManage("tongchuan")
48
+ webmeterManage()
49
+ ManageHome()
50
+ newmanage()
51
+ reportManage()
52
+ require('system-clients/src/styles/less/bootstrap.less')
53
+ require('./components/qinhua/Style/qinhuaStyle.less')
54
+ // require('./bootstrap/less/manageStyle/manageChile.less')
55
+ // require('./bootstrap/less/manageStyle/safeStyle.less')
56
+
57
+ //大屏展示要放开的样式
58
+ // require('system-clients/src/styles/less/manageStyle/manageChile.less')
59
+ // require('system-clients/src/styles/less/manageStyle/safeStyle.less')
60
+ // require('system-clients/src/styles/less/manageStyle/manageStyle.less')
61
+
62
+ new Vue({
63
+ el: 'body',
64
+ components: { App }
65
+ })
66
+
@@ -660,6 +660,10 @@ export default function (filiale) {
660
660
  Vue.component('monthm-stair-hunum', (resolve) => {
661
661
  require(['./components/SellReport/MonthStairHunum'], resolve)
662
662
  })
663
+ // 收费结账报表 多查询条件(用户类型,付款方式,气表类型,气表品牌)
664
+ Vue.component('manage-bus-summarys', (resolve) => {
665
+ require(['./components/SellReport/ManageBusSummarys'], resolve)
666
+ })
663
667
  // 物联网日用气报表(户数)
664
668
  Vue.component('day-stair-hunum', (resolve) => {
665
669
  require(['./components/SellReport/DayStairMoneyHunum'], resolve)