sale-client 3.6.199 → 3.6.200-test
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/.eslintrc.js +2 -1
- package/build/dev-server.js +5 -1
- package/package.json +1 -1
- package/src/components/charge/business/OtherChargeNew.vue +1 -1
- package/src/components/revenue/cardHandManage/cardHandManager.vue +9 -8
- package/src/filiale/alashan/EticketManage.vue +8 -8
- package/src/filiale/alashan/sale.js +2 -0
- package/src/filiale/tongchuan/CardMeterCenter.vue +4 -3
- package/src/filiale/tongchuan/ChargeManage.vue +10 -10
- package/src/filiale/tongchuan/IOTMeterCenter.vue +5 -4
- package/src/filiale/tongchuan/bill/EticketPrint.vue +49 -8
- package/src/filiale/tongchuan/bill/EticketRecordList.vue +6 -10
- package/src/filiale/wenxi/CardMeterCenter.vue +2 -1
- package/src/filiale/wenxi/CardService.js +32 -0
- package/src/filiale/wenxi/ShowCardSellGas.vue +2 -1
- package/src/filiale/yuncheng/ChangeMeter.vue +6 -6
- package/src/main.js +2 -5
- package/src/plugins/CardService.js +1 -1
package/.eslintrc.js
CHANGED
|
@@ -16,6 +16,7 @@ module.exports = {
|
|
|
16
16
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
17
17
|
// 必须使用全等
|
|
18
18
|
'eqeqeq': 0,
|
|
19
|
-
"import/no-unresolved": ["error", { "caseSensitive": true }]
|
|
19
|
+
"import/no-unresolved": ["error", { "caseSensitive": true }],
|
|
20
|
+
"camelcase": "off"
|
|
20
21
|
}
|
|
21
22
|
}
|
package/build/dev-server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
|
-
const [ serverRul, localUrl ] = ['http://
|
|
2
|
+
const [ serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://192.168.50.4:8400/']
|
|
3
3
|
var merge = require('webpack-merge')
|
|
4
4
|
var baseConfig = require('./webpack.dev.conf')
|
|
5
5
|
var devConfig = {
|
|
@@ -17,6 +17,10 @@ var devConfig = {
|
|
|
17
17
|
children: false // 不输出子模块构建信息
|
|
18
18
|
},
|
|
19
19
|
proxy: {
|
|
20
|
+
'/invoice/rs/logic/getInvoice': {
|
|
21
|
+
pathRewrite: {'/invoice/rs/logic/getInvoice': '/m2/925029-0-default/90887834'},
|
|
22
|
+
target: 'http://127.0.0.1:4523'
|
|
23
|
+
},
|
|
20
24
|
'/rs/file': {
|
|
21
25
|
target: serverRul
|
|
22
26
|
},
|
package/package.json
CHANGED
|
@@ -274,7 +274,7 @@ let otherChargeGen = async function (self, parameter) {
|
|
|
274
274
|
} else if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
|
|
275
275
|
self.eticket_show = true
|
|
276
276
|
self.row.f_print = self.model.f_print[0]
|
|
277
|
-
await self.$refs.eticketbill.openETicket(resid.data, self.row, '其他收费')
|
|
277
|
+
await self.$refs.eticketbill.openETicket(resid.data, self.row, '其他收费', '其他收费', '其他收费', self.model.f_print[0])
|
|
278
278
|
// self.$CommonService.openEticket(resid.data, '其他收费')
|
|
279
279
|
// self.$dispatch('success')
|
|
280
280
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<tab-button v-ref:list>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<tabs header="计划下发">
|
|
4
|
+
<card-down></card-down>
|
|
5
|
+
</tabs>
|
|
6
6
|
<tabs header="卡表抄表">
|
|
7
7
|
<cards-hand></cards-hand>
|
|
8
8
|
</tabs>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<tabs header="抄表审核">
|
|
10
|
+
<card-hand-audit></card-hand-audit>
|
|
11
|
+
</tabs>
|
|
12
12
|
</tab-button>
|
|
13
13
|
</template>
|
|
14
14
|
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
<script>
|
|
17
17
|
import TabButton from './../comprehen/common/TabButton'
|
|
18
18
|
import Tabs from './../comprehen/common/Tabs'
|
|
19
|
-
|
|
19
|
+
import CardHandAudit from './cardHandAudit.vue'
|
|
20
|
+
export default {
|
|
20
21
|
name: 'cardHandManager',
|
|
21
22
|
title: '卡表抄表管理',
|
|
22
23
|
data () {
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
show: [true]
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
|
-
components: {Tabs, TabButton},
|
|
38
|
+
components: {CardHandAudit, Tabs, TabButton},
|
|
38
39
|
ready () {
|
|
39
40
|
console.log(this.$refs.list)
|
|
40
41
|
},
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<tab-button v-ref:list>
|
|
3
3
|
<tabs header="开票记录">
|
|
4
|
-
<e-ticket-record-list></e-ticket-record-list>
|
|
4
|
+
<e-ticket-record-list-query-v4></e-ticket-record-list-query-v4>
|
|
5
5
|
</tabs>
|
|
6
6
|
<!-- <tabs header="物联网表结算">-->
|
|
7
|
-
<!-- <e-ticket-open-iot></e-ticket-open-iot>-->
|
|
7
|
+
<!-- <e-ticket-open-iot-query-v4></e-ticket-open-iot-query-v4>-->
|
|
8
8
|
<!-- </tabs>-->
|
|
9
9
|
<!-- <tabs header="卡表结算">-->
|
|
10
|
-
<!-- <e-ticket-open-card></e-ticket-open-card>-->
|
|
10
|
+
<!-- <e-ticket-open-card-query-v4></e-ticket-open-card-query-v4>-->
|
|
11
11
|
<!-- </tabs>-->
|
|
12
|
-
<!-- <tabs header="
|
|
13
|
-
<!-- <e-ticket-open-hand></e-ticket-open-hand>-->
|
|
12
|
+
<!-- <tabs header="机表抄表结算">-->
|
|
13
|
+
<!-- <e-ticket-open-hand-query-v4></e-ticket-open-hand-query-v4>-->
|
|
14
14
|
<!-- </tabs>-->
|
|
15
15
|
<tabs header="自定义开票">
|
|
16
|
-
<cust-query-eticket></cust-query-eticket>
|
|
16
|
+
<cust-query-eticket-query-v4></cust-query-eticket-query-v4>
|
|
17
17
|
</tabs>
|
|
18
18
|
</tab-button>
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script>
|
|
22
|
-
import TabButton from '../../components/revenue/comprehen/common/TabButton'
|
|
23
|
-
import Tabs from '../../components/revenue/comprehen/common/Tabs'
|
|
22
|
+
import TabButton from '../../components/revenue/comprehen/SpecialUser/common/TabButton'
|
|
23
|
+
import Tabs from '../../components/revenue/comprehen/SpecialUser/common/Tabs'
|
|
24
24
|
export default {
|
|
25
25
|
name: 'eticket',
|
|
26
26
|
title: '发票管理',
|
|
@@ -17,4 +17,6 @@ export default function () {
|
|
|
17
17
|
Vue.component('e-ticket-manage', (resolve) => { require(['./EticketManage'], resolve) })
|
|
18
18
|
// 自定义开票
|
|
19
19
|
Vue.component('cust-query-eticket', (resolve) => { require(['./CustQueryEticket'], resolve) })
|
|
20
|
+
// 电子发票管理 对接v4 新的表结构
|
|
21
|
+
Vue.component('e-ticket-manage-query-v4', (resolve) => { require(['./EticketManage'], resolve) })
|
|
20
22
|
}
|
|
@@ -375,11 +375,11 @@ let sellgasGen = async function (self) {
|
|
|
375
375
|
self.print = true
|
|
376
376
|
}
|
|
377
377
|
} else {
|
|
378
|
-
if (self.model.f_print[0]
|
|
378
|
+
if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
|
|
379
379
|
self.row.id = res
|
|
380
380
|
self.eticket_show = true
|
|
381
381
|
// 应铜川需要卡表显示
|
|
382
|
-
await self.$refs.eticketbill.openETicket([res], self.row, '是', self.invoice_is_pax, '卡表收费')
|
|
382
|
+
await self.$refs.eticketbill.openETicket([res], self.row, '是', self.invoice_is_pax, '卡表收费', self.model.f_print[0])
|
|
383
383
|
// await self.$CommonService.openEticket(res, '售气收费')
|
|
384
384
|
// self.print = true
|
|
385
385
|
}
|
|
@@ -515,6 +515,7 @@ export default {
|
|
|
515
515
|
eticket_msg: false,
|
|
516
516
|
eticket_show: false,
|
|
517
517
|
invoice_is_pax: '不征税',
|
|
518
|
+
printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
|
|
518
519
|
is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
|
|
519
520
|
model: {
|
|
520
521
|
f_purchase: 0,
|
|
@@ -663,7 +664,7 @@ export default {
|
|
|
663
664
|
// 收款回车时, 如果确认按钮是灰色不进行任何操作
|
|
664
665
|
if (flag) return
|
|
665
666
|
console.log(this.model.f_print[0])
|
|
666
|
-
if (this.model.f_print[0]
|
|
667
|
+
if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
|
|
667
668
|
if (!this.row.f_taxpayer_id) {
|
|
668
669
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
669
670
|
}
|
|
@@ -93,18 +93,18 @@ export default {
|
|
|
93
93
|
console.log('查看传进来的参数:', obj)
|
|
94
94
|
this.warningInfo = await this.$resetpost('rs/logic/getWarningMsg',
|
|
95
95
|
{data: {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
f_userfiles_id: obj.f_userfiles_id,
|
|
97
|
+
f_userinfo_code: obj.f_userinfo_code,
|
|
98
|
+
f_userinfo_id: obj.f_userinfo_id,
|
|
99
|
+
f_meternumber: obj.f_meternumber,
|
|
100
|
+
f_meter_type: obj.f_meter_type,
|
|
101
|
+
f_hascard: obj.f_hascard
|
|
102
|
+
}
|
|
103
103
|
}
|
|
104
104
|
, {resolveMsg: '', rejectMsg: '获取提示失败'})
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
!this.warningInfo.data.state.ins|| !this.warningInfo.data.state.blacklist ||
|
|
105
|
+
if (this.warningInfo.data.warningNum > 0 && (!this.warningInfo.data.state.info ||
|
|
106
|
+
!this.warningInfo.data.state.dibao || !this.warningInfo.data.state.taxpayerId ||
|
|
107
|
+
!this.warningInfo.data.state.ins || !this.warningInfo.data.state.blacklist ||
|
|
108
108
|
!this.warningInfo.data.state.invoice || !this.warningInfo.data.state.isExtendMeterInfo || !this.warningInfo.data.state.ruhu) && obj.f_user_state !== '预备') {
|
|
109
109
|
this.modalrow = obj
|
|
110
110
|
this.showModal = true
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<label class=" font_normal_body" title="参数名称:付款方式">收款方式</label>
|
|
9
9
|
<input type="text" v-show="false" v-model="$refs.payment.selectedItems" v-validate:payment='{required: true }'>
|
|
10
10
|
<v-select v-model="f_payment"
|
|
11
|
-
placeholder='请选择
|
|
11
|
+
placeholder='请选择'
|
|
12
12
|
:value.sync="model.f_payment"
|
|
13
13
|
:options='paytype' clear-button v-ref:payment></v-select>
|
|
14
14
|
</div>
|
|
@@ -386,9 +386,9 @@
|
|
|
386
386
|
}
|
|
387
387
|
} else if (self.config.printType === '国税发票') {
|
|
388
388
|
// TODO
|
|
389
|
-
} else if (self.model.f_print[0]
|
|
389
|
+
} else if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
|
|
390
390
|
self.eticket_show = true
|
|
391
|
-
await self.$refs.eticketbill.openETicket([res.data.id], self.row, self.invoice_show_gas, self.invoice_is_pax, '物联网收费')
|
|
391
|
+
await self.$refs.eticketbill.openETicket([res.data.id], self.row, self.invoice_show_gas, self.invoice_is_pax, '物联网收费', self.model.f_print[0])
|
|
392
392
|
// self.$CommonService.openEticket(res.data.id, '其他收费')
|
|
393
393
|
// self.$dispatch('success')
|
|
394
394
|
}
|
|
@@ -487,6 +487,7 @@
|
|
|
487
487
|
eticket_msg: false,
|
|
488
488
|
eticket_show: false,
|
|
489
489
|
invoice_is_pax: '不征税',
|
|
490
|
+
printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
|
|
490
491
|
is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
|
|
491
492
|
model: {
|
|
492
493
|
f_purchase: 0,
|
|
@@ -626,7 +627,7 @@
|
|
|
626
627
|
this.model.f_sys_balance = curSysBalance
|
|
627
628
|
}
|
|
628
629
|
|
|
629
|
-
if (this.model.f_print[0]
|
|
630
|
+
if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
|
|
630
631
|
if (!this.row.f_taxpayer_id) {
|
|
631
632
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
632
633
|
}
|
|
@@ -54,14 +54,17 @@ export default {
|
|
|
54
54
|
}
|
|
55
55
|
await this.$resetpost('rs/entity/t_eticket', model, {resolveMsg: null, rejectMsg: '保存发票记录失败'})
|
|
56
56
|
},
|
|
57
|
-
async openETicket (sellId, row, show_gas, is_pax, type) {
|
|
57
|
+
async openETicket (sellId, row, show_gas, is_pax, type, invoice_kind = '电子发票') {
|
|
58
58
|
try {
|
|
59
59
|
let model = {
|
|
60
|
-
id: sellId,
|
|
61
|
-
|
|
60
|
+
id: sellId[0],
|
|
61
|
+
charge_item: type,
|
|
62
|
+
invoice_type: 0,
|
|
63
|
+
invoice_kind,
|
|
62
64
|
f_dept_id: this.$login.f.depids,
|
|
63
65
|
f_operator: this.$login.f.name,
|
|
64
66
|
f_orgid: this.$login.f.orgid,
|
|
67
|
+
org_id: this.$login.f.orgid,
|
|
65
68
|
f_orgname: this.$login.f.orgs,
|
|
66
69
|
f_depname: this.$login.f.deps,
|
|
67
70
|
f_operatorid: this.$login.f.id,
|
|
@@ -72,12 +75,50 @@ export default {
|
|
|
72
75
|
f_mail_push: row.f_email,
|
|
73
76
|
f_buy_openbank: row.f_paper_account,
|
|
74
77
|
invoice_show_gas: show_gas === '是',
|
|
75
|
-
is_pax: is_pax === '征税'
|
|
78
|
+
is_pax: is_pax === '征税',
|
|
79
|
+
isTax: is_pax === '征税' ? 1 : 0
|
|
76
80
|
}
|
|
77
|
-
console.log('组织开票数据并保存', model)
|
|
78
81
|
// TODO 组织开票数据并保存
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
const res = await this.$resetpost('/invoice/rs/logic/getInvoice', model, {resolveMsg: null, rejectMsg: '开票请求失败'})
|
|
83
|
+
if (res.data.code == '0000') {
|
|
84
|
+
this.return_msg = '发票开具成功,请稍后到发票管理页面查看或打印'
|
|
85
|
+
} else {
|
|
86
|
+
this.return_msg = '发票开具失败,请稍后到发票管理页面补打或重开'
|
|
87
|
+
}
|
|
88
|
+
} catch (error) {
|
|
89
|
+
this.$showAlert(`电子发票开票失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
async rushRedInvoice (sellId, eticket_id, row, type, invoice_kind = '电子发票') {
|
|
93
|
+
try {
|
|
94
|
+
let model = {
|
|
95
|
+
id: sellId[0],
|
|
96
|
+
eticket_id,
|
|
97
|
+
charge_item: type,
|
|
98
|
+
invoice_type: 1,
|
|
99
|
+
invoice_kind,
|
|
100
|
+
f_dept_id: this.$login.f.depids,
|
|
101
|
+
f_operator: this.$login.f.name,
|
|
102
|
+
f_orgid: this.$login.f.orgid,
|
|
103
|
+
org_id: this.$login.f.orgid,
|
|
104
|
+
f_orgname: this.$login.f.orgs,
|
|
105
|
+
f_depname: this.$login.f.deps,
|
|
106
|
+
f_operatorid: this.$login.f.id,
|
|
107
|
+
f_filialeids: this.$login.f.f_orgids,
|
|
108
|
+
f_buy_name: row.f_paper_name,
|
|
109
|
+
f_pay_id: row.f_taxpayer_id,
|
|
110
|
+
f_buy_address: row.f_address_phone,
|
|
111
|
+
f_mail_push: row.f_email,
|
|
112
|
+
f_buy_openbank: row.f_paper_account,
|
|
113
|
+
isTax: 1
|
|
114
|
+
}
|
|
115
|
+
// TODO 组织开票数据并保存
|
|
116
|
+
const res = await this.$resetpost('/invoice/rs/logic/getInvoice', model, {resolveMsg: null, rejectMsg: '开票请求失败'})
|
|
117
|
+
if (res.data.code == '0000') {
|
|
118
|
+
this.return_msg = '发票开具成功,请稍后到发票管理页面查看或打印'
|
|
119
|
+
} else {
|
|
120
|
+
this.return_msg = '发票开具失败,请稍后到发票管理页面补打或重开'
|
|
121
|
+
}
|
|
81
122
|
} catch (error) {
|
|
82
123
|
this.$showAlert(`电子发票开票失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
|
|
83
124
|
}
|
|
@@ -177,7 +218,7 @@ export default {
|
|
|
177
218
|
},
|
|
178
219
|
/** 冲红
|
|
179
220
|
* */
|
|
180
|
-
async
|
|
221
|
+
async rushRedInvoice_1 (ticket_id) {
|
|
181
222
|
try {
|
|
182
223
|
// 否则正常打票
|
|
183
224
|
let time = 0
|
|
@@ -144,9 +144,9 @@
|
|
|
144
144
|
<button class="btn btn-link" v-if="row.f_bill_state==='开票失败'"
|
|
145
145
|
@click="$parent.$parent.$parent.kp(row)">重新开票
|
|
146
146
|
</button>
|
|
147
|
-
<button class="btn btn-link" v-if="['查询失败','等待查询'].includes(row.f_bill_state)"
|
|
148
|
-
@click="$parent.$parent.$parent.fp_search(row)"
|
|
149
|
-
</button
|
|
147
|
+
<!-- <button class="btn btn-link" v-if="['查询失败','等待查询'].includes(row.f_bill_state)"-->
|
|
148
|
+
<!-- @click="$parent.$parent.$parent.fp_search(row)">电票查询-->
|
|
149
|
+
<!-- </button>-->
|
|
150
150
|
</template>
|
|
151
151
|
</th>
|
|
152
152
|
</tr>
|
|
@@ -215,13 +215,9 @@ export default {
|
|
|
215
215
|
this.model.search(args.condition, args.model)
|
|
216
216
|
},
|
|
217
217
|
async confirm () {
|
|
218
|
-
//
|
|
219
|
-
let res = await this.$resetpost('rs/logic/correctEticket', {id: this.row.id, bz: this.bz}, {
|
|
220
|
-
resolveMsg: null,
|
|
221
|
-
rejectMsg: '保存开票信息失败'
|
|
222
|
-
})
|
|
218
|
+
// row
|
|
223
219
|
this.eticket_show = true
|
|
224
|
-
await this.$refs.eticketbill.rushRedInvoice(
|
|
220
|
+
await this.$refs.eticketbill.rushRedInvoice(this.row.sell_id, this.row.id, this.row, this.row.f_charge_type, this.row.f_invoice_type)
|
|
225
221
|
},
|
|
226
222
|
async fp_search (row) {
|
|
227
223
|
this.eticket_show = true
|
|
@@ -242,7 +238,7 @@ export default {
|
|
|
242
238
|
},
|
|
243
239
|
kp (row) {
|
|
244
240
|
this.eticket_show = true
|
|
245
|
-
this.$refs.eticketbill.
|
|
241
|
+
this.$refs.eticketbill.openETicket(row.sell_id, row, '否', '征税', row.f_charge_type, row.f_invoice_type)
|
|
246
242
|
},
|
|
247
243
|
eticket_toggle () {
|
|
248
244
|
this.eticket_show = false
|
|
@@ -235,6 +235,7 @@
|
|
|
235
235
|
</template>
|
|
236
236
|
<script>
|
|
237
237
|
import {HttpResetClass} from 'vue-client'
|
|
238
|
+
import CardService from './CardService'
|
|
238
239
|
|
|
239
240
|
/**
|
|
240
241
|
*综合业务
|
|
@@ -332,7 +333,7 @@
|
|
|
332
333
|
self.model.payments = self.paymentModel
|
|
333
334
|
// 加入扫码盒付款码支付流水号
|
|
334
335
|
self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
|
|
335
|
-
let res = await
|
|
336
|
+
let res = await CardService.sellgas(self.model, self.row)
|
|
336
337
|
let localeSustainMoney = window.localStorage.getItem('sustainMoney')
|
|
337
338
|
if (localeSustainMoney != null) {
|
|
338
339
|
localeSustainMoney = (localeSustainMoney - 0) + (self.model.f_collection - 0)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
2
|
import co from 'co'
|
|
3
|
+
import {HttpResetClass} from 'vue-client'
|
|
3
4
|
|
|
4
5
|
let CardService = {
|
|
5
6
|
install (Vue, options) {
|
|
@@ -36,6 +37,9 @@ let CardService = {
|
|
|
36
37
|
f_privilege_gas = model.f_privilege_gas
|
|
37
38
|
}
|
|
38
39
|
let param = {
|
|
40
|
+
f_alias: row.f_alias,
|
|
41
|
+
garbage_number: model.garbage_number,
|
|
42
|
+
garbage_money: model.garbage_money,
|
|
39
43
|
f_serial_id: model.f_serial_id,
|
|
40
44
|
f_userinfo_id: row.f_userinfo_id,
|
|
41
45
|
f_serial_number: f_serial_number,
|
|
@@ -289,6 +293,7 @@ let CardService = {
|
|
|
289
293
|
f_privilege_gas = model.f_privilege_gas
|
|
290
294
|
}
|
|
291
295
|
let param = {
|
|
296
|
+
f_alias: row.f_alias,
|
|
292
297
|
garbage_number: model.garbage_number,
|
|
293
298
|
garbage_money: model.garbage_money,
|
|
294
299
|
f_serial_id: model.f_serial_id,
|
|
@@ -855,6 +860,20 @@ let sendCardSaleGasGen = async function (model, row) {
|
|
|
855
860
|
// 存库
|
|
856
861
|
result = await Vue.resetpost('rs/logic/sale_sendCardSaleGas_logic', {data: model}, {resolveMsg: null, rejectMsg: '发卡售气存库失败'})
|
|
857
862
|
console.log('发卡售气存库返回', result)
|
|
863
|
+
try {
|
|
864
|
+
// 获取写卡金额/气量
|
|
865
|
+
let res = await new HttpResetClass().load('POST', 'rs/sql/saleSingleTable', {
|
|
866
|
+
data: {
|
|
867
|
+
items: '*',
|
|
868
|
+
tablename: 't_sellinggas',
|
|
869
|
+
orderitem: 'id',
|
|
870
|
+
condition: ` id = '${result.data.id}'`
|
|
871
|
+
}
|
|
872
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
873
|
+
model.f_write_money = res.data[0].f_preamount
|
|
874
|
+
} catch (e) {
|
|
875
|
+
console.log(e)
|
|
876
|
+
}
|
|
858
877
|
// 写卡
|
|
859
878
|
let cardParams = await getParamGen(result.data.cardnumber, row.f_alias, row.f_user_id, row.f_userfiles_id)
|
|
860
879
|
|
|
@@ -1802,6 +1821,19 @@ let sellgasGen = async function (model, row) {
|
|
|
1802
1821
|
}
|
|
1803
1822
|
// 存库
|
|
1804
1823
|
result = await Vue.resetpost('rs/logic/sale_cardCharge_logic', {data: model}, {resolveMsg: null, rejectMsg: '卡表收费存库失败'})
|
|
1824
|
+
try {
|
|
1825
|
+
// 获取写卡金额/气量
|
|
1826
|
+
let res = await new HttpResetClass().load('POST', 'rs/sql/saleSingleTable', {
|
|
1827
|
+
data: {
|
|
1828
|
+
items: '*',
|
|
1829
|
+
tablename: 't_sellinggas',
|
|
1830
|
+
orderitem: 'id',
|
|
1831
|
+
condition: ` id = '${result.data.id}'`
|
|
1832
|
+
}
|
|
1833
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
1834
|
+
model.f_write_money = res.data[0].f_preamount
|
|
1835
|
+
} catch (e) {
|
|
1836
|
+
}
|
|
1805
1837
|
// 获取气价和售气情况参数
|
|
1806
1838
|
let cardParams = await getParamGen(cardid, row.f_alias, row.f_user_id, row.f_userfiles_id)
|
|
1807
1839
|
console.log('写卡次数和获取的写卡参数...', row.cardInfo.Times, cardParams)
|
|
@@ -274,6 +274,7 @@
|
|
|
274
274
|
*/
|
|
275
275
|
|
|
276
276
|
import {HttpResetClass} from 'vue-client'
|
|
277
|
+
import CardService from './CardService'
|
|
277
278
|
|
|
278
279
|
let preamountGen = async function (self) {
|
|
279
280
|
let calFee = ((self.model.f_preamount - 0)).toFixed(4)
|
|
@@ -355,7 +356,7 @@ let initCardGen = async function (self) {
|
|
|
355
356
|
self.model.payments = self.paymentModel
|
|
356
357
|
// 加入扫码盒付款码支付流水号
|
|
357
358
|
self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
|
|
358
|
-
let res = await
|
|
359
|
+
let res = await CardService.initCard(self.model, self.row, self.cardallot)
|
|
359
360
|
let localeSustainMoney = window.localStorage.getItem('sustainMoney')
|
|
360
361
|
if (localeSustainMoney != null) {
|
|
361
362
|
localeSustainMoney = (localeSustainMoney - 0) + (self.model.f_collection - 0)
|
|
@@ -362,12 +362,12 @@ let getPrice = async function (self) {
|
|
|
362
362
|
f_price_type: self.row.f_price_type,
|
|
363
363
|
filter: self.$login.f.orgid
|
|
364
364
|
}
|
|
365
|
-
let rs = self.$GetSaleParam.getPrice(params)
|
|
366
|
-
rs.forEach((val) => {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
})
|
|
365
|
+
// let rs = self.$GetSaleParam.getPrice(params)
|
|
366
|
+
// rs.forEach((val) => {
|
|
367
|
+
// if (val.label == self.row.f_price_name) {
|
|
368
|
+
// self.newinfo.pricename = [val.value]
|
|
369
|
+
// }
|
|
370
|
+
// })
|
|
371
371
|
self.initData()
|
|
372
372
|
}
|
|
373
373
|
export default {
|
package/src/main.js
CHANGED
|
@@ -3,8 +3,7 @@ import all from 'vue-client/src/all'
|
|
|
3
3
|
import App from './App'
|
|
4
4
|
import system from 'system-clients/src/system'
|
|
5
5
|
import sale from './sale'
|
|
6
|
-
|
|
7
|
-
import FilialeSale from './filiale/lixianV3/sale'
|
|
6
|
+
import FilialeSale from './filiale/tongchuan/sale'
|
|
8
7
|
import address from 'address-client/src/address'
|
|
9
8
|
import ldap from 'ldap-clients/src/ldap'
|
|
10
9
|
import VueClipboard from 'vue-clipboard2'
|
|
@@ -23,8 +22,7 @@ Vue.config.silent = true
|
|
|
23
22
|
all()
|
|
24
23
|
system(false)
|
|
25
24
|
sale()
|
|
26
|
-
|
|
27
|
-
// FilialeSale()
|
|
25
|
+
FilialeSale()
|
|
28
26
|
address()
|
|
29
27
|
ldap()
|
|
30
28
|
require('system-clients/src/styles/less/bootstrap.less')
|
|
@@ -33,4 +31,3 @@ new Vue({
|
|
|
33
31
|
el: 'body',
|
|
34
32
|
components: { App }
|
|
35
33
|
})
|
|
36
|
-
|
|
@@ -851,7 +851,7 @@ let sendCardSaleGasGen = async function (model, row) {
|
|
|
851
851
|
if (getCardNumber.data.cardNumber) {
|
|
852
852
|
// 当卡的别名是泰鹏普通卡的时候卡号和表号一致
|
|
853
853
|
console.log('开始验证是不是泰鹏普通卡')
|
|
854
|
-
if (row.f_alias && row.f_alias.includes('SmartCard_TP')
|
|
854
|
+
if (row.f_alias && (row.f_alias.includes('SmartCard_TP') || row.f_alias.includes('LiHengSystem'))) {
|
|
855
855
|
model.cardNumber = row.f_meternumber
|
|
856
856
|
} else if (row.f_alias && row.f_alias.includes('LaiDeRF')) {
|
|
857
857
|
model.cardNumber = row.f_card_id
|