You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
18 KiB
1 lines
18 KiB
<view class="page1"><view style="width:100%;display:flex;border-top:1px solid #eee;border-bottom:1px solid #eee;position:fixed;background:#fff;top:0;z-index:99;"><view class="title-left"><view data-event-opts="{{[['tap',[['goWarnList',['$event']]]]]}}" class="title-left-box" style="color:blue;text-decoration:underline;" bindtap="__e"><text>{{warnMsg.tailWarnCount}}</text><text>库存预警</text></view><view class="title-left-box"><text>{{warnMsg.salesWeekCount}}</text><text>尾货预警</text></view><view data-event-opts="{{[['tap',[['goRuku',['$event']]]]]}}" class="title-left-box" style="color:blue;text-decoration:underline;" bindtap="__e"><text>{{total}}</text><text>待入库</text></view><view class="title-left-box" style="flex-direction:inherit;width:66%;"><view class="shop-box"><view>{{warnMsg.productCount}}</view><view>商品数</view></view><view data-event-opts="{{[['tap',[['seeStockCount',['$0','$1'],['warnMsg.stockCount','warnMsg.minusStockCount']]]]]}}" class="shop-box" bindtap="__e"><view>{{warnMsg.stockCount+warnMsg.minusStockCount}}</view><view> 库存数 <uni-icons vue-id="e1ca0ff4-1" type="help" size="15" bind:__l="__l"></uni-icons></view></view></view><view data-event-opts="{{[['tap',[['clickModel',['$event']]]]]}}" class="title-left-box" style="width:34%;" bindtap="__e"><text>{{type==0?warnMsg.stockCost:'0'}}</text><view> 库存成本 <uni-icons vue-id="e1ca0ff4-2" type="help" size="15" bind:__l="__l"></uni-icons></view></view></view><view class="title-right"><view data-event-opts="{{[['tap',[['onGridClick',['2']]]]]}}" class="title-right-top title-btn" catchtap="__e"> 新增商品 </view><view data-event-opts="{{[['tap',[['onGridClick',['3']]]]]}}" class="title-right-bottom title-btn" catchtap="__e"> 更多 </view></view></view><view class="search"><uni-search-bar class="uni-mt-10" vue-id="e1ca0ff4-3" radius="5" placeholder="商品名称/货号/供应商" cancelButton="none" value="{{searchName}}" data-event-opts="{{[['^input',[['__set_model',['','searchName','$event',[]]],['search']]],['^clear',[['clearSearch']]]]}}" bind:input="__e" bind:clear="__e" bind:__l="__l"></uni-search-bar></view><view class="content-left" style="height:78%;float:left;position:fixed;top:23%;"><block wx:for="{{indexList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{gateType==''}}"><view data-event-opts="{{[['tap',[['clickLeftBtn',[index]]]]]}}" class="{{['left-box',item.parentId?'left-box-hover':'']}}" bindtap="__e"><text class="{{[item.parentId?'red':'']}}" style="width:100%;height:90rpx;line-height:90rpx;display:inline-block;overflow:hidden;">{{item.categoryName}}</text></view></block></block></view><view class="content-right" style="width:570rpx;background:#fff;margin-left:170rpx;margin-top:300rpx;"><view style="display:flex;height:60rpx;line-height:60rpx;background:#C6E2FF;color:#777;text-align:center;"><view style="width:33%;">{{'款数:'+(indexList[categoryIndex].count!=undefined?indexList[categoryIndex].count:0)+''}}</view><view data-event-opts="{{[['tap',[['seeStockCount',['$0','$1'],['indexList.'+categoryIndex+'.stockCount','indexList.'+categoryIndex+'.minusStockCount']]]]]}}" style="width:46%;" catchtap="__e">{{'库存数:'+(indexList[categoryIndex].stockCount!=undefined?indexList[categoryIndex].stockCount+indexList[categoryIndex].minusStockCount:0)+''}}<uni-icons style="padding-right:50rpx;" vue-id="e1ca0ff4-4" type="help" size="15" data-event-opts="{{[['^tap',[['seeStockCount',['$0','$1'],['indexList.'+categoryIndex+'.stockCount','indexList.'+categoryIndex+'.minusStockCount']]]]]}}" catch:tap="__e" bind:__l="__l"></uni-icons></view><view data-event-opts="{{[['tap',[['goodsListSort',['$event']]]]]}}" style="width:17%;position:relative;" catchtap="__e"> 排序 <block wx:if="{{sort==''}}"><uni-icons style="position:absolute;top:-4px;right:0;" vue-id="e1ca0ff4-5" type="up" size="14" bind:__l="__l"></uni-icons></block><block wx:if="{{sort==''}}"><uni-icons style="position:absolute;top:6px;right:0;" vue-id="e1ca0ff4-6" type="down" size="14" bind:__l="__l"></uni-icons></block><block wx:if="{{sort!=''&&orderSort=='asc'}}"><uni-icons style="position:absolute;top:0;right:0;" vue-id="e1ca0ff4-7" type="up" size="14" color="#FF6A6A" bind:__l="__l"></uni-icons></block><block wx:if="{{sort!=''&&orderSort=='desc'}}"><uni-icons style="position:absolute;top:0;right:0;" vue-id="e1ca0ff4-8" type="down" size="14" color="#FF6A6A" bind:__l="__l"></uni-icons></block></view></view><block wx:for="{{shopList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['shopList','',index]]]]]]]}}" class="right-box" bindtap="__e"><view data-event-opts="{{[['tap',[['largeImg',['$0'],[[['shopList','',index]]]]]]]}}" class="box-left" catchtap="__e"><block wx:if="{{item.productPicture}}"><image class="img-radius _img" src="{{item.productPicture}}" alt></image></block><block wx:else><view class="noPic">暂无图片</view></block><block wx:if="{{shopId=='1960543009070256129'}}"><view style="background:red;color:#fff;width:100%;height:30rpx;font-size:20rpx;position:absolute;bottom:0;text-align:center;border-radius:5px;">{{'主播佣金'+(item.commission==null?0:item.commission+'%')+''}}</view></block></view><view class="box-right"><view class="box-right-num">{{"货号:"+(item.productSn==null?'':item.productSn)}}</view><view class="box-right-name">{{"名称:"+(item.productName==null?'暂无':item.productName)}}</view><view class="box-right-name">{{"供应商:"+(item.supplierName==null?'暂无':item.supplierName)}}</view><block wx:if="{{item.delFlag==1}}"><view data-event-opts="{{[['tap',[['upDown',['0','$0'],[[['shopList','',index]]]]]]]}}" class="up-down" catchtap="__e">下架</view></block><block wx:if="{{item.delFlag==0}}"><view data-event-opts="{{[['tap',[['upDown',['1','$0'],[[['shopList','',index]]]]]]]}}" class="up-down" catchtap="__e">上架</view></block><view data-event-opts="{{[['tap',[['oneShare',['$0'],[[['shopList','',index]]]]]]]}}" style="position:absolute;top:0;right:20rpx;width:100rpx;height:80rpx;" catchtap="__e"><button class="shareBtn"><uni-icons vue-id="{{'e1ca0ff4-9-'+index}}" type="redo" size="22" bind:__l="__l"></uni-icons></button></view><block wx:if="{{shopId!='1960543009070256129'}}"><view class="box-right-price"><block wx:if="{{type==0}}"><view class="price-box"><text style="color:red;">{{item.inStorageStatus==0?'待入库':item.purchasePrice==null?'新商品':item.purchasePrice}}</text><text>采购价</text></view></block><view class="price-box"><text>{{item.wholesalePrice}}</text><text>批发价</text></view><view class="price-box"><text>{{item.price}}</text><text>零售价</text></view><view data-event-opts="{{[['tap',[['seeStockCount',['$0','$1'],[[['shopList','',index,'stockCount']],[['shopList','',index,'minusStockCount']]]]]]]}}" class="price-box" catchtap="__e"><text>{{item.stockCount+item.minusStockCount}}</text><view> 库存 <uni-icons vue-id="{{'e1ca0ff4-10-'+index}}" type="help" size="15" bind:__l="__l"></uni-icons></view></view></view></block><block wx:else><view class="box-right-price"><block wx:if="{{shopOwnerPhone==username||username==item.createBy}}"><view class="price-box"><text style="color:red;">{{item.inStorageStatus==0?'待入库':item.purchasePrice==null?'新商品':item.purchasePrice+'%'}}</text><text>团长佣金</text></view></block><view class="price-box"><text>{{item.wholesalePrice}}</text><text>直播价</text></view><view class="price-box"><text>{{item.price}}</text><text>日常价</text></view><view data-event-opts="{{[['tap',[['seeStockCount',['$0','$1'],[[['shopList','',index,'stockCount']],[['shopList','',index,'minusStockCount']]]]]]]}}" class="price-box" catchtap="__e"><text>{{item.stockCount+item.minusStockCount}}</text><view> 库存 <uni-icons vue-id="{{'e1ca0ff4-11-'+index}}" type="help" size="15" bind:__l="__l"></uni-icons></view></view></view></block><view data-event-opts="{{[['tap',[['seeCustomCategory',['$0'],[[['shopList','',index,'customerCategoryRule']]]]]]]}}" style="padding:4px 2px;position:absolute;right:20rpx;bottom:104rpx;background:#088FEB;border-radius:5px;color:#fff;" catchtap="__e"> 客户价格 </view></view></view></block><block wx:for="{{shopList1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['shopList1','',index]]]]]]]}}" class="right-box" bindtap="__e"><view data-event-opts="{{[['tap',[['largeImg',['$0'],[[['shopList1','',index]]]]]]]}}" class="box-left" catchtap="__e"><block wx:if="{{item.productPicture}}"><image class="img-radius _img" src="{{item.productPicture}}" alt></image></block><block wx:else><view class="noPic">暂无图片</view></block><block wx:if="{{shopId=='1960543009070256129'}}"><view style="background:red;color:#fff;width:100%;height:30rpx;font-size:20rpx;position:absolute;bottom:0;text-align:center;border-radius:5px;">{{'主播佣金'+(item.commission==null?0:item.commission+'%')+''}}</view></block></view><view class="box-right"><view class="box-right-num">{{"货号:"+item.productSn}}</view><view class="box-right-name">{{"名称:"+(item.productName==null?'暂无':item.productName)}}</view><view class="box-right-name">{{"供应商:"+(item.supplierName==null?'暂无':item.supplierName)}}</view><block wx:if="{{item.delFlag==1}}"><view data-event-opts="{{[['tap',[['upDown',['0','$0'],[[['shopList1','',index]]]]]]]}}" class="up-down" catchtap="__e">下架</view></block><block wx:if="{{item.delFlag==0}}"><view data-event-opts="{{[['tap',[['upDown',['1','$0'],[[['shopList1','',index]]]]]]]}}" class="up-down" catchtap="__e">上架</view></block><view data-event-opts="{{[['tap',[['oneShare',['$0'],[[['shopList1','',index]]]]]]]}}" style="position:absolute;top:20rpx;right:20rpx;width:100rpx;height:100rpx;" catchtap="__e"><button class="shareBtn"><uni-icons vue-id="{{'e1ca0ff4-12-'+index}}" type="redo" size="22" bind:__l="__l"></uni-icons></button></view><block wx:if="{{shopId!='1960543009070256129'}}"><view class="box-right-price"><block wx:if="{{type==0}}"><view class="price-box"><text style="color:red;">{{item.inStorageStatus==0?'待入库':item.purchasePrice==null?'新商品':item.purchasePrice}}</text><text>采购价</text></view></block><view class="price-box"><text>{{item.wholesalePrice}}</text><text>批发价</text></view><view class="price-box"><text>{{item.price}}</text><text>零售价</text></view><view data-event-opts="{{[['tap',[['seeStockCount',['$0','$1'],[[['shopList1','',index,'stockCount']],[['shopList1','',index,'minusStockCount']]]]]]]}}" class="price-box" catchtap="__e"><text>{{item.stockCount+item.minusStockCount}}</text><view> 库存 <uni-icons vue-id="{{'e1ca0ff4-13-'+index}}" type="help" size="15" bind:__l="__l"></uni-icons></view></view></view></block><block wx:else><view class="box-right-price"><block wx:if="{{shopOwnerPhone==username||username==item.createBy}}"><view class="price-box"><text style="color:red;">{{item.inStorageStatus==0?'待入库':item.purchasePrice==null?'新商品':item.purchasePrice+'%'}}</text><text>团长佣金</text></view></block><view class="price-box"><text>{{item.wholesalePrice}}</text><text>直播价</text></view><view class="price-box"><text>{{item.price}}</text><text>日常价</text></view><view data-event-opts="{{[['tap',[['seeStockCount',['$0','$1'],[[['shopList1','',index,'stockCount']],[['shopList1','',index,'minusStockCount']]]]]]]}}" class="price-box" catchtap="__e"><text>{{item.stockCount+item.minusStockCount}}</text><view> 库存 <uni-icons vue-id="{{'e1ca0ff4-14-'+index}}" type="help" size="15" bind:__l="__l"></uni-icons></view></view></view></block><block wx:if="{{item.customerCategoryRule!=null&&item.customerCategoryRule!=''}}"><view data-event-opts="{{[['tap',[['seeCustomCategory',['$0'],[[['shopList1','',index,'customerCategoryRule']]]]]]]}}" style="padding:4px 2px;position:absolute;right:20rpx;bottom:104rpx;background:#088FEB;border-radius:5px;color:#fff;" catchtap="__e"> 客户价格 </view></block></view></view></block><u-loadmore vue-id="e1ca0ff4-15" status="{{status}}" bind:__l="__l"></u-loadmore></view><uni-popup class="vue-ref" vue-id="e1ca0ff4-16" background-color="#fff" data-ref="payDialog" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content"><view class="popup-pay-title"><text>请选择</text></view><view data-event-opts="{{[['tap',[['onGridClick',['0']]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">分类管理</text></view><view data-event-opts="{{[['tap',[['onGridClick',['4']]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">批量打印商品码</text></view><view data-event-opts="{{[['tap',[['onGridClick',['5']]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">批量下架</text></view><block wx:if="{{type==0}}"><view data-event-opts="{{[['tap',[['onGridClick',['6']]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">批量删除商品</text></view></block><view data-event-opts="{{[['tap',[['onGridClick',['7']]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">标签模板</text></view></view></uni-popup><uni-popup class="vue-ref" vue-id="e1ca0ff4-17" background-color="#fff" data-ref="sharePriceDialog" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content"><view data-event-opts="{{[['tap',[['goPopleList',['khName']]]]]}}" class="content-list" catchtap="__e"><view class="list-name">客户</view><view class="list-val"><input style="text-align:center;margin-top:20rpx;" type="text" placeholder="可选择客户" disabled="{{true}}" value="{{khName.name}}"/><uni-icons style="margin-left:80rpx;line-height:80rpx;" vue-id="{{('e1ca0ff4-18')+','+('e1ca0ff4-17')}}" type="right" size="16" bind:__l="__l"></uni-icons></view></view><view class="popup-pay-title"><text>选择商品价格</text></view><view data-event-opts="{{[['tap',[['checkPay',['0']]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">以零售价分享</text></view><view data-event-opts="{{[['tap',[['checkPay',['1']]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">以批发价分享</text></view><block wx:for="{{customerCategoryList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['checkPay',['3','$0'],[[['customerCategoryList','',index]]]]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">{{item.categoryName}}</text></view></block></view></uni-popup><uni-popup class="vue-ref" vue-id="e1ca0ff4-19" background-color="#fff" data-ref="sharePopup" bind:__l="__l" vue-slots="{{['default']}}"><view style="height:350rpx;"><button class="popup-photo" open-type="share" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e">分享给微信好友</button><button data-event-opts="{{[['tap',[['getUserData',['$event']]]]]}}" class="popup-photo" bindtap="__e">生成商品图</button><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="popup-photo" style="border-bottom:0;border-top:10px solid #eee;" bindtap="__e">取消</view></view></uni-popup><uni-popup class="vue-ref" vue-id="e1ca0ff4-20" background-color="#fff" data-ref="imgPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="showImg-box"><swiper class="swiper-box" indicator-dots="{{true}}" circular="{{true}}" autoplay="{{true}}" current="{{swiperDotIndex}}" data-event-opts="{{[['change',[['lunbochange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{bigImg}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item><view class="swiper-item"><image style="width:100%;height:100%;border-radius:10px;" mode="aspectFit" show-menu-by-longpress="{{true}}" src="{{item.productPicture}}" alt></image></view></swiper-item></block></swiper></view></uni-popup><uni-popup class="vue-ref" vue-id="e1ca0ff4-21" background-color="#fff" data-ref="customPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-content" style="height:auto;max-height:600rpx;margin-bottom:0;"><block wx:for="{{customerCategoryList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view><view style="height:60rpx;line-height:60rpx;">{{''+item.categoryName+''}}</view><input style="height:60rpx;padding-left:20rpx;border:1px solid #eee;border-radius:10rpx;" type="number" disabled="{{true}}" data-event-opts="{{[['input',[['__set_model',['$0','categoryPrice','$event',[]],[[['customerCategoryList','',index]]]]]]]}}" value="{{item.categoryPrice}}" bindinput="__e"/></view></block><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" style="text-align:center;margin-top:20rpx;width:100%;height:60rpx;line-height:60rpx;background:#088FEB;color:#fff;" bindtap="__e"> 确认 </view></view></uni-popup><uni-popup class="vue-ref" vue-id="e1ca0ff4-22" background-color="#fff" data-ref="showPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content" style="width:550rpx;"><view class="popup-pay-title"><text>库存数</text></view><view style="width:100%;height:150rpx;"><view style="width:200rpx;height:130rpx;border:3px solid #FFE4C4;border-radius:10px;margin-top:20rpx;padding-top:10px;display:flex;flex-direction:column;text-align:center;float:left;margin-left:20rpx;"><text style="font-weight:bold;"> 正数库存 </text><text style="font-size:30rpx;color:#000;font-weight:bold;">{{''+zheng+''}}</text></view><view style="width:200rpx;height:130rpx;border:3px solid #FFE4C4;border-radius:10px;margin-top:20rpx;padding-top:10px;display:flex;flex-direction:column;text-align:center;float:left;margin-left:40rpx;"><text style="font-weight:bold;"> 负数库存 </text><text style="font-size:30rpx;color:#000;font-weight:bold;">{{''+fu+''}}</text></view></view><view class="popup-pay-container" style="display:flex;margin-top:50rpx;background:#89CFF0;"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" style="flex:1;text-align:center;border-right:1px solid #eee;background:#088FEB;font-size:32rpx;" bindtap="__e"> 确认 </view></view></view></uni-popup><block wx:if="{{canvasshow}}"><view><canvas style="{{'height:'+(canvasHeight+'px')+';'+('width:'+(canvasWidth+'px')+';')}}" canvas-id="myCanvas"></canvas></view></block></view>
|