safecheck-client 3.0.33-50 → 3.0.33-51

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.
@@ -1,1410 +1,1410 @@
1
- <template>
2
- <form novalidate class="form-horizontal" style="width: 95%;margin: auto">
3
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
4
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
5
- <label class="control-label font text-left col-md-4 col-xs-4">备注</label>
6
- <div class="col-md-12 col-sm-12 col-xs-12">
7
- <textarea v-model="paper.f_repair_approved_note" class="form-control"></textarea>
8
- </div>
9
- </div>
10
- </div>
11
- <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
12
- <div class="text-center">
13
- <label class="font">总体安检照片请依次拍摄:</label>
14
- </div>
15
- <div class="col-md-12 col-sm-12 col-xs-12">
16
- <ol class="showIi">
17
- <li>1.燃气设施全景</li>
18
- <li>2.燃气表照片</li>
19
- <li>3.灶具照片</li>
20
- <li>4.其他照片</li>
21
- </ol>
22
- </div>
23
- </div>
24
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
25
- <label class="text-left font">总体安检照片</label>
26
-
27
- <div class="auto" :class="style__">
28
- <div class="panel" style="padding: 10px 10px 5px 10px;">
29
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
30
- <div class="row" style="height: 240px;overflow: scroll;top: 1px" >
31
- <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in paper.f_overall_imgs">
32
- <img-self :src="img.f_overall_path" alt="总体安检照片" :width="140" :height="170"></img-self>
33
- <img src="../../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)" style="width: 15px;margin-top: -80px" alt="">
34
- </div>
35
- </div>
36
- <div class="row text-right div-photo">
37
- <button type="button" name="button" class="btn btn-photo" @click="takePic('f_overall_path', '总体安检照片')">拍照</button>
38
- <!--<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_overall_path', '总体安检照片1')">拍照</button>-->
39
- <!--&nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_overall_path', img.f_overall_path)" style="width: 25%;"></img>-->
40
- </div>
41
- </div>
42
- </div>
43
- </div>
44
- </div>
45
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
46
- <label class="text-left font">总体隐患照片</label>
47
-
48
- <div class="auto" :class="style__">
49
- <div class="panel" style="padding: 10px 10px 5px 10px;">
50
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
51
- <div class="row" style="height: 240px;overflow: scroll;top: 1px" >
52
- <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in defectImgs">
53
- <img-self :src="img" alt="总体隐患照片" :width="140" :height="170"></img-self>
54
- <!-- <img src="../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)" style="width: 15px;margin-top: -80px" alt="">-->
55
- </div>
56
- </div>
57
- </div>
58
- </div>
59
- </div>
60
- </div>
61
- <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
62
- <div class="text-center">
63
- <label class="font">隐患汇总:</label>
64
- </div>
65
- <div class="col-md-12 col-sm-12 col-xs-12">
66
- <ol class="showIi">
67
- <li v-for="item in defectReason">{{ item.deviceitem }}</li>
68
- </ol>
69
- </div>
70
- </div>
71
- <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
72
- <div class="text-center">
73
- <label class="font">整改建议汇总:</label>
74
- </div>
75
- <div class="col-md-12 col-sm-12 col-xs-12">
76
- <ol class="showIi">
77
- <li v-for="item in defectToolTip">{{ item }}</li>
78
- </ol>
79
- </div>
80
- </div>
81
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
82
- &ensp;&ensp;<input type="checkbox" v-model="paper.f_read_instructions" style="transform: scale(1.5);"/><label class="text-left font">&ensp;我已阅读须知内容</label>
83
-
84
- </div>
85
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
86
- <label class="text-left font">用户签名</label>
87
- <div class="auto">
88
- <div class="panel">
89
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
90
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
91
- <div class="col-sm-4">
92
- <img :class="style__" :src="paper.f_sign_path" :width="200" :height="150" />
93
- </div>
94
- </div>
95
- <div class="row text-right div-photo">
96
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button>
97
- </div>
98
- </div>
99
- </div>
100
- </div>
101
- </div>
102
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :style="timeSet(this.isneedDate)?'':'display:none'">
103
- <label>请输入超期原因:</label><br/>
104
- <textarea style="width: 100%;" v-model="paper.f_exceed_reason"></textarea>
105
- </div>
106
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
107
- <div class="col-xs-6 col-sm-6">
108
- <input type="checkbox" v-model="backlistisselect" :readonly="enabled"/><label class="text-left font" >限制该用户购气</label>
109
- </div>
110
- <div class="col-xs-6 col-sm-6">
111
- <input type="checkbox" v-model="deletebacklistisselect" :readonly="deleteenabled"/><label class="text-left font" >取消该用户限制</label>
112
- </div>
113
- </div>
114
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__" v-if="Vue.$appdata.getParam('安检天然气安全使用须知检查')=='是'">
115
- <div class="col-xs-12 col-sm-12">
116
- <input type="checkbox" v-model="paper.f_gas_guidelines" /><label class="text-left font" >天然气安全使用须知</label>
117
- </div>
118
- <div class="col-xs-12 col-sm-12">
119
- <input type="checkbox" v-model="paper.f_safety_warning" /><label class="text-left font" >天然气室内使用安全警示</label>
120
- </div>
121
- <div class="col-xs-12 col-sm-12">
122
- <input type="checkbox" v-model="paper.f_gas_manual" /><label class="text-left font" >安全用气手册</label>
123
- </div>
124
- </div>
125
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
126
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
127
- <input type="checkbox" v-model="paper.f_defect_notified" class="showIi" />安检通知书/隐患整改通知书
128
- </div>
129
- <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="paper.f_defect_notified">
130
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
131
- <button type="button" @click="print()">打印隐患整改单</button>
132
- </div>
133
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
134
- <label class="text-left font">安检通知书/隐患整改通知书照片(要求能清晰反应安检通知单和用户签字内容):</label>
135
- <div class="auto" >
136
- <div class="panel" style="padding: 10px 10px 5px 10px;">
137
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
138
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
139
- <div class="col-sm-4">
140
- <img-self :src="paper.f_notified_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></img-self>
141
- </div>
142
- </div>
143
- <div class="row text-right div-photo">
144
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_notified_path', '安检通知书/隐患整改通知书照片')">拍照</button>
145
- &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_notified_path', this.paper.f_notified_path)" style="width: 25%;"></img>
146
- </div>
147
- </div>
148
- </div>
149
- </div>
150
- </div>
151
- </div>
152
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
153
- <div class="row">
154
- <label class="text-left">请对我们的服务做出评价:</label>
155
- </div>
156
- <div class="col-xs-4 col-sm-4" v-for="item in radios">
157
- &ensp;&ensp;<input v-model="paper.f_client_evaluation" :value="item.label" :checked='item.isChecked' style="transform: scale(1.5);" @click="check(item.value)" type="radio">&ensp;{{item.label}}
158
- </div>
159
-
160
- <!--<div class="col-sm-4">-->
161
- <!--<radio-group :value.sync="paper.f_client_evaluation" type="success" buttons="false">-->
162
- <!--<radio value="满意">满意</radio>-->
163
- <!--<radio value="基本满意">基本满意</radio>-->
164
- <!--<radio value="不满意">不满意</radio>-->
165
- <!--</radio-group>-->
166
- <!--</div>-->
167
- </div>
168
-
169
- <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="isRecodr=='false'">
170
- <label class="text-left font">反馈录音:</label>
171
- <div class="col-md-12 col-sm-12 col-xs-12">
172
- <button type="button" name="button" class="btn btn-primary btn-voice" @click="record">
173
- <img src="../../../assets/录音.png" style="width: 14%;">
174
- <span v-if="!paper.f_recording1_path">开始录音</span>
175
- <span v-if="paper.f_recording1_path">已录音</span>
176
- </button>
177
- &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" style="width: 15px;" :class="style__" @click="delAudioFile('f_recording1_path', paper.f_recording1_path)"></img>
178
- </div>
179
- </div>
180
-
181
- <div v-if="false">
182
- <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
183
- <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' &&(paper.f_complete != '已完成' || paper.back_f_entry_status != '入户') " class="btn save-btn" @click="$parent.$parent.save('temp')">临时保存</button>
184
- <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')" class="btn save-btn " @click="$parent.$parent.save('finish')">完成安检</button>
185
- </div>
186
- <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
187
- <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%" id="upload" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')" class="btn upload-btn " @click="$parent.$parent.uploadCheckPaper" >上传</button>
188
- <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%" v-if="(safeCheckToRepair == true || safeCheckToRepair == 'true') && $parent.$parent.actionEnabled" class="btn repair-btn btn-warning " type="button" @click="showToRepair">转维修</button> </div>
189
- </div>
190
-
191
- </div>
192
- </form>
193
- <!-- <modal :show.sync="showCheckToRepair" v-ref:modal :backdrop="isback">-->
194
- <!-- <div slot="modal-header" class="modal-header">-->
195
- <!-- <h4 class="modal-title">-->
196
- <!-- 安检转维修-->
197
- <!-- </h4>-->
198
- <!-- </div>-->
199
- <!-- <div slot="modal-body" class="modal-body">-->
200
- <!-- <div v-if="showrepair">-->
201
- <!-- <div class="row">-->
202
- <!-- <label class="col-xs-4 col-md-4 control-label text-left">派单方式</label>-->
203
- <!-- <div class="col-xs-8 col-md-8">-->
204
- <!-- <label v-for="handling1 in handling" >-->
205
- <!-- <input type="radio"-->
206
- <!-- v-model="meading"-->
207
- <!-- value="{{handling1.label}}">-->
208
- <!-- {{handling1.label}}-->
209
- <!-- </label>-->
210
- <!-- </div>-->
211
- <!-- </div>-->
212
- <!-- <div class="row" v-if="meading == '转站点'">-->
213
- <!-- <label class="col-xs-4 col-md-4 control-label font text-left" for="f_reciever">站点</label>-->
214
- <!-- &lt;!&ndash;<input type="text" v-show="false" v-model="serviceacitivity.f_reciever"&ndash;&gt;-->
215
- <!-- &lt;!&ndash;v-validate:f_reciever='{ required: true }'>&ndash;&gt;-->
216
- <!-- <div class="col-xs-8 col-md-8">-->
217
- <!-- <right-tree @ready="onReady" islist :Url="Url" :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择站点管理员" :selectData="" v-ref:f_reciever>-->
218
- <!-- </right-tree>-->
219
- <!-- </div>-->
220
- <!-- </div>-->
221
-
222
- <!-- <div class="row" style="margin-top: 6px" v-if="meading == '转维修员'">-->
223
- <!-- <label class="col-xs-4 col-md-4 control-label font text-left">维修人</label>-->
224
- <!-- <div class="col-xs-8">-->
225
- <!-- <v-select :value="$parent.$parent.model.serviceacitivity[0].f_reciever" :value-single="true"-->
226
- <!-- :options='f_repair_person' placeholder='请选择维修员'-->
227
- <!-- close-on-select v-on:change="repiarmancg"></v-select>-->
228
- <!-- </div>-->
229
-
230
- <!-- </div>-->
231
- <!-- <div class="row" style="margin-top: 6px">-->
232
- <!-- <label for="f_repair" class="col-xs-4 col-md-4 control-label font text-left">报修类型</label>-->
233
- <!-- <div class="col-xs-8 col-md-8">-->
234
- <!-- <v-select :value.sync="$parent.$parent.model.f_repairtype" :value-single="true"-->
235
- <!-- :options='repairstypes' placeholder='报修类型'-->
236
- <!-- close-on-select>-->
237
- <!-- </v-select>-->
238
- <!-- </div>-->
239
- <!-- </div>-->
240
-
241
- <!-- <div class="row" style="margin-top: 6px">-->
242
- <!-- <label class="control-label font text-left col-md-4 col-xs-4">备注</label>-->
243
- <!-- <div class="col-xs-8 col-md-8">-->
244
- <!-- <input type="text" v-model="$parent.$parent.model.f_remarks"/>-->
245
- <!-- </div>-->
246
-
247
- <!-- </div>-->
248
-
249
- <!-- </div>-->
250
- <!-- <div v-if="!showrepair">-->
251
- <!-- 暂无隐患设备信息-->
252
- <!-- </div>-->
253
- <!-- </div>-->
254
- <!-- <div slot="modal-footer" class="modal-footer">-->
255
- <!-- <button type="button" class="btn btn-default" @click="uploadPaper()">确定</button>-->
256
- <!-- <button type="button" class="btn btn-default" @click="undo()">取消</button>-->
257
- <!-- </div>-->
258
- <!-- </modal>-->
259
- <!--拉黑框-->
260
- <modal :show.sync="showmodel" v-ref:modal>
261
- <div slot="modal-header" class="modal-header">
262
- <h4 class="modal-title">
263
- 限制用户购气
264
- </h4>
265
- </div>
266
- <div slot="modal-body" class="modal-body">
267
- <!-- <div class="row" style="margin-top: 6px">-->
268
- <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
269
- <!-- </div>-->
270
- <div class="row" style="margin-top: 6px">
271
- <textarea id="el_ca_tx" v-model.trim="cause" style="border-radius:4px;width: 100%;" placeholder="请输入限制用户购气原因" >
272
- </textarea>
273
- </div>
274
- </div>
275
- <div slot="modal-footer" class="modal-footer">
276
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="backlist()">确认</button>
277
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">取消</button>
278
- </div>
279
- </modal>
280
-
281
- <modal :show.sync="showmodelthree" v-ref:modal>
282
- <div slot="modal-header" class="modal-header">
283
- <h4 class="modal-title">
284
- 取消限制用户购气
285
- </h4>
286
- </div>
287
- <div slot="modal-body" class="modal-body">
288
- <!-- <div class="row" style="margin-top: 6px">-->
289
- <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
290
- <!-- </div>-->
291
- <div class="row" style="margin-top: 6px">
292
- <textarea id="el_ca_txt" v-model.trim="deletecause" style="border-radius:4px;width: 100%;" placeholder="请输入取消限制用户购气原因" >
293
- </textarea>
294
- </div>
295
- </div>
296
- <div slot="modal-footer" class="modal-footer">
297
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletebacklist()">确认</button>
298
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletecancel()">取消</button>
299
- </div>
300
- </modal>
301
- </template>
302
-
303
- <script>
304
- import Vue from 'vue'
305
- import * as Util from '../../../components/Util'
306
- import { HttpResetClass } from 'vue-client'
307
- import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
308
- import Radio from 'vue-client/src/vue-strap/src/radioBtn'
309
- import co from 'co'
310
-
311
- // let getRepairParam = function * (self){
312
- // let data = {
313
- // $parent.$parent.model: self.$parent.$parent.model, loginUser: {
314
- // name: self.role == 'view'?self.$login.f.name:Vue.user.name,
315
- // ename: self.role == 'view'?self.$login.f.ename:Vue.user.ename
316
- // }, user: self.user, callObj: self.callObj
317
- // }
318
- // if(self.$parent.$parent.meading == '转维修员'){
319
- // data.toRepair = '一级派单'
320
- // }
321
- // data.$parent.$parent.model.f_attendant = data.loginUser.name
322
- // ////tag
323
- // ////tag
324
- // let res
325
- // let errString = self.$parent. $parent.errorVerify()
326
- // if(errString){
327
- // ////tag
328
- // if (Vue.android)
329
- // self.undo()
330
- // this.$showMessage(errString)
331
- // return
332
- // } else {
333
- // if(self.role == 'inspect'){
334
- // if(self.$parent.$parent.meading == '转维修员' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
335
- // this.$showMessage("请选择维修员!")
336
- // return
337
- // }
338
- // if(self.$parent.$parent.meading == '转站点' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
339
- // HostApp.alert()
340
- // this.$showMessage("请选择站点!")
341
- // return
342
- // }
343
- // if(self.$parent.$parent.model.f_repairtype == ''){
344
- // this.$showMessage("请选择报修类型!")
345
- // return
346
- // }
347
- // ////tag)
348
- // let checkResult = '正常'
349
- // let options = [{"data": "已处理"},{"data": "未处理"}]
350
- // let value = ''
351
- // let codata = JSON.parse(JSON.stringify(self.paper))
352
- // for(let device in codata){
353
- // ////tag)
354
- // let f_device_type
355
- // if(device.startsWith("device")){
356
- // for(let item in codata[device]) {
357
- // if(codata[device].length > 1 ){
358
- // let j = Number.parseInt(item)+1
359
- // f_device_type = `${codata[device][item].f_device_type}${j}`
360
- // }else{
361
- // f_device_type = codata[device][item].f_device_type
362
- // }
363
- // // ////tag
364
- // let details = []
365
- // for(let i in codata[device][item].f_items){
366
- // let items = codata[device][item].f_items[i]
367
- // ////tag
368
- // if(items.f_is_defect == true || items.f_is_defect == 'true'){
369
- // checkResult = '有隐患'
370
- // ////tag
371
- // let res = yield self.$resetpost(`${self.Url}/rs/sql/getDeviceItem`,{data:{f_device_id:codata[device][item].f_device_id,f_item_name:items.f_item_name}})
372
- // ////tag)
373
- // self.$set('detail.f_defect_id', res.data[0].id)
374
- // self.$set('detail.f_project',`${items.f_item_name}:${items.f_item_value}`)
375
- // self.$set('detail.type',items.type)
376
- // self.$set('detail.options',options)
377
- // details.push(JSON.parse(JSON.stringify(self.detail)))
378
- // }
379
- // if(items.type == 'selector'){
380
- // items.selected = ''
381
- // }
382
- // self.detail = {}
383
- // }
384
- // ////tag
385
- // self.$set('defectDevice.f_type',f_device_type)
386
- // self.$set('defectDevice.details',details)
387
- // if(self.defectDevice.details.length >0 ){
388
- // self.repairitems.push(JSON.parse(JSON.stringify(self.defectDevice)))
389
- // }
390
- // self.defectDevice = {}
391
- // ////tag
392
- // }
393
- // }
394
- // }
395
- // self.$set('$parent.$parent.model.f_repairitems.data',self.repairitems)
396
- //
397
- //
398
- // ////tag)
399
- // res = self.$androidUtil.bzLogic('safecheckToRepair',data)
400
- // ////tag
401
- // ////tag
402
- // ////tag
403
- // if(res.code == 200){
404
- // self.$parent.$parent.isSafeCheckToRepair = true
405
- // self.undo()
406
- // self.$set('paper.f_SafeToRepair_id',res.data.f_service_id)
407
- // ////tag
408
- // self.$resetpost(`${self.Url}/rs/logic/updatePaperRepair`,{data:{f_paper_id:self.paper.f_paper_id,f_SafeToRepair_id:res.data.f_service_id}}).then((ret)=>{
409
- // ////tag
410
- // if(ret.data.code ==200){
411
- // ////tag
412
- // self.$parent.$parent.$back()
413
- // }else{
414
- // self.$showMessage('安检转维修失败!')
415
- // }
416
- // }).catch(v=>{
417
- // ////tag)
418
- // self.$showMessage('安检转维修失败!')
419
- // })
420
- // }else{
421
- // self.$showMessage('安检转维修失败!')
422
- // }
423
- // }
424
- // }
425
- // }
426
-
427
-
428
-
429
- // let getRepairs = async function(self,url) {
430
- // // 获取配置信息
431
- // try {
432
- // let val = {source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${Vue.user.id}`}
433
- // let repairs =[]
434
- // let res = await Vue.resetpost(`${url}/rs/search`,{data: val},{resolveMsg: null, rejectMsg: null})
435
- // res.data.forEach((item) => {
436
- // repairs.push({label: item.name, value: item})
437
- // })
438
- // self.f_repair_person = repairs
439
- // if(self.$parent.$parent.role == 'inspect'){
440
- // let res = self.$androidUtil.bzLogic('getUserInfo',{id:self.paper.f_userinfoid})
441
- // if(res.code == 200){
442
- // self.$parent.$parent.user = res.data[0]
443
- // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
444
- // }
445
- // }else{
446
- // ////tag
447
- // self.$resetpost(`${self.Url}/rs/sql/safeCheckgetUserInfo`,{data:{id:self.paper.f_userinfoid}},{resolveMsg: null, rejectMsg: null}).then((res)=>{
448
- // ////tag
449
- // if(res.data.length != 0){
450
- // self.$parent.$parent.user = res.data[0]
451
- // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
452
- // }
453
- // })
454
- // // path({alias:'getUserInfo',data:{id:this.paper.f_userinfoid}})
455
- // }
456
- // } catch (error) {
457
- // ////tag
458
- // }
459
- // }
460
-
461
- export default {
462
- title: '用户反馈',
463
- data() {
464
- return {
465
- defectImgs: [],
466
- defectToolTip: [],
467
- defectReason: [],
468
- images: [],
469
- showmodelthree: false,
470
- isneedDate: this.$parent.$parent.isneedDate,
471
- plan: this.$parent.$parent.item,
472
- meading: this.$parent.$parent.meading,
473
- paper: this.$parent.$parent.data,
474
- printContent: [],
475
- upload_state: this.$parent.$parent.item.f_upload_state,
476
- enabled: false,//控制限制购气是否可选
477
- deleteenabled: false,
478
- showmodel: false,
479
- backlistisselect: false,
480
- deletebacklistisselect: false,
481
- radios: [
482
- {
483
- label: '满意',
484
- value: 0,
485
- isChecked: false,
486
- },
487
- {
488
- label: '基本满意',
489
- value: 1,
490
- isChecked: false,
491
- },
492
- {
493
- label: '不满意',
494
- value: 2,
495
- isChecked: false,
496
- },
497
- ],
498
- repairitems: [],
499
- repairstypes: this.$appdata.getParam('报修类型'),
500
- // f_repair_person: this.readRepair(),
501
- showrepair: false,
502
- safeCheckToRepair: '',
503
- showCheckToRepair: false,
504
- userid: '',
505
- source:
506
- 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
507
- 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
508
- isback: false,
509
- defectDevice: {},
510
- detail: {},
511
- callObj: null,
512
- user: {},
513
- role: this.$parent.$parent.role,
514
- handling: [{label: '转站点', value: '转站点'}, {label: '转维修员', value: '转维修员'}],
515
- Url: this.$androidUtil.getProxyUrl(),
516
- cause: "",
517
- deletecause: "",
518
- isRecodr: "false", //单值参数,为true则是开启全程录音
519
- }
520
- },
521
- props: ['idx'],
522
- components: {
523
- RadioGroup,
524
- Radio
525
- },
526
- methods: {
527
- timeSet(val) {
528
- //////tag
529
- if (!val) {
530
- return
531
- }
532
- let time = new Date(val).getTime()
533
- let time2 = new Date().getTime()
534
- if (time2 > time) {
535
- return true
536
- }
537
- },
538
- // async isoverDate(){
539
- // ////tag
540
- // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/androidGetuserinfo`, {data:{
541
- // condition:"f_plan_item_id='"+this.$parent.$parent.item.id+"'"
542
- // }
543
- // })
544
- // this.isneedDate=res.data[0]["f_subscribe_date"]
545
- // ////tag
546
- // },
547
- check(index) {
548
- ////tag
549
- // 先取消所有选中项
550
- for (let item of this.radios) {
551
- item.isChecked = false;
552
- }
553
- //再设置当前点击项选中
554
- this.paper.f_client_evaluation = this.radios[index].label;
555
- // 设置值,以供传递
556
- this.radios[index].isChecked = true;
557
- ////tag;
558
- },
559
- getSignValue(fileName) {
560
- this.f_signname = fileName
561
- },
562
- cameraCallBack(prop, fileName) {
563
- if (prop == 'f_overall_path') {
564
- let f_overall_path = fileName + '?' + Math.random()
565
- HostApp.__this__.paper.f_overall_imgs.push({
566
- f_overall_path: f_overall_path
567
- })
568
- } else {
569
- HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
570
- }
571
- HostApp.__callback__ = null
572
- HostApp.__this__ = null
573
- },
574
- takePic(prop, title, index) {
575
- HostApp.__callback__ = this.cameraCallBack
576
- HostApp.__this__ = this
577
- ////tag
578
- ////tag
579
- let fileName
580
- if (prop == 'f_overall_path') {
581
- if (!this.paper.f_overall_imgs[index] || this.paper.f_overall_imgs[index].f_overall_path.includes("nopic.png")) {
582
- fileName = Util.guid() + '-' + prop + '.jpg'
583
- } else {
584
- fileName = Util.getFileName(this.paper.f_overall_imgs[index].f_overall_path)
585
- }
586
- } else {
587
- if (!this.paper[prop] || this.paper[prop].includes("nopic.png")) {
588
- fileName = Util.guid() + '-' + prop + '.jpg'
589
- } else {
590
- fileName = Util.getFileName(this.paper[prop])
591
- }
592
- }
593
-
594
- HostApp._open_a_page({
595
- type: 'boomerang',
596
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
597
- param: {
598
- file: fileName,
599
- requestCode: 111,
600
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
601
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code+ '\t' + this.paper.f_user_name+ '\t' + this.paper.f_address
602
- }
603
- })
604
- },
605
- amrCallBack(fileName) {
606
- HostApp.__this__.$set('paper.f_recording1_path', fileName)
607
- HostApp.__callback__ = null
608
- HostApp.__this__ = null
609
- },
610
- record() {
611
- if (this.$parent.$parent.role != 'inspect') {
612
- if (this.paper.f_recording1_path != '') {
613
- window.location = this.paper.f_recording1_path
614
- }
615
- } else {
616
- HostApp.__callback__ = this.amrCallBack
617
- HostApp.__this__ = this
618
- let fileName
619
- if (!this.paper.f_recording1_path) {
620
- fileName = Util.guid() + '.amr'
621
- } else {
622
- fileName = Util.getFileName(this.paper.f_recording1_path)
623
- }
624
- HostApp._open_a_page({
625
- type: 'boomerang',
626
- page: 'com.aofeng.hybrid.android.peripheral.AudioClipActivity',
627
- param: {file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("%s");'}
628
- })
629
- }
630
- },
631
- // 签名回调
632
- signCallback(prop, fileName) {
633
- // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
634
- HostApp.__this__.$set('paper.f_sign_path', fileName)
635
- HostApp.__callback__ = null
636
- HostApp.__this__ = null
637
- },
638
- // 用户签名
639
- sign() {
640
- if (!this.paper.f_read_instructions) {
641
- this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
642
- return
643
- }
644
- this.delAudioFile('f_sign_path', this.paper.f_sign_path)
645
- let prop = 'f_sign_path'
646
- let idx = 'aofeng'
647
- let fileName
648
- if (!this.paper.f_sign_path) {
649
- fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
650
- } else {
651
- fileName = Util.getFileName(this.paper.f_sign_path)
652
- }
653
- HostApp.__callback__ = this.signCallback
654
- HostApp.__this__ = this
655
- HostApp.getSignature({
656
- file: fileName,
657
- requestCode: 111,
658
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
659
- })
660
- },
661
- delfile(prop, fileName, index) {
662
- if (fileName == Vue.nopic)
663
- return
664
- else {
665
- if (prop == 'f_overall_path') {
666
- this.paper.f_overall_imgs.splice(index, 1)
667
- HostApp.delfile(fileName)
668
- } else {
669
- HostApp.delfile(fileName)
670
- this.paper[prop] = Vue.nopic
671
- }
672
- }
673
- },
674
- delAudioFile(prop, fileName) {
675
- if (!fileName)
676
- return
677
- else {
678
- HostApp.delfile(fileName)
679
- this.paper[prop] = null
680
- }
681
- },
682
- //获取打印用户信息
683
- getUser() {
684
- if (this.paper.f_user_name == undefined)
685
- this.paper.f_user_name = ''
686
- this.printContent.push({
687
- type: 3,
688
- text: '用户名称:' + this.paper.f_user_name,
689
- fontsize: 2,
690
- isbold: false,
691
- align: 'left'
692
- })
693
- if (this.paper.f_userinfo_code == undefined)
694
- this.paper.f_userinfo_code = ''
695
- this.printContent.push({
696
- type: 3,
697
- text: '用户编号:' + this.paper.f_userinfo_code,
698
- fontsize: 2,
699
- isbold: false,
700
- align: 'left'
701
- })
702
- if (this.paper.f_address == undefined)
703
- this.paper.f_address = ''
704
- this.printContent.push({type: 3, text: '地址:' + this.paper.f_address, fontsize: 2, isbold: false, align: 'left'})
705
- if (this.paper.f_user_phone == undefined)
706
- this.paper.f_user_phone = ''
707
- this.printContent.push({
708
- type: 3,
709
- text: '电话:' + this.paper.f_user_phone,
710
- fontsize: 2,
711
- isbold: false,
712
- align: 'left'
713
- })
714
- },
715
- verify() {
716
- let hasError = this.$parent.$parent.verifyUser()
717
- if (hasError)
718
- return hasError
719
- hasError = this.$parent.$parent.verifyDevices()
720
- if (hasError)
721
- return hasError
722
- },
723
- print() {
724
- let errString = this.verify()
725
- if (errString) {
726
- ////tag
727
- if (Vue.android)
728
- this.$showMessage(errString)
729
- return
730
- }
731
- // 文本
732
- let templatename = '安检结果单'
733
- if (Vue.config.safecheck != undefined) {
734
- if (Vue.config.safecheck.ApproveConfig != undefined) {
735
- if (Vue.config.safecheck.ApproveConfig.templatename != undefined) {
736
- templatename = Vue.config.safecheck.ApproveConfig.templatename
737
- }
738
- }
739
- }
740
- let textHead = {type: 3, text: templatename, fontsize: 3, isbold: true, align: 'center'}
741
- let feedPageHead = {type: 4, value: 2, unit: 'line'}
742
- let feedPageEnd = {type: 4, value: 4, unit: 'line'}
743
- this.printContent.push(textHead)
744
- this.printContent.push(feedPageHead)
745
- this.getUser()
746
- this.getDefect()
747
- this.getCheck()
748
- this.printContent.push(feedPageEnd)
749
- let arrstr = JSON.stringify(this.printContent)
750
- ////tag
751
- this.$androidUtil.print(arrstr)
752
- this.$set('printContent', [])
753
- },
754
- //打印安检信息
755
- getCheck() {
756
- let telephone = '96777'
757
- if (Vue.config.safecheck != undefined) {
758
- if (Vue.config.safecheck.ApproveConfig != undefined) {
759
- if (Vue.config.safecheck.ApproveConfig.checkphone != undefined) {
760
- telephone = Vue.config.safecheck.ApproveConfig.checkphone
761
- }
762
- }
763
- }
764
- this.printContent.push({
765
- type: 3,
766
- text: '*******************************',
767
- fontsize: 3,
768
- isbold: false,
769
- align: 'center'
770
- })
771
- this.printContent.push({type: 3, text: '咨询电话;' + telephone, fontsize: 2, isbold: false, align: 'left'})
772
- this.printContent.push({type: 3, text: '安检人:' + Vue.user.name, fontsize: 2, isbold: false, align: 'left'})
773
- this.printContent.push({
774
- type: 3,
775
- text: '安检时间:' + this.getNowFormatDate(),
776
- fontsize: 2,
777
- isbold: false,
778
- align: 'left'
779
- })
780
- this.printContent.push({type: 3, text: '用户签字:', fontsize: 2, isbold: false, align: 'left'})
781
- this.printContent.push({type: 4, value: 4, unit: 'line'})
782
- },
783
-
784
- getDefect() {
785
- let showmore = false
786
- if (Vue.config.safecheck != undefined) {
787
- if (Vue.config.safecheck.ApproveConfig != undefined) {
788
- if (Vue.config.safecheck.ApproveConfig.showmore != undefined) {
789
- showmore = Vue.config.safecheck.ApproveConfig.showmore
790
- }
791
- }
792
- }
793
-
794
- let backData = this.$parent.$parent.getAllDefect()
795
- // 对隐患信息进行遍历
796
- let res = JSON.parse(backData.f_defect_content)
797
- this.printContent.push({
798
- type: 3,
799
- text: '安检结果:' + res.result,
800
- fontsize: 2,
801
- isbold: false,
802
- align: 'left'
803
- })
804
- this.printContent.push({
805
- type: 3,
806
- text: '*******************************',
807
- fontsize: 3,
808
- isbold: false,
809
- align: 'center'
810
- })
811
-
812
-
813
- if (showmore) {
814
- //全部打印
815
- for (let dev in this.$parent.$parent.config) {
816
- for (let device in backData) {
817
- if (device.startsWith("device")) {
818
- for (let item in backData[device]) {
819
- //遍历结果
820
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
821
- let error = true
822
- for (let i in backData[device][item].f_items) {
823
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
824
- error = false
825
- }
826
- }
827
- if (error) {
828
- this.printContent.push({
829
- type: 3,
830
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
831
- fontsize: 2,
832
- isbold: false,
833
- align: 'left'
834
- })
835
- } else {
836
- this.printContent.push({
837
- type: 3,
838
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
839
- fontsize: 2,
840
- isbold: true,
841
- align: 'left'
842
- })
843
- }
844
-
845
- for (let i in backData[device][item].f_items) {
846
- if (backData[device][item].f_items[i].f_item_value != '' && backData[device][item].f_items[i].f_item_value != null) {
847
- this.printContent.push({
848
- type: 3,
849
- text: backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
850
- fontsize: 2,
851
- isbold: false,
852
- align: 'left'
853
- })
854
- }
855
- }
856
- this.printContent.push({type: 4, value: 2, unit: 'line'})
857
- }
858
- }
859
- }
860
- }
861
- }
862
-
863
- for (let dev in this.$parent.$parent.config) {
864
- for (let device in backData) {
865
- if (device.startsWith("device")) {
866
- for (let item in backData[device]) {
867
- //遍历结果
868
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
869
- let error = true
870
- for (let i in backData[device][item].f_items) {
871
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
872
- error = false
873
- }
874
- }
875
- if (!error) {
876
- this.printContent.push({
877
- type: 3,
878
- text: '隐患:',
879
- fontsize: 2,
880
- isbold: true,
881
- align: 'left'
882
- })
883
- }
884
- }
885
- }
886
- }
887
- }
888
- for (let device in backData) {
889
- if (device.startsWith("device")) {
890
- for (let item in backData[device]) {
891
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
892
- for (let i in backData[device][item].f_items) {
893
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
894
- this.printContent.push({
895
- type: 3,
896
- text: backData[device][item].f_items[i].f_item_name + ' ' + backData[device][item].f_items[i].f_item_value,
897
- fontsize: 2,
898
- isbold: true,
899
- align: 'left'
900
- })
901
- }
902
- }
903
- }
904
- }
905
- }
906
- }
907
-
908
- }
909
- } else {
910
- for (let dev in this.$parent.$parent.config) {
911
- for (let device in backData) {
912
- if (device.startsWith("device")) {
913
- for (let item in backData[device]) {
914
- //遍历结果
915
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
916
- let error = true
917
- for (let i in backData[device][item].f_items) {
918
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
919
- error = false
920
- }
921
- }
922
- if (error) {
923
- this.printContent.push({
924
- type: 3,
925
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
926
- fontsize: 2,
927
- isbold: false,
928
- align: 'left'
929
- })
930
- } else {
931
- this.printContent.push({
932
- type: 3,
933
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
934
- fontsize: 2,
935
- isbold: false,
936
- align: 'left'
937
- })
938
- }
939
-
940
- for (let i in backData[device][item].f_items) {
941
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
942
- this.printContent.push({
943
- type: 3,
944
- text: '隐患:' + backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
945
- fontsize: 2,
946
- isbold: false,
947
- align: 'left'
948
- })
949
- }
950
- }
951
- this.printContent.push({type: 4, value: 2, unit: 'line'})
952
- }
953
- }
954
- }
955
- }
956
- }
957
- }
958
- },
959
- //获取当前时间
960
- getNowFormatDate() {
961
- var date = new Date();
962
- var seperator1 = "-";
963
- var seperator2 = ":";
964
- var month = date.getMonth() + 1;
965
- var strDate = date.getDate();
966
- if (month >= 1 && month <= 9) {
967
- month = "0" + month;
968
- }
969
- if (strDate >= 0 && strDate <= 9) {
970
- strDate = "0" + strDate;
971
- }
972
- var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
973
- + " " + date.getHours() + seperator2 + date.getMinutes()
974
- + seperator2 + date.getSeconds();
975
- return currentdate;
976
- },
977
- readRepair() {
978
- let url = this.$androidUtil.getProxyUrl()
979
- let gen = getRepairs(this, url)
980
- return co(gen)
981
- },
982
- showToRepair() {
983
- let res = this.hasDefect()
984
- ////tag
985
- ////tag
986
- if (res == '正常') {
987
- this.showrepair = false
988
- } else {
989
- this.showrepair = true
990
- this.assignObj()
991
- }
992
- this.showCheckToRepair = !this.showCheckToRepair
993
- },
994
- // 选中部门
995
- reres(val) {
996
- if (val.res == undefined) {
997
- return
998
- }
999
- this.$parent.$parent.model.serviceacitivity[0].f_meetunit = val.res
1000
- this.$parent.$parent.model.f_meetunit = val.res
1001
- this.$parent.$parent.model.f_orgstr = val.resids
1002
- var arr = val.res.split('.')
1003
- this.$parent.$parent.model.f_outlets = arr[arr.length - 1]
1004
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.resids
1005
- },
1006
- assignObj() {
1007
- this.$parent.$parent.model.f_contact_phone = this.paper.f_user_phone
1008
- this.$parent.$parent.model.f_user_name = this.paper.f_user_name
1009
- this.$parent.$parent.model.f_address = this.paper.f_address
1010
- this.$parent.$parent.model.f_user_type = this.paper.f_check_type
1011
- this.$parent.$parent.model.f_street = this.paper.f_street
1012
- this.$parent.$parent.model.f_residential_area = this.paper.f_residential_area
1013
- this.$parent.$parent.model.f_building = this.paper.f_building
1014
- this.$parent.$parent.model.f_unit = this.paper.f_unit
1015
- this.$parent.$parent.model.f_floor = this.paper.f_floor
1016
- this.$parent.$parent.model.f_room = this.paper.f_room
1017
- this.$parent.$parent.model.f_floor = this.paper.f_floor
1018
- this.$parent.$parent.model.f_userinfo_id = this.paper.f_userinfoid
1019
- this.$parent.$parent.model.f_userinfo_code = this.paper.f_userinfo_code
1020
- },
1021
- hasDefect() {
1022
- let checkResult = '正常'
1023
- let codata = JSON.parse(JSON.stringify(this.paper))
1024
- for (let device in this.paper) {
1025
- if (device.startsWith("device")) {
1026
- for (let item in this.paper[device]) {
1027
- for (let i in this.paper[device][item].f_items) {
1028
- let items = this.paper[device][item].f_items[i]
1029
- ////tag
1030
- if (items.f_is_defect == true || items.f_is_defect == 'true') {
1031
- checkResult = '有隐患'
1032
- }
1033
- }
1034
- }
1035
- }
1036
- }
1037
- return checkResult
1038
- },
1039
- uploadPaper() {
1040
- if (this.showrepair) {
1041
- ////tag
1042
- ////tag
1043
- ////tag
1044
- ////tag
1045
-
1046
- if (this.meading == '转维修员' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1047
- this.$showMessage("请选择维修员!")
1048
- return
1049
- }
1050
- if (this.$parent.$parent.meading == '转站点' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1051
- this.$showMessage("请选择站点!")
1052
- return
1053
- }
1054
- if (this.$parent.$parent.model.f_repairtype == '') {
1055
- this.$showMessage("请选择报修类型!")
1056
- return
1057
- }
1058
- this.$parent.$parent.isToRepair = true
1059
- this.$parent.$parent.uploadCheckPaper()
1060
- // this.$parent.$parent.savePaper(false).then((res) => {
1061
- // ////tag
1062
- // if(res != true){
1063
- // ////tag
1064
- // return
1065
- // }else{
1066
- // this.$parent.$parent.todo()
1067
- // }
1068
- // })
1069
- } else {
1070
- this.$parent.$parent.undo()
1071
- }
1072
-
1073
- },
1074
- //确认安检转维修
1075
-
1076
- undo() {
1077
- this.showCheckToRepair = !this.showCheckToRepair
1078
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = ''
1079
- this.$parent.$parent.model.serviceacitivity[0].f_meetunit = ''
1080
- this.$parent.$parent.model.f_repairtype = ''
1081
- this.meading = '转站点'
1082
- },
1083
- //取消拉黑
1084
- async deletebacklist() {
1085
- if (!this.deletecause) {
1086
- this.$showMessage("请填写取消拉黑原因!")
1087
- return
1088
- }
1089
- this.paper.f_blocking_cause = this.deletecause
1090
- ////tag)
1091
- let http = new HttpResetClass()
1092
- ////tag
1093
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1094
- data: {
1095
- items: "version",
1096
- tablename: "t_userinfo",
1097
- condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1098
- orderitem: "f_userinfo_id"
1099
- }
1100
- }, {resolveMsg: null, rejectMsg: null})
1101
- ////tag)
1102
- ////tag
1103
- let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/sale_operateQuotaRecord`, {
1104
- data: {
1105
- "f_operat_type": "1", // 取消限购
1106
- "f_userinfo_id": this.paper.f_userinfoid,
1107
- "f_cancel_people": Vue.user.name,
1108
- "f_cancel_peopleid": Vue.user.id,
1109
- "f_cancel_reason": this.paper.f_blocking_cause,
1110
- "f_limit_source": '隐患限购',
1111
- }
1112
- }, {resolveMsg: null, rejectMsg: null})
1113
- //
1114
- ////tag)
1115
- if (res2.data.code == 200) {
1116
- this.showmodelthree = false
1117
- this.deleteenabled = true
1118
- this.paper.f_blacklist = "否"
1119
- this.$parent.$parent.deletebacklist_status = false
1120
- this.$showMessage("取消该用户限制购气成功!")
1121
- } else {
1122
- this.$showMessage("网络异常,请稍后再试!")
1123
- }
1124
- },
1125
- async backlist() {
1126
- if (!this.cause) {
1127
- this.$showMessage("请填写拉黑原因!")
1128
- return
1129
- }
1130
- this.paper.f_blocking_cause = this.cause
1131
- ////tag)
1132
- let http = new HttpResetClass()
1133
- ////tag
1134
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1135
- data: {
1136
- items: "version",
1137
- tablename: "t_userinfo",
1138
- condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1139
- orderitem: "f_userinfo_id"
1140
- }
1141
- }, {resolveMsg: null, rejectMsg: null})
1142
- ////tag)
1143
- ////tag
1144
- let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/sale_operateQuotaRecord`, {
1145
- data: {
1146
- f_operat_type: "0",
1147
- limitList: [
1148
- {
1149
- "f_third_pay": 0,
1150
- "f_time_type": "按日",
1151
- "f_time_value": "365",
1152
- "f_limit_times": "0",
1153
- "f_limit_type": "气量",
1154
- "f_limit_value": "0",
1155
- "f_start_date": Util.toStandardTimeString(),
1156
- "f_state": "有效",
1157
- "f_userinfo_id": this.paper.f_userinfoid,
1158
- "f_operate_people": Vue.user.name,
1159
- "f_operate_peopleid": Vue.user.id,
1160
- "f_operate_reason": this.paper.f_blocking_cause,
1161
- "f_operate_date": Util.toStandardTimeString(),
1162
- "f_limit_source": '隐患限购',
1163
- }
1164
- ]
1165
- }
1166
- }, {resolveMsg: null, rejectMsg: null})
1167
-
1168
- ////tag)
1169
- if (res2.data.code == 200) {
1170
- this.showmodel = false
1171
- this.enabled = true
1172
- this.paper.f_blacklist = "是"
1173
- this.$showMessage("将该用户限制购气成功!")
1174
- } else if (res2.data.msg == '数据增加重复') {
1175
- this.showmodel = false
1176
- this.enabled = true
1177
- this.$showMessage("该用户已被限制购气,请勿重复提交!")
1178
- } else {
1179
- this.$showMessage("网络异常,请稍后再试!")
1180
- }
1181
- },
1182
- cancel() {
1183
- this.backlistisselect = false
1184
- this.showmodel = false
1185
- },
1186
- deletecancel() {
1187
- this.deletebacklistisselect = false
1188
- this.showmodelthree = false
1189
- },
1190
- repiarmancg(val) {
1191
- if (val) {
1192
- ////tag
1193
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.name
1194
- let http1 = new HttpResetClass()
1195
- http1.load('POST', `${this.Url}/rs/sql/tel_singleTable_OrderBy`, {
1196
- data: {
1197
- items: 'f_user_telephone',
1198
- tablename: 't_user',
1199
- condition: `name = '${val}'`,
1200
- orderitem: 'id'
1201
- }
1202
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
1203
- this.$parent.$parent.model.f_repairman_phone = ress.data[0].f_user_telephone
1204
- })
1205
- }
1206
- },
1207
- },
1208
- async ready() {
1209
- this.isRecodr = this.$appdata.getSingleValue('无限制录音');
1210
- // await this.isoverDate()
1211
- ////tag
1212
- ////tag
1213
- ////tag)
1214
- ////tag))
1215
- if (this.$parent.$parent.role == 'repair') {
1216
- this.$set('style__', 'divmask')
1217
- this.$set('style_view_', '')
1218
- } else if (this.$parent.$parent.role == 'view' || this.$parent.$parent.item.f_upload_state == '已传') {
1219
- this.$set('style__', 'divmask')
1220
- this.$set('style_view_', 'divmask')
1221
- ////tag
1222
- } else {
1223
- this.$set('style__', '')
1224
- this.$set('style_view_', '')
1225
- }
1226
-
1227
- for (let item of this.radios) {
1228
- if (this.paper.f_client_evaluation == item.label) {
1229
- item.isChecked = true;
1230
- }
1231
- }
1232
- if (!this.paper.f_notified_path)
1233
- this.$set('paper.f_notified_path', Vue.nopic)
1234
- if (!this.paper.f_sign_path)
1235
- this.$set('paper.f_sign_path', Vue.nopic)
1236
- ////tag
1237
- if (!this.paper.f_overall_imgs) {
1238
- let imgs = []
1239
- // imgs.push({f_overall_path:Vue.nopic})
1240
- this.$set('paper.f_overall_imgs', imgs)
1241
- ////tag
1242
- }
1243
- if (!this.paper.f_overall2_path)
1244
- this.$set('paper.f_overall2_path', Vue.nopic)
1245
-
1246
- this.userid = this.role == 'view' ? this.$login.f.id : Vue.user.id
1247
- if (Vue.config.safecheck != undefined) {
1248
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1249
- if (Vue.config.safecheck.ApproveConfig.safeCheckToRepair != undefined) {
1250
- this.safeCheckToRepair = Vue.config.safecheck.ApproveConfig.safeCheckToRepair
1251
- }
1252
- }
1253
- }
1254
- let device = this.$parent.$parent.data
1255
- for (const deviceitem in device) {
1256
- if (deviceitem.startsWith('device')){
1257
- //tag)
1258
- let items = device[deviceitem][0].f_items
1259
- let deviceType = device[deviceitem][0].f_device_type
1260
- for (let i = 0; i < items.length; i++) {
1261
- if (items[i].f_is_defect){
1262
- let reason = items[i].f_item_name+":"
1263
- if (items[i].type === 'selector' || items[i].type === 'radio' || items[i].type === 'checkbox'){
1264
- for (let j = 0; j < items[i].f_item_value.length; j++) {
1265
- if (j+1 === items[i].f_item_value.length){
1266
- reason += items[i].f_item_value[j]
1267
- }else{
1268
- reason += items[i].f_item_value[j] + ","
1269
- }
1270
- }
1271
- }else{
1272
- reason += items[i].f_item_value
1273
- }
1274
- if (items[i].f_path){
1275
- this.defectImgs.push(items[i].f_path)
1276
- }
1277
- if (items[i].f_p1_path){
1278
- this.defectImgs.push(items[i].f_p1_path)
1279
- }
1280
- if (items[i].f_p2_path){
1281
- this.defectImgs.push(items[i].f_p2_path)
1282
- }
1283
- if (items[i].f_p3_path){
1284
- this.defectImgs.push(items[i].f_p3_path)
1285
- }
1286
- if (items[i].tooltip){
1287
- this.defectToolTip.push(items[i].tooltip)
1288
- }
1289
- this.defectReason.push({device:deviceType,deviceitem:reason})
1290
- }else if(items[i].type === 'errorstring' && items[i].f_item_value ){
1291
- let reason = items[i].f_item_name+":" + items[i].f_item_value
1292
- this.defectReason.push({device:deviceType,deviceitem:reason})
1293
- }
1294
-
1295
- }
1296
- }
1297
- }
1298
- ////tag
1299
- ////tag
1300
- //tag
1301
- ////tag
1302
- //tag)
1303
- //tag)
1304
- //tag)
1305
- ////tag
1306
- ////tag
1307
- ////tag
1308
- },
1309
- watch: {
1310
- '$parent.$parent.isUpload'(val) {
1311
- ////tag
1312
- },
1313
- 'meading'(val) {
1314
- ////tag
1315
- this.$parent.$parent.meading = val
1316
- },
1317
- 'backlistisselect'(val) {
1318
- if (val == true) {
1319
- this.showmodel = true
1320
- this.deletebacklistisselect=false
1321
- }
1322
- },
1323
- 'deletebacklistisselect'(val) {
1324
- if (val == true) {
1325
- this.showmodelthree = true
1326
- this.backlistisselect=false
1327
- }
1328
- },
1329
- 'isRecodr'(val) {
1330
- if (val == 'false' || val == undefined || val == null || val == '' || val == 'undefined') {
1331
- this.isRecodr = "false";
1332
- }
1333
- }
1334
- }
1335
- }
1336
- </script>
1337
- <style scoped>
1338
- .panel-self{
1339
- border-radius: 5px;
1340
- border:1px solid #c5e1f7;
1341
- background-color: #F2F6FA;
1342
- }
1343
- .text-left{
1344
- text-align:left;
1345
- }
1346
- .font{
1347
- font: 15px PingFang-SC-Medium;
1348
- color: #333333;
1349
- }
1350
- .showIi{
1351
- font: 14px PingFang-SC-Medium;
1352
- color: #666666;
1353
- }
1354
- .info{
1355
- margin-top: 15px;
1356
- border-radius: 5px;
1357
- background-color: #f3faff;
1358
- }
1359
- .btn-photo{
1360
- border: 0;
1361
- border-radius: 7px;
1362
- background-color: #7dc1f4;
1363
- font: 15px PingFang-SC-Bold;
1364
- height: 20%;
1365
- }
1366
- .div-photo{
1367
- width: auto;
1368
- height: auto;
1369
- /* margin-top: 10px; */
1370
- position: absolute;
1371
- bottom: 10px;
1372
- right: 10px;
1373
- }
1374
- .btn-voice{
1375
- border-radius: 7px;
1376
- border: 1px solid #dedede;
1377
- background-color: #f5fbff;
1378
- font: 15px PingFang-SC-Bold;
1379
- color: #499edf;
1380
- }
1381
- .save-btn{
1382
- width: 25%;
1383
- background-color:#499edf;
1384
- border-radius: 6px;
1385
- color: #FFFFFF;
1386
- font: 15px PingFang-SC-Bold;
1387
- }
1388
- .upload-btn{
1389
- width: 25%;
1390
- background-color:#ffffff;
1391
- border: 1px solid #499edf;
1392
- border-radius: 6px;
1393
- color: #499edf;
1394
- font: 15px PingFang-SC-Bold;
1395
- }
1396
- .repair-btn{
1397
- width: 25%;
1398
- border: 1px solid #499edf;
1399
- border-radius: 6px;
1400
- font: 15px PingFang-SC-Bold;
1401
- }
1402
- #el_ca_tx{
1403
- width: 100%;
1404
- margin: 5px;
1405
- }
1406
- #el_ca_txt{
1407
- width: 100%;
1408
- margin: 5px;
1409
- }
1410
- </style>
1
+ <template>
2
+ <form novalidate class="form-horizontal" style="width: 95%;margin: auto">
3
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
4
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
5
+ <label class="control-label font text-left col-md-4 col-xs-4">备注</label>
6
+ <div class="col-md-12 col-sm-12 col-xs-12">
7
+ <textarea v-model="paper.f_repair_approved_note" class="form-control"></textarea>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
12
+ <div class="text-center">
13
+ <label class="font">总体安检照片请依次拍摄:</label>
14
+ </div>
15
+ <div class="col-md-12 col-sm-12 col-xs-12">
16
+ <ol class="showIi">
17
+ <li>1.燃气设施全景</li>
18
+ <li>2.燃气表照片</li>
19
+ <li>3.灶具照片</li>
20
+ <li>4.其他照片</li>
21
+ </ol>
22
+ </div>
23
+ </div>
24
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
25
+ <label class="text-left font">总体安检照片</label>
26
+
27
+ <div class="auto" :class="style__">
28
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
29
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
30
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px" >
31
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in paper.f_overall_imgs">
32
+ <img-self :src="img.f_overall_path" alt="总体安检照片" :width="140" :height="170"></img-self>
33
+ <img src="../../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)" style="width: 15px;margin-top: -80px" alt="">
34
+ </div>
35
+ </div>
36
+ <div class="row text-right div-photo">
37
+ <button type="button" name="button" class="btn btn-photo" @click="takePic('f_overall_path', '总体安检照片')">拍照</button>
38
+ <!--<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_overall_path', '总体安检照片1')">拍照</button>-->
39
+ <!--&nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_overall_path', img.f_overall_path)" style="width: 25%;"></img>-->
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
46
+ <label class="text-left font">总体隐患照片</label>
47
+
48
+ <div class="auto" :class="style__">
49
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
50
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
51
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px" >
52
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in defectImgs">
53
+ <img-self :src="img" alt="总体隐患照片" :width="140" :height="170"></img-self>
54
+ <!-- <img src="../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)" style="width: 15px;margin-top: -80px" alt="">-->
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
62
+ <div class="text-center">
63
+ <label class="font">隐患汇总:</label>
64
+ </div>
65
+ <div class="col-md-12 col-sm-12 col-xs-12">
66
+ <ol class="showIi">
67
+ <li v-for="item in defectReason">{{ item.deviceitem }}</li>
68
+ </ol>
69
+ </div>
70
+ </div>
71
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
72
+ <div class="text-center">
73
+ <label class="font">整改建议汇总:</label>
74
+ </div>
75
+ <div class="col-md-12 col-sm-12 col-xs-12">
76
+ <ol class="showIi">
77
+ <li v-for="item in defectToolTip">{{ item }}</li>
78
+ </ol>
79
+ </div>
80
+ </div>
81
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
82
+ &ensp;&ensp;<input type="checkbox" v-model="paper.f_read_instructions" style="transform: scale(1.5);"/><label class="text-left font">&ensp;我已阅读须知内容</label>
83
+
84
+ </div>
85
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
86
+ <label class="text-left font">用户签名</label>
87
+ <div class="auto">
88
+ <div class="panel">
89
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
90
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
91
+ <div class="col-sm-4">
92
+ <img :class="style__" :src="paper.f_sign_path" :width="200" :height="150" />
93
+ </div>
94
+ </div>
95
+ <div class="row text-right div-photo">
96
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :style="timeSet(this.isneedDate)?'':'display:none'">
103
+ <label>请输入超期原因:</label><br/>
104
+ <textarea style="width: 100%;" v-model="paper.f_exceed_reason"></textarea>
105
+ </div>
106
+ <!-- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">-->
107
+ <!-- <div class="col-xs-6 col-sm-6">-->
108
+ <!-- <input type="checkbox" v-model="backlistisselect" :readonly="enabled"/><label class="text-left font" >限制该用户购气</label>-->
109
+ <!-- </div>-->
110
+ <!-- <div class="col-xs-6 col-sm-6">-->
111
+ <!-- <input type="checkbox" v-model="deletebacklistisselect" :readonly="deleteenabled"/><label class="text-left font" >取消该用户限制</label>-->
112
+ <!-- </div>-->
113
+ <!-- </div>-->
114
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__" v-if="Vue.$appdata.getParam('安检天然气安全使用须知检查')=='是'">
115
+ <div class="col-xs-12 col-sm-12">
116
+ <input type="checkbox" v-model="paper.f_gas_guidelines" /><label class="text-left font" >天然气安全使用须知</label>
117
+ </div>
118
+ <div class="col-xs-12 col-sm-12">
119
+ <input type="checkbox" v-model="paper.f_safety_warning" /><label class="text-left font" >天然气室内使用安全警示</label>
120
+ </div>
121
+ <div class="col-xs-12 col-sm-12">
122
+ <input type="checkbox" v-model="paper.f_gas_manual" /><label class="text-left font" >安全用气手册</label>
123
+ </div>
124
+ </div>
125
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
126
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
127
+ <input type="checkbox" v-model="paper.f_defect_notified" class="showIi" />安检通知书/隐患整改通知书
128
+ </div>
129
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="paper.f_defect_notified">
130
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
131
+ <button type="button" @click="print()">打印隐患整改单</button>
132
+ </div>
133
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
134
+ <label class="text-left font">安检通知书/隐患整改通知书照片(要求能清晰反应安检通知单和用户签字内容):</label>
135
+ <div class="auto" >
136
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
137
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
138
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
139
+ <div class="col-sm-4">
140
+ <img-self :src="paper.f_notified_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></img-self>
141
+ </div>
142
+ </div>
143
+ <div class="row text-right div-photo">
144
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_notified_path', '安检通知书/隐患整改通知书照片')">拍照</button>
145
+ &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_notified_path', this.paper.f_notified_path)" style="width: 25%;"></img>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </div>
150
+ </div>
151
+ </div>
152
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
153
+ <div class="row">
154
+ <label class="text-left">请对我们的服务做出评价:</label>
155
+ </div>
156
+ <div class="col-xs-4 col-sm-4" v-for="item in radios">
157
+ &ensp;&ensp;<input v-model="paper.f_client_evaluation" :value="item.label" :checked='item.isChecked' style="transform: scale(1.5);" @click="check(item.value)" type="radio">&ensp;{{item.label}}
158
+ </div>
159
+
160
+ <!--<div class="col-sm-4">-->
161
+ <!--<radio-group :value.sync="paper.f_client_evaluation" type="success" buttons="false">-->
162
+ <!--<radio value="满意">满意</radio>-->
163
+ <!--<radio value="基本满意">基本满意</radio>-->
164
+ <!--<radio value="不满意">不满意</radio>-->
165
+ <!--</radio-group>-->
166
+ <!--</div>-->
167
+ </div>
168
+
169
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="isRecodr=='false'">
170
+ <label class="text-left font">反馈录音:</label>
171
+ <div class="col-md-12 col-sm-12 col-xs-12">
172
+ <button type="button" name="button" class="btn btn-primary btn-voice" @click="record">
173
+ <img src="../../../assets/录音.png" style="width: 14%;">
174
+ <span v-if="!paper.f_recording1_path">开始录音</span>
175
+ <span v-if="paper.f_recording1_path">已录音</span>
176
+ </button>
177
+ &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" style="width: 15px;" :class="style__" @click="delAudioFile('f_recording1_path', paper.f_recording1_path)"></img>
178
+ </div>
179
+ </div>
180
+
181
+ <div v-if="false">
182
+ <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
183
+ <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' &&(paper.f_complete != '已完成' || paper.back_f_entry_status != '入户') " class="btn save-btn" @click="$parent.$parent.save('temp')">临时保存</button>
184
+ <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')" class="btn save-btn " @click="$parent.$parent.save('finish')">完成安检</button>
185
+ </div>
186
+ <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
187
+ <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%" id="upload" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')" class="btn upload-btn " @click="$parent.$parent.uploadCheckPaper" >上传</button>
188
+ <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%" v-if="(safeCheckToRepair == true || safeCheckToRepair == 'true') && $parent.$parent.actionEnabled" class="btn repair-btn btn-warning " type="button" @click="showToRepair">转维修</button> </div>
189
+ </div>
190
+
191
+ </div>
192
+ </form>
193
+ <!-- <modal :show.sync="showCheckToRepair" v-ref:modal :backdrop="isback">-->
194
+ <!-- <div slot="modal-header" class="modal-header">-->
195
+ <!-- <h4 class="modal-title">-->
196
+ <!-- 安检转维修-->
197
+ <!-- </h4>-->
198
+ <!-- </div>-->
199
+ <!-- <div slot="modal-body" class="modal-body">-->
200
+ <!-- <div v-if="showrepair">-->
201
+ <!-- <div class="row">-->
202
+ <!-- <label class="col-xs-4 col-md-4 control-label text-left">派单方式</label>-->
203
+ <!-- <div class="col-xs-8 col-md-8">-->
204
+ <!-- <label v-for="handling1 in handling" >-->
205
+ <!-- <input type="radio"-->
206
+ <!-- v-model="meading"-->
207
+ <!-- value="{{handling1.label}}">-->
208
+ <!-- {{handling1.label}}-->
209
+ <!-- </label>-->
210
+ <!-- </div>-->
211
+ <!-- </div>-->
212
+ <!-- <div class="row" v-if="meading == '转站点'">-->
213
+ <!-- <label class="col-xs-4 col-md-4 control-label font text-left" for="f_reciever">站点</label>-->
214
+ <!-- &lt;!&ndash;<input type="text" v-show="false" v-model="serviceacitivity.f_reciever"&ndash;&gt;-->
215
+ <!-- &lt;!&ndash;v-validate:f_reciever='{ required: true }'>&ndash;&gt;-->
216
+ <!-- <div class="col-xs-8 col-md-8">-->
217
+ <!-- <right-tree @ready="onReady" islist :Url="Url" :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择站点管理员" :selectData="" v-ref:f_reciever>-->
218
+ <!-- </right-tree>-->
219
+ <!-- </div>-->
220
+ <!-- </div>-->
221
+
222
+ <!-- <div class="row" style="margin-top: 6px" v-if="meading == '转维修员'">-->
223
+ <!-- <label class="col-xs-4 col-md-4 control-label font text-left">维修人</label>-->
224
+ <!-- <div class="col-xs-8">-->
225
+ <!-- <v-select :value="$parent.$parent.model.serviceacitivity[0].f_reciever" :value-single="true"-->
226
+ <!-- :options='f_repair_person' placeholder='请选择维修员'-->
227
+ <!-- close-on-select v-on:change="repiarmancg"></v-select>-->
228
+ <!-- </div>-->
229
+
230
+ <!-- </div>-->
231
+ <!-- <div class="row" style="margin-top: 6px">-->
232
+ <!-- <label for="f_repair" class="col-xs-4 col-md-4 control-label font text-left">报修类型</label>-->
233
+ <!-- <div class="col-xs-8 col-md-8">-->
234
+ <!-- <v-select :value.sync="$parent.$parent.model.f_repairtype" :value-single="true"-->
235
+ <!-- :options='repairstypes' placeholder='报修类型'-->
236
+ <!-- close-on-select>-->
237
+ <!-- </v-select>-->
238
+ <!-- </div>-->
239
+ <!-- </div>-->
240
+
241
+ <!-- <div class="row" style="margin-top: 6px">-->
242
+ <!-- <label class="control-label font text-left col-md-4 col-xs-4">备注</label>-->
243
+ <!-- <div class="col-xs-8 col-md-8">-->
244
+ <!-- <input type="text" v-model="$parent.$parent.model.f_remarks"/>-->
245
+ <!-- </div>-->
246
+
247
+ <!-- </div>-->
248
+
249
+ <!-- </div>-->
250
+ <!-- <div v-if="!showrepair">-->
251
+ <!-- 暂无隐患设备信息-->
252
+ <!-- </div>-->
253
+ <!-- </div>-->
254
+ <!-- <div slot="modal-footer" class="modal-footer">-->
255
+ <!-- <button type="button" class="btn btn-default" @click="uploadPaper()">确定</button>-->
256
+ <!-- <button type="button" class="btn btn-default" @click="undo()">取消</button>-->
257
+ <!-- </div>-->
258
+ <!-- </modal>-->
259
+ <!--拉黑框-->
260
+ <modal :show.sync="showmodel" v-ref:modal>
261
+ <div slot="modal-header" class="modal-header">
262
+ <h4 class="modal-title">
263
+ 限制用户购气
264
+ </h4>
265
+ </div>
266
+ <div slot="modal-body" class="modal-body">
267
+ <!-- <div class="row" style="margin-top: 6px">-->
268
+ <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
269
+ <!-- </div>-->
270
+ <div class="row" style="margin-top: 6px">
271
+ <textarea id="el_ca_tx" v-model.trim="cause" style="border-radius:4px;width: 100%;" placeholder="请输入限制用户购气原因" >
272
+ </textarea>
273
+ </div>
274
+ </div>
275
+ <div slot="modal-footer" class="modal-footer">
276
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="backlist()">确认</button>
277
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">取消</button>
278
+ </div>
279
+ </modal>
280
+
281
+ <modal :show.sync="showmodelthree" v-ref:modal>
282
+ <div slot="modal-header" class="modal-header">
283
+ <h4 class="modal-title">
284
+ 取消限制用户购气
285
+ </h4>
286
+ </div>
287
+ <div slot="modal-body" class="modal-body">
288
+ <!-- <div class="row" style="margin-top: 6px">-->
289
+ <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
290
+ <!-- </div>-->
291
+ <div class="row" style="margin-top: 6px">
292
+ <textarea id="el_ca_txt" v-model.trim="deletecause" style="border-radius:4px;width: 100%;" placeholder="请输入取消限制用户购气原因" >
293
+ </textarea>
294
+ </div>
295
+ </div>
296
+ <div slot="modal-footer" class="modal-footer">
297
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletebacklist()">确认</button>
298
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletecancel()">取消</button>
299
+ </div>
300
+ </modal>
301
+ </template>
302
+
303
+ <script>
304
+ import Vue from 'vue'
305
+ import * as Util from '../../../components/Util'
306
+ import { HttpResetClass } from 'vue-client'
307
+ import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
308
+ import Radio from 'vue-client/src/vue-strap/src/radioBtn'
309
+ import co from 'co'
310
+
311
+ // let getRepairParam = function * (self){
312
+ // let data = {
313
+ // $parent.$parent.model: self.$parent.$parent.model, loginUser: {
314
+ // name: self.role == 'view'?self.$login.f.name:Vue.user.name,
315
+ // ename: self.role == 'view'?self.$login.f.ename:Vue.user.ename
316
+ // }, user: self.user, callObj: self.callObj
317
+ // }
318
+ // if(self.$parent.$parent.meading == '转维修员'){
319
+ // data.toRepair = '一级派单'
320
+ // }
321
+ // data.$parent.$parent.model.f_attendant = data.loginUser.name
322
+ // ////tag
323
+ // ////tag
324
+ // let res
325
+ // let errString = self.$parent. $parent.errorVerify()
326
+ // if(errString){
327
+ // ////tag
328
+ // if (Vue.android)
329
+ // self.undo()
330
+ // this.$showMessage(errString)
331
+ // return
332
+ // } else {
333
+ // if(self.role == 'inspect'){
334
+ // if(self.$parent.$parent.meading == '转维修员' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
335
+ // this.$showMessage("请选择维修员!")
336
+ // return
337
+ // }
338
+ // if(self.$parent.$parent.meading == '转站点' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
339
+ // HostApp.alert()
340
+ // this.$showMessage("请选择站点!")
341
+ // return
342
+ // }
343
+ // if(self.$parent.$parent.model.f_repairtype == ''){
344
+ // this.$showMessage("请选择报修类型!")
345
+ // return
346
+ // }
347
+ // ////tag)
348
+ // let checkResult = '正常'
349
+ // let options = [{"data": "已处理"},{"data": "未处理"}]
350
+ // let value = ''
351
+ // let codata = JSON.parse(JSON.stringify(self.paper))
352
+ // for(let device in codata){
353
+ // ////tag)
354
+ // let f_device_type
355
+ // if(device.startsWith("device")){
356
+ // for(let item in codata[device]) {
357
+ // if(codata[device].length > 1 ){
358
+ // let j = Number.parseInt(item)+1
359
+ // f_device_type = `${codata[device][item].f_device_type}${j}`
360
+ // }else{
361
+ // f_device_type = codata[device][item].f_device_type
362
+ // }
363
+ // // ////tag
364
+ // let details = []
365
+ // for(let i in codata[device][item].f_items){
366
+ // let items = codata[device][item].f_items[i]
367
+ // ////tag
368
+ // if(items.f_is_defect == true || items.f_is_defect == 'true'){
369
+ // checkResult = '有隐患'
370
+ // ////tag
371
+ // let res = yield self.$resetpost(`${self.Url}/rs/sql/getDeviceItem`,{data:{f_device_id:codata[device][item].f_device_id,f_item_name:items.f_item_name}})
372
+ // ////tag)
373
+ // self.$set('detail.f_defect_id', res.data[0].id)
374
+ // self.$set('detail.f_project',`${items.f_item_name}:${items.f_item_value}`)
375
+ // self.$set('detail.type',items.type)
376
+ // self.$set('detail.options',options)
377
+ // details.push(JSON.parse(JSON.stringify(self.detail)))
378
+ // }
379
+ // if(items.type == 'selector'){
380
+ // items.selected = ''
381
+ // }
382
+ // self.detail = {}
383
+ // }
384
+ // ////tag
385
+ // self.$set('defectDevice.f_type',f_device_type)
386
+ // self.$set('defectDevice.details',details)
387
+ // if(self.defectDevice.details.length >0 ){
388
+ // self.repairitems.push(JSON.parse(JSON.stringify(self.defectDevice)))
389
+ // }
390
+ // self.defectDevice = {}
391
+ // ////tag
392
+ // }
393
+ // }
394
+ // }
395
+ // self.$set('$parent.$parent.model.f_repairitems.data',self.repairitems)
396
+ //
397
+ //
398
+ // ////tag)
399
+ // res = self.$androidUtil.bzLogic('safecheckToRepair',data)
400
+ // ////tag
401
+ // ////tag
402
+ // ////tag
403
+ // if(res.code == 200){
404
+ // self.$parent.$parent.isSafeCheckToRepair = true
405
+ // self.undo()
406
+ // self.$set('paper.f_SafeToRepair_id',res.data.f_service_id)
407
+ // ////tag
408
+ // self.$resetpost(`${self.Url}/rs/logic/updatePaperRepair`,{data:{f_paper_id:self.paper.f_paper_id,f_SafeToRepair_id:res.data.f_service_id}}).then((ret)=>{
409
+ // ////tag
410
+ // if(ret.data.code ==200){
411
+ // ////tag
412
+ // self.$parent.$parent.$back()
413
+ // }else{
414
+ // self.$showMessage('安检转维修失败!')
415
+ // }
416
+ // }).catch(v=>{
417
+ // ////tag)
418
+ // self.$showMessage('安检转维修失败!')
419
+ // })
420
+ // }else{
421
+ // self.$showMessage('安检转维修失败!')
422
+ // }
423
+ // }
424
+ // }
425
+ // }
426
+
427
+
428
+
429
+ // let getRepairs = async function(self,url) {
430
+ // // 获取配置信息
431
+ // try {
432
+ // let val = {source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${Vue.user.id}`}
433
+ // let repairs =[]
434
+ // let res = await Vue.resetpost(`${url}/rs/search`,{data: val},{resolveMsg: null, rejectMsg: null})
435
+ // res.data.forEach((item) => {
436
+ // repairs.push({label: item.name, value: item})
437
+ // })
438
+ // self.f_repair_person = repairs
439
+ // if(self.$parent.$parent.role == 'inspect'){
440
+ // let res = self.$androidUtil.bzLogic('getUserInfo',{id:self.paper.f_userinfoid})
441
+ // if(res.code == 200){
442
+ // self.$parent.$parent.user = res.data[0]
443
+ // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
444
+ // }
445
+ // }else{
446
+ // ////tag
447
+ // self.$resetpost(`${self.Url}/rs/sql/safeCheckgetUserInfo`,{data:{id:self.paper.f_userinfoid}},{resolveMsg: null, rejectMsg: null}).then((res)=>{
448
+ // ////tag
449
+ // if(res.data.length != 0){
450
+ // self.$parent.$parent.user = res.data[0]
451
+ // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
452
+ // }
453
+ // })
454
+ // // path({alias:'getUserInfo',data:{id:this.paper.f_userinfoid}})
455
+ // }
456
+ // } catch (error) {
457
+ // ////tag
458
+ // }
459
+ // }
460
+
461
+ export default {
462
+ title: '用户反馈',
463
+ data() {
464
+ return {
465
+ defectImgs: [],
466
+ defectToolTip: [],
467
+ defectReason: [],
468
+ images: [],
469
+ showmodelthree: false,
470
+ isneedDate: this.$parent.$parent.isneedDate,
471
+ plan: this.$parent.$parent.item,
472
+ meading: this.$parent.$parent.meading,
473
+ paper: this.$parent.$parent.data,
474
+ printContent: [],
475
+ upload_state: this.$parent.$parent.item.f_upload_state,
476
+ enabled: false,//控制限制购气是否可选
477
+ deleteenabled: false,
478
+ showmodel: false,
479
+ backlistisselect: false,
480
+ deletebacklistisselect: false,
481
+ radios: [
482
+ {
483
+ label: '满意',
484
+ value: 0,
485
+ isChecked: false,
486
+ },
487
+ {
488
+ label: '基本满意',
489
+ value: 1,
490
+ isChecked: false,
491
+ },
492
+ {
493
+ label: '不满意',
494
+ value: 2,
495
+ isChecked: false,
496
+ },
497
+ ],
498
+ repairitems: [],
499
+ repairstypes: this.$appdata.getParam('报修类型'),
500
+ // f_repair_person: this.readRepair(),
501
+ showrepair: false,
502
+ safeCheckToRepair: '',
503
+ showCheckToRepair: false,
504
+ userid: '',
505
+ source:
506
+ 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
507
+ 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
508
+ isback: false,
509
+ defectDevice: {},
510
+ detail: {},
511
+ callObj: null,
512
+ user: {},
513
+ role: this.$parent.$parent.role,
514
+ handling: [{label: '转站点', value: '转站点'}, {label: '转维修员', value: '转维修员'}],
515
+ Url: this.$androidUtil.getProxyUrl(),
516
+ cause: "",
517
+ deletecause: "",
518
+ isRecodr: "false", //单值参数,为true则是开启全程录音
519
+ }
520
+ },
521
+ props: ['idx'],
522
+ components: {
523
+ RadioGroup,
524
+ Radio
525
+ },
526
+ methods: {
527
+ timeSet(val) {
528
+ //////tag
529
+ if (!val) {
530
+ return
531
+ }
532
+ let time = new Date(val).getTime()
533
+ let time2 = new Date().getTime()
534
+ if (time2 > time) {
535
+ return true
536
+ }
537
+ },
538
+ // async isoverDate(){
539
+ // ////tag
540
+ // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/androidGetuserinfo`, {data:{
541
+ // condition:"f_plan_item_id='"+this.$parent.$parent.item.id+"'"
542
+ // }
543
+ // })
544
+ // this.isneedDate=res.data[0]["f_subscribe_date"]
545
+ // ////tag
546
+ // },
547
+ check(index) {
548
+ ////tag
549
+ // 先取消所有选中项
550
+ for (let item of this.radios) {
551
+ item.isChecked = false;
552
+ }
553
+ //再设置当前点击项选中
554
+ this.paper.f_client_evaluation = this.radios[index].label;
555
+ // 设置值,以供传递
556
+ this.radios[index].isChecked = true;
557
+ ////tag;
558
+ },
559
+ getSignValue(fileName) {
560
+ this.f_signname = fileName
561
+ },
562
+ cameraCallBack(prop, fileName) {
563
+ if (prop == 'f_overall_path') {
564
+ let f_overall_path = fileName + '?' + Math.random()
565
+ HostApp.__this__.paper.f_overall_imgs.push({
566
+ f_overall_path: f_overall_path
567
+ })
568
+ } else {
569
+ HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
570
+ }
571
+ HostApp.__callback__ = null
572
+ HostApp.__this__ = null
573
+ },
574
+ takePic(prop, title, index) {
575
+ HostApp.__callback__ = this.cameraCallBack
576
+ HostApp.__this__ = this
577
+ ////tag
578
+ ////tag
579
+ let fileName
580
+ if (prop == 'f_overall_path') {
581
+ if (!this.paper.f_overall_imgs[index] || this.paper.f_overall_imgs[index].f_overall_path.includes("nopic.png")) {
582
+ fileName = Util.guid() + '-' + prop + '.jpg'
583
+ } else {
584
+ fileName = Util.getFileName(this.paper.f_overall_imgs[index].f_overall_path)
585
+ }
586
+ } else {
587
+ if (!this.paper[prop] || this.paper[prop].includes("nopic.png")) {
588
+ fileName = Util.guid() + '-' + prop + '.jpg'
589
+ } else {
590
+ fileName = Util.getFileName(this.paper[prop])
591
+ }
592
+ }
593
+
594
+ HostApp._open_a_page({
595
+ type: 'boomerang',
596
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
597
+ param: {
598
+ file: fileName,
599
+ requestCode: 111,
600
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
601
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code+ '\t' + this.paper.f_user_name+ '\t' + this.paper.f_address
602
+ }
603
+ })
604
+ },
605
+ amrCallBack(fileName) {
606
+ HostApp.__this__.$set('paper.f_recording1_path', fileName)
607
+ HostApp.__callback__ = null
608
+ HostApp.__this__ = null
609
+ },
610
+ record() {
611
+ if (this.$parent.$parent.role != 'inspect') {
612
+ if (this.paper.f_recording1_path != '') {
613
+ window.location = this.paper.f_recording1_path
614
+ }
615
+ } else {
616
+ HostApp.__callback__ = this.amrCallBack
617
+ HostApp.__this__ = this
618
+ let fileName
619
+ if (!this.paper.f_recording1_path) {
620
+ fileName = Util.guid() + '.amr'
621
+ } else {
622
+ fileName = Util.getFileName(this.paper.f_recording1_path)
623
+ }
624
+ HostApp._open_a_page({
625
+ type: 'boomerang',
626
+ page: 'com.aofeng.hybrid.android.peripheral.AudioClipActivity',
627
+ param: {file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("%s");'}
628
+ })
629
+ }
630
+ },
631
+ // 签名回调
632
+ signCallback(prop, fileName) {
633
+ // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
634
+ HostApp.__this__.$set('paper.f_sign_path', fileName)
635
+ HostApp.__callback__ = null
636
+ HostApp.__this__ = null
637
+ },
638
+ // 用户签名
639
+ sign() {
640
+ if (!this.paper.f_read_instructions) {
641
+ this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
642
+ return
643
+ }
644
+ this.delAudioFile('f_sign_path', this.paper.f_sign_path)
645
+ let prop = 'f_sign_path'
646
+ let idx = 'aofeng'
647
+ let fileName
648
+ if (!this.paper.f_sign_path) {
649
+ fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
650
+ } else {
651
+ fileName = Util.getFileName(this.paper.f_sign_path)
652
+ }
653
+ HostApp.__callback__ = this.signCallback
654
+ HostApp.__this__ = this
655
+ HostApp.getSignature({
656
+ file: fileName,
657
+ requestCode: 111,
658
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
659
+ })
660
+ },
661
+ delfile(prop, fileName, index) {
662
+ if (fileName == Vue.nopic)
663
+ return
664
+ else {
665
+ if (prop == 'f_overall_path') {
666
+ this.paper.f_overall_imgs.splice(index, 1)
667
+ HostApp.delfile(fileName)
668
+ } else {
669
+ HostApp.delfile(fileName)
670
+ this.paper[prop] = Vue.nopic
671
+ }
672
+ }
673
+ },
674
+ delAudioFile(prop, fileName) {
675
+ if (!fileName)
676
+ return
677
+ else {
678
+ HostApp.delfile(fileName)
679
+ this.paper[prop] = null
680
+ }
681
+ },
682
+ //获取打印用户信息
683
+ getUser() {
684
+ if (this.paper.f_user_name == undefined)
685
+ this.paper.f_user_name = ''
686
+ this.printContent.push({
687
+ type: 3,
688
+ text: '用户名称:' + this.paper.f_user_name,
689
+ fontsize: 2,
690
+ isbold: false,
691
+ align: 'left'
692
+ })
693
+ if (this.paper.f_userinfo_code == undefined)
694
+ this.paper.f_userinfo_code = ''
695
+ this.printContent.push({
696
+ type: 3,
697
+ text: '用户编号:' + this.paper.f_userinfo_code,
698
+ fontsize: 2,
699
+ isbold: false,
700
+ align: 'left'
701
+ })
702
+ if (this.paper.f_address == undefined)
703
+ this.paper.f_address = ''
704
+ this.printContent.push({type: 3, text: '地址:' + this.paper.f_address, fontsize: 2, isbold: false, align: 'left'})
705
+ if (this.paper.f_user_phone == undefined)
706
+ this.paper.f_user_phone = ''
707
+ this.printContent.push({
708
+ type: 3,
709
+ text: '电话:' + this.paper.f_user_phone,
710
+ fontsize: 2,
711
+ isbold: false,
712
+ align: 'left'
713
+ })
714
+ },
715
+ verify() {
716
+ let hasError = this.$parent.$parent.verifyUser()
717
+ if (hasError)
718
+ return hasError
719
+ hasError = this.$parent.$parent.verifyDevices()
720
+ if (hasError)
721
+ return hasError
722
+ },
723
+ print() {
724
+ let errString = this.verify()
725
+ if (errString) {
726
+ ////tag
727
+ if (Vue.android)
728
+ this.$showMessage(errString)
729
+ return
730
+ }
731
+ // 文本
732
+ let templatename = '安检结果单'
733
+ if (Vue.config.safecheck != undefined) {
734
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
735
+ if (Vue.config.safecheck.ApproveConfig.templatename != undefined) {
736
+ templatename = Vue.config.safecheck.ApproveConfig.templatename
737
+ }
738
+ }
739
+ }
740
+ let textHead = {type: 3, text: templatename, fontsize: 3, isbold: true, align: 'center'}
741
+ let feedPageHead = {type: 4, value: 2, unit: 'line'}
742
+ let feedPageEnd = {type: 4, value: 4, unit: 'line'}
743
+ this.printContent.push(textHead)
744
+ this.printContent.push(feedPageHead)
745
+ this.getUser()
746
+ this.getDefect()
747
+ this.getCheck()
748
+ this.printContent.push(feedPageEnd)
749
+ let arrstr = JSON.stringify(this.printContent)
750
+ ////tag
751
+ this.$androidUtil.print(arrstr)
752
+ this.$set('printContent', [])
753
+ },
754
+ //打印安检信息
755
+ getCheck() {
756
+ let telephone = '96777'
757
+ if (Vue.config.safecheck != undefined) {
758
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
759
+ if (Vue.config.safecheck.ApproveConfig.checkphone != undefined) {
760
+ telephone = Vue.config.safecheck.ApproveConfig.checkphone
761
+ }
762
+ }
763
+ }
764
+ this.printContent.push({
765
+ type: 3,
766
+ text: '*******************************',
767
+ fontsize: 3,
768
+ isbold: false,
769
+ align: 'center'
770
+ })
771
+ this.printContent.push({type: 3, text: '咨询电话;' + telephone, fontsize: 2, isbold: false, align: 'left'})
772
+ this.printContent.push({type: 3, text: '安检人:' + Vue.user.name, fontsize: 2, isbold: false, align: 'left'})
773
+ this.printContent.push({
774
+ type: 3,
775
+ text: '安检时间:' + this.getNowFormatDate(),
776
+ fontsize: 2,
777
+ isbold: false,
778
+ align: 'left'
779
+ })
780
+ this.printContent.push({type: 3, text: '用户签字:', fontsize: 2, isbold: false, align: 'left'})
781
+ this.printContent.push({type: 4, value: 4, unit: 'line'})
782
+ },
783
+
784
+ getDefect() {
785
+ let showmore = false
786
+ if (Vue.config.safecheck != undefined) {
787
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
788
+ if (Vue.config.safecheck.ApproveConfig.showmore != undefined) {
789
+ showmore = Vue.config.safecheck.ApproveConfig.showmore
790
+ }
791
+ }
792
+ }
793
+
794
+ let backData = this.$parent.$parent.getAllDefect()
795
+ // 对隐患信息进行遍历
796
+ let res = JSON.parse(backData.f_defect_content)
797
+ this.printContent.push({
798
+ type: 3,
799
+ text: '安检结果:' + res.result,
800
+ fontsize: 2,
801
+ isbold: false,
802
+ align: 'left'
803
+ })
804
+ this.printContent.push({
805
+ type: 3,
806
+ text: '*******************************',
807
+ fontsize: 3,
808
+ isbold: false,
809
+ align: 'center'
810
+ })
811
+
812
+
813
+ if (showmore) {
814
+ //全部打印
815
+ for (let dev in this.$parent.$parent.config) {
816
+ for (let device in backData) {
817
+ if (device.startsWith("device")) {
818
+ for (let item in backData[device]) {
819
+ //遍历结果
820
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
821
+ let error = true
822
+ for (let i in backData[device][item].f_items) {
823
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
824
+ error = false
825
+ }
826
+ }
827
+ if (error) {
828
+ this.printContent.push({
829
+ type: 3,
830
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
831
+ fontsize: 2,
832
+ isbold: false,
833
+ align: 'left'
834
+ })
835
+ } else {
836
+ this.printContent.push({
837
+ type: 3,
838
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
839
+ fontsize: 2,
840
+ isbold: true,
841
+ align: 'left'
842
+ })
843
+ }
844
+
845
+ for (let i in backData[device][item].f_items) {
846
+ if (backData[device][item].f_items[i].f_item_value != '' && backData[device][item].f_items[i].f_item_value != null) {
847
+ this.printContent.push({
848
+ type: 3,
849
+ text: backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
850
+ fontsize: 2,
851
+ isbold: false,
852
+ align: 'left'
853
+ })
854
+ }
855
+ }
856
+ this.printContent.push({type: 4, value: 2, unit: 'line'})
857
+ }
858
+ }
859
+ }
860
+ }
861
+ }
862
+
863
+ for (let dev in this.$parent.$parent.config) {
864
+ for (let device in backData) {
865
+ if (device.startsWith("device")) {
866
+ for (let item in backData[device]) {
867
+ //遍历结果
868
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
869
+ let error = true
870
+ for (let i in backData[device][item].f_items) {
871
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
872
+ error = false
873
+ }
874
+ }
875
+ if (!error) {
876
+ this.printContent.push({
877
+ type: 3,
878
+ text: '隐患:',
879
+ fontsize: 2,
880
+ isbold: true,
881
+ align: 'left'
882
+ })
883
+ }
884
+ }
885
+ }
886
+ }
887
+ }
888
+ for (let device in backData) {
889
+ if (device.startsWith("device")) {
890
+ for (let item in backData[device]) {
891
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
892
+ for (let i in backData[device][item].f_items) {
893
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
894
+ this.printContent.push({
895
+ type: 3,
896
+ text: backData[device][item].f_items[i].f_item_name + ' ' + backData[device][item].f_items[i].f_item_value,
897
+ fontsize: 2,
898
+ isbold: true,
899
+ align: 'left'
900
+ })
901
+ }
902
+ }
903
+ }
904
+ }
905
+ }
906
+ }
907
+
908
+ }
909
+ } else {
910
+ for (let dev in this.$parent.$parent.config) {
911
+ for (let device in backData) {
912
+ if (device.startsWith("device")) {
913
+ for (let item in backData[device]) {
914
+ //遍历结果
915
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
916
+ let error = true
917
+ for (let i in backData[device][item].f_items) {
918
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
919
+ error = false
920
+ }
921
+ }
922
+ if (error) {
923
+ this.printContent.push({
924
+ type: 3,
925
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
926
+ fontsize: 2,
927
+ isbold: false,
928
+ align: 'left'
929
+ })
930
+ } else {
931
+ this.printContent.push({
932
+ type: 3,
933
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
934
+ fontsize: 2,
935
+ isbold: false,
936
+ align: 'left'
937
+ })
938
+ }
939
+
940
+ for (let i in backData[device][item].f_items) {
941
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
942
+ this.printContent.push({
943
+ type: 3,
944
+ text: '隐患:' + backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
945
+ fontsize: 2,
946
+ isbold: false,
947
+ align: 'left'
948
+ })
949
+ }
950
+ }
951
+ this.printContent.push({type: 4, value: 2, unit: 'line'})
952
+ }
953
+ }
954
+ }
955
+ }
956
+ }
957
+ }
958
+ },
959
+ //获取当前时间
960
+ getNowFormatDate() {
961
+ var date = new Date();
962
+ var seperator1 = "-";
963
+ var seperator2 = ":";
964
+ var month = date.getMonth() + 1;
965
+ var strDate = date.getDate();
966
+ if (month >= 1 && month <= 9) {
967
+ month = "0" + month;
968
+ }
969
+ if (strDate >= 0 && strDate <= 9) {
970
+ strDate = "0" + strDate;
971
+ }
972
+ var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
973
+ + " " + date.getHours() + seperator2 + date.getMinutes()
974
+ + seperator2 + date.getSeconds();
975
+ return currentdate;
976
+ },
977
+ readRepair() {
978
+ let url = this.$androidUtil.getProxyUrl()
979
+ let gen = getRepairs(this, url)
980
+ return co(gen)
981
+ },
982
+ showToRepair() {
983
+ let res = this.hasDefect()
984
+ ////tag
985
+ ////tag
986
+ if (res == '正常') {
987
+ this.showrepair = false
988
+ } else {
989
+ this.showrepair = true
990
+ this.assignObj()
991
+ }
992
+ this.showCheckToRepair = !this.showCheckToRepair
993
+ },
994
+ // 选中部门
995
+ reres(val) {
996
+ if (val.res == undefined) {
997
+ return
998
+ }
999
+ this.$parent.$parent.model.serviceacitivity[0].f_meetunit = val.res
1000
+ this.$parent.$parent.model.f_meetunit = val.res
1001
+ this.$parent.$parent.model.f_orgstr = val.resids
1002
+ var arr = val.res.split('.')
1003
+ this.$parent.$parent.model.f_outlets = arr[arr.length - 1]
1004
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.resids
1005
+ },
1006
+ assignObj() {
1007
+ this.$parent.$parent.model.f_contact_phone = this.paper.f_user_phone
1008
+ this.$parent.$parent.model.f_user_name = this.paper.f_user_name
1009
+ this.$parent.$parent.model.f_address = this.paper.f_address
1010
+ this.$parent.$parent.model.f_user_type = this.paper.f_check_type
1011
+ this.$parent.$parent.model.f_street = this.paper.f_street
1012
+ this.$parent.$parent.model.f_residential_area = this.paper.f_residential_area
1013
+ this.$parent.$parent.model.f_building = this.paper.f_building
1014
+ this.$parent.$parent.model.f_unit = this.paper.f_unit
1015
+ this.$parent.$parent.model.f_floor = this.paper.f_floor
1016
+ this.$parent.$parent.model.f_room = this.paper.f_room
1017
+ this.$parent.$parent.model.f_floor = this.paper.f_floor
1018
+ this.$parent.$parent.model.f_userinfo_id = this.paper.f_userinfoid
1019
+ this.$parent.$parent.model.f_userinfo_code = this.paper.f_userinfo_code
1020
+ },
1021
+ hasDefect() {
1022
+ let checkResult = '正常'
1023
+ let codata = JSON.parse(JSON.stringify(this.paper))
1024
+ for (let device in this.paper) {
1025
+ if (device.startsWith("device")) {
1026
+ for (let item in this.paper[device]) {
1027
+ for (let i in this.paper[device][item].f_items) {
1028
+ let items = this.paper[device][item].f_items[i]
1029
+ ////tag
1030
+ if (items.f_is_defect == true || items.f_is_defect == 'true') {
1031
+ checkResult = '有隐患'
1032
+ }
1033
+ }
1034
+ }
1035
+ }
1036
+ }
1037
+ return checkResult
1038
+ },
1039
+ uploadPaper() {
1040
+ if (this.showrepair) {
1041
+ ////tag
1042
+ ////tag
1043
+ ////tag
1044
+ ////tag
1045
+
1046
+ if (this.meading == '转维修员' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1047
+ this.$showMessage("请选择维修员!")
1048
+ return
1049
+ }
1050
+ if (this.$parent.$parent.meading == '转站点' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1051
+ this.$showMessage("请选择站点!")
1052
+ return
1053
+ }
1054
+ if (this.$parent.$parent.model.f_repairtype == '') {
1055
+ this.$showMessage("请选择报修类型!")
1056
+ return
1057
+ }
1058
+ this.$parent.$parent.isToRepair = true
1059
+ this.$parent.$parent.uploadCheckPaper()
1060
+ // this.$parent.$parent.savePaper(false).then((res) => {
1061
+ // ////tag
1062
+ // if(res != true){
1063
+ // ////tag
1064
+ // return
1065
+ // }else{
1066
+ // this.$parent.$parent.todo()
1067
+ // }
1068
+ // })
1069
+ } else {
1070
+ this.$parent.$parent.undo()
1071
+ }
1072
+
1073
+ },
1074
+ //确认安检转维修
1075
+
1076
+ undo() {
1077
+ this.showCheckToRepair = !this.showCheckToRepair
1078
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = ''
1079
+ this.$parent.$parent.model.serviceacitivity[0].f_meetunit = ''
1080
+ this.$parent.$parent.model.f_repairtype = ''
1081
+ this.meading = '转站点'
1082
+ },
1083
+ //取消拉黑
1084
+ async deletebacklist() {
1085
+ if (!this.deletecause) {
1086
+ this.$showMessage("请填写取消拉黑原因!")
1087
+ return
1088
+ }
1089
+ this.paper.f_blocking_cause = this.deletecause
1090
+ ////tag)
1091
+ let http = new HttpResetClass()
1092
+ ////tag
1093
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1094
+ data: {
1095
+ items: "version",
1096
+ tablename: "t_userinfo",
1097
+ condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1098
+ orderitem: "f_userinfo_id"
1099
+ }
1100
+ }, {resolveMsg: null, rejectMsg: null})
1101
+ ////tag)
1102
+ ////tag
1103
+ let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/sale_operateQuotaRecord`, {
1104
+ data: {
1105
+ "f_operat_type": "1", // 取消限购
1106
+ "f_userinfo_id": this.paper.f_userinfoid,
1107
+ "f_cancel_people": Vue.user.name,
1108
+ "f_cancel_peopleid": Vue.user.id,
1109
+ "f_cancel_reason": this.paper.f_blocking_cause,
1110
+ "f_limit_source": '隐患限购',
1111
+ }
1112
+ }, {resolveMsg: null, rejectMsg: null})
1113
+ //
1114
+ ////tag)
1115
+ if (res2.data.code == 200) {
1116
+ this.showmodelthree = false
1117
+ this.deleteenabled = true
1118
+ this.paper.f_blacklist = "否"
1119
+ this.$parent.$parent.deletebacklist_status = false
1120
+ this.$showMessage("取消该用户限制购气成功!")
1121
+ } else {
1122
+ this.$showMessage("网络异常,请稍后再试!")
1123
+ }
1124
+ },
1125
+ async backlist() {
1126
+ if (!this.cause) {
1127
+ this.$showMessage("请填写拉黑原因!")
1128
+ return
1129
+ }
1130
+ this.paper.f_blocking_cause = this.cause
1131
+ ////tag)
1132
+ let http = new HttpResetClass()
1133
+ ////tag
1134
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1135
+ data: {
1136
+ items: "version",
1137
+ tablename: "t_userinfo",
1138
+ condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1139
+ orderitem: "f_userinfo_id"
1140
+ }
1141
+ }, {resolveMsg: null, rejectMsg: null})
1142
+ ////tag)
1143
+ ////tag
1144
+ let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/sale_operateQuotaRecord`, {
1145
+ data: {
1146
+ f_operat_type: "0",
1147
+ limitList: [
1148
+ {
1149
+ "f_third_pay": 0,
1150
+ "f_time_type": "按日",
1151
+ "f_time_value": "365",
1152
+ "f_limit_times": "0",
1153
+ "f_limit_type": "气量",
1154
+ "f_limit_value": "0",
1155
+ "f_start_date": Util.toStandardTimeString(),
1156
+ "f_state": "有效",
1157
+ "f_userinfo_id": this.paper.f_userinfoid,
1158
+ "f_operate_people": Vue.user.name,
1159
+ "f_operate_peopleid": Vue.user.id,
1160
+ "f_operate_reason": this.paper.f_blocking_cause,
1161
+ "f_operate_date": Util.toStandardTimeString(),
1162
+ "f_limit_source": '隐患限购',
1163
+ }
1164
+ ]
1165
+ }
1166
+ }, {resolveMsg: null, rejectMsg: null})
1167
+
1168
+ ////tag)
1169
+ if (res2.data.code == 200) {
1170
+ this.showmodel = false
1171
+ this.enabled = true
1172
+ this.paper.f_blacklist = "是"
1173
+ this.$showMessage("将该用户限制购气成功!")
1174
+ } else if (res2.data.msg == '数据增加重复') {
1175
+ this.showmodel = false
1176
+ this.enabled = true
1177
+ this.$showMessage("该用户已被限制购气,请勿重复提交!")
1178
+ } else {
1179
+ this.$showMessage("网络异常,请稍后再试!")
1180
+ }
1181
+ },
1182
+ cancel() {
1183
+ this.backlistisselect = false
1184
+ this.showmodel = false
1185
+ },
1186
+ deletecancel() {
1187
+ this.deletebacklistisselect = false
1188
+ this.showmodelthree = false
1189
+ },
1190
+ repiarmancg(val) {
1191
+ if (val) {
1192
+ ////tag
1193
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.name
1194
+ let http1 = new HttpResetClass()
1195
+ http1.load('POST', `${this.Url}/rs/sql/tel_singleTable_OrderBy`, {
1196
+ data: {
1197
+ items: 'f_user_telephone',
1198
+ tablename: 't_user',
1199
+ condition: `name = '${val}'`,
1200
+ orderitem: 'id'
1201
+ }
1202
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
1203
+ this.$parent.$parent.model.f_repairman_phone = ress.data[0].f_user_telephone
1204
+ })
1205
+ }
1206
+ },
1207
+ },
1208
+ async ready() {
1209
+ this.isRecodr = this.$appdata.getSingleValue('无限制录音');
1210
+ // await this.isoverDate()
1211
+ ////tag
1212
+ ////tag
1213
+ ////tag)
1214
+ ////tag))
1215
+ if (this.$parent.$parent.role == 'repair') {
1216
+ this.$set('style__', 'divmask')
1217
+ this.$set('style_view_', '')
1218
+ } else if (this.$parent.$parent.role == 'view' || this.$parent.$parent.item.f_upload_state == '已传') {
1219
+ this.$set('style__', 'divmask')
1220
+ this.$set('style_view_', 'divmask')
1221
+ ////tag
1222
+ } else {
1223
+ this.$set('style__', '')
1224
+ this.$set('style_view_', '')
1225
+ }
1226
+
1227
+ for (let item of this.radios) {
1228
+ if (this.paper.f_client_evaluation == item.label) {
1229
+ item.isChecked = true;
1230
+ }
1231
+ }
1232
+ if (!this.paper.f_notified_path)
1233
+ this.$set('paper.f_notified_path', Vue.nopic)
1234
+ if (!this.paper.f_sign_path)
1235
+ this.$set('paper.f_sign_path', Vue.nopic)
1236
+ ////tag
1237
+ if (!this.paper.f_overall_imgs) {
1238
+ let imgs = []
1239
+ // imgs.push({f_overall_path:Vue.nopic})
1240
+ this.$set('paper.f_overall_imgs', imgs)
1241
+ ////tag
1242
+ }
1243
+ if (!this.paper.f_overall2_path)
1244
+ this.$set('paper.f_overall2_path', Vue.nopic)
1245
+
1246
+ this.userid = this.role == 'view' ? this.$login.f.id : Vue.user.id
1247
+ if (Vue.config.safecheck != undefined) {
1248
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1249
+ if (Vue.config.safecheck.ApproveConfig.safeCheckToRepair != undefined) {
1250
+ this.safeCheckToRepair = Vue.config.safecheck.ApproveConfig.safeCheckToRepair
1251
+ }
1252
+ }
1253
+ }
1254
+ let device = this.$parent.$parent.data
1255
+ for (const deviceitem in device) {
1256
+ if (deviceitem.startsWith('device')){
1257
+ //tag)
1258
+ let items = device[deviceitem][0].f_items
1259
+ let deviceType = device[deviceitem][0].f_device_type
1260
+ for (let i = 0; i < items.length; i++) {
1261
+ if (items[i].f_is_defect){
1262
+ let reason = items[i].f_item_name+":"
1263
+ if (items[i].type === 'selector' || items[i].type === 'radio' || items[i].type === 'checkbox'){
1264
+ for (let j = 0; j < items[i].f_item_value.length; j++) {
1265
+ if (j+1 === items[i].f_item_value.length){
1266
+ reason += items[i].f_item_value[j]
1267
+ }else{
1268
+ reason += items[i].f_item_value[j] + ","
1269
+ }
1270
+ }
1271
+ }else{
1272
+ reason += items[i].f_item_value
1273
+ }
1274
+ if (items[i].f_path){
1275
+ this.defectImgs.push(items[i].f_path)
1276
+ }
1277
+ if (items[i].f_p1_path){
1278
+ this.defectImgs.push(items[i].f_p1_path)
1279
+ }
1280
+ if (items[i].f_p2_path){
1281
+ this.defectImgs.push(items[i].f_p2_path)
1282
+ }
1283
+ if (items[i].f_p3_path){
1284
+ this.defectImgs.push(items[i].f_p3_path)
1285
+ }
1286
+ if (items[i].tooltip){
1287
+ this.defectToolTip.push(items[i].tooltip)
1288
+ }
1289
+ this.defectReason.push({device:deviceType,deviceitem:reason})
1290
+ }else if(items[i].type === 'errorstring' && items[i].f_item_value ){
1291
+ let reason = items[i].f_item_name+":" + items[i].f_item_value
1292
+ this.defectReason.push({device:deviceType,deviceitem:reason})
1293
+ }
1294
+
1295
+ }
1296
+ }
1297
+ }
1298
+ ////tag
1299
+ ////tag
1300
+ //tag
1301
+ ////tag
1302
+ //tag)
1303
+ //tag)
1304
+ //tag)
1305
+ ////tag
1306
+ ////tag
1307
+ ////tag
1308
+ },
1309
+ watch: {
1310
+ '$parent.$parent.isUpload'(val) {
1311
+ ////tag
1312
+ },
1313
+ 'meading'(val) {
1314
+ ////tag
1315
+ this.$parent.$parent.meading = val
1316
+ },
1317
+ 'backlistisselect'(val) {
1318
+ if (val == true) {
1319
+ this.showmodel = true
1320
+ this.deletebacklistisselect=false
1321
+ }
1322
+ },
1323
+ 'deletebacklistisselect'(val) {
1324
+ if (val == true) {
1325
+ this.showmodelthree = true
1326
+ this.backlistisselect=false
1327
+ }
1328
+ },
1329
+ 'isRecodr'(val) {
1330
+ if (val == 'false' || val == undefined || val == null || val == '' || val == 'undefined') {
1331
+ this.isRecodr = "false";
1332
+ }
1333
+ }
1334
+ }
1335
+ }
1336
+ </script>
1337
+ <style scoped>
1338
+ .panel-self{
1339
+ border-radius: 5px;
1340
+ border:1px solid #c5e1f7;
1341
+ background-color: #F2F6FA;
1342
+ }
1343
+ .text-left{
1344
+ text-align:left;
1345
+ }
1346
+ .font{
1347
+ font: 15px PingFang-SC-Medium;
1348
+ color: #333333;
1349
+ }
1350
+ .showIi{
1351
+ font: 14px PingFang-SC-Medium;
1352
+ color: #666666;
1353
+ }
1354
+ .info{
1355
+ margin-top: 15px;
1356
+ border-radius: 5px;
1357
+ background-color: #f3faff;
1358
+ }
1359
+ .btn-photo{
1360
+ border: 0;
1361
+ border-radius: 7px;
1362
+ background-color: #7dc1f4;
1363
+ font: 15px PingFang-SC-Bold;
1364
+ height: 20%;
1365
+ }
1366
+ .div-photo{
1367
+ width: auto;
1368
+ height: auto;
1369
+ /* margin-top: 10px; */
1370
+ position: absolute;
1371
+ bottom: 10px;
1372
+ right: 10px;
1373
+ }
1374
+ .btn-voice{
1375
+ border-radius: 7px;
1376
+ border: 1px solid #dedede;
1377
+ background-color: #f5fbff;
1378
+ font: 15px PingFang-SC-Bold;
1379
+ color: #499edf;
1380
+ }
1381
+ .save-btn{
1382
+ width: 25%;
1383
+ background-color:#499edf;
1384
+ border-radius: 6px;
1385
+ color: #FFFFFF;
1386
+ font: 15px PingFang-SC-Bold;
1387
+ }
1388
+ .upload-btn{
1389
+ width: 25%;
1390
+ background-color:#ffffff;
1391
+ border: 1px solid #499edf;
1392
+ border-radius: 6px;
1393
+ color: #499edf;
1394
+ font: 15px PingFang-SC-Bold;
1395
+ }
1396
+ .repair-btn{
1397
+ width: 25%;
1398
+ border: 1px solid #499edf;
1399
+ border-radius: 6px;
1400
+ font: 15px PingFang-SC-Bold;
1401
+ }
1402
+ #el_ca_tx{
1403
+ width: 100%;
1404
+ margin: 5px;
1405
+ }
1406
+ #el_ca_txt{
1407
+ width: 100%;
1408
+ margin: 5px;
1409
+ }
1410
+ </style>