telephone-clients 3.0.103 → 3.0.104-11

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