|
|
@@ -2,13 +2,16 @@
|
|
|
<view class="app-content" style="background:white;">
|
|
|
<view class="billing_box_bg">
|
|
|
<view class="input-wrap">
|
|
|
- <view style="padding:0upx 0upx 0upx 0upx;margin-right:10upx;" >
|
|
|
+ <view style="padding:0upx 0upx 0upx 0upx;margin-right:8upx;" >
|
|
|
<button class="admin-button-com middle blue" @click="selectFlowerNumFn()">图片分类</button>
|
|
|
</view>
|
|
|
<view class="search-bar">
|
|
|
<app-search-module v-model="globalPy" ref="globalSearchRef" placeholder="这里搜索" @input="globalSearch"/>
|
|
|
</view>
|
|
|
- <view style="padding:0 0upx 0 15upx;" >
|
|
|
+ <view style="padding:0 0upx 0 8upx;" >
|
|
|
+ <button class="admin-button-com middle blue" @click.stop="openOption">{{globalLookStock==0 ? '选条件' : globalLookStock==1 ? '有库存' : '没库存' }}</button>
|
|
|
+ </view>
|
|
|
+ <view style="padding:0 0upx 0 8upx;" >
|
|
|
<button class="admin-button-com middle blue" @click="pageTo({ url: '/admin/ptItem/itemList' })">添花材</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -83,6 +86,20 @@
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
|
|
|
+ <uni-popup ref="searchOptionRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
+ <view style="display:flex;padding:80upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
|
|
|
+ <view @tap.stop="changeHasStock(2)" style="margin-bottom:20upx;margin-left:3upx;">
|
|
|
+ <view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:100upx;text-align:center;font-size:35upx;">没库存</view>
|
|
|
+ </view>
|
|
|
+ <view @tap.stop="changeHasStock(1)" style="margin-bottom:20upx;margin-left:3upx;">
|
|
|
+ <view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:100upx;text-align:center;font-size:35upx;">有库存</view>
|
|
|
+ </view>
|
|
|
+ <view @tap.stop="changeHasStock(0)" style="margin-bottom:20upx;margin-left:3upx;">
|
|
|
+ <view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:140upx;text-align:center;font-size:35upx;">重新选</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
<uni-popup ref="rightShowMore" background-color="#fff" type="center" :animation="true" class="class-popup-style">
|
|
|
<view style="display:flex;width:100vw;padding:20upx 20upx 40upx 20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
|
|
|
<view style="width:100vw;"><button @click="costChange()">成本变动记录</button></view>
|
|
|
@@ -173,6 +190,14 @@ export default {
|
|
|
goSearchFn(){
|
|
|
this.searchFn()
|
|
|
},
|
|
|
+ changeHasStock(check){
|
|
|
+ this.globalLookStock = check
|
|
|
+ this.$refs.searchOptionRef.close()
|
|
|
+ this.reGetGlobalProductList()
|
|
|
+ },
|
|
|
+ openOption(){
|
|
|
+ this.$refs.searchOptionRef.open('top')
|
|
|
+ },
|
|
|
initItem(){
|
|
|
this.globalRequestType = 'itemList'
|
|
|
this.initData()
|