sale-client 3.4.109 → 3.4.110

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.
@@ -10,9 +10,9 @@ var compiler = webpack(config)
10
10
 
11
11
  // Define HTTP proxies to your custom API backend
12
12
  // https://github.com/chimurai/http-proxy-middleware
13
- var bendi = 'http://127.0.0.1:8080/',bendi1 = 'http://119.146.1.106:8300/'
13
+ var bendi = 'http://183.67.41.139:8400/',bendi1 = 'http://183.67.41.139:8400/'
14
14
  // 公司测试服务
15
- var fuwu = 'http://192.168.50.4:8400/'
15
+ var fuwu = 'http://183.67.41.139:8400/'
16
16
  //铜川正式
17
17
  // var fuwu = 'http://61.134.55.234:9999/'
18
18
  //铜川测试
@@ -87,16 +87,16 @@ var proxyTable = {
87
87
  '/rs/sql/manage_getstreetlist': {
88
88
  target: fuwu
89
89
  },
90
- '/rs/report': {
91
- target: 'http://127.0.0.1:8079'
92
- },
90
+ // '/rs/report': {
91
+ // target: 'http://127.0.0.1:8079'
92
+ // },
93
93
  '/rs/vue': {
94
94
  target: fuwu
95
95
  },
96
96
  '/rs': {
97
97
  // target: 'http://192.168.30.63:8081/'
98
- target: 'http://127.0.0.1:8078'
99
- // target:fuwu
98
+ // target: 'http://127.0.0.1:8078'
99
+ target:fuwu
100
100
  }
101
101
  }
102
102
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.4.109",
3
+ "version": "3.4.110",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -116,8 +116,9 @@ export default {
116
116
  printType: '普通收据', // 收据/电子票/专用发票/国税发票
117
117
  payment: '现金缴费'
118
118
  },
119
+ print: false,
119
120
  billData: {
120
- url: 'rs/report/machine_bill',
121
+ url: 'rs/report/charge_manage_group_bill',
121
122
  bill: ''
122
123
  },
123
124
  paytype: this.$appdata.getParam('付款方式') ? this.$appdata.getParam('付款方式') : [],
@@ -246,8 +247,29 @@ export default {
246
247
  if (this.civill) {
247
248
  param = Object.assign(this.civill, param)
248
249
  }
249
- await this.$resetpost('rs/logic/batchPayment', {data: param}, {resolveMsg: '团体收费成功', rejectMsg: '团体收费失败'})
250
- this.clean()
250
+ let res = await this.$resetpost('rs/logic/batchPayment', {data: param}, {resolveMsg: '团体收费成功', rejectMsg: '团体收费失败'})
251
+ if (this.config.hasPrint) {
252
+ if (this.data.f_print.indexOf('电子发票') == -1) {
253
+ console.log('this.config.hasBillManage', this.config.hasBillManage)
254
+ if (this.config.hasBillManage) {
255
+ // 启用发票管理,获取票据管理中的票号并存储记录
256
+ this.row.id = res.data.id
257
+ this.row.f_bill_type = '物联网收费'
258
+ this.row.f_bill_style = this.model.f_print[0]
259
+ this.print = true
260
+ } else {
261
+ this.data.id = res.data.id
262
+ this.print = true
263
+ }
264
+ } else if (this.config.printType === '国税发票') {
265
+ // TODO
266
+ } else if (this.model.f_print[0] === '电子发票') {
267
+ this.eticket_show = true
268
+ await this.$refs.eticketbill.openETicket([res.data.id], this.row, this.invoice_show_gas, this.invoice_is_pax, '物联网收费')
269
+ }
270
+ } else {
271
+ this.clean()
272
+ }
251
273
  },
252
274
  clean () {
253
275
  this.$dispatch('success')
@@ -367,7 +367,9 @@ and th.f_userfiles_id = '${row.f_userfiles_id}' and tsh.f_state='有效'`
367
367
  getBillUrl (type) {
368
368
  let name = ''
369
369
  // 根据type数据 选择调用的Logic
370
- if (type === '过户') {
370
+ if (type == '团体收费') {
371
+ name = 'rs/report/charge_manage_group_bill'
372
+ } else if (type === '过户') {
371
373
  name = 'rs/report/transfer_bill'
372
374
  } else if (type === '换表') {
373
375
  console.log('看看row..', this.row)