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
16 KiB
1 lines
16 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"><view>{{warnMsg.productCount}}</view><view>商品数</view></view><view class="title-left-box"><view data-event-opts="{{[['tap',[['seeStockCount',['$0','$1'],['warnMsg.stockCount','warnMsg.minusStockCount']]]]]}}" bindtap="__e"><view>{{warnMsg.stockCount+warnMsg.minusStockCount}}</view><view>库存数<uni-icons vue-id="e1ca0ff4-1" type="help" size="7" bind:__l="__l"></uni-icons></view></view></view><view data-event-opts="{{[['tap',[['clickModel',['$event']]]]]}}" class="title-left-box" bindtap="__e"><text>{{type==0?warnMsg.stockCost:'0'}}</text><view>库存成本<uni-icons vue-id="e1ca0ff4-2" type="help" size="7" 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="width:13%;height:80%;float:left;position:fixed;top:110px;"><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:40px;line-height:40px;display:inline-block;overflow:hidden;">{{item.categoryName}}</text></view></block></block></view><view class="content-right" style="width:87%;background:#fff;margin-left:13%;margin-top:110px;overflow:hidden;"><view style="display:flex;height:40px;line-height:40px;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="5" 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:25px;" vue-id="e1ca0ff4-5" type="up" size="5" bind:__l="__l"></uni-icons></block><block wx:if="{{sort==''}}"><uni-icons style="position:absolute;top:6px;right:25px;" vue-id="e1ca0ff4-6" type="down" size="5" bind:__l="__l"></uni-icons></block><block wx:if="{{sort!=''&&orderSort=='asc'}}"><uni-icons style="position:absolute;top:0;right:25px;" vue-id="e1ca0ff4-7" type="up" size="5" color="#FF6A6A" bind:__l="__l"></uni-icons></block><block wx:if="{{sort!=''&&orderSort=='desc'}}"><uni-icons style="position:absolute;top:0;right:25px;" vue-id="e1ca0ff4-8" type="down" size="5" color="#FF6A6A" bind:__l="__l"></uni-icons></block></view></view><view class="table-th"><view style="width:5%;">操作</view><view style="width:10%;">商品图</view><view style="width:15%;">货号</view><view style="width:15%;">名称</view><view style="width:15%;">供应商</view><view style="width:10%;">采购价</view><view style="width:10%;">批发价</view><view style="width:10%;">零售价</view><view style="width:10%;">库存</view></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="table-tr" bindtap="__e"><view style="width:5%;background:#fff;"><view data-event-opts="{{[['tap',[['changeShowBtn',['',index]]]]]}}" style="width:100%;height:100%;" catchtap="__e"><uni-icons vue-id="{{'e1ca0ff4-9-'+index}}" type="list" color="#777" size="5" bind:__l="__l"></uni-icons></view><block wx:if="{{item.isShowBtn}}"><view data-event-opts="{{[['tap',[['closeMask',['',index]]]]]}}" style="position:fixed;top:0;left:0;z-index:98;width:100%;height:100%;opacity:1;" catchtap="__e"></view></block><block wx:if="{{item.isShowBtn}}"><view style="width:auto;height:40px;background:#777;position:absolute;bottom:-40px;left:20px;z-index:98;border:1px solid #eee;border-radius:10px;padding-top:5px;"><view data-event-opts="{{[['tap',[['oneShare',['$0'],[[['shopList','',index]]]]]]]}}" class="operate-btn" style="background:#088FEB;" catchtap="__e">分享</view><block wx:if="{{item.delFlag==1}}"><view data-event-opts="{{[['tap',[['upDown',['0','$0'],[[['shopList','',index]]]]]]]}}" class="operate-btn" style="background:#FF9797;" catchtap="__e">下架</view></block><block wx:if="{{item.delFlag==0}}"><view data-event-opts="{{[['tap',[['upDown',['1','$0'],[[['shopList','',index]]]]]]]}}" class="operate-btn" style="background:#FF9797;" catchtap="__e">下架</view></block><view data-event-opts="{{[['tap',[['seeCustomCategory',['$0'],[[['shopList','',index,'customerCategoryRule']]]]]]]}}" class="operate-btn" style="background:#6A5ACD;" catchtap="__e">客户价格</view></view></block></view><view data-event-opts="{{[['tap',[['largeImg',['$0'],[[['shopList','',index]]]]]]]}}" style="width:10%;" catchtap="__e"><block wx:if="{{item.productPicture}}"><image style="border-radius:10px;width:30px;height:30px;margin:0 auto;" src="{{item.productPicture}}" alt class="_img"></image></block><block wx:else><view class="noPic" style="width:100%;">暂无图片</view></block></view><view style="width:15%;">{{''+(item.productSn==null?'':item.productSn)+''}}</view><view style="width:15%;">{{''+(item.productName==null?'暂无':item.productName)+''}}</view><view style="width:15%;">{{''+(item.supplierName==null?'暂无':item.supplierName)+''}}</view><view style="width:10%;">{{''+(type!=0?0:item.inStorageStatus==0?'待入库':item.purchasePrice==null?'新商品':item.purchasePrice)+''}}</view><view style="width:10%;">{{''+item.wholesalePrice+''}}</view><view style="width:10%;">{{''+item.price+''}}</view><view data-event-opts="{{[['tap',[['seeStockCount',['$0','$1'],[[['shopList','',index,'stockCount']],[['shopList','',index,'minusStockCount']]]]]]]}}" style="width:10%;" catchtap="__e">{{''+(item.stockCount+item.minusStockCount)+''}}<uni-icons vue-id="{{'e1ca0ff4-10-'+index}}" type="help" size="7" bind:__l="__l"></uni-icons></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="table-tr" bindtap="__e"><view style="width:5%;background:#fff;"><uni-icons vue-id="{{'e1ca0ff4-11-'+index}}" type="list" color="#777" size="5" data-event-opts="{{[['^tap',[['changeShowBtn',['sreach',index]]]]]}}" catch:tap="__e" bind:__l="__l"></uni-icons><block wx:if="{{item.isShowBtn}}"><view data-event-opts="{{[['tap',[['closeMask',['sreach',index]]]]]}}" style="position:fixed;top:0;left:0;z-index:98;width:100%;height:100%;opacity:1;" bindtap="__e"></view></block><block wx:if="{{item.isShowBtn}}"><view style="width:auto;height:40px;background:#777;position:absolute;bottom:-40px;left:20px;z-index:99;border:1px solid #eee;border-radius:10px;padding-top:5px;"><view data-event-opts="{{[['tap',[['oneShare',['$0'],[[['shopList1','',index]]]]]]]}}" class="operate-btn" style="background:#088FEB;" catchtap="__e">分享</view><block wx:if="{{item.delFlag==1}}"><view data-event-opts="{{[['tap',[['upDown',['0','$0'],[[['shopList1','',index]]]]]]]}}" class="operate-btn" style="background:#FF9797;" catchtap="__e">下架</view></block><block wx:if="{{item.delFlag==0}}"><view data-event-opts="{{[['tap',[['upDown',['1','$0'],[[['shopList1','',index]]]]]]]}}" class="operate-btn" style="background:#FF9797;" catchtap="__e">上架</view></block><view data-event-opts="{{[['tap',[['seeCustomCategory',['$0'],[[['shopList1','',index,'customerCategoryRule']]]]]]]}}" class="operate-btn" style="background:#6A5ACD;" catchtap="__e">客户价格</view></view></block></view><view data-event-opts="{{[['tap',[['largeImg',['$0'],[[['shopList1','',index]]]]]]]}}" style="width:10%;" catchtap="__e"><block wx:if="{{item.productPicture}}"><image style="border-radius:10px;width:30px;height:30px;margin:0 auto;" src="{{item.productPicture}}" alt class="_img"></image></block><block wx:else><view class="noPic" style="width:100%;">暂无图片</view></block></view><view style="width:15%;">{{''+(item.productSn==null?'':item.productSn)+''}}</view><view style="width:15%;">{{''+(item.productName==null?'暂无':item.productName)+''}}</view><view style="width:15%;">{{''+(item.supplierName==null?'暂无':item.supplierName)+''}}</view><view style="width:10%;">{{''+(type!=0?0:item.inStorageStatus==0?'待入库':item.purchasePrice==null?'新商品':item.purchasePrice)+''}}</view><view style="width:10%;">{{''+item.wholesalePrice+''}}</view><view style="width:10%;">{{''+item.price+''}}</view><view style="width:10%;">{{''+(item.stockCount+item.minusStockCount)+''}}</view></view></block></view><u-loadmore vue-id="e1ca0ff4-12" status="{{status}}" bind:__l="__l"></u-loadmore></view><uni-popup class="vue-ref" vue-id="e1ca0ff4-13" background-color="#fff" data-ref="payDialog" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content" style="width:300px;"><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-14" background-color="#fff" data-ref="sharePriceDialog" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content" style="width:300px;"><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;height:40px;line-height:40px;" type="text" placeholder="可选择客户" disabled="{{true}}" value="{{khName.name}}"/><uni-icons style="line-height:40px;" vue-id="{{('e1ca0ff4-15')+','+('e1ca0ff4-14')}}" type="right" size="5" 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-16" background-color="#fff" data-ref="sharePopup" bind:__l="__l" vue-slots="{{['default']}}"><view style="height:130px;"><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-17" background-color="#fff" data-ref="imgPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="showImg-box" style="{{'height:'+(screenHeight*0.9+'px !important')+';'}}"><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-18" 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:40px;line-height:40px;">{{''+item.categoryName+''}}</view><input style="height:40px;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:40px;line-height:40px;background:#088FEB;color:#fff;" bindtap="__e">确认</view></view></uni-popup><uni-popup class="vue-ref" vue-id="e1ca0ff4-19" background-color="#fff" data-ref="showPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content" style="width:300px;"><view class="popup-pay-title"><text>库存数</text></view><view style="width:100%;height:110px;"><view style="width:45%;height:80px;border:3px solid #FFE4C4;border-radius:10px;margin-top:10px;padding-top:10px;display:flex;flex-direction:column;text-align:center;float:left;"><text style="font-weight:bold;">正数库存</text><text style="color:#000;font-weight:bold;">{{''+zheng+''}}</text></view><view style="width:45%;height:80px;border:3px solid #FFE4C4;border-radius:10px;margin-top:10px;padding-top:10px;display:flex;flex-direction:column;text-align:center;float:left;margin-left:5%;"><text style="font-weight:bold;">负数库存</text><text style="color:#000;font-weight:bold;">{{''+fu+''}}</text></view></view><view class="popup-pay-container" style="display:flex;margin-top:0;background:#89CFF0;width:100%;"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" style="flex:1;text-align:center;border-right:1px solid #eee;background:#088FEB;" 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>
|