sale-client 3.6.459 → 3.6.460

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.459",
3
+ "version": "3.6.460",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -207,6 +207,7 @@
207
207
  */
208
208
 
209
209
  import {HttpResetClass} from 'vue-client'
210
+ import Vue from "vue";
210
211
 
211
212
  // 输入金额,换算气量
212
213
  /* let preamountGen = async function (self) {
@@ -542,6 +543,11 @@
542
543
  // 获取计算优惠
543
544
  this.getPrivilegeList()
544
545
  },
546
+ 'model.f_privilege_money' (val) {
547
+ if (val) {
548
+ this.getPrivilegeGas(val)
549
+ }
550
+ },
545
551
  'model.f_payment' (val) {
546
552
  if (val == '免交') {
547
553
  this.mjshow = true
@@ -574,6 +580,12 @@
574
580
  }
575
581
  },
576
582
  methods: {
583
+ async getPrivilegeGas (money) {
584
+ let http = new HttpResetClass()
585
+ let result = await http.load('POST', 'rs/logic/commonCal', {data: {model: this.model, isGasValue: 1, value: money}}, {resolveMsg: null, rejectMsg: '获取气量失败'})
586
+ console.log('result=====================>', result)
587
+ this.model.f_privilege_gas = result.data.gas
588
+ },
577
589
  checkInvoiceMsg () {
578
590
  console.debug('checkInvoiceMsg', this.model.f_print[0])
579
591
  if (['电子发票', '数电普票', '数电专票'].includes(this.model.f_print[0])) {