Browse Source

优化供应商列表

master
邓平艺 5 years ago
parent
commit
55877af1e0
  1. 7
      canteen/pages/delivery/apply.vue
  2. 23
      supplier/pages/gonghuo/order.vue

7
canteen/pages/delivery/apply.vue

@ -14,7 +14,12 @@
<!-- 物料table -->
<view class="lf-p-32 lf-p-t-30 lf-p-b-30 lf-w-100 lf-h-maxcontent lf-border-box">
<view class="lf-font-32 lf-color-black lf-font-bold lf-m-b-20">物资明细</view>
<wyb-table :headers="headers" :contents="contents" contentBgColor="#ecfaf5" :first-line-fixed="true" @onInputChange="onInputChange" width="max-content" height="800rpx"></wyb-table>
<wyb-table :headers="headers" :contents="contents"
contentBgColor="#ecfaf5"
:first-line-fixed="true"
@onInputChange="onInputChange"
width="max-content" height="800rpx"
v-if="contents.length"></wyb-table>
</view>
<!-- 操作按钮 -->
<view class="fixed-bottom">

23
supplier/pages/gonghuo/order.vue

@ -15,7 +15,7 @@
<view class="card" v-for="(item, index) in tabItem.list" :key="item.id" @click="$url('/pages/gonghuo/detail?p_sn='+ item.p_sn)">
<view class="lf-row-between item">
<view class="lf-color-gray">采购方</view>
<view class="lf-color-black">{{ item.p_name }}</view>
<view class="lf-color-black">{{ item.canteen.canteen_name }}</view>
</view>
<view class="lf-row-between item">
<view class="lf-color-gray">发单时间</view>
@ -31,7 +31,7 @@
</view>
<view class="lf-row-between item">
<view class="lf-color-gray">订单状态</view>
<view class="quoted-price">{{ item.state }}</view>
<view :class="stateClass(item.state)">{{ item.state }}</view>
</view>
</view>
<view class="loading-more">
@ -68,6 +68,10 @@
name: '待发货',
list: [],
..._public
},{
name: '已发货',
list: [],
..._public
},{
name: '已完成',
list: [],
@ -81,6 +85,21 @@
windowHeight: 0
}
},
computed: {
stateClass(){
return function(val){
let class_name = {
'已发货': 'passed',
'已收货': 'passed',
'已入库': 'passed',
'备货中': 'wait',
'待接单': 'quoted-price',
'已退单': 'refuse'
}
return class_name[val];
}
}
},
onLoad(){
this.windowHeight = uni.getSystemInfoSync().windowHeight;
this.getData();

Loading…
Cancel
Save