sale-client 3.4.112 → 3.4.113

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.
Files changed (93) hide show
  1. package/.gradle/{5.2.1 → 4.4}/fileChanges/last-build.bin +0 -0
  2. package/.gradle/{6.1.1 → 4.4}/fileHashes/fileHashes.bin +0 -0
  3. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  4. package/build/dev-server.js +3 -3
  5. package/{.gradle/5.2.1/gc.properties → npm} +0 -0
  6. package/package.json +1 -1
  7. package/src/components/FilesManage/MeterinfoTest.vue +904 -905
  8. package/src/components/FilesManage/TemplateManage.vue +167 -167
  9. package/src/components/FilesManage/UserGeneralInfoTest.vue +642 -640
  10. package/src/components/charge/business/CardChangeFill.vue +612 -612
  11. package/src/components/charge/business/CardMeterCenter.vue +899 -899
  12. package/src/components/charge/business/FilesComplete.vue +253 -253
  13. package/src/components/charge/business/refund/IOTRefund.vue +236 -236
  14. package/src/components/charge/business/refund/RefundManage.vue +28 -28
  15. package/src/components/charge/gasloss/gasLossOperate.vue +357 -357
  16. package/src/components/chargeNew/thirdSurplus.vue +2 -0
  17. package/src/components/revenue/Common/MeterMessage.vue +184 -184
  18. package/src/components/revenue/HandManager/MeterBookManage.vue +153 -153
  19. package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
  20. package/src/components/revenue/base/leftview/Mulitinfo.vue +74 -74
  21. package/src/components/revenue/base/leftview/SafeCheck.vue +311 -311
  22. package/src/components/revenue/base/leftview/Stairinfo.vue +156 -156
  23. package/src/components/revenue/base/leftview/meterinfodetail.vue +195 -195
  24. package/src/components/revenue/base/rightview/CardList.vue +477 -477
  25. package/src/components/revenue/comprehen/ComprehenOperation/MeterDisable/DisableManage.vue +93 -93
  26. package/src/components/revenue/comprehen/ComprehenOperation/MeterEnable/EnableManage.vue +184 -184
  27. package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +5 -1
  28. package/src/components/revenue/comprehen/ComprehenOperation/removeTable.vue +1 -1
  29. package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +638 -638
  30. package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +7 -7
  31. package/src/components/revenue/comprehen/Message/MessageList.vue +587 -587
  32. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackList.vue +1 -1
  33. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListManage.vue +1 -1
  34. package/src/components/revenue/comprehen/StairPrice/GasPriceList.vue +303 -303
  35. package/src/components/revenue/comprehen/replacement/replacementHandInfoRecord.vue +155 -155
  36. package/src/components/revenue/comprehen/wechatpay/WeChat.vue +62 -62
  37. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +8 -4
  38. package/src/filiale/alashan/PrintBill.vue +116 -116
  39. package/src/filiale/jingwei/CardHand.vue +742 -742
  40. package/src/filiale/macheng/FilesManageNew/FileUserFiles.vue +743 -0
  41. package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +371 -371
  42. package/src/filiale/macheng/FilesManageNew/UserGeneralInfoTest.vue +596 -596
  43. package/src/filiale/macheng/UserEssentialInfoTest.vue +368 -366
  44. package/src/filiale/meihekou/MeterinfoTest.vue +0 -1
  45. package/src/filiale/meihekou/PrintBill.vue +140 -140
  46. package/src/filiale/meihekou/ReissueBill.vue +322 -322
  47. package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +0 -1
  48. package/src/filiale/qianneng/GasPriceList.vue +330 -330
  49. package/src/filiale/qianneng/HandManager.vue +1838 -1838
  50. package/src/filiale/qianneng/OtherChargeNew.vue +6 -2
  51. package/src/filiale/qianneng/sale.js +30 -32
  52. package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +538 -533
  53. package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +608 -608
  54. package/src/filiale/rongchuang/OtherGas.vue +329 -329
  55. package/src/filiale/tongchuan/CardList.vue +482 -482
  56. package/src/filiale/tongchuan/MeterinfoTest.vue +892 -892
  57. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/AutomaticPurse.vue +298 -298
  58. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/CardHandRecord.vue +267 -267
  59. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +240 -240
  60. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeRecord.vue +235 -235
  61. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +372 -372
  62. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/DeveiceRecord.vue +251 -251
  63. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/FillCardQueryUser.vue +209 -209
  64. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/HandQueryUser.vue +365 -365
  65. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +252 -252
  66. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/OtherChargeQueryUser.vue +250 -250
  67. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/RecordQueryUser.vue +249 -249
  68. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/TransferQueryUser.vue +222 -222
  69. package/src/filiale/tongchuan/sale.js +107 -107
  70. package/src/filiale/zhongsheng/rightview/CardList.vue +492 -492
  71. package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
  72. package/src/main.js +1 -1
  73. package/src/plugins/CardService.js +1798 -1798
  74. package/src/plugins/ChangeMeterService.js +756 -756
  75. package/src/plugins/FileManageService.js +366 -366
  76. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  77. package/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
  78. package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
  79. package/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
  80. package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
  81. package/.gradle/6.1.1/gc.properties +0 -0
  82. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  83. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  84. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  85. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  86. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  87. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  88. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  89. package/.gradle/7.1/gc.properties +0 -0
  90. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  91. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  92. package/.gradle/checksums/checksums.lock +0 -0
  93. package/.gradle/vcs-1/gc.properties +0 -0
@@ -1,533 +1,538 @@
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>&nbsp;<a style="color: #999999;text-decoration: none"></a>
8
- <button class="button_search" style="width: max-content" v-show="data.baseinfo.base.f_user_nature === '单位'" @click="showUserDevices($index, data.baseinfo)">用户设备信息</button>
9
- <button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
10
- <button class="button_search" style="width: max-content" @click="uploadPictures()">拍照</button>
11
- </div>
12
- <file-user-essential-info :baseinfo="data.baseinfo" :addressinfo="data.addressinfo" @valid="essentialInfo = true"
13
- @invalid="essentialInfo = false" v-ref:useressential :isedit="isedit"></file-user-essential-info>
14
- <file-userinfo-device :userinfodevices.sync="userinfodevices" :show_userinfodevices.sync="show_userinfodevices"
15
- :userinfoid='data.baseinfo.base.f_userinfo_id'></file-userinfo-device>
16
- </div>
17
-
18
- <div style="height: auto;width: 100%">
19
- <file-user-meter-info :meterinfo="data.meterinfo" :f_filialeid="f_filialeid" :metervalid.sync="meterInfo"
20
- :f_userinfo_id="data.baseinfo.base.f_userinfo_id" v-ref:meter></file-user-meter-info>
21
- </div>
22
-
23
- <div style="height: auto;width: 100%">
24
- <div style="margin-bottom: 2%; margin-top: 2%">
25
- <img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">
26
- <a style="font-size: 20px;font-weight: 500;">发票信息</a>&nbsp;<a style="color: #999999"></a>
27
- </div>
28
- <user-paper-info-test :baseinfo="data.baseinfo"></user-paper-info-test>
29
- </div>
30
-
31
- <!--<div style="height: auto;width: 100%">-->
32
- <!--<div style="margin-bottom: 2%; margin-top: 2%">-->
33
- <!--<img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">-->
34
- <!--<a style="font-size: 20px;font-weight: 500;">附件信息</a>&nbsp;<a style="color: #999999"></a>-->
35
- <!--</div>-->
36
- <!--<upload :blodid="blodid" isremark="true" fusetype="档案"></upload>-->
37
- <!--</div>-->
38
- </div>
39
-
40
- <div class="form-horizontal auto">
41
- <div class="form-group">
42
- <div style="text-align:right;">
43
- <button class="button_search" @click="sendRegister()" v-if="row">注册
44
- </button>
45
- <button class="button_search" @click="confirm()" :disabled="!(essentialInfo && meterInfo )">确认
46
- </button>
47
- <button class="button_search" style="width: max-content" v-if="haslimit" @click="limitClick">限购配置</button>
48
- <button class="button_clear" @click="cancel()">取消</button>
49
- </div>
50
- </div>
51
- </div>
52
- <limit-gas :show.sync="limitShow" :f_userinfo_id="data.baseinfo.base.f_userinfo_id"
53
- @limit="getLimitGas"></limit-gas>
54
- <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
55
- <article slot="modal-body">
56
- <upload-idcard :blodid="blodid" isremark="true" @getidinfo="confirmIdCard" style="width:auto" fusetype="档案信息" v-ref:upload></upload-idcard>
57
- </article>
58
- <footer slot="modal-footer" class="modal-footer">
59
- </footer>
60
- </modal>
61
- <high-meter-idcard :show.sync="highmetershow" v-if="highmetershow" @photo-finish="newPhoto" v-on:confirminfo="confirmIdCard"></high-meter-idcard>
62
-
63
- </div>
64
-
65
-
66
-
67
- </template>
68
-
69
- <script>
70
- import UserPaperInfoTest from '../../components/FilesManage/UserPaperInfoTest'
71
- import {HttpResetClass} from 'vue-client'
72
-
73
- let getFileGen = async function (self, data) {
74
- let http = new HttpResetClass()
75
- await self.$getConfig(self, 'FilesDetail')
76
- console.log('FilesDetail的config:' + self.config)
77
- let result = await http.load('POST', 'rs/logic/filemanage_getFilesDetail', data, {
78
- resolveMsg: null,
79
- rejectMsg: '用户详细信息加载失败,请重新选择,如果多次失败,请检查系统是否正常!'
80
- })
81
- self.data = result.data
82
- // 更新地址
83
- // 修改附件临时id为表档案id
84
- self.blodid = self.data.baseinfo.base.f_userinfo_id
85
- console.log('获取档案信息', self.data)
86
- self.checkout()
87
- console.log('附件id', self.blodid)
88
- }
89
-
90
- export default {
91
- title: '综合信息',
92
- props: ['f_filialeid', 'row', 'areainfo', 'haslimit', 'isedit'],
93
- components: {UserPaperInfoTest},
94
- data () {
95
- return {
96
- config: {
97
- adddevices: false,
98
- f_building_suffix: '栋',
99
- f_unit_suffix: '单元',
100
- f_floor_suffix: '层',
101
- f_room_suffix: '室'
102
- },
103
- data: {
104
- baseinfo: {
105
- base: {
106
- f_user_state: '',
107
- f_credentials: '',
108
- f_cost_type: '',
109
- f_paper_type: '',
110
- f_idnumber: ''
111
- },
112
- userinfodevices: [],
113
- bank: {
114
- f_bank_name: ''
115
- }
116
- },
117
- addressinfo: {},
118
- meterinfo: [{
119
- f_user_type: '',
120
- f_gasproperties: '',
121
- devicesinfo: []
122
- }],
123
- devicesinfo: [],
124
- address: {
125
- id: '',
126
- f_address: ''
127
- }
128
- },
129
- show_userinfodevices: false,
130
- userinfodevices: [],
131
- oldAddress: {},
132
- highmetershow: false, // 高拍仪组件控制
133
- showfiles: false,
134
- // 子组件验证
135
- essentialInfo: false,
136
- meterInfo: false,
137
-
138
- // 地址相关属性
139
- params: {
140
- areas: [],
141
- f_street: [],
142
- f_residential_area: []
143
- },
144
-
145
- // 限购相关属性
146
- limitShow: false,
147
- limit_gas: null,
148
- peopleNum: this.$appdata.getSingleValue('默认人口'),
149
- blodid: '', // 附件的临时id
150
- defaultMeterInfo: '' // 默认的表具信息
151
- }
152
- },
153
- ready () {
154
- this.blodid = '临时id' + Date.now()
155
- console.log('ready,,,', this.row)
156
- if (this.row) { // 修改用户
157
- this.areaGen(this.row)
158
- } else if (!this.row) { // 小区批量建档
159
- // 将小区信息转化为综合信息的格式
160
- this.areainfoInUser(this.areainfo)
161
- }
162
- },
163
- watch: {
164
- 'row' (val) {
165
- console.log('观察row', val)
166
- if (val) {
167
- this.areaGen(val)
168
- } else {
169
- this.areainfoInUser(this.areainfo)
170
- }
171
- },
172
- 'areainfo' (val) {
173
- console.log('小区观察。。', val)
174
- if (val) {
175
- this.$refs.meter.clearMeter()
176
- this.blodid = '临时id' + Date.now()
177
- this.areainfoInUser(val)
178
- }
179
- },
180
- 'essentialInfo' (val) {
181
- console.log('观察到验证变化', val)
182
- }
183
- },
184
- methods: {
185
-
186
- confirmIdCard (IdCardInfo) {
187
- console.log('返回的身份证', IdCardInfo)
188
- this.uploadPictures()
189
- this.data.baseinfo.base.f_user_name = IdCardInfo.strName
190
- this.data.baseinfo.base.f_idnumber = IdCardInfo.strID
191
- },
192
- showUserDevices (index, row) {
193
- this.userinfodevices = []
194
- this.show_userinfodevices = true
195
- this.userinfodevices = row.userinfodevices
196
- console.log('查看设备信息', this.userinfodevices)
197
- },
198
-
199
- uploadFiles () {
200
- this.showfiles = !this.showfiles
201
- },
202
-
203
- uploadPictures () {
204
- this.highmetershow = !this.highmetershow
205
- },
206
- confirm () {
207
- this.data.addressinfo.f_address = this.$refs.useressential.addressinfo.f_address
208
- this.data.addressinfo.id = this.$refs.useressential.addressinfo.id
209
- this.data.oldaddressinfo = this.oldAddress
210
- this.data.limit_gas = this.limit_gas
211
- if (this.f_filialeid && this.f_filialeid != '') {
212
- this.data.f_filialeid = this.f_filialeid
213
- } else {
214
- this.data.f_filialeid = this.$login.f.orgid
215
- }
216
- if (this.row) {
217
- this.data.baseinfo.base.version = this.row.version
218
- }
219
- console.log('档案保存之前,。。。', this.data)
220
- this.$FileManageService.fileSave(this.data).then((res) => {
221
- this.$parent.resdata = res.data.result[0].f_userinfo_code
222
- if (!this.row) {
223
- this.$resetpost('rs/logic/sendRegister', res.data.result[0]).then((aaa) => {
224
- this.$parent.resshow = true
225
- this.$dispatch('success')
226
- })
227
- } else {
228
- this.$dispatch('success')
229
- }
230
- }).catch((error) => {
231
- if (error.status === 603) {
232
- this.$error('重复提交')
233
- return
234
- }
235
- this.$dispatch('error', '档案保存', this.data, error)
236
- })
237
- },
238
- sendRegister () {
239
- this.$resetpost('rs/logic/sendRegister', this.row).then((aaa) => {
240
- })
241
- },
242
- convertBase64ToBlob (base64String) {
243
- // 将base64解码
244
- var bytes = atob(base64String)
245
- // var bytes = base64;
246
- var bytesCode = new ArrayBuffer(bytes.length)
247
- // 转换为类型化数组
248
- var byteArray = new Uint8Array(bytesCode)
249
-
250
- // base64转换为ascii码
251
- for (var i = 0; i < bytes.length; i++) {
252
- byteArray[i] = bytes.charCodeAt(i)
253
- }
254
- // 生成Blob对象(文件对象)
255
- return new Blob([bytesCode], {type: 'image/jpeg'})
256
- },
257
- newPhoto (Imgbase64) {
258
- debugger
259
- this.$refs.upload.newPhoto(Imgbase64)
260
- /* let form = new FormData()
261
- let xhr = new XMLHttpRequest()
262
- let formDataBoundary = "----WebkitFormBoundary" + "GaoPaiYi";
263
- form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
264
- form.append('file', this.convertBase64ToBlob(Imgbase64), "GaoPaiYi.jpg")
265
- xhr.open("POST", "rs/file/uploadFile")
266
-
267
- if (this.headers) {
268
- for (var header in this.headers) {
269
- xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
270
- }
271
- }
272
- xhr.send(form)
273
- setTimeout(() => {
274
- this.load(this)
275
- }, 5000) */
276
- },
277
- areaGen (data) {
278
- data.f_user_id = data.f_user_id + ''
279
- getFileGen(this, data)
280
- },
281
- cancel () {
282
- this.$dispatch('clean', '取消档案修正', 'user-general-info', this.row)
283
- },
284
- checkout (val) {
285
- // 对收到的综合信息进行校验(主要目的是为了防止下拉框没有默认值)
286
- // 对综合用户基本信息进行校验
287
-
288
- // 将oldAddress 置为空,
289
- this.oldAddress = {}
290
- this.data.baseinfo.base.f_user_state = this.data.baseinfo.base.f_user_state ? ['正常'] : '正常'
291
- // this.data.baseinfo.base.f_user_nature = this.data.baseinfo.base.f_user_nature ? [this.data.baseinfo.base.f_user_nature] : '民用'
292
- // this.data.baseinfo.base.f_credentials = this.data.baseinfo.base.f_credentials ? [this.data.baseinfo.base.f_credentials] : '身份证'
293
- this.data.baseinfo.base.f_cost_type = this.data.baseinfo.base.f_cost_type ? [this.data.baseinfo.base.f_cost_type] : '现金缴费'
294
- this.data.baseinfo.base.f_paper_type = this.data.baseinfo.base.f_paper_type ? [this.data.baseinfo.base.f_paper_type] : '国税发票'
295
- this.data.baseinfo.bank.f_bank_name = this.data.baseinfo.bank.f_bank_name ? [this.data.baseinfo.bank.f_bank_name] : '中国银行'
296
- 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)
297
-
298
- if (this.data.baseinfo.base.f_slice_area) {
299
- this.data.baseinfo.base.f_slice_area = [this.data.baseinfo.base.f_slice_area]
300
- } else {
301
- this.data.baseinfo.base.f_slice_area = ''
302
- }
303
- this.oldAddress.f_address = this.data.addressinfo.f_address
304
- this.oldAddress.id = this.data.addressinfo.id
305
-
306
- // 地址信息
307
- // loadStreetAndResGen(this)
308
-
309
- // 对表具信息进行校验
310
- this.data.meterinfo.forEach((row) => {
311
- console.log(row)
312
- if (row.gasbrand) {
313
- this.meterbrands.forEach((item) => {
314
- if (item.label === row.gasbrand) {
315
- row.gasbrand = [item.value]
316
- }
317
- })
318
- } else {
319
- row.gasbrand = ''
320
- }
321
- if (row.gasmodel && (row.gasbrand instanceof Array)) {
322
- row.gasbrand[0].gasmodel.forEach((item) => {
323
- if (item.label === (val === 'area' ? row.gasmodel : row.gasmodel + row.gasmodeltype)) {
324
- row.gasmodel = [item.value]
325
- }
326
- })
327
- } else {
328
- row.gasmodel = ''
329
- }
330
- if (row.f_fire_state === '1') {
331
- row.f_fire_state1 = true
332
- } else if (row.f_fire_state === '0') {
333
- row.f_fire_state1 = false
334
- }
335
- row.f_install_date = row.f_install_date ? row.f_install_date : ''
336
- row.f_gas_date = row.f_gas_date ? row.f_gas_date : null
337
- row.f_changetube_date = row.f_changetube_date ? row.f_changetube_date : null
338
- row.f_aroundmeter = row.f_aroundmeter ? [row.f_aroundmeter] : ''
339
- row.f_garbage_fee = row.f_garbage_fee ? [row.f_garbage_fee] : '否'
340
- row.f_valve_state = row.f_valve_state ? [row.f_valve_state] : '开阀'
341
- row.f_usetype = row.f_usetype ? [row.f_usetype] : '居民灶'
342
- row.f_usestate = row.f_usestate ? [row.f_usestate] : '正常'
343
- row.f_inputtor = row.f_inputtor ? [row.f_inputtor] : ''
344
- row.f_position = row.f_position ? row.f_position : ''
345
-
346
- row.f_user_type = row.f_user_type ? [row.f_user_type] : ''
347
- row.f_gasproperties = row.f_gasproperties ? [row.f_gasproperties] : ''
348
- row.pricetype = row.pricetype ? [row.pricetype] : ''
349
-
350
- if (row.pricename) {
351
- let names = this.getPricenames(row.f_user_type,
352
- row.f_gasproperties,
353
- row.pricetype)
354
-
355
- console.log('=====2.===校验气价名称', names, row.f_user_type, row.f_gasproperties, row.pricetype)
356
- if (names.length > 0) {
357
- names.forEach((item) => {
358
- if (item.label === row.pricename) {
359
- row.pricename = [item.value]
360
- row.f_detailprice = this.$CommonService.getShowPriceDetail(item.value.detailprice)
361
- }
362
- })
363
- } else {
364
- row.pricename = ''
365
- }
366
- } else {
367
- row.pricename = ''
368
- }
369
-
370
- if (row.f_adjustable) {
371
- this.adjustables.forEach((item) => {
372
- if (item.label === row.f_adjustable) {
373
- row.f_adjustable = [item.value]
374
- }
375
- })
376
- } else {
377
- row.f_adjustable = ''
378
- }
379
- })
380
- // console.log('5555555555', this.data.meterinfo)
381
- // 对设备进行校验
382
- // this.data.devicesinfo.forEach((row) => {
383
- // row.f_devices_type = row.f_devices_type ? [row.f_devices_type] : ''
384
- // })
385
- },
386
- getPricenames (f_user_type, f_gasproperties, f_price_type) {
387
- let rs = []
388
- if (f_user_type.length === 1 && f_gasproperties.length === 1 && f_price_type.length === 1) {
389
- rs = this.$GetSaleParam.getPrice({
390
- f_user_type: f_user_type[0],
391
- f_gasproperties: f_gasproperties[0],
392
- f_price_type: f_price_type[0],
393
- filter: this.f_filialeid
394
- })
395
- }
396
- return rs
397
- },
398
- // 将小区信息转化为综合信息的格式
399
- async areainfoInUser (areainfo) {
400
- // this.nextTick(() => {
401
- //
402
- // })
403
- // await this.$getConfig(this, 'UserAddress')
404
- this.data = {
405
- baseinfo: {
406
- base: {
407
- f_user_state: '正常',
408
- f_is_mgq: '',
409
- f_slice_area: '', // 片区
410
- // 附件表临时id
411
- blodid: this.blodid,
412
- // 用户姓名
413
- f_user_name: '',
414
- // 用户电话
415
- f_user_phone: '',
416
- f_people_num: 0,
417
- // 备用电话
418
- f_rent_phone: '',
419
- f_credentials: '身份证',
420
- f_cost_type: '',
421
- f_address: '',
422
- addressid: '',
423
- f_idnumber: ''
424
- },
425
- bank: {}
426
- },
427
- addressinfo: {
428
- // 详细地址
429
- f_address: '',
430
- id: ''
431
- },
432
- meterinfo: [{
433
- // 表号
434
- f_meternumber: '',
435
- f_metertitles: '',
436
- f_area_code: '',
437
- // 气表品牌
438
- gasbrand: '',
439
- // 气表型号
440
- gasmodel: '',
441
- // 气表类型
442
- gasmodeltype: '',
443
- pricetype: '', // 气价类型
444
- pricename: '', // 气价名称
445
- f_user_type: '', // 用户类型
446
- f_gasproperties: '', // 用气性质
447
- f_inputtor: '',
448
- // 安装位置
449
- f_position: '',
450
- // 安装地址
451
- f_userfiles_address: '',
452
- // 使用类型
453
- f_usetype: '',
454
- // 使用状态
455
- f_usestate: '',
456
- // 左右表
457
- f_aroundmeter: '',
458
- f_garbage_fee: '',
459
- f_meter_base: '',
460
- f_initial_base: '',
461
- // 通气人
462
- f_gas_person: '',
463
- f_adjustable: '', // 调压箱
464
- f_detailprice: '', // 价格详情显示
465
- devicesinfo: [], // 设备信息
466
- f_hand_month: '' // 抄表月份
467
- }],
468
- devicesinfo: []
469
- }
470
- // 若有id,则表示该地址是更新操作
471
- /* if (areainfo.id) {
472
- this.data.addressinfo.id = areainfo.id
473
- }
474
- // 改地址是 只有表没有户信息
475
- if (areainfo.meter) {
476
- Object.assign(this.data.meterinfo[0], this.data.meterinfo[0], areainfo.meter)
477
- }
478
- if (areainfo.user) {
479
- Object.assign(this.data.baseinfo.base, this.data.baseinfo.base, areainfo.user)
480
- } */
481
-
482
- this.checkout('area')
483
- },
484
- limitClick () {
485
- this.limitShow = true
486
- },
487
- getLimitGas (val) {
488
- this.limit_gas = val
489
- },
490
- clearinfo () {
491
- this.blodid = '临时id' + Date.now()
492
- this.areainfoInUser(this.areainfo)
493
- }
494
- },
495
- computed: {
496
- meterbrands () {
497
- return this.$GetSaleParam.getGasbrand()
498
- },
499
- adjustables () {
500
- return this.$GetSaleParam.getAdjustable()
501
- },
502
- getMeterBooks () {
503
- return this.$GetSaleParam.getMeterBooks()
504
- }
505
- },
506
- events: {
507
- // 设置表具气价等默认值
508
- defaultOtheret (row) {
509
- if (!this.isedit) {
510
- let temp = {
511
- gasmodel: row.f_meter_style,
512
- gasbrand: row.f_meter_brand,
513
- gasmodeltype: row.f_meter_style,
514
- pricetype: row.f_price_type,
515
- pricename: row.f_price_name,
516
- f_user_type: row.f_user_type,
517
- f_gasproperties: row.f_gasproperties,
518
- f_position: row.f_position,
519
- f_inputtor: row.f_inputtor,
520
- f_hand_month: row.f_hand_month
521
- }
522
- Object.assign(this.data.meterinfo[0], this.data.meterinfo[0], temp)
523
- console.log('====1.=====', temp, row)
524
- this.checkout('area')
525
- }
526
- }
527
- }
528
- }
529
- </script>
530
- <style scoped>
531
-
532
-
533
- </style>
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>&nbsp;<a style="color: #999999;text-decoration: none"></a>
8
+ <button class="button_search" style="width: max-content" v-show="data.baseinfo.base.f_user_nature === '单位'" @click="showUserDevices($index, data.baseinfo)">用户设备信息</button>
9
+ <button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
10
+ <button class="button_search" style="width: max-content" @click="uploadPictures()">拍照</button>
11
+ </div>
12
+ <file-user-essential-info :baseinfo="data.baseinfo" :addressinfo="data.addressinfo" @valid="essentialInfo = true"
13
+ @invalid="essentialInfo = false" v-ref:useressential :isedit="isedit"></file-user-essential-info>
14
+ <file-userinfo-device :userinfodevices.sync="userinfodevices" :show_userinfodevices.sync="show_userinfodevices"
15
+ :userinfoid='data.baseinfo.base.f_userinfo_id'></file-userinfo-device>
16
+ </div>
17
+
18
+ <div style="height: auto;width: 100%">
19
+ <file-user-meter-info :meterinfo="data.meterinfo" :f_filialeid="f_filialeid" :metervalid.sync="meterInfo"
20
+ :f_userinfo_id="data.baseinfo.base.f_userinfo_id" v-ref:meter></file-user-meter-info>
21
+ </div>
22
+
23
+ <div style="height: auto;width: 100%">
24
+ <div style="margin-bottom: 2%; margin-top: 2%">
25
+ <img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">
26
+ <a style="font-size: 20px;font-weight: 500;">发票信息</a>&nbsp;<a style="color: #999999"></a>
27
+ </div>
28
+ <user-paper-info-test :baseinfo="data.baseinfo"></user-paper-info-test>
29
+ </div>
30
+
31
+ <!--<div style="height: auto;width: 100%">-->
32
+ <!--<div style="margin-bottom: 2%; margin-top: 2%">-->
33
+ <!--<img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">-->
34
+ <!--<a style="font-size: 20px;font-weight: 500;">附件信息</a>&nbsp;<a style="color: #999999"></a>-->
35
+ <!--</div>-->
36
+ <!--<upload :blodid="blodid" isremark="true" fusetype="档案"></upload>-->
37
+ <!--</div>-->
38
+ </div>
39
+
40
+ <div class="form-horizontal auto">
41
+ <div class="form-group">
42
+ <div style="text-align:right;">
43
+ <button class="button_search" @click="sendRegister()" v-if="row">注册
44
+ </button>
45
+ <button class="button_search" @click="confirm()" :disabled="!(essentialInfo && meterInfo )">确认
46
+ </button>
47
+ <button class="button_search" style="width: max-content" v-if="haslimit" @click="limitClick">限购配置</button>
48
+ <button class="button_clear" @click="cancel()">取消</button>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ <limit-gas :show.sync="limitShow" :f_userinfo_id="data.baseinfo.base.f_userinfo_id"
53
+ @limit="getLimitGas"></limit-gas>
54
+ <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
55
+ <article slot="modal-body">
56
+ <upload-idcard :blodid="blodid" isremark="true" @getidinfo="confirmIdCard" style="width:auto" fusetype="档案信息" v-ref:upload></upload-idcard>
57
+ </article>
58
+ <footer slot="modal-footer" class="modal-footer">
59
+ </footer>
60
+ </modal>
61
+ <high-meter-idcard :show.sync="highmetershow" v-if="highmetershow" @photo-finish="newPhoto" v-on:confirminfo="confirmIdCard"></high-meter-idcard>
62
+
63
+ </div>
64
+
65
+
66
+
67
+ </template>
68
+
69
+ <script>
70
+ import UserPaperInfoTest from '../../components/FilesManage/UserPaperInfoTest'
71
+ import {HttpResetClass} from 'vue-client'
72
+
73
+ let getFileGen = async function (self, data) {
74
+ let http = new HttpResetClass()
75
+ await self.$getConfig(self, 'FilesDetail')
76
+ console.log('FilesDetail的config:' + self.config)
77
+ let result = await http.load('POST', 'rs/logic/filemanage_getFilesDetail', data, {
78
+ resolveMsg: null,
79
+ rejectMsg: '用户详细信息加载失败,请重新选择,如果多次失败,请检查系统是否正常!'
80
+ })
81
+ self.data = result.data
82
+ // 更新地址
83
+ // 修改附件临时id为表档案id
84
+ self.blodid = self.data.baseinfo.base.f_userinfo_id
85
+ console.log('获取档案信息', self.data)
86
+ self.checkout()
87
+ console.log('附件id', self.blodid)
88
+ }
89
+
90
+ export default {
91
+ title: '综合信息',
92
+ props: ['f_filialeid', 'row', 'areainfo', 'haslimit', 'isedit'],
93
+ components: {UserPaperInfoTest},
94
+ data () {
95
+ return {
96
+ config: {
97
+ adddevices: false,
98
+ f_building_suffix: '栋',
99
+ f_unit_suffix: '单元',
100
+ f_floor_suffix: '层',
101
+ f_room_suffix: '室'
102
+ },
103
+ data: {
104
+ baseinfo: {
105
+ base: {
106
+ f_user_state: '',
107
+ f_credentials: '',
108
+ f_cost_type: '',
109
+ f_paper_type: '',
110
+ f_idnumber: ''
111
+ },
112
+ userinfodevices: [],
113
+ bank: {
114
+ f_bank_name: ''
115
+ }
116
+ },
117
+ addressinfo: {},
118
+ meterinfo: [{
119
+ f_user_type: '',
120
+ f_gasproperties: '',
121
+ devicesinfo: []
122
+ }],
123
+ devicesinfo: [],
124
+ address: {
125
+ id: '',
126
+ f_address: ''
127
+ }
128
+ },
129
+ show_userinfodevices: false,
130
+ userinfodevices: [],
131
+ oldAddress: {},
132
+ highmetershow: false, // 高拍仪组件控制
133
+ showfiles: false,
134
+ // 子组件验证
135
+ essentialInfo: false,
136
+ meterInfo: false,
137
+
138
+ // 地址相关属性
139
+ params: {
140
+ areas: [],
141
+ f_street: [],
142
+ f_residential_area: []
143
+ },
144
+
145
+ // 限购相关属性
146
+ limitShow: false,
147
+ limit_gas: null,
148
+ peopleNum: this.$appdata.getSingleValue('默认人口'),
149
+ fileSaveData: {
150
+ // 修改原因
151
+ modifyReason: ''
152
+ },
153
+ blodid: '', // 附件的临时id
154
+ defaultMeterInfo: '' // 默认的表具信息
155
+ }
156
+ },
157
+ ready () {
158
+ this.blodid = '临时id' + Date.now()
159
+ console.log('ready,,,', this.row)
160
+ if (this.row) { // 修改用户
161
+ this.areaGen(this.row)
162
+ } else if (!this.row) { // 小区批量建档
163
+ // 将小区信息转化为综合信息的格式
164
+ this.areainfoInUser(this.areainfo)
165
+ }
166
+ },
167
+ watch: {
168
+ 'row' (val) {
169
+ console.log('观察row', val)
170
+ if (val) {
171
+ this.areaGen(val)
172
+ } else {
173
+ this.areainfoInUser(this.areainfo)
174
+ }
175
+ },
176
+ 'areainfo' (val) {
177
+ console.log('小区观察。。', val)
178
+ if (val) {
179
+ this.$refs.meter.clearMeter()
180
+ this.blodid = '临时id' + Date.now()
181
+ this.areainfoInUser(val)
182
+ }
183
+ },
184
+ 'essentialInfo' (val) {
185
+ console.log('观察到验证变化', val)
186
+ }
187
+ },
188
+ methods: {
189
+
190
+ confirmIdCard (IdCardInfo) {
191
+ console.log('返回的身份证', IdCardInfo)
192
+ this.uploadPictures()
193
+ this.data.baseinfo.base.f_user_name = IdCardInfo.strName
194
+ this.data.baseinfo.base.f_idnumber = IdCardInfo.strID
195
+ },
196
+ showUserDevices (index, row) {
197
+ this.userinfodevices = []
198
+ this.show_userinfodevices = true
199
+ this.userinfodevices = row.userinfodevices
200
+ console.log('查看设备信息', this.userinfodevices)
201
+ },
202
+
203
+ uploadFiles () {
204
+ this.showfiles = !this.showfiles
205
+ },
206
+
207
+ uploadPictures () {
208
+ this.highmetershow = !this.highmetershow
209
+ },
210
+ confirm () {
211
+ this.data.addressinfo.f_address = this.$refs.useressential.addressinfo.f_address
212
+ this.data.addressinfo.id = this.$refs.useressential.addressinfo.id
213
+ this.data.oldaddressinfo = this.oldAddress
214
+ this.data.limit_gas = this.limit_gas
215
+ if (this.f_filialeid && this.f_filialeid != '') {
216
+ this.data.f_filialeid = this.f_filialeid
217
+ } else {
218
+ this.data.f_filialeid = this.$login.f.orgid
219
+ }
220
+ if (this.row) {
221
+ this.data.baseinfo.base.version = this.row.version
222
+ }
223
+ console.log('档案保存之前,。。。', this.data)
224
+ Object.assign(this.fileSaveData, {}, this.$FileManageService.fileSaveBefore(this.data))
225
+ this.$FileManageService.fileSave(this.fileSaveData).then((res) => {
226
+ this.$parent.resdata = res.data.result[0].f_userinfo_code
227
+ if (!this.row) {
228
+ this.$resetpost('rs/logic/sendRegister', res.data.result[0]).then((aaa) => {
229
+ this.$parent.resshow = true
230
+ this.$dispatch('success')
231
+ })
232
+ } else {
233
+ this.$dispatch('success')
234
+ }
235
+ }).catch((error) => {
236
+ if (error.status === 603) {
237
+ this.$error('重复提交')
238
+ return
239
+ }
240
+ this.$dispatch('error', '档案保存', this.data, error)
241
+ })
242
+ },
243
+ sendRegister () {
244
+ this.$resetpost('rs/logic/sendRegister', this.row).then((aaa) => {
245
+ })
246
+ },
247
+ convertBase64ToBlob (base64String) {
248
+ // 将base64解码
249
+ var bytes = atob(base64String)
250
+ // var bytes = base64;
251
+ var bytesCode = new ArrayBuffer(bytes.length)
252
+ // 转换为类型化数组
253
+ var byteArray = new Uint8Array(bytesCode)
254
+
255
+ // 将base64转换为ascii码
256
+ for (var i = 0; i < bytes.length; i++) {
257
+ byteArray[i] = bytes.charCodeAt(i)
258
+ }
259
+ // 生成Blob对象(文件对象)
260
+ return new Blob([bytesCode], {type: 'image/jpeg'})
261
+ },
262
+ newPhoto (Imgbase64) {
263
+ debugger
264
+ this.$refs.upload.newPhoto(Imgbase64)
265
+ /* let form = new FormData()
266
+ let xhr = new XMLHttpRequest()
267
+ let formDataBoundary = "----WebkitFormBoundary" + "GaoPaiYi";
268
+ form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
269
+ form.append('file', this.convertBase64ToBlob(Imgbase64), "GaoPaiYi.jpg")
270
+ xhr.open("POST", "rs/file/uploadFile")
271
+
272
+ if (this.headers) {
273
+ for (var header in this.headers) {
274
+ xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
275
+ }
276
+ }
277
+ xhr.send(form)
278
+ setTimeout(() => {
279
+ this.load(this)
280
+ }, 5000) */
281
+ },
282
+ areaGen (data) {
283
+ data.f_user_id = data.f_user_id + ''
284
+ getFileGen(this, data)
285
+ },
286
+ cancel () {
287
+ this.$dispatch('clean', '取消档案修正', 'user-general-info', this.row)
288
+ },
289
+ checkout (val) {
290
+ // 对收到的综合信息进行校验(主要目的是为了防止下拉框没有默认值)
291
+ // 对综合用户基本信息进行校验
292
+
293
+ // 将oldAddress 置为空,
294
+ this.oldAddress = {}
295
+ this.data.baseinfo.base.f_user_state = this.data.baseinfo.base.f_user_state ? ['正常'] : '正常'
296
+ // this.data.baseinfo.base.f_user_nature = this.data.baseinfo.base.f_user_nature ? [this.data.baseinfo.base.f_user_nature] : '民用'
297
+ // this.data.baseinfo.base.f_credentials = this.data.baseinfo.base.f_credentials ? [this.data.baseinfo.base.f_credentials] : '身份证'
298
+ this.data.baseinfo.base.f_cost_type = this.data.baseinfo.base.f_cost_type ? [this.data.baseinfo.base.f_cost_type] : '现金缴费'
299
+ this.data.baseinfo.base.f_paper_type = this.data.baseinfo.base.f_paper_type ? [this.data.baseinfo.base.f_paper_type] : '国税发票'
300
+ this.data.baseinfo.bank.f_bank_name = this.data.baseinfo.bank.f_bank_name ? [this.data.baseinfo.bank.f_bank_name] : '中国银行'
301
+ 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)
302
+
303
+ if (this.data.baseinfo.base.f_slice_area) {
304
+ this.data.baseinfo.base.f_slice_area = [this.data.baseinfo.base.f_slice_area]
305
+ } else {
306
+ this.data.baseinfo.base.f_slice_area = ''
307
+ }
308
+ this.oldAddress.f_address = this.data.addressinfo.f_address
309
+ this.oldAddress.id = this.data.addressinfo.id
310
+
311
+ // 地址信息
312
+ // loadStreetAndResGen(this)
313
+
314
+ // 对表具信息进行校验
315
+ this.data.meterinfo.forEach((row) => {
316
+ console.log(row)
317
+ if (row.gasbrand) {
318
+ this.meterbrands.forEach((item) => {
319
+ if (item.label === row.gasbrand) {
320
+ row.gasbrand = [item.value]
321
+ }
322
+ })
323
+ } else {
324
+ row.gasbrand = ''
325
+ }
326
+ if (row.gasmodel && (row.gasbrand instanceof Array)) {
327
+ row.gasbrand[0].gasmodel.forEach((item) => {
328
+ if (item.label === (val === 'area' ? row.gasmodel : row.gasmodel + row.gasmodeltype)) {
329
+ row.gasmodel = [item.value]
330
+ }
331
+ })
332
+ } else {
333
+ row.gasmodel = ''
334
+ }
335
+ if (row.f_fire_state === '1') {
336
+ row.f_fire_state1 = true
337
+ } else if (row.f_fire_state === '0') {
338
+ row.f_fire_state1 = false
339
+ }
340
+ row.f_install_date = row.f_install_date ? row.f_install_date : ''
341
+ row.f_gas_date = row.f_gas_date ? row.f_gas_date : null
342
+ row.f_changetube_date = row.f_changetube_date ? row.f_changetube_date : null
343
+ row.f_aroundmeter = row.f_aroundmeter ? [row.f_aroundmeter] : ''
344
+ row.f_garbage_fee = row.f_garbage_fee ? [row.f_garbage_fee] : ''
345
+ row.f_valve_state = row.f_valve_state ? [row.f_valve_state] : '开阀'
346
+ row.f_usetype = row.f_usetype ? [row.f_usetype] : '居民灶'
347
+ row.f_usestate = row.f_usestate ? [row.f_usestate] : '正常'
348
+ row.f_inputtor = row.f_inputtor ? [row.f_inputtor] : ''
349
+ row.f_position = row.f_position ? row.f_position : ''
350
+
351
+ row.f_user_type = row.f_user_type ? [row.f_user_type] : ''
352
+ row.f_gasproperties = row.f_gasproperties ? [row.f_gasproperties] : ''
353
+ row.pricetype = row.pricetype ? [row.pricetype] : ''
354
+
355
+ if (row.pricename) {
356
+ let names = this.getPricenames(row.f_user_type,
357
+ row.f_gasproperties,
358
+ row.pricetype)
359
+
360
+ console.log('=====2.===校验气价名称', names, row.f_user_type, row.f_gasproperties, row.pricetype)
361
+ if (names.length > 0) {
362
+ names.forEach((item) => {
363
+ if (item.label === row.pricename) {
364
+ row.pricename = [item.value]
365
+ row.f_detailprice = this.$CommonService.getShowPriceDetail(item.value.detailprice)
366
+ }
367
+ })
368
+ } else {
369
+ row.pricename = ''
370
+ }
371
+ } else {
372
+ row.pricename = ''
373
+ }
374
+
375
+ if (row.f_adjustable) {
376
+ this.adjustables.forEach((item) => {
377
+ if (item.label === row.f_adjustable) {
378
+ row.f_adjustable = [item.value]
379
+ }
380
+ })
381
+ } else {
382
+ row.f_adjustable = ''
383
+ }
384
+ })
385
+ // console.log('5555555555', this.data.meterinfo)
386
+ // 对设备进行校验
387
+ // this.data.devicesinfo.forEach((row) => {
388
+ // row.f_devices_type = row.f_devices_type ? [row.f_devices_type] : ''
389
+ // })
390
+ },
391
+ getPricenames (f_user_type, f_gasproperties, f_price_type) {
392
+ let rs = []
393
+ if (f_user_type.length === 1 && f_gasproperties.length === 1 && f_price_type.length === 1) {
394
+ rs = this.$GetSaleParam.getPrice({
395
+ f_user_type: f_user_type[0],
396
+ f_gasproperties: f_gasproperties[0],
397
+ f_price_type: f_price_type[0],
398
+ filter: this.f_filialeid
399
+ })
400
+ }
401
+ return rs
402
+ },
403
+ // 将小区信息转化为综合信息的格式
404
+ async areainfoInUser (areainfo) {
405
+ // this.nextTick(() => {
406
+ //
407
+ // })
408
+ // await this.$getConfig(this, 'UserAddress')
409
+ this.data = {
410
+ baseinfo: {
411
+ base: {
412
+ f_user_state: '正常',
413
+ f_is_mgq: '',
414
+ f_slice_area: '', // 片区
415
+ // 附件表临时id
416
+ blodid: this.blodid,
417
+ // 用户姓名
418
+ f_user_name: '',
419
+ // 用户电话
420
+ f_user_phone: '',
421
+ f_people_num: 0,
422
+ // 备用电话
423
+ f_rent_phone: '',
424
+ f_credentials: '身份证',
425
+ f_cost_type: '',
426
+ f_address: '',
427
+ addressid: '',
428
+ f_idnumber: ''
429
+ },
430
+ bank: {}
431
+ },
432
+ addressinfo: {
433
+ // 详细地址
434
+ f_address: '',
435
+ id: ''
436
+ },
437
+ meterinfo: [{
438
+ // 表号
439
+ f_meternumber: '',
440
+ f_metertitles: '',
441
+ f_area_code: '',
442
+ // 气表品牌
443
+ gasbrand: '',
444
+ // 气表型号
445
+ gasmodel: '',
446
+ // 气表类型
447
+ gasmodeltype: '',
448
+ pricetype: '', // 气价类型
449
+ pricename: '', // 气价名称
450
+ f_user_type: '', // 用户类型
451
+ f_gasproperties: '', // 用气性质
452
+ f_inputtor: '',
453
+ // 安装位置
454
+ f_position: '',
455
+ // 安装地址
456
+ f_userfiles_address: '',
457
+ // 使用类型
458
+ f_usetype: '',
459
+ // 使用状态
460
+ f_usestate: '',
461
+ // 左右表
462
+ f_aroundmeter: '',
463
+ f_garbage_fee: '',
464
+ f_meter_base: '',
465
+ f_initial_base: '',
466
+ // 通气人
467
+ f_gas_person: '',
468
+ f_adjustable: '', // 调压箱
469
+ f_detailprice: '', // 价格详情显示
470
+ devicesinfo: [], // 设备信息
471
+ f_hand_month: '' // 抄表月份
472
+ }],
473
+ devicesinfo: []
474
+ }
475
+ // 若有id,则表示该地址是更新操作
476
+ /* if (areainfo.id) {
477
+ this.data.addressinfo.id = areainfo.id
478
+ }
479
+ // 改地址是 只有表没有户信息
480
+ if (areainfo.meter) {
481
+ Object.assign(this.data.meterinfo[0], this.data.meterinfo[0], areainfo.meter)
482
+ }
483
+ if (areainfo.user) {
484
+ Object.assign(this.data.baseinfo.base, this.data.baseinfo.base, areainfo.user)
485
+ } */
486
+
487
+ this.checkout('area')
488
+ },
489
+ limitClick () {
490
+ this.limitShow = true
491
+ },
492
+ getLimitGas (val) {
493
+ this.limit_gas = val
494
+ },
495
+ clearinfo () {
496
+ this.blodid = '临时id' + Date.now()
497
+ this.areainfoInUser(this.areainfo)
498
+ }
499
+ },
500
+ computed: {
501
+ meterbrands () {
502
+ return this.$GetSaleParam.getGasbrand()
503
+ },
504
+ adjustables () {
505
+ return this.$GetSaleParam.getAdjustable()
506
+ },
507
+ getMeterBooks () {
508
+ return this.$GetSaleParam.getMeterBooks()
509
+ }
510
+ },
511
+ events: {
512
+ // 设置表具气价等默认值
513
+ defaultOtheret (row) {
514
+ if (!this.isedit) {
515
+ let temp = {
516
+ gasmodel: row.f_meter_style,
517
+ gasbrand: row.f_meter_brand,
518
+ gasmodeltype: row.f_meter_style,
519
+ pricetype: row.f_price_type,
520
+ pricename: row.f_price_name,
521
+ f_user_type: row.f_user_type,
522
+ f_gasproperties: row.f_gasproperties,
523
+ f_position: row.f_position,
524
+ f_inputtor: row.f_inputtor,
525
+ f_hand_month: row.f_hand_month
526
+ }
527
+ Object.assign(this.data.meterinfo[0], this.data.meterinfo[0], temp)
528
+ console.log('====1.=====', temp, row)
529
+ this.checkout('area')
530
+ }
531
+ }
532
+ }
533
+ }
534
+ </script>
535
+ <style scoped>
536
+
537
+
538
+ </style>