sale-client 3.6.54 → 3.6.55
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/package.json
CHANGED
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div style="overflow-y: scroll;height: 92%">
|
|
4
|
+
<div style="height: auto;width: 100%">
|
|
5
|
+
<div style="margin-bottom: 2%; margin-top: 2%">
|
|
6
|
+
<img style="margin-top: -5px" src="../../../../static/images/lefticon/矩形1183.png">
|
|
7
|
+
<a style="font-size: 20px;font-weight: 500;">基本 信息</a> <a style="color: #999999;text-decoration: none"></a>
|
|
8
|
+
<button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
|
|
9
|
+
<button class="button_search" style="width: max-content" @click="uploadPictures()">拍照</button>
|
|
10
|
+
</div>
|
|
11
|
+
<file-user-essential-info-new :baseinfo="data.baseinfo" :addressinfo="data.addressinfo" @valid="essentialInfo = true"
|
|
12
|
+
:f_filialeid="f_filialeid" @invalid="essentialInfo = false" v-ref:useressential :isedit="isedit"></file-user-essential-info-new>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div style="height: auto;width: 100%">
|
|
16
|
+
<file-user-meter-info-new :meterinfo="data.meterinfo" :f_filialeid="f_filialeid" :metervalid.sync="meterInfo"
|
|
17
|
+
:f_userinfo_id="data.baseinfo.base.f_userinfo_id" v-ref:meter></file-user-meter-info-new>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div style="height: auto;width: 100%">
|
|
21
|
+
<div style="margin-bottom: 2%; margin-top: 2%">
|
|
22
|
+
<img style="margin-top: -5px" src="../../../../static/images/lefticon/矩形1183.png">
|
|
23
|
+
<a style="font-size: 20px;font-weight: 500;">发票信息</a> <a style="color: #999999"></a>
|
|
24
|
+
</div>
|
|
25
|
+
<user-paper-info-test :baseinfo="data.baseinfo"></user-paper-info-test>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<!--<div style="height: auto;width: 100%">-->
|
|
29
|
+
<!--<div style="margin-bottom: 2%; margin-top: 2%">-->
|
|
30
|
+
<!--<img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">-->
|
|
31
|
+
<!--<a style="font-size: 20px;font-weight: 500;">附件信息</a> <a style="color: #999999"></a>-->
|
|
32
|
+
<!--</div>-->
|
|
33
|
+
<!--<upload :blodid="blodid" isremark="true" fusetype="档案"></upload>-->
|
|
34
|
+
<!--</div>-->
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div class="form-horizontal auto">
|
|
38
|
+
<div class="form-group">
|
|
39
|
+
<div style="text-align:right;">
|
|
40
|
+
<!-- <button class="button_search" v-show="row.f_print_state === null" @click="ignitionSheet()">生成点火单</button>-->
|
|
41
|
+
<!-- <button class="button_search" v-show="row.f_print_state === null" @click="schedule()">生成流程单</button>-->
|
|
42
|
+
<button v-if="config.meter_required" class="button_search" @click="confirm()" :disabled="!(essentialInfo && meterInfo )">确认
|
|
43
|
+
</button>
|
|
44
|
+
<button v-if="!config.meter_required" class="button_search" @click="confirm()" :disabled="!essentialInfo">确认
|
|
45
|
+
</button>
|
|
46
|
+
<button class="button_search" style="width: max-content" v-if="haslimit" @click="limitClick">限购配置</button>
|
|
47
|
+
<button class="button_clear" @click="cancel()">取消</button>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<limit-gas :show.sync="limitShow" :f_userinfo_id="data.baseinfo.base.f_userinfo_id"
|
|
52
|
+
@limit="getLimitGas"></limit-gas>
|
|
53
|
+
<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
|
|
54
|
+
<article slot="modal-body">
|
|
55
|
+
<upload-idcard :blodid="blodid" isremark="true" @getidinfo="confirmIdCard" style="width:auto" fusetype="档案信息"></upload-idcard>
|
|
56
|
+
</article>
|
|
57
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
58
|
+
</footer>
|
|
59
|
+
</modal>
|
|
60
|
+
<high-meter-idcard :show.sync="highmetershow" v-if="highmetershow" @photo-finish="newPhoto" v-on:confirminfo="confirmIdCard"></high-meter-idcard>
|
|
61
|
+
<user-flow-sheet :show="printflag" :bill-config='configs' :bill-data='billData' :data='newdata' v-on:toggle="close" @printok="printok" v-ref:printbill></user-flow-sheet>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
<script>
|
|
71
|
+
import UserPaperInfoTest from './../../../components/FilesManage/UserPaperInfoTest'
|
|
72
|
+
import {HttpResetClass} from 'vue-client'
|
|
73
|
+
import * as Util from '../../../Util'
|
|
74
|
+
import FileManageService from './../plugins/FileManageService'
|
|
75
|
+
|
|
76
|
+
let getFileGen = async function (self, data) {
|
|
77
|
+
let http = new HttpResetClass()
|
|
78
|
+
let result = await http.load('POST', 'rs/logic/filemanage_getFilesDetail', data, {
|
|
79
|
+
resolveMsg: null,
|
|
80
|
+
rejectMsg: '用户详细信息加载失败,请重新选择,如果多次失败,请检查系统是否正常!'
|
|
81
|
+
})
|
|
82
|
+
if (result.data.meterinfo.length === 0) {
|
|
83
|
+
// 预备户可以不填表具信息 所以修正时如果没有表具信息 则初始化一个
|
|
84
|
+
result.data.meterinfo.push({
|
|
85
|
+
f_meternumber: '', f_metertitles: '', f_area_code: '', gasbrand: '', gasmodel: '', gasmodeltype: '',
|
|
86
|
+
pricetype: '', pricename: '', f_user_type: '', f_gasproperties: '', f_inputtor: '', f_position: '',
|
|
87
|
+
f_userfiles_address: '', f_usetype: '', f_usestate: '', f_aroundmeter: '', f_garbage_fee: '否', f_meter_base: '',
|
|
88
|
+
f_initial_base: '', f_gas_person: '', f_adjustable: '', f_detailprice: '', devicesinfo: []
|
|
89
|
+
})
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
self.data = result.data
|
|
93
|
+
// 更新地址
|
|
94
|
+
// 修改附件临时id为表档案id
|
|
95
|
+
self.blodid = self.data.baseinfo.base.f_userinfo_id
|
|
96
|
+
console.log('获取档案信息', self.data)
|
|
97
|
+
self.checkout()
|
|
98
|
+
console.log('附件id', self.blodid)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export default {
|
|
102
|
+
title: '综合信息',
|
|
103
|
+
props: ['f_filialeid', 'row', 'areainfo', 'haslimit', 'isedit', 'configs'],
|
|
104
|
+
components: {UserPaperInfoTest},
|
|
105
|
+
data () {
|
|
106
|
+
return {
|
|
107
|
+
config: {
|
|
108
|
+
adddevices: false,
|
|
109
|
+
// 预备户表具信息是否必填
|
|
110
|
+
meter_required: true,
|
|
111
|
+
f_building_suffix: '栋',
|
|
112
|
+
f_unit_suffix: '单元',
|
|
113
|
+
f_floor_suffix: '层',
|
|
114
|
+
f_room_suffix: '室'
|
|
115
|
+
},
|
|
116
|
+
headers: {'username': this.$login.f.name, 'blodid': '', 'fremarks': '', 'defname': '', 'fusetype': '档案信息'},
|
|
117
|
+
data: {
|
|
118
|
+
baseinfo: {
|
|
119
|
+
base: {
|
|
120
|
+
f_user_state: '',
|
|
121
|
+
f_print_dh: '否',
|
|
122
|
+
f_print_lc: '点火单',
|
|
123
|
+
f_credentials: '',
|
|
124
|
+
f_cost_type: '',
|
|
125
|
+
f_paper_type: '',
|
|
126
|
+
f_idnumber: ''
|
|
127
|
+
},
|
|
128
|
+
bank: {
|
|
129
|
+
f_bank_name: ''
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
addressinfo: {
|
|
133
|
+
id: '',
|
|
134
|
+
f_address: '',
|
|
135
|
+
f_address_state: ''
|
|
136
|
+
},
|
|
137
|
+
meterinfo: [{
|
|
138
|
+
f_user_type: '',
|
|
139
|
+
f_gasproperties: '',
|
|
140
|
+
devicesinfo: []
|
|
141
|
+
}],
|
|
142
|
+
devicesinfo: [],
|
|
143
|
+
address: {
|
|
144
|
+
id: '',
|
|
145
|
+
f_address: ''
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
printSheet: {
|
|
149
|
+
f_state: '有效',
|
|
150
|
+
f_print_state: '未打印',
|
|
151
|
+
f_type: '点火单',
|
|
152
|
+
f_orgid: this.$login.f.orgid ? this.$login.f.orgid : '',
|
|
153
|
+
f_orgname: this.$login.f.orgs ? this.$login.f.orgs : '',
|
|
154
|
+
f_depid: this.$login.f.depids ? this.$login.f.depids : '',
|
|
155
|
+
f_depname: this.$login.f.deps ? this.$login.f.deps : '',
|
|
156
|
+
f_operator: this.$login.f.name,
|
|
157
|
+
f_operatorid: this.$login.f.id
|
|
158
|
+
}, // 插入打印的模型
|
|
159
|
+
billData: {
|
|
160
|
+
url: 'rs/report/userignition',
|
|
161
|
+
bill: ''
|
|
162
|
+
},
|
|
163
|
+
oldAddress: {},
|
|
164
|
+
newdata: {},
|
|
165
|
+
highmetershow: false, // 高拍仪组件控制
|
|
166
|
+
showfiles: false,
|
|
167
|
+
// 子组件验证
|
|
168
|
+
essentialInfo: false,
|
|
169
|
+
meterInfo: false,
|
|
170
|
+
printflag: false,
|
|
171
|
+
// 地址相关属性
|
|
172
|
+
params: {
|
|
173
|
+
areas: [],
|
|
174
|
+
f_street: [],
|
|
175
|
+
f_residential_area: []
|
|
176
|
+
},
|
|
177
|
+
|
|
178
|
+
// 限购相关属性
|
|
179
|
+
limitShow: false,
|
|
180
|
+
limit_gas: null,
|
|
181
|
+
peopleNum: this.$appdata.getSingleValue('默认人口'),
|
|
182
|
+
blodid: '', // 附件的临时id
|
|
183
|
+
defaultMeterInfo: '' // 默认的表具信息
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
async ready () {
|
|
187
|
+
this.blodid = '临时id' + Date.now()
|
|
188
|
+
console.log('ready,,,', this.row)
|
|
189
|
+
console.log('f_filialeid111,,,', this.f_filialeid)
|
|
190
|
+
try {
|
|
191
|
+
await this.$getConfig(this, 'FilesDetail')
|
|
192
|
+
} catch (error) {
|
|
193
|
+
console.log('捕获到异常', error)
|
|
194
|
+
}
|
|
195
|
+
console.log('FilesDetail的config:' + this.config)
|
|
196
|
+
if (this.row) { // 修改用户
|
|
197
|
+
await this.areaGen(this.row)
|
|
198
|
+
} else if (!this.row) { // 小区批量建档
|
|
199
|
+
// 将小区信息转化为综合信息的格式
|
|
200
|
+
await this.areainfoInUser(this.areainfo)
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
watch: {
|
|
204
|
+
async 'row' (val) {
|
|
205
|
+
console.log('观察row', val)
|
|
206
|
+
if (val) {
|
|
207
|
+
await this.areaGen(val)
|
|
208
|
+
} else {
|
|
209
|
+
await this.areainfoInUser(this.areainfo)
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
'areainfo' (val) {
|
|
213
|
+
console.log('小区观察。。', val)
|
|
214
|
+
if (val) {
|
|
215
|
+
this.$refs.meter.clearMeter()
|
|
216
|
+
this.blodid = '临时id' + Date.now()
|
|
217
|
+
this.areainfoInUser(val)
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
'essentialInfo' (val) {
|
|
221
|
+
console.log('观察到验证变化', val)
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
methods: {
|
|
225
|
+
close () {
|
|
226
|
+
this.printflag = false
|
|
227
|
+
},
|
|
228
|
+
printok () {
|
|
229
|
+
console.log('======================')
|
|
230
|
+
this.confirm()
|
|
231
|
+
},
|
|
232
|
+
downFiles (index) {
|
|
233
|
+
console.log('xxxxxxxxxxxxxxxxxxxxx')
|
|
234
|
+
// 下载不同文件
|
|
235
|
+
if (index == 0) {
|
|
236
|
+
let url = 'rs/report/userinstall'
|
|
237
|
+
this.billData.url = url
|
|
238
|
+
this.data.baseinfo.base.f_print_lc = '是'
|
|
239
|
+
} else {
|
|
240
|
+
let url = 'rs/report/userignition'
|
|
241
|
+
this.billData.url = url
|
|
242
|
+
this.data.baseinfo.base.f_print_dh = '是'
|
|
243
|
+
}
|
|
244
|
+
this.newdata = this.row
|
|
245
|
+
this.printflag = true
|
|
246
|
+
},
|
|
247
|
+
confirmIdCard (IdCardInfo) {
|
|
248
|
+
this.uploadPictures()
|
|
249
|
+
this.data.baseinfo.base.f_user_name = IdCardInfo.strName
|
|
250
|
+
this.data.baseinfo.base.f_idnumber = IdCardInfo.strID
|
|
251
|
+
},
|
|
252
|
+
uploadFiles () {
|
|
253
|
+
this.showfiles = !this.showfiles
|
|
254
|
+
},
|
|
255
|
+
|
|
256
|
+
uploadPictures () {
|
|
257
|
+
this.highmetershow = !this.highmetershow
|
|
258
|
+
},
|
|
259
|
+
savePrintSheet (res) {
|
|
260
|
+
console.log('保存单子:' + this.data.baseinfo.base.f_print_dh_stats)
|
|
261
|
+
if (!this.data.baseinfo.base.f_print_dh_stats) {
|
|
262
|
+
console.log('单子类型', this.data.baseinfo.base.f_print_dh)
|
|
263
|
+
this.printSheet.f_userinfo_id = res.f_userinfo_id
|
|
264
|
+
if (this.data.baseinfo.base.f_print_dh == '点火单') {
|
|
265
|
+
this.ignitionSheet()
|
|
266
|
+
}
|
|
267
|
+
if (this.data.baseinfo.base.f_print_dh == '流程单') {
|
|
268
|
+
this.schedule()
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
ignitionSheet () { // 点火单
|
|
273
|
+
this.printSheet.f_type = '点火单'
|
|
274
|
+
this.saveTablePrintSheet()
|
|
275
|
+
},
|
|
276
|
+
schedule () { // 流程单
|
|
277
|
+
this.printSheet.f_type = '流程单'
|
|
278
|
+
this.saveTablePrintSheet()
|
|
279
|
+
},
|
|
280
|
+
async saveTablePrintSheet () {
|
|
281
|
+
console.log(this.printSheet)
|
|
282
|
+
let check = await this.$resetpost('rs/logic/checkPrintUser', {data: {f_userinfo_id: this.printSheet.f_userinfo_id}}, {resolveMsg: '', rejectMsg: ''})
|
|
283
|
+
if (check.data.length === 0) {
|
|
284
|
+
await this.$resetpost('rs/logic/savePrintSheet', {data: {printData: this.printSheet}}, {resolveMsg: '', rejectMsg: ''})
|
|
285
|
+
}
|
|
286
|
+
// let check = await this.$resetpost('rs/logic/checkPrintUser', {data:{f_userinfo_id: this.printSheet.f_userinfo_id}}, {resolveMsg: '', rejectMsg: ''})
|
|
287
|
+
// if (check.data.length !== 0){
|
|
288
|
+
// if(check.data[0].num !== 0){
|
|
289
|
+
// // let msg = "您已生成了 \""+check.data[0].type+"\" ,请前往 [ 综合业务 ] --> [ 打印数据 ]页面查看";
|
|
290
|
+
// // this.$showMessage(msg);
|
|
291
|
+
// return ;
|
|
292
|
+
// }
|
|
293
|
+
// }
|
|
294
|
+
// let expiration = await this.$resetpost('rs/logic/savePrintSheet', {
|
|
295
|
+
// data:{printData:this.printSheet}
|
|
296
|
+
// }, {resolveMsg: '', rejectMsg: ''})
|
|
297
|
+
// console.log(expiration);
|
|
298
|
+
// if(expiration.data === 200){
|
|
299
|
+
// this.$showMessage("您已成功生成 \""+this.printSheet.f_type+"\" ,请前往 [ 综合业务 ] --> [ 打印数据 ]页面查看")
|
|
300
|
+
// }
|
|
301
|
+
},
|
|
302
|
+
confirm () {
|
|
303
|
+
this.data.addressinfo.f_address = this.$refs.useressential.addressinfo.f_address
|
|
304
|
+
this.data.addressinfo.id = this.$refs.useressential.addressinfo.id
|
|
305
|
+
this.data.oldaddressinfo = this.oldAddress
|
|
306
|
+
this.data.inputcode = this.$refs.useressential.inputcode ? this.$refs.useressential.inputcode : '否'
|
|
307
|
+
this.data.limit_gas = this.limit_gas
|
|
308
|
+
if (this.f_filialeid && this.f_filialeid != '') {
|
|
309
|
+
this.data.f_filialeid = this.f_filialeid
|
|
310
|
+
} else {
|
|
311
|
+
this.data.f_filialeid = this.$login.f.orgid
|
|
312
|
+
}
|
|
313
|
+
if (this.row) {
|
|
314
|
+
this.data.baseinfo.base.version = this.row.version
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
console.log('档案保存之前,。。。', this.data)
|
|
318
|
+
this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
|
|
319
|
+
this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
|
|
320
|
+
this.data.meterinfo.forEach((item) => {
|
|
321
|
+
item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
|
|
322
|
+
})
|
|
323
|
+
|
|
324
|
+
this.$FileManageService.fileSave(FileManageService.fileSaveBefore(this.data)).then((res) => {
|
|
325
|
+
this.savePrintSheet(res.data.result[0])
|
|
326
|
+
this.$dispatch('success')
|
|
327
|
+
}).catch((error) => {
|
|
328
|
+
if (error.status === 603) {
|
|
329
|
+
this.$error('重复提交')
|
|
330
|
+
return
|
|
331
|
+
}
|
|
332
|
+
this.$dispatch('error', '档案保存', this.data, error)
|
|
333
|
+
})
|
|
334
|
+
},
|
|
335
|
+
convertBase64ToBlob (base64String) {
|
|
336
|
+
// 将base64解码
|
|
337
|
+
var bytes = atob(base64String)
|
|
338
|
+
// var bytes = base64;
|
|
339
|
+
var bytesCode = new ArrayBuffer(bytes.length)
|
|
340
|
+
// 转换为类型化数组
|
|
341
|
+
var byteArray = new Uint8Array(bytesCode)
|
|
342
|
+
|
|
343
|
+
// 将base64转换为ascii码
|
|
344
|
+
for (var i = 0; i < bytes.length; i++) {
|
|
345
|
+
byteArray[i] = bytes.charCodeAt(i)
|
|
346
|
+
}
|
|
347
|
+
// 生成Blob对象(文件对象)
|
|
348
|
+
return new Blob([bytesCode], {type: 'image/jpeg'})
|
|
349
|
+
},
|
|
350
|
+
newPhoto (Imgbase64) {
|
|
351
|
+
//console.log('imgbase----->',Imgbase64)
|
|
352
|
+
let form = new FormData()
|
|
353
|
+
let xhr = new XMLHttpRequest()
|
|
354
|
+
let formDataBoundary = '----WebkitFormBoundary' + 'GaoPaiYi'
|
|
355
|
+
form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
|
|
356
|
+
form.append('file', this.convertBase64ToBlob(Imgbase64), 'GaoPaiYi.jpg')
|
|
357
|
+
xhr.open('POST', 'rs/file/uploadFile')
|
|
358
|
+
|
|
359
|
+
if (this.headers) {
|
|
360
|
+
console.log('this.blodid----->',this.blodid)
|
|
361
|
+
this.headers.blodid = this.blodid
|
|
362
|
+
for (var header in this.headers) {
|
|
363
|
+
xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
xhr.send(form)
|
|
367
|
+
setTimeout(() => {
|
|
368
|
+
this.load(this)
|
|
369
|
+
}, 5000)
|
|
370
|
+
},
|
|
371
|
+
async areaGen (data) {
|
|
372
|
+
data.f_user_id = data.f_user_id + ''
|
|
373
|
+
await getFileGen(this, data)
|
|
374
|
+
},
|
|
375
|
+
cancel () {
|
|
376
|
+
this.$dispatch('clean', '取消档案修正', 'user-general-info', this.row)
|
|
377
|
+
},
|
|
378
|
+
checkout (val) {
|
|
379
|
+
// 对收到的综合信息进行校验(主要目的是为了防止下拉框没有默认值)
|
|
380
|
+
// 对综合用户基本信息进行校验
|
|
381
|
+
|
|
382
|
+
// 将oldAddress 置为空,
|
|
383
|
+
this.oldAddress = {}
|
|
384
|
+
this.data.baseinfo.base.f_user_state = this.data.baseinfo.base.f_user_state ? [this.data.baseinfo.base.f_user_state] : '正常'
|
|
385
|
+
this.data.baseinfo.base.f_credentials = this.data.baseinfo.base.f_credentials ? [this.data.baseinfo.base.f_credentials] : '身份证'
|
|
386
|
+
this.data.baseinfo.base.f_cost_type = this.data.baseinfo.base.f_cost_type ? [this.data.baseinfo.base.f_cost_type] : '现金缴费'
|
|
387
|
+
this.data.baseinfo.base.f_paper_type = this.data.baseinfo.base.f_paper_type ? [this.data.baseinfo.base.f_paper_type] : '国税发票'
|
|
388
|
+
this.data.baseinfo.bank.f_bank_name = this.data.baseinfo.bank.f_bank_name ? [this.data.baseinfo.bank.f_bank_name] : '中国银行'
|
|
389
|
+
this.data.baseinfo.base.f_people_num = this.data.baseinfo.base.f_people_num ? this.data.baseinfo.base.f_people_num : (this.peopleNum ? this.peopleNum : 0)
|
|
390
|
+
|
|
391
|
+
if (this.data.baseinfo.base.f_slice_area) {
|
|
392
|
+
this.data.baseinfo.base.f_slice_area = [this.data.baseinfo.base.f_slice_area]
|
|
393
|
+
} else {
|
|
394
|
+
this.data.baseinfo.base.f_slice_area = ''
|
|
395
|
+
}
|
|
396
|
+
this.oldAddress.f_address = this.data.addressinfo.f_address
|
|
397
|
+
this.oldAddress.id = this.data.addressinfo.id
|
|
398
|
+
|
|
399
|
+
// 地址信息
|
|
400
|
+
// loadStreetAndResGen(this)
|
|
401
|
+
|
|
402
|
+
// 对表具信息进行校验
|
|
403
|
+
this.data.meterinfo.forEach((row) => {
|
|
404
|
+
if (row.gasbrand) {
|
|
405
|
+
this.meterbrands.forEach((item) => {
|
|
406
|
+
if (item.label === row.gasbrand) {
|
|
407
|
+
row.gasbrand = [item.value]
|
|
408
|
+
}
|
|
409
|
+
})
|
|
410
|
+
} else {
|
|
411
|
+
row.gasbrand = ''
|
|
412
|
+
}
|
|
413
|
+
if (row.gasmodel && (row.gasbrand instanceof Array)) {
|
|
414
|
+
row.gasbrand[0].gasmodel.forEach((item) => {
|
|
415
|
+
if (item.label === (val === 'area' ? row.gasmodel : row.gasmodel + row.gasmodeltype)) {
|
|
416
|
+
row.gasmodel = [item.value]
|
|
417
|
+
}
|
|
418
|
+
})
|
|
419
|
+
} else {
|
|
420
|
+
row.gasmodel = ''
|
|
421
|
+
}
|
|
422
|
+
if (row.f_fire_state === '1') {
|
|
423
|
+
row.f_fire_state1 = true
|
|
424
|
+
} else if (row.f_fire_state === '0') {
|
|
425
|
+
row.f_fire_state1 = false
|
|
426
|
+
}
|
|
427
|
+
row.f_install_date = row.f_install_date ? row.f_install_date : null
|
|
428
|
+
row.f_gas_date = row.f_gas_date ? row.f_gas_date : null
|
|
429
|
+
row.f_changetube_date = row.f_changetube_date ? row.f_changetube_date : null
|
|
430
|
+
row.f_aroundmeter = row.f_aroundmeter ? [row.f_aroundmeter] : ''
|
|
431
|
+
row.f_garbage_fee = row.f_garbage_fee ? [row.f_garbage_fee] : '否'
|
|
432
|
+
row.f_valve_state = row.f_valve_state ? [row.f_valve_state] : '开阀'
|
|
433
|
+
row.f_inputtor = row.f_inputtor ? [row.f_inputtor] : ''
|
|
434
|
+
row.f_position = row.f_position ? row.f_position : ''
|
|
435
|
+
|
|
436
|
+
row.f_user_type = row.f_user_type ? [row.f_user_type] : ''
|
|
437
|
+
row.f_gasproperties = row.f_gasproperties ? [row.f_gasproperties] : ''
|
|
438
|
+
row.pricetype = row.pricetype ? [row.pricetype] : ''
|
|
439
|
+
|
|
440
|
+
if (row.pricename) {
|
|
441
|
+
let names = this.getPricenames(row.f_user_type,
|
|
442
|
+
row.f_gasproperties,
|
|
443
|
+
row.pricetype)
|
|
444
|
+
if (names.length > 0) {
|
|
445
|
+
names.forEach((item) => {
|
|
446
|
+
if (item.label === row.pricename) {
|
|
447
|
+
row.pricename = [item.value]
|
|
448
|
+
row.f_detailprice = this.$CommonService.getShowPriceDetail(item.value.detailprice)
|
|
449
|
+
}
|
|
450
|
+
})
|
|
451
|
+
} else {
|
|
452
|
+
row.pricename = ''
|
|
453
|
+
}
|
|
454
|
+
} else {
|
|
455
|
+
row.pricename = ''
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
if (row.f_adjustable) {
|
|
459
|
+
this.adjustables.forEach((item) => {
|
|
460
|
+
if (item.label === row.f_adjustable) {
|
|
461
|
+
row.f_adjustable = [item.value]
|
|
462
|
+
}
|
|
463
|
+
})
|
|
464
|
+
} else {
|
|
465
|
+
row.f_adjustable = ''
|
|
466
|
+
}
|
|
467
|
+
})
|
|
468
|
+
// console.log('5555555555', this.data.meterinfo)
|
|
469
|
+
// 对设备进行校验
|
|
470
|
+
// this.data.devicesinfo.forEach((row) => {
|
|
471
|
+
// row.f_devices_type = row.f_devices_type ? [row.f_devices_type] : ''
|
|
472
|
+
// })
|
|
473
|
+
},
|
|
474
|
+
getPricenames (f_user_type, f_gasproperties, f_price_type) {
|
|
475
|
+
let rs = []
|
|
476
|
+
if (f_user_type.length === 1 && f_gasproperties.length === 1 && f_price_type.length === 1) {
|
|
477
|
+
rs = this.$GetSaleParam.getPrice({
|
|
478
|
+
f_user_type: f_user_type[0],
|
|
479
|
+
f_gasproperties: f_gasproperties[0],
|
|
480
|
+
f_price_type: f_price_type[0],
|
|
481
|
+
filter: this.f_filialeid
|
|
482
|
+
})
|
|
483
|
+
}
|
|
484
|
+
return rs
|
|
485
|
+
},
|
|
486
|
+
// 将小区信息转化为综合信息的格式
|
|
487
|
+
async areainfoInUser (areainfo) {
|
|
488
|
+
// this.nextTick(() => {
|
|
489
|
+
//
|
|
490
|
+
// })
|
|
491
|
+
// await this.$getConfig(this, 'UserAddress')
|
|
492
|
+
this.data = {
|
|
493
|
+
baseinfo: {
|
|
494
|
+
base: {
|
|
495
|
+
f_user_state: '预备',
|
|
496
|
+
f_print_dh: '',
|
|
497
|
+
f_print_lc: '否',
|
|
498
|
+
f_is_mgq: '',
|
|
499
|
+
f_slice_area: '', // 片区
|
|
500
|
+
// 附件表临时id
|
|
501
|
+
blodid: this.blodid,
|
|
502
|
+
// 用户姓名
|
|
503
|
+
f_user_name: '',
|
|
504
|
+
// 用户电话
|
|
505
|
+
f_user_phone: '',
|
|
506
|
+
f_people_num: 0,
|
|
507
|
+
// 备用电话
|
|
508
|
+
f_rent_phone: '',
|
|
509
|
+
f_credentials: '身份证',
|
|
510
|
+
f_cost_type: '',
|
|
511
|
+
f_address: '',
|
|
512
|
+
addressid: '',
|
|
513
|
+
f_idnumber: ''
|
|
514
|
+
},
|
|
515
|
+
bank: {}
|
|
516
|
+
},
|
|
517
|
+
addressinfo: {
|
|
518
|
+
// 详细地址
|
|
519
|
+
f_address: '',
|
|
520
|
+
id: ''
|
|
521
|
+
},
|
|
522
|
+
meterinfo: [{
|
|
523
|
+
// 表号
|
|
524
|
+
f_meternumber: '',
|
|
525
|
+
f_metertitles: '',
|
|
526
|
+
f_area_code: '',
|
|
527
|
+
// 气表品牌
|
|
528
|
+
gasbrand: '',
|
|
529
|
+
// 气表型号
|
|
530
|
+
gasmodel: '',
|
|
531
|
+
// 气表类型
|
|
532
|
+
gasmodeltype: '',
|
|
533
|
+
pricetype: '', // 气价类型
|
|
534
|
+
pricename: '', // 气价名称
|
|
535
|
+
f_user_type: '', // 用户类型
|
|
536
|
+
f_gasproperties: '', // 用气性质
|
|
537
|
+
f_inputtor: '',
|
|
538
|
+
// 安装位置
|
|
539
|
+
f_position: '',
|
|
540
|
+
// 安装地址
|
|
541
|
+
f_userfiles_address: '',
|
|
542
|
+
// 使用类型
|
|
543
|
+
f_usetype: '',
|
|
544
|
+
// 使用状态
|
|
545
|
+
f_usestate: '',
|
|
546
|
+
// 左右表
|
|
547
|
+
f_aroundmeter: '',
|
|
548
|
+
f_garbage_fee: '否',
|
|
549
|
+
f_meter_base: '',
|
|
550
|
+
f_initial_base: '',
|
|
551
|
+
// 通气人
|
|
552
|
+
f_gas_person: '',
|
|
553
|
+
f_adjustable: '', // 调压箱
|
|
554
|
+
f_detailprice: '', // 价格详情显示
|
|
555
|
+
devicesinfo: [] // 设备信息
|
|
556
|
+
}],
|
|
557
|
+
devicesinfo: []
|
|
558
|
+
}
|
|
559
|
+
// 若有id,则表示该地址是更新操作
|
|
560
|
+
/* if (areainfo.id) {
|
|
561
|
+
this.data.addressinfo.id = areainfo.id
|
|
562
|
+
}
|
|
563
|
+
// 改地址是 只有表没有户信息
|
|
564
|
+
if (areainfo.meter) {
|
|
565
|
+
Object.assign(this.data.meterinfo[0], this.data.meterinfo[0], areainfo.meter)
|
|
566
|
+
}
|
|
567
|
+
if (areainfo.user) {
|
|
568
|
+
Object.assign(this.data.baseinfo.base, this.data.baseinfo.base, areainfo.user)
|
|
569
|
+
} */
|
|
570
|
+
|
|
571
|
+
this.checkout('area')
|
|
572
|
+
},
|
|
573
|
+
limitClick () {
|
|
574
|
+
this.limitShow = true
|
|
575
|
+
},
|
|
576
|
+
getLimitGas (val) {
|
|
577
|
+
this.limit_gas = val
|
|
578
|
+
},
|
|
579
|
+
clearinfo () {
|
|
580
|
+
this.blodid = '临时id' + Date.now()
|
|
581
|
+
this.areainfoInUser(this.areainfo)
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
computed: {
|
|
585
|
+
meterbrands () {
|
|
586
|
+
return this.$GetSaleParam.getGasbrand()
|
|
587
|
+
},
|
|
588
|
+
adjustables () {
|
|
589
|
+
return this.$GetSaleParam.getAdjustable()
|
|
590
|
+
},
|
|
591
|
+
getMeterBooks () {
|
|
592
|
+
return this.$GetSaleParam.getMeterBooks()
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
events: {
|
|
596
|
+
// 设置表具气价等默认值
|
|
597
|
+
defaultOtheret (row) {
|
|
598
|
+
if (!this.isedit) {
|
|
599
|
+
let temp = {
|
|
600
|
+
gasmodel: row.f_meter_style,
|
|
601
|
+
gasbrand: row.f_meter_brand,
|
|
602
|
+
gasmodeltype: row.f_meter_style,
|
|
603
|
+
pricetype: row.f_price_type,
|
|
604
|
+
pricename: row.f_price_name,
|
|
605
|
+
f_user_type: row.f_user_type,
|
|
606
|
+
f_gasproperties: row.f_gasproperties,
|
|
607
|
+
f_position: row.f_position,
|
|
608
|
+
f_inputtor: row.f_inputtor,
|
|
609
|
+
f_meter_book_num: row.f_meter_book,
|
|
610
|
+
f_adjustable: row.f_adjustable_id,
|
|
611
|
+
f_hand_month: [row.f_hand_month]
|
|
612
|
+
}
|
|
613
|
+
if (!(temp.f_position instanceof Array)) {
|
|
614
|
+
temp.f_position = [temp.f_position]
|
|
615
|
+
}
|
|
616
|
+
Object.assign(this.data.meterinfo[0], this.data.meterinfo[0], temp)
|
|
617
|
+
|
|
618
|
+
this.checkout('area')
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
</script>
|
|
624
|
+
<style scoped>
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
</style>
|
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
36
36
|
<div class="row" v-show="$parent.$parent.criteriaShow2">
|
|
37
|
+
<div class="form-group col-sm-3" >
|
|
38
|
+
<label class="font_normal_body">客户名称</label>
|
|
39
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_user_name" placeholder='客户名称'
|
|
40
|
+
condition="f_user_name like '%{}%'" @keyup.enter="search()">
|
|
41
|
+
</div>
|
|
37
42
|
<div class="form-group col-sm-3" >
|
|
38
43
|
<label class="font_normal_body">气表状态</label>
|
|
39
44
|
<v-select style="width:60%" :value.sync="model.f_table_state"
|
|
@@ -20,6 +20,8 @@ export default function () {
|
|
|
20
20
|
// 收费页面的流水查询
|
|
21
21
|
Vue.component('meter-charge-record-query', (resolve) => { require(['./ChargeRecordQuery'], resolve) })
|
|
22
22
|
Vue.component('charge-query-user', (resolve) => { require(['./ChargeQueryUser'], resolve) })
|
|
23
|
+
// 用户综合信息
|
|
24
|
+
Vue.component('file-user-general-info-new', (resolve) => { require(['./FilesManageNew/UserGeneralInfoTest'], resolve) })
|
|
23
25
|
// 用户基本信息test
|
|
24
26
|
Vue.component('file-user-essential-info-new', (resolve) => { require(['./FilesManageNew/UserEssentialInfoTest'], resolve) })
|
|
25
27
|
// 封堵
|