flying-monkey/pages/workOrder/workOrderLlsit.vue

481 lines
14 KiB
Vue
Raw Normal View History

2022-03-17 12:30:12 +00:00
<template>
<view class="content">
2022-03-18 09:57:22 +00:00
<statusNav navBarTitle="工单列表"></statusNav>
2022-03-17 12:30:12 +00:00
<view class="project-list-input">
<input type="text" class="int" value="" placeholder="请输入关键字" />
<image class="search" src="../../static/ss.png" mode=""></image>
</view>
<view class="screen">
2022-03-18 09:57:22 +00:00
<picker @change="bindPickerChange" :value="index" :range="array">
<view class="li">
<view class="text">
工单状态
</view>
<image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image>
2022-03-17 12:30:12 +00:00
</view>
2022-03-18 09:57:22 +00:00
</picker>
<picker mode="date" :value="date" @change="bindDateChange">
2022-03-17 12:30:12 +00:00
<view class="li">
<view class="text">
2022-03-18 09:57:22 +00:00
工单日期
2022-03-17 12:30:12 +00:00
</view>
<image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image>
</view>
</picker>
<view class="li">
<view class="text">
筛选
</view>
<image class="imgA" src="../../static/iocn/sx.png" mode="aspectFill"></image>
</view>
</view>
<view class="project-list">
<view class="li" @click="projectDetailsFun()">
2022-03-18 09:57:22 +00:00
<view class="work-order-code">
工单编号222226666558
</view>
2022-03-17 12:30:12 +00:00
<view class="message">
<image class="img" src="../../static/del/项目图片.png" mode="aspectFill"></image>
<view class="text">
<view class="title">
2022-03-18 09:57:22 +00:00
<view class="text clips1">
长沙市望城区xxxxxx项目名称
</view>
<view class="icon">
待维修
</view>
2022-03-17 12:30:12 +00:00
</view>
<view class="serial-number">
2022-03-18 09:57:22 +00:00
<view class="type">
#网络故障#
</view>
<view class="date">
已故障2小时37分
</view>
2022-03-17 12:30:12 +00:00
</view>
<view class="specification">
2022-03-18 09:57:22 +00:00
紧急程度<view class="text"> 加急
</view>
2022-03-17 12:30:12 +00:00
</view>
<view class="specification">
2022-03-18 09:57:22 +00:00
主负责人陈志远
2022-03-17 12:30:12 +00:00
</view>
2022-03-18 09:57:22 +00:00
<view class="installation-site clips2">
故障描述LED显示屏开机后闪屏不显示内容主控电
脑提示网络不通
2022-03-17 12:30:12 +00:00
</view>
</view>
</view>
<view class="project-list-address">
2022-03-18 09:57:22 +00:00
<view class="address clips2">
2022-03-17 12:30:12 +00:00
<image class="img" src="../../static/iocn/im.png" mode="aspectFill"></image>
<view class="text">
湖南省长沙市高新开发区谷园路109号像素大厦1205
</view>
</view>
<view class="date">
2022-03-18 09:57:22 +00:00
催一催 <image class="img" src="../../static/iocn/ld.png" mode=""></image>
2022-03-17 12:30:12 +00:00
</view>
</view>
2022-03-18 09:57:22 +00:00
2022-03-17 12:30:12 +00:00
</view>
2022-03-18 09:57:22 +00:00
<view class="li" @click="projectDetailsFun()">
<view class="work-order-code">
工单编号222226666558
</view>
2022-03-17 12:30:12 +00:00
<view class="message">
<image class="img" src="../../static/del/项目图片.png" mode="aspectFill"></image>
2022-03-18 09:57:22 +00:00
2022-03-17 12:30:12 +00:00
<view class="text">
<view class="title">
2022-03-18 09:57:22 +00:00
<view class="text clips1">
长沙市望城区xxxxxx项目名称
</view>
<view class="icon icon1">
已完成
</view>
2022-03-17 12:30:12 +00:00
</view>
<view class="serial-number">
2022-03-18 09:57:22 +00:00
<view class="type">
#网络故障#
</view>
<view class="date">
已故障2小时37分
</view>
2022-03-17 12:30:12 +00:00
</view>
<view class="specification">
2022-03-18 09:57:22 +00:00
紧急程度<view class="text"> 加急
</view>
2022-03-17 12:30:12 +00:00
</view>
<view class="specification">
2022-03-18 09:57:22 +00:00
主负责人陈志远
2022-03-17 12:30:12 +00:00
</view>
2022-03-18 09:57:22 +00:00
<view class="installation-site clips2">
故障描述LED显示屏开机后闪屏不显示内容主控电
脑提示网络不通
2022-03-17 12:30:12 +00:00
</view>
</view>
</view>
2022-03-18 09:57:22 +00:00
2022-03-17 12:30:12 +00:00
<view class="project-list-address">
2022-03-18 09:57:22 +00:00
<view class="address clips2">
2022-03-17 12:30:12 +00:00
<image class="img" src="../../static/iocn/im.png" mode="aspectFill"></image>
<view class="text">
湖南省长沙市高新开发区谷园路109号像素大厦1205
</view>
</view>
<view class="date">
2022-03-18 09:57:22 +00:00
催一催 <image class="img" src="../../static/iocn/ld.png" mode=""></image>
2022-03-17 12:30:12 +00:00
</view>
</view>
2022-03-18 09:57:22 +00:00
</view>
<view class="li" @click="projectDetailsFun()">
<view class="work-order-code">
工单编号222226666558
</view>
<view class="message">
<image class="img" src="../../static/del/项目图片.png" mode="aspectFill"></image>
<view class="text">
<view class="title">
<view class="text clips1">
长沙市望城区xxxxxx项目名称
</view>
<view class="icon icon3">
等待派工
</view>
</view>
<view class="serial-number">
<view class="type">
#网络故障#
</view>
<view class="date">
已故障2小时37分
</view>
</view>
<view class="specification">
紧急程度<view class="text"> 加急
</view>
</view>
<view class="specification">
主负责人陈志远
</view>
<view class="installation-site clips2">
故障描述LED显示屏开机后闪屏不显示内容主控电
脑提示网络不通
</view>
</view>
</view>
<view class="project-list-address">
<view class="address clips2">
<image class="img" src="../../static/iocn/im.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>
2022-03-17 12:30:12 +00:00
</view>
2022-03-18 09:57:22 +00:00
2022-03-17 12:30:12 +00:00
</view>
2022-03-18 09:57:22 +00:00
2022-03-17 12:30:12 +00:00
</view>
2022-03-18 09:57:22 +00:00
<footTabOne :current="1"></footTabOne>
2022-03-17 12:30:12 +00:00
</view>
</template>
<script>
import statusNav from '../../components/status-nav.vue';
2022-03-18 09:57:22 +00:00
import footTabOne from "../../components/foot-tabs/foot-tab-one.vue"
2022-03-17 12:30:12 +00:00
export default {
2022-03-18 09:57:22 +00:00
components: {
2022-03-17 12:30:12 +00:00
footTabOne,
statusNav
},
data() {
const currentDate = this.getDate({
format: true
})
return {
date: currentDate,
array: ['类型', '类型', '类型', '类型'],
2022-03-18 09:57:22 +00:00
index: 0,
2022-03-17 12:30:12 +00:00
}
},
methods: {
2022-03-18 09:57:22 +00:00
projectDetailsFun() {
// uni.navigateTo({
// url: "/pages/project/details"
// })
2022-03-17 12:30:12 +00:00
},
2022-03-18 09:57:22 +00:00
bindPickerChange(data) {
console.log(data)
2022-03-17 12:30:12 +00:00
},
2022-03-18 09:57:22 +00:00
bindDateChange(date) {
console.log(date)
2022-03-17 12:30:12 +00:00
},
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;
2022-03-18 09:57:22 +00:00
console.log(year, month, day)
2022-03-17 12:30:12 +00:00
return `${year}-${month}-${day}`;
}
}
}
</script>
<style scoped>
page {
background-color: #F7F7F7;
}
2022-03-18 09:57:22 +00:00
.content {
padding-top: 76rpx;
}
2022-03-17 12:30:12 +00:00
.project-list-input {
width: 100%;
height: 114rpx;
position: relative;
padding: 20rpx 16rpx;
box-sizing: border-box;
background-color: #FFFFFF
}
.project-list-input .int {
width: 100%;
height: 100%;
background-color: #F7F7F7;
padding: 0 25rpx;
box-sizing: border-box;
border-radius: 36rpx;
}
.project-list-input .search {
width: 28rpx;
height: 28rpx;
position: absolute;
right: 43rpx;
top: 50%;
margin-top: -14rpx;
}
.screen {
display: flex;
justify-content: space-around;
padding: 46rpx 20rpx;
}
.screen .li {
display: flex;
align-items: center;
}
.screen .li .text {
font-size: 32rpx;
color: #333333;
margin-right: 10rpx;
}
.screen .li .img {
width: 14rpx;
height: 8rpx;
}
.screen .li .imgA {
width: 24rpx;
height: 23rpx;
}
.project-list .li {
width: 710rpx;
box-sizing: border-box;
background-color: #FFFFFF;
position: relative;
margin: auto;
margin-bottom: 20rpx;
padding: 33rpx 23rpx;
}
.project-list .li .iconBer {
background-image: url(../../static/iocn/za.png);
}
.project-list .li .iconBera {
background-image: url(../../static/iocn/zaa.png);
}
.project-list .li .message {
display: flex;
}
.project-list .li .message .img {
width: 230rpx;
margin-right: 11rpx;
height: 180rpx;
}
.project-list .li .message .text {
flex: 1;
}
.project-list .li .message .text .title {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
word-break: break-all;
margin-bottom: 15rpx;
font-size: 28rpx;
2022-03-18 09:57:22 +00:00
display: flex;
align-items: center;
2022-03-17 12:30:12 +00:00
line-height: 29rpx;
color: #333333;
font-weight: bold;
}
2022-03-18 09:57:22 +00:00
.project-list .li .message .text .title .text {
width: 60%;
}
.project-list .li .message .text .title .icon {
font-size: 24rpx;
width: 120rpx;
height: 40rpx;
background-color: #ff5400;
border-radius: 50rpx;
color: #FFFFFF;
text-align: center;
line-height: 40rpx;
}
.project-list .li .message .text .title .icon1{
background-color: #00a2e9;
}
.project-list .li .message .text .title .icon1{
background-color: #009a44;
}
2022-03-17 12:30:12 +00:00
.project-list .li .message .serial-number {
2022-03-18 09:57:22 +00:00
color: #9b9ba3;
2022-03-17 12:30:12 +00:00
font-size: 24rpx;
margin-bottom: 15rpx;
line-height: 24rpx;
2022-03-18 09:57:22 +00:00
display: flex;
}
.project-list .li .message .serial-number .type {
margin-right: 60rpx;
2022-03-17 12:30:12 +00:00
}
.project-list .li .message .specification {
2022-03-18 09:57:22 +00:00
color: #9b9ba3;
2022-03-17 12:30:12 +00:00
font-size: 24rpx;
margin-bottom: 15rpx;
2022-03-18 09:57:22 +00:00
display: flex;
2022-03-17 12:30:12 +00:00
line-height: 24rpx;
}
2022-03-18 09:57:22 +00:00
.project-list .li .message .specification .text {
color: #f5b0b0;
}
2022-03-17 12:30:12 +00:00
.project-list .li .message .installation-site {
2022-03-18 09:57:22 +00:00
color: #9b9ba3;
2022-03-17 12:30:12 +00:00
font-size: 24rpx;
margin-bottom: 15rpx;
2022-03-18 09:57:22 +00:00
line-height: 30rpx;
2022-03-17 12:30:12 +00:00
}
.project-list-address {
display: flex;
2022-03-18 09:57:22 +00:00
color: #9b9ba3;
justify-content: space-between;
width: 100%;
2022-03-17 12:30:12 +00:00
}
.project-list-address .text {
font-size: 24rpx;
2022-03-18 09:57:22 +00:00
flex: 1;
2022-03-17 12:30:12 +00:00
}
.project-list-address .date {
font-size: 24rpx;
text-align: right;
margin-left: 20rpx;
2022-03-18 09:57:22 +00:00
align-items: center;
display: flex;
color: #e90000;
2022-03-17 12:30:12 +00:00
margin-top: 12rpx;
}
2022-03-18 09:57:22 +00:00
.project-list-address .date .img {
width: 26rpx;
height: 24rpx;
margin-left: 5rpx;
}
.project-list-address .address .img {
width: 22rpx;
2022-03-17 12:30:12 +00:00
height: 28rpx;
margin-right: 10rpx;
}
.project-list-address .address {
display: flex;
align-items: center;
2022-03-18 09:57:22 +00:00
width: 60%;
2022-03-17 12:30:12 +00:00
}
2022-03-18 09:57:22 +00:00
.project-list .work-order-code {
font-size: 24rpx;
color: #9b9ba3;
margin-bottom: 26rpx;
}
2022-03-17 12:30:12 +00:00
.pickerDate {
width: 300rpx;
height: 300rpx;
}
</style>