首页链接调通,工单列表状态调整

master
chen 2022-03-30 09:04:25 +08:00
parent 93429f8edb
commit 842a60027b
7 changed files with 502 additions and 404 deletions

View File

@ -220,7 +220,6 @@ moreColor:显示更多的颜色
delayTime = unitRunTime * 3.5; delayTime = unitRunTime * 3.5;
dispairTime = unitRunTime * 1.5; dispairTime = unitRunTime * 1.5;
// #endif // #endif
let showTransformHeight = -uni.upx2px(that.height); let showTransformHeight = -uni.upx2px(that.height);
let hideTransformHeight = showTransformHeight * 2; let hideTransformHeight = showTransformHeight * 2;
// //

View File

@ -160,8 +160,8 @@
'/pagesB/personal-information/personal-information', '/pagesB/personal-information/personal-information',
'/pagesB/electronic-certificate/electronic-certificate', '/pagesB/electronic-certificate/electronic-certificate',
'/pagesB/service-range/service-range', '/pagesB/service-range/service-range',
'/pagesB/i-want-evaluate/i-want-evaluate', '/pages/workOrder/workOrderLlsit?status=已完成',
'/pagesB/my-account/my-account', '/pagesB/my-account/my-account?index=0',
'/pagesB/set-up/set-up', '/pagesB/set-up/set-up',
]; ];
uni.navigateTo({ uni.navigateTo({

View File

@ -57,7 +57,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" style="height: 58rpx;">
<view @tap="goFaultRepair(index)" class="disjcac fc width25" v-for="(item,index) in repairList" :key="index"> <view @tap="goFaultRepair(index)" class="disjcac fc width25" v-for="(item,index) in repairList" :key="index">
<image :style="{width: [58,58,50][index]+'rpx',height:[53,56,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image> <image :style="{width: [58,58,50][index]+'rpx',height:[53,56,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
<view class="fon24 col3 mar-s10">{{item.title}}</view> <view class="fon24 col3 mar-s10">{{item.title}}</view>
@ -69,7 +69,7 @@
<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="dataQueryEv(index)" class="disjcac fc width25" v-for="(item,index) in dataQueryList" :key="index"> <view @tap="dataQueryEv(index)" class="disjcac fc width25" v-for="(item,index) in dataQueryList" :key="index">
<view class="posir"> <view class="posir" style="height: 56rpx;">
<image :style="{width: [58,58,58][index]+'rpx',height:[46,56,50][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image> <image :style="{width: [58,58,58][index]+'rpx',height:[46,56,50][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>
</view> </view>
@ -80,7 +80,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" style="height: 56rpx;">
<view @tap="goIncrement(index)" class="disjcac fc width25" v-for="(item,index) in incrementList" :key="index"> <view @tap="goIncrement(index)" class="disjcac fc width25" v-for="(item,index) in incrementList" :key="index">
<image :style="{width: [57,52,58,51][index]+'rpx',height:[56,56,50,56][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image> <image :style="{width: [57,52,58,51][index]+'rpx',height:[56,56,50,56][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
<view class="fon24 col3 mar-s10">{{item.title}}</view> <view class="fon24 col3 mar-s10">{{item.title}}</view>
@ -94,8 +94,8 @@
<view class="home-fun-box" v-if="role==4"> <view class="home-fun-box" v-if="role==4">
<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 class="disjcac fc width25" v-for="(item,index) in projectRepairList" :key="index"> <view @tap="stayEv(item.title)" class="disjcac fc width25" v-for="(item,index) in projectRepairList" :key="index">
<view class="posir"> <view class="posir" style="height: 58rpx;">
<image :style="{width: [53,52,51][index]+'rpx',height:[58,58,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image> <image :style="{width: [53,52,51][index]+'rpx',height:[58,58,58][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>
</view> </view>
@ -108,8 +108,8 @@
<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 class="disjcac fc width25" v-for="(item,index) in stayWorkOrderList" :key="index"> <view @tap="stayEv(item.title)" class="disjcac fc width25" v-for="(item,index) in stayWorkOrderList" :key="index">
<view class="posir"> <view class="posir" style="height: 58rpx;">
<image :style="{width: [53,48,51,58][index]+'rpx',height:[58,58,58,53][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image> <image :style="{width: [53,48,51,58][index]+'rpx',height:[58,58,58,53][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>
</view> </view>
@ -121,8 +121,8 @@
<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 class="disjcac fc width25" v-for="(item,index) in stayEventList" :key="index"> <view @tap="stayEv(item.title)" class="disjcac fc width25" v-for="(item,index) in stayEventList" :key="index">
<view class="posir"> <view class="posir" style="height: 58rpx;">
<image :style="{width: [58,58,50][index]+'rpx',height:[58,54,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image> <image :style="{width: [58,58,50][index]+'rpx',height:[58,54,58][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>
</view> </view>
@ -135,8 +135,8 @@
<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 class="disjcac fc width25" @click="goWorkOrder(index)" v-for="(item,index) in workOrderList" :key="index"> <view @tap="stayEv(item.title)" class="disjcac fc width25" v-for="(item,index) in workOrderList" :key="index">
<view class="posir"> <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>
</view> </view>
@ -149,7 +149,7 @@
<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="dataQueryEv(index)" class="disjcac fc width25" v-for="(item,index) in dataQueryList" :key="index"> <view @tap="dataQueryEv(index)" class="disjcac fc width25" v-for="(item,index) in dataQueryList" :key="index">
<view class="posir"> <view class="posir" style="height: 56rpx;">
<image :style="{width: [58,58,58][index]+'rpx',height:[46,56,50][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image> <image :style="{width: [58,58,58][index]+'rpx',height:[46,56,50][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>
</view> </view>
@ -161,8 +161,8 @@
<view class="home-fun-box" v-if="role==4"> <view class="home-fun-box" v-if="role==4">
<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 class="disjcac fc width25" v-for="(item,index) in settlementList" :key="index"> <view @tap="stayEv(item.title)" class="disjcac fc width25" v-for="(item,index) in settlementList" :key="index">
<view class="posir"> <view class="posir" style="height: 58rpx;">
<image :style="{width: [58,50,58][index]+'rpx',height:[54,58,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image> <image :style="{width: [58,50,58][index]+'rpx',height:[54,58,58][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>
</view> </view>
@ -174,7 +174,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" style="height: 58rpx;">
<view @tap="otherEv(index)" class="disjcac fc width25" v-for="(item,index) in otherList" :key="index"> <view @tap="otherEv(index)" class="disjcac fc width25" v-for="(item,index) in otherList" :key="index">
<image :style="{width: [58,49,58][index]+'rpx',height:[51,58,55][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image> <image :style="{width: [58,49,58][index]+'rpx',height:[51,58,55][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
<view class="fon24 col3 mar-s10">{{item.title}}</view> <view class="fon24 col3 mar-s10">{{item.title}}</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'],//
@ -317,30 +317,13 @@
// url // url
this.$toolAll.tools.obtainUrl(); this.$toolAll.tools.obtainUrl();
// //
this.getPlanType(); // this.getPlanType();
// //
// this.getIncrementServiceType(); // this.getIncrementServiceType();
// //
this.getFaultsList(); this.getFaultsList();
}, },
methods: { methods: {
//
goWorkOrder(index){
if(index==0){
}else if(index==1){
}
else if(index==2){
}
else if(index==3){
uni.navigateTo({
url:'/pages/workOrder/workOrderLlsit'
})
}
},
goNoticeDetail(e){ goNoticeDetail(e){
console.log(e); console.log(e);
}, },
@ -350,6 +333,18 @@
url:`/pages/appreciationServe/appreciationServe?index=${index}` url:`/pages/appreciationServe/appreciationServe?index=${index}`
}) })
}, },
//
stayEv(title) {
let url = '';
if(title=='佣金') {
url = `/pagesB/my-account/my-account?index=1`
} else {
url = `/pages/workOrder/workOrderLlsit?status=${title}`
}
uni.navigateTo({
url:url
})
},
// //
getIncrementServiceType(){ getIncrementServiceType(){
this.$requst.post('/universal/api.vas/vas_type').then(res=>{ this.$requst.post('/universal/api.vas/vas_type').then(res=>{

View File

@ -468,22 +468,12 @@
</view> </view>
</view> </view>
</view> </view>
<view class="button" @tap="goEvaluate(1)"></view>
<view class="button">
我要评价
</view>
</view> </view>
</view> </view>
</view> </view>
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> </view>
</container-subgroup-two> </container-subgroup-two>
@ -604,7 +594,13 @@
}, },
detailsNavpa(index) { detailsNavpa(index) {
this.swiperCurrent = index this.swiperCurrent = index
} },
//
goEvaluate(id) {
uni.navigateTo({
url:`/pagesB/i-want-evaluate/i-want-evaluate?id=${id}`
})
}
} }
} }

View File

@ -1,104 +1,67 @@
<template> <template>
<view class="content"> <view class="content">
<status-nav navBarTitle="工单列表" returnColor="#c2c2c2"></status-nav> <status-nav navBarTitle="工单列表" returnColor="#c2c2c2"></status-nav>
<container-subgroup-two> <container-subgroup-two>
<view slot="content" style="margin: -25rpx -25rpx -0rpx;"> <view slot="content" style="margin: -25rpx -25rpx -0rpx;">
<view class="project-list-input" :style="{top:statusBarHeight + 'px'}"> <view class="project-list-input" :style="{top:statusBarHeight + 'px'}">
<input type="text" class="int" value="" placeholder="请输入关键字" /> <input type="text" class="int" value="" placeholder="请输入关键字" />
<image class="search" src="../../static/iocn/ss.png" mode=""></image> <image class="search" src="../../static/iocn/ss.png" mode=""></image>
<view class="xian"> <view class="xian"></view>
</view>
</view> <view class="screen">
</view> <picker @change="bindPickerChange" :value="workeOrderStatusIndex" :range="array" :range-key="'title'">
<view class="li">
<view class="screen"> <view class="text" v-if="workeOrderStatus!=''">{{workeOrderStatus}}</view>
<picker @change="bindPickerChange" :value="index" :range="array"> <view class="text" v-else>{{array[workeOrderStatusIndex].title}}</view>
<view class="li"> <image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image>
<view class="text"> </view>
工单状态 </picker>
</view> <picker mode="date" :value="date" @change="bindDateChange">
<image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image> <view class="li">
<view class="text">工单日期</view>
</view> <image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image>
</picker> </view>
<picker mode="date" :value="date" @change="bindDateChange"> </picker>
<view class="li">
<view class="li"> <view class="text">筛选</view>
<view class="text"> <image class="imgA" src="../../static/iocn/sx.png" mode="aspectFill"></image>
工单日期 </view>
</view> </view>
<image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image> <view class="project-list">
</view> <view class="li" @click="projectDetailsFun()" v-for="(item,index) in dataList" :key="index">
<view class="work-order-code">工单编号{{item.orderNum}}</view>
</picker> <view class="message">
<image class="img" src="../../static/del/img001.png" mode="aspectFill"></image>
<view class="li"> <view class="text">
<view class="text"> <view class="title">
筛选 <view class="text clips1">{{item.title}}</view>
</view> <view class="icon" :style="{backgroundColor: item.backgroundColor}">{{['','待受理','等待派工','待接单','待维修','维修中','待收款','待审批','已完成','待回访','异常单','逾期单','超时单'][item.status]}}</view>
<image class="imgA" src="../../static/iocn/sx.png" mode="aspectFill"></image> </view>
</view> <view class="disjb fc" style="margin-left: -20rpx;height: 70%;">
</view> <view class="serial-number scal09">
<view class="type">{{item.faultType}}</view>
<view class="project-list"> <view class="date">已故障{{item.faultTime}}</view>
<view class="li" @click="projectDetailsFun()"> </view>
<view class="work-order-code"> <view class="specification scal09">
工单编号222226666558 紧急程度<view class="text"> {{item.urgentText}}</view>
</view> </view>
<view class="message"> <view class="specification scal09">主负责人{{item.name}}</view>
<image class="img" src="../../static/del/img001.png" mode="aspectFill"></image> <view class="installation-site scal09">故障描述{{item.describe}}</view>
</view>
<view class="text"> </view>
<view class="title"> </view>
<view class="project-list-address">
<view class="text clips1"> <view class="address clips2">
长沙市望城区xxxxxx项目名称 <image class="img" src="../../static/iocn/dz2.png" mode="aspectFill"></image>
</view> <view class="text">{{item.address}}</view>
<view class="icon"> </view>
待维修 <view class="date" v-if="item.status!=8 && item.status!=9">
</view> 催一催 <image class="img" src="../../static/iocn/ld.png" mode=""></image>
</view> </view>
<view class="disjb fc" style="margin-left: -20rpx;height: 70%;"> </view>
<view class="serial-number scal09"> </view>
<view class="type"> <!-- <view class="li" @click="projectDetailsFun()">
#网络故障#
</view>
<view class="date">
已故障2小时37分
</view>
</view>
<view class="specification scal09">
紧急程度<view class="text"> 加急
</view>
</view>
<view class="specification scal09">
主负责人陈志远
</view>
<view class="installation-site scal09">
故障描述LED显示屏开机后闪屏不显示内容主控电
脑提示网络不通
</view>
</view>
</view>
</view>
<view class="project-list-address">
<view class="address clips2">
<image class="img" src="../../static/iocn/dz2.png" mode="aspectFill"></image>
<view class="text" >
湖南省长沙市高新开发区谷园路109号像素大厦1205
</view>
</view>
<view class="date">
催一催 <image class="img" src="../../static/iocn/ld.png" mode=""></image>
</view>
</view>
</view>
<!-- <view class="li" @click="projectDetailsFun()">
<view class="work-order-code"> <view class="work-order-code">
工单编号222226666558 工单编号222226666558
</view> </view>
@ -205,312 +168,452 @@
</view> </view>
--> -->
</view> </view>
</view>
</container-subgroup-two>
</view> </view>
</container-subgroup-two>
</view>
</template> </template>
<script> <script>
import containerSubgroupTwo from '@/components/containers/container-subgroup-two.vue'; import containerSubgroupTwo from '@/components/containers/container-subgroup-two.vue';
import statusNav from '../../components/status-nav.vue'; import statusNav from '../../components/status-nav.vue';
import footTabOne from "../../components/foot-tabs/foot-tab-one.vue" import footTabOne from "../../components/foot-tabs/foot-tab-one.vue"
export default { export default {
components: { components: {
footTabOne, footTabOne,
statusNav, statusNav,
containerSubgroupTwo containerSubgroupTwo
}, },
data() { data() {
const currentDate = this.getDate({ const currentDate = this.getDate({
format: true format: true
}) })
return { return {
statusBarHeight:uni.getSystemInfoSync().statusBarHeight+40, statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 40,
role: 4, // 1 2: 3: 4 role: 4, // 1 2: 3: 4
date: currentDate, date: currentDate,
array: ['类型', '类型', '类型', '类型'], workeOrderStatus:'工单状态',
index: 0, array: [
{id:1,title:'待受理'},
{id:2,title:'待指派'},
} {id:3,title:'待接单'},
}, {id:4,title:'待维修'},
onLoad() { {id:5,title:'维修中'},
{id:6,title:'待收款'},
}, {id:7,title:'待审批'},
methods: { {id:8,title:'已收款'},
projectDetailsFun() { {id:9,title:'待回访'},
{id:10,title:'异常单'},
if(this.role==4){ {id:11,title:'逾期单'},
uni.navigateTo({ {id:12,title:'超时单'}
url: "/pages/workOrder/workOrder" ],
}) workeOrderStatusIndex: 0,
}else{ dataList:[
uni.navigateTo({ {
url: "/pages/workOrder/details" id:1,
}) orderNum:'222226666558',
} title:'长沙市望城区xxxxxx项目名称',
status:1,
}, backgroundColor:'#ff0000',
bindPickerChange(data) { faultType:'#网络故障#',
console.log(data) faultTime:'2小时37分',
}, urgentText:'加急',
bindDateChange(date) { name:'陈志远',
console.log(date) describe:'LED显示屏开机后闪屏不显示内容。主控电脑提示网络不通',
}, address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
getDate(type) { },
const date = new Date(); {
let year = date.getFullYear(); id:2,
let month = date.getMonth() + 1; orderNum:'222226666558',
let day = date.getDate(); title:'长沙市望城区xxxxxx项目名称',
status:2,
backgroundColor:'#112233',
faultType:'#网络故障#',
faultTime:'2小时37分',
urgentText:'加急',
name:'陈志远',
describe:'LED显示屏开机后闪屏不显示内容。主控电脑提示网络不通',
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
},
{
id:3,
orderNum:'222226666558',
title:'长沙市望城区xxxxxx项目名称',
status:3,
backgroundColor:'#ff00ff',
faultType:'#网络故障#',
faultTime:'2小时37分',
urgentText:'加急',
name:'陈志远',
describe:'LED显示屏开机后闪屏不显示内容。主控电脑提示网络不通',
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
},
{
id:3,
orderNum:'222226666558',
title:'长沙市望城区xxxxxx项目名称',
status:4,
backgroundColor:'#303545',
faultType:'#网络故障#',
faultTime:'2小时37分',
urgentText:'加急',
name:'陈志远',
describe:'LED显示屏开机后闪屏不显示内容。主控电脑提示网络不通',
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
},
{
id:3,
orderNum:'222226666558',
title:'长沙市望城区xxxxxx项目名称',
status:5,
backgroundColor:'#006677',
faultType:'#网络故障#',
faultTime:'2小时37分',
urgentText:'加急',
name:'陈志远',
describe:'LED显示屏开机后闪屏不显示内容。主控电脑提示网络不通',
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
},
{
id:3,
orderNum:'222226666558',
title:'长沙市望城区xxxxxx项目名称',
status:6,
backgroundColor:'#669955',
faultType:'#网络故障#',
faultTime:'2小时37分',
urgentText:'加急',
name:'陈志远',
describe:'LED显示屏开机后闪屏不显示内容。主控电脑提示网络不通',
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
},
{
id:3,
orderNum:'222226666558',
title:'长沙市望城区xxxxxx项目名称',
status:7,
backgroundColor:'#558899',
faultType:'#网络故障#',
faultTime:'2小时37分',
urgentText:'加急',
name:'陈志远',
describe:'LED显示屏开机后闪屏不显示内容。主控电脑提示网络不通',
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
},
{
id:3,
orderNum:'222226666558',
title:'长沙市望城区xxxxxx项目名称',
status:8,
backgroundColor:'#336655',
faultType:'#网络故障#',
faultTime:'2小时37分',
urgentText:'加急',
name:'陈志远',
describe:'LED显示屏开机后闪屏不显示内容。主控电脑提示网络不通',
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
},
{
id:3,
orderNum:'222226666558',
title:'长沙市望城区xxxxxx项目名称',
status:9,
backgroundColor:'#224455',
faultType:'#网络故障#',
faultTime:'2小时37分',
urgentText:'加急',
name:'陈志远',
describe:'LED显示屏开机后闪屏不显示内容。主控电脑提示网络不通',
address:'湖南省长沙市高新开发区谷园路109号像素大厦1205'
},
]
if (type === 'start') { }
year = year - 60; },
} else if (type === 'end') { onLoad(op) {
year = year + 2; this.workeOrderStatusIndex = this.array.findIndex(item=>item.title==op.status);
} if(this.workeOrderStatusIndex!=-1) this.workeOrderStatus = '';
month = month > 9 ? month : '0' + month; },
day = day > 9 ? day : '0' + day; methods: {
console.log(year, month, day) projectDetailsFun() {
return `${year}-${month}-${day}`;
} if (this.role == 4) {
} uni.navigateTo({
} url: "/pages/workOrder/workOrder"
})
} else {
uni.navigateTo({
url: "/pages/workOrder/details"
})
}
},
bindPickerChange(data) {
console.log(data)
this.workeOrderStatus = '';
this.workeOrderStatusIndex = data.detail.value;
},
bindDateChange(date) {
console.log(date)
},
getDate(type) {
const date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1;
let day = date.getDate();
if (type === 'start') {
year = year - 60;
} else if (type === 'end') {
year = year + 2;
}
month = month > 9 ? month : '0' + month;
day = day > 9 ? day : '0' + day;
console.log(year, month, day)
return `${year}-${month}-${day}`;
}
}
}
</script> </script>
<style scoped> <style scoped>
page { page {
background-color: #F7F7F7; background-color: #F7F7F7;
} }
.project-list-input .xian { .project-list-input .xian {
width: 3rpx; width: 3rpx;
height: 35rpx; height: 35rpx;
position: absolute; position: absolute;
background-color: #EAEAEA; background-color: #EAEAEA;
right: 100rpx; right: 100rpx;
top: 50%; top: 50%;
margin-top: -14rpx; margin-top: -14rpx;
} }
.project-list-input {
width: 100%;
height: 114rpx;
position: fixed;
z-index: 2;
padding: 20rpx 16rpx;
box-sizing: border-box;
background-color: #FFFFFF
}
.project-list-input .int { .project-list-input {
width: 100%; width: 100%;
height: 100%; height: 114rpx;
background-color: #F7F7F7; position: fixed;
padding: 0 25rpx; z-index: 2;
box-sizing: border-box; padding: 20rpx 16rpx;
border-radius: 36rpx; box-sizing: border-box;
} background-color: #FFFFFF
}
.project-list-input .search { .project-list-input .int {
width: 28rpx; width: 100%;
height: 28rpx; height: 100%;
position: absolute; background-color: #F7F7F7;
right: 43rpx; padding: 0 25rpx;
top: 50%; box-sizing: border-box;
margin-top: -14rpx; border-radius: 36rpx;
} }
.screen { .project-list-input .search {
display: flex; width: 28rpx;
justify-content: space-around; height: 28rpx;
padding: 25rpx 20rpx; position: absolute;
border-bottom: 2rpx solid #E6E6E6; right: 43rpx;
border-top: 2rpx solid #E6E6E6; top: 50%;
margin: 20rpx 0rpx; margin-top: -14rpx;
} }
.screen .li { .screen {
display: flex; display: flex;
align-items: center; justify-content: space-around;
padding: 25rpx 20rpx;
border-bottom: 2rpx solid #E6E6E6;
border-top: 2rpx solid #E6E6E6;
margin: 20rpx 0rpx;
margin-top: 57px;
}
} .screen .li {
display: flex;
align-items: center;
.screen .li .text { }
font-size: 32rpx;
color: #333333;
margin-right: 10rpx;
}
.screen .li .img { .screen .li .text {
width: 14rpx; font-size: 32rpx;
height: 8rpx; color: #333333;
position: relative; margin-right: 10rpx;
z-index: 1; }
}
.screen .li .imgA { .screen .li .img {
width: 24rpx; width: 14rpx;
height: 23rpx; height: 8rpx;
} position: relative;
z-index: 1;
}
.project-list .li { .screen .li .imgA {
width: 710rpx; width: 24rpx;
box-sizing: border-box; height: 23rpx;
background-color: #FFFFFF; }
position: relative;
margin: auto; .project-list .li {
margin-bottom: 20rpx; width: 710rpx;
padding: 33rpx 23rpx; box-sizing: border-box;
} background-color: #FFFFFF;
position: relative;
margin: auto;
margin-bottom: 20rpx;
padding: 33rpx 23rpx;
}
.project-list .li .iconBer { .project-list .li .iconBer {
background-image: url(../../static/iocn/za.png); background-image: url(../../static/iocn/za.png);
} }
.project-list .li .iconBera { .project-list .li .iconBera {
background-image: url(../../static/iocn/zaa.png); background-image: url(../../static/iocn/zaa.png);
} }
.project-list .li .message { .project-list .li .message {
display: flex; display: flex;
} }
.project-list .li .message .img { .project-list .li .message .img {
width: 230rpx; width: 230rpx;
margin-right: 11rpx; margin-right: 11rpx;
height: 180rpx; height: 180rpx;
} }
.project-list .li .message .text { .project-list .li .message .text {
flex: 1; flex: 1;
} }
.project-list .li .message .text .title { .project-list .li .message .text .title {
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
word-wrap: break-word; word-wrap: break-word;
word-break: break-all; word-break: break-all;
margin-bottom: 5rpx; margin-bottom: 5rpx;
font-size: 24rpx; font-size: 24rpx;
display: flex; display: flex;
align-items: center; align-items: center;
line-height: 29rpx; line-height: 29rpx;
color: #333333; color: #333333;
font-weight: bold; font-weight: bold;
} }
.project-list .li .message .text .title .text { .project-list .li .message .text .title .text {
width: 60%; width: 60%;
} }
.project-list .li .message .text .title .icon { .project-list .li .message .text .title .icon {
font-size: 24rpx; font-size: 24rpx;
width: 120rpx; width: 120rpx;
height: 40rpx; height: 40rpx;
background-color: #ff5400; background-color: #ff5400;
border-radius: 50rpx; border-radius: 50rpx;
color: #FFFFFF; color: #FFFFFF;
text-align: center; text-align: center;
line-height: 40rpx; line-height: 40rpx;
} }
.project-list .li .message .text .title .icon1{
background-color: #00a2e9;
}
.project-list .li .message .text .title .icon3{
background-color: #009a44;
}
.project-list .li .message .serial-number { .project-list .li .message .text .title .icon1 {
color: #9b9ba3; background-color: #00a2e9;
font-size: 24rpx; }
margin-bottom: 10rpx;
line-height: 24rpx;
display: flex;
}
.project-list .li .message .serial-number .type { .project-list .li .message .text .title .icon3 {
margin-right: 60rpx; background-color: #009a44;
} }
.project-list .li .message .specification { .project-list .li .message .serial-number {
color: #9b9ba3; color: #9b9ba3;
font-size: 24rpx; font-size: 24rpx;
margin-bottom: 10rpx; margin-bottom: 10rpx;
display: flex; line-height: 24rpx;
line-height: 24rpx; display: flex;
} }
.project-list .li .message .specification .text { .project-list .li .message .serial-number .type {
color: #e90000; margin-right: 60rpx;
} }
.project-list .li .message .installation-site { .project-list .li .message .specification {
color: #9b9ba3; color: #9b9ba3;
font-size: 24rpx; font-size: 24rpx;
line-height: 24rpx; margin-bottom: 10rpx;
} display: flex;
line-height: 24rpx;
}
.project-list-address { .project-list .li .message .specification .text {
display: flex; color: #e90000;
margin-top: 15rpx; }
color: #9b9ba3;
align-items: center;
justify-content: space-between;
width: 100%;
}
.project-list-address .text { .project-list .li .message .installation-site {
font-size: 22rpx; color: #9b9ba3;
flex: 1; font-size: 24rpx;
} line-height: 24rpx;
}
.project-list-address .date { .project-list-address {
font-size: 24rpx; display: flex;
text-align: right; margin-top: 15rpx;
margin-left: 20rpx; color: #9b9ba3;
align-items: center; align-items: center;
display: flex; justify-content: space-between;
color: #e90000; width: 100%;
} }
.project-list-address .date .img { .project-list-address .text {
width: 26rpx; font-size: 22rpx;
height: 24rpx; flex: 1;
margin-left: 5rpx; }
}
.project-list-address .address .img { .project-list-address .date {
width: 22rpx; font-size: 24rpx;
height: 30rpx; text-align: right;
margin-right: 10rpx; margin-left: 20rpx;
} align-items: center;
.project-list-address .address { display: flex;
display: flex; color: #e90000;
align-items: center; }
width: 80%;
.project-list-address .date .img {
width: 26rpx;
height: 24rpx;
margin-left: 5rpx;
}
.project-list-address .address .img {
width: 22rpx;
height: 30rpx;
margin-right: 10rpx;
}
.project-list-address .address {
display: flex;
align-items: center;
width: 80%;
} }
.project-list .work-order-code { .project-list .work-order-code {
font-size: 24rpx; font-size: 24rpx;
color: #9b9ba3; color: #9b9ba3;
margin-bottom: 26rpx; margin-bottom: 26rpx;
} }
.pickerDate { .pickerDate {
width: 300rpx; width: 300rpx;
height: 300rpx; height: 300rpx;
} }
</style> </style>

View File

@ -87,6 +87,9 @@
detailedList:[] detailedList:[]
} }
}, },
onLoad(op) {
op.index*1 ? this.current = false : this.current = true;
},
methods: { methods: {
// //
switchStatus(status){ switchStatus(status){

View File

@ -108,7 +108,9 @@
}, },
// //
updatePassword(){ updatePassword(){
console.log('修改登录密码'); uni.navigateTo({
url:'/pages/forget/forget'
})
}, },
// //
cleanEv(){ cleanEv(){