sale-client 3.7.53 → 3.7.54

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,7 +1,7 @@
1
1
  var path = require('path')
2
2
  var checkVersion = require('./versionCheck.js')
3
3
  checkVersion()
4
- const [ serverRul, localUrl, v4Url ] = ['http://10.218.0.52:8600/', 'http://10.218.0.52:8600/', 'http://10.218.0.52:8600/']
4
+ const [ serverRul, localUrl, v4Url ] = ['http://192.168.50.67:30785/', 'http://localhost:9014/', 'http://192.168.50.67:30785']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.7.53",
3
+ "version": "3.7.54",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -24,7 +24,7 @@
24
24
  "qrcodejs2": "^0.0.2",
25
25
  "vue": "^1.0.17",
26
26
  "webpack-dev-server": "^2.11.5",
27
- "vue-client": "1.26.8",
27
+ "vue-client": "1.25.38",
28
28
  "yarn": "^1.22.10"
29
29
  },
30
30
  "devDependencies": {
@@ -76,7 +76,7 @@
76
76
  "karma-spec-reporter": "0.0.31",
77
77
  "karma-webpack": "^2.0.2",
78
78
  "ldap-clients": "3.0.96",
79
- "system-clients": "3.2.90-tongchuan",
79
+ "system-clients": "4.0.12",
80
80
  "less": "^2.7.3",
81
81
  "manage-client": "3.1.8-88",
82
82
  "mkdirp": "^0.5.1",
@@ -442,9 +442,9 @@
442
442
  })
443
443
  console.log('获取限购值', getLimit)
444
444
  self.hasLimit = getLimit.data.hasLimit
445
- // 如果选择了"城边村补贴",忽略限购
445
+ // 如果选择了"城边村补贴",标记忽略限购(但不改变hasLimit,保持限购值可用)
446
446
  if (self.hasLimit && self.model.f_payment && self.model.f_payment.includes && self.model.f_payment.includes('城边村补贴')) {
447
- self.hasLimit = false
447
+ self.ignoreLimitBySubsidy = true
448
448
  self.limitmoney = false
449
449
  self.limitgas = false
450
450
  self.maxgas = 99999999
@@ -574,7 +574,8 @@
574
574
  garbage_money: 0,
575
575
  totalCharge: 0,
576
576
  accountperiod: '',
577
- canPay: false
577
+ canPay: false,
578
+ ignoreLimitBySubsidy: false // 标记是否因城边村补贴而忽略限购
578
579
  }
579
580
  },
580
581
  props: ['row', 'cardData'],
@@ -633,13 +634,20 @@
633
634
  },
634
635
  'model.f_payment' (val) {
635
636
  // 如果选择了"城边村补贴",忽略限购
636
- if (this.hasLimit && val && val.includes && val.includes('城边村补贴')) {
637
- this.hasLimit = false
638
- this.limitmoney = false
639
- this.limitgas = false
640
- this.maxgas = 99999999
641
- this.maxmoney = 99999999
642
- this.$resetValidation()
637
+ if (val && val.includes && val.includes('城边村补贴')) {
638
+ if (this.hasLimit) {
639
+ this.ignoreLimitBySubsidy = true
640
+ this.limitmoney = false
641
+ this.limitgas = false
642
+ this.maxgas = 99999999
643
+ this.maxmoney = 99999999
644
+ this.$resetValidation()
645
+ }
646
+ } else {
647
+ // 切换到其他付款方式,重新获取限购值
648
+ if (this.ignoreLimitBySubsidy) {
649
+ this.queryLimit()
650
+ }
643
651
  }
644
652
  if (val == '免交') {
645
653
  this.mjshow = true
@@ -675,6 +683,40 @@
675
683
  }
676
684
  },
677
685
  methods: {
686
+ // 查询限购
687
+ async queryLimit () {
688
+ let limit_param = {
689
+ f_userinfo_id: this.row.f_userinfo_id,
690
+ f_user_id: this.row.f_user_id,
691
+ f_stairprice_id: this.row.f_stairprice_id
692
+ }
693
+ let getLimit = await this.$resetpost('rs/logic/sale_getLimitGas', {data: limit_param}, {
694
+ resolveMsg: null,
695
+ rejectMsg: '获取限购值失败!!'
696
+ })
697
+ console.log('重新获取限购值', getLimit)
698
+ this.hasLimit = getLimit.data.hasLimit
699
+ this.ignoreLimitBySubsidy = false
700
+ if (this.hasLimit) {
701
+ if (getLimit.data.f_limit_value || getLimit.data.f_limit_amount) {
702
+ if (getLimit.data.f_limit_value < 0 || getLimit.data.f_limit_amount < 0) {
703
+ this.maxmoney = 0
704
+ this.limitmoney = true
705
+ this.$showAlert(`${getLimit.data.msg}\n限购原因:${getLimit.data.limitMessage}`, 'warning', 3000)
706
+ } else {
707
+ if (getLimit.data.f_limit_value) {
708
+ this.maxgas = (getLimit.data.f_limit_value - 0)
709
+ this.limitgas = true
710
+ }
711
+ if (getLimit.data.f_limit_amount) {
712
+ this.maxmoney = (getLimit.data.f_limit_amount - 0)
713
+ this.limitmoney = true
714
+ }
715
+ }
716
+ }
717
+ }
718
+ this.$resetValidation()
719
+ },
678
720
  // 查询垃圾费
679
721
  async getList () {
680
722
  let res = await this.$resetpost('rs/logic/queryGarbageCharges', {f_userfiles_id: this.row.f_userfiles_id}, {resolveMsg: null, rejectMsg: '查询垃圾费异常'})
@@ -430,9 +430,9 @@
430
430
  let getLimit = await self.$resetpost('rs/logic/sale_getLimitGas', {data: limit_param}, {resolveMsg: null, rejectMsg: '获取限购值失败!!'})
431
431
  console.log('获取限购值', getLimit)
432
432
  self.hasLimit = getLimit.data.hasLimit
433
- // 如果选择了"城边村补贴",忽略限购
433
+ // 如果选择了"城边村补贴",标记忽略限购
434
434
  if (self.hasLimit && self.model.f_payment && self.model.f_payment.includes && self.model.f_payment.includes('城边村补贴')) {
435
- self.hasLimit = false
435
+ self.ignoreLimitBySubsidy = true
436
436
  self.limitmoney = false
437
437
  self.limitgas = false
438
438
  self.maxgas = 99999999
@@ -535,7 +535,8 @@
535
535
  garbage_money: 0,
536
536
  totalCharge: 0,
537
537
  accountperiod: '',
538
- canPay : false
538
+ canPay : false,
539
+ ignoreLimitBySubsidy: false // 标记是否因城边村补贴而忽略限购
539
540
  }
540
541
  },
541
542
  props: ['row'],
@@ -594,13 +595,20 @@
594
595
  },
595
596
  'model.f_payment' (val) {
596
597
  // 如果选择了"城边村补贴",忽略限购
597
- if (this.hasLimit && val && val.includes && val.includes('城边村补贴')) {
598
- this.hasLimit = false
599
- this.limitmoney = false
600
- this.limitgas = false
601
- this.maxgas = 99999999
602
- this.maxmoney = 99999999
603
- this.$resetValidation()
598
+ if (val && val.includes && val.includes('城边村补贴')) {
599
+ if (this.hasLimit) {
600
+ this.ignoreLimitBySubsidy = true
601
+ this.limitmoney = false
602
+ this.limitgas = false
603
+ this.maxgas = 99999999
604
+ this.maxmoney = 99999999
605
+ this.$resetValidation()
606
+ }
607
+ } else {
608
+ // 切换到其他付款方式,重新获取限购值
609
+ if (this.ignoreLimitBySubsidy) {
610
+ this.queryLimit()
611
+ }
604
612
  }
605
613
  if (val == '免交') {
606
614
  this.mjshow = true
@@ -633,6 +641,40 @@
633
641
  }
634
642
  },
635
643
  methods: {
644
+ // 查询限购
645
+ async queryLimit () {
646
+ let limit_param = {
647
+ f_userinfo_id: this.row.f_userinfo_id,
648
+ f_user_id: this.row.f_user_id,
649
+ f_stairprice_id: this.row.f_stairprice_id
650
+ }
651
+ let getLimit = await this.$resetpost('rs/logic/sale_getLimitGas', {data: limit_param}, {
652
+ resolveMsg: null,
653
+ rejectMsg: '获取限购值失败!!'
654
+ })
655
+ console.log('重新获取限购值', getLimit)
656
+ this.hasLimit = getLimit.data.hasLimit
657
+ this.ignoreLimitBySubsidy = false
658
+ if (this.hasLimit) {
659
+ if (getLimit.data.f_limit_value || getLimit.data.f_limit_amount) {
660
+ if (getLimit.data.f_limit_value < 0 || getLimit.data.f_limit_amount < 0) {
661
+ this.maxmoney = 0
662
+ this.limitmoney = true
663
+ this.$showAlert(`${getLimit.data.msg}\n限购原因:${getLimit.data.limitMessage}`, 'warning', 3000)
664
+ } else {
665
+ if (getLimit.data.f_limit_value) {
666
+ this.maxgas = (getLimit.data.f_limit_value - 0)
667
+ this.limitgas = true
668
+ }
669
+ if (getLimit.data.f_limit_amount) {
670
+ this.maxmoney = (getLimit.data.f_limit_amount - 0)
671
+ this.limitmoney = true
672
+ }
673
+ }
674
+ }
675
+ }
676
+ this.$resetValidation()
677
+ },
636
678
  // 查询垃圾费
637
679
  async getList () {
638
680
  let res = await this.$resetpost('rs/logic/queryGarbageCharges', {f_userfiles_id: this.row.f_userfiles_id}, {resolveMsg: null, rejectMsg: '查询垃圾费异常'})
@@ -318,9 +318,9 @@
318
318
  let getLimit = await self.$resetpost('rs/logic/sale_getLimitGas', {data: limit_param}, {resolveMsg: null, newly: true, rejectMsg: '获取限购值失败!!'})
319
319
  console.log('获取限购值', getLimit)
320
320
  self.hasLimit = getLimit.data.hasLimit
321
- // 如果选择了"城边村补贴",忽略限购
321
+ // 如果选择了"城边村补贴",标记忽略限购
322
322
  if (self.hasLimit && self.model.f_payment && self.model.f_payment.includes && self.model.f_payment.includes('城边村补贴')) {
323
- self.hasLimit = false
323
+ self.ignoreLimitBySubsidy = true
324
324
  self.limitmoney = false
325
325
  self.limitgas = false
326
326
  self.maxgas = 99999999
@@ -417,6 +417,7 @@
417
417
  limitgas: false,
418
418
  mulPrint: false,
419
419
  clickConfirm: false, // 控制确认按钮只能点击一次
420
+ ignoreLimitBySubsidy: false, // 标记是否因城边村补贴而忽略限购
420
421
  // 下拉框值
421
422
  paytype: this.$appdata.getParam('付款方式'),
422
423
  printstyle: this.$appdata.getParam('打印格式'),
@@ -452,6 +453,41 @@
452
453
  }
453
454
  },
454
455
  methods: {
456
+ // 查询限购
457
+ async queryLimit () {
458
+ let limit_param = {
459
+ f_userinfo_id: this.row.f_userinfo_id,
460
+ f_user_id: this.row.f_user_id,
461
+ f_stairprice_id: this.row.f_stairprice_id
462
+ }
463
+ let getLimit = await this.$resetpost('rs/logic/sale_getLimitGas', {data: limit_param}, {
464
+ resolveMsg: null,
465
+ newly: true,
466
+ rejectMsg: '获取限购值失败!!'
467
+ })
468
+ console.log('重新获取限购值', getLimit)
469
+ this.hasLimit = getLimit.data.hasLimit
470
+ this.ignoreLimitBySubsidy = false
471
+ if (this.hasLimit) {
472
+ if (getLimit.data.f_limit_value || getLimit.data.f_limit_amount) {
473
+ if (getLimit.data.f_limit_value < 0 || getLimit.data.f_limit_amount < 0) {
474
+ this.maxmoney = 0
475
+ this.limitmoney = true
476
+ this.$showAlert(`${getLimit.data.msg}\n限购原因:${getLimit.data.limitMessage}`, 'warning', 3000)
477
+ } else {
478
+ if (getLimit.data.f_limit_value) {
479
+ this.maxgas = (getLimit.data.f_limit_value - 0)
480
+ this.limitgas = true
481
+ }
482
+ if (getLimit.data.f_limit_amount) {
483
+ this.maxmoney = (getLimit.data.f_limit_amount - 0)
484
+ this.limitmoney = true
485
+ }
486
+ }
487
+ }
488
+ }
489
+ this.$resetValidation()
490
+ },
455
491
  // 根据收款金额计算划价信息
456
492
  // 需要配置 calculatePreByCollection = true
457
493
  async calculatePreByCollection () {
@@ -656,13 +692,20 @@
656
692
  },
657
693
  'model.f_payment' (val) {
658
694
  // 如果选择了"城边村补贴",忽略限购
659
- if (this.hasLimit && val && val.includes && val.includes('城边村补贴')) {
660
- this.hasLimit = false
661
- this.limitmoney = false
662
- this.limitgas = false
663
- this.maxgas = 99999999
664
- this.maxmoney = 99999999
665
- this.$resetValidation()
695
+ if (val && val.includes && val.includes('城边村补贴')) {
696
+ if (this.hasLimit) {
697
+ this.ignoreLimitBySubsidy = true
698
+ this.limitmoney = false
699
+ this.limitgas = false
700
+ this.maxgas = 99999999
701
+ this.maxmoney = 99999999
702
+ this.$resetValidation()
703
+ }
704
+ } else {
705
+ // 切换到其他付款方式,重新获取限购值
706
+ if (this.ignoreLimitBySubsidy) {
707
+ this.queryLimit()
708
+ }
666
709
  }
667
710
  let _payment = this.$appdata.getSingleValue('需要输入业务单号的付款方式') || ''
668
711
  if (val == '免交' || _payment.includes(val)) {
@@ -135,7 +135,7 @@
135
135
  </div>
136
136
  <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
137
137
  class="form-group">
138
- <label class="font_normal_body">户档案开户时间</label>
138
+ <label class="font_normal_body">开户时间</label>
139
139
  <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
140
140
  class="datepicker"
141
141
  condition="f_open_date >= '{} 00:00:00' "
@@ -155,28 +155,6 @@
155
155
  v-model="model.f_end_date"
156
156
  ></datepicker>
157
157
  </div>
158
- <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
159
- class="form-group">
160
- <label class="font_normal_body">表档案开户时间</label>
161
- <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
162
- class="datepicker"
163
- condition="f_open_date_uf >= '{} 00:00:00' "
164
- placeholder="起始时间"
165
- style="width:60%"
166
- v-model="model.f_start_date"
167
- ></datepicker>
168
- </div>
169
- <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
170
- class="form-group" >
171
- <label class="font_normal_body" >&emsp;&ensp;至&emsp;&ensp;</label>
172
- <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
173
- class="datepicker"
174
- condition="f_open_date_uf <= '{} 23:59:59' "
175
- placeholder="结束时间"
176
- style="width:60%"
177
- v-model="model.f_end_date"
178
- ></datepicker>
179
- </div>
180
158
  <div
181
159
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
182
160
  class="form-group">
@@ -440,10 +418,7 @@
440
418
  <nobr>发卡状态</nobr>
441
419
  </th>
442
420
  <th v-if="!$parent.$parent.$parent.createFile">
443
- <nobr>户档案开户时间</nobr>
444
- </th>
445
- <th v-if="!$parent.$parent.$parent.createFile">
446
- <nobr>表档案开户时间</nobr>
421
+ <nobr>开户时间</nobr>
447
422
  </th>
448
423
  <th v-if="!$parent.$parent.$parent.createFile">
449
424
  <nobr>建档人</nobr>
@@ -505,7 +480,6 @@
505
480
  <td style="text-align: center;">{{row.f_price_name}}</td>
506
481
  <td style="text-align: center;">{{row.f_whether_hairpin}}</td>
507
482
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_open_date}}</td>
508
- <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_open_date_uf}}</td>
509
483
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_createfile_person}}</td>
510
484
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_userfiles_address}}</td>
511
485
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_feed_method}}</td>
@@ -179,7 +179,6 @@
179
179
  <datepicker style="width:60%" placeholder="通气日期"
180
180
  v-model="row.f_gas_date"
181
181
  v-ref:f_gas_date
182
- :disabled ="isedit"
183
182
  :value.sync="row.f_gas_date"
184
183
  :format="'yyyy-MM-dd HH:mm:ss'"
185
184
  :show-reset-button="reset"
@@ -472,7 +471,7 @@ let meterBookGen = function * (self) {
472
471
  finalDate: ''
473
472
  }
474
473
  },
475
- props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id', 'isedit'],
474
+ props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id'],
476
475
  ready () {
477
476
  console.log('看看meter里面的数据', this.meter, this.row)
478
477
  console.log('--------------====================', this.meter.f_aroundmeter, this.row.f_aroundmeter)
@@ -17,7 +17,7 @@
17
17
 
18
18
  <div style="height: auto;width: 100%">
19
19
  <file-user-meter-info :meterinfo="data.meterinfo" :f_filialeid="f_filialeid" :metervalid.sync="meterInfo"
20
- :f_userinfo_id="data.baseinfo.base.f_userinfo_id" :isedit="isedit" v-ref:meter></file-user-meter-info>
20
+ :f_userinfo_id="data.baseinfo.base.f_userinfo_id" v-ref:meter></file-user-meter-info>
21
21
  </div>
22
22
 
23
23
  <div style="height: auto;width: 100%">
@@ -9,7 +9,7 @@
9
9
  <button class="button_search" style="width: max-content" @click="showDevices($index, row)">用气设备信息</button>
10
10
  </div>
11
11
  <file-meter-info :meter="row" :f_filialeid="f_filialeid" :usertype="usertype" :gasproperties="gasproperties" @self-valid='valida'
12
- @delete-meter="deleteMeter($index)" :f_userinfo_id="f_userinfo_id" :isedit="isedit"></file-meter-info>
12
+ @delete-meter="deleteMeter($index)" :f_userinfo_id="f_userinfo_id"></file-meter-info>
13
13
 
14
14
  </div>
15
15
  <div class="panel panel-default auto text-center" @click="addMeter()" style="cursor: pointer;">
@@ -46,8 +46,7 @@ export default {
46
46
  twoWay: true
47
47
  },
48
48
  f_filialeid: {},
49
- f_userinfo_id: {},
50
- isedit: ''
49
+ f_userinfo_id: {}
51
50
  },
52
51
  ready () {
53
52
  console.log('表具信息,,,,', this.meterinfo)
package/src/main.js CHANGED
@@ -2,7 +2,7 @@ import Vue from 'vue'
2
2
  import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
- import FilialeSale from './filiale/tongchuan/sale'
5
+ import FilialeSale from './filiale/kelai/sale'
6
6
  import sale from './sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- #Wed Mar 18 10:18:57 CST 2026
2
- gradle.version=5.2.1
Binary file
File without changes