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

View File

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

View File

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