telephone-clients 3.0.103-97 → 3.0.103-99
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 +1 -1
- package/src/components/pc/RepairsWork.vue +3 -2
- package/src/components/pc/WorkListAll.vue +630 -630
- package/src/components/temp/HandplanInfo.vue +78 -78
- package/src/components/temp/InfoTable.vue +134 -134
- package/src/components/workorder/RepairDetails.vue +613 -613
- package/src/filiale/shexian/pc/QueryVisitHistory.vue +237 -0
- package/src/filiale/shexian/telephone.js +19 -18
- package/src/filiale/wenxi/android/FailureShow.vue +61 -61
- package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1053 -1053
- package/src/filiale/wenxi/android/RepairInfo.vue +252 -252
- package/src/filiale/wenxi/android/RepairOrderV.vue +805 -805
- package/src/filiale/wenxi/android/RepairUserInfo.vue +532 -532
- package/src/filiale/wenxi/pc/GasWork.vue +747 -747
- package/src/filiale/wenxi/pc/MetereadInfo.vue +82 -82
- package/src/filiale/wenxi/pc/TelFindUser.vue +306 -306
- package/src/filiale/wenxi/telephoneAndroid.js +19 -19
- package/src/filiale/zhongsheng/android/FaultAll.vue +741 -741
- package/src/filiale/zhongsheng/android/RepairUserInfo.vue +559 -559
- package/src/main.js +1 -1
|
@@ -1,630 +1,630 @@
|
|
|
1
|
-
<template >
|
|
2
|
-
<div id="stand-work-list" class="flex bg-white p-10">
|
|
3
|
-
<div class="span">
|
|
4
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
-
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
|
|
6
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
-
<div class="row">
|
|
8
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
9
|
-
<label class="font_normal_body" style="width: 40%">工单编号</label>
|
|
10
|
-
<input type="text" class="input_search" v-model="model.f_service_id" placeholder='工单编号'
|
|
11
|
-
condition="f_service_id like '%{}%'"
|
|
12
|
-
:size="model.f_service_id ? model.f_service_id.length : 6">
|
|
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
|
-
<v-select :value.sync="model.f_workorder_type" :value-single="true" v-model="model.f_workorder_type"
|
|
17
|
-
:options='$parent.$parent.serviceorders' placeholder='工单类型'
|
|
18
|
-
condition="f_workorder_type like '%{}%'"
|
|
19
|
-
close-on-select>
|
|
20
|
-
</v-select>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
|
23
|
-
<label class="font_normal_body" style="width: 40%">客户姓名</label>
|
|
24
|
-
<input type="text" class="input_search" v-model="model.f_user_name" placeholder='客户姓名'
|
|
25
|
-
condition="f_user_name like '%{}%'"
|
|
26
|
-
:size="model.f_user_name ? model.f_user_name.length : 6">
|
|
27
|
-
</div>
|
|
28
|
-
<div class="form-group col-sm-6 button-range" style="margin-right: 10px">
|
|
29
|
-
<button class="button_search button_spacing" style="margin-right: 9px" @click="search(),$dispatch('search')">查询</button>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<export-excel-tel
|
|
33
|
-
:data="$parent.$parent.searchData"
|
|
34
|
-
:field="$parent.$parent.excelHeaders"
|
|
35
|
-
sqlurl="rs/logic/telephoneExport" path-name="serviceSummery" template-name='工单详情导出'
|
|
36
|
-
:choose-col="true">
|
|
37
|
-
</export-excel-tel>
|
|
38
|
-
|
|
39
|
-
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
40
|
-
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
44
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
45
|
-
<label class="font_normal_body" style="width: 40%">客户编号</label>
|
|
46
|
-
<input type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
47
|
-
condition="f_userinfo_code like '%{}%'"
|
|
48
|
-
:size="model.f_userinfo_code ? model.f_userinfo_code.length : 6">
|
|
49
|
-
</div>
|
|
50
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
51
|
-
<label class="font_normal_body" style="width: 40%">派单时间</label>
|
|
52
|
-
<datepicker placeholder="起始派单时间"
|
|
53
|
-
:value.sync="model.f_created_date"
|
|
54
|
-
v-model="model.f_created_date"
|
|
55
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
56
|
-
condition="f_created_date > '{}'"
|
|
57
|
-
></datepicker>
|
|
58
|
-
</div>
|
|
59
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
60
|
-
<label class="font_normal_body" style="width: 40%">派单时间</label>
|
|
61
|
-
<datepicker placeholder="终止派单时间"
|
|
62
|
-
:value.sync="model.f_created_enddate"
|
|
63
|
-
v-model="model.f_created_enddate"
|
|
64
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
65
|
-
condition="f_created_date < '{}'"
|
|
66
|
-
></datepicker>
|
|
67
|
-
</div>
|
|
68
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
69
|
-
<label class="font_normal_body" style="width: 40%">来电电话</label>
|
|
70
|
-
<input type="text" class="input_search" v-model="model.f_phone" placeholder='来电电话'
|
|
71
|
-
condition="f_phone like '%{}%'"
|
|
72
|
-
:size="model.f_phone ? model.f_phone.length : 6">
|
|
73
|
-
</div>
|
|
74
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
75
|
-
<label class="font_normal_body" style="width: 40%">联系电话</label>
|
|
76
|
-
<input type="text" class="input_search" v-model="model.f_contact_phone" placeholder='联系电话'
|
|
77
|
-
condition="f_contact_phone like '%{}%'"
|
|
78
|
-
:size="model.f_contact_phone ? model.f_contact_phone.length : 6">
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
<!--<div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
|
|
82
|
-
<!--<label class="font_normal_body">报修类型</label>-->
|
|
83
|
-
<!--<v-select :value.sync="model.f_repairtype" :value-single="true" v-model="model.f_repairtype"-->
|
|
84
|
-
<!--:options='$parent.$parent.repairstypes' placeholder='报修类型'-->
|
|
85
|
-
<!--condition="f_repairtype like '%{}%'"-->
|
|
86
|
-
<!--close-on-select>-->
|
|
87
|
-
<!--</v-select>-->
|
|
88
|
-
<!--</div>-->
|
|
89
|
-
|
|
90
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
91
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
92
|
-
<label class="font_normal_body" style="width: 40%">地  址</label>
|
|
93
|
-
<input type="text" class="input_search" v-model="model.f_address" placeholder='地址'
|
|
94
|
-
condition="f_address like '%{}%'"
|
|
95
|
-
:size="model.f_address ? model.f_address.length : 4">
|
|
96
|
-
</div>
|
|
97
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
98
|
-
<label class="font_normal_body" style="width: 40%">接单站点</label>
|
|
99
|
-
<input type="text" class="input_search" v-model="model.f_outlets" placeholder='接单站点'
|
|
100
|
-
condition="f_outlets like '%{}%'"
|
|
101
|
-
:size="model.f_outlets ? model.f_outlets.length : 6">
|
|
102
|
-
</div>
|
|
103
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
104
|
-
<label class="font_normal_body" style="width: 40%">完成时间</label>
|
|
105
|
-
<datepicker placeholder="维修完成时间"
|
|
106
|
-
:value.sync="model.f_date"
|
|
107
|
-
v-model="model.f_date"
|
|
108
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
109
|
-
></datepicker>
|
|
110
|
-
</div>
|
|
111
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
112
|
-
<label class="font_normal_body" style="width: 40%">完成时间</label>
|
|
113
|
-
<datepicker placeholder="维修完成时间"
|
|
114
|
-
:value.sync="model.f_enddate"
|
|
115
|
-
v-model="model.f_enddate"
|
|
116
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
117
|
-
></datepicker>
|
|
118
|
-
</div>
|
|
119
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
120
|
-
<label class="font_normal_body" style="width: 40%">话 务 员</label>
|
|
121
|
-
<input type="text" class="input_search" v-model="model.f_attendant" placeholder='话务员'
|
|
122
|
-
condition="f_attendant like '%{}%'"
|
|
123
|
-
:size="model.f_attendant ? model.f_attendant.length : 6">
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
127
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
128
|
-
<label class="font_normal_body" style="width: 40%">接 单 员</label>
|
|
129
|
-
<input type="text" class="input_search" v-model="model.f_order_man" placeholder='接单员'
|
|
130
|
-
condition="f_order_man like '%{}%'"
|
|
131
|
-
:size="model.f_order_man ? model.f_order_man.length : 6">
|
|
132
|
-
</div>
|
|
133
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
134
|
-
<label class="font_normal_body" style="width: 40%">工单来源</label>
|
|
135
|
-
<v-select :value.sync="model.f_source" v-model='model.f_source'
|
|
136
|
-
:value-single="true"
|
|
137
|
-
:options='$parent.$parent.sources' placeholder='工单来源'
|
|
138
|
-
close-on-select
|
|
139
|
-
condition="f_source = '{}'"></v-select>
|
|
140
|
-
</div>
|
|
141
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
142
|
-
<label class="font_normal_body" style="width: 40%">工单状态</label>
|
|
143
|
-
<v-select :value.sync="model.defname" v-model='model.defname'
|
|
144
|
-
:value-single="true"
|
|
145
|
-
:options='$parent.$parent.defnames' placeholder='工单状态'
|
|
146
|
-
close-on-select></v-select>
|
|
147
|
-
</div>
|
|
148
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
149
|
-
<label class="font_normal_body" style="width: 40%">置换状态</label>
|
|
150
|
-
<v-select :value.sync="model.f_status" v-model='model.f_status'
|
|
151
|
-
:value-single="true"
|
|
152
|
-
:options='$parent.$parent.zhihuans' placeholder='置换状态'
|
|
153
|
-
close-on-select
|
|
154
|
-
></v-select>
|
|
155
|
-
</div>
|
|
156
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
157
|
-
<label class="font_normal_body" style="width: 40%">地址编号</label>
|
|
158
|
-
<input type="text" class="input_search" v-model="model.f_addressid" placeholder='地址id'
|
|
159
|
-
condition="f_addressid like '%{}%'"
|
|
160
|
-
:size="model.f_addressid ? model.f_addressid.length : 6">
|
|
161
|
-
</div>
|
|
162
|
-
</div>
|
|
163
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
164
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
165
|
-
<label class="font_normal_body" style="width: 40%">公  司</label>
|
|
166
|
-
<right-tree @re-res="$parent.$parent.getRes" >
|
|
167
|
-
</right-tree>
|
|
168
|
-
</div>
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
</criteria>
|
|
172
|
-
|
|
173
|
-
<data-grid partial='list' v-ref:grid :model="model" class="list_area table_sy">
|
|
174
|
-
<template partial='head'>
|
|
175
|
-
<tr>
|
|
176
|
-
<th><nobr>序号</nobr></th>
|
|
177
|
-
<th><nobr>回访</nobr></th>
|
|
178
|
-
<th><nobr>工单类型</nobr></th>
|
|
179
|
-
<!--<th><nobr>报修类型</nobr></th>-->
|
|
180
|
-
<th><nobr>工单编号</nobr></th>
|
|
181
|
-
<th><nobr>派单时间</nobr></th>
|
|
182
|
-
<th><nobr>客户信息</nobr></th>
|
|
183
|
-
<th><nobr>联系电话</nobr></th>
|
|
184
|
-
<th><nobr>工单状态</nobr></th>
|
|
185
|
-
<th><nobr>派单人</nobr></th>
|
|
186
|
-
<th><nobr>话务员</nobr></th>
|
|
187
|
-
<th><nobr>接单员</nobr></th>
|
|
188
|
-
<th><nobr>上传时间</nobr></th>
|
|
189
|
-
<th><nobr>到达时间</nobr></th>
|
|
190
|
-
<th><nobr>离开时间</nobr></th>
|
|
191
|
-
<th><nobr>故障明细</nobr></th>
|
|
192
|
-
<!--<th><nobr>管理改造费用</nobr></th>-->
|
|
193
|
-
<!--<th><nobr>材料改造费用</nobr></th>-->
|
|
194
|
-
<!--<th><nobr>费用</nobr></th>-->
|
|
195
|
-
<th><nobr>工单结果</nobr></th>
|
|
196
|
-
<!-- <th><nobr>抢修照片</nobr></th>-->
|
|
197
|
-
|
|
198
|
-
<th v-if="$parent.$parent.$parent.systemshow"><nobr>操作</nobr></th>
|
|
199
|
-
</tr>
|
|
200
|
-
</template>
|
|
201
|
-
<template partial='body' >
|
|
202
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{$index + 1}}</nobr></td>
|
|
203
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''" ><nobr v-if="row.f_phone&&row.f_again_revisit!='否'"><button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.playWav(row.f_phone,row)">回访</button-link></nobr><nobr v-if="(!row.f_phone)||row.f_again_revisit=='否'"></nobr></td>
|
|
204
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_workorder_type}}</nobr></td>
|
|
205
|
-
<!--<td><nobr>{{row.f_repairtype}}</nobr></td>-->
|
|
206
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_service_id}}</nobr></td>
|
|
207
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_created_date}}</nobr></td>
|
|
208
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_user_name}} {{row.f_address}} {{row.f_contact_name}}</nobr></td>
|
|
209
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_contact_phone}}</nobr></td>
|
|
210
|
-
<td style="text-align: center;" :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red;text-align: center;':'text-align: center;'">
|
|
211
|
-
<nobr>{{row.processins.activities.length == 0 ? (row.f_state === '撤销' ? '撤销' : '完成') : row.processins.activities[0].defname}}</nobr>
|
|
212
|
-
</td>
|
|
213
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_single_man}}</nobr></td>
|
|
214
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_attendant}}</nobr></td>
|
|
215
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_order_man}} {{row.f_repairman_phone}}</nobr></td>
|
|
216
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_date}}</nobr></td>
|
|
217
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_date_come}}</nobr></td>
|
|
218
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_date_leave}}</nobr></td>
|
|
219
|
-
|
|
220
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{$parent.$parent.$parent.trouble(row.serviceacitivity[0].f_new_failure)}}</nobr></td>
|
|
221
|
-
|
|
222
|
-
<!--<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_cost_manage}}</nobr></td>-->
|
|
223
|
-
<!--<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_cost_material}}</nobr></td>-->
|
|
224
|
-
<!--<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_money}}</nobr></td>-->
|
|
225
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_result_status}}</nobr></td>
|
|
226
|
-
<!-- <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)" >抢修照片-->
|
|
227
|
-
<!-- </button-link></div></nobr></td>-->
|
|
228
|
-
|
|
229
|
-
<td style="text-align: center;" v-if="$parent.$parent.$parent.systemshow" :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red;text-align: center;':'text-align: center;'">
|
|
230
|
-
<div v-show="$parent.$parent.$parent.canRecall(row)">
|
|
231
|
-
<button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.post(row, '工单撤回')">退回</button-link>
|
|
232
|
-
</div>
|
|
233
|
-
</td>
|
|
234
|
-
</template>
|
|
235
|
-
</data-grid>
|
|
236
|
-
</criteria-paged>
|
|
237
|
-
</div>
|
|
238
|
-
<!--打印-->
|
|
239
|
-
<modal :show.sync="printshow" v-ref:modal backdrop="false">
|
|
240
|
-
<header slot="modal-header" class="modal-header text-center">
|
|
241
|
-
<h4 class="modal-title">打印列选择</h4>
|
|
242
|
-
<input type="checkbox" class="" id="f_generations" v-model="all">
|
|
243
|
-
<label for="f_generations" class="font-size">全选</label>
|
|
244
|
-
</header>
|
|
245
|
-
<article slot="modal-body">
|
|
246
|
-
<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
|
|
247
|
-
<div class="col-sm-3" v-for="f in fields">
|
|
248
|
-
<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
|
|
249
|
-
<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
|
|
250
|
-
</div>
|
|
251
|
-
</div>
|
|
252
|
-
</article>
|
|
253
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
254
|
-
<center>
|
|
255
|
-
<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
256
|
-
<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
|
|
257
|
-
<print-table :model='model' v-show="false" v-ref:print
|
|
258
|
-
:top='40' :left='60' :right='40' :bottom='60'
|
|
259
|
-
:thead="thead" :tfoot='tfoot' :attach="yangsen"
|
|
260
|
-
:fields="modelval">
|
|
261
|
-
</print-table>
|
|
262
|
-
</center>
|
|
263
|
-
</footer>
|
|
264
|
-
</modal>
|
|
265
|
-
</div>
|
|
266
|
-
<modal :show.sync="showVisit" v-ref:modal backdrop="false">
|
|
267
|
-
<header slot="modal-header" class="modal-header">
|
|
268
|
-
</header>
|
|
269
|
-
<article slot="modal-body" class="modal-body">
|
|
270
|
-
<visit-info v-if="showVisit" :row="visitrow" :phone="wavflie" :outltime="outltime" @show-obj="watchShow"></visit-info>
|
|
271
|
-
</article>
|
|
272
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
273
|
-
</footer>
|
|
274
|
-
</modal>
|
|
275
|
-
<modal :show.sync="imgshow" v-ref:modal backdrop="true">
|
|
276
|
-
<header slot="modal-header" class="modal-header">
|
|
277
|
-
在线抢修照片
|
|
278
|
-
</header>
|
|
279
|
-
<article slot="modal-body" class="modal-body">
|
|
280
|
-
<div class="from-group">
|
|
281
|
-
<img-self :src="imgfilename" width="500" height="500"></img-self>
|
|
282
|
-
</div>
|
|
283
|
-
</article>
|
|
284
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
285
|
-
<button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
|
|
286
|
-
</footer>
|
|
287
|
-
</modal>
|
|
288
|
-
</template>
|
|
289
|
-
|
|
290
|
-
<script>
|
|
291
|
-
import { PagedList } from 'vue-client'
|
|
292
|
-
import DelayReply from './DelayReply'
|
|
293
|
-
import defaultPrint from './config/DefaultPrint'
|
|
294
|
-
import { HttpResetClass } from 'vue-client'
|
|
295
|
-
export default {
|
|
296
|
-
title: '工单列表',
|
|
297
|
-
data () {
|
|
298
|
-
return {
|
|
299
|
-
orgstrs:[{label: '全部', value: ''}],
|
|
300
|
-
editflag: null,
|
|
301
|
-
showVisit:false,
|
|
302
|
-
outltime:this.getNowFormatDate(),
|
|
303
|
-
wavflie : '',
|
|
304
|
-
selectone: '',
|
|
305
|
-
model: new PagedList('rs/path/serviceSummery', 20),
|
|
306
|
-
row: null,
|
|
307
|
-
orderMan: '',
|
|
308
|
-
|
|
309
|
-
msgs: [],
|
|
310
|
-
service: Object,
|
|
311
|
-
pendingCount: 0,
|
|
312
|
-
// 打印
|
|
313
|
-
all: false,
|
|
314
|
-
modelval: [],
|
|
315
|
-
visitrow:{},
|
|
316
|
-
printshow: false,
|
|
317
|
-
imgshow:false,
|
|
318
|
-
imgfilename:'',
|
|
319
|
-
fields: {},
|
|
320
|
-
thead: '',
|
|
321
|
-
tfoot: '',
|
|
322
|
-
zhihuans:[{label: '全部', value: ''},{label: '正常', value: '正常'},{label: '异常', value: '异常'}],
|
|
323
|
-
headData: ["工单类型","报修类型","工单编号","用户姓名","用户地址","用户电话","报修电话","报修时间","报修原因","维修人"],
|
|
324
|
-
bodyData: ["f_workorder_type", "f_repairtype", "f_service_id","f_user_name","f_address","f_phone","f_contact_phone", "f_created_date", "f_remarks", "f_order_man"],
|
|
325
|
-
searchData:{
|
|
326
|
-
condition: {
|
|
327
|
-
condition1: " 1=1 ",
|
|
328
|
-
condition2: "",
|
|
329
|
-
condition3: "1=1",
|
|
330
|
-
condition4: "f_filiale_id in " + this.f_filialeids + ""
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
excelHeaders: {
|
|
334
|
-
'f_workorder_type': '工单类型',
|
|
335
|
-
'f_service_id': '工单编号',
|
|
336
|
-
'f_created_date': '派单时间',
|
|
337
|
-
'serviceacitivity[0].baseuserinfo.f_user_name': '用户姓名',
|
|
338
|
-
'f_address': '用户地址',
|
|
339
|
-
'f_contact_phone': '联系电话',
|
|
340
|
-
//'f_contact_name': '联系人',
|
|
341
|
-
'f_single_man': '派单人',
|
|
342
|
-
'f_attendant': '受理人',
|
|
343
|
-
'f_order_man': '接单人',
|
|
344
|
-
'processins.activities[0].defname': '工单状态',
|
|
345
|
-
'serviceacitivity[0].f_date_leave': '完成时间',
|
|
346
|
-
'serviceacitivity[0].f_remarks': '备注'
|
|
347
|
-
},
|
|
348
|
-
criteriaShow: false
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
props: {
|
|
352
|
-
user: {
|
|
353
|
-
type: Object
|
|
354
|
-
},
|
|
355
|
-
sum:0,
|
|
356
|
-
maintenance: [],
|
|
357
|
-
// serviceId : [String, Number]
|
|
358
|
-
serviceId: '',
|
|
359
|
-
// 工单状态 工单位置
|
|
360
|
-
defname: {
|
|
361
|
-
type: String
|
|
362
|
-
},
|
|
363
|
-
systemshow:{
|
|
364
|
-
type:Boolean,
|
|
365
|
-
default:false
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
ready () {
|
|
369
|
-
this.getfengongsi()
|
|
370
|
-
// //tag
|
|
371
|
-
// //tag
|
|
372
|
-
// //tag)
|
|
373
|
-
// this.getRes(this.$login.f.orgid)
|
|
374
|
-
this.selfSearch()
|
|
375
|
-
},
|
|
376
|
-
watch: {
|
|
377
|
-
'all' (val) {
|
|
378
|
-
if (val) {
|
|
379
|
-
this.modelval = this.bodyData
|
|
380
|
-
} else {
|
|
381
|
-
this.modelval = defaultPrint.config
|
|
382
|
-
this.put()
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
'modelval.length' () {
|
|
386
|
-
this.put()
|
|
387
|
-
},
|
|
388
|
-
'serviceId' () {
|
|
389
|
-
this.selfSearch()
|
|
390
|
-
},
|
|
391
|
-
'sum' (val) {
|
|
392
|
-
this.selfSearch()
|
|
393
|
-
//this.model.search()
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
methods: {
|
|
397
|
-
getNowFormatDate() {
|
|
398
|
-
var date = new Date();
|
|
399
|
-
var seperator1 = "-";
|
|
400
|
-
var seperator2 = ":";
|
|
401
|
-
var month = date.getMonth() + 1;
|
|
402
|
-
var strDate = date.getDate();
|
|
403
|
-
var hour = date.getHours();
|
|
404
|
-
var min = date.getMinutes();
|
|
405
|
-
var second = date.getSeconds();
|
|
406
|
-
if (month >= 1 && month <= 9) {
|
|
407
|
-
month = "0" + month;
|
|
408
|
-
}
|
|
409
|
-
if (strDate >= 0 && strDate <= 9) {
|
|
410
|
-
strDate = "0" + strDate;
|
|
411
|
-
}
|
|
412
|
-
if (hour >= 0 && hour <= 9) {
|
|
413
|
-
hour = "0" + hour;
|
|
414
|
-
}
|
|
415
|
-
if (min >= 0 && min <= 9) {
|
|
416
|
-
min = "0" + min;
|
|
417
|
-
}
|
|
418
|
-
if (second >= 0 && second <= 9) {
|
|
419
|
-
second = "0" + second;
|
|
420
|
-
}
|
|
421
|
-
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
|
422
|
-
+ " " + hour + seperator2 + min
|
|
423
|
-
+ seperator2 + second;
|
|
424
|
-
return currentdate;
|
|
425
|
-
},
|
|
426
|
-
watchShow(val){
|
|
427
|
-
this.visitrow={}
|
|
428
|
-
this.showVisit = val
|
|
429
|
-
this.selfSearch()
|
|
430
|
-
},
|
|
431
|
-
playWav(val,val2){
|
|
432
|
-
//tag
|
|
433
|
-
this.wavflie=val;
|
|
434
|
-
this.visitrow=val2;
|
|
435
|
-
this.showVisit = true
|
|
436
|
-
},
|
|
437
|
-
showpicture(val){
|
|
438
|
-
//tag
|
|
439
|
-
//tag)
|
|
440
|
-
this.imgshow=true
|
|
441
|
-
this.imgfilename='rs/image/file/'+val.f_single_path
|
|
442
|
-
},
|
|
443
|
-
imgclose(){
|
|
444
|
-
this.imgshow=false
|
|
445
|
-
},
|
|
446
|
-
yccolor(val){
|
|
447
|
-
if(val == '异常'){
|
|
448
|
-
return 'color:red'
|
|
449
|
-
}
|
|
450
|
-
return ''
|
|
451
|
-
},
|
|
452
|
-
// 县域分公司发生改变
|
|
453
|
-
orgstrchange(val){
|
|
454
|
-
if(val == undefined || val == ''){
|
|
455
|
-
return
|
|
456
|
-
}
|
|
457
|
-
},
|
|
458
|
-
// 获取县域分公司内容
|
|
459
|
-
getfengongsi(){
|
|
460
|
-
let val = {source: 'this.getParentByType($organization$).getSpecialResByType($organization$)', userid: `${this.$login.f.id}`}
|
|
461
|
-
let http = new HttpResetClass()
|
|
462
|
-
http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
463
|
-
res.data.forEach((item) => {
|
|
464
|
-
this.orgstrs.push({label: item.name, value: item.id})
|
|
465
|
-
})
|
|
466
|
-
//tag
|
|
467
|
-
})
|
|
468
|
-
},
|
|
469
|
-
proc (selectone, type) {
|
|
470
|
-
this.editflag = type
|
|
471
|
-
this.selectone = selectone
|
|
472
|
-
},
|
|
473
|
-
search(args) {
|
|
474
|
-
let data = {}
|
|
475
|
-
data.condition1 = this.$refs.paged.$refs.criteria.condition?this.$refs.paged.$refs.criteria.condition: `1=1`
|
|
476
|
-
// 获取自定义拼接条件
|
|
477
|
-
data.condition2 = this.getCondition2()
|
|
478
|
-
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'
|
|
479
|
-
if (this.f_filialeids){
|
|
480
|
-
data.condition4 = `f_filiale_id in ${this.f_filialeids}`
|
|
481
|
-
//tag
|
|
482
|
-
}else{
|
|
483
|
-
data.condition4 = `f_filiale_id = '${this.$login.f.orgid}'`
|
|
484
|
-
//tag
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
this.searchData.condition = data
|
|
488
|
-
this.searchData = Object.assign(this.searchData, args.model)
|
|
489
|
-
return this.model.search(data, args.model)
|
|
490
|
-
},
|
|
491
|
-
selfSearch () {
|
|
492
|
-
// 取消编辑状态
|
|
493
|
-
this.editflag = null
|
|
494
|
-
let data = {}
|
|
495
|
-
data.condition1 = `1=1`
|
|
496
|
-
data.condition2 = ''
|
|
497
|
-
data.condition3 = '1=1'
|
|
498
|
-
if (this.f_filialeids){
|
|
499
|
-
data.condition4 = `f_filiale_id in ${this.f_filialeids}`
|
|
500
|
-
//tag
|
|
501
|
-
}else{
|
|
502
|
-
data.condition4 = `f_filiale_id = '${this.$login.f.orgid}'`
|
|
503
|
-
//tag
|
|
504
|
-
}
|
|
505
|
-
return this.model.search(data)
|
|
506
|
-
},
|
|
507
|
-
getCondition2(){
|
|
508
|
-
let String = ''
|
|
509
|
-
let workCt = ''
|
|
510
|
-
if(this.$refs.paged.$refs.criteria.model.f_date){
|
|
511
|
-
workCt = `f_date > '${this.$refs.paged.$refs.criteria.model.f_date}'`
|
|
512
|
-
}
|
|
513
|
-
if(this.$refs.paged.$refs.criteria.model.f_enddate){
|
|
514
|
-
if( workCt == ''){
|
|
515
|
-
workCt = `f_date < '${this.$refs.paged.$refs.criteria.model.f_enddate}'`
|
|
516
|
-
}else{
|
|
517
|
-
workCt += `and f_date < '${this.$refs.paged.$refs.criteria.model.f_enddate}'`
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
if(this.$refs.paged.$refs.criteria.model.f_status && this.$refs.paged.$refs.criteria.model.f_status == '异常'){
|
|
521
|
-
workCt += workCt ? " and f_is_abnormal = '异常'" : "f_is_abnormal = '异常'"
|
|
522
|
-
}else if(this.$refs.paged.$refs.criteria.model.f_status && this.$refs.paged.$refs.criteria.model.f_status == '正常') {
|
|
523
|
-
workCt += workCt ? " and f_is_abnormal = null" : "f_is_abnormal = null"
|
|
524
|
-
}
|
|
525
|
-
String = workCt ? `[serviceacitivity[t_servicework: ${workCt}].count(*)>0]`:''
|
|
526
|
-
return String
|
|
527
|
-
},
|
|
528
|
-
// 发送数据给业务逻辑,并刷新界面
|
|
529
|
-
post (row, logic) {
|
|
530
|
-
// 调取工单撤回操作
|
|
531
|
-
let data = {model: row, loginUser: {name: this.$login.f.name, ename: this.$login.f.ename}}
|
|
532
|
-
|
|
533
|
-
this.$showMessage(logic+row.f_service_id+'工单', ['confirm', 'cancel']).then((res) => {
|
|
534
|
-
if (res === 'confirm') {
|
|
535
|
-
this.$resetpost(`rs/logic/${logic}`, data).then(() => {
|
|
536
|
-
// 刷新界面
|
|
537
|
-
this.selfSearch()
|
|
538
|
-
})
|
|
539
|
-
}
|
|
540
|
-
})
|
|
541
|
-
},
|
|
542
|
-
// 是否可以退回
|
|
543
|
-
canRecall(row) {
|
|
544
|
-
let result =
|
|
545
|
-
row.processins.activities[0].defname === '维修完成'
|
|
546
|
-
return result
|
|
547
|
-
},
|
|
548
|
-
trouble(row){
|
|
549
|
-
if(!row){
|
|
550
|
-
return
|
|
551
|
-
}
|
|
552
|
-
let data = ''
|
|
553
|
-
let failure = JSON.parse(row)
|
|
554
|
-
failure.forEach((val)=>{
|
|
555
|
-
data+=val.f_failure_type+" "
|
|
556
|
-
})
|
|
557
|
-
return data
|
|
558
|
-
},
|
|
559
|
-
// 打印
|
|
560
|
-
stamp () {
|
|
561
|
-
this.all = false
|
|
562
|
-
// 默认选择要打印的列
|
|
563
|
-
this.modelval = defaultPrint.config
|
|
564
|
-
this.fields = this.getfield
|
|
565
|
-
this.printshow = true
|
|
566
|
-
this.put()
|
|
567
|
-
},
|
|
568
|
-
put () {
|
|
569
|
-
// 对Modelval进行排序
|
|
570
|
-
this.sortModelval()
|
|
571
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>工单详情报表</th></tr><tr>`
|
|
572
|
-
for (let key of this.modelval) {
|
|
573
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
574
|
-
}
|
|
575
|
-
this.thead += '</tr>'
|
|
576
|
-
},
|
|
577
|
-
print () {
|
|
578
|
-
this.$refs.print.PrintAsFile()
|
|
579
|
-
this.printshow = false
|
|
580
|
-
},
|
|
581
|
-
close () {
|
|
582
|
-
this.printshow = false
|
|
583
|
-
this.all = false
|
|
584
|
-
},
|
|
585
|
-
// 对选择的列进行排序
|
|
586
|
-
sortModelval () {
|
|
587
|
-
let sortModel = []
|
|
588
|
-
Object.keys(this.fields).forEach((key) => {
|
|
589
|
-
if (this.modelval.includes(key)) {
|
|
590
|
-
sortModel.push(key)
|
|
591
|
-
}
|
|
592
|
-
})
|
|
593
|
-
this.modelval = sortModel
|
|
594
|
-
},
|
|
595
|
-
hidden(){
|
|
596
|
-
this.criteriaShow = !this.criteriaShow
|
|
597
|
-
},
|
|
598
|
-
getRes(obj){
|
|
599
|
-
//tag
|
|
600
|
-
////tag)
|
|
601
|
-
this.f_filialeids = this.$login.convertToIn(obj.resids);
|
|
602
|
-
//tag
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
computed: {
|
|
606
|
-
defnames () {
|
|
607
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单状态')]
|
|
608
|
-
},
|
|
609
|
-
repairstypes () {
|
|
610
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('报修全部类型')]
|
|
611
|
-
},
|
|
612
|
-
serviceorders () {
|
|
613
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单类型')]
|
|
614
|
-
},
|
|
615
|
-
sources () {
|
|
616
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单来源')]
|
|
617
|
-
},
|
|
618
|
-
getfield(){
|
|
619
|
-
let data = {}
|
|
620
|
-
this.bodyData.forEach((value, index)=>{
|
|
621
|
-
data[this.bodyData[index]] = this.headData[index]
|
|
622
|
-
})
|
|
623
|
-
return data
|
|
624
|
-
}
|
|
625
|
-
},
|
|
626
|
-
components: {
|
|
627
|
-
'delay-reply': DelayReply
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
</script>
|
|
1
|
+
<template >
|
|
2
|
+
<div id="stand-work-list" class="flex bg-white p-10">
|
|
3
|
+
<div class="span">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
9
|
+
<label class="font_normal_body" style="width: 40%">工单编号</label>
|
|
10
|
+
<input type="text" class="input_search" v-model="model.f_service_id" placeholder='工单编号'
|
|
11
|
+
condition="f_service_id like '%{}%'"
|
|
12
|
+
:size="model.f_service_id ? model.f_service_id.length : 6">
|
|
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
|
+
<v-select :value.sync="model.f_workorder_type" :value-single="true" v-model="model.f_workorder_type"
|
|
17
|
+
:options='$parent.$parent.serviceorders' placeholder='工单类型'
|
|
18
|
+
condition="f_workorder_type like '%{}%'"
|
|
19
|
+
close-on-select>
|
|
20
|
+
</v-select>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
|
23
|
+
<label class="font_normal_body" style="width: 40%">客户姓名</label>
|
|
24
|
+
<input type="text" class="input_search" v-model="model.f_user_name" placeholder='客户姓名'
|
|
25
|
+
condition="f_user_name like '%{}%'"
|
|
26
|
+
:size="model.f_user_name ? model.f_user_name.length : 6">
|
|
27
|
+
</div>
|
|
28
|
+
<div class="form-group col-sm-6 button-range" style="margin-right: 10px">
|
|
29
|
+
<button class="button_search button_spacing" style="margin-right: 9px" @click="search(),$dispatch('search')">查询</button>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<export-excel-tel
|
|
33
|
+
:data="$parent.$parent.searchData"
|
|
34
|
+
:field="$parent.$parent.excelHeaders"
|
|
35
|
+
sqlurl="rs/logic/telephoneExport" path-name="serviceSummery" template-name='工单详情导出'
|
|
36
|
+
:choose-col="true">
|
|
37
|
+
</export-excel-tel>
|
|
38
|
+
|
|
39
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
40
|
+
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
44
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
45
|
+
<label class="font_normal_body" style="width: 40%">客户编号</label>
|
|
46
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
47
|
+
condition="f_userinfo_code like '%{}%'"
|
|
48
|
+
:size="model.f_userinfo_code ? model.f_userinfo_code.length : 6">
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
51
|
+
<label class="font_normal_body" style="width: 40%">派单时间</label>
|
|
52
|
+
<datepicker placeholder="起始派单时间"
|
|
53
|
+
:value.sync="model.f_created_date"
|
|
54
|
+
v-model="model.f_created_date"
|
|
55
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
56
|
+
condition="f_created_date > '{}'"
|
|
57
|
+
></datepicker>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
60
|
+
<label class="font_normal_body" style="width: 40%">派单时间</label>
|
|
61
|
+
<datepicker placeholder="终止派单时间"
|
|
62
|
+
:value.sync="model.f_created_enddate"
|
|
63
|
+
v-model="model.f_created_enddate"
|
|
64
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
65
|
+
condition="f_created_date < '{}'"
|
|
66
|
+
></datepicker>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
69
|
+
<label class="font_normal_body" style="width: 40%">来电电话</label>
|
|
70
|
+
<input type="text" class="input_search" v-model="model.f_phone" placeholder='来电电话'
|
|
71
|
+
condition="f_phone like '%{}%'"
|
|
72
|
+
:size="model.f_phone ? model.f_phone.length : 6">
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
75
|
+
<label class="font_normal_body" style="width: 40%">联系电话</label>
|
|
76
|
+
<input type="text" class="input_search" v-model="model.f_contact_phone" placeholder='联系电话'
|
|
77
|
+
condition="f_contact_phone like '%{}%'"
|
|
78
|
+
:size="model.f_contact_phone ? model.f_contact_phone.length : 6">
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
<!--<div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
|
|
82
|
+
<!--<label class="font_normal_body">报修类型</label>-->
|
|
83
|
+
<!--<v-select :value.sync="model.f_repairtype" :value-single="true" v-model="model.f_repairtype"-->
|
|
84
|
+
<!--:options='$parent.$parent.repairstypes' placeholder='报修类型'-->
|
|
85
|
+
<!--condition="f_repairtype like '%{}%'"-->
|
|
86
|
+
<!--close-on-select>-->
|
|
87
|
+
<!--</v-select>-->
|
|
88
|
+
<!--</div>-->
|
|
89
|
+
|
|
90
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
91
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
92
|
+
<label class="font_normal_body" style="width: 40%">地  址</label>
|
|
93
|
+
<input type="text" class="input_search" v-model="model.f_address" placeholder='地址'
|
|
94
|
+
condition="f_address like '%{}%'"
|
|
95
|
+
:size="model.f_address ? model.f_address.length : 4">
|
|
96
|
+
</div>
|
|
97
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
98
|
+
<label class="font_normal_body" style="width: 40%">接单站点</label>
|
|
99
|
+
<input type="text" class="input_search" v-model="model.f_outlets" placeholder='接单站点'
|
|
100
|
+
condition="f_outlets like '%{}%'"
|
|
101
|
+
:size="model.f_outlets ? model.f_outlets.length : 6">
|
|
102
|
+
</div>
|
|
103
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
104
|
+
<label class="font_normal_body" style="width: 40%">完成时间</label>
|
|
105
|
+
<datepicker placeholder="维修完成时间"
|
|
106
|
+
:value.sync="model.f_date"
|
|
107
|
+
v-model="model.f_date"
|
|
108
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
109
|
+
></datepicker>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
112
|
+
<label class="font_normal_body" style="width: 40%">完成时间</label>
|
|
113
|
+
<datepicker placeholder="维修完成时间"
|
|
114
|
+
:value.sync="model.f_enddate"
|
|
115
|
+
v-model="model.f_enddate"
|
|
116
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
117
|
+
></datepicker>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
120
|
+
<label class="font_normal_body" style="width: 40%">话 务 员</label>
|
|
121
|
+
<input type="text" class="input_search" v-model="model.f_attendant" placeholder='话务员'
|
|
122
|
+
condition="f_attendant like '%{}%'"
|
|
123
|
+
:size="model.f_attendant ? model.f_attendant.length : 6">
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
127
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
128
|
+
<label class="font_normal_body" style="width: 40%">接 单 员</label>
|
|
129
|
+
<input type="text" class="input_search" v-model="model.f_order_man" placeholder='接单员'
|
|
130
|
+
condition="f_order_man like '%{}%'"
|
|
131
|
+
:size="model.f_order_man ? model.f_order_man.length : 6">
|
|
132
|
+
</div>
|
|
133
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
134
|
+
<label class="font_normal_body" style="width: 40%">工单来源</label>
|
|
135
|
+
<v-select :value.sync="model.f_source" v-model='model.f_source'
|
|
136
|
+
:value-single="true"
|
|
137
|
+
:options='$parent.$parent.sources' placeholder='工单来源'
|
|
138
|
+
close-on-select
|
|
139
|
+
condition="f_source = '{}'"></v-select>
|
|
140
|
+
</div>
|
|
141
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
142
|
+
<label class="font_normal_body" style="width: 40%">工单状态</label>
|
|
143
|
+
<v-select :value.sync="model.defname" v-model='model.defname'
|
|
144
|
+
:value-single="true"
|
|
145
|
+
:options='$parent.$parent.defnames' placeholder='工单状态'
|
|
146
|
+
close-on-select></v-select>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
149
|
+
<label class="font_normal_body" style="width: 40%">置换状态</label>
|
|
150
|
+
<v-select :value.sync="model.f_status" v-model='model.f_status'
|
|
151
|
+
:value-single="true"
|
|
152
|
+
:options='$parent.$parent.zhihuans' placeholder='置换状态'
|
|
153
|
+
close-on-select
|
|
154
|
+
></v-select>
|
|
155
|
+
</div>
|
|
156
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
157
|
+
<label class="font_normal_body" style="width: 40%">地址编号</label>
|
|
158
|
+
<input type="text" class="input_search" v-model="model.f_addressid" placeholder='地址id'
|
|
159
|
+
condition="f_addressid like '%{}%'"
|
|
160
|
+
:size="model.f_addressid ? model.f_addressid.length : 6">
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
164
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
165
|
+
<label class="font_normal_body" style="width: 40%">公  司</label>
|
|
166
|
+
<right-tree @re-res="$parent.$parent.getRes" >
|
|
167
|
+
</right-tree>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</criteria>
|
|
172
|
+
|
|
173
|
+
<data-grid partial='list' v-ref:grid :model="model" class="list_area table_sy">
|
|
174
|
+
<template partial='head'>
|
|
175
|
+
<tr>
|
|
176
|
+
<th><nobr>序号</nobr></th>
|
|
177
|
+
<th><nobr>回访</nobr></th>
|
|
178
|
+
<th><nobr>工单类型</nobr></th>
|
|
179
|
+
<!--<th><nobr>报修类型</nobr></th>-->
|
|
180
|
+
<th><nobr>工单编号</nobr></th>
|
|
181
|
+
<th><nobr>派单时间</nobr></th>
|
|
182
|
+
<th><nobr>客户信息</nobr></th>
|
|
183
|
+
<th><nobr>联系电话</nobr></th>
|
|
184
|
+
<th><nobr>工单状态</nobr></th>
|
|
185
|
+
<th><nobr>派单人</nobr></th>
|
|
186
|
+
<th><nobr>话务员</nobr></th>
|
|
187
|
+
<th><nobr>接单员</nobr></th>
|
|
188
|
+
<th><nobr>上传时间</nobr></th>
|
|
189
|
+
<th><nobr>到达时间</nobr></th>
|
|
190
|
+
<th><nobr>离开时间</nobr></th>
|
|
191
|
+
<th><nobr>故障明细</nobr></th>
|
|
192
|
+
<!--<th><nobr>管理改造费用</nobr></th>-->
|
|
193
|
+
<!--<th><nobr>材料改造费用</nobr></th>-->
|
|
194
|
+
<!--<th><nobr>费用</nobr></th>-->
|
|
195
|
+
<th><nobr>工单结果</nobr></th>
|
|
196
|
+
<!-- <th><nobr>抢修照片</nobr></th>-->
|
|
197
|
+
|
|
198
|
+
<th v-if="$parent.$parent.$parent.systemshow"><nobr>操作</nobr></th>
|
|
199
|
+
</tr>
|
|
200
|
+
</template>
|
|
201
|
+
<template partial='body' >
|
|
202
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{$index + 1}}</nobr></td>
|
|
203
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''" ><nobr v-if="row.f_phone&&row.f_again_revisit!='否'"><button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.playWav(row.f_phone,row)">回访</button-link></nobr><nobr v-if="(!row.f_phone)||row.f_again_revisit=='否'"></nobr></td>
|
|
204
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_workorder_type}}</nobr></td>
|
|
205
|
+
<!--<td><nobr>{{row.f_repairtype}}</nobr></td>-->
|
|
206
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_service_id}}</nobr></td>
|
|
207
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_created_date}}</nobr></td>
|
|
208
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_user_name}} {{row.f_address}} {{row.f_contact_name}}</nobr></td>
|
|
209
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_contact_phone}}</nobr></td>
|
|
210
|
+
<td style="text-align: center;" :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red;text-align: center;':'text-align: center;'">
|
|
211
|
+
<nobr>{{row.processins.activities.length == 0 ? (row.f_state === '撤销' ? '撤销' : '完成') : row.processins.activities[0].defname}}</nobr>
|
|
212
|
+
</td>
|
|
213
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_single_man}}</nobr></td>
|
|
214
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_attendant}}</nobr></td>
|
|
215
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.f_order_man}} {{row.f_repairman_phone}}</nobr></td>
|
|
216
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_date}}</nobr></td>
|
|
217
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_date_come}}</nobr></td>
|
|
218
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_date_leave}}</nobr></td>
|
|
219
|
+
|
|
220
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{$parent.$parent.$parent.trouble(row.serviceacitivity[0].f_new_failure)}}</nobr></td>
|
|
221
|
+
|
|
222
|
+
<!--<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_cost_manage}}</nobr></td>-->
|
|
223
|
+
<!--<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_cost_material}}</nobr></td>-->
|
|
224
|
+
<!--<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_money}}</nobr></td>-->
|
|
225
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''"><nobr>{{row.serviceacitivity[0].f_result_status}}</nobr></td>
|
|
226
|
+
<!-- <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)" >抢修照片-->
|
|
227
|
+
<!-- </button-link></div></nobr></td>-->
|
|
228
|
+
|
|
229
|
+
<td style="text-align: center;" v-if="$parent.$parent.$parent.systemshow" :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red;text-align: center;':'text-align: center;'">
|
|
230
|
+
<div v-show="$parent.$parent.$parent.canRecall(row)">
|
|
231
|
+
<button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.post(row, '工单撤回')">退回</button-link>
|
|
232
|
+
</div>
|
|
233
|
+
</td>
|
|
234
|
+
</template>
|
|
235
|
+
</data-grid>
|
|
236
|
+
</criteria-paged>
|
|
237
|
+
</div>
|
|
238
|
+
<!--打印-->
|
|
239
|
+
<modal :show.sync="printshow" v-ref:modal backdrop="false">
|
|
240
|
+
<header slot="modal-header" class="modal-header text-center">
|
|
241
|
+
<h4 class="modal-title">打印列选择</h4>
|
|
242
|
+
<input type="checkbox" class="" id="f_generations" v-model="all">
|
|
243
|
+
<label for="f_generations" class="font-size">全选</label>
|
|
244
|
+
</header>
|
|
245
|
+
<article slot="modal-body">
|
|
246
|
+
<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
|
|
247
|
+
<div class="col-sm-3" v-for="f in fields">
|
|
248
|
+
<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
|
|
249
|
+
<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
</article>
|
|
253
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
254
|
+
<center>
|
|
255
|
+
<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
256
|
+
<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
|
|
257
|
+
<print-table :model='model' v-show="false" v-ref:print
|
|
258
|
+
:top='40' :left='60' :right='40' :bottom='60'
|
|
259
|
+
:thead="thead" :tfoot='tfoot' :attach="yangsen"
|
|
260
|
+
:fields="modelval">
|
|
261
|
+
</print-table>
|
|
262
|
+
</center>
|
|
263
|
+
</footer>
|
|
264
|
+
</modal>
|
|
265
|
+
</div>
|
|
266
|
+
<modal :show.sync="showVisit" v-ref:modal backdrop="false">
|
|
267
|
+
<header slot="modal-header" class="modal-header">
|
|
268
|
+
</header>
|
|
269
|
+
<article slot="modal-body" class="modal-body">
|
|
270
|
+
<visit-info v-if="showVisit" :row="visitrow" :phone="wavflie" :outltime="outltime" @show-obj="watchShow"></visit-info>
|
|
271
|
+
</article>
|
|
272
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
273
|
+
</footer>
|
|
274
|
+
</modal>
|
|
275
|
+
<modal :show.sync="imgshow" v-ref:modal backdrop="true">
|
|
276
|
+
<header slot="modal-header" class="modal-header">
|
|
277
|
+
在线抢修照片
|
|
278
|
+
</header>
|
|
279
|
+
<article slot="modal-body" class="modal-body">
|
|
280
|
+
<div class="from-group">
|
|
281
|
+
<img-self :src="imgfilename" width="500" height="500"></img-self>
|
|
282
|
+
</div>
|
|
283
|
+
</article>
|
|
284
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
285
|
+
<button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
|
|
286
|
+
</footer>
|
|
287
|
+
</modal>
|
|
288
|
+
</template>
|
|
289
|
+
|
|
290
|
+
<script>
|
|
291
|
+
import { PagedList } from 'vue-client'
|
|
292
|
+
import DelayReply from './DelayReply'
|
|
293
|
+
import defaultPrint from './config/DefaultPrint'
|
|
294
|
+
import { HttpResetClass } from 'vue-client'
|
|
295
|
+
export default {
|
|
296
|
+
title: '工单列表',
|
|
297
|
+
data () {
|
|
298
|
+
return {
|
|
299
|
+
orgstrs:[{label: '全部', value: ''}],
|
|
300
|
+
editflag: null,
|
|
301
|
+
showVisit:false,
|
|
302
|
+
outltime:this.getNowFormatDate(),
|
|
303
|
+
wavflie : '',
|
|
304
|
+
selectone: '',
|
|
305
|
+
model: new PagedList('rs/path/serviceSummery', 20),
|
|
306
|
+
row: null,
|
|
307
|
+
orderMan: '',
|
|
308
|
+
|
|
309
|
+
msgs: [],
|
|
310
|
+
service: Object,
|
|
311
|
+
pendingCount: 0,
|
|
312
|
+
// 打印
|
|
313
|
+
all: false,
|
|
314
|
+
modelval: [],
|
|
315
|
+
visitrow:{},
|
|
316
|
+
printshow: false,
|
|
317
|
+
imgshow:false,
|
|
318
|
+
imgfilename:'',
|
|
319
|
+
fields: {},
|
|
320
|
+
thead: '',
|
|
321
|
+
tfoot: '',
|
|
322
|
+
zhihuans:[{label: '全部', value: ''},{label: '正常', value: '正常'},{label: '异常', value: '异常'}],
|
|
323
|
+
headData: ["工单类型","报修类型","工单编号","用户姓名","用户地址","用户电话","报修电话","报修时间","报修原因","维修人"],
|
|
324
|
+
bodyData: ["f_workorder_type", "f_repairtype", "f_service_id","f_user_name","f_address","f_phone","f_contact_phone", "f_created_date", "f_remarks", "f_order_man"],
|
|
325
|
+
searchData:{
|
|
326
|
+
condition: {
|
|
327
|
+
condition1: " 1=1 ",
|
|
328
|
+
condition2: "",
|
|
329
|
+
condition3: "1=1",
|
|
330
|
+
condition4: "f_filiale_id in " + this.f_filialeids + ""
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
excelHeaders: {
|
|
334
|
+
'f_workorder_type': '工单类型',
|
|
335
|
+
'f_service_id': '工单编号',
|
|
336
|
+
'f_created_date': '派单时间',
|
|
337
|
+
'serviceacitivity[0].baseuserinfo.f_user_name': '用户姓名',
|
|
338
|
+
'f_address': '用户地址',
|
|
339
|
+
'f_contact_phone': '联系电话',
|
|
340
|
+
//'f_contact_name': '联系人',
|
|
341
|
+
'f_single_man': '派单人',
|
|
342
|
+
'f_attendant': '受理人',
|
|
343
|
+
'f_order_man': '接单人',
|
|
344
|
+
'processins.activities[0].defname': '工单状态',
|
|
345
|
+
'serviceacitivity[0].f_date_leave': '完成时间',
|
|
346
|
+
'serviceacitivity[0].f_remarks': '备注'
|
|
347
|
+
},
|
|
348
|
+
criteriaShow: false
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
props: {
|
|
352
|
+
user: {
|
|
353
|
+
type: Object
|
|
354
|
+
},
|
|
355
|
+
sum:0,
|
|
356
|
+
maintenance: [],
|
|
357
|
+
// serviceId : [String, Number]
|
|
358
|
+
serviceId: '',
|
|
359
|
+
// 工单状态 工单位置
|
|
360
|
+
defname: {
|
|
361
|
+
type: String
|
|
362
|
+
},
|
|
363
|
+
systemshow:{
|
|
364
|
+
type:Boolean,
|
|
365
|
+
default:false
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
ready () {
|
|
369
|
+
this.getfengongsi()
|
|
370
|
+
// //tag
|
|
371
|
+
// //tag
|
|
372
|
+
// //tag)
|
|
373
|
+
// this.getRes(this.$login.f.orgid)
|
|
374
|
+
this.selfSearch()
|
|
375
|
+
},
|
|
376
|
+
watch: {
|
|
377
|
+
'all' (val) {
|
|
378
|
+
if (val) {
|
|
379
|
+
this.modelval = this.bodyData
|
|
380
|
+
} else {
|
|
381
|
+
this.modelval = defaultPrint.config
|
|
382
|
+
this.put()
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
'modelval.length' () {
|
|
386
|
+
this.put()
|
|
387
|
+
},
|
|
388
|
+
'serviceId' () {
|
|
389
|
+
this.selfSearch()
|
|
390
|
+
},
|
|
391
|
+
'sum' (val) {
|
|
392
|
+
this.selfSearch()
|
|
393
|
+
//this.model.search()
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
methods: {
|
|
397
|
+
getNowFormatDate() {
|
|
398
|
+
var date = new Date();
|
|
399
|
+
var seperator1 = "-";
|
|
400
|
+
var seperator2 = ":";
|
|
401
|
+
var month = date.getMonth() + 1;
|
|
402
|
+
var strDate = date.getDate();
|
|
403
|
+
var hour = date.getHours();
|
|
404
|
+
var min = date.getMinutes();
|
|
405
|
+
var second = date.getSeconds();
|
|
406
|
+
if (month >= 1 && month <= 9) {
|
|
407
|
+
month = "0" + month;
|
|
408
|
+
}
|
|
409
|
+
if (strDate >= 0 && strDate <= 9) {
|
|
410
|
+
strDate = "0" + strDate;
|
|
411
|
+
}
|
|
412
|
+
if (hour >= 0 && hour <= 9) {
|
|
413
|
+
hour = "0" + hour;
|
|
414
|
+
}
|
|
415
|
+
if (min >= 0 && min <= 9) {
|
|
416
|
+
min = "0" + min;
|
|
417
|
+
}
|
|
418
|
+
if (second >= 0 && second <= 9) {
|
|
419
|
+
second = "0" + second;
|
|
420
|
+
}
|
|
421
|
+
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
|
422
|
+
+ " " + hour + seperator2 + min
|
|
423
|
+
+ seperator2 + second;
|
|
424
|
+
return currentdate;
|
|
425
|
+
},
|
|
426
|
+
watchShow(val){
|
|
427
|
+
this.visitrow={}
|
|
428
|
+
this.showVisit = val
|
|
429
|
+
this.selfSearch()
|
|
430
|
+
},
|
|
431
|
+
playWav(val,val2){
|
|
432
|
+
//tag
|
|
433
|
+
this.wavflie=val;
|
|
434
|
+
this.visitrow=val2;
|
|
435
|
+
this.showVisit = true
|
|
436
|
+
},
|
|
437
|
+
showpicture(val){
|
|
438
|
+
//tag
|
|
439
|
+
//tag)
|
|
440
|
+
this.imgshow=true
|
|
441
|
+
this.imgfilename='rs/image/file/'+val.f_single_path
|
|
442
|
+
},
|
|
443
|
+
imgclose(){
|
|
444
|
+
this.imgshow=false
|
|
445
|
+
},
|
|
446
|
+
yccolor(val){
|
|
447
|
+
if(val == '异常'){
|
|
448
|
+
return 'color:red'
|
|
449
|
+
}
|
|
450
|
+
return ''
|
|
451
|
+
},
|
|
452
|
+
// 县域分公司发生改变
|
|
453
|
+
orgstrchange(val){
|
|
454
|
+
if(val == undefined || val == ''){
|
|
455
|
+
return
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
// 获取县域分公司内容
|
|
459
|
+
getfengongsi(){
|
|
460
|
+
let val = {source: 'this.getParentByType($organization$).getSpecialResByType($organization$)', userid: `${this.$login.f.id}`}
|
|
461
|
+
let http = new HttpResetClass()
|
|
462
|
+
http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
463
|
+
res.data.forEach((item) => {
|
|
464
|
+
this.orgstrs.push({label: item.name, value: item.id})
|
|
465
|
+
})
|
|
466
|
+
//tag
|
|
467
|
+
})
|
|
468
|
+
},
|
|
469
|
+
proc (selectone, type) {
|
|
470
|
+
this.editflag = type
|
|
471
|
+
this.selectone = selectone
|
|
472
|
+
},
|
|
473
|
+
search(args) {
|
|
474
|
+
let data = {}
|
|
475
|
+
data.condition1 = this.$refs.paged.$refs.criteria.condition?this.$refs.paged.$refs.criteria.condition: `1=1`
|
|
476
|
+
// 获取自定义拼接条件
|
|
477
|
+
data.condition2 = this.getCondition2()
|
|
478
|
+
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'
|
|
479
|
+
if (this.f_filialeids){
|
|
480
|
+
data.condition4 = `f_filiale_id in ${this.f_filialeids}`
|
|
481
|
+
//tag
|
|
482
|
+
}else{
|
|
483
|
+
data.condition4 = `f_filiale_id = '${this.$login.f.orgid}'`
|
|
484
|
+
//tag
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
this.searchData.condition = data
|
|
488
|
+
this.searchData = Object.assign(this.searchData, args.model)
|
|
489
|
+
return this.model.search(data, args.model)
|
|
490
|
+
},
|
|
491
|
+
selfSearch () {
|
|
492
|
+
// 取消编辑状态
|
|
493
|
+
this.editflag = null
|
|
494
|
+
let data = {}
|
|
495
|
+
data.condition1 = `1=1`
|
|
496
|
+
data.condition2 = ''
|
|
497
|
+
data.condition3 = '1=1'
|
|
498
|
+
if (this.f_filialeids){
|
|
499
|
+
data.condition4 = `f_filiale_id in ${this.f_filialeids}`
|
|
500
|
+
//tag
|
|
501
|
+
}else{
|
|
502
|
+
data.condition4 = `f_filiale_id = '${this.$login.f.orgid}'`
|
|
503
|
+
//tag
|
|
504
|
+
}
|
|
505
|
+
return this.model.search(data)
|
|
506
|
+
},
|
|
507
|
+
getCondition2(){
|
|
508
|
+
let String = ''
|
|
509
|
+
let workCt = ''
|
|
510
|
+
if(this.$refs.paged.$refs.criteria.model.f_date){
|
|
511
|
+
workCt = `f_date > '${this.$refs.paged.$refs.criteria.model.f_date}'`
|
|
512
|
+
}
|
|
513
|
+
if(this.$refs.paged.$refs.criteria.model.f_enddate){
|
|
514
|
+
if( workCt == ''){
|
|
515
|
+
workCt = `f_date < '${this.$refs.paged.$refs.criteria.model.f_enddate}'`
|
|
516
|
+
}else{
|
|
517
|
+
workCt += `and f_date < '${this.$refs.paged.$refs.criteria.model.f_enddate}'`
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
if(this.$refs.paged.$refs.criteria.model.f_status && this.$refs.paged.$refs.criteria.model.f_status == '异常'){
|
|
521
|
+
workCt += workCt ? " and f_is_abnormal = '异常'" : "f_is_abnormal = '异常'"
|
|
522
|
+
}else if(this.$refs.paged.$refs.criteria.model.f_status && this.$refs.paged.$refs.criteria.model.f_status == '正常') {
|
|
523
|
+
workCt += workCt ? " and f_is_abnormal = null" : "f_is_abnormal = null"
|
|
524
|
+
}
|
|
525
|
+
String = workCt ? `[serviceacitivity[t_servicework: ${workCt}].count(*)>0]`:''
|
|
526
|
+
return String
|
|
527
|
+
},
|
|
528
|
+
// 发送数据给业务逻辑,并刷新界面
|
|
529
|
+
post (row, logic) {
|
|
530
|
+
// 调取工单撤回操作
|
|
531
|
+
let data = {model: row, loginUser: {name: this.$login.f.name, ename: this.$login.f.ename}}
|
|
532
|
+
|
|
533
|
+
this.$showMessage(logic+row.f_service_id+'工单', ['confirm', 'cancel']).then((res) => {
|
|
534
|
+
if (res === 'confirm') {
|
|
535
|
+
this.$resetpost(`rs/logic/${logic}`, data).then(() => {
|
|
536
|
+
// 刷新界面
|
|
537
|
+
this.selfSearch()
|
|
538
|
+
})
|
|
539
|
+
}
|
|
540
|
+
})
|
|
541
|
+
},
|
|
542
|
+
// 是否可以退回
|
|
543
|
+
canRecall(row) {
|
|
544
|
+
let result =
|
|
545
|
+
row.processins.activities[0].defname === '维修完成'
|
|
546
|
+
return result
|
|
547
|
+
},
|
|
548
|
+
trouble(row){
|
|
549
|
+
if(!row){
|
|
550
|
+
return
|
|
551
|
+
}
|
|
552
|
+
let data = ''
|
|
553
|
+
let failure = JSON.parse(row)
|
|
554
|
+
failure.forEach((val)=>{
|
|
555
|
+
data+=val.f_failure_type+" "
|
|
556
|
+
})
|
|
557
|
+
return data
|
|
558
|
+
},
|
|
559
|
+
// 打印
|
|
560
|
+
stamp () {
|
|
561
|
+
this.all = false
|
|
562
|
+
// 默认选择要打印的列
|
|
563
|
+
this.modelval = defaultPrint.config
|
|
564
|
+
this.fields = this.getfield
|
|
565
|
+
this.printshow = true
|
|
566
|
+
this.put()
|
|
567
|
+
},
|
|
568
|
+
put () {
|
|
569
|
+
// 对Modelval进行排序
|
|
570
|
+
this.sortModelval()
|
|
571
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>工单详情报表</th></tr><tr>`
|
|
572
|
+
for (let key of this.modelval) {
|
|
573
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
574
|
+
}
|
|
575
|
+
this.thead += '</tr>'
|
|
576
|
+
},
|
|
577
|
+
print () {
|
|
578
|
+
this.$refs.print.PrintAsFile()
|
|
579
|
+
this.printshow = false
|
|
580
|
+
},
|
|
581
|
+
close () {
|
|
582
|
+
this.printshow = false
|
|
583
|
+
this.all = false
|
|
584
|
+
},
|
|
585
|
+
// 对选择的列进行排序
|
|
586
|
+
sortModelval () {
|
|
587
|
+
let sortModel = []
|
|
588
|
+
Object.keys(this.fields).forEach((key) => {
|
|
589
|
+
if (this.modelval.includes(key)) {
|
|
590
|
+
sortModel.push(key)
|
|
591
|
+
}
|
|
592
|
+
})
|
|
593
|
+
this.modelval = sortModel
|
|
594
|
+
},
|
|
595
|
+
hidden(){
|
|
596
|
+
this.criteriaShow = !this.criteriaShow
|
|
597
|
+
},
|
|
598
|
+
getRes(obj){
|
|
599
|
+
//tag
|
|
600
|
+
////tag)
|
|
601
|
+
this.f_filialeids = this.$login.convertToIn(obj.resids);
|
|
602
|
+
//tag
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
computed: {
|
|
606
|
+
defnames () {
|
|
607
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单状态')]
|
|
608
|
+
},
|
|
609
|
+
repairstypes () {
|
|
610
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('报修全部类型')]
|
|
611
|
+
},
|
|
612
|
+
serviceorders () {
|
|
613
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单类型')]
|
|
614
|
+
},
|
|
615
|
+
sources () {
|
|
616
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单来源')]
|
|
617
|
+
},
|
|
618
|
+
getfield(){
|
|
619
|
+
let data = {}
|
|
620
|
+
this.bodyData.forEach((value, index)=>{
|
|
621
|
+
data[this.bodyData[index]] = this.headData[index]
|
|
622
|
+
})
|
|
623
|
+
return data
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
components: {
|
|
627
|
+
'delay-reply': DelayReply
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
</script>
|