sale-client 4.2.26 → 4.2.28
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/8.10/checksums/checksums.lock +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.10/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.npmignore +12 -0
- package/build/dev-server.js +20 -14
- package/package.json +1 -1
- package/src/.npmignore +1 -0
- package/src/filiale/meihekou/manualChargeCenter.vue +394 -394
- package/src/filiale/qingjian/FileUserFiles.vue +55 -2
- package/src/filiale/ruihua/IOTRefund.vue +303 -0
- package/src/filiale/ruihua/sale.js +2 -0
- package/src/main.js +1 -1
- package/yarn.lock +12208 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- /package/.gradle/{5.2.1 → 8.10/dependencies-accessors}/gc.properties +0 -0
- /package/.gradle/{5.2.1 → 8.10}/fileChanges/last-build.bin +0 -0
|
@@ -87,6 +87,9 @@
|
|
|
87
87
|
v-if="$parent.$parent.rows && $parent.$parent.rows.length === 1 && $parent.$parent.rows[0].f_user_state === '销户'">
|
|
88
88
|
启用
|
|
89
89
|
</button>
|
|
90
|
+
<button @click="$parent.$parent.openBatchModal()" class="button_clear button_spacing"
|
|
91
|
+
style="float: right">批量修改调压箱
|
|
92
|
+
</button>
|
|
90
93
|
<div
|
|
91
94
|
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
92
95
|
@click="$parent.$parent.hidden()"
|
|
@@ -302,7 +305,7 @@
|
|
|
302
305
|
</div>
|
|
303
306
|
</div>
|
|
304
307
|
</criteria>
|
|
305
|
-
<data-grid :model="model" class="list_area table_sy" @dblclick="$parent.modifyUser" v-ref:grid partial='list'>
|
|
308
|
+
<data-grid :model="model" class="list_area table_sy" @dblclick="$parent.modifyUser" v-ref:grid partial='list' optional>
|
|
306
309
|
<template partial='head'>
|
|
307
310
|
<tr>
|
|
308
311
|
<th>
|
|
@@ -475,6 +478,20 @@
|
|
|
475
478
|
<button class="button_search button_spacing" type="button" @click="close2()">取消</button>
|
|
476
479
|
</footer>
|
|
477
480
|
</modal>
|
|
481
|
+
<modal :show.sync="showModifyAdjustables" width="500px" title="批量修改调压箱" large backdrop="false">
|
|
482
|
+
<article slot="modal-body" class="modal-body" style="height: 70px">
|
|
483
|
+
<label class="font_normal_body">调 压 箱</label>
|
|
484
|
+
<v-select :options='adjustablesNew' :search='true'
|
|
485
|
+
:value.sync="f_adjustable_id"
|
|
486
|
+
close-on-select
|
|
487
|
+
placeholder='调压箱'
|
|
488
|
+
v-model='f_adjustable_id'></v-select>
|
|
489
|
+
</article>
|
|
490
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
491
|
+
<button class="button_search button_spacing" :disabled="!f_adjustable_id || f_adjustable_id.length < 1 " type="button" @click="batchModifyAdjustables()">确认</button>
|
|
492
|
+
<button class="button_search button_spacing" type="button" @click="closeBatchAdjustables()">取消</button>
|
|
493
|
+
</footer>
|
|
494
|
+
</modal>
|
|
478
495
|
<!--<user-flow-sheet :show="printflag" :bill-config='configs' :bill-data='billData' :data='newdata' v-on:toggle="close" @printok="printok" v-ref:printbill></user-flow-sheet>-->
|
|
479
496
|
|
|
480
497
|
<work-busy :is-busy="iswork" v-show="iswork"></work-busy>
|
|
@@ -570,7 +587,8 @@ let loadParamGem = async function (self) {
|
|
|
570
587
|
xiaohushow: false,
|
|
571
588
|
inputtores: this.$appdata.getParam('抄表员'),
|
|
572
589
|
adjustables: [],
|
|
573
|
-
|
|
590
|
+
adjustablesNew: [],
|
|
591
|
+
f_adjustable_id: '',
|
|
574
592
|
// 导入组件
|
|
575
593
|
show: false,
|
|
576
594
|
|
|
@@ -602,6 +620,7 @@ let loadParamGem = async function (self) {
|
|
|
602
620
|
showselectaddress: false,
|
|
603
621
|
isedit: false,
|
|
604
622
|
clientWidth: document.body.clientWidth,
|
|
623
|
+
showModifyAdjustables: false,
|
|
605
624
|
batchMeterShow: false,
|
|
606
625
|
billData: {
|
|
607
626
|
url: 'api/af-revenue/report/userignition',
|
|
@@ -635,6 +654,35 @@ let loadParamGem = async function (self) {
|
|
|
635
654
|
}
|
|
636
655
|
},
|
|
637
656
|
methods: {
|
|
657
|
+
openBatchModal () {
|
|
658
|
+
let rowdata = this.$refs.paged.$refs.grid.getRowData()
|
|
659
|
+
if (rowdata.length <= 0) {
|
|
660
|
+
this.$showMessage('请至少选择一个表具!')
|
|
661
|
+
return
|
|
662
|
+
}
|
|
663
|
+
this.showModifyAdjustables = true
|
|
664
|
+
},
|
|
665
|
+
async batchModifyAdjustables() {
|
|
666
|
+
let rowdata = this.$refs.paged.$refs.grid.getRowData()
|
|
667
|
+
let userfilesIds = rowdata.map(item => item.f_userfiles_id);
|
|
668
|
+
console.log('已选择的数据', userfilesIds)
|
|
669
|
+
console.log('已选择的调压箱', this.f_adjustable_id)
|
|
670
|
+
let model = {
|
|
671
|
+
f_adjustable_id: this.f_adjustable_id,
|
|
672
|
+
f_userfiles_ids: userfilesIds
|
|
673
|
+
}
|
|
674
|
+
await this.$resetpost('api/af-revenue/logic/batchModifyAdjustables', model, {
|
|
675
|
+
resolveMsg: null,
|
|
676
|
+
rejectMsg: '批量修改调压箱失败'
|
|
677
|
+
}).then((res) => {
|
|
678
|
+
if (res && res.data) {
|
|
679
|
+
this.$showMessage(`本次批量修改: ${res.data}户`);
|
|
680
|
+
}
|
|
681
|
+
this.closeBatchAdjustables()
|
|
682
|
+
this.selfSearch()
|
|
683
|
+
})
|
|
684
|
+
|
|
685
|
+
},
|
|
638
686
|
getAuthority () {
|
|
639
687
|
if (this.$login.r.find(value => value == '销户导入')) {
|
|
640
688
|
this.bacthPin = '销户导入'
|
|
@@ -760,6 +808,9 @@ let loadParamGem = async function (self) {
|
|
|
760
808
|
closexiaohu () {
|
|
761
809
|
this.xiaohushow = false
|
|
762
810
|
},
|
|
811
|
+
closeBatchAdjustables () {
|
|
812
|
+
this.showModifyAdjustables = false
|
|
813
|
+
},
|
|
763
814
|
xiaohu () {
|
|
764
815
|
this.xiaohushow = true
|
|
765
816
|
},
|
|
@@ -821,6 +872,7 @@ let loadParamGem = async function (self) {
|
|
|
821
872
|
this.model.rows.unshift(data)
|
|
822
873
|
},
|
|
823
874
|
selfSearch (args) {
|
|
875
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
824
876
|
args.condition = `${args.condition} ` + this.orgcondition
|
|
825
877
|
this.criteriaShow = false
|
|
826
878
|
this.$refs.paged.$refs.grid.$el.scrollTop = 0
|
|
@@ -874,6 +926,7 @@ let loadParamGem = async function (self) {
|
|
|
874
926
|
arr.push(temp)
|
|
875
927
|
})
|
|
876
928
|
this.adjustables = [{label: '全部', value: ''}, ...arr]
|
|
929
|
+
this.adjustablesNew = arr
|
|
877
930
|
// 初始化气表品牌
|
|
878
931
|
let brandArr = []
|
|
879
932
|
this.$GetSaleParam.getGasbrand().forEach((item) => {
|
|
@@ -0,0 +1,303 @@
|
|
|
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"
|
|
9
|
+
v-validate:payment='{required: true }'>
|
|
10
|
+
<v-select v-model="f_payment"
|
|
11
|
+
placeholder='请选择'
|
|
12
|
+
style="width:60%"
|
|
13
|
+
:value.sync="model.f_payment"
|
|
14
|
+
:options='paytype'
|
|
15
|
+
v-ref:payment
|
|
16
|
+
close-on-select clear-button></v-select>
|
|
17
|
+
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-4 form-group">
|
|
20
|
+
<label for="f_print" class="font_normal_body">打印格式</label>
|
|
21
|
+
|
|
22
|
+
<v-select id="print"
|
|
23
|
+
v-model="f_print"
|
|
24
|
+
style="width:60%"
|
|
25
|
+
placeholder='请选择'
|
|
26
|
+
:value.sync="model.f_print"
|
|
27
|
+
:options='printstyle'
|
|
28
|
+
close-on-select clear-button>
|
|
29
|
+
</v-select>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-4 form-group">
|
|
32
|
+
<label class="font_normal_body"
|
|
33
|
+
title="参数值:计入/不计入,计入:更新档案结余及累购,不计入:只保存记录不对档案进行操作">计入累购</label>
|
|
34
|
+
<input v-show="false" v-model="model.f_add_gas" v-validate:f_operat_type='{required: true}'>
|
|
35
|
+
<v-select :value.sync="model.f_add_gas" value-single
|
|
36
|
+
:options='addGas' placeholder='请选择'
|
|
37
|
+
selected="是否计入累购"
|
|
38
|
+
style="width:60%"
|
|
39
|
+
close-on-select></v-select>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
|
|
42
|
+
<label class="font_normal_body">剩余气量</label>
|
|
43
|
+
<input class="input_search" style="width:60%" type="number" v-model="data.f_balance_gas" readonly>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
|
|
46
|
+
<label class="font_normal_body">核算单价</label>
|
|
47
|
+
<input class="input_search" style="width:60%" type="number" v-model="model.f_price">
|
|
48
|
+
</div>
|
|
49
|
+
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按金额'">
|
|
50
|
+
<label class="font_normal_body">剩余金额</label>
|
|
51
|
+
<input class="input_search" style="width:60%" type="number" v-model="data.f_balance_amount" readonly>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-4 form-group" v-if="config.overBalance && data.f_collection_type === '按气量'"
|
|
54
|
+
:class="[$v.f_refund_gas.required || $v.f_refund_gas.dctest ? 'has-error' : 'has-success']">
|
|
55
|
+
<label class="font_normal_body">冲减气量</label>
|
|
56
|
+
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_gas"
|
|
57
|
+
v-validate:f_refund_gas='{required: true, dctest: [0, ">=" ]}' placeholder="冲减气量">
|
|
58
|
+
</div>
|
|
59
|
+
<div class="col-sm-4 form-group" v-if="!config.overBalance && data.f_collection_type === '按气量'"
|
|
60
|
+
:class="[$v.f_refund_gas.required || $v.f_refund_gas.dctest ? 'has-error' : 'has-success']">
|
|
61
|
+
<label class="font_normal_body">冲减气量</label>
|
|
62
|
+
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_gas"
|
|
63
|
+
v-validate:f_refund_gas='{required: true, dctest: [data.f_balance_gas, "<=" ]}'
|
|
64
|
+
placeholder="冲减气量">
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<div class="row">
|
|
69
|
+
|
|
70
|
+
<div class="col-sm-8">
|
|
71
|
+
<label for="f_paper_account" class="font_normal_body "> 备注 </label>
|
|
72
|
+
<input class="input_search" style="width:80%" v-model="model.f_comments">
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
|
|
75
|
+
<label class="font_normal_body">退费金额</label>
|
|
76
|
+
<input class="input_search" style="width:60%"
|
|
77
|
+
type="number" v-model="model.f_refund_fee"
|
|
78
|
+
placeholder="退费金额">
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-4 form-group" v-if="!config.overBalance && data.f_collection_type === '按金额'"
|
|
81
|
+
:class="[$v.f_refund_fee.required || $v.f_refund_fee.dctest ? 'has-error' : 'has-success']">
|
|
82
|
+
<label class="font_normal_body">退费金额</label>
|
|
83
|
+
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_fee"
|
|
84
|
+
v-validate:f_refund_fee='{required: true, dctest: [data.f_balance_amount, "<=" ]}'
|
|
85
|
+
placeholder="退费金额">
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col-sm-4 form-group" v-if="config.overBalance && data.f_collection_type === '按金额'"
|
|
88
|
+
:class="[$v.f_refund_fee.required || $v.f_refund_fee.dctest ? 'has-error' : 'has-success']">
|
|
89
|
+
<label class="font_normal_body">退费金额</label>
|
|
90
|
+
<input class="input_search" style="width:60%" type="number" v-model="model.f_refund_fee"
|
|
91
|
+
v-validate:f_refund_fee='{required: true, dctest: [0, ">=" ]}' placeholder="退费金额">
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</form>
|
|
95
|
+
<div style="text-align:right;">
|
|
96
|
+
<button class="button_search btn-gn" @click="confirm()" :disabled='!$v.valid'>确认</button>
|
|
97
|
+
<button class="button_clear btn-gn" @click="clean()">取消</button>
|
|
98
|
+
</div>
|
|
99
|
+
</validator>
|
|
100
|
+
<validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
|
|
101
|
+
<!--<print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="clean" @printok="printok" :data='printModel'></print-bill>-->
|
|
102
|
+
<print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="clean" @printok="printok"
|
|
103
|
+
:data='printModel' v-ref:printbill></print-bill>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<upload :blodid="data.f_userinfo_id" :businessid="randomBusinessId" isremark="true" fusetype="退费管理"></upload>
|
|
107
|
+
</template>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
<script>
|
|
111
|
+
let readyGen = async function (self) {
|
|
112
|
+
await self.$getConfig(self, 'IOTRefund')
|
|
113
|
+
// 默认打印格式
|
|
114
|
+
self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
|
|
115
|
+
self.model.f_payment = [self.config.payment]
|
|
116
|
+
|
|
117
|
+
self.model.f_use_type = self.config.billType
|
|
118
|
+
self.model.f_bill_type = self.model.f_print
|
|
119
|
+
self.hasValidateBill = self.config.hasBillManage
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export default {
|
|
123
|
+
title: '物联网表退费',
|
|
124
|
+
data () {
|
|
125
|
+
return {
|
|
126
|
+
config: {
|
|
127
|
+
showupload: false, // 默认不上传附件
|
|
128
|
+
hasPrint: false, // 默认打票
|
|
129
|
+
hasBillManage: false, // 默认不启用发票管理
|
|
130
|
+
overBalance: false, // 为true时退费金额可以大于余额
|
|
131
|
+
printType: '普通收据', // 收据/电子票/专用发票/国税发票
|
|
132
|
+
payment: '现金缴费',
|
|
133
|
+
billType: '燃气费'
|
|
134
|
+
},
|
|
135
|
+
model: {
|
|
136
|
+
f_refund_fee: '',
|
|
137
|
+
f_add_gas: '计入',
|
|
138
|
+
f_refund_gas: '',
|
|
139
|
+
f_comments: '',
|
|
140
|
+
f_payment: '',
|
|
141
|
+
f_print: '',
|
|
142
|
+
f_price: 0
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
blodid: '',
|
|
146
|
+
hasValidateBill: false,
|
|
147
|
+
randomBusinessId: '',
|
|
148
|
+
resid: [], // 存放新增的f_files表中id
|
|
149
|
+
validateOk: false,
|
|
150
|
+
addGas: [{label: '计入', value: '计入'}, {label: '不计入', value: '不计入'}],
|
|
151
|
+
printModel: {},
|
|
152
|
+
print: false,
|
|
153
|
+
billUrl: '',
|
|
154
|
+
billData: {
|
|
155
|
+
url: 'api/af-revenue/report/refund_sell',
|
|
156
|
+
bill: ''
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
// 下拉框值
|
|
160
|
+
paytype: [],
|
|
161
|
+
printstyle: this.$appdata.getParam('打印格式')
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
props: ['data'],
|
|
165
|
+
ready () {
|
|
166
|
+
if (this.data.f_civill_id) {
|
|
167
|
+
this.paytype = [{label: '单位余额', value: '单位余额'}, ...this.$appdata.getParam('付款方式')]
|
|
168
|
+
} else {
|
|
169
|
+
this.paytype = this.$appdata.getParam('付款方式')
|
|
170
|
+
}
|
|
171
|
+
readyGen(this)
|
|
172
|
+
this.getRandomId()
|
|
173
|
+
if (this.data.f_collection_type === '按气量') {
|
|
174
|
+
// this.$showAlert('按气量缴费的物联网表退费功能尚未开放!!', 'warning', 3000)
|
|
175
|
+
this.model.f_price = this.data.f_price
|
|
176
|
+
|
|
177
|
+
// this.$dispatch('refresh')
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
events: {
|
|
181
|
+
// 删除Resid数组元素
|
|
182
|
+
'delResid' (val) {
|
|
183
|
+
this.resid.$remove({id: val, f_biobid: ''})
|
|
184
|
+
// this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
|
|
185
|
+
},
|
|
186
|
+
// 增加Resid数组元素
|
|
187
|
+
'resid' (val) {
|
|
188
|
+
this.resid.push({id: val, f_biobid: ''})
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
methods: {
|
|
192
|
+
getRandomId () {
|
|
193
|
+
this.randomBusinessId = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
194
|
+
let res = Math.random() * 16 | 0
|
|
195
|
+
let v = c == 'x' ? res : (res & 0x3 | 0x8)
|
|
196
|
+
return v.toString(16)
|
|
197
|
+
})
|
|
198
|
+
},
|
|
199
|
+
async confirm () {
|
|
200
|
+
if (this.data.f_collection_type === '按金额' && this.model.f_price) {
|
|
201
|
+
this.model.f_refund_gas = (this.model.f_refund_fee - 0) / (this.model.f_price - 0)
|
|
202
|
+
}
|
|
203
|
+
let param = {
|
|
204
|
+
f_user_id: this.data.f_user_id,
|
|
205
|
+
f_userfiles_id: this.data.f_userfiles_id,
|
|
206
|
+
version: this.data.version,
|
|
207
|
+
f_price: this.model.f_price,
|
|
208
|
+
f_add_gas: this.model.f_add_gas,
|
|
209
|
+
f_refund_gas: this.model.f_refund_gas,
|
|
210
|
+
f_refund_fee: this.model.f_refund_fee,
|
|
211
|
+
f_comments: this.model.f_comments,
|
|
212
|
+
f_collection_type: this.data.f_collection_type,
|
|
213
|
+
f_payment: this.model.f_payment[0],
|
|
214
|
+
f_print: this.model.f_print[0],
|
|
215
|
+
f_price_id: this.data.f_price_id,
|
|
216
|
+
f_total_gas: parseFloat(this.data.f_total_gas) - parseFloat(this.model.f_refund_gas),
|
|
217
|
+
f_total_fee: parseFloat(this.data.f_total_fee) - parseFloat(this.model.f_refund_fee),
|
|
218
|
+
f_stairprice_id: this.data.f_stairprice_id,
|
|
219
|
+
operInfo: {
|
|
220
|
+
f_operator: this.$login.f.name,
|
|
221
|
+
f_operatorid: this.$login.f.id,
|
|
222
|
+
f_orgid: this.$login.f.orgid,
|
|
223
|
+
f_orgname: this.$login.f.orgs,
|
|
224
|
+
f_depid: this.$login.f.depids,
|
|
225
|
+
f_depname: this.$login.f.deps
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
if (this.model.f_add_gas !== '计入') {
|
|
229
|
+
param.f_total_fee = this.data.f_total_fee
|
|
230
|
+
param.f_total_gas = this.data.f_total_gas
|
|
231
|
+
}
|
|
232
|
+
console.log('退费传参', param)
|
|
233
|
+
let res = await this.$resetpost('api/af-revenue/logic/iotRefund', {data: param}, {
|
|
234
|
+
warnMsg: `确定要对用户${this.data.f_user_name}进行退费吗?`,
|
|
235
|
+
resolveMsg: '退费成功!!',
|
|
236
|
+
rejectMsg: '退费失败!!请重试!!'
|
|
237
|
+
})
|
|
238
|
+
console.log('退费', res)
|
|
239
|
+
let param1 = []
|
|
240
|
+
for (let row of this.resid) {
|
|
241
|
+
param1.push({id: row.id})
|
|
242
|
+
}
|
|
243
|
+
let data = {
|
|
244
|
+
param: param1,
|
|
245
|
+
f_blobid: res.data.id
|
|
246
|
+
}
|
|
247
|
+
await this.$resetpost('api/af-revenue/logic/updatefiles', data)
|
|
248
|
+
console.log('退费this.config', this.config)
|
|
249
|
+
console.log('退费this.model', this.model)
|
|
250
|
+
if (this.config.hasPrint) {
|
|
251
|
+
if (this.model.f_print.indexOf('电子发票') == -1) {
|
|
252
|
+
console.log('this.config.hasBillManage', this.config.hasBillManage)
|
|
253
|
+
if (this.config.hasBillManage) {
|
|
254
|
+
// 启用发票管理,获取票据管理中的票号并存储记录
|
|
255
|
+
this.printModel.id = res.data.id
|
|
256
|
+
this.printModel.f_bill_type = '退费'
|
|
257
|
+
this.printModel.f_bill_style = this.model.f_print[0]
|
|
258
|
+
// this.billUrl = 'api/af-revenue/report/refund_sell'
|
|
259
|
+
this.print = true
|
|
260
|
+
} else {
|
|
261
|
+
this.printModel.id = res.data.id
|
|
262
|
+
// this.billUrl = 'api/af-revenue/report/refund_sell'
|
|
263
|
+
this.print = true
|
|
264
|
+
}
|
|
265
|
+
} else if (this.config.printType === '国税发票') {
|
|
266
|
+
// TODO
|
|
267
|
+
this.$dispatch('success')
|
|
268
|
+
} else if (this.config.printType === '电子发票') {
|
|
269
|
+
// TODO
|
|
270
|
+
this.$dispatch('success')
|
|
271
|
+
}
|
|
272
|
+
} else {
|
|
273
|
+
this.$dispatch('success')
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
refundChange () {
|
|
277
|
+
this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
|
|
278
|
+
},
|
|
279
|
+
clean () {
|
|
280
|
+
this.$dispatch('refresh')
|
|
281
|
+
},
|
|
282
|
+
printok () {
|
|
283
|
+
this.$dispatch('success')
|
|
284
|
+
},
|
|
285
|
+
validateBill (val) {
|
|
286
|
+
this.validateOk = !val.isOk
|
|
287
|
+
this.billData.bill = val.bill
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
watch: {
|
|
291
|
+
'model.f_price' () {
|
|
292
|
+
if (this.data.f_collection_type === '按气量') {
|
|
293
|
+
this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
'model.f_refund_gas' () {
|
|
297
|
+
if (this.data.f_collection_type === '按气量') {
|
|
298
|
+
this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
</script>
|
|
@@ -23,4 +23,6 @@ export default function () {
|
|
|
23
23
|
Vue.component('change-meter', (resolve) => { require(['./newchangemeter/ChangeMeter'], resolve) })
|
|
24
24
|
// 清零
|
|
25
25
|
Vue.component('reset-meter', (resolve) => { require(['./newchangemeter/ResetMeter'], resolve) })
|
|
26
|
+
// 物联网退费管理
|
|
27
|
+
Vue.component('iot-refund', (resolve) => { require(['./IOTRefund'], resolve) })
|
|
26
28
|
}
|
package/src/main.js
CHANGED
|
@@ -2,7 +2,7 @@ import Vue from 'vue'
|
|
|
2
2
|
import all from 'vue-client/src/all'
|
|
3
3
|
import App from './App'
|
|
4
4
|
import system from 'system-clients/src/system'
|
|
5
|
-
import FilialeSale from './filiale/
|
|
5
|
+
import FilialeSale from './filiale/qingjian/sale'
|
|
6
6
|
import sale from './sale'
|
|
7
7
|
import address from 'address-client/src/address'
|
|
8
8
|
import ldap from 'ldap-clients/src/ldap'
|