This commit is contained in:
曹辉 2023-04-03 15:42:14 +08:00
parent 884a9a8f1d
commit fc4f260631
4 changed files with 76 additions and 24 deletions

View File

@ -0,0 +1,17 @@
import request from "../request.js"
//个人中心 我的收益 金额
export function personRevenue(nurseStationPersonId, monthStartTime, monthEndTime) {
return request({
url: `/nurseApplet/personCenter/personRevenue?nurseStationPersonId=${nurseStationPersonId}&&monthStartTime=${monthStartTime}&&monthEndTime=${monthEndTime}`,
method: 'GET'
})
}
// 个人中心 我的收益 订单列表分页
export function personRevenueDetails(nurseStationPersonId, monthStartTime, monthEndTime) {
return request({
url: `/nurseApplet/personCenter/personRevenueDetails?nurseStationPersonId=${nurseStationPersonId}&&monthStartTime=${monthStartTime}&&monthEndTime=${monthEndTime}`,
method: 'GET',
})
}

View File

@ -6,10 +6,16 @@
{
"path": "pages/startup/startup",
"style": {
"navigationBarTitleText": "启动页",
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},{
}, {
"path": "pages/MyBenefits/MyBenefits",
"style": {
"navigationBarTitleText": "我的收益",
"enablePullDownRefresh": false
}
}, {
"path": "pages/Modifyinformation/Modifyinformation",
"style": {
"navigationBarTitleText": "修改信息",
@ -22,13 +28,7 @@
"navigationBarTitleText": "个人信息",
"navigationStyle": "custom"
}
},{
"path": "pages/MyBenefits/MyBenefits",
"style": {
"navigationBarTitleText": "我的收益",
"enablePullDownRefresh": false
}
}, {
}, {
"path": "pages/Mymission/Mymission",
"style": {
"navigationBarTitleText": "我的工单",

View File

@ -10,7 +10,7 @@
本月收益(
</view>
<view class="center">
2000.00
{{toppricerlist.monthOrderTotalPrice}}
</view>
<view class="bottom">
<view class="bottomitem">
@ -18,7 +18,7 @@
今日收益()
</view>
<view class="price">
180
{{toppricerlist.todayOrderPrice}}
</view>
</view>
<view class="bottomitem">
@ -26,22 +26,22 @@
累计总收益()
</view>
<view class="price">
10000.00
{{toppricerlist.orderTotalPrice}}
</view>
</view>
</view>
</view>
<view class="list">
<view class="item">
<view class="item" v-for="(item,index) in Detailslist" :key="index">
<view class="time">
03.27 8:00-12:00
{{item.serviceDate}} {{item.serviceStartTime}}
</view>
<view class="border"></view>
<view class="title">
陪诊省立医院
{{item.nurseItemName}}
</view>
<view class="price">
+ 20.00
+ {{item.revenueAmount}}
</view>
</view>
</view>
@ -55,7 +55,7 @@
</view>
<view class="upiker">
<upicker mode="time" v-model="timeshow" :params="timeparams" v-if="timeindex==0" start-year='2023'
:end-year='newyear'>
:end-year='newyear' @confirm='timeconfirm'>
</upicker>
</view>
<view class="ucalendar">
@ -70,6 +70,10 @@
<script>
import ucalendar from '../ucalendar/u-calendar.vue'
import upicker from '../upicker/u-picker.vue'
import {
personRevenue,
personRevenueDetails
} from '@/api/MyBenefits/MyBenefits.js'
export default {
components: {
ucalendar,
@ -77,8 +81,9 @@
},
data() {
return {
nursePersonId: 35, //id
tiemmask: false, //
timeparams: {
timeparams: { //picker
year: true,
month: true,
day: false,
@ -86,24 +91,50 @@
minute: false,
second: false
},
timeshow: false,
timetablist: [{
timeshow: false, //
timetablist: [{ //
name: '月份选择'
}, {
name: '自定义'
}, ],
timeindex: 0,
timeindex: 0, //index
tiemshow: false, //
newtime: null, //
newyear: null, //
monthStartTime: '', //
monthEndTime: '', //
toppricerlist: {}, //toplist
Detailslist: [], //
};
},
onShow() {
this.nowtime();
this.personRevenueinfo();
this.personRevenueDetailsinfo();
},
methods: {
//
personRevenueDetailsinfo() {
personRevenueDetails(this.nursePersonId, this.monthStartTime, this.monthEndTime).then(res => {
this.Detailslist = res.data
})
},
//
personRevenueinfo() {
personRevenue(this.nursePersonId, this.monthStartTime, this.monthEndTime).then(res => {
this.toppricerlist = res.data
})
},
//
timeconfirm(e) {
this.tiemmask = false
this.newtime = e.year + '.' + e.month
this.monthStartTime = e.year + '-' + e.month
},
ucalendarchange(e) {
console.log(e)
this.tiemmask = false
this.newtime = e.startYear + '.' +
e.startMonth + '.' + e.startDay + ' - ' + e.endYear + '.' + e.endMonth + '.' + e.endDay
},
//time
timechange(index) {
@ -124,8 +155,12 @@
//
};
//
if (date.month < 10) {
this.newtime = date.year + ".0" + date.month
} else {
this.newtime = date.year + "." + date.month
}
this.newyear = date.year
this.newtime = date.year + "." + date.month
},
}
}

View File

@ -85,7 +85,7 @@
</view>
</picker-view-column>
</picker-view>
<view class="btn">
<view class="btn" @tap="getResult('confirm')">
确定
</view>
</view>