sale-client 3.6.198 → 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/qianneng/revenue/common/ic_detail/HandQueryUser.vue +55 -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/CardList.vue +558 -0
- package/src/filiale/yuncheng/ChangeMeter.vue +6 -6
- package/src/filiale/yuncheng/ChargeList.vue +927 -0
- package/src/filiale/yuncheng/DetailManage.vue +41 -0
- package/src/filiale/yuncheng/detailinfo/CardInfo.vue +40 -0
- package/src/filiale/yuncheng/detailinfo/DevicesDetail.vue +69 -0
- package/src/filiale/yuncheng/detailinfo/OldmeterDetail.vue +88 -0
- package/src/filiale/yuncheng/detailinfo/OtherChargeRecord.vue +81 -0
- package/src/filiale/yuncheng/detailinfo/PriceDetail.vue +21 -0
- package/src/filiale/yuncheng/detailinfo/UserfilesDetail.vue +79 -0
- package/src/filiale/yuncheng/detailinfo/UserinfoDetail.vue +66 -0
- package/src/filiale/yuncheng/detailinfo/price/MixpriceDetail.vue +48 -0
- package/src/filiale/yuncheng/detailinfo/price/StairpriceDetail.vue +129 -0
- package/src/filiale/yuncheng/sale.js +4 -0
- 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
|
}
|
|
@@ -49,6 +49,14 @@
|
|
|
49
49
|
close-on-select
|
|
50
50
|
condition="f_hand_state = '{}'"></v-select>
|
|
51
51
|
</div>
|
|
52
|
+
<div class="col-sm-2 form-group" v-if="$parent.$parent.row.f_meter_type == '机表'">
|
|
53
|
+
<label class="font_normal_body" title="下账状态">下账状态</label>
|
|
54
|
+
<v-select :value.sync="model.f_accounts_state" v-model='model.f_accounts_state'
|
|
55
|
+
style="width:60%"
|
|
56
|
+
:options='$parent.$parent.accountsstates' placeholder='下账状态'
|
|
57
|
+
close-on-select
|
|
58
|
+
condition="f_accounts_state = '{}'"></v-select>
|
|
59
|
+
</div>
|
|
52
60
|
|
|
53
61
|
<div style="float: right">
|
|
54
62
|
<button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
|
|
@@ -88,8 +96,10 @@
|
|
|
88
96
|
<th><nobr>抄表状态 </nobr></th>
|
|
89
97
|
<th><nobr>抄表结果状态 </nobr></th>
|
|
90
98
|
<th><nobr>表单状态 </nobr></th>
|
|
99
|
+
<th><nobr>下账状态 </nobr></th>
|
|
91
100
|
<th><nobr>抄表员</nobr></th>
|
|
92
101
|
<th><nobr>录入员</nobr></th>
|
|
102
|
+
<th v-if="$parent.$parent.$parent.row.f_meter_type == '机表'"><nobr>操作</nobr></th>
|
|
93
103
|
</tr>
|
|
94
104
|
</template>
|
|
95
105
|
<template partial='body' partial='list' v-ref:grid>
|
|
@@ -114,8 +124,13 @@
|
|
|
114
124
|
<td style="text-align:center">{{row.f_meter_state}}</td>
|
|
115
125
|
<td style="text-align:center">{{row.f_result_state?row.f_result_state:''}}</td>
|
|
116
126
|
<td style="text-align:center">{{row.f_hand_state}}</td>
|
|
127
|
+
<td style="text-align:center">{{row.f_accounts_state}}</td>
|
|
117
128
|
<td style="text-align:center">{{row.f_inputtor}}</td>
|
|
118
129
|
<td style="text-align:center">{{row.f_input_person}}</td>
|
|
130
|
+
<td style="text-align:center" v-if="$parent.$parent.$parent.row.f_meter_type == '机表'">
|
|
131
|
+
<button @click.stop="$parent.$parent.$parent.report(row)" class="btn btn-link" name="button" type="button"
|
|
132
|
+
v-if="row.f_accounts_state==='自动下账' && row.f_hand_state === '有效'">打印扣费单</button>
|
|
133
|
+
</td>
|
|
119
134
|
</tr>
|
|
120
135
|
</template>
|
|
121
136
|
<template partial='foot'></template>
|
|
@@ -155,13 +170,38 @@
|
|
|
155
170
|
</td>
|
|
156
171
|
</tr>
|
|
157
172
|
</table>
|
|
173
|
+
<reissue-bill :data="reissue_data" :show.sync="reissue_show" @cancel="reissueOper()" @reissue-success="reissueSucc()" v-if="reissue_show"></reissue-bill>
|
|
158
174
|
</div>
|
|
159
175
|
|
|
160
176
|
</template>
|
|
161
177
|
|
|
162
178
|
<script>
|
|
163
179
|
import {HttpResetClass, PagedList} from 'vue-client'
|
|
180
|
+
import co from "co";
|
|
181
|
+
let reprintGen = function * (self, row) {
|
|
182
|
+
try {
|
|
183
|
+
let reissueData = {}
|
|
184
|
+
reissueData = Object.assign({}, reissueData, row)
|
|
164
185
|
|
|
186
|
+
reissueData.f_bill_type = row.type
|
|
187
|
+
reissueData.f_bill_style = '普通收据'
|
|
188
|
+
reissueData.f_operator = self.$login.f.name
|
|
189
|
+
reissueData.f_operatorid = self.$login.f.id
|
|
190
|
+
reissueData.f_orgid = self.$login.f.orgid
|
|
191
|
+
reissueData.f_orgname = self.$login.f.orgs
|
|
192
|
+
reissueData.f_depid = self.$login.f.depids
|
|
193
|
+
reissueData.f_depname = self.$login.f.deps
|
|
194
|
+
reissueData.billUrl = 'rs/report/machine_charging_bill'
|
|
195
|
+
|
|
196
|
+
self.reissue_data = reissueData
|
|
197
|
+
self.reissue_show = true
|
|
198
|
+
} catch (error) {
|
|
199
|
+
if (error.status) {
|
|
200
|
+
self.$warn(`加载数据出错, ${JSON.stringify(error)}`, 'CardList')
|
|
201
|
+
}
|
|
202
|
+
throw error
|
|
203
|
+
}
|
|
204
|
+
}
|
|
165
205
|
export default {
|
|
166
206
|
title: '抄表',
|
|
167
207
|
data () {
|
|
@@ -177,6 +217,8 @@
|
|
|
177
217
|
f_stair3amount: 0,
|
|
178
218
|
f_stair3fee: 0
|
|
179
219
|
}),
|
|
220
|
+
reissue_show: false,
|
|
221
|
+
reissue_data: null,
|
|
180
222
|
show: false,
|
|
181
223
|
lists: [],
|
|
182
224
|
meterstates: this.$appdata.getParam('抄表状态') ? [{
|
|
@@ -187,6 +229,7 @@
|
|
|
187
229
|
label: '全部',
|
|
188
230
|
value: ''
|
|
189
231
|
}, ...this.$appdata.getParam('表单状态')] : [],
|
|
232
|
+
accountsstates: [{label: '全部', value: ''}, {label: '自动下账', value: '自动下账'}, {label: '缴费清欠', value: '缴费清欠'}],
|
|
190
233
|
// 控制单选
|
|
191
234
|
radio: [],
|
|
192
235
|
// 选中的页
|
|
@@ -232,6 +275,18 @@
|
|
|
232
275
|
}
|
|
233
276
|
},
|
|
234
277
|
methods: {
|
|
278
|
+
reissueSucc () {
|
|
279
|
+
this.reissue_show = false
|
|
280
|
+
this.$dispatch('refresh')
|
|
281
|
+
},
|
|
282
|
+
reissueOper () {
|
|
283
|
+
this.reissue_data = null
|
|
284
|
+
this.reissue_show = false
|
|
285
|
+
},
|
|
286
|
+
report (row) {
|
|
287
|
+
let reprint = reprintGen(this, row)
|
|
288
|
+
return co(reprint)
|
|
289
|
+
},
|
|
235
290
|
// search() {
|
|
236
291
|
// this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
|
|
237
292
|
// this.model.search(this.condition, this.model)
|
|
@@ -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)
|