sale-client 4.2.128 → 4.2.130
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
2
|
var checkVersion = require('./versionCheck.js')
|
|
3
3
|
checkVersion()
|
|
4
|
-
const [ serverRul, localUrl ] = ['http://
|
|
4
|
+
const [ serverRul, localUrl ] = ['http://192.168.50.67:31567/', 'http://192.168.50.67:31567/']
|
|
5
5
|
var merge = require('webpack-merge')
|
|
6
6
|
var baseConfig = require('./webpack.dev.conf')
|
|
7
7
|
var devConfig = {
|
|
@@ -51,10 +51,10 @@ var devConfig = {
|
|
|
51
51
|
target: 'http://localhost:8080'
|
|
52
52
|
},
|
|
53
53
|
'/api/af-revenue': {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
target:
|
|
54
|
+
pathRewrite: {
|
|
55
|
+
'/api/af-revenue': '/af-revenue'
|
|
56
|
+
},
|
|
57
|
+
target: "http://localhost:8080"
|
|
58
58
|
},
|
|
59
59
|
'/api': {
|
|
60
60
|
target: serverRul
|
package/package.json
CHANGED
|
@@ -85,6 +85,10 @@
|
|
|
85
85
|
<label class="col-sm-5">安装时间</label>
|
|
86
86
|
<span class="col-sm-7">{{ data ? data.f_install_date.substr(0, 10) : dafault.f_input_date }}</span>
|
|
87
87
|
</div>
|
|
88
|
+
<div class="row" :class="[config.f_createfile_date ? 'highlight' : '']">
|
|
89
|
+
<label class="col-sm-5">建档时间</label>
|
|
90
|
+
<span class="col-sm-7">{{ data ? data.f_createfile_date.substr(0, 10) : dafault.f_createfile_date }}</span>
|
|
91
|
+
</div>
|
|
88
92
|
<div class="row" :class="[config.f_people_num ? 'highlight' : '']">
|
|
89
93
|
<label class="col-sm-5"> 人 口 数</label>
|
|
90
94
|
<span class="col-sm-7"
|
|
@@ -235,6 +239,7 @@ export default {
|
|
|
235
239
|
f_address: '*****',
|
|
236
240
|
f_user_type: '***',
|
|
237
241
|
f_open_date: '****年**月**日',
|
|
242
|
+
f_createfile_date: '****年**月**日',
|
|
238
243
|
f_input_date: '****年**月**日',
|
|
239
244
|
f_hand_date: '****年**月**日',
|
|
240
245
|
f_rent_phone: '************',
|
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<partial-view v-ref:pv>
|
|
3
|
+
<div class="panel panel-info auto" style="margin-top: auto">
|
|
4
|
+
<div class="panel-heading" style="height: 35px">
|
|
5
|
+
<h4 style="display:inline-block;margin-top: auto">表具信息</h4>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="auto ">
|
|
8
|
+
<div class="row" v-if="data.f_customer">
|
|
9
|
+
<label class = "col-sm-5 " style="color: brown">团缴编号</label>
|
|
10
|
+
<span class = "col-sm-7" style="color: brown">{{data.f_customer?data.f_customer:'无'}}</span>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="row">
|
|
13
|
+
<label class = "col-sm-5 " >气表类型</label>
|
|
14
|
+
<span class = "col-sm-7">{{data?data.f_meter_type:dafault.f_meter_brand}}</span>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="row">
|
|
17
|
+
<label class = "col-sm-5 " >气表品牌</label>
|
|
18
|
+
<span class = "col-sm-7">{{data?data.f_meter_brand:dafault.f_meter_brand}}</span>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="row">
|
|
21
|
+
<label class = "col-sm-5 " >气表型号</label>
|
|
22
|
+
<span class = "col-sm-7">{{data?data.f_meter_style:dafault.f_meter_style}}</span>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网')">
|
|
25
|
+
<label class = "col-sm-5 " >计费终端</label>
|
|
26
|
+
<span class = "col-sm-7" >{{data?data.f_calculation:dafault.f_calculation}}</span>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网')">
|
|
29
|
+
<label class = "col-sm-5 " >结算方式</label>
|
|
30
|
+
<span class = "col-sm-7" >{{data?data.f_collection_type:dafault.f_collection_type}}</span>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="row">
|
|
33
|
+
<label class="col-sm-5" style="color: brown">表具状态</label>
|
|
34
|
+
<span class="col-sm-7" style="color: brown">{{data?data.f_table_state:dafault.f_table_state}}</span>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="row" v-if="!data.f_calculation.includes('表端结算') && data.f_meter_type.includes('物联网') && data.f_collection_type === '按金额'">
|
|
37
|
+
<label class = "col-sm-5 " style="color: brown">系统余额</label>
|
|
38
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_balance_amount:dafault.f_balance_amount}}</span>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="row" v-if="!data.f_calculation.includes('表端结算') && data.f_meter_type.includes('物联网') && data.f_collection_type === '按气量'">
|
|
41
|
+
<label class = "col-sm-5 " style="color: brown">系统余量</label>
|
|
42
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_balance_gas:dafault.f_balance_gas}}</span>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="row" v-if="data.f_calculation.includes('表端结算') && data.f_meter_type.includes('物联网')">
|
|
45
|
+
<label class = "col-sm-5 " style="color: brown">表端上报余额</label>
|
|
46
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_jval:dafault.f_jval}}</span>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row">
|
|
49
|
+
<label class = "col-sm-5 " >欠费金额</label>
|
|
50
|
+
<span class = "col-sm-7">{{f_arrears_fee ? f_arrears_fee : 0}}</span>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="row">
|
|
53
|
+
<label class = "col-sm-5 " >初始表底数</label>
|
|
54
|
+
<span class = "col-sm-7" >{{data?data.f_initial_base:dafault.f_initial_base}}</span>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="row">
|
|
57
|
+
<label class = "col-sm-5 " >表当前底数</label>
|
|
58
|
+
<span class = "col-sm-7" >{{data?data.f_meter_base:dafault.f_meter_base}}</span>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="row" v-show="data.f_times">
|
|
61
|
+
<label class = "col-sm-5 " >写卡次数</label>
|
|
62
|
+
<span class = "col-sm-7" >{{data?data.f_times:dafault.f_times}}</span>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网')">
|
|
65
|
+
<label class = "col-sm-5 ">指令上表次数</label>
|
|
66
|
+
<span class = "col-sm-7" >{{data?data.f_iot_times:dafault.f_iot_times}}</span>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网')">
|
|
69
|
+
<label class = "col-sm-5 ">表累购金额</label>
|
|
70
|
+
<span class = "col-sm-7" >{{data?data.f_total_fee:dafault.f_total_fee}}
|
|
71
|
+
<span v-if="data && this.$login.r.includes('收费页面修改累购')" @click.stop="changeMeterFee"
|
|
72
|
+
class="glyphicon glyphicon-pencil click-change" title="修改累购金额">
|
|
73
|
+
</span>
|
|
74
|
+
</span>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网')">
|
|
77
|
+
<label class = "col-sm-5 ">户累购金额</label>
|
|
78
|
+
<span class = "col-sm-7" >{{data?data.f_total_fee_all:dafault.f_total_fee_all}}</span>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="row" v-if="(data.f_meter_type === '机表' || data.f_meter_type === '物联网表') && data.f_deduction_gas > 0">
|
|
81
|
+
<label class = "col-sm-5 " >剩余抵扣量</label>
|
|
82
|
+
<span class = "col-sm-7" >{{data?data.f_deduction_gas:dafault.f_deduction_gas}}</span>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="row" v-if="data.f_meter_type.includes('卡表')">
|
|
85
|
+
<label class = "col-sm-5 " style="color: brown" >户累购气量</label>
|
|
86
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_total_gas_all:dafault.f_total_gas_all}}</span>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="row" v-if="(data.f_meter_brand.includes('数码表'))">
|
|
89
|
+
<label class = "col-sm-5 " style="color: brown" >累购气量</label>
|
|
90
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_total_gas:dafault.f_total_gas}}</span>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="row" v-if="data.f_meter_type.includes('卡表') && data.f_meter_type === '气量卡表'">
|
|
93
|
+
<label class = "col-sm-5 " style="color: brown" >累购气量</label>
|
|
94
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_total_gas:dafault.f_total_gas}}
|
|
95
|
+
<span v-if="data && this.$login.r.includes('收费页面修改累购')" @click.stop="changeMeterGas"
|
|
96
|
+
class="glyphicon glyphicon-pencil click-change" title="修改累购气量">
|
|
97
|
+
</span>
|
|
98
|
+
</span>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="row" v-if="data.f_meter_type.includes('卡表')">
|
|
101
|
+
<label class = "col-sm-5 " style="color: brown">累购金额</label>
|
|
102
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_total_fee:dafault.f_total_fee}}
|
|
103
|
+
<span v-if="data && this.$login.r.includes('收费页面修改累购')" @click.stop="changeMeterFee"
|
|
104
|
+
class="glyphicon glyphicon-pencil click-change" title="修改累购金额">
|
|
105
|
+
</span>
|
|
106
|
+
</span>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="row" v-if="data.f_meter_type.includes('卡表')">
|
|
109
|
+
<label class = "col-sm-5 " style="color: brown">累购写卡金额</label>
|
|
110
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_write_totalfee:dafault.f_total_fee}}
|
|
111
|
+
<span v-if="data && this.$login.r.includes('收费页面修改累购')" @click.stop="changeMeterWriteFee"
|
|
112
|
+
class="glyphicon glyphicon-pencil click-change" title="修改累购写卡金额">
|
|
113
|
+
</span>
|
|
114
|
+
</span>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="row">
|
|
117
|
+
<label class = "col-sm-5 " >气表表号</label>
|
|
118
|
+
<span class = "col-sm-7">{{data?data.f_meternumber:dafault.f_meternumber}}</span>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="row" v-if="data.f_meter_type.includes('卡表') || (data.f_meter_type.includes('物联网表') && data.f_hascard==='是')">
|
|
121
|
+
<label class = "col-sm-5 " >卡  号</label>
|
|
122
|
+
<span class = "col-sm-7">{{data?data.f_card_id:dafault.f_card_id}}</span>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="row">
|
|
125
|
+
<label class = "col-sm-5 " >表封号</label>
|
|
126
|
+
<span class="col-sm-7">{{data?data.f_metertitles:dafault.f_metertitles}}
|
|
127
|
+
<span v-if="data" @click.stop="changemetertitles"
|
|
128
|
+
class="glyphicon glyphicon-pencil click-change" title="修正表封号"></span>
|
|
129
|
+
</span>
|
|
130
|
+
</div>
|
|
131
|
+
<!-- <div class="row" v-if="data.f_meter_type.includes('卡表') || data.f_meter_type.includes('物联网表') && data.f_hascard==='是'">-->
|
|
132
|
+
<!-- <label class = "col-sm-5 " >写卡次数</label>-->
|
|
133
|
+
<!-- <span class = "col-sm-7">{{data?data.f_times:dafault.f_times}}</span>-->
|
|
134
|
+
<!-- </div>-->
|
|
135
|
+
<div class="row">
|
|
136
|
+
<label class = "col-sm-5 " >用气性质</label>
|
|
137
|
+
<span class = "col-sm-7">{{data?data.f_gasproperties:dafault.f_gasproperties}}</span>
|
|
138
|
+
</div>
|
|
139
|
+
<div class="row">
|
|
140
|
+
<label class = "col-sm-5 " >气价名称</label>
|
|
141
|
+
<span class = "col-sm-7">{{data?data.f_price_name:dafault.f_price_name}}</span>
|
|
142
|
+
</div>
|
|
143
|
+
<!--<div class="row" v-if="data.f_balance < 0">-->
|
|
144
|
+
<!--<label class = "col-sm-5 " >账户欠费</label>-->
|
|
145
|
+
<!--<span class = "col-sm-7" title="不包含违约金">{{data?0 - (data.f_balance - 0):dafault.f_balance}}</span>-->
|
|
146
|
+
<!--</div>-->
|
|
147
|
+
<!--<div class="row" v-else>-->
|
|
148
|
+
<!--<label class = "col-sm-5 " >账户余额</label>-->
|
|
149
|
+
<!--<span class = "col-sm-7">{{data?data.f_balance:dafault.f_balance}}</span>-->
|
|
150
|
+
<!--</div>-->
|
|
151
|
+
<div class="row" v-if="data.f_remanent_money > 0">
|
|
152
|
+
<label class = "col-sm-5 " >应补金额</label>
|
|
153
|
+
<span class = "col-sm-7">{{data?data.f_remanent_money:dafault.f_remanent_money}}</span>
|
|
154
|
+
</div>
|
|
155
|
+
<div class="row" v-if="data.f_remanent_gas > 0">
|
|
156
|
+
<label class = "col-sm-5 " >应补气量</label>
|
|
157
|
+
<span class = "col-sm-7">{{data?data.f_remanent_gas:dafault.f_remanent_gas}}</span>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="row">
|
|
160
|
+
<label class = "col-sm-5 " >表  向</label>
|
|
161
|
+
<span class = "col-sm-7">{{data?data.f_aroundmeter:dafault.f_hand_date}}</span>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="row" v-if="!data.f_meter_type.includes('物联网')">
|
|
164
|
+
<label class = "col-sm-5 " >抄表册名</label>
|
|
165
|
+
<span class = "col-sm-7">{{data?'['+data.f_book_code + '] '+ (data.f_book_name ? data.f_book_name:''):dafault.f_book_name}}</span>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="row" v-if="!data.f_meter_type.includes('物联网')">
|
|
168
|
+
<label class = "col-sm-5 " >抄表册册序号</label>
|
|
169
|
+
<span class = "col-sm-7">{{data?data.f_meter_book_sort:dafault.f_meter_book_sort}}</span>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="row">
|
|
172
|
+
<label class = "col-sm-5 " >安装位置</label>
|
|
173
|
+
<span class = "col-sm-7">{{data?data.f_position:dafault.f_position}}</span>
|
|
174
|
+
</div>
|
|
175
|
+
<div class="row">
|
|
176
|
+
<label class = "col-sm-5 " >置换人员</label>
|
|
177
|
+
<span class = "col-sm-7">{{data?data.f_gas_person:dafault.f_hand_date}}</span>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="row" v-if="!data.f_meter_type.includes('物联网')">
|
|
180
|
+
<label class = "col-sm-5 " >抄表员</label>
|
|
181
|
+
<span class = "col-sm-7">{{data?data.f_inputtor:dafault.f_inputtor}}</span>
|
|
182
|
+
</div>
|
|
183
|
+
<div class="row" v-if="!data.f_meter_type.includes('物联网')">
|
|
184
|
+
<label class = "col-sm-5 " >上次抄表日</label>
|
|
185
|
+
<span class = "col-sm-7">{{data?data.f_hand_date.substring(0,7):dafault.f_hand_date}}</span>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="row">
|
|
188
|
+
<label class = "col-sm-5 " >备  注</label>
|
|
189
|
+
<span class = "col-sm-7">{{data?data.comments:dafault.comments}}</span>
|
|
190
|
+
</div>
|
|
191
|
+
<modal v-if="showselectncuserfile" :show.sync="showselectncuserfile" width="40%" title="修正表封号"
|
|
192
|
+
v-ref:modal large backdrop="false">
|
|
193
|
+
<article slot="modal-body" class="modal-body">
|
|
194
|
+
<div class="form-horizontal">
|
|
195
|
+
<div class="row">
|
|
196
|
+
<div class="col-sm-12 form-group">
|
|
197
|
+
<label class="font_normal_body">旧表封号</label>
|
|
198
|
+
<input disabled readonly type="text" style="width:80%" class="input_search"
|
|
199
|
+
v-model="data.f_metertitles" placeholder='旧表封号'>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
<div class="row">
|
|
203
|
+
<div class="col-sm-12 form-group">
|
|
204
|
+
<label class="font_normal_body">新表封号</label>
|
|
205
|
+
<input type="text" style="width:80%" class="input_search" v-model="newmetertitles"
|
|
206
|
+
placeholder='新表封号'>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
</article>
|
|
211
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
212
|
+
<button class="button_search" :disabled='!$m.valid ' @click="modifyUserFile('表封号')">确定</button>
|
|
213
|
+
<button type="button" class="button_clear" @click='close'>取消</button>
|
|
214
|
+
</footer>
|
|
215
|
+
</modal>
|
|
216
|
+
<modal v-if="showSelectUserFee" :show.sync="showSelectUserFee" width="40%" title="修正表累购金额"
|
|
217
|
+
v-ref:modal large backdrop="false">
|
|
218
|
+
<article slot="modal-body" class="modal-body">
|
|
219
|
+
<div class="form-horizontal">
|
|
220
|
+
<div class="row">
|
|
221
|
+
<div class="col-sm-12 form-group">
|
|
222
|
+
<label class="font_normal_body">原累购金额</label>
|
|
223
|
+
<input readonly type="text" style="width:80%" class="input_search"
|
|
224
|
+
v-model="data.f_total_fee" placeholder='原累购金额' disabled>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
<div class="row">
|
|
228
|
+
<div class="col-sm-12 form-group">
|
|
229
|
+
<label class="font_normal_body">修改后累购金额</label>
|
|
230
|
+
<input type="text" style="width:80%" class="input_search" v-model="newMeterFee"
|
|
231
|
+
placeholder='修改后累购金额'>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
</div>
|
|
235
|
+
</article>
|
|
236
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
237
|
+
<button class="button_search" :disabled='!$m.valid ' @click="modifyUserFile('累购金额')">确定</button>
|
|
238
|
+
<button type="button" class="button_clear" @click='close'>取消</button>
|
|
239
|
+
</footer>
|
|
240
|
+
</modal>
|
|
241
|
+
<modal v-if="showSelectUserWriteFee" :show.sync="showSelectUserWriteFee" width="40%" title="修正表累购写卡金额"
|
|
242
|
+
v-ref:modal large backdrop="false">
|
|
243
|
+
<article slot="modal-body" class="modal-body">
|
|
244
|
+
<div class="form-horizontal">
|
|
245
|
+
<div class="row">
|
|
246
|
+
<div class="col-sm-12 form-group">
|
|
247
|
+
<label class="font_normal_body">原表累购写卡金额</label>
|
|
248
|
+
<input readonly type="text" style="width:80%" class="input_search"
|
|
249
|
+
v-model="data.f_write_totalfee" placeholder='原表累购写卡金额' disabled>
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
<div class="row">
|
|
253
|
+
<div class="col-sm-12 form-group">
|
|
254
|
+
<label class="font_normal_body">修改后累购写卡金额</label>
|
|
255
|
+
<input type="text" style="width:80%" class="input_search" v-model="newMeterWriteFee"
|
|
256
|
+
placeholder='修改后累购写卡金额'>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
</article>
|
|
261
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
262
|
+
<button class="button_search" :disabled='!$m.valid ' @click="modifyUserFile('累购写卡金额')">确定</button>
|
|
263
|
+
<button type="button" class="button_clear" @click='close'>取消</button>
|
|
264
|
+
</footer>
|
|
265
|
+
</modal>
|
|
266
|
+
<modal v-if="showSelectUserGas" :show.sync="showSelectUserGas" width="40%" title="修正表累购气量"
|
|
267
|
+
v-ref:modal large backdrop="false">
|
|
268
|
+
<article slot="modal-body" class="modal-body">
|
|
269
|
+
<div class="form-horizontal">
|
|
270
|
+
<div class="row">
|
|
271
|
+
<div class="col-sm-12 form-group">
|
|
272
|
+
<label class="font_normal_body">原表累购气量</label>
|
|
273
|
+
<input readonly type="text" style="width:80%" class="input_search"
|
|
274
|
+
v-model="data.f_total_gas" placeholder='原表累购气量' disabled>
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
<div class="row">
|
|
278
|
+
<div class="col-sm-12 form-group">
|
|
279
|
+
<label class="font_normal_body">修改后累购气量</label>
|
|
280
|
+
<input type="text" style="width:80%" class="input_search" v-model="newMeterGas"
|
|
281
|
+
placeholder='新表累购气量'>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
</article>
|
|
286
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
287
|
+
<button class="button_search" :disabled='!$m.valid ' @click="modifyUserFile('累购气量')">确定</button>
|
|
288
|
+
<button type="button" class="button_clear" @click='close'>取消</button>
|
|
289
|
+
</footer>
|
|
290
|
+
</modal>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</partial-view>
|
|
294
|
+
</template>
|
|
295
|
+
|
|
296
|
+
import { HttpResetClass } from 'vue-client'
|
|
297
|
+
|
|
298
|
+
<script>
|
|
299
|
+
/* 用户档案相关信息组件 */
|
|
300
|
+
import {HttpResetClass} from 'vue-client'
|
|
301
|
+
|
|
302
|
+
export default {
|
|
303
|
+
ready () {
|
|
304
|
+
console.log('看看userinfo里面接收的data数据', this.data)
|
|
305
|
+
},
|
|
306
|
+
title: '客户基本信息',
|
|
307
|
+
data () {
|
|
308
|
+
return {
|
|
309
|
+
dafault: {
|
|
310
|
+
f_total_gas_all: 0,
|
|
311
|
+
f_total_fee_all: 0,
|
|
312
|
+
f_balance_amount: 0,
|
|
313
|
+
f_balance_gas: 0,
|
|
314
|
+
f_initial_base: 0,
|
|
315
|
+
f_meter_base: 0,
|
|
316
|
+
f_deduction_gas: 0,
|
|
317
|
+
f_total_gas: 0,
|
|
318
|
+
f_total_fee: 0,
|
|
319
|
+
f_card_id: '*****',
|
|
320
|
+
f_times: 0,
|
|
321
|
+
f_iot_times: 0,
|
|
322
|
+
f_meternumber: 0,
|
|
323
|
+
f_metertitles: '',
|
|
324
|
+
f_gasproperties: '****',
|
|
325
|
+
f_price_name: '****',
|
|
326
|
+
f_meter_brand: '****',
|
|
327
|
+
f_balance: 0,
|
|
328
|
+
f_user_type: '**',
|
|
329
|
+
f_remanent_gas: 0,
|
|
330
|
+
f_position: '****',
|
|
331
|
+
f_inputtor: '****',
|
|
332
|
+
f_jval: 0,
|
|
333
|
+
f_table_state: 0
|
|
334
|
+
},
|
|
335
|
+
f_arrears_fee: 0,
|
|
336
|
+
model: null,
|
|
337
|
+
showselectncuserfile: false,
|
|
338
|
+
showSelectUserFee: false,
|
|
339
|
+
showSelectUserWriteFee: false,
|
|
340
|
+
showSelectUserGas: false,
|
|
341
|
+
newmetertitles: '',
|
|
342
|
+
newMeterGas: 0,
|
|
343
|
+
newMeterFee: 0,
|
|
344
|
+
newMeterWriteFee: 0
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
props: ['data'],
|
|
348
|
+
methods: {
|
|
349
|
+
async getArrears () {
|
|
350
|
+
let http = new HttpResetClass()
|
|
351
|
+
let arrearsFee = 0
|
|
352
|
+
let res = await http.load('POST', 'api/af-revenue/logic/sale_getOwe', {
|
|
353
|
+
data: {
|
|
354
|
+
f_userinfo_id: this.data.f_userinfo_id
|
|
355
|
+
}
|
|
356
|
+
}, {resolveMsg: null, rejectMsg: '获取欠费出错!!'})
|
|
357
|
+
if (res.data.length > 0) {
|
|
358
|
+
const owes = res.data.flatMap(item => item.rows)
|
|
359
|
+
for (let i = 0; i < owes.length; i++) {
|
|
360
|
+
arrearsFee = arrearsFee + owes[i].f_oughtfee
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
this.list = res.data
|
|
364
|
+
if (this.data.f_meter_type == '物联网表') {
|
|
365
|
+
this.f_arrears_fee = (this.data.f_balance_amount - arrearsFee) > 0 ? 0 : 0 - (this.data.f_balance_amount - arrearsFee)
|
|
366
|
+
} else if (this.data.f_meter_type == '机表') {
|
|
367
|
+
this.f_arrears_fee = (this.data.f_balance - arrearsFee) > 0 ? 0 : 0 - (this.data.f_balance - arrearsFee)
|
|
368
|
+
} else {
|
|
369
|
+
this.f_arrears_fee = (this.data.f_balance - arrearsFee) > 0 ? 0 : 0 - (this.data.f_balance - arrearsFee)
|
|
370
|
+
}
|
|
371
|
+
this.f_arrears_fee = parseFloat(this.f_arrears_fee.toFixed(2))
|
|
372
|
+
},
|
|
373
|
+
dealmsg (val) {
|
|
374
|
+
this.$dispatch('deal-msg', val)
|
|
375
|
+
},
|
|
376
|
+
changemetertitles () {
|
|
377
|
+
// 修正表封号
|
|
378
|
+
this.showselectncuserfile = true
|
|
379
|
+
this.newmetertitles = 0
|
|
380
|
+
},
|
|
381
|
+
changeMeterGas () {
|
|
382
|
+
// 修改累购气量
|
|
383
|
+
this.showSelectUserGas = true
|
|
384
|
+
},
|
|
385
|
+
changeMeterFee () {
|
|
386
|
+
// 修改累购金额
|
|
387
|
+
this.showSelectUserFee = true
|
|
388
|
+
},
|
|
389
|
+
changeMeterWriteFee () {
|
|
390
|
+
// 修改累购写卡金额
|
|
391
|
+
this.showSelectUserWriteFee = true
|
|
392
|
+
},
|
|
393
|
+
async modifyUserFile (type) {
|
|
394
|
+
let param = {
|
|
395
|
+
f_userinfo_id: this.data.f_userinfo_id,
|
|
396
|
+
f_user_id: this.data.f_user_id,
|
|
397
|
+
f_userfiles_id: this.data.f_userfiles_id,
|
|
398
|
+
f_operator: this.$login.f.name,
|
|
399
|
+
f_operatorid: this.$login.f.id,
|
|
400
|
+
f_orgid: this.$login.f.orgid,
|
|
401
|
+
f_orgname: this.$login.f.orgs,
|
|
402
|
+
f_depid: this.$login.f.depids,
|
|
403
|
+
f_depname: this.$login.f.deps
|
|
404
|
+
}
|
|
405
|
+
if (type === '表封号') {
|
|
406
|
+
param.new_metertitles = this.newmetertitles
|
|
407
|
+
} else if (type === '累购气量') {
|
|
408
|
+
param.new_metergas = this.newMeterGas
|
|
409
|
+
} else if (type === '累购金额') {
|
|
410
|
+
param.new_meterfee = this.newMeterFee
|
|
411
|
+
} else if (type === '累购写卡金额') {
|
|
412
|
+
param.new_meterwritefee = this.newMeterWriteFee
|
|
413
|
+
}
|
|
414
|
+
await this.$resetpost('/api/af-revenue/logic/changeuserfilesmetertitles', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
|
|
415
|
+
this.data.f_metertitles = this.newmetertitles
|
|
416
|
+
if (type === '表封号') {
|
|
417
|
+
this.data.f_metertitles = this.newmetertitles
|
|
418
|
+
} else if (type === '累购气量') {
|
|
419
|
+
this.data.f_total_gas = this.newMeterGas
|
|
420
|
+
} else if (type === '累购金额') {
|
|
421
|
+
this.data.f_total_fee = this.newMeterFee
|
|
422
|
+
} else if (type === '累购写卡金额') {
|
|
423
|
+
this.data.f_write_totalfee = this.newMeterWriteFee
|
|
424
|
+
}
|
|
425
|
+
this.$parent.$parent.close()
|
|
426
|
+
this.$parent.$parent.clean()
|
|
427
|
+
this.$parent.$parent.$refs.list.searchNoData()
|
|
428
|
+
this.close()
|
|
429
|
+
},
|
|
430
|
+
close () {
|
|
431
|
+
this.showselectncuserfile = false
|
|
432
|
+
this.showSelectUserGas = false
|
|
433
|
+
this.showSelectUserFee = false
|
|
434
|
+
this.newmetertitles = 0
|
|
435
|
+
this.newMeterGas = 0
|
|
436
|
+
this.newMeterFee = 0
|
|
437
|
+
this.newMeterWriteFee = 0
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
watch: {
|
|
441
|
+
'data' (val) {
|
|
442
|
+
console.log('val========', val)
|
|
443
|
+
if (val) {
|
|
444
|
+
this.getArrears()
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
</script>
|
|
450
|
+
<style lang="less">
|
|
451
|
+
.row {
|
|
452
|
+
/*border-bottom:1px solid #F2F6FA;*/
|
|
453
|
+
margin-left: 0;
|
|
454
|
+
margin-right: 0;
|
|
455
|
+
}
|
|
456
|
+
.click-change:hover {
|
|
457
|
+
color: #3592ef;
|
|
458
|
+
cursor: pointer;
|
|
459
|
+
}
|
|
460
|
+
// . {
|
|
461
|
+
// height: 23px;
|
|
462
|
+
// border-right: 1px solid #F2F6FA;
|
|
463
|
+
// margin-bottom: 0;
|
|
464
|
+
// text-align: left;
|
|
465
|
+
// }
|
|
466
|
+
// #address {
|
|
467
|
+
// border-left: 1px solid #F2F6FA;
|
|
468
|
+
// }
|
|
469
|
+
// #user-info {
|
|
470
|
+
// padding:6px;
|
|
471
|
+
// span {
|
|
472
|
+
// padding-left: 5px;
|
|
473
|
+
// }
|
|
474
|
+
// }
|
|
475
|
+
// #address1 {
|
|
476
|
+
// border-right: 0;
|
|
477
|
+
// }
|
|
478
|
+
</style>
|
|
@@ -133,4 +133,7 @@ export default function () {
|
|
|
133
133
|
Vue.component('file-user-general-info-new', (resolve) => { require(['./FilesManageNew/UserGeneralInfoTest'], resolve) })
|
|
134
134
|
// 用户基本信息test
|
|
135
135
|
Vue.component('file-user-essential-info-new', (resolve) => { require(['./FilesManageNew/UserEssentialInfoTest'], resolve) })
|
|
136
|
+
|
|
137
|
+
// 当前选择用户的表具基本信息
|
|
138
|
+
Vue.component('user-meterinfodetail', (resolve) => { require(['./meterinfodetail'], resolve) })
|
|
136
139
|
}
|