apply-clients 3.4.89-21 → 3.4.89-22

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