feat: 客户人员审核

This commit is contained in:
wangzhuo
2025-08-20 15:04:02 +08:00
parent 1fda9c6500
commit ed827b09af
12 changed files with 1145 additions and 141 deletions

View File

@@ -7,7 +7,7 @@
<view class="con-body">
<view class="con-bg">
<!-- 头部 -->
<customHeader ref="customHeaderRef" :title="'客户人员归属人变更'" :leftFlag="true" :rightFlag="false">
<customHeader ref="customHeaderRef" :title="'客户人员归属人变更审核'" :leftFlag="true" :rightFlag="false">
</customHeader>
<!-- 高度来避免头部遮挡 -->
@@ -31,9 +31,9 @@
>
<view class="white-bg margin-bottom20" v-for="(item, index) in list" :key="index">
<view class="report-list" @click.stop="handleDetail(item)">
<view class="w-b-title title" >
<view class="r-list title" >
{{ item.cusName }}
<view class="r-right" :class="item.auditStatus ? '' : 'btn-edit' ">{{item.auditStatus?'':'待您审批'}}</view>
<view class="r-right" :class="item.auditStatus ? '' : 'btn-pink' ">{{item.auditStatus?'':'待您审批'}}</view>
</view>
<view class="r-list">
<view class="r-left">客户人员名称</view>
@@ -100,7 +100,7 @@ let timerId = null;
let handleSearch = () => {
// 防抖搜索 console.log(searchValue.value)
if (timerId) clearTimeout(timerId);
cssFlag.value = true;
timerId = setTimeout(async () => {
// let res = await getList(1, upOption.value.page.size)
@@ -143,13 +143,17 @@ const mescrollInit = (mescroll) => {
// 下拉刷新
const downCallback = async (mescroll) => {
try {
cssFlag.value = true;
uni.showLoading();
setTimeout(async () => {
// 重置页码为第一页
const res = await getList(1, mescroll.size || upOption.page.size);
cssFlag.value = false;
list.value = res.list;
cssFlag.value = false;
// 正确传递 total 参数
mescroll.endSuccess(res.list.length, res.total > (mescroll.size || upOption.page.size));
uni.hideLoading();
}, 500);
} catch (error) {
console.log(error)
@@ -262,12 +266,12 @@ let handleDetail = (item) => {
.white-bg {
padding-bottom: 10rpx;
.w-b-title{
.title{
align-items: flex-start;
}
}
.btn-edit{
.btn-pink{
white-space: nowrap;
}
</style>