sale-client 4.3.77 → 4.3.78
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/build/dev-server.js +10 -10
- package/package.json +1 -1
- package/src/components/charge/business/CardMeterCenter.vue +54 -29
- package/src/components/charge/business/NoCardMeterCenter.vue +57 -33
- package/src/components/charge/business/ShowCardSellGas.vue +58 -33
- package/src/main.js +1 -1
- package/src/plugins/CardService.js +3 -0
package/build/dev-server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
2
|
var checkVersion = require('./versionCheck.js')
|
|
3
3
|
checkVersion()
|
|
4
|
-
const [ serverRul, localUrl ] = ['http://192.168.50.67:31567/', 'http://
|
|
4
|
+
const [ serverRul, localUrl ] = ['http://192.168.50.67:31567/', 'http://localhost:9026']
|
|
5
5
|
var merge = require('webpack-merge')
|
|
6
6
|
var baseConfig = require('./webpack.dev.conf')
|
|
7
7
|
var devConfig = {
|
|
@@ -25,12 +25,12 @@ var devConfig = {
|
|
|
25
25
|
// },
|
|
26
26
|
// target: localUrl
|
|
27
27
|
// },
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
'/api/af-revenue/logic': {
|
|
29
|
+
pathRewrite: {
|
|
30
|
+
'/api/af-revenue/logic': '/logic'
|
|
31
|
+
},
|
|
32
|
+
target: localUrl
|
|
33
|
+
},
|
|
34
34
|
// '/api/af-revenue/file': {
|
|
35
35
|
// // pathRewrite: {
|
|
36
36
|
// // '/api/af-revenue/file': '/file'
|
|
@@ -57,17 +57,17 @@ var devConfig = {
|
|
|
57
57
|
// target: "http://localhost:9026"
|
|
58
58
|
// },
|
|
59
59
|
'/api': {
|
|
60
|
-
target:
|
|
60
|
+
target: serverRul,
|
|
61
61
|
secure: false,
|
|
62
62
|
changeOrigin: true,
|
|
63
63
|
},
|
|
64
64
|
'/resource': {
|
|
65
|
-
target:
|
|
65
|
+
target: serverRul,
|
|
66
66
|
secure: false,
|
|
67
67
|
changeOrigin: true
|
|
68
68
|
},
|
|
69
69
|
'/rs': {
|
|
70
|
-
target:
|
|
70
|
+
target: serverRul,
|
|
71
71
|
secure: false,
|
|
72
72
|
changeOrigin: true,
|
|
73
73
|
}
|
package/package.json
CHANGED
|
@@ -294,6 +294,9 @@
|
|
|
294
294
|
self.model.f_collection = self.config.autoCollection ? self.model.f_totalcost : 0
|
|
295
295
|
self.model.f_totalcost = ((self.model.f_totalcost - 0) - (self.dymoney - 0)).toFixed(self.row.f_fee_decimal || 4)
|
|
296
296
|
}
|
|
297
|
+
if(self.row.f_deduction_gas && self.row.f_deduction_gas>0){
|
|
298
|
+
self.model.f_pregas += self.row.f_deduction_gas
|
|
299
|
+
}
|
|
297
300
|
self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(self.row.f_fee_decimal || 4)
|
|
298
301
|
self.calText(getGas.data.chargeprice, self.model.getDeduct)
|
|
299
302
|
}
|
|
@@ -307,7 +310,19 @@
|
|
|
307
310
|
}
|
|
308
311
|
if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0 || (self.model.f_pregas - 0) - (self.mingas - 0) >= 0) {
|
|
309
312
|
self.model.f_meter_type = self.row.f_meter_type
|
|
310
|
-
|
|
313
|
+
console.log(self.row.f_deduction_gas)
|
|
314
|
+
let getAmount
|
|
315
|
+
if (self.row.f_deduction_gas) {
|
|
316
|
+
let gas = (self.model.f_pregas - 0) - self.row.f_deduction_gas
|
|
317
|
+
if (gas < 0) {
|
|
318
|
+
gas = 0
|
|
319
|
+
}
|
|
320
|
+
console.log(gas)
|
|
321
|
+
getAmount = await self.$CommonService.gasCalculate(self.model, gas)
|
|
322
|
+
console.log(getAmount)
|
|
323
|
+
} else {
|
|
324
|
+
getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
|
|
325
|
+
}
|
|
311
326
|
self.model.getDeduct = 0
|
|
312
327
|
// 计算抵扣包间费用抵扣金额
|
|
313
328
|
if (self.row.f_project_money && self.row.f_project_money > 0) {
|
|
@@ -518,17 +533,17 @@
|
|
|
518
533
|
})
|
|
519
534
|
}
|
|
520
535
|
// 获取优惠信息
|
|
521
|
-
if (self.config.newDiscount) {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}
|
|
536
|
+
// if (self.config.newDiscount) {
|
|
537
|
+
// let getDiscount = await self.$resetpost('api/af-revenue/logic/getDiscountInfo', {data: nowrite_param}, {
|
|
538
|
+
// resolveMsg: null,
|
|
539
|
+
// newly: true,
|
|
540
|
+
// rejectMsg: '获取优惠信息失败!!'
|
|
541
|
+
// })
|
|
542
|
+
// if (getDiscount.data.leftDiscount > 0) {
|
|
543
|
+
// self.disCountInfo = getDiscount.data
|
|
544
|
+
// self.hasDisCount = true
|
|
545
|
+
// }
|
|
546
|
+
// }
|
|
532
547
|
}
|
|
533
548
|
export default {
|
|
534
549
|
title: '卡表收费',
|
|
@@ -580,6 +595,7 @@
|
|
|
580
595
|
f_privilege_gas: 0,
|
|
581
596
|
f_privilege_money: 0,
|
|
582
597
|
f_after_discount: 0,
|
|
598
|
+
f_deduction_gas:0,
|
|
583
599
|
getDeduct: 0
|
|
584
600
|
},
|
|
585
601
|
calculatedetail: '',
|
|
@@ -865,6 +881,15 @@
|
|
|
865
881
|
this.deductdetail = '未结金额计算公式:' + this.row.f_gas_type + ' x ' + this.model.f_pregas + '=' + getDeduct
|
|
866
882
|
}
|
|
867
883
|
}
|
|
884
|
+
if (this.row.f_deduction_gas) {
|
|
885
|
+
if ((this.row.f_deduction_gas-0) >= (this.model.f_pregas-0)) {
|
|
886
|
+
this.deductdetail = '本期优惠方量' + this.model.f_pregas
|
|
887
|
+
this.model.f_deduction_gas = this.model.f_pregas
|
|
888
|
+
} else {
|
|
889
|
+
this.deductdetail = '本期优惠方量' + this.row.f_deduction_gas
|
|
890
|
+
this.model.f_deduction_gas = this.row.f_deduction_gas
|
|
891
|
+
}
|
|
892
|
+
}
|
|
868
893
|
str = str.slice(0, str.length - 1)
|
|
869
894
|
this.calculatedetail = str
|
|
870
895
|
if (num > 1) {
|
|
@@ -916,24 +941,24 @@
|
|
|
916
941
|
}
|
|
917
942
|
this.privilegeCalculate()
|
|
918
943
|
}
|
|
919
|
-
if (this.hasDisCount) {
|
|
920
|
-
|
|
921
|
-
}
|
|
922
|
-
},
|
|
923
|
-
async calDisCount () {
|
|
924
|
-
// 初始化减免金额
|
|
925
|
-
this.model.f_privilege_money = 0
|
|
926
|
-
this.model.f_after_discount = this.model.f_collection
|
|
927
|
-
let param = this.disCountInfo
|
|
928
|
-
param.f_collection = this.model.f_collection
|
|
929
|
-
param.f_pregas = this.model.f_pregas
|
|
930
|
-
let privilegeData = await this.$resetpost('api/af-revenue/logic/calculateDiscount', param, {resolveMsg: null, rejectMsg: '计算优惠金额出错'})
|
|
931
|
-
// 减免金额
|
|
932
|
-
this.model.f_privilege_money = privilegeData.data.f_privilege_money
|
|
933
|
-
this.model.f_privilege_gas = privilegeData.data.f_privilege_gas
|
|
934
|
-
// 减免后收款金额
|
|
935
|
-
this.model.f_after_discount = privilegeData.data.f_collection
|
|
944
|
+
// if (this.hasDisCount) {
|
|
945
|
+
// this.calDisCount()
|
|
946
|
+
// }
|
|
936
947
|
},
|
|
948
|
+
// async calDisCount () {
|
|
949
|
+
// // 初始化减免金额
|
|
950
|
+
// this.model.f_privilege_money = 0
|
|
951
|
+
// this.model.f_after_discount = this.model.f_collection
|
|
952
|
+
// let param = this.disCountInfo
|
|
953
|
+
// param.f_collection = this.model.f_collection
|
|
954
|
+
// param.f_pregas = this.model.f_pregas
|
|
955
|
+
// let privilegeData = await this.$resetpost('api/af-revenue/logic/calculateDiscount', param, {resolveMsg: null, rejectMsg: '计算优惠金额出错'})
|
|
956
|
+
// // 减免金额
|
|
957
|
+
// this.model.f_privilege_money = privilegeData.data.f_privilege_money
|
|
958
|
+
// this.model.f_privilege_gas = privilegeData.data.f_privilege_gas
|
|
959
|
+
// // 减免后收款金额
|
|
960
|
+
// this.model.f_after_discount = privilegeData.data.f_collection
|
|
961
|
+
// },
|
|
937
962
|
// 优惠计算
|
|
938
963
|
async privilegeCalculate () {
|
|
939
964
|
// 初始化减免金额
|
|
@@ -156,7 +156,8 @@
|
|
|
156
156
|
</div>
|
|
157
157
|
<div class="row" v-if="!config.notShowFormula">
|
|
158
158
|
<div class="col-sm-4 col-sm-offset-8">
|
|
159
|
-
<strong>计算公式:{{calculatedetail ? calculatedetail : ' 暂无'}}</strong
|
|
159
|
+
<strong>计算公式:{{calculatedetail ? calculatedetail : ' 暂无'}}</strong><br/>
|
|
160
|
+
<strong style="font-size: large" v-if="deductdetail">{{deductdetail ? deductdetail : ' 暂无'}}</strong><br/>
|
|
160
161
|
</div>
|
|
161
162
|
</div>
|
|
162
163
|
<div class="row">
|
|
@@ -213,6 +214,9 @@
|
|
|
213
214
|
self.model.f_preamount = calFee - (dymoney - 0)
|
|
214
215
|
self.model.chargeprice = getGas.data.chargeprice
|
|
215
216
|
Object.assign(self.model, self.model, getGas.data)
|
|
217
|
+
if(self.row.f_deduction_gas && self.row.f_deduction_gas>0){
|
|
218
|
+
self.model.f_pregas += self.row.f_deduction_gas
|
|
219
|
+
}
|
|
216
220
|
self.model.f_totalcost = ((self.model.f_totalcost - 0) - (dymoney - 0)).toFixed(4)
|
|
217
221
|
// self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
|
|
218
222
|
if (self.config.floor) {
|
|
@@ -230,7 +234,16 @@
|
|
|
230
234
|
}
|
|
231
235
|
if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
|
|
232
236
|
self.model.f_meter_type = self.row.f_meter_type
|
|
233
|
-
let getAmount
|
|
237
|
+
let getAmount
|
|
238
|
+
if (self.row.f_deduction_gas) {
|
|
239
|
+
let gas = (self.model.f_pregas - 0) - self.row.f_deduction_gas
|
|
240
|
+
if (gas < 0) {
|
|
241
|
+
gas = 0
|
|
242
|
+
}
|
|
243
|
+
getAmount = await self.$CommonService.gasCalculate(self.model, gas)
|
|
244
|
+
} else {
|
|
245
|
+
getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
|
|
246
|
+
}
|
|
234
247
|
self.model.f_preamount = getAmount.data.chargenum
|
|
235
248
|
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))
|
|
236
249
|
Object.assign(self.model, self.model, getAmount.data)
|
|
@@ -336,20 +349,20 @@
|
|
|
336
349
|
}
|
|
337
350
|
}
|
|
338
351
|
// 获取优惠信息
|
|
339
|
-
if (self.config.newDiscount) {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}
|
|
352
|
+
// if (self.config.newDiscount) {
|
|
353
|
+
// let nowrite_param = {
|
|
354
|
+
// f_userfiles_id: self.row.f_userfiles_id
|
|
355
|
+
// }
|
|
356
|
+
// let getDiscount = await self.$resetpost('api/af-revenue/logic/getDiscountInfo', {data: nowrite_param}, {
|
|
357
|
+
// resolveMsg: null,
|
|
358
|
+
// newly: true,
|
|
359
|
+
// rejectMsg: '获取优惠信息失败!!'
|
|
360
|
+
// })
|
|
361
|
+
// if (getDiscount.data.leftDiscount > 0) {
|
|
362
|
+
// self.disCountInfo = getDiscount.data
|
|
363
|
+
// self.hasDisCount = true
|
|
364
|
+
// }
|
|
365
|
+
// }
|
|
353
366
|
}
|
|
354
367
|
export default {
|
|
355
368
|
title: '无卡收费',
|
|
@@ -383,6 +396,7 @@
|
|
|
383
396
|
f_privilege_gas: 0,
|
|
384
397
|
f_privilege_money: 0,
|
|
385
398
|
f_after_discount: 0,
|
|
399
|
+
f_deduction_gas:0,
|
|
386
400
|
getDeduct: 0,
|
|
387
401
|
f_collection: '',
|
|
388
402
|
f_balance: 0,
|
|
@@ -391,6 +405,7 @@
|
|
|
391
405
|
f_voucher_number: ''
|
|
392
406
|
},
|
|
393
407
|
calculatedetail: '',
|
|
408
|
+
deductdetail: '',
|
|
394
409
|
print: false,
|
|
395
410
|
billData: {
|
|
396
411
|
url: 'api/af-revenue/report/card_bill',
|
|
@@ -512,24 +527,24 @@
|
|
|
512
527
|
}
|
|
513
528
|
this.privilegeCalculate()
|
|
514
529
|
}
|
|
515
|
-
if (this.hasDisCount) {
|
|
516
|
-
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
async calDisCount () {
|
|
520
|
-
// 初始化减免金额
|
|
521
|
-
this.model.f_privilege_money = 0
|
|
522
|
-
this.model.f_after_discount = this.model.f_collection
|
|
523
|
-
let param = this.disCountInfo
|
|
524
|
-
param.f_collection = this.model.f_collection
|
|
525
|
-
param.f_pregas = this.model.f_pregas
|
|
526
|
-
let privilegeData = await this.$resetpost('api/af-revenue/logic/calculateDiscount', param, {resolveMsg: null, rejectMsg: '计算优惠金额出错'})
|
|
527
|
-
// 减免金额
|
|
528
|
-
this.model.f_privilege_money = privilegeData.data.f_privilege_money
|
|
529
|
-
this.model.f_privilege_gas = privilegeData.data.f_privilege_gas
|
|
530
|
-
// 减免后收款金额
|
|
531
|
-
this.model.f_after_discount = privilegeData.data.f_collection
|
|
530
|
+
// if (this.hasDisCount) {
|
|
531
|
+
// this.calDisCount()
|
|
532
|
+
// }
|
|
532
533
|
},
|
|
534
|
+
// async calDisCount () {
|
|
535
|
+
// // 初始化减免金额
|
|
536
|
+
// this.model.f_privilege_money = 0
|
|
537
|
+
// this.model.f_after_discount = this.model.f_collection
|
|
538
|
+
// let param = this.disCountInfo
|
|
539
|
+
// param.f_collection = this.model.f_collection
|
|
540
|
+
// param.f_pregas = this.model.f_pregas
|
|
541
|
+
// let privilegeData = await this.$resetpost('api/af-revenue/logic/calculateDiscount', param, {resolveMsg: null, rejectMsg: '计算优惠金额出错'})
|
|
542
|
+
// // 减免金额
|
|
543
|
+
// this.model.f_privilege_money = privilegeData.data.f_privilege_money
|
|
544
|
+
// this.model.f_privilege_gas = privilegeData.data.f_privilege_gas
|
|
545
|
+
// // 减免后收款金额
|
|
546
|
+
// this.model.f_after_discount = privilegeData.data.f_collection
|
|
547
|
+
// },
|
|
533
548
|
// 优惠计算
|
|
534
549
|
async privilegeCalculate () {
|
|
535
550
|
// 初始化减免金额
|
|
@@ -607,6 +622,15 @@
|
|
|
607
622
|
}
|
|
608
623
|
},
|
|
609
624
|
calText (val) {
|
|
625
|
+
if (this.row.f_deduction_gas) {
|
|
626
|
+
if ((this.row.f_deduction_gas-0) >= (this.model.f_pregas-0)) {
|
|
627
|
+
this.deductdetail = '本期优惠方量' + this.model.f_pregas
|
|
628
|
+
this.model.f_deduction_gas = this.model.f_pregas
|
|
629
|
+
} else {
|
|
630
|
+
this.deductdetail = '本期优惠方量' + this.row.f_deduction_gas
|
|
631
|
+
this.model.f_deduction_gas = this.row.f_deduction_gas
|
|
632
|
+
}
|
|
633
|
+
}
|
|
610
634
|
let str = ''
|
|
611
635
|
val.forEach((item) => {
|
|
612
636
|
str = str + item.f_price + ' x ' + item.f_gas + '+'
|
|
@@ -198,6 +198,7 @@
|
|
|
198
198
|
<strong style="color:red;margin-right: 5px">{{ $refs.givechange.promptText }}</strong>
|
|
199
199
|
<strong style="font-size: large"
|
|
200
200
|
v-if="!config.notShowFormula">计算公式:{{ calculatedetail ? calculatedetail : ' 暂无' }}</strong><br/>
|
|
201
|
+
<strong style="font-size: large" v-if="deductdetail">{{deductdetail ? deductdetail : ' 暂无'}}</strong><br/>
|
|
201
202
|
<strong style="font-size: 16px"
|
|
202
203
|
v-if="!config.notShowFormula && pricetext">合表气价:{{ pricetext }}</strong><br/>
|
|
203
204
|
<text style="font-size: 16px;font-style: italic;" class="text-info"
|
|
@@ -317,6 +318,9 @@ let preamountGen = async function (self) {
|
|
|
317
318
|
self.model.f_collection = Math.ceil(self.model.f_collection)
|
|
318
319
|
}
|
|
319
320
|
self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(self.row.f_fee_decimal || 4)
|
|
321
|
+
if(self.row.f_deduction_gas && self.row.f_deduction_gas>0){
|
|
322
|
+
self.model.f_pregas += self.row.f_deduction_gas
|
|
323
|
+
}
|
|
320
324
|
self.calText(getGas.data.chargeprice)
|
|
321
325
|
self.pricetext = getGas.data.chargeprice[0].pricetext ? getGas.data.chargeprice[0].pricetext : null
|
|
322
326
|
}
|
|
@@ -330,7 +334,18 @@ let pregasGen = async function (self) {
|
|
|
330
334
|
}
|
|
331
335
|
if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
|
|
332
336
|
self.model.f_meter_type = self.row.f_meter_type
|
|
333
|
-
let getAmount
|
|
337
|
+
let getAmount
|
|
338
|
+
if (self.row.f_deduction_gas) {
|
|
339
|
+
let gas = (self.model.f_pregas - 0) - self.row.f_deduction_gas
|
|
340
|
+
if (gas < 0) {
|
|
341
|
+
gas = 0
|
|
342
|
+
}
|
|
343
|
+
console.log(gas)
|
|
344
|
+
getAmount = await self.$CommonService.gasCalculate(self.model, gas)
|
|
345
|
+
console.log(getAmount)
|
|
346
|
+
} else {
|
|
347
|
+
getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
|
|
348
|
+
}
|
|
334
349
|
self.model.f_preamount = getAmount.data.chargenum
|
|
335
350
|
self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(self.row.f_fee_decimal || 4))
|
|
336
351
|
Object.assign(self.model, self.model, getAmount.data)
|
|
@@ -474,20 +489,20 @@ let asyncShowCardSellGas = async function (self) {
|
|
|
474
489
|
}
|
|
475
490
|
}
|
|
476
491
|
// 获取优惠信息
|
|
477
|
-
if (self.config.newDiscount) {
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
492
|
+
// if (self.config.newDiscount) {
|
|
493
|
+
// let nowrite_param = {
|
|
494
|
+
// f_userfiles_id: self.row.f_userfiles_id
|
|
495
|
+
// }
|
|
496
|
+
// let getDiscount = await self.$resetpost('api/af-revenue/logic/getDiscountInfo', {data: nowrite_param}, {
|
|
497
|
+
// resolveMsg: null,
|
|
498
|
+
// newly: true,
|
|
499
|
+
// rejectMsg: '获取优惠信息失败!!'
|
|
500
|
+
// })
|
|
501
|
+
// if (getDiscount.data.leftDiscount > 0) {
|
|
502
|
+
// self.disCountInfo = getDiscount.data
|
|
503
|
+
// self.hasDisCount = true
|
|
504
|
+
// }
|
|
505
|
+
// }
|
|
491
506
|
}
|
|
492
507
|
|
|
493
508
|
export default {
|
|
@@ -522,6 +537,7 @@ export default {
|
|
|
522
537
|
f_collection: '',
|
|
523
538
|
chargeprice: [],
|
|
524
539
|
f_print: [],
|
|
540
|
+
f_deduction_gas: 0,
|
|
525
541
|
f_meter_type: '',
|
|
526
542
|
f_voucher_number: '',
|
|
527
543
|
f_privilege_id: 0,
|
|
@@ -531,7 +547,7 @@ export default {
|
|
|
531
547
|
},
|
|
532
548
|
cardallot: null,
|
|
533
549
|
calculatedetail: '',
|
|
534
|
-
|
|
550
|
+
deductdetail:'',
|
|
535
551
|
billData: {
|
|
536
552
|
url: 'api/af-revenue/report/sendCard_bill',
|
|
537
553
|
bill: ''
|
|
@@ -810,6 +826,15 @@ export default {
|
|
|
810
826
|
this.$dispatch('success')
|
|
811
827
|
},
|
|
812
828
|
calText (val) {
|
|
829
|
+
if (this.row.f_deduction_gas) {
|
|
830
|
+
if ((this.row.f_deduction_gas-0) >= (this.model.f_pregas-0)) {
|
|
831
|
+
this.deductdetail = '本期优惠方量' + this.model.f_pregas
|
|
832
|
+
this.model.f_deduction_gas = this.model.f_pregas
|
|
833
|
+
} else {
|
|
834
|
+
this.deductdetail = '本期优惠方量' + this.row.f_deduction_gas
|
|
835
|
+
this.model.f_deduction_gas = this.row.f_deduction_gas
|
|
836
|
+
}
|
|
837
|
+
}
|
|
813
838
|
let str = ''
|
|
814
839
|
let num = 0
|
|
815
840
|
val.forEach((item) => {
|
|
@@ -862,24 +887,24 @@ export default {
|
|
|
862
887
|
}
|
|
863
888
|
this.privilegeCalculate()
|
|
864
889
|
}
|
|
865
|
-
if (this.hasDisCount) {
|
|
866
|
-
|
|
867
|
-
}
|
|
868
|
-
},
|
|
869
|
-
async calDisCount () {
|
|
870
|
-
// 初始化减免金额
|
|
871
|
-
this.model.f_privilege_money = 0
|
|
872
|
-
this.model.f_after_discount = this.model.f_collection
|
|
873
|
-
let param = this.disCountInfo
|
|
874
|
-
param.f_collection = this.model.f_collection
|
|
875
|
-
param.f_pregas = this.model.f_pregas
|
|
876
|
-
let privilegeData = await this.$resetpost('api/af-revenue/logic/calculateDiscount', param, {resolveMsg: null, rejectMsg: '计算优惠金额出错'})
|
|
877
|
-
// 减免金额
|
|
878
|
-
this.model.f_privilege_money = privilegeData.data.f_privilege_money
|
|
879
|
-
this.model.f_privilege_gas = privilegeData.data.f_privilege_gas
|
|
880
|
-
// 减免后收款金额
|
|
881
|
-
this.model.f_after_discount = privilegeData.data.f_collection
|
|
890
|
+
// if (this.hasDisCount) {
|
|
891
|
+
// this.calDisCount()
|
|
892
|
+
// }
|
|
882
893
|
},
|
|
894
|
+
// async calDisCount () {
|
|
895
|
+
// // 初始化减免金额
|
|
896
|
+
// this.model.f_privilege_money = 0
|
|
897
|
+
// this.model.f_after_discount = this.model.f_collection
|
|
898
|
+
// let param = this.disCountInfo
|
|
899
|
+
// param.f_collection = this.model.f_collection
|
|
900
|
+
// param.f_pregas = this.model.f_pregas
|
|
901
|
+
// let privilegeData = await this.$resetpost('api/af-revenue/logic/calculateDiscount', param, {resolveMsg: null, rejectMsg: '计算优惠金额出错'})
|
|
902
|
+
// // 减免金额
|
|
903
|
+
// this.model.f_privilege_money = privilegeData.data.f_privilege_money
|
|
904
|
+
// this.model.f_privilege_gas = privilegeData.data.f_privilege_gas
|
|
905
|
+
// // 减免后收款金额
|
|
906
|
+
// this.model.f_after_discount = privilegeData.data.f_collection
|
|
907
|
+
// },
|
|
883
908
|
// 优惠计算
|
|
884
909
|
async privilegeCalculate () {
|
|
885
910
|
// 初始化减免金额
|
package/src/main.js
CHANGED
|
@@ -52,6 +52,7 @@ let CardService = {
|
|
|
52
52
|
f_price: f_price,
|
|
53
53
|
inputprice: inputprice,
|
|
54
54
|
f_userfiles_id: row.f_userfiles_id,
|
|
55
|
+
f_deduction_gas:model.f_deduction_gas?model.f_deduction_gas:0,
|
|
55
56
|
f_pregas: model.f_pregas,
|
|
56
57
|
f_preamount: model.f_preamount,
|
|
57
58
|
f_balance: row.f_balance,
|
|
@@ -302,6 +303,7 @@ let CardService = {
|
|
|
302
303
|
f_alias: row.f_alias,
|
|
303
304
|
garbage_number: model.garbage_number,
|
|
304
305
|
garbage_money: model.garbage_money,
|
|
306
|
+
f_deduction_gas:model.f_deduction_gas?model.f_deduction_gas:0,
|
|
305
307
|
f_serial_id: model.f_serial_id,
|
|
306
308
|
f_userinfo_id: row.f_userinfo_id,
|
|
307
309
|
f_serial_number: f_serial_number,
|
|
@@ -474,6 +476,7 @@ let CardService = {
|
|
|
474
476
|
f_pregas: model.f_pregas,
|
|
475
477
|
f_write_money: model.f_write_money,
|
|
476
478
|
f_balance: row.f_balance,
|
|
479
|
+
f_deduction_gas:model.f_deduction_gas?model.f_deduction_gas:0,
|
|
477
480
|
// 优惠金额
|
|
478
481
|
f_privilege_money: model.f_privilege_money,
|
|
479
482
|
f_privilege_gas: f_privilege_gas,
|