master
parent
4e2c174df4
commit
0d6cc29311
|
@ -135,7 +135,7 @@
|
||||||
<view class="home-fun-box">
|
<view class="home-fun-box">
|
||||||
<view class="fun-title col3 fon28 disac bold">工单数据</view>
|
<view class="fun-title col3 fon28 disac bold">工单数据</view>
|
||||||
<view class="disac mar-s30">
|
<view class="disac mar-s30">
|
||||||
<view @tap="stayEv(item.title)" class="disjcac fc width25" v-for="(item,index) in workOrderList" :key="index">
|
<view @tap="stayEv(item.id)" class="disjcac fc width25" v-for="(item,index) in workOrderList" :key="index">
|
||||||
<view class="posir" style="height: 60rpx;">
|
<view class="posir" style="height: 60rpx;">
|
||||||
<image :style="{width: [59,56,58,58][index]+'rpx',height:[49,58,58,60][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
<image :style="{width: [59,56,58,58][index]+'rpx',height:[49,58,58,60][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
|
||||||
<view class="engineer-num" v-if="item.num!=0">{{item.num}}</view>
|
<view class="engineer-num" v-if="item.num!=0">{{item.num}}</view>
|
||||||
|
@ -241,7 +241,7 @@
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
role: 1, // 1:业务员 2:表示客户 3:表示客服 4:表示工程师
|
role: 4, // 1:业务员 2:表示客户 3:表示客服 4:表示工程师
|
||||||
statusHeight: uni.getSystemInfoSync().statusBarHeight + 50,
|
statusHeight: uni.getSystemInfoSync().statusBarHeight + 50,
|
||||||
messageNumber: 16 ,// 消息数量
|
messageNumber: 16 ,// 消息数量
|
||||||
noticeList:['2021年11月06日公司团建,维修服务暂停一天服务暂停一天服务暂停一天。','51akslfj;dkpiojasdjf;j1ij'],//公告
|
noticeList:['2021年11月06日公司团建,维修服务暂停一天服务暂停一天服务暂停一天。','51akslfj;dkpiojasdjf;j1ij'],//公告
|
||||||
|
@ -281,7 +281,7 @@
|
||||||
workOrderList:[
|
workOrderList:[
|
||||||
{imgsrc:'/static/public/icon-home-abnormalSingle.png',title:'异常单',num:0},
|
{imgsrc:'/static/public/icon-home-abnormalSingle.png',title:'异常单',num:0},
|
||||||
{imgsrc:'/static/public/icon-home-overdueSingle.png',title:'逾期单',num:0},
|
{imgsrc:'/static/public/icon-home-overdueSingle.png',title:'逾期单',num:0},
|
||||||
{imgsrc:'/static/public/icon-home-overtime.png',title:'超时单 ',num:0},
|
// {imgsrc:'/static/public/icon-home-overtime.png',title:'超时单 ',num:0},
|
||||||
{imgsrc:'/static/public/icon-home-workOrderPool.png',title:'工单池',num:6,},
|
{imgsrc:'/static/public/icon-home-workOrderPool.png',title:'工单池',num:6,},
|
||||||
],
|
],
|
||||||
// 结算情况
|
// 结算情况
|
||||||
|
@ -322,8 +322,29 @@
|
||||||
this.getIncrementServiceType();
|
this.getIncrementServiceType();
|
||||||
// 调用获取常见故障列表事件
|
// 调用获取常见故障列表事件
|
||||||
this.getFaultsList();
|
this.getFaultsList();
|
||||||
|
//调用工单类型
|
||||||
|
this.getWorkOrderType()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 工单类型
|
||||||
|
getWorkOrderType(){
|
||||||
|
|
||||||
|
this.$requst.get('/universal/api.order/order_type', ).then(res => {
|
||||||
|
if (res.code == 1) {
|
||||||
|
|
||||||
|
for (var i = 0; i < res.data.length; i++) {
|
||||||
|
|
||||||
|
for (var k = 0; k < this.workOrderList.length; k++) {
|
||||||
|
if(res.data[i].name== this.workOrderList[k].title){
|
||||||
|
this.$set(this.workOrderList,k,{...this.workOrderList[k],id:res.data[i].id})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
goNoticeDetail(e){
|
goNoticeDetail(e){
|
||||||
console.log(e);
|
console.log(e);
|
||||||
},
|
},
|
||||||
|
|
|
@ -98,9 +98,9 @@
|
||||||
dataPage:{
|
dataPage:{
|
||||||
list_rows:10,
|
list_rows:10,
|
||||||
page:1,
|
page:1,
|
||||||
order_status:"",
|
// order_status:"",
|
||||||
order_times:"",
|
// order_times:"",
|
||||||
keyword:""
|
// keyword:""
|
||||||
},
|
},
|
||||||
dataList:[
|
dataList:[
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue