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
6.8 KiB
1 lines
6.8 KiB
<view class="page1"><block wx:if="{{purchase!=''}}"><view class="content-box" style="{{'height:'+(height-120+'rpx')+';'}}"><view class="content-right"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="right-box"><view class="box-left"><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.productName==null?'':item.productName}}</view><view class="box-right-num">{{item.productSn}}</view><block wx:if="{{shopId!='1960543009070256129'}}"><view class="box-right-price"><view class="price-box"><text>{{item.wholesalePrice==null?'暂无':item.wholesalePrice}}</text><text>批发价</text></view><view class="price-box"><text>{{item.lsprice||item.price}}</text><text>零售价</text></view></view></block><block wx:else><view class="box-right-price"><view class="price-box"><text>{{item.wholesalePrice==null?'暂无':item.wholesalePrice}}</text><text>直播价</text></view><view class="price-box"><text>{{item.lsprice||item.price}}</text><text>日常价</text></view></view></block></view><checkbox-group data-event-opts="{{[['tap',[['goInvPrint',['$0'],[[['goodsList','',index]]]]]]]}}" bindtap="__e"><label><checkbox class="checkbox" checked="{{item.checked}}"></checkbox></label></checkbox-group></view></block></view></view></block><block wx:else><view class="content-box" style="{{'height:'+(height-120+'rpx')+';'}}"><view class="content-left"><block wx:for="{{indexList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><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></view><view class="content-right"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{item.delFlag}}"><view class="right-box"><view class="box-left"><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.productName==null?'':item.productName}}</view><view class="box-right-num">{{item.productSn}}</view><block wx:if="{{item.wholesalePrice!=''&&shopId!='1960543009070256129'}}"><view class="box-right-price"><view class="price-box"><text>{{item.wholesalePrice}}</text><text>批发价</text></view><view class="price-box"><text>{{item.price}}</text><text>零售价</text></view></view></block><block wx:if="{{item.wholesalePrice!=''&&shopId=='1960543009070256129'}}"><view class="box-right-price"><view class="price-box"><text>{{item.wholesalePrice}}</text><text>直播价</text></view><view class="price-box"><text>{{item.price}}</text><text>日常价</text></view></view></block></view><checkbox-group data-event-opts="{{[['tap',[['checkboxChange',['$0'],[[['goodsList','',index]]]]]]]}}" bindtap="__e"><label><checkbox class="checkbox" checked="{{item.checked}}"></checkbox></label></checkbox-group></view></block></block></view></view></block><view class="bottom-box"><view class="bottom-right"><button data-event-opts="{{[['tap',[['clickPrint',['$event']]]]]}}" class="bottom-btn" bindtap="__e">批量打印</button></view></view><uni-popup class="vue-ref" vue-id="4414f91a-1" background-color="#fff" data-ref="payDialog" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-pay-content"><uni-forms-item vue-id="{{('4414f91a-2')+','+('4414f91a-1')}}" label="打印方式" name="type" labelWidth="170rpx" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select bind:input="__e" style="width:100%;" vue-id="{{('4414f91a-3')+','+('4414f91a-2')}}" localdata="{{typeList}}" value="{{printingMethod}}" data-event-opts="{{[['^input',[['__set_model',['','printingMethod','$event',[]]]]]]}}" bind:__l="__l"></uni-data-select></uni-forms-item><view class="popup-pay-title"><text>已选商品</text></view><block wx:for="{{carList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view><view class="box-right"><text class="box-right-name" style="font-size:24rpx;">{{item.productName==null?'':item.productName}}</text><text class="box-right-num">{{"("+item.productSn+")"}}</text></view></view></block><view class="popup-pay-title" style="margin-top:50rpx;"><text>请选择需要打印的字段</text></view><block wx:if="{{shopId!='1960543009070256129'}}"><view><view class="content-fur"><block wx:for="{{list}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['tap',[['addMultipleType',['$0'],[[['list','',index1]]]]]]]}}" class="{{['content-low',item1.checked?'checked':'']}}" catchtap="__e">{{item1.type+''}}</view></block></view><block wx:if="{{list[0].checked&&purchase!=''}}"><view style="display:flex;height:80rpx;width:100%;line-height:80rpx;margin-top:20rpx;"><text style="display:inline-block;width:100rpx;font-size:22rpx;"> 供应商: </text><input style="display:flex;height:80rpx;width:300rpx;line-height:80rpx;padding-left:20rpx;border:1px solid #eee;" disabled="{{closetanPopup}}" type="text" placeholder="请输入供应商名称" data-event-opts="{{[['change',[['changeText',['$event']]]],['input',[['__set_model',['$0','supplierName','$event',[]],['purchase']]]]]}}" value="{{purchase.supplierName}}" bindchange="__e" bindinput="__e"/></view></block></view></block><block wx:else><view><view class="content-fur"><block wx:for="{{list1}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['tap',[['addMultipleType',['$0'],[[['list1','',index1]]]]]]]}}" class="{{['content-low',item1.checked?'checked':'']}}" catchtap="__e">{{item1.type+''}}</view></block></view><block wx:if="{{list1[0].checked&&purchase!=''}}"><view style="display:flex;height:80rpx;width:100%;line-height:80rpx;margin-top:20rpx;"><text style="display:inline-block;width:100rpx;font-size:22rpx;"> 供应商: </text><input style="display:flex;height:80rpx;width:300rpx;line-height:80rpx;padding-left:20rpx;border:1px solid #eee;" disabled="{{closetanPopup}}" type="text" placeholder="请输入供应商名称" data-event-opts="{{[['change',[['changeText',['$event']]]],['input',[['__set_model',['$0','supplierName','$event',[]],['purchase']]]]]}}" value="{{purchase.supplierName}}" bindchange="__e" bindinput="__e"/></view></block></view></block><view class="popup-pay-container"><kk-printer class="vue-ref" vue-id="{{('4414f91a-4')+','+('4414f91a-1')}}" bufferData="{{bufferData}}" defaultText="确认打印" data-ref="kkprinter" data-event-opts="{{[['^goPrint',[['goPrint']]]]}}" bind:goPrint="__e" bind:__l="__l"></kk-printer></view></view></uni-popup></view>
|