Commit 49decbe4 authored by 刘用法's avatar 刘用法

工单列表数字

parent 4aec5b1c
......@@ -250,23 +250,23 @@
// 获取订单数量
getOrderCount() {
var self = this; // 加载订单列表
self.$u.api.listOrderCount().then((res) => {
// 加载订单列表
this.$u.api.listOrderCount().then((res) => {
if (res.code == 200) {
console.log("===", res.data)
if (res.data) {
var count = 0
self.list.forEach(item => {
this.list.forEach(item => {
if (item.name === '待预约') {
item.count = res.data.toAppointmentCount
item.total = res.data.toAppointmentCount
} else if (item.name === '待签到') {
item.count = res.data.toCheckinCount
item.total = res.data.toCheckinCount
} else if (item.name === '待完工') {
item.count = res.data.toFinishCount
item.total = res.data.toFinishCount
} else if (item.name === '审核中') {
item.count = res.data.reviewingCount
item.total = res.data.reviewingCount
} else if (item.name === '异常单') {
item.count = res.data.exceptionCount
item.total = res.data.exceptionCount
}
})
var count = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment