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.1 KiB

<view><cmd-nav-bar vue-id="8cbca2c4-1" title="{{shopName}}" background-color="#fff" bind:__l="__l"></cmd-nav-bar><view class="search" style="position:fixed;top:180rpx;z-index:99;"><uni-datetime-picker style="margin-bottom:20rpx;" vue-id="8cbca2c4-2" 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 style="display:flex;"><view style="{{'width:80%;'+('width:'+(listStatus!=6?'80%':'100%')+';')}}"><uni-search-bar class="uni-mt-10" vue-id="8cbca2c4-3" radius="5" placeholder="输入客户名称/销售人员/单号搜索" cancelButton="none" data-event-opts="{{[['^confirm',[['searchList']]]]}}" bind:confirm="__e" bind:__l="__l"></uni-search-bar></view><block wx:if="{{listStatus!=6}}"><view style="width:20%;"><view data-event-opts="{{[['tap',[['changeSort',['paixu']]]]]}}" style="width:80%;height:70rpx;background:#5fd9ee;text-align:center;line-height:70rpx;border-radius:10px;margin:20rpx;color:#fff;" bindtap="__e"> 查看 <block wx:if="{{noDaysort==false}}"><uni-icons vue-id="8cbca2c4-4" type="down" color="#fff" size="11" bind:__l="__l"></uni-icons></block><block wx:if="{{noDaysort}}"><uni-icons vue-id="8cbca2c4-5" type="up" color="#fff" size="11" bind:__l="__l"></uni-icons></block></view></view></block></view></view><block wx:if="{{noDaysort}}"><view class="nahuo-mask"><view style="width:100%;margin:0 auto;background:#fff;height:200rpx;border:1px solid #eee;border-bottom-left-radius:10px;border-bottom-right-radius:10px;"><view data-event-opts="{{[['tap',[['getCancelOrder']]]]}}" class="paixu-content" style="border-bottom:1px solid #eee;" bindtap="__e"> 查看全部订单 </view><view data-event-opts="{{[['tap',[['getCancelOrder',['2']]]]]}}" class="paixu-content" bindtap="__e"> 查看已作废状态的订单 </view></view></view></block><view class="u-transition" style="display:flex;background:#ecf5ff;width:100%;color:#5fd9ee;height:80rpx;line-height:80rpx;padding-left:20rpx;"><view>点击列表可跳转至销售单</view></view><block wx:if="{{$root.g0>0}}"><view class="ulList" style="overflow:scroll;margin-top:480rpx;"><view style="{{'margin-bottom:'+(btnStatus==false?'160rpx':'')+';'}}" class="_ul"><block wx:for="{{inventoryList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="_li"><checkbox-group data-event-opts="{{[['change',[['checkboxChange',['$event']]]]]}}" bindchange="__e"><label class="uni-list-cell uni-list-cell-pd"><block wx:if="{{btnStatus==false}}"><checkbox style="float:left;width:60rpx;line-height:300rpx;margin:0 20rpx;" value="{{item}}"></checkbox></block><view data-event-opts="{{[['tap',[['gotoDetail',['$0','$1'],[[['inventoryList','',index,'id']],[['inventoryList','',index,'userId']]]]]]]}}" style="{{'width:'+(btnStatus==false?'95%':'100%')+';'}}" bindtap="__e"><uni-card vue-id="{{'8cbca2c4-6-'+index}}" title="{{item.userName==null?'暂无':(shopId=='1810179818189361152'||shopId=='1863043415453863936')&&item.userName=='散客'?'客户':item.userName}}" sub-title="{{item.createTime==null?'暂无':item.createTime}}" extra="{{'数量:'+(item.productCount==null?'暂无':item.productCount)}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="uni-body" style="font-weight:bold;font-size:30rpx;"><text class="cardText" style="font-size:30rpx;">单号:</text>{{''+item.id+''}}</view><view class="uni-body"><text class="cardText">销售员:</text>{{''+(item.createByName==null?'暂无':item.createByName)}}</view><view class="uni-body"><text class="cardText">销售金额:</text><text class="priceText">{{item.totalAmount==null?'暂无':item.totalAmount}}</text><text class="cardText" decode="{{true}}">     欠款: </text><text class="priceText" style="color:red;">{{item.noEarn==null?'暂无':item.noEarn}}</text></view><block wx:if="{{item.returnSaleProductCount>0}}"><view class="uni-body"><text class="cardText">退货金额:</text><text class="priceText">{{item.returnSaleTotalAmount==null?'暂无':item.returnSaleTotalAmount}}</text><text class="cardText" decode="{{true}}">     退货数: </text><text class="priceText">{{item.returnSaleProductCount==null?'暂无':item.returnSaleProductCount}}</text></view></block><view class="uni-body"><text class="cardText"> 订单状态:</text>{{(item.status=='0'?'待抢单':item.status=='2'?'作废':item.status=='1'?'待取货':item.status=='3'?'待送达':item.status=='4'?'已完成':item.status=='5'?'下游客户待退货':item.status=='00'?'退货待抢单':item.status=='01'?'退货待取货':item.status=='03'?'退货待送达':item.status=='04'?'待确认退货':item.status=='6'?'待配货':item.status=='8'?'待物流上门':item.status=='9'?'已完成':'挂单')+''}}</view><block wx:if="{{item.status==6}}"><view data-event-opts="{{[['tap',[['goSaleGoods',['$0',''],[[['inventoryList','',index]]]]]]]}}" class="floatRight" catchtap="__e">去开单</view></block><block wx:if="{{item.status==4}}"><view data-event-opts="{{[['tap',[['cancelOrder',['$0','',index],[[['inventoryList','',index]]]]]]]}}" class="floatRight" catchtap="__e">撤销</view></block><block wx:if="{{item.status==4}}"><view data-event-opts="{{[['tap',[['cancelOrder',['$0','goPay'],[[['inventoryList','',index]]]]]]]}}" class="floatRight" catchtap="__e">撤销并复制</view></block><block wx:if="{{item.status==4}}"><view data-event-opts="{{[['tap',[['copyOrder',['$0',''],[[['inventoryList','',index]]]]]]]}}" class="floatRight" catchtap="__e">复制</view></block><block wx:if="{{item.status==2}}"><view data-event-opts="{{[['tap',[['againOrder',['$0'],[[['inventoryList','',index]]]]]]]}}" class="floatRight" catchtap="__e">重新开单</view></block><block wx:if="{{item.status==6}}"><view data-event-opts="{{[['tap',[['delItemModal',['$0'],[[['inventoryList','',index]]]]]]]}}" class="floatRight" style="color:red;width:150rpx;" catchtap="__e">删除订单</view></block></uni-card></view></label></checkbox-group></view></block><u-loadmore vue-id="8cbca2c4-7" status="{{status}}" bind:__l="__l"></u-loadmore></view></view></block><block wx:else><u-empty vue-id="8cbca2c4-8" mode="order" margin-top="480" bind:__l="__l"></u-empty></block></view>