99 lines
2.0 KiB
Vue
99 lines
2.0 KiB
Vue
<template>
|
|
<view class="agv-page">
|
|
<dateCheck @dateChouse="dateChouse"></dateCheck>
|
|
<uni-segmented-control :current="queryData.state" :values="items" @clickItem="onClickItem" styleType="button"
|
|
activeColor="#5500ff" class="segmented-control-box"></uni-segmented-control>
|
|
<scroll-view class="scroll-view-box" :scroll-y="true">
|
|
<view v-for="(item, index) in list">
|
|
<orderItem :data="item"></orderItem>
|
|
<!-- <materialItem style="background-color: darkgray" :materialInfo="item"></materialItem> -->
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import dateCheck from '@/pages/agv/components/dateCheck/index.vue';
|
|
import orderItem from '@/pages/agv/components/orderItem/index.vue';
|
|
export default {
|
|
components: {
|
|
dateCheck,
|
|
orderItem
|
|
},
|
|
data() {
|
|
return {
|
|
queryData: {
|
|
year: 0,
|
|
week: 0,
|
|
day: 0,
|
|
state: 1,
|
|
},
|
|
|
|
items: ['全部', '未完成', '已完成'],
|
|
list: [1,2,3],
|
|
}
|
|
},
|
|
methods: {
|
|
getList() {
|
|
const queryData = this.queryData;
|
|
},
|
|
onClickItem(e) {
|
|
if (this.queryData.state != e.currentIndex) {
|
|
this.queryData.state = e.currentIndex;
|
|
}
|
|
this.getList();
|
|
},
|
|
dateChouse(data) {
|
|
this.queryData.year = data.year
|
|
this.queryData.week = data.week
|
|
this.queryData.date = data.date
|
|
console.log(data);
|
|
this.getList();
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.agv-page {
|
|
padding: 10px;
|
|
}
|
|
|
|
.segmented-control-box {
|
|
width: 94%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.scroll-view-box {
|
|
width: 94%;
|
|
margin: 0 auto;
|
|
margin-top: 30px;
|
|
height: 450px;
|
|
padding: 10px;
|
|
background-color: rgba(179, 179, 179, 0.7);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.scroll-view-last {
|
|
width: 100%;
|
|
height: 60px;
|
|
font-size: 20px;
|
|
color: rgba(0, 9, 0, 0.7);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
margin-top: 10px;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
border-radius: 10px;
|
|
background-color: white;
|
|
}
|
|
|
|
.button-box {
|
|
width: 80%;
|
|
margin: 10px auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
</style> |