Browse Source

修改样式

master
邓宏 2 years ago
parent
commit
8d4eb05cc7
  1. 26
      pages/stock/list.vue
  2. 11
      pages/stock/mana.vue

26
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 @@
<view class="card specs">
<view class="title_mast">规格</view>
<view class="select" style="margin-bottom:20rpx;">
<!-- <view class="select" style="margin-bottom:20rpx;">
<text>请添加规格</text>
<text class="plant-youbian"/>
</view>
</view> -->
<view style="display:flex;">
<view class="select">
<text>请添加规格</text>
@ -138,9 +140,9 @@
</view>
<view class="card purchase">
<view class="title_mast">采购数量</view>
<view class="title_mast">{{({out:"出",in:"入"})[mode]}}数量</view>
<view class="input">
<input placeholder="请输入采购数量"/>
<input placeholder="请输入采购数量" type="digit"/>
<text>kg</text>
</view>
</view>
@ -150,6 +152,16 @@
</template>
<script>
export default{
data(){
return{
mode:"",
}
},
onLoad(options){
this.mode=options.mode
uni.setNavigationBarTitle({
title:({out:"出库列表",in:"入库列表"})[this.mode]
})
},
}
</script>

11
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 @@
<view class="num">
<text>库存量{{v.equivalentInventory||0}}kg</text>
<view class="btns" @click="$u.route({url:'pages/stock/list'})">
<button class="cu-btn">出库</button>
<button class="cu-btn">入库</button>
<button class="cu-btn" @click="toList('out')">出库</button>
<button class="cu-btn" @click="toList('in')">入库</button>
</view>
</view>
</view>
@ -202,6 +202,11 @@ export default {
}
}
},
toList(mode){
uni.navigateTo({
url:`/pages/stock/list?mode=${mode}`
})
},
}
}
</script>
Loading…
Cancel
Save