修改
This commit is contained in:
parent
1471a1f0fa
commit
fd5e5309a4
@ -9,9 +9,9 @@ export function personRevenue(nurseStationPersonId, monthStartTime, monthEndTime
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 个人中心 我的收益 订单列表分页
|
// 个人中心 我的收益 订单列表分页
|
||||||
export function personRevenueDetails(nurseStationPersonId, monthStartTime, monthEndTime) {
|
export function personRevenueDetails(nurseStationPersonId, monthTime, monthStartTime, monthEndTime) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApplet/personCenter/personRevenueDetails?nurseStationPersonId=${nurseStationPersonId}&&monthStartTime=${monthStartTime}&&monthEndTime=${monthEndTime}`,
|
url: `/nurseApplet/personCenter/personRevenueDetails?nurseStationPersonId=${nurseStationPersonId}&&monthTime=${monthTime}&&monthStartTime=${monthStartTime}&&monthEndTime=${monthEndTime}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,7 +43,8 @@
|
|||||||
<view class="list" v-if="Detailslist.length>0">
|
<view class="list" v-if="Detailslist.length>0">
|
||||||
<view class="item" v-for="(item,index) in Detailslist" :key="index">
|
<view class="item" v-for="(item,index) in Detailslist" :key="index">
|
||||||
<view class="time">
|
<view class="time">
|
||||||
{{item.serviceDate}} {{item.serviceStartTime}}
|
<!-- {{item.serviceDate}} {{item.serviceStartTime}} -->
|
||||||
|
{{item.finishOrderTime}}
|
||||||
</view>
|
</view>
|
||||||
<view class="border"></view>
|
<view class="border"></view>
|
||||||
<view class="title">
|
<view class="title">
|
||||||
@ -113,6 +114,7 @@
|
|||||||
tiemshow: false, //选择时间开关
|
tiemshow: false, //选择时间开关
|
||||||
newtime: null, //开局月份
|
newtime: null, //开局月份
|
||||||
newyear: null, //当前年份
|
newyear: null, //当前年份
|
||||||
|
monthTime: null, //只选一个
|
||||||
monthStartTime: '', //开始时间
|
monthStartTime: '', //开始时间
|
||||||
monthEndTime: '', //结束时间
|
monthEndTime: '', //结束时间
|
||||||
toppricerlist: {}, //toplist
|
toppricerlist: {}, //toplist
|
||||||
@ -121,37 +123,50 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
var that = this
|
var that = this
|
||||||
|
that.nowtime();
|
||||||
const value = uni.getStorageSync('nursePersonId');
|
const value = uni.getStorageSync('nursePersonId');
|
||||||
if (value) {
|
if (value) {
|
||||||
that.nursePersonId = value
|
that.nursePersonId = value
|
||||||
that.personRevenueinfo();
|
that.personRevenueinfo();
|
||||||
that.personRevenueDetailsinfo();
|
that.personRevenueDetailsinfo();
|
||||||
} else {}
|
} else {}
|
||||||
that.nowtime();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//收益详细
|
//收益详细
|
||||||
personRevenueDetailsinfo() {
|
personRevenueDetailsinfo() {
|
||||||
personRevenueDetails(this.nursePersonId, this.monthStartTime, this.monthEndTime).then(res => {
|
personRevenueDetails(this.nursePersonId, this.monthTime, this.monthStartTime, this.monthEndTime).then(
|
||||||
this.Detailslist = res.data
|
res => {
|
||||||
})
|
this.Detailslist = res.data
|
||||||
|
})
|
||||||
},
|
},
|
||||||
//我的收益
|
//我的收益
|
||||||
personRevenueinfo() {
|
personRevenueinfo() {
|
||||||
personRevenue(this.nursePersonId, this.monthStartTime, this.monthEndTime).then(res => {
|
personRevenue(this.nursePersonId, this.monthTime, this.monthStartTime, this.monthEndTime).then(res => {
|
||||||
this.toppricerlist = res.data
|
this.toppricerlist = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//选择时间
|
//piker选择时间
|
||||||
timeconfirm(e) {
|
timeconfirm(e) {
|
||||||
this.tiemmask = false
|
this.tiemmask = false
|
||||||
this.newtime = e.year + '.' + e.month
|
this.newtime = e.year + '.' + e.month
|
||||||
this.monthStartTime = e.year + '-' + e.month
|
this.monthTime = e.year + '-' + e.month + '-01'
|
||||||
|
this.personRevenueDetailsinfo();
|
||||||
|
this.personRevenueinfo();
|
||||||
},
|
},
|
||||||
|
//日历选择时间
|
||||||
ucalendarchange(e) {
|
ucalendarchange(e) {
|
||||||
this.tiemmask = false
|
this.tiemmask = false
|
||||||
|
e.startMonth > 10 ? '' : e.startMonth = '0' + e.startMonth
|
||||||
|
e.startDay > 10 ? '' : e.startDay = '0' + e.startDay
|
||||||
|
e.endMonth > 10 ? '' : e.endMonth = '0' + e.endMonth
|
||||||
|
e.endDay > 10 ? '' : e.endDay = '0' + e.endDay
|
||||||
this.newtime = e.startYear + '.' +
|
this.newtime = e.startYear + '.' +
|
||||||
e.startMonth + '.' + e.startDay + ' - ' + e.endYear + '.' + e.endMonth + '.' + e.endDay
|
e.startMonth + '.' + e.startDay + ' - ' + e.endYear + '.' + e.endMonth + '.' + e.endDay
|
||||||
|
this.monthStartTime = e.startYear + '-' + e.startMonth + '-' + e.startDay
|
||||||
|
this.monthEndTime = e.endYear + '-' + e.endMonth + '-' + e.endDay
|
||||||
|
this.monthTime = ''
|
||||||
|
this.personRevenueDetailsinfo();
|
||||||
|
this.personRevenueinfo();
|
||||||
},
|
},
|
||||||
//time
|
//time
|
||||||
timechange(index) {
|
timechange(index) {
|
||||||
@ -171,13 +186,15 @@
|
|||||||
month: nowDate.getMonth() + 1,
|
month: nowDate.getMonth() + 1,
|
||||||
//获取当前日期
|
//获取当前日期
|
||||||
};
|
};
|
||||||
|
this.newyear = date.year
|
||||||
//拼接
|
//拼接
|
||||||
if (date.month < 10) {
|
if (date.month < 10) {
|
||||||
this.newtime = date.year + ".0" + date.month
|
this.newtime = date.year + ".0" + date.month
|
||||||
|
this.monthTime = date.year + '-0' + date.month + '-01'
|
||||||
} else {
|
} else {
|
||||||
this.newtime = date.year + "." + date.month
|
this.newtime = date.year + "." + date.month
|
||||||
|
this.monthTime = date.year + '-' + date.month + '-01'
|
||||||
}
|
}
|
||||||
this.newyear = date.year
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user