safecheck-client 3.0.39-1 → 3.0.39-3

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