sale-client 3.5.176 → 3.5.179

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.176",
3
+ "version": "3.5.179",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -17,6 +17,7 @@
17
17
  "url": "https://gitee.com/aote/product.git"
18
18
  },
19
19
  "dependencies": {
20
+ "crypto-js": "^4.1.1",
20
21
  "examples": "^0.1.0",
21
22
  "js-file-download": "0.4.12",
22
23
  "less-loader": "^2.2.3",
@@ -380,33 +380,33 @@ export default {
380
380
  this.iswaiting = false
381
381
  })
382
382
  },
383
- // 设置自动裁边开启
384
- SetAutoCutOn () {
385
- console.log('设置自动采编')
386
- if (this.iswaiting) return
387
- this.iswaiting = true
388
- this.sendMsg(this.CLT_MSG.SET_AUTOCROP, {open: 1}, (msg) => {
389
- if (msg.err !== 0) {
390
- this.iswaiting = false
391
- return
392
- }
393
- this.output('设置自动裁边 : open=' + 1)
394
- this.iswaiting = false
395
- })
396
- },
383
+ //// 设置自动裁边开启
384
+ //SetAutoCutOn () {
385
+ // console.log('设置自动采编')
386
+ // if (this.iswaiting) return
387
+ // this.iswaiting = true
388
+ // this.sendMsg(this.CLT_MSG.SET_AUTOCROP, {open: 1}, (msg) => {
389
+ // if (msg.err !== 0) {
390
+ // this.iswaiting = false
391
+ // return
392
+ // }
393
+ // this.output('设置自动裁边 : open=' + 1)
394
+ // this.iswaiting = false
395
+ // })
396
+ //},
397
397
  // 设置自动裁边关闭
398
- SetAutoCutOff () {
399
- if (this.iswaiting) return
400
- this.iswaiting = true
401
- this.sendMsg(this.CLT_MSG.SET_AUTOCROP, {open: 0}, (msg) => {
402
- if (msg.err !== 0) {
403
- this.iswaiting = false
404
- return
405
- }
406
- this.output('设置自动裁边 : open=' + 0)
407
- this.iswaiting = false
408
- })
409
- },
398
+ // SetAutoCutOff () {
399
+ // if (this.iswaiting) return
400
+ // this.iswaiting = true
401
+ // this.sendMsg(this.CLT_MSG.SET_AUTOCROP, {open: 0}, (msg) => {
402
+ // if (msg.err !== 0) {
403
+ // this.iswaiting = false
404
+ // return
405
+ // }
406
+ // this.output('设置自动裁边 : open=' + 0)
407
+ // this.iswaiting = false
408
+ // })
409
+ // },
410
410
  // //设置预设框选
411
411
  // SetBox(){
412
412
  // if(this.iswaiting) return
@@ -148,7 +148,7 @@
148
148
  },
149
149
  props: ['row'],
150
150
  ready () {
151
- this.row = this.data
151
+ this.row = this.data ? this.data : this.row
152
152
  this.blodid = this.row.f_userinfo_id
153
153
  this.gasproperties = this.$appdata.getParam(this.row.f_user_type)
154
154
  if (this.row.f_gasproperties) {
@@ -350,7 +350,6 @@
350
350
 
351
351
  this.isopen = true
352
352
  this.iswaiting = false
353
- this.SetAutoCutOff()
354
353
  })
355
354
  },
356
355
  //关闭视频
@@ -550,31 +549,30 @@
550
549
  })
551
550
  },
552
551
  //设置自动裁边开启
553
- SetAutoCutOn(){
554
- console.log("设置自动裁边")
555
- if(this.iswaiting) return
556
- this.iswaiting = true
557
- this.sendMsg(this.CLT_MSG.SET_AUTOCROP, {open:1,autocutoffset:-3},(msg) => {
558
- if(msg.err !== 0) {
559
- this.iswaiting = false
560
- return
561
- }
562
- this.output("设置自动裁边 : open=" + 1)
563
- this.iswaiting = false
564
- })
565
- },
552
+ // SetAutoCutOn(){
553
+ // console.log("设置自动裁边")
554
+ // if(this.iswaiting) return
555
+ // this.iswaiting = true
556
+ // this.sendMsg(this.CLT_MSG.SET_AUTOCROP, {open:1,autocutoffset:-3},(msg) => {
557
+ // if(msg.err !== 0) {
558
+ // this.iswaiting = false
559
+ // return
560
+ // }
561
+ // this.iswaiting = false
562
+ // })
563
+ // },
566
564
  //设置自动裁边关闭
567
- SetAutoCutOff(){
568
- if(this.iswaiting) return
569
- this.iswaiting = true
570
- this.sendMsg(this.CLT_MSG.SET_AUTOCROP, {open:0,autocutoffset:-3},(msg) => {
571
- if(msg.err !== 0) {
572
- this.iswaiting = false;
573
- return;}
574
- this.output("设置自动裁边 : open=" + 0);
575
- this.iswaiting = false;
576
- });
577
- },
565
+ // SetAutoCutOff(){
566
+ // if(this.iswaiting) return
567
+ // this.iswaiting = true
568
+ // this.sendMsg(this.CLT_MSG.SET_AUTOCROP, {open:0,autocutoffset:-3},(msg) => {
569
+ // if(msg.err !== 0) {
570
+ // this.iswaiting = false;
571
+ // return;}
572
+ // this.output("设置自动裁边 : open=" + 0);
573
+ // this.iswaiting = false;
574
+ // });
575
+ // },
578
576
  // //设置预设框选
579
577
  // SetBox(){
580
578
  // if(this.iswaiting) return
@@ -372,7 +372,7 @@
372
372
  }
373
373
  }
374
374
  } else {
375
- self.$dispatch('success')
375
+ self.$dispatch('success', '卡表收费')
376
376
  }
377
377
  self.clickConfirm = false
378
378
  } catch (error) {
@@ -469,7 +469,7 @@
469
469
  self.$dispatch('refresh', self.row)
470
470
  } else {
471
471
  self.$resetpost('rs/logic/writeCardAgin', getNoWriteCard.data[0], {resolveMsg: '重新写卡成功', rejectMsg: '重新写卡失败'})
472
- self.$dispatch('success')
472
+ self.$dispatch('success', '卡表收费')
473
473
  }
474
474
  } else {
475
475
  self.$dispatch('refresh', self.row)
@@ -696,7 +696,7 @@
696
696
  },
697
697
  eticket_toggle () {
698
698
  this.eticket_show = false
699
- this.$dispatch('success')
699
+ this.$dispatch('success', '卡表收费')
700
700
  },
701
701
  clean () {
702
702
  this.$info('取消操作')
@@ -713,7 +713,7 @@
713
713
  this.$CommonService.openEticket(this.row.id, '售气收费')
714
714
  }
715
715
  }
716
- this.$dispatch('success')
716
+ this.$dispatch('success', '卡表收费')
717
717
  },
718
718
  pregas () {
719
719
  this.dymoney = 0
@@ -351,10 +351,10 @@
351
351
  await self.$refs.eticketbill.openETicket([res.data.id], self.row, self.invoice_show_gas, self.invoice_is_pax, '物联网收费')
352
352
 
353
353
  // self.$CommonService.openEticket(res.data.id, '其他收费')
354
- // self.$dispatch('success')
354
+ // self.$dispatch('success', '物联网收费')
355
355
  }
356
356
  } else {
357
- self.$dispatch('success')
357
+ self.$dispatch('success', '物联网收费')
358
358
  }
359
359
  } catch (error) {
360
360
  if (error.status === 301) {
@@ -611,7 +611,7 @@
611
611
  },
612
612
  eticket_toggle () {
613
613
  this.eticket_show = false
614
- this.$dispatch('success')
614
+ this.$dispatch('success', '物联网收费')
615
615
  },
616
616
  async confirm () {
617
617
  let res = await this.$showMessage(`确定对客户${this.row.f_user_name}进行物联网表缴费吗?`, ['confirm', 'cancel'])
@@ -656,7 +656,7 @@
656
656
  this.$CommonService.openEticket(this.row.id, '售气收费')
657
657
  }
658
658
  }
659
- this.$dispatch('success')
659
+ this.$dispatch('success', '物联网收费')
660
660
  },
661
661
  pregas () {
662
662
  this.dymoney = 0