safecheck-client 4.0.1-4 → 4.0.1-41

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