master
tangyi 2022-04-01 10:17:21 +08:00
parent 4e2c174df4
commit 0d6cc29311
2 changed files with 473 additions and 452 deletions

View File

@ -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);
}, },

View File

@ -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:[