sale-client 3.5.46 → 3.5.47

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.
package/.babelrc CHANGED
@@ -1,5 +1,5 @@
1
- {
2
- "presets": ["es2015", "stage-2"],
3
- "plugins": ["transform-runtime"],
4
- "comments": false
5
- }
1
+ {
2
+ "presets": ["es2015", "stage-2"],
3
+ "plugins": ["transform-runtime"],
4
+ "comments": false
5
+ }
File without changes
@@ -0,0 +1,2 @@
1
+ #Fri Apr 02 10:09:16 CST 2021
2
+ gradle.version=3.5.1
@@ -1,161 +1,161 @@
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:8080', bendi1 = 'http://121.36.106.17:8400/'
14
- // 公司测试服务
15
- var fuwu = 'http://192.168.50.4:8400'
16
- // var fuwu = 'http://121.36.106.17:8400/'
17
- // 铜川正式
18
- // var fuwu = 'http://61.134.55.234:9999/'
19
- // 铜川测试
20
- // var fuwu = 'http://61.134.55.234:9999/'
21
- // var fuwu = 'http://60.222.250.39:8300/'
22
- // 韶关
23
- // var fuwu = 'http://119.146.1.106:8300/'
24
- // 巩义测试服务
25
- // var fuwu = 'http://192.168.0.227:8400'
26
- // 燎原测试服务
27
- // var fuwu = 'http://121.41.19.238:8400 '
28
- // var fuwu = 'http://121.41.19.238:9001/'
29
-
30
- // var fuwu = 'http://139.214.92.34:8301/'
31
-
32
- var proxyTable = {
33
- '/rs/logic/saleExport': {
34
- target: fuwu
35
- },
36
- '/rs/logic/saleGetExportProgress': {
37
- target: fuwu
38
- },
39
- '/files': {
40
- target: fuwu
41
- },
42
- // 查找资源服务数据
43
- '/rs/search': {
44
- target: fuwu
45
- },
46
- // 查找资源服务数据
47
- '/rs/logic/getLogin': {
48
- target: fuwu
49
- },
50
- // 查找资源服务数据
51
- '/rs/logic/getInitData': {
52
- target: fuwu
53
- },
54
- '/rs/logic/getSaleInitData': {
55
- target: fuwu
56
- },
57
- '/invoice': {
58
- target: fuwu
59
- },
60
- // 用户登录服务地址
61
- '/rs/user': {
62
- target: fuwu
63
- },
64
- '/rs/path/getParams': {
65
- target: fuwu
66
- },
67
- '/rs/data': {
68
- target: fuwu
69
- },
70
- '/rs/license': {
71
- target: fuwu
72
- },
73
- '/rs/db': {
74
- target: fuwu
75
- },
76
- '/excel': {
77
- target: fuwu
78
- },
79
- '/rs/config': {
80
- target: fuwu
81
- },
82
- '/rs/sql/getLicenseById': {
83
- target: fuwu
84
- },
85
- '/rs/sql/manage_getarealist': {
86
- target: fuwu
87
- },
88
- '/rs/sql/manage_getstreetlist': {
89
- target: fuwu
90
- },
91
- '/rs/report': {
92
- target: 'http://121.36.106.17:8400/'
93
- },
94
- '/rs/vue': {
95
- target: fuwu
96
- },
97
- '/webmeter': {
98
- target: 'http://192.168.50.4:8450'
99
- },
100
- '/rs': {
101
- // target: 'http://192.168.30.63:8081/'
102
- // target: 'http://121.36.106.17:8400/'
103
- target: bendi
104
- }
105
- }
106
-
107
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
108
- publicPath: config.output.publicPath,
109
- stats: {
110
- colors: true,
111
- chunks: false
112
- }
113
- })
114
-
115
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
116
- // force page reload when html-webpack-plugin template changes
117
- compiler.plugin('compilation', function (compilation) {
118
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
119
- hotMiddleware.publish({action: 'reload'})
120
- cb()
121
- })
122
- })
123
-
124
- // proxy api requests
125
- Object.keys(proxyTable).forEach(function (context) {
126
- var options = proxyTable[context]
127
- if (typeof options === 'string') {
128
- options = {target: options}
129
- }
130
- app.use(proxyMiddleware(context, options))
131
- })
132
-
133
- // handle fallback for HTML5 history API
134
- app.use(require('connect-history-api-fallback')())
135
- // app.use(function (req, res, next) {
136
- // res.header('Access-Control-Allow-Origin', '*')
137
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
138
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
139
- // res.header('X-Powered-By', '3,2,1')
140
- // res.header('Access-Control-Allow-Credentials', 'true')
141
- // res.header('Content-Type', 'application/json;charset=utf-8')
142
- // next()
143
- // })
144
-
145
- // serve webpack bundle output
146
- app.use(devMiddleware)
147
-
148
- // enable hot-reload and state-preserving
149
- // compilation error display
150
- app.use(hotMiddleware)
151
-
152
- // serve pure static assets
153
- app.use('/static', express.static('./static'))
154
-
155
- module.exports = app.listen(8089, function (err) {
156
- if (err) {
157
- console.log(err)
158
- return
159
- }
160
- console.log('Listening at http://localhost:8089')
161
- })
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:8080', bendi1 = 'http://121.36.106.17:8400/'
14
+ // 公司测试服务
15
+ var fuwu = 'http://192.168.50.4:8400'
16
+ // var fuwu = 'http://121.36.106.17:8400/'
17
+ // 铜川正式
18
+ // var fuwu = 'http://61.134.55.234:9999/'
19
+ // 铜川测试
20
+ // var fuwu = 'http://61.134.55.234:9999/'
21
+ // var fuwu = 'http://60.222.250.39:8300/'
22
+ // 韶关
23
+ // var fuwu = 'http://119.146.1.106:8300/'
24
+ // 巩义测试服务
25
+ // var fuwu = 'http://192.168.0.227:8400'
26
+ // 燎原测试服务
27
+ // var fuwu = 'http://121.41.19.238:8400 '
28
+ // var fuwu = 'http://121.41.19.238:9001/'
29
+
30
+ // var fuwu = 'http://139.214.92.34:8301/'
31
+
32
+ var proxyTable = {
33
+ '/rs/logic/saleExport': {
34
+ target: fuwu
35
+ },
36
+ '/rs/logic/saleGetExportProgress': {
37
+ target: fuwu
38
+ },
39
+ '/files': {
40
+ target: fuwu
41
+ },
42
+ // 查找资源服务数据
43
+ '/rs/search': {
44
+ target: fuwu
45
+ },
46
+ // 查找资源服务数据
47
+ '/rs/logic/getLogin': {
48
+ target: fuwu
49
+ },
50
+ // 查找资源服务数据
51
+ '/rs/logic/getInitData': {
52
+ target: fuwu
53
+ },
54
+ '/rs/logic/getSaleInitData': {
55
+ target: fuwu
56
+ },
57
+ '/invoice': {
58
+ target: fuwu
59
+ },
60
+ // 用户登录服务地址
61
+ '/rs/user': {
62
+ target: fuwu
63
+ },
64
+ '/rs/path/getParams': {
65
+ target: fuwu
66
+ },
67
+ '/rs/data': {
68
+ target: fuwu
69
+ },
70
+ '/rs/license': {
71
+ target: fuwu
72
+ },
73
+ '/rs/db': {
74
+ target: fuwu
75
+ },
76
+ '/excel': {
77
+ target: fuwu
78
+ },
79
+ '/rs/config': {
80
+ target: fuwu
81
+ },
82
+ '/rs/sql/getLicenseById': {
83
+ target: fuwu
84
+ },
85
+ '/rs/sql/manage_getarealist': {
86
+ target: fuwu
87
+ },
88
+ '/rs/sql/manage_getstreetlist': {
89
+ target: fuwu
90
+ },
91
+ '/rs/report': {
92
+ target: 'http://127.0.0.1:8082'
93
+ },
94
+ '/rs/vue': {
95
+ target: fuwu
96
+ },
97
+ '/webmeter': {
98
+ target: 'http://192.168.50.4:8450'
99
+ },
100
+ '/rs': {
101
+ // target: 'http://192.168.30.63:8081/'
102
+ // target: 'http://121.36.106.17:8400/'
103
+ target: bendi
104
+ }
105
+ }
106
+
107
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
108
+ publicPath: config.output.publicPath,
109
+ stats: {
110
+ colors: true,
111
+ chunks: false
112
+ }
113
+ })
114
+
115
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
116
+ // force page reload when html-webpack-plugin template changes
117
+ compiler.plugin('compilation', function (compilation) {
118
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
119
+ hotMiddleware.publish({action: 'reload'})
120
+ cb()
121
+ })
122
+ })
123
+
124
+ // proxy api requests
125
+ Object.keys(proxyTable).forEach(function (context) {
126
+ var options = proxyTable[context]
127
+ if (typeof options === 'string') {
128
+ options = {target: options}
129
+ }
130
+ app.use(proxyMiddleware(context, options))
131
+ })
132
+
133
+ // handle fallback for HTML5 history API
134
+ app.use(require('connect-history-api-fallback')())
135
+ // app.use(function (req, res, next) {
136
+ // res.header('Access-Control-Allow-Origin', '*')
137
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
138
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
139
+ // res.header('X-Powered-By', '3,2,1')
140
+ // res.header('Access-Control-Allow-Credentials', 'true')
141
+ // res.header('Content-Type', 'application/json;charset=utf-8')
142
+ // next()
143
+ // })
144
+
145
+ // serve webpack bundle output
146
+ app.use(devMiddleware)
147
+
148
+ // enable hot-reload and state-preserving
149
+ // compilation error display
150
+ app.use(hotMiddleware)
151
+
152
+ // serve pure static assets
153
+ app.use('/static', express.static('./static'))
154
+
155
+ module.exports = app.listen(8089, function (err) {
156
+ if (err) {
157
+ console.log(err)
158
+ return
159
+ }
160
+ console.log('Listening at http://localhost:8089')
161
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.46",
3
+ "version": "3.5.47",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -61,6 +61,8 @@
61
61
  <th><nobr>住址</nobr></th>
62
62
  <th><nobr>气量</nobr></th>
63
63
  <th><nobr>应交</nobr></th>
64
+ <th><nobr>缴费金额 </nobr></th>
65
+ <th><nobr>剩余未交 </nobr></th>
64
66
  <th><nobr>上期结余</nobr></th>
65
67
  <th><nobr>本期结余</nobr></th>
66
68
  <th><nobr>操作类型</nobr></th>
@@ -77,6 +79,8 @@
77
79
  <td style="text-align:center">{{row.f_address}}</td>
78
80
  <td style="text-align:center">{{row.gas}}</td>
79
81
  <td style="text-align:center;white-space:nowrap;">{{row.fee}}</td>
82
+ <td style="text-align:center;white-space:nowrap;">{{row.f_collection}}</td>
83
+ <td style="text-align:center;white-space:nowrap;">{{row.f_oughtfee}}</td>
80
84
  <td style="text-align:center;white-space:nowrap;">{{row.f_balance}}</td>
81
85
  <td style="text-align:center;white-space:nowrap;">{{row.f_curbalance}}</td>
82
86
  <td style="text-align:center">{{row.f_type}}</td>
@@ -1,112 +1,112 @@
1
- <template>
2
- <div class="auto">
3
- <validator name='v'>
4
- <form novalidate class="form-horizontal">
5
- <div class="row">
6
- <div class="col-sm-4">
7
- <label for="f_paytype" class=" font_normal_body">付款方式:</label>
8
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_payment" disabled/>
9
- </div>
10
-
11
- <div class="col-sm-4">
12
- <label for="f_pregas" class=" font_normal_body">预购气量:</label>
13
- <input type="number" class="input_search" style="width: 60%" v-model="model.f_pregas" disabled>
14
- </div>
15
-
16
- <div class="col-sm-4">
17
- <label for="f_preamount" class=" font_normal_body">预购金额:</label>
18
- <input type="number" class="input_search" style="width: 60%" v-model="model.f_preamount" disabled>
19
- </div>
20
- </div>
21
- <div class="row" style="margin-top:6px;">
22
- <div class="col-sm-4">
23
- <label for="f_print" class="font_normal_body">收&ensp;款&ensp;人:</label>
24
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_operator" disabled>
25
- </div>
26
- <div class="col-sm-4">
27
- <label for="f_print" class="font_normal_body">部&emsp;&emsp;门:</label>
28
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_depname" disabled>
29
- </div>
30
- <div class="col-sm-4">
31
- <label for="f_print" class="font_normal_body">收费时间:</label>
32
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_operate_date" disabled>
33
- </div>
34
- </div>
35
-
36
- <div class="row" style="margin-top:6px;">
37
-
38
- <div class="col-sm-12">
39
- <label for="f_comments" class="font_normal_body">备&emsp;&emsp;注</label>
40
- <input type="text" class="input_search" style="width:87%" v-model="model.f_comments" placeholder="备注"/>
41
- </div>
42
- </div>
43
- </form>
44
- <print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="close" @printok="printok" :data='row'></print-bill>
45
- <div style="text-align:right;margin-top:80px;margin-right:50px;">
46
- <button class="button_search" @click="confirm()" v-if="jurisdiction.includes('线下写卡')" :disabled='clickConfirm'>写卡</button>
47
- <button class="button_clear" @click="clean()">取消</button>
48
- </div>
49
- </validator>
50
- </div>
51
- </template>
52
- <script>
53
- /**
54
- *综合业务
55
- *卡表收费组件
56
- */
57
- import CardService from './CardService'
58
-
59
- // 执行保存逻辑
60
- let sellgasGen = async function (self) {
61
- try {
62
- self.row.cardInfo = self.cardData
63
- self.row.f_write_comments = self.model.f_comments
64
- await CardService.offlineWrite(self.row)
65
- // 开始打票
66
- self.clickConfirm = false
67
- self.$dispatch('success')
68
- } catch (error) {
69
- self.$showAlert(error, 'danger', 0)
70
- self.$dispatch('refresh')
71
- self.clickConfirm = false
72
- }
73
- }
74
-
75
- export default {
76
- title: '线下写卡',
77
- data () {
78
- return {
79
- model: {},
80
- clickConfirm: false,
81
- jurisdiction: this.$login.r
82
- }
83
- },
84
- props: ['row', 'cardData'],
85
- ready () {
86
- if (this.row.unWriteSell) {
87
- this.model = this.row.unWriteSell[0]
88
- }
89
- },
90
- methods: {
91
- confirm () {
92
- if (!this.cardData) {
93
- this.$showAlert('请先进行读卡再进行线下写卡', 'warning', 3000)
94
- return
95
- }
96
-
97
- this.clickConfirm = true
98
- this.$showMessage(`对用户${this.row.f_user_name}进行写卡操作。该操作只做写卡操作。确定要进行该操作吗?`, ['confirm', 'cancel']).then((res) => {
99
- if (res === 'confirm') {
100
- sellgasGen(this)
101
- }
102
- })
103
- },
104
- clean () {
105
- this.$dispatch('refresh', this.row)
106
- }
107
- }
108
- }
109
- </script>
110
-
111
- <style>
112
- </style>
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal">
5
+ <div class="row">
6
+ <div class="col-sm-4">
7
+ <label for="f_paytype" class=" font_normal_body">付款方式:</label>
8
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_payment" disabled/>
9
+ </div>
10
+
11
+ <div class="col-sm-4">
12
+ <label for="f_pregas" class=" font_normal_body">预购气量:</label>
13
+ <input type="number" class="input_search" style="width: 60%" v-model="model.f_pregas" disabled>
14
+ </div>
15
+
16
+ <div class="col-sm-4">
17
+ <label for="f_preamount" class=" font_normal_body">预购金额:</label>
18
+ <input type="number" class="input_search" style="width: 60%" v-model="model.f_preamount" disabled>
19
+ </div>
20
+ </div>
21
+ <div class="row" style="margin-top:6px;">
22
+ <div class="col-sm-4">
23
+ <label for="f_print" class="font_normal_body">收&ensp;款&ensp;人:</label>
24
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_operator" disabled>
25
+ </div>
26
+ <div class="col-sm-4">
27
+ <label for="f_print" class="font_normal_body">部&emsp;&emsp;门:</label>
28
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_depname" disabled>
29
+ </div>
30
+ <div class="col-sm-4">
31
+ <label for="f_print" class="font_normal_body">收费时间:</label>
32
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_operate_date" disabled>
33
+ </div>
34
+ </div>
35
+
36
+ <div class="row" style="margin-top:6px;">
37
+
38
+ <div class="col-sm-12">
39
+ <label for="f_comments" class="font_normal_body">备&emsp;&emsp;注</label>
40
+ <input type="text" class="input_search" style="width:87%" v-model="model.f_comments" placeholder="备注"/>
41
+ </div>
42
+ </div>
43
+ </form>
44
+ <print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="close" @printok="printok" :data='row'></print-bill>
45
+ <div style="text-align:right;margin-top:80px;margin-right:50px;">
46
+ <button class="button_search" @click="confirm()" v-if="jurisdiction.includes('线下写卡')" :disabled='clickConfirm'>写卡</button>
47
+ <button class="button_clear" @click="clean()">取消</button>
48
+ </div>
49
+ </validator>
50
+ </div>
51
+ </template>
52
+ <script>
53
+ /**
54
+ *综合业务
55
+ *卡表收费组件
56
+ */
57
+ import CardService from './CardService'
58
+
59
+ // 执行保存逻辑
60
+ let sellgasGen = async function (self) {
61
+ try {
62
+ self.row.cardInfo = self.cardData
63
+ self.row.f_write_comments = self.model.f_comments
64
+ await CardService.offlineWrite(self.row)
65
+ // 开始打票
66
+ self.clickConfirm = false
67
+ self.$dispatch('success')
68
+ } catch (error) {
69
+ self.$showAlert(error, 'danger', 0)
70
+ self.$dispatch('refresh')
71
+ self.clickConfirm = false
72
+ }
73
+ }
74
+
75
+ export default {
76
+ title: '线下写卡',
77
+ data () {
78
+ return {
79
+ model: {},
80
+ clickConfirm: false,
81
+ jurisdiction: this.$login.r
82
+ }
83
+ },
84
+ props: ['row', 'cardData'],
85
+ ready () {
86
+ if (this.row.unWriteSell) {
87
+ this.model = this.row.unWriteSell[0]
88
+ }
89
+ },
90
+ methods: {
91
+ confirm () {
92
+ if (!this.cardData) {
93
+ this.$showAlert('请先进行读卡再进行线下写卡', 'warning', 3000)
94
+ return
95
+ }
96
+
97
+ this.clickConfirm = true
98
+ this.$showMessage(`对用户${this.row.f_user_name}进行写卡操作。该操作只做写卡操作。确定要进行该操作吗?`, ['confirm', 'cancel']).then((res) => {
99
+ if (res === 'confirm') {
100
+ sellgasGen(this)
101
+ }
102
+ })
103
+ },
104
+ clean () {
105
+ this.$dispatch('refresh', this.row)
106
+ }
107
+ }
108
+ }
109
+ </script>
110
+
111
+ <style>
112
+ </style>