修改
This commit is contained in:
parent
884a9a8f1d
commit
fc4f260631
17
api/MyBenefits/MyBenefits.js
Normal file
17
api/MyBenefits/MyBenefits.js
Normal 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',
|
||||||
|
})
|
||||||
|
}
|
||||||
18
pages.json
18
pages.json
@ -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": "我的工单",
|
||||||
|
|||||||
@ -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
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user