This commit is contained in:
曹辉 2023-04-06 11:43:59 +08:00
parent 1471a1f0fa
commit fd5e5309a4
2 changed files with 28 additions and 11 deletions

View File

@ -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',
}) })
} }

View File

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