telephone-clients 3.0.104-5 → 3.0.104-51
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.
- package/package.json +3 -3
- package/src/components/guoxin/Console.vue +42 -14
- package/src/components/guoxin/call.state.api.js +3 -1
- package/src/components/pc/RecordListLeft.vue +39 -10
- package/src/components/pc/RepairsWork.vue +30 -3
- package/src/components/pc/SiteSend.vue +36 -1
- package/src/components/pc/TelLossList.vue +18 -1
- package/src/components/pc/WorkList.vue +2 -1
- package/src/components/pc/WorkListAllNew.vue +16 -8
- package/src/components/sendsingle/onlinequeryuser.vue +1 -1
- package/src/components/telreport/TrafficClassificationReport.vue +10 -9
- package/src/components/temp/HandplanInfo.vue +5 -1
- package/src/components/temp/InstructInfo.vue +1 -1
- package/src/components/workorder/RepairPaperAndroid.vue +351 -0
- package/src/components/workorder/ServiceOnlineQuery.vue +306 -0
- package/src/filiale/hanzhong/telephone.js +1 -1
- package/src/filiale/jiaocheng/android/createQRcode.vue +204 -0
- package/src/filiale/jiaocheng/android/onlineBuyGas.vue +637 -0
- package/src/filiale/jiaocheng/telephone.js +8 -0
- package/src/filiale/jiaocheng/telephoneAndroid.js +15 -0
- package/src/filiale/qianneng/android/AppInstallationMaterial.vue +878 -845
- package/src/filiale/rizhao/pc/WorkListAllNew.vue +9 -5
- package/src/filiale/rizhao/telephone.js +1 -1
- package/src/filiale/shanxian/pc/TelFindUser.vue +310 -0
- package/src/filiale/shanxian/pc/WorkList.vue +2 -2
- package/src/filiale/shanxian/telephone.js +1 -0
- package/src/filiale/shexian/android/AddMyTask.vue +7 -0
- package/src/filiale/shexian/android/RepairFirstV.vue +5 -0
- package/src/filiale/shexian/android/RepairInfo.vue +1 -0
- package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +9 -9
- package/src/filiale/shexian/pc/WorkList.vue +4 -1
- package/src/filiale/shexian/pc/WorkListAllNew.vue +14 -1
- package/src/filiale/tongchuan/android/RepairDetails.vue +623 -0
- package/src/filiale/tongchuan/pc/AnalysisMain.vue +7 -7
- package/src/filiale/tongchuan/telephoneAndroid.js +1 -0
- package/src/filiale/wenxi/android/FaultAll.vue +710 -0
- package/src/filiale/wenxi/android/RepairOrderV.vue +1 -1
- package/src/filiale/wenxi/android/ZHihuanFirst.vue +3 -0
- package/src/filiale/wenxi/pc/DistributeWork.vue +1 -1
- package/src/filiale/wenxi/pc/RepairsWork.vue +143 -64
- package/src/filiale/wenxi/pc/TelAgentVoiceReport.vue +290 -0
- package/src/filiale/wenxi/pc/WorkListAll.vue +1 -1
- package/src/filiale/wenxi/telephone.js +2 -0
- package/src/filiale/wenxi/telephoneAndroid.js +2 -1
- package/src/filiale/wuhai/telephone.js +1 -1
- package/src/filiale/yuncheng/pc/TelFindUser.vue +14 -1
- package/src/filiale/yuncheng/pc/WorkList.vue +823 -0
- package/src/filiale/yuncheng/pc/WorkListAllNew.vue +722 -0
- package/src/filiale/yuncheng/telephone.js +3 -1
- package/src/telephone-android.js +6 -0
- package/src/telephone.js +1 -1
|
@@ -0,0 +1,823 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
8
|
+
<label class="font_normal_body" style="width: 40%">工单编号</label>
|
|
9
|
+
<input type="text" class="input_search" v-model="model.f_service_id" placeholder='工单编号'
|
|
10
|
+
condition="f_service_id like '%{}%'"
|
|
11
|
+
:size="model.f_service_id ? model.f_service_id.length : 6"
|
|
12
|
+
>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
15
|
+
<label class="font_normal_body" style="width: 40%">用户编号</label>
|
|
16
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='用户编号'
|
|
17
|
+
condition="f_userinfo_code like '%{}%'"
|
|
18
|
+
:size="model.f_userinfo_code ? model.f_userinfo_code.length : 6"
|
|
19
|
+
>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
22
|
+
<label class="font_normal_body" style="width: 40%">用户姓名</label>
|
|
23
|
+
<input type="text" class="input_search" v-model="model.f_user_name" placeholder='用户姓名'
|
|
24
|
+
condition="f_user_name like '%{}%'"
|
|
25
|
+
:size="model.f_user_name ? model.f_user_name.length : 6"
|
|
26
|
+
>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="form-group col-sm-6 button-range" style="margin-right: 10px">
|
|
29
|
+
|
|
30
|
+
<button class="button_search button_spacing" @click="search(),$dispatch('search')"
|
|
31
|
+
style="margin-right: 9px">查询
|
|
32
|
+
</button>
|
|
33
|
+
<button class="button_search button_spacing" @click="$parent.$parent.repairSendAll()"
|
|
34
|
+
style="margin-right: 9px">批量下发
|
|
35
|
+
</button>
|
|
36
|
+
|
|
37
|
+
<export-excel-tel
|
|
38
|
+
:data="$parent.$parent.searchData"
|
|
39
|
+
:field="$parent.$parent.excelHeaders"
|
|
40
|
+
sqlurl="rs/logic/telephoneExport" path-name="operatorService" template-name='工单导出'
|
|
41
|
+
:choose-col="true"></export-excel-tel>
|
|
42
|
+
<div style="float: right;" class="button_spacing"
|
|
43
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
44
|
+
@click="$parent.$parent.hidden()"></div>
|
|
45
|
+
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
49
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
50
|
+
<label class="font_normal_body" style="width: 40%">来电电话</label>
|
|
51
|
+
<input type="text" class="input_search" v-model="model.f_phone" placeholder='来电电话'
|
|
52
|
+
condition="f_phone like '%{}%'"
|
|
53
|
+
:size="model.f_phone ? model.f_phone.length : 6"
|
|
54
|
+
>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
57
|
+
<label class="font_normal_body" style="width: 40%">联系电话</label>
|
|
58
|
+
<input type="text" class="input_search" v-model="model.f_contact_phone" placeholder='联系电话'
|
|
59
|
+
condition="f_contact_phone = '{}'"
|
|
60
|
+
:size="model.f_contact_phone ? model.f_contact_phone.length : 6"
|
|
61
|
+
>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
64
|
+
<label class="font_normal_body" style="width: 40%">地  址</label>
|
|
65
|
+
<input type="text" class="input_search" v-model="model.f_address" placeholder='地址'
|
|
66
|
+
condition="f_address like '%{}%'"
|
|
67
|
+
:size="model.f_address ? model.f_address.length : 6"
|
|
68
|
+
>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
71
|
+
<label class="font_normal_body" style="width: 40%">受 理 人</label>
|
|
72
|
+
<input type="text" class="input_search" v-model="model.f_attendant" placeholder='受理人'
|
|
73
|
+
condition="f_attendant like '%{}%'"
|
|
74
|
+
:size="model.f_attendant ? model.f_attendant.length : 6"
|
|
75
|
+
>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
78
|
+
<label class="font_normal_body" style="width: 40%">接 单 人</label>
|
|
79
|
+
<input type="text" class="input_search" v-model="model.f_order_man" placeholder='接单人'
|
|
80
|
+
condition="f_order_man like '%{}%'"
|
|
81
|
+
:size="model.f_order_man ? model.f_order_man.length : 6"
|
|
82
|
+
>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
86
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
87
|
+
<label class=" font_normal_body" for="f_workorder_type" style="width: 40%">工单类型</label>
|
|
88
|
+
<v-select id="f_workorder_type" :value.sync="model.f_workorder_type" :value-single="true"
|
|
89
|
+
v-model="model.f_workorder_type"
|
|
90
|
+
:options='$parent.$parent.serviceorders' placeholder='工单类型'
|
|
91
|
+
condition="f_workorder_type like '%{}%'"
|
|
92
|
+
close-on-select>
|
|
93
|
+
</v-select>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<div class="col-sm-2 form-group form-input-group" style="float:right;width: 15%;margin-left: 20px">
|
|
97
|
+
<input type="radio" id="one" value="wait" style="float: left" v-model="$parent.$parent.picked">
|
|
98
|
+
<label for="one" style="margin-top: 10px;float: left">待办</label>
|
|
99
|
+
<input type="radio" id="two" value="done" style="float: left" v-model="$parent.$parent.picked">
|
|
100
|
+
<label for="two" style="margin-top: 10px;float: left">已办</label>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
</div>
|
|
107
|
+
</criteria>
|
|
108
|
+
<data-grid partial='list' v-ref:grid :model="model" class="list_area table_sy" :classname="'table tablenew table-bordered table-striped table-hover'">
|
|
109
|
+
<template partial='head'>
|
|
110
|
+
<tr>
|
|
111
|
+
<!--<th></th>-->
|
|
112
|
+
<!--<th>-->
|
|
113
|
+
<!--预约时间-->
|
|
114
|
+
<!--</th>-->
|
|
115
|
+
<th><nobr>选择</nobr></th>
|
|
116
|
+
<th>
|
|
117
|
+
工单类型
|
|
118
|
+
</th>
|
|
119
|
+
<!--<th>-->
|
|
120
|
+
<!--报修类型-->
|
|
121
|
+
<!--</th>-->
|
|
122
|
+
<th>
|
|
123
|
+
工单编号
|
|
124
|
+
</th>
|
|
125
|
+
<th>
|
|
126
|
+
派单时间
|
|
127
|
+
</th>
|
|
128
|
+
<th>
|
|
129
|
+
用户信息
|
|
130
|
+
</th>
|
|
131
|
+
<th>
|
|
132
|
+
工单状态
|
|
133
|
+
</th>
|
|
134
|
+
<th>
|
|
135
|
+
操作
|
|
136
|
+
</th>
|
|
137
|
+
</tr>
|
|
138
|
+
</template>
|
|
139
|
+
<template partial='body'>
|
|
140
|
+
<!--<td > <input type="checkbox" v-show="row.f_service_id.length>0"-->
|
|
141
|
+
<!--:checked="$parent.$parent.$parent.isInList(row)"-->
|
|
142
|
+
<!--@click=$parent.$parent.$parent.addInList(row)></td>-->
|
|
143
|
+
<!--<td>{{row.f_repair_date}}</td>-->
|
|
144
|
+
<td style="text-align: center;white-space:nowrap;"><input type="checkbox" v-if="['站点接单', '班组长派单'].indexOf(row.processins.activities[0].defname) > -1" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row)" /></td>
|
|
145
|
+
|
|
146
|
+
<td
|
|
147
|
+
:style="Math.floor((new Date().getTime() - new Date(row.f_created_date).getTime())/1000/60/60)>3&&row.processins.activities[0].defname=='站点接单'?'background-color: #f1eecb':''">
|
|
148
|
+
{{ row.f_workorder_type }}<span style="color: red" v-if="row.f_remindersign==='true'">(催单)</span>
|
|
149
|
+
<span style="color: red" v-if="row.f_state==='打回'">(打回)</span>
|
|
150
|
+
</td>
|
|
151
|
+
<!--<td>{{row.f_repairtype}}</td>-->
|
|
152
|
+
<td
|
|
153
|
+
:style="Math.floor((new Date().getTime() - new Date(row.f_created_date).getTime())/1000/60/60)>3&&row.processins.activities[0].defname=='站点接单'?'background-color: #f1eecb':''">
|
|
154
|
+
{{ row.f_service_id }}
|
|
155
|
+
</td>
|
|
156
|
+
<td
|
|
157
|
+
:style="Math.floor((new Date().getTime() - new Date(row.f_created_date).getTime())/1000/60/60)>3&&row.processins.activities[0].defname=='站点接单'?'background-color: #f1eecb':''">
|
|
158
|
+
{{ row.f_created_date }}
|
|
159
|
+
</td>
|
|
160
|
+
<td
|
|
161
|
+
:style="Math.floor((new Date().getTime() - new Date(row.f_created_date).getTime())/1000/60/60)>3&&row.processins.activities[0].defname=='站点接单'?'background-color: #f1eecb':''">
|
|
162
|
+
{{ row.f_user_name }} {{ row.f_address }} {{ row.f_contact_name }}
|
|
163
|
+
</td>
|
|
164
|
+
<td
|
|
165
|
+
:style="Math.floor((new Date().getTime() - new Date(row.f_created_date).getTime())/1000/60/60)>3&&row.processins.activities[0].defname=='站点接单'?'background-color: #f1eecb':''">
|
|
166
|
+
{{ row.processins.activities[0].defname }}
|
|
167
|
+
</td>
|
|
168
|
+
<td
|
|
169
|
+
:style="Math.floor((new Date().getTime() - new Date(row.f_created_date).getTime())/1000/60/60)>3&&row.processins.activities[0].defname=='站点接单'?'background-color: #f1eecb':''"
|
|
170
|
+
style="text-align: center;">
|
|
171
|
+
<div
|
|
172
|
+
v-show="row.processins.activities[0].defname === '班组长派单' && $parent.$parent.$parent.picked === 'wait' && row.f_workorder_type != '投诉单'">
|
|
173
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
174
|
+
@click.stop="$parent.$parent.$parent.proc(row, '结案')">结案
|
|
175
|
+
</button>
|
|
176
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
177
|
+
@click.stop="$parent.$parent.$parent.proc(row, '派单')">派站点
|
|
178
|
+
</button>
|
|
179
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
180
|
+
@click.stop="$parent.$parent.$parent.proc(row, '工单下发')">派人员
|
|
181
|
+
</button>
|
|
182
|
+
</div>
|
|
183
|
+
<div
|
|
184
|
+
v-show="row.processins.activities[0].defname === '站点接单' && $parent.$parent.$parent.picked === 'wait' && row.f_workorder_type != '投诉单'&&row.f_workorder_type != '咨询单'">
|
|
185
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
186
|
+
@click.stop="$parent.$parent.$parent.proc(row, '结案')">结案
|
|
187
|
+
</button>
|
|
188
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
189
|
+
@click.stop="$parent.$parent.$parent.proc(row, '工单打回')">打回
|
|
190
|
+
</button>
|
|
191
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
192
|
+
@click.stop="$parent.$parent.$parent.proc(row, '工单下发')">下发
|
|
193
|
+
</button>
|
|
194
|
+
<div v-if="row.f_single_path">
|
|
195
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
196
|
+
@click.stop="$parent.$parent.$parent.showpicture(row)">抢修图片
|
|
197
|
+
</button>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
<div v-show="row.processins.activities[0].defname === '延期审批' && row.f_workorder_type != '投诉单'">
|
|
201
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
202
|
+
@click.stop="$parent.$parent.$parent.proc(row, '延期审批')">
|
|
203
|
+
延期审批
|
|
204
|
+
</button>
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
<div
|
|
208
|
+
v-show="row.processins.activities[0].defname === '站点接单' && $parent.$parent.$parent.picked === 'wait' && row.f_workorder_type == '投诉单'">
|
|
209
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
210
|
+
@click.stop="$parent.$parent.$parent.complanReview(row, '投诉处理')">
|
|
211
|
+
投诉处理
|
|
212
|
+
</button>
|
|
213
|
+
</div>
|
|
214
|
+
|
|
215
|
+
<div
|
|
216
|
+
v-show="row.processins.activities[0].defname === '站点接单' && $parent.$parent.$parent.picked === 'wait' && row.f_workorder_type == '咨询单'">
|
|
217
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
218
|
+
@click.stop="$parent.$parent.$parent.seekworkReview(row, '咨询处理')">
|
|
219
|
+
咨询处理
|
|
220
|
+
</button>
|
|
221
|
+
</div>
|
|
222
|
+
|
|
223
|
+
<div v-show="$parent.$parent.$parent.canRecall(row)">
|
|
224
|
+
<button type="button" name="button" class="button_spacing button_search-2"
|
|
225
|
+
@click.stop="$parent.$parent.$parent.beiopen(row)">撤回
|
|
226
|
+
</button>
|
|
227
|
+
</div>
|
|
228
|
+
</td>
|
|
229
|
+
</template>
|
|
230
|
+
</data-grid>
|
|
231
|
+
</criteria-paged>
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
<div v-if="false" class="form-inline">
|
|
235
|
+
<group-resend :row="selectone" @cancel="editflag = null" @resend-success="selfSearch()"></group-resend>
|
|
236
|
+
</div>
|
|
237
|
+
<div v-if="false" class="form-inline">
|
|
238
|
+
<site-back :row="selectone" @success="selfSearch()" @cancel='editflag = null'></site-back>
|
|
239
|
+
</div>
|
|
240
|
+
<div v-if="false">
|
|
241
|
+
<site-send :row="selectone" :rowlist="serlist" @success="selfSearch()" @cancel="editflag = null"></site-send>
|
|
242
|
+
</div>
|
|
243
|
+
<div v-if="editflag==='延期审批'" class="form-inline">
|
|
244
|
+
<delay-reply :row="selectone" @success="selfSearch()" @cancel="editflag = null"></delay-reply>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
<modal :show.sync="editflag==='工单打回'||editflag==='工单下发'||editflag==='派单'" v-ref:modal backdrop="false">
|
|
248
|
+
<header slot="modal-header" class="modal-header">
|
|
249
|
+
{{ editflag === '工单打回' ? '工单打回' : editflag ==='工单下发'?'工单下发':'派单' }}
|
|
250
|
+
</header>
|
|
251
|
+
<article slot="modal-body" class="modal-body">
|
|
252
|
+
<div v-if="editflag==='工单打回'" class="form-inline">
|
|
253
|
+
<site-back :row="selectone" @success="selfSearch()" @cancel='editflag = null'></site-back>
|
|
254
|
+
</div>
|
|
255
|
+
<div v-if="editflag==='工单下发'">
|
|
256
|
+
<site-send :row="selectone" :search_source="user_source" :rowlist="serlist" @success="selfSearch()" @cancel="editflag = null"></site-send>
|
|
257
|
+
</div>
|
|
258
|
+
<div v-if="editflag==='派单'">
|
|
259
|
+
<group-resend :row="selectone" @cancel="editflag = null" @resend-success="selfSearch()"></group-resend>
|
|
260
|
+
</div>
|
|
261
|
+
</article>
|
|
262
|
+
<footer slot="modal-footer" class="modal-footer" v-show="false">
|
|
263
|
+
<button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
|
|
264
|
+
</footer>
|
|
265
|
+
</modal>
|
|
266
|
+
<modal :show.sync="imgshow" v-ref:modal backdrop="true">
|
|
267
|
+
<header slot="modal-header" class="modal-header">
|
|
268
|
+
在线抢修照片
|
|
269
|
+
</header>
|
|
270
|
+
<article slot="modal-body" class="modal-body">
|
|
271
|
+
<div class="from-group">
|
|
272
|
+
<img-self :src="imgfilename" width="500" height="500"></img-self>
|
|
273
|
+
</div>
|
|
274
|
+
</article>
|
|
275
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
276
|
+
<button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
|
|
277
|
+
</footer>
|
|
278
|
+
</modal>
|
|
279
|
+
<modal :show.sync="editflag==='结案'" v-ref:modalCase backdrop="false">
|
|
280
|
+
<header slot="modal-header" class="modal-header">
|
|
281
|
+
工单结案
|
|
282
|
+
</header>
|
|
283
|
+
<article slot="modal-body" class="modal-body">
|
|
284
|
+
<div class="col-sm-12 form-group">
|
|
285
|
+
<label class="control-label col-sm-2">结案备注</label>
|
|
286
|
+
<div class="col-sm-9">
|
|
287
|
+
<input class="form-control" type="text" v-model="f_caseremarks"/>
|
|
288
|
+
</div>
|
|
289
|
+
</div>
|
|
290
|
+
</article>
|
|
291
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
292
|
+
<button type="button" class="btn btn-success" @click='caseok'>确定</button>
|
|
293
|
+
<button type="button" class="btn btn-success" @click='caseclose'>关闭</button>
|
|
294
|
+
</footer>
|
|
295
|
+
</modal>
|
|
296
|
+
<modal v-if="beizhu" :show.sync="beizhu" v-ref:modal backdrop="false">
|
|
297
|
+
<header slot="modal-header" class="modal-header">
|
|
298
|
+
撤回备注
|
|
299
|
+
</header>
|
|
300
|
+
<article slot="modal-body" class="modal-body">
|
|
301
|
+
<div class="col-sm-12 form-group">
|
|
302
|
+
<label class="control-label col-sm-2">撤回备注</label>
|
|
303
|
+
<div class="col-sm-9">
|
|
304
|
+
<input class="form-control" type="text" v-model="model.f_remarks" :value="model.f_remarks"/>
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
</article>
|
|
308
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
309
|
+
<button type="button" class="btn btn-success" @click='beizhuok'>确定</button>
|
|
310
|
+
<button type="button" class="btn btn-success" @click='beizhuclose'>关闭</button>
|
|
311
|
+
</footer>
|
|
312
|
+
</modal>
|
|
313
|
+
<!-- 投诉单处理弹窗 -->
|
|
314
|
+
<modal :show.sync="isComplanReview" v-ref:complanModal backdrop="false">
|
|
315
|
+
<header slot="modal-header" class="modal-header">
|
|
316
|
+
投诉审核
|
|
317
|
+
</header>
|
|
318
|
+
<article slot="modal-body" class="modal-body">
|
|
319
|
+
<div class="select-overspread form-horizontal auto workOrderInfo">
|
|
320
|
+
<div class="row">
|
|
321
|
+
<div class="col-sm-12 form-group form-input-group" >
|
|
322
|
+
<label class="font_normal_body" style="width: 10%">工单编号</label>
|
|
323
|
+
<h5 style="padding: 0px">{{ showModalComplan.f_service_id }}</h5>
|
|
324
|
+
</div>
|
|
325
|
+
<div class="col-sm-12 form-input-group" >
|
|
326
|
+
<label class="font_normal_body" style="width: 10%">投诉内容</label>
|
|
327
|
+
<textarea name="name" rows="3" v-model="showModalComplan.f_content"
|
|
328
|
+
class="form-control ver-textarea" id="f_content" name="f_content" readonly="readonly"></textarea>
|
|
329
|
+
</div>
|
|
330
|
+
<div class="col-sm-4 form-group form-input-group" >
|
|
331
|
+
<label class="font_normal_body" style="width: 30%">来电电话</label>
|
|
332
|
+
<input type="text" name="" v-model='showModalComplan.f_phone'
|
|
333
|
+
class="form-control" readonly="readonly">
|
|
334
|
+
</div>
|
|
335
|
+
<div class="col-sm-4 form-group form-input-group" >
|
|
336
|
+
<label class="font_normal_body" style="width: 30%">联系人</label>
|
|
337
|
+
<input type="text" name="" v-model='showModalComplan.f_user_name'
|
|
338
|
+
class="form-control" readonly="readonly">
|
|
339
|
+
</div>
|
|
340
|
+
<div class="col-sm-4 form-group form-input-group" >
|
|
341
|
+
<label class="font_normal_body" style="width: 30%">联系电话</label>
|
|
342
|
+
<input type="text" name="" v-model='showModalComplan.f_contact_phone'
|
|
343
|
+
class="form-control" readonly="readonly">
|
|
344
|
+
</div>
|
|
345
|
+
|
|
346
|
+
<div class="col-sm-12 form-input-group" >
|
|
347
|
+
<label class="font_normal_body" style="width: 10%">备注</label>
|
|
348
|
+
<textarea name="name" rows="3" v-model="showModalComplan.f_remarks"
|
|
349
|
+
class="form-control ver-textarea" readonly="readonly"></textarea>
|
|
350
|
+
</div>
|
|
351
|
+
<div class="col-sm-12 form-input-group">
|
|
352
|
+
<label class="font_normal_body" style="width: 10%">处理结果</label>
|
|
353
|
+
<textarea name="name" rows="4" v-model="f_complaint_results"
|
|
354
|
+
class="form-control ver-textarea" ></textarea>
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
357
|
+
</div>
|
|
358
|
+
</article>
|
|
359
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
360
|
+
<button type="button" name="button"
|
|
361
|
+
class="button_search button_spacing" @click='inputCompainInfo()'>提交</button>
|
|
362
|
+
<button type="button" name="button" style="background-color: #5ac0d9;border-radius: 4px;"
|
|
363
|
+
class="button_spacing button_search" @click='isComplanReview=false;showModalComplan = {}'>取消</button>
|
|
364
|
+
</footer>
|
|
365
|
+
</modal>
|
|
366
|
+
<!-- 咨询处理弹窗 -->
|
|
367
|
+
<modal :show.sync="isSeekWork" v-ref:seekWorkModel backdrop="false">
|
|
368
|
+
<header slot="modal-header" class="modal-header">
|
|
369
|
+
咨询审核
|
|
370
|
+
</header>
|
|
371
|
+
<article slot="modal-body" class="modal-body">
|
|
372
|
+
<div class="select-overspread form-horizontal auto workOrderInfo">
|
|
373
|
+
<div class="row">
|
|
374
|
+
<div class="col-sm-12 form-group form-input-group" >
|
|
375
|
+
<label class="font_normal_body" style="width: 10%">工单编号</label>
|
|
376
|
+
<h5 style="padding: 0px">{{ showModalSeekWork.f_service_id }}</h5>
|
|
377
|
+
</div>
|
|
378
|
+
<div class="col-sm-12 form-input-group" >
|
|
379
|
+
<label class="font_normal_body" style="width: 10%">咨询内容</label>
|
|
380
|
+
<textarea name="name" rows="3" v-model="showModalSeekWork.f_content"
|
|
381
|
+
class="form-control ver-textarea" id="f_content1" name="f_content" readonly="readonly"></textarea>
|
|
382
|
+
</div>
|
|
383
|
+
<div class="col-sm-4 form-group form-input-group" >
|
|
384
|
+
<label class="font_normal_body" style="width: 30%">来电电话</label>
|
|
385
|
+
<input type="text" name="" v-model='showModalSeekWork.f_phone'
|
|
386
|
+
class="form-control" readonly="readonly">
|
|
387
|
+
</div>
|
|
388
|
+
<div class="col-sm-4 form-group form-input-group" >
|
|
389
|
+
<label class="font_normal_body" style="width: 30%">联系人</label>
|
|
390
|
+
<input type="text" name="" v-model='showModalSeekWork.f_user_name'
|
|
391
|
+
class="form-control" readonly="readonly">
|
|
392
|
+
</div>
|
|
393
|
+
<div class="col-sm-4 form-group form-input-group" >
|
|
394
|
+
<label class="font_normal_body" style="width: 30%">联系电话</label>
|
|
395
|
+
<input type="text" name="" v-model='showModalSeekWork.f_contact_phone'
|
|
396
|
+
class="form-control" readonly="readonly">
|
|
397
|
+
</div>
|
|
398
|
+
|
|
399
|
+
<div class="col-sm-12 form-input-group" >
|
|
400
|
+
<label class="font_normal_body" style="width: 10%">备注</label>
|
|
401
|
+
<textarea name="name" rows="3" v-model="showModalSeekWork.f_remarks"
|
|
402
|
+
class="form-control ver-textarea" readonly="readonly"></textarea>
|
|
403
|
+
</div>
|
|
404
|
+
<div class="col-sm-12 form-input-group">
|
|
405
|
+
<label class="font_normal_body" style="width: 10%">处理结果</label>
|
|
406
|
+
<textarea name="name" rows="4" v-model="f_complaint_seekwork_results"
|
|
407
|
+
class="form-control ver-textarea" ></textarea>
|
|
408
|
+
</div>
|
|
409
|
+
</div>
|
|
410
|
+
</div>
|
|
411
|
+
</article>
|
|
412
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
413
|
+
|
|
414
|
+
<button type="button" name="button"
|
|
415
|
+
class="button_search button_spacing" @click='inputSeekWorkInfo()'>提交</button>
|
|
416
|
+
<button type="button" name="button" style="background-color: #5ac0d9;border-radius: 4px;"
|
|
417
|
+
class="button_spacing button_search" @click='isSeekWork=false;showModalSeekWork = {}'>取消</button>
|
|
418
|
+
</footer>
|
|
419
|
+
</modal>
|
|
420
|
+
</template>
|
|
421
|
+
|
|
422
|
+
<script>
|
|
423
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
424
|
+
import DelayReply from '../../../components/pc/DelayReply'
|
|
425
|
+
import * as Util from '../../../components/Util'
|
|
426
|
+
|
|
427
|
+
export default {
|
|
428
|
+
title: '工单列表',
|
|
429
|
+
data () {
|
|
430
|
+
return {
|
|
431
|
+
criteriaShow: false,
|
|
432
|
+
f_complaint_results: '',
|
|
433
|
+
f_caseremarks:'',
|
|
434
|
+
serlist: [],
|
|
435
|
+
checkes:[],
|
|
436
|
+
user_source:'',
|
|
437
|
+
beizhu:false,
|
|
438
|
+
remakes:null,
|
|
439
|
+
editflag: null,
|
|
440
|
+
selectone: '',
|
|
441
|
+
model: new PagedList('rs/path/operatorService', 20),
|
|
442
|
+
row: null,
|
|
443
|
+
orderMan: '',
|
|
444
|
+
checkAll:false,
|
|
445
|
+
msgs: [],
|
|
446
|
+
// repairstypes : [{label: '全部', value: ''}, ...this.$appdata.getParam('报修全部类型')],
|
|
447
|
+
service: Object,
|
|
448
|
+
pendingCount: 0,
|
|
449
|
+
imgfilename: '',
|
|
450
|
+
select: {
|
|
451
|
+
defname: ''
|
|
452
|
+
},
|
|
453
|
+
rowlist:[],
|
|
454
|
+
// 待办/已办选择
|
|
455
|
+
picked: 'wait',
|
|
456
|
+
imgshow: false,
|
|
457
|
+
isComplanReview: false,
|
|
458
|
+
// defname:this.$appdata.getParam('工单状态'),
|
|
459
|
+
searchData: {
|
|
460
|
+
condition: {
|
|
461
|
+
condition: '1=1',
|
|
462
|
+
sign: '1=1'
|
|
463
|
+
},
|
|
464
|
+
userid: this.$login.f.name
|
|
465
|
+
},
|
|
466
|
+
excelHeaders: {
|
|
467
|
+
'f_workorder_type': '工单类型',
|
|
468
|
+
'f_service_id': '工单编号',
|
|
469
|
+
'f_created_date': '派单时间',
|
|
470
|
+
'f_user_name': '用户姓名',
|
|
471
|
+
'f_address': '用户地址',
|
|
472
|
+
'f_contact_name': '联系人'
|
|
473
|
+
},
|
|
474
|
+
//投诉单在modal框显示的信息
|
|
475
|
+
showModalComplan: {
|
|
476
|
+
serviceacitivity: [{f_complaint_results: ''}]
|
|
477
|
+
},
|
|
478
|
+
isSeekWork: false,
|
|
479
|
+
/*咨询单信息*/
|
|
480
|
+
showModalSeekWork: {
|
|
481
|
+
serviceacitivity: [{f_complaint_results: ''}]
|
|
482
|
+
},
|
|
483
|
+
/*咨询单结果*/
|
|
484
|
+
f_complaint_seekwork_results: ''
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
},
|
|
488
|
+
props: {
|
|
489
|
+
user: {
|
|
490
|
+
type: Object
|
|
491
|
+
},
|
|
492
|
+
maintenance: [],
|
|
493
|
+
// serviceId : [String, Number]
|
|
494
|
+
serviceId: '',
|
|
495
|
+
// 工单状态 工单位置
|
|
496
|
+
defname: {
|
|
497
|
+
type: String
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
ready () {
|
|
501
|
+
// this.getEmp()
|
|
502
|
+
let messageTime = 60
|
|
503
|
+
const time = this.$appdata.getSingleValue("站点提醒时间")
|
|
504
|
+
if(time && time >60){
|
|
505
|
+
messageTime = time
|
|
506
|
+
}
|
|
507
|
+
// this.user_source = `this.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($维修员$)!=-1)`
|
|
508
|
+
setInterval(()=>{
|
|
509
|
+
const data = {
|
|
510
|
+
condition:{
|
|
511
|
+
condition:'1=1',
|
|
512
|
+
sign:'1=1'
|
|
513
|
+
},
|
|
514
|
+
userid:this.$login.f.name
|
|
515
|
+
}
|
|
516
|
+
new HttpResetClass().load('post','rs/path/operatorService',{data:data},{resolveMsg:null,rejectMsg:null}).then(res=>{
|
|
517
|
+
if(res.data && res.data.length>0){
|
|
518
|
+
this.$showMessage("您有"+res.data.length+"条工单待处理,请及时处理")
|
|
519
|
+
}
|
|
520
|
+
})
|
|
521
|
+
},messageTime*1000)
|
|
522
|
+
this.selfSearch().then(() => {
|
|
523
|
+
this.$emit('ready')
|
|
524
|
+
}).catch((error) => {
|
|
525
|
+
this.$emit('error', error)
|
|
526
|
+
})
|
|
527
|
+
// 开启轮询查询是否由自己的工单
|
|
528
|
+
// this.pollQuery()
|
|
529
|
+
},
|
|
530
|
+
watch: {
|
|
531
|
+
'serviceId' () {
|
|
532
|
+
this.selfSearch()
|
|
533
|
+
},
|
|
534
|
+
// 待办/已办选择变化后,根据选择内容,重新设置path查询路径,进行查询
|
|
535
|
+
'picked' () {
|
|
536
|
+
this.serlist = []
|
|
537
|
+
if (this.picked) {
|
|
538
|
+
if (this.picked === 'wait') {
|
|
539
|
+
this.model.url = 'rs/path/operatorService'
|
|
540
|
+
} else if (this.picked === 'done') {
|
|
541
|
+
this.model.url = 'rs/path/doneService'
|
|
542
|
+
}
|
|
543
|
+
this.model.rows = []
|
|
544
|
+
this.selfSearch()
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
methods: {
|
|
549
|
+
// 结案确认
|
|
550
|
+
caseok(){
|
|
551
|
+
// 工单结案操作
|
|
552
|
+
let data = {model: this.selectone, loginUser: {name: this.$login.f.name, ename: this.$login.f.ename},f_caseremarks:this.f_caseremarks}
|
|
553
|
+
this.$resetpost(`rs/logic/serviceCase`, data).then(() => {
|
|
554
|
+
this.f_caseremarks = ''
|
|
555
|
+
// 刷新界面
|
|
556
|
+
this.selfSearch()
|
|
557
|
+
})
|
|
558
|
+
},
|
|
559
|
+
// 结案返回
|
|
560
|
+
caseclose(){
|
|
561
|
+
this.f_caseremarks = ''
|
|
562
|
+
this.editflag = null
|
|
563
|
+
},
|
|
564
|
+
repairSendAll () {
|
|
565
|
+
//tag
|
|
566
|
+
this.selectone={
|
|
567
|
+
f_workorder_type: '维修单'
|
|
568
|
+
}
|
|
569
|
+
if (this.checkAll){
|
|
570
|
+
//如果全选,根据条件去查询数据
|
|
571
|
+
let data={
|
|
572
|
+
condition:this.model.params.condition,
|
|
573
|
+
userid:this.$login.f.name
|
|
574
|
+
}
|
|
575
|
+
new HttpResetClass().load('post','rs/path/operatorService',{data:data},{resolveMsg:null,rejectMsg:null}).then(res=>{
|
|
576
|
+
const results=res.data
|
|
577
|
+
this.rowlist=results.filter(result=>{
|
|
578
|
+
//tag)
|
|
579
|
+
console.log("999",result,JSON.stringify(result).indexOf('站点接单')!=-1)
|
|
580
|
+
return JSON.stringify(result).indexOf('站点接单')!=-1
|
|
581
|
+
})
|
|
582
|
+
console.log(this.rowlist)
|
|
583
|
+
//tag
|
|
584
|
+
this.serlist=JSON.parse(JSON.stringify(this.rowlist))
|
|
585
|
+
this.editflag ='工单下发'
|
|
586
|
+
})
|
|
587
|
+
|
|
588
|
+
}else{
|
|
589
|
+
if (this.rowlist.length===0){
|
|
590
|
+
this.$showMessage('请选择工单')
|
|
591
|
+
return
|
|
592
|
+
}
|
|
593
|
+
//不全选,去取数据
|
|
594
|
+
this.serlist=JSON.parse(JSON.stringify(this.rowlist))
|
|
595
|
+
console.log("752752",this.rowlist)
|
|
596
|
+
this.editflag ='工单下发'
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
isChecked(v) {
|
|
600
|
+
// 如果全选,不在的按选中算,否则,在的按选中算
|
|
601
|
+
if (this.checkAll) {
|
|
602
|
+
return this.checkes.indexOf(v) == -1
|
|
603
|
+
} else {
|
|
604
|
+
return this.checkes.indexOf(v) != -1
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
|
|
608
|
+
setCheckes(row) {
|
|
609
|
+
if (!this.checkAll){
|
|
610
|
+
let index=this.checkes.indexOf(row.id)
|
|
611
|
+
if(index<0){
|
|
612
|
+
this.checkes.push(row.id)
|
|
613
|
+
this.rowlist.push(row)
|
|
614
|
+
}else{
|
|
615
|
+
this.checkes.splice(index,1)
|
|
616
|
+
this.rowlist.splice(this.rowlist.findIndex(res => {
|
|
617
|
+
return res.id === row.id
|
|
618
|
+
}) , 1)
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
hidden () {
|
|
623
|
+
this.criteriaShow = !this.criteriaShow
|
|
624
|
+
},
|
|
625
|
+
// 提交投诉单内容
|
|
626
|
+
inputCompainInfo () {
|
|
627
|
+
if (this.f_complaint_results != '') {
|
|
628
|
+
this.showModalComplan.serviceacitivity[0].f_complaint_results = this.f_complaint_results
|
|
629
|
+
this.$resetpost('rs/logic/saveComplaintResult', {
|
|
630
|
+
showModalComplan: this.showModalComplan,
|
|
631
|
+
loginUser: {name: this.$login.f.name, ename: this.$login.f.ename, loginid: this.$login.f.id}
|
|
632
|
+
}).then((res) => {
|
|
633
|
+
this.isComplanReview = false
|
|
634
|
+
this.showModalComplan = {}
|
|
635
|
+
this.$refs.paged.$refs.criteria.search()
|
|
636
|
+
})
|
|
637
|
+
} else {
|
|
638
|
+
//tag
|
|
639
|
+
return this.$showAlert('请填写投诉单结果!', 'warning', 2000)
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
},
|
|
643
|
+
//提交咨询单内容
|
|
644
|
+
inputSeekWorkInfo () {
|
|
645
|
+
if (this.f_complaint_seekwork_results != '') {
|
|
646
|
+
this.showModalSeekWork.serviceacitivity[0].f_complaint_results = this.f_complaint_seekwork_results
|
|
647
|
+
this.$resetpost('rs/logic/saveConsultResult', {
|
|
648
|
+
model: this.showModalSeekWork,
|
|
649
|
+
loginUser: {name: this.$login.f.name, ename: this.$login.f.ename, loginid: this.$login.f.id}
|
|
650
|
+
}).then((res) => {
|
|
651
|
+
this.isSeekWork = false
|
|
652
|
+
this.showModalSeekWork = {}
|
|
653
|
+
this.f_complaint_seekwork_results = ''
|
|
654
|
+
this.$refs.paged.$refs.criteria.search()
|
|
655
|
+
})
|
|
656
|
+
} else {
|
|
657
|
+
//tag
|
|
658
|
+
return this.$showAlert('请填写咨询单结果!', 'warning', 2000)
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
beizhuclose(){
|
|
662
|
+
this.beizhu =false
|
|
663
|
+
},
|
|
664
|
+
beiopen(row){
|
|
665
|
+
this.beizhu =true
|
|
666
|
+
|
|
667
|
+
console.log('打印row',row)
|
|
668
|
+
this.remakes=row
|
|
669
|
+
},
|
|
670
|
+
beizhuok(){
|
|
671
|
+
this.remakes.f_chehui_remark=this.model.f_remarks
|
|
672
|
+
console.log('打印撤回备注', this.remakes)
|
|
673
|
+
this.post(this.remakes, 'TelWorkeCancle')
|
|
674
|
+
this.beizhuclose()
|
|
675
|
+
this.model.f_remarks = null
|
|
676
|
+
},
|
|
677
|
+
imgclose () {
|
|
678
|
+
this.imgshow = false
|
|
679
|
+
},
|
|
680
|
+
//检查是否为同一类型
|
|
681
|
+
addInList (val) {
|
|
682
|
+
if (!this.checkInList(val)) {
|
|
683
|
+
this.serlist.push(val)
|
|
684
|
+
//tag
|
|
685
|
+
} else {
|
|
686
|
+
var copyserlist = []
|
|
687
|
+
for (var index in this.serlist) {
|
|
688
|
+
if (this.serlist[index].f_service_id != val.f_service_id) {
|
|
689
|
+
copyserlist.push(this.serlist[index])
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
this.serlist = copyserlist
|
|
693
|
+
//tag
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
checkInList (val) {
|
|
697
|
+
var checkstr = false
|
|
698
|
+
this.serlist.forEach((item) => {
|
|
699
|
+
if (item.f_service_id == val.f_service_id) {
|
|
700
|
+
checkstr = true
|
|
701
|
+
}
|
|
702
|
+
})
|
|
703
|
+
return checkstr
|
|
704
|
+
},
|
|
705
|
+
isInList (val) {
|
|
706
|
+
var checkstr = false
|
|
707
|
+
this.serlist.forEach((item) => {
|
|
708
|
+
if (item.f_service_id == val.f_service_id) {
|
|
709
|
+
checkstr = true
|
|
710
|
+
}
|
|
711
|
+
})
|
|
712
|
+
return checkstr
|
|
713
|
+
},
|
|
714
|
+
proc (selectone, type) {
|
|
715
|
+
this.editflag = type
|
|
716
|
+
this.selectone = Object.assign({},selectone)
|
|
717
|
+
},
|
|
718
|
+
complanReview (itemVal, type) {
|
|
719
|
+
//tag
|
|
720
|
+
this.showModalComplan = itemVal
|
|
721
|
+
this.showModalComplan.serviceacitivity = [
|
|
722
|
+
{f_service_acitivity_type: '投诉单', f_result_status: '已完成'}]
|
|
723
|
+
this.showModalComplan.id_back = this.showModalComplan.id
|
|
724
|
+
this.isComplanReview = true
|
|
725
|
+
},
|
|
726
|
+
seekworkReview (itemVal, type) {
|
|
727
|
+
//tag
|
|
728
|
+
this.showModalSeekWork = itemVal
|
|
729
|
+
this.showModalSeekWork.serviceacitivity = [
|
|
730
|
+
{f_service_acitivity_type: '投诉单', f_result_status: '已完成'}]
|
|
731
|
+
this.showModalSeekWork.id_back = this.showModalSeekWork.id
|
|
732
|
+
this.isSeekWork = true
|
|
733
|
+
},
|
|
734
|
+
showpicture (val) {
|
|
735
|
+
//tag
|
|
736
|
+
//tag)
|
|
737
|
+
this.imgshow = true
|
|
738
|
+
this.imgfilename = 'rs/image/file/' + val.f_single_path
|
|
739
|
+
},
|
|
740
|
+
search (args) {
|
|
741
|
+
console.log("996997899",this.defname)
|
|
742
|
+
this.serlist = []
|
|
743
|
+
//tag
|
|
744
|
+
let data = {}
|
|
745
|
+
data.condition = this.$refs.paged.$refs.criteria.condition ? this.$refs.paged.$refs.criteria.condition : '1=1'
|
|
746
|
+
if(this.defname!='班组长派单' && this.picked === 'wait'){
|
|
747
|
+
data.condition += ` and processins.activities[ state='开始活动' and (defname in('站点接单'))].count(*) > 0`
|
|
748
|
+
}else{
|
|
749
|
+
data.condition += ' and 1=1'
|
|
750
|
+
}
|
|
751
|
+
data.sign = this.$refs.paged.$refs.criteria.select ? `defname = '${this.$refs.paged.$refs.criteria.select.defname[0]}'` : '1=1'
|
|
752
|
+
this.searchData.condition = data
|
|
753
|
+
this.searchData = Object.assign(this.searchData, args.model)
|
|
754
|
+
return this.model.search(data, args.model)
|
|
755
|
+
},
|
|
756
|
+
selfSearch () {
|
|
757
|
+
// 取消编辑状态
|
|
758
|
+
console.log("997",this.defname)
|
|
759
|
+
this.serlist = []
|
|
760
|
+
this.editflag = null
|
|
761
|
+
|
|
762
|
+
this.model.paramSource = {
|
|
763
|
+
userid: '\'' + this.$login.f.name + '\''
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
let data = {}
|
|
767
|
+
data.condition = this.$refs.paged.$refs.criteria.condition ? this.$refs.paged.$refs.criteria.condition : '1=1'
|
|
768
|
+
if(this.defname!='班组长派单' && this.picked === 'wait'){
|
|
769
|
+
data.condition += ` and processins.activities[ state='开始活动' and (defname in('站点接单'))].count(*) > 0`
|
|
770
|
+
}else{
|
|
771
|
+
data.condition += ' and 1=1'
|
|
772
|
+
}
|
|
773
|
+
data.sign = this.$refs.paged.$refs.criteria.select ? `defname = '${this.$refs.paged.$refs.criteria.select.defname[0]}'` : '1=1'
|
|
774
|
+
this.searchData.condition = data
|
|
775
|
+
return this.model.search(this.searchData.condition)
|
|
776
|
+
},
|
|
777
|
+
// 发送数据给业务逻辑,并刷新界面
|
|
778
|
+
post (row, logic) {
|
|
779
|
+
// 调取工单撤回操作
|
|
780
|
+
let data = {model: row, loginUser: {name: this.$login.f.name, ename: this.$login.f.ename}}
|
|
781
|
+
this.$resetpost(`rs/logic/${logic}`, data).then(() => {
|
|
782
|
+
// 刷新界面
|
|
783
|
+
this.selfSearch()
|
|
784
|
+
})
|
|
785
|
+
},
|
|
786
|
+
// 是否可以撤回
|
|
787
|
+
canRecall (row) {
|
|
788
|
+
let result =
|
|
789
|
+
this.picked === 'done' &&
|
|
790
|
+
row.processins.activities[0].sender === this.$login.f.name&&row.processins.activities[0].defname!='维修完成'&&row.processins.activities[0].defname!='置换完成'
|
|
791
|
+
return result
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
computed: {
|
|
795
|
+
serviceorders () {
|
|
796
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单类型')]
|
|
797
|
+
},
|
|
798
|
+
repairstypes () {
|
|
799
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('报修全部类型')]
|
|
800
|
+
},
|
|
801
|
+
// defname () {
|
|
802
|
+
// return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单状态')]
|
|
803
|
+
// }
|
|
804
|
+
|
|
805
|
+
},
|
|
806
|
+
components: {
|
|
807
|
+
'delay-reply': DelayReply
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
</script>
|
|
811
|
+
<style scoped lang="less">
|
|
812
|
+
.workOrderInfo{
|
|
813
|
+
.row {
|
|
814
|
+
div {
|
|
815
|
+
margin-top: 10px;
|
|
816
|
+
[readonly] {
|
|
817
|
+
background-color:#eeeeee;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
</style>
|
|
823
|
+
|