sale-client 3.6.7 → 3.6.9
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 +1 -4
- package/package.json +1 -1
- package/src/Util.js +1 -1
- package/src/components/charge/business/CardMeterCenter.vue +17 -14
- package/src/components/charge/business/ShowCardSellGas.vue +42 -46
- package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +5 -1
- package/src/components/revenue/Common/uploadFiles.vue +2 -2
- package/src/components/revenue/comprehen/gasbrand/AddGasBrand.vue +23 -0
- package/src/filiale/kelai/CardChangeFill.vue +597 -0
- package/src/filiale/kelai/ChangeSendCard.vue +23 -0
- package/src/filiale/kelai/IotChangeFill.vue +488 -0
- package/src/filiale/kelai/sale.js +3 -0
- package/src/filiale/lixianV3/ChangeMeter.vue +23 -47
- package/src/filiale/qingtongxia/Userinfo.vue +201 -0
- package/src/filiale/qingtongxia/sale.js +2 -0
- package/src/filiale/shanxian/OtherChargeNew.vue +15 -5
- package/src/filiale/shanxian/UserDeviceInfoTest.vue +1 -1
- package/src/filiale/tongchuan/bill/EticketPrint.vue +393 -0
- package/src/filiale/tongchuan/sale.js +1 -0
- package/src/main.js +27 -27
package/build/dev-server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
|
-
const [localUrl, serverRul] = ['
|
|
2
|
+
const [localUrl, serverRul] = ['http://127.0.0.1:8080/', 'http://192.168.50.4:8400/']
|
|
3
3
|
var merge = require('webpack-merge')
|
|
4
4
|
var baseConfig = require('./webpack.dev.conf')
|
|
5
5
|
var devConfig = {
|
|
@@ -17,9 +17,6 @@ var devConfig = {
|
|
|
17
17
|
children: false // 不输出子模块构建信息
|
|
18
18
|
},
|
|
19
19
|
proxy: {
|
|
20
|
-
'/rs/sql/filemanage_getUserfies': {
|
|
21
|
-
target: 'http://127.0.0.1:8080/'
|
|
22
|
-
},
|
|
23
20
|
'/rs/file': {
|
|
24
21
|
target: serverRul
|
|
25
22
|
},
|
package/package.json
CHANGED
package/src/Util.js
CHANGED
|
@@ -20,12 +20,14 @@
|
|
|
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
22
|
v-validate:f_pregas='{required: true, dctest: [maxgas, "<=" ]}' placeholder="预购气量"
|
|
23
|
+
v-scale="[model.f_pregas, row.f_gas_decimal||4 ]"
|
|
23
24
|
v-next-el='fcollection'>
|
|
24
25
|
</div>
|
|
25
26
|
<div class="col-sm-4" v-if="row.f_collection_type == '按金额'">
|
|
26
27
|
<label for="f_pregas" class=" font_normal_body">*预购气量</label>
|
|
27
28
|
<input class="input_search" style="width:60%" type="number" v-el:fpregas
|
|
28
29
|
@blur="pregas()" v-model="model.f_pregas" placeholder="预购气量"
|
|
30
|
+
v-scale="[model.f_pregas, row.f_gas_decimal||4 ]"
|
|
29
31
|
v-next-el='fcollection' :disabled="config.calculatePreByCollection"/>
|
|
30
32
|
</div>
|
|
31
33
|
<div class="col-sm-4"
|
|
@@ -34,6 +36,7 @@
|
|
|
34
36
|
<input class="input_search" style="width:60%" type="number"
|
|
35
37
|
@blur="preamount()" v-model="model.f_preamount"
|
|
36
38
|
:disabled="config.calculatePreByCollection"
|
|
39
|
+
v-scale="[model.f_preamount, row.f_fee_decimal||4 ]"
|
|
37
40
|
v-validate:f_preamount='{required: true, dctest: [maxmoney, "<=" ]}' placeholder="预购金额">
|
|
38
41
|
</div><!--
|
|
39
42
|
<div class="col-sm-4" v-if="row.f_collection_type == '按气量'">
|
|
@@ -77,7 +80,7 @@
|
|
|
77
80
|
<input class="input_search" style="width:60%" type="number"
|
|
78
81
|
@blur="preamount()" v-model="model.f_totalcost"
|
|
79
82
|
v-validate:f_totalcost='{required: true, dctest: [0, ">=" ] }' placeholder="应收金额"
|
|
80
|
-
v-next-el='fcollection' v-scale="[model.f_totalcost, 4]" disabled>
|
|
83
|
+
v-next-el='fcollection' v-scale="[model.f_totalcost, row.f_fee_decimal||4]" disabled>
|
|
81
84
|
</div>
|
|
82
85
|
</div>
|
|
83
86
|
<div class="row">
|
|
@@ -244,9 +247,9 @@
|
|
|
244
247
|
|
|
245
248
|
// 输入金额,换算气量
|
|
246
249
|
let preamountGen = async function (self) {
|
|
247
|
-
let calFee = ((self.model.f_preamount - 0)).toFixed(4)
|
|
250
|
+
let calFee = ((self.model.f_preamount - 0)).toFixed(self.row.f_fee_decimal || 4)
|
|
248
251
|
if (self.model.f_payment == '赠气') {
|
|
249
|
-
calFee = (self.model.f_preamount - 0).toFixed(4)
|
|
252
|
+
calFee = (self.model.f_preamount - 0).toFixed(self.row.f_fee_decimal || 4)
|
|
250
253
|
}
|
|
251
254
|
// 通过金额进行划价
|
|
252
255
|
let getGas = await self.$CommonService.feeCalculate(self.model, calFee)
|
|
@@ -255,19 +258,19 @@
|
|
|
255
258
|
if (self.row.f_alias === 'QiaoSong') {
|
|
256
259
|
self.model.f_pregas = (getGas.data.gas - 0).toFixed(1)
|
|
257
260
|
} else {
|
|
258
|
-
self.model.f_pregas = (getGas.data.gas - 0).toFixed(4)
|
|
261
|
+
self.model.f_pregas = (getGas.data.gas - 0).toFixed(self.row.f_gas_decimal || 4)
|
|
259
262
|
}
|
|
260
263
|
if (self.row.f_collection_type === '按金额') {
|
|
261
264
|
self.dymoney = 0
|
|
262
265
|
} else {
|
|
263
|
-
let dymoney2 = await self.$CommonService.gasCalculate(self.model, (getGas.data.gas).toFixed(4))
|
|
264
|
-
self.dymoney = (getGas.data.chargenum - 0).toFixed(4) - (dymoney2.data.chargenum - 0).toFixed(4)
|
|
266
|
+
let dymoney2 = await self.$CommonService.gasCalculate(self.model, (getGas.data.gas).toFixed(self.row.f_gas_decimal || 4))
|
|
267
|
+
self.dymoney = (getGas.data.chargenum - 0).toFixed(4) - (dymoney2.data.chargenum - 0).toFixed(self.row.f_fee_decimal || 4)
|
|
265
268
|
}
|
|
266
269
|
} else {
|
|
267
270
|
// 如果不支持小数,将划价出的多余非整数气量进行划价为金额
|
|
268
271
|
let tempnum = Math.floor(getGas.data.gas - 0)
|
|
269
|
-
let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(4))
|
|
270
|
-
self.dymoney = (getGas.data.chargenum - 0).toFixed(2) - (dymoney1.data.chargenum - 0).toFixed(
|
|
272
|
+
let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(self.row.f_fee_decimal || 4))
|
|
273
|
+
self.dymoney = (getGas.data.chargenum - 0).toFixed(2) - (dymoney1.data.chargenum - 0).toFixed(self.row.f_fee_decimal || 4)
|
|
271
274
|
self.model.f_pregas = Math.floor(getGas.data.gas - 0)
|
|
272
275
|
}
|
|
273
276
|
}
|
|
@@ -280,24 +283,24 @@
|
|
|
280
283
|
self.model.f_collection = 0
|
|
281
284
|
} else {
|
|
282
285
|
self.model.f_collection = self.config.autoCollection ? self.model.f_totalcost : 0
|
|
283
|
-
self.model.f_totalcost = ((self.model.f_totalcost - 0) - (self.dymoney - 0)).toFixed(4)
|
|
286
|
+
self.model.f_totalcost = ((self.model.f_totalcost - 0) - (self.dymoney - 0)).toFixed(self.row.f_fee_decimal || 4)
|
|
284
287
|
}
|
|
285
|
-
self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(4)
|
|
288
|
+
self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(self.row.f_fee_decimal || 4)
|
|
286
289
|
self.calText(getGas.data.chargeprice)
|
|
287
290
|
}
|
|
288
291
|
|
|
289
292
|
// 输入气量,换算金额
|
|
290
293
|
let pregasGen = async function (self) {
|
|
291
294
|
if (self.row.f_isdecimal === '是') {
|
|
292
|
-
self.model.f_pregas = (self.model.f_pregas - 0).toFixed(4)
|
|
295
|
+
self.model.f_pregas = (self.model.f_pregas - 0).toFixed(self.row.f_gas_decimal || 4)
|
|
293
296
|
} else {
|
|
294
297
|
self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
|
|
295
298
|
}
|
|
296
299
|
if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
|
|
297
300
|
self.model.f_meter_type = self.row.f_meter_type
|
|
298
301
|
let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
|
|
299
|
-
self.model.f_preamount = getAmount.data.chargenum
|
|
300
|
-
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))
|
|
302
|
+
self.model.f_preamount = getAmount.data.chargenum.toFixed(self.row.f_fee_decimal || 4)
|
|
303
|
+
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))
|
|
301
304
|
Object.assign(self.model, self.model, getAmount.data)
|
|
302
305
|
self.model.chargeprice = getAmount.data.chargeprice
|
|
303
306
|
if (self.model.f_payment == '赠气') {
|
|
@@ -649,7 +652,7 @@
|
|
|
649
652
|
methods: {
|
|
650
653
|
// 根据收款金额计算划价信息
|
|
651
654
|
// 需要配置 calculatePreByCollection = true
|
|
652
|
-
async calculatePreByCollection() {
|
|
655
|
+
async calculatePreByCollection () {
|
|
653
656
|
try {
|
|
654
657
|
this.model.f_collection = (this.model.f_collection - 0)
|
|
655
658
|
let calFee = ((this.model.f_collection - 0) + (this.row.f_balance)).toFixed(4)
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
<input class="input_search" style="width:60%" type="number" id="fouces"
|
|
21
21
|
@blur="pregas()" v-model="model.f_pregas" :disabled="config.calculatePreByCollection"
|
|
22
22
|
v-validate:f_pregas='{required: true, dctest: [maxgas, "<=" ]}' placeholder="预购气量"
|
|
23
|
+
v-scale="[model.f_pregas, row.f_gas_decimal||4 ]"
|
|
23
24
|
v-next-el='sk'>
|
|
24
25
|
</div>
|
|
25
26
|
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
<input class="input_search" style="width:60%" type="number" v-model="model.f_preamount"
|
|
30
31
|
@blur="preamount()" v-validate:f_preamount='{required: true, dctest: [maxmoney, "<=" ]}'
|
|
31
32
|
placeholder="预购金额" :disabled="config.calculatePreByCollection"
|
|
32
|
-
v-scale="[model.f_preamount, 4]" placeholder="预购金额">
|
|
33
|
+
v-scale="[model.f_preamount, row.f_fee_decimal||4 ]" placeholder="预购金额">
|
|
33
34
|
</div>
|
|
34
35
|
</div>
|
|
35
36
|
<div class="row" style="margin-top:5px;">
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
<input class="input_search" style="width:60%" type="number"
|
|
68
69
|
v-model="model.f_totalcost"
|
|
69
70
|
v-validate:f_totalcost='{required: true, dctest: [(openFee - 0), ">=" ] }' placeholder="应收金额"
|
|
70
|
-
v-next-el='sk' v-scale="[model.f_totalcost, 4]" disabled>
|
|
71
|
+
v-next-el='sk' v-scale="[model.f_totalcost, row.f_fee_decimal||4]" disabled>
|
|
71
72
|
</div>
|
|
72
73
|
</div>
|
|
73
74
|
|
|
@@ -273,52 +274,47 @@
|
|
|
273
274
|
*/
|
|
274
275
|
|
|
275
276
|
import {HttpResetClass} from 'vue-client'
|
|
276
|
-
import XML from '../../../plugins/ObjTree'
|
|
277
277
|
|
|
278
278
|
let preamountGen = async function (self) {
|
|
279
|
-
let calFee = ((self.model.f_preamount - 0)).toFixed(4)
|
|
279
|
+
let calFee = ((self.model.f_preamount - 0)).toFixed(self.row.f_fee_decimal || 4)
|
|
280
280
|
if (self.model.f_payment == '赠气') {
|
|
281
|
-
calFee = (self.model.f_preamount - 0).toFixed(4)
|
|
281
|
+
calFee = (self.model.f_preamount - 0).toFixed(self.row.f_fee_decimal || 4)
|
|
282
282
|
}
|
|
283
283
|
// 通过金额进行划价
|
|
284
284
|
let getGas = await self.$CommonService.feeCalculate(self.model, calFee)
|
|
285
285
|
if (getGas.data.gas) {
|
|
286
286
|
if (self.row.f_isdecimal === '是') {
|
|
287
|
-
|
|
288
|
-
self.model.f_pregas = (getGas.data.gas - 0).toFixed(1)
|
|
289
|
-
} else {
|
|
290
|
-
self.model.f_pregas = (getGas.data.gas - 0).toFixed(4)
|
|
291
|
-
}
|
|
287
|
+
self.model.f_pregas = (getGas.data.gas - 0).toFixed(self.row.f_gas_decimal || 4)
|
|
292
288
|
if (self.row.f_collection_type === '按金额') {
|
|
293
289
|
self.dymoney = 0
|
|
294
290
|
} else {
|
|
295
|
-
let dymoney2 = await self.$CommonService.gasCalculate(self.model, (getGas.data.gas).toFixed(4))
|
|
296
|
-
self.dymoney = (getGas.data.chargenum - 0).toFixed(4) - (dymoney2.data.chargenum - 0).toFixed(4)
|
|
291
|
+
let dymoney2 = await self.$CommonService.gasCalculate(self.model, (getGas.data.gas).toFixed(self.row.f_gas_decimal || 4))
|
|
292
|
+
self.dymoney = (getGas.data.chargenum - 0).toFixed(4) - (dymoney2.data.chargenum - 0).toFixed(self.row.f_fee_decimal || 4)
|
|
297
293
|
}
|
|
298
294
|
} else {
|
|
299
295
|
// 如果不支持小数,将划价出的多余非整数气量进行划价为金额
|
|
300
296
|
let tempnum = Math.floor(getGas.data.gas - 0)
|
|
301
|
-
let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(4))
|
|
297
|
+
let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(self.row.f_gas_decimal || 4))
|
|
302
298
|
self.dymoney = (getGas.data.chargenum - 0).toFixed(2) - (dymoney1.data.chargenum - 0).toFixed(2)
|
|
303
299
|
self.model.f_pregas = Math.floor(getGas.data.gas - 0)
|
|
304
300
|
}
|
|
305
301
|
}
|
|
306
|
-
self.model.f_totalcost = ((self.row.f_balance - 0) >= (calFee - 0) ? 0 : ((calFee - 0) - (self.row.f_balance - 0)).toFixed(
|
|
302
|
+
self.model.f_totalcost = ((self.row.f_balance - 0) >= (calFee - 0) ? 0 : ((calFee - 0) - (self.row.f_balance - 0)).toFixed(self.row.f_fee_decimal || 4))
|
|
307
303
|
self.model.chargeprice = getGas.data.chargeprice
|
|
308
304
|
Object.assign(self.model, self.model, getGas.data)
|
|
309
|
-
self.model.f_totalcost = ((self.dymoney - 0) >= (self.model.f_totalcost - 0) ? 0 : (self.model.f_totalcost - 0) - (self.dymoney - 0).toFixed(
|
|
305
|
+
self.model.f_totalcost = ((self.dymoney - 0) >= (self.model.f_totalcost - 0) ? 0 : (self.model.f_totalcost - 0) - (self.dymoney - 0).toFixed(self.row.f_fee_decimal || 4))
|
|
310
306
|
self.model.f_collection = self.model.f_totalcost
|
|
311
307
|
if (self.config.floor) {
|
|
312
308
|
self.model.f_collection = Math.ceil(self.model.f_collection)
|
|
313
309
|
}
|
|
314
|
-
self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(4)
|
|
310
|
+
self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(self.row.f_fee_decimal || 4)
|
|
315
311
|
self.calText(getGas.data.chargeprice)
|
|
316
312
|
}
|
|
317
313
|
|
|
318
314
|
// 输入气量,换算金额
|
|
319
315
|
let pregasGen = async function (self) {
|
|
320
316
|
if (self.row.f_isdecimal === '是') {
|
|
321
|
-
self.model.f_pregas = (self.model.f_pregas - 0).toFixed(4)
|
|
317
|
+
self.model.f_pregas = (self.model.f_pregas - 0).toFixed(self.row.f_gas_decimal || 4)
|
|
322
318
|
} else {
|
|
323
319
|
self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
|
|
324
320
|
}
|
|
@@ -326,7 +322,7 @@ let pregasGen = async function (self) {
|
|
|
326
322
|
self.model.f_meter_type = self.row.f_meter_type
|
|
327
323
|
let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
|
|
328
324
|
self.model.f_preamount = getAmount.data.chargenum
|
|
329
|
-
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))
|
|
325
|
+
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))
|
|
330
326
|
Object.assign(self.model, self.model, getAmount.data)
|
|
331
327
|
self.model.chargeprice = getAmount.data.chargeprice
|
|
332
328
|
self.model.f_collection = self.model.f_totalcost
|
|
@@ -465,7 +461,7 @@ let asyncShowCardSellGas = async function (self) {
|
|
|
465
461
|
|
|
466
462
|
export default {
|
|
467
463
|
title: '发卡售气',
|
|
468
|
-
data() {
|
|
464
|
+
data () {
|
|
469
465
|
return {
|
|
470
466
|
serialShow: false,
|
|
471
467
|
resid: [],
|
|
@@ -537,8 +533,8 @@ export default {
|
|
|
537
533
|
}
|
|
538
534
|
},
|
|
539
535
|
props: ['row'],
|
|
540
|
-
ready() {
|
|
541
|
-
console.log(
|
|
536
|
+
ready () {
|
|
537
|
+
console.log(this.row)
|
|
542
538
|
if (this.authArr.includes('余额写卡限定')) {
|
|
543
539
|
this.paytype = [{label: '余额写卡', value: '余额写卡'}]
|
|
544
540
|
} else {
|
|
@@ -577,20 +573,20 @@ export default {
|
|
|
577
573
|
},
|
|
578
574
|
events: {
|
|
579
575
|
// 删除Resid数组元素
|
|
580
|
-
'delResid'(val) {
|
|
576
|
+
'delResid' (val) {
|
|
581
577
|
this.resid.$remove({id: val, f_biobid: ''})
|
|
582
578
|
// this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
|
|
583
579
|
},
|
|
584
580
|
// 增加Resid数组元素
|
|
585
|
-
'resid'(val) {
|
|
581
|
+
'resid' (val) {
|
|
586
582
|
this.resid.push({id: val, f_biobid: ''})
|
|
587
583
|
}
|
|
588
584
|
},
|
|
589
585
|
watch: {
|
|
590
|
-
'row'(val) {
|
|
586
|
+
'row' (val) {
|
|
591
587
|
this.model.f_balance = val.f_balance
|
|
592
588
|
},
|
|
593
|
-
'model.f_payment.length'(val) {
|
|
589
|
+
'model.f_payment.length' (val) {
|
|
594
590
|
console.log('付款方式多选。。', val)
|
|
595
591
|
if (val > 3) {
|
|
596
592
|
this.$showAlert('目前只支持三种支付方式', 'warning', 2000)
|
|
@@ -613,18 +609,18 @@ export default {
|
|
|
613
609
|
this.getPrivilegeList()
|
|
614
610
|
}
|
|
615
611
|
},
|
|
616
|
-
'model.f_payment'(val) {
|
|
612
|
+
'model.f_payment' (val) {
|
|
617
613
|
if (val == '免交') {
|
|
618
614
|
this.mjshow = true
|
|
619
615
|
} else {
|
|
620
616
|
this.mjshow = false
|
|
621
617
|
}
|
|
622
618
|
},
|
|
623
|
-
'model.f_collection'(val) {
|
|
619
|
+
'model.f_collection' (val) {
|
|
624
620
|
// 获取计算优惠
|
|
625
621
|
this.getPrivilegeList()
|
|
626
622
|
},
|
|
627
|
-
'$v'(val) {
|
|
623
|
+
'$v' (val) {
|
|
628
624
|
},
|
|
629
625
|
'$v': {
|
|
630
626
|
handler: function (val) {
|
|
@@ -636,13 +632,13 @@ export default {
|
|
|
636
632
|
},
|
|
637
633
|
deep: true
|
|
638
634
|
},
|
|
639
|
-
'$v.f_serial_number.valid'(val) {
|
|
635
|
+
'$v.f_serial_number.valid' (val) {
|
|
640
636
|
}
|
|
641
637
|
},
|
|
642
638
|
methods: {
|
|
643
639
|
// 根据收款金额计算划价信息
|
|
644
640
|
// 需要配置 calculatePreByCollection = true
|
|
645
|
-
async calculatePreByCollection() {
|
|
641
|
+
async calculatePreByCollection () {
|
|
646
642
|
try {
|
|
647
643
|
this.model.f_collection = (this.model.f_collection - 0)
|
|
648
644
|
let calFee = ((this.model.f_collection - 0) + (this.row.f_balance)).toFixed(4)
|
|
@@ -661,7 +657,7 @@ export default {
|
|
|
661
657
|
}
|
|
662
658
|
},
|
|
663
659
|
// 校验发票信息
|
|
664
|
-
checkInvoiceMsg() {
|
|
660
|
+
checkInvoiceMsg () {
|
|
665
661
|
console.log(this.model.f_print[0])
|
|
666
662
|
if (this.model.f_print[0] === '电子发票') {
|
|
667
663
|
if (!this.row.f_taxpayer_id) {
|
|
@@ -681,11 +677,11 @@ export default {
|
|
|
681
677
|
this.confirm()
|
|
682
678
|
}
|
|
683
679
|
},
|
|
684
|
-
eticket_toggle() {
|
|
680
|
+
eticket_toggle () {
|
|
685
681
|
this.eticket_show = false
|
|
686
682
|
this.$dispatch('success')
|
|
687
683
|
},
|
|
688
|
-
async confirm() {
|
|
684
|
+
async confirm () {
|
|
689
685
|
this.eticket_msg = false
|
|
690
686
|
if (this.$appdata.getSingleValue('开卡费')) {
|
|
691
687
|
let sql = `select od.* from t_othercharge oc
|
|
@@ -732,11 +728,11 @@ export default {
|
|
|
732
728
|
}
|
|
733
729
|
})
|
|
734
730
|
},
|
|
735
|
-
clean() {
|
|
731
|
+
clean () {
|
|
736
732
|
this.$info('取消操作')
|
|
737
733
|
this.$dispatch('refresh', this.row)
|
|
738
734
|
},
|
|
739
|
-
pregas() {
|
|
735
|
+
pregas () {
|
|
740
736
|
this.dymoney = 0
|
|
741
737
|
if (this.model.f_pregas && this.model.f_pregas > 0) {
|
|
742
738
|
try {
|
|
@@ -755,7 +751,7 @@ export default {
|
|
|
755
751
|
this.model.f_pregas = 0
|
|
756
752
|
}
|
|
757
753
|
},
|
|
758
|
-
preamount() {
|
|
754
|
+
preamount () {
|
|
759
755
|
this.dymoney = 0
|
|
760
756
|
// if ((this.model.f_totalcost && this.model.f_totalcost > 0) || this.row.f_balance > 0) {
|
|
761
757
|
// if ((this.model.f_totalcost && this.model.f_totalcost > 0) || this.row.f_balance > 0) {
|
|
@@ -770,11 +766,11 @@ export default {
|
|
|
770
766
|
// }
|
|
771
767
|
},
|
|
772
768
|
|
|
773
|
-
validateBill(val) {
|
|
769
|
+
validateBill (val) {
|
|
774
770
|
this.validateOk = !val.isOk
|
|
775
771
|
this.billData.bill = val.bill
|
|
776
772
|
},
|
|
777
|
-
printok() {
|
|
773
|
+
printok () {
|
|
778
774
|
// 收据打完,判断是否还有其他票据进行请求
|
|
779
775
|
for (let i = 0; i < this.model.f_print.length; i++) {
|
|
780
776
|
if (this.model.f_print[i] === '电子发票') {
|
|
@@ -783,7 +779,7 @@ export default {
|
|
|
783
779
|
}
|
|
784
780
|
this.$dispatch('success')
|
|
785
781
|
},
|
|
786
|
-
calText(val) {
|
|
782
|
+
calText (val) {
|
|
787
783
|
let str = ''
|
|
788
784
|
let num = 0
|
|
789
785
|
val.forEach((item) => {
|
|
@@ -806,13 +802,13 @@ export default {
|
|
|
806
802
|
}
|
|
807
803
|
}
|
|
808
804
|
},
|
|
809
|
-
close() {
|
|
805
|
+
close () {
|
|
810
806
|
this.showprint = false
|
|
811
807
|
this.print = false
|
|
812
808
|
this.clean()
|
|
813
809
|
},
|
|
814
810
|
// 根据选择的付款方式 获取优惠列表
|
|
815
|
-
async getPrivilegeList() {
|
|
811
|
+
async getPrivilegeList () {
|
|
816
812
|
// 初始化下拉选择列表
|
|
817
813
|
this.privilegeList = [{label: '无优惠', value: '0'}]
|
|
818
814
|
// 初始为无优惠
|
|
@@ -838,7 +834,7 @@ export default {
|
|
|
838
834
|
}
|
|
839
835
|
},
|
|
840
836
|
// 优惠计算
|
|
841
|
-
async privilegeCalculate() {
|
|
837
|
+
async privilegeCalculate () {
|
|
842
838
|
// 初始化减免金额
|
|
843
839
|
this.model.f_privilege_money = 0
|
|
844
840
|
this.model.f_after_discount = this.model.f_collection
|
|
@@ -879,13 +875,13 @@ export default {
|
|
|
879
875
|
}
|
|
880
876
|
},
|
|
881
877
|
computed: {
|
|
882
|
-
'invoice_show_gas'() {
|
|
878
|
+
'invoice_show_gas' () {
|
|
883
879
|
return this.row.f_collection_type === '按气量' ? '是' : '否'
|
|
884
880
|
},
|
|
885
|
-
authArr() {
|
|
881
|
+
authArr () {
|
|
886
882
|
return this.$login.r ? this.$login.r : []
|
|
887
883
|
},
|
|
888
|
-
'curbalance'() {
|
|
884
|
+
'curbalance' () {
|
|
889
885
|
if (this.model.f_payment === '赠气') {
|
|
890
886
|
return this.model.f_balance
|
|
891
887
|
}
|
|
@@ -902,7 +898,7 @@ export default {
|
|
|
902
898
|
return this.row.f_balance
|
|
903
899
|
}
|
|
904
900
|
},
|
|
905
|
-
'islegal'() {
|
|
901
|
+
'islegal' () {
|
|
906
902
|
if (this.paymentModel.length > 1 && this.model.f_collection) {
|
|
907
903
|
let sum = 0
|
|
908
904
|
this.paymentModel.forEach((res) => {
|
|
@@ -127,10 +127,14 @@
|
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
129
129
|
<div v-if="row.f_collection_type == '按气量'" >
|
|
130
|
-
<div class="col-sm-4">
|
|
130
|
+
<div class="col-sm-4" v-if="!row.f_calculation.includes('表端结算')">
|
|
131
131
|
<label class="font_normal_body_new">表剩余气量</label>
|
|
132
132
|
<input class="input-underline" style="width:55%" :value="row.f_balance_gas" readonly>
|
|
133
133
|
</div>
|
|
134
|
+
<div class="col-sm-4" v-if="row.f_meter_type.includes('表端结算')">
|
|
135
|
+
<label class="font_normal_body_new">表剩余气量</label>
|
|
136
|
+
<input class="input-underline" style="width:55%" :value="row.f_jval" readonly>
|
|
137
|
+
</div>
|
|
134
138
|
<div class="col-sm-4">
|
|
135
139
|
<label class="font_normal_body_new">累计用气金额</label>
|
|
136
140
|
<input class="input-underline" style="width:45%" :value="row.f_total_usegas_amount" readonly>
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
this.showhighmeter = !this.showhighmeter
|
|
74
74
|
},
|
|
75
75
|
async load (self) {
|
|
76
|
-
let condition = `f_blobid= '${self.headers.blodid}' `
|
|
76
|
+
let condition = `1=1 and f_blobid= '${self.headers.blodid}' `
|
|
77
77
|
if (this.fusetype) {
|
|
78
78
|
condition += ` and fusetype='${this.fusetype}'`
|
|
79
79
|
}
|
|
80
|
-
let getFile = await this.$resetpost('rs/sql/
|
|
80
|
+
let getFile = await this.$resetpost('rs/sql/saleSingleTable', {
|
|
81
81
|
data: {
|
|
82
82
|
tablename: 't_files',
|
|
83
83
|
condition: condition + ` order by f_uploaddate desc `
|
|
@@ -41,6 +41,24 @@
|
|
|
41
41
|
:options='isdecimal' placeholder='是否支持小数'
|
|
42
42
|
close-on-select style="width: 60%"></v-select>
|
|
43
43
|
</div>
|
|
44
|
+
<div class="col-sm-4 form-group" v-if="gasmessage.f_isdecimal[0] ==='是'">
|
|
45
|
+
<label for="f_isdecimal" class="font_normal_body">气量位数</label>
|
|
46
|
+
<v-select :value.sync="gasmessage.f_gas_decimal"
|
|
47
|
+
v-model="gasmessage.f_gas_decimal"
|
|
48
|
+
:value-single="true"
|
|
49
|
+
:search="false"
|
|
50
|
+
:options='decimalArray' placeholder='气量位数'
|
|
51
|
+
close-on-select style="width: 60%"></v-select>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-4 form-group" v-if="gasmessage.f_isdecimal[0] ==='是'">
|
|
54
|
+
<label for="f_isdecimal" class="font_normal_body">金额位数</label>
|
|
55
|
+
<v-select :value.sync="gasmessage.f_fee_decimal"
|
|
56
|
+
v-model="gasmessage.f_fee_decimal"
|
|
57
|
+
:value-single="true"
|
|
58
|
+
:search="false"
|
|
59
|
+
:options='decimalArray' placeholder='金额位数'
|
|
60
|
+
close-on-select style="width: 60%"></v-select>
|
|
61
|
+
</div>
|
|
44
62
|
<div class="col-sm-4 form-group" v-if="gasmessage.f_meter_type[0].includes('物联网')" :class="[$v.calculation.required ? 'select-error' : '']">
|
|
45
63
|
<label for="f_calculation" class="font_normal_body">结算方式</label>
|
|
46
64
|
<input type="text" v-show="false" v-model="$refs.calculation.selectedItems" v-validate:calculation='{required: true }'>
|
|
@@ -172,6 +190,8 @@ export default {
|
|
|
172
190
|
id: '',
|
|
173
191
|
f_meter_type: '',
|
|
174
192
|
f_isdecimal: [],
|
|
193
|
+
f_gas_decimal: 4,
|
|
194
|
+
f_fee_decimal: 4,
|
|
175
195
|
f_meter_brand: '',
|
|
176
196
|
f_alias: '',
|
|
177
197
|
f_calculation: '',
|
|
@@ -198,6 +218,7 @@ export default {
|
|
|
198
218
|
ischeck: [{label: '否', value: '否'}, {label: '是', value: '是'}],
|
|
199
219
|
isstep: [{label: '否', value: '否'}, {label: '是', value: '是'}],
|
|
200
220
|
isdecimal: [{label: '否', value: '否'}, {label: '是', value: '是'}],
|
|
221
|
+
decimalArray: [{label: 1, value: 1}, {label: 2, value: 2}, {label: 3, value: 3}, {label: 4, value: 4}],
|
|
201
222
|
collectiontypes: [{label: '按金额', value: '按金额'}, {label: '按气量', value: '按气量'}],
|
|
202
223
|
meterType: [{label: '金额卡表', value: '金额卡表'}, {label: '气量卡表', value: '气量卡表'}, {label: '机表', value: '机表'}, {label: '物联网表', value: '物联网表'}],
|
|
203
224
|
calculation: [{label: '表端结算', value: '表端结算'}, {label: '系统结算', value: '系统结算'}]
|
|
@@ -373,6 +394,8 @@ export default {
|
|
|
373
394
|
f_police_gas: '',
|
|
374
395
|
f_overdr_lines: '',
|
|
375
396
|
f_share_times: '',
|
|
397
|
+
f_gas_decimal: 4,
|
|
398
|
+
f_fee_decimal: 4,
|
|
376
399
|
f_is_check: [],
|
|
377
400
|
f_is_step: []
|
|
378
401
|
}
|