业绩结算列表改为只能查看当前登录用户
This commit is contained in:
parent
ceee093e2c
commit
524d3d0695
@ -57,6 +57,9 @@
|
||||
getSalesPerformance,
|
||||
updateSalesPerformance
|
||||
} from '@/api/customer'
|
||||
import {
|
||||
userGetUserInfo
|
||||
} from '@/api/user'
|
||||
import {
|
||||
useMainStore
|
||||
} from '@/store/store'
|
||||
@ -110,8 +113,8 @@
|
||||
if (uni.getStorageSync('userinfo')) {
|
||||
userInfo.value = uni.getStorageSync('userinfo')
|
||||
} else {
|
||||
userInfo = await userGetUserInfo()
|
||||
main.SET_MEMBER(userInfo)
|
||||
userInfo.value = await userGetUserInfo()
|
||||
main.SET_MEMBER(userInfo.value)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -18,10 +18,16 @@
|
||||
@scroll="scroll" @scrolltolower="reachBottom">
|
||||
<view class="page-box" @touchmove="handletouchstart" @touchend="handletouchend">
|
||||
<block v-if="dataList.length > 0">
|
||||
<view class="client" v-for="(item, index) in dataList" :key="index" @click.stop="toDetail(item)">
|
||||
<view class="content">
|
||||
<view class="title ">用户名称:</view>
|
||||
<view class="value ">{{item.nickname}}</view>
|
||||
<view class="client" v-for="(item, index) in dataList" :key="index">
|
||||
<view style="display: flex;align-items: center;justify-content: space-between;">
|
||||
<view class="content">
|
||||
<view class="title ">用户名称:</view>
|
||||
<view class="value ">{{item.nickname}}</view>
|
||||
</view>
|
||||
<div @click.stop="toDetail(item)">
|
||||
<uv-text color="#09b4f1" suffixIcon="arrow-right" iconStyle="font-size: 18px;color:#09b4f1"
|
||||
text="查看详情"></uv-text>
|
||||
</div>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="title ">日期:</view>
|
||||
@ -58,7 +64,7 @@
|
||||
</view>
|
||||
<view @click.stop="onSubmitItem(item)"
|
||||
v-if="userInfo.id == item.userId && item.canConfirmFlag === 1 && item.confirmFlag === 0">
|
||||
<uv-button type="primary" color="#09b4f1" text="确定">确认</uv-button>
|
||||
<button type="primary" style="background-color: #09b4f1;width: 120rpx;">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -117,6 +123,9 @@
|
||||
getSalesPerformancePage,
|
||||
updateSalesPerformance
|
||||
} from '@/api/customer'
|
||||
import {
|
||||
userGetUserInfo
|
||||
} from '@/api/user'
|
||||
import {
|
||||
formatDateTime
|
||||
} from '@/utils/util'
|
||||
@ -261,9 +270,9 @@
|
||||
})
|
||||
})
|
||||
|
||||
onLoad((e) => {
|
||||
getCustomerList();
|
||||
isConfirmShow()
|
||||
onLoad(async (e) => {
|
||||
await isConfirmShow()
|
||||
await getCustomerList();
|
||||
})
|
||||
|
||||
onShow(() => {
|
||||
@ -282,8 +291,8 @@
|
||||
if (uni.getStorageSync('userinfo')) {
|
||||
userInfo.value = uni.getStorageSync('userinfo')
|
||||
} else {
|
||||
userInfo = await userGetUserInfo()
|
||||
main.SET_MEMBER(userInfo)
|
||||
userInfo.value = await userGetUserInfo()
|
||||
main.SET_MEMBER(userInfo.value)
|
||||
}
|
||||
}
|
||||
const onSubmitItem = (item) => {
|
||||
@ -361,6 +370,7 @@
|
||||
nickname: keyword.value,
|
||||
month: dealMonth.value,
|
||||
year: dealYear.value,
|
||||
userId: userInfo.value.id
|
||||
}).then(res => {
|
||||
res.list.forEach((item, index) => {
|
||||
if (item.tags) {
|
||||
|
Loading…
Reference in New Issue
Block a user