Browse Source

出入库样式

master
邓宏 2 years ago
parent
commit
8abcf1dff9
  1. 12
      pages/stock/list.vue
  2. 2
      pages/stock/mana.vue

12
pages/stock/list.vue

@ -165,7 +165,7 @@
<view class="name"> <view class="name">
<text>化肥</text> <text>化肥</text>
<text>中量元素水溶肥</text> <text>中量元素水溶肥</text>
<text class="plant-jiantou_zuoyouqiehuan" @click="$refs.dPicker.show=true"/> <!-- <text class="plant-jiantou_zuoyouqiehuan" @click="$refs.dPicker.show=true"/> -->
</view> </view>
<view class="company"> <view class="company">
<text>云南云天化股份有限公司</text> <text>云南云天化股份有限公司</text>
@ -173,7 +173,7 @@
</view> </view>
</view> </view>
<view class="card specs"> <!-- <view class="card specs">
<view class="title_mast">规格</view> <view class="title_mast">规格</view>
<view style="display:flex;"> <view style="display:flex;">
<view class="select"> <view class="select">
@ -183,7 +183,7 @@
<text class="plant-xinjian">新建</text> <text class="plant-xinjian">新建</text>
</view> </view>
<view class="tip">库存2(200kg)</view> <view class="tip">库存2(200kg)</view>
</view> </view> -->
<view class="card purchase"> <view class="card purchase">
<view class="title_mast">{{({out:"出",in:"入"})[mode]}}库数量</view> <view class="title_mast">{{({out:"出",in:"入"})[mode]}}库数量</view>
@ -195,7 +195,7 @@
<button class="cu-btn round bg-green shadow submit">确定</button> <button class="cu-btn round bg-green shadow submit">确定</button>
<d-picker ref="dPicker" :list="stockList"> <!-- <d-picker ref="dPicker" :list="stockList">
<view slot-scope="{row}" class="stock-picker"> <view slot-scope="{row}" class="stock-picker">
<view class="info"> <view class="info">
<text>{{row.agriculturalGoods}}</text> <text>{{row.agriculturalGoods}}</text>
@ -207,7 +207,7 @@
<text style="--c:#999;" class="over">{{row.supplierName}}</text> <text style="--c:#999;" class="over">{{row.supplierName}}</text>
</view> </view>
</view> </view>
</d-picker> </d-picker> -->
</view> </view>
</template> </template>
<script> <script>
@ -222,7 +222,7 @@ export default{
onLoad(options){ onLoad(options){
this.mode=options.mode this.mode=options.mode
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title:({out:"出库列表",in:"入库列表"})[this.mode] title:({out:"出库",in:"入库列表"})[this.mode]
}) })
this.getStore({ this.getStore({
baseId: this.$store.state.plantBaseInfoId, baseId: this.$store.state.plantBaseInfoId,

2
pages/stock/mana.vue

@ -141,7 +141,7 @@
</view> </view>
<view class="num"> <view class="num">
<text>库存量{{v.equivalentInventory||0}}kg</text> <text>库存量{{v.equivalentInventory||0}}kg</text>
<view class="btns" @click="$u.route({url:'pages/stock/list'})"> <view class="btns">
<button class="cu-btn" @click="toList('out')">出库</button> <button class="cu-btn" @click="toList('out')">出库</button>
<button class="cu-btn" @click="toList('in')">入库</button> <button class="cu-btn" @click="toList('in')">入库</button>
</view> </view>

Loading…
Cancel
Save