apply-clients 7.1.36-yuchuan-58 → 7.1.36-yuchuan-60

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 (68) hide show
  1. package/android.html +27 -27
  2. package/build/dev-server.js +187 -187
  3. package/package.json +1 -1
  4. package/src/apply.js +166 -166
  5. package/src/applyAndroid.js +98 -98
  6. package/src/components/android/AppSign.vue +232 -232
  7. package/src/components/android/Ignition/VentilationIgnition.vue +409 -409
  8. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +472 -472
  9. package/src/components/android/Process/AppExplorationUser.vue +454 -454
  10. package/src/components/android/Process/AppServiceControl.vue +1434 -1434
  11. package/src/components/android/Process/Processes/AppInstallationDetails.vue +1026 -1026
  12. package/src/components/android/Process/Processes/newAppInstallationDetails.vue +671 -671
  13. package/src/components/android/SealBind.vue +382 -382
  14. package/src/components/android/SealManage.vue +278 -278
  15. package/src/components/android/Sign/AppSignTask.vue +183 -183
  16. package/src/components/android/Supervisory/AppProcessSupervisory.vue +344 -344
  17. package/src/components/android/Task/Build/BuildTsak.vue +117 -117
  18. package/src/components/android/Task/BuildIgnition/BuildIgnition.vue +114 -114
  19. package/src/components/android/Task/GuanXianJianShe/AppExplorationGuanXian.vue +317 -317
  20. package/src/components/android/Task/RepairFromSend/RepairFrom.vue +124 -124
  21. package/src/components/android/Task/RepairFromSend/RepairSend.vue +124 -124
  22. package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +431 -431
  23. package/src/components/android/Task/Survey/SurveyTsak.vue +141 -141
  24. package/src/components/android/Task/yiban/AppShowDone.vue +442 -442
  25. package/src/components/android/newPackage/customerServiceManager.vue +218 -218
  26. package/src/components/android/newPackage/projectPrice.vue +218 -218
  27. package/src/components/product/ApplyCharge/ApplyChargeList.vue +1101 -1101
  28. package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +236 -236
  29. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +325 -325
  30. package/src/components/product/ApplyGuanXian/GuanXianExplorationUser.vue +142 -142
  31. package/src/components/product/ApplyGuanXian/GuanXianExplorationsupervisory.vue +166 -166
  32. package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +119 -119
  33. package/src/components/product/ApplyGuanXian/GuanXiansupsupervisory.vue +140 -140
  34. package/src/components/product/ApplyMap/AppMapLocation.vue +829 -829
  35. package/src/components/product/ApplyMap/ApplyMapInputSearch.vue +335 -335
  36. package/src/components/product/ChongZheng/ApplyChongZhengList.vue +417 -417
  37. package/src/components/product/Function/InstallFunction.vue +132 -132
  38. package/src/components/product/Function/InstallInfoSelect.vue +374 -374
  39. package/src/components/product/Ignition/IgnitionDispatch.vue +90 -90
  40. package/src/components/product/Ignition/IgnitionListManage.vue +604 -604
  41. package/src/components/product/Ignition/IgnitionRecord.vue +380 -380
  42. package/src/components/product/InsuranceApply/InsuranceReport.vue +188 -188
  43. package/src/components/product/List/ShowAllActivity.vue +541 -541
  44. package/src/components/product/List/ShowDevices.vue +279 -279
  45. package/src/components/product/Print/BuildOrder/buildOrderList.vue +446 -446
  46. package/src/components/product/Process/ExplorationSelect.vue +593 -593
  47. package/src/components/product/Process/ExplorationUser.vue +154 -154
  48. package/src/components/product/Process/New1ExplorationUser.vue +196 -196
  49. package/src/components/product/Process/NewExplorationSelect.vue +587 -587
  50. package/src/components/product/Process/NewExplorationUser.vue +216 -216
  51. package/src/components/product/Process/Processes/chargeManagement.vue +714 -714
  52. package/src/components/product/Process/Processes/selectApply.vue +250 -250
  53. package/src/components/product/Process/Processes/selectChaiChuUserinfo.vue +230 -230
  54. package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -241
  55. package/src/components/product/Process/Processes/selectUserinfo.vue +234 -234
  56. package/src/components/product/Process/Service/ServiceControl.vue +2223 -2223
  57. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  58. package/src/components/product/ServiceView.vue +644 -644
  59. package/src/components/product/Stop/StopApplyList.vue +224 -224
  60. package/src/components/product/Supervisory/NewSupervisoryhCart.vue +175 -175
  61. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +593 -593
  62. package/src/components/product/Supervisory/SupervisoryControl.vue +114 -114
  63. package/src/components/product/Supervisory/SupervisoryList.vue +586 -586
  64. package/src/components/product/Supervisory/SupervisoryhCart.vue +120 -120
  65. package/src/components/product/Supervisory/YiBanSupervisoryControl.vue +111 -111
  66. package/src/components/product/Supervisory/YiBanSupervisoryList.vue +4 -0
  67. package/src/components/product/VueUtils/ApplyUpload.vue +303 -303
  68. package/src/main.js +27 -27
@@ -1,472 +1,472 @@
1
- <template>
2
- <div class="form-horizontal select-overspread p-10">
3
- <validator name="v1" v-if="selectdata.f_process_id !== null">
4
- <div class="col-xs-12 form-group app-input auto">
5
- <label class="control-label-justify">用户编号</label>
6
- <div class="col-xs-8">
7
- <input class="" style="width: 100%" type="input"
8
- v-model="selectdata.f_userinfo_id"
9
- :value="selectdata.f_userinfo_id"
10
- :readonly="true"
11
- />
12
- </div>
13
- </div>
14
- <div class="col-xs-12 form-group app-input auto">
15
- <label class="control-label-justify">用户名</label>
16
- <div class="col-xs-8">
17
- <input class="" style="width: 100%" type="input"
18
- v-model="selectdata.f_user_name"
19
- :value="selectdata.f_user_name"
20
- :readonly="true"
21
- />
22
- </div>
23
- </div>
24
- <div class="col-xs-12 form-group app-input auto">
25
- <label class="control-label-justify">电话</label>
26
- <div class="col-xs-8">
27
- <input class="" style="width: 100%" type="input"
28
- v-model="selectdata.f_user_phone"
29
- :value="selectdata.f_user_phone"
30
- :readonly="true"
31
- />
32
- </div>
33
- </div>
34
- <div class="col-xs-12 form-group app-input auto">
35
- <label class="control-label-justify">地址</label>
36
- <div class="col-xs-8">
37
- <input class="" style="width: 100%" type="input"
38
- v-model="selectdata.f_address + selectdata.f_address_detail"
39
- :readonly="true"
40
- />
41
- </div>
42
- </div>
43
- <div class="col-xs-12 form-group app-input auto">
44
- <label class="control-label-justify">派单时间</label>
45
- <div class="col-xs-8">
46
- <input class="" style="width: 100%" type="input"
47
- v-model="selectdata.f_date"
48
- :value="selectdata.f_date"
49
- :readonly="true"
50
- />
51
- </div>
52
- </div>
53
- <div class="col-xs-12 form-group app-input auto">
54
- <label class="control-label-justify">表号</label>
55
- <div class="col-xs-8">
56
- <input class="" style="width: 100%" type="input"
57
- v-model="selectdata.f_meternumber"
58
- :value="selectdata.f_meternumber"
59
- :readonly="true"
60
- />
61
- </div>
62
- </div>
63
- <div class="col-xs-12 form-group app-input auto">
64
- <label class="control-label-justify">气表分类</label>
65
- <div class="col-xs-8">
66
- <input class="" style="width: 100%" type="input"
67
- v-model="selectdata.f_meter_classify"
68
- :value="selectdata.f_meter_classify"
69
- :readonly="true"
70
- />
71
- </div>
72
- </div>
73
- <div class="col-xs-12 form-group app-input auto">
74
- <label class="control-label-justify">气表品牌</label>
75
- <div class="col-xs-8">
76
- <input class="" style="width: 100%" type="input"
77
- v-model="selectdata.f_meter_brand"
78
- :value="selectdata.f_meter_brand"
79
- :readonly="true"
80
- />
81
- </div>
82
- </div>
83
- <div class="col-xs-12 form-group app-input auto">
84
- <label class="control-label-justify">气表型号</label>
85
- <div class="col-xs-8">
86
- <input class="" style="width: 100%" type="input"
87
- v-model="selectdata.f_meter_style"
88
- :value="selectdata.f_meter_style"
89
- :readonly="true"
90
- />
91
- </div>
92
- </div>
93
- <div class="col-xs-12 form-group app-input auto">
94
- <label class="control-label-justify">有无隐患</label>
95
- <div class="col-xs-8">
96
- <input-select
97
- class="select select_list"
98
- :value.sync="model.f_ignition_trouble"
99
- v-model="model.f_ignition_trouble"
100
- :options="ignition_trouble"
101
- :valueSingle="true"></input-select>
102
- </div>
103
- </div>
104
- <div class="col-xs-12 form-group app-input auto">
105
- <label class="control-label-justify">点火备注</label>
106
- <div class="col-xs-8">
107
- <input class="" style="width: 100%" type="input"
108
- v-model="model.f_ignition_remarks"
109
- :value="model.f_ignition_remarks"
110
- :readonly="false"
111
- />
112
- </div>
113
- </div>
114
- <div class="col-xs-12 auto">
115
- <accordion one-at-a-time="true">
116
- <panel header="设备查看" :is-open="false" type="primary">
117
- <app-devices-management :selectdata="selectdata" :mark = 1 ></app-devices-management>
118
- </panel>
119
- <panel header="拍照" :is-open="false" type="primary">
120
- <app-take-pic
121
- :blobid="selectdata.f_blobid"
122
- :defname="selectdata.defname"
123
- :isdelete="true"
124
- :istakepic="true"
125
- :istype="true">
126
-
127
- </app-take-pic>
128
- </panel>
129
- </accordion>
130
- </div>
131
- <div class="col-xs-12 form-group auto" v-if="selectdata.f_meter_classify === '物联网表'">
132
- <div class="col-xs-5">
133
- <button style="width: 100%" class="btn btn-success" @click.prevent="openModal('退出强制状态')">退出强制状态</button>
134
- </div>
135
- <div class="col-xs-5 col-xs-offset-2">
136
- <button style="width: 100%" class="btn btn-danger" @click.prevent="openModal('关阀')">强制关阀</button>
137
- </div>
138
- </div>
139
- <div class="col-xs-12 auto">
140
- <accordion one-at-a-time="true">
141
- <panel header="用户签字" :is-open="false" type="primary">
142
- <survey-user-sign
143
- :title="'用户签字'"
144
- :selectdata="selectdata">
145
- </survey-user-sign>
146
- </panel>
147
- </accordion>
148
- </div>
149
- <div class="col-xs-12 form-group auto">
150
- <button style="width: 100%" class="btn btn-warning" :disabled="!$v1.valid" @click.prevent="saveApplyVentilate">保存</button>
151
- <button v-if="model.f_ignition_trouble === '有隐患'" style="width: 100%" class="btn btn-danger" :disabled="!$v1.valid" @click.prevent="cleanTrouble">消除隐患</button>
152
- <button style="width: 100%" class="btn btn-success" :disabled="!$v1.valid" @click.prevent="applyVentilate">提交</button>
153
- </div>
154
- </validator>
155
- </div>
156
-
157
- <validator name="v">
158
- <modal v-if="showModal" :show.sync="showModal" v-ref:modal :large="true" :backdrop="false">
159
- <header slot="modal-header" class="modal-header">
160
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
161
- <h4 class="modal-title">{{type}}操作</h4>
162
- </header>
163
- <article slot="modal-body" class="modal-body clearfix">
164
- <div class="form-group row vertical-center">
165
- <div class="col-xs-12" v-if="type !== '关阀'" :class="[$v.reason.required ? 'apply-has-error' : '']">
166
- <input
167
- type="checkbox"
168
- class=""
169
- :value.sync="boxReason"
170
- v-model="boxReason"
171
- :value="boxReason"
172
- @change="changeAllChecked()"
173
- ></input>{{ reasonOptions[0].label }}
174
- </div>
175
- <div class="col-xs-12" :class="[$v.reason.required ? 'apply-has-error' : '']">
176
- <textarea rows="2" style="width: 100%;height: 100%"
177
- :placeholder="type+'操作原因'" v-validate:reason = "['required']"
178
- v-model="reason" :value="reason"
179
- ></textarea>
180
- </div>
181
- </div>
182
- </article>
183
- <footer slot="modal-footer" class="modal-footer">
184
- <button type="button" class="btn btn-primary" @click="onOffValve" :disabled="!$v.valid">确认</button>
185
- </footer>
186
- </modal>
187
- </validator>
188
- </template>
189
- <script>
190
- import {HttpResetClass, PagedList} from 'vue-client'
191
- import Vue from 'vue'
192
- import {isEmpty} from '../../Util'
193
-
194
- export default {
195
- title: '通气点火',
196
- props: ['selectdata'],
197
- data () {
198
- return {
199
- showModal: false,
200
- type: null,
201
- reason: null,
202
- boxReason: null,
203
- reasonOptions:[{label: '具备通气条件', value: '具备通气条件'}],
204
- model: {
205
- f_ignition_trouble: '',
206
- f_ignition_remarks: ''
207
- },
208
- ignition_trouble:[{label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}]
209
- }
210
- },
211
- ready () {
212
- this.search()
213
- },
214
- methods: {
215
- changeAllChecked(){
216
- if (this.boxReason){
217
- this.reason = this.reasonOptions[0].value
218
- }else {
219
- this.reason = ''
220
- }
221
- },
222
- async applyVentilate () {
223
- let res = await this.$showMessage('是否需要继续此次操作')
224
- if (res === 'cancel') {
225
- return
226
- }else{
227
- if (this.model.f_ignition_trouble === '有隐患'){
228
- this.$showMessage("隐患未消除,无法提交")
229
- return
230
- }
231
- let http = new HttpResetClass()
232
- let data = {
233
- selectdata: this.selectdata,
234
- user: Vue.user
235
- }
236
- let res = await http.load(
237
- 'POST',
238
- `${this.$androidUtil.getProxyUrl()}/rs/logic/applyVentilate`,
239
- {data: data},
240
- {resolveMsg: null, rejectMsg: `操作失败!!!`}
241
- )
242
- // 返回上层
243
- this.$dispatch('confirm')
244
- }
245
- },
246
- async saveApplyVentilate () {
247
- let res = await this.$showMessage('是否需要继续此次操作')
248
- if (res === 'cancel') {
249
- return
250
- }else{
251
- let http = new HttpResetClass()
252
- let data = {
253
- selectdata: this.selectdata,
254
- user: Vue.user,
255
- model:this.model
256
- }
257
- let res = await http.load(
258
- 'POST',
259
- `${this.$androidUtil.getProxyUrl()}/rs/logic/saveApplyVentilate`,
260
- {data: data},
261
- {resolveMsg: null, rejectMsg: `操作失败!!!`}
262
- )
263
- // 刷新
264
- this.$dispatch('confirm')
265
- }
266
-
267
- },
268
- async cleanTrouble () {
269
- let http = new HttpResetClass()
270
- let data = {
271
- selectdata: this.selectdata,
272
- model:this.model
273
- }
274
-
275
- let res = await http.load(
276
- 'POST',
277
- `${this.$androidUtil.getProxyUrl()}/rs/logic/cleanTrouble`,
278
- {data: data},
279
- {resolveMsg: null, rejectMsg: `清除隐患操作失败!!!`}
280
- )
281
-
282
- // 返回上层
283
- this.$dispatch('confirm')
284
- },
285
- async search(){
286
- console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>", this.selectdata.f_process_id + 'cs' + this.selectdata.defname + 'cs' + this.selectdata.f_apply_type)
287
- let data = {
288
- tablename: 't_ignition_record',
289
- condition: `f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
290
- }
291
- let http = new HttpResetClass()
292
- let res = await http.load(
293
- 'POST',
294
- `${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
295
- {data: data},
296
- {resolveMsg: null, rejectMsg: '点火记录查询失败!!!'}
297
- )
298
- if (res.data.length > 0) {
299
- this.model.f_ignition_trouble = res.data[0].f_ignition_trouble
300
- this.model.f_ignition_remarks = res.data[0].f_ignition_remarks
301
- }
302
- },
303
- async onOffValve () {
304
- let http = new HttpResetClass()
305
- let data = null
306
- let res = null
307
- let data2 = {
308
- condition: `ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
309
- }
310
- let http2 = new HttpResetClass()
311
- let res2 = await http2.load(
312
- 'POST',
313
- `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyUserinfo`,
314
- {data: data2},
315
- {resolveMsg: null, rejectMsg: '档案获取失败!!!'}
316
- )
317
- let userinfo = res2.data[0]
318
- if (this.type !== '退出强制状态') {
319
- data = {
320
- condition: `t_userfiles.f_meternumber = '${this.selectdata.f_meternumber}'`,
321
- contentData: {
322
- isOpen: this.type === '开阀' ? 1 : 0
323
- },
324
- inputtor: Vue.user.name,
325
- instructTitle: this.type,
326
- instructType: '阀门控制',
327
- meterBrandName: userinfo.f_alias
328
- }
329
- res = await http.load(
330
- 'POST',
331
- `${this.$androidUtil.getProxyUrl()}/rs/logic/saveInstruct`,
332
- {data: data},
333
- {resolveMsg: null, rejectMsg: `${this.type}失败!!!`}
334
- )
335
- }
336
-
337
- data = {
338
- f_user_id: this.selectdata.f_user_id,
339
- f_userinfo_id: this.selectdata.f_userinfo_id,
340
- record: {
341
- f_filiale: "榆林."+Vue.user.orgs,
342
- f_instruct_meta_data: this.type === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
343
- f_instruct_title: this.type === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
344
- f_instruct_type: '阀门控制',
345
- f_meternumber: this.selectdata.f_meternumber,
346
- f_operator: Vue.user.name,
347
- f_outlets: this.selectdata.f_outlets,
348
- f_reason: this.reason,
349
- f_user_id: this.selectdata.f_user_id,
350
- f_userinfo_id: this.selectdata.f_userinfo_id
351
- },
352
- state: this.type === '退出强制状态' ? 0 : 1
353
- }
354
-
355
- res = await http.load(
356
- 'POST',
357
- `${this.$androidUtil.getProxyUrl()}/rs/logic/updateNetWorkValve`,
358
- {data: data},
359
- {resolveMsg: '执行成功!!!', rejectMsg: `执行失败!!!`}
360
- )
361
-
362
- this.closeModal()
363
- },
364
- openModal (type) {
365
- this.type = type
366
- this.showModal = true
367
- },
368
- closeModal () {
369
- this.showModal = false
370
- this.type = null
371
-
372
- this.reason = null
373
- }
374
- },
375
- events: {
376
- },
377
- watch: {
378
- },
379
- computed: {
380
- }
381
- }
382
- </script>
383
- <style scoped>
384
- .apply-has-error {
385
- border-bottom: 1px solid #a94442;
386
- }
387
- .control-label-justify {
388
- width: 30%;
389
- text-align: justify;
390
- text-align-last: justify;
391
- font-family: PingFang-SC-Bold;
392
- float: left;
393
- }
394
- textarea {
395
- padding: 8px 10px;
396
- outline: none;
397
- margin: 0px;
398
- background: #FFF;
399
- border: 1px solid #ccc;
400
- }
401
- textarea[readonly]{
402
- color: #ACA899!important;
403
- background: #FFFFFF;
404
- border: none;
405
- outline: none;
406
- }
407
- textarea:disabled{
408
- color: #ACA899!important;
409
- background: #FFFFFF;
410
- border: none;
411
- outline: none;
412
- }
413
- .button_spacing{margin: 0px 0px 0px 10px;}
414
- </style>
415
- <style lang="less">
416
- .apply-has-error {
417
- border-bottom: 1px solid #a94442;
418
- }
419
- .app-input {
420
- label {
421
- float: left;
422
- }
423
- .select {
424
- button {
425
- border: none;
426
- outline: none;
427
- text-align: left;
428
- .btn-placeholder {
429
- color: #ACA899
430
- }
431
- }
432
- }
433
- .datepicker {
434
- .form-control:focus {
435
- border: none!important;
436
- outline: none!important;
437
- -webkit-box-shadow: none;
438
- box-shadow: none;
439
- }
440
- }
441
- textarea {
442
- padding: 8px 10px;
443
- border: none;
444
- outline: none;
445
- margin: 0px;
446
- }
447
- input[readonly]{
448
- color: #ACA899!important;
449
- background: #FFFFFF;
450
- border: none;
451
- outline: none;
452
- }
453
- input:disabled{
454
- color: #ACA899!important;
455
- background: #FFFFFF;
456
- border: none;
457
- outline: none;
458
- }
459
- textarea[readonly]{
460
- color: #ACA899!important;
461
- background: #FFFFFF;
462
- border: none;
463
- outline: none;
464
- }
465
- textarea:disabled{
466
- color: #ACA899!important;
467
- background: #FFFFFF;
468
- border: none;
469
- outline: none;
470
- }
471
- }
472
- </style>
1
+ <template>
2
+ <div class="form-horizontal select-overspread p-10">
3
+ <validator name="v1" v-if="selectdata.f_process_id !== null">
4
+ <div class="col-xs-12 form-group app-input auto">
5
+ <label class="control-label-justify">用户编号</label>
6
+ <div class="col-xs-8">
7
+ <input class="" style="width: 100%" type="input"
8
+ v-model="selectdata.f_userinfo_id"
9
+ :value="selectdata.f_userinfo_id"
10
+ :readonly="true"
11
+ />
12
+ </div>
13
+ </div>
14
+ <div class="col-xs-12 form-group app-input auto">
15
+ <label class="control-label-justify">用户名</label>
16
+ <div class="col-xs-8">
17
+ <input class="" style="width: 100%" type="input"
18
+ v-model="selectdata.f_user_name"
19
+ :value="selectdata.f_user_name"
20
+ :readonly="true"
21
+ />
22
+ </div>
23
+ </div>
24
+ <div class="col-xs-12 form-group app-input auto">
25
+ <label class="control-label-justify">电话</label>
26
+ <div class="col-xs-8">
27
+ <input class="" style="width: 100%" type="input"
28
+ v-model="selectdata.f_user_phone"
29
+ :value="selectdata.f_user_phone"
30
+ :readonly="true"
31
+ />
32
+ </div>
33
+ </div>
34
+ <div class="col-xs-12 form-group app-input auto">
35
+ <label class="control-label-justify">地址</label>
36
+ <div class="col-xs-8">
37
+ <input class="" style="width: 100%" type="input"
38
+ v-model="selectdata.f_address + selectdata.f_address_detail"
39
+ :readonly="true"
40
+ />
41
+ </div>
42
+ </div>
43
+ <div class="col-xs-12 form-group app-input auto">
44
+ <label class="control-label-justify">派单时间</label>
45
+ <div class="col-xs-8">
46
+ <input class="" style="width: 100%" type="input"
47
+ v-model="selectdata.f_date"
48
+ :value="selectdata.f_date"
49
+ :readonly="true"
50
+ />
51
+ </div>
52
+ </div>
53
+ <div class="col-xs-12 form-group app-input auto">
54
+ <label class="control-label-justify">表号</label>
55
+ <div class="col-xs-8">
56
+ <input class="" style="width: 100%" type="input"
57
+ v-model="selectdata.f_meternumber"
58
+ :value="selectdata.f_meternumber"
59
+ :readonly="true"
60
+ />
61
+ </div>
62
+ </div>
63
+ <div class="col-xs-12 form-group app-input auto">
64
+ <label class="control-label-justify">气表分类</label>
65
+ <div class="col-xs-8">
66
+ <input class="" style="width: 100%" type="input"
67
+ v-model="selectdata.f_meter_classify"
68
+ :value="selectdata.f_meter_classify"
69
+ :readonly="true"
70
+ />
71
+ </div>
72
+ </div>
73
+ <div class="col-xs-12 form-group app-input auto">
74
+ <label class="control-label-justify">气表品牌</label>
75
+ <div class="col-xs-8">
76
+ <input class="" style="width: 100%" type="input"
77
+ v-model="selectdata.f_meter_brand"
78
+ :value="selectdata.f_meter_brand"
79
+ :readonly="true"
80
+ />
81
+ </div>
82
+ </div>
83
+ <div class="col-xs-12 form-group app-input auto">
84
+ <label class="control-label-justify">气表型号</label>
85
+ <div class="col-xs-8">
86
+ <input class="" style="width: 100%" type="input"
87
+ v-model="selectdata.f_meter_style"
88
+ :value="selectdata.f_meter_style"
89
+ :readonly="true"
90
+ />
91
+ </div>
92
+ </div>
93
+ <div class="col-xs-12 form-group app-input auto">
94
+ <label class="control-label-justify">有无隐患</label>
95
+ <div class="col-xs-8">
96
+ <input-select
97
+ class="select select_list"
98
+ :value.sync="model.f_ignition_trouble"
99
+ v-model="model.f_ignition_trouble"
100
+ :options="ignition_trouble"
101
+ :valueSingle="true"></input-select>
102
+ </div>
103
+ </div>
104
+ <div class="col-xs-12 form-group app-input auto">
105
+ <label class="control-label-justify">点火备注</label>
106
+ <div class="col-xs-8">
107
+ <input class="" style="width: 100%" type="input"
108
+ v-model="model.f_ignition_remarks"
109
+ :value="model.f_ignition_remarks"
110
+ :readonly="false"
111
+ />
112
+ </div>
113
+ </div>
114
+ <div class="col-xs-12 auto">
115
+ <accordion one-at-a-time="true">
116
+ <panel header="设备查看" :is-open="false" type="primary">
117
+ <app-devices-management :selectdata="selectdata" :mark = 1 ></app-devices-management>
118
+ </panel>
119
+ <panel header="拍照" :is-open="false" type="primary">
120
+ <app-take-pic
121
+ :blobid="selectdata.f_blobid"
122
+ :defname="selectdata.defname"
123
+ :isdelete="true"
124
+ :istakepic="true"
125
+ :istype="true">
126
+
127
+ </app-take-pic>
128
+ </panel>
129
+ </accordion>
130
+ </div>
131
+ <div class="col-xs-12 form-group auto" v-if="selectdata.f_meter_classify === '物联网表'">
132
+ <div class="col-xs-5">
133
+ <button style="width: 100%" class="btn btn-success" @click.prevent="openModal('退出强制状态')">退出强制状态</button>
134
+ </div>
135
+ <div class="col-xs-5 col-xs-offset-2">
136
+ <button style="width: 100%" class="btn btn-danger" @click.prevent="openModal('关阀')">强制关阀</button>
137
+ </div>
138
+ </div>
139
+ <div class="col-xs-12 auto">
140
+ <accordion one-at-a-time="true">
141
+ <panel header="用户签字" :is-open="false" type="primary">
142
+ <survey-user-sign
143
+ :title="'用户签字'"
144
+ :selectdata="selectdata">
145
+ </survey-user-sign>
146
+ </panel>
147
+ </accordion>
148
+ </div>
149
+ <div class="col-xs-12 form-group auto">
150
+ <button style="width: 100%" class="btn btn-warning" :disabled="!$v1.valid" @click.prevent="saveApplyVentilate">保存</button>
151
+ <button v-if="model.f_ignition_trouble === '有隐患'" style="width: 100%" class="btn btn-danger" :disabled="!$v1.valid" @click.prevent="cleanTrouble">消除隐患</button>
152
+ <button style="width: 100%" class="btn btn-success" :disabled="!$v1.valid" @click.prevent="applyVentilate">提交</button>
153
+ </div>
154
+ </validator>
155
+ </div>
156
+
157
+ <validator name="v">
158
+ <modal v-if="showModal" :show.sync="showModal" v-ref:modal :large="true" :backdrop="false">
159
+ <header slot="modal-header" class="modal-header">
160
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
161
+ <h4 class="modal-title">{{type}}操作</h4>
162
+ </header>
163
+ <article slot="modal-body" class="modal-body clearfix">
164
+ <div class="form-group row vertical-center">
165
+ <div class="col-xs-12" v-if="type !== '关阀'" :class="[$v.reason.required ? 'apply-has-error' : '']">
166
+ <input
167
+ type="checkbox"
168
+ class=""
169
+ :value.sync="boxReason"
170
+ v-model="boxReason"
171
+ :value="boxReason"
172
+ @change="changeAllChecked()"
173
+ ></input>{{ reasonOptions[0].label }}
174
+ </div>
175
+ <div class="col-xs-12" :class="[$v.reason.required ? 'apply-has-error' : '']">
176
+ <textarea rows="2" style="width: 100%;height: 100%"
177
+ :placeholder="type+'操作原因'" v-validate:reason = "['required']"
178
+ v-model="reason" :value="reason"
179
+ ></textarea>
180
+ </div>
181
+ </div>
182
+ </article>
183
+ <footer slot="modal-footer" class="modal-footer">
184
+ <button type="button" class="btn btn-primary" @click="onOffValve" :disabled="!$v.valid">确认</button>
185
+ </footer>
186
+ </modal>
187
+ </validator>
188
+ </template>
189
+ <script>
190
+ import {HttpResetClass, PagedList} from 'vue-client'
191
+ import Vue from 'vue'
192
+ import {isEmpty} from '../../Util'
193
+
194
+ export default {
195
+ title: '通气点火',
196
+ props: ['selectdata'],
197
+ data () {
198
+ return {
199
+ showModal: false,
200
+ type: null,
201
+ reason: null,
202
+ boxReason: null,
203
+ reasonOptions:[{label: '具备通气条件', value: '具备通气条件'}],
204
+ model: {
205
+ f_ignition_trouble: '',
206
+ f_ignition_remarks: ''
207
+ },
208
+ ignition_trouble:[{label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}]
209
+ }
210
+ },
211
+ ready () {
212
+ this.search()
213
+ },
214
+ methods: {
215
+ changeAllChecked(){
216
+ if (this.boxReason){
217
+ this.reason = this.reasonOptions[0].value
218
+ }else {
219
+ this.reason = ''
220
+ }
221
+ },
222
+ async applyVentilate () {
223
+ let res = await this.$showMessage('是否需要继续此次操作')
224
+ if (res === 'cancel') {
225
+ return
226
+ }else{
227
+ if (this.model.f_ignition_trouble === '有隐患'){
228
+ this.$showMessage("隐患未消除,无法提交")
229
+ return
230
+ }
231
+ let http = new HttpResetClass()
232
+ let data = {
233
+ selectdata: this.selectdata,
234
+ user: Vue.user
235
+ }
236
+ let res = await http.load(
237
+ 'POST',
238
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/applyVentilate`,
239
+ {data: data},
240
+ {resolveMsg: null, rejectMsg: `操作失败!!!`}
241
+ )
242
+ // 返回上层
243
+ this.$dispatch('confirm')
244
+ }
245
+ },
246
+ async saveApplyVentilate () {
247
+ let res = await this.$showMessage('是否需要继续此次操作')
248
+ if (res === 'cancel') {
249
+ return
250
+ }else{
251
+ let http = new HttpResetClass()
252
+ let data = {
253
+ selectdata: this.selectdata,
254
+ user: Vue.user,
255
+ model:this.model
256
+ }
257
+ let res = await http.load(
258
+ 'POST',
259
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/saveApplyVentilate`,
260
+ {data: data},
261
+ {resolveMsg: null, rejectMsg: `操作失败!!!`}
262
+ )
263
+ // 刷新
264
+ this.$dispatch('confirm')
265
+ }
266
+
267
+ },
268
+ async cleanTrouble () {
269
+ let http = new HttpResetClass()
270
+ let data = {
271
+ selectdata: this.selectdata,
272
+ model:this.model
273
+ }
274
+
275
+ let res = await http.load(
276
+ 'POST',
277
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/cleanTrouble`,
278
+ {data: data},
279
+ {resolveMsg: null, rejectMsg: `清除隐患操作失败!!!`}
280
+ )
281
+
282
+ // 返回上层
283
+ this.$dispatch('confirm')
284
+ },
285
+ async search(){
286
+ console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>", this.selectdata.f_process_id + 'cs' + this.selectdata.defname + 'cs' + this.selectdata.f_apply_type)
287
+ let data = {
288
+ tablename: 't_ignition_record',
289
+ condition: `f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
290
+ }
291
+ let http = new HttpResetClass()
292
+ let res = await http.load(
293
+ 'POST',
294
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
295
+ {data: data},
296
+ {resolveMsg: null, rejectMsg: '点火记录查询失败!!!'}
297
+ )
298
+ if (res.data.length > 0) {
299
+ this.model.f_ignition_trouble = res.data[0].f_ignition_trouble
300
+ this.model.f_ignition_remarks = res.data[0].f_ignition_remarks
301
+ }
302
+ },
303
+ async onOffValve () {
304
+ let http = new HttpResetClass()
305
+ let data = null
306
+ let res = null
307
+ let data2 = {
308
+ condition: `ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
309
+ }
310
+ let http2 = new HttpResetClass()
311
+ let res2 = await http2.load(
312
+ 'POST',
313
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyUserinfo`,
314
+ {data: data2},
315
+ {resolveMsg: null, rejectMsg: '档案获取失败!!!'}
316
+ )
317
+ let userinfo = res2.data[0]
318
+ if (this.type !== '退出强制状态') {
319
+ data = {
320
+ condition: `t_userfiles.f_meternumber = '${this.selectdata.f_meternumber}'`,
321
+ contentData: {
322
+ isOpen: this.type === '开阀' ? 1 : 0
323
+ },
324
+ inputtor: Vue.user.name,
325
+ instructTitle: this.type,
326
+ instructType: '阀门控制',
327
+ meterBrandName: userinfo.f_alias
328
+ }
329
+ res = await http.load(
330
+ 'POST',
331
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/saveInstruct`,
332
+ {data: data},
333
+ {resolveMsg: null, rejectMsg: `${this.type}失败!!!`}
334
+ )
335
+ }
336
+
337
+ data = {
338
+ f_user_id: this.selectdata.f_user_id,
339
+ f_userinfo_id: this.selectdata.f_userinfo_id,
340
+ record: {
341
+ f_filiale: "榆林."+Vue.user.orgs,
342
+ f_instruct_meta_data: this.type === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
343
+ f_instruct_title: this.type === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
344
+ f_instruct_type: '阀门控制',
345
+ f_meternumber: this.selectdata.f_meternumber,
346
+ f_operator: Vue.user.name,
347
+ f_outlets: this.selectdata.f_outlets,
348
+ f_reason: this.reason,
349
+ f_user_id: this.selectdata.f_user_id,
350
+ f_userinfo_id: this.selectdata.f_userinfo_id
351
+ },
352
+ state: this.type === '退出强制状态' ? 0 : 1
353
+ }
354
+
355
+ res = await http.load(
356
+ 'POST',
357
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/updateNetWorkValve`,
358
+ {data: data},
359
+ {resolveMsg: '执行成功!!!', rejectMsg: `执行失败!!!`}
360
+ )
361
+
362
+ this.closeModal()
363
+ },
364
+ openModal (type) {
365
+ this.type = type
366
+ this.showModal = true
367
+ },
368
+ closeModal () {
369
+ this.showModal = false
370
+ this.type = null
371
+
372
+ this.reason = null
373
+ }
374
+ },
375
+ events: {
376
+ },
377
+ watch: {
378
+ },
379
+ computed: {
380
+ }
381
+ }
382
+ </script>
383
+ <style scoped>
384
+ .apply-has-error {
385
+ border-bottom: 1px solid #a94442;
386
+ }
387
+ .control-label-justify {
388
+ width: 30%;
389
+ text-align: justify;
390
+ text-align-last: justify;
391
+ font-family: PingFang-SC-Bold;
392
+ float: left;
393
+ }
394
+ textarea {
395
+ padding: 8px 10px;
396
+ outline: none;
397
+ margin: 0px;
398
+ background: #FFF;
399
+ border: 1px solid #ccc;
400
+ }
401
+ textarea[readonly]{
402
+ color: #ACA899!important;
403
+ background: #FFFFFF;
404
+ border: none;
405
+ outline: none;
406
+ }
407
+ textarea:disabled{
408
+ color: #ACA899!important;
409
+ background: #FFFFFF;
410
+ border: none;
411
+ outline: none;
412
+ }
413
+ .button_spacing{margin: 0px 0px 0px 10px;}
414
+ </style>
415
+ <style lang="less">
416
+ .apply-has-error {
417
+ border-bottom: 1px solid #a94442;
418
+ }
419
+ .app-input {
420
+ label {
421
+ float: left;
422
+ }
423
+ .select {
424
+ button {
425
+ border: none;
426
+ outline: none;
427
+ text-align: left;
428
+ .btn-placeholder {
429
+ color: #ACA899
430
+ }
431
+ }
432
+ }
433
+ .datepicker {
434
+ .form-control:focus {
435
+ border: none!important;
436
+ outline: none!important;
437
+ -webkit-box-shadow: none;
438
+ box-shadow: none;
439
+ }
440
+ }
441
+ textarea {
442
+ padding: 8px 10px;
443
+ border: none;
444
+ outline: none;
445
+ margin: 0px;
446
+ }
447
+ input[readonly]{
448
+ color: #ACA899!important;
449
+ background: #FFFFFF;
450
+ border: none;
451
+ outline: none;
452
+ }
453
+ input:disabled{
454
+ color: #ACA899!important;
455
+ background: #FFFFFF;
456
+ border: none;
457
+ outline: none;
458
+ }
459
+ textarea[readonly]{
460
+ color: #ACA899!important;
461
+ background: #FFFFFF;
462
+ border: none;
463
+ outline: none;
464
+ }
465
+ textarea:disabled{
466
+ color: #ACA899!important;
467
+ background: #FFFFFF;
468
+ border: none;
469
+ outline: none;
470
+ }
471
+ }
472
+ </style>