From 8d4eb05cc77e99be204421b204172c19e9365831 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Tue, 7 Feb 2023 15:58:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/stock/list.vue | 26 +++++++++++++++++++------- pages/stock/mana.vue | 11 ++++++++--- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/pages/stock/list.vue b/pages/stock/list.vue index 03cd2d3..ea6e4d8 100644 --- a/pages/stock/list.vue +++ b/pages/stock/list.vue @@ -16,12 +16,14 @@ font-size:20rpx; color:#fff; background:#10C176; - border-radius: 4rpx; - width:80rpx; + border-radius: 7rpx; + min-width:80rpx; + padding:0 6rpx; text-align: center; height:40rpx; line-height: 40rpx; margin-right:16rpx; + box-sizing: border-box; } &:nth-child(3){ border-radius: 50%; @@ -123,10 +125,10 @@ 规格 - + 请添加规格 @@ -138,9 +140,9 @@ - 采购数量 + {{({out:"出",in:"入"})[mode]}}库数量 - + kg @@ -150,6 +152,16 @@ \ No newline at end of file diff --git a/pages/stock/mana.vue b/pages/stock/mana.vue index f5bf629..da37aa1 100644 --- a/pages/stock/mana.vue +++ b/pages/stock/mana.vue @@ -11,7 +11,7 @@ } &>.btns{ flex-shrink: 0; - margin:28rpx 30rpx 0; + margin:0 30rpx; display:flex; border-radius: 30rpx; button{ @@ -147,8 +147,8 @@ 库存量:{{v.equivalentInventory||0}}kg - - + + @@ -202,6 +202,11 @@ export default { } } }, + toList(mode){ + uni.navigateTo({ + url:`/pages/stock/list?mode=${mode}` + }) + }, } } \ No newline at end of file