|
|
@@ -13,12 +13,23 @@
|
|
|
<view class="top_num" v-if="recordType != 4 && recordList.length && recordType!=5 && recordType!=6">
|
|
|
支出:¥{{expend || 0}} 收入:¥{{income || 0}}
|
|
|
</view>
|
|
|
+ <view class="top_num" v-if="recordType==6">
|
|
|
+ 销售业绩:{{sale_sum || 0}} 手工业绩:{{craft_sum || 0}}
|
|
|
+ </view>
|
|
|
<view class="top_num top_num_2" v-if="recordType == 5">
|
|
|
当前股权:{{staffInfo.shareholding}}
|
|
|
<view class="tx" @click="navto('/pages/users/user_payment/index?is_gq=1')">
|
|
|
提现
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="nav" v-if="recordType==6">
|
|
|
+ <view class="nav-item" :class="{'action': sixType == 1}" @click="getYjList('re',1)">
|
|
|
+ 销售业绩
|
|
|
+ </view>
|
|
|
+ <view class="nav-item" :class="{'action': sixType == 2}" @click="getYjList('re',2)">
|
|
|
+ 手工业绩
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="box">
|
|
|
<block v-for="(item,index) in recordList" :key="index" v-if="recordList.length>0">
|
|
|
<view class='list'>
|
|
|
@@ -104,6 +115,9 @@
|
|
|
mixins: [colors],
|
|
|
data() {
|
|
|
return {
|
|
|
+ sixType: 1,
|
|
|
+ sale_sum: 0,
|
|
|
+ craft_sum: 0,
|
|
|
timer: '',
|
|
|
userInfo: {},
|
|
|
staffInfo: {},
|
|
|
@@ -201,8 +215,11 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- getYjList(time,type) {
|
|
|
+ getYjList(type,sixType) {
|
|
|
let that = this;
|
|
|
+ if(sixType) {
|
|
|
+ that.sixType = sixType
|
|
|
+ }
|
|
|
let page = that.page;
|
|
|
let limit = that.limit;
|
|
|
if(type = 're') {
|
|
|
@@ -217,9 +234,12 @@
|
|
|
page: page,
|
|
|
limit: limit,
|
|
|
create_time: that.timer,
|
|
|
- member_id: that.staffInfo.id
|
|
|
+ member_id: that.staffInfo.id,
|
|
|
+ type: that.sixType
|
|
|
}).then(res => {
|
|
|
- this.recordList = this.recordList.concat(res.data.list)
|
|
|
+ this.sale_sum = res.data.sale_sum;
|
|
|
+ this.craft_sum = res.data.craft_sum;
|
|
|
+ this.recordList = this.recordList.concat(res.data.list);
|
|
|
let loadend = res.data.list.length < that.limit;
|
|
|
that.loadend = loadend;
|
|
|
that.loadTitle = loadend ? '没有更多内容啦~' : '加载更多';
|
|
|
@@ -505,4 +525,24 @@
|
|
|
background: rgba(233, 51, 35, .1);
|
|
|
color: #E93323;
|
|
|
}
|
|
|
+ .nav {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-evenly;
|
|
|
+ padding-bottom: 20rpx;
|
|
|
+ .nav-item {
|
|
|
+ width: 30%;
|
|
|
+ line-height: 60rpx;
|
|
|
+ text-align: center;
|
|
|
+ border-radius: 30rpx;
|
|
|
+ border: 1px solid #1890FF;
|
|
|
+ color: #1890FF;
|
|
|
+ font-size:28rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
+ .action {
|
|
|
+ background-color: #1890FF;
|
|
|
+ color: #fff;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|