aaa
This commit is contained in:
parent
ae06c7d10e
commit
cc9b82e05f
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="维修申报" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="数据分析" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='58'></u-navbar>
|
height='58'></u-navbar>
|
||||||
<view class="box">
|
<view class="box">
|
||||||
<view class="list">
|
<view class="list">
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar title="维修申报" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
<u-navbar title="流水分析" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
||||||
height='58'></u-navbar>
|
height='58'></u-navbar>
|
||||||
<view class="box">
|
<view class="box">
|
||||||
<view class="date">
|
<view class="date">
|
||||||
|
@ -10,15 +10,15 @@
|
||||||
<view class="zongls">
|
<view class="zongls">
|
||||||
<view class="hz">
|
<view class="hz">
|
||||||
<view class="">总流水</view>
|
<view class="">总流水</view>
|
||||||
<view class="" style="color: #4C97E7;">589</view>
|
<view class="" style="color: #4C97E7;">{{syobj.flow}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="hz">
|
<view class="hz">
|
||||||
<view class="">总收益</view>
|
<view class="">总收益</view>
|
||||||
<view class="" style="color: #25CE88;">589</view>
|
<view class="" style="color: #25CE88;">{{syobj.income}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="hz">
|
<view class="hz">
|
||||||
<view class="">总订单</view>
|
<view class="">总订单</view>
|
||||||
<view class="" style="color: #FF8157;">589</view>
|
<view class="" style="color: #FF8157;">{{syobj.order}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 750rpx;height: 1px;background-color: #F0F0F0;"></view>
|
<view style="width: 750rpx;height: 1px;background-color: #F0F0F0;"></view>
|
||||||
|
@ -26,13 +26,16 @@
|
||||||
<view class="">日期</view>
|
<view class="">日期</view>
|
||||||
<view class="ls" @click="shows = true">{{tit}} <u-icon name="arrow-down"></u-icon> </view>
|
<view class="ls" @click="shows = true">{{tit}} <u-icon name="arrow-down"></u-icon> </view>
|
||||||
</view>
|
</view>
|
||||||
<view class="list" v-for="(item,index) in 6" :key="index">
|
<view class="list" v-for="(item,index) in listarr" :key="index">
|
||||||
<view class="">04/05</view>
|
<view class="">{{item.year +'-' + item.month + '-' + item.day}}</view>
|
||||||
<view class="ls">115 元</view>
|
<view class="ls" v-if="titvalue == 1">{{item.flow}}元</view>
|
||||||
|
<view class="ls" v-if="titvalue == 2">{{item.income}}元</view>
|
||||||
|
<view class="ls" v-if="titvalue == 3">{{item.order}}单</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<u-select v-model="shows" :list="list" @confirm="confirms"></u-select>
|
<u-select v-model="shows" :list="list" @confirm="confirms"></u-select>
|
||||||
|
<u-picker v-model="show" mode="time" @confirm="confirmtime"></u-picker>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -70,18 +73,38 @@
|
||||||
label: '订单'
|
label: '订单'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
listarr:[],
|
||||||
|
titvalue:1,
|
||||||
|
syobj:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
let today = new Date();
|
let today = new Date()
|
||||||
this.firsTime = this.formatDate(today);
|
this.firsTime = this.formatDate(today)
|
||||||
this.lasTime = this.formatDate(today);
|
this.lasTime = this.formatDate(today)
|
||||||
|
this.getshouyi()
|
||||||
|
this.getlist()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
confirms(e){
|
getlist(){
|
||||||
this.tit = e[0].label
|
this.$u.get('/agent/report/agent/analysis?startDate=' + this.firsTime + '&endDate=' + this.lasTime).then(res => {
|
||||||
|
if(res.code == 200){
|
||||||
|
this.listarr = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getshouyi(){
|
||||||
|
this.$u.get('/agent/report/agent/total').then(res => {
|
||||||
|
if(res.code == 200){
|
||||||
|
this.syobj = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
confirms(e){
|
||||||
|
this.tit = e[0].label
|
||||||
|
this.titvalue = e[0].value
|
||||||
|
},
|
||||||
formatDate(date) {
|
formatDate(date) {
|
||||||
let year = date.getFullYear();
|
let year = date.getFullYear();
|
||||||
let month = String(date.getMonth() + 1).padStart(2, '0');
|
let month = String(date.getMonth() + 1).padStart(2, '0');
|
||||||
|
@ -96,11 +119,13 @@
|
||||||
this.num = 2
|
this.num = 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
confirm(e) {
|
confirmtime(e) {
|
||||||
if (this.num == 1) {
|
if (this.num == 1) {
|
||||||
this.firsTime = e.year + '-' + e.month + '-' + e.day
|
this.firsTime = e.year + '-' + e.month + '-' + e.day
|
||||||
|
this.getlist()
|
||||||
} else {
|
} else {
|
||||||
this.lasTime = e.year + '-' + e.month + '-' + e.day
|
this.lasTime = e.year + '-' + e.month + '-' + e.day
|
||||||
|
this.getlist()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -118,13 +143,13 @@
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
position: fixed;
|
// position: fixed;
|
||||||
top: 0;
|
// top: 0;
|
||||||
left: 0;
|
// left: 0;
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 1440rpx;
|
height:100%;
|
||||||
background: #F4F5F7;
|
background: #F4F5F7;
|
||||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<view class="listval">
|
<view class="listval">
|
||||||
<view class="tit"> 营业时间</view>
|
<view class="tit"> 营业时间</view>
|
||||||
<view class="but"
|
<view class="but"
|
||||||
style="display: flex;justify-content: space-between;padding: 15rpx 10rpx;box-sizing: border-box;">
|
style="display: flex;justify-content: space-between;padding: 15rpx 20rpx;box-sizing: border-box;">
|
||||||
<!-- <input type="text" placeholder="请输入营业时间" v-model="yetime" /> -->
|
<!-- <input type="text" placeholder="请输入营业时间" v-model="yetime" /> -->
|
||||||
<view class="" style="font-size: 28rpx;color: #666;" @click="btnyinye(1)">{{ksyy}}</view>
|
<view class="" style="font-size: 28rpx;color: #666;" @click="btnyinye(1)">{{ksyy}}</view>
|
||||||
--
|
--
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
<!-- 选择省市区 -->
|
<!-- 选择省市区 -->
|
||||||
<u-picker v-model="regionshow" mode="region" @confirm="btnregions"></u-picker>
|
<u-picker v-model="regionshow" mode="region" @confirm="btnregions"></u-picker>
|
||||||
<!-- 营业时间 -->
|
<!-- 营业时间 -->
|
||||||
<u-picker mode="time" v-model="show" :params="params" @confirm="btnyy"></u-picker>
|
<u-picker mode="time" v-model="show" default-time="00:00" :params="params" @confirm="btnyy"></u-picker>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -886,10 +886,10 @@
|
||||||
.tubiao {
|
.tubiao {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0 50rpx;
|
padding: 24rpx 50rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-top: 20rpx;
|
// padding-top: 20rpx;
|
||||||
padding-bottom: 24rpx;
|
// padding-bottom: 24rpx;
|
||||||
|
|
||||||
.gr {
|
.gr {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user