From 55877af1e0312a920fd0588148e9415ccf6be528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Sat, 31 Jul 2021 18:18:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- canteen/pages/delivery/apply.vue | 7 ++++++- supplier/pages/gonghuo/order.vue | 23 +++++++++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/canteen/pages/delivery/apply.vue b/canteen/pages/delivery/apply.vue index 3776533..f2b1f7e 100644 --- a/canteen/pages/delivery/apply.vue +++ b/canteen/pages/delivery/apply.vue @@ -14,7 +14,12 @@ 物资明细 - + diff --git a/supplier/pages/gonghuo/order.vue b/supplier/pages/gonghuo/order.vue index b0cd41a..0400aa2 100644 --- a/supplier/pages/gonghuo/order.vue +++ b/supplier/pages/gonghuo/order.vue @@ -15,7 +15,7 @@ 采购方 - {{ item.p_name }} + {{ item.canteen.canteen_name }} 发单时间 @@ -31,7 +31,7 @@ 订单状态 - {{ item.state }} + {{ item.state }} @@ -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();