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
12 KiB
1 lines
12 KiB
<view class="page1"><view style="width:100%;background:#fff;position:fixed;top:0;z-index:99;height:70px;display:flex;line-height:30px;padding-top:30px;"><view style="padding:0 20px;"><uni-icons vue-id="0676bb71-1" type="left" size="10" data-event-opts="{{[['^tap',[['closePage']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></view></view><view class="title-box"><uni-search-bar class="uni-mt-10" vue-id="0676bb71-2" radius="5" placeholder="请输入商品名称" cancelButton="none" data-event-opts="{{[['^blur',[['search']]],['^clear',[['clearSearch']]]]}}" bind:blur="__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;"><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 class="table-tr"><view data-event-opts="{{[['tap',[['checkboxChange',['$0'],[[['shopList','',index]]]]]]]}}" style="width:5%;background:#fff;" bindtap="__e"><checkbox-group><label><checkbox class="checkbox" checked="{{item.checked}}"></checkbox></label></checkbox-group></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 style="width:10%;">{{''+(item.stockCount+item.minusStockCount)+''}}</view></view></block><block wx:for="{{shopList1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="table-tr"><view style="width:5%;background:#fff;"><checkbox-group data-event-opts="{{[['tap',[['checkboxChange',['$0'],[[['shopList1','',index]]]]]]]}}" bindtap="__e"><label><checkbox class="checkbox" checked="{{item.checked}}"></checkbox></label></checkbox-group></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="0676bb71-3" status="{{status}}" bind:__l="__l"></u-loadmore></view><view class="bottom-box"><view data-event-opts="{{[['tap',[['toggle',['carPopup']]]]]}}" class="bottom-left" bindtap="__e"><view class="bottom-left-box"><uni-icons vue-id="0676bb71-4" type="cart" size="7" color="#646566" bind:__l="__l"></uni-icons><text class="uni-tab__text">已选择</text></view><text class="uni-tab__dot" style="background-color:#ff0000;color:#fff;position:absolute;top:0;right:10px;">{{$root.g0}}</text></view><view class="bottom-right"><view style="width:50%;"></view><view style="width:50%;display:flex;"><button data-event-opts="{{[['tap',[['clickShareBtn',['all']]]]]}}" class="bottom-btn" bindtap="__e">分享全部</button><button data-event-opts="{{[['tap',[['clickShareBtn',['$event']]]]]}}" class="bottom-btn" style="border-radius:0;background:linear-gradient(90deg, #DDA0DD, #FFB6C1);" bindtap="__e">分享选中</button><button data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="bottom-btn" bindtap="__e">上新推送</button></view></view></view><uni-popup class="vue-ref" vue-id="0676bb71-5" type="share" safeArea="{{true}}" backgroundColor="#fff" data-ref="share" bind:__l="__l" vue-slots="{{['default']}}"><uni-popup-share vue-id="{{('0676bb71-6')+','+('0676bb71-5')}}" bind:__l="__l"></uni-popup-share></uni-popup><uni-popup class="vue-ref" vue-id="0676bb71-7" background-color="#fff" data-ref="upNewPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content" style="height:auto;"><view class="content-list"><view class="list-name">客户</view><view class="list-val"><input style="text-align:center;margin-top:10px;" type="text" placeholder="可选择客户" disabled="{{true}}" data-event-opts="{{[['tap',[['goPopleList',['khName']]]]]}}" value="{{khName.name}}" bindtap="__e"/><block wx:if="{{khName!=''}}"><uni-icons style="margin-left:70px;line-height:40px;" vue-id="{{('0676bb71-8')+','+('0676bb71-7')}}" type="close" size="7" data-event-opts="{{[['^tap',[['clearkhName']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></block><block wx:else><view style="margin-left:80px;line-height:40px;"><uni-icons vue-id="{{('0676bb71-9')+','+('0676bb71-7')}}" type="right" size="7" bind:__l="__l"></uni-icons></view></block></view></view><block wx:if="{{khName==''}}"><view><view class="popup-pay-title"><text>选择推送群体</text></view><block wx:if="{{customerCategoryList!=null}}"><view data-event-opts="{{[['tap',[['checkUserClass',['31','']]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">全部客户</text></view></block><view data-event-opts="{{[['tap',[['checkUserClass',['0','']]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">全部客户(零售价)</text></view><view data-event-opts="{{[['tap',[['checkUserClass',['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',[['checkUserClass',['3','$0'],[[['customerCategoryList','',index]]]]]]]}}" class="popup-pay-container" bindtap="__e"><text style="display:inline-block;">{{item.categoryName}}</text></view></block></view></block><block wx:else><view data-event-opts="{{[['tap',[['upNewRemind',['$event']]]]]}}" style="height:80px;background:blue;color:#fff;border-radius:10px;text-align:center;line-height:80px;margin-top:20px;" bindtap="__e">推送</view></block></view></uni-popup><uni-popup class="vue-ref" vue-id="0676bb71-10" background-color="#fff" data-ref="payDialog" 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:10px;" type="text" placeholder="可选择客户" disabled="{{true}}" value="{{khName.name}}"/><uni-icons style="margin-left:80px;line-height:40px;" vue-id="{{('0676bb71-11')+','+('0676bb71-10')}}" type="right" size="7" 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="0676bb71-12" background-color="#fff" data-ref="carPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-content" style="{{'height:'+(screenHeight*0.8+'px !important')+';'}}"><block wx:for="{{gwcList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="position:relative;"><view class="popup-title"><view class="popup-title-left"><block wx:if="{{item.productPicture}}"><image src="{{item.productPicture}}" alt class="_img"></image></block><block wx:else><view class="noPic">暂无</view></block></view><view class="popup-title-right"><view class="popup-title-right-box" style="color:#088FEB;">{{"名称:"+item.productName}}</view><view class="popup-title-right-box">{{"货号:"+item.productSn}}</view><view class="popup-title-right-box" style="color:darkorange;">{{'¥'+item.price+''}}</view><view data-event-opts="{{[['tap',[['delShop',['$0'],[[['gwcList','',index,'id']]]]]]]}}" style="line-height:50px;" catchtap="__e"><uni-icons vue-id="{{('0676bb71-13-'+index)+','+('0676bb71-12')}}" color="red" type="trash" size="7" bind:__l="__l"></uni-icons></view></view></view></view></block></view><view class="popup-bottom"><view class="popup-bottom-left"><text>{{"共 "+carType+" 款"}}</text></view><view class="popup-bottom-right"><view data-event-opts="{{[['tap',[['closeCar',['$event']]]]]}}" class="bottom-btn" bindtap="__e">关闭</view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="0676bb71-14" background-color="#fff" data-ref="showPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content" style="width:550px;"><view class="popup-pay-title"><text>库存数</text></view><view style="width:100%;height:150px;"><view style="width:200px;height:130px;border:3px solid #FFE4C4;border-radius:10px;margin-top:20px;padding-top:20px;display:flex;flex-direction:column;text-align:center;float:left;margin-left:20px;"><text style="font-weight:bold;">正数库存</text><text style="color:#000;font-weight:bold;">{{''+zheng+''}}</text></view><view style="width:200px;height:130px;border:3px solid #FFE4C4;border-radius:10px;margin-top:20px;padding-top:20px;display:flex;flex-direction:column;text-align:center;float:left;margin-left:40px;"><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:50px;background:#89CFF0;"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" style="flex:1;text-align:center;border-right:1px solid #eee;background:#088FEB;" bindtap="__e">确认</view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="0676bb71-15" 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><block wx:if="{{canvasshow}}"><view><canvas style="width:1700px;height:2200px;" canvas-id="myCanvas"></canvas></view></block></view>
|