telephone-clients 3.0.103-7 → 3.0.103-71

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 (77) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +5 -3
  3. package/src/components/Util/RightTreeSafe.vue +2 -2
  4. package/src/components/Util/RightTreeSafeDep.vue +350 -0
  5. package/src/components/android/AddMyTask.vue +7 -0
  6. package/src/components/pc/RepairsWork.vue +19 -0
  7. package/src/components/pc/RoleSelectorDep.vue +158 -0
  8. package/src/components/pc/TelFindUser.vue +1 -1
  9. package/src/components/pc/TelListener.vue +47 -16
  10. package/src/components/pc/WorkCenter.vue +1 -1
  11. package/src/components/pc/WorkCenterList.vue +1 -1
  12. package/src/components/pc/WorkHistory.vue +560 -548
  13. package/src/components/pc/WorkListAllNew.vue +1 -1
  14. package/src/components/pc/WorkListNew.vue +9 -3
  15. package/src/components/pc/olddata/OldWorkList.vue +193 -0
  16. package/src/components/telreport/RepairsDetailsReport.vue +98 -0
  17. package/src/components/telreport/TableFaultReport.vue +96 -0
  18. package/src/components/telreport/Traffic.vue +3 -3
  19. package/src/components/temp/InfoTable.vue +5 -2
  20. package/src/components/temp/OldRepairList.vue +100 -0
  21. package/src/components/weinan/SiteSend.vue +2 -2
  22. package/src/components/weinan/SiteSendWeixiu.vue +7 -16
  23. package/src/components/weinan/StandWorkWeixiu.vue +1 -1
  24. package/src/components/weinan/WorkList.vue +73 -0
  25. package/src/components/weinan/WorkListAll.vue +90 -14
  26. package/src/components/weinan/WorkListWeixiu.vue +1 -1
  27. package/src/components/workorder/CompletedRepair.vue +269 -183
  28. package/src/components/workorder/FaultAll.vue +9 -9
  29. package/src/components/workorder/PhoneUpDetail.vue +3 -0
  30. package/src/components/workorder/RepairFirstV.vue +1 -1
  31. package/src/filiale/kelai/pc/WorkCenterList.vue +20 -3
  32. package/src/filiale/kelai/pc/WorkListAllNew.vue +47 -9
  33. package/src/filiale/kelai/pc/serviceDeleteOrder.vue +55 -0
  34. package/src/filiale/kelai/telephone.js +9 -8
  35. package/src/filiale/qianneng/android/FaultAll.vue +1 -1
  36. package/src/filiale/qianneng/android/TemporarySingle.vue +25 -0
  37. package/src/filiale/qianneng/pc/MaterialDetailed.vue +10 -0
  38. package/src/filiale/qianneng/pc/MaterialStatistics.vue +144 -0
  39. package/src/filiale/qianneng/pc/NewRepairPaper.vue +2 -2
  40. package/src/filiale/qianneng/pc/RepairsWork.vue +12 -2
  41. package/src/filiale/qianneng/pc/WorkHistory.vue +2 -2
  42. package/src/filiale/qianneng/pc/WorkListAllNew.vue +53 -5
  43. package/src/filiale/qianneng/telephone.js +1 -0
  44. package/src/filiale/rizhao/pc/DispatchMan.vue +3 -3
  45. package/src/filiale/rizhao/pc/DispatchWork.vue +3 -3
  46. package/src/filiale/rizhao/pc/Traffic.vue +3 -3
  47. package/src/filiale/rizhao/pc/WorkListAllNew.vue +8 -3
  48. package/src/filiale/rongcheng/CliWorkListAll.vue +440 -407
  49. package/src/filiale/rongcheng/FaultAll.vue +3 -3
  50. package/src/filiale/rongcheng/RepairOrderV.vue +1445 -0
  51. package/src/filiale/rongcheng/telephoneAndroid.js +3 -1
  52. package/src/filiale/shanxian/android/RepairFirstV.vue +5 -1
  53. package/src/filiale/shanxian/pc/RepairsWork.vue +826 -0
  54. package/src/filiale/shanxian/telephone.js +2 -1
  55. package/src/filiale/shexian/android/AddMyTask.vue +7 -0
  56. package/src/filiale/shexian/android/CompletedRepair.vue +280 -0
  57. package/src/filiale/shexian/android/FaultAll.vue +16 -0
  58. package/src/filiale/shexian/android/Outlay.vue +182 -165
  59. package/src/filiale/shexian/android/RepairFirstV.vue +16 -2
  60. package/src/filiale/shexian/android/RepairInfo.vue +1 -0
  61. package/src/filiale/shexian/pc/TelByOrderManCount.vue +10 -2
  62. package/src/filiale/shexian/pc/WorkList.vue +25 -1
  63. package/src/filiale/shexian/pc/WorkListAllNew.vue +65 -61
  64. package/src/filiale/shexian/telephoneAndroid.js +3 -0
  65. package/src/filiale/tongchuan/android/TicketDetails.vue +3 -0
  66. package/src/filiale/tongchuan/pc/WorkOrderStatistics.vue +2 -2
  67. package/src/filiale/wenxi/pc/FailureEdit.vue +1 -1
  68. package/src/filiale/wenxi/pc/RepairsWork.vue +15 -0
  69. package/src/filiale/wenxi/pc/WorkListAll.vue +5 -2
  70. package/src/filiale/wenxi/telephone.js +1 -7
  71. package/src/filiale/yuncheng/pc/TelFindUser.vue +302 -0
  72. package/src/filiale/yuncheng/telephone.js +12 -0
  73. package/src/filiale/zhongsheng/android/FaultAll.vue +830 -0
  74. package/src/filiale/zhongsheng/telephoneAndroid.js +2 -1
  75. package/src/main.js +1 -1
  76. package/src/telephone.js +746 -733
  77. package/src/weinan.js +6 -0
@@ -22,19 +22,19 @@
22
22
  <div class="col-sm-3 form-group form-input-group" style="width: 20%;">
23
23
  <label class="font_normal_body" style="width: 40%">客户姓名</label>
24
24
  <input type="text" class="input_search" v-model="model.f_user_name" placeholder='客户姓名'
25
- condition="f_user_name like '%{}%'"
25
+ condition="tswo.f_user_name like '%{}%'"
26
26
  :size="model.f_user_name ? model.f_user_name.length : 6">
27
27
  </div>
28
28
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
29
29
  <label class="font_normal_body" style="width: 40%">客户编号</label>
30
30
  <input type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
31
- condition="f_userinfo_code='{}'"
31
+ condition="tswo.f_userinfo_code like '%{}%'"
32
32
  :size="model.f_userinfo_code ? model.f_userinfo_code.length : 6">
33
33
  </div>
34
34
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
35
35
  <label class="font_normal_body" style="width: 40%">地址</label>
36
36
  <input type="text" class="input_search" v-model="model.f_address" placeholder='地址'
37
- condition="f_address like '%{}%'"
37
+ condition="tswo.f_address like '%{}%'"
38
38
  :size="model.f_address ? model.f_address.length : 4">
39
39
  </div>
40
40
  <div class="col-sm-4" style="float: right" >
@@ -43,11 +43,10 @@
43
43
  <export-excel-tel
44
44
  :data="$parent.$parent.searchData"
45
45
  :field="$parent.$parent.excelHeaders"
46
- sqlurl="rs/logic/telephoneExport" path-name="serviceSummery" template-name='工单详情导出'
46
+ sqlurl="rs/logic/telephoneExport" sql-name="serviceDetails" template-name='工单详情导出'
47
47
  :choose-col="true">
48
48
  </export-excel-tel>
49
49
  </div>
50
-
51
50
  <button class="button_search button_spacing" style="float: right;margin-top: 8px" @click="search(),$dispatch('search')">查询</button>
52
51
  </div>
53
52
  </div>
@@ -59,7 +58,7 @@
59
58
  :value.sync="model.f_created_date"
60
59
  v-model="model.f_created_date"
61
60
  :format="'yyyy-MM-dd 00:00:00'"
62
- condition="f_created_date > '{}'"
61
+ condition="tsw.f_date > '{}'"
63
62
  ></datepicker>
64
63
  </div>
65
64
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
@@ -68,7 +67,7 @@
68
67
  :value.sync="model.f_created_enddate"
69
68
  v-model="model.f_created_enddate"
70
69
  :format="'yyyy-MM-dd 23:59:59'"
71
- condition="f_created_date < '{}'"
70
+ condition="tsw.f_date < '{}'"
72
71
  ></datepicker>
73
72
  </div>
74
73
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
@@ -76,13 +75,7 @@
76
75
  <right-tree @re-res="$parent.$parent.getRes" :initresid='$parent.$parent.curorgid'>
77
76
  </right-tree>
78
77
  </div>
79
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
80
- <label class="font_normal_body" style="width: 40%">工单状态</label>
81
- <v-select :value.sync="model.defname" v-model='model.defname'
82
- :value-single="true"
83
- :options='$parent.$parent.defnames' placeholder='工单状态'
84
- close-on-select></v-select>
85
- </div>
78
+
86
79
  <!--<div class="col-sm-3 form-group form-input-group" style="width: 20%">
87
80
  <label class="font_normal_body" style="width: 40%">来电电话</label>
88
81
  <input type="text" class="input_search" v-model="model.f_phone" placeholder='来电电话'
@@ -97,7 +90,14 @@
97
90
  </div>-->
98
91
  </div>
99
92
  <div class="row" v-show="$parent.$parent.criteriaShow">
100
-
93
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
94
+ <label class="font_normal_body" style="width: 40%">工单状态</label>
95
+ <v-select :value.sync="model.defname" v-model='model.defname'
96
+ :value-single="true"
97
+ :options='$parent.$parent.defnames' placeholder='工单状态'
98
+ condition="sa.defname = '{}'"
99
+ close-on-select></v-select>
100
+ </div>
101
101
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
102
102
  <label class="font_normal_body" style="width: 40%">隐患级别</label>
103
103
  <v-select :value.sync="$parent.$parent.defectLeave" v-model='$parent.$parent.defectLeave'
@@ -110,39 +110,39 @@
110
110
  :multiple="true"
111
111
  :options='$parent.$parent.getdefectType' placeholder='工单状态' ></v-select>-->
112
112
  <v-select
113
- :value.sync="$parent.$parent.defectType"
114
- v-model="$parent.$parent.defectType"
115
- :options='$parent.$parent.getdefectType'
116
- placeholder='隐患类型'
117
- condition="f_street = '{}'"
118
- :multiple="true">
113
+ :value.sync="$parent.$parent.defectType"
114
+ v-model="$parent.$parent.defectType"
115
+ :options='$parent.$parent.getdefectType'
116
+ placeholder='隐患类型'
117
+ condition="f_street = '{}'"
118
+ :multiple="true">
119
119
  </v-select>
120
120
  </div>
121
121
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
122
122
  <label class="font_normal_body" style="width: 40%">区域</label>
123
123
  <v-select
124
- :value.sync="$parent.$parent.regionModel"
125
- v-model="$parent.$parent.regionModel"
126
- :options='$parent.$parent.regionChick'
127
- placeholder='请选择区域'
128
- condition="f_street = '{}'"
129
- close-on-select>
124
+ :value.sync="model.regionModel"
125
+ v-model="model.regionModel"
126
+ :options='$parent.$parent.regionChick'
127
+ placeholder='请选择区域'
128
+ condition="tswo.f_street = '{}'"
129
+ close-on-select>
130
130
  </v-select>
131
131
  </div>
132
132
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
133
133
  <label class="font_normal_body" style="width: 40%">&nbsp;&nbsp;小区域 </label>
134
134
  <input type="text" class="input_search" v-model="model.smallRegionModel" placeholder='请输入小区域'
135
- condition="f_small_area like '%{}%'" style="width: 60%;">
135
+ condition="tswo.f_small_area like '%{}%'" style="width: 60%;">
136
136
  </div>
137
137
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
138
138
  <label class="font_normal_body" style="width: 40%">用户类型</label>
139
139
  <v-select
140
- :value.sync="$parent.$parent.customerTypeModel"
141
- v-model="$parent.$parent.customerTypeModel"
142
- :options='$parent.$parent.customerTypeChick'
143
- placeholder='请选择用户类型'
144
- condition="f_user_type = '{}'"
145
- close-on-select>
140
+ :value.sync="model.customerTypeModel"
141
+ v-model="model.customerTypeModel"
142
+ :options='$parent.$parent.customerTypeChick'
143
+ placeholder='用户类型'
144
+ condition="tswo.f_user_type = '{}'"
145
+ close-on-select>
146
146
  </v-select>
147
147
  </div>
148
148
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
@@ -164,69 +164,69 @@
164
164
  </div>
165
165
 
166
166
 
167
- <!-- <div class="row" v-show="$parent.$parent.criteriaShow">
167
+ <!-- <div class="row" v-show="$parent.$parent.criteriaShow">
168
168
 
169
- &lt;!&ndash;<div class="col-sm-3 form-group form-input-group" style="width: 20%">
170
- <label class="font_normal_body" style="width: 40%">接单站点</label>
171
- <input type="text" class="input_search" v-model="model.f_outlets" placeholder='接单站点'
172
- condition="f_outlets like '%{}%'"
173
- :size="model.f_outlets ? model.f_outlets.length : 6">
174
- </div>
175
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
176
- <label class="font_normal_body" style="width: 40%">完成时间</label>
177
- <datepicker placeholder="维修完成时间"
178
- :value.sync="model.f_date"
179
- v-model="model.f_date"
180
- :format="'yyyy-MM-dd HH:mm:ss'"
181
- ></datepicker>
182
- </div>
183
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
184
- <label class="font_normal_body" style="width: 40%">完成时间</label>
185
- <datepicker placeholder="维修完成时间"
186
- :value.sync="model.f_enddate"
187
- v-model="model.f_enddate"
188
- :format="'yyyy-MM-dd HH:mm:ss'"
189
- ></datepicker>
190
- </div>
191
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
192
- <label class="font_normal_body" style="width: 40%">话务员</label>
193
- <input type="text" class="input_search" v-model="model.f_attendant" placeholder='话务员'
194
- condition="f_attendant like '%{}%'"
195
- :size="model.f_attendant ? model.f_attendant.length : 6">
196
- </div>
197
- </div>
198
- <div class="row" v-show="$parent.$parent.criteriaShow">
199
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
200
- <label class="font_normal_body" style="width: 40%">接单员</label>
201
- <input type="text" class="input_search" v-model="model.f_order_man" placeholder='接单员'
202
- condition="f_order_man like '%{}%'"
203
- :size="model.f_order_man ? model.f_order_man.length : 6">
204
- </div>
205
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
206
- <label class="font_normal_body" style="width: 40%">工单来源</label>
207
- <v-select :value.sync="model.f_source" v-model='model.f_source'
208
- :value-single="true"
209
- :options='$parent.$parent.sources' placeholder='工单来源'
210
- close-on-select
211
- condition="f_source = '{}'"></v-select>
212
- </div>&ndash;&gt;
169
+ &lt;!&ndash;<div class="col-sm-3 form-group form-input-group" style="width: 20%">
170
+ <label class="font_normal_body" style="width: 40%">接单站点</label>
171
+ <input type="text" class="input_search" v-model="model.f_outlets" placeholder='接单站点'
172
+ condition="f_outlets like '%{}%'"
173
+ :size="model.f_outlets ? model.f_outlets.length : 6">
174
+ </div>
175
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
176
+ <label class="font_normal_body" style="width: 40%">完成时间</label>
177
+ <datepicker placeholder="维修完成时间"
178
+ :value.sync="model.f_date"
179
+ v-model="model.f_date"
180
+ :format="'yyyy-MM-dd HH:mm:ss'"
181
+ ></datepicker>
182
+ </div>
183
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
184
+ <label class="font_normal_body" style="width: 40%">完成时间</label>
185
+ <datepicker placeholder="维修完成时间"
186
+ :value.sync="model.f_enddate"
187
+ v-model="model.f_enddate"
188
+ :format="'yyyy-MM-dd HH:mm:ss'"
189
+ ></datepicker>
190
+ </div>
191
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
192
+ <label class="font_normal_body" style="width: 40%">话务员</label>
193
+ <input type="text" class="input_search" v-model="model.f_attendant" placeholder='话务员'
194
+ condition="f_attendant like '%{}%'"
195
+ :size="model.f_attendant ? model.f_attendant.length : 6">
196
+ </div>
197
+ </div>
198
+ <div class="row" v-show="$parent.$parent.criteriaShow">
199
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
200
+ <label class="font_normal_body" style="width: 40%">接单员</label>
201
+ <input type="text" class="input_search" v-model="model.f_order_man" placeholder='接单员'
202
+ condition="f_order_man like '%{}%'"
203
+ :size="model.f_order_man ? model.f_order_man.length : 6">
204
+ </div>
205
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
206
+ <label class="font_normal_body" style="width: 40%">工单来源</label>
207
+ <v-select :value.sync="model.f_source" v-model='model.f_source'
208
+ :value-single="true"
209
+ :options='$parent.$parent.sources' placeholder='工单来源'
210
+ close-on-select
211
+ condition="f_source = '{}'"></v-select>
212
+ </div>&ndash;&gt;
213
213
 
214
- &lt;!&ndash;<div class="col-sm-3 form-group form-input-group" style="width: 20%">
215
- <label class="font_normal_body" style="width: 40%">置换状态</label>
216
- <v-select :value.sync="model.f_status" v-model='model.f_status'
217
- :value-single="true"
218
- :options='$parent.$parent.zhihuans' placeholder='置换状态'
219
- close-on-select
220
- ></v-select>
221
- </div>
222
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
223
- <label class="font_normal_body" style="width: 40%">地址编号</label>
224
- <input type="text" class="input_search" v-model="model.f_addressid" placeholder='地址id'
225
- condition="f_addressid like '%{}%'"
226
- :size="model.f_addressid ? model.f_addressid.length : 6">
227
- </div>&ndash;&gt;
228
- </div>
229
- -->
214
+ &lt;!&ndash;<div class="col-sm-3 form-group form-input-group" style="width: 20%">
215
+ <label class="font_normal_body" style="width: 40%">置换状态</label>
216
+ <v-select :value.sync="model.f_status" v-model='model.f_status'
217
+ :value-single="true"
218
+ :options='$parent.$parent.zhihuans' placeholder='置换状态'
219
+ close-on-select
220
+ ></v-select>
221
+ </div>
222
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
223
+ <label class="font_normal_body" style="width: 40%">地址编号</label>
224
+ <input type="text" class="input_search" v-model="model.f_addressid" placeholder='地址id'
225
+ condition="f_addressid like '%{}%'"
226
+ :size="model.f_addressid ? model.f_addressid.length : 6">
227
+ </div>&ndash;&gt;
228
+ </div>
229
+ -->
230
230
  </div>
231
231
  </criteria>
232
232
 
@@ -253,7 +253,7 @@
253
253
  <!--<th><nobr>材料改造费用</nobr></th>-->
254
254
  <!--<th><nobr>费用</nobr></th>-->
255
255
  <th><nobr>工单结果</nobr></th>
256
- <!-- <th><nobr>抢修照片</nobr></th>-->
256
+ <!-- <th><nobr>抢修照片</nobr></th>-->
257
257
 
258
258
  <th><nobr>操作</nobr></th>
259
259
  </tr>
@@ -267,24 +267,24 @@
267
267
  <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.f_user_name}}&nbsp;&nbsp;&nbsp;{{row.f_address}}&nbsp;&nbsp;&nbsp;{{row.f_contact_name}}</nobr></td>
268
268
  <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.f_contact_phone}}</nobr></td>
269
269
  <td style="text-align: center;" :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red;text-align: center;':'text-align: center;',row.f_is_print == 'true'?'background-color:#5ee9e0':''">
270
- <nobr>{{row.processins.activities.length == 0 ? (row.f_state === '撤销' ? '撤销' : '完成') : row.processins.activities[0].defname}}</nobr>
270
+ <nobr>{{ row.defname ? row.defname:'完成'}}</nobr>
271
271
  </td>
272
272
  <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.f_single_man}}</nobr></td>
273
273
  <!--<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_attendant}}</nobr></td>-->
274
274
  <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.f_order_man}} {{row.f_repairman_phone}}</nobr></td>
275
- <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.serviceacitivity[0].f_date}}</nobr></td>
276
- <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.serviceacitivity[0].f_date_come}}</nobr></td>
277
- <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.serviceacitivity[0].f_date_leave}}</nobr></td>
275
+ <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.f_date}}</nobr></td>
276
+ <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.f_date_come}}</nobr></td>
277
+ <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.f_date_leave}}</nobr></td>
278
278
 
279
- <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{$parent.$parent.$parent.trouble(row.serviceacitivity[0].f_new_failure)}}</nobr></td>
280
- <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.serviceacitivity[0].f_remakes}}</nobr></td>
279
+ <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{$parent.$parent.$parent.trouble(row.failure)}}</nobr></td>
280
+ <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.f_remakes}}</nobr></td>
281
281
 
282
282
  <!--<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_cost_manage}}</nobr></td>-->
283
283
  <!--<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_cost_material}}</nobr></td>-->
284
284
  <!--<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_money}}</nobr></td>-->
285
- <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.serviceacitivity[0].f_result_status}}</nobr></td>
286
- <!-- <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr><div v-if="row.f_single_path"><button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.showpicture(row)" >抢修照片-->
287
- <!-- </button-link></div></nobr></td>-->
285
+ <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':'',row.f_is_print == 'true'?'background-color:#5ee9e0':''"><nobr>{{row.f_result_status}}</nobr></td>
286
+ <!-- <td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr><div v-if="row.f_single_path"><button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.showpicture(row)" >抢修照片-->
287
+ <!-- </button-link></div></nobr></td>-->
288
288
 
289
289
  <td style="text-align: center;" :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red;text-align: center;':'text-align: center;',row.f_is_print == 'true'?'background-color:#5ee9e0':''">
290
290
  <!--<div v-show="$parent.$parent.$parent.canRecall(row)">
@@ -341,326 +341,359 @@
341
341
  </template>
342
342
 
343
343
  <script>
344
- import { PagedList } from 'vue-client'
345
- import DelayReply from '../../components/pc/DelayReply'
346
- import defaultPrint from '../../components/pc/config/DefaultPrint'
347
- import { HttpResetClass } from 'vue-client'
348
- export default {
349
- title: '工单列表',
350
- data () {
351
- return {
352
- orgstrs:[{label: '全部', value: ''}],
353
- editflag: null,
354
- selectone: '',
355
- model: new PagedList('rs/path/serviceSummery', 20),
356
- row: null,
357
- orderMan: '',
358
- curorgid: [this.$login.f.orgid],
359
- msgs: [],
360
- service: Object,
361
- pendingCount: 0,
362
- // 打印
363
- all: false,
364
- modelval: [],
365
- printshow: false,
366
- imgshow:false,
367
- imgfilename:'',
368
- fields: {},
369
- thead: '',
370
- showcheckmsg:false,
371
- checkInfo:{},
372
- tfoot: '',
373
- defectType:[],
374
- defectLeave:'',
375
- defectLeaveList:[{label:'全部',value:''},{label:'一级隐患',value:'一级隐患'},{label:'二级隐患',value:'二级隐患'},{label:'三级隐患',value:'三级隐患'}],
376
- zhihuans:[{label: '全部', value: ''},{label: '正常', value: '正常'},{label: '异常', value: '异常'}],
377
- headData: ["工单类型","工单编号","用户姓名","用户地址","用户电话","报修电话","报修时间","报修原因","维修人"],
378
- bodyData: ["f_workorder_type", "f_service_id","f_user_name","f_address","f_phone","f_contact_phone", "f_created_date", "f_remarks", "f_order_man"],
379
- searchData:{
380
- condition: {
381
- condition1: " 1=1 ",
382
- condition2: "",
383
- condition3: "1=1",
384
- condition4: "f_filiale_id in " + this.f_filialeids + ""
385
- }
386
- },
387
- excelHeaders: {
388
- 'f_workorder_type': '工单类型',
389
- 'f_service_id': '工单编号',
390
- 'f_created_date': '派单时间',
391
- 'serviceacitivity[0].baseuserinfo.f_user_name': '用户姓名',
392
- 'f_address': '用户地址',
393
- 'f_contact_phone': '联系电话',
394
- //'f_contact_name': '联系人',
395
- 'f_single_man': '派单人',
396
- 'f_order_man': '接单人',
397
- 'processins.activities[0].defname': '工单状态',
398
- 'serviceacitivity[0].f_date_leave': '完成时间',
399
- 'serviceacitivity[0].f_remarks': '备注'
400
- },
401
- criteriaShow: false,
402
- regionChick:[{label:'全部',value:''},{label:'市区',value:'市区'},{label:'好运角区',value:'好运角区'}], //区域选择列表
403
- customerTypeChick:[{label:'非民用',value:'非民用'}], //用户类型选择列表
404
- regionModel:'', //区域绑定值
405
- smallRegionModel:'',//小区域绑定值
406
- customerTypeModel:'民用' //用户类型绑定值
344
+ import { PagedList } from 'vue-client'
345
+ import DelayReply from '../../components/pc/DelayReply'
346
+ import defaultPrint from '../../components/pc/config/DefaultPrint'
347
+ import { HttpResetClass } from 'vue-client'
348
+ export default {
349
+ title: '工单列表',
350
+ data () {
351
+ return {
352
+ orgstrs:[{label: '全部', value: ''}],
353
+ editflag: null,
354
+ selectone: '',
355
+ model: new PagedList('rs/sql/serviceDetails', 20),
356
+ row: null,
357
+ orderMan: '',
358
+ curorgid: [this.$login.f.orgid],
359
+ msgs: [],
360
+ service: Object,
361
+ pendingCount: 0,
362
+ // 打印
363
+ all: false,
364
+ modelval: [],
365
+ printshow: false,
366
+ imgshow:false,
367
+ imgfilename:'',
368
+ fields: {},
369
+ thead: '',
370
+ showcheckmsg:false,
371
+ checkInfo:{},
372
+ tfoot: '',
373
+ defectType:[],
374
+ defectLeave:'',
375
+ defectLeaveList:[{label:'全部',value:''},{label:'一级隐患',value:'一级隐患'},{label:'二级隐患',value:'二级隐患'},{label:'三级隐患',value:'三级隐患'}],
376
+ zhihuans:[{label: '全部', value: ''},{label: '正常', value: '正常'},{label: '异常', value: '异常'}],
377
+ headData: ["工单类型","工单编号","用户姓名","用户地址","用户电话","报修电话","报修时间","报修原因","维修人","隐患明细"],
378
+ bodyData: ["f_workorder_type", "f_service_id","f_user_name","f_address","f_phone","f_contact_phone", "f_date", "f_remarks", "f_order_man","f_defect_content"],
379
+ searchData:{
380
+ condition: {
381
+ condition1: " 1=1 ",
382
+ condition2: "",
383
+ condition3: "1=1",
384
+ condition4: "f_filiale_id in " + this.f_filialeids + ""
385
+ }
386
+ },
387
+ excelHeaders: {
388
+ 'f_workorder_type': '工单类型',
389
+ 'f_service_id': '工单编号',
390
+ 'f_user_name': '用户姓名',
391
+ 'f_address': '用户地址',
392
+ 'f_contact_phone': '联系电话',
393
+ //'f_contact_name': '联系人',
394
+ 'f_single_man': '派单人',
395
+ 'f_order_man': '接单人',
396
+ 'defname': '工单状态',
397
+ 'f_date_leave': '完成时间',
398
+ 'f_remarks': '备注',
399
+ 'f_defect_content': '隐患明细'
400
+ },
401
+ criteriaShow: false,
402
+ regionChick:[{label:'全部',value:''},{label:'市区',value:'市区'},{label:'好运角区',value:'好运角区'}], //区域选择列表
403
+ customerTypeChick:[{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}], //用户类型选择列表
404
+ regionModel:'', //区域绑定值
405
+ smallRegionModel:'',//小区域绑定值
406
+ customerTypeModel:'民用' //用户类型绑定值
407
407
 
408
- }
409
- },
410
- props: {
411
- user: {
412
- type: Object
413
- },
414
- sum:0,
415
- maintenance: [],
416
- // serviceId : [String, Number]
417
- serviceId: '',
418
- // 工单状态 工单位置
419
- defname: {
420
- type: String
421
- },
422
- systemshow:{
423
- type:Boolean,
424
- default:false
425
- }
426
- },
427
- ready () {
428
- this.f_filialeids = `('${this.$login.f.orgid}')`
429
- this.getfengongsi()
430
- // //tag
431
- // //tag
432
- // //tag)
433
- // this.getRes(this.$login.f.orgid)
434
- //this.selfSearch()
435
- },
436
- watch: {
437
- 'all' (val) {
438
- if (val) {
439
- this.modelval = this.bodyData
440
- } else {
441
- this.modelval = defaultPrint.config
442
- this.put()
443
408
  }
444
409
  },
445
- 'modelval.length' () {
446
- this.put()
447
- },
448
- 'serviceId' () {
449
- this.selfSearch()
450
- },
451
- 'sum' (val) {
452
- this.selfSearch()
453
- //this.model.search()
454
- }
455
- },
456
- methods: {
457
- showpicture(val){
458
- //tag
459
- //tag)
460
- this.imgshow=true
461
- this.imgfilename='rs/image/file/'+val.f_single_path
462
- },
463
- imgclose(){
464
- this.imgshow=false
465
- },
466
- yccolor(val){
467
- if(val == '异常'){
468
- return 'color:red'
410
+ props: {
411
+ user: {
412
+ type: Object
413
+ },
414
+ sum:0,
415
+ maintenance: [],
416
+ // serviceId : [String, Number]
417
+ serviceId: '',
418
+ // 工单状态 工单位置
419
+ defname: {
420
+ type: String
421
+ },
422
+ systemshow:{
423
+ type:Boolean,
424
+ default:false
469
425
  }
470
- return ''
471
426
  },
472
- // 县域分公司发生改变
473
- orgstrchange(val){
474
- if(val == undefined || val == ''){
475
- return
427
+ ready () {
428
+ this.f_filialeids = `('${this.$login.f.orgid}')`
429
+ this.getfengongsi()
430
+ // //tag
431
+ // //tag
432
+ // //tag)
433
+ // this.getRes(this.$login.f.orgid)
434
+ //this.selfSearch()
435
+ },
436
+ watch: {
437
+ 'all' (val) {
438
+ if (val) {
439
+ this.modelval = this.bodyData
440
+ } else {
441
+ this.modelval = defaultPrint.config
442
+ this.put()
443
+ }
444
+ },
445
+ 'modelval.length' () {
446
+ this.put()
447
+ },
448
+ 'serviceId' () {
449
+ this.selfSearch()
450
+ },
451
+ 'sum' (val) {
452
+ this.selfSearch()
453
+ //this.model.search()
476
454
  }
477
455
  },
478
- // 获取县域分公司内容
479
- getfengongsi(){
480
- let val = {source: 'this.getParentByType($organization$).getSpecialResByType($organization$)', userid: `${this.$login.f.id}`}
481
- let http = new HttpResetClass()
482
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
483
- res.data.forEach((item) => {
484
- this.orgstrs.push({label: item.name, value: item.id})
485
- })
456
+ methods: {
457
+ showpicture(val){
486
458
  //tag
487
- })
488
- },
489
- proc (selectone, type) {
490
- this.editflag = type
491
- this.selectone = selectone
492
- },
493
- search(args) {
494
- let data = {}
495
- data.condition1 = this.$refs.paged.$refs.criteria.condition?this.$refs.paged.$refs.criteria.condition: `1=1`
496
- // 获取自定义拼接条件
497
-
498
- if(this.defectType.length>0){
499
- for(let sqlstr in this.defectType){
500
- //tag
501
- //tag
502
- data.condition1 += ` and failure like '%${this.defectType[sqlstr]}%'`
459
+ //tag)
460
+ this.imgshow=true
461
+ this.imgfilename='rs/image/file/'+val.f_single_path
462
+ },
463
+ imgclose(){
464
+ this.imgshow=false
465
+ },
466
+ yccolor(val){
467
+ if(val == '异常'){
468
+ return 'color:red'
503
469
  }
504
- }else if(this.defectLeave.toString().trim()){
505
- this.$showMessage('请选择隐患类型在进行搜索!')
506
- return
507
- }
508
- // and f_street = ${this.regionModel} and f_small_area like '%${this.smallRegionModel}%' and f_user_type=${this.customerTypeModel}
509
- // 拼接条件区域
510
- let splicingCondition = '';
511
- splicingCondition+=this.regionModel==''?'':' '+`and f_street = '${this.regionModel}'` //区域
512
- splicingCondition+=this.smallRegionModel.trim()==''?'':' '+`+and f_small_area like '%${this.smallRegionModel}%'` //小区域
513
- splicingCondition+=this.customerTypeModel==''?'':' '+`and f_user_type = '${this.customerTypeModel}'`
514
- data.condition1 +=splicingCondition;
470
+ return ''
471
+ },
472
+ // 县域分公司发生改变
473
+ orgstrchange(val){
474
+ if(val == undefined || val == ''){
475
+ return
476
+ }
477
+ },
478
+ // 获取县域分公司内容
479
+ getfengongsi(){
480
+ let val = {source: 'this.getParentByType($organization$).getSpecialResByType($organization$)', userid: `${this.$login.f.id}`}
481
+ let http = new HttpResetClass()
482
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
483
+ res.data.forEach((item) => {
484
+ this.orgstrs.push({label: item.name, value: item.id})
485
+ })
486
+ //tag
487
+ })
488
+ },
489
+ proc (selectone, type) {
490
+ this.editflag = type
491
+ this.selectone = selectone
492
+ },
493
+ /*search(args) {
494
+ let data = {}
495
+ data.condition1 = this.$refs.paged.$refs.criteria.condition?this.$refs.paged.$refs.criteria.condition: `1=1`
496
+ // 获取自定义拼接条件
515
497
 
516
- data.condition2 = this.getCondition2()
517
- data.condition3 = this.$refs.paged.$refs.criteria.model.defname ? `processins.activities[ state='开始活动' and defname = '${this.$refs.paged.$refs.criteria.model.defname}'].count(*) > 0`:'1=1'
518
- data.condition4 = `f_filiale_id in ${this.f_filialeids}`
519
- this.searchData.condition = data
520
- this.searchData = Object.assign(this.searchData, args.model)
521
- return this.model.search(data, args.model)
522
- },
523
- selfSearch () {
524
- // 取消编辑状态
525
- this.editflag = null
526
- let data = {}
527
- data.condition1 = `1=1`
528
- data.condition2 = ''
529
- data.condition3 = '1=1'
530
- data.condition4 = `f_filiale_id in ${this.f_filialeids}`
531
- return this.model.search(data)
532
- },
533
- getCondition2(){
534
- let String = ''
535
- let workCt = ''
536
- if(this.$refs.paged.$refs.criteria.model.f_date_leave){
537
- workCt = `f_date_leave > '${this.$refs.paged.$refs.criteria.model.f_date_leave}'`
538
- }
539
- if(this.$refs.paged.$refs.criteria.model.f_enddate_leave){
540
- if( workCt == ''){
541
- workCt = `f_date_leave < '${this.$refs.paged.$refs.criteria.model.f_enddate_leave}'`
542
- }else{
543
- workCt += `and f_date_leave < '${this.$refs.paged.$refs.criteria.model.f_enddate_leave}'`
498
+ if(this.defectType.length>0){
499
+ data.condition1 += ` and (`
500
+ for(let sqlstr=0;sqlstr<this.defectType.length;sqlstr++){
501
+ //tag
502
+ //tag
503
+ data.condition1 += ` failure like '%${this.defectType[sqlstr]}%'`
504
+ if(sqlstr<this.defectType.length-1){
505
+ data.condition1 +=' or'
506
+ }
507
+ }
508
+ data.condition1 += ` )`
509
+ }else if(this.defectLeave.toString().trim()){
510
+ this.$showMessage('请选择隐患类型在进行搜索!')
511
+ return
544
512
  }
545
- }
546
- if(this.$refs.paged.$refs.criteria.model.f_status && this.$refs.paged.$refs.criteria.model.f_status == '异常'){
547
- workCt += workCt ? " and f_is_abnormal = '异常'" : "f_is_abnormal = '异常'"
548
- }else if(this.$refs.paged.$refs.criteria.model.f_status && this.$refs.paged.$refs.criteria.model.f_status == '正常') {
549
- workCt += workCt ? " and f_is_abnormal = null" : "f_is_abnormal = null"
550
- }
513
+ // and f_street = ${this.regionModel} and f_small_area like '%${this.smallRegionModel}%' and f_user_type=${this.customerTypeModel}
514
+ // 拼接条件区域
515
+ let splicingCondition = '';
516
+ splicingCondition+=this.regionModel==''?'':' '+`and f_street = '${this.regionModel}'` //区域
517
+ splicingCondition+=this.smallRegionModel.trim()==''?'':' '+`+and f_small_area like '%${this.smallRegionModel}%'` //小区域
518
+ splicingCondition+=this.customerTypeModel==''?'':' '+`and f_user_type = '${this.customerTypeModel}'`
519
+ data.condition1 +=splicingCondition;
551
520
 
552
- String = workCt ? `[serviceacitivity[t_servicework: ${workCt}].count(*)>0]`:''
553
- return String
554
- },
555
- // 发送数据给业务逻辑,并刷新界面
556
- post (row, logic) {
557
- // 调取工单撤回操作
558
- let data = {model: row, loginUser: {name: this.$login.f.name, ename: this.$login.f.ename}}
521
+ data.condition2 = this.getCondition2()
522
+ data.condition3 = this.$refs.paged.$refs.criteria.model.defname ? `processins.activities[ state='开始活动' and defname = '${this.$refs.paged.$refs.criteria.model.defname}'].count(*) > 0`:'1=1'
523
+ data.condition4 = `f_filiale_id in ${this.f_filialeids}`
524
+ this.searchData.condition = data
525
+ this.searchData = Object.assign(this.searchData, args.model)
526
+ return this.model.search(data, args.model)
527
+ },*/
528
+ search (args) {
559
529
 
560
- this.$showMessage(logic+row.f_service_id+'工单', ['confirm', 'cancel']).then((res) => {
561
- if (res === 'confirm') {
562
- this.$resetpost(`rs/logic/${logic}`, data).then(() => {
563
- // 刷新界面
564
- this.selfSearch()
565
- })
530
+ if (this.f_filialeids) {
531
+ args.condition += ` and f_filiale_id in ${this.f_filialeids}`
532
+ } else {
533
+ args.condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
566
534
  }
567
- })
568
- },
569
- // 是否可以退回
570
- canRecall(row) {
571
- let result =
572
- row.processins.activities[0].defname === '维修完成'
573
- return result
574
- },
575
- trouble(row){
576
- if(!row){
577
- return
535
+ if(this.defectType.length>0){
536
+ args.condition += ` and (`
537
+ for(let sqlstr=0;sqlstr<this.defectType.length;sqlstr++){
538
+ //tag
539
+ //tag
540
+ args.condition += ` failure like '%${this.defectType[sqlstr]}%'`
541
+ if(sqlstr<this.defectType.length-1){
542
+ args.condition +=' or'
543
+ }
544
+ }
545
+ args.condition += ` )`
546
+ }else if(this.defectLeave.toString().trim()){
547
+ this.$showMessage('请选择隐患类型在进行搜索!')
548
+ return
549
+ }
550
+ this.searchData.condition = args.condition
551
+ return this.model.search(args.condition, args.model)
552
+ },
553
+ selfSearch () {
554
+ // 取消编辑状态
555
+ this.editflag = null
556
+ let data = {}
557
+ data.condition1 = `1=1`
558
+ data.condition2 = ''
559
+ data.condition3 = '1=1'
560
+ data.condition4 = `f_filiale_id in ${this.f_filialeids}`
561
+ return this.model.search(data)
562
+ },
563
+ // getCondition2(){
564
+ // let String = ''
565
+ // let workCt = ''
566
+ // if(this.$refs.paged.$refs.criteria.model.f_date){
567
+ // workCt = `f_date > '${this.$refs.paged.$refs.criteria.model.f_date}'`
568
+ // }
569
+ // if(this.$refs.paged.$refs.criteria.model.f_enddate){
570
+ // if( workCt == ''){
571
+ // workCt = `f_date < '${this.$refs.paged.$refs.criteria.model.f_enddate}'`
572
+ // }else{
573
+ // workCt += `and f_date < '${this.$refs.paged.$refs.criteria.model.f_enddate}'`
574
+ // }
575
+ // }
576
+ // if(this.$refs.paged.$refs.criteria.model.f_status && this.$refs.paged.$refs.criteria.model.f_status == '异常'){
577
+ // workCt += workCt ? " and f_is_abnormal = '异常'" : "f_is_abnormal = '异常'"
578
+ // }else if(this.$refs.paged.$refs.criteria.model.f_status && this.$refs.paged.$refs.criteria.model.f_status == '正常') {
579
+ // workCt += workCt ? " and f_is_abnormal = null" : "f_is_abnormal = null"
580
+ // }
581
+ //
582
+ // String = workCt ? `[serviceacitivity[t_servicework: ${workCt}].count(*)>0]`:''
583
+ // return String
584
+ // },
585
+ // 发送数据给业务逻辑,并刷新界面
586
+ post (row, logic) {
587
+ // 调取工单撤回操作
588
+ let data = {model: row, loginUser: {name: this.$login.f.name, ename: this.$login.f.ename}}
589
+
590
+ this.$showMessage(logic+row.f_service_id+'工单', ['confirm', 'cancel']).then((res) => {
591
+ if (res === 'confirm') {
592
+ this.$resetpost(`rs/logic/${logic}`, data).then(() => {
593
+ // 刷新界面
594
+ this.selfSearch()
595
+ })
596
+ }
597
+ })
598
+ },
599
+ // 是否可以退回
600
+ canRecall(row) {
601
+ let result =
602
+ row.processins.activities[0].defname === '维修完成'
603
+ return result
604
+ },
605
+ trouble(row){
606
+ if(!row){
607
+ return
608
+ }
609
+ let data = ''
610
+ let failure = JSON.parse(row)
611
+ failure.forEach((val)=>{
612
+ data+=val.f_failure_type+" "
613
+ })
614
+ return data
615
+ },
616
+ // 打印
617
+ stamp () {
618
+ this.all = false
619
+ // 默认选择要打印的列
620
+ this.modelval = defaultPrint.config
621
+ this.fields = this.getfield
622
+ this.printshow = true
623
+ this.put()
624
+ },
625
+ put () {
626
+ // 对Modelval进行排序
627
+ this.sortModelval()
628
+ this.thead = `<tr><th colspan=${this.modelval.length}>工单详情报表</th></tr><tr>`
629
+ for (let key of this.modelval) {
630
+ this.thead += '<th>' + this.fields[key] + '</th>'
631
+ }
632
+ this.thead += '</tr>'
633
+ },
634
+ /*print () {
635
+ this.$refs.print.PrintAsFile()
636
+ this.printshow = false
637
+ },*/
638
+ print(row) {
639
+ this.checkInfo = row
640
+ //tag)
641
+ this.showcheckmsg = true
642
+ },
643
+ close () {
644
+ this.printshow = false
645
+ this.all = false
646
+ },
647
+ // 对选择的列进行排序
648
+ sortModelval () {
649
+ let sortModel = []
650
+ Object.keys(this.fields).forEach((key) => {
651
+ if (this.modelval.includes(key)) {
652
+ sortModel.push(key)
653
+ }
654
+ })
655
+ this.modelval = sortModel
656
+ },
657
+ hidden(){
658
+ this.criteriaShow = !this.criteriaShow
659
+ },
660
+ getRes(obj){
661
+ //tag
662
+ //tag)
663
+ this.f_filialeids = this.$login.convertToIn(obj.resids);
664
+ //tag
578
665
  }
579
- let data = ''
580
- let failure = JSON.parse(row)
581
- failure.forEach((val)=>{
582
- data+=val.f_failure_type+" "
583
- })
584
- return data
585
666
  },
586
- // 打印
587
- stamp () {
588
- this.all = false
589
- // 默认选择要打印的列
590
- this.modelval = defaultPrint.config
591
- this.fields = this.getfield
592
- this.printshow = true
593
- this.put()
594
- },
595
- put () {
596
- // 对Modelval进行排序
597
- this.sortModelval()
598
- this.thead = `<tr><th colspan=${this.modelval.length}>工单详情报表</th></tr><tr>`
599
- for (let key of this.modelval) {
600
- this.thead += '<th>' + this.fields[key] + '</th>'
667
+ computed: {
668
+ searchData() {
669
+ return {condition: this.model.condition}
670
+ },
671
+ getdefectType(){
672
+ this.defectType=[]
673
+ return [ ... this.$appdata.getParam(this.defectLeave)]
674
+ },
675
+ defnames () {
676
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单状态')]
677
+ },
678
+ repairstypes () {
679
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('报修全部类型')]
680
+ },
681
+ serviceorders () {
682
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单类型')]
683
+ },
684
+ sources () {
685
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单来源')]
686
+ },
687
+ getfield(){
688
+ let data = {}
689
+ this.bodyData.forEach((value, index)=>{
690
+ data[this.bodyData[index]] = this.headData[index]
691
+ })
692
+ return data
601
693
  }
602
- this.thead += '</tr>'
603
- },
604
- /*print () {
605
- this.$refs.print.PrintAsFile()
606
- this.printshow = false
607
- },*/
608
- print(row) {
609
- this.checkInfo = row
610
- //tag)
611
- this.showcheckmsg = true
612
- },
613
- close () {
614
- this.printshow = false
615
- this.all = false
616
- },
617
- // 对选择的列进行排序
618
- sortModelval () {
619
- let sortModel = []
620
- Object.keys(this.fields).forEach((key) => {
621
- if (this.modelval.includes(key)) {
622
- sortModel.push(key)
623
- }
624
- })
625
- this.modelval = sortModel
626
- },
627
- hidden(){
628
- this.criteriaShow = !this.criteriaShow
629
- },
630
- getRes(obj){
631
- //tag
632
- //tag)
633
- this.f_filialeids = this.$login.convertToIn(obj.resids);
634
- //tag
635
- }
636
- },
637
- computed: {
638
- getdefectType(){
639
- this.defectType=[]
640
- return [{label:'全部',value:''}, ... this.$appdata.getParam(this.defectLeave)]
641
- },
642
- defnames () {
643
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单状态')]
644
- },
645
- repairstypes () {
646
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('报修全部类型')]
647
- },
648
- serviceorders () {
649
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单类型')]
650
- },
651
- sources () {
652
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单来源')]
653
694
  },
654
- getfield(){
655
- let data = {}
656
- this.bodyData.forEach((value, index)=>{
657
- data[this.bodyData[index]] = this.headData[index]
658
- })
659
- return data
695
+ components: {
696
+ 'delay-reply': DelayReply
660
697
  }
661
- },
662
- components: {
663
- 'delay-reply': DelayReply
664
698
  }
665
- }
666
699
  </script>