| | |
| | | <image src="/static/icon/ic_xunizhanghu@2x.png" mode="widthFix"></image> |
| | | <text>虚拟账号</text> |
| | | </view> |
| | | <view class="func-item" style="margin-bottom: 30rpx;"> |
| | | <view class="func-item" style="margin-bottom: 30rpx;" @click="jumpWriteoff"> |
| | | <image src="/static/icon/ic_zitihexiao@2x.png" mode="widthFix"></image> |
| | | <text>自提核销</text> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="title" v-if="!show">待处理订单 ({{total}})</view> |
| | | <view class="list" v-if="!show"> |
| | | <view class="list-item" v-for="(item, index) in dataList" :key="index" @click="jumpOrderDetail(item.id)"> |
| | | <view class="a"> |
| | | <view class="list-item" v-for="(item, index) in dataList" :key="index"> |
| | | <view class="a" @click="jumpOrderDetail(item.id)"> |
| | | <view class="a-left"> |
| | | <view class="a-left-tips">{{item.receiveType==1?'自提':'快递配送'}}</view> |
| | | <text>订单号:{{item.id}}</text> |
| | | <view :class="'a-left-tips '+(item.receiveType==1?'shop-top-tips-a':'shop-top-tips-b')">{{item.receiveType==1?'自提':'配送'}}</view> |
| | | <text>订单号:{{item.code}}</text> |
| | | </view> |
| | | <text v-if="item.status ==0" class="a-right">待支付</text> |
| | | <text v-if="item.status ==1" class="a-right">{{item.receiveType==1?'待自提':'待发货'}}</text> |
| | |
| | | <text v-if="item.status ==4"class="a-right">已取消</text> |
| | | <text v-if="item.status ==6" class="a-right">已退款</text> |
| | | </view> |
| | | <view class="b"> |
| | | <view class="b-item" v-for="(item1, index1) in (item.goodsorderDetailList||[])"> |
| | | <view class="b-item-image"> |
| | | <image :src="item1.imgurl||'/static/logo.png'" mode="widthFix"></image> |
| | | </view> |
| | | <view class="b-item-title">{{item1.name||''}}</view> |
| | | <view class="b-item-jia"> |
| | | <text>¥{{(item1.price||0).toFixed(2)}}</text> |
| | | <text>x{{item1.goodsNum||0}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="b" @click="jumpOrderDetail(item.id)"> |
| | | <view class="b-item" v-for="(item1, index1) in (item.goodsorderDetailList||[])"> |
| | | <view class="b-item-image"> |
| | | <image :src="item1.imgurl||'/static/logo.png'" mode="widthFix"></image> |
| | |
| | | </view> |
| | | <view class="c-btns"> |
| | | <view class="c-btns-item blue" @click="contactPhone(item)">联系客户</view> |
| | | <view class="c-btns-item bg">自提核销</view> |
| | | <view class="c-btns-item bg" v-if="item.status == 1 && item.receiveType ==1" @click="hexiaoOrder(item)">自提核销</view> |
| | | </view> |
| | | </view> |
| | | <view class="d" v-if="item.memberInfo"> |
| | | <view class="d" v-if="item.memberInfo" @click="jumpOrderDetail(item.id)"> |
| | | 订单备注:{{item.memberInfo||''}} |
| | | </view> |
| | | </view> |
| | | <view v-if="!hasNext" class="nomore">已加载全部</view> |
| | | <view v-if="!hasNext" class="nomore">{{total>0?'已加载全部数据':'暂无待处理订单'}}</view> |
| | | </view> |
| | | </view> |
| | | <!-- 确认退出登陆 --> |
| | |
| | | this.active=0 |
| | | this.shop = this.shopInfo || {} |
| | | this.getCountData() |
| | | this.total=0 |
| | | this.hasNext=true |
| | | this.currentPage = 0 |
| | | this.getOrderList() |
| | | }, |
| | | onReachBottom(){ |
| | | this.getOrderList( ); |
| | | }, |
| | | onLoad() { |
| | | var that =this |
| | | uni.$on('updateOrder',function(data){ |
| | | if(data.info!=null && data.info.orderId!=null && data.info.orderStatus ==3){ |
| | | if(data.info.orderStatus ==3){ |
| | | that.getCountData() |
| | | } |
| | | that.total=0 |
| | | that.hasNext=true |
| | | that.currentPage = 0 |
| | | that.getOrderList() |
| | | } |
| | | }) |
| | | }, |
| | | methods:{ |
| | | hexiaoOrder(item){ |
| | | uni.navigateTo({ |
| | | url:'/pagesA/pages/write-off-a/write-off-a?id='+item.id |
| | | }) |
| | | }, |
| | | openQrcode(){ |
| | | if(this.shop.programCode){ |
| | | this.showQrcode = !this.showQrcode |
| | |
| | | }, |
| | | jumpOrderList() { |
| | | uni.navigateTo({ |
| | | url: '/pagesA/pages/order/order' |
| | | url: '/pagesA/pages/order/order?userType=1' |
| | | }) |
| | | }, |
| | | jumpAccount() { |
| | | uni.navigateTo({ |
| | | url: '/pagesA/pages/virtual-account/virtual-account' |
| | | }) |
| | | }, |
| | | jumpWriteoff() { |
| | | uni.navigateTo({ |
| | | url: '/pagesA/pages/write-off/write-off' |
| | | }) |
| | | }, |
| | | jumpMemberList() { |
| | |
| | | padding: 0 6rpx; |
| | | height: 40rpx; |
| | | line-height: 40rpx; |
| | | background: #00B775; |
| | | border-radius: 8rpx; |
| | | font-weight: 400; |
| | | font-size: 22rpx; |
| | | color: #FFFFFF; |
| | | margin-right: 16rpx; |
| | | } |
| | | .shop-top-tips-a { |
| | | background: #00B775; |
| | | border: 1rpx solid #00B775; |
| | | } |
| | | .shop-top-tips-b { |
| | | background: #004096; |
| | | border: 1rpx solid #004096; |
| | | } |
| | | text { |
| | | font-weight: 400; |
| | | font-size: 26rpx; |