调整增收赋能数据
This commit is contained in:
@@ -6,22 +6,22 @@
|
||||
<view class="total-item">
|
||||
<image class="icon" src="@/static/icons/work_icon_00.png"></image>
|
||||
<view class="title">待支付</view>
|
||||
<view class="number">{{orderAll.all}}<text>人</text></view>
|
||||
<view class="number">{{orderAll.init}}<text>单</text></view>
|
||||
</view>
|
||||
<view class="total-item">
|
||||
<image class="icon" src="@/static/icons/work_icon_01.png"></image>
|
||||
<view class="title">已支付</view>
|
||||
<view class="number">{{orderAll.all}}<text>单</text></view>
|
||||
<view class="number">{{orderAll.paid}}<text>单</text></view>
|
||||
</view>
|
||||
<view class="total-item">
|
||||
<image class="icon" src="@/static/icons/work_icon_02.png"></image>
|
||||
<view class="title">已完成</view>
|
||||
<view class="number">{{orderAll.all}}<text>单</text></view>
|
||||
<view class="number">{{orderAll.over}}<text>单</text></view>
|
||||
</view>
|
||||
<view class="total-item">
|
||||
<image class="icon" src="@/static/icons/work_icon_05.png"></image>
|
||||
<view class="title">结算金额</view>
|
||||
<view class="number">{{orderAll.all}}<text>万</text></view>
|
||||
<view class="number">{{orderAll.amount}}<text>万</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -30,7 +30,7 @@
|
||||
<view class="tool-flex">
|
||||
<view class="tool-flex-item" @click="onNav('EmpowerOrder', { status: '' })">
|
||||
<image class="icon" src="@/static/icons/work_icon_06.png"></image>
|
||||
<view class="number" v-if="orderEntrust.init > 0">{{orderEntrust.init}}</view>
|
||||
<view class="number" v-if="orderEntrust.all > 0">{{orderEntrust.all}}</view>
|
||||
<view class="text">全部订单</view>
|
||||
</view>
|
||||
<view class="tool-flex-item" @click="onNav('EmpowerOrder', { status: 0 })">
|
||||
@@ -40,12 +40,12 @@
|
||||
</view>
|
||||
<view class="tool-flex-item" @click="onNav('EmpowerOrder', { status: 1 })">
|
||||
<image class="icon" src="@/static/icons/work_icon_10.png"></image>
|
||||
<view class="number" v-if="orderEntrust.init > 0">{{orderEntrust.init}}</view>
|
||||
<view class="number" v-if="orderEntrust.paid > 0">{{orderEntrust.paid}}</view>
|
||||
<view class="text">已支付</view>
|
||||
</view>
|
||||
<view class="tool-flex-item" @click="onNav('EmpowerOrder', { status: 2 })">
|
||||
<image class="icon" src="@/static/icons/work_icon_15.png"></image>
|
||||
<view class="number" v-if="orderEntrust.init > 0">{{orderEntrust.init}}</view>
|
||||
<view class="number" v-if="orderEntrust.over > 0">{{orderEntrust.over}}</view>
|
||||
<view class="text">已完成</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -54,7 +54,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { synthesisAttorney } from '@/apis/interfaces/work.js'
|
||||
import { empowerStatistics } from '@/apis/interfaces/work.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -73,11 +73,12 @@
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
// 综法法律咨询单统计
|
||||
synthesisAttorney().then(res => {
|
||||
// 增收赋能订单统计
|
||||
empowerStatistics().then(res => {
|
||||
let { order, data } = res;
|
||||
this.orderAll = data
|
||||
this.orderEntrust = order
|
||||
uni.hideLoading()
|
||||
this.orderAll = res.all
|
||||
this.orderEntrust = res.orders.entrust
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
|
||||
Reference in New Issue
Block a user