sale-client 3.6.199 → 3.6.200
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/build/dev-server.js +1 -1
- package/package.json +1 -1
- package/src/filiale/alashan/EticketManage.vue +8 -8
- package/src/filiale/alashan/sale.js +2 -0
- 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/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://127.0.0.1:8080/']
|
|
3
3
|
var merge = require('webpack-merge')
|
|
4
4
|
var baseConfig = require('./webpack.dev.conf')
|
|
5
5
|
var devConfig = {
|
package/package.json
CHANGED
|
@@ -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
|
}
|
|
@@ -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/wenxi/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
|