sale-client 3.4.153 → 3.4.156

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,162 +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: 'https://qnjtkf.cn:7400/rs/logic/getLogin'
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: 'https://qnjtkf.cn:7400'
92
- target: fuwu
93
- },
94
- '/rs/vue': {
95
- target: fuwu
96
- },
97
- '/webmeter': {
98
- // target: 'https://qnjtkf.cn:7400'
99
- target: fuwu
100
- },
101
- '/rs': {
102
- // target: 'http://192.168.30.63:8081/'
103
- // target: 'https://qnjtkf.cn:7400'
104
- target: fuwu
105
- }
106
- }
107
-
108
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
109
- publicPath: config.output.publicPath,
110
- stats: {
111
- colors: true,
112
- chunks: false
113
- }
114
- })
115
-
116
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
117
- // force page reload when html-webpack-plugin template changes
118
- compiler.plugin('compilation', function (compilation) {
119
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
120
- hotMiddleware.publish({action: 'reload'})
121
- cb()
122
- })
123
- })
124
-
125
- // proxy api requests
126
- Object.keys(proxyTable).forEach(function (context) {
127
- var options = proxyTable[context]
128
- if (typeof options === 'string') {
129
- options = {target: options}
130
- }
131
- app.use(proxyMiddleware(context, options))
132
- })
133
-
134
- // handle fallback for HTML5 history API
135
- app.use(require('connect-history-api-fallback')())
136
- // app.use(function (req, res, next) {
137
- // res.header('Access-Control-Allow-Origin', '*')
138
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
139
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
140
- // res.header('X-Powered-By', '3,2,1')
141
- // res.header('Access-Control-Allow-Credentials', 'true')
142
- // res.header('Content-Type', 'application/json;charset=utf-8')
143
- // next()
144
- // })
145
-
146
- // serve webpack bundle output
147
- app.use(devMiddleware)
148
-
149
- // enable hot-reload and state-preserving
150
- // compilation error display
151
- app.use(hotMiddleware)
152
-
153
- // serve pure static assets
154
- app.use('/static', express.static('./static'))
155
-
156
- module.exports = app.listen(8089, function (err) {
157
- if (err) {
158
- console.log(err)
159
- return
160
- }
161
- console.log('Listening at http://localhost:8089')
162
- })
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.153",
3
+ "version": "3.4.156",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -622,6 +622,7 @@ export default {
622
622
  f_user_type: row.f_user_type,
623
623
  f_gasproperties: row.f_gasproperties,
624
624
  f_position: row.f_position,
625
+ f_install_date: row.f_install_date,
625
626
  f_inputtor: row.f_inputtor,
626
627
  f_hand_month: row.f_hand_month
627
628
  }
@@ -110,6 +110,12 @@
110
110
  isSelected (row) {
111
111
  return this.row === row
112
112
  }
113
+ },
114
+ watch: {
115
+ 'f_userfiles_id'(){
116
+ let condition = `f_userfiles_id = '${this.f_userfiles_id}' `
117
+ this.model.search(condition)
118
+ },
113
119
  }
114
120
  }
115
121
  </script>
@@ -362,6 +362,11 @@
362
362
  // 开始打票
363
363
  if (self.config.hasPrint) {
364
364
  if (self.model.f_print.indexOf('电子发票') == -1) {
365
+ if(self.$login.r.includes('非民用纸质票据拆分')){
366
+ if(self.row.f_user_type === '非民用'){
367
+ self.billData.url = 'rs/report/fmy_sendCard_bill'
368
+ }
369
+ }
365
370
  if (self.config.hasBillManage) {
366
371
  // 启用发票管理,获取票据管理中的票号并存储记录 d
367
372
  self.row.id = res.data.id
@@ -104,12 +104,12 @@
104
104
  close-on-select clear-button>
105
105
  </v-select>
106
106
  </div>
107
- <div class="col-sm-4 auto" style="text-align:right;">
108
- <label for="f_collection" ><font size="6px" style="font-weight:bold;color:darkred">收&emsp;款&emsp;:&emsp;{{model.f_collection}}</font></label>
107
+ <div class="col-sm-4 auto">
108
+ <label for="f_collection" style="text-align:right;"><font size="6px" style="font-weight:bold;color:darkred">收&emsp;款:{{model.f_collection}}</font></label>
109
109
  </div>
110
- <div class="col-sm-12 form-group">
110
+ <div class="col-sm-9 form-group">
111
111
  <label class=" font_normal_body">&emsp;备&emsp;&emsp;注</label>
112
- <input class="input_search" style="width:87%"
112
+ <input class="input_search" style="width:70%"
113
113
  v-model="model.f_comments"
114
114
  placeholder="备注">
115
115
  </div>
@@ -335,7 +335,7 @@
335
335
  })
336
336
 
337
337
  if (money != 0) {
338
- this.model.f_collection = money.toFixed(4)
338
+ this.model.f_collection = money.toFixed(2)
339
339
  }
340
340
  },
341
341
  addadetail () {
@@ -411,7 +411,11 @@ and th.f_userfiles_id = '${row.f_userfiles_id}' and tsh.f_state='有效'`
411
411
  } else if (type === '补卡') {
412
412
  name = 'rs/report/replace_sell'
413
413
  } else if (type === '发卡售气') {
414
- name = 'rs/report/sendCard_bill'
414
+ if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')){
415
+ name = 'rs/report/fmy_sendCard_bill'
416
+ } else {
417
+ name = 'rs/report/sendCard_bill'
418
+ }
415
419
  } else if (type === '卡表收费' || type === '卡表赠气' || type === '卡表收费撤销') {
416
420
  if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')){
417
421
  name = 'rs/report/fmy_card_bill'
@@ -426,6 +430,8 @@ and th.f_userfiles_id = '${row.f_userfiles_id}' and tsh.f_state='有效'`
426
430
  name = 'rs/report/compensation_bill'
427
431
  } else if (type === '数码表收费') {
428
432
  name = 'rs/report/digtial_bill'
433
+ } else if (type === '气损收费') {
434
+ name = 'rs/report/gasloss_bill'
429
435
  }
430
436
  return name
431
437
  },
@@ -22,7 +22,7 @@
22
22
  </thead>
23
23
  <tbody>
24
24
  <tr v-for="row in history">
25
- <td><nobr>{{row.msg}}'</nobr></td>
25
+ <td><nobr>{{row.msg}}</nobr></td>
26
26
  <td><nobr>{{row.f_instruct_state}}</nobr></td>
27
27
  <!-- <td><nobr>{{row.f_user_type}}</nobr></td>-->
28
28
  <!-- <td><nobr>{{row.f_meter_brand}}</nobr></td>-->