sale-client 3.6.153 → 3.6.154
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 -1
- package/package.json +1 -1
- package/src/components/charge/business/CardMeterCenter.vue +6 -2
- package/src/components/charge/business/IOTMeterCenter.vue +33 -24
- package/src/components/revenue/Common/PrintBill.vue +5 -2
- package/src/filiale/liaoyuan/ChargeList.vue +7 -1
- package/src/filiale/qingjian/CardMeterCenter.vue +948 -0
- package/src/filiale/qingjian/ShowCardSellGas.vue +920 -0
- package/src/filiale/qingjian/sale.js +9 -0
- package/src/main.js +2 -2
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
package/build/dev-server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
|
-
const [ serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://
|
|
2
|
+
const [ serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://localhost:8080/']
|
|
3
3
|
var merge = require('webpack-merge')
|
|
4
4
|
var baseConfig = require('./webpack.dev.conf')
|
|
5
5
|
var devConfig = {
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<div class="col-sm-4" v-if="row.f_collection_type == '按金额'">
|
|
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
|
-
@blur="pregas()" v-model="model.f_pregas" placeholder="预购气量"
|
|
29
|
+
@keyup.enter="pregas('enter')" @blur="pregas()" v-model="model.f_pregas" placeholder="预购气量"
|
|
30
30
|
v-scale="[model.f_pregas, row.f_gas_decimal||4 ]"
|
|
31
31
|
v-next-el='fcollection' :disabled="config.calculatePreByCollection"/>
|
|
32
32
|
</div>
|
|
@@ -510,6 +510,7 @@
|
|
|
510
510
|
calculatePreByCollection: false, // 可以更具收款来反向计算预购
|
|
511
511
|
notShowFormula: false, // 不显示计算公式,默认显示
|
|
512
512
|
autoCollection: true, // 自动填写收款
|
|
513
|
+
quickSale: false,
|
|
513
514
|
showupload: true, // 显示上传
|
|
514
515
|
hasPrint: true, // 默认打票
|
|
515
516
|
hasBillManage: false, // 默认不启用发票管理
|
|
@@ -759,7 +760,7 @@
|
|
|
759
760
|
printok () {
|
|
760
761
|
this.$dispatch('success', '卡表收费')
|
|
761
762
|
},
|
|
762
|
-
pregas () {
|
|
763
|
+
pregas (val) {
|
|
763
764
|
this.dymoney = 0
|
|
764
765
|
if (this.model.f_pregas && this.model.f_pregas > 0) {
|
|
765
766
|
try {
|
|
@@ -769,6 +770,9 @@
|
|
|
769
770
|
this.model.f_pregas = null
|
|
770
771
|
} else {
|
|
771
772
|
pregasGen(this)
|
|
773
|
+
if (this.config.quickSale) {
|
|
774
|
+
this.$els.fcollection.focus()
|
|
775
|
+
}
|
|
772
776
|
}
|
|
773
777
|
} catch (error) {
|
|
774
778
|
this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<div class="col-sm-4 form-group"
|
|
37
37
|
:class="[$v.f_preamount.required || $v.f_preamount.dctest? 'has-error' : 'has-success']">
|
|
38
38
|
<label for="f_preamount" class=" font_normal_body">预购金额</label>
|
|
39
|
-
<input class="input_search" style="width:60%" @blur="preamount()" type="number" v-model="model.f_preamount" id="f_preamount"
|
|
39
|
+
<input class="input_search" style="width:60%" @keyup.enter="preamount()" @blur="preamount()" type="number" v-model="model.f_preamount" id="f_preamount"
|
|
40
40
|
v-validate:f_preamount='{required: true, dctest: [maxmoney, "<=" ] }'
|
|
41
41
|
:disabled="config.calculatePreByCollection"
|
|
42
42
|
v-scale="[model.f_preamount, row.f_fee_decimal||4]" placeholder="预购金额" >
|
|
@@ -110,7 +110,8 @@
|
|
|
110
110
|
<label for="f_collection" class=" font_normal_body"> 收款 </label>
|
|
111
111
|
<input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
|
|
112
112
|
@blur="config.calculatePreByCollection && calculatePreByCollection()"
|
|
113
|
-
|
|
113
|
+
@keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"
|
|
114
|
+
v-el:sk v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="!config.calculatePreByCollection && !config.quickSale">
|
|
114
115
|
</div>
|
|
115
116
|
<div class="col-sm-1 form-group">
|
|
116
117
|
<give-change :curbalance="curbalance" :collection.sync="model.f_collection" v-ref:givechange></give-change>
|
|
@@ -470,6 +471,7 @@
|
|
|
470
471
|
priceCalculation: false, // 划气量控制
|
|
471
472
|
showupload: true, // 默认显示附件上传组件
|
|
472
473
|
hasPrint: false, // 默认打票
|
|
474
|
+
quickSale: false, // enter键快捷收费
|
|
473
475
|
taxforidnumber: true, // 身份证号同步到纳税人识别号
|
|
474
476
|
floor: true, // 是否取整收费
|
|
475
477
|
hasBillManage: false, // 默认不启用发票管理
|
|
@@ -653,31 +655,35 @@
|
|
|
653
655
|
})
|
|
654
656
|
},
|
|
655
657
|
// 校验发票信息
|
|
656
|
-
checkInvoiceMsg () {
|
|
658
|
+
checkInvoiceMsg (flag) {
|
|
659
|
+
if (flag) return
|
|
660
|
+
if (this.config.quickSale) {
|
|
657
661
|
// 校验是否超出最大透支余额
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
if (this.model.f_payment == '系统余额透支') {
|
|
663
|
+
const maxOverdraftBalance = -(((this.$appdata.getSingleValue('最大透支余额') - 0) || 1000) - 0)
|
|
664
|
+
const curSysBalance = ((this.row.f_sys_balance || 0) - 0) - (this.model.f_totalcost - 0)
|
|
665
|
+
if (curSysBalance < maxOverdraftBalance) {
|
|
666
|
+
this.$showAlert('您的系统余额将超出最大透支余额,请使用别的付款方式!', 'danger', 5000)
|
|
667
|
+
return
|
|
668
|
+
}
|
|
669
|
+
this.model.f_sys_balance = curSysBalance
|
|
664
670
|
}
|
|
665
|
-
this.model.f_sys_balance = curSysBalance
|
|
666
|
-
}
|
|
667
671
|
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
672
|
+
if (this.model.f_print[0] === '电子发票') {
|
|
673
|
+
if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
|
|
674
|
+
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
675
|
+
}
|
|
676
|
+
if (!this.row.f_paper_name) {
|
|
677
|
+
this.row.f_paper_name = this.row.f_user_name
|
|
678
|
+
}
|
|
679
|
+
if (!this.row.f_address_phone) {
|
|
680
|
+
this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
|
|
681
|
+
}
|
|
682
|
+
this.eticket_msg = true
|
|
683
|
+
} else {
|
|
684
|
+
this.confirm()
|
|
677
685
|
}
|
|
678
|
-
|
|
679
|
-
} else {
|
|
680
|
-
this.confirm()
|
|
686
|
+
|
|
681
687
|
}
|
|
682
688
|
},
|
|
683
689
|
eticket_toggle () {
|
|
@@ -686,9 +692,9 @@
|
|
|
686
692
|
},
|
|
687
693
|
async confirm () {
|
|
688
694
|
let res = await this.$showMessage(`确定对客户${this.row.f_user_name}进行物联网表缴费吗?`, ['confirm', 'cancel'])
|
|
689
|
-
this.clickConfirm = true
|
|
690
695
|
if (res != 'confirm') return
|
|
691
696
|
// 先调用付款码支付组件流程
|
|
697
|
+
this.clickConfirm = true
|
|
692
698
|
let ss = await this.$refs.paymentcode.flowPath()
|
|
693
699
|
this.$refs.paymentcode.paymentCodeShow = false
|
|
694
700
|
console.log('付款码操作返回', ss)
|
|
@@ -740,6 +746,9 @@
|
|
|
740
746
|
if (this.model.f_preamount && this.model.f_preamount > 0) {
|
|
741
747
|
try {
|
|
742
748
|
preamountGen(this)
|
|
749
|
+
if (this.config.quickSale) {
|
|
750
|
+
this.$els.sk.focus()
|
|
751
|
+
}
|
|
743
752
|
} catch (error) {
|
|
744
753
|
this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
|
|
745
754
|
this.$dispatch('error', '发卡售气', this.model, error)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="auto form-horizontal" >
|
|
3
|
-
<modal :show.sync="show
|
|
3
|
+
<modal :show.sync="show&&!billConfig.autoPrint" v-ref:modal large backdrop="false">
|
|
4
4
|
<header slot="modal-header" class="modal-header">
|
|
5
5
|
<h3 style="color:black" class="modal-title">收费发票</h3>
|
|
6
6
|
</header>
|
|
@@ -46,8 +46,10 @@
|
|
|
46
46
|
console.log('self.billData.url:', self.billData.url)
|
|
47
47
|
self.bill = new DataModel(self.billData.url, temp)
|
|
48
48
|
await self.bill.search(self.data.id)
|
|
49
|
+
console.log(222)
|
|
49
50
|
// 获取发票号
|
|
50
|
-
self.model.f_using_number = self.billData.
|
|
51
|
+
self.model.f_using_number = self.billData.number
|
|
52
|
+
console.log(333)
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
export default {
|
|
@@ -106,6 +108,7 @@
|
|
|
106
108
|
'show' (val) {
|
|
107
109
|
if (val) {
|
|
108
110
|
getBillData(this, val).then(() => {
|
|
111
|
+
console.log(444)
|
|
109
112
|
if(this.billConfig.autoPrint){
|
|
110
113
|
this.print()
|
|
111
114
|
}
|
|
@@ -105,6 +105,12 @@
|
|
|
105
105
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_card_id" placeholder='卡号'
|
|
106
106
|
condition="f_card_id like '%{}%'">
|
|
107
107
|
</div>
|
|
108
|
+
|
|
109
|
+
<div class="form-group col-sm-4">
|
|
110
|
+
<label class="font_normal_body">身份证号</label>
|
|
111
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_idnumber" placeholder='身份证号'
|
|
112
|
+
condition="f_idnumber = '{}'">
|
|
113
|
+
</div>
|
|
108
114
|
</div>
|
|
109
115
|
<div class="form-group col-sm-4" style="float:right;white-space: nowrap;width: auto">
|
|
110
116
|
<read-card :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-if="!$parent.$parent.noRead" v-ref:readcard></read-card>
|
|
@@ -136,7 +142,7 @@
|
|
|
136
142
|
<td :class="{'bg-danger' : (row.f_table_state === '停用' || row.f_user_state === '销户') }"><nobr>
|
|
137
143
|
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
138
144
|
</nobr> </td>
|
|
139
|
-
<td style="white-space: nowrap;" :class="{'bg-danger' : (row.f_table_state === '停用' || row.f_user_state === '销户') }">{{row.f_user_name}} {{row.f_user_phone}} {{row.f_address}}</td>
|
|
145
|
+
<td style="white-space: nowrap;" :class="{'bg-danger' : (row.f_table_state === '停用' || row.f_user_state === '销户') }">{{row.f_user_name}} {{row.f_user_phone}} {{row.f_address}} {{row.f_idnumber}}</td>
|
|
140
146
|
<td style="white-space: nowrap;" :class="{'bg-danger' : (row.f_table_state === '停用' || row.f_user_state === '销户') }">{{row.f_user_id}} {{row.f_gasproperties}} {{row.f_meter_brand}}
|
|
141
147
|
{{row.f_meter_style}} {{row.f_price_type}} {{row.f_price_name}}
|
|
142
148
|
</td>
|