telephone-clients 3.0.103 → 3.0.104-1
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/App.vue +7 -9
- package/src/assets//345/210/240/351/231/244.png +0 -0
- package/src/components/Util/RightTreeSafe.vue +2 -2
- package/src/components/Util/RightTreeSafeDep.vue +350 -0
- package/src/components/android/AddMyTask.vue +7 -0
- package/src/components/guoxin/VisitInfo.vue +0 -11
- package/src/components/pc/NewRepairPaper.vue +3 -3
- package/src/components/pc/RepairsWork.vue +22 -2
- package/src/components/pc/RoleSelectorDep.vue +158 -0
- package/src/components/pc/TelFindUser.vue +1 -1
- package/src/components/pc/TelListener.vue +47 -16
- package/src/components/pc/VisitInfo.vue +0 -10
- package/src/components/pc/WorkCenter.vue +1 -1
- package/src/components/pc/WorkCenterList.vue +1 -1
- package/src/components/pc/WorkHistory.vue +20 -2
- package/src/components/pc/WorkListAll.vue +1 -1
- package/src/components/pc/WorkListAllNew.vue +10 -3
- package/src/components/pc/WorkListNew.vue +712 -706
- package/src/components/pc/olddata/OldWorkList.vue +193 -0
- package/src/components/telreport/RepairsDetailsReport.vue +98 -0
- package/src/components/telreport/TableFaultReport.vue +96 -0
- package/src/components/telreport/Traffic.vue +3 -3
- package/src/components/telreport/TrafficClassificationReport.vue +134 -0
- package/src/components/temp/ChangemeterInfo.vue +75 -87
- package/src/components/temp/DeviceInfo.vue +80 -82
- package/src/components/temp/HandplanInfo.vue +2 -2
- package/src/components/temp/InfoTable.vue +5 -2
- package/src/components/temp/MetereadInfo.vue +1 -4
- package/src/components/temp/OldRepairList.vue +100 -0
- package/src/components/temp/RepairList.vue +2 -2
- package/src/components/weinan/Console.vue +1 -1
- package/src/components/weinan/RecordList.vue +2 -2
- package/src/components/weinan/SiteSend.vue +2 -2
- package/src/components/weinan/SiteSendWeixiu.vue +7 -16
- package/src/components/weinan/StandWorkWeixiu.vue +1 -1
- package/src/components/weinan/WorkList.vue +73 -0
- package/src/components/weinan/WorkListAll.vue +90 -14
- package/src/components/weinan/WorkListWeixiu.vue +1 -1
- package/src/components/workorder/CompletedRepair.vue +269 -183
- package/src/components/workorder/FaultAll.vue +826 -826
- package/src/components/workorder/PhoneStandWork.vue +354 -354
- package/src/components/workorder/PhoneUpDetail.vue +3 -0
- package/src/components/workorder/RepairDetails.vue +12 -2
- package/src/components/workorder/RepairFirstV.vue +1 -1
- package/src/components/workorder/RepairOrderV.vue +1446 -1446
- package/src/filiale/furuike/pc/ComplainWork.vue +348 -348
- package/src/filiale/furuike/pc/Seekwork.vue +352 -352
- package/src/filiale/furuike/pc/WorkHistory.vue +576 -576
- package/src/filiale/gongyi/android/RepairOrderV.vue +1415 -1415
- package/src/filiale/kelai/android/AppTakePic.vue +143 -0
- package/src/filiale/kelai/android/PhoneVentilationLeave.vue +176 -0
- package/src/filiale/kelai/pc/WorkCenterList.vue +20 -3
- package/src/filiale/kelai/pc/WorkListAllNew.vue +47 -9
- package/src/filiale/kelai/pc/serviceDeleteOrder.vue +55 -0
- package/src/filiale/kelai/telephone.js +9 -8
- package/src/filiale/kelai/telephoneAndroid.js +3 -1
- package/src/filiale/liaoyuan/android/RepairOrderV.vue +831 -831
- package/src/filiale/qianneng/android/FaultAll.vue +883 -883
- package/src/filiale/qianneng/android/MaterIialOne.vue +123 -123
- package/src/filiale/qianneng/android/RepairOrderV.vue +874 -874
- package/src/filiale/qianneng/android/TemporarySingle.vue +537 -512
- package/src/filiale/qianneng/android/chargesList.vue +161 -161
- package/src/filiale/qianneng/pc/MaterialDetailed.vue +260 -248
- package/src/filiale/qianneng/pc/MaterialStatistics.vue +144 -0
- package/src/filiale/qianneng/pc/NewRepairPaper.vue +4 -4
- package/src/filiale/qianneng/pc/RepairsWork.vue +12 -2
- package/src/filiale/qianneng/pc/WorkHistory.vue +2 -2
- package/src/filiale/qianneng/pc/WorkListAllNew.vue +53 -5
- package/src/filiale/qianneng/pc/changetable.vue +273 -0
- package/src/filiale/qianneng/telephone.js +22 -20
- package/src/filiale/rizhao/pc/DispatchMan.vue +3 -3
- package/src/filiale/rizhao/pc/DispatchWork.vue +3 -3
- package/src/filiale/rizhao/pc/Traffic.vue +3 -3
- package/src/filiale/rizhao/pc/WorkListAllNew.vue +8 -3
- package/src/filiale/rongcheng/CliWorkListAll.vue +442 -407
- package/src/filiale/rongcheng/FaultAll.vue +3 -3
- package/src/filiale/rongcheng/RepairOrderV.vue +1445 -0
- package/src/filiale/rongcheng/telephoneAndroid.js +3 -1
- package/src/filiale/shanxian/android/RepairFirstV.vue +5 -1
- package/src/filiale/shanxian/pc/RepairsWork.vue +826 -0
- package/src/filiale/shanxian/pc/WorkList.vue +1 -1
- package/src/filiale/shanxian/telephone.js +13 -12
- package/src/filiale/shexian/android/AddMyTask.vue +7 -0
- package/src/filiale/shexian/android/CompletedRepair.vue +280 -0
- package/src/filiale/shexian/android/FaultAll.vue +847 -0
- package/src/filiale/shexian/android/Outlay.vue +182 -165
- package/src/filiale/shexian/android/RepairFirstV.vue +16 -2
- package/src/filiale/shexian/android/RepairInfo.vue +1 -0
- package/src/filiale/shexian/pc/QueryVisitHistory.vue +237 -0
- package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +271 -0
- package/src/filiale/shexian/pc/TelByOrderManCount.vue +10 -2
- package/src/filiale/shexian/pc/WorkList.vue +782 -740
- package/src/filiale/shexian/pc/WorkListAllNew.vue +75 -67
- package/src/filiale/shexian/telephone.js +21 -18
- package/src/filiale/shexian/telephoneAndroid.js +32 -26
- package/src/filiale/tongchuan/android/TicketDetails.vue +3 -0
- package/src/filiale/tongchuan/pc/UserWork.vue +805 -805
- package/src/filiale/tongchuan/pc/WorkOrderStatistics.vue +2 -2
- package/src/filiale/wenxi/android/FailureShow.vue +61 -0
- package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1053 -0
- package/src/filiale/wenxi/android/RepairInfo.vue +158 -74
- package/src/filiale/wenxi/android/RepairOrderV.vue +805 -1419
- package/src/filiale/wenxi/android/RepairUserInfo.vue +532 -0
- package/src/filiale/wenxi/android/ZHihuanFirst.vue +502 -0
- package/src/filiale/wenxi/pc/DistributeWork.vue +107 -121
- package/src/filiale/wenxi/pc/FailureEdit.vue +1 -1
- package/src/filiale/wenxi/pc/GasWork.vue +747 -0
- package/src/filiale/wenxi/pc/MetereadInfo.vue +82 -0
- package/src/filiale/wenxi/pc/RepairsWork.vue +15 -0
- package/src/filiale/wenxi/pc/TelFindUser.vue +213 -116
- package/src/filiale/wenxi/telephone.js +4 -6
- package/src/filiale/wenxi/telephoneAndroid.js +4 -1
- package/src/filiale/wuan/android/RepairOrderV.vue +1384 -1384
- package/src/filiale/yuncheng/pc/TelFindUser.vue +302 -0
- package/src/filiale/yuncheng/telephone.js +12 -0
- package/src/filiale/zhongsheng/android/FaultAll.vue +741 -0
- package/src/filiale/zhongsheng/android/RepairOrderV.vue +1430 -1430
- package/src/filiale/zhongsheng/android/RepairUserInfo.vue +241 -214
- package/src/filiale/zhongsheng/pc/RepairsWork.vue +775 -775
- package/src/filiale/zhongsheng/telephone.js +23 -23
- package/src/filiale/zhongsheng/telephoneAndroid.js +2 -1
- package/src/main.js +1 -1
- package/src/telephone.js +16 -0
- package/src/weinan.js +6 -0
- package/src/filiale/wenxi/pc/WorkListAll.vue +0 -647
|
@@ -1,354 +1,354 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="height: auto;width: 100%" class="repair-bg">
|
|
3
|
-
<div class="bq-parent">
|
|
4
|
-
<blockquote style="color: #499edf;border-left-color: #499edf;font-size: 16px">
|
|
5
|
-
<p>
|
|
6
|
-
待派发工单<span v-if="rows">({{rows.length}}单)</span>
|
|
7
|
-
<span v-if="!rows">(暂无待派发工单)</span>
|
|
8
|
-
</p>
|
|
9
|
-
</blockquote>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<div>
|
|
13
|
-
<form>
|
|
14
|
-
<!-- 查询条件-->
|
|
15
|
-
<div class="row app-row">
|
|
16
|
-
<div class="col-xs-4">
|
|
17
|
-
<img src="../../assets/用户姓名-蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
18
|
-
<label for="f_userinfo_code" class="font text-left">用户姓名:</label>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="col-xs-8" >
|
|
21
|
-
<input type="text" v-model="username" placeholder='用户姓名'
|
|
22
|
-
class="search_input input-font" />
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="row app-row">
|
|
26
|
-
<div class="col-xs-4">
|
|
27
|
-
<img src="../../assets/小区蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
28
|
-
<label for="f_userinfo_code" class="font text-left">用户地址:</label>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="col-xs-8" >
|
|
31
|
-
<input type="text" id="f_userinfo_code" class="search_input input-font"
|
|
32
|
-
v-model="address" placeholder='用户地址' />
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
<!-- 分割按钮和条件的高度 -->
|
|
36
|
-
<div class="row app-row" style="height: 10px;"></div>
|
|
37
|
-
<!-- 按钮 -->
|
|
38
|
-
<div class="row text-center app-row">
|
|
39
|
-
<button type="button" class="btn btn-lg btn-font btn-color" @click="ifsearch()" style="min-width: 25%;">查询</button>
|
|
40
|
-
</div>
|
|
41
|
-
<div style="height:30px;" class="app-row"></div>
|
|
42
|
-
</form>
|
|
43
|
-
</div>
|
|
44
|
-
<!-- 列表 -->
|
|
45
|
-
<div class="panel panel-default repair-info-content auto">
|
|
46
|
-
<div class="panel-body">
|
|
47
|
-
<div class="panel panel-default well panel-blue-border" :class="row.failure.indexOf('漏气') !== -1 ? 'class-a':''" v-for="row in listData.list" >
|
|
48
|
-
<div class="panel-body" style="padding: 10px">
|
|
49
|
-
<div class="row form-group">
|
|
50
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
51
|
-
<div class="row" >
|
|
52
|
-
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
53
|
-
工单编号: {{row.f_service_id}}<span v-if="row.f_remindersign">(催单 {{row.f_reminderdata}}) </span>
|
|
54
|
-
</div>
|
|
55
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
56
|
-
派发时间: {{row.f_created_date}}
|
|
57
|
-
</div>
|
|
58
|
-
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '置换通气单'||worktype == '安装单'">
|
|
59
|
-
预约时间: {{row.f_yuyue_date}}
|
|
60
|
-
</div>
|
|
61
|
-
<!-- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
|
|
62
|
-
报修类型: {{row.f_servicerepair_type}}
|
|
63
|
-
</div>-->
|
|
64
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_repairtype">
|
|
65
|
-
报修类型: {{row.f_repairtype}}
|
|
66
|
-
</div>
|
|
67
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_userinfo_code">
|
|
68
|
-
用户编号: {{row.f_userinfo_code}}
|
|
69
|
-
</div>
|
|
70
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_enter_number">
|
|
71
|
-
用户证号: {{row.f_enter_number}}
|
|
72
|
-
</div>
|
|
73
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
74
|
-
用户姓名: {{row.f_user_name}}
|
|
75
|
-
</div>
|
|
76
|
-
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
77
|
-
来电电话: {{row.f_phone}}
|
|
78
|
-
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
81
|
-
联系电话: {{row.f_contact_phone}}
|
|
82
|
-
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_contact_phone)'>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
85
|
-
用户地址: {{row.f_address}}
|
|
86
|
-
</div>
|
|
87
|
-
<div v-show="row.f_remarks" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
88
|
-
备注信息: {{row.f_remarks}}
|
|
89
|
-
</div>
|
|
90
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.failure">
|
|
91
|
-
<failure-show :value='row.failure'>
|
|
92
|
-
</failure-show>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
97
|
-
<button type="button" name="button" class="btn btn-primary btn-sm" style="float: right" @click="selected(row)">下派</button>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
</div>
|
|
102
|
-
<div style="height:auto;width: 100%;text-align: center">
|
|
103
|
-
<a v-if="!listData.isEnd" @click="showMore()">展开更多......</a>
|
|
104
|
-
<span v-if="listData.isEnd">到底了......</span>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
<modal :show.sync="sendshow" v-ref:modal :backdrop="false">
|
|
108
|
-
<div slot="modal-header" class="modal-header">
|
|
109
|
-
<h4 class="modal-title">
|
|
110
|
-
派发工单
|
|
111
|
-
</h4>
|
|
112
|
-
</div>
|
|
113
|
-
<div slot="modal-body" class="modal-body">
|
|
114
|
-
<div class="row" style="margin-top: 6px">
|
|
115
|
-
<label class="col-xs-4 col-md-4 control-label font text-left">接单人</label>
|
|
116
|
-
<div class="col-xs-8">
|
|
117
|
-
<v-select :value="sendselected.serviceacitivity[0].f_reciever" :value-single="true"
|
|
118
|
-
:options='repairers' placeholder='请选择接单人'
|
|
119
|
-
close-on-select v-on:change="repiarmancg"></v-select>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
<div class="row" style="margin-top: 6px">
|
|
123
|
-
<label class="control-label font text-left col-md-4 col-xs-4">备注</label>
|
|
124
|
-
<div class="col-xs-8 col-md-8">
|
|
125
|
-
<input type="text" v-model="sendselected.f_advice"/>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<div slot="modal-footer" class="modal-footer">
|
|
130
|
-
<button type="button" class="btn btn-default" @click="worksend()">确定</button>
|
|
131
|
-
<button type="button" class="btn btn-default" @click="undo()">取消</button>
|
|
132
|
-
</div>
|
|
133
|
-
</modal>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
</template>
|
|
137
|
-
<script>
|
|
138
|
-
import FailureShow from '../pc/FailureShow'
|
|
139
|
-
import { HttpResetClass } from 'vue-client'
|
|
140
|
-
import Vue from 'vue'
|
|
141
|
-
import * as Util from "../Util";
|
|
142
|
-
|
|
143
|
-
export default{
|
|
144
|
-
title: '移动端站点派发',
|
|
145
|
-
data () {
|
|
146
|
-
return {
|
|
147
|
-
// rows: Object
|
|
148
|
-
rows: [],
|
|
149
|
-
username:'',
|
|
150
|
-
address:'',
|
|
151
|
-
sendshow:false,
|
|
152
|
-
repairers: [],
|
|
153
|
-
sendselected:{
|
|
154
|
-
serviceacitivity:[
|
|
155
|
-
{
|
|
156
|
-
f_service_acitivity_type: '派单',
|
|
157
|
-
f_reciever:''
|
|
158
|
-
}
|
|
159
|
-
],
|
|
160
|
-
f_advice:''
|
|
161
|
-
},
|
|
162
|
-
number:0,
|
|
163
|
-
listData: {
|
|
164
|
-
list: [],
|
|
165
|
-
isEnd: true,
|
|
166
|
-
index: 0
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
props: {
|
|
171
|
-
},
|
|
172
|
-
methods: {
|
|
173
|
-
worksend () {
|
|
174
|
-
if (!this.sendselected.serviceacitivity[0].f_reciever) {
|
|
175
|
-
this.$showMessage(`请选择接单人员!`, ['confirm'])
|
|
176
|
-
return
|
|
177
|
-
}
|
|
178
|
-
let data = {
|
|
179
|
-
model: this.sendselected,
|
|
180
|
-
loginUser: {name: Vue.user.name, ename: Vue.user.ename}
|
|
181
|
-
}
|
|
182
|
-
let HttpReset = new HttpResetClass()
|
|
183
|
-
// 将数据发送给业务逻辑
|
|
184
|
-
HttpReset.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/siteSend`, data).then((res) => {
|
|
185
|
-
if (res.data.code == 300) {
|
|
186
|
-
this.sendshow = false
|
|
187
|
-
this.sendselected ={
|
|
188
|
-
serviceacitivity:[
|
|
189
|
-
{
|
|
190
|
-
f_service_acitivity_type: '派单',
|
|
191
|
-
f_reciever:''
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
f_advice:''
|
|
195
|
-
}
|
|
196
|
-
this.ifsearch()
|
|
197
|
-
this.$showMessage(`该单已被派发!`, ['confirm'])
|
|
198
|
-
return
|
|
199
|
-
} else {
|
|
200
|
-
this.sendshow = false
|
|
201
|
-
this.sendselected ={
|
|
202
|
-
serviceacitivity:[
|
|
203
|
-
{
|
|
204
|
-
f_service_acitivity_type: '派单',
|
|
205
|
-
f_reciever:''
|
|
206
|
-
}
|
|
207
|
-
],
|
|
208
|
-
f_advice:''
|
|
209
|
-
}
|
|
210
|
-
this.ifsearch()
|
|
211
|
-
this.$showMessage(`派发成功!`, ['confirm'])
|
|
212
|
-
return
|
|
213
|
-
}
|
|
214
|
-
})
|
|
215
|
-
},
|
|
216
|
-
repiarmancg(val){
|
|
217
|
-
this.sendselected.serviceacitivity[0].f_reciever = val
|
|
218
|
-
},
|
|
219
|
-
// 获取维修员
|
|
220
|
-
getEmp () {
|
|
221
|
-
// 获取接单人数组
|
|
222
|
-
let http = new HttpResetClass()
|
|
223
|
-
var val = {source: `this.getParentByType($organization$).getChildByName($维修员$).getUsers()`, userid: `${Vue.user.id}`}
|
|
224
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
225
|
-
res.data.forEach((item) => {
|
|
226
|
-
this.repairers.push({label: `${item.name}`, value: item.name})
|
|
227
|
-
})
|
|
228
|
-
})
|
|
229
|
-
},
|
|
230
|
-
ifsearch(){
|
|
231
|
-
this.listData.list = []
|
|
232
|
-
this.listData.index = 0
|
|
233
|
-
this.listData.isEnd = true
|
|
234
|
-
var condition = `1 = 1 and f_workorder_type = '报修单'`
|
|
235
|
-
if(this.username != ''){
|
|
236
|
-
condition += " and f_user_name like '%" + this.username + "%'"
|
|
237
|
-
}
|
|
238
|
-
if(this.address != ''){
|
|
239
|
-
condition += " and f_address like '%" + this.address + "%'"
|
|
240
|
-
}
|
|
241
|
-
var val = {
|
|
242
|
-
condition:{
|
|
243
|
-
condition:condition,
|
|
244
|
-
sign:'1 = 1'
|
|
245
|
-
},
|
|
246
|
-
userid:Vue.user.name
|
|
247
|
-
}
|
|
248
|
-
//tag
|
|
249
|
-
//tag
|
|
250
|
-
let http = new HttpResetClass()
|
|
251
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorService`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
252
|
-
this.rows = res.data
|
|
253
|
-
this.showMore()
|
|
254
|
-
})
|
|
255
|
-
},
|
|
256
|
-
selected (row) {
|
|
257
|
-
this.sendselected = Object.assign({}, this.sendselected, row)
|
|
258
|
-
this.sendshow =true
|
|
259
|
-
},
|
|
260
|
-
undo(){
|
|
261
|
-
this.sendselected ={
|
|
262
|
-
serviceacitivity:[
|
|
263
|
-
{
|
|
264
|
-
f_service_acitivity_type: '派单',
|
|
265
|
-
f_reciever:''
|
|
266
|
-
}
|
|
267
|
-
],
|
|
268
|
-
f_advice:''
|
|
269
|
-
}
|
|
270
|
-
this.sendshow = false
|
|
271
|
-
this.ifsearch()
|
|
272
|
-
},
|
|
273
|
-
makeAPhoneCall(phoneNumber) {
|
|
274
|
-
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
275
|
-
},
|
|
276
|
-
showMore() {
|
|
277
|
-
if (!this.rows) {
|
|
278
|
-
return
|
|
279
|
-
}
|
|
280
|
-
let endIndex = this.listData.index + 10
|
|
281
|
-
if (endIndex > this.rows.length) {
|
|
282
|
-
endIndex = this.rows.length
|
|
283
|
-
}
|
|
284
|
-
for (; this.listData.index < endIndex; this.listData.index++) {
|
|
285
|
-
this.listData.list.push(this.rows[this.listData.index])
|
|
286
|
-
}
|
|
287
|
-
if(this.listData.index == this.rows.length){
|
|
288
|
-
this.listData.isEnd = true
|
|
289
|
-
}else {
|
|
290
|
-
this.listData.isEnd = false
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
ready () {
|
|
295
|
-
this.getEmp()
|
|
296
|
-
this.ifsearch()
|
|
297
|
-
},
|
|
298
|
-
components: {
|
|
299
|
-
FailureShow,
|
|
300
|
-
'failure-show': FailureShow
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
</script>
|
|
304
|
-
<style scoped>
|
|
305
|
-
.searBtn {
|
|
306
|
-
background: #FFFFFF;
|
|
307
|
-
color: #0096fb;
|
|
308
|
-
border: 1px solid #0096fb;
|
|
309
|
-
border-radius: 5px;
|
|
310
|
-
padding: 8px;
|
|
311
|
-
text-align: center;
|
|
312
|
-
font-size: 1.2em;
|
|
313
|
-
z-index: 10;
|
|
314
|
-
opacity:0.5;
|
|
315
|
-
bottom: 50px;
|
|
316
|
-
margin-top: -10px;
|
|
317
|
-
height: 40px;
|
|
318
|
-
}
|
|
319
|
-
.bg {
|
|
320
|
-
background-color: #499edf;
|
|
321
|
-
height: 1px;
|
|
322
|
-
border: 0;
|
|
323
|
-
}
|
|
324
|
-
.app-row {
|
|
325
|
-
background-color: white;
|
|
326
|
-
padding: 10px 10px 0 10px;
|
|
327
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
328
|
-
}
|
|
329
|
-
.search_input {
|
|
330
|
-
border: 0;
|
|
331
|
-
outline: none;
|
|
332
|
-
}
|
|
333
|
-
.font{
|
|
334
|
-
font: 15px PingFang-SC-Medium;
|
|
335
|
-
color: #666666;
|
|
336
|
-
}
|
|
337
|
-
.input-font{
|
|
338
|
-
font: 15px PingFang-SC-Medium;
|
|
339
|
-
color: #333333;
|
|
340
|
-
}
|
|
341
|
-
.btn-font{
|
|
342
|
-
font:600 16px PingFang-SC-Bold;
|
|
343
|
-
color: #499EDF;
|
|
344
|
-
}
|
|
345
|
-
.btn-color{
|
|
346
|
-
background-color: #FFFFFF;
|
|
347
|
-
border-radius: 10px ;
|
|
348
|
-
border: 1px solid #499EDF;
|
|
349
|
-
}
|
|
350
|
-
.panel-blue-border {
|
|
351
|
-
border: 1px solid #499edf;
|
|
352
|
-
border-radius: 5px;
|
|
353
|
-
}
|
|
354
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="height: auto;width: 100%" class="repair-bg">
|
|
3
|
+
<div class="bq-parent">
|
|
4
|
+
<blockquote style="color: #499edf;border-left-color: #499edf;font-size: 16px">
|
|
5
|
+
<p>
|
|
6
|
+
待派发工单<span v-if="rows">({{rows.length}}单)</span>
|
|
7
|
+
<span v-if="!rows">(暂无待派发工单)</span>
|
|
8
|
+
</p>
|
|
9
|
+
</blockquote>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<div>
|
|
13
|
+
<form>
|
|
14
|
+
<!-- 查询条件-->
|
|
15
|
+
<div class="row app-row">
|
|
16
|
+
<div class="col-xs-4">
|
|
17
|
+
<img src="../../assets/用户姓名-蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
18
|
+
<label for="f_userinfo_code" class="font text-left">用户姓名:</label>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-xs-8" >
|
|
21
|
+
<input type="text" v-model="username" placeholder='用户姓名'
|
|
22
|
+
class="search_input input-font" />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="row app-row">
|
|
26
|
+
<div class="col-xs-4">
|
|
27
|
+
<img src="../../assets/小区蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
28
|
+
<label for="f_userinfo_code" class="font text-left">用户地址:</label>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-xs-8" >
|
|
31
|
+
<input type="text" id="f_userinfo_code" class="search_input input-font"
|
|
32
|
+
v-model="address" placeholder='用户地址' />
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<!-- 分割按钮和条件的高度 -->
|
|
36
|
+
<div class="row app-row" style="height: 10px;"></div>
|
|
37
|
+
<!-- 按钮 -->
|
|
38
|
+
<div class="row text-center app-row">
|
|
39
|
+
<button type="button" class="btn btn-lg btn-font btn-color" @click="ifsearch()" style="min-width: 25%;">查询</button>
|
|
40
|
+
</div>
|
|
41
|
+
<div style="height:30px;" class="app-row"></div>
|
|
42
|
+
</form>
|
|
43
|
+
</div>
|
|
44
|
+
<!-- 列表 -->
|
|
45
|
+
<div class="panel panel-default repair-info-content auto">
|
|
46
|
+
<div class="panel-body">
|
|
47
|
+
<div class="panel panel-default well panel-blue-border" :class="row.failure.indexOf('漏气') !== -1 ? 'class-a':''" v-for="row in listData.list" >
|
|
48
|
+
<div class="panel-body" style="padding: 10px">
|
|
49
|
+
<div class="row form-group">
|
|
50
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
51
|
+
<div class="row" >
|
|
52
|
+
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
53
|
+
工单编号: {{row.f_service_id}}<span v-if="row.f_remindersign">(催单 {{row.f_reminderdata}}) </span>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
56
|
+
派发时间: {{row.f_created_date}}
|
|
57
|
+
</div>
|
|
58
|
+
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '置换通气单'||worktype == '安装单'">
|
|
59
|
+
预约时间: {{row.f_yuyue_date}}
|
|
60
|
+
</div>
|
|
61
|
+
<!-- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
|
|
62
|
+
报修类型: {{row.f_servicerepair_type}}
|
|
63
|
+
</div>-->
|
|
64
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_repairtype">
|
|
65
|
+
报修类型: {{row.f_repairtype}}
|
|
66
|
+
</div>
|
|
67
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_userinfo_code">
|
|
68
|
+
用户编号: {{row.f_userinfo_code}}
|
|
69
|
+
</div>
|
|
70
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_enter_number">
|
|
71
|
+
用户证号: {{row.f_enter_number}}
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
74
|
+
用户姓名: {{row.f_user_name}}
|
|
75
|
+
</div>
|
|
76
|
+
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
77
|
+
来电电话: {{row.f_phone}}
|
|
78
|
+
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
81
|
+
联系电话: {{row.f_contact_phone}}
|
|
82
|
+
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_contact_phone)'>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
85
|
+
用户地址: {{row.f_address}}
|
|
86
|
+
</div>
|
|
87
|
+
<div v-show="row.f_remarks" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
88
|
+
备注信息: {{row.f_remarks}}
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.failure">
|
|
91
|
+
<failure-show :value='row.failure'>
|
|
92
|
+
</failure-show>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
97
|
+
<button type="button" name="button" class="btn btn-primary btn-sm" style="float: right" @click="selected(row)">下派</button>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
<div style="height:auto;width: 100%;text-align: center">
|
|
103
|
+
<a v-if="!listData.isEnd" @click="showMore()">展开更多......</a>
|
|
104
|
+
<span v-if="listData.isEnd">到底了......</span>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<modal :show.sync="sendshow" v-ref:modal :backdrop="false">
|
|
108
|
+
<div slot="modal-header" class="modal-header">
|
|
109
|
+
<h4 class="modal-title">
|
|
110
|
+
派发工单
|
|
111
|
+
</h4>
|
|
112
|
+
</div>
|
|
113
|
+
<div slot="modal-body" class="modal-body">
|
|
114
|
+
<div class="row" style="margin-top: 6px">
|
|
115
|
+
<label class="col-xs-4 col-md-4 control-label font text-left">接单人</label>
|
|
116
|
+
<div class="col-xs-8">
|
|
117
|
+
<v-select :value="sendselected.serviceacitivity[0].f_reciever" :value-single="true"
|
|
118
|
+
:options='repairers' placeholder='请选择接单人'
|
|
119
|
+
close-on-select v-on:change="repiarmancg"></v-select>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="row" style="margin-top: 6px">
|
|
123
|
+
<label class="control-label font text-left col-md-4 col-xs-4">备注</label>
|
|
124
|
+
<div class="col-xs-8 col-md-8">
|
|
125
|
+
<input type="text" v-model="sendselected.f_advice"/>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div slot="modal-footer" class="modal-footer">
|
|
130
|
+
<button type="button" class="btn btn-default" @click="worksend()">确定</button>
|
|
131
|
+
<button type="button" class="btn btn-default" @click="undo()">取消</button>
|
|
132
|
+
</div>
|
|
133
|
+
</modal>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</template>
|
|
137
|
+
<script>
|
|
138
|
+
import FailureShow from '../pc/FailureShow'
|
|
139
|
+
import { HttpResetClass } from 'vue-client'
|
|
140
|
+
import Vue from 'vue'
|
|
141
|
+
import * as Util from "../Util";
|
|
142
|
+
|
|
143
|
+
export default{
|
|
144
|
+
title: '移动端站点派发',
|
|
145
|
+
data () {
|
|
146
|
+
return {
|
|
147
|
+
// rows: Object
|
|
148
|
+
rows: [],
|
|
149
|
+
username:'',
|
|
150
|
+
address:'',
|
|
151
|
+
sendshow:false,
|
|
152
|
+
repairers: [],
|
|
153
|
+
sendselected:{
|
|
154
|
+
serviceacitivity:[
|
|
155
|
+
{
|
|
156
|
+
f_service_acitivity_type: '派单',
|
|
157
|
+
f_reciever:''
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
f_advice:''
|
|
161
|
+
},
|
|
162
|
+
number:0,
|
|
163
|
+
listData: {
|
|
164
|
+
list: [],
|
|
165
|
+
isEnd: true,
|
|
166
|
+
index: 0
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
props: {
|
|
171
|
+
},
|
|
172
|
+
methods: {
|
|
173
|
+
worksend () {
|
|
174
|
+
if (!this.sendselected.serviceacitivity[0].f_reciever) {
|
|
175
|
+
this.$showMessage(`请选择接单人员!`, ['confirm'])
|
|
176
|
+
return
|
|
177
|
+
}
|
|
178
|
+
let data = {
|
|
179
|
+
model: this.sendselected,
|
|
180
|
+
loginUser: {name: Vue.user.name, ename: Vue.user.ename}
|
|
181
|
+
}
|
|
182
|
+
let HttpReset = new HttpResetClass()
|
|
183
|
+
// 将数据发送给业务逻辑
|
|
184
|
+
HttpReset.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/siteSend`, data).then((res) => {
|
|
185
|
+
if (res.data.code == 300) {
|
|
186
|
+
this.sendshow = false
|
|
187
|
+
this.sendselected ={
|
|
188
|
+
serviceacitivity:[
|
|
189
|
+
{
|
|
190
|
+
f_service_acitivity_type: '派单',
|
|
191
|
+
f_reciever:''
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
f_advice:''
|
|
195
|
+
}
|
|
196
|
+
this.ifsearch()
|
|
197
|
+
this.$showMessage(`该单已被派发!`, ['confirm'])
|
|
198
|
+
return
|
|
199
|
+
} else {
|
|
200
|
+
this.sendshow = false
|
|
201
|
+
this.sendselected ={
|
|
202
|
+
serviceacitivity:[
|
|
203
|
+
{
|
|
204
|
+
f_service_acitivity_type: '派单',
|
|
205
|
+
f_reciever:''
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
f_advice:''
|
|
209
|
+
}
|
|
210
|
+
this.ifsearch()
|
|
211
|
+
this.$showMessage(`派发成功!`, ['confirm'])
|
|
212
|
+
return
|
|
213
|
+
}
|
|
214
|
+
})
|
|
215
|
+
},
|
|
216
|
+
repiarmancg(val){
|
|
217
|
+
this.sendselected.serviceacitivity[0].f_reciever = val
|
|
218
|
+
},
|
|
219
|
+
// 获取维修员
|
|
220
|
+
getEmp () {
|
|
221
|
+
// 获取接单人数组
|
|
222
|
+
let http = new HttpResetClass()
|
|
223
|
+
var val = {source: `this.getParentByType($organization$).getChildByName($维修员$).getUsers()`, userid: `${Vue.user.id}`}
|
|
224
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
225
|
+
res.data.forEach((item) => {
|
|
226
|
+
this.repairers.push({label: `${item.name}`, value: item.name})
|
|
227
|
+
})
|
|
228
|
+
})
|
|
229
|
+
},
|
|
230
|
+
ifsearch(){
|
|
231
|
+
this.listData.list = []
|
|
232
|
+
this.listData.index = 0
|
|
233
|
+
this.listData.isEnd = true
|
|
234
|
+
var condition = `1 = 1 and f_workorder_type = '报修单'`
|
|
235
|
+
if(this.username != ''){
|
|
236
|
+
condition += " and f_user_name like '%" + this.username + "%'"
|
|
237
|
+
}
|
|
238
|
+
if(this.address != ''){
|
|
239
|
+
condition += " and f_address like '%" + this.address + "%'"
|
|
240
|
+
}
|
|
241
|
+
var val = {
|
|
242
|
+
condition:{
|
|
243
|
+
condition:condition,
|
|
244
|
+
sign:'1 = 1'
|
|
245
|
+
},
|
|
246
|
+
userid:Vue.user.name
|
|
247
|
+
}
|
|
248
|
+
//tag
|
|
249
|
+
//tag
|
|
250
|
+
let http = new HttpResetClass()
|
|
251
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorService`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
252
|
+
this.rows = res.data
|
|
253
|
+
this.showMore()
|
|
254
|
+
})
|
|
255
|
+
},
|
|
256
|
+
selected (row) {
|
|
257
|
+
this.sendselected = Object.assign({}, this.sendselected, row)
|
|
258
|
+
this.sendshow =true
|
|
259
|
+
},
|
|
260
|
+
undo(){
|
|
261
|
+
this.sendselected ={
|
|
262
|
+
serviceacitivity:[
|
|
263
|
+
{
|
|
264
|
+
f_service_acitivity_type: '派单',
|
|
265
|
+
f_reciever:''
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
f_advice:''
|
|
269
|
+
}
|
|
270
|
+
this.sendshow = false
|
|
271
|
+
this.ifsearch()
|
|
272
|
+
},
|
|
273
|
+
makeAPhoneCall(phoneNumber) {
|
|
274
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
275
|
+
},
|
|
276
|
+
showMore() {
|
|
277
|
+
if (!this.rows) {
|
|
278
|
+
return
|
|
279
|
+
}
|
|
280
|
+
let endIndex = this.listData.index + 10
|
|
281
|
+
if (endIndex > this.rows.length) {
|
|
282
|
+
endIndex = this.rows.length
|
|
283
|
+
}
|
|
284
|
+
for (; this.listData.index < endIndex; this.listData.index++) {
|
|
285
|
+
this.listData.list.push(this.rows[this.listData.index])
|
|
286
|
+
}
|
|
287
|
+
if(this.listData.index == this.rows.length){
|
|
288
|
+
this.listData.isEnd = true
|
|
289
|
+
}else {
|
|
290
|
+
this.listData.isEnd = false
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
ready () {
|
|
295
|
+
this.getEmp()
|
|
296
|
+
this.ifsearch()
|
|
297
|
+
},
|
|
298
|
+
components: {
|
|
299
|
+
FailureShow,
|
|
300
|
+
'failure-show': FailureShow
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
</script>
|
|
304
|
+
<style scoped>
|
|
305
|
+
.searBtn {
|
|
306
|
+
background: #FFFFFF;
|
|
307
|
+
color: #0096fb;
|
|
308
|
+
border: 1px solid #0096fb;
|
|
309
|
+
border-radius: 5px;
|
|
310
|
+
padding: 8px;
|
|
311
|
+
text-align: center;
|
|
312
|
+
font-size: 1.2em;
|
|
313
|
+
z-index: 10;
|
|
314
|
+
opacity:0.5;
|
|
315
|
+
bottom: 50px;
|
|
316
|
+
margin-top: -10px;
|
|
317
|
+
height: 40px;
|
|
318
|
+
}
|
|
319
|
+
.bg {
|
|
320
|
+
background-color: #499edf;
|
|
321
|
+
height: 1px;
|
|
322
|
+
border: 0;
|
|
323
|
+
}
|
|
324
|
+
.app-row {
|
|
325
|
+
background-color: white;
|
|
326
|
+
padding: 10px 10px 0 10px;
|
|
327
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
328
|
+
}
|
|
329
|
+
.search_input {
|
|
330
|
+
border: 0;
|
|
331
|
+
outline: none;
|
|
332
|
+
}
|
|
333
|
+
.font{
|
|
334
|
+
font: 15px PingFang-SC-Medium;
|
|
335
|
+
color: #666666;
|
|
336
|
+
}
|
|
337
|
+
.input-font{
|
|
338
|
+
font: 15px PingFang-SC-Medium;
|
|
339
|
+
color: #333333;
|
|
340
|
+
}
|
|
341
|
+
.btn-font{
|
|
342
|
+
font:600 16px PingFang-SC-Bold;
|
|
343
|
+
color: #499EDF;
|
|
344
|
+
}
|
|
345
|
+
.btn-color{
|
|
346
|
+
background-color: #FFFFFF;
|
|
347
|
+
border-radius: 10px ;
|
|
348
|
+
border: 1px solid #499EDF;
|
|
349
|
+
}
|
|
350
|
+
.panel-blue-border {
|
|
351
|
+
border: 1px solid #499edf;
|
|
352
|
+
border-radius: 5px;
|
|
353
|
+
}
|
|
354
|
+
</style>
|