sale-client 3.5.255 → 3.5.256

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.255",
3
+ "version": "3.5.256",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@ export default function () {
16
16
  // 当前选择用户的其他信息
17
17
  Vue.component('otherinfo', (resolve) => { require(['./base/otherinfo'], resolve) })
18
18
  // 当前选择用户的用户基本信息
19
- Vue.component('userinfo', (resolve) => { require(['./base/userinfo'], resolve) })
19
+ Vue.component('sale-userinfo', (resolve) => { require(['./base/userinfo'], resolve) })
20
20
  // 当前选择用户的表具基本信息
21
21
  Vue.component('user-meterinfodetail', (resolve) => { require(['./base/meterinfodetail'], resolve) })
22
22
  // 用气设备添加
@@ -0,0 +1,931 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="span" style="overflow-y: auto;">
4
+ <validator name='v' v-ref:valid>
5
+ <form novalidate class="form-horizontal">
6
+ <div class="row" style="margin-top:5px;">
7
+ <div class="col-sm-4 form-group" :class="[$v.payment.required ? 'has-error' : '']">
8
+ <label for="f_paytype" class=" font_normal_body" title="参数名称:付款方式">收款方式</label>
9
+ <input type="text" v-show="false" v-model="$refs.payment.selectedItems"
10
+ v-validate:payment='{required: true }'>
11
+ <v-select id="f_payment"
12
+ v-model="f_payment"
13
+ placeholder='请选择'
14
+ :value.sync="model.f_payment"
15
+ :options='paytype' clear-button v-ref:payment></v-select>
16
+ </div>
17
+ <div class="col-sm-4 form-group"
18
+ :class="[$v.f_pregas.required || $v.f_pregas.dctest? 'has-error' : 'has-success']">
19
+ <label for="f_pregas" class=" font_normal_body">*预购气量</label>
20
+ <input class="input_search" style="width:60%" type="number" id="fouces"
21
+ @blur="pregas()" v-model="model.f_pregas" :disabled="config.calculatePreByCollection"
22
+ v-validate:f_pregas='{required: true, dctest: [maxgas, "<=" ]}' placeholder="预购气量"
23
+ v-next-el='sk'>
24
+ </div>
25
+
26
+ <div class="col-sm-4 form-group"
27
+ :class="[$v.f_preamount.required || $v.f_preamount.dctest? 'has-error' : 'has-success']">
28
+ <label for="f_preamount" class=" font_normal_body">*预购金额</label>
29
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_preamount"
30
+ @blur="preamount()" v-validate:f_preamount='{required: true, dctest: [maxmoney, "<=" ]}'
31
+ placeholder="预购金额" :disabled="config.calculatePreByCollection"
32
+ v-scale="[model.f_preamount, 4]" placeholder="预购金额">
33
+ </div>
34
+ </div>
35
+ <div class="row" style="margin-top:5px;">
36
+
37
+ <div class="col-sm-4 form-group" :class="[$v.printstyle.required ? 'select-error' : '']">
38
+ <!-- <print-style :print.sync='model.f_print'></print-style> -->
39
+ <label for="f_print" class="font_normal_body">打印格式</label>
40
+ <input type="text" v-show="false" v-model="$refs.printstyle.selectedItems"
41
+ v-validate:printstyle='{required: true }'>
42
+ <v-select id="print"
43
+ v-model="f_print"
44
+ placeholder='请选择'
45
+ :value.sync="model.f_print"
46
+ :options='printstyle'
47
+ close-on-select clear-button v-ref:printstyle>
48
+ </v-select>
49
+ </div>
50
+ <div class="col-sm-4 form-group" v-if="hasLimit&&limitgas">
51
+ <label class="font_normal_body">&nbsp;购气上限</label>
52
+ <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="maxgas"
53
+ v-scale="[maxgas, 4]" placeholder='限购余气' disabled>
54
+ </div>
55
+ <div class="col-sm-4 form-group" v-if="hasLimit&&limitmoney">
56
+ <label class="font_normal_body">金额上限</label>
57
+ <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="maxmoney"
58
+ v-scale="[maxmoney, 2]" placeholder='限购金额' disabled>
59
+ </div>
60
+ <div class="col-sm-4 form-group" v-if="!hasLimit">
61
+ </div>
62
+ <div class="col-sm-4 form-group">
63
+ <label for="f_temp_amount" v-if="row.f_collection_type === '按气量'"
64
+ class=" font_normal_body">&nbsp;应收金额</label>
65
+ <label for="f_temp_amount" v-if="row.f_collection_type === '按金额'"
66
+ class=" font_normal_body">*本次缴费</label>
67
+ <input class="input_search" style="width:60%" type="number"
68
+ v-model="model.f_totalcost"
69
+ v-validate:f_totalcost='{required: true, dctest: [(openFee - 0), ">=" ] }' placeholder="应收金额"
70
+ v-next-el='sk' v-scale="[model.f_totalcost, 4]" disabled>
71
+ </div>
72
+ </div>
73
+
74
+
75
+ <div class="row" style="margin-top:5px;">
76
+ <div class="col-sm-4 form-group">
77
+ <label for="f_balance" class="font_normal_body">上期结余</label>
78
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_balance"
79
+ v-scale="[model.f_balance, 4]" placeholder="上期结余" disabled>
80
+ </div>
81
+ <div class="col-sm-4 form-group">
82
+ <label for="f_curbalance" class="font_normal_body">&nbsp;本期结余</label>
83
+ <input class="input_search" style="width:60%" type="number" v-model="curbalance"
84
+ v-scale="[model.f_curbalance, 4]" placeholder="本期结余" disabled>
85
+ </div>
86
+
87
+ <div class="col-sm-3 form-group" v-if="row.f_collection_type === '按气量'"
88
+ :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">
89
+ <label for="f_collection" class=" font_normal_body">*收&emsp;&emsp;款</label>
90
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_collection"
91
+ @blur="calculatePreByCollection()"
92
+ v-show="config.calculatePreByCollection"
93
+ v-validate:f_collection='{required: true, dctest: [(model.f_totalcost - 0) + (openFee - 0), ">=" ] }'
94
+ v-el:sk v-scale="[model.f_collection, 4]" :disabled="$refs.givechange.promptText != ''">
95
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_collection"
96
+ v-show="!config.calculatePreByCollection"
97
+ v-validate:f_collection='{required: true, dctest: [(model.f_totalcost - 0) + (openFee - 0), ">=" ] }'
98
+ v-el:sk v-scale="[model.f_collection, 4]" :disabled="$refs.givechange.promptText != ''">
99
+ </div>
100
+ <div class="col-sm-3 form-group" v-if="row.f_collection_type === '按金额'">
101
+ <label for="f_collection" class=" font_normal_body">*收&emsp;&emsp;款</label>
102
+ <input class="input_search" style="width:50%" type="number" v-model="model.f_collection"
103
+ @blur="config.calculatePreByCollection && calculatePreByCollection()"
104
+ v-el:sk v-scale="[model.f_collection, 4]" :disabled="$refs.givechange.promptText != ''">
105
+ </div>
106
+ <div class="col-sm-1 form-group">
107
+ <give-change :curbalance="curbalance" :collection.sync="model.f_collection"
108
+ v-ref:givechange></give-change>
109
+ </div>
110
+ </div>
111
+ <div class="row" style="margin-top:5px;" v-show="authArr.includes('优惠权限')">
112
+ <div class="col-sm-4 form-group">
113
+ <label class="font_normal_body">优惠方式</label>
114
+ <v-select v-model="model.f_privilege_id" @blur.native.capture="privilegeCalculate"
115
+ placeholder='请选择'
116
+ :value.sync="model.f_privilege_id"
117
+ :options='privilegeList' clear-button value-single>
118
+ </v-select>
119
+ </div>
120
+ <div class="col-sm-4 form-group">
121
+ <label for="f_preamount" class=" font_normal_body">&nbsp;优惠金额</label>
122
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_privilege_money"
123
+ v-scale="[model.f_privilege_money, 2]" placeholder="优惠金额" disabled>
124
+ </div>
125
+ <div class="col-sm-4 form-group">
126
+ <label for="f_preamount" class=" font_normal_body">&nbsp;实际收款</label>
127
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_after_discount"
128
+ v-scale="[model.f_after_discount, 2]" placeholder="优惠后收款" disabled>
129
+ </div>
130
+ </div>
131
+ <div class="row" v-if="openFee > 0">
132
+ <div class="col-sm-4 form-group">
133
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;开卡费</label>
134
+ <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="openFee"
135
+ placeholder='开卡费' disabled>
136
+ </div>
137
+ </div>
138
+ <div class="row" style="margin-top:5px;">
139
+ <div class="col-sm-9">
140
+ </div>
141
+ <div class="col-sm-3">
142
+ <span v-if="$v.f_collection.dctest" style="color:red ">收款不能小于应收金额</span>
143
+ </div>
144
+ </div>
145
+ <div class="row" v-if="model.f_payment[0].includes('POS')">
146
+ <div class="col-sm-4 form-group">
147
+ <label for="f_voucher_number" class="font_normal_body">&nbsp;&nbsp;&nbsp;凭证号</label>
148
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_voucher_number"
149
+ placeholder="凭证号">
150
+ </div>
151
+ </div>
152
+ <div class="row" style="padding-top: 0.5em;">
153
+
154
+ <div class="col-sm-4" v-if="!mjshow">
155
+ <label for="f_serial_number" class=" font_normal_body">业务单号</label>
156
+ <input class="input_search" style="width:60%" type="text"
157
+ v-model="model.f_serial_number" placeholder="业务单号">
158
+ </div>
159
+ <div class="col-sm-4" v-if="mjshow"
160
+ :class="[$v.f_serial_number.required || $v.f_serial_number.dctest ? 'has-error' : 'has-success']">
161
+ <label for="f_serial_number" class=" font_normal_body">业务单号</label>
162
+ <input class="input_search" style="width:60%" type="text" v-validate:f_serial_number='{required: true }'
163
+ v-model="model.f_serial_number" placeholder="业务单号">
164
+ </div>
165
+
166
+
167
+ <div class="col-sm-8">
168
+ <label for="f_comments" class="font_normal_body">&nbsp;备&emsp;&emsp;注</label>
169
+ <input class="input_search" style="width:74%" v-model="model.f_comments" placeholder="备注">
170
+ </div>
171
+ </div>
172
+ <div v-if="paymentModel.length >1">
173
+ <div class="row" style="margin-top:10px;">
174
+ <p class="col-sm-2 text-left" style="padding: 10px;"><img src="../../../static/juxing.png"/><strong
175
+ style="margin-left: 4%">付款明细</strong></p>
176
+ </div>
177
+ <div class="row" style="margin-top:10px;">
178
+ <div class="col-sm-4 form-group " v-for="pay in paymentModel">
179
+ <label class="font_normal_body">{{ pay.f_payment }}:</label>
180
+ <input id="f_money" type="text" class="input_search" style="width:60%" v-model="pay.f_money">
181
+ </div>
182
+ <div class="col-sm-4 form-group ">
183
+ <strong v-if="!islegal" style="color: red">所输入的金额必须等于收款金额</strong>
184
+ </div>
185
+ </div>
186
+ </div>
187
+ </form>
188
+ <validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
189
+ <print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="close"
190
+ :data='row' @printok="printok" v-ref:printbill></print-bill>
191
+ <div style="text-align:right; height: 25%">
192
+ <strong style="color:red;margin-right: 5px">{{ $refs.givechange.promptText }}</strong>
193
+ <strong style="font-size: large"
194
+ v-if="!config.notShowFormula">计算公式:{{ calculatedetail ? calculatedetail : ' 暂无' }}</strong><br/>
195
+ <payment-code-button :clickable="!$v.valid || validateOk || !islegal || clickConfirm || model.f_preamount === 0"
196
+ :payment.sync="model.f_payment" :payment-data="paytype"
197
+ @confirm-payment="confirm()">
198
+ </payment-code-button>
199
+ <button class="button_search btn-gn" @click="checkInvoiceMsg()"
200
+ :disabled='!$v.valid || validateOk || !islegal || clickConfirm || model.f_preamount === 0'>确认
201
+ </button>
202
+ <button class="button_clear btn-gn" @click="clean()">取消</button>
203
+ </div>
204
+ <modal :show.sync="eticket_msg" v-ref:modal large backdrop="false" :width="900">
205
+ <header slot="modal-header" class="modal-header">
206
+ <button type="button" class="close" @click="eticket_msg = false"><span>&times;</span></button>
207
+ <h4 class="modal-title">发票信息</h4>
208
+ </header>
209
+ <article slot="modal-body" class="modal-body">
210
+ <div class="auto select-overspread form-horizontal">
211
+ <div class="row auto">
212
+ <div class="col-sm-6 form-group form-input-group" :class="[!row.f_paper_name ? 'has-error' : '']">
213
+ <label class="control-label">开票名称:</label>
214
+ <input class="form-control col-sm-2"
215
+ v-model="row.f_paper_name" placeholder="开票名称">
216
+ </div>
217
+ <div class="col-sm-6 form-group form-input-group">
218
+ <nobr class="col-sm-4"><label class="control-label">是否征税:</label></nobr>
219
+ <v-select v-model="invoice_is_pax"
220
+ placeholder='请选择'
221
+ :value.sync="invoice_is_pax"
222
+ close-on-select
223
+ :width="60"
224
+ :value-single="true"
225
+ :search="false"
226
+ :options='is_pax' clear-button>
227
+ </v-select>
228
+ </div>
229
+ <div class="col-sm-12 form-group form-input-group">
230
+ <label class="control-label">开户行及账号:</label>
231
+ <input class="form-control col-sm-2"
232
+ v-model="row.f_paper_account" placeholder="购方开户行及账号">
233
+ </div>
234
+ <div class="col-sm-12 form-group form-input-group">
235
+ <label class="control-label">纳税人识别号:</label>
236
+ <input class="form-control col-sm-2"
237
+ v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
238
+ </div>
239
+ <div class="col-sm-12 form-group form-input-group" :class="[!row.f_address_phone ? 'has-error' : '']">
240
+ <label class="control-label">开票地址电话:</label>
241
+ <input class="form-control col-sm-2"
242
+ v-model="row.f_address_phone" placeholder="开票地址">
243
+ </div>
244
+ <div class="col-sm-12 form-group form-input-group">
245
+ <label class="control-label">邮箱推送:</label>
246
+ <input class="form-control col-sm-2"
247
+ v-model="row.f_email" placeholder="邮箱推送">
248
+ </div>
249
+ </div>
250
+ </div>
251
+ </article>
252
+ <footer slot="modal-footer" class="modal-footer">
253
+ <button type="button" class="btn button_search"
254
+ :disabled="!(row.f_paper_name&&row.f_address_phone)"
255
+ @click='confirm'>确认收费
256
+ </button>
257
+ </footer>
258
+ </modal>
259
+ <ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
260
+
261
+ </validator>
262
+ </div>
263
+
264
+ <payment-code v-ref:paymentcode :payment="model.f_payment" :row="row"
265
+ :money="model.f_after_discount"></payment-code>
266
+ </div>
267
+ <upload v-if="config.showupload" isremark="true" fusetype="发卡售气"></upload>
268
+ </template>
269
+ <script>
270
+ /**
271
+ *综合业务
272
+ *发卡售气组件
273
+ */
274
+
275
+ import {HttpResetClass} from 'vue-client'
276
+
277
+ let preamountGen = async function (self) {
278
+ let calFee = ((self.model.f_preamount - 0)).toFixed(4)
279
+ if (self.model.f_payment == '赠气') {
280
+ calFee = (self.model.f_preamount - 0).toFixed(4)
281
+ }
282
+ // 通过金额进行划价
283
+ let getGas = await self.$CommonService.feeCalculate(self.model, calFee)
284
+ if (getGas.data.gas) {
285
+ if (self.row.f_isdecimal === '是') {
286
+ if (self.row.f_alias === 'QiaoSong') {
287
+ self.model.f_pregas = (getGas.data.gas - 0).toFixed(1)
288
+ } else {
289
+ self.model.f_pregas = (getGas.data.gas - 0).toFixed(4)
290
+ }
291
+ if (self.row.f_collection_type === '按金额') {
292
+ self.dymoney = 0
293
+ } else {
294
+ let dymoney2 = await self.$CommonService.gasCalculate(self.model, (getGas.data.gas).toFixed(4))
295
+ self.dymoney = (getGas.data.chargenum - 0).toFixed(4) - (dymoney2.data.chargenum - 0).toFixed(4)
296
+ }
297
+ } else {
298
+ // 如果不支持小数,将划价出的多余非整数气量进行划价为金额
299
+ let tempnum = Math.floor(getGas.data.gas - 0)
300
+ let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(4))
301
+ self.dymoney = (getGas.data.chargenum - 0).toFixed(2) - (dymoney1.data.chargenum - 0).toFixed(2)
302
+ self.model.f_pregas = Math.floor(getGas.data.gas - 0)
303
+ }
304
+ }
305
+ self.model.f_totalcost = ((self.row.f_balance - 0) >= (calFee - 0) ? 0 : ((calFee - 0) - (self.row.f_balance - 0)).toFixed(2))
306
+ self.model.chargeprice = getGas.data.chargeprice
307
+ Object.assign(self.model, self.model, getGas.data)
308
+ self.model.f_totalcost = ((self.dymoney - 0) >= (self.model.f_totalcost - 0) ? 0 : (self.model.f_totalcost - 0) - (self.dymoney - 0).toFixed(2))
309
+ self.model.f_collection = self.model.f_totalcost
310
+ if (self.config.floor) {
311
+ self.model.f_collection = Math.ceil(self.model.f_collection)
312
+ }
313
+ self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(4)
314
+ self.calText(getGas.data.chargeprice)
315
+ }
316
+
317
+ // 输入气量,换算金额
318
+ let pregasGen = async function (self) {
319
+ if (self.row.f_isdecimal === '是') {
320
+ self.model.f_pregas = (self.model.f_pregas - 0).toFixed(4)
321
+ } else {
322
+ self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
323
+ }
324
+ if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
325
+ self.model.f_meter_type = self.row.f_meter_type
326
+ let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
327
+ self.model.f_preamount = getAmount.data.chargenum
328
+ 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))
329
+ Object.assign(self.model, self.model, getAmount.data)
330
+ self.model.chargeprice = getAmount.data.chargeprice
331
+ self.model.f_collection = self.model.f_totalcost
332
+ if (self.config.floor) {
333
+ self.model.f_collection = Math.ceil(self.model.f_collection)
334
+ }
335
+ self.calText(getAmount.data.chargeprice)
336
+ }
337
+ }
338
+
339
+ // 写卡操作
340
+ let initCardGen = async function (self) {
341
+ try {
342
+ if (self.paymentModel.length === 0) {
343
+ self.paymentModel = [{
344
+ f_payment: self.model.f_payment[0],
345
+ f_money: self.model.f_preamount
346
+ }]
347
+ }
348
+ self.model.xiekamoney = self.model.f_preamount
349
+ if (self.row.f_price_type == '阶梯气价' && self.row.f_is_step == '否' && self.row.f_collection_type == '按金额') {
350
+ self.model.xiekamoney = (self.model.f_pregas * self.model.chargeprice[0].f_price)
351
+ self.model.xiekamoney = self.model.xiekamoney.toFixed(4)
352
+ }
353
+
354
+ self.model.payments = self.paymentModel
355
+ // 加入扫码盒付款码支付流水号
356
+ self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
357
+ let res = await self.$CardService.initCard(self.model, self.row, self.cardallot)
358
+ let localeSustainMoney = window.localStorage.getItem('sustainMoney')
359
+ if (localeSustainMoney != null) {
360
+ localeSustainMoney = (localeSustainMoney - 0) + (self.model.f_collection - 0)
361
+ window.localStorage.setItem('sustainMoney', localeSustainMoney)
362
+ }
363
+ let param = []
364
+ for (let row of self.resid) {
365
+ param.push({id: row.id})
366
+ }
367
+ let data = {
368
+ param: param,
369
+ f_blobid: res.data
370
+ }
371
+
372
+ await self.$resetpost('rs/logic/updatefiles', data)
373
+
374
+ console.log('发卡售气返回id', res, self.model)
375
+ // 开始打票
376
+ if (self.config.hasPrint) {
377
+ if (self.model.f_print.indexOf('电子发票') == -1) {
378
+ if (self.$login.r.includes('非民用纸质票据拆分')) {
379
+ if (self.row.f_user_type === '非民用') {
380
+ self.billData.url = 'rs/report/fmy_sendCard_bill'
381
+ }
382
+ }
383
+ if (self.row.f_meter_type === '金额卡表' && self.$appdata.getSingleValue('金额气量区分卡表票据')) {
384
+ self.billData.url = 'rs/report/fee_sendCard_bill'
385
+ }
386
+ if (self.config.hasBillManage) {
387
+ // 启用发票管理,获取票据管理中的票号并存储记录 d
388
+ self.row.id = res.data.id
389
+ self.row.f_bill_type = '发卡售气'
390
+ self.row.f_bill_style = self.model.f_print[0]
391
+ self.print = true
392
+ } else {
393
+ self.row.id = res.data.id
394
+ self.print = true
395
+ }
396
+ } else {
397
+ if (self.model.f_print[0] === '电子发票') {
398
+ self.row.id = res.data.id
399
+ self.eticket_show = true
400
+ // 应铜川需要卡表显示
401
+ await self.$refs.eticketbill.openETicket([res.data.id], self.row, '是', self.invoice_is_pax, '发卡售气')
402
+
403
+ // await self.$CommonService.openEticket(res.data.id, '售气收费')
404
+ // self.row.id = res.data.id
405
+ // self.print = true
406
+ }
407
+ }
408
+ } else {
409
+ self.$showAlert('发卡售气成功', 'success', 2000)
410
+ self.$dispatch('success')
411
+ }
412
+ self.clickConfirm = false
413
+ } catch (error) {
414
+ console.log('抛出的错误。。', error)
415
+ self.$showAlert(error, 'danger', 0)
416
+ self.$dispatch('refresh')
417
+ self.clickConfirm = false
418
+ }
419
+ }
420
+
421
+ let asyncShowCardSellGas = async function (self) {
422
+ await self.$getConfig(self, 'ShowCardSellGas')
423
+ console.log('发卡售气config', self.config)
424
+ self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
425
+ self.model.f_payment = [self.config.payment]
426
+ self.mulPrint = self.config.printType instanceof Array
427
+
428
+ self.model.f_use_type = self.config.billType
429
+ self.model.f_bill_type = self.model.f_print
430
+ self.hasValidateBill = self.config.hasBillManage
431
+
432
+ // 判断限购
433
+ // 获取限购值
434
+ let limit_param = {
435
+ f_userinfo_id: self.row.f_userinfo_id,
436
+ f_user_id: self.row.f_user_id,
437
+ f_stairprice_id: self.row.f_stairprice_id
438
+ }
439
+ let http = new HttpResetClass()
440
+ let getLimit = await http.load('POST', 'rs/logic/sale_getLimitGas', {data: limit_param}, {
441
+ resolveMsg: null,
442
+ rejectMsg: '获取限购值失败!!'
443
+ })
444
+ console.log('获取限购值', getLimit)
445
+ self.hasLimit = getLimit.data.hasLimit
446
+ if (self.hasLimit) {
447
+ if (getLimit.data.f_limit_value || getLimit.data.f_limit_amount) {
448
+ if (getLimit.data.f_limit_value < 0 && getLimit.data.f_limit_amount < 0) {
449
+ self.$showAlert(`${getLimit.data.msg}`, 'warning', 3000)
450
+ self.$dispatch('refresh')
451
+ } else {
452
+ if (getLimit.data.f_limit_value) {
453
+ self.maxgas = (getLimit.data.f_limit_value - 0)
454
+ self.limitgas = true
455
+ }
456
+ if (getLimit.data.f_limit_amount) {
457
+ self.maxmoney = (getLimit.data.f_limit_amount - 0)
458
+ self.limitmoney = true
459
+ }
460
+ }
461
+ }
462
+ }
463
+ }
464
+
465
+ export default {
466
+ title: '发卡售气',
467
+ data() {
468
+ return {
469
+ serialShow: false,
470
+ resid: [],
471
+ config: {
472
+ notShowFormula: false, // 不显示计算公式,默认显示
473
+ calculatePreByCollection: false, // 可以更具收款来反向计算预购
474
+ showupload: true, // 默认不显示上传附件
475
+ hasPrint: false, // 默认打票
476
+ floor: true, // 是否取整收费
477
+ hasBillManage: false, // 默认不启用发票管理
478
+ billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
479
+ printType: '普通收据', // 收据/电子票/专用发票/国税发票
480
+ payment: '现金缴费'
481
+ },
482
+ model: {
483
+ f_stairprice_id: '',
484
+ f_payment: '现金缴费',
485
+ f_pregas: '',
486
+ f_preamount: 0,
487
+ f_totalcost: 0,
488
+ f_balance: 0,
489
+ f_curbalance: this.f_curbalance,
490
+ f_collection: '',
491
+ chargeprice: [],
492
+ f_print: [],
493
+ f_meter_type: '',
494
+ f_voucher_number: '',
495
+ f_privilege_id: 0,
496
+ f_privilege_money: 0,
497
+ f_after_discount: 0
498
+ },
499
+ cardallot: null,
500
+ calculatedetail: '',
501
+
502
+ billData: {
503
+ url: 'rs/report/sendCard_bill',
504
+ bill: ''
505
+ },
506
+
507
+ print: false,
508
+
509
+ // 是否有限购
510
+ hasLimit: false,
511
+
512
+ // 启用发票管理需要对票号进行验证
513
+ hasValidateBill: false,
514
+ validateOk: false,
515
+ blodid: '',
516
+ maxgas: 99999999, // 限购
517
+ maxmoney: 99999999,
518
+ limitmoney: false,
519
+ limitgas: false,
520
+
521
+ clickConfirm: false,
522
+
523
+ mulPrint: false, // 控制打印格式是否可以多选
524
+ openFee: 0, // 是否有开卡费
525
+ paymentModel: [], // 多笔付款方式
526
+ paytype: [],
527
+ printstyle: this.$appdata.getParam('打印格式') ? this.$appdata.getParam('打印格式') : [],
528
+ privilegeList: [{label: '无优惠', value: '0'}],
529
+ mjshow: false,
530
+ // 小数是否支持,导致划价产生的多余气量,金额
531
+ dymoney: 0,
532
+ eticket_msg: false,
533
+ eticket_show: false,
534
+ invoice_is_pax: '不征税',
535
+ is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}]
536
+ }
537
+ },
538
+ props: ['row'],
539
+ ready() {
540
+ console.log('==>' + this.$refs.valid)
541
+ if (this.authArr.includes('余额写卡限定')) {
542
+ this.paytype = [{label: '余额写卡', value: '余额写卡'}]
543
+ } else {
544
+ this.paytype = this.$appdata.getParam('付款方式') ? this.$appdata.getParam('付款方式') : []
545
+ if (!this.$login.r.includes('免交充值付款')) {
546
+ this.paytype = this.paytype.filter((item) => {
547
+ return item.label != '免交'
548
+ })
549
+ }
550
+ }
551
+ this.blodid = this.row.f_userinfo_id
552
+ this.model.f_price_id = this.row.f_price_id
553
+ this.model.f_user_id = this.row.f_user_id
554
+ this.model.f_userfiles_id = this.row.f_userfiles_id
555
+ this.model.f_userinfo_id = this.row.f_userinfo_id
556
+ this.newPhone = this.row.f_user_phone
557
+ if (this.row.f_collection_type == '按金额') {
558
+ this.model.f_totalcost = ''
559
+ this.model.f_pregas = 0
560
+ }
561
+
562
+ if (this.row.f_user_type === '民用') {
563
+ this.openFee = this.$appdata.getSingleValue('民用开卡费') ? this.$appdata.getSingleValue('民用开卡费') : 0
564
+ } else {
565
+ this.openFee = this.$appdata.getSingleValue('非民用开卡费') ? this.$appdata.getSingleValue('非民用开卡费') : 0
566
+ }
567
+
568
+ if (this.$appdata.getSingleValue('是否启用发卡管理')) {
569
+ this.$CardManageService.getCardNumber()
570
+ .then((res) => {
571
+ this.cardallot = Object.assign({}, this.cardallot, res.data)
572
+ })
573
+ }
574
+ document.getElementById('fouces').focus()
575
+ asyncShowCardSellGas(this)
576
+ },
577
+ events: {
578
+ // 删除Resid数组元素
579
+ 'delResid'(val) {
580
+ this.resid.$remove({id: val, f_biobid: ''})
581
+ // this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
582
+ },
583
+ // 增加Resid数组元素
584
+ 'resid'(val) {
585
+ this.resid.push({id: val, f_biobid: ''})
586
+ }
587
+ },
588
+ watch: {
589
+ 'row'(val) {
590
+ this.model.f_balance = val.f_balance
591
+ },
592
+ 'model.f_payment.length'(val) {
593
+ console.log('付款方式多选。。', val)
594
+ if (val > 3) {
595
+ this.$showAlert('目前只支持三种支付方式', 'warning', 2000)
596
+ return
597
+ }
598
+ if (val > 1 && !this.model.f_preamount) {
599
+ this.model.f_payment = ['现金缴费']
600
+ this.$showAlert('请先计算付款金额', 'warning', 2000)
601
+ } else {
602
+ this.paymentModel = []
603
+ this.model.f_payment.forEach((res) => {
604
+ let temp = {
605
+ f_payment: res,
606
+ f_money: 0
607
+ }
608
+ this.paymentModel.push(temp)
609
+ })
610
+ this.$resetValidation()
611
+ // 获取计算优惠
612
+ this.getPrivilegeList()
613
+ }
614
+ },
615
+ 'model.f_payment'(val) {
616
+ if (val == '免交') {
617
+ this.mjshow = true
618
+ } else {
619
+ this.mjshow = false
620
+ }
621
+ },
622
+ 'model.f_collection'(val) {
623
+ // 获取计算优惠
624
+ this.getPrivilegeList()
625
+ },
626
+ '$v'(val) {
627
+ },
628
+ '$v': {
629
+ handler: function (val) {
630
+ },
631
+ deep: true
632
+ },
633
+ '$v.f_serial_number': {
634
+ handler: function (val) {
635
+ },
636
+ deep: true
637
+ },
638
+ '$v.f_serial_number.valid'(val) {
639
+ }
640
+ },
641
+ methods: {
642
+ // 根据收款金额计算划价信息
643
+ // 需要配置 calculatePreByCollection = true
644
+ async calculatePreByCollection() {
645
+ try {
646
+ this.model.f_collection = (this.model.f_collection - 0)
647
+ let calFee = ((this.model.f_collection - 0) + (this.row.f_balance)).toFixed(4)
648
+ // 通过收款进行划价
649
+ let getGas = await this.$CommonService.feeCalculate(this.model, calFee)
650
+ this.model.f_pregas = parseInt(getGas.data.gas)
651
+ let dymoney2 = await this.$CommonService.gasCalculate(this.model, this.model.f_pregas)
652
+ this.model.chargeprice = dymoney2.data.chargeprice
653
+ Object.assign(this.model, this.model, dymoney2.data)
654
+ this.model.f_totalcost = dymoney2.data.chargenum
655
+ this.model.f_preamount = dymoney2.data.chargenum
656
+ this.calText(dymoney2.data.chargeprice)
657
+ } catch (error) {
658
+ this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
659
+ this.$dispatch('error', '发卡售气', this.model, error)
660
+ }
661
+ },
662
+ // 校验发票信息
663
+ checkInvoiceMsg() {
664
+ console.log(this.model.f_print[0])
665
+ if (this.model.f_print[0] === '电子发票') {
666
+ if (!this.row.f_taxpayer_id) {
667
+ this.row.f_taxpayer_id = this.row.f_idnumber
668
+ }
669
+ if (!this.row.f_paper_name) {
670
+ this.row.f_paper_name = this.row.f_user_name
671
+ }
672
+ if (!this.row.f_address_phone) {
673
+ this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
674
+ }
675
+ if (!this.row.f_email) {
676
+ this.row.f_email = this.row.f_email
677
+ }
678
+ this.eticket_msg = true
679
+ } else {
680
+ this.confirm()
681
+ }
682
+ },
683
+ eticket_toggle() {
684
+ this.eticket_show = false
685
+ this.$dispatch('success')
686
+ },
687
+ async confirm() {
688
+ this.eticket_msg = false
689
+ if (this.$appdata.getSingleValue('开卡费')) {
690
+ let sql = `select od.* from t_othercharge oc
691
+ left join t_othercharge_detail od on oc.id=od.f_othercharge_id
692
+ where oc.f_userfiles_id = '${this.row.f_userfiles_id}' and od.f_brand_spec = '开卡费' and oc.f_state='有效'`
693
+ let res = await this.$resetpost('rs/logic/sqlquery', {data: {sql: sql}}, {
694
+ resolveMsg: null,
695
+ rejectMsg: '获取是否已交开卡费出错'
696
+ })
697
+ console.log('查询的结果', res)
698
+ if (res.data.length == 0) {
699
+ this.$showAlert('请注意!当前用户还未收取开卡费,请到其他收费功能进行操作', 'warning', 2000)
700
+ return
701
+ }
702
+ }
703
+ if (this.model.f_payment.length > 0 && this.model.f_payment[0] == '余额写卡') {
704
+ if (this.model.f_collection > this.row.f_balance) {
705
+ this.$showAlert('请注意!您的账户余额小于当前写卡金额,无法进行余额写卡,请修改后重试', 'warning', 1000)
706
+ return
707
+ }
708
+ if (this.model.f_collection > 0) {
709
+ this.$showAlert('请注意!进行余额写卡,收款不能大于0', 'warning', 1000)
710
+ return
711
+ }
712
+ }
713
+
714
+ this.clickConfirm = true
715
+ this.model.f_curbalance = this.curbalance
716
+ this.model.f_open_fee = this.openFee
717
+ // 用于获取卡号
718
+ console.log('开始发卡售气。。', this.model, this.row)
719
+ this.$showMessage(`对客户${this.row.f_user_name}进行发卡售气操作。请确保你已经插入了${this.row.f_meter_brand}的卡?`, ['confirm', 'cancel']).then(async (res) => {
720
+ if (res === 'confirm') {
721
+ // 先调用付款码支付组件流程
722
+ let ss = await this.$refs.paymentcode.flowPath()
723
+ this.$refs.paymentcode.paymentCodeShow = false
724
+ console.log('付款码操作返回', ss)
725
+ if (!ss.result) return
726
+
727
+ initCardGen(this)
728
+ } else {
729
+ this.$dispatch('has-button')
730
+ this.clickConfirm = false
731
+ }
732
+ })
733
+ },
734
+ clean() {
735
+ this.$info('取消操作')
736
+ this.$dispatch('refresh', this.row)
737
+ },
738
+ pregas() {
739
+ this.dymoney = 0
740
+ if (this.model.f_pregas && this.model.f_pregas > 0) {
741
+ try {
742
+ // 对气量进行验证
743
+ if ((this.row.f_topup_ceil - 0) > 0 && (this.model.f_pregas - 0) > (this.row.f_topup_ceil - 0)) {
744
+ this.$showAlert(`您输入的气量不能大于该表的充值上限: ${this.row.f_topup_ceil}`, 'warning', 5000)
745
+ this.model.f_pregas = null
746
+ } else {
747
+ pregasGen(this)
748
+ }
749
+ } catch (error) {
750
+ this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
751
+ this.$dispatch('error', '发卡售气', this.model, error)
752
+ }
753
+ } else {
754
+ this.model.f_pregas = 0
755
+ }
756
+ },
757
+ preamount() {
758
+ this.dymoney = 0
759
+ // if ((this.model.f_totalcost && this.model.f_totalcost > 0) || this.row.f_balance > 0) {
760
+ // if ((this.model.f_totalcost && this.model.f_totalcost > 0) || this.row.f_balance > 0) {
761
+ try {
762
+ preamountGen(this)
763
+ } catch (error) {
764
+ this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
765
+ this.$dispatch('error', '发卡售气', this.model, error)
766
+ }
767
+ // } else {
768
+ // this.model.f_totalcost = null
769
+ // }
770
+ },
771
+
772
+ validateBill(val) {
773
+ this.validateOk = !val.isOk
774
+ this.billData.bill = val.bill
775
+ },
776
+ printok() {
777
+ // 收据打完,判断是否还有其他票据进行请求
778
+ for (let i = 0; i < this.model.f_print.length; i++) {
779
+ if (this.model.f_print[i] === '电子发票') {
780
+ this.$CommonService.openEticket(this.row.id, '售气收费')
781
+ }
782
+ }
783
+ this.$dispatch('success')
784
+ },
785
+ calText(val) {
786
+ let str = ''
787
+ let num = 0
788
+ val.forEach((item) => {
789
+ if (item.f_gas > 0) {
790
+ num = num + 1
791
+ }
792
+ if (this.row.f_isdecimal === '是') {
793
+ str = str + item.f_price + ' x ' + item.f_gas + '+'
794
+ } else {
795
+ str = str + item.f_price + ' x ' + Math.floor(item.f_gas) + '+'
796
+ }
797
+ })
798
+ str = str.slice(0, str.length - 1)
799
+ this.calculatedetail = str
800
+ if (num > 1) {
801
+ if (this.$login.r.find(item => item == '阶梯提示无按钮')) {
802
+ this.$showAlert('友好提示:本次购气已跨阶梯', 'warning', 3000)
803
+ } else {
804
+ this.$showMessage('友好提示:本次购气已跨阶梯', ['confirm', 'cancel'])
805
+ }
806
+ }
807
+ },
808
+ close() {
809
+ this.showprint = false
810
+ this.print = false
811
+ this.clean()
812
+ },
813
+ // 根据选择的付款方式 获取优惠列表
814
+ async getPrivilegeList() {
815
+ // 初始化下拉选择列表
816
+ this.privilegeList = [{label: '无优惠', value: '0'}]
817
+ // 初始为无优惠
818
+ this.model.f_privilege_id = '0'
819
+ if (this.model.f_payment && this.model.f_payment.length) {
820
+ // 查询条件
821
+ let payments = JSON.stringify(this.model.f_payment)
822
+ payments = payments.replace('[', '(').replace(']', ')').replace(/"/g, '\'')
823
+ let HttpReset = new HttpResetClass()
824
+ let privilege = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
825
+ data: {
826
+ items: 'id,f_privilege_name,f_privilege_type',
827
+ tablename: 't_privilege',
828
+ condition: `f_payment in ${payments} and f_gasproperties = '${this.row.f_gasproperties}' and f_user_type = '${this.row.f_user_type}' and f_perform_date <= GETDATE() and f_end_date >= GETDATE() and f_state = '有效'`,
829
+ orderitem: 'id'
830
+ }
831
+ }, {resolveMsg: null, rejectMsg: '查询优惠信息失败'})
832
+ // 查询结果放到下拉列表
833
+ for (let p of privilege.data) {
834
+ this.privilegeList.push({label: p.f_privilege_name, value: p.id, type: p.f_privilege_type})
835
+ }
836
+ this.privilegeCalculate()
837
+ }
838
+ },
839
+ // 优惠计算
840
+ async privilegeCalculate() {
841
+ // 初始化减免金额
842
+ this.model.f_privilege_money = 0
843
+ this.model.f_after_discount = this.model.f_collection
844
+ // 判断是否是自定义优惠
845
+ if (parseInt(this.model.f_privilege_id)) {
846
+ for (let p of this.privilegeList) {
847
+ if (p.value == this.model.f_privilege_id && p.type == '自定义') {
848
+ this.model.f_privilege_money = window.prompt('请输入你想优惠的金额')
849
+ if (!(/^[1-9]\d*(\.\d+)?$/).test(this.model.f_privilege_money) || !(/^[1-9]\d*(\.\d+)?$/).test(this.model.f_privilege_money)) {
850
+ this.$showMessage('金额输入格式不正确!')
851
+ this.model.f_privilege_money = 0
852
+ return
853
+ }
854
+ if ((this.model.f_privilege_money - 0) >= this.model.f_collection) {
855
+ this.$showMessage('减免金额不能大于等于收款金额')
856
+ this.model.f_privilege_money = 0
857
+ return
858
+ }
859
+ }
860
+ }
861
+ }
862
+ // 优惠方式, 收款 缺一不计算
863
+ if (this.model.f_payment && this.model.f_payment.length && parseInt(this.model.f_privilege_id) && this.model.f_collection) {
864
+ let c = {
865
+ f_privilege_id: this.model.f_privilege_id,
866
+ f_collection: this.model.f_collection,
867
+ f_privilege_money: this.model.f_privilege_money
868
+ }
869
+ let privilegeData = await this.$resetpost('rs/logic/calculatePrivilege', c, {
870
+ resolveMsg: null,
871
+ rejectMsg: '计算优惠金额出错'
872
+ })
873
+ // 减免金额
874
+ this.model.f_privilege_money = privilegeData.data.f_privilege_money
875
+ // 减免后收款金额
876
+ this.model.f_after_discount = privilegeData.data.f_collection
877
+ }
878
+ }
879
+ },
880
+ computed: {
881
+ 'invoice_show_gas'() {
882
+ return this.row.f_collection_type === '按气量' ? '是' : '否'
883
+ },
884
+ authArr() {
885
+ return this.$login.r ? this.$login.r : []
886
+ },
887
+ 'curbalance'() {
888
+ if (this.model.f_payment === '赠气') {
889
+ return this.model.f_balance
890
+ }
891
+ if (this.config.calculatePreByCollection) {
892
+ return ((this.model.f_collection - 0) + (this.row.f_balance - 0) - this.model.f_preamount).toFixed(4)
893
+ }
894
+ if (this.model.f_preamount) {
895
+ if ((this.row.f_balance - 0) > (this.model.f_preamount - 0)) {
896
+ return ((this.row.f_balance - 0) - (this.model.f_preamount - 0) + (this.model.f_collection - 0)).toFixed(4)
897
+ } else {
898
+ return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(4)
899
+ }
900
+ } else {
901
+ return this.row.f_balance
902
+ }
903
+ },
904
+ 'islegal'() {
905
+ if (this.paymentModel.length > 1 && this.model.f_collection) {
906
+ let sum = 0
907
+ this.paymentModel.forEach((res) => {
908
+ sum += (res.f_money - 0)
909
+ })
910
+
911
+ return (this.model.f_collection - 0) === (sum - 0)
912
+ } else {
913
+ return true
914
+ }
915
+ }
916
+ }
917
+ }
918
+ </script>
919
+
920
+
921
+ <style>
922
+ input::-webkit-outer-spin-button,
923
+ input::-webkit-inner-spin-button {
924
+ -webkit-appearance: none;
925
+ }
926
+
927
+ input[type="number"] {
928
+ -moz-appearance: textfield;
929
+ }
930
+ </style>
931
+
@@ -22,4 +22,6 @@ export default function () {
22
22
  Vue.component('file-user-files-new', (resolve) => { require(['./FileUserFiles'], resolve) })
23
23
  // 档案管理新(预备户建档)
24
24
  Vue.component('file-user-address', (resolve) => { require(['./FileUserAddress'], resolve) })
25
+ // 发卡售气
26
+ Vue.component('show-card-sell-gas', (resolve) => { require(['./ShowCardSellGas'], resolve) })
25
27
  }
@@ -5,7 +5,7 @@ export default function () {
5
5
  // 操作记录列表,可以切换查询用户列表的操作区域
6
6
  Vue.component('charge-list', (resolve) => { require(['./ChargeList'], resolve) })
7
7
  // 当前选择用户的用户基本信息
8
- Vue.component('userinfo', (resolve) => { require(['./Userinfo'], resolve) })
8
+ Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo'], resolve) })
9
9
  // 当前选择用户的表具基本信息
10
10
  Vue.component('user-meterinfodetail', (resolve) => { require(['./meterinfodetail'], resolve) })
11
11
  }
@@ -26,7 +26,7 @@ export default function () {
26
26
  // 用户欠费记录查询
27
27
  Vue.component('arrears-list', (resolve) => { require(['./ArrearsList'], resolve) })
28
28
  // 当前选择用户的用户基本信息
29
- Vue.component('userinfo', (resolve) => { require(['./Userinfo'], resolve) })
29
+ Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo'], resolve) })
30
30
  // 估表抄表
31
31
  Vue.component('estimate-manager', (resolve) => { require(['./EstimateManager'], resolve) })
32
32
  // 档案查询列表
@@ -12,7 +12,7 @@ export default function () {
12
12
  // 档案信息
13
13
  Vue.component('file-user-files', (resolve) => { require(['./FileUserFiles'], resolve) })
14
14
  // 当前选择用户的表具基本信息
15
- Vue.component('userinfo', (resolve) => { require(['./Userinfo'], resolve) })
15
+ Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo'], resolve) })
16
16
  Vue.component('insurance-add', (resolve) => { require(['./InsuranceAdd'], resolve) })
17
17
  // 单个表具信息test
18
18
  Vue.component('file-meter-info', (resolve) => { require(['./MeterinfoTest'], resolve) })
@@ -37,7 +37,7 @@ export default function () {
37
37
  // 超用收费
38
38
  Vue.component('over-use-charge', (resolve) => { require(['./OverUseCharge'], resolve) })
39
39
  // 当前选择用户的用户基本信息
40
- Vue.component('userinfo', (resolve) => { require(['./Userinfo'], resolve) })
40
+ Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo'], resolve) })
41
41
  // 抄表记录维护列表
42
42
  Vue.component('hand-list-maintain', (resolve) => { require(['./handListMaintain'], resolve) })
43
43
  // 抄表具体信息
@@ -12,7 +12,7 @@ export default function () {
12
12
  // 付款码支付组件
13
13
  Vue.component('payment-code', (resolve) => { require(['./PaymentCode'], resolve) })
14
14
  // 当前选择用户的用户基本信息
15
- Vue.component('userinfo', (resolve) => { require(['./Userinfo'], resolve) })
15
+ Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo'], resolve) })
16
16
  Vue.component('card-list', (resolve) => { require(['./CardList'], resolve) })
17
17
  Vue.component('return-money-examine', (resolve) => { require(['./ReturnMoneyExamine'], resolve) })
18
18
  Vue.component('charge-manage', (resolve) => { require(['./charge/ChargeManage'], resolve) })
@@ -13,7 +13,7 @@ export default function () {
13
13
  Vue.component('file-user-files', (resolve) => { require(['./components/FilesManage/FileUserFiles'], resolve) })
14
14
  Vue.component('file-user-files-new', (resolve) => { require(['./components/FilesManageNew/FileUserFiles'], resolve) })
15
15
  // 当前选择用户的用户基本信息
16
- Vue.component('userinfo', (resolve) => { require(['./components/revenue/base/Userinfo'], resolve) })
16
+ Vue.component('sale-userinfo', (resolve) => { require(['./components/revenue/base/Userinfo'], resolve) })
17
17
  Vue.component('charge-list', (resolve) => { require(['./components/revenue/ChargeList'], resolve) })
18
18
  // 单个表具
19
19
  Vue.component('file-meter-info', (resolve) => { require(['./components/FilesManage/MeterinfoTest'], resolve) })
@@ -21,7 +21,7 @@ export default function () {
21
21
  Vue.component('over-use-charge', (resolve) => { require(['./OverUseCharge'], resolve) })
22
22
  // 收费
23
23
  Vue.component('charge-manage', (resolve) => { require(['./charge/ChargeManage'], resolve) })
24
- Vue.component('userinfo', (resolve) => { require(['./base/leftview/Userinfo'], resolve) })
24
+ Vue.component('sale-userinfo', (resolve) => { require(['./base/leftview/Userinfo'], resolve) })
25
25
  // 短信管理
26
26
  Vue.component('message-list', (resolve) => { require(['./Message/MessageList'], resolve) })
27
27
  // 用户欠费记录查询
@@ -54,7 +54,7 @@ export default function () {
54
54
  // 当前选择用户的表具基本信息
55
55
  Vue.component('user-meterinfodetail', (resolve) => { require(['./meterinfodetail'], resolve) })
56
56
  // 当前选择用户的表具基本信息
57
- Vue.component('userinfo', (resolve) => { require(['./Userinfo'], resolve) })
57
+ Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo'], resolve) })
58
58
  // 付款码支付组件
59
59
  Vue.component('payment-code', (resolve) => { require(['./PaymentCode'], resolve) })
60
60
  // 付款码按钮组件
@@ -10,7 +10,7 @@ export default function () {
10
10
  // 用户基本信息test
11
11
  Vue.component('file-user-essential-info', (resolve) => { require(['./UserEssentialInfoTest'], resolve) })
12
12
  // 当前选择用户的用户基本信息
13
- Vue.component('userinfo', (resolve) => { require(['./Userinfo'], resolve) })
13
+ Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo'], resolve) })
14
14
  // 单个表具信息test
15
15
  Vue.component('file-meter-info', (resolve) => { require(['./MeterinfoTest'], resolve) })
16
16
  // 其他收费xin
@@ -3,7 +3,7 @@ import Vue from 'vue'
3
3
 
4
4
  export default function () {
5
5
  // 左侧用户基本信息展示
6
- Vue.component('userinfo', (resolve) => { require(['./base/leftview/Userinfo'], resolve) })
6
+ Vue.component('sale-userinfo', (resolve) => { require(['./base/leftview/Userinfo'], resolve) })
7
7
  Vue.component('transfer-manage', (resolve) => { require(['./TransferManage'], resolve) })
8
8
  // 单个表具信息
9
9
  Vue.component('file-meter-info', (resolve) => { require(['./MeterinfoTest'], resolve) })