sale-client 3.6.229 → 3.6.230

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.229",
3
+ "version": "3.6.230",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -310,7 +310,7 @@
310
310
  self.model.f_totalcost = self.model.f_preamount
311
311
  self.model.f_collection = 0
312
312
  } else {
313
- self.model.f_collection = self.config.autoCollection ? self.model.f_totalcost : 0
313
+ self.model.f_collection = self.config.autoCollection ? self.model.f_preamount : 0
314
314
  self.model.f_totalcost = ((self.model.f_totalcost - 0) - (self.dymoney - 0)).toFixed(4)
315
315
  }
316
316
  self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(4)
@@ -335,7 +335,7 @@
335
335
  self.model.f_totalcost = getAmount.data.chargenum
336
336
  self.model.f_collection = 0
337
337
  } else {
338
- self.model.f_collection = self.config.autoCollection ? self.model.f_totalcost : 0
338
+ self.model.f_collection = self.config.autoCollection ? getAmount.data.chargenum : 0
339
339
  if(self.config.floor){
340
340
  self.model.f_collection=Math.ceil(self.model.f_collection)
341
341
  }
@@ -102,7 +102,7 @@
102
102
  <div class="col-sm-3 form-group" v-if="row.f_collection_type === '按金额'">
103
103
  <label for="f_collection" class=" font_normal_body">&nbsp;&nbsp;&nbsp;收款&nbsp;&nbsp;&nbsp;</label>
104
104
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
105
- v-el:sk v-scale="[model.f_collection, 2]" disabled>
105
+ v-el:sk v-scale="[model.f_collection, 4]" disabled>
106
106
  </div>
107
107
  <div class="col-sm-1 form-group">
108
108
  <give-change :curbalance="curbalance" :collection.sync="model.f_collection" v-ref:givechange></give-change>
@@ -303,12 +303,13 @@
303
303
  self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
304
304
  }
305
305
  // self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
306
- self.model.f_collection = self.model.f_totalcost
306
+ self.model.f_collection = (self.model.f_totalcost - 0).toFixed(2)
307
307
  self.model.f_preamount = ((getGas.data.chargenum - 0) - (self.dymoney - 0))
308
308
  if (self.model.f_payment == '赠气') {
309
309
  self.model.f_totalcost = self.model.f_preamount
310
- self.model.f_collection = 0
311
- }
310
+ self.model.f_collection = 0.00
311
+ }
312
+ console.log('self.model.f_collection', self.model.f_collection)
312
313
  self.calText(getGas.data.chargeprice)
313
314
  }
314
315
  // 输入气量,换算金额
@@ -328,11 +329,12 @@
328
329
  if(self.config.floor){
329
330
  self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
330
331
  }
331
- self.model.f_collection = self.model.f_totalcost
332
+ self.model.f_collection = (self.model.f_totalcost - 0).toFixed(2)
332
333
  if (self.model.f_payment == '赠气') {
333
334
  self.model.f_totalcost = getAmount.data.chargenum
334
- self.model.f_collection = 0
335
+ self.model.f_collection = 0.00
335
336
  }
337
+ console.log('self.model.f_collection', self.model.f_collection)
336
338
  self.calText(getAmount.data.chargeprice)
337
339
  }
338
340
  }
@@ -212,7 +212,7 @@
212
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))
213
213
  Object.assign(self.model, self.model, getAmount.data)
214
214
  self.model.chargeprice = getAmount.data.chargeprice
215
- self.model.f_collection = self.model.f_totalcost
215
+ self.model.f_collection = getAmount.data.chargenum - 0
216
216
  if(self.config.floor){
217
217
  self.model.f_collection=Math.ceil(self.model.f_collection)
218
218
  }