sale-client 3.4.179-2 → 3.4.181

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,160 +1,160 @@
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://121.36.106.17:8400/',bendi1 = 'http://121.36.106.17:8400/'
14
- // 公司测试服务
15
- var fuwu = 'http://121.36.106.17:8400'
16
- //铜川正式
17
- // var fuwu = 'http://61.134.55.234:9999/'
18
- //铜川测试
19
- // var fuwu = 'http://61.134.55.234:9999/'
20
- // var fuwu = 'http://60.222.250.39:8300/'
21
- //韶关
22
- // var fuwu = 'http://119.146.1.106:8300/'
23
- // 巩义测试服务
24
- // var fuwu = 'http://192.168.0.227:8400'
25
- // 燎原测试服务
26
- // var fuwu = 'http://121.41.19.238:8400 '
27
- // var fuwu = 'http://121.41.19.238:9001/'
28
-
29
- // var fuwu = 'http://139.214.92.34:8301/'
30
-
31
- var proxyTable = {
32
- '/rs/logic/saleExport': {
33
- target: fuwu
34
- },
35
- '/rs/logic/saleGetExportProgress': {
36
- target: fuwu
37
- },
38
- '/files': {
39
- target: fuwu
40
- },
41
- // 查找资源服务数据
42
- '/rs/search': {
43
- target: fuwu
44
- },
45
- // 查找资源服务数据
46
- '/rs/logic/getLogin': {
47
- target: fuwu
48
- },
49
- // 查找资源服务数据
50
- '/rs/logic/getInitData': {
51
- target: fuwu
52
- },
53
- '/rs/logic/getSaleInitData': {
54
- target: fuwu
55
- },
56
- '/invoice':{
57
- target: fuwu
58
- },
59
- // 用户登录服务地址
60
- '/rs/user': {
61
- target: fuwu
62
- },
63
- '/rs/path/getParams': {
64
- target: fuwu
65
- },
66
- '/rs/data': {
67
- target: fuwu
68
- },
69
- '/rs/license': {
70
- target: fuwu
71
- },
72
- '/rs/db': {
73
- target: fuwu
74
- },
75
- '/excel': {
76
- target: fuwu
77
- },
78
- '/rs/config': {
79
- target: fuwu
80
- },
81
- '/rs/sql/getLicenseById': {
82
- target: fuwu
83
- },
84
- '/rs/sql/manage_getarealist': {
85
- target: fuwu
86
- },
87
- '/rs/sql/manage_getstreetlist': {
88
- target: fuwu
89
- },
90
- '/rs/report': {
91
- target: 'http://121.36.106.17:8400/'
92
- },
93
- '/rs/vue': {
94
- target: fuwu
95
- },
96
- '/webmeter': {
97
- target: 'http://192.168.50.4:8450'
98
- },
99
- '/rs': {
100
- // target: 'http://192.168.30.63:8081/'
101
- // target: 'http://121.36.106.17:8400/'
102
- target: fuwu
103
- }
104
- }
105
-
106
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
107
- publicPath: config.output.publicPath,
108
- stats: {
109
- colors: true,
110
- chunks: false
111
- }
112
- })
113
-
114
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
115
- // force page reload when html-webpack-plugin template changes
116
- compiler.plugin('compilation', function (compilation) {
117
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
118
- hotMiddleware.publish({action: 'reload'})
119
- cb()
120
- })
121
- })
122
-
123
- // proxy api requests
124
- Object.keys(proxyTable).forEach(function (context) {
125
- var options = proxyTable[context]
126
- if (typeof options === 'string') {
127
- options = {target: options}
128
- }
129
- app.use(proxyMiddleware(context, options))
130
- })
131
-
132
- // handle fallback for HTML5 history API
133
- app.use(require('connect-history-api-fallback')())
134
- // app.use(function (req, res, next) {
135
- // res.header('Access-Control-Allow-Origin', '*')
136
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
137
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
138
- // res.header('X-Powered-By', '3,2,1')
139
- // res.header('Access-Control-Allow-Credentials', 'true')
140
- // res.header('Content-Type', 'application/json;charset=utf-8')
141
- // next()
142
- // })
143
-
144
- // serve webpack bundle output
145
- app.use(devMiddleware)
146
-
147
- // enable hot-reload and state-preserving
148
- // compilation error display
149
- app.use(hotMiddleware)
150
-
151
- // serve pure static assets
152
- app.use('/static', express.static('./static'))
153
-
154
- module.exports = app.listen(8089, function (err) {
155
- if (err) {
156
- console.log(err)
157
- return
158
- }
159
- console.log('Listening at http://localhost:8089')
160
- })
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://121.36.106.17:8400/',bendi1 = 'http://121.36.106.17:8400/'
14
+ // 公司测试服务
15
+ var fuwu = 'http://121.36.106.17:8400/'
16
+ //铜川正式
17
+ // var fuwu = 'http://61.134.55.234:9999/'
18
+ //铜川测试
19
+ // var fuwu = 'http://61.134.55.234:9999/'
20
+ // var fuwu = 'http://60.222.250.39:8300/'
21
+ //韶关
22
+ // var fuwu = 'http://119.146.1.106:8300/'
23
+ // 巩义测试服务
24
+ // var fuwu = 'http://192.168.0.227:8400'
25
+ // 燎原测试服务
26
+ // var fuwu = 'http://121.41.19.238:8400 '
27
+ // var fuwu = 'http://121.41.19.238:9001/'
28
+
29
+ // var fuwu = 'http://139.214.92.34:8301/'
30
+
31
+ var proxyTable = {
32
+ '/rs/logic/saleExport': {
33
+ target: fuwu
34
+ },
35
+ '/rs/logic/saleGetExportProgress': {
36
+ target: fuwu
37
+ },
38
+ '/files': {
39
+ target: fuwu
40
+ },
41
+ // 查找资源服务数据
42
+ '/rs/search': {
43
+ target: fuwu
44
+ },
45
+ // 查找资源服务数据
46
+ '/rs/logic/getLogin': {
47
+ target: fuwu
48
+ },
49
+ // 查找资源服务数据
50
+ '/rs/logic/getInitData': {
51
+ target: fuwu
52
+ },
53
+ '/rs/logic/getSaleInitData': {
54
+ target: fuwu
55
+ },
56
+ '/invoice':{
57
+ target: fuwu
58
+ },
59
+ // 用户登录服务地址
60
+ '/rs/user': {
61
+ target: fuwu
62
+ },
63
+ '/rs/path/getParams': {
64
+ target: fuwu
65
+ },
66
+ '/rs/data': {
67
+ target: fuwu
68
+ },
69
+ '/rs/license': {
70
+ target: fuwu
71
+ },
72
+ '/rs/db': {
73
+ target: fuwu
74
+ },
75
+ '/excel': {
76
+ target: fuwu
77
+ },
78
+ '/rs/config': {
79
+ target: fuwu
80
+ },
81
+ '/rs/sql/getLicenseById': {
82
+ target: fuwu
83
+ },
84
+ '/rs/sql/manage_getarealist': {
85
+ target: fuwu
86
+ },
87
+ '/rs/sql/manage_getstreetlist': {
88
+ target: fuwu
89
+ },
90
+ '/rs/report': {
91
+ target: 'http://121.36.106.17:8400/'
92
+ },
93
+ '/rs/vue': {
94
+ target: fuwu
95
+ },
96
+ '/webmeter': {
97
+ target: 'http://192.168.50.4:8450'
98
+ },
99
+ '/rs': {
100
+ // target: 'http://192.168.30.63:8081/'
101
+ target: 'http://121.36.106.17:8400/'
102
+ // target:fuwu
103
+ }
104
+ }
105
+
106
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
107
+ publicPath: config.output.publicPath,
108
+ stats: {
109
+ colors: true,
110
+ chunks: false
111
+ }
112
+ })
113
+
114
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
115
+ // force page reload when html-webpack-plugin template changes
116
+ compiler.plugin('compilation', function (compilation) {
117
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
118
+ hotMiddleware.publish({action: 'reload'})
119
+ cb()
120
+ })
121
+ })
122
+
123
+ // proxy api requests
124
+ Object.keys(proxyTable).forEach(function (context) {
125
+ var options = proxyTable[context]
126
+ if (typeof options === 'string') {
127
+ options = {target: options}
128
+ }
129
+ app.use(proxyMiddleware(context, options))
130
+ })
131
+
132
+ // handle fallback for HTML5 history API
133
+ app.use(require('connect-history-api-fallback')())
134
+ // app.use(function (req, res, next) {
135
+ // res.header('Access-Control-Allow-Origin', '*')
136
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
137
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
138
+ // res.header('X-Powered-By', '3,2,1')
139
+ // res.header('Access-Control-Allow-Credentials', 'true')
140
+ // res.header('Content-Type', 'application/json;charset=utf-8')
141
+ // next()
142
+ // })
143
+
144
+ // serve webpack bundle output
145
+ app.use(devMiddleware)
146
+
147
+ // enable hot-reload and state-preserving
148
+ // compilation error display
149
+ app.use(hotMiddleware)
150
+
151
+ // serve pure static assets
152
+ app.use('/static', express.static('./static'))
153
+
154
+ module.exports = app.listen(8089, function (err) {
155
+ if (err) {
156
+ console.log(err)
157
+ return
158
+ }
159
+ console.log('Listening at http://localhost:8089')
160
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.4.179-2",
3
+ "version": "3.4.181",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -101,7 +101,7 @@
101
101
  </div>
102
102
  <div class="col-sm-4 form-group" v-show="row.gasbrand.length > 0 && row.gasbrand[0].f_meter_type == '物联网表' && row.gasbrand[0].f_hascard == '是'">
103
103
  <label class="font_normal_body" title="开户方式">开户方式</label>
104
- <v-select :value.sync="row.f_open_way" :options='openWay' value-single placeholder='开户方式' close-on-select v-if="row.f_userfiles_id"
104
+ <v-select :value.sync="row.f_open_way" :options='openWay' value-single placeholder='开户方式' close-on-select v-if="row.f_userfiles_id && row.f_open_way"
105
105
  search v-model='row.f_open_way' :disabled="true"></v-select>
106
106
  <v-select :value.sync="row.f_open_way" :options='openWay' value-single placeholder='开户方式' close-on-select v-else
107
107
  search v-model='row.f_open_way' :disabled="false"></v-select>
@@ -265,6 +265,7 @@
265
265
  self.model.f_collection = (self.model.f_collection - 0) + (val.f_collection - 0)
266
266
  ids.push(val.id)
267
267
  })
268
+ self.model.f_collection = self.model.f_collection.toFixed(2) - 0
268
269
  ids = self.$login.convertToIn(ids)
269
270
  self.model.f_print = [res.data[0].f_bill_style]
270
271
  self.model.f_payment = [res.data[0].f_payment]
@@ -165,7 +165,7 @@
165
165
  if (true) {
166
166
  if (self.model.f_print != '电子发票') {
167
167
  if (self.config.hasBillManage) {
168
- self.model.id = resid
168
+ self.model.id = resid.data
169
169
  self.model.f_bill_type = '其他费用'
170
170
  self.model.f_bill_style = self.model.f_print[0]
171
171
  self.print = true
@@ -0,0 +1,100 @@
1
+ <template>
2
+ <div style="height:100%">
3
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
4
+ <template partial='head' >
5
+ <tr>
6
+ <th><nobr>序号</nobr></th>
7
+
8
+ <th><nobr>气量</nobr></th>
9
+ <th><nobr>应交</nobr></th>
10
+ <th><nobr>付款方式</nobr></th>
11
+ <th><nobr>上期结余</nobr></th>
12
+ <th><nobr>收款</nobr></th>
13
+ <th><nobr>本期结余</nobr></th>
14
+ <th><nobr>操作类型</nobr></th>
15
+ <th><nobr>操作时间 </nobr></th>
16
+ <th><nobr>客户名称</nobr></th>
17
+ <th><nobr>操作员 </nobr></th>
18
+ <th><nobr>备注</nobr></th>
19
+ </tr>
20
+ </template>
21
+ <template partial='body' >
22
+ <tr >
23
+ <td style="text-align:center;white-space:nowrap;">{{$index+1}}</td>
24
+
25
+ <td style="text-align:center;white-space:nowrap;">{{row.gas}}</td>
26
+ <td style="text-align:center;white-space:nowrap;">{{row.fee}}</td>
27
+ <td style="text-align:center;white-space:nowrap;">{{row.f_payment}}</td>
28
+ <td style="text-align:center;white-space:nowrap;">{{row.f_balance}}</td>
29
+ <td style="text-align:center;white-space:nowrap;">{{row.f_collection}}</td>
30
+ <td style="text-align:center;white-space:nowrap;">{{row.f_curbalance}}</td>
31
+ <td style="text-align:center;white-space:nowrap;">{{row.type}}</td>
32
+ <td style="text-align:center;white-space:nowrap;">{{row.f_operate_date}}</td>
33
+ <td style="text-align:center;white-space:nowrap;">{{row.f_user_name}}</td>
34
+ <td style="text-align:center;white-space:nowrap;">{{row.f_operator}}</td>
35
+ <td style="text-align:left;white-space:nowrap;">{{row.note}}{{row.f_write_card}}</td>
36
+ </tr>
37
+ </template>
38
+ </data-grid>
39
+ <modal :show.sync="cardCental" v-ref:modal backdrop="false">
40
+ <header slot="modal-header" class="modal-header">
41
+ <h4 class="modal-title">温馨提示</h4>
42
+ </header>
43
+ <article slot="modal-body" class="modal-body">
44
+ <div class="form-group">
45
+ <p> 当日此用户已经进行过一次购气,若卡上无气,请先进行补卡(未过表),之后掉气补气即可</p>
46
+ </div>
47
+ </article>
48
+ <footer slot="modal-footer" class="modal-footer">
49
+ <button type="button" class="btn btn-success" @click='cancel()'>确认
50
+ </button>
51
+ </footer>
52
+ </modal>
53
+ </div>
54
+ </template>
55
+
56
+ <script>
57
+ import {HttpResetClass} from 'vue-client'
58
+
59
+ export default {
60
+ title: '操作查询',
61
+ data () {
62
+ return {
63
+ model: {rows: []},
64
+ cardCental:false
65
+ }
66
+ },
67
+ props: ['searchdata'],
68
+ ready () {
69
+ this.getsalerecord()
70
+ },
71
+ methods: {
72
+ cancel(){
73
+ this.cardCental = false;
74
+ },
75
+ async getsalerecord () {
76
+ let http = new HttpResetClass()
77
+ // this.condition = `1=1 and f_user_id = '${this.searchdata.f_user_id}'`
78
+ this.condition = `1=1 and f_userfiles_id = '${this.searchdata.f_userfiles_id}'`
79
+ let record = await http.load('POST', 'rs/sql/sale_RecordQuery', {data: {condition: this.condition}}, {
80
+ rejectMsg: '流水查询出错!!',
81
+ resolveMsg: null
82
+ })
83
+ this.model.rows = record.data
84
+ if(this.model.rows.length>0 && ( this.model.rows[0].type== '发卡售气' || this.model.rows[0].type== '卡表收费' ) ){
85
+ let checkdata = this.model.rows[0].operate_date.substr(0,10)
86
+ let nowdate = new Date();
87
+ let pdate = nowdate.getFullYear()+'-'+(nowdate.getMonth()<10? '0'+nowdate.getMonth()+1 : nowdate.getMonth()+1) +'-'+(nowdate.getDate()<10? '0'+nowdate.getDate() : nowdate.getDate());
88
+ if(new Date(checkdata).getTime() == new Date(pdate).getTime()){
89
+ this.cardCental = true;
90
+ }
91
+ }
92
+ }
93
+ },
94
+ watch: {
95
+ 'searchdata' () {
96
+ this.getsalerecord()
97
+ }
98
+ }
99
+ }
100
+ </script>
@@ -16,6 +16,8 @@ let specialComp = {
16
16
  // 用户综合信息
17
17
  'file-user-general-info': (resolve) => { require(['./UserGeneralInfoTest'], resolve) },
18
18
  // 表具设备信息test
19
- 'file-user-device-info': (resolve) => { require(['./UserDeviceInfoTest'], resolve) }
19
+ 'file-user-device-info': (resolve) => { require(['./UserDeviceInfoTest'], resolve) },
20
+ // 收费页面的流水查询
21
+ 'meter-charge-record-query': (resolve) => { require(['./ChargeRecordQuery'], resolve) }
20
22
  }
21
23
  exports.specialComp = specialComp
@@ -64,9 +64,9 @@
64
64
  </div>
65
65
  <div class="form-group col-sm-3">
66
66
  <label class="font_normal_body">用户编号</label>
67
- <input type="text" class="form-control" v-model="model.f_userinfo_code" placeholder='用户编号' v-filter v-figure_filter
68
- condition="f_userinfo_code = '{}'" v-next-el='yhxm' style="width: 60%"
69
- :size="model.f_userinfo_code ? model.f_userinfo_id.length : 4">
67
+ <input type="text" class="form-control" v-model="model.code" placeholder='用户编号' v-filter v-figure_filter
68
+ condition="code = '{}'" v-next-el='yhxm' style="width: 60%"
69
+ :size="model.code ? model.f_userinfo_id.length : 4">
70
70
  </div>
71
71
  <div class="form-group col-sm-3">
72
72
  <label class="font_normal_body">用户姓名</label>
@@ -146,7 +146,7 @@
146
146
  </td>
147
147
  <td style="text-align:center"><nobr>{{$index+1}}</nobr></td>
148
148
  <td style="text-align:center"><nobr>{{row.f_userinfo_id}}|{{row.f_user_name}}|{{row.f_user_phone}}</nobr></td>
149
- <td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
149
+ <td style="text-align:center"><nobr>{{row.code}}</nobr></td>
150
150
  <td style="text-align:center"><nobr>{{row.f_phone}}</nobr></td>
151
151
  <td style="text-align:center"><nobr>{{row.f_send_type}}</nobr></td>
152
152
  <td style="text-align:center;width: 20px" :title="row.f_content"><nobr>{{row.f_content.substr(0,20)}}</nobr></td>
@@ -231,7 +231,7 @@ export default {
231
231
  sendType: [{label: '全部', value: ''}, ...this.$appdata.getParam('发送状态')],
232
232
  getsendType: this.$appdata.getParam('短信类型'),
233
233
  replyType: this.$appdata.getParam('评价级别'),
234
- bodydata: ['f_user_name', 'f_userinfo_code', 'f_phone', 'f_send_type', 'f_content', 'f_send', 'f_sendtime', 'f_statedetail', 'f_reply_type', 'f_reply_content', 'f_reply_content'],
234
+ bodydata: ['f_user_name', 'code', 'f_phone', 'f_send_type', 'f_content', 'f_send', 'f_sendtime', 'f_statedetail', 'f_reply_type', 'f_reply_content', 'f_reply_content'],
235
235
  header: ['用户姓名', '用户编号', '电话号码', '短信类型', '短信内容', '发送状态', '发送时间', '状态报告', '评价级别', '回执状态', '评价内容'],
236
236
  showFile: false,
237
237
  progressBar:'0%'