| | |
| | | <text>销售额(元)</text> |
| | | <image class="stat-icon" src="/static/icon/ic_visible@2x.png"></image> |
| | | </view> |
| | | <text class="stat-value">{{countData.salesAmount}}</text> |
| | | <text class="stat-value">{{((countData.salesAmount || 0)/100).toFixed(2)}}</text> |
| | | </view> |
| | | <view class="stat-card"> |
| | | <view class="stat-label"> |
| | | <text>结算利润(元)</text> |
| | | </view> |
| | | <text class="stat-value">{{countData.settlementProfit}}</text> |
| | | <text class="stat-value">{{((countData.settlementProfit|| 0)/100).toFixed(2)}}</text> |
| | | </view> |
| | | <view class="stat-card"> |
| | | <view class="stat-label"> |
| | |
| | | <view class="order-header" @click="jumpOrderDetails(item.id)"> |
| | | <view style="display: flex; align-items: center;"> |
| | | <view class="order-tag">{{item.type===1?'同城配送':'就地寄存'}}</view> |
| | | <text class="order-user">{{item.takeUser || ''}} {{item.takePhone||''}}</text> |
| | | <text class="order-user">{{formatName(item.takeUser)}} {{formatPhoneStar(item.takePhone)||''}}</text> |
| | | </view> |
| | | <view style="display: flex;flex-direction: column;"> |
| | | <text v-if="item.status ===5 && item.overdueStatus ===1 " class="order-status" style="color: red;">超时未取件</text> |
| | |
| | | <text>¥{{((item.estimatedAmount || 0)/100).toFixed(2) }}</text> |
| | | </text> |
| | | <view class="order-buttons"> |
| | | <button class="btn secondary" @click="contactPhoneDo(item.takePhone)">联系客户</button> |
| | | <button class="btn secondary" @click="contactPhoneDo(item.driverPhone)" v-if="item.type ===1&&(item.status === 4 || item.status === 3)">联系骑手</button> |
| | | <button class="btn primary" v-if="item.status ===1 " @click="jumpHexiaoOrder(item)">收件核销</button> |
| | | <!-- <button class="btn secondary" @click="contactPhoneDo(item.takePhone)">联系客户</button> |
| | | <button class="btn secondary" @click="contactPhoneDo(item.driverPhone)" v-if="item.type ===1&&(item.status === 4 || item.status === 3)">联系骑手</button> --> |
| | | <button class="btn primary" v-if="item.status ===1 ||item.status ===4" @click="jumpHexiaoOrder(item)">收件核销</button> |
| | | <button class="btn primary" v-if="item.status ===5 &&(item.overdueStatus ==0 || item.overdueStatus == 1)" @click="jumpHexiaoOrder(item)">确认到店</button> |
| | | <button class="btn primary" v-if="item.status ===5 && (item.overdueStatus == 4 || item.overdueStatus == 2) " @click="jumpHexiaoOrder(item)">取件核销</button> |
| | | </view> |
| | |
| | | |
| | | <script> |
| | | import { mapState } from 'vuex' |
| | | import { formatPhoneStar } from '@/utils/utils.js' |
| | | import CustomTabbar from '@/components/custom-tabbar/custom-tabbar.vue' |
| | | export default { |
| | | components: { |
| | |
| | | this.getFirstPageData() |
| | | }, |
| | | methods: { |
| | | formatPhoneStar(phone){ |
| | | return formatPhoneStar(phone) |
| | | }, |
| | | formatName(name) { |
| | | if (!name) return '' |
| | | return name.length > 7 ? name.substring(0, 7) + '...' : name |
| | | }, |
| | | changeActive(index){ |
| | | this.getCountData(index) |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | goToStore() { |
| | | this.$store.commit('setUserType', 0) |
| | | uni.switchTab({ |
| | | url: '/pages/index/index' |
| | | url: '/pages/index/index' |
| | | }) |
| | | }, |
| | | jumpShopLogin() { |