|
@ -3,21 +3,26 @@ |
|
|
<view class="list"> |
|
|
<view class="list"> |
|
|
<view> |
|
|
<view> |
|
|
<u-search :show-action="true" v-model="searchValue" action-text="搜索" input-align="left" height="65" |
|
|
<u-search :show-action="true" v-model="searchValue" action-text="搜索" input-align="left" height="65" |
|
|
border-color=#ff9900 @search="searchTable()"></u-search> |
|
|
border-color=#ff9900 @search="searchTable()"> |
|
|
|
|
|
</u-search> |
|
|
<u-subsection :animation="true" active-color="#ff9900" ref="tabs1" :list="list1" :current="current" |
|
|
<u-subsection :animation="true" active-color="#ff9900" ref="tabs1" :list="list1" :current="current" |
|
|
@change="tabsChange" :is-scroll="false"> |
|
|
@change="tabsChange" :is-scroll="false"> |
|
|
</u-subsection> |
|
|
</u-subsection> |
|
|
<!-- <u-tabs-swiper ref="tabs1" :list="list1" :current="current" @change="tabsChange" :is-scroll="false" |
|
|
|
|
|
swiperWidth="750"></u-tabs-swiper> --> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="item" v-for="(item, index) in list" :key="index" @click="openDetail(item)"> |
|
|
<view class="item" v-for="(item, index) in list" :key="index" @click="openDetail(item)"> |
|
|
|
|
|
<view class="title"> |
|
|
|
|
|
<view class="title-txt"> |
|
|
|
|
|
{{item.planNoDay}} |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="time"> |
|
|
|
|
|
{{`${$time.formatDate(item.createTime)}`}} |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
<view class="dec"> |
|
|
<view class="dec"> |
|
|
<view>日计划单号:</view> |
|
|
<view>日计划单号:</view><view>{{ item.planNoDay }}</view> |
|
|
<view>{{ item.planNoDay }}</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="dec"> |
|
|
<view class="dec"> |
|
|
<view>产品批次码:</view> |
|
|
<view>产品批次码:</view><view>{{ item.batchCode }}</view> |
|
|
<view>{{ item.batchCode }}</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="dec"> |
|
|
<view class="dec"> |
|
|
<view>状态:</view> |
|
|
<view>状态:</view> |
|
@ -33,31 +38,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<!-- <view class="item" v-for="(item,index) in list" :key="index" @click="openDetail(item)"> |
|
|
|
|
|
<view class="dec"> |
|
|
|
|
|
<view>日计划单号:</view> |
|
|
|
|
|
<view>{{item.planNoDay}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="dec"> |
|
|
|
|
|
<view>产品批次码:</view> |
|
|
|
|
|
<view>{{item.batchCode}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="dec"> |
|
|
|
|
|
<view>状态:</view> |
|
|
|
|
|
<view> |
|
|
|
|
|
<u-tag text="待排产" v-if="item.status==1" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
|
|
|
border-color='#fe8463' type="primary" shape='circle' /> |
|
|
|
|
|
<u-tag text="已发布" v-if="item.status==2" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
|
|
|
border-color='#fe8463' type="primary" shape='circle' /> |
|
|
|
|
|
<u-tag text="生产中" v-if="item.status==3" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
|
|
|
border-color='#fe8463' type="primary" shape='circle' /> |
|
|
|
|
|
<u-tag text="已终止" v-if="item.status==4" bg-color='rgba(255,255,255,0)' color='#fe8463' |
|
|
|
|
|
border-color='#fe8463' type="primary" shape='circle' /> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> --> |
|
|
|
|
|
<view style="height: 94rpx;padding-top: 30rpx;"> |
|
|
<view style="height: 94rpx;padding-top: 30rpx;"> |
|
|
<u-loadmore :status="status" v-if="status != 'loadmore'"/> |
|
|
<u-loadmore :status="status" v-if="status != 'loadmore'" /> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view style="height: constant(safe-area-inset-bottom); height: env(safe-area-inset-bottom);"></view> |
|
|
<view style="height: constant(safe-area-inset-bottom); height: env(safe-area-inset-bottom);"></view> |
|
@ -220,52 +202,43 @@ async function searchTable() { |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
.container { |
|
|
.container{ |
|
|
background: #f5f5f5; |
|
|
background: #f5f5f5; |
|
|
min-height: 100vh; |
|
|
min-height: 100vh; |
|
|
} |
|
|
} |
|
|
|
|
|
.list { |
|
|
.list { |
|
|
|
|
|
background: #f5f5f5; |
|
|
background: #f5f5f5; |
|
|
margin-top: 20 rpx; |
|
|
margin-top: 20rpx; |
|
|
|
|
|
|
|
|
.item { |
|
|
.item { |
|
|
padding: 30 rpx 30 rpx 0px 30 rpx; |
|
|
padding: 30rpx 30rpx 0px 30rpx; |
|
|
margin-top: 20 rpx; |
|
|
margin-top: 20rpx; |
|
|
background: white; |
|
|
background: white; |
|
|
position: relative; |
|
|
position: relative; |
|
|
|
|
|
|
|
|
.title { |
|
|
.title { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
padding-bottom: 20 rpx; |
|
|
padding-bottom: 20rpx; |
|
|
|
|
|
|
|
|
.title-txt { |
|
|
.title-txt { |
|
|
color: #409eff; |
|
|
color: #409eff; |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
font-size: 36 rpx; |
|
|
font-size: 36rpx; |
|
|
width: 0px; |
|
|
width: 0px; |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
word-wrap: break-word; |
|
|
word-wrap: break-word; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.time { |
|
|
.time { |
|
|
color: #919191; |
|
|
color: #919191; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.dec { |
|
|
.dec { |
|
|
padding-bottom: 20 rpx; |
|
|
padding-bottom: 20rpx; |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
|
|
|
|
|
|
view { |
|
|
view { |
|
|
&:nth-child(1) { |
|
|
&:nth-child(1){ |
|
|
width: 200 rpx;; |
|
|
width: 200rpx;; |
|
|
} |
|
|
} |
|
|
|
|
|
&:nth-child(2){ |
|
|
&:nth-child(2) { |
|
|
|
|
|
color: #999999; |
|
|
color: #999999; |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
width: 0px; |
|
|
width: 0px; |
|
@ -273,20 +246,17 @@ async function searchTable() { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.last { |
|
|
.last { |
|
|
padding-bottom: 30 rpx; |
|
|
padding-bottom: 30rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.bottom { |
|
|
.bottom { |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
justify-content: space-between; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
border-top: 1px solid #E4E4E4; |
|
|
border-top: 1px solid #E4E4E4; |
|
|
padding: 20 rpx 0px; |
|
|
padding: 20rpx 0px; |
|
|
height: 90 rpx; |
|
|
height: 90rpx; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
</style> |
|
|
</style> |