fix: 主归属人变更审核

This commit is contained in:
wangzhuo
2025-09-17 21:47:23 +08:00
parent 3a1339fc76
commit 1a3c014c83
2 changed files with 46 additions and 96 deletions

View File

@@ -16,13 +16,12 @@
<!-- 正文内容 -->
<view class="all-body">
<!-- 搜索-->
<!-- <view class="search">-->
<!-- <uni-search-bar class="custom-search" radius="28" placeholder="请输入客户人员名称" clearButton="auto"-->
<!-- cancelButton="none" bgColor="#6FA2F8" textColor="#ffffff"-->
<!-- v-model="searchValue"-->
<!-- />-->
<!-- <button type="default" @click="clearSearchValue" size="mini" class="btn-search">清空</button>-->
<!-- </view>-->
<!-- <view class="search">-->
<!-- <uni-search-bar class="custom-search" radius="28" placeholder="请输入客户人员名称" clearButton="auto"-->
<!-- cancelButton="none" bgColor="#6FA2F8" textColor="#ffffff"-->
<!-- v-model="searchValue"-->
<!-- />-->
<!-- </view>-->
<!-- 分页部分 -->
<mescroll-uni ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"
@@ -34,7 +33,7 @@
<view class="r-list title">
{{ item.cusName }}
<view class="r-right no-wrap" :class="item.auditStatus ? 'btn-blue' : 'btn-pink' ">
{{ item.auditStatus ? item.auditStatus : '待审核' }}
{{ item.auditStatus ? item.auditStatus : '待审核' }}
</view>
</view>
<view class="r-list">
@@ -100,7 +99,8 @@ const mescrollRef = ref(null);
let timerId = null;
// 查询搜索跳转
let handleSearch = () => {
// 防抖搜索 console.log(searchValue.value)
// 防抖搜索
console.log(searchValue.value)
if (timerId) clearTimeout(timerId);
timerId = setTimeout(async () => {
@@ -236,29 +236,6 @@ let handleDetail = (item) => {
/* #endif */
}
.search {
display: flex;
}
.search .btn-search {
border: none;
background: none;
line-height: normal;
color: #fff;
line-height: 56rpx !important;
padding: 10rpx 0 0;
text-align: left;
cursor: pointer;
}
.search .btn-search::after {
display: none;
}
.search .custom-search {
width: 80%;
}
.scroll-h{
/* #ifdef APP-PLUS */
top: 160rpx;
@@ -270,10 +247,6 @@ let handleDetail = (item) => {
/* #endif */
}
.search .custom-search.uni-searchbar {
padding-right: 0 !important;
}
.white-bg {
padding-bottom: 10rpx;
@@ -282,11 +255,11 @@ let handleDetail = (item) => {
}
}
.no-wrap{
.no-wrap {
white-space: nowrap;
}
.btn-blue{
.btn-blue {
border-radius: 10rpx;
}
</style>

View File

@@ -1,19 +1,17 @@
<!--
* @description 查看主归属人变更
* @update date 2025/9/17 21:45
-->
<template>
<view class="con-body">
<view class="con-bg">
<!-- 头部 -->
<customHeader ref="customHeaderRef" :title="'查看主归属人变更'" :leftFlag="true" :rightFlag="false"></customHeader>
<customHeader ref="customHeaderRef" :title="'查看主归属人变更'" :leftFlag="true"
:rightFlag="false"></customHeader>
<!-- 高度来避免头部遮挡 -->
<view class="top-height" :style="{ paddingTop: navBarPaddingTop + 'px' }"></view>
<view class="all-body">
<!-- 搜索 @blur="blur" @focus="focus" @input="input" @cancel="cancel" @clear="clear"-->
<view class="search">
<!-- <uni-search-bar class="custom-search" radius="28" placeholder="检索功能待开发,感谢您的耐心等待" clearButton="auto"-->
<!-- cancelButton="none" bgColor="#6FA2F8" textColor="#ffffff" v-model="searchValue" />-->
<!-- <button type="default" @click="handleSearch" size="mini" class="btn-search">查询</button>-->
</view>
<!-- 分页部分 -->
<mescroll-uni ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"
:up="upOption" :down="downOption" :fixed="false" textColor="#ffffff" bgColor="#ffffff"
@@ -22,25 +20,17 @@
@click="showDetail(item)">
<view>
<view class="report-list">
<view class="title">客户{{ item.cusName }}</view>
<view class="r-list">
<view class="r-list title">{{ item.cusName }}
<view class="r-name">{{ item.visistCode }}</view>
<view>
<view
class="r-right btn-blue"
size="mini">
查看
</view>
</view>
<view class="r-right btn-blue no-wrap"> 查看 </view>
</view>
<view class="border-bottom"></view>
<view class="r-list">
<view class="r-left">客户人员名称</view>
<view class="r-right">{{ item.userName}}</view>
<view class="r-right">{{ item.userName }}</view>
</view>
<view class="r-list" >
<view class="r-list">
<view class="r-left">目前业务员</view>
<view class="r-right">{{ item.belonger }}</view>
</view>
@@ -68,7 +58,7 @@
<script setup>
import customHeader from "../../../../../components/customHeader.vue";
import { onMounted, ref } from 'vue';
import {onMounted, ref} from 'vue';
import {getNavBarPaddingTop} from "../../../../../utils/system";
import MescrollUni from "mescroll-uni/mescroll-uni.vue";
@@ -88,16 +78,17 @@ let queryParams = ref({
onMounted(() => {
navBarPaddingTop.value = getNavBarPaddingTop() * 2;
})
onShow(()=>{
onShow(() => {
getList(queryParams)
})
let list = ref([])
//获取列表信息
function getList(queryParams){
function getList(queryParams) {
queryViewMainOwnerList(queryParams.value).then(res => {
list.value = res.rows
list.value = res.rows
})
}
@@ -153,7 +144,7 @@ const upCallback = async (mescroll) => {
}
const upOption = ref({
page: { num: 0, size: 10 },
page: {num: 0, size: 10},
noMoreSize: 5,
empty: {
tip: '~ 空空如也 ~',
@@ -180,7 +171,7 @@ function showDetail(item) {
</script>
<style lang="scss" scoped>
<style scoped>
.all-body {
/* #ifdef APP-PLUS */
@@ -193,44 +184,30 @@ function showDetail(item) {
/* #endif */
}
.search {
display: flex;
}
.search .btn-search {
border: none;
background: none;
line-height: normal;
color: #fff;
line-height: 56rpx !important;
padding: 10rpx 0 0;
text-align: left;
cursor: pointer;
}
.search .btn-search::after {
display: none;
}
.search .custom-search {
width: 80%;
}
.search .custom-search.uni-searchbar {
padding-right: 0 !important;
}
.scroll-h {
.scroll-h{
/* #ifdef APP-PLUS */
height: calc(100vh - 120px);
top: 160rpx;
height: calc(100vh - 160rpx);
/* #endif */
/* #ifndef APP-PLUS */
height: calc(100vh - 110px);
top: 116rpx;
height: calc(100vh - 116rpx);
/* #endif */
}
.white-bg {
padding-bottom: 10rpx;
}
.title {
align-items: baseline
}
.no-wrap {
white-space: nowrap;
}
.btn-blue {
border-radius: 10rpx;
}
</style>