平板端快衣店
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
15 KiB

<view class="page1"><view style="position:fixed;top:0;z-index:99;height:40px;width:100%;display:flex;background:#fff;"><view data-event-opts="{{[['tap',[['openPopup',['']]]]]}}" class="top-btn" bindtap="__e">标签</view><view data-event-opts="{{[['tap',[['clearSearch',['$event']]]]]}}" class="top-btn" style="float:left;" bindtap="__e">清空</view><view data-event-opts="{{[['tap',[['getOrderInfoList',['sreach']]]]]}}" class="top-btn" style="float:left;" bindtap="__e">查询</view><view style="display:flex;"><view class="color-box"><view class="color-piece" style="background:#E6E6FA;"></view>下游待配货</view><view class="color-box"><view class="color-piece" style="background:#C1FFC1;"></view>挂单</view><view class="color-box"><view class="color-piece" style="background:#777;"></view>作废</view><view class="color-box"><view class="color-piece" style="background:#FFEC8B;"></view>待库房配货</view><view class="color-box"><view class="color-piece" style="background:#87CEFA;"></view>库房配货完成</view></view></view><view style="position:fixed;top:40px;z-index:99;width:100%;height:40px;background:#fff;"><view style="width:40%;float:left;height:30px;margin-top:5px;"><uni-datetime-picker style="margin-bottom:10px;" vue-id="55253281-1" type="daterange" value="{{range}}" data-event-opts="{{[['^change',[['searchList']]],['^input',[['__set_model',['','range','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-datetime-picker></view><view style="width:25%;display:flex;line-height:30px;height:30px;float:left;margin-top:5px;">客户:<input style="border:1px solid #eee;height:30px;line-height:30px;width:150px;" type="text" data-event-opts="{{[['input',[['__set_model',['','customName','$event',[]]],['sreachName',['$event']]]],['focus',[['inputFocus',['$event']]]]]}}" value="{{customName}}" bindinput="__e" bindfocus="__e"/></view><view style="width:25%;display:flex;line-height:30px;float:left;height:30px;margin-top:5px;">状态:<uni-data-select bind:input="__e" class="uni-data-select" vue-id="55253281-2" localdata="{{statusList}}" placeholder="订单状态" value="{{listStatus}}" data-event-opts="{{[['^input',[['__set_model',['','listStatus','$event',[]]]]]]}}" bind:__l="__l"></uni-data-select></view><block wx:if="{{faBookShow}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" style="z-index:98;position:fixed;top:0;left:0;width:100%;height:100%;" bindtap="__e"><block wx:if="{{faBookShow}}"><view class="book-mask"><block wx:if="{{$root.g0==0}}"><view style="color:#777;width:100%;height:50px;line-height:50px;text-align:center;">暂无匹配项</view></block><block wx:else><block wx:for="{{customList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['checkName',['$0'],[[['customList','',index]]]]]]]}}" style="height:50px;line-height:50px;" bindtap="__e">{{''+item.name+''}}</view></block></block></view></block></view></block></view><view class="table" style="margin-top:80px;overflow:scroll;"><view class="table-content"><view class="table-th"><view style="width:5%;">操作</view><view style="width:15%;">标签</view><view data-event-opts="{{[['tap',[['changeSort',['$event']]]]]}}" style="position:relative;width:10%;" catchtap="__e"><text style="display:inline-block;padding-right:20px;">日期</text><block wx:if="{{timeOrder==1}}"><uni-icons style="position:absolute;top:0;right:15px;" vue-id="55253281-3" type="up" size="5" bind:__l="__l"></uni-icons></block><block wx:if="{{timeOrder==0}}"><uni-icons style="position:absolute;top:0;right:15px;" vue-id="55253281-4" type="down" size="5" bind:__l="__l"></uni-icons></block></view><view style="width:10%;overflow:hidden;">客户</view><view style="width:5%;">打印</view><view style="width:10%;">打印次数</view><view style="width:5%;">配货</view><view style="width:10%;">销售数量</view><view style="width:10%;">销售总额</view><view style="width:10%;">退货数量</view><view style="width:10%;">退货总额</view></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="table-tr" style="{{'background:'+(item.$orig.status=='7'?'#C1FFC1':item.$orig.status=='2'?'#777':item.$orig.status=='4'&&item.$orig.distributionFlag=='0'?'#FFEC8B':item.$orig.status=='4'&&item.$orig.distributionFlag=='1'?'#87CEFA':item.$orig.status=='6'?'#E6E6FA':'#FFFFE0')+';'}}"><view style="width:5%;background:#fff;"><uni-icons vue-id="{{'55253281-5-'+index}}" type="list" color="#777" size="5" data-event-opts="{{[['^tap',[['changeShowBtn',[index]]]]]}}" catch:tap="__e" bind:__l="__l"></uni-icons><block wx:if="{{item.$orig.isShowBtn}}"><view data-event-opts="{{[['tap',[['closeMask',[index]]]]]}}" style="position:fixed;top:0;z-index:98;width:100%;height:100%;opacity:1;" bindtap="__e"></view></block><block wx:if="{{item.$orig.isShowBtn}}"><view style="width:auto;height:40px;background:#777;position:absolute;bottom:-52px;left:20px;z-index:99;border:1px solid #eee;border-radius:10px;padding-top:5px;"><view data-event-opts="{{[['tap',[['isPrint',['$0','$1',index],[[['inventoryList','',index,'id']],[['inventoryList','',index,'userId']]]]]]]}}" class="operate-btn" style="background:red;" catchtap="__e">打印</view><block wx:if="{{item.$orig.status=='4'}}"><view data-event-opts="{{[['tap',[['cancelOrder',['$0','',index],[[['inventoryList','',index]]]]]]]}}" class="operate-btn" style="background:#088FEB;" catchtap="__e">撤销</view></block><block wx:if="{{item.$orig.status=='4'}}"><view data-event-opts="{{[['tap',[['cancelOrder',['$0','goPay',index],[[['inventoryList','',index]]]]]]]}}" class="operate-btn" style="background:#FF9797;" catchtap="__e">撤销并复制</view></block><block wx:if="{{item.$orig.status=='7'}}"><view data-event-opts="{{[['tap',[['goGoods',['$0'],[[['inventoryList','',index]]]]]]]}}" class="operate-btn" style="background:#60F3FF;" catchtap="__e">去开单</view></block><view data-event-opts="{{[['tap',[['goDetail',['$0','$1',index],[[['inventoryList','',index,'id']],[['inventoryList','',index,'userId']]]]]]]}}" class="operate-btn" style="background:#6A5ACD;" bindtap="__e">查看详情</view><block wx:if="{{item.$orig.status==2}}"><view data-event-opts="{{[['tap',[['againOrder',['$0'],[[['inventoryList','',index]]]]]]]}}" class="operate-btn" style="background:#6A5ACD;" catchtap="__e">重新开单</view></block></view></block></view><view style="width:15%;display:flex;background:#fff;"><block wx:for="{{item.$orig.lableList}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><block wx:if="{{item.g1}}"><view data-event-opts="{{[['longpress',[['delOrderLable',[index,index1]]]],['tap',[['openPopup',[index]]]]]}}" style="width:50%;height:30px;" bindlongpress="__e" catchtap="__e"><view style="{{'border:none;width:80%;height:25px;padding:0 5px;color:#fff;display:inline-block;text-align:center;line-height:25px;margin:2.5px 0 0 5px;border-radius:40px;'+('background:'+(item1.lableColor)+';')}}">{{item1.lableContent}}</view></view></block></block><block wx:if="{{item.g2}}"><view data-event-opts="{{[['tap',[['openPopup',[index]]]]]}}" style="flex:1;" catchtap="__e"><uni-icons vue-id="{{'55253281-6-'+index}}" type="plusempty" size="5" bind:__l="__l"></uni-icons></view></block></view><view data-event-opts="{{[['tap',[['showTime',['$0'],[[['inventoryList','',index,'createTime']]]]]]]}}" style="overflow:hidden;width:10%;" catchtap="__e">{{item.f0}}</view><view style="overflow:hidden;width:10%;">{{item.$orig.userName}}</view><view style="width:5%;">{{item.$orig.printCount>0?'是':'否'}}</view><view style="width:10%;">{{item.$orig.printCount}}</view><view style="width:5%;">{{(item.$orig.distributionFlag=='0'||item.$orig.distributionFlag==null)&&item.$orig.status=='4'?'否':item.$orig.status!='4'?'-':item.$orig.distributionFlag=='1'&&item.$orig.status=='4'?'是':'-'}}</view><view style="width:10%;">{{item.$orig.productCount}}</view><view style="width:10%;">{{item.$orig.totalAmount}}</view><view style="width:10%;">{{item.$orig.returnSaleProductCount==0?'':item.$orig.returnSaleProductCount}}</view><view style="width:10%;">{{item.$orig.returnSaleTotalAmount==null?'':item.$orig.returnSaleTotalAmount}}</view></view></block><u-loadmore vue-id="55253281-7" status="{{status}}" bind:__l="__l"></u-loadmore></view></view><uni-popup class="vue-ref" vue-id="55253281-8" background-color="#fff" is-mask-click="{{true}}" data-ref="signPopup" data-event-opts="{{[['^change',[['changeSignPopup']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="sign-popup" style="margin-bottom:0;width:600px;"><view style="height:40px;font-size:18px;font-weight:bold;line-height:40px;text-align:center;">更改标签</view><view style="width:95%;height:200px;padding-bottom:55px;margin:0 auto;overflow:scroll;"><block wx:for="{{signList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['longpress',[['isEditOrDel',['$0'],[[['signList','',index]]]]]],['tap',[['clickLable',[index]]]]]}}" style="{{'height:40px;margin:10px 10px 0 0;display:inline-block;text-align:center;line-height:40px;border-radius:10px;'+('background:'+(item.lableColor)+';')}}" bindlongpress="__e" bindtap="__e"><view style="height:40px;padding:0 5px;color:#fff;position:relative;">{{''+item.lableContent+''}}<block wx:if="{{item.checked}}"><view style="width:30px;height:30px;position:absolute;right:-13px;top:-18px;"><uni-icons vue-id="{{('55253281-9-'+index)+','+('55253281-8')}}" type="checkbox" size="5" color="green" bind:__l="__l"></uni-icons></view></block></view></view></block></view><view style="position:absolute;bottom:10px;left:5px;height:40px;width:95%;background:#fff;display:flex;padding:0 5px;"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" style="{{'height:40px;line-height:40px;text-align:center;background:linear-gradient(90deg, #FF9797, #FFC1E0);color:#fff;margin:0 auto;'+('width:'+(isAddLableBtn?'100%':'50%')+';')}}" bindtap="__e">新增标签</view><block wx:if="{{isAddLableBtn==false}}"><view data-event-opts="{{[['tap',[['confirmLable']]]]}}" style="width:50%;height:40px;line-height:40px;text-align:center;background:linear-gradient(90deg, #60F3FF, #088FEB);color:#fff;margin:0 auto;" bindtap="__e">确认</view></block></view></view></uni-popup><uni-popup class="vue-ref" vue-id="55253281-10" background-color="#fff" is-mask-click="{{true}}" data-ref="editLablePopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="sign-popup" style="margin-bottom:0;width:350px;"><view style="height:40px;font-size:18px;font-weight:bold;line-height:40px;text-align:center;">提醒</view><view style="width:95%;height:150px;padding-bottom:45px;margin:20px auto 0;text-align:center;">您要进行什么操作?</view><view style="position:absolute;bottom:10px;left:5px;height:50px;width:95%;background:#fff;display:flex;padding:0 5px;"><view data-event-opts="{{[['tap',[['delLable',['$event']]]]]}}" style="width:50%;height:50px;line-height:50px;text-align:center;background:linear-gradient(90deg, #FF9797, #FFC1E0);color:#fff;margin:0 auto;" bindtap="__e">删除</view><view data-event-opts="{{[['tap',[['editLable',['$event']]]]]}}" style="width:50%;height:50px;line-height:50px;text-align:center;background:linear-gradient(90deg, #60F3FF, #088FEB);color:#fff;margin:0 auto;" bindtap="__e">编辑</view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="55253281-11" background-color="#fff" is-mask-click="{{true}}" data-ref="lablePopup" data-event-opts="{{[['^change',[['changeAddLable']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="sign-popup" style="margin-bottom:0;width:500px;"><view style="height:80px;font-size:18px;font-weight:bold;line-height:80px;text-align:center;">{{''+(isEdit?'修改':'新增')+'标签'}}</view><view style="height:315px;padding-bottom:45px;margin:20px auto 0;"><view style="width:95%;height:40px;line-height:40px;display:flex;"><view style="width:30%;text-align:center;">标签内容:</view><input style="height:40px;border:1px solid #dcdcdc;padding-left:20px;width:70%;" maxlength="2" type="text" placeholder="请输入标签内容" data-event-opts="{{[['input',[['__set_model',['','lableText','$event',[]]]]]]}}" value="{{lableText}}" bindinput="__e"/></view><view style="width:95%;display:flex;"><view style="width:30%;text-align:center;padding-top:20px;">标签颜色:</view><view style="width:70%;"><block wx:for="{{colorList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['clickNewLable',[index]]]]]}}" style="{{'width:50px;height:40px;margin:20px 30px 0 0;display:inline-block;text-align:center;line-height:40px;border-radius:10px;'+('background:'+(item.name)+';')+('border:'+(item.checked&&item.name=='#FF3030'?'3px solid yellow':item.checked&&item.name!='#FF3030'?'3px solid red':'none')+';')}}" bindtap="__e"></view></block></view></view></view><view style="position:absolute;bottom:10px;height:50px;width:100%;background:#fff;z-index:99;"><view data-event-opts="{{[['tap',[['addLable',['$event']]]]]}}" style="width:95%;height:50px;line-height:50px;text-align:center;background:linear-gradient(90deg, #60F3FF, #088FEB);border-radius:10px;color:#fff;margin:0 auto;" bindtap="__e">确认新增</view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="55253281-12" background-color="#fff" is-mask-click="{{true}}" data-ref="printPopup" bind:__l="__l" vue-slots="{{['default']}}"><view style="width:300px;margin-bottom:0;border-radius:10px;height:200px;"><view style="height:50px;font-size:18px;font-weight:bold;line-height:50px;text-align:center;">提示</view><view style="line-height:81px;text-align:center;padding:0 27px 0;font-weight:bold;">是否打印该订单?</view><view style="width:100%;height:60px;line-height:60px;text-align:center;border-radius:0;background:linear-gradient(90deg, #60F3FF, #088FEB);color:#fff;display:flex;position:absolute;bottom:0;"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" style="width:50%;" bindtap="__e">取消</view><kk-printer class="vue-ref" style="width:50%;background:linear-gradient(90deg, #FF9797, #FFC1E0);" vue-id="{{('55253281-13')+','+('55253281-12')}}" bufferData="{{bufferData}}" defaultText="打印小票" data-ref="kkprinter" data-event-opts="{{[['^onPrintSmall',[['onPrintSmall']]]]}}" bind:onPrintSmall="__e" bind:__l="__l"></kk-printer></view></view></uni-popup><block wx:if="{{$root.g3>0}}"><uqrcode class="vue-ref" vue-id="55253281-14" hide="{{true}}" size="160" sizeUnit="rpx" canvas-id="qrcode" value="{{QrUrl}}" data-ref="uqrcode" bind:__l="__l"></uqrcode></block><block wx:if="{{isShare==false&&canvasshow==true}}"><view><canvas style="{{'height:'+(myCanvasHeight)+';'+('width:'+(myCanvasWidth)+';')}}" canvas-id="myCanvas"></canvas></view></block><view style="position:absolute;top:-1500px;z-index:-1;opacity:0;"><canvas style="width:1515px;height:1210px;" canvas-id="myCanvas1"></canvas></view></view>