|
@ -140,7 +140,7 @@ |
|
|
<text style="--c:#999;" class="over">{{v.supplierName}}</text> |
|
|
<text style="--c:#999;" class="over">{{v.supplierName}}</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="num"> |
|
|
<view class="num"> |
|
|
<text>库存量:{{v.equivalentInventory||0}}{{v.unit}}</text> |
|
|
<text>库存量:{{v.equivalentInventory||0}}{{v.packgeUnit}}</text> |
|
|
<view class="btns"> |
|
|
<view class="btns"> |
|
|
<button class="cu-btn" @click="toList('out',v)">出库</button> |
|
|
<button class="cu-btn" @click="toList('out',v)">出库</button> |
|
|
<button class="cu-btn" @click="toList('in',v)">入库</button> |
|
|
<button class="cu-btn" @click="toList('in',v)">入库</button> |
|
@ -210,6 +210,10 @@ export default { |
|
|
toList(mode,val){ |
|
|
toList(mode,val){ |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url:`/pages/stock/list?mode=${mode}&type=${this.searchVal.substanceType}&warehouseId=${this.searchVal.warehouseId||''}`, |
|
|
url:`/pages/stock/list?mode=${mode}&type=${this.searchVal.substanceType}&warehouseId=${this.searchVal.warehouseId||''}`, |
|
|
|
|
|
events:{update:()=>{ |
|
|
|
|
|
this.clean() |
|
|
|
|
|
this.search() |
|
|
|
|
|
}}, |
|
|
success(res){ |
|
|
success(res){ |
|
|
res.eventChannel.emit('detail', val) |
|
|
res.eventChannel.emit('detail', val) |
|
|
} |
|
|
} |
|
|