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
14 KiB

<view class="page1"><view style="position:fixed;top:0;z-index:101;height:50px;width:100%;display:flex;background:#fff;"><view style="display:flex;font-size:15px;"><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 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 data-event-opts="{{[['tap',[['goKaiDan',['$event']]]]]}}" class="top-btn" bindtap="__e"> 开 单 </view></view><view style="position:fixed;top:50px;z-index:101;width:100%;height:70px;background:#fff;"><view style="height:60px;"><view style="width:450px;display:flex;line-height:50px;float:left;"><uni-datetime-picker style="margin-bottom:10px;" vue-id="cca6e3d4-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:220px;display:flex;line-height:50px;float:left;"> 客户:<input style="border:1px solid #eee;height:50px;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:285px;display:flex;line-height:50px;float:left;"> 状态:<uni-data-select bind:input="__e" class="uni-data-select" vue-id="cca6e3d4-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><view class="table" style="margin-top:120px;overflow:scroll;"><view class="table-content"><view class="table-th"><view style="width:50px;">操作</view><view style="width:140px;">标签</view><view data-event-opts="{{[['tap',[['changeSort',['$event']]]]]}}" style="position:relative;" catchtap="__e"> 日期 <block wx:if="{{timeOrder==1}}"><uni-icons style="position:absolute;top:0;right:15px;" vue-id="cca6e3d4-3" type="up" size="14" bind:__l="__l"></uni-icons></block><block wx:if="{{timeOrder==0}}"><uni-icons style="position:absolute;top:0;right:15px;" vue-id="cca6e3d4-4" type="down" size="14" bind:__l="__l"></uni-icons></block></view><view>客户</view><view style="width:50px;">打印</view><view style="width:100px;">打印次数</view><view style="width:50px;">配货</view><view style="width:100px;">销售数量</view><view>销售总额</view><view style="width:100px;">退货数量</view><view>退货总额</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:50px;background:#fff;"><uni-icons vue-id="{{'cca6e3d4-5-'+index}}" type="list" color="#777" size="30" data-event-opts="{{[['^tap',[['changeShowBtn',[index]]]]]}}" catch:tap="__e" bind:__l="__l"></uni-icons><block wx:if="{{item.$orig.isShowBtn}}"><view style="width:auto;height:50px;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:140px;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:70px;height:40px;font-size:16px;" bindlongpress="__e" catchtap="__e"><view style="{{'border:none;width:60px;height:35px;padding:0 5px;color:#fff;display:inline-block;text-align:center;line-height:35px;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="{{'cca6e3d4-6-'+index}}" type="plusempty" size="30" bind:__l="__l"></uni-icons></view></block></view><view data-event-opts="{{[['tap',[['showTime',['$0'],[[['inventoryList','',index,'createTime']]]]]]]}}" style="overflow:hidden;" catchtap="__e">{{item.f0}}</view><view>{{item.$orig.userName}}</view><view style="width:50px;">{{item.$orig.printCount>0?'是':'否'}}</view><view style="width:100px;">{{item.$orig.printCount}}</view><view style="width:50px;">{{(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:100px;">{{item.$orig.productCount}}</view><view>{{item.$orig.totalAmount}}</view><view style="width:100px;">{{item.$orig.returnSaleProductCount==0?'':item.$orig.returnSaleProductCount}}</view><view>{{item.$orig.returnSaleTotalAmount==null?'':item.$orig.returnSaleTotalAmount}}</view></view></block><u-loadmore vue-id="cca6e3d4-7" status="{{status}}" bind:__l="__l"></u-loadmore></view></view><uni-popup class="vue-ref" vue-id="cca6e3d4-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;"><view style="height:40px;font-size:18px;font-weight:bold;line-height:40px;text-align:center;"> 更改标签 </view><view style="width:95%;height:315px;padding-bottom:45px;margin:20px auto 0;"><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:20px 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="{{('cca6e3d4-9-'+index)+','+('cca6e3d4-8')}}" type="checkbox" color="green" bind:__l="__l"></uni-icons></view></block></view></view></block></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',[['e1',['$event']]]]]}}" style="{{'height:50px;line-height:50px;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:50px;line-height:50px;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="cca6e3d4-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="cca6e3d4-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:26px;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="cca6e3d4-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:21px;font-weight:bold;line-height:50px;text-align:center;"> 提示 </view><view style="font-size:21px;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="{{('cca6e3d4-13')+','+('cca6e3d4-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="cca6e3d4-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>