sale-client 3.5.112 → 3.5.114
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 +6 -6
- package/package.json +1 -1
- package/src/components/FilesManage/UserGeneralInfoTest.vue +1 -1
- package/src/components/charge/business/CardChangeFill.vue +2 -1
- package/src/components/revenue/machineHandManage/machineHandAudit.vue +21 -9
- package/src/filiale/alashan/UserDeviceInfoTest.vue +1 -30
- package/src/filiale/chengtou/plugins/FileManageService.js +1 -1
- package/src/filiale/dongguan/components/BasicLiving.vue +2 -1
- package/src/filiale/guangxi/icTable.vue +288 -0
- package/src/filiale/guangxi/iotTable.vue +210 -0
- package/src/filiale/guangxi/sale.js +2 -0
- package/src/filiale/meihekou/batch/batchEditManage.vue +132 -132
- package/src/filiale/meihekou/batch/batchUserList.vue +456 -456
- package/src/filiale/meihekou/sale.js +45 -45
- package/src/filiale/qianneng/eticket/EticketPrint.vue +8 -6
- package/src/filiale/qianneng/revenue/machineHandManage/machineHandAudit.vue +2 -1
- package/src/filiale/tongchuan/ChargeList.vue +1 -1
- package/src/filiale/tongchuan/common/userinfo_detail/iot_detail/WatchCollection.vue +1 -1
- package/src/filiale/xinkang/TransferManage.vue +404 -0
- package/src/filiale/xinkang/WebMeterBatchOperationValve.vue +783 -783
- package/src/filiale/xinkang/sale.js +1 -0
- package/src/filiale/zhongyi/FileUserFiles.vue +1 -1
- package/src/filiale/zhongyi/MeterReadAudit.vue +347 -347
- package/src/main.js +22 -22
- package/yarn-error.log +9224 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/vcs-1/gc.properties +0 -0
package/build/dev-server.js
CHANGED
|
@@ -10,10 +10,10 @@ var compiler = webpack(config)
|
|
|
10
10
|
|
|
11
11
|
// Define HTTP proxies to your custom API backend
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var bendi = 'http://
|
|
13
|
+
var bendi = 'http://192.168.50.4:8400/', bendi1 = 'http://192.168.50.4:8400/'
|
|
14
14
|
// 公司测试服务
|
|
15
|
-
var fuwu = 'http://
|
|
16
|
-
|
|
15
|
+
// var fuwu = 'http://192.168.50.4:8400'
|
|
16
|
+
var fuwu = 'http://192.168.50.4:8400/'
|
|
17
17
|
// var fuwu = 'http://121.36.106.17:8400/'
|
|
18
18
|
// 铜川正式
|
|
19
19
|
// var fuwu = 'http://61.134.55.234:9999/'
|
|
@@ -121,13 +121,13 @@ var proxyTable = {
|
|
|
121
121
|
target: fuwu
|
|
122
122
|
},
|
|
123
123
|
'/rs/report': {
|
|
124
|
-
target:
|
|
124
|
+
target: 'http://121.36.106.17:8400/'
|
|
125
125
|
},
|
|
126
126
|
'/rs/vue': {
|
|
127
127
|
target: fuwu
|
|
128
128
|
},
|
|
129
129
|
'/webmeter': {
|
|
130
|
-
target:
|
|
130
|
+
target: 'http://192.168.50.4:8450'
|
|
131
131
|
},
|
|
132
132
|
'/rs': {
|
|
133
133
|
// target: 'http://192.168.30.63:8081/'
|
|
@@ -189,5 +189,5 @@ module.exports = app.listen(8085, function (err) {
|
|
|
189
189
|
console.log(err)
|
|
190
190
|
return
|
|
191
191
|
}
|
|
192
|
-
console.log('Listening at http://localhost:
|
|
192
|
+
console.log('Listening at http://localhost:8089')
|
|
193
193
|
})
|
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
</div>
|
|
94
94
|
<div class="row">
|
|
95
95
|
<div class="col-sm-2"></div>
|
|
96
|
-
<input v-if="fileSaveData.reason==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
|
|
96
|
+
<input v-if="fileSaveData.reason ==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
|
|
97
97
|
</div>
|
|
98
98
|
</article>
|
|
99
99
|
<footer slot="modal-footer" class="modal-footer">
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
33
|
<div class="col-sm-4 form-group"
|
|
34
|
+
v-if = "row.f_collection_type === '按气量'"
|
|
34
35
|
:class="[$v.f_pregas.required || $v.f_pregas.dctest? 'has-error' : 'has-success']">
|
|
35
36
|
<label for="f_pregas" class=" font_normal_body">预购气量</label>
|
|
36
37
|
<input class="input_search" style="width:60%" type="number"
|
|
@@ -492,7 +493,7 @@
|
|
|
492
493
|
}
|
|
493
494
|
},
|
|
494
495
|
preamount () {
|
|
495
|
-
if (this.model.f_totalcost && this.model.f_totalcost
|
|
496
|
+
if (this.model.f_totalcost && this.model.f_totalcost >= 0) {
|
|
496
497
|
try {
|
|
497
498
|
preamountGen(this)
|
|
498
499
|
} catch (error) {
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
import * as Util from '../../../Util'
|
|
395
395
|
|
|
396
396
|
let readyGen = async function (self) {
|
|
397
|
-
self.$refs.paged.$refs.cri.model.startDate =
|
|
397
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStartAndEndDateString()[0]
|
|
398
398
|
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
399
399
|
await self.$LoadParams.loadMeterBook(self.f_filialeid)
|
|
400
400
|
self.loadMeterBooks()
|
|
@@ -414,12 +414,13 @@
|
|
|
414
414
|
dep: [],
|
|
415
415
|
user: []
|
|
416
416
|
},
|
|
417
|
-
config:{
|
|
418
|
-
examine: false
|
|
417
|
+
config: {
|
|
418
|
+
examine: false
|
|
419
419
|
},
|
|
420
420
|
imgfilename: '',
|
|
421
421
|
// 小区
|
|
422
422
|
residentialArea: [],
|
|
423
|
+
inputtouPerson: [],
|
|
423
424
|
imgshow: false,
|
|
424
425
|
criteriaShow: false,
|
|
425
426
|
orgCondtionStr: '',
|
|
@@ -444,8 +445,8 @@
|
|
|
444
445
|
'f_adjustable_name': '调压箱名称',
|
|
445
446
|
'f_inputtor': '抄表员'
|
|
446
447
|
},
|
|
447
|
-
auditState:[{label: '全部', value: ''}, {label: '已审核', value: '已抄表'}, {label: '未审核', value: '待审核'}],
|
|
448
|
-
auditState1:[{label: '全部', value: ''}, {label: '审核失败', value: '审核失败'}],
|
|
448
|
+
auditState: [{label: '全部', value: ''}, {label: '已审核', value: '已抄表'}, {label: '未审核', value: '待审核'}],
|
|
449
|
+
auditState1: [{label: '全部', value: ''}, {label: '审核失败', value: '审核失败'}],
|
|
449
450
|
meters: [{label: '全部', value: ''}, {label: '机表', value: '机表'}, {label: '物联网表', value: '物联网表'}],
|
|
450
451
|
resultstate: this.$appdata.getParam('抄表结果状态'),
|
|
451
452
|
meterstates: this.$appdata.getParam('抄表状态') ? [{
|
|
@@ -475,7 +476,7 @@
|
|
|
475
476
|
methods: {
|
|
476
477
|
// 修正本期底数
|
|
477
478
|
amend (row) {
|
|
478
|
-
let tablebase = window.prompt('请输入你要修正的底数值,上期底数:'+ row.f_meter_base)
|
|
479
|
+
let tablebase = window.prompt('请输入你要修正的底数值,上期底数:' + row.f_meter_base)
|
|
479
480
|
if (!tablebase) return
|
|
480
481
|
if (tablebase < 0) {
|
|
481
482
|
this.$showAlert(`底数不能小于0,请注意!`, 'warning', 2000)
|
|
@@ -596,9 +597,9 @@
|
|
|
596
597
|
this.imgshow = false
|
|
597
598
|
},
|
|
598
599
|
imgShow (val) {
|
|
599
|
-
console.log(
|
|
600
|
+
console.log('-----------val2:', val)
|
|
600
601
|
this.imgfilename = `rs/image/file/` + val
|
|
601
|
-
console.log(
|
|
602
|
+
console.log('-----------imgfilename2:', this.imgfilename)
|
|
602
603
|
this.imgshow = true
|
|
603
604
|
},
|
|
604
605
|
async getaddress () {
|
|
@@ -632,6 +633,17 @@
|
|
|
632
633
|
} else {
|
|
633
634
|
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
634
635
|
}
|
|
636
|
+
// 抄表员查询条件
|
|
637
|
+
this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
|
|
638
|
+
if (this.inputtouPerson.length !== 0) {
|
|
639
|
+
let str = JSON.stringify(this.inputtouPerson)
|
|
640
|
+
str = str.replace(/"/g, `'`)
|
|
641
|
+
str = str.replace(/\[/g, ``)
|
|
642
|
+
str = str.replace(/\]/g, ``)
|
|
643
|
+
console.log('=====抄表员model22222222222绑定====', str)
|
|
644
|
+
// 查询多个抄表员时条件
|
|
645
|
+
args.condition += ` and f_inputtor in ( ${str} )`
|
|
646
|
+
}
|
|
635
647
|
this.excelCondition = args.condition
|
|
636
648
|
this.$refs.paged.$refs.grid.selectInit()
|
|
637
649
|
this.model.search(args.condition, args.model)
|
|
@@ -696,7 +708,7 @@
|
|
|
696
708
|
},
|
|
697
709
|
loadMeterBooks () {
|
|
698
710
|
this.meterbooks = this.$GetSaleParam.getMeterBooks()
|
|
699
|
-
}
|
|
711
|
+
}
|
|
700
712
|
|
|
701
713
|
},
|
|
702
714
|
computed: {
|
|
@@ -326,36 +326,7 @@ export default {
|
|
|
326
326
|
})
|
|
327
327
|
},
|
|
328
328
|
closeModal () {
|
|
329
|
-
|
|
330
|
-
let deleteData = []
|
|
331
|
-
for (let [index, row] of this.devicesinfo.entries()) {
|
|
332
|
-
switch (row.f_devices_type) {
|
|
333
|
-
case '壁挂炉':
|
|
334
|
-
if (!(row.f_brand && row.f_input_person && row.f_input_date && row.watchpurchase)) {
|
|
335
|
-
deleteData.push(index)
|
|
336
|
-
cannotclose = true
|
|
337
|
-
}
|
|
338
|
-
break
|
|
339
|
-
case '热水器':
|
|
340
|
-
if (!(row.f_brand)) {
|
|
341
|
-
deleteData.push(index)
|
|
342
|
-
cannotclose = true
|
|
343
|
-
}
|
|
344
|
-
break
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
if (cannotclose) {
|
|
348
|
-
this.$showMessage('新增设备有必填项没有填写,如果此时退出当前页面数据会丢失,请确定是否退出?', ['confirm', 'cancel']).then(async (res) => {
|
|
349
|
-
if (res === 'confirm') {
|
|
350
|
-
for (let i = deleteData.length - 1; i >= 0; i--) {
|
|
351
|
-
this.devicesinfo.splice(deleteData[i], 1)
|
|
352
|
-
}
|
|
353
|
-
this.show_devices = false
|
|
354
|
-
}
|
|
355
|
-
})
|
|
356
|
-
} else {
|
|
357
|
-
this.show_devices = false
|
|
358
|
-
}
|
|
329
|
+
this.show_devices = false
|
|
359
330
|
}
|
|
360
331
|
}
|
|
361
332
|
}
|
|
@@ -203,7 +203,7 @@ let FileManageService = {
|
|
|
203
203
|
meter.f_adjustable_id = meter.f_adjustable.length > 0 ? meter.f_adjustable[0].id : null
|
|
204
204
|
meter.f_userfiles_address = meter.f_userfiles_address ? meter.f_userfiles_address : null
|
|
205
205
|
// 气表状态需要根据表型判断是否需要开通操作 目前物联网表需要做开通操作
|
|
206
|
-
meter.f_table_state = result.f_user_state === '预备'
|
|
206
|
+
meter.f_table_state = result.f_user_state === '预备' ? '待开通' : '正常'
|
|
207
207
|
if (!meter.f_userfiles_id) {
|
|
208
208
|
// meter.f_whether_hairpin = !item.gasbrand[0].f_meter_type.includes('机表') ? '未发' : '无卡'
|
|
209
209
|
// 所有表变成未发
|
|
@@ -194,6 +194,7 @@
|
|
|
194
194
|
this.isBasicLiving1 = true
|
|
195
195
|
initGen(this, this.data)
|
|
196
196
|
} else {
|
|
197
|
+
initGen(this, this.data)
|
|
197
198
|
this.initModel()
|
|
198
199
|
}
|
|
199
200
|
},
|
|
@@ -249,7 +250,7 @@
|
|
|
249
250
|
f_price_id: this.model.f_price_id,
|
|
250
251
|
f_price_name: this.model.f_price_name
|
|
251
252
|
}
|
|
252
|
-
let res =await this.$resetpost('rs/logic/
|
|
253
|
+
let res =await this.$resetpost('rs/logic/stopBasicLiving', {data: data},{resolveMsg: null, rejectMsg: null})
|
|
253
254
|
this.initModel()
|
|
254
255
|
this.$dispatch('success','isBasicLiving')
|
|
255
256
|
}else {
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div class="span">
|
|
4
|
+
<validator name='v'>
|
|
5
|
+
<form novalidate class="form-horizontal">
|
|
6
|
+
<div class="row" v-if="isGas">
|
|
7
|
+
<div class="col-sm-4" :class="[$v.f_pregas.dctest ? 'has-error' : 'has-success']">
|
|
8
|
+
<label class="font_normal_body">赠气</label>
|
|
9
|
+
<input class="input_search" style="width:60%" type="number" @blur="pregas"
|
|
10
|
+
v-validate:f_pregas='{ dctest: [0, ">=" ]}' v-model="model.f_pregas" placeholder="赠气量" v-ref:f_pregas>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
<div class="row" v-if="!isGas">
|
|
15
|
+
<div class="col-sm-4">
|
|
16
|
+
<label for="f_preamount" class=" font_normal_body">金额:</label>
|
|
17
|
+
<input class="input_search" style="width:60%" type="number" min = "0" v-model="model.f_preamount" placeholder="金额">
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
</div>
|
|
21
|
+
<div class="row" style="margin-top:6px;">
|
|
22
|
+
<div class="col-sm-4" :class="[$v.printstyle.required ? 'has-error' : '']">
|
|
23
|
+
<label for="f_print" class="font_normal_body">打印格式</label>
|
|
24
|
+
<input type="text" v-show="false" v-model="$refs.printstyle.selectedItems"
|
|
25
|
+
v-validate:printstyle='{required: true }'>
|
|
26
|
+
<v-select id="print"
|
|
27
|
+
v-model="f_print"
|
|
28
|
+
placeholder='请选择'
|
|
29
|
+
:multiple="mulPrint"
|
|
30
|
+
:value.sync="model.f_print"
|
|
31
|
+
:options='printstyle'
|
|
32
|
+
close-on-select clear-button v-ref:printstyle>
|
|
33
|
+
</v-select>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="row" style="margin-top:10px;">
|
|
37
|
+
<label for="f_reason" class=" font_normal_body">备  注</label>
|
|
38
|
+
<input class="input_search" style="width:55%" rows="1" v-model="model.f_reason" placeholder="备注">
|
|
39
|
+
</div>
|
|
40
|
+
</form>
|
|
41
|
+
<validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
|
|
42
|
+
<print-bill :show="print" :bill-config='config' :bill-data='billData' :data='row' @toggle="printCancel"
|
|
43
|
+
@printok="printok" v-ref:printbill></print-bill>
|
|
44
|
+
<div style="text-align:right;margin-top: 2%">
|
|
45
|
+
|
|
46
|
+
<button class="button_search" @click="confirm()" :disabled='!$v.valid' >确认</button>
|
|
47
|
+
<button class="button_clear" @click="clean()" >取消</button>
|
|
48
|
+
</div>
|
|
49
|
+
</validator>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<upload :blodid="row.f_userinfo_id" isremark="true" fusetype="赠气"></upload>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
<script>
|
|
57
|
+
|
|
58
|
+
let otherGasGen = async function (self) {
|
|
59
|
+
let data = self.getSell()
|
|
60
|
+
data.f_total_gas = data.f_add_gas === '计入' ? (self.row.f_total_gas - 0) + (self.model.f_pregas - 0) : (self.row.f_total_gas - 0)
|
|
61
|
+
data.f_total_fee = data.f_add_gas === '计入' ? (self.row.f_total_fee - 0) + (self.model.f_preamount - 0) : (self.row.f_total_fee - 0)
|
|
62
|
+
if (self.isGas) {
|
|
63
|
+
data.f_pregas = self.model.f_pregas
|
|
64
|
+
} else {
|
|
65
|
+
data.f_preamount = self.model.f_preamount
|
|
66
|
+
}
|
|
67
|
+
data.f_userfiles_id = {
|
|
68
|
+
f_userfiles_id: self.row.f_userfiles_id,
|
|
69
|
+
f_user_id: self.row.f_user_id,
|
|
70
|
+
version: self.row.version,
|
|
71
|
+
f_times: self.row.cardInfo.Times + 1,
|
|
72
|
+
f_total_gas: data.f_add_gas === '计入' ? (self.row.f_total_gas - 0) + (self.model.f_pregas - 0) : (self.row.f_total_gas - 0),
|
|
73
|
+
f_total_fee: data.f_add_gas === '计入' ? (self.row.f_total_fee - 0) + (self.model.f_preamount - 0) : (self.row.f_total_fee - 0),
|
|
74
|
+
f_balance_gas: 0,
|
|
75
|
+
f_balance_amount: 0
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
let cardId = self.row.f_card_id
|
|
79
|
+
if (self.row.f_tag && self.row.f_tag !== 'null') {
|
|
80
|
+
// 截取用户编号后四位
|
|
81
|
+
data.f_userfiles_id.f_card_id = cardId = self.row.f_tag + self.row.f_card_id
|
|
82
|
+
data.f_userfiles_id.f_tag = null
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// 保存表类型
|
|
86
|
+
data.f_meter_type = self.row.f_meter_type
|
|
87
|
+
data.f_times = self.row.cardInfo.Times + 1
|
|
88
|
+
|
|
89
|
+
let result = await self.$resetpost('rs/logic/fedWithgaIc', data, {resolveMsg: null, rejectMsg: '补气报错!!!'})
|
|
90
|
+
|
|
91
|
+
try {
|
|
92
|
+
// 写卡操作
|
|
93
|
+
let cardParams = await self.$resetpost('rs/logic/stairCard', {data: {f_card_id: cardId + '', f_alias: self.row.f_alias, f_user_id: self.row.f_user_id}}, {resolveMsg: null, rejectMsg: '获取写卡参数失败'})
|
|
94
|
+
// 获取写卡参数
|
|
95
|
+
let params = self.getWriteCard(cardParams, self.row, data)
|
|
96
|
+
params.kh = cardId
|
|
97
|
+
console.log('获取其他补气写卡参数,,', params)
|
|
98
|
+
let url = 'http://127.0.0.1:8003/WriteGasCard'
|
|
99
|
+
let cardRes = await self.$resetpost(url, params, {resolveMsg: null, rejectMsg: '补气卡服务错误'})
|
|
100
|
+
|
|
101
|
+
// 卡服务写卡异常,业务逻辑回滚
|
|
102
|
+
if (!cardParams || !result || cardRes.data.Err || cardRes.data.Exception) {
|
|
103
|
+
throw new Error(`卡服务错误:${cardRes.data.Err}${cardRes.data.Exception},请联系开发人员处理!!`)
|
|
104
|
+
} else {
|
|
105
|
+
await self.$CommonService.updatePassword(self.row, cardRes)
|
|
106
|
+
// 开始打票
|
|
107
|
+
console.log('开始打票', self.config)
|
|
108
|
+
self.$showAlert('赠气成功', 'success', 2000)
|
|
109
|
+
if (self.config.hasPrint) {
|
|
110
|
+
if (self.model.f_print.indexOf('电子发票') == -1) {
|
|
111
|
+
if (self.config.hasBillManage) {
|
|
112
|
+
// 启用发票管理,获取票据管理中的票号并存储记录
|
|
113
|
+
self.row.id = result.data.id
|
|
114
|
+
self.row.f_bill_type = data.f_type
|
|
115
|
+
self.row.f_bill_style = self.model.f_print[0]
|
|
116
|
+
self.print = true
|
|
117
|
+
} else {
|
|
118
|
+
self.row.id = result.data.id
|
|
119
|
+
self.print = true
|
|
120
|
+
}
|
|
121
|
+
} else if (self.config.printType === '国税发票') {
|
|
122
|
+
// TODO
|
|
123
|
+
} else if (self.model.f_print[0] === '电子发票') {
|
|
124
|
+
// TODO
|
|
125
|
+
}
|
|
126
|
+
} else {
|
|
127
|
+
self.$dispatch('success')
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
} catch (error) {
|
|
131
|
+
self.$showAlert(error, 'danger', 0)
|
|
132
|
+
let rollback = {
|
|
133
|
+
id: result.data.id,
|
|
134
|
+
f_card_id: self.row.f_card_id
|
|
135
|
+
}
|
|
136
|
+
if (self.row.f_tag) {
|
|
137
|
+
rollback.f_tag = self.row.f_tag
|
|
138
|
+
}
|
|
139
|
+
await self.$resetpost('rs/logic/otherGasRollback', {data: rollback}, {rejectMsg: '赠气回滚出错', resolveMsg: null})
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
let asyncShowCardTableGas = async function (self) {
|
|
143
|
+
await self.$getConfig(self, 'CardChangeFill')
|
|
144
|
+
console.log('换表发卡config', self.config)
|
|
145
|
+
self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
|
|
146
|
+
self.mulPrint = self.config.printType instanceof Array
|
|
147
|
+
|
|
148
|
+
self.model.f_use_type = self.config.billType
|
|
149
|
+
self.model.f_bill_type = self.model.f_print
|
|
150
|
+
self.hasValidateBill = self.config.hasBillManage
|
|
151
|
+
}
|
|
152
|
+
export default {
|
|
153
|
+
title: '卡表赠气赠费',
|
|
154
|
+
data () {
|
|
155
|
+
return {
|
|
156
|
+
isGas: false,
|
|
157
|
+
acceptprint: false,
|
|
158
|
+
resid: [],
|
|
159
|
+
acceptUrl: '',
|
|
160
|
+
config:{
|
|
161
|
+
hasPrint: false,
|
|
162
|
+
hasBillManage: true,
|
|
163
|
+
billType: '燃气费',
|
|
164
|
+
printType: '普通收据'
|
|
165
|
+
},
|
|
166
|
+
printData: {
|
|
167
|
+
reason: '',
|
|
168
|
+
fillgas: '',
|
|
169
|
+
fillamount: ''
|
|
170
|
+
},
|
|
171
|
+
model: {
|
|
172
|
+
f_pregas: 0,
|
|
173
|
+
f_preamount: 0,
|
|
174
|
+
f_reason: '',
|
|
175
|
+
// f_add_gas: '不计入'
|
|
176
|
+
f_print: []
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
hasValidateBill: true,
|
|
180
|
+
validateOk: false,
|
|
181
|
+
|
|
182
|
+
billData: {
|
|
183
|
+
url: 'rs/report/fill_gas_send_bill',
|
|
184
|
+
bill: ''
|
|
185
|
+
},
|
|
186
|
+
print: false,
|
|
187
|
+
mulPrint: false,
|
|
188
|
+
printstyle: this.$appdata.getParam('打印格式') ? this.$appdata.getParam('打印格式') : [],
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
props: ['row', 'cardData'],
|
|
192
|
+
ready() {
|
|
193
|
+
this.isGas = this.row.f_meter_type === '气量卡表' || this.row.f_collection_type == '按气量' || (this.row.f_calculation === '预付费' && this.row.f_billing === '按气量')
|
|
194
|
+
this.row.cardInfo = this.cardData
|
|
195
|
+
asyncShowCardTableGas(this)
|
|
196
|
+
console.log('卡信息', this.row.cardInfo)
|
|
197
|
+
},
|
|
198
|
+
methods: {
|
|
199
|
+
validateBill (val) {
|
|
200
|
+
this.validateOk = !val.isOk
|
|
201
|
+
this.billData.bill = val.bill
|
|
202
|
+
},
|
|
203
|
+
|
|
204
|
+
printok () {
|
|
205
|
+
this.$dispatch('success')
|
|
206
|
+
},
|
|
207
|
+
confirm () {
|
|
208
|
+
otherGasGen(this).then((res) => {
|
|
209
|
+
})
|
|
210
|
+
},
|
|
211
|
+
printCancel () {
|
|
212
|
+
this.$dispatch('refresh')
|
|
213
|
+
},
|
|
214
|
+
pregas () {
|
|
215
|
+
// 对气量进行验证
|
|
216
|
+
if ((this.row.f_topup_ceil - 0) > 0 && (this.model.f_pregas - 0) > (this.row.f_topup_ceil - 0)) {
|
|
217
|
+
this.$showAlert(`您输入的气量不能大于该表的充值上限: ${this.row.f_topup_ceil}`, 'warning', 5000)
|
|
218
|
+
this.model.f_pregas = null
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
getSell () {
|
|
222
|
+
return {
|
|
223
|
+
f_balance: this.row.f_balance,
|
|
224
|
+
f_curbalance: this.row.f_balance,
|
|
225
|
+
f_card_id: this.row.f_card_id,
|
|
226
|
+
f_comments: this.model.f_reason,
|
|
227
|
+
f_add_gas: '计入',
|
|
228
|
+
f_type: this.model.f_pregas != 0 ? '卡表赠气' : '卡表赠费',
|
|
229
|
+
f_user_id: this.row.f_user_id,
|
|
230
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
231
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
232
|
+
f_user_name: this.row.f_user_name,
|
|
233
|
+
f_user_type: this.row.f_user_type,
|
|
234
|
+
f_gasproperties: this.row.f_gasproperties,
|
|
235
|
+
f_address: this.row.f_address,
|
|
236
|
+
f_meter_brand: this.row.f_meter_brand,
|
|
237
|
+
f_operat_type: '其他补气',
|
|
238
|
+
f_describe: `${this.$login.f.name}对客户${this.row.f_user_name}进行${this.model.f_pregas != 0 ? '卡表赠气' : '卡表赠费'}操作`,
|
|
239
|
+
f_state: '有效',
|
|
240
|
+
f_operator: this.$login.f.name,
|
|
241
|
+
f_operatorid: this.$login.f.id,
|
|
242
|
+
f_orgid: this.$login.f.orgid,
|
|
243
|
+
f_orgname: this.$login.f.orgs,
|
|
244
|
+
f_depid: this.$login.f.depids,
|
|
245
|
+
f_depname: this.$login.f.deps,
|
|
246
|
+
f_zoneid: this.$login.f.zoneid,
|
|
247
|
+
f_zones: this.$login.f.zones
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
getWriteCard (cardParams, row, data) {
|
|
251
|
+
let params = {
|
|
252
|
+
factory: row.f_alias, // 气表厂家
|
|
253
|
+
kh: row.f_card_id, // 卡号
|
|
254
|
+
kmm: row.f_card_password, // 卡密码,写卡后返回新密码, 不论补卡还是先开户都没有密码
|
|
255
|
+
bjql: row.f_police_gas, // 报警气量,t_gasbrand表中
|
|
256
|
+
czsx: row.f_topup_ceil, // 充值上线,t_gasbrand表中
|
|
257
|
+
tzed: row.f_overdr_lines, // 透支额度,t_gasbrand表中
|
|
258
|
+
bkcs: row.f_fillcard_times, // 补卡次数,从补卡表里通过表编号获得
|
|
259
|
+
ql: data.f_pregas, // 预购气量
|
|
260
|
+
cs: row.cardInfo.Times + 1, // 求购气次数,先开户为1
|
|
261
|
+
money: data.f_preamount, // 购气金额
|
|
262
|
+
klx: row.f_coding,
|
|
263
|
+
kzt: '1',
|
|
264
|
+
dqdm: row.f_area_code,
|
|
265
|
+
meterid: row.f_meternumber ? row.f_meternumber : 0 // 表号
|
|
266
|
+
// meternumber: row.f_meternumber ? row.f_meternumber : 0
|
|
267
|
+
}
|
|
268
|
+
return Object.assign({}, this.$CommonService.writeCardParams(cardParams), params)
|
|
269
|
+
},
|
|
270
|
+
close () {
|
|
271
|
+
this.print = false
|
|
272
|
+
this.clean()
|
|
273
|
+
},
|
|
274
|
+
clean () {
|
|
275
|
+
this.$info('取消操作')
|
|
276
|
+
this.$dispatch('cancelclean', this.row)
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
computed: {
|
|
280
|
+
addGas () {
|
|
281
|
+
return [{label: '计入', value: '计入'}, {label: '不计入', value: '不计入'}]
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
</script>
|
|
286
|
+
|
|
287
|
+
<style>
|
|
288
|
+
</style>
|