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
19 KiB
1 lines
19 KiB
<view class="page1"><view class="title-box" style="height:8%;"><uni-search-bar class="uni-mt-10" vue-id="f0df9f3e-1" radius="5" placeholder="商品名称/货号/供应商" cancelButton="none" data-event-opts="{{[['^input',[['search']]],['^clear',[['clearSearch']]]]}}" bind:input="__e" bind:clear="__e" bind:__l="__l"></uni-search-bar></view><view class="content-left"><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"><block wx:for="{{shopList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toggle',['bottom','$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.buyCountNew!=null&&item.buyCountNew!=undefined}}"><view style="position:absolute;left:110rpx;color:#fff;background:red;width:45rpx;height:40rpx;font-size:28rpx;text-align:center;line-height:40rpx;border-radius:5px;">{{''+item.buyCountNew+''}}</view></block><block wx:if="{{item.productPicture}}"><image class="img-radius _img" src="{{item.productPicture}}" alt></image></block><block wx:else><view class="noPic">暂无图片</view></block></view><view class="box-right"><view class="box-right-name">{{''+(item.productSn==null?'':item.productSn)+"("+(item.productName==null?'':item.productName)+')'}}<block wx:if="{{item.delFlag==0}}"><text style="color:red;">(已下架)</text></block></view><view class="box-right-num">{{"供应商:"+(item.supplierName==null?'':item.supplierName)}}</view><view class="box-right-price"><view class="price-box"><text>{{item.wholesalePrice}}</text><text>{{shopId=='1960543009070256129'?'直播价':'批发价'}}</text></view><view class="price-box"><text>{{item.price}}</text><text>{{shopId=='1960543009070256129'?'日常价':'零售价'}}</text></view><block wx:if="{{item.customPrice!=''&&item.customPrice!=null}}"><view class="price-box"><text>{{item.customPrice}}</text><text>客户价</text></view></block><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="{{'f0df9f3e-2-'+index}}" type="help" size="15" bind:__l="__l"></uni-icons></view></view></view></view></view></block><block wx:for="{{shopList1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toggle',['bottom','$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.buyCountNew!=null&&item.buyCountNew!=undefined}}"><view style="position:absolute;left:110rpx;color:#fff;background:red;width:45rpx;height:40rpx;font-size:28rpx;text-align:center;line-height:40rpx;border-radius:5px;">{{''+item.buyCountNew+''}}</view></block><block wx:if="{{item.productPicture}}"><image class="img-radius _img" src="{{item.productPicture}}" alt></image></block><block wx:else><view class="noPic">暂无图片</view></block></view><view class="box-right"><view class="box-right-name">{{''+item.productSn+''}}<block wx:if="{{item.productName}}"><text>{{"("+(item.productName==null?'':item.productName)+")"}}</text></block></view><view class="box-right-num">{{"供应商:"+(item.supplierName==null?'':item.supplierName)}}</view><view class="box-right-price"><view class="price-box"><text>{{item.wholesalePrice}}</text><text>{{shopId=='1960543009070256129'?'直播价':'批发价'}}</text></view><view class="price-box"><text>{{item.price}}</text><text>{{shopId=='1960543009070256129'?'日常价':'零售价'}}</text></view><block wx:if="{{item.customPrice!=''&&item.customPrice!=null}}"><view class="price-box"><text>{{item.customPrice}}</text><text>客户价</text></view></block><view data-event-opts="{{[['tap',[['seeStockCount',['$0','$1'],[[['shopList1','',index,'stockCount']],[['shopList1','',index,'minusStockCount']]]]]]]}}" class="price-box" catchtap="__e"><text>{{item.stockCount}}</text><view> 库存 <uni-icons vue-id="{{'f0df9f3e-3-'+index}}" type="help" size="15" bind:__l="__l"></uni-icons></view></view></view></view></view></block><u-loadmore vue-id="f0df9f3e-4" status="{{status}}" bind:__l="__l"></u-loadmore></view><view class="bottom-box" style="position:fixed;bottom:0;"><view data-event-opts="{{[['tap',[['toggle',['carPopup']]]]]}}" class="bottom-left" bindtap="__e"><view class="bottom-left-box"><uni-icons vue-id="f0df9f3e-5" type="cart" size="20" 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:10rpx;">{{$root.g0}}</text></view><view class="bottom-right"><view data-event-opts="{{[['tap',[['backPrevPage',['$event']]]]]}}" class="bottom-btn" bindtap="__e">选好了</view></view></view><uni-popup class="vue-ref" vue-id="f0df9f3e-6" background-color="#fff" data-ref="popup" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-content"><view class="popup-title"><view class="popup-title-left"><block wx:if="{{goodsDetail.productPicture}}"><image class="img-radius _img" src="{{goodsDetail.productPicture}}" alt></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;">{{(goodsDetail.productName==null?'':goodsDetail.productName)+''}}</view><view class="popup-title-right-box">{{goodsDetail.productSn}}</view></view></view><view class="popup-container" style="position:relative;"><view data-event-opts="{{[['tap',[['saveCheck',['$event']]]]]}}" style="position:absolute;top:10rpx;right:20rpx;color:#088FEB;text-decoration:underline;" bindtap="__e"> 保存已选 </view><view style="border-top:20rpx;" class="_ul"><block wx:for="{{goodsDetail.attributeList}}" wx:for-item="items" wx:for-index="index" wx:key="index"><view class="_li"><view class="title-fur"><block wx:if="{{index==0}}"><view class="name">{{items.name}}</view></block><block wx:if="{{index==1&&shopId=='1822829636942434305'}}"><view class="name">{{items.name}}</view></block></view><block wx:if="{{index==0}}"><view class="attrs"><uni-data-checkbox vue-id="{{('f0df9f3e-7-'+index)+','+('f0df9f3e-6')}}" localdata="{{range}}" value="{{value}}" data-event-opts="{{[['^change',[['change']]],['^input',[['__set_model',['','value','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-data-checkbox><block wx:for="{{items.value}}" wx:for-item="itemTag" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['tap',[['attrNameChange',[index,'$0',index1],[[['goodsDetail.attributeList','',index],['value','',index1,'value']]]]]]]}}" class="{{['suibian',itemTag.isChecked?'checkedText':'']}}" style="position:relative;" catchtap="__e">{{''+itemTag.value+''}}<block wx:if="{{itemTag.isKucun}}"><view class="kucun"></view></block></view></block></view></block><block wx:if="{{index==1&&shopId=='1822829636942434305'}}"><view class="attrs"><uni-data-checkbox vue-id="{{('f0df9f3e-8-'+index)+','+('f0df9f3e-6')}}" localdata="{{range}}" value="{{value}}" data-event-opts="{{[['^change',[['change']]],['^input',[['__set_model',['','value','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-data-checkbox><block wx:for="{{items.value}}" wx:for-item="itemTag" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['tap',[['attrNameChange',[index,'$0',index1],[[['goodsDetail.attributeList','',index],['value','',index1,'value']]]]]]]}}" class="{{['suibian',itemTag.isChecked?'checkedText':'']}}" style="position:relative;" catchtap="__e">{{''+itemTag.value+''}}<block wx:if="{{itemTag.isKucun}}"><view class="kucun"></view></block></view></block></view></block></view></block></view><view style="padding-bottom:100rpx;"><block wx:if="{{temporaryList!=''}}"><view class="checkList"><view class="checkList-box" style="width:69.5%;"><text style="width:300rpx;display:inline-block;font-size:30rpx;font-weight:bold;padding-left:40rpx;"> 规格 </text><text style="font-size:30rpx;color:#000;font-weight:bold;width:110rpx;display:inline-block;text-align:right;"> 库存 </text></view><view class="zuni-numbox"><view data-event-opts="{{[['tap',[['minusNum',['$event']]]]]}}" class="zuni-numbox__minus zuni-numbox-btns" style="background:#f5f5f5;" bindtap="__e"><text class="zuni-numbox--text">-</text></view><input class="zuni-numbox__value" disabled="{{true}}" type="number" data-event-opts="{{[['tap',[['obtainPrice',['$event','zongjishu']]]],['input',[['__set_model',['','allChangeNum','$event',[]]]]]]}}" value="{{allChangeNum}}" bindtap="__e" bindinput="__e"/><view data-event-opts="{{[['tap',[['plusNum',['$event']]]]]}}" class="zuni-numbox__plus zuni-numbox-btns" style="background:#f5f5f5;" bindtap="__e"><text class="zuni-numbox--text">+</text></view></view></view></block><block wx:for="{{temporaryList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="checkList"><view data-event-opts="{{[['tap',[['delCarData',[index]]]]]}}" style="margin-right:20rpx;width:7%;" catchtap="__e"><uni-icons vue-id="{{('f0df9f3e-9-'+index)+','+('f0df9f3e-6')}}" color="red" type="minus" size="26" bind:__l="__l"></uni-icons></view><view class="checkList-box"><text style="width:69%;display:inline-block;">{{item.name}}</text><text style="color:#777;font-size:24rpx;width:25%;display:inline-block;text-align:center;">{{''+(item.productNum==null?'无库存':item.productNum)+''}}</text></view><view class="zuni-numbox"><view data-event-opts="{{[['tap',[['oneMinusNum',[index]]]]]}}" class="zuni-numbox__minus zuni-numbox-btns" style="background:#f5f5f5;" bindtap="__e"><text class="zuni-numbox--text">-</text></view><input class="zuni-numbox__value" disabled="{{true}}" type="number" data-event-opts="{{[['tap',[['obtainPrice',['$event','danjishu',index]]]],['input',[['__set_model',['$0','productCount','$event',[]],[[['temporaryList','',index]]]]]]]}}" value="{{item.productCount}}" bindtap="__e" bindinput="__e"/><view data-event-opts="{{[['tap',[['onePlusNum',[index]]]]]}}" class="zuni-numbox__plus zuni-numbox-btns" style="background:#f5f5f5;" bindtap="__e"><text class="zuni-numbox--text">+</text></view></view></view></block></view></view><view class="popup-bottom"><view class="popup-bottom-left"><text>{{zNum+" 件"}}</text></view><view class="popup-bottom-right"><view data-event-opts="{{[['tap',[['temporaryCheck',['$event']]]]]}}" class="bottom-btn" bindtap="__e">选好了</view></view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="f0df9f3e-10" 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" src="{{item.productPicture}}" alt></image></view></swiper-item></block></swiper></view></uni-popup><uni-popup class="vue-ref" vue-id="f0df9f3e-11" background-color="#fff" data-ref="goodsNumDialog" data-event-opts="{{[['^change',[['keyWordChange']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="add-popup-content"><view class="add-popup-title"><text>请输入拿货数量</text><uni-icons style="height:40rpx;line-height:40rpx;position:absolute !important;bottom:0;right:30rpx;" vue-id="{{('f0df9f3e-12')+','+('f0df9f3e-11')}}" type="closeempty" color="red" size="16" data-event-opts="{{[['^tap',[['e0']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></view><view class="add-popup-container"><view><text style="color:red;font-size:22rpx;">{{"*您的此款商品只有一个“"+oneGoodsName+"”,可直接输入拿货数量即可"}}</text></view><input style="width:100%;border:1px solid #eee;height:80rpx;padding-left:20rpx;margin:20rpx 0;font-size:25rpx;line-height:80rpx;" type="idcard" placeholder="请输入此商品拿货数量" disabled="{{true}}" data-event-opts="{{[['tap',[['e1',['$event']]]],['input',[['__set_model',['','goodsNum','$event',[]]]]]]}}" value="{{goodsNum}}" bindtap="__e" bindinput="__e"/><view class="add-popup-bottom"><view data-event-opts="{{[['tap',[['oneGoodsToCarList',['$event']]]]]}}" class="add-popup-btn" bindtap="__e">确认</view></view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="f0df9f3e-13" background-color="#fff" data-ref="carPopup" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-content"><block wx:for="{{$root.l1}}" 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.$orig.productPicture}}"><image class="img-radius _img" src="{{item.$orig.productPicture}}" alt></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.$orig.productName==null?'':item.$orig.productName}}</view><view class="popup-title-right-box">{{item.$orig.productSn}}</view><view class="popup-title-right-box"><text style="margin-right:20rpx;">{{"供应商:"+(item.$orig.supplierName==null?"":item.$orig.supplierName)}}</text><view data-event-opts="{{[['tap',[['delShop',['$0'],[[['carList','',index]]]]]]]}}" style="position:absolute;top:30rpx;right:30rpx;" catchtap="__e"><uni-icons vue-id="{{('f0df9f3e-14-'+index)+','+('f0df9f3e-13')}}" color="red" type="trash" size="26" bind:__l="__l"></uni-icons></view></view></view></view><block wx:for="{{item.l0}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="popup-container1"><view class="checkList" style="padding-bottom:160rpx;"><view data-event-opts="{{[['tap',[['delShopSpec',['$0','$1'],[[['carList','',index,'id']],[['carList','',index],['saleDetailQueryDTO','',index1,'attributeList']]]]]]]}}" style="margin-right:5%;" bindtap="__e"><uni-icons vue-id="{{('f0df9f3e-15-'+index+'-'+index1)+','+('f0df9f3e-13')}}" color="red" type="minus" size="26" bind:__l="__l"></uni-icons></view><view class="checkList-box">{{''+item1.f0+''}}</view><view class="zuni-numbox"><view data-event-opts="{{[['tap',[['mapMinusNum',[index,index1]]]]]}}" class="zuni-numbox__minus zuni-numbox-btns" style="background:#f5f5f5;" bindtap="__e"><text class="zuni-numbox--text">-</text></view><input class="zuni-numbox__value" disabled="{{true}}" type="number" data-event-opts="{{[['tap',[['obtainPrice',['$event','chejishu',index,index1]]]],['input',[['__set_model',['$0','productCount','$event',[]],[[['carList','',index],['saleDetailQueryDTO','',index1]]]]]]]}}" value="{{item1.$orig.productCount}}" bindtap="__e" bindinput="__e"/><view data-event-opts="{{[['tap',[['mapPlusNum',[index,index1]]]]]}}" class="zuni-numbox__plus zuni-numbox-btns" style="background:#f5f5f5;" bindtap="__e"><text class="zuni-numbox--text">+</text></view></view></view></view></block></view></block><view class="popup-bottom"><view class="popup-bottom-left"><text>{{carType+" 款 "+carNum+" 件"}}</text></view><view class="popup-bottom-right"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="bottom-btn" bindtap="__e">关闭</view></view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="f0df9f3e-16" background-color="#fff" data-ref="customPopup" data-event-opts="{{[['^change',[['noChangeCustomPopup']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-content" style="width:600rpx;height:auto;max-height:1288rpx;margin-bottom:0;overflow:scroll;"><view style="height:80rpx;font-size:36rpx;font-weight:bold;line-height:80rpx;text-align:center;"> 超出最大可退货数量 </view><block wx:for="{{checkCanBuy}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view><view style="height:auto;line-height:60rpx;border-bottom:1px solid #eee;"><view style="font-weight:bold;">{{"货号:"+item.productSn+"规格:"+item.attributeList}}</view><view>{{"总售出数:"+item.buyCountAll+" 总退回数:"+item.returnCountAll+''}}<text style="color:red;padding-left:10rpx;">{{'本次退货数:'+item.returnCountAllNew}}</text></view></view></view></block><view data-event-opts="{{[['tap',[['closeCustomPopup',['$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="f0df9f3e-17" 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:20rpx;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:20rpx;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><u-keyboard class="vue-ref" vue-id="f0df9f3e-18" overlay="{{false}}" defaultText="{{keyboardNum}}" mode="card" show="{{show}}" data-ref="uKeyboard" data-event-opts="{{[['^confirm',[['keyboardConfirm']]],['^cancel',[['keyCancel']]],['^change',[['valChange']]],['^close',[['keyCancel']]],['^backspace',[['backspace']]]]}}" bind:confirm="__e" bind:cancel="__e" bind:change="__e" bind:close="__e" bind:backspace="__e" bind:__l="__l"></u-keyboard></view>
|