sale-client 3.5.193 → 3.5.195

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,67 +1,73 @@
1
- const express = require('express')
2
- const webpack = require('webpack')
3
- const config = require('./webpack.dev.conf')
4
- const proxyMiddleware = require('http-proxy-middleware')
5
- const app = express()
6
- const compiler = webpack(config)
7
-
8
- // 自己改了这里不要提交 来回覆盖挺麻烦的
9
- const [local, server] = ['http://127.0.0.1:8080', 'http://192.168.50.4:8400']
10
- const port = 8089
11
-
12
- const proxyTable = {
13
- '/text': {
14
- target: local
15
- },
16
- '/files': {
17
- target: server
18
- },
19
- '/excel': {
20
- target: server
21
- },
22
- '/webmeter': {
23
- target: server
24
- },
25
- '/rs/logic': {
26
- target: server
27
- },
28
- '/rs': {
29
- target: server
30
- }
31
- }
32
-
33
- const devMiddleware = require('webpack-dev-middleware')(compiler, {
34
- publicPath: config.output.publicPath,
35
- stats: {
36
- colors: true,
37
- chunks: false
38
- }
39
- })
40
-
41
- const hotMiddleware = require('webpack-hot-middleware')(compiler)
42
- compiler.plugin('compilation', function (compilation) {
43
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
44
- hotMiddleware.publish({action: 'reload'})
45
- cb()
46
- })
47
- })
48
-
49
- Object.keys(proxyTable).forEach(function (context) {
50
- let options = proxyTable[context]
51
- if (typeof options === 'string') {
52
- options = {target: options}
53
- }
54
- app.use(proxyMiddleware(context, options))
55
- })
56
- app.use(require('connect-history-api-fallback')())
57
- app.use(devMiddleware)
58
- app.use(hotMiddleware)
59
- app.use('/static', express.static('./static'))
60
-
61
- module.exports = app.listen(port, function (err) {
62
- if (err) {
63
- console.log(err)
64
- return
65
- }
66
- console.log('Listening at http://localhost:' + port)
67
- })
1
+ const express = require('express')
2
+ const webpack = require('webpack')
3
+ const config = require('./webpack.dev.conf')
4
+ const proxyMiddleware = require('http-proxy-middleware')
5
+ const app = express()
6
+ const compiler = webpack(config)
7
+
8
+ // 自己改了这里不要提交 来回覆盖挺麻烦的
9
+ const [local, server] = ['http://127.0.0.1:8080', 'http://192.168.50.4:8400']
10
+ const port = 8089
11
+
12
+ const proxyTable = {
13
+ '/text': {
14
+ target: local,
15
+ // changeOrigin: true //https请求需要加
16
+ },
17
+ '/files': {
18
+ target: server,
19
+ // changeOrigin: true
20
+ },
21
+ '/excel': {
22
+ target: server,
23
+ // changeOrigin: true
24
+ },
25
+ '/webmeter': {
26
+ target: server,
27
+ // changeOrigin: true
28
+ },
29
+ '/rs/logic': {
30
+ target: server,
31
+ // changeOrigin: true
32
+ },
33
+ '/rs': {
34
+ target: server,
35
+ // changeOrigin: true
36
+ }
37
+ }
38
+
39
+ const devMiddleware = require('webpack-dev-middleware')(compiler, {
40
+ publicPath: config.output.publicPath,
41
+ stats: {
42
+ colors: true,
43
+ chunks: false
44
+ }
45
+ })
46
+
47
+ const hotMiddleware = require('webpack-hot-middleware')(compiler)
48
+ compiler.plugin('compilation', function (compilation) {
49
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
50
+ hotMiddleware.publish({action: 'reload'})
51
+ cb()
52
+ })
53
+ })
54
+
55
+ Object.keys(proxyTable).forEach(function (context) {
56
+ let options = proxyTable[context]
57
+ if (typeof options === 'string') {
58
+ options = {target: options}
59
+ }
60
+ app.use(proxyMiddleware(context, options))
61
+ })
62
+ app.use(require('connect-history-api-fallback')())
63
+ app.use(devMiddleware)
64
+ app.use(hotMiddleware)
65
+ app.use('/static', express.static('./static'))
66
+
67
+ module.exports = app.listen(port, function (err) {
68
+ if (err) {
69
+ console.log(err)
70
+ return
71
+ }
72
+ console.log('Listening at http://localhost:' + port)
73
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.193",
3
+ "version": "3.5.195",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -491,7 +491,7 @@
491
491
  serialShow: false,
492
492
  resid: [], // 存放新增的f_files表中id
493
493
  config: {
494
- calculatePreByCollection: true, // 可以更具收款来反向计算预购
494
+ calculatePreByCollection: false, // 可以更具收款来反向计算预购
495
495
  notShowFormula: false, // 不显示计算公式,默认显示
496
496
  autoCollection: true, // 自动填写收款
497
497
  showupload: true, // 显示上传
@@ -463,7 +463,7 @@ export default {
463
463
  resid: [],
464
464
  config: {
465
465
  notShowFormula: false, // 不显示计算公式,默认显示
466
- calculatePreByCollection: true, // 可以更具收款来反向计算预购
466
+ calculatePreByCollection: false, // 可以更具收款来反向计算预购
467
467
  showupload: true, // 默认不显示上传附件
468
468
  hasPrint: false, // 默认打票
469
469
  floor: true, // 是否取整收费
@@ -9,21 +9,30 @@
9
9
  <saletab header="机表流水查询" v-if="permission('机表流水查询')&&row.f_meter_type.includes('机表')">
10
10
  <machine-record-query :row="row" v-if="show == '机表流水查询'" @deal-msg="dealMsg"></machine-record-query>
11
11
  </saletab>
12
- <saletab header="收费查询" v-if="permission('收费查询')">
12
+ <saletab header="收费查询" v-if="!newWebHand && permission('收费查询')">
13
+ <charge-query-user :row="row" v-if="show == '收费查询'" @deal-msg="dealMsg"></charge-query-user>
14
+ </saletab>
15
+ <saletab header="收费查询" v-if="newWebHand && permission('收费查询')">
13
16
  <charge-query-user :row="row" v-if="show == '收费查询'" @deal-msg="dealMsg"></charge-query-user>
14
17
  </saletab>
15
18
  <saletab header="累购查询" v-if="permission('累购查询')">
16
19
  <Repurchase :row="row" v-if="show == '累购查询'" @deal-msg="dealMsg"></Repurchase>
17
20
  </saletab>
18
- <saletab header="下账查询" v-if="row.f_meter_type.includes('物联网表')&&permission('自动下账查询')">
21
+ <saletab header="下账查询" v-if="!newWebHand && row.f_meter_type.includes('物联网表')&&permission('自动下账查询')">
19
22
  <automatic-purse :row="row" @deal-msg="dealMsg"></automatic-purse>
20
23
  </saletab>
24
+ <saletab header="下账查询" v-if="newWebHand && row.f_meter_type.includes('物联网表')&&permission('自动下账查询')">
25
+ <web-automatic-purse :row="row" @deal-msg="dealMsg"></web-automatic-purse>
26
+ </saletab>
21
27
  <saletab header="抄表记录" v-if="row.f_meter_type.includes('卡表')&&permission('抄表记录')">
22
28
  <card-hand-record :row="row" v-if="show == '抄表记录'" @deal-msg="dealMsg"></card-hand-record>
23
29
  </saletab>
24
- <saletab header="抄表记录" v-if="!row.f_meter_type.includes('卡表')&&permission('抄表记录')">
30
+ <saletab header="抄表记录" v-if="!newWebHand && !row.f_meter_type.includes('卡表')&&permission('抄表记录')">
25
31
  <hand-query-user :row="row" v-if="show == '抄表记录'" @deal-msg="dealMsg"></hand-query-user>
26
32
  </saletab>
33
+ <saletab header="抄表记录" v-if="newWebHand && !row.f_meter_type.includes('卡表')&&permission('抄表记录')">
34
+ <web-hand-query-user :row="row" v-if="show == '抄表记录'" @deal-msg="dealMsg"></web-hand-query-user>
35
+ </saletab>
27
36
  <saletab header="补卡查询" v-if="row.f_meter_type.includes('卡表')&&permission('补卡查询')">
28
37
  <fill-card-query-user :row="row" v-if="show == '补卡查询'" @deal-msg="dealMsg"></fill-card-query-user>
29
38
  </saletab>
@@ -92,6 +101,10 @@
92
101
  import AutomaticPurse from './ic_detail/AutomaticPurse'
93
102
  import Repurchase from './ic_detail/Repurchase'
94
103
  import MachineRecordQuery from './ic_detail/MachineRecordQuery'
104
+ import WebAutomaticPurse from './ic_detail/WebAutomaticPurse'
105
+ import WebChargeQueryUser from './ic_detail/WebChargeQueryUser'
106
+ import WebHandQueryUser from './ic_detail/WebHandQueryUser'
107
+
95
108
  // 导入物联网相关查询
96
109
  import QueryInstruct from './iot_detail/QueryInstruct'
97
110
  import QueryHistoryInstruct from './iot_detail/QueryHistoryInstruct'
@@ -109,6 +122,9 @@ export default {
109
122
  PriceAdjustmentQueryUser,
110
123
  PriceChangeQueryUser,
111
124
  AutomaticPurse,
125
+ WebAutomaticPurse,
126
+ WebChargeQueryUser,
127
+ WebHandQueryUser,
112
128
  Repurchase,
113
129
  ChangeMeterQueryUser,
114
130
  ChargeQueryUser,
@@ -132,6 +148,7 @@ export default {
132
148
  return {
133
149
  row: null,
134
150
  name: '自动下账查询',
151
+ newWebHand: this.$appdata.getSingleValue('新抄表'),
135
152
  show: ''
136
153
  }
137
154
  },