safecheck-client 3.0.30-9 → 3.0.30-90

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 (102) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/App.vue +2 -2
  4. package/src/components/DefectDealMain/DefectListNew.vue +5 -5
  5. package/src/components/Util.js +15 -0
  6. package/src/components/android/AddPlanItem.vue +5 -2
  7. package/src/components/android/AreaPlan.vue +2 -2
  8. package/src/components/android/CurrentCreate.vue +3 -2
  9. package/src/components/android/CurrentCreate_new.vue +563 -559
  10. package/src/components/android/PaperFeedback.vue +4 -2
  11. package/src/components/android/SafecheckOrderV.vue +2 -2
  12. package/src/components/android/UploadPage.vue +13 -123
  13. package/src/components/paper/PaperList.vue +9 -2
  14. package/src/components/paper/PlanChooser.vue +8 -6
  15. package/src/components/pc/Edit.vue +126 -0
  16. package/src/components/pc/LodopFuncs.js +159 -0
  17. package/src/components/pc/NewCheckpaper.vue +9 -5
  18. package/src/components/pc/PaperEdit.vue +151 -0
  19. package/src/components/pc/PrintData.vue +243 -0
  20. package/src/components/pc/PrintTable.vue +241 -0
  21. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
  22. package/src/components/report/NoCheckplanSafecheck.vue +0 -2
  23. package/src/components/rongcheng/CheckCurrentCreate.vue +8 -0
  24. package/src/components/rongcheng/PaperStatem.vue +42 -1
  25. package/src/components/rongcheng/PhoneUpUserinfo.vue +149 -199
  26. package/src/components/rongcheng/SafecheckOrderV.vue +8 -0
  27. package/src/components/rongcheng/SafecheckUserInfo.vue +419 -0
  28. package/src/components/rongcheng/report/CheckPlanAreaList.vue +21 -3
  29. package/src/filiale/ankangyihua/pc/checkUserList.vue +1 -0
  30. package/src/filiale/bayan/android/CurrentCreate.vue +1 -1
  31. package/src/filiale/bayan/android/Edit.vue +132 -0
  32. package/src/filiale/bayan/android/SafecheckOrderV.vue +2 -2
  33. package/src/filiale/bayan/android/SafecheckUserInfo.vue +6 -1
  34. package/src/filiale/bayan/android.js +2 -1
  35. package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
  36. package/src/filiale/fugou/android.js +10 -0
  37. package/src/filiale/fugou/pc/DefectMainNew.vue +63 -0
  38. package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -0
  39. package/src/filiale/fugou/pc/PaperDefectMain.vue +890 -0
  40. package/src/filiale/fugou/pc/PaperList.vue +46 -0
  41. package/src/filiale/fugou/pc/checkUserList.vue +824 -0
  42. package/src/filiale/fugou/pc.js +5 -1
  43. package/src/filiale/hanzhong/android/SafecheckDevices.vue +24 -24
  44. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2 -2
  45. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  46. package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
  47. package/src/filiale/hanzhong/pc.js +4 -1
  48. package/src/filiale/huatong/android/CurrentCreate.vue +564 -564
  49. package/src/filiale/huatong/android/SafecheckOrderV.vue +8 -0
  50. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -0
  51. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -0
  52. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  53. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -0
  54. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +780 -0
  55. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  56. package/src/filiale/kelai/android.js +1 -0
  57. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -0
  58. package/src/filiale/liaoyuan/android.js +1 -0
  59. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  60. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  61. package/src/filiale/qianneng/pc/PaperList.vue +6 -0
  62. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
  63. package/src/filiale/tianke/pc/checkScreen.vue +4 -4
  64. package/src/filiale/tianke/pc/cq.jpg +0 -0
  65. package/src/filiale/tianke/pc/qy.jpg +0 -0
  66. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  67. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +371 -401
  68. package/src/filiale/wensu/android/AndroidDefectDeal.vue +321 -366
  69. package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
  70. package/src/filiale/wensu/android.js +1 -0
  71. package/src/filiale/wensu/pc/CheckSearchUser.vue +64 -0
  72. package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
  73. package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
  74. package/src/filiale/wensu/pc/RoleSelector.vue +4 -1
  75. package/src/filiale/wensu/pc/checkUserList.vue +50 -0
  76. package/src/filiale/wensu/pc.js +2 -1
  77. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  78. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2069 -2041
  79. package/src/filiale/wuhai/pc/NewCheckpaper.vue +26 -24
  80. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  81. package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
  82. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -0
  83. package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
  84. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
  85. package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
  86. package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
  87. package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
  88. package/src/filiale/yongzhou/pc/communityDetail.vue +35 -12
  89. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +28 -14
  90. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +28 -14
  91. package/src/filiale/yongzhou/pc/safeDetail.vue +43 -15
  92. package/src/filiale/yongzhou/pc/safeStatistics.vue +16 -6
  93. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +81 -27
  94. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +56 -26
  95. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +16 -6
  96. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  97. package/src/filiale/yongzhou/pc.js +17 -12
  98. package/src/filiale/zhongsheng/android/CurrentCreate.vue +540 -536
  99. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  100. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  101. package/src/main.js +1 -1
  102. package/src/safecheck.js +12 -0
@@ -5,257 +5,189 @@
5
5
  <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
6
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
7
  <div class="row">
8
- <div class="form-group col-sm-2" >
8
+ <div class="form-group col-sm-2">
9
9
  <label class="font_normal_body">客户编号</label>
10
10
  <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
11
  style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
12
12
  </div>
13
- <div class="form-group col-sm-2" >
13
+ <div class="form-group col-sm-2">
14
14
  <label class="font_normal_body">客户名称</label>
15
- <input type="text" class="input_search" v-model="model.f_user_name"
16
- style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
15
+ <input type="text" class="input_search" v-model="model.f_user_name" style="width: 60%"
16
+ placeholder="客户名称" condition="f_user_name like '%{}%'">
17
17
  </div>
18
- <div class="form-group col-sm-2" >
18
+ <div class="form-group col-sm-2">
19
19
  <label class="font_normal_body">客户电话</label>
20
- <input type="text" class="input_search" v-model="model.f_user_phone"
21
- style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
20
+ <input type="text" class="input_search" v-model="model.f_user_phone" style="width: 60%"
21
+ placeholder="客户电话" condition="f_user_phone like '%{}%'">
22
22
  </div>
23
- <div class="form-group col-sm-2" >
23
+ <div class="form-group col-sm-2">
24
24
  <label class="font_normal_body">小&emsp;&emsp;区</label>
25
25
  <input type="text" class="input_search" v-model="model.f_residential_area"
26
26
  style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
27
27
  </div>
28
- <div class="form-group col-sm-2" >
28
+ <div class="form-group col-sm-2">
29
29
  <label class="font_normal_body">详细地址</label>
30
- <input type="text" class="input_search" v-model="model.f_address"
31
- style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
30
+ <input type="text" class="input_search" v-model="model.f_address" style="width: 60%"
31
+ placeholder="详细地址" condition="f_address like '%{}%'">
32
32
  </div>
33
33
  <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
34
34
 
35
35
  <export-excel-safe :data="$parent.$parent.searchData"
36
- :field="$parent.$parent.excelHeaders"
37
- progress="safeGetExportProgress"
38
- sqlurl="rs/logic/SafeExportExcel" sql-name="defectDetails" template-name='安检隐患明细' :choose-col="true"></export-excel-safe>
39
- <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
40
- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
41
- <button class="button_search" @click="$parent.$parent.toRepair" v-if="$parent.$parent.canToRepair == '是'">转维修</button>
36
+ :field="$parent.$parent.excelHeaders" progress="safeGetExportProgress"
37
+ sqlurl="rs/logic/SafeExportExcel" sql-name="defectDetails" template-name='安检隐患明细'
38
+ :choose-col="true"></export-excel-safe>
39
+ <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
40
+ <button class="button_spacing button_search" @click="$parent.$parent.showaudio()"
41
+ v-if="$parent.$parent.audioshow">隐藏</button>
42
+ <button class="button_search" @click="$parent.$parent.toRepair"
43
+ v-if="$parent.$parent.canToRepair == '是'">转维修</button>
42
44
 
43
45
  <button class="button_spacing button_search" @click="search()">查询</button>
44
46
  <div style="float: right" class="button_spacing"
45
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
47
+ :class="{ 'button_shrink_top': $parent.$parent.criteriaShow, 'button_shrink_bottom': !$parent.$parent.criteriaShow }"
46
48
  @click="$parent.$parent.hidden()"></div>
47
49
  </div>
48
50
 
49
51
  </div>
50
52
  <div class="row">
51
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
52
- <role-selector-safe
53
- role-name="安检员"
54
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
55
- @re-res="$parent.$parent.getRes"
56
- :value.sync="model.f_checker_id"
57
- v-model="model.f_checker_id"
58
- condition="f_checker_name in {}"
59
- :value-multiple="true">
60
- </role-selector-safe>
61
- </div>
62
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
53
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
54
+ <role-selector-safe role-name="安检员" role-lable="安&nbsp;检&nbsp;员&nbsp;"
55
+ @re-res="$parent.$parent.getRes" :value.sync="model.f_checker_id"
56
+ v-model="model.f_checker_id" condition="f_checker_name in {}"
57
+ :value-multiple="true">
58
+ </role-selector-safe>
59
+ </div>
60
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
63
61
  <label class="font_normal_body">检&ensp;查&ensp;项</label>
64
62
  <v-select :value.sync="model.f_device_type" v-model='model.f_device_type'
65
- :value-single="true" style="width: 60%"
66
- class="select_list select"
67
- :options='$parent.$parent.device_types' placeholder='检查项'
68
- close-on-select
63
+ :value-single="true" style="width: 60%" class="select_list select"
64
+ :options='$parent.$parent.device_types' placeholder='检查项' close-on-select
69
65
  @change="$parent.$parent.changeDefect"
70
66
  condition="f_device_type like '%{}%'"></v-select>
71
67
  <!--<input type="text" class="input_search" v-model="model.f_device_type"-->
72
68
  <!--style="width: 60%" placeholder="检&ensp;查&ensp;项" condition="f_device_type like '%{}%'">-->
73
69
  </div>
74
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
70
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
75
71
  <label class="font_normal_body">隐患名称</label>
76
72
  <v-select :value.sync="model.f_item_name" v-model='model.f_item_name'
77
- :value-single="true" style="width: 60%"
78
- class="select_list select"
79
- :options='$parent.$parent.DefectConfigs' placeholder='隐患名称'
80
- close-on-select
73
+ :value-single="true" style="width: 60%" class="select_list select"
74
+ :options='$parent.$parent.DefectConfigs' placeholder='隐患名称' close-on-select
81
75
  condition="f_item_name like '%{}%'"></v-select>
82
76
  </div>
83
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
77
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
84
78
  <label class="font_normal_body">安检起始</label>
85
- <datepicker
86
- :value.sync="model.f_check_start"
87
- placeholder='安检起始时间' style="width: 60%"
88
- :disabled-days-of-week="[]"
89
- :format="'yyyy-MM-dd'"
90
- :show-rest-button="reset"
91
- v-model="model.f_check_start"
92
- condition="f_offsite_time >='{} 00:00:00'">
79
+ <datepicker :value.sync="model.f_check_start" placeholder='安检起始时间' style="width: 60%"
80
+ :disabled-days-of-week="[]" :format="'yyyy-MM-dd'" :show-rest-button="reset"
81
+ v-model="model.f_check_start" condition="f_offsite_time >='{} 00:00:00'">
93
82
  </datepicker>
94
83
  </div>
95
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
84
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
96
85
  <label class="font_normal_body">安检结束</label>
97
- <datepicker
98
- :value.sync="model.f_check_end"
99
- placeholder='安检结束时间' style="width: 60%"
100
- :disabled-days-of-week="[]"
101
- :format="'yyyy-MM-dd'"
102
- :show-rest-button="reset"
103
- v-model="model.f_check_end"
104
- condition="f_offsite_time <='{} 23:59:59'">
86
+ <datepicker :value.sync="model.f_check_end" placeholder='安检结束时间' style="width: 60%"
87
+ :disabled-days-of-week="[]" :format="'yyyy-MM-dd'" :show-rest-button="reset"
88
+ v-model="model.f_check_end" condition="f_offsite_time <='{} 23:59:59'">
105
89
  </datepicker>
106
90
  </div>
107
91
 
108
92
  </div>
109
93
  <div class="row">
110
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
94
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
111
95
  <label class="font_normal_body">维修结果</label>
112
- <v-select class="select_list select"
113
- placeholder='维修结果' style="width: 60%"
96
+ <v-select class="select_list select" placeholder='维修结果' style="width: 60%"
114
97
  :value.sync="model.f_repaired" v-model="model.f_repaired"
115
- :options='$parent.$parent.repaireds'
116
- filer-key="name"
117
- close-on-select clear-button
118
- condition="f_repaired='{}'"
119
- :value-single="true">
98
+ :options='$parent.$parent.repaireds' filer-key="name" close-on-select clear-button
99
+ condition="f_repaired='{}'" :value-single="true">
120
100
  </v-select>
121
101
  <!--<input type="text" class="input_search" v-model="model.f_device_type"-->
122
102
  <!--style="width: 60%" placeholder="检&ensp;查&ensp;项" condition="f_device_type like '%{}%'">-->
123
103
  </div>
124
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
104
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
125
105
  <label class="font_normal_body">用户类型</label>
126
- <v-select class="select_list select"
127
- placeholder='用户类型' style="width: 60%"
106
+ <v-select class="select_list select" placeholder='用户类型' style="width: 60%"
128
107
  :value.sync="model.f_check_type" v-model="model.f_check_type"
129
- :options='$parent.$parent.checktype'
130
- filer-key="name"
131
- close-on-select clear-button
132
- condition="f_check_type='{}'"
133
- :value-single="true">
108
+ :options='$parent.$parent.checktype' filer-key="name" close-on-select clear-button
109
+ condition="f_check_type='{}'" :value-single="true">
134
110
  </v-select>
135
111
  </div>
136
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
112
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
137
113
  <label class="font_normal_body">片&emsp;&emsp;区</label>
138
- <v-select class="select_list select"
139
- placeholder='片区' style="width: 60%"
114
+ <v-select class="select_list select" placeholder='片区' style="width: 60%"
140
115
  :value.sync="model.f_slice_area" v-model="model.f_slice_area"
141
- :options='$parent.$parent.sliceArea'
142
- filer-key="name"
143
- close-on-select clear-button
144
- condition="f_slice_area='{}'"
145
- :value-single="true">
116
+ :options='$parent.$parent.sliceArea' filer-key="name" close-on-select clear-button
117
+ condition="f_slice_area='{}'" :value-single="true">
146
118
  </v-select>
147
119
  </div>
148
120
 
149
121
  <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
150
122
  <label class="font_normal_body">区&emsp;&emsp;域</label>
151
- <v-select class="select_list select"
152
- placeholder='请选择' style="width: 60%"
153
- :value.sync="model.f_pcd" v-model="model.f_pcd"
154
- :options='$parent.$parent.pcds'
155
- filer-key="name"
156
- clear-button
157
- condition="f_pcd in {}"
158
- :multiple="true">
123
+ <v-select class="select_list select" placeholder='请选择' style="width: 60%"
124
+ :value.sync="model.f_pcd" v-model="model.f_pcd" :options='$parent.$parent.pcds'
125
+ filer-key="name" clear-button condition="f_pcd in {}" :multiple="true">
159
126
  </v-select>
160
127
  </div>
161
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
128
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
162
129
  <label class="font_normal_body">处理人</label>
163
- <input type="text" class="input_search" v-model="model.f_repairman"
164
- style="width: 60%" placeholder="处理人" condition="f_repairman like '%{}%'">
130
+ <input type="text" class="input_search" v-model="model.f_repairman" style="width: 60%"
131
+ placeholder="处理人" condition="f_repairman like '%{}%'">
165
132
  </div>
166
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
133
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
167
134
  <label class="font_normal_body">处理起始</label>
168
- <datepicker
169
- :value.sync="model.f_repair_start"
170
- placeholder='处理起始时间' style="width: 60%"
171
- :disabled-days-of-week="[]"
172
- :format="'yyyy-MM-dd'"
173
- :show-rest-button="reset"
174
- v-model="model.f_repair_start"
175
- condition="f_repair_date >='{} 00:00:00'">
135
+ <datepicker :value.sync="model.f_repair_start" placeholder='处理起始时间' style="width: 60%"
136
+ :disabled-days-of-week="[]" :format="'yyyy-MM-dd'" :show-rest-button="reset"
137
+ v-model="model.f_repair_start" condition="f_repair_date >='{} 00:00:00'">
176
138
  </datepicker>
177
139
  </div>
178
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
140
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
179
141
  <label class="font_normal_body">处理结束</label>
180
- <datepicker
181
- :value.sync="model.f_repair_end"
182
- placeholder='处理结束时间' style="width: 60%"
183
- :disabled-days-of-week="[]"
184
- :format="'yyyy-MM-dd'"
185
- :show-rest-button="reset"
186
- v-model="model.f_repair_end"
187
- condition="f_repair_date <='{} 23:59:59'">
142
+ <datepicker :value.sync="model.f_repair_end" placeholder='处理结束时间' style="width: 60%"
143
+ :disabled-days-of-week="[]" :format="'yyyy-MM-dd'" :show-rest-button="reset"
144
+ v-model="model.f_repair_end" condition="f_repair_date <='{} 23:59:59'">
188
145
  </datepicker>
189
146
  </div>
190
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
147
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
191
148
  <label class="font_normal_body">处理结果</label>
192
- <v-select class="select_list select"
193
- placeholder='处理结果' style="width: 60%"
149
+ <v-select class="select_list select" placeholder='处理结果' style="width: 60%"
194
150
  :value.sync="model.f_repair_result" v-model="model.f_repair_result"
195
- :options='$parent.$parent.repairresults'
196
- filer-key="name"
197
- close-on-select clear-button
198
- :value-single="true">
151
+ :options='$parent.$parent.repairresults' filer-key="name" close-on-select
152
+ clear-button :value-single="true">
199
153
  </v-select>
200
154
  </div>
201
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
155
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
202
156
  <label class="font_normal_body">逾期起始</label>
203
- <datepicker
204
- :value.sync="model.f_handle_start"
205
- placeholder='逾期起始时间' style="width: 60%"
206
- :disabled-days-of-week="[]"
207
- :format="'yyyy-MM-dd'"
208
- :show-rest-button="reset"
209
- v-model="model.f_handle_start"
210
- condition="f_handle_date >='{} 00:00:00'">
157
+ <datepicker :value.sync="model.f_handle_start" placeholder='逾期起始时间' style="width: 60%"
158
+ :disabled-days-of-week="[]" :format="'yyyy-MM-dd'" :show-rest-button="reset"
159
+ v-model="model.f_handle_start" condition="f_handle_date >='{} 00:00:00'">
211
160
  </datepicker>
212
161
  </div>
213
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
162
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
214
163
  <label class="font_normal_body">逾期结束</label>
215
- <datepicker
216
- :value.sync="model.f_handle_end"
217
- placeholder='逾期结束时间' style="width: 60%"
218
- :disabled-days-of-week="[]"
219
- :format="'yyyy-MM-dd'"
220
- :show-rest-button="reset"
221
- v-model="model.f_handle_end"
222
- condition="f_handle_date <='{} 23:59:59'">
164
+ <datepicker :value.sync="model.f_handle_end" placeholder='逾期结束时间' style="width: 60%"
165
+ :disabled-days-of-week="[]" :format="'yyyy-MM-dd'" :show-rest-button="reset"
166
+ v-model="model.f_handle_end" condition="f_handle_date <='{} 23:59:59'">
223
167
  </datepicker>
224
168
  </div>
225
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
169
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
226
170
  <label class="font_normal_body">逾期状态</label>
227
- <v-select class="select_list select"
228
- placeholder='逾期状态' style="width: 60%"
171
+ <v-select class="select_list select" placeholder='逾期状态' style="width: 60%"
229
172
  :value.sync="model.f_is_handle" v-model="model.f_is_handle"
230
- :options='$parent.$parent.ishandles'
231
- filer-key="name"
232
- close-on-select clear-button
233
- condition="f_is_handle='{}'"
234
- :value-single="true">
173
+ :options='$parent.$parent.ishandles' filer-key="name" close-on-select clear-button
174
+ condition="f_is_handle='{}'" :value-single="true">
235
175
  </v-select>
236
176
  </div>
237
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
177
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
238
178
  <label class="font_normal_body">处理方式</label>
239
- <v-select class="select_list select"
240
- placeholder='处理方式' style="width: 60%"
179
+ <v-select class="select_list select" placeholder='处理方式' style="width: 60%"
241
180
  :value.sync="model.f_is_repaired" v-model="model.f_is_repaired"
242
- :options='$parent.$parent.is_repaired'
243
- filer-key="name"
244
- close-on-select clear-button
245
- condition="f_is_repaired='{}'"
246
- :value-single="true">
181
+ :options='$parent.$parent.is_repaired' filer-key="name" close-on-select clear-button
182
+ condition="f_is_repaired='{}'" :value-single="true">
247
183
  </v-select>
248
184
  </div>
249
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
185
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
250
186
  <label class="font_normal_body">隐患状态</label>
251
- <v-select class="select_list select"
252
- placeholder='隐患状态' style="width: 60%"
187
+ <v-select class="select_list select" placeholder='隐患状态' style="width: 60%"
253
188
  :value.sync="model.is_repaired" v-model="model.is_repaired"
254
- :options='$parent.$parent.is_repaireds'
255
- filer-key="name"
256
- close-on-select clear-button
257
- condition="is_repaired='{}'"
258
- :value-single="true">
189
+ :options='$parent.$parent.is_repaireds' filer-key="name" close-on-select
190
+ clear-button condition="is_repaired='{}'" :value-single="true">
259
191
  </v-select>
260
192
  </div>
261
193
  </div>
@@ -278,13 +210,18 @@
278
210
  <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
279
211
  <template partial='head'>
280
212
  <tr>
281
- <th v-if="$parent.$parent.$parent.canToRepair=='是'"><nobr>选择</nobr></th>
213
+ <th v-if="$parent.$parent.$parent.canToRepair == '是'">
214
+ <nobr>选择</nobr>
215
+ </th>
282
216
  <th>
283
217
  <nobr>检查项</nobr>
284
218
  </th>
285
219
  <th>
286
220
  <nobr>隐患原因</nobr>
287
221
  </th>
222
+ <th>
223
+ <nobr>隐患别名</nobr>
224
+ </th>
288
225
  <th>
289
226
  <nobr>隐患级别</nobr>
290
227
  </th>
@@ -334,25 +271,33 @@
334
271
  </tr>
335
272
  </template>
336
273
  <template partial='body'>
337
- <td v-if="$parent.$parent.$parent.canToRepair=='是'" style="text-align: center;white-space:nowrap;"><input type="checkbox" v-if="['现场已处理','维修已处理','无隐患','转维修'].indexOf(row.f_is_repaired) == -1" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row)" @change="$parent.$parent.$parent.setCheckes(row)"></input></td>
338
- <td style="text-align: center">{{row.f_device_type}}</td>
339
- <td style="text-align: center">{{row.f_item_name}}/{{row.f_item_value}}</td>
340
- <td style="text-align: center">{{row.f_defect_level}}</td>
341
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
342
- <td style="text-align: center">{{row.f_user_name}}</td>
343
- <td style="text-align: center">{{row.f_user_phone}}</td>
344
- <td style="text-align: center">{{row.f_residential_area}}</td>
345
- <td style="text-align: center">{{row.f_address}}</td>
346
- <td style="text-align: center">{{row.f_offsite_time}}</td>
347
- <td style="text-align: center">{{row.f_handle_date}}</td>
348
- <td style="text-align: center">{{row.f_is_handle}}</td>
349
- <td style="text-align: center">{{row.f_checker_name}}</td>
350
- <td style="text-align: center">{{row.f_is_repaired}}</td>
351
- <td style="text-align: center">{{row.f_repairman}}</td>
352
- <td style="text-align: center">{{row.f_repair_date}}</td>
353
- <td style="text-align: center">{{row.f_repair_result}}</td>
274
+ <td v-if="$parent.$parent.$parent.canToRepair == '是'"
275
+ style="text-align: center;white-space:nowrap;"><input type="checkbox"
276
+ v-if="['现场已处理', '维修已处理', '无隐患', '转维修'].indexOf(row.f_is_repaired) == -1"
277
+ @click="$event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row)"
278
+ @change="$parent.$parent.$parent.setCheckes(row)"></input></td>
279
+ <td style="text-align: center">{{ row.f_device_type }}</td>
280
+ <td style="text-align: center">{{ row.f_item_name }}/{{ row.f_item_value }}</td>
281
+ <td style="text-align: center">{{ row.f_alias_name }}</td>
282
+ <td style="text-align: center">{{ row.f_defect_level }}</td>
283
+ <td style="text-align: center">{{ row.f_userinfo_code }}</td>
284
+ <td style="text-align: center">{{ row.f_user_name }}</td>
285
+ <td style="text-align: center">{{ row.f_user_phone }}</td>
286
+ <td style="text-align: center">{{ row.f_residential_area }}</td>
287
+ <td style="text-align: center">{{ row.f_address }}</td>
288
+ <td style="text-align: center">{{ row.f_offsite_time }}</td>
289
+ <td style="text-align: center">{{ row.f_handle_date }}</td>
290
+ <td style="text-align: center">{{ row.f_is_handle }}</td>
291
+ <td style="text-align: center">{{ row.f_checker_name }}</td>
292
+ <td style="text-align: center">{{ row.f_is_repaired }}</td>
293
+ <td style="text-align: center">{{ row.f_repairman }}</td>
294
+ <td style="text-align: center">{{ row.f_repair_date }}</td>
295
+ <td style="text-align: center">{{ row.f_repair_result }}</td>
354
296
  <td style="text-align: center">
355
- <button v-if="row.f_is_repaired == '隐患未处理' || (row.f_is_repaired == '用户自行整改' && row.f_repair_result == '未处理') " class="button_spacing button_search-1" @click="$parent.$parent.$parent.solveDefect( row, 'solve')">处理隐患</button>
297
+ <button
298
+ v-if="row.f_is_repaired == '隐患未处理' || (row.f_is_repaired == '用户自行整改' && row.f_repair_result == '未处理')"
299
+ class="button_spacing button_search-1"
300
+ @click="$parent.$parent.$parent.solveDefect(row, 'solve')">处理隐患</button>
356
301
  </td>
357
302
  </template>
358
303
  </data-grid>
@@ -366,86 +311,79 @@
366
311
  </h4>
367
312
  </div>
368
313
  <div slot="modal-body" class="modal-body">
369
- <div v-if="true">
370
- <div>
371
-
372
- </div>
373
- <!-- <div v-for="(index, item) in dangerGroup">-->
374
-
375
- <!-- </div>-->
376
- <div class="row" style="margin-top: 10px">
377
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
378
- <div class="col-xs-8 col-md-8">
379
- <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
380
- :options='dispatchTypeOptions' placeholder='派发类型'
381
- close-on-select>
382
- </v-select>
383
- </div>
314
+ <div class="row" style="margin-top: 10px">
315
+ <label class="control-label font text-left"
316
+ style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
317
+ <div class="col-xs-8 col-md-8">
318
+ <v-select :value.sync="selectData.dispatchType" :value-single="true"
319
+ v-model="selectData.dispatchType" :options='dispatchTypeOptions' placeholder='派发类型'
320
+ close-on-select>
321
+ </v-select>
384
322
  </div>
385
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
386
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
387
- <div class="col-xs-8 col-md-8">
388
- <v-select
389
- :value.sync="selectData.f_repairman"
390
- :value-single="true"
391
- :options='repairers'
392
- placeholder='请选择维修员'
393
- close-on-select></v-select>
394
- </div>
323
+ </div>
324
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType == '派发给维修员'">
325
+ <label class="control-label font text-left"
326
+ style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
327
+ <div class="col-xs-8 col-md-8">
328
+ <v-select :value.sync="selectData.f_repairman" :value-single="true" :options='repairers'
329
+ placeholder='请选择维修员' close-on-select></v-select>
395
330
  </div>
396
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
397
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
398
- <div class="col-xs-8 col-md-8">
399
- <right-tree
400
- islist
401
- :userid="userid"
402
- :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
403
- @re-res="getSiteRes"></right-tree>
404
- </div>
331
+ </div>
332
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType == '派发给站点'">
333
+ <label class="control-label font text-left"
334
+ style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
335
+ <div class="col-xs-8 col-md-8">
336
+ <right-tree islist :userid="userid"
337
+ :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
338
+ @re-res="getSiteRes"></right-tree>
405
339
  </div>
406
- <div class="row" style="margin-top: 10px">
407
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
408
- <div class="col-xs-8 col-md-8">
409
- <v-select :value.sync="selectData.f_repairtype" style="width:60%"
410
- class="select select_list"
411
- :value-single="true"
412
- :options='repairTypeOptions'
413
- close-on-select>
414
- </v-select>
415
- </div>
340
+ </div>
341
+ <div class="row" style="margin-top: 10px"
342
+ v-if="selectData.dispatchType == '派发给站点' || selectData.dispatchType == '派发给维修员'">
343
+ <label class="control-label font text-left"
344
+ style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
345
+ <div class="col-xs-8 col-md-8">
346
+ <v-select :value.sync="selectData.f_repairtype" style="width:60%" class="select select_list"
347
+ :value-single="true" :options='repairTypeOptions' close-on-select>
348
+ </v-select>
416
349
  </div>
417
- <div class="row" style="margin-top: 10px">
418
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
419
- <div class="col-xs-8 col-md-8">
420
- <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
421
- </div>
350
+ </div>
351
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType == '派发给站点' || selectData.dispatchType == '派发给维修员'">
352
+ <label class="control-label font text-left"
353
+ style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
354
+ <div class="col-xs-8 col-md-8">
355
+ <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
422
356
  </div>
423
357
  </div>
424
358
  </div>
425
359
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
426
- <button class="button_search" @click="rectification">转维修</button>
360
+ <button class="button_search" @click="rectification">处理</button>
427
361
  <button class="button_search" @click="cancel1">取消</button>
428
362
  </div>
429
363
  </modal>
430
364
  <modal :show.sync="showSolveModal" v-ref:solveModal>
431
365
  <div slot="modal-header" class="modal-header">
432
366
  <h4 class="modal-title">
433
- {{solveModal.preData.type == 'view'?'处理详情':'处理隐患'}}
367
+ {{ solveModal.preData.type == 'view' ? '处理详情' : '处理隐患' }}
434
368
  </h4>
435
369
  </div>
436
370
  <div slot="modal-body" class="modal-body">
437
371
  <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
438
372
  <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
439
- <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理前</p></div>
373
+ <div style="width: auto;height:100%;float: left;">
374
+ <p class="title-font" style="margin-top: 5px">处理前</p>
375
+ </div>
440
376
  </div>
441
377
 
442
378
  <div class="col-sm-6" style="margin-top: 10px">
443
379
  <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
444
- <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_checker_name" placeholder="安检员">
380
+ <input class="input_search" style="width: 60%" type="text" disabled="true"
381
+ v-model="check.f_checker_name" placeholder="安检员">
445
382
  </div>
446
383
  <div class="col-sm-6" style="margin-top: 10px">
447
384
  <label class="font_normal_body">安检时间</label>
448
- <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_offsite_time" placeholder="安检时间">
385
+ <input class="input_search" style="width: 60%" type="text" disabled="true"
386
+ v-model="check.f_offsite_time" placeholder="安检时间">
449
387
  </div>
450
388
  <div class="col-sm-12" style="margin-bottom: 10px">
451
389
  <label class="font_normal_body">隐患图片</label>
@@ -454,26 +392,26 @@
454
392
 
455
393
  <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
456
394
  <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
457
- <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理后</p></div>
395
+ <div style="width: auto;height:100%;float: left;">
396
+ <p class="title-font" style="margin-top: 5px">处理后</p>
397
+ </div>
458
398
  </div>
459
399
  <div class="col-sm-6" style="margin-top: 10px">
460
400
  <label class="font_normal_body">处&nbsp;理&nbsp;人</label>
461
- <input class="input_search" style="width: 60%" disabled="true" type="text" v-model="solveModal.uploadData.f_repairman" placeholder="处理人">
401
+ <input class="input_search" style="width: 60%" disabled="true" type="text"
402
+ v-model="solveModal.uploadData.f_repairman" placeholder="处理人">
462
403
  </div>
463
404
  <div class="col-sm-6" style="margin-top: 10px">
464
405
  <label class="font_normal_body">处理时间</label>
465
- <datepicker
466
- :disabled="solveModal.preData.type == 'view'"
467
- placeholder='处理时间' style="width:60%"
468
- :disabled-days-of-week="[]"
469
- :format="'yyyy-MM-dd'"
470
- :show-rest-button="reset"
471
- :value.sync="solveModal.uploadData.f_repair_date">
406
+ <datepicker :disabled="solveModal.preData.type == 'view'" placeholder='处理时间' style="width:60%"
407
+ :disabled-days-of-week="[]" :format="'yyyy-MM-dd'" :show-rest-button="reset"
408
+ :value.sync="solveModal.uploadData.f_repair_date">
472
409
  </datepicker>
473
410
  </div>
474
411
  <div v-if="solveModal.preData.type == 'solve'" class="col-sm-12" style="margin-bottom: 10px">
475
412
  <label class="font_normal_body">处理后图片</label>
476
- <avatar-upload :width="200" :height="200" :img-src.sync="solveModal.uploadData.imgSrc" :filename.sync="solveModal.uploadData.filename" v-ref:imginfo></avatar-upload>
413
+ <avatar-upload :width="200" :height="200" :img-src.sync="solveModal.uploadData.imgSrc"
414
+ :filename.sync="solveModal.uploadData.filename" v-ref:imginfo></avatar-upload>
477
415
  </div>
478
416
  <div v-if="solveModal.preData.type == 'view'" class="col-sm-12" style="margin-bottom: 10px">
479
417
  <label class="font_normal_body">处理后图片</label>
@@ -489,7 +427,7 @@
489
427
  </template>
490
428
 
491
429
  <script>
492
- import {PagedList} from 'vue-client'
430
+ import { PagedList } from 'vue-client'
493
431
  import Vue from 'vue'
494
432
  import co from 'co'
495
433
  import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
@@ -499,7 +437,7 @@
499
437
  const upSolveDefect = function* (self) {
500
438
  let uploadData = self.solveModal.uploadData
501
439
  //tag)
502
- self.$resetpost('/rs/logic/pcRepairDefect', self.solveModal.uploadData, {resolveMsg: null, rejectMsg: null})
440
+ self.$resetpost('/rs/logic/pcRepairDefect', self.solveModal.uploadData, { resolveMsg: null, rejectMsg: null })
503
441
  .then(res => {
504
442
  if (res.data.code == 200) {
505
443
  self.$showMessage('隐患已处理。')
@@ -513,7 +451,7 @@
513
451
  let asyncReady = async function (self) {
514
452
  // 获取配置信息
515
453
  try {
516
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
454
+ let res = await Vue.resetget(`/phone/rs/vue`, { data: {} }, { resolveMsg: null, rejectMsg: null })
517
455
  Vue.config = res.data
518
456
  self.getDefectInfoConfig(res.data)
519
457
  } catch (error) {
@@ -529,11 +467,10 @@
529
467
  let getGasman = yield http.load('POST', '/rs/search', {
530
468
  source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
531
469
  userid: self.$login.f.id
532
- }, {resolveMsg: null, rejectMsg: null})
533
- ////tag
534
- self.checkersid.push({label: '全部', value: ''})
470
+ }, { resolveMsg: null, rejectMsg: null })
471
+ self.checkersid.push({ label: '全部', value: '' })
535
472
  getGasman.data.forEach((checker) => {
536
- self.checkersid.push({label: checker.name, value: checker.id})
473
+ self.checkersid.push({ label: checker.name, value: checker.id })
537
474
  })
538
475
  }
539
476
 
@@ -558,7 +495,7 @@
558
495
  // }
559
496
  // model.f_subcompany = this.$login.f.f_fengongsi
560
497
  return {
561
- audioshow:false,
498
+ audioshow: false,
562
499
  showSolveModal: false,
563
500
  searchData: {
564
501
  condition: "1=1",
@@ -569,6 +506,7 @@
569
506
  'f_device_type': '检查项',
570
507
  'f_item_name': '隐患名称',
571
508
  'f_item_value': '隐患原因',
509
+ 'f_alias_name': '隐患别名',
572
510
  'f_userinfo_code': '客户编号',
573
511
  'f_user_name': '客户姓名',
574
512
  'f_user_phone': '客户电话',
@@ -587,26 +525,26 @@
587
525
  checkersid: [],
588
526
  safetype: this.getSafeParam('安检类型'),
589
527
  criteriaShow: false,
590
- repaireds: [{label: '全部', value: ''},{label: '已修', value: '已修'},{label: '未修', value: '未修'}],
591
- checktype: [{label: '全部', value: ''},{label: '民用', value: '民用'},{label: '非民用', value: '非民用'}],
528
+ repaireds: [{ label: '全部', value: '' }, { label: '已修', value: '已修' }, { label: '未修', value: '未修' }],
529
+ checktype: [{ label: '全部', value: '' }, { label: '民用', value: '民用' }, { label: '非民用', value: '非民用' }],
592
530
  showModal: false,
593
531
  pcds: [],
594
532
  f_approval_states: this.getSafeParam('安检单审核状态'),
595
- f_entry_status:this.getSafeParam('安检状态'),
533
+ f_entry_status: this.getSafeParam('安检状态'),
596
534
  f_checkplans: this.getSafeParam('有无计划'),
597
535
  is_repaired: this.getSafeParam('安检患隐处理方式'),
598
- is_repaireds:[{label: '全部', value: ''},{label: '已处理未消除隐患', value: '已处理未消除隐患'},{label: '已处理已消除隐患', value: '已处理已消除隐患'}],
536
+ is_repaireds: [{ label: '全部', value: '' }, { label: '已处理未消除隐患', value: '已处理未消除隐患' }, { label: '已处理已消除隐患', value: '已处理已消除隐患' }],
599
537
  showcheckmsg: false,
600
538
  checkInfo: {},
601
539
  repairers: [],
602
- dispatchTypeOptions: [{label: '派发给站点', value: '派发给站点'},{label: '派发给维修员', value: '派发给维修员'}],
540
+ dispatchTypeOptions: [{ label: '派发给站点', value: '派发给站点' }, { label: '派发给维修员', value: '派发给维修员' }, { label: '用户自行整改', value: '用户自行整改' }],
603
541
  canToRepair: this.$appdata.getSingleValue('隐患明细转维修') || '是',
604
- repairTypeOptions:this.$appdata.getParam('报修类型'),
605
- selectData:{
606
- dispatchType:'',
607
- f_repairman:'',
608
- f_remarks:'',
609
- f_repairtype:''
542
+ repairTypeOptions: this.$appdata.getParam('报修类型'),
543
+ selectData: {
544
+ dispatchType: '',
545
+ f_repairman: '',
546
+ f_remarks: '',
547
+ f_repairtype: ''
610
548
  },
611
549
  checkes: [],
612
550
  showModal2: false,
@@ -630,12 +568,12 @@
630
568
  f_offsite_time: 'no'
631
569
  },
632
570
  sliceArea: [],
633
- cbc:[],
634
- DefectConfig:'' ,
635
- DefectConfigs:[{label:'全部',value:''},{label:'气量异常差值',value:'气量异常差值'}],
636
- ishandles:[{label:'全部',value:''},{label:'未逾期',value:'未逾期'},{label:'已逾期',value:'已逾期'}],
637
- repairresults:[{label:'全部',value:''},{label:'已处理',value:'已处理'},{label:'未处理',value:'未处理'}],
638
- device_types:[{label:'全部',value:''}],
571
+ cbc: [],
572
+ DefectConfig: '',
573
+ DefectConfigs: [{ label: '全部', value: '' }, { label: '气量异常差值', value: '气量异常差值' }],
574
+ ishandles: [{ label: '全部', value: '' }, { label: '未逾期', value: '未逾期' }, { label: '已逾期', value: '已逾期' }],
575
+ repairresults: [{ label: '全部', value: '' }, { label: '已处理', value: '已处理' }, { label: '未处理', value: '未处理' }],
576
+ device_types: [{ label: '全部', value: '' }],
639
577
  }
640
578
  },
641
579
  methods: {
@@ -651,9 +589,9 @@
651
589
  this.showToRepairModal = false
652
590
  },
653
591
  solveDefect(row, type) {
654
- if(row.f_repair_path && row.f_repair_path.startsWith('http')){
592
+ if (row.f_repair_path && row.f_repair_path.startsWith('http')) {
655
593
  this.solveModal.preData.repairedImg = row.f_repair_path
656
- }else {
594
+ } else {
657
595
  this.solveModal.preData.repairedImg = '/rs/image/file/' + row.f_repair_path
658
596
  }
659
597
  this.solveModal.preData.defectImg = '/rs/image/file/' + row.f_path
@@ -670,75 +608,103 @@
670
608
  this.showSolveModal = !this.showSolveModal
671
609
  },
672
610
  getEmp() {
673
- let val = {source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${this.$login.f.id}`}
611
+ let val = { source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${this.$login.f.id}` }
674
612
  let http = new HttpResetClass()
675
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
676
- if (res.data.length == 0){
677
- this.repairers= []
613
+ http.load('POST', '/rs/search', { data: val }, { resolveMsg: null, rejectMsg: null }).then((res) => {
614
+ if (res.data.length == 0) {
615
+ this.repairers = []
678
616
  return
679
617
  }
680
- res.data.forEach((user)=>{
681
- this.repairers.push({label: user.name, value: user.name})
618
+ res.data.forEach((user) => {
619
+ this.repairers.push({ label: user.name, value: user.name })
682
620
  })
683
621
  })
684
622
  },
685
623
  getSiteRes(obj) {
686
624
  console.log('siteRes ---> ')
687
625
  console.log(obj)
688
- if(obj.resids[0]){
626
+ if (obj.resids[0]) {
689
627
  this.selectData.f_meetunit = obj.res.join('.')
690
628
  this.selectData.f_reciever = obj.resids.join('.')
691
629
  this.selectData.f_outlets = obj.res[obj.res.length - 1]
692
- }else {
630
+ } else {
693
631
  this.selectData.f_meetunit = ''
694
632
  this.selectData.f_reciever = ''
695
633
  this.selectData.f_outlets = ''
696
634
  }
697
635
  },
698
- cancel1(){
699
- this.showModal2=false
700
- this.selectData={
701
- dispatchType:'',
702
- f_repairman:'',
703
- f_remarks:'',
704
- f_repairtype:''
636
+ cancel1() {
637
+ this.showModal2 = false
638
+ this.selectData = {
639
+ dispatchType: '',
640
+ f_repairman: '',
641
+ f_remarks: '',
642
+ f_repairtype: ''
705
643
  }
706
644
  },
707
- async rectification(){
708
- if(this.selectData.dispatchType){
709
- if(this.selectData.dispatchType=='派发给站点'){
710
- if(!this.selectData.f_reciever){
645
+ async rectification() {
646
+ if (this.selectData.dispatchType == '用户自行整改') {
647
+ let defectIdStr = ''
648
+ let defectIds = []
649
+ for (let i = 0; i < this.dangerGroups.length; i++) {
650
+ for (let j = 0; j < this.dangerGroups[i].dangers.length; j++) {
651
+ defectIds.push(`'${this.dangerGroups[i].dangers[j].f_defect_id}'`)
652
+ }
653
+ }
654
+ defectIdStr = `(${defectIds.join(',')})`
655
+ let http = new HttpResetClass()
656
+ let sql = `update t_devices_items set f_deal_dispose = '自行整改',f_live_dispose = '是' where id in ${defectIdStr}`
657
+ http.load('POST', 'rs/logic/runSQL', { data: { sql: sql } },
658
+ { resolveMsg: null, rejectMsg: null }).then(()=>{
659
+ this.showModal3 = false
660
+ this.checkes = []
661
+ this.cancel1()
662
+ this.$showMessage('修改成功')
663
+ }).catch(()=>{
664
+ this.showModal3 = false
665
+ this.checkes = []
666
+ this.cancel1()
667
+ this.$showMessage('修改异常,请检查网络状况后重新尝试。')
668
+ })
669
+ } else {
670
+ await this.repair()
671
+ }
672
+ },
673
+ async repair() {
674
+ if (this.selectData.dispatchType) {
675
+ if (this.selectData.dispatchType == '派发给站点') {
676
+ if (!this.selectData.f_reciever) {
711
677
  this.$showMessage('请选择部门!')
712
678
  return
713
679
  }
714
- }else{
715
- if(!this.selectData.f_repairman){
680
+ } else {
681
+ if (!this.selectData.f_repairman) {
716
682
  this.$showMessage('请选择维修员!')
717
683
  return
718
684
  }
719
685
  }
720
- }else {
686
+ } else {
721
687
  this.$showMessage('请选择派发类型!')
722
688
  return
723
689
  }
724
690
 
725
- if(!this.selectData.f_repairtype){
691
+ if (!this.selectData.f_repairtype) {
726
692
  this.$showMessage('请选择报修类型!')
727
693
  return
728
694
  }
729
- this.showModal3=true
730
- let act={}
731
- let toRepair=''
732
- let successCount=0
733
- if(this.selectData.dispatchType=='派发给站点'){
734
- act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
735
- toRepair=null
736
- }else{
737
- console.log('派发给维修员---------'+this.selectData.f_repairman)
738
- act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
739
- toRepair='一级派单'
695
+ this.showModal3 = true
696
+ let act = {}
697
+ let toRepair = ''
698
+ let successCount = 0
699
+ if (this.selectData.dispatchType == '派发给站点') {
700
+ act = { f_meetunit: this.selectData.f_meetunit, f_reciever: this.selectData.f_reciever, f_service_acitivity_type: '派单' }
701
+ toRepair = null
702
+ } else {
703
+ console.log('派发给维修员---------' + this.selectData.f_repairman)
704
+ act = { f_meetunit: '', f_reciever: this.selectData.f_repairman, f_service_acitivity_type: '派单' }
705
+ toRepair = '一级派单'
740
706
  }
741
- let rep={
707
+ let rep = {
742
708
  loginUser: {
743
709
  name: this.$login.f.name,
744
710
  ename: this.$login.f.ename
@@ -749,9 +715,9 @@
749
715
  f_remarks: this.selectData.f_remarks,
750
716
  f_repairtype: this.selectData.f_repairtype,
751
717
  toRepair: toRepair,
752
- activity:act
718
+ activity: act
753
719
  }
754
- for(let i=0; i<this.dangerGroups.length; i++){
720
+ for (let i = 0; i < this.dangerGroups.length; i++) {
755
721
  let defectIdStr = ''
756
722
  const defectIds = []
757
723
  for (let j = 0; j < this.dangerGroups[i].dangers.length; j++) {
@@ -759,50 +725,50 @@
759
725
  }
760
726
  defectIdStr = `(${defectIds.join(',')})`
761
727
  const data = {
762
- id:this.dangerGroups[i].dangers[0].f_paper_id,
763
- repData:rep,
764
- source:'pc',
728
+ id: this.dangerGroups[i].dangers[0].f_paper_id,
729
+ repData: rep,
730
+ source: 'pc',
765
731
  defectIdStr: defectIdStr
766
732
  }
767
733
  console.log('data=', JSON.stringify(data))
768
734
  try {
769
- let result =await new HttpResetClass().load('post','/rs/logic/phoneUploadRectification', data, {resolveMsg: null, rejectMsg: null})
770
- if (result.data.code==200) {
735
+ let result = await new HttpResetClass().load('post', '/rs/logic/phoneUploadRectification', data, { resolveMsg: null, rejectMsg: null })
736
+ if (result.data.code == 200) {
771
737
  successCount += result.data.successcon
772
- this.progressbarWidth=Math.ceil((i+1)*100/(this.dangerGroups.length))
738
+ this.progressbarWidth = Math.ceil((i + 1) * 100 / (this.dangerGroups.length))
773
739
  }
774
- }catch (e) {
775
- this.showModal3=false
740
+ } catch (e) {
741
+ this.showModal3 = false
776
742
  this.$showMessage('网络异常,请稍后再试!')
777
743
  return
778
744
  }
779
745
  }
780
- this.showModal3=false
746
+ this.showModal3 = false
781
747
  this.cancel1()
782
- this.$showMessage('本次转维修成功'+successCount+'单')
748
+ this.$showMessage('本次转维修成功' + successCount + '单')
783
749
  },
784
750
  isChecked(row) {
785
751
  return this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id) != -1
786
752
  },
787
753
  setCheckes(row) {
788
- let index=this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id)
789
- if(index<0){
754
+ let index = this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id)
755
+ if (index < 0) {
790
756
  this.checkes.push(row)
791
- }else{
792
- this.checkes.splice(index,1)
757
+ } else {
758
+ this.checkes.splice(index, 1)
793
759
  }
794
760
  console.log('this.checkes=', JSON.stringify(this.checkes))
795
761
  },
796
- toRepair(){
762
+ toRepair() {
797
763
  console.log('this.checkes=', JSON.stringify(this.checkes))
798
- if(this.checkes.length==0){
764
+ if (this.checkes.length == 0) {
799
765
  return this.$showMessage('请先选择需要转维修的隐患!')
800
766
  }
801
767
 
802
768
  const dangerGroups = []
803
769
  for (const danger of this.checkes) {
804
770
  let i = dangerGroups.findIndex(dangerGroup => dangerGroup.f_userinfo_code === danger.f_userinfo_code)
805
- if (i == -1){
771
+ if (i == -1) {
806
772
  dangerGroups.push({
807
773
  f_userinfo_code: danger.f_userinfo_code,
808
774
  dangers: []
@@ -813,134 +779,138 @@
813
779
  }
814
780
  this.dangerGroups = dangerGroups
815
781
  console.log('this.dangerGroups=', JSON.stringify(this.dangerGroups))
816
- this.showModal2=true
782
+ this.showModal2 = true
817
783
  },
818
- changeDefect(val){
784
+ changeDefect(val) {
819
785
  try {
820
- if(val){
821
- for (var Key1 in this.DefectConfig){
822
- if(Key1 == val){
823
- this.DefectConfigs = [{label:'全部',value:''}]
824
- for(var Key2 in this.DefectConfig[Key1].items){
825
- this.DefectConfigs.push({label:Key2,value:Key2})
786
+ if (val) {
787
+ for (var Key1 in this.DefectConfig) {
788
+ if (Key1 == val) {
789
+ this.DefectConfigs = [{ label: '全部', value: '' }]
790
+ for (var Key2 in this.DefectConfig[Key1].items) {
791
+ this.DefectConfigs.push({ label: Key2, value: Key2 })
826
792
  }
827
793
  return
828
794
  }
829
795
  }
830
- }else if(val == ''){
831
- this.DefectConfigs = [{label:'全部',value:''}]
832
- for (var Key1 in this.DefectConfig){
833
- for(var Key2 in this.DefectConfig[Key1].items){
834
- this.DefectConfigs.push({label:Key2,value:Key2})
796
+ } else if (val == '') {
797
+ this.DefectConfigs = [{ label: '全部', value: '' }]
798
+ for (var Key1 in this.DefectConfig) {
799
+ for (var Key2 in this.DefectConfig[Key1].items) {
800
+ this.DefectConfigs.push({ label: Key2, value: Key2 })
835
801
  }
836
802
  }
837
803
  }
838
- }catch (e) {
804
+ } catch (e) {
839
805
  //tag
840
806
  }
841
807
  },
842
- getDefectInfoConfig(val){
808
+ getDefectInfoConfig(val) {
843
809
  try {
844
810
  if (val.safecheck.DevicesSetConfig != undefined) {
845
811
  this.DefectConfig = val.safecheck.DevicesConfig
846
812
  // 获取到配置项,进行遍历,获取每个隐患项
847
- for (var Key1 in this.DefectConfig){
848
- this.device_types.push({label:Key1,value:Key1})
849
- for(var Key2 in this.DefectConfig[Key1].items){
850
- this.DefectConfigs.push({label:Key2,value:Key2})
813
+ for (var Key1 in this.DefectConfig) {
814
+ this.device_types.push({ label: Key1, value: Key1 })
815
+ for (var Key2 in this.DefectConfig[Key1].items) {
816
+ this.DefectConfigs.push({ label: Key2, value: Key2 })
851
817
  }
852
818
  }
853
819
  // 非民用或其他配置项加入,在进行遍历
854
820
  }
855
- }catch (e) {
821
+ } catch (e) {
856
822
  //tag
857
823
  }
858
824
  },
859
- showaudio(){
825
+ showaudio() {
860
826
  //tag
861
- this.audioshow=!this.audioshow
827
+ this.audioshow = !this.audioshow
862
828
  //tag
863
829
  },
864
- getmeterbook(val){
865
- this.cbc=[]
830
+ getmeterbook(val) {
831
+ this.cbc = []
866
832
  this.cbc.push({
867
- label:'全部',
868
- value:''
833
+ label: '全部',
834
+ value: ''
869
835
  })
870
- if (val==''){
836
+ if (val == '') {
871
837
 
872
- this.cbcs.forEach(res=>{
838
+ this.cbcs.forEach(res => {
873
839
  this.cbc.push({
874
- label:res.f_book_name,
875
- value:res.id
840
+ label: res.f_book_name,
841
+ value: res.id
876
842
  })
877
843
  })
878
- }else{
879
- this.cbcs.forEach(res=>{
880
- if (res.f_book_slice_area==val){
844
+ } else {
845
+ this.cbcs.forEach(res => {
846
+ if (res.f_book_slice_area == val) {
881
847
  this.cbc.push({
882
- label:res.f_book_name,
883
- value:res.id
848
+ label: res.f_book_name,
849
+ value: res.id
884
850
  })
885
851
  }
886
852
  })
887
853
  }
888
854
  },
889
- getSafeParam(val){
890
- if(this.$appdata.getParam(val)){
891
- return [{label: '全部', value: ''}, ...this.$appdata.getParam(val)]
892
- }else{
893
- return [{label: '全部', value: ''}]
855
+ getSafeParam(val) {
856
+ if (this.$appdata.getParam(val)) {
857
+ return [{ label: '全部', value: '' }, ...this.$appdata.getParam(val)]
858
+ } else {
859
+ return [{ label: '全部', value: '' }]
894
860
  }
895
861
 
896
862
  },
897
- Mreadibook(val){
898
- if (val){
899
- new HttpResetClass().load('POST',`/rs/sql/safe_singleTable_OrderBy`, {data: {
863
+ Mreadibook(val) {
864
+ if (val) {
865
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
866
+ data: {
900
867
  items: 'name',
901
868
  tablename: 't_zone',
902
869
  condition: `parentid in ${val}`,
903
870
  orderitem: 'id'
904
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
905
- this.sliceArea=[{
906
- label:'全部',
907
- value:''
871
+ }
872
+ }, { resolveMsg: null, rejectMsg: null }).then((res) => {
873
+ this.sliceArea = [{
874
+ label: '全部',
875
+ value: ''
908
876
  }]
909
- res.data.forEach(ress=>{
877
+ res.data.forEach(ress => {
910
878
  this.sliceArea.push({
911
- label:ress.name,
912
- value:ress.name
879
+ label: ress.name,
880
+ value: ress.name
913
881
  })
914
882
  })
915
883
 
916
884
  })
917
885
  }
918
886
  },
919
- getAllMeterBook(val){
920
- this.cbcs=[]
921
- if (val){
922
- new HttpResetClass().load('POST',`/rs/sql/safe_singleTable_OrderBy`, {data: {
887
+ getAllMeterBook(val) {
888
+ this.cbcs = []
889
+ if (val) {
890
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
891
+ data: {
923
892
  items: 'f_book_name,f_book_slice_area,id',
924
893
  tablename: 't_meter_book',
925
894
  condition: `f_filiale_id in ${val}`,
926
895
  orderitem: 'id'
927
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
928
- res.data.forEach(ress=>{
896
+ }
897
+ }, { resolveMsg: null, rejectMsg: null }).then((res) => {
898
+ res.data.forEach(ress => {
929
899
  this.cbcs.push({
930
- id:ress.id,
931
- f_book_name:ress.f_book_name,
932
- f_book_slice_area:ress.f_book_slice_area
900
+ id: ress.id,
901
+ f_book_name: ress.f_book_name,
902
+ f_book_slice_area: ress.f_book_slice_area
933
903
  })
934
904
  })
935
- this.cbc=[]
905
+ this.cbc = []
936
906
  this.cbc.push({
937
- label:'全部',
938
- value:''
907
+ label: '全部',
908
+ value: ''
939
909
  })
940
- this.cbcs.forEach(res=>{
910
+ this.cbcs.forEach(res => {
941
911
  this.cbc.push({
942
- label:res.f_book_name,
943
- value:res.id
912
+ label: res.f_book_name,
913
+ value: res.id
944
914
  })
945
915
  })
946
916
  })
@@ -957,9 +927,9 @@
957
927
  change(row) {
958
928
  // Vue.$login = {jwt: row.f_checker_id}
959
929
  asyncReady(this).then(() => {
960
- ////tag)
961
- row.f_upload_state = '已传'
962
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
930
+ ////tag)
931
+ row.f_upload_state = '已传'
932
+ this.$goto('new-check-paper', { f_plan_id: row.f_check_plan_id, item: row, role: 'view' }, 'self')
963
933
  }).catch(
964
934
  (respanse) => {
965
935
  alert('获取配置文件失败')
@@ -982,13 +952,13 @@
982
952
  this.showModal = false
983
953
  if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
984
954
  this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
985
- this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
955
+ this.model.f_check_plan = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
986
956
  }
987
957
  },
988
958
  cancel() {
989
959
  this.showModal = false
990
- this.model.f_check_plan = {f_plan_name: '', id: ''}
991
- this.model.f_plan_id=''
960
+ this.model.f_check_plan = { f_plan_name: '', id: '' }
961
+ this.model.f_plan_id = ''
992
962
  },
993
963
  print(row) {
994
964
  this.showcheckmsg = true
@@ -1017,22 +987,22 @@
1017
987
  },
1018
988
  selfSearch(args) {
1019
989
  ////tag
1020
- if (args.model.f_repair_result == '已处理'){
990
+ if (args.model.f_repair_result == '已处理') {
1021
991
  args.condition += ` and f_repair_date != '****-**-** **:**:**' `
1022
992
  }
1023
- if (args.model.f_repair_result == '未处理'){
993
+ if (args.model.f_repair_result == '未处理') {
1024
994
  args.condition += ` and f_repair_date = '****-**-** **:**:**' `
1025
995
  }
1026
996
  args.condition += ` and f_filialeid in ${this.model.f_filialeid} `
1027
997
  this.model.search(args.condition, args.model, args.condValue)
1028
998
  },
1029
999
  getPcds(val) {
1030
- this.pcds = [{label: '全部', value: ''}]
1000
+ this.pcds = [{ label: '全部', value: '' }]
1031
1001
  new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
1032
- {data: {items: "*", tablename: "t_pcd", orderitem: "id", condition: `f_orgid in ${val}`}},
1033
- {resolveMsg: null, rejectMsg: null}).then((pcdlist) => {
1002
+ { data: { items: "*", tablename: "t_pcd", orderitem: "id", condition: `f_orgid in ${val}` } },
1003
+ { resolveMsg: null, rejectMsg: null }).then((pcdlist) => {
1034
1004
  pcdlist.data.forEach((result) => {
1035
- this.pcds.push({label: result.f_pcd, value: result.f_pcd})
1005
+ this.pcds.push({ label: result.f_pcd, value: result.f_pcd })
1036
1006
  })
1037
1007
  })
1038
1008
  },
@@ -1049,7 +1019,7 @@
1049
1019
  },
1050
1020
  watch: {
1051
1021
  'model.f_no_checkplan'(val) {
1052
- if (this.model.f_no_checkplan){
1022
+ if (this.model.f_no_checkplan) {
1053
1023
  this.searchData.f_no_checkplan = val
1054
1024
  }
1055
1025
  if (this.model.f_no_checkplan == '有计划安检') {