telephone-clients 3.0.97 → 3.0.98-10
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/android/AddMyTask.vue +75 -33
- package/src/components/guoxin/Console.vue +11 -1
- package/src/components/workorder/FaultAll.vue +10 -0
- package/src/filiale/hanzhong/pc/message/AllUserNew.vue +3 -3
- package/src/filiale/kelai/android/RepairOrderV.vue +1 -1
- package/src/filiale/qianneng/android/AppInstallationMaterial.vue +363 -282
- package/src/filiale/qianneng/android/FaultAll.vue +302 -292
- package/src/filiale/qianneng/android/MaterIialOne.vue +22 -9
- package/src/filiale/qianneng/android/RepairDetails.vue +2 -2
- package/src/filiale/qianneng/android/RepairOrderV.vue +4 -0
- package/src/filiale/qianneng/android/chargesList.vue +161 -0
- package/src/filiale/qianneng/pc/MaterialDetailed.vue +15 -0
- package/src/filiale/qianneng/pc/RepairsWork.vue +28 -0
- package/src/filiale/shexian/android/RepairFirstV.vue +1 -11
- package/src/filiale/shexian/android/RepairInfo.vue +171 -0
- package/src/filiale/shexian/android/RepairOrderV.vue +10 -8
- package/src/filiale/shexian/telephoneAndroid.js +9 -3
- package/src/filiale/tongchuan/pc/CheckWork.vue +2 -3
- package/src/main.js +1 -1
package/package.json
CHANGED
|
@@ -103,13 +103,13 @@
|
|
|
103
103
|
</div>
|
|
104
104
|
<div class="col-xs-8" >
|
|
105
105
|
<v-select
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
:value.sync="model.f_repairtype"
|
|
107
|
+
v-model="model.f_repairtype"
|
|
108
|
+
:options='$parent.$parent.repairTypeOptions'
|
|
109
|
+
placeholder='请选择'
|
|
110
|
+
close-on-select
|
|
111
|
+
:value-single="true"
|
|
112
|
+
condition="f_repairtype like '%{}%'"
|
|
113
113
|
></v-select>
|
|
114
114
|
</div>
|
|
115
115
|
</div>
|
|
@@ -162,6 +162,13 @@
|
|
|
162
162
|
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
|
|
163
163
|
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_address }} {{row.f_contact_name}} </p>
|
|
164
164
|
</div>
|
|
165
|
+
<div class="col-xs-12">
|
|
166
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>联系电话:</b></p>
|
|
167
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_contact_phone || '无' }}
|
|
168
|
+
<img src="../../assets/telphonesend.png" style="width: 12px;"
|
|
169
|
+
@click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_contact_phone)'>
|
|
170
|
+
</p>
|
|
171
|
+
</div>
|
|
165
172
|
<div class="col-xs-6">
|
|
166
173
|
<p class="panel-title col-xs-5 text-left font" style="float: left"><b>派单员:</b></p>
|
|
167
174
|
<p class="panel-title col-xs-7 text-left input-font">{{row.f_attendant}} </p>
|
|
@@ -170,6 +177,10 @@
|
|
|
170
177
|
<p class="panel-title col-xs-5 text-left font" style="float: left"><b>故障明细:</b></p>
|
|
171
178
|
<p class="panel-title col-xs-7 text-left input-font">{{$parent.$parent.$parent.getfailure(row.failure)}} </p>
|
|
172
179
|
</div>
|
|
180
|
+
<div class="col-xs-12" v-show="row.f_remarks">
|
|
181
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>工单备注:</b></p>
|
|
182
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_remarks }}</p>
|
|
183
|
+
</div>
|
|
173
184
|
<div class="col-xs-12">
|
|
174
185
|
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.inspect(row)">接单</button>
|
|
175
186
|
</div>
|
|
@@ -200,11 +211,16 @@ export default {
|
|
|
200
211
|
// userid: Vue.user.ename
|
|
201
212
|
},
|
|
202
213
|
repairTypeOptions: [{label: '全部', value: ''}],
|
|
203
|
-
typeData: []
|
|
214
|
+
typeData: [],
|
|
215
|
+
showMessage: true
|
|
204
216
|
}
|
|
205
217
|
},
|
|
206
218
|
ready(){
|
|
207
219
|
this.$refs.paged.$refs.cri.search()
|
|
220
|
+
if (this.$appdata.getSingleValue('取消在线接单二次确定') === '是') {
|
|
221
|
+
this.showMessage = false
|
|
222
|
+
}
|
|
223
|
+
console.log(this.showMessage)
|
|
208
224
|
},
|
|
209
225
|
mounted(){
|
|
210
226
|
|
|
@@ -216,7 +232,7 @@ export default {
|
|
|
216
232
|
// 获取现有的报修类型对应的数量
|
|
217
233
|
async initRepairTypeNum() {
|
|
218
234
|
this.typeData = []
|
|
219
|
-
this.repairTypeOptions = []
|
|
235
|
+
this.repairTypeOptions = [{label: '全部', value: ''}]
|
|
220
236
|
const http = new HttpResetClass()
|
|
221
237
|
const res = await http.load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/getOperatorServiceTypeNum`,{data: {condition: `tswo.f_filiale_id = '${Vue.user.orgid}'`}},{resolveMsg: null, rejectMsg: null})
|
|
222
238
|
const plainArray = res.data.map(item => Object.assign({}, item))
|
|
@@ -261,32 +277,58 @@ export default {
|
|
|
261
277
|
return this.model.search(data, args.model)
|
|
262
278
|
},
|
|
263
279
|
inspect(row){
|
|
264
|
-
this
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
let HttpReset = new HttpResetClass()
|
|
278
|
-
HttpReset.load("POST",`${this.$androidUtil.getProxyUrl()}/rs/logic/siteSend`,data).then((res)=>{
|
|
279
|
-
if (res.data.code==300){
|
|
280
|
-
this.$refs.paged.$refs.cri.search()
|
|
281
|
-
return this.$showMessage('没有抢到该单哦!')
|
|
282
|
-
}else {
|
|
283
|
-
this.$refs.paged.$refs.cri.search()
|
|
284
|
-
return this.$showMessage('接单成功!请及时处理。')
|
|
280
|
+
if (this.showMessage) {
|
|
281
|
+
this.$showMessage(`确定要接编号为${row.f_service_id}的单子吗?`, ['confirm', 'cancel']).then((isconfirm)=>{
|
|
282
|
+
//tag)
|
|
283
|
+
if (isconfirm === 'confirm') {
|
|
284
|
+
let userdata = Object.assign({}, userdata, row)
|
|
285
|
+
userdata.f_advice = '自我接单'
|
|
286
|
+
userdata.serviceacitivity = [] //Vue.user.name
|
|
287
|
+
userdata.serviceacitivity.push({f_reciever: Vue.user.name})
|
|
288
|
+
let data = ''
|
|
289
|
+
data = {
|
|
290
|
+
model: userdata,
|
|
291
|
+
// loginUser: {name: '何文强', ename: 'hwq'}
|
|
292
|
+
loginUser: {name: Vue.user.name, ename: Vue.user.ename}
|
|
285
293
|
}
|
|
286
|
-
|
|
294
|
+
let HttpReset = new HttpResetClass()
|
|
295
|
+
HttpReset.load("POST",`${this.$androidUtil.getProxyUrl()}/rs/logic/siteSend`,data).then((res)=>{
|
|
296
|
+
if (res.data.code==300){
|
|
297
|
+
this.$refs.paged.$refs.cri.search()
|
|
298
|
+
return this.$showMessage('没有抢到该单哦!')
|
|
299
|
+
}else {
|
|
300
|
+
this.$refs.paged.$refs.cri.search()
|
|
301
|
+
return this.$showMessage('接单成功!请及时处理。')
|
|
302
|
+
}
|
|
303
|
+
})
|
|
304
|
+
}
|
|
305
|
+
})
|
|
306
|
+
} else {
|
|
307
|
+
let userdata = Object.assign({}, userdata, row)
|
|
308
|
+
userdata.f_advice = '自我接单'
|
|
309
|
+
userdata.serviceacitivity = [] //Vue.user.name
|
|
310
|
+
userdata.serviceacitivity.push({f_reciever: Vue.user.name})
|
|
311
|
+
let data = ''
|
|
312
|
+
data = {
|
|
313
|
+
model: userdata,
|
|
314
|
+
// loginUser: {name: '何文强', ename: 'hwq'}
|
|
315
|
+
loginUser: {name: Vue.user.name, ename: Vue.user.ename}
|
|
287
316
|
}
|
|
288
|
-
|
|
289
|
-
|
|
317
|
+
let HttpReset = new HttpResetClass()
|
|
318
|
+
HttpReset.load("POST",`${this.$androidUtil.getProxyUrl()}/rs/logic/siteSend`,data).then((res)=>{
|
|
319
|
+
if (res.data.code==300){
|
|
320
|
+
this.$refs.paged.$refs.cri.search()
|
|
321
|
+
return this.$showMessage('没有抢到该单哦!')
|
|
322
|
+
}else {
|
|
323
|
+
this.$refs.paged.$refs.cri.search()
|
|
324
|
+
return this.$showMessage('接单成功!请及时处理。')
|
|
325
|
+
}
|
|
326
|
+
})
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
makeAPhoneCall(phoneNumber) {
|
|
330
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
331
|
+
},
|
|
290
332
|
},
|
|
291
333
|
computed:{
|
|
292
334
|
|
|
@@ -81,6 +81,8 @@
|
|
|
81
81
|
data() {
|
|
82
82
|
return {
|
|
83
83
|
flgwaihu:false,
|
|
84
|
+
url7397:this.$appdata.getSingleValue('语音系统网关'),
|
|
85
|
+
url12121:this.$appdata.getSingleValue("呼叫系统网关"),
|
|
84
86
|
flagip: true,
|
|
85
87
|
showclick: false,
|
|
86
88
|
shownotclick: true,
|
|
@@ -111,8 +113,16 @@
|
|
|
111
113
|
this.initPhone = ''
|
|
112
114
|
this.zhixian()
|
|
113
115
|
})
|
|
116
|
+
if(!this.url7397 || !this.url12121){
|
|
117
|
+
var message = ''
|
|
118
|
+
message += this.url12121?"":"所属分公司 语音系统网关 未配置;"
|
|
119
|
+
message += this.url7397?"":"所属分公司 呼叫系统网关 未配置;"
|
|
120
|
+
message += "请配置后重新登录"
|
|
121
|
+
this.$showMessage(message)
|
|
122
|
+
return
|
|
123
|
+
}
|
|
114
124
|
if(!this.$webSocket){
|
|
115
|
-
this.$webSocket = new StateContainer(
|
|
125
|
+
this.$webSocket = new StateContainer(`ws://${this.url7397}:7397/websocket`);
|
|
116
126
|
this.$webSocket.oncnnsucc = (event) => {
|
|
117
127
|
//tag
|
|
118
128
|
this.zhixian()
|
|
@@ -508,6 +508,16 @@ export default {
|
|
|
508
508
|
error.ifmust = true
|
|
509
509
|
return error
|
|
510
510
|
}
|
|
511
|
+
if(this.msg.f_source == '安检' && this.msg.serviceacitivity[0].servicerepair[i].details[j].f_defect_id && this.msg.serviceacitivity[0].servicerepair[i].details[j].f_content == '已处理'&& !this.msg.serviceacitivity[0].servicerepair[i].details[j].f_first_repairimg){
|
|
512
|
+
error.msg = `${this.msg.serviceacitivity[0].servicerepair[i].f_type}中${this.msg.serviceacitivity[0].servicerepair[i].details[j].f_project}的维修照片`
|
|
513
|
+
error.ifmust = true
|
|
514
|
+
return error
|
|
515
|
+
}
|
|
516
|
+
if(this.msg.f_source == '安检' && this.msg.serviceacitivity[0].servicerepair[i].details[j].f_defect_id && !this.msg.serviceacitivity[0].servicerepair[i].details[j].f_content){
|
|
517
|
+
error.msg = `${this.msg.serviceacitivity[0].servicerepair[i].f_type}中${this.msg.serviceacitivity[0].servicerepair[i].details[j].f_project}`
|
|
518
|
+
error.ifmust = true
|
|
519
|
+
return error
|
|
520
|
+
}
|
|
511
521
|
}
|
|
512
522
|
}
|
|
513
523
|
return error
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
<th><nobr>模板id</nobr></th>
|
|
265
265
|
<!-- <th><nobr>自动短信</nobr></th>-->
|
|
266
266
|
<th><nobr><b>创建人</b></nobr></th>
|
|
267
|
-
|
|
267
|
+
<th><nobr>操作</nobr></th>
|
|
268
268
|
</tr>
|
|
269
269
|
</template>
|
|
270
270
|
<template partial='body'>
|
|
@@ -278,9 +278,9 @@
|
|
|
278
278
|
<button v-show="row.f_auto_send != 1" type="button" class="btn btn-success width-30" @click='$parent.$parent.$parent.$parent.autoSend(row,1)'>启动</button>
|
|
279
279
|
</td>-->
|
|
280
280
|
<td style="text-align: center;"><b>{{row.f_operator}}</b></td>
|
|
281
|
-
|
|
281
|
+
<td style="text-align: center;"><nobr>
|
|
282
282
|
<a @click='$parent.$parent.$parent.$parent.edit(row)'>编辑</a> <a @click='$parent.$parent.$parent.$parent.senddelete(row)'>删除</a>
|
|
283
|
-
</nobr></td
|
|
283
|
+
</nobr></td>
|
|
284
284
|
</template>
|
|
285
285
|
</data-grid>
|
|
286
286
|
</criteria-paged>
|
|
@@ -575,7 +575,7 @@ export default {
|
|
|
575
575
|
let repairitem = []
|
|
576
576
|
for (var i = 0;i< this.repairdetails[j].details.length;i++) {
|
|
577
577
|
if(this.row.f_source == '安检'){
|
|
578
|
-
repairitem.push({f_project:this.repairdetails[j].details[i].f_project,type:this.repairdetails[j].details[i].type,f_defect_id:this.repairdetails[j].details[i].f_defect_id,f_status:''})
|
|
578
|
+
repairitem.push({f_project:this.repairdetails[j].details[i].f_project,f_defect_remark:this.repairdetails[j].details[i].f_defect_remark,type:this.repairdetails[j].details[i].type,f_defect_id:this.repairdetails[j].details[i].f_defect_id,f_status:'',f_content:''})
|
|
579
579
|
}else{
|
|
580
580
|
repairitem.push({f_project:this.repairdetails[j].details[i].f_project,type:this.repairdetails[j].details[i].type,f_status:'',f_content:'',f_is_must:this.repairdetails[j].details[i].f_is_must ? 'true':'false'})
|
|
581
581
|
}
|