|
@ -83,8 +83,17 @@ |
|
|
&>text{ |
|
|
&>text{ |
|
|
font-size:24rpx; |
|
|
font-size:24rpx; |
|
|
color:#999; |
|
|
color:#999; |
|
|
|
|
|
&.detailType{ |
|
|
|
|
|
flex-shrink: 0; |
|
|
|
|
|
color:#FBA83C; |
|
|
|
|
|
margin-right:20rpx; |
|
|
|
|
|
} |
|
|
|
|
|
&.warehouse{ |
|
|
|
|
|
color:#999; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
&>.btns{ |
|
|
&>.btns{ |
|
|
|
|
|
flex-shrink: 0; |
|
|
margin-left:auto; |
|
|
margin-left:auto; |
|
|
button{ |
|
|
button{ |
|
|
padding:0; |
|
|
padding:0; |
|
@ -130,23 +139,40 @@ |
|
|
|
|
|
|
|
|
<scroll-view scroll-y @scrolltolower="search"> |
|
|
<scroll-view scroll-y @scrolltolower="search"> |
|
|
<view class="card item" v-for="(v,k) in list" :key="k"> |
|
|
<view class="card item" v-for="(v,k) in list" :key="k"> |
|
|
<view class="info"> |
|
|
<template v-if="searchVal.substanceType=='nz'"> |
|
|
<text>{{v.agriculturalGoods}}</text> |
|
|
<view class="info"> |
|
|
<text class="over">{{v.substanceName}}</text> |
|
|
<text>{{v.agriculturalGoods}}</text> |
|
|
<text v-if="searchVal.substanceType=='nz'">({{v.specDescribe}})</text> |
|
|
<text class="over">{{v.substanceName}}</text> |
|
|
<text v-if="v.replenishment">补货量≥{{v.replenishment}}{{v.unit}}</text> |
|
|
<text>({{v.specDescribe}})</text> |
|
|
</view> |
|
|
<text v-if="v.replenishment">补货量≥{{v.replenishment}}{{v.unit}}</text> |
|
|
<view class="company"> |
|
|
</view> |
|
|
<text style="--c:#FBA83C;margin-right:14rpx;">{{v.detailType}}</text> |
|
|
<view class="company"> |
|
|
<text style="--c:#999;" class="over">{{v.supplierName}}</text> |
|
|
<text style="--c:#FBA83C;margin-right:14rpx;">{{v.detailType}}</text> |
|
|
</view> |
|
|
<text style="--c:#999;" class="over">{{v.supplierName}}</text> |
|
|
<view class="num"> |
|
|
</view> |
|
|
<text>库存量:{{v.equivalentInventory||0}}{{v.packgeUnit}}</text> |
|
|
<view class="num"> |
|
|
<view class="btns"> |
|
|
<text>库存量:{{v.equivalentInventory||0}}{{v.packgeUnit}}</text> |
|
|
<button class="cu-btn" @click="toList('out',v)">出库</button> |
|
|
<view class="btns"> |
|
|
<button class="cu-btn" @click="toList('in',v)">入库</button> |
|
|
<button class="cu-btn" @click="toList('out',v)">出库</button> |
|
|
|
|
|
<button class="cu-btn" @click="toList('in',v)">入库</button> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template v-else> |
|
|
|
|
|
<view class="info"> |
|
|
|
|
|
<text>{{v.agriculturalGoods}}</text> |
|
|
|
|
|
<text class="over">{{v.substanceName}}</text> |
|
|
|
|
|
<text style="flex-shrink: 0;margin-left:auto;color:#333;">{{v.equivalentInventory||0}}{{v.unit}}</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="num"> |
|
|
|
|
|
<text class="detailType">{{v.detailType}}</text> |
|
|
|
|
|
<text class="warehouse over">{{v.wareHouseName}}</text> |
|
|
|
|
|
<view class="btns"> |
|
|
|
|
|
<button class="cu-btn" @click="toList('out',v)">出库</button> |
|
|
|
|
|
<button class="cu-btn" @click="toList('in',v)">入库</button> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</view> |
|
|
</view> |
|
|
<u-empty v-if="list.length<=0" text="为查询到相关信息" width="70%" icon="/static/noData.png"/> |
|
|
<u-empty v-if="list.length<=0" text="为查询到相关信息" width="70%" icon="/static/noData.png"/> |
|
|
</scroll-view> |
|
|
</scroll-view> |
|
|