sale-client 3.6.409 → 3.6.411

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.6.409",
3
+ "version": "3.6.411",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -40,9 +40,11 @@
40
40
  v-next-el='sk' :disabled="row.f_collection_type !== '按气量'">
41
41
  </div>
42
42
 
43
- <div class="col-sm-4 form-group">
43
+ <div class="col-sm-4 form-group"
44
+ :class="[$v.f_preamount.required || $v.f_preamount.dctest? 'has-error' : 'has-success']">
44
45
  <label for="f_preamount" class=" font_normal_body">预购金额</label>
45
46
  <input class="input_search" style="width:60%" type="number" v-model="model.f_preamount"
47
+ v-validate:f_preamount='{dctest: [maxmoney, "<=" ]}'
46
48
  v-scale="[model.f_preamount, 4]" placeholder="预购金额" disabled>
47
49
  </div>
48
50
  </div>
@@ -77,10 +79,15 @@
77
79
  v-validate:f_totalcost='{required: true, dctest: [(openFee - 0), ">=" ] }' placeholder="应收金额"
78
80
  v-next-el='sk' v-scale="[model.f_totalcost, 4]" :disabled="row.f_collection_type !== '按金额'">
79
81
  </div>
80
- <div class="col-sm-4 form-group" v-if="hasLimit">
82
+ <div class="col-sm-4 form-group" v-if="hasLimit&&limitgas">
81
83
  <label class="font_normal_body">购气上限</label>
82
84
  <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="maxgas"
83
- v-scale="[maxgas, 4]" placeholder='限购余气' disabled>
85
+ v-scale="[maxgas, 2]" placeholder='限购余气' disabled>
86
+ </div>
87
+ <div class="col-sm-4 form-group" v-if="hasLimit&&limitmoney">
88
+ <label class="font_normal_body">金额上限</label>
89
+ <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="maxmoney"
90
+ v-scale="[maxmoney, 2]" placeholder='限购金额' disabled>
84
91
  </div>
85
92
  <!--<div class="col-sm-4 form-group" v-if="!hasLimit">-->
86
93
  <!--</div>-->
@@ -330,11 +337,20 @@
330
337
  console.log('获取限购值', getLimit)
331
338
  self.hasLimit = getLimit.data.hasLimit
332
339
  if (self.hasLimit) {
333
- if (getLimit.data.f_limit_value < 0) {
334
- self.$showAlert(`${getLimit.data.msg}`, 'warning', 3000)
335
- self.$dispatch('refresh')
336
- } else {
337
- self.maxgas = getLimit.data.f_limit_value
340
+ if (getLimit.data.f_limit_value || getLimit.data.f_limit_amount) {
341
+ if (getLimit.data.f_limit_value < 0 || getLimit.data.f_limit_amount < 0) {
342
+ self.$showAlert(`${getLimit.data.msg}`, 'warning', 3000)
343
+ self.$dispatch('refresh')
344
+ } else {
345
+ if (getLimit.data.f_limit_value) {
346
+ self.maxgas = (getLimit.data.f_limit_value - 0)
347
+ self.limitgas = true
348
+ }
349
+ if (getLimit.data.f_limit_amount) {
350
+ self.maxmoney = (getLimit.data.f_limit_amount - 0)
351
+ self.limitmoney = true
352
+ }
353
+ }
338
354
  }
339
355
  }
340
356
  }
@@ -392,6 +408,9 @@
392
408
  validateOk: false,
393
409
 
394
410
  maxgas: 99999999,
411
+ maxmoney: 99999999,
412
+ limitmoney: false,
413
+ limitgas: false,
395
414
 
396
415
  clickConfirm: false,
397
416
 
@@ -416,7 +435,7 @@
416
435
  let getResult = this.$CommonService.calRemanentMoney(this.row)
417
436
  if (this.row.f_collection_type === '按气量') {
418
437
  if (getResult > 0) {
419
- this.model.f_pregas = this.model.f_fill_gas = getResult
438
+ this.model.f_pregas = this.model.f_fill_gas = getResult - 0
420
439
  this.model.f_preamount = 0
421
440
  } else {
422
441
  this.model.f_pregas = ''
@@ -550,6 +550,9 @@ let meterBookGen = function* (self) {
550
550
  let result = yield http.load('GET', `rs/vue/MeterinfoTest.json`, {}, {resolveMsg: null, rejectMsg: null})
551
551
  Object.assign(self.config, result.data)
552
552
  if (!self.row.f_open_way) self.row.f_open_way = self.config.open_way
553
+ if (!self.row.f_usetype || self.row.f_usetype.length === 0) {
554
+ self.row.f_usetype = self.config.f_usetype
555
+ }
553
556
  } catch (error) {
554
557
  // 忽略704,文件找不到异常
555
558
  if (error.status !== 704) {
@@ -598,6 +601,7 @@ export default {
598
601
  stuckFlowmeterShow: false,
599
602
  overduesetShow: true,
600
603
  f_install_date: true,
604
+ f_usetype: '',
601
605
  open_way: '指令开户'
602
606
  },
603
607
  mapShow: false,
File without changes
@@ -1,2 +0,0 @@
1
- #Tue Oct 22 19:40:41 CST 2024
2
- gradle.version=5.2.1
File without changes