sale-client 3.4.112 → 3.4.113
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/.gradle/{5.2.1 → 4.4}/fileChanges/last-build.bin +0 -0
- package/.gradle/{6.1.1 → 4.4}/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/build/dev-server.js +3 -3
- package/{.gradle/5.2.1/gc.properties → npm} +0 -0
- package/package.json +1 -1
- package/src/components/FilesManage/MeterinfoTest.vue +904 -905
- package/src/components/FilesManage/TemplateManage.vue +167 -167
- package/src/components/FilesManage/UserGeneralInfoTest.vue +642 -640
- package/src/components/charge/business/CardChangeFill.vue +612 -612
- package/src/components/charge/business/CardMeterCenter.vue +899 -899
- package/src/components/charge/business/FilesComplete.vue +253 -253
- package/src/components/charge/business/refund/IOTRefund.vue +236 -236
- package/src/components/charge/business/refund/RefundManage.vue +28 -28
- package/src/components/charge/gasloss/gasLossOperate.vue +357 -357
- package/src/components/chargeNew/thirdSurplus.vue +2 -0
- package/src/components/revenue/Common/MeterMessage.vue +184 -184
- package/src/components/revenue/HandManager/MeterBookManage.vue +153 -153
- package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
- package/src/components/revenue/base/leftview/Mulitinfo.vue +74 -74
- package/src/components/revenue/base/leftview/SafeCheck.vue +311 -311
- package/src/components/revenue/base/leftview/Stairinfo.vue +156 -156
- package/src/components/revenue/base/leftview/meterinfodetail.vue +195 -195
- package/src/components/revenue/base/rightview/CardList.vue +477 -477
- package/src/components/revenue/comprehen/ComprehenOperation/MeterDisable/DisableManage.vue +93 -93
- package/src/components/revenue/comprehen/ComprehenOperation/MeterEnable/EnableManage.vue +184 -184
- package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +5 -1
- package/src/components/revenue/comprehen/ComprehenOperation/removeTable.vue +1 -1
- package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +638 -638
- package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +7 -7
- package/src/components/revenue/comprehen/Message/MessageList.vue +587 -587
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackList.vue +1 -1
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListManage.vue +1 -1
- package/src/components/revenue/comprehen/StairPrice/GasPriceList.vue +303 -303
- package/src/components/revenue/comprehen/replacement/replacementHandInfoRecord.vue +155 -155
- package/src/components/revenue/comprehen/wechatpay/WeChat.vue +62 -62
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +8 -4
- package/src/filiale/alashan/PrintBill.vue +116 -116
- package/src/filiale/jingwei/CardHand.vue +742 -742
- package/src/filiale/macheng/FilesManageNew/FileUserFiles.vue +743 -0
- package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +371 -371
- package/src/filiale/macheng/FilesManageNew/UserGeneralInfoTest.vue +596 -596
- package/src/filiale/macheng/UserEssentialInfoTest.vue +368 -366
- package/src/filiale/meihekou/MeterinfoTest.vue +0 -1
- package/src/filiale/meihekou/PrintBill.vue +140 -140
- package/src/filiale/meihekou/ReissueBill.vue +322 -322
- package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +0 -1
- package/src/filiale/qianneng/GasPriceList.vue +330 -330
- package/src/filiale/qianneng/HandManager.vue +1838 -1838
- package/src/filiale/qianneng/OtherChargeNew.vue +6 -2
- package/src/filiale/qianneng/sale.js +30 -32
- package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +538 -533
- package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +608 -608
- package/src/filiale/rongchuang/OtherGas.vue +329 -329
- package/src/filiale/tongchuan/CardList.vue +482 -482
- package/src/filiale/tongchuan/MeterinfoTest.vue +892 -892
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/AutomaticPurse.vue +298 -298
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/CardHandRecord.vue +267 -267
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +240 -240
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeRecord.vue +235 -235
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +372 -372
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/DeveiceRecord.vue +251 -251
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/FillCardQueryUser.vue +209 -209
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/HandQueryUser.vue +365 -365
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +252 -252
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/OtherChargeQueryUser.vue +250 -250
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/RecordQueryUser.vue +249 -249
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/TransferQueryUser.vue +222 -222
- package/src/filiale/tongchuan/sale.js +107 -107
- package/src/filiale/zhongsheng/rightview/CardList.vue +492 -492
- package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
- package/src/main.js +1 -1
- package/src/plugins/CardService.js +1798 -1798
- package/src/plugins/ChangeMeterService.js +756 -756
- package/src/plugins/FileManageService.js +366 -366
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
- package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/6.1.1/gc.properties +0 -0
- package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.1/fileChanges/last-build.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/checksums/checksums.lock +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
|
@@ -1,236 +1,236 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<validator name='v'>
|
|
4
|
-
<form novalidate class="form-horizontal">
|
|
5
|
-
<div class="row">
|
|
6
|
-
<div class="col-sm-4 form-group" :class="[$v.payment.required ? 'select-error' : '']">
|
|
7
|
-
<label class="font_normal_body" title="参数名称:付款方式">收款方式</label>
|
|
8
|
-
<input type="text" v-show="false" v-model="$refs.payment.selectedItems" v-validate:payment='{required: true }'>
|
|
9
|
-
<v-select v-model="f_payment"
|
|
10
|
-
placeholder='请选择'
|
|
11
|
-
style="width:60%"
|
|
12
|
-
:value.sync="model.f_payment"
|
|
13
|
-
:options='paytype'
|
|
14
|
-
v-ref:payment
|
|
15
|
-
close-on-select clear-button></v-select>
|
|
16
|
-
|
|
17
|
-
</div>
|
|
18
|
-
<div class="col-sm-4 form-group">
|
|
19
|
-
<label for="f_print" class="font_normal_body">打印格式</label>
|
|
20
|
-
|
|
21
|
-
<v-select id="print"
|
|
22
|
-
v-model="f_print"
|
|
23
|
-
style="width:60%"
|
|
24
|
-
placeholder='请选择'
|
|
25
|
-
:value.sync="model.f_print"
|
|
26
|
-
:options='printstyle'
|
|
27
|
-
close-on-select clear-button>
|
|
28
|
-
</v-select>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
|
|
31
|
-
<label class="font_normal_body">剩余气量</label>
|
|
32
|
-
<input class="input_search" style="width:60%" type="number" v-model="data.f_balance_gas" readonly>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
|
|
35
|
-
<label class="font_normal_body">核算单价</label>
|
|
36
|
-
<input class="input_search" style="width:60%" type="number" v-model="model.f_price" >
|
|
37
|
-
</div>
|
|
38
|
-
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按金额'">
|
|
39
|
-
<label class="font_normal_body">剩余金额</label>
|
|
40
|
-
<input class="input_search" style="width:60%" type="number" v-model="data.f_balance_amount" readonly>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="col-sm-4 form-group" v-if="config.overBalance && data.f_collection_type === '按气量'"
|
|
43
|
-
:class="[$v.f_refund_gas.required || $v.f_refund_gas.dctest ? 'has-error' : 'has-success']">
|
|
44
|
-
<label class="font_normal_body">冲减气量</label>
|
|
45
|
-
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_gas"
|
|
46
|
-
v-validate:f_refund_gas='{required: true, dctest: [0, ">=" ]}' placeholder="冲减气量" >
|
|
47
|
-
</div>
|
|
48
|
-
<div class="col-sm-4 form-group" v-if="!config.overBalance && data.f_collection_type === '按气量'"
|
|
49
|
-
:class="[$v.f_refund_gas.required || $v.f_refund_gas.dctest ? 'has-error' : 'has-success']">
|
|
50
|
-
<label class="font_normal_body">冲减气量</label>
|
|
51
|
-
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_gas"
|
|
52
|
-
v-validate:f_refund_gas='{required: true, dctest: [data.f_balance_gas, "<=" ]}' placeholder="冲减气量" >
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<div class="row">
|
|
57
|
-
|
|
58
|
-
<div class="col-sm-8">
|
|
59
|
-
<label for="f_paper_account" class="font_normal_body "> 备注 </label>
|
|
60
|
-
<input class="input_search" style="width:80%" v-model="model.f_comments">
|
|
61
|
-
</div>
|
|
62
|
-
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
|
|
63
|
-
<label class="font_normal_body">退费金额</label>
|
|
64
|
-
<input class="input_search" style="width:60%"
|
|
65
|
-
type="number" v-model="model.f_refund_fee"
|
|
66
|
-
placeholder="退费金额">
|
|
67
|
-
</div>
|
|
68
|
-
<div class="col-sm-4 form-group" v-if="!config.overBalance && data.f_collection_type === '按金额'"
|
|
69
|
-
:class="[$v.f_refund_fee.required || $v.f_refund_fee.dctest ? 'has-error' : 'has-success']">
|
|
70
|
-
<label class="font_normal_body">退费金额</label>
|
|
71
|
-
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_fee"
|
|
72
|
-
v-validate:f_refund_fee='{required: true, dctest: [data.f_balance_amount, "<=" ]}' placeholder="退费金额">
|
|
73
|
-
</div>
|
|
74
|
-
<div class="col-sm-4 form-group" v-if="config.overBalance && data.f_collection_type === '按金额'"
|
|
75
|
-
:class="[$v.f_refund_fee.required || $v.f_refund_fee.dctest ? 'has-error' : 'has-success']">
|
|
76
|
-
<label class="font_normal_body">退费金额</label>
|
|
77
|
-
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_fee"
|
|
78
|
-
v-validate:f_refund_fee='{required: true, dctest: [0, ">=" ]}' placeholder="退费金额">
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
</form>
|
|
82
|
-
<div style="text-align:right;">
|
|
83
|
-
<button class="button_search btn-gn" @click="confirm()" :disabled='!$v.valid'>确认</button>
|
|
84
|
-
<button class="button_clear btn-gn" @click="clean()">取消</button>
|
|
85
|
-
</div>
|
|
86
|
-
</validator>
|
|
87
|
-
<validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
|
|
88
|
-
<!--<print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="clean" @printok="printok" :data='printModel'></print-bill>-->
|
|
89
|
-
<print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="clean" @printok="printok" :data='printModel' v-ref:printbill></print-bill>
|
|
90
|
-
</div>
|
|
91
|
-
|
|
92
|
-
<upload :blodid="data.f_userinfo_id" isremark="true" fusetype="退费管理"></upload>
|
|
93
|
-
</template>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<script>
|
|
97
|
-
let readyGen = async function (self) {
|
|
98
|
-
await self.$getConfig(self, 'IOTRefund')
|
|
99
|
-
// 默认打印格式
|
|
100
|
-
self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
|
|
101
|
-
self.model.f_payment = [self.config.payment]
|
|
102
|
-
|
|
103
|
-
self.model.f_use_type = self.config.billType
|
|
104
|
-
self.model.f_bill_type = self.model.f_print
|
|
105
|
-
self.hasValidateBill = self.config.hasBillManage
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export default {
|
|
109
|
-
title: '物联网表退费',
|
|
110
|
-
data () {
|
|
111
|
-
return {
|
|
112
|
-
config: {
|
|
113
|
-
showupload: false, // 默认不上传附件
|
|
114
|
-
hasPrint: false, // 默认打票
|
|
115
|
-
hasBillManage: false, // 默认不启用发票管理
|
|
116
|
-
overBalance: false, //为true时退费金额可以大于余额
|
|
117
|
-
printType: '普通收据', // 收据/电子票/专用发票/国税发票
|
|
118
|
-
payment: '现金缴费',
|
|
119
|
-
billType: '燃气费'
|
|
120
|
-
},
|
|
121
|
-
model: {
|
|
122
|
-
f_refund_fee: '',
|
|
123
|
-
f_refund_gas: '',
|
|
124
|
-
f_comments: '',
|
|
125
|
-
f_payment: '',
|
|
126
|
-
f_print: '',
|
|
127
|
-
f_price: 0
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
blodid: '',
|
|
131
|
-
hasValidateBill: false,
|
|
132
|
-
validateOk: false,
|
|
133
|
-
|
|
134
|
-
printModel: {},
|
|
135
|
-
print: false,
|
|
136
|
-
billUrl: '',
|
|
137
|
-
billData: {
|
|
138
|
-
url: 'rs/report/refund_sell',
|
|
139
|
-
bill: ''
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
// 下拉框值
|
|
143
|
-
paytype: this.$appdata.getParam('付款方式'),
|
|
144
|
-
printstyle: this.$appdata.getParam('打印格式')
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
props: ['data'],
|
|
148
|
-
ready () {
|
|
149
|
-
readyGen(this)
|
|
150
|
-
if (this.data.f_collection_type === '按气量') {
|
|
151
|
-
// this.$showAlert('按气量缴费的物联网表退费功能尚未开放!!', 'warning', 3000)
|
|
152
|
-
this.model.f_price = this.data.f_price
|
|
153
|
-
|
|
154
|
-
// this.$dispatch('refresh')
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
methods: {
|
|
158
|
-
async confirm () {
|
|
159
|
-
let param = {
|
|
160
|
-
f_user_id: this.data.f_user_id,
|
|
161
|
-
f_userfiles_id: this.data.f_userfiles_id,
|
|
162
|
-
version: this.data.version,
|
|
163
|
-
f_price: this.model.f_price,
|
|
164
|
-
f_refund_gas: this.model.f_refund_gas,
|
|
165
|
-
f_refund_fee: this.model.f_refund_fee,
|
|
166
|
-
f_comments: this.model.f_comments,
|
|
167
|
-
f_collection_type: this.data.f_collection_type,
|
|
168
|
-
f_payment: this.model.f_payment[0],
|
|
169
|
-
f_print: this.model.f_print[0],
|
|
170
|
-
f_price_id: this.data.f_price_id,
|
|
171
|
-
f_total_gas: parseFloat(this.data.f_total_gas) - parseFloat(this.model.f_refund_gas),
|
|
172
|
-
f_total_fee: parseFloat(this.data.f_total_fee) - parseFloat(this.model.f_refund_fee),
|
|
173
|
-
f_stairprice_id: this.data.f_stairprice_id,
|
|
174
|
-
operInfo: {
|
|
175
|
-
f_operator: this.$login.f.name,
|
|
176
|
-
f_operatorid: this.$login.f.id,
|
|
177
|
-
f_orgid: this.$login.f.orgid,
|
|
178
|
-
f_orgname: this.$login.f.orgs,
|
|
179
|
-
f_depid: this.$login.f.depids,
|
|
180
|
-
f_depname: this.$login.f.deps
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
console.log('退费传参', param)
|
|
184
|
-
let res = await this.$resetpost('rs/logic/iotRefund', {data: param}, {warnMsg: `确定要对用户${this.data.f_user_name}进行退费吗?`, resolveMsg: '退费成功!!', rejectMsg: '退费失败!!请重试!!'})
|
|
185
|
-
console.log('退费', res)
|
|
186
|
-
console.log('退费this.config', this.config)
|
|
187
|
-
console.log('退费this.model', this.model)
|
|
188
|
-
if (this.config.hasPrint) {
|
|
189
|
-
if (this.model.f_print.indexOf('电子发票') == -1) {
|
|
190
|
-
console.log('this.config.hasBillManage', this.config.hasBillManage)
|
|
191
|
-
if (this.config.hasBillManage) {
|
|
192
|
-
// 启用发票管理,获取票据管理中的票号并存储记录
|
|
193
|
-
this.printModel.id = res.data.id
|
|
194
|
-
this.printModel.f_bill_type = '退费'
|
|
195
|
-
this.printModel.f_bill_style = this.model.f_print[0]
|
|
196
|
-
// this.billUrl = 'rs/report/refund_sell'
|
|
197
|
-
this.print = true
|
|
198
|
-
} else {
|
|
199
|
-
this.printModel.id = res.data.id
|
|
200
|
-
// this.billUrl = 'rs/report/refund_sell'
|
|
201
|
-
this.print = true
|
|
202
|
-
}
|
|
203
|
-
} else if (this.config.printType === '国税发票') {
|
|
204
|
-
// TODO
|
|
205
|
-
this.$dispatch('success')
|
|
206
|
-
} else if (this.config.printType === '电子发票') {
|
|
207
|
-
// TODO
|
|
208
|
-
this.$dispatch('success')
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
this.$dispatch('success')
|
|
212
|
-
},
|
|
213
|
-
refundChange () {
|
|
214
|
-
this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
|
|
215
|
-
},
|
|
216
|
-
clean () {
|
|
217
|
-
this.$dispatch('refresh')
|
|
218
|
-
},
|
|
219
|
-
printok () {
|
|
220
|
-
this.$dispatch('success')
|
|
221
|
-
},
|
|
222
|
-
validateBill (val) {
|
|
223
|
-
this.validateOk = !val.isOk
|
|
224
|
-
this.billData.bill = val.bill
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
watch:{
|
|
228
|
-
'model.f_price'(){
|
|
229
|
-
this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
|
|
230
|
-
},
|
|
231
|
-
'model.f_refund_gas'(){
|
|
232
|
-
this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<form novalidate class="form-horizontal">
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-4 form-group" :class="[$v.payment.required ? 'select-error' : '']">
|
|
7
|
+
<label class="font_normal_body" title="参数名称:付款方式">收款方式</label>
|
|
8
|
+
<input type="text" v-show="false" v-model="$refs.payment.selectedItems" v-validate:payment='{required: true }'>
|
|
9
|
+
<v-select v-model="f_payment"
|
|
10
|
+
placeholder='请选择'
|
|
11
|
+
style="width:60%"
|
|
12
|
+
:value.sync="model.f_payment"
|
|
13
|
+
:options='paytype'
|
|
14
|
+
v-ref:payment
|
|
15
|
+
close-on-select clear-button></v-select>
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-4 form-group">
|
|
19
|
+
<label for="f_print" class="font_normal_body">打印格式</label>
|
|
20
|
+
|
|
21
|
+
<v-select id="print"
|
|
22
|
+
v-model="f_print"
|
|
23
|
+
style="width:60%"
|
|
24
|
+
placeholder='请选择'
|
|
25
|
+
:value.sync="model.f_print"
|
|
26
|
+
:options='printstyle'
|
|
27
|
+
close-on-select clear-button>
|
|
28
|
+
</v-select>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
|
|
31
|
+
<label class="font_normal_body">剩余气量</label>
|
|
32
|
+
<input class="input_search" style="width:60%" type="number" v-model="data.f_balance_gas" readonly>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
|
|
35
|
+
<label class="font_normal_body">核算单价</label>
|
|
36
|
+
<input class="input_search" style="width:60%" type="number" v-model="model.f_price" >
|
|
37
|
+
</div>
|
|
38
|
+
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按金额'">
|
|
39
|
+
<label class="font_normal_body">剩余金额</label>
|
|
40
|
+
<input class="input_search" style="width:60%" type="number" v-model="data.f_balance_amount" readonly>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="col-sm-4 form-group" v-if="config.overBalance && data.f_collection_type === '按气量'"
|
|
43
|
+
:class="[$v.f_refund_gas.required || $v.f_refund_gas.dctest ? 'has-error' : 'has-success']">
|
|
44
|
+
<label class="font_normal_body">冲减气量</label>
|
|
45
|
+
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_gas"
|
|
46
|
+
v-validate:f_refund_gas='{required: true, dctest: [0, ">=" ]}' placeholder="冲减气量" >
|
|
47
|
+
</div>
|
|
48
|
+
<div class="col-sm-4 form-group" v-if="!config.overBalance && data.f_collection_type === '按气量'"
|
|
49
|
+
:class="[$v.f_refund_gas.required || $v.f_refund_gas.dctest ? 'has-error' : 'has-success']">
|
|
50
|
+
<label class="font_normal_body">冲减气量</label>
|
|
51
|
+
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_gas"
|
|
52
|
+
v-validate:f_refund_gas='{required: true, dctest: [data.f_balance_gas, "<=" ]}' placeholder="冲减气量" >
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div class="row">
|
|
57
|
+
|
|
58
|
+
<div class="col-sm-8">
|
|
59
|
+
<label for="f_paper_account" class="font_normal_body "> 备注 </label>
|
|
60
|
+
<input class="input_search" style="width:80%" v-model="model.f_comments">
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
|
|
63
|
+
<label class="font_normal_body">退费金额</label>
|
|
64
|
+
<input class="input_search" style="width:60%"
|
|
65
|
+
type="number" v-model="model.f_refund_fee"
|
|
66
|
+
placeholder="退费金额">
|
|
67
|
+
</div>
|
|
68
|
+
<div class="col-sm-4 form-group" v-if="!config.overBalance && data.f_collection_type === '按金额'"
|
|
69
|
+
:class="[$v.f_refund_fee.required || $v.f_refund_fee.dctest ? 'has-error' : 'has-success']">
|
|
70
|
+
<label class="font_normal_body">退费金额</label>
|
|
71
|
+
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_fee"
|
|
72
|
+
v-validate:f_refund_fee='{required: true, dctest: [data.f_balance_amount, "<=" ]}' placeholder="退费金额">
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-sm-4 form-group" v-if="config.overBalance && data.f_collection_type === '按金额'"
|
|
75
|
+
:class="[$v.f_refund_fee.required || $v.f_refund_fee.dctest ? 'has-error' : 'has-success']">
|
|
76
|
+
<label class="font_normal_body">退费金额</label>
|
|
77
|
+
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_fee"
|
|
78
|
+
v-validate:f_refund_fee='{required: true, dctest: [0, ">=" ]}' placeholder="退费金额">
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</form>
|
|
82
|
+
<div style="text-align:right;">
|
|
83
|
+
<button class="button_search btn-gn" @click="confirm()" :disabled='!$v.valid'>确认</button>
|
|
84
|
+
<button class="button_clear btn-gn" @click="clean()">取消</button>
|
|
85
|
+
</div>
|
|
86
|
+
</validator>
|
|
87
|
+
<validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
|
|
88
|
+
<!--<print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="clean" @printok="printok" :data='printModel'></print-bill>-->
|
|
89
|
+
<print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="clean" @printok="printok" :data='printModel' v-ref:printbill></print-bill>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<upload :blodid="data.f_userinfo_id" isremark="true" fusetype="退费管理"></upload>
|
|
93
|
+
</template>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
<script>
|
|
97
|
+
let readyGen = async function (self) {
|
|
98
|
+
await self.$getConfig(self, 'IOTRefund')
|
|
99
|
+
// 默认打印格式
|
|
100
|
+
self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
|
|
101
|
+
self.model.f_payment = [self.config.payment]
|
|
102
|
+
|
|
103
|
+
self.model.f_use_type = self.config.billType
|
|
104
|
+
self.model.f_bill_type = self.model.f_print
|
|
105
|
+
self.hasValidateBill = self.config.hasBillManage
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export default {
|
|
109
|
+
title: '物联网表退费',
|
|
110
|
+
data () {
|
|
111
|
+
return {
|
|
112
|
+
config: {
|
|
113
|
+
showupload: false, // 默认不上传附件
|
|
114
|
+
hasPrint: false, // 默认打票
|
|
115
|
+
hasBillManage: false, // 默认不启用发票管理
|
|
116
|
+
overBalance: false, //为true时退费金额可以大于余额
|
|
117
|
+
printType: '普通收据', // 收据/电子票/专用发票/国税发票
|
|
118
|
+
payment: '现金缴费',
|
|
119
|
+
billType: '燃气费'
|
|
120
|
+
},
|
|
121
|
+
model: {
|
|
122
|
+
f_refund_fee: '',
|
|
123
|
+
f_refund_gas: '',
|
|
124
|
+
f_comments: '',
|
|
125
|
+
f_payment: '',
|
|
126
|
+
f_print: '',
|
|
127
|
+
f_price: 0
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
blodid: '',
|
|
131
|
+
hasValidateBill: false,
|
|
132
|
+
validateOk: false,
|
|
133
|
+
|
|
134
|
+
printModel: {},
|
|
135
|
+
print: false,
|
|
136
|
+
billUrl: '',
|
|
137
|
+
billData: {
|
|
138
|
+
url: 'rs/report/refund_sell',
|
|
139
|
+
bill: ''
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
// 下拉框值
|
|
143
|
+
paytype: this.$appdata.getParam('付款方式'),
|
|
144
|
+
printstyle: this.$appdata.getParam('打印格式')
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
props: ['data'],
|
|
148
|
+
ready () {
|
|
149
|
+
readyGen(this)
|
|
150
|
+
if (this.data.f_collection_type === '按气量') {
|
|
151
|
+
// this.$showAlert('按气量缴费的物联网表退费功能尚未开放!!', 'warning', 3000)
|
|
152
|
+
this.model.f_price = this.data.f_price
|
|
153
|
+
|
|
154
|
+
// this.$dispatch('refresh')
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
methods: {
|
|
158
|
+
async confirm () {
|
|
159
|
+
let param = {
|
|
160
|
+
f_user_id: this.data.f_user_id,
|
|
161
|
+
f_userfiles_id: this.data.f_userfiles_id,
|
|
162
|
+
version: this.data.version,
|
|
163
|
+
f_price: this.model.f_price,
|
|
164
|
+
f_refund_gas: this.model.f_refund_gas,
|
|
165
|
+
f_refund_fee: this.model.f_refund_fee,
|
|
166
|
+
f_comments: this.model.f_comments,
|
|
167
|
+
f_collection_type: this.data.f_collection_type,
|
|
168
|
+
f_payment: this.model.f_payment[0],
|
|
169
|
+
f_print: this.model.f_print[0],
|
|
170
|
+
f_price_id: this.data.f_price_id,
|
|
171
|
+
f_total_gas: parseFloat(this.data.f_total_gas) - parseFloat(this.model.f_refund_gas),
|
|
172
|
+
f_total_fee: parseFloat(this.data.f_total_fee) - parseFloat(this.model.f_refund_fee),
|
|
173
|
+
f_stairprice_id: this.data.f_stairprice_id,
|
|
174
|
+
operInfo: {
|
|
175
|
+
f_operator: this.$login.f.name,
|
|
176
|
+
f_operatorid: this.$login.f.id,
|
|
177
|
+
f_orgid: this.$login.f.orgid,
|
|
178
|
+
f_orgname: this.$login.f.orgs,
|
|
179
|
+
f_depid: this.$login.f.depids,
|
|
180
|
+
f_depname: this.$login.f.deps
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
console.log('退费传参', param)
|
|
184
|
+
let res = await this.$resetpost('rs/logic/iotRefund', {data: param}, {warnMsg: `确定要对用户${this.data.f_user_name}进行退费吗?`, resolveMsg: '退费成功!!', rejectMsg: '退费失败!!请重试!!'})
|
|
185
|
+
console.log('退费', res)
|
|
186
|
+
console.log('退费this.config', this.config)
|
|
187
|
+
console.log('退费this.model', this.model)
|
|
188
|
+
if (this.config.hasPrint) {
|
|
189
|
+
if (this.model.f_print.indexOf('电子发票') == -1) {
|
|
190
|
+
console.log('this.config.hasBillManage', this.config.hasBillManage)
|
|
191
|
+
if (this.config.hasBillManage) {
|
|
192
|
+
// 启用发票管理,获取票据管理中的票号并存储记录
|
|
193
|
+
this.printModel.id = res.data.id
|
|
194
|
+
this.printModel.f_bill_type = '退费'
|
|
195
|
+
this.printModel.f_bill_style = this.model.f_print[0]
|
|
196
|
+
// this.billUrl = 'rs/report/refund_sell'
|
|
197
|
+
this.print = true
|
|
198
|
+
} else {
|
|
199
|
+
this.printModel.id = res.data.id
|
|
200
|
+
// this.billUrl = 'rs/report/refund_sell'
|
|
201
|
+
this.print = true
|
|
202
|
+
}
|
|
203
|
+
} else if (this.config.printType === '国税发票') {
|
|
204
|
+
// TODO
|
|
205
|
+
this.$dispatch('success')
|
|
206
|
+
} else if (this.config.printType === '电子发票') {
|
|
207
|
+
// TODO
|
|
208
|
+
this.$dispatch('success')
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
this.$dispatch('success')
|
|
212
|
+
},
|
|
213
|
+
refundChange () {
|
|
214
|
+
this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
|
|
215
|
+
},
|
|
216
|
+
clean () {
|
|
217
|
+
this.$dispatch('refresh')
|
|
218
|
+
},
|
|
219
|
+
printok () {
|
|
220
|
+
this.$dispatch('success')
|
|
221
|
+
},
|
|
222
|
+
validateBill (val) {
|
|
223
|
+
this.validateOk = !val.isOk
|
|
224
|
+
this.billData.bill = val.bill
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
watch:{
|
|
228
|
+
'model.f_price'(){
|
|
229
|
+
this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
|
|
230
|
+
},
|
|
231
|
+
'model.f_refund_gas'(){
|
|
232
|
+
this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
</script>
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<iot-refund v-if="row.f_meter_type === '物联网表'" :data="row"></iot-refund>
|
|
4
|
-
<machine-Refund v-if="row.f_meter_type !== '物联网表'" :data="row"></machine-Refund>
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
</template>
|
|
8
|
-
<script>
|
|
9
|
-
import IotRefund from './IOTRefund'
|
|
10
|
-
import machineRefund from './machineRefund'
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
title: '退费管理',
|
|
14
|
-
components: {
|
|
15
|
-
IotRefund,
|
|
16
|
-
machineRefund
|
|
17
|
-
},
|
|
18
|
-
data () {
|
|
19
|
-
return {
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
ready () {
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
props: ['row']
|
|
27
|
-
}
|
|
28
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<iot-refund v-if="row.f_meter_type === '物联网表'" :data="row"></iot-refund>
|
|
4
|
+
<machine-Refund v-if="row.f_meter_type !== '物联网表'" :data="row"></machine-Refund>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
</template>
|
|
8
|
+
<script>
|
|
9
|
+
import IotRefund from './IOTRefund'
|
|
10
|
+
import machineRefund from './machineRefund'
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
title: '退费管理',
|
|
14
|
+
components: {
|
|
15
|
+
IotRefund,
|
|
16
|
+
machineRefund
|
|
17
|
+
},
|
|
18
|
+
data () {
|
|
19
|
+
return {
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
ready () {
|
|
24
|
+
|
|
25
|
+
},
|
|
26
|
+
props: ['row']
|
|
27
|
+
}
|
|
28
|
+
</script>
|