sale-client 3.6.509 → 3.6.510

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,2 +1,2 @@
1
- #Mon Mar 17 13:40:05 CST 2025
1
+ #Wed Mar 26 10:38:22 CST 2025
2
2
  gradle.version=5.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.509",
3
+ "version": "3.6.510",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  <label for="f_pregas" class=" font_normal_body">*预购气量</label>
20
20
  <input class="input_search" style="width:60%" type="number" :disabled="config.calculatePreByCollection"
21
21
  @blur="pregas()" v-model="model.f_pregas" v-el:fpregas
22
- v-scale="[model.f_pregas, 2]"
22
+ v-scale="[model.f_pregas, 3]"
23
23
  v-validate:f_pregas='{required: true, dctest: [maxgas, "<=" ]}' placeholder="预购气量"
24
24
  v-next-el='fcollection'>
25
25
  </div>
@@ -27,7 +27,7 @@
27
27
  <label for="f_pregas" class=" font_normal_body">*预购气量</label>
28
28
  <input class="input_search" style="width:60%" type="number" v-el:fpregas
29
29
  @blur="pregas()" v-model="model.f_pregas" placeholder="预购气量"
30
- v-scale="[model.f_pregas, 2]"
30
+ v-scale="[model.f_pregas, 3]"
31
31
  v-next-el='fcollection' :disabled="config.calculatePreByCollection"/>
32
32
  </div>
33
33
  <div class="col-sm-4"
@@ -42,7 +42,7 @@
42
42
  <div class="col-sm-4" v-if="row.f_collection_type == '按气量'">
43
43
  <label for="f_preamount" class=" font_normal_body">&nbsp;预购金额</label>
44
44
  <input class="input_search" style="width:60%" type="number" v-model="model.f_preamount"
45
- v-scale="[model.f_preamount, 4]" placeholder="预购金额" disabled>
45
+ v-scale="[model.f_preamount, 3]" placeholder="预购金额" disabled>
46
46
  </div>-->
47
47
 
48
48
  </div>
@@ -63,12 +63,12 @@
63
63
  <div class="col-sm-4 " v-if="hasLimit&&limitgas">
64
64
  <label class="font_normal_body">&ensp;购气上限</label>
65
65
  <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="maxgas"
66
- v-scale="[maxgas, 4]" placeholder='限购余气' disabled>
66
+ v-scale="[maxgas, 3]" placeholder='限购余气' disabled>
67
67
  </div>
68
68
  <div class="col-sm-4 form-group" v-if="hasLimit&&limitmoney">
69
69
  <label class="font_normal_body">金额上限</label>
70
70
  <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="maxmoney"
71
- v-scale="[maxmoney, 2]" placeholder='限购金额' disabled>
71
+ v-scale="[maxmoney, 3]" placeholder='限购金额' disabled>
72
72
  </div>
73
73
  <div class="col-sm-4" v-if="!hasLimit">
74
74
  </div>
@@ -88,13 +88,13 @@
88
88
  <div class="col-sm-4">
89
89
  <label for="f_balance" class="font_normal_body">上期结余</label>
90
90
  <input class="input_search" style="width:60%" type="number" v-model="model.f_balance"
91
- v-scale="[model.f_balance, 4]" placeholder="上期结余" disabled>
91
+ v-scale="[model.f_balance, 3]" placeholder="上期结余" disabled>
92
92
  </div>
93
93
 
94
94
  <div class="col-sm-4">
95
95
  <label for="f_curbalance" class="font_normal_body">&nbsp;本期结余</label>
96
96
  <input class="input_search" style="width:60%" type="number" v-model="curbalance"
97
- v-scale="[curbalance, 4]" placeholder="本期结余" disabled>
97
+ v-scale="[curbalance, 3]" placeholder="本期结余" disabled>
98
98
  </div>
99
99
 
100
100
  <div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment!='赠气' && row.f_meter_type.includes('卡表') && !config.calculatePreByCollection"
@@ -103,13 +103,13 @@
103
103
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
104
104
  v-validate:f_collection='{required: true, dctest: [(model.f_totalcost - 0), ">=" ] }'
105
105
  v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"
106
- v-scale="[model.f_collection, 2]" :disabled="$refs.givechange.promptText != ''"/>
106
+ v-scale="[model.f_collection, 3]" :disabled="$refs.givechange.promptText != ''"/>
107
107
  </div>
108
108
  <div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment!='赠气' && row.f_meter_type.includes('卡表') && config.calculatePreByCollection"
109
109
  :class="[$v.f_collection.required ? 'has-error' : 'has-success']">
110
110
  <label for="f_collection" class=" font_normal_body">*收&emsp;&emsp;款</label>
111
111
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
112
- v-scale="[model.f_collection, 2]"
112
+ v-scale="[model.f_collection, 3]"
113
113
  v-validate:f_collection='{required: true }'
114
114
  @blur="calculatePreByCollection()"
115
115
  v-el:fcollection
@@ -120,15 +120,15 @@
120
120
  <label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold">*收&emsp;款</font></label>
121
121
  <input id="f_collection" class="input_search" style="width:60%;font-size: 18px;font-weight:bold;" type="number" v-model="model.f_collection"
122
122
  @blur="config.calculatePreByCollection && calculatePreByCollection()"
123
- v-scale="[model.f_collection, 2]"
124
- v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_totalcost, 4]" :disabled="$refs.givechange.promptText != ''">
123
+ v-scale="[model.f_collection, 3]"
124
+ v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_totalcost, 3]" :disabled="$refs.givechange.promptText != ''">
125
125
  </div>
126
126
  <div class="col-sm-3" v-if="row.f_collection_type === '按金额' && row.f_meter_type.includes('卡表')">
127
127
  <label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold">*收&emsp;款</font></label>
128
128
  <input id="f_collection" class="input_search" style="width:50%;font-size: 18px;font-weight:bold;" type="number" v-model="model.f_collection"
129
129
  @blur="config.calculatePreByCollection && calculatePreByCollection()"
130
- v-scale="[model.f_collection, 2]"
131
- v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_collection, 4]" :disabled="$refs.givechange.promptText != ''">
130
+ v-scale="[model.f_collection, 3]"
131
+ v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_collection, 3]" :disabled="$refs.givechange.promptText != ''">
132
132
  </div>
133
133
  <div class="col-sm-4" v-if="!row.f_meter_type.includes('卡表')">
134
134
  <label for="f_collection" class=" font_normal_body"><font size="4px"
@@ -138,7 +138,7 @@
138
138
  v-el:fcollection
139
139
  @blur="config.calculatePreByCollection && calculatePreByCollection()"
140
140
  @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"
141
- v-scale="[model.f_collection, 4]" :disabled="!config.calculatePreByCollection">
141
+ v-scale="[model.f_collection, 3]" :disabled="!config.calculatePreByCollection">
142
142
  </div>
143
143
  <div class="col-sm-1 form-group" v-show=" row.f_meter_type.includes('卡表')">
144
144
  <give-change :curbalance="curbalance" :collection.sync="model.f_collection" v-ref:givechange></give-change>
@@ -164,12 +164,12 @@
164
164
  <div class="col-sm-4">
165
165
  <label for="f_preamount" class=" font_normal_body">&nbsp;优惠金额</label>
166
166
  <input class="input_search" style="width:60%" type="number" v-model="model.f_privilege_money"
167
- v-scale="[model.f_privilege_money, 2]" placeholder="优惠金额" disabled>
167
+ v-scale="[model.f_privilege_money, 3]" placeholder="优惠金额" disabled>
168
168
  </div>
169
169
  <div class="col-sm-4">
170
170
  <label for="f_preamount" class=" font_normal_body">&nbsp;实际收款</label>
171
171
  <input class="input_search" style="width:60%" type="number" v-model="model.f_after_discount"
172
- v-scale="[model.f_after_discount, 2]" placeholder="优惠后收款" disabled>
172
+ v-scale="[model.f_after_discount, 3]" placeholder="优惠后收款" disabled>
173
173
  </div>
174
174
  </div>
175
175
 
@@ -248,9 +248,9 @@
248
248
 
249
249
  // 输入金额,换算气量
250
250
  let preamountGen = async function (self) {
251
- let calFee = ((self.model.f_preamount - 0)).toFixed(4)
251
+ let calFee = ((self.model.f_preamount - 0)).toFixed(3)
252
252
  if (self.model.f_payment == '赠气') {
253
- calFee = (self.model.f_preamount - 0).toFixed(4)
253
+ calFee = (self.model.f_preamount - 0).toFixed(3)
254
254
  }
255
255
  // 通过金额进行划价
256
256
  let getGas = await self.$CommonService.feeCalculate(self.model, calFee)
@@ -259,18 +259,18 @@
259
259
  if (self.row.f_alias === 'QiaoSong') {
260
260
  self.model.f_pregas = (getGas.data.gas - 0).toFixed(1)
261
261
  } else {
262
- self.model.f_pregas = (getGas.data.gas - 0).toFixed(4)
262
+ self.model.f_pregas = (getGas.data.gas - 0).toFixed(3)
263
263
  }
264
264
  if (self.row.f_collection_type === '按金额') {
265
265
  self.dymoney = 0
266
266
  } else {
267
- let dymoney2 = await self.$CommonService.gasCalculate(self.model, (getGas.data.gas - 0).toFixed(4))
268
- self.dymoney = (getGas.data.chargenum - 0).toFixed(4) - (dymoney2.data.chargenum - 0).toFixed(4)
267
+ let dymoney2 = await self.$CommonService.gasCalculate(self.model, (getGas.data.gas - 0).toFixed(3))
268
+ self.dymoney = (getGas.data.chargenum - 0).toFixed(3) - (dymoney2.data.chargenum - 0).toFixed(3)
269
269
  }
270
270
  } else {
271
271
  // 如果不支持小数,将划价出的多余非整数气量进行划价为金额
272
272
  let tempnum = Math.floor(getGas.data.gas - 0)
273
- let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(4))
273
+ let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(3))
274
274
  self.dymoney = (getGas.data.chargenum - 0).toFixed(2) - (dymoney1.data.chargenum - 0).toFixed(2)
275
275
  self.model.f_pregas = Math.floor(getGas.data.gas - 0)
276
276
  }
@@ -284,24 +284,24 @@
284
284
  self.model.f_collection = 0
285
285
  } else {
286
286
  self.model.f_collection = self.config.autoCollection ? self.model.f_totalcost : 0
287
- self.model.f_totalcost = ((self.model.f_totalcost - 0) - (self.dymoney - 0)).toFixed(4)
287
+ self.model.f_totalcost = ((self.model.f_totalcost - 0) - (self.dymoney - 0)).toFixed(3)
288
288
  }
289
- self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(4)
289
+ self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(3)
290
290
  self.calText(getGas.data.chargeprice)
291
291
  }
292
292
 
293
293
  // 输入气量,换算金额
294
294
  let pregasGen = async function (self) {
295
295
  if (self.row.f_isdecimal === '是') {
296
- self.model.f_pregas = (self.model.f_pregas - 0).toFixed(4)
296
+ self.model.f_pregas = (self.model.f_pregas - 0).toFixed(3)
297
297
  } else {
298
298
  self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
299
299
  }
300
300
  if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
301
301
  self.model.f_meter_type = self.row.f_meter_type
302
302
  let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
303
- self.model.f_preamount = getAmount.data.chargenum
304
- self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(4))
303
+ self.model.f_preamount = getAmount.data.chargenum.toFixed(3)
304
+ self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(3))
305
305
  Object.assign(self.model, self.model, getAmount.data)
306
306
  self.model.chargeprice = getAmount.data.chargeprice
307
307
  if (self.model.f_payment == '赠气') {
@@ -330,7 +330,7 @@
330
330
  self.model.xiekamoney = self.model.f_preamount
331
331
  if (self.row.f_price_type == '阶梯气价' && self.row.f_is_step == '否' && self.row.f_collection_type == '按金额') {
332
332
  self.model.xiekamoney = (self.model.f_pregas * self.model.chargeprice[0].f_price)
333
- self.model.xiekamoney = self.model.xiekamoney.toFixed(4)
333
+ self.model.xiekamoney = self.model.xiekamoney.toFixed(3)
334
334
  }
335
335
 
336
336
  self.model.payments = self.paymentModel
@@ -658,7 +658,7 @@
658
658
  async calculatePreByCollection() {
659
659
  try {
660
660
  this.model.f_collection = (this.model.f_collection - 0)
661
- let calFee = ((this.model.f_collection - 0) + (this.row.f_balance)).toFixed(4)
661
+ let calFee = ((this.model.f_collection - 0) + (this.row.f_balance)).toFixed(3)
662
662
  // 通过收款进行划价
663
663
  let getGas = await this.$CommonService.feeCalculate(this.model, calFee)
664
664
  this.model.f_pregas = parseInt(getGas.data.gas)
@@ -908,17 +908,17 @@
908
908
  }
909
909
  if (this.model.f_preamount) {
910
910
  if (this.config.calculatePreByCollection) {
911
- return ((this.model.f_collection - 0) + (this.row.f_balance - 0) - this.model.f_preamount).toFixed(4)
911
+ return ((this.model.f_collection - 0) + (this.row.f_balance - 0) - this.model.f_preamount).toFixed(3)
912
912
  }
913
913
  // if (this.row.f_collection_type === '按金额') {
914
- // return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(4)
914
+ // return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(3)
915
915
  // } else {
916
916
  if ((this.row.f_balance - 0) > (this.model.f_preamount - 0)) {
917
- return ((this.row.f_balance - 0) - (this.model.f_preamount - 0) + (this.model.f_collection - 0)).toFixed(4)
917
+ return ((this.row.f_balance - 0) - (this.model.f_preamount - 0) + (this.model.f_collection - 0)).toFixed(3)
918
918
  } else {
919
- return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(4)
919
+ return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(3)
920
920
  }
921
- // return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(4)
921
+ // return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(3)
922
922
  // }
923
923
  } else {
924
924
  return this.row.f_balance
@@ -226,14 +226,14 @@
226
226
  if (self.row.f_alias === 'QiaoSong') {
227
227
  self.model.f_pregas = (getGas.data.gas - 0).toFixed(1)
228
228
  } else {
229
- self.model.f_pregas = (getGas.data.gas - 0).toFixed(4)
229
+ self.model.f_pregas = (getGas.data.gas - 0).toFixed(2)
230
230
  }
231
231
  self.dymoney = 0
232
232
  } else {
233
233
  // 如果不支持小数,将划价出的多余非整数气量进行划价为金额
234
234
  let tempnum = Math.floor(getGas.data.gas - 0)
235
235
  if (getGas.data.gas > tempnum) { // getGas.data.gas-tempnum-0
236
- let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(4))
236
+ let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(2))
237
237
  if (dymoney1.data.money) {
238
238
  self.dymoney = (getGas.data.money - 0).toFixed(2) - (dymoney1.data.money - 0).toFixed(2)
239
239
  }
@@ -247,7 +247,7 @@
247
247
  if (self.config.priceCalculation) {
248
248
  self.model.f_pregas = 0
249
249
  }
250
- self.model.f_totalcost = ((self.row.f_balance - 0) > (self.model.f_preamount - 0) ? 0 : ((self.model.f_preamount - 0) - (self.row.f_balance - 0)).toFixed(4))
250
+ self.model.f_totalcost = ((self.row.f_balance - 0) > (self.model.f_preamount - 0) ? 0 : ((self.model.f_preamount - 0) - (self.row.f_balance - 0)).toFixed(2))
251
251
 
252
252
  self.model.chargeprice = getGas.data.chargeprice
253
253
  Object.assign(self.model, self.model, getGas.data)
@@ -267,7 +267,7 @@
267
267
  // 输入气量,换算金额
268
268
  let pregasGen = async function (self) {
269
269
  if (self.row.f_isdecimal === '是') {
270
- self.model.f_pregas = (self.model.f_pregas - 0).toFixed(4)
270
+ self.model.f_pregas = (self.model.f_pregas - 0).toFixed(2)
271
271
  } else {
272
272
  self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
273
273
  }
@@ -275,12 +275,12 @@
275
275
  self.model.f_meter_type = self.row.f_meter_type
276
276
  let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
277
277
  self.model.f_preamount = getAmount.data.chargenum
278
- self.model.f_totalcost = (self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(4)
278
+ self.model.f_totalcost = (self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(2)
279
279
  Object.assign(self.model, self.model, getAmount.data)
280
280
  self.model.chargeprice = getAmount.data.chargeprice
281
- if (self.config.floor) {
282
- self.model.f_totalcost = Math.ceil(self.model.f_totalcost)
283
- }
281
+ // if (self.config.floor) {
282
+ // self.model.f_totalcost = Math.ceil(self.model.f_totalcost)
283
+ // }
284
284
  self.model.f_collection = self.model.f_totalcost
285
285
  if (self.model.f_payment == '赠气') {
286
286
  self.model.f_totalcost = getAmount.data.chargenum
@@ -32,7 +32,7 @@
32
32
  <label for="f_preamount" class=" font_normal_body">预购金额</label>
33
33
  <input class="input_search" style="width:60%" type="number" v-model="model.f_preamount"
34
34
  v-validate:f_preamount='{required: true, dctest: [maxmoney, "<=" ] }'
35
- v-scale="[model.f_preamount, 4]" placeholder="预购金额" disabled>
35
+ v-scale="[model.f_preamount, 3]" placeholder="预购金额" disabled>
36
36
  </div>
37
37
  </div>
38
38
  <div class="row" style="margin-top:6px;">
@@ -69,19 +69,19 @@
69
69
  <input class="input_search" style="width:60%" type="number"
70
70
  @blur="preamount()" v-model="model.f_totalcost"
71
71
  v-validate:f_totalcost='{required: true, dctest: [0, ">=" ] }' placeholder="应收金额"
72
- v-next-el='sk' v-scale="[model.f_totalcost, 4]" >
72
+ v-next-el='sk' v-scale="[model.f_totalcost, 3]" >
73
73
  </div>
74
74
  </div>
75
75
  <div class="row">
76
76
  <div class="col-sm-4">
77
77
  <label for="f_balance" class="font_normal_body">上期结余</label>
78
78
  <input class="input_search" style="width:60%" type="number" v-model="model.f_balance"
79
- v-scale="[model.f_balance, 4]" placeholder="上期结余" disabled>
79
+ v-scale="[model.f_balance, 3]" placeholder="上期结余" disabled>
80
80
  </div>
81
81
  <div class="col-sm-4">
82
82
  <label for="f_curbalance" class="font_normal_body">本期结余</label>
83
83
  <input class="input_search" style="width:60%" type="number" v-model="curbalance"
84
- v-scale="[model.f_curbalance, 4]" placeholder="本期结余" disabled>
84
+ v-scale="[model.f_curbalance, 3]" placeholder="本期结余" disabled>
85
85
  </div>
86
86
 
87
87
  <div class="col-sm-4" v-if="row.f_collection_type === '按气量'"
@@ -89,12 +89,12 @@
89
89
  <label for="f_collection" class=" font_normal_body">&nbsp;&nbsp;&nbsp;收款&nbsp;&nbsp;&nbsp;</label>
90
90
  <input class="input_search" style="width:60%" type="number" v-model="model.f_collection"
91
91
  v-validate:f_collection='{required: true, dctest: [model.f_totalcost, ">=" ] }'
92
- v-el:sk v-scale="[model.f_totalcost, 2]">
92
+ v-el:sk v-scale="[model.f_totalcost, 3]">
93
93
  </div>
94
94
  <div class="col-sm-4" v-if="row.f_collection_type === '按金额'">
95
95
  <label for="f_collection" class=" font_normal_body">&nbsp;&nbsp;&nbsp;收款&nbsp;&nbsp;&nbsp;</label>
96
96
  <input class="input_search" style="width:60%" type="number" v-model="model.f_collection"
97
- v-el:sk v-scale="[model.f_collection, 4]" disabled>
97
+ v-el:sk v-scale="[model.f_collection, 3]" disabled>
98
98
  </div>
99
99
  </div>
100
100
  <div class="row" style="margin-top:5px;">
@@ -178,7 +178,7 @@
178
178
  if (self.row.f_alias === 'QiaoSong') {
179
179
  self.model.f_pregas = (getGas.data.gas - 0).toFixed(1)
180
180
  } else {
181
- self.model.f_pregas = (getGas.data.gas - 0).toFixed(4)
181
+ self.model.f_pregas = (getGas.data.gas - 0).toFixed(3)
182
182
  }
183
183
  } else {
184
184
  let tempnum = Math.floor(getGas.data.gas - 0)
@@ -190,26 +190,27 @@
190
190
  self.model.f_preamount = calFee - (dymoney - 0)
191
191
  self.model.chargeprice = getGas.data.chargeprice
192
192
  Object.assign(self.model, self.model, getGas.data)
193
- self.model.f_totalcost = ((self.model.f_totalcost - 0) - (dymoney - 0)).toFixed(4)
193
+ self.model.f_totalcost = ((self.model.f_totalcost - 0) - (dymoney - 0)).toFixed(3)
194
+ // self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
195
+ // if(self.config.floor){
196
+ // self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
197
+ // }
194
198
  // self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
195
- if(self.config.floor){
196
- self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
197
- }
198
199
  self.calText(getGas.data.chargeprice)
199
200
  }
200
201
 
201
202
  // 输入气量,换算金额
202
203
  let pregasGen = async function (self) {
203
204
  if (self.row.f_isdecimal === '是') {
204
- self.model.f_pregas = (self.model.f_pregas - 0).toFixed(4)
205
+ self.model.f_pregas = (self.model.f_pregas - 0).toFixed(3)
205
206
  } else {
206
207
  self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
207
208
  }
208
209
  if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
209
210
  self.model.f_meter_type = self.row.f_meter_type
210
211
  let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
211
- self.model.f_preamount = getAmount.data.chargenum
212
- self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(4))
212
+ self.model.f_preamount = getAmount.data.chargenum.toFixed(3)
213
+ self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(3))
213
214
  Object.assign(self.model, self.model, getAmount.data)
214
215
  self.model.chargeprice = getAmount.data.chargeprice
215
216
  self.model.f_collection = self.model.f_totalcost
@@ -226,7 +227,7 @@
226
227
  self.model.f_write_money = self.model.f_preamount
227
228
  if (self.row.f_price_type == '阶梯气价' && self.row.f_is_step == '否') {
228
229
  self.model.f_write_money = (self.model.f_pregas * self.model.chargeprice[0].f_price)
229
- self.model.f_write_money = self.model.f_write_money.toFixed(2)
230
+ self.model.f_write_money = self.model.f_write_money.toFixed(3)
230
231
  }
231
232
  // 加入扫码盒付款码支付流水号
232
233
  self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
@@ -18,7 +18,7 @@
18
18
  :class="[$v.f_pregas.required || $v.f_pregas.dctest? 'has-error' : 'has-success']">
19
19
  <label for="f_pregas" class=" font_normal_body">*预购气量</label>
20
20
  <input class="input_search" style="width:60%" type="number" id="fouces"
21
- v-scale="[model.f_pregas, 2]"
21
+ v-scale="[model.f_pregas, 3]"
22
22
  @blur="pregas()" v-model="model.f_pregas" :disabled="config.calculatePreByCollection"
23
23
  v-validate:f_pregas='{required: true, dctest: [maxgas, "<=" ]}' placeholder="预购气量"
24
24
  v-next-el='sk'>
@@ -51,12 +51,12 @@
51
51
  <div class="col-sm-4 form-group" v-if="hasLimit&&limitgas">
52
52
  <label class="font_normal_body">&nbsp;购气上限</label>
53
53
  <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="maxgas"
54
- v-scale="[maxgas, 4]" placeholder='限购余气' disabled>
54
+ v-scale="[maxgas, 3]" placeholder='限购余气' disabled>
55
55
  </div>
56
56
  <div class="col-sm-4 form-group" v-if="hasLimit&&limitmoney">
57
57
  <label class="font_normal_body">金额上限</label>
58
58
  <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="maxmoney"
59
- v-scale="[maxmoney, 2]" placeholder='限购金额' disabled>
59
+ v-scale="[maxmoney, 3]" placeholder='限购金额' disabled>
60
60
  </div>
61
61
  <div class="col-sm-4 form-group" v-if="!hasLimit">
62
62
  </div>
@@ -77,12 +77,12 @@
77
77
  <div class="col-sm-4 form-group">
78
78
  <label for="f_balance" class="font_normal_body">上期结余</label>
79
79
  <input class="input_search" style="width:60%" type="number" v-model="model.f_balance"
80
- v-scale="[model.f_balance, 4]" placeholder="上期结余" disabled>
80
+ v-scale="[model.f_balance, 3]" placeholder="上期结余" disabled>
81
81
  </div>
82
82
  <div class="col-sm-4 form-group">
83
83
  <label for="f_curbalance" class="font_normal_body">&nbsp;本期结余</label>
84
84
  <input class="input_search" style="width:60%" type="number" v-model="curbalance"
85
- v-scale="[model.f_curbalance, 4]" placeholder="本期结余" disabled>
85
+ v-scale="[model.f_curbalance, 3]" placeholder="本期结余" disabled>
86
86
  </div>
87
87
 
88
88
  <div class="col-sm-3 form-group" v-if="row.f_collection_type === '按气量'"
@@ -92,17 +92,17 @@
92
92
  @blur="calculatePreByCollection()"
93
93
  v-show="config.calculatePreByCollection"
94
94
  v-validate:f_collection='{required: true, dctest: [(model.f_totalcost - 0) + (openFee - 0), ">=" ] }'
95
- v-el:sk v-scale="[model.f_collection, 2]" :disabled="$refs.givechange.promptText != ''">
95
+ v-el:sk v-scale="[model.f_collection, 3]" :disabled="$refs.givechange.promptText != ''">
96
96
  <input class="input_search" style="width:60%" type="number" v-model="model.f_collection"
97
97
  v-show="!config.calculatePreByCollection"
98
98
  v-validate:f_collection='{required: true, dctest: [(model.f_totalcost - 0) + (openFee - 0), ">=" ] }'
99
- v-el:sk v-scale="[model.f_collection, 2]" :disabled="$refs.givechange.promptText != ''">
99
+ v-el:sk v-scale="[model.f_collection, 3]" :disabled="$refs.givechange.promptText != ''">
100
100
  </div>
101
101
  <div class="col-sm-3 form-group" v-if="row.f_collection_type === '按金额'">
102
102
  <label for="f_collection" class=" font_normal_body">*收&emsp;&emsp;款</label>
103
103
  <input class="input_search" style="width:50%" type="number" v-model="model.f_collection"
104
104
  @blur="config.calculatePreByCollection && calculatePreByCollection()"
105
- v-el:sk v-scale="[model.f_collection, 2]" :disabled="$refs.givechange.promptText != ''">
105
+ v-el:sk v-scale="[model.f_collection, 3]" :disabled="$refs.givechange.promptText != ''">
106
106
  </div>
107
107
  <div class="col-sm-1 form-group">
108
108
  <give-change :curbalance="curbalance" :collection.sync="model.f_collection"
@@ -121,12 +121,12 @@
121
121
  <div class="col-sm-4 form-group">
122
122
  <label for="f_preamount" class=" font_normal_body">&nbsp;优惠金额</label>
123
123
  <input class="input_search" style="width:60%" type="number" v-model="model.f_privilege_money"
124
- v-scale="[model.f_privilege_money, 2]" placeholder="优惠金额" disabled>
124
+ v-scale="[model.f_privilege_money, 3]" placeholder="优惠金额" disabled>
125
125
  </div>
126
126
  <div class="col-sm-4 form-group">
127
127
  <label for="f_preamount" class=" font_normal_body">&nbsp;实际收款</label>
128
128
  <input class="input_search" style="width:60%" type="number" v-model="model.f_after_discount"
129
- v-scale="[model.f_after_discount, 2]" placeholder="优惠后收款" disabled>
129
+ v-scale="[model.f_after_discount, 3]" placeholder="优惠后收款" disabled>
130
130
  </div>
131
131
  </div>
132
132
  <div class="row" v-if="openFee > 0">
@@ -275,9 +275,9 @@
275
275
 
276
276
  import {HttpResetClass} from 'vue-client'
277
277
  let preamountGen = async function (self) {
278
- let calFee = ((self.model.f_preamount - 0)).toFixed(4)
278
+ let calFee = ((self.model.f_preamount - 0)).toFixed(3)
279
279
  if (self.model.f_payment == '赠气') {
280
- calFee = (self.model.f_preamount - 0).toFixed(4)
280
+ calFee = (self.model.f_preamount - 0).toFixed(3)
281
281
  }
282
282
  // 通过金额进行划价
283
283
  let getGas = await self.$CommonService.feeCalculate(self.model, calFee)
@@ -286,46 +286,46 @@ let preamountGen = async function (self) {
286
286
  if (self.row.f_alias === 'QiaoSong') {
287
287
  self.model.f_pregas = (getGas.data.gas - 0).toFixed(1)
288
288
  } else {
289
- self.model.f_pregas = (getGas.data.gas - 0).toFixed(4)
289
+ self.model.f_pregas = (getGas.data.gas - 0).toFixed(3)
290
290
  }
291
291
  if (self.row.f_collection_type === '按金额') {
292
292
  self.dymoney = 0
293
293
  } else {
294
- let dymoney2 = await self.$CommonService.gasCalculate(self.model, (getGas.data.gas - 0).toFixed(4))
295
- self.dymoney = (getGas.data.chargenum - 0).toFixed(4) - (dymoney2.data.chargenum - 0).toFixed(4)
294
+ let dymoney2 = await self.$CommonService.gasCalculate(self.model, (getGas.data.gas - 0).toFixed(3))
295
+ self.dymoney = (getGas.data.chargenum - 0).toFixed(3) - (dymoney2.data.chargenum - 0).toFixed(3)
296
296
  }
297
297
  } else {
298
298
  // 如果不支持小数,将划价出的多余非整数气量进行划价为金额
299
299
  let tempnum = Math.floor(getGas.data.gas - 0)
300
- let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(4))
301
- self.dymoney = (getGas.data.chargenum - 0).toFixed(2) - (dymoney1.data.chargenum - 0).toFixed(2)
300
+ let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(3))
301
+ self.dymoney = (getGas.data.chargenum - 0).toFixed(3) - (dymoney1.data.chargenum - 0).toFixed(3)
302
302
  self.model.f_pregas = Math.floor(getGas.data.gas - 0)
303
303
  }
304
304
  }
305
- self.model.f_totalcost = ((self.row.f_balance - 0) >= (calFee - 0) ? 0 : ((calFee - 0) - (self.row.f_balance - 0)).toFixed(2))
305
+ self.model.f_totalcost = ((self.row.f_balance - 0) >= (calFee - 0) ? 0 : ((calFee - 0) - (self.row.f_balance - 0)).toFixed(3))
306
306
  self.model.chargeprice = getGas.data.chargeprice
307
307
  Object.assign(self.model, self.model, getGas.data)
308
- self.model.f_totalcost = ((self.dymoney - 0) >= (self.model.f_totalcost - 0) ? 0 : (self.model.f_totalcost - 0) - (self.dymoney - 0).toFixed(2))
308
+ self.model.f_totalcost = ((self.dymoney - 0) >= (self.model.f_totalcost - 0) ? 0 : (self.model.f_totalcost - 0) - (self.dymoney - 0).toFixed(3))
309
309
  self.model.f_collection = self.model.f_totalcost
310
310
  if (self.config.floor) {
311
311
  self.model.f_collection = Math.ceil(self.model.f_collection)
312
312
  }
313
- self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(4)
313
+ self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(3)
314
314
  self.calText(getGas.data.chargeprice)
315
315
  }
316
316
 
317
317
  // 输入气量,换算金额
318
318
  let pregasGen = async function (self) {
319
319
  if (self.row.f_isdecimal === '是') {
320
- self.model.f_pregas = (self.model.f_pregas - 0).toFixed(4)
320
+ self.model.f_pregas = (self.model.f_pregas - 0).toFixed(3)
321
321
  } else {
322
322
  self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
323
323
  }
324
324
  if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
325
325
  self.model.f_meter_type = self.row.f_meter_type
326
326
  let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
327
- self.model.f_preamount = getAmount.data.chargenum
328
- self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(4))
327
+ self.model.f_preamount = getAmount.data.chargenum.toFixed(3)
328
+ self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(3))
329
329
  Object.assign(self.model, self.model, getAmount.data)
330
330
  self.model.chargeprice = getAmount.data.chargeprice
331
331
  self.model.f_collection = self.model.f_totalcost
@@ -348,7 +348,7 @@ let initCardGen = async function (self) {
348
348
  self.model.xiekamoney = self.model.f_preamount
349
349
  if (self.row.f_price_type == '阶梯气价' && self.row.f_is_step == '否' && self.row.f_collection_type == '按金额') {
350
350
  self.model.xiekamoney = (self.model.f_pregas * self.model.chargeprice[0].f_price)
351
- self.model.xiekamoney = self.model.xiekamoney.toFixed(4)
351
+ self.model.xiekamoney = self.model.xiekamoney.toFixed(3)
352
352
  }
353
353
 
354
354
  self.model.payments = self.paymentModel
@@ -644,7 +644,7 @@ export default {
644
644
  async calculatePreByCollection() {
645
645
  try {
646
646
  this.model.f_collection = (this.model.f_collection - 0)
647
- let calFee = ((this.model.f_collection - 0) + (this.row.f_balance)).toFixed(4)
647
+ let calFee = ((this.model.f_collection - 0) + (this.row.f_balance)).toFixed(3)
648
648
  // 通过收款进行划价
649
649
  let getGas = await this.$CommonService.feeCalculate(this.model, calFee)
650
650
  this.model.f_pregas = parseInt(getGas.data.gas)
@@ -889,13 +889,13 @@ export default {
889
889
  return this.model.f_balance
890
890
  }
891
891
  if (this.config.calculatePreByCollection) {
892
- return ((this.model.f_collection - 0) + (this.row.f_balance - 0) - this.model.f_preamount).toFixed(4)
892
+ return ((this.model.f_collection - 0) + (this.row.f_balance - 0) - this.model.f_preamount).toFixed(3)
893
893
  }
894
894
  if (this.model.f_preamount) {
895
895
  if ((this.row.f_balance - 0) > (this.model.f_preamount - 0)) {
896
- return ((this.row.f_balance - 0) - (this.model.f_preamount - 0) + (this.model.f_collection - 0)).toFixed(4)
896
+ return ((this.row.f_balance - 0) - (this.model.f_preamount - 0) + (this.model.f_collection - 0)).toFixed(3)
897
897
  } else {
898
- return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(4)
898
+ return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(3)
899
899
  }
900
900
  } else {
901
901
  return this.row.f_balance
File without changes
File without changes
Binary file