|
|
@ -62,6 +62,7 @@ |
|
|
|
font-weight: bold; |
|
|
|
display:flex; |
|
|
|
align-items: center; |
|
|
|
&.nz{ |
|
|
|
&:after{ |
|
|
|
content:"("attr(data-unit)")"; |
|
|
|
font-size:20rpx; |
|
|
@ -70,6 +71,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
&>.company{ |
|
|
|
margin-top:12rpx; |
|
|
|
display: flex; |
|
|
@ -95,8 +97,8 @@ |
|
|
|
<d-search v-model="searchVal.search" @search="clean();search()"/> |
|
|
|
|
|
|
|
<view class="btns shadow bg-white"> |
|
|
|
<button class="cu-btn bg-white" :class="{active:searchVal.type=='nz'}" @click="trigger('nz')">农资</button> |
|
|
|
<button class="cu-btn bg-white" :class="{active:searchVal.type=='ncp'}" @click="trigger('ncp')">农产品</button> |
|
|
|
<button class="cu-btn bg-white" :class="{active:searchVal.type=='1'}" @click="trigger('1')">农资</button> |
|
|
|
<button class="cu-btn bg-white" :class="{active:searchVal.type=='2'}" @click="trigger('2')">农产品</button> |
|
|
|
</view> |
|
|
|
|
|
|
|
<scroll-view scroll-y > |
|
|
@ -104,7 +106,7 @@ |
|
|
|
<view class="head"> |
|
|
|
<text class="plant-rili"/> <text>批次号:{{v.inOutBatchNo}}</text> <text>{{v.inOutType}}</text> |
|
|
|
</view> |
|
|
|
<view class="plant-youbian"> <text :data-unit="v.specDescribe">{{v.substanceName}}</text> </view> |
|
|
|
<view class="plant-youbian"> <text :class="{nz:searchVal.type=='1'}" :data-unit="v.specDescribe">{{v.substanceName}}</text> </view> |
|
|
|
<view class="company"> |
|
|
|
<text>{{v.supplier}}</text> <text>{{v.number}}{{v.packgeUnit}}(共{{v.equivalentAmount}}{{v.unit}})</text> |
|
|
|
</view> |
|
|
@ -123,7 +125,7 @@ export default { |
|
|
|
enterpriseId: '', |
|
|
|
pageNo:1, |
|
|
|
pageSize:6, |
|
|
|
type:"nz" |
|
|
|
type:"1"//1 农资,2 农产品 |
|
|
|
}, |
|
|
|
list:[], |
|
|
|
total:0, |
|
|
|