apply-clients 3.5.6-2 → 3.5.6-21

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 (25) hide show
  1. package/build/dev-server.js +4 -4
  2. package/package.json +1 -1
  3. package/src/filiale/dingcheng/android/AppInstallationDetails.vue +477 -478
  4. package/src/filiale/dingcheng/pc/InstallationDetails.vue +607 -608
  5. package/src/filiale/fugou/android/AppDevicesManagement.vue +516 -521
  6. package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -542
  7. package/src/filiale/fugou/pc/ServiceControl.vue +9 -0
  8. package/src/filiale/gongyi/pc/chargeManagement.vue +765 -765
  9. package/src/filiale/jinhuang/pc/Applybatchdispatch.vue +770 -0
  10. package/src/filiale/jinhuang/pc/ContractList.vue +222 -220
  11. package/src/filiale/jinhuang/pc/ServiceControl.vue +2016 -2016
  12. package/src/filiale/jinhuang/pc/SupervisoryList.vue +478 -459
  13. package/src/filiale/jinhuang/pc.js +2 -1
  14. package/src/filiale/shexian/android/AppServiceControl.vue +18 -1
  15. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +1 -1
  16. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1 -1
  17. package/src/filiale/yangchunboneng/android/AppOtherChargeList.vue +281 -0
  18. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +4 -0
  19. package/src/filiale/yangchunboneng/android.js +2 -1
  20. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +622 -612
  21. package/src/filiale/yangchunboneng/pc/InstallInfoSelect.vue +400 -365
  22. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +4 -0
  23. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +30 -3
  24. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +9 -6
  25. package/src/main.js +1 -1
@@ -1,608 +1,607 @@
1
- <template>
2
- <work-busy :is-busy="showWork" v-show="showWork"></work-busy>
3
-
4
- <div class="col-sm-12" style="margin: 20px 0px;">
5
- <criteria-paged :model="model" v-ref:cp :pager="pager">
6
- <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- </div>
9
- </criteria>
10
- <data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
11
- <template partial='head'>
12
- <tr>
13
- <th>序号</th>
14
- <th>客户编号</th>
15
- <th>客户名称</th>
16
- <th>客户电话</th>
17
- <th>地址信息</th>
18
- <th v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">备注</th>
19
- <th>表具数量</th>
20
- <th>
21
- <template v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">
22
- <button type="button" class="btn btn-info head-but" v-if="$parent.$parent.$parent.mark === 0"
23
- @click="$parent.$parent.$parent.showFile = !$parent.$parent.$parent.showFile">导入</button>
24
- <a type="button" class="btn btn-info head-but" v-if="$parent.$parent.$parent.mark === 0"
25
- href="/apply/download/excel/安装明细.xlsx" download>模板下载</a>
26
- <export-excel :data="$parent.$parent.$parent.getCondition"
27
- :field="$parent.$parent.$parent.getfield"
28
- sqlurl="rs/logic/applyExportfile"
29
- sql-name="getInstallableAddress"
30
- template-name='可安装地址'
31
- btn-name="导出可安装"
32
- :choose-col="true"></export-excel>
33
- </template>
34
- </th>
35
- </tr>
36
- </template>
37
- <template partial='body'>
38
- <tr>
39
- <td style="text-align: center;">
40
- <nobr>{{$index+1}}</nobr>
41
- </td>
42
- <td style="text-align: center;">
43
- <nobr>{{row.f_userinfo_code}}</nobr>
44
- </td>
45
- <td style="text-align: center;">
46
- <nobr>{{row.f_user_name}}</nobr>
47
- </td>
48
- <td style="text-align: center;">
49
- <nobr>{{row.f_user_phone}}</nobr>
50
- </td>
51
- <td style="text-align: center;">
52
- <nobr>{{row.f_address}}</nobr>
53
- </td>
54
- <th v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">
55
- <nobr>{{row.f_userinfo_comments}}</nobr>
56
- </th>
57
- <td style="text-align: center;">
58
- <nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
59
- </td>
60
- <td style="text-align: center;">
61
- <nobr>
62
- <button
63
- type="button" name="button" class="btn btn-link"
64
- :disabled="row.f_cumulative_payment_money < $parent.$parent.$parent.selectdata.f_price && $parent.$parent.$parent.selectdata.f_apply_type !== '开发商集体报建'"
65
- @click="$parent.$parent.$parent.showUserFileModal(row)">
66
- {{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_userfiles_num > 0 ? '修正' : '添加'}}
67
- </button>
68
- </nobr>
69
- </td>
70
- </tr>
71
- </template>
72
- </data-grid>
73
- </criteria-paged>
74
- </div>
75
- <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
76
- <header slot="modal-header" class="modal-header">
77
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
78
- <h4 class="modal-title">选择文件</h4>
79
- </header>
80
- <article slot="modal-body" class="modal-body">
81
- <div class="form-group">
82
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
83
- </div>
84
- </article>
85
- <footer slot="modal-footer" class="modal-footer"></footer>
86
- </modal>
87
-
88
- <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
89
- <header slot="modal-header" class="modal-header">
90
- <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
91
- <h4 class="modal-title">安装明细</h4>
92
- </header>
93
- <article slot="modal-body" class="modal-body clearfix">
94
- <div class="form-group col-sm-12">
95
- <label class="col-sm-2 control-label">地址信息:</label>
96
- <div class="col-sm-10">
97
- <input class="form-control input_view" style=""
98
- v-model="useradders.f_address"
99
- :value="useradders.f_address"
100
- :readonly="true"/>
101
- </div>
102
- </div>
103
-
104
- <div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
105
- <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
106
- <div class="col-sm-6 text-left">表具{{$index+1}}信息</div>
107
- <div class="col-sm-6 text-right"><button
108
- class="button_delete button_spacing"
109
- v-if="!item.f_userfiles_id"
110
- @click.prevent="deleteUserFile(i)"
111
- >删除</button></div>
112
- </div>
113
- <div class="form-group col-sm-6" :class="[item.gasbrand ? '' : 'has-error']">
114
- <label class="col-sm-4 control-label">气表品牌:</label>
115
- <div class="col-sm-8">
116
- <input-select
117
- class="select select_list"
118
- :value.sync="item.gasbrand"
119
- v-model="item.gasbrand"
120
- :options="meterbrands"
121
- @change="gasbrandChange(i)"
122
- :disable="mark === 1"
123
- :valueSingle="true"></input-select>
124
- </div>
125
- </div>
126
- <div class="form-group col-sm-6" :class="[item.gasmodel ? '' : 'has-error']">
127
- <label class="col-sm-4 control-label">气表型号:</label>
128
- <div class="col-sm-8">
129
- <input-select
130
- class="select select_list"
131
- :value.sync="item.gasmodel"
132
- v-model="item.gasmodel"
133
- :options.sync="item.gasbrand.gasmodel"
134
- @change="gasmodelChange(i)"
135
- :disable="mark === 1"
136
- :valueSingle="true"></input-select>
137
- </div>
138
- </div>
139
- <div class="form-group col-sm-6" :class="[item.f_meternumber ? '' : 'has-error']">
140
- <label class="col-sm-4 control-label">表&emsp;&emsp;号:</label>
141
- <div class="col-sm-8">
142
- <input class="form-control input_view" style=""
143
- placeholder="表号"
144
- type="number"
145
- οnkeyup="this.value=this.value.replace(/\s+/g,'')"
146
- v-model="item.f_meternumber"
147
- :value="item.f_meternumber"
148
- @change="meternumberValidate(i)"
149
- :readonly="mark === 1"/>
150
- </div>
151
- </div>
152
- <div class="form-group col-sm-6">
153
- <label class="col-sm-4 control-label">表&ensp;封&ensp;号:</label>
154
- <div class="col-sm-8">
155
- <input class="form-control input_view" style=""
156
- placeholder="表封号"
157
- v-model="item.f_metertitles"
158
- :value="item.f_metertitles"
159
- :readonly="mark === 1"/>
160
- </div>
161
- </div>
162
- <div class="form-group col-sm-6">
163
- <label class="col-sm-4 control-label">表&ensp;读&ensp;数:</label>
164
- <div class="col-sm-8">
165
- <input class="form-control input_view" style=""
166
- placeholder="表读数"
167
- v-model="item.f_meter_base"
168
- :value="item.f_meter_base"
169
- :readonly="mark === 1"/>
170
- </div>
171
- </div>
172
- <div class="form-group col-sm-6">
173
- <label class="col-sm-4 control-label">初始底数:</label>
174
- <div class="col-sm-8">
175
- <input class="form-control input_view" style=""
176
- v-model="item.f_initial_base"
177
- :value="item.f_initial_base"
178
- placeholder="初始底数"
179
- :readonly="mark === 1"/>
180
- </div>
181
- </div>
182
- <div class="form-group col-sm-6">
183
- <label class="col-sm-4 control-label">表&emsp;&emsp;向:</label>
184
- <div class="col-sm-8">
185
- <input-select
186
- class="select select_list"
187
- :value.sync="item.f_aroundmeter"
188
- v-model="item.f_aroundmeter"
189
- :options="aroundmeters"
190
- :disable="mark === 1"
191
- :valueSingle="true"></input-select>
192
- </div>
193
- </div>
194
- <div class="form-group col-sm-6">
195
- <label class="col-sm-4 control-label">安装位置:</label>
196
- <div class="col-sm-8">
197
- <input-select
198
- class="select select_list"
199
- :value.sync="item.f_position"
200
- v-model="item.f_position"
201
- :options="positions"
202
- :disable="mark === 1"
203
- :valueSingle="true"></input-select>
204
- </div>
205
- </div>
206
- <div class="form-group col-sm-6">
207
- <label class="col-sm-4 control-label">安&ensp;装&ensp;人:</label>
208
- <div class="col-sm-8">
209
- <input class="form-control input_view" style=""
210
- v-model="item.f_install_person"
211
- :value.sync="installperson(item.f_install_person)"
212
- placeholder="安装人"
213
- readonly/>
214
- <!-- <input-select-->
215
- <!-- class="select select_list"-->
216
- <!-- :value.sync="item.f_install_person"-->
217
- <!-- v-model="item.f_install_person"-->
218
- <!-- :options="installperson"-->
219
- <!-- :disable="mark === 1"-->
220
- <!-- :valueSingle="true"></input-select>-->
221
- </div>
222
- </div>
223
- <div class="form-group col-sm-6">
224
- <label class="col-sm-4 control-label">安装日期:</label>
225
- <div class="col-sm-8">
226
- <input class="form-control input_view" style=""
227
- v-model="item.f_install_date"
228
- :value.sync="installdate(item.f_install_date)"
229
- placeholder="安装日期"
230
- readonly/>
231
- <!-- <datepicker-->
232
- <!-- placeholder="安装日期"-->
233
- <!-- :value.sync="item.f_install_date"-->
234
- <!-- v-model="item.f_install_date"-->
235
- <!-- format="yyyy-MM-dd HH:mm:ss"-->
236
- <!-- :disabled="mark === 1"-->
237
- <!-- :show-reset-button="reset">-->
238
- <!-- </datepicker>-->
239
- </div>
240
- </div>
241
- </div>
242
-
243
- </article>
244
- <footer slot="modal-footer" class="modal-footer">
245
- <template v-if="mark !== 1">
246
- <!-- 去除一户多表 -->
247
- <button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
248
- <button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
249
- </template>
250
- </footer>
251
- </modal>
252
- </template>
253
- <script>
254
- import Vue from 'vue'
255
- import {PagedList} from 'vue-client'
256
- import {HttpResetClass} from 'vue-client'
257
- import {isEmpty} from '../../../components/Util'
258
- // Date格式化
259
- Date.prototype.Format = function (fmt) {
260
- var o = {
261
- 'M+': this.getMonth() + 1, // 月份
262
- 'd+': this.getDate(), //
263
- 'H+': this.getHours(), // 小时
264
- 'm+': this.getMinutes(), //
265
- 's+': this.getSeconds(), //
266
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
267
- 'S': this.getMilliseconds() // 毫秒
268
- }
269
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
270
- for (var k in o) {
271
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
272
- }
273
- return fmt
274
- }
275
-
276
- export default {
277
- title: '安装明细',
278
- props: {
279
- selectdata: {
280
- type: Object
281
- },
282
- mark: {
283
- type: Number,
284
- default: 0
285
- }
286
- },
287
- data () {
288
- return {
289
- showFile: false,
290
- showUserFile: false,
291
- model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 20, null),
292
- meterbrands: [], // 气表品牌
293
- useradders: null,
294
- userinfo: {},
295
- getfield: {
296
- 'f_address': '地址',
297
- 'f_user_name': '用户姓名/单位名称',
298
- 'f_meternumber': '表号',
299
- 'f_gasbrand': '气表品牌',
300
- 'f_gasmodel': '气表型号',
301
- 'f_metertitles': '表封号',
302
- 'f_meter_base': '表读数',
303
- 'f_initial_base': '初始底数',
304
- 'f_aroundmeter': '表向',
305
- 'f_user_phone': '电话',
306
- 'f_userinfo_comments': '备注',
307
- 'f_position': '安装位置',
308
- 'f_userinfo_code': '用户编号',
309
- 'f_material_name': '材料名称',
310
- 'f_material_style': '材料型号',
311
- 'f_material_price': '材料价格',
312
- 'f_material_unit': '材料单位',
313
- 'f_material_number': '材料数量'
314
- },
315
- showWork: false
316
- }
317
- },
318
- ready () {
319
- this.search()
320
- this.getMeterbrands()
321
- if (this.selectdata.f_apply_type === '团购报建') {
322
- this.notInstalled()
323
- }
324
- },
325
- methods: {
326
- // 删除未保存的表具
327
- async deleteUserFile (index) {
328
- this.userinfo.userfiles.splice(index, 1)
329
- },
330
- // 追加表具
331
- addUserFile() {
332
- this.userinfo.userfiles.push({})
333
- },
334
- // 保存档案
335
- async saveUserFile() {
336
- // 检查必填项
337
- for (let i = 0; i < this.userinfo.userfiles.length; i++) {
338
- let userfile = this.userinfo.userfiles[i]
339
- if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
340
- this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
341
- return
342
- }
343
- if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
344
- this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
345
- return
346
- }
347
- if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
348
- this.$showMessage(`表具${i+1}表号没有填写!!!`)
349
- return
350
- }
351
- }
352
- let data = {
353
- user: this.$login.f,
354
- useradders: this.useradders,
355
- userinfo: this.userinfo,
356
- selectdata: this.selectdata
357
- }
358
- let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
359
- resolveMsg: null,
360
- rejectMsg: '表具添加失败!!!'
361
- })
362
- this.$dispatch('breakControl', this.selectdata)
363
- },
364
- // 检查表号是否存在
365
- async meternumberValidate(i) {
366
- if (!this.userinfo.userfiles[i].f_gasbrand_id) {
367
- this.userinfo.userfiles[i].f_meternumber = ''
368
- this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
369
- return
370
- }
371
- if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
372
- let data = {
373
- f_meternumber: this.userinfo.userfiles[i].f_meternumber,
374
- f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
375
- }
376
- if (this.userinfo.userfiles[i].f_userfiles_id) {
377
- data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
378
- }
379
- let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
380
- resolveMsg: null,
381
- rejectMsg: '表号验证失败!!'
382
- })
383
- if (res.data) {
384
- this.userinfo.userfiles[i].f_meternumber = ''
385
- this.$showAlert('表号已存在!!', 'warning', 3000)
386
- }
387
- }
388
- },
389
- // 选择气表型号
390
- gasmodelChange(i) {
391
- if (this.userinfo.userfiles[i].gasmodel) {
392
- this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
393
- }
394
- },
395
- // 选择气表品牌
396
- gasbrandChange(i) {
397
- // 清空已保存的气表型号
398
- this.userinfo.userfiles[i].f_gasmodel_id = null
399
- this.userinfo.userfiles[i].gasmodel = null
400
-
401
- if (this.userinfo.userfiles[i].gasbrand) {
402
- // 气表品牌id
403
- this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
404
- // 气表分类
405
- this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
406
- }
407
- },
408
- // 打开安装明细
409
- async showUserFileModal (row) {
410
- this.useradders = row
411
-
412
- let http = new HttpResetClass()
413
- let data = {
414
- condition: `f_userinfo_id = '${row.f_userinfo_id}'`
415
- }
416
- let res = await http.load('POST', 'rs/logic/getUserinfoAndUserfiles', {data:data}, {
417
- resolveMsg: null,
418
- rejectMsg: null
419
- })
420
-
421
- this.userinfo = res.data
422
-
423
- // 已有表具的 气表信息补充
424
- for (let i = 0; i < this.userinfo.userfiles.length; i++) {
425
- for (const item of this.meterbrands) {
426
- if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
427
- // this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
428
- Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
429
- }
430
- }
431
- if (this.userinfo.userfiles[i].gasbrand) {
432
- for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
433
- if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
434
- // this.userinfo.userfiles[i].gasmodel = item.value
435
- Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
436
- }
437
- }
438
- }
439
- }
440
-
441
- this.showUserFile = true
442
- },
443
- // 获取气表品牌
444
- async getMeterbrands() {
445
- let http = new HttpResetClass()
446
- let data = {
447
- f_orgid: this.$login.f.orgid
448
- }
449
- let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
450
- resolveMsg: null,
451
- rejectMsg: null
452
- })
453
- this.meterbrands = res.data
454
- },
455
- async notInstalled () {
456
- let http = new HttpResetClass()
457
- let data = {
458
- condition: `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '待开通'`
459
- }
460
- let res = await http.load(
461
- 'POST',
462
- 'rs/sql/countApplyUserinfo',
463
- {data: data},
464
- {
465
- resolveMsg: null,
466
- rejectMsg: '安装数量查询失败!!!'
467
- })
468
-
469
- for (const item of this.selectdata.fields) {
470
- if (item.label === '已安装户数') {
471
- item.value = this.selectdata.f_apply_count - res.data[0].num
472
- }
473
- if (item.label === '未安装户数') {
474
- item.value = res.data[0].num
475
- }
476
- }
477
- },
478
- searchCondition (args) {
479
- var tablestate=''
480
- if(this.selectdata.f_sub_state==='完工'){
481
- tablestate='正常'
482
- }else{
483
- tablestate='待开通'
484
- }
485
- if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建') {
486
- args.condition = args.condition + `and ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
487
- } else {
488
- args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
489
- }
490
- this.model.search(args.condition, args.model,tablestate)
491
- },
492
- // 查询
493
- async search () {
494
- this.$refs.cp.$refs.cri.search()
495
- },
496
- // 关闭安装明细
497
- closeUserFile() {
498
- this.showUserFile = false
499
- this.useradders = null
500
- this.userinfo = {}
501
- this.search()
502
- },
503
- // 关闭文件上传对话框
504
- closeFile() {
505
- this.showWork = false
506
- this.showFile = false
507
- // 将选的文件清空
508
- this.$refs.file.$el.querySelector('input').value = ''
509
- this.search()
510
- }
511
- },
512
- events: {
513
- 'beforeFileUpload' (file) {
514
- this.showWork = true
515
- },
516
- async 'onFileUpload'(file, result) {
517
- let data = {
518
- selectdata: this.selectdata,
519
- filepath: result.f_downloadpath,
520
- user: this.$login.f
521
- }
522
- try {
523
- let res = await this.$resetpost(`rs/logic/importAddInstallationDetails`, {data: data}, {
524
- resolveMsg: null,
525
- rejectMsg: '导入失败!!!',
526
- silent: true
527
- }, 0)
528
- } catch (e) {
529
- this.closeFile()
530
- }
531
- this.$dispatch('breakControl', this.selectdata)
532
- }
533
- },
534
- computed: {
535
- pager () {
536
- return this.selectdata.f_apply_type === '团购报建'
537
- },
538
- getCondition () {
539
- let condition = `ua.f_process_id = '${this.selectdata.f_process_id}'`
540
-
541
- return {
542
- condition: condition
543
- }
544
- },
545
- // 安装人
546
- installperson() {
547
- return function (f_install_person) {
548
- if (isEmpty(f_install_person)) {
549
- return this.$login.f.name
550
- }
551
- return f_install_person
552
- }
553
- },
554
- installdate() {
555
- return function (f_install_date) {
556
- if (isEmpty(f_install_date)) {
557
- return new Date().Format('yyyy-MM-dd HH:mm:ss')
558
- }
559
- return f_install_date
560
- }
561
- },
562
- // 表向
563
- aroundmeters() {
564
- return this.$appdata.getParam('左右表')
565
- },
566
- // 安装位置
567
- positions() {
568
- return this.$appdata.getParam('安装位置')
569
- }
570
- },
571
- watch: {
572
- }
573
- }
574
- </script>
575
- <style scoped>
576
- .head-but{
577
- margin-left: 5px;
578
- height: 34px;
579
- /*background-color: #6aa6e2;*/
580
- border-radius: 4px;
581
- font-family: PingFang;
582
- color: #ffffff;
583
- }
584
- /*清除model中的浮动*/
585
- .clearfix:after,.clearfix:before{
586
- display: table;
587
- }
588
- .clearfix:after{
589
- clear: both;
590
- }
591
- .input_view{
592
- padding: 8px;
593
- background-color: #ffffff;
594
- border-radius: 2px;
595
- border: solid 1px #c7c7c7!important;
596
- color: #333333!important;
597
- font-size: 15px!important;
598
- }
599
-
600
- .input_view[readonly]{
601
- border: 1px solid #DDD!important;
602
- color:#ACA899!important;
603
- }
604
- .input_view:disabled{
605
- border: 1px solid #DDD!important;
606
- color:#ACA899!important;
607
- }
608
- </style>
1
+ <template>
2
+ <work-busy :is-busy="showWork" v-show="showWork"></work-busy>
3
+
4
+ <div class="col-sm-12" style="margin: 20px 0px;">
5
+ <criteria-paged :model="model" v-ref:cp :pager="pager">
6
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ </div>
9
+ </criteria>
10
+ <data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
11
+ <template partial='head'>
12
+ <tr>
13
+ <th>序号</th>
14
+ <th>客户编号</th>
15
+ <th>客户名称</th>
16
+ <th>客户电话</th>
17
+ <th>地址信息</th>
18
+ <th v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">备注</th>
19
+ <th>表具数量</th>
20
+ <th>
21
+ <template v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">
22
+ <button type="button" class="btn btn-info head-but" v-if="$parent.$parent.$parent.mark === 0"
23
+ @click="$parent.$parent.$parent.showFile = !$parent.$parent.$parent.showFile">导入</button>
24
+ <a type="button" class="btn btn-info head-but" v-if="$parent.$parent.$parent.mark === 0"
25
+ href="/apply/download/excel/安装明细.xlsx" download>模板下载</a>
26
+ <export-excel :data="$parent.$parent.$parent.getCondition"
27
+ :field="$parent.$parent.$parent.getfield"
28
+ sqlurl="rs/logic/applyExportfile"
29
+ sql-name="getInstallableAddress"
30
+ template-name='可安装地址'
31
+ btn-name="导出可安装"
32
+ :choose-col="true"></export-excel>
33
+ </template>
34
+ </th>
35
+ </tr>
36
+ </template>
37
+ <template partial='body'>
38
+ <tr>
39
+ <td style="text-align: center;">
40
+ <nobr>{{$index+1}}</nobr>
41
+ </td>
42
+ <td style="text-align: center;">
43
+ <nobr>{{row.f_userinfo_code}}</nobr>
44
+ </td>
45
+ <td style="text-align: center;">
46
+ <nobr>{{row.f_user_name}}</nobr>
47
+ </td>
48
+ <td style="text-align: center;">
49
+ <nobr>{{row.f_user_phone}}</nobr>
50
+ </td>
51
+ <td style="text-align: center;">
52
+ <nobr>{{row.f_address}}</nobr>
53
+ </td>
54
+ <th v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">
55
+ <nobr>{{row.f_userinfo_comments}}</nobr>
56
+ </th>
57
+ <td style="text-align: center;">
58
+ <nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
59
+ </td>
60
+ <td style="text-align: center;">
61
+ <nobr>
62
+ <button
63
+ type="button" name="button" class="btn btn-link"
64
+ :disabled="row.f_cumulative_payment_money < $parent.$parent.$parent.selectdata.f_price && $parent.$parent.$parent.selectdata.f_apply_type !== '开发商集体报建'"
65
+ @click="$parent.$parent.$parent.showUserFileModal(row)">
66
+ {{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_userfiles_num > 0 ? '修正' : '添加'}}
67
+ </button>
68
+ </nobr>
69
+ </td>
70
+ </tr>
71
+ </template>
72
+ </data-grid>
73
+ </criteria-paged>
74
+ </div>
75
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
76
+ <header slot="modal-header" class="modal-header">
77
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
78
+ <h4 class="modal-title">选择文件</h4>
79
+ </header>
80
+ <article slot="modal-body" class="modal-body">
81
+ <div class="form-group">
82
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
83
+ </div>
84
+ </article>
85
+ <footer slot="modal-footer" class="modal-footer"></footer>
86
+ </modal>
87
+
88
+ <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
89
+ <header slot="modal-header" class="modal-header">
90
+ <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
91
+ <h4 class="modal-title">安装明细</h4>
92
+ </header>
93
+ <article slot="modal-body" class="modal-body clearfix">
94
+ <div class="form-group col-sm-12">
95
+ <label class="col-sm-2 control-label">地址信息:</label>
96
+ <div class="col-sm-10">
97
+ <input class="form-control input_view" style=""
98
+ v-model="useradders.f_address"
99
+ :value="useradders.f_address"
100
+ :readonly="true"/>
101
+ </div>
102
+ </div>
103
+
104
+ <div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
105
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
106
+ <div class="col-sm-6 text-left">表具{{$index+1}}信息</div>
107
+ <div class="col-sm-6 text-right"><button
108
+ class="button_delete button_spacing"
109
+ v-if="!item.f_userfiles_id"
110
+ @click.prevent="deleteUserFile(i)"
111
+ >删除</button></div>
112
+ </div>
113
+ <div class="form-group col-sm-6" :class="[item.gasbrand ? '' : 'has-error']">
114
+ <label class="col-sm-4 control-label">气表品牌:</label>
115
+ <div class="col-sm-8">
116
+ <input-select
117
+ class="select select_list"
118
+ :value.sync="item.gasbrand"
119
+ v-model="item.gasbrand"
120
+ :options="meterbrands"
121
+ @change="gasbrandChange(i)"
122
+ :disable="mark === 1"
123
+ :valueSingle="true"></input-select>
124
+ </div>
125
+ </div>
126
+ <div class="form-group col-sm-6" :class="[item.gasmodel ? '' : 'has-error']">
127
+ <label class="col-sm-4 control-label">气表型号:</label>
128
+ <div class="col-sm-8">
129
+ <input-select
130
+ class="select select_list"
131
+ :value.sync="item.gasmodel"
132
+ v-model="item.gasmodel"
133
+ :options.sync="item.gasbrand.gasmodel"
134
+ @change="gasmodelChange(i)"
135
+ :disable="mark === 1"
136
+ :valueSingle="true"></input-select>
137
+ </div>
138
+ </div>
139
+ <div class="form-group col-sm-6" :class="[item.f_meternumber ? '' : 'has-error']">
140
+ <label class="col-sm-4 control-label">表&emsp;&emsp;号:</label>
141
+ <div class="col-sm-8">
142
+ <input class="form-control input_view" style=""
143
+ placeholder="表号"
144
+ οnkeyup="this.value=this.value.replace(/\s+/g,'')"
145
+ v-model="item.f_meternumber"
146
+ :value="item.f_meternumber"
147
+ @change="meternumberValidate(i)"
148
+ :readonly="mark === 1"/>
149
+ </div>
150
+ </div>
151
+ <div class="form-group col-sm-6">
152
+ <label class="col-sm-4 control-label">表&ensp;封&ensp;号:</label>
153
+ <div class="col-sm-8">
154
+ <input class="form-control input_view" style=""
155
+ placeholder="表封号"
156
+ v-model="item.f_metertitles"
157
+ :value="item.f_metertitles"
158
+ :readonly="mark === 1"/>
159
+ </div>
160
+ </div>
161
+ <div class="form-group col-sm-6">
162
+ <label class="col-sm-4 control-label">表&ensp;读&ensp;数:</label>
163
+ <div class="col-sm-8">
164
+ <input class="form-control input_view" style=""
165
+ placeholder="表读数"
166
+ v-model="item.f_meter_base"
167
+ :value="item.f_meter_base"
168
+ :readonly="mark === 1"/>
169
+ </div>
170
+ </div>
171
+ <div class="form-group col-sm-6">
172
+ <label class="col-sm-4 control-label">初始底数:</label>
173
+ <div class="col-sm-8">
174
+ <input class="form-control input_view" style=""
175
+ v-model="item.f_initial_base"
176
+ :value="item.f_initial_base"
177
+ placeholder="初始底数"
178
+ :readonly="mark === 1"/>
179
+ </div>
180
+ </div>
181
+ <div class="form-group col-sm-6">
182
+ <label class="col-sm-4 control-label">表&emsp;&emsp;向:</label>
183
+ <div class="col-sm-8">
184
+ <input-select
185
+ class="select select_list"
186
+ :value.sync="item.f_aroundmeter"
187
+ v-model="item.f_aroundmeter"
188
+ :options="aroundmeters"
189
+ :disable="mark === 1"
190
+ :valueSingle="true"></input-select>
191
+ </div>
192
+ </div>
193
+ <div class="form-group col-sm-6">
194
+ <label class="col-sm-4 control-label">安装位置:</label>
195
+ <div class="col-sm-8">
196
+ <input-select
197
+ class="select select_list"
198
+ :value.sync="item.f_position"
199
+ v-model="item.f_position"
200
+ :options="positions"
201
+ :disable="mark === 1"
202
+ :valueSingle="true"></input-select>
203
+ </div>
204
+ </div>
205
+ <div class="form-group col-sm-6">
206
+ <label class="col-sm-4 control-label">安&ensp;装&ensp;人:</label>
207
+ <div class="col-sm-8">
208
+ <input class="form-control input_view" style=""
209
+ v-model="item.f_install_person"
210
+ :value.sync="installperson(item.f_install_person)"
211
+ placeholder="安装人"
212
+ readonly/>
213
+ <!-- <input-select-->
214
+ <!-- class="select select_list"-->
215
+ <!-- :value.sync="item.f_install_person"-->
216
+ <!-- v-model="item.f_install_person"-->
217
+ <!-- :options="installperson"-->
218
+ <!-- :disable="mark === 1"-->
219
+ <!-- :valueSingle="true"></input-select>-->
220
+ </div>
221
+ </div>
222
+ <div class="form-group col-sm-6">
223
+ <label class="col-sm-4 control-label">安装日期:</label>
224
+ <div class="col-sm-8">
225
+ <input class="form-control input_view" style=""
226
+ v-model="item.f_install_date"
227
+ :value.sync="installdate(item.f_install_date)"
228
+ placeholder="安装日期"
229
+ readonly/>
230
+ <!-- <datepicker-->
231
+ <!-- placeholder="安装日期"-->
232
+ <!-- :value.sync="item.f_install_date"-->
233
+ <!-- v-model="item.f_install_date"-->
234
+ <!-- format="yyyy-MM-dd HH:mm:ss"-->
235
+ <!-- :disabled="mark === 1"-->
236
+ <!-- :show-reset-button="reset">-->
237
+ <!-- </datepicker>-->
238
+ </div>
239
+ </div>
240
+ </div>
241
+
242
+ </article>
243
+ <footer slot="modal-footer" class="modal-footer">
244
+ <template v-if="mark !== 1">
245
+ <!-- 去除一户多表 -->
246
+ <button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
247
+ <button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
248
+ </template>
249
+ </footer>
250
+ </modal>
251
+ </template>
252
+ <script>
253
+ import Vue from 'vue'
254
+ import {PagedList} from 'vue-client'
255
+ import {HttpResetClass} from 'vue-client'
256
+ import {isEmpty} from '../../../components/Util'
257
+ // Date格式化
258
+ Date.prototype.Format = function (fmt) {
259
+ var o = {
260
+ 'M+': this.getMonth() + 1, // 月份
261
+ 'd+': this.getDate(), //
262
+ 'H+': this.getHours(), // 小时
263
+ 'm+': this.getMinutes(), //
264
+ 's+': this.getSeconds(), //
265
+ 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
266
+ 'S': this.getMilliseconds() // 毫秒
267
+ }
268
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
269
+ for (var k in o) {
270
+ if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
271
+ }
272
+ return fmt
273
+ }
274
+
275
+ export default {
276
+ title: '安装明细',
277
+ props: {
278
+ selectdata: {
279
+ type: Object
280
+ },
281
+ mark: {
282
+ type: Number,
283
+ default: 0
284
+ }
285
+ },
286
+ data () {
287
+ return {
288
+ showFile: false,
289
+ showUserFile: false,
290
+ model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 20, null),
291
+ meterbrands: [], // 气表品牌
292
+ useradders: null,
293
+ userinfo: {},
294
+ getfield: {
295
+ 'f_address': '地址',
296
+ 'f_user_name': '用户姓名/单位名称',
297
+ 'f_meternumber': '表号',
298
+ 'f_gasbrand': '气表品牌',
299
+ 'f_gasmodel': '气表型号',
300
+ 'f_metertitles': '表封号',
301
+ 'f_meter_base': '表读数',
302
+ 'f_initial_base': '初始底数',
303
+ 'f_aroundmeter': '表向',
304
+ 'f_user_phone': '电话',
305
+ 'f_userinfo_comments': '备注',
306
+ 'f_position': '安装位置',
307
+ 'f_userinfo_code': '用户编号',
308
+ 'f_material_name': '材料名称',
309
+ 'f_material_style': '材料型号',
310
+ 'f_material_price': '材料价格',
311
+ 'f_material_unit': '材料单位',
312
+ 'f_material_number': '材料数量'
313
+ },
314
+ showWork: false
315
+ }
316
+ },
317
+ ready () {
318
+ this.search()
319
+ this.getMeterbrands()
320
+ if (this.selectdata.f_apply_type === '团购报建') {
321
+ this.notInstalled()
322
+ }
323
+ },
324
+ methods: {
325
+ // 删除未保存的表具
326
+ async deleteUserFile (index) {
327
+ this.userinfo.userfiles.splice(index, 1)
328
+ },
329
+ // 追加表具
330
+ addUserFile() {
331
+ this.userinfo.userfiles.push({})
332
+ },
333
+ // 保存档案
334
+ async saveUserFile() {
335
+ // 检查必填项
336
+ for (let i = 0; i < this.userinfo.userfiles.length; i++) {
337
+ let userfile = this.userinfo.userfiles[i]
338
+ if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
339
+ this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
340
+ return
341
+ }
342
+ if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
343
+ this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
344
+ return
345
+ }
346
+ if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
347
+ this.$showMessage(`表具${i+1}表号没有填写!!!`)
348
+ return
349
+ }
350
+ }
351
+ let data = {
352
+ user: this.$login.f,
353
+ useradders: this.useradders,
354
+ userinfo: this.userinfo,
355
+ selectdata: this.selectdata
356
+ }
357
+ let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
358
+ resolveMsg: null,
359
+ rejectMsg: '表具添加失败!!!'
360
+ })
361
+ this.$dispatch('breakControl', this.selectdata)
362
+ },
363
+ // 检查表号是否存在
364
+ async meternumberValidate(i) {
365
+ if (!this.userinfo.userfiles[i].f_gasbrand_id) {
366
+ this.userinfo.userfiles[i].f_meternumber = ''
367
+ this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
368
+ return
369
+ }
370
+ if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
371
+ let data = {
372
+ f_meternumber: this.userinfo.userfiles[i].f_meternumber,
373
+ f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
374
+ }
375
+ if (this.userinfo.userfiles[i].f_userfiles_id) {
376
+ data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
377
+ }
378
+ let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
379
+ resolveMsg: null,
380
+ rejectMsg: '表号验证失败!!'
381
+ })
382
+ if (res.data) {
383
+ this.userinfo.userfiles[i].f_meternumber = ''
384
+ this.$showAlert('表号已存在!!', 'warning', 3000)
385
+ }
386
+ }
387
+ },
388
+ // 选择气表型号
389
+ gasmodelChange(i) {
390
+ if (this.userinfo.userfiles[i].gasmodel) {
391
+ this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
392
+ }
393
+ },
394
+ // 选择气表品牌
395
+ gasbrandChange(i) {
396
+ // 清空已保存的气表型号
397
+ this.userinfo.userfiles[i].f_gasmodel_id = null
398
+ this.userinfo.userfiles[i].gasmodel = null
399
+
400
+ if (this.userinfo.userfiles[i].gasbrand) {
401
+ // 气表品牌id
402
+ this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
403
+ // 气表分类
404
+ this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
405
+ }
406
+ },
407
+ // 打开安装明细
408
+ async showUserFileModal (row) {
409
+ this.useradders = row
410
+
411
+ let http = new HttpResetClass()
412
+ let data = {
413
+ condition: `f_userinfo_id = '${row.f_userinfo_id}'`
414
+ }
415
+ let res = await http.load('POST', 'rs/logic/getUserinfoAndUserfiles', {data:data}, {
416
+ resolveMsg: null,
417
+ rejectMsg: null
418
+ })
419
+
420
+ this.userinfo = res.data
421
+
422
+ // 已有表具的 气表信息补充
423
+ for (let i = 0; i < this.userinfo.userfiles.length; i++) {
424
+ for (const item of this.meterbrands) {
425
+ if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
426
+ // this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
427
+ Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
428
+ }
429
+ }
430
+ if (this.userinfo.userfiles[i].gasbrand) {
431
+ for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
432
+ if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
433
+ // this.userinfo.userfiles[i].gasmodel = item.value
434
+ Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
435
+ }
436
+ }
437
+ }
438
+ }
439
+
440
+ this.showUserFile = true
441
+ },
442
+ // 获取气表品牌
443
+ async getMeterbrands() {
444
+ let http = new HttpResetClass()
445
+ let data = {
446
+ f_orgid: this.$login.f.orgid
447
+ }
448
+ let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
449
+ resolveMsg: null,
450
+ rejectMsg: null
451
+ })
452
+ this.meterbrands = res.data
453
+ },
454
+ async notInstalled () {
455
+ let http = new HttpResetClass()
456
+ let data = {
457
+ condition: `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '待开通'`
458
+ }
459
+ let res = await http.load(
460
+ 'POST',
461
+ 'rs/sql/countApplyUserinfo',
462
+ {data: data},
463
+ {
464
+ resolveMsg: null,
465
+ rejectMsg: '安装数量查询失败!!!'
466
+ })
467
+
468
+ for (const item of this.selectdata.fields) {
469
+ if (item.label === '已安装户数') {
470
+ item.value = this.selectdata.f_apply_count - res.data[0].num
471
+ }
472
+ if (item.label === '未安装户数') {
473
+ item.value = res.data[0].num
474
+ }
475
+ }
476
+ },
477
+ searchCondition (args) {
478
+ var tablestate=''
479
+ if(this.selectdata.f_sub_state==='完工'){
480
+ tablestate='正常'
481
+ }else{
482
+ tablestate='待开通'
483
+ }
484
+ if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建') {
485
+ args.condition = args.condition + `and ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
486
+ } else {
487
+ args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
488
+ }
489
+ this.model.search(args.condition, args.model,tablestate)
490
+ },
491
+ // 查询
492
+ async search () {
493
+ this.$refs.cp.$refs.cri.search()
494
+ },
495
+ // 关闭安装明细
496
+ closeUserFile() {
497
+ this.showUserFile = false
498
+ this.useradders = null
499
+ this.userinfo = {}
500
+ this.search()
501
+ },
502
+ // 关闭文件上传对话框
503
+ closeFile() {
504
+ this.showWork = false
505
+ this.showFile = false
506
+ // 将选的文件清空
507
+ this.$refs.file.$el.querySelector('input').value = ''
508
+ this.search()
509
+ }
510
+ },
511
+ events: {
512
+ 'beforeFileUpload' (file) {
513
+ this.showWork = true
514
+ },
515
+ async 'onFileUpload'(file, result) {
516
+ let data = {
517
+ selectdata: this.selectdata,
518
+ filepath: result.f_downloadpath,
519
+ user: this.$login.f
520
+ }
521
+ try {
522
+ let res = await this.$resetpost(`rs/logic/importAddInstallationDetails`, {data: data}, {
523
+ resolveMsg: null,
524
+ rejectMsg: '导入失败!!!',
525
+ silent: true
526
+ }, 0)
527
+ } catch (e) {
528
+ this.closeFile()
529
+ }
530
+ this.$dispatch('breakControl', this.selectdata)
531
+ }
532
+ },
533
+ computed: {
534
+ pager () {
535
+ return this.selectdata.f_apply_type === '团购报建'
536
+ },
537
+ getCondition () {
538
+ let condition = `ua.f_process_id = '${this.selectdata.f_process_id}'`
539
+
540
+ return {
541
+ condition: condition
542
+ }
543
+ },
544
+ // 安装人
545
+ installperson() {
546
+ return function (f_install_person) {
547
+ if (isEmpty(f_install_person)) {
548
+ return this.$login.f.name
549
+ }
550
+ return f_install_person
551
+ }
552
+ },
553
+ installdate() {
554
+ return function (f_install_date) {
555
+ if (isEmpty(f_install_date)) {
556
+ return new Date().Format('yyyy-MM-dd HH:mm:ss')
557
+ }
558
+ return f_install_date
559
+ }
560
+ },
561
+ // 表向
562
+ aroundmeters() {
563
+ return this.$appdata.getParam('左右表')
564
+ },
565
+ // 安装位置
566
+ positions() {
567
+ return this.$appdata.getParam('安装位置')
568
+ }
569
+ },
570
+ watch: {
571
+ }
572
+ }
573
+ </script>
574
+ <style scoped>
575
+ .head-but{
576
+ margin-left: 5px;
577
+ height: 34px;
578
+ /*background-color: #6aa6e2;*/
579
+ border-radius: 4px;
580
+ font-family: PingFang;
581
+ color: #ffffff;
582
+ }
583
+ /*清除model中的浮动*/
584
+ .clearfix:after,.clearfix:before{
585
+ display: table;
586
+ }
587
+ .clearfix:after{
588
+ clear: both;
589
+ }
590
+ .input_view{
591
+ padding: 8px;
592
+ background-color: #ffffff;
593
+ border-radius: 2px;
594
+ border: solid 1px #c7c7c7!important;
595
+ color: #333333!important;
596
+ font-size: 15px!important;
597
+ }
598
+
599
+ .input_view[readonly]{
600
+ border: 1px solid #DDD!important;
601
+ color:#ACA899!important;
602
+ }
603
+ .input_view:disabled{
604
+ border: 1px solid #DDD!important;
605
+ color:#ACA899!important;
606
+ }
607
+ </style>