sale-client 3.5.261 → 3.5.262

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.261",
3
+ "version": "3.5.262",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -552,16 +552,18 @@ export default {
552
552
  },
553
553
  async confirm () {
554
554
  let msg = ''
555
- if (this.row.f_meter_type.includes('机表')) {
555
+ if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
556
556
  if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
557
- msg = '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录'
557
+ msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
558
558
  } else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
559
559
  msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
560
560
  }
561
561
  }
562
- if (this.row.f_meter_type.includes('机表') && msg) {
562
+ if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
563
563
  this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
564
564
  if (res === 'confirm') {
565
+ debugger
566
+ let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
565
567
  let data = {
566
568
  downDate: this.$login.toStandardTimeString(),
567
569
  startDate: this.$login.toStandardDateString(),
@@ -575,9 +577,10 @@ export default {
575
577
  f_serial_number: this.model.f_serial_number,
576
578
  f_meterbase: this.model.f_using_base_old,
577
579
  f_meter_brand: this.row.f_meter_brand,
580
+ f_meter_classify: this.row.f_meter_type,
578
581
  f_price_id: this.row.f_price_id
579
582
  }
580
- this.$resetpost('rs/logic/changeMeterHand', {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
583
+ this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
581
584
  console.log('成功')
582
585
  if (this.model.metermessage.f_meter_type[0] != '机表') {
583
586
  this.$dispatch('refresh')
@@ -721,16 +724,17 @@ export default {
721
724
  this.Iotjisuan()
722
725
  }
723
726
  let msg = ''
724
- if (this.row.f_meter_type.includes('机表')) {
727
+ if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
725
728
  if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
726
- msg = '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录'
729
+ msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
727
730
  } else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
728
731
  msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
729
732
  }
730
733
  }
731
- if (this.row.f_meter_type.includes('机表') && msg) {
734
+ if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
732
735
  this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
733
736
  if (res === 'confirm') {
737
+ let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
734
738
  let data = {
735
739
  downDate: this.$login.toStandardTimeString(),
736
740
  startDate: this.$login.toStandardDateString(),
@@ -744,11 +748,16 @@ export default {
744
748
  f_serial_number: this.model.f_serial_number,
745
749
  f_meterbase: this.model.f_using_base_old,
746
750
  f_meter_brand: this.row.f_meter_brand,
751
+ f_meter_classify: this.row.f_meter_type,
747
752
  f_price_id: this.row.f_price_id
748
753
  }
749
- this.$resetpost('rs/logic/changeMeterHand', {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
754
+ this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
750
755
  console.log('成功')
751
- this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
756
+ if (this.row.f_meter_type.includes('物联网表')) {
757
+ this.$dispatch('refresh')
758
+ } else {
759
+ this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
760
+ }
752
761
  })
753
762
  }
754
763
  })
@@ -340,9 +340,19 @@ export default {
340
340
  this.$showMessage(`换表请上传新旧表图片`)
341
341
  return
342
342
  }
343
- if (this.row.f_meter_type.includes('机表') && (parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
344
- this.$showMessage(`该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录`, ['confirm', 'cancel']).then((res) => {
343
+ let msg = ''
344
+ if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
345
+ if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
346
+ msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
347
+ } else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
348
+ msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
349
+ }
350
+ }
351
+ if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
352
+ this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
345
353
  if (res === 'confirm') {
354
+ debugger
355
+ let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
346
356
  let data = {
347
357
  downDate: this.$login.toStandardTimeString(),
348
358
  startDate: this.$login.toStandardDateString(),
@@ -356,9 +366,10 @@ export default {
356
366
  f_serial_number: this.model.f_serial_number,
357
367
  f_meterbase: this.model.f_using_base_old,
358
368
  f_meter_brand: this.row.f_meter_brand,
369
+ f_meter_classify: this.row.f_meter_type,
359
370
  f_price_id: this.row.f_price_id
360
371
  }
361
- this.$resetpost('rs/logic/changeMeterHand', {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
372
+ this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
362
373
  console.log('成功')
363
374
  if (this.model.metermessage.f_meter_type[0] != '机表') {
364
375
  this.$dispatch('refresh')
@@ -485,6 +496,45 @@ export default {
485
496
  } else if (this.row.f_meter_type == '物联网表') {
486
497
  this.Iotjisuan()
487
498
  }
499
+ let msg = ''
500
+ if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
501
+ if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
502
+ msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
503
+ } else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
504
+ msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
505
+ }
506
+ }
507
+ if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
508
+ this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
509
+ if (res === 'confirm') {
510
+ let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
511
+ let data = {
512
+ downDate: this.$login.toStandardTimeString(),
513
+ startDate: this.$login.toStandardDateString(),
514
+ endDate: this.$login.toStandardDateString(),
515
+ condition: `f_userfiles_id = '${this.row.f_userfiles_id}'`,
516
+ f_operator: this.$login.f.name,
517
+ f_operatorid: this.$login.f.id,
518
+ f_meternumber: this.row.f_meternumber,
519
+ f_userinfo_id: this.row.f_userinfo_id,
520
+ f_userfiles_id: this.row.f_userfiles_id,
521
+ f_serial_number: this.model.f_serial_number,
522
+ f_meterbase: this.model.f_using_base_old,
523
+ f_meter_brand: this.row.f_meter_brand,
524
+ f_meter_classify: this.row.f_meter_type,
525
+ f_price_id: this.row.f_price_id
526
+ }
527
+ this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
528
+ console.log('成功')
529
+ if (this.row.f_meter_type.includes('物联网表')) {
530
+ this.$dispatch('refresh')
531
+ } else {
532
+ this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
533
+ }
534
+ })
535
+ }
536
+ })
537
+ }
488
538
  },
489
539
  async Iotjisuan () {
490
540
  let gas = (this.model.f_using_base_old - 0) - (this.row.f_meter_base - 0)