调整增收赋能数据

This commit is contained in:
唐明明
2023-07-11 10:05:25 +08:00
parent a6dc0901d9
commit 947c12d57a
4 changed files with 22 additions and 15 deletions

View File

@@ -49,7 +49,7 @@ const orderInit = () => {
// 订单列表
const orderList = data => {
return request({
url : "empower/order/index",
url : "empower/manager/order",
data
})
}

View File

@@ -59,6 +59,12 @@ const synthesisAttorney = () => {
})
}
// 增收赋能单数据统计
const empowerStatistics = () =>{
return request({
url : 'empower/manager/index'
})
}
export {
index,
@@ -66,5 +72,6 @@ export {
sign,
synthesisCount,
synthesisServices,
synthesisAttorney
synthesisAttorney,
empowerStatistics
}

View File

@@ -164,7 +164,6 @@
page : this.page.current ,
}).then(res => {
let { data, page } = res;
console.log(res)
data.map(val => {
val.is_show_type = false
})

View File

@@ -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,