Browse Source

日计划导主子明细更新

master
gaojs 7 months ago
parent
commit
6cdcea5ca1
  1. 6
      src/pages.json
  2. 50
      src/pages/mes/orderDayPlan/orderDayPlan.vue

6
src/pages.json

@ -1901,6 +1901,12 @@
"navigationBarTitleText": "日计划查询",
"enablePullDownRefresh": true
}
},{
"path": "pages/mes/orderDayPlan/detail",
"style": {
"navigationBarTitleText": "日计划查询明细",
"enablePullDownRefresh": true
}
}

50
src/pages/mes/orderDayPlan/orderDayPlan.vue

@ -3,44 +3,26 @@
<view class="list">
<view>
<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"
@change="tabsChange" :is-scroll="false">
</u-subsection>
<!-- <u-tabs-swiper ref="tabs1" :list="list1" :current="current" @change="tabsChange" :is-scroll="false"
swiperWidth="750"></u-tabs-swiper> -->
</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 class="title">
<view class="title-txt">
{{item.planNoDay}}
</view>
<view class="time">
{{`${$time.formatDate(item.createTime)}`}}
</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><view>{{ item.planNoDay }}</view>
</view>
<view class="dec">
<view>产品批次码</view>
<view>{{item.batchCode}}</view>
<view>产品批次码</view><view>{{ item.batchCode }}</view>
</view>
<view class="dec">
<view>状态</view>
@ -55,7 +37,7 @@
border-color='#fe8463' type="primary" shape='circle'/>
</view>
</view>
</view> -->
</view>
<view style="height: 94rpx;padding-top: 30rpx;">
<u-loadmore :status="status" v-if="status != 'loadmore'" />
</view>
@ -224,22 +206,18 @@ async function searchTable() {
background: #f5f5f5;
min-height: 100vh;
}
.list {
background: #f5f5f5;
margin-top: 20rpx;
.item {
padding: 30rpx 30rpx 0px 30rpx;
margin-top: 20rpx;
background: white;
position: relative;
.title {
display: flex;
align-items: center;
padding-bottom: 20rpx;
.title-txt {
color: #409eff;
font-weight: bold;
@ -248,23 +226,18 @@ async function searchTable() {
flex: 1;
word-wrap: break-word;
}
.time {
color: #919191;
}
}
.dec {
padding-bottom: 20rpx;
display: flex;
align-items: center;
view {
&:nth-child(1){
width: 200rpx;;
}
&:nth-child(2){
color: #999999;
flex: 1;
@ -273,11 +246,9 @@ async function searchTable() {
}
}
}
.last {
padding-bottom: 30rpx;
}
.bottom {
display: flex;
justify-content: space-between;
@ -285,7 +256,6 @@ async function searchTable() {
border-top: 1px solid #E4E4E4;
padding: 20rpx 0px;
height: 90rpx;
}
}
}

Loading…
Cancel
Save