| | |
| | | |
| | | </view> |
| | | <view class="flex user-info" v-if="currentInfo&&(currentInfo.id)"> |
| | | |
| | | <image class="user-icon" v-if=" |
| | | (currentInfo.customerDTO&¤tInfo.customerDTO.cover) |
| | | ||(currentInfo.supplierDTO&¤tInfo.supplierDTO.cover) |
| | | ||(currentInfo.partnerDTO&¤tInfo.partnerDTO.cover) |
| | | || currentInfo.picture |
| | | " :src=" |
| | | (currentInfo.customerDTO&¤tInfo.customerDTO.cover) |
| | | ||(currentInfo.supplierDTO&¤tInfo.supplierDTO.cover) |
| | | ||(currentInfo.partnerDTO&¤tInfo.partnerDTO.cover) |
| | | || currentInfo.picture |
| | | " mode="scaleToFill"></image> |
| | | |
| | | <image class="user-icon" v-else |
| | | src='https://youzhen123.oss-cn-huhehaote.aliyuncs.com/WechatOwnerProperty/images/mrtx.png' |
| | | mode="scaleToFill"></image> |
| | | |
| | | <!-- 头像 --> |
| | | <image class="user-icon" v-if="!currentInfo.picture" |
| | | <!-- <image class="user-icon" v-if="!currentInfo.picture" |
| | | src='https://youzhen123.oss-cn-huhehaote.aliyuncs.com/WechatOwnerProperty/images/mrtx.png' |
| | | mode="aspectFit"></image> |
| | | <image class="user-icon" v-if="currentInfo.picture" :src="currentInfo.picture" mode="aspectFit"></image> |
| | | <image class="user-icon" v-if="currentInfo.picture" :src="currentInfo.picture" mode="aspectFit"></image> --> |
| | | |
| | | <view class="name"> |
| | | <view class="t1"> |
| | |
| | | <view class="tj-panel pink flex1" |
| | | @click="goto('/pages/order/order-delivery?status=PENDING&range=today',true)"> |
| | | <view class="name">今日待配送</view> |
| | | <view class="title">{{tj.deliverCount||0}}单</view> |
| | | <view class="title">{{tj.deliverCount||0}}扎</view> |
| | | </view> |
| | | <view class="tj-panel green flex1" |
| | | @click="goto('/pages/order/order-delivery?range=today',true)"> |
| | | <view class="name green">今日配送汇总</view> |
| | | <view class="title">{{tj.deliverTotal||0}}单</view> |
| | | <view class="title">{{tj.deliverTotal||0}}扎</view> |
| | | </view> |
| | | </view> |
| | | <view class="m-t-12" @click="getNoticeMore"> |
| | |
| | | </view> |
| | | <view class="order-desc tg">订单管理</view> |
| | | </view> |
| | | <!-- <view class="nav row margin-tb" v-if="selftype==='supplier'" |
| | | <view class="nav row margin-tb" v-if="selftype==='supplier'" |
| | | @click="goto('/sub_pages/supplier/order-manage/order-manage',true)"> |
| | | <view class="img-c"> |
| | | <image class="icon margin-bottom order-icon ddgl" |
| | | src="/static/images/partner/user/user-icon-ddgl.png" mode="scaleToFill" /> |
| | | </view> |
| | | <view class="order-desc tg">订单统计</view> |
| | | </view> --> |
| | | </view> |
| | | |
| | | <view class="nav row margin-tb" |
| | | @click="goto('/sub_pages/supplier/order-settlement/order-settlement',true)"> |
| | |
| | | </view> |
| | | <view class="order-desc tg">加价配置</view> |
| | | </view> |
| | | <view class="nav row margin-tb" @click="goto('/sub_pages/supplier/order-sale/order-sale',true)"> |
| | | <view class="nav row margin-tb" @click="goto('/pages/order/order-sale/order-sale',true)"> |
| | | <view class="img-c"> |
| | | <image class="icon margin-bottom order-icon shlp" |
| | | src="/static/images/supplier/user/user-icon-shlp.png" mode="scaleToFill" /> |
| | |
| | | }, |
| | | async onPullDownRefresh() { |
| | | await this.$store.dispatch('getCurrentInfo') |
| | | await getTj(true) |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | onLoad(options) { |
| | |
| | | const urlcode = options.url && decodeURIComponent(options.url) || '' |
| | | }, |
| | | onShow() { |
| | | this.getTj() |
| | | this.getTj(true) |
| | | }, |
| | | created() { |
| | | //公告 |
| | |
| | | } |
| | | }).then(res => { |
| | | if (res.code == 0) { |
| | | this.noticeList = (res.data && res.data.records || []) |
| | | this.noticeList = (res.data && res.data || []) |
| | | console.log('this.noticeList', this.noticeList) |
| | | if (this.noticeList.length > 0) { |
| | | this.currentNotice = this.noticeList[0] |
| | |
| | | }, |
| | | }) |
| | | }, |
| | | getTj() { |
| | | getTj(refresh=false) { |
| | | // /api/supplier/delivery |
| | | |
| | | if (this.currentInfo.id && this.currentInfo.id !== this.cacheUserId) { |
| | | if (this.currentInfo.id && (this.currentInfo.id !== this.cacheUserId || refresh)) { |
| | | this.cacheUserId = this.currentInfo.id |
| | | let that = this |
| | | setTimeout(() => { |