sale-client 4.2.136 → 4.2.138
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/.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/8.10/checksums/checksums.lock +0 -0
- package/.gradle/8.10/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.10/fileChanges/last-build.bin +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.10/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/build/dev-server.js +29 -51
- package/index.html +2 -7
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
- package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
- package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
- package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
- package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
- package/src/filiale/bayan/ChargeList.vue +1010 -1010
- package/src/filiale/bayan/StockListmain.vue +543 -543
- package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
- package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
- package/src/filiale/bazhong/sale.js +8 -8
- package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
- package/src/filiale/hongYa/revenue/Common/Movemeter.vue +591 -0
- package/src/filiale/hongYa/revenue/comprehen/ComprehenOperation/ChangeAccount/TransferManage.vue +832 -0
- package/src/filiale/hongYa/sale.js +4 -0
- package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
- package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
- package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
- package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
- package/src/filiale/ronghao/CardService.js +2144 -2144
- package/src/filiale/ronghao/InsuranceManage.vue +58 -58
- package/src/filiale/ronghao/MachineChargeService.js +149 -149
- package/src/filiale/ronghao/PaymentCode.vue +209 -209
- package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
- package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
- package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
- package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
- package/src/filiale/ronghao/Upload.vue +654 -654
- package/src/filiale/ronghao/cardDown.vue +1141 -1141
- package/src/filiale/ronghao/changemeterOperate.vue +315 -315
- package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
- package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
- package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
- package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
- package/src/filiale/ronghao/machineDown.vue +1176 -1176
- package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
- package/src/filiale/ronghao/specificInformation.vue +537 -537
- package/src/filiale/yangchun/ChargeList.vue +954 -954
- package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
- package/src/filiale/zhongsheng/BlackListList.vue +293 -293
- package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
- package/src/main.js +3 -3
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto" style="overflow:auto;">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<form novalidate class="form-horizontal">
|
|
5
|
+
<div class="row auto" >
|
|
6
|
+
|
|
7
|
+
<div class="col-sm-4 form-group" >
|
|
8
|
+
<label for="f_metertitles" class=" font_normal_body">旧表箱号</label>
|
|
9
|
+
<input class="input_search" style="width:60%" type="text"
|
|
10
|
+
v-model="row.f_metertitles"
|
|
11
|
+
disabled
|
|
12
|
+
>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-8 form-group" >
|
|
15
|
+
<label for="f_address" class=" font_normal_body"> 旧 地 址</label>
|
|
16
|
+
<input class="input_search" style="width:80%" type="text"
|
|
17
|
+
v-model="row.f_address"
|
|
18
|
+
disabled
|
|
19
|
+
>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-4 form-group" >
|
|
22
|
+
<label for="f_metertitles_new" class=" font_normal_body">新表箱号</label>
|
|
23
|
+
<input class="input_search" style="width:60%" type="text"
|
|
24
|
+
v-model="model.f_metertitles"
|
|
25
|
+
>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-8 form-group" >
|
|
28
|
+
<label for="f_comments" class=" font_normal_body">迁表原因</label>
|
|
29
|
+
<input class="input_search" style="width:80%" type="text"
|
|
30
|
+
v-model="model.f_comments"
|
|
31
|
+
>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-sm-4 form-group" >
|
|
34
|
+
<label for="f_position" class="font_normal_body" >旧抄表册</label>
|
|
35
|
+
<input class="input_search" style="width:60%" type="text"
|
|
36
|
+
v-model="model.f_meter_book_name"
|
|
37
|
+
disabled
|
|
38
|
+
>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="col-sm-4 form-group" >
|
|
41
|
+
<label for="f_position" class="font_normal_body" >新抄表册</label>
|
|
42
|
+
<v-select :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
|
43
|
+
:value-single="true"
|
|
44
|
+
:options='meterbookoptions' placeholder='抄表册'
|
|
45
|
+
close-on-select></v-select>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row auto" >
|
|
49
|
+
<div class="col-sm-12 form-group ">
|
|
50
|
+
<label for="f_comments" class=" font_normal_body" >新地址信息</label>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="col-sm-4 form-group "
|
|
53
|
+
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
54
|
+
<label class="font_normal_body">省 市 区</label>
|
|
55
|
+
<input type="text" style="width:41%" v-show="false" v-model="model.f_pcd_id"
|
|
56
|
+
>
|
|
57
|
+
<v-select :value.sync="model.f_pcd_id" :value-single="true"
|
|
58
|
+
:options='pcdslist' placeholder='请选择' @change="pcdChange"
|
|
59
|
+
close-on-select search="true" >
|
|
60
|
+
</v-select>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-sm-4 form-group "
|
|
63
|
+
:class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
|
|
64
|
+
<label class="font_normal_body">街道名称</label>
|
|
65
|
+
<input type="text" style="width:41%" v-show="false" v-model="model.f_street_id"
|
|
66
|
+
>
|
|
67
|
+
<v-select :value.sync="model.f_street_id" :value-single="true"
|
|
68
|
+
:options='streetslist' placeholder='请选择'
|
|
69
|
+
@change="streetChange"
|
|
70
|
+
close-on-select search="true" >
|
|
71
|
+
</v-select>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-4 form-group "
|
|
74
|
+
:class="[$v.f_residential_area_id.required ? 'has-error' : 'has-success']">
|
|
75
|
+
<label class="font_normal_body">小区名称</label>
|
|
76
|
+
<input type="text" style="width:41%" v-show="false" v-model="model.f_residential_area_id"
|
|
77
|
+
v-validate:f_residential_area_id='{required: true }'>
|
|
78
|
+
<v-select :value.sync="model.f_residential_area_id" :value-single="true"
|
|
79
|
+
:options='areaslist' placeholder='请选择'
|
|
80
|
+
close-on-select search="true">
|
|
81
|
+
</v-select>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="col-sm-4 form-group " :class="[$v.slice.required ? 'has-error' : 'has-success']">
|
|
84
|
+
<label class="font_normal_body">片  区</label>
|
|
85
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
|
|
86
|
+
v-validate:slice='{required: true }'>
|
|
87
|
+
<v-select :value.sync="model.slice_area" v-model="model.slice_area"
|
|
88
|
+
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
89
|
+
close-on-select v-ref:slice>
|
|
90
|
+
</v-select>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="col-sm-4 form-group ">
|
|
93
|
+
<label for="f_address" class="font_normal_body">楼  号</label>
|
|
94
|
+
<input type="text" style="width:40%" v-model="model.f_building" class="input_search"
|
|
95
|
+
placeholder="楼号"/>
|
|
96
|
+
<input type="text" style="width:20%" v-model="model.f_building_suffix" class="input_search"
|
|
97
|
+
/>
|
|
98
|
+
|
|
99
|
+
</div>
|
|
100
|
+
<div class="col-sm-4 form-group ">
|
|
101
|
+
<label for="f_address" class="font_normal_body">单  元</label>
|
|
102
|
+
<input type="text" style="width:40%" v-model="model.f_unit" class="input_search" placeholder="单元"/>
|
|
103
|
+
<input type="text" style="width:20%" v-model="model.f_unit_suffix" class="input_search"
|
|
104
|
+
/>
|
|
105
|
+
</div>
|
|
106
|
+
<div class="col-sm-4 form-group ">
|
|
107
|
+
<label for="f_address" class="font_normal_body">楼  层</label>
|
|
108
|
+
<input type="text" style="width:40%" v-model="model.f_floor" class="input_search"
|
|
109
|
+
placeholder="楼层" />
|
|
110
|
+
<input type="text" style="width:20%" v-model="model.f_floor_suffix" class="input_search"
|
|
111
|
+
/>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="col-sm-4 form-group "
|
|
114
|
+
:class="[$v.f_room.required ? 'has-error' : 'has-success']">
|
|
115
|
+
<label for="f_address" class="font_normal_body">门 牌 号</label>
|
|
116
|
+
<input type="text" style="width:40%" v-model="model.f_room" class="input_search" placeholder="门牌号"
|
|
117
|
+
v-validate:f_room='{required: true }'/>
|
|
118
|
+
<input type="text" style="width:20%" v-model="model.f_room_suffix" class="input_search"
|
|
119
|
+
/>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="row auto" >
|
|
123
|
+
<div class="col-sm-4 form-group" :class="[$v.f_price_validation.required ? 'has-error' : '']">
|
|
124
|
+
<label class="font_normal_body " for="f_price_validation">价格校验</label>
|
|
125
|
+
<input type="text" v-show="false" v-model="price.f_price_validation"
|
|
126
|
+
v-validate:f_price_validation='{required: true }'>
|
|
127
|
+
<v-select :options='priceValidation'
|
|
128
|
+
:value-single="true"
|
|
129
|
+
:value.sync="price.f_price_validation"
|
|
130
|
+
close-on-select
|
|
131
|
+
v-ref:priceValidation
|
|
132
|
+
placeholder='请选择'>
|
|
133
|
+
</v-select>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="col-sm-4 form-group">
|
|
136
|
+
<label class="font_normal_body " for="f_user_type">用户类型</label>
|
|
137
|
+
<v-select :options='usertypes'
|
|
138
|
+
:value-single="true"
|
|
139
|
+
:value.sync="price.f_user_type"
|
|
140
|
+
close-on-select
|
|
141
|
+
placeholder='请选择'>
|
|
142
|
+
</v-select>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="col-sm-4 form-group">
|
|
145
|
+
<label class="font_normal_body" for="f_gasproperties">用气性质</label>
|
|
146
|
+
<v-select :value.sync="price.f_gasproperties"
|
|
147
|
+
:options='gasproperties' placeholder='用气性质'
|
|
148
|
+
:value-single="true"
|
|
149
|
+
close-on-select>
|
|
150
|
+
</v-select>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="col-sm-4 form-group">
|
|
153
|
+
<label class="font_normal_body " for="f_price_type">气价类型</label>
|
|
154
|
+
<v-select :options='pricetypes'
|
|
155
|
+
:value-single="true"
|
|
156
|
+
:value.sync="price.f_price_type"
|
|
157
|
+
close-on-select
|
|
158
|
+
placeholder='请选择'>
|
|
159
|
+
</v-select>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="col-sm-4 form-group">
|
|
162
|
+
<label class="font_normal_body" for="pricename">气价名称</label>
|
|
163
|
+
<v-select :value.sync="price.f_price_id"
|
|
164
|
+
:options='prices' placeholder='气价名称'
|
|
165
|
+
:value-single="true"
|
|
166
|
+
close-on-select>
|
|
167
|
+
</v-select>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
<div style="text-align:right;height:auto;">
|
|
171
|
+
<button class="button_search btn-gn" type="button" @click="confirm()" :disabled="!$v.valid"
|
|
172
|
+
>确认
|
|
173
|
+
</button>
|
|
174
|
+
<button class="button_clear btn-gn" type="button" @click="clean()" >取消
|
|
175
|
+
</button>
|
|
176
|
+
</div>
|
|
177
|
+
<!--<div style="height: auto;width: 100%">-->
|
|
178
|
+
<!--<div style="height: 10%">-->
|
|
179
|
+
<!--<img style="margin-top: -5px" src="../../../../../../static/images/lefticon/矩形1183.png">-->
|
|
180
|
+
<!--<a style="font-size: 16px;font-weight: 500;color: #333;text-decoration: none;">附件信息</a> <a style="color: #999999"></a>-->
|
|
181
|
+
<!--</div>-->
|
|
182
|
+
<upload :blodid="blodid" isremark="true" fusetype="迁表"></upload>
|
|
183
|
+
<!--</div>-->
|
|
184
|
+
</form>
|
|
185
|
+
</validator>
|
|
186
|
+
</div>
|
|
187
|
+
</template>
|
|
188
|
+
<script>
|
|
189
|
+
/**
|
|
190
|
+
*迁表管理
|
|
191
|
+
*/
|
|
192
|
+
import {HttpResetClass} from 'vue-client'
|
|
193
|
+
import {runLogic} from 'vue-client/src/util/apiUtils'
|
|
194
|
+
|
|
195
|
+
export default {
|
|
196
|
+
title: '迁表登记',
|
|
197
|
+
data () {
|
|
198
|
+
return {
|
|
199
|
+
blodid: '',
|
|
200
|
+
model: {
|
|
201
|
+
f_building_suffix: '号楼',
|
|
202
|
+
f_unit_suffix: '单元',
|
|
203
|
+
f_floor_suffix: '层',
|
|
204
|
+
f_room_suffix: '室',
|
|
205
|
+
f_meter_book_name: ''
|
|
206
|
+
},
|
|
207
|
+
f_filialeids: this.$login.f.orgid,
|
|
208
|
+
sliceArea: [],
|
|
209
|
+
pcdslist: [],
|
|
210
|
+
streetslist: [],
|
|
211
|
+
areaslist: [],
|
|
212
|
+
meterbookoptions: [],
|
|
213
|
+
price: {
|
|
214
|
+
f_user_type: '',
|
|
215
|
+
f_gasproperties: '',
|
|
216
|
+
f_price_type: '',
|
|
217
|
+
f_price_id: '',
|
|
218
|
+
f_price_validation: ''
|
|
219
|
+
},
|
|
220
|
+
usertypes: this.$appdata.getParam('用户类型') ? this.$appdata.getParam('用户类型') : [],
|
|
221
|
+
gasproperties: [],
|
|
222
|
+
priceValidation: this.$appdata.getParam('价格校验'),
|
|
223
|
+
pricetypes: this.$appdata.getParam('气价类型') ? this.$appdata.getParam('气价类型') : [],
|
|
224
|
+
prices: []
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
props: ['row'],
|
|
228
|
+
async ready () {
|
|
229
|
+
this.blodid = this.$login.guid()
|
|
230
|
+
await this.initdata()
|
|
231
|
+
this.price.f_price_validation = this.row.f_price_validation
|
|
232
|
+
this.$nextTick(() => {
|
|
233
|
+
this.price.f_user_type = this.row.f_user_type
|
|
234
|
+
this.$nextTick(() => {
|
|
235
|
+
this.price.f_gasproperties = this.row.f_gasproperties
|
|
236
|
+
this.$nextTick(() => {
|
|
237
|
+
this.price.f_price_type = this.row.f_price_type
|
|
238
|
+
this.$nextTick(() => {
|
|
239
|
+
this.price.f_price_id = this.row.f_price_id
|
|
240
|
+
})
|
|
241
|
+
})
|
|
242
|
+
})
|
|
243
|
+
})
|
|
244
|
+
},
|
|
245
|
+
events: {
|
|
246
|
+
|
|
247
|
+
},
|
|
248
|
+
methods: {
|
|
249
|
+
getPirceInfo () {
|
|
250
|
+
return {
|
|
251
|
+
f_change_reason: '过户调价',
|
|
252
|
+
f_depid: this.$login.f.depids,
|
|
253
|
+
f_depname: this.$login.f.deps,
|
|
254
|
+
f_filialeid: this.$login.f.orgid,
|
|
255
|
+
f_operator: this.$login.f.name,
|
|
256
|
+
f_operatorid: this.$login.f.id,
|
|
257
|
+
f_orgid: this.$login.f.orgid,
|
|
258
|
+
f_orgname: this.$login.f.orgs,
|
|
259
|
+
f_user_id: this.row.f_user_id,
|
|
260
|
+
f_user_name: this.row.f_user_name,
|
|
261
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
262
|
+
old_price_id: this.row.f_price_id,
|
|
263
|
+
f_userinfo_id: this.row.f_userinfo_id
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
async initdata () {
|
|
267
|
+
await this.initAreas(this.f_filialeids)
|
|
268
|
+
// 添加特殊地址选省市区
|
|
269
|
+
await this.initpcds(` f_orgid = '${this.f_filialeids}'`)
|
|
270
|
+
// this.initstreets(` f_orgid = '${this.f_filialeids}' `)
|
|
271
|
+
// this.initareas(` f_orgid = '${this.f_filialeids}'`)
|
|
272
|
+
},
|
|
273
|
+
// 初始化片区
|
|
274
|
+
async initAreas (val) {
|
|
275
|
+
if (val) {
|
|
276
|
+
this.sliceArea = []
|
|
277
|
+
let getAllArea = await this.$resetpost('/api/af-revenue/logic/getZoneByKeys', {
|
|
278
|
+
orgId: this.f_filialeids
|
|
279
|
+
}, {rejectMsg: null, resolveMsg: '获取片区失败'})
|
|
280
|
+
let arr = getAllArea.data
|
|
281
|
+
arr.forEach((res) => {
|
|
282
|
+
this.sliceArea.push({label: res.label, value: {name: res.label, code: res.value}})
|
|
283
|
+
})
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
// 初始化省市区,添加街道
|
|
287
|
+
async initpcds (pconditon) {
|
|
288
|
+
this.pcdslist = []
|
|
289
|
+
let HttpReset = new HttpResetClass()
|
|
290
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
|
291
|
+
data: {
|
|
292
|
+
items: '*',
|
|
293
|
+
tablename: 't_pcd',
|
|
294
|
+
orderitem: 'id',
|
|
295
|
+
condition: pconditon
|
|
296
|
+
}
|
|
297
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
298
|
+
let redata = []
|
|
299
|
+
req.data.forEach((row, n) => {
|
|
300
|
+
redata[n] = {
|
|
301
|
+
label: row.f_pcd,
|
|
302
|
+
value: row.id,
|
|
303
|
+
data: row,
|
|
304
|
+
id: row.id
|
|
305
|
+
}
|
|
306
|
+
})
|
|
307
|
+
this.pcdslist = redata
|
|
308
|
+
let temp = {
|
|
309
|
+
tablename: 't_meter_book',
|
|
310
|
+
condition: `f_book_state='有效' and f_filiale_id='${this.$login.f.orgid}'`
|
|
311
|
+
}
|
|
312
|
+
let meterbooks = await HttpReset.load('POST', 'api/af-revenue/sql/saleSingleTable', {data: temp},
|
|
313
|
+
{resolveMsg: null, rejectMsg: '获取抄表册信息失败!!'})
|
|
314
|
+
if (meterbooks.data.length > 0) {
|
|
315
|
+
let options = []
|
|
316
|
+
for (let i = 0; i < meterbooks.data.length; i++) {
|
|
317
|
+
let tmp = {label: meterbooks.data[i].f_book_name, value: `${meterbooks.data[i].id}`}
|
|
318
|
+
options.push(tmp)
|
|
319
|
+
}
|
|
320
|
+
this.meterbookoptions = options
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
for (let row of this.meterbookoptions) {
|
|
324
|
+
if (row.value === this.row.f_meter_book_num) {
|
|
325
|
+
this.model.f_meter_book_name = row.label
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
async initstreets (pconditon) {
|
|
330
|
+
this.streetslist = []
|
|
331
|
+
let HttpReset = new HttpResetClass()
|
|
332
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
333
|
+
data: {
|
|
334
|
+
items: '*',
|
|
335
|
+
tablename: 't_street',
|
|
336
|
+
orderitem: 'id',
|
|
337
|
+
condition: pconditon
|
|
338
|
+
}
|
|
339
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
340
|
+
let redata = []
|
|
341
|
+
req.data.forEach((row, n) => {
|
|
342
|
+
redata[n] = {
|
|
343
|
+
label: row.f_street,
|
|
344
|
+
value: row.id,
|
|
345
|
+
data: row,
|
|
346
|
+
id: row.id
|
|
347
|
+
}
|
|
348
|
+
})
|
|
349
|
+
this.streetslist = redata
|
|
350
|
+
},
|
|
351
|
+
// 省/市/区变化
|
|
352
|
+
async pcdChange (val) {
|
|
353
|
+
// 只有添加特殊地址时才级联
|
|
354
|
+
console.log('省/市/区变化', val)
|
|
355
|
+
if (val) {
|
|
356
|
+
// 那就把[小区,街道]重新组织一下
|
|
357
|
+
await this.initstreets(` f_pcd_id ='${val}' `)
|
|
358
|
+
if (this.model.f_street_id) {
|
|
359
|
+
if (this.findbyid(this.streetslist, this.model.f_street_id)) {
|
|
360
|
+
let pcd_id = this.findbyid(this.streetslist, this.model.f_street_id).f_pcd_id
|
|
361
|
+
if (pcd_id != val) {
|
|
362
|
+
this.model.f_street_id = ''
|
|
363
|
+
}
|
|
364
|
+
} else {
|
|
365
|
+
this.model.f_street_id = ''
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
// 那就把[小区,街道]重新组织一下
|
|
369
|
+
if (this.model.f_street_id) {
|
|
370
|
+
await this.initareas(` f_street_id ='${this.model.f_street_id}' `)
|
|
371
|
+
if (this.model.f_residential_area_id) {
|
|
372
|
+
if (this.findbyid(this.areaslist, this.model.f_residential_area_id)) {
|
|
373
|
+
let pcd_id = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_pcd_id
|
|
374
|
+
if (pcd_id != val) {
|
|
375
|
+
this.model.f_residential_area_id = ''
|
|
376
|
+
}
|
|
377
|
+
} else {
|
|
378
|
+
this.model.f_residential_area_id = ''
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
this.$resetValidation()
|
|
385
|
+
},
|
|
386
|
+
|
|
387
|
+
// 街道变化
|
|
388
|
+
async streetChange (val) {
|
|
389
|
+
console.log('街道变化', val)
|
|
390
|
+
if (val) {
|
|
391
|
+
// 那就把[小区]重新组织一下
|
|
392
|
+
await this.initareas(` f_street_id ='${val}' `)
|
|
393
|
+
if (this.model.f_residential_area_id) {
|
|
394
|
+
if (this.findbyid(this.areaslist, this.model.f_residential_area_id)) {
|
|
395
|
+
let street_id = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_street_id
|
|
396
|
+
if (street_id != val) {
|
|
397
|
+
this.model.f_residential_area_id = ''
|
|
398
|
+
}
|
|
399
|
+
} else {
|
|
400
|
+
this.model.f_residential_area_id = ''
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
this.$resetValidation()
|
|
405
|
+
},
|
|
406
|
+
async initareas (pconditon) {
|
|
407
|
+
// if(this.usertype){
|
|
408
|
+
// pconditon=pconditon+` and f_special='1' `
|
|
409
|
+
// }
|
|
410
|
+
this.areaslist = []
|
|
411
|
+
let HttpReset = new HttpResetClass()
|
|
412
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
|
413
|
+
data: {
|
|
414
|
+
items: '*',
|
|
415
|
+
tablename: 't_area',
|
|
416
|
+
orderitem: 'id',
|
|
417
|
+
condition: pconditon
|
|
418
|
+
}
|
|
419
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
420
|
+
let redata = []
|
|
421
|
+
req.data.forEach((row) => {
|
|
422
|
+
redata.push({
|
|
423
|
+
label: row.f_residential_area,
|
|
424
|
+
value: row.id,
|
|
425
|
+
data: row,
|
|
426
|
+
id: row.id
|
|
427
|
+
})
|
|
428
|
+
})
|
|
429
|
+
this.areaslist = redata
|
|
430
|
+
},
|
|
431
|
+
// 返回
|
|
432
|
+
clean () {
|
|
433
|
+
this.$dispatch('success', '换表', this.row)
|
|
434
|
+
},
|
|
435
|
+
async confirm () {
|
|
436
|
+
this.saveobj()
|
|
437
|
+
},
|
|
438
|
+
// 根据名字找数据
|
|
439
|
+
findbyid (list, name) {
|
|
440
|
+
var result
|
|
441
|
+
list.forEach((row, n) => {
|
|
442
|
+
if (name == row.value) {
|
|
443
|
+
result = row.data
|
|
444
|
+
}
|
|
445
|
+
})
|
|
446
|
+
return result
|
|
447
|
+
},
|
|
448
|
+
async saveobj () {
|
|
449
|
+
if (this.model.slice_area) {
|
|
450
|
+
if (this.model.slice_area.length > 0) {
|
|
451
|
+
this.model.f_slice_area = this.model.slice_area[0].name
|
|
452
|
+
this.model.f_area_code = this.model.slice_area[0].code
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
let meterbookname = ''
|
|
456
|
+
for (let row of this.meterbookoptions) {
|
|
457
|
+
if (row.value === this.model.f_meter_book_num) {
|
|
458
|
+
meterbookname = row.label
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
let res = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: {orderitem: 'f_userinfo_id',
|
|
462
|
+
items: '*',
|
|
463
|
+
tablename: 't_user_address',
|
|
464
|
+
condition: 'f_userinfo_id = ' + this.row.f_userinfo_id}}, {resolveMsg: null, rejectMsg: null})
|
|
465
|
+
console.log('=============', res.data[0])
|
|
466
|
+
const price = Object.assign(this.price, this.getPirceInfo())
|
|
467
|
+
let data = {
|
|
468
|
+
f_pcd: res.data[0].f_pcd,
|
|
469
|
+
f_street: res.data[0].f_street,
|
|
470
|
+
f_residential_area: res.data[0].f_residential_area,
|
|
471
|
+
f_building: res.data[0].f_building,
|
|
472
|
+
f_building_suffix: res.data[0].f_building_suffix,
|
|
473
|
+
f_unit: res.data[0].f_unit,
|
|
474
|
+
f_unit_suffix: res.data[0].f_unit_suffix,
|
|
475
|
+
f_floor: res.data[0].f_floor,
|
|
476
|
+
f_floor_suffix: res.data[0].f_floor_suffix,
|
|
477
|
+
f_room: res.data[0].f_room,
|
|
478
|
+
f_room_suffix: res.data[0].f_room_suffix,
|
|
479
|
+
f_slice_area: res.data[0].f_slice_area,
|
|
480
|
+
f_address: res.data[0].f_address,
|
|
481
|
+
|
|
482
|
+
f_address_id: res.data[0].id,
|
|
483
|
+
f_plan_id: res.data[0].f_plan_id ? res.data[0].f_plan_id : '',
|
|
484
|
+
f_last_check_date: res.data[0].f_last_check_date ? res.data[0].f_last_check_date : '',
|
|
485
|
+
f_last_check_state: res.data[0].f_last_check_state ? res.data[0].f_last_check_state : '',
|
|
486
|
+
f_last_checker: res.data[0].f_last_checker ? res.data[0].f_last_checker : '',
|
|
487
|
+
f_check_version: res.data[0].f_check_version ? res.data[0].f_check_version : '',
|
|
488
|
+
|
|
489
|
+
f_pcd_new: this.findbyid(this.pcdslist, this.model.f_pcd_id).f_pcd,
|
|
490
|
+
f_street_new: this.findbyid(this.streetslist, this.model.f_street_id).f_street,
|
|
491
|
+
f_residential_area_new: this.findbyid(this.areaslist, this.model.f_residential_area_id).f_residential_area,
|
|
492
|
+
f_building_new: this.model.f_building ? this.model.f_building : '',
|
|
493
|
+
f_building_suffix_new: this.model.f_building_suffix ? this.model.f_building_suffix : '',
|
|
494
|
+
f_unit_new: this.model.f_unit ? this.model.f_unit : '',
|
|
495
|
+
f_unit_suffix_new: this.model.f_unit_suffix ? this.model.f_unit_suffix : '',
|
|
496
|
+
f_floor_new: this.model.f_floor ? this.model.f_floor : '',
|
|
497
|
+
f_floor_suffix_new: this.model.f_floor_suffix ? this.model.f_floor_suffix : '',
|
|
498
|
+
f_room_new: this.model.f_room ? this.model.f_room : '',
|
|
499
|
+
f_room_suffix_new: this.model.f_room_suffix ? this.model.f_room_suffix : '',
|
|
500
|
+
f_slice_area_new: this.model.f_slice_area ? this.model.f_slice_area : '',
|
|
501
|
+
f_address_new: this.findbyid(this.streetslist, this.model.f_street_id).f_street +
|
|
502
|
+
this.findbyid(this.areaslist, this.model.f_residential_area_id).f_residential_area +
|
|
503
|
+
(this.model.f_building ? this.model.f_building + this.model.f_building_suffix : '') +
|
|
504
|
+
(this.model.f_unit ? this.model.f_unit + this.model.f_unit_suffix : '') +
|
|
505
|
+
(this.model.f_floor ? this.model.f_floor + this.model.f_floor_suffix : '') +
|
|
506
|
+
this.model.f_room + this.model.f_room_suffix,
|
|
507
|
+
f_metertitles: this.row.f_metertitles,
|
|
508
|
+
f_metertitles_new: this.model.f_metertitles ? this.model.f_metertitles : '',
|
|
509
|
+
f_meter_book_num_old: this.row.f_meter_book_num,
|
|
510
|
+
f_meter_book_num: this.model.f_meter_book_num,
|
|
511
|
+
f_meter_book_name_old: this.model.f_meter_book_name,
|
|
512
|
+
f_meter_book_name: meterbookname,
|
|
513
|
+
f_comments: this.model.f_comments,
|
|
514
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
515
|
+
f_user_id: this.row.f_user_id,
|
|
516
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
517
|
+
f_user_name: this.row.f_user_name,
|
|
518
|
+
f_operat_type: '迁表',
|
|
519
|
+
f_describe: `${this.$login.f.name}对客户${this.row.f_user_name}进行迁表操作`,
|
|
520
|
+
f_state: '有效',
|
|
521
|
+
f_operator: this.$login.f.name,
|
|
522
|
+
f_operatorid: this.$login.f.id,
|
|
523
|
+
f_orgid: this.$login.f.orgid,
|
|
524
|
+
f_orgname: this.$login.f.orgs,
|
|
525
|
+
f_depid: this.$login.f.depids,
|
|
526
|
+
f_depname: this.$login.f.deps,
|
|
527
|
+
f_zoneid: this.$login.f.zoneid,
|
|
528
|
+
f_zones: this.$login.f.zones,
|
|
529
|
+
price: price
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
console.log(JSON.stringify(data))
|
|
533
|
+
const movemeter = await this.$resetpost('api/af-revenue/logic/movemeter', data, {resolveMsg: '迁表成功', rejectMsg: '迁表失败'})
|
|
534
|
+
await this.$resetpost('/api/af-revenue/logic/updateFilesBlobId', {
|
|
535
|
+
oldBlobId: this.blodid,
|
|
536
|
+
f_blobid: this.row.f_userinfo_id,
|
|
537
|
+
f_businessid: movemeter.data.id,
|
|
538
|
+
f_table_name: 't_movemeter'
|
|
539
|
+
})
|
|
540
|
+
this.$dispatch('success')
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
|
|
544
|
+
computed: {
|
|
545
|
+
adjustables () {
|
|
546
|
+
let arr = []
|
|
547
|
+
let filter = this.f_filialeids
|
|
548
|
+
this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
|
|
549
|
+
let temp = {}
|
|
550
|
+
temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
|
|
551
|
+
temp.value = item.value
|
|
552
|
+
arr.push(temp)
|
|
553
|
+
})
|
|
554
|
+
return arr
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
|
|
558
|
+
watch: {
|
|
559
|
+
'price.f_user_type' (val) {
|
|
560
|
+
this.price.f_gasproperties = ''
|
|
561
|
+
this.price.f_price_type = ''
|
|
562
|
+
this.price.f_price_id = ''
|
|
563
|
+
this.gasproperties = this.$appdata.getParam(val)
|
|
564
|
+
},
|
|
565
|
+
'price.f_gasproperties' (val) {
|
|
566
|
+
this.price.f_price_id = ''
|
|
567
|
+
if (this.price.f_user_type && this.price.f_gasproperties && this.price.f_price_type) {
|
|
568
|
+
runLogic('getPriceName', {
|
|
569
|
+
f_user_type: this.price.f_user_type,
|
|
570
|
+
f_gasproperties: this.price.f_gasproperties,
|
|
571
|
+
f_price_type: this.price.f_price_type
|
|
572
|
+
}, 'af-revenue').then((res) => {
|
|
573
|
+
this.prices = res.data
|
|
574
|
+
})
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
'price.f_price_type' (val) {
|
|
578
|
+
this.price.f_price_id = ''
|
|
579
|
+
if (this.price.f_user_type && this.price.f_gasproperties && this.price.f_price_type) {
|
|
580
|
+
runLogic('getPriceName', {
|
|
581
|
+
f_user_type: this.price.f_user_type,
|
|
582
|
+
f_gasproperties: this.price.f_gasproperties,
|
|
583
|
+
f_price_type: this.price.f_price_type
|
|
584
|
+
}, 'af-revenue').then((res) => {
|
|
585
|
+
this.prices = res.data
|
|
586
|
+
})
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
</script>
|