sale-client 3.6.272 → 3.6.273
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 +1 -1
- package/src/components/revenue/comprehen/Bill/EticketV4/EticketOpenCard.vue +1 -1
- package/src/components/revenue/comprehen/Bill/EticketV4/EticketOpenPage.vue +9 -9
- package/src/filiale/jingyang/EticketV4/EticketOpenCard.vue +1 -1
- package/src/filiale/jingyang/EticketV4/EticketOpenPage.vue +1 -1
- package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +2 -2
- package/src/filiale/macheng/UserEssentialInfoTest.vue +2 -2
- package/src/filiale/shexian/ChargeList.vue +109 -1
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</div>
|
|
51
51
|
<div style="float: right">
|
|
52
52
|
<button class="button_search" @click="search()">查 询</button>
|
|
53
|
-
|
|
53
|
+
<button class="button_search" @click="$parent.$parent.open_eTicket()">开票</button>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</div>
|
|
51
51
|
<div style="float: right">
|
|
52
52
|
<button class="button_search" @click="search()">查 询</button>
|
|
53
|
-
|
|
53
|
+
<button class="button_search" @click="$parent.$parent.open_eTicket()">开票</button>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
60
60
|
<template partial='head'>
|
|
61
61
|
<tr>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
<th>
|
|
63
|
+
<input type="checkbox" @click="$parent.$parent.$parent.addOrRemove($parent.$parent.$parent.selectAll)"
|
|
64
|
+
style="width: 22px;height: 22px" :checked="$parent.$parent.$parent.selectAll">
|
|
65
|
+
</th>
|
|
66
66
|
<th>客户编号</th>
|
|
67
67
|
<th>客户姓名</th>
|
|
68
68
|
<th>客户地址</th>
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
</template>
|
|
79
79
|
<template partial='body' :model="model">
|
|
80
80
|
<tr>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
<td style="text-align:center">
|
|
82
|
+
<input type="checkbox" v-model="$parent.$parent.$parent.selecteds" :value="row"
|
|
83
|
+
style="width: 22px;height: 22px" @click="$parent.$parent.$parent.checkbox($index, $event)">
|
|
84
|
+
</td>
|
|
85
85
|
<th style="text-align:center">{{ row.f_userinfo_code }}</th>
|
|
86
86
|
<th style="text-align:center">{{ row.f_user_name }}</th>
|
|
87
87
|
<th style="text-align:center">{{ row.f_address }}</th>
|
|
@@ -302,7 +302,7 @@ export default {
|
|
|
302
302
|
confirm () {
|
|
303
303
|
this.eticket_msg = false
|
|
304
304
|
this.eticket_show = true
|
|
305
|
-
this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, '结算收费', this.invoice_is_pax, this.invoice_type)
|
|
305
|
+
this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, '结算收费', false, this.invoice_is_pax, this.invoice_type)
|
|
306
306
|
},
|
|
307
307
|
selfSearch (args) {
|
|
308
308
|
if (!this.orgCondtionStr) {
|
|
@@ -321,7 +321,7 @@ export default {
|
|
|
321
321
|
confirm () {
|
|
322
322
|
this.eticket_msg = false
|
|
323
323
|
this.eticket_show = true
|
|
324
|
-
this.$refs.eticketbill.openETicket(this.row.id, this.row, '物联网收费', this.invoice_is_pax, this.invoice_type)
|
|
324
|
+
this.$refs.eticketbill.openETicket(this.row.id, this.row, '物联网收费', false, this.invoice_is_pax, this.invoice_type)
|
|
325
325
|
},
|
|
326
326
|
selfSearch (args) {
|
|
327
327
|
if (!this.orgCondtionStr) {
|
|
@@ -154,9 +154,9 @@
|
|
|
154
154
|
</v-select>
|
|
155
155
|
</div>
|
|
156
156
|
<div class="col-sm-4 form-group" :class="[$v.f_packaging.required ? 'has-error' : '']">
|
|
157
|
-
<label for="f_contract" class="font_normal_body"
|
|
157
|
+
<label for="f_contract" class="font_normal_body">*工程安装费 </label>
|
|
158
158
|
<input type="text" v-model="baseinfo.base.f_packaging" @blur="isnumber()" v-validate:f_packaging='{required: true }'
|
|
159
|
-
class="input_search" style="width:60%" placeholder="
|
|
159
|
+
class="input_search" style="width:60%" placeholder="工程安装费">
|
|
160
160
|
</div>
|
|
161
161
|
</div>
|
|
162
162
|
<div class="row">
|
|
@@ -156,9 +156,9 @@
|
|
|
156
156
|
</v-select>
|
|
157
157
|
</div>
|
|
158
158
|
<div class="col-sm-4 form-group" :class="[$v.f_packaging.required ? 'has-error' : '']">
|
|
159
|
-
<label for="f_contract" class="font_normal_body"
|
|
159
|
+
<label for="f_contract" class="font_normal_body">*工程安装费 </label>
|
|
160
160
|
<input type="text" v-model="baseinfo.base.f_packaging" @blur="isnumber()" v-validate:f_packaging='{required: true }'
|
|
161
|
-
class="input_search" style="width:60%" placeholder="
|
|
161
|
+
class="input_search" style="width:60%" placeholder="工程安装费">
|
|
162
162
|
</div>
|
|
163
163
|
|
|
164
164
|
<div class="row">
|
|
@@ -332,6 +332,66 @@
|
|
|
332
332
|
<button type="button" class="btn btn-default" @click='hasGasClose'>取消</button>
|
|
333
333
|
</footer>
|
|
334
334
|
</modal>
|
|
335
|
+
<modal :show.sync="showCardTotalError" v-ref:modal backdrop="false">
|
|
336
|
+
<header slot="modal-header" class="modal-header">
|
|
337
|
+
<h4 class="modal-title">卡上信息</h4>
|
|
338
|
+
</header>
|
|
339
|
+
<article slot="modal-body" class="modal-body">
|
|
340
|
+
<form class="form-horizontal">
|
|
341
|
+
<div class="form-group">
|
|
342
|
+
<label class="col-sm-2 control-label">卡  号</label>
|
|
343
|
+
<div class="col-sm-2">
|
|
344
|
+
<p class="form-control-static">{{cardInfo.CardID}}</p>
|
|
345
|
+
</div>
|
|
346
|
+
|
|
347
|
+
<div v-if="meterType == '气量卡表'">
|
|
348
|
+
<label class="col-sm-2 control-label">卡上累购气量</label>
|
|
349
|
+
<div class="col-sm-2">
|
|
350
|
+
<p class="form-control-static">{{cardInfo.NewParam.ljgql}}</p>
|
|
351
|
+
</div>
|
|
352
|
+
<label class="col-sm-2 control-label">系统累购气量</label>
|
|
353
|
+
<div class="col-sm-2">
|
|
354
|
+
<p class="form-control-static">{{systemTotalGas}}</p>
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
357
|
+
|
|
358
|
+
<div v-if="meterType == '金额卡表'">
|
|
359
|
+
<label class="col-sm-2 control-label">卡上累购金额</label>
|
|
360
|
+
<div class="col-sm-2">
|
|
361
|
+
<p class="form-control-static">{{cardInfo.TotalMoney}}</p>
|
|
362
|
+
</div>
|
|
363
|
+
<label class="col-sm-2 control-label">系统累购金额</label>
|
|
364
|
+
<div class="col-sm-2">
|
|
365
|
+
<p class="form-control-static">{{systemTotalFee}}</p>
|
|
366
|
+
</div>
|
|
367
|
+
</div>
|
|
368
|
+
|
|
369
|
+
<label class="col-sm-2 control-label">用户编号</label>
|
|
370
|
+
<div class="col-sm-2">
|
|
371
|
+
<p class="form-control-static">{{userCode}}</p>
|
|
372
|
+
</div>
|
|
373
|
+
<label class="col-sm-2 control-label">用户姓名</label>
|
|
374
|
+
<div class="col-sm-2">
|
|
375
|
+
<p class="form-control-static">{{userName}}</p>
|
|
376
|
+
</div>
|
|
377
|
+
<label class="col-sm-2 control-label">用户地址</label>
|
|
378
|
+
<div class="col-sm-2">
|
|
379
|
+
<p class="form-control-static">{{userAddress}}</p>
|
|
380
|
+
</div>
|
|
381
|
+
</div>
|
|
382
|
+
<div class="form-group" style="margin-left:10%;" v-if="meterType == '气量卡表'">
|
|
383
|
+
<p class="text-left" style="font-size:20px;line-height:60px;font-height:800;">当前卡累购气量与系统累购气量不符,请检查是否正确的卡</p>
|
|
384
|
+
</div>
|
|
385
|
+
<div class="form-group" style="margin-left:10%;" v-if="meterType == '金额卡表'">
|
|
386
|
+
<p class="text-left" style="font-size:20px;line-height:60px;font-height:800;">当前卡累购金额与系统累购金额不符,请检查是否正确的卡</p>
|
|
387
|
+
</div>
|
|
388
|
+
</form>
|
|
389
|
+
</article>
|
|
390
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
391
|
+
<button type="button" v-if="showCardError2" class="button_search" @click='hasGasContinue'>继续</button>
|
|
392
|
+
<button type="button" class="btn btn-default" @click='hasGasClose'>取消</button>
|
|
393
|
+
</footer>
|
|
394
|
+
</modal>
|
|
335
395
|
|
|
336
396
|
</template>
|
|
337
397
|
|
|
@@ -562,7 +622,49 @@ let cardBtnGen = async function (self, val) {
|
|
|
562
622
|
}
|
|
563
623
|
}
|
|
564
624
|
}
|
|
565
|
-
|
|
625
|
+
// 读卡时判断表累购和卡上累购是否相同
|
|
626
|
+
if (getUser.data.length > 0) {
|
|
627
|
+
// 查询未写卡记录
|
|
628
|
+
let getUnWriteSell = await self.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and (f_write_card = '未写卡' or (f_write_card = '写卡失败' and f_operate_date >= DATEADD(HOUR, -3, GETDATE()))) and f_userfiles_id = '${getUser.data[0].f_userfiles_id}'`)
|
|
629
|
+
console.log('获取未写卡记录', getUnWriteSell)
|
|
630
|
+
self.systemTotalFee = getUser.data[0].f_total_fee
|
|
631
|
+
self.systemTotalGas = getUser.data[0].f_total_gas
|
|
632
|
+
self.meterType = getUser.data[0].f_meter_type
|
|
633
|
+
self.userCode = getUser.data[0].f_userinfo_code
|
|
634
|
+
self.userName = getUser.data[0].f_user_name
|
|
635
|
+
self.userAddress = getUser.data[0].f_address
|
|
636
|
+
if (getUser.data[0].f_meter_type === '气量卡表') {
|
|
637
|
+
console.log('=============', self.cardInfo.NewParam.ljgql - getUser.data[0].f_total_gas)
|
|
638
|
+
if (self.cardInfo.NewParam.ljgql - getUser.data[0].f_total_gas > 0) {
|
|
639
|
+
self.showCardError2 = false
|
|
640
|
+
self.showCardTotalError = true
|
|
641
|
+
return
|
|
642
|
+
} else if (self.cardInfo.NewParam.ljgql - getUser.data[0].f_total_gas < 0 && getUnWriteSell.data.length < 1) {
|
|
643
|
+
self.showCardError2 = false
|
|
644
|
+
self.showCardTotalError = true
|
|
645
|
+
return
|
|
646
|
+
} else if (self.cardInfo.NewParam.ljgql - getUser.data[0].f_total_gas < 0 && getUnWriteSell.data.length > 0) {
|
|
647
|
+
self.showCardError2 = true
|
|
648
|
+
self.showCardTotalError = true
|
|
649
|
+
return
|
|
650
|
+
}
|
|
651
|
+
} else {
|
|
652
|
+
console.log('------------', self.cardInfo.TotalMoney - getUser.data[0].f_total_fee)
|
|
653
|
+
if (self.cardInfo.TotalMoney - getUser.data[0].f_total_fee > 0) {
|
|
654
|
+
self.showCardError2 = false
|
|
655
|
+
self.showCardTotalError = true
|
|
656
|
+
return
|
|
657
|
+
} else if (self.cardInfo.TotalMoney - getUser.data[0].f_total_fee < 0 && getUnWriteSell.data.length < 1) {
|
|
658
|
+
self.showCardError2 = false
|
|
659
|
+
self.showCardTotalError = true
|
|
660
|
+
return
|
|
661
|
+
} else if (self.cardInfo.TotalMoney - getUser.data[0].f_total_fee < 0 && getUnWriteSell.data.length > 0) {
|
|
662
|
+
self.showCardError2 = true
|
|
663
|
+
self.showCardTotalError = true
|
|
664
|
+
return
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
566
668
|
if (getUser.data.length === 0) {
|
|
567
669
|
self.model.state = '错误'
|
|
568
670
|
self.model.rows = null
|
|
@@ -681,6 +783,10 @@ let cardBtnGen = async function (self, val) {
|
|
|
681
783
|
userName: '',
|
|
682
784
|
userAddress: '',
|
|
683
785
|
|
|
786
|
+
systemTotalGas: '',
|
|
787
|
+
systemTotalFee: '',
|
|
788
|
+
meterType: '',
|
|
789
|
+
showCardTotalError: false,
|
|
684
790
|
// 当列表是一户的时候直接读卡,跳过判卡
|
|
685
791
|
isSingleUser: null,
|
|
686
792
|
|
|
@@ -826,6 +932,7 @@ let cardBtnGen = async function (self, val) {
|
|
|
826
932
|
},
|
|
827
933
|
async hasGasContinue () {
|
|
828
934
|
this.showCardError = false
|
|
935
|
+
this.showCardTotalError = false
|
|
829
936
|
this.showCardInfo = false
|
|
830
937
|
getMeterInfoGen2(this)
|
|
831
938
|
},
|
|
@@ -833,6 +940,7 @@ let cardBtnGen = async function (self, val) {
|
|
|
833
940
|
this.showCardInfo = false
|
|
834
941
|
this.showCardError = false
|
|
835
942
|
this.showCardError2 = false
|
|
943
|
+
this.showCardTotalError = false
|
|
836
944
|
},
|
|
837
945
|
async testCard () {
|
|
838
946
|
try {
|