<template>
|
<view class="">
|
<u-navbar title="添加物料">
|
<view v-if="flag" @click="flag=!flag" class="slot-right"
|
style="width: 100%; display: flex; justify-content: flex-end;margin-right: 15px;color:#00cc33">
|
显示全部
|
</view>
|
<view v-else @click="flag=!flag" class="slot-right"
|
style="width: 100%; display: flex; justify-content: flex-end;margin-right: 15px;color:#00cc33">
|
只显示计划
|
</view>
|
</u-navbar>
|
<view class="search">
|
<u-search placeholder="搜索" v-model="keyword" input-align="center" bg-color="#fff" shape="square"
|
:show-action="false"></u-search>
|
</view>
|
<view class="line" v-for="item in 25">
|
<text>5101050-A95</text>
|
<text>油门踏板固定板总成</text>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
flag: true,
|
}
|
}
|
}
|
</script>
|
|
<style scoped>
|
.search {
|
background-color: #f2f2f2;
|
padding: 6px 8px;
|
}
|
.line{
|
height: 40px;
|
line-height: 40px;
|
border-bottom: 1px solid #eaeaea;
|
padding-left: 3rem;
|
font-size: 1rem;
|
padding-right: 10px;
|
}
|
</style>
|