apply-clients 3.5.1 → 3.5.2

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 (44) hide show
  1. package/build/dev-server.js +142 -133
  2. package/package.json +118 -118
  3. package/src/App.vue +26 -21
  4. package/src/applyAndroid.js +58 -58
  5. package/src/components/android/AppSign.vue +152 -152
  6. package/src/components/android/AppTakePic.vue +181 -181
  7. package/src/components/android/Process/AppChargeList.vue +224 -224
  8. package/src/components/android/Process/AppExplorationUser.vue +508 -508
  9. package/src/components/product/Install/ContractCharge.vue +210 -210
  10. package/src/filiale/fugou/android/AppChargeManagement.vue +625 -625
  11. package/src/filiale/hongda/pc/FunctionServiceControl.vue +526 -525
  12. package/src/filiale/qianneng/android/AppExplorationUser.vue +441 -441
  13. package/src/filiale/qianneng/android/AppServiceControl.vue +1608 -1608
  14. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +685 -685
  15. package/src/filiale/qianneng/pc/ExplorationSelect.vue +492 -492
  16. package/src/filiale/qianneng/pc/FunctionServiceControl.vue +521 -521
  17. package/src/filiale/qianneng/pc/InstallInfoSelect.vue +392 -392
  18. package/src/filiale/qianneng/pc/InstallationDetails.vue +561 -561
  19. package/src/filiale/qianneng/pc/ServiceControl.vue +1351 -1340
  20. package/src/filiale/qianneng/pc/SupervisoryList.vue +344 -344
  21. package/src/filiale/qianneng/pc/SupervisoryServiceControl.vue +871 -871
  22. package/src/filiale/qianneng/pc/chargeManagement.vue +656 -656
  23. package/src/filiale/qianneng/pc/printactivatecard.vue +295 -295
  24. package/src/filiale/qianneng/pc/supplementalAgreement.vue +344 -344
  25. package/src/filiale/yangchunboneng/android/AppAddMaterialScience.vue +390 -390
  26. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +120 -120
  27. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +552 -552
  28. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +507 -507
  29. package/src/filiale/yangchunboneng/android/AppInstallationDetails.vue +492 -492
  30. package/src/filiale/yangchunboneng/android/AppOtherChargeManagement.vue +116 -116
  31. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1552 -1552
  32. package/src/filiale/yangchunboneng/android/AppTakePic.vue +181 -181
  33. package/src/filiale/yangchunboneng/android/chargesList.vue +170 -170
  34. package/src/filiale/yangchunboneng/android.js +16 -16
  35. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +496 -496
  36. package/src/filiale/yangchunboneng/pc/InstallationDetails.vue +609 -609
  37. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +1782 -1782
  38. package/src/filiale/yangchunboneng/pc/ServiceView.vue +1005 -1005
  39. package/src/filiale/yangchunboneng/pc/addMaterialScience.vue +374 -374
  40. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +960 -960
  41. package/src/filiale/yangchunboneng/pc/devicesManagement.vue +511 -511
  42. package/src/filiale/yangchunboneng/pc/otherchargeManagement.vue +214 -214
  43. package/src/filiale/yangchunboneng/pc.js +17 -17
  44. package/src/main.js +23 -23
@@ -1,552 +1,552 @@
1
- <template>
2
-
3
- <div>
4
- <list :model="model" partial='list'>
5
- <div partial class="auto app-text panel">
6
- <div class="panel-body panel-self">
7
- <div class="row">
8
- <p class="col-xs-3 text-left font"><b>表&emsp;&emsp;号</b></p>
9
- <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_meternumber }}</p>
10
- </div>
11
- <div class="row">
12
- <p class="col-xs-3 text-left font"><b>气表品牌</b></p>
13
- <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_gasbrand }}</p>
14
- </div>
15
- <div class="row">
16
- <p class="col-xs-3 text-left font"><b>气表型号</b></p>
17
- <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_gasmodel }}</p>
18
- </div>
19
- <div class="row">
20
- <p class="col-xs-3 text-left font"><b>安装位置</b></p>
21
- <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_position }}</p>
22
- </div>
23
- <div class="row">
24
- <p class="col-xs-3 text-left font"><b>安&ensp;装&ensp;人</b></p>
25
- <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_install_person }}</p>
26
- </div>
27
- <div class="row">
28
- <p class="col-xs-3 text-left font"><b>安装时间</b></p>
29
- <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_install_date }}</p>
30
- </div>
31
- <div class="row">
32
- <p class="col-xs-3 text-left font"><b>设&ensp;备&ensp;数</b></p>
33
- <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.amount }}</p>
34
- </div>
35
- <div class="row text-right">
36
- <button
37
- type="button"
38
- class="btn btn-info"
39
- @click="$parent.$parent.openDevicesModal(row)"
40
- >
41
- {{$parent.$parent.mark === 1 ? '查看' : '添加设备'}}
42
- </button>
43
- </div>
44
- </div>
45
- </div>
46
- </list>
47
-
48
- <modal v-if="showDevices" :show.sync="showDevices" v-ref:modal :large="true" :backdrop="false" title="表具设备信息">
49
- <header slot="modal-header" class="modal-header">
50
- <button type="button" class="close" @click="closeDevices"><span>&times;</span></button>
51
- <h4 class="modal-title">表具设备信息</h4>
52
- </header>
53
- <article slot="modal-body" class="modal-body clearfix">
54
- <div v-for="(i, item) in userfile.devicesinfo" class="form-group col-xs-12 panel panel-info">
55
- <div class="panel-heading head row" style="background-color: #e8f4ff;margin-bottom: 10px">
56
- <div class="col-xs-6 text-left">设备{{$index+1}}信息</div>
57
- <div class="col-xs-6 text-right"><button
58
- class="btn btn-danger"
59
- v-if="!item.id"
60
- @click.prevent="deleteDevicesinfo(i)"
61
- >删除</button></div>
62
- </div>
63
- <div class="form-group row vertical-center">
64
- <label class="col-xs-4 control-label">设备类型:</label>
65
- <div class="col-xs-8">
66
- <input-select
67
- class="select select_list"
68
- :value.sync="item.f_devices_type"
69
- v-model="item.f_devices_type"
70
- :options="devicesType"
71
- :disable="mark === 1"
72
- :valueSingle="true"></input-select>
73
- </div>
74
- </div>
75
- <div class="form-group row vertical-center">
76
- <label class="col-xs-4 control-label">规格型号:</label>
77
- <div class="col-xs-8">
78
- <input-select
79
- class="select select_list"
80
- :value.sync="item.f_brand"
81
- v-model="item.f_brand"
82
- :options="brandList"
83
- :disable="mark === 1"
84
- :valueSingle="true"></input-select>
85
- </div>
86
- </div>
87
- <div class="form-group row vertical-center">
88
- <label class="col-xs-4 control-label">通气状态:</label>
89
- <div class="col-xs-8">
90
- <input-select
91
- class="select select_list"
92
- :value.sync="item.f_userinfodevices_state"
93
- v-model="item.f_userinfodevices_state"
94
- :options="userinfodevicesstates"
95
- :disable="mark === 1"
96
- :valueSingle="true"></input-select>
97
- </div>
98
- </div>
99
- <div class="form-group row vertical-center">
100
- <label class="col-xs-4 control-label">生产厂家:</label>
101
- <div class="col-xs-8">
102
- <input class="form-control input_view" style=""
103
- placeholder="安装人"
104
- v-model="item.f_manufactor"
105
- :value.sync="item.f_manufactor"
106
- />
107
- </div>
108
- </div>
109
- <!-- <div class="form-group row vertical-center">
110
- <label class="col-xs-4 control-label">生产日期:</label>
111
- <div class="col-xs-8">
112
- <datepicker
113
- placeholder="生产日期"
114
- :value.sync="item.f_make_date"
115
- v-model="item.f_make_date"
116
- format="yyyy-MM-dd HH:mm:ss"
117
- @change="expireDate($index)"
118
- :disabled="mark === 1">
119
- </datepicker>
120
- </div>
121
- </div>-->
122
- <div class="form-group row vertical-center">
123
- <label class="col-xs-4 control-label">设备数量:</label>
124
- <div class="col-xs-8">
125
- <input class="form-control input_view" style="" type="number"
126
- placeholder="设备数量"
127
- v-model="item.f_devices_num"
128
- :value="item.f_devices_num"
129
- :readonly="mark === 1"/>
130
- </div>
131
- </div>
132
- <div class="form-group row vertical-center">
133
- <label class="col-xs-4 control-label">安装位置:</label>
134
- <div class="col-xs-8">
135
- <input class="form-control input_view" style=""
136
- placeholder="安装位置"
137
- v-model="item.f_install_position"
138
- :value.sync="item.f_install_position"
139
- />
140
- </div>
141
- </div>
142
- <div class="form-group row vertical-center">
143
- <label class="col-xs-4 control-label">安&ensp;装&ensp;人:</label>
144
- <div class="col-xs-8">
145
- <input class="form-control input_view" style=""
146
- placeholder="安装人"
147
- v-model="item.f_input_person"
148
- :value.sync="installperson(item.f_input_person)"
149
- readonly/>
150
- </div>
151
- </div>
152
- <div class="form-group row vertical-center">
153
- <label class="col-xs-4 control-label">安装日期:</label>
154
- <div class="col-xs-8">
155
- <input class="form-control input_view" style=""
156
- placeholder="安装日期"
157
- v-model="item.f_input_date"
158
- :value="installdate(item.f_input_date)"
159
- readonly/>
160
- <!-- <datepicker-->
161
- <!-- placeholder="安装日期"-->
162
- <!-- :value.sync="item.f_input_date"-->
163
- <!-- v-model="item.f_input_date"-->
164
- <!-- format="yyyy-MM-dd HH:mm:ss"-->
165
- <!-- :disabled="mark === 1">-->
166
- <!-- </datepicker>-->
167
- </div>
168
- </div>
169
-
170
- <!--
171
- <div class="form-group row vertical-center">
172
- <label class="col-xs-4 control-label">设备类型:</label>
173
- <div class="col-xs-8">
174
- <input-select
175
- class="select select_list"
176
- :value.sync="item.f_devices_type"
177
- v-model="item.f_devices_type"
178
- :options="devicesType"
179
- :disable="mark === 1"
180
- :valueSingle="true"></input-select>
181
- </div>
182
- </div>
183
- <div class="form-group row vertical-center">
184
- <label class="col-xs-4 control-label">设备编号:</label>
185
- <div class="col-xs-8">
186
- <input class="form-control input_view" style=""
187
- placeholder="设备编号"
188
- v-model="item.f_devices_no"
189
- :value="item.f_devices_no"
190
- :readonly="mark === 1"/>
191
- </div>
192
- </div>
193
- <div class="form-group row vertical-center">
194
- <label class="col-xs-4 control-label">设备品牌:</label>
195
- <div class="col-xs-8">
196
- <input class="form-control input_view" style=""
197
- placeholder="设备品牌"
198
- v-model="item.f_brand"
199
- :value="item.f_brand"
200
- :readonly="mark === 1"/>
201
- </div>
202
- </div>
203
- <div class="form-group row vertical-center">
204
- <label class="col-xs-4 control-label">安&ensp;装&ensp;人:</label>
205
- <div class="col-xs-8">
206
- <input class="form-control input_view" style=""
207
- placeholder="安装人"
208
- v-model="item.f_input_person"
209
- :value="item.f_input_person"
210
- :readonly="mark === 1"/>
211
- </div>
212
- </div>
213
- <div class="form-group row vertical-center">
214
- <label class="col-xs-4 control-label">设备型号:</label>
215
- <div class="col-xs-8">
216
- <input class="form-control input_view" style=""
217
- placeholder="设备型号"
218
- v-model="item.f_devices_model"
219
- :value="item.f_devices_model"
220
- :readonly="mark === 1"/>
221
- </div>
222
- </div>
223
- <div class="form-group row vertical-center">
224
- <label class="col-xs-4 control-label">安装日期:</label>
225
- <div class="col-xs-8">
226
- <datepicker
227
- placeholder="安装日期"
228
- :value.sync="item.f_input_date"
229
- v-model="item.f_input_date"
230
- format="yyyy-MM-dd HH:mm:ss"
231
- :disabled="mark === 1">
232
- </datepicker>
233
- </div>
234
- </div>
235
- <div class="form-group row vertical-center">
236
- <label class="col-xs-4 control-label">生产日期:</label>
237
- <div class="col-xs-8">
238
- <datepicker
239
- placeholder="生产日期"
240
- :value.sync="item.f_make_date"
241
- v-model="item.f_make_date"
242
- format="yyyy-MM-dd HH:mm:ss"
243
- @change="expireDate($index)"
244
- :disabled="mark === 1">
245
- </datepicker>
246
- </div>
247
- </div>
248
- <div class="form-group row vertical-center">
249
- <label class="col-xs-4 control-label">使用年限:</label>
250
- <div class="col-xs-8">
251
- <input class="form-control input_view" style="" type="number"
252
- placeholder="使用年限"
253
- v-model="item.f_service_life"
254
- :value="item.f_service_life"
255
- @change="expireDate($index)"
256
- :readonly="mark === 1"/>
257
- </div>
258
- </div>
259
- <div class="form-group row vertical-center">
260
- <label class="col-xs-4 control-label">到期日期:</label>
261
- <div class="col-xs-8">
262
- <datepicker
263
- placeholder="到期日期"
264
- :value.sync="item.f_expire_date"
265
- v-model="item.f_expire_date"
266
- format="yyyy-MM-dd HH:mm:ss"
267
- disabled>
268
- </datepicker>
269
- </div>
270
- </div>
271
- <div class="form-group row vertical-center">
272
- <label class="col-xs-4 control-label">设备数量:</label>
273
- <div class="col-xs-8">
274
- <input class="form-control input_view" style="" type="number"
275
- placeholder="设备数量"
276
- v-model="item.f_devices_num"
277
- :value="item.f_devices_num"
278
- :readonly="mark === 1"/>
279
- </div>
280
- </div>
281
- <div class="form-group row vertical-center">
282
- <label class="col-xs-4 control-label">安装日期:</label>
283
- <div class="col-xs-8">
284
- <datepicker
285
- placeholder="连接管安装日期"
286
- :value.sync="item.f_pipeinstall_date"
287
- v-model="item.f_pipeinstall_date"
288
- format="yyyy-MM-dd HH:mm:ss"
289
- :disabled="mark === 1">
290
- </datepicker>
291
- </div>
292
- </div>
293
- <div class="form-group row vertical-center">
294
- <label class="col-xs-4 control-label">到期日期:</label>
295
- <div class="col-xs-8">
296
- <datepicker
297
- placeholder="连接管到期日期"
298
- :value.sync="item.f_pipeexpire_date"
299
- v-model="item.f_pipeexpire_date"
300
- format="yyyy-MM-dd HH:mm:ss"
301
- :disabled="mark === 1">
302
- </datepicker>
303
- </div>
304
- </div>
305
- <div class="form-group row vertical-center">
306
- <label class="col-xs-4 control-label">管道类型:</label>
307
- <div class="col-xs-8">
308
- <input-select
309
- class="select select_list"
310
- :value.sync="item.f_pipe_type"
311
- v-model="item.f_pipe_type"
312
- :options="pipeType"
313
- :disable="mark === 1"
314
- :valueSingle="true">
315
- </input-select>
316
- </div>
317
- </div>
318
- <div class="form-group row vertical-center">
319
- <label class="col-xs-4 control-label">设备状态:</label>
320
- <div class="col-xs-8">
321
- <input-select
322
- class="select select_list"
323
- :value.sync="item.f_userinfodevices_state"
324
- v-model="item.f_userinfodevices_state"
325
- :options="userdevicestate"
326
- :disable="mark === 1"
327
- :valueSingle="true"></input-select>
328
- </div>
329
- </div>
330
- <div class="form-group row vertical-center">
331
- <label class="col-xs-4 control-label">购买方式:</label>
332
- <div class="col-xs-8">
333
- <input-select
334
- class="select select_list"
335
- :value.sync="item.WatchPurchase"
336
- v-model="item.WatchPurchase"
337
- :options="WatchPurchases"
338
- :disable="mark === 1"
339
- :valueSingle="true"></input-select>
340
- </div>
341
- </div>
342
- <div class="form-group row vertical-center">
343
- <label class="col-xs-4 control-label">安装方式:</label>
344
- <div class="col-xs-8">
345
- <input-select
346
- class="select select_list"
347
- :value.sync="item.f_install_type"
348
- v-model="item.f_install_type"
349
- :options="installType"
350
- :disable="mark === 1"
351
- :valueSingle="true"></input-select>
352
- </div>
353
- </div>
354
- <div class="form-group row vertical-center">
355
- <label class="col-xs-4 control-label">备&emsp;&emsp;注:</label>
356
- <div class="col-xs-8">
357
- <textarea
358
- class="form-control input_view" rows="2" style="width: 100%;height: 100%"
359
- v-model="item.f_comments" :value="item.f_comments"
360
- :disabled="mark === 1"
361
- ></textarea>
362
- </div>
363
- </div>
364
- -->
365
- </div>
366
-
367
- </article>
368
- <footer slot="modal-footer" class="modal-footer">
369
- <button type="button" class="btn btn-primary" @click="pushDevice()">添加设备</button>
370
- <button type="button" class="btn btn-primary" @click="addDevice()">确认</button>
371
- </footer>
372
- </modal>
373
- </div>
374
-
375
- </template>
376
- <script>
377
- import {getNowDate,isEmpty} from '../../../components/Util'
378
- import {PagedList} from 'vue-client'
379
- import Vue from 'vue'
380
- import {HttpResetClass} from 'vue-client'
381
- // Date格式化
382
- Date.prototype.Format = function (fmt) {
383
- var o = {
384
- 'M+': this.getMonth() + 1, // 月份
385
- 'd+': this.getDate(), // 日
386
- 'H+': this.getHours(), // 小时
387
- 'm+': this.getMinutes(), // 分
388
- 's+': this.getSeconds(), // 秒
389
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
390
- 'S': this.getMilliseconds() // 毫秒
391
- }
392
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
393
- for (var k in o) {
394
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
395
- }
396
- return fmt
397
- }
398
-
399
- export default {
400
- title: '设备管理',
401
- props: {
402
- selectdata: {
403
- type: Object
404
- },
405
- mark: {
406
- type: Number,
407
- default: 0
408
- }
409
- },
410
- data () {
411
- return {
412
- model: {
413
- rows: null
414
- },
415
- userfile: null,
416
- showDevices: false,
417
- userinfodevicesstates:[{label:'已通气',value:'已通气'},{label:'未通气',value:'未通气'}]
418
- }
419
- },
420
- ready () {
421
- this.search()
422
- },
423
- methods: {
424
- deleteDevicesinfo (index) {
425
- this.userfile.devicesinfo.splice(index, 1)
426
- },
427
- async addDevice () {
428
- let data = {
429
- selectdata: this.selectdata,
430
- userfile: this.userfile,
431
- user: Vue.user
432
- // user: {"f_show_department_name":"","parentname":"营业厅","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"8","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/综合业务.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"综合业务","link":"param-manage","hasright":true,"resourcetype":"function","parentid":"284","children":[],"selfid":"303","name":"参数管理","templatename":"functionedit","id":"302","position":"3","fullname":"资源管理.功能模块.客服系统.综合业务.参数管理","fullid":"3.21.27.284.302","tablename":"t_function"}],"selfid":"285","name":"综合业务","templatename":"functionedit","id":"284","position":"5","fullname":"资源管理.功能模块.客服系统.综合业务","fullid":"3.21.27.284","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"11","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=406b-1630284429661-03197","rolesnames":"营业厅报装,设计部报装,市场部报装,工程部报装,运营部报装,财务部报装","roles":"34751,34757,34763,34769,34775,35326","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.营业厅.报建测试","dir":"zhoukou","userid":"406b-1630284429661-03197","accesstime":"1630409418399","parentid":"34715","f_show_rolestr":"","fullids":"30463.10101.34715.34781.","number":"10101","f_idnumber":{},"selfid":"34782","templatename":"useredit","logindate":"2021-08-30 16:36:39","id":"34781","state":"在职","tablename":"t_user","deptype":"部门","depids":"34715","loginid":"15","imgid":{},"f_user_telephone":{},"rolestr":"营业厅报装,设计部报装,市场部报装,工程部报装,运营部报装,财务部报装","deps":"营业厅","loginnum":"0","f_age":{},"resourcetype":"user","orgid":"10101","f_department_name":"营业厅","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":{},"loginip":"192.168.66.138","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","f_role_name":"营业厅报装 设计部报装 市场部报装 工程部报装 运营部报装 财务部报装 ","f_allArea":[],"f_gasman":[],"lics":[]}
433
- }
434
- let res = await this.$resetpost(
435
- `${this.$androidUtil.getProxyUrl()}/rs/logic/applyAddDevice`,
436
- {data: data},
437
- {resolveMsg: null, rejectMsg: '设备添加失败!!!'}
438
- )
439
-
440
- this.closeDevices()
441
- this.$dispatch('breakControl')
442
- },
443
- pushDevice () {
444
- this.userfile.devicesinfo.push({})
445
- },
446
- expireDate (index) {
447
-
448
- if (isEmpty(this.userfile.devicesinfo[index].f_make_date) || isEmpty(this.userfile.devicesinfo[index].f_service_life)) {
449
- return
450
- }
451
- let f_make_date = new Date(this.userfile.devicesinfo[index].f_make_date)
452
- let year = (f_make_date.getFullYear() - 0) + (this.userfile.devicesinfo[index].f_service_life - 0)
453
- let month = (f_make_date.getMonth() - 0) + 1
454
- let day = f_make_date.getDate()
455
-
456
- Vue.set(this.userfile.devicesinfo[index], 'f_expire_date', year + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day))
457
- },
458
- async openDevicesModal (row) {
459
- this.userfile = row
460
-
461
- let data = {
462
- tablename: 't_devices',
463
- condition: `f_userfiles_id = '${this.userfile.f_userfiles_id}'`
464
- }
465
- // let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data:data}, {
466
- // resolveMsg: null,
467
- // rejectMsg: '设备查询失败!!!'
468
- // })
469
- let res = await this.$resetpost(
470
- `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
471
- {data: data},
472
- {resolveMsg: null, rejectMsg: '设备查询失败!!!'}
473
- )
474
-
475
- Vue.set(this.userfile, 'devicesinfo', res.data)
476
-
477
- this.showDevices = true
478
- },
479
- async search () {
480
- var condition1=''
481
- if(this.selectdata.f_sub_state ==='完工'){
482
- condition1=`f_userinfo_id = '${this.selectdata.f_userinfo_id}' and f_table_state='正常'`
483
- }else{
484
- condition1=`f_userinfo_id = '${this.selectdata.f_userinfo_id}' and f_table_state='待开通'`
485
- }
486
- let http = new HttpResetClass()
487
- let data = {
488
- condition: condition1
489
- }
490
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getUserFilesAndDevicesAmount`, {data:data}, {
491
- resolveMsg: null,
492
- rejectMsg: '获取表具失败!!!'
493
- })
494
- this.model.rows = res.data
495
- },
496
- // 关闭对话框
497
- closeDevices() {
498
- this.showDevices = false
499
- this.userfile = null
500
-
501
- this.search()
502
- }
503
- },
504
- events: {
505
- },
506
- computed: {
507
- installperson() {
508
- return function (f_input_person) {
509
- if (isEmpty(f_input_person)) {
510
- return Vue.user.name
511
- }
512
- return f_input_person
513
- }
514
- },
515
- installdate() {
516
- return function (f_install_date) {
517
- if (isEmpty(f_install_date)) {
518
- return new Date().Format('yyyy-MM-dd HH:mm:ss')
519
- }
520
- return f_install_date
521
- }
522
- },
523
- installType() {
524
- return this.$appdata.getParam("安装方式")
525
- },
526
- WatchPurchases() {
527
- return this.$appdata.getParam("购买方式")
528
- },
529
- userdevicestate() {
530
- return this.$appdata.getParam("用户设备状态")
531
- },
532
- pipeType() {
533
- return this.$appdata.getParam("管道类型")
534
- },
535
- devicesType() {
536
- return this.$appdata.getParam("设备类型")
537
- },
538
- brandList() {
539
- return this.$appdata.getParam("规格型号")
540
- }
541
- },
542
- watch: {
543
- }
544
- }
545
- </script>
546
- <style scoped>
547
- .vertical-center {
548
- display: flex;
549
- align-items: center;
550
- text-align: center;
551
- }
552
- </style>
1
+ <template>
2
+
3
+ <div>
4
+ <list :model="model" partial='list'>
5
+ <div partial class="auto app-text panel">
6
+ <div class="panel-body panel-self">
7
+ <div class="row">
8
+ <p class="col-xs-3 text-left font"><b>表&emsp;&emsp;号</b></p>
9
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_meternumber }}</p>
10
+ </div>
11
+ <div class="row">
12
+ <p class="col-xs-3 text-left font"><b>气表品牌</b></p>
13
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_gasbrand }}</p>
14
+ </div>
15
+ <div class="row">
16
+ <p class="col-xs-3 text-left font"><b>气表型号</b></p>
17
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_gasmodel }}</p>
18
+ </div>
19
+ <div class="row">
20
+ <p class="col-xs-3 text-left font"><b>安装位置</b></p>
21
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_position }}</p>
22
+ </div>
23
+ <div class="row">
24
+ <p class="col-xs-3 text-left font"><b>安&ensp;装&ensp;人</b></p>
25
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_install_person }}</p>
26
+ </div>
27
+ <div class="row">
28
+ <p class="col-xs-3 text-left font"><b>安装时间</b></p>
29
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_install_date }}</p>
30
+ </div>
31
+ <div class="row">
32
+ <p class="col-xs-3 text-left font"><b>设&ensp;备&ensp;数</b></p>
33
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.amount }}</p>
34
+ </div>
35
+ <div class="row text-right">
36
+ <button
37
+ type="button"
38
+ class="btn btn-info"
39
+ @click="$parent.$parent.openDevicesModal(row)"
40
+ >
41
+ {{$parent.$parent.mark === 1 ? '查看' : '添加设备'}}
42
+ </button>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </list>
47
+
48
+ <modal v-if="showDevices" :show.sync="showDevices" v-ref:modal :large="true" :backdrop="false" title="表具设备信息">
49
+ <header slot="modal-header" class="modal-header">
50
+ <button type="button" class="close" @click="closeDevices"><span>&times;</span></button>
51
+ <h4 class="modal-title">表具设备信息</h4>
52
+ </header>
53
+ <article slot="modal-body" class="modal-body clearfix">
54
+ <div v-for="(i, item) in userfile.devicesinfo" class="form-group col-xs-12 panel panel-info">
55
+ <div class="panel-heading head row" style="background-color: #e8f4ff;margin-bottom: 10px">
56
+ <div class="col-xs-6 text-left">设备{{$index+1}}信息</div>
57
+ <div class="col-xs-6 text-right"><button
58
+ class="btn btn-danger"
59
+ v-if="!item.id"
60
+ @click.prevent="deleteDevicesinfo(i)"
61
+ >删除</button></div>
62
+ </div>
63
+ <div class="form-group row vertical-center">
64
+ <label class="col-xs-4 control-label">设备类型:</label>
65
+ <div class="col-xs-8">
66
+ <input-select
67
+ class="select select_list"
68
+ :value.sync="item.f_devices_type"
69
+ v-model="item.f_devices_type"
70
+ :options="devicesType"
71
+ :disable="mark === 1"
72
+ :valueSingle="true"></input-select>
73
+ </div>
74
+ </div>
75
+ <div class="form-group row vertical-center">
76
+ <label class="col-xs-4 control-label">规格型号:</label>
77
+ <div class="col-xs-8">
78
+ <input-select
79
+ class="select select_list"
80
+ :value.sync="item.f_brand"
81
+ v-model="item.f_brand"
82
+ :options="brandList"
83
+ :disable="mark === 1"
84
+ :valueSingle="true"></input-select>
85
+ </div>
86
+ </div>
87
+ <div class="form-group row vertical-center">
88
+ <label class="col-xs-4 control-label">通气状态:</label>
89
+ <div class="col-xs-8">
90
+ <input-select
91
+ class="select select_list"
92
+ :value.sync="item.f_userinfodevices_state"
93
+ v-model="item.f_userinfodevices_state"
94
+ :options="userinfodevicesstates"
95
+ :disable="mark === 1"
96
+ :valueSingle="true"></input-select>
97
+ </div>
98
+ </div>
99
+ <div class="form-group row vertical-center">
100
+ <label class="col-xs-4 control-label">生产厂家:</label>
101
+ <div class="col-xs-8">
102
+ <input class="form-control input_view" style=""
103
+ placeholder="安装人"
104
+ v-model="item.f_manufactor"
105
+ :value.sync="item.f_manufactor"
106
+ />
107
+ </div>
108
+ </div>
109
+ <!-- <div class="form-group row vertical-center">
110
+ <label class="col-xs-4 control-label">生产日期:</label>
111
+ <div class="col-xs-8">
112
+ <datepicker
113
+ placeholder="生产日期"
114
+ :value.sync="item.f_make_date"
115
+ v-model="item.f_make_date"
116
+ format="yyyy-MM-dd HH:mm:ss"
117
+ @change="expireDate($index)"
118
+ :disabled="mark === 1">
119
+ </datepicker>
120
+ </div>
121
+ </div>-->
122
+ <div class="form-group row vertical-center">
123
+ <label class="col-xs-4 control-label">设备数量:</label>
124
+ <div class="col-xs-8">
125
+ <input class="form-control input_view" style="" type="number"
126
+ placeholder="设备数量"
127
+ v-model="item.f_devices_num"
128
+ :value="item.f_devices_num"
129
+ :readonly="mark === 1"/>
130
+ </div>
131
+ </div>
132
+ <div class="form-group row vertical-center">
133
+ <label class="col-xs-4 control-label">安装位置:</label>
134
+ <div class="col-xs-8">
135
+ <input class="form-control input_view" style=""
136
+ placeholder="安装位置"
137
+ v-model="item.f_install_position"
138
+ :value.sync="item.f_install_position"
139
+ />
140
+ </div>
141
+ </div>
142
+ <div class="form-group row vertical-center">
143
+ <label class="col-xs-4 control-label">安&ensp;装&ensp;人:</label>
144
+ <div class="col-xs-8">
145
+ <input class="form-control input_view" style=""
146
+ placeholder="安装人"
147
+ v-model="item.f_input_person"
148
+ :value.sync="installperson(item.f_input_person)"
149
+ readonly/>
150
+ </div>
151
+ </div>
152
+ <div class="form-group row vertical-center">
153
+ <label class="col-xs-4 control-label">安装日期:</label>
154
+ <div class="col-xs-8">
155
+ <input class="form-control input_view" style=""
156
+ placeholder="安装日期"
157
+ v-model="item.f_input_date"
158
+ :value="installdate(item.f_input_date)"
159
+ readonly/>
160
+ <!-- <datepicker-->
161
+ <!-- placeholder="安装日期"-->
162
+ <!-- :value.sync="item.f_input_date"-->
163
+ <!-- v-model="item.f_input_date"-->
164
+ <!-- format="yyyy-MM-dd HH:mm:ss"-->
165
+ <!-- :disabled="mark === 1">-->
166
+ <!-- </datepicker>-->
167
+ </div>
168
+ </div>
169
+
170
+ <!--
171
+ <div class="form-group row vertical-center">
172
+ <label class="col-xs-4 control-label">设备类型:</label>
173
+ <div class="col-xs-8">
174
+ <input-select
175
+ class="select select_list"
176
+ :value.sync="item.f_devices_type"
177
+ v-model="item.f_devices_type"
178
+ :options="devicesType"
179
+ :disable="mark === 1"
180
+ :valueSingle="true"></input-select>
181
+ </div>
182
+ </div>
183
+ <div class="form-group row vertical-center">
184
+ <label class="col-xs-4 control-label">设备编号:</label>
185
+ <div class="col-xs-8">
186
+ <input class="form-control input_view" style=""
187
+ placeholder="设备编号"
188
+ v-model="item.f_devices_no"
189
+ :value="item.f_devices_no"
190
+ :readonly="mark === 1"/>
191
+ </div>
192
+ </div>
193
+ <div class="form-group row vertical-center">
194
+ <label class="col-xs-4 control-label">设备品牌:</label>
195
+ <div class="col-xs-8">
196
+ <input class="form-control input_view" style=""
197
+ placeholder="设备品牌"
198
+ v-model="item.f_brand"
199
+ :value="item.f_brand"
200
+ :readonly="mark === 1"/>
201
+ </div>
202
+ </div>
203
+ <div class="form-group row vertical-center">
204
+ <label class="col-xs-4 control-label">安&ensp;装&ensp;人:</label>
205
+ <div class="col-xs-8">
206
+ <input class="form-control input_view" style=""
207
+ placeholder="安装人"
208
+ v-model="item.f_input_person"
209
+ :value="item.f_input_person"
210
+ :readonly="mark === 1"/>
211
+ </div>
212
+ </div>
213
+ <div class="form-group row vertical-center">
214
+ <label class="col-xs-4 control-label">设备型号:</label>
215
+ <div class="col-xs-8">
216
+ <input class="form-control input_view" style=""
217
+ placeholder="设备型号"
218
+ v-model="item.f_devices_model"
219
+ :value="item.f_devices_model"
220
+ :readonly="mark === 1"/>
221
+ </div>
222
+ </div>
223
+ <div class="form-group row vertical-center">
224
+ <label class="col-xs-4 control-label">安装日期:</label>
225
+ <div class="col-xs-8">
226
+ <datepicker
227
+ placeholder="安装日期"
228
+ :value.sync="item.f_input_date"
229
+ v-model="item.f_input_date"
230
+ format="yyyy-MM-dd HH:mm:ss"
231
+ :disabled="mark === 1">
232
+ </datepicker>
233
+ </div>
234
+ </div>
235
+ <div class="form-group row vertical-center">
236
+ <label class="col-xs-4 control-label">生产日期:</label>
237
+ <div class="col-xs-8">
238
+ <datepicker
239
+ placeholder="生产日期"
240
+ :value.sync="item.f_make_date"
241
+ v-model="item.f_make_date"
242
+ format="yyyy-MM-dd HH:mm:ss"
243
+ @change="expireDate($index)"
244
+ :disabled="mark === 1">
245
+ </datepicker>
246
+ </div>
247
+ </div>
248
+ <div class="form-group row vertical-center">
249
+ <label class="col-xs-4 control-label">使用年限:</label>
250
+ <div class="col-xs-8">
251
+ <input class="form-control input_view" style="" type="number"
252
+ placeholder="使用年限"
253
+ v-model="item.f_service_life"
254
+ :value="item.f_service_life"
255
+ @change="expireDate($index)"
256
+ :readonly="mark === 1"/>
257
+ </div>
258
+ </div>
259
+ <div class="form-group row vertical-center">
260
+ <label class="col-xs-4 control-label">到期日期:</label>
261
+ <div class="col-xs-8">
262
+ <datepicker
263
+ placeholder="到期日期"
264
+ :value.sync="item.f_expire_date"
265
+ v-model="item.f_expire_date"
266
+ format="yyyy-MM-dd HH:mm:ss"
267
+ disabled>
268
+ </datepicker>
269
+ </div>
270
+ </div>
271
+ <div class="form-group row vertical-center">
272
+ <label class="col-xs-4 control-label">设备数量:</label>
273
+ <div class="col-xs-8">
274
+ <input class="form-control input_view" style="" type="number"
275
+ placeholder="设备数量"
276
+ v-model="item.f_devices_num"
277
+ :value="item.f_devices_num"
278
+ :readonly="mark === 1"/>
279
+ </div>
280
+ </div>
281
+ <div class="form-group row vertical-center">
282
+ <label class="col-xs-4 control-label">安装日期:</label>
283
+ <div class="col-xs-8">
284
+ <datepicker
285
+ placeholder="连接管安装日期"
286
+ :value.sync="item.f_pipeinstall_date"
287
+ v-model="item.f_pipeinstall_date"
288
+ format="yyyy-MM-dd HH:mm:ss"
289
+ :disabled="mark === 1">
290
+ </datepicker>
291
+ </div>
292
+ </div>
293
+ <div class="form-group row vertical-center">
294
+ <label class="col-xs-4 control-label">到期日期:</label>
295
+ <div class="col-xs-8">
296
+ <datepicker
297
+ placeholder="连接管到期日期"
298
+ :value.sync="item.f_pipeexpire_date"
299
+ v-model="item.f_pipeexpire_date"
300
+ format="yyyy-MM-dd HH:mm:ss"
301
+ :disabled="mark === 1">
302
+ </datepicker>
303
+ </div>
304
+ </div>
305
+ <div class="form-group row vertical-center">
306
+ <label class="col-xs-4 control-label">管道类型:</label>
307
+ <div class="col-xs-8">
308
+ <input-select
309
+ class="select select_list"
310
+ :value.sync="item.f_pipe_type"
311
+ v-model="item.f_pipe_type"
312
+ :options="pipeType"
313
+ :disable="mark === 1"
314
+ :valueSingle="true">
315
+ </input-select>
316
+ </div>
317
+ </div>
318
+ <div class="form-group row vertical-center">
319
+ <label class="col-xs-4 control-label">设备状态:</label>
320
+ <div class="col-xs-8">
321
+ <input-select
322
+ class="select select_list"
323
+ :value.sync="item.f_userinfodevices_state"
324
+ v-model="item.f_userinfodevices_state"
325
+ :options="userdevicestate"
326
+ :disable="mark === 1"
327
+ :valueSingle="true"></input-select>
328
+ </div>
329
+ </div>
330
+ <div class="form-group row vertical-center">
331
+ <label class="col-xs-4 control-label">购买方式:</label>
332
+ <div class="col-xs-8">
333
+ <input-select
334
+ class="select select_list"
335
+ :value.sync="item.WatchPurchase"
336
+ v-model="item.WatchPurchase"
337
+ :options="WatchPurchases"
338
+ :disable="mark === 1"
339
+ :valueSingle="true"></input-select>
340
+ </div>
341
+ </div>
342
+ <div class="form-group row vertical-center">
343
+ <label class="col-xs-4 control-label">安装方式:</label>
344
+ <div class="col-xs-8">
345
+ <input-select
346
+ class="select select_list"
347
+ :value.sync="item.f_install_type"
348
+ v-model="item.f_install_type"
349
+ :options="installType"
350
+ :disable="mark === 1"
351
+ :valueSingle="true"></input-select>
352
+ </div>
353
+ </div>
354
+ <div class="form-group row vertical-center">
355
+ <label class="col-xs-4 control-label">备&emsp;&emsp;注:</label>
356
+ <div class="col-xs-8">
357
+ <textarea
358
+ class="form-control input_view" rows="2" style="width: 100%;height: 100%"
359
+ v-model="item.f_comments" :value="item.f_comments"
360
+ :disabled="mark === 1"
361
+ ></textarea>
362
+ </div>
363
+ </div>
364
+ -->
365
+ </div>
366
+
367
+ </article>
368
+ <footer slot="modal-footer" class="modal-footer">
369
+ <button type="button" class="btn btn-primary" @click="pushDevice()">添加设备</button>
370
+ <button type="button" class="btn btn-primary" @click="addDevice()">确认</button>
371
+ </footer>
372
+ </modal>
373
+ </div>
374
+
375
+ </template>
376
+ <script>
377
+ import {getNowDate,isEmpty} from '../../../components/Util'
378
+ import {PagedList} from 'vue-client'
379
+ import Vue from 'vue'
380
+ import {HttpResetClass} from 'vue-client'
381
+ // Date格式化
382
+ Date.prototype.Format = function (fmt) {
383
+ var o = {
384
+ 'M+': this.getMonth() + 1, // 月份
385
+ 'd+': this.getDate(), // 日
386
+ 'H+': this.getHours(), // 小时
387
+ 'm+': this.getMinutes(), // 分
388
+ 's+': this.getSeconds(), // 秒
389
+ 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
390
+ 'S': this.getMilliseconds() // 毫秒
391
+ }
392
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
393
+ for (var k in o) {
394
+ if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
395
+ }
396
+ return fmt
397
+ }
398
+
399
+ export default {
400
+ title: '设备管理',
401
+ props: {
402
+ selectdata: {
403
+ type: Object
404
+ },
405
+ mark: {
406
+ type: Number,
407
+ default: 0
408
+ }
409
+ },
410
+ data () {
411
+ return {
412
+ model: {
413
+ rows: null
414
+ },
415
+ userfile: null,
416
+ showDevices: false,
417
+ userinfodevicesstates:[{label:'已通气',value:'已通气'},{label:'未通气',value:'未通气'}]
418
+ }
419
+ },
420
+ ready () {
421
+ this.search()
422
+ },
423
+ methods: {
424
+ deleteDevicesinfo (index) {
425
+ this.userfile.devicesinfo.splice(index, 1)
426
+ },
427
+ async addDevice () {
428
+ let data = {
429
+ selectdata: this.selectdata,
430
+ userfile: this.userfile,
431
+ user: Vue.user
432
+ // user: {"f_show_department_name":"","parentname":"营业厅","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"8","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/综合业务.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"综合业务","link":"param-manage","hasright":true,"resourcetype":"function","parentid":"284","children":[],"selfid":"303","name":"参数管理","templatename":"functionedit","id":"302","position":"3","fullname":"资源管理.功能模块.客服系统.综合业务.参数管理","fullid":"3.21.27.284.302","tablename":"t_function"}],"selfid":"285","name":"综合业务","templatename":"functionedit","id":"284","position":"5","fullname":"资源管理.功能模块.客服系统.综合业务","fullid":"3.21.27.284","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"11","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=406b-1630284429661-03197","rolesnames":"营业厅报装,设计部报装,市场部报装,工程部报装,运营部报装,财务部报装","roles":"34751,34757,34763,34769,34775,35326","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.营业厅.报建测试","dir":"zhoukou","userid":"406b-1630284429661-03197","accesstime":"1630409418399","parentid":"34715","f_show_rolestr":"","fullids":"30463.10101.34715.34781.","number":"10101","f_idnumber":{},"selfid":"34782","templatename":"useredit","logindate":"2021-08-30 16:36:39","id":"34781","state":"在职","tablename":"t_user","deptype":"部门","depids":"34715","loginid":"15","imgid":{},"f_user_telephone":{},"rolestr":"营业厅报装,设计部报装,市场部报装,工程部报装,运营部报装,财务部报装","deps":"营业厅","loginnum":"0","f_age":{},"resourcetype":"user","orgid":"10101","f_department_name":"营业厅","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":{},"loginip":"192.168.66.138","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","f_role_name":"营业厅报装 设计部报装 市场部报装 工程部报装 运营部报装 财务部报装 ","f_allArea":[],"f_gasman":[],"lics":[]}
433
+ }
434
+ let res = await this.$resetpost(
435
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/applyAddDevice`,
436
+ {data: data},
437
+ {resolveMsg: null, rejectMsg: '设备添加失败!!!'}
438
+ )
439
+
440
+ this.closeDevices()
441
+ this.$dispatch('breakControl')
442
+ },
443
+ pushDevice () {
444
+ this.userfile.devicesinfo.push({})
445
+ },
446
+ expireDate (index) {
447
+
448
+ if (isEmpty(this.userfile.devicesinfo[index].f_make_date) || isEmpty(this.userfile.devicesinfo[index].f_service_life)) {
449
+ return
450
+ }
451
+ let f_make_date = new Date(this.userfile.devicesinfo[index].f_make_date)
452
+ let year = (f_make_date.getFullYear() - 0) + (this.userfile.devicesinfo[index].f_service_life - 0)
453
+ let month = (f_make_date.getMonth() - 0) + 1
454
+ let day = f_make_date.getDate()
455
+
456
+ Vue.set(this.userfile.devicesinfo[index], 'f_expire_date', year + '-' + (month < 10 ? '0' + month : month) + '-' + (day < 10 ? '0' + day : day))
457
+ },
458
+ async openDevicesModal (row) {
459
+ this.userfile = row
460
+
461
+ let data = {
462
+ tablename: 't_devices',
463
+ condition: `f_userfiles_id = '${this.userfile.f_userfiles_id}'`
464
+ }
465
+ // let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data:data}, {
466
+ // resolveMsg: null,
467
+ // rejectMsg: '设备查询失败!!!'
468
+ // })
469
+ let res = await this.$resetpost(
470
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
471
+ {data: data},
472
+ {resolveMsg: null, rejectMsg: '设备查询失败!!!'}
473
+ )
474
+
475
+ Vue.set(this.userfile, 'devicesinfo', res.data)
476
+
477
+ this.showDevices = true
478
+ },
479
+ async search () {
480
+ var condition1=''
481
+ if(this.selectdata.f_sub_state ==='完工'){
482
+ condition1=`f_userinfo_id = '${this.selectdata.f_userinfo_id}' and f_table_state='正常'`
483
+ }else{
484
+ condition1=`f_userinfo_id = '${this.selectdata.f_userinfo_id}' and f_table_state='待开通'`
485
+ }
486
+ let http = new HttpResetClass()
487
+ let data = {
488
+ condition: condition1
489
+ }
490
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getUserFilesAndDevicesAmount`, {data:data}, {
491
+ resolveMsg: null,
492
+ rejectMsg: '获取表具失败!!!'
493
+ })
494
+ this.model.rows = res.data
495
+ },
496
+ // 关闭对话框
497
+ closeDevices() {
498
+ this.showDevices = false
499
+ this.userfile = null
500
+
501
+ this.search()
502
+ }
503
+ },
504
+ events: {
505
+ },
506
+ computed: {
507
+ installperson() {
508
+ return function (f_input_person) {
509
+ if (isEmpty(f_input_person)) {
510
+ return Vue.user.name
511
+ }
512
+ return f_input_person
513
+ }
514
+ },
515
+ installdate() {
516
+ return function (f_install_date) {
517
+ if (isEmpty(f_install_date)) {
518
+ return new Date().Format('yyyy-MM-dd HH:mm:ss')
519
+ }
520
+ return f_install_date
521
+ }
522
+ },
523
+ installType() {
524
+ return this.$appdata.getParam("安装方式")
525
+ },
526
+ WatchPurchases() {
527
+ return this.$appdata.getParam("购买方式")
528
+ },
529
+ userdevicestate() {
530
+ return this.$appdata.getParam("用户设备状态")
531
+ },
532
+ pipeType() {
533
+ return this.$appdata.getParam("管道类型")
534
+ },
535
+ devicesType() {
536
+ return this.$appdata.getParam("设备类型")
537
+ },
538
+ brandList() {
539
+ return this.$appdata.getParam("规格型号")
540
+ }
541
+ },
542
+ watch: {
543
+ }
544
+ }
545
+ </script>
546
+ <style scoped>
547
+ .vertical-center {
548
+ display: flex;
549
+ align-items: center;
550
+ text-align: center;
551
+ }
552
+ </style>