Compare commits
5 Commits
933714be60
...
3e5a70f147
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e5a70f147 | ||
|
|
f3e20ce31a | ||
|
|
409597fa7f | ||
|
|
1a3c014c83 | ||
|
|
3a1339fc76 |
@@ -331,7 +331,8 @@
|
|||||||
"path": "pages/business/CRM/plan/planView",
|
"path": "pages/business/CRM/plan/planView",
|
||||||
//周计划查看
|
//周计划查看
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": "",
|
||||||
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ let handleCopyInfo = (item) => {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style scoped>
|
||||||
.all-body {
|
.all-body {
|
||||||
/* #ifdef APP-PLUS */
|
/* #ifdef APP-PLUS */
|
||||||
top: 160rpx;
|
top: 160rpx;
|
||||||
@@ -306,19 +306,9 @@ let handleCopyInfo = (item) => {
|
|||||||
height: calc(100vh - 116rpx);
|
height: calc(100vh - 116rpx);
|
||||||
/* #endif */
|
/* #endif */
|
||||||
}
|
}
|
||||||
.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 {
|
.scroll-h {
|
||||||
display: none;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.white-bg {
|
.white-bg {
|
||||||
|
|||||||
@@ -612,12 +612,11 @@ let submitForm = async () => {
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "更新成功"
|
title: "更新成功"
|
||||||
})
|
})
|
||||||
setTimeout(()=>{
|
|
||||||
uni.navigateBack();
|
|
||||||
const eventChannel = instance.getOpenerEventChannel();
|
const eventChannel = instance.getOpenerEventChannel();
|
||||||
eventChannel.emit("refreshCusUserList");
|
eventChannel.emit("refreshCusUserList");
|
||||||
|
setTimeout(()=>{
|
||||||
|
uni.navigateBack();
|
||||||
},1000);
|
},1000);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "操作失败",
|
title: "操作失败",
|
||||||
|
|||||||
@@ -7,7 +7,13 @@
|
|||||||
<view class="con-body">
|
<view class="con-body">
|
||||||
<view class="con-bg">
|
<view class="con-bg">
|
||||||
<!-- 头部 -->
|
<!-- 头部 -->
|
||||||
<customHeader ref="customHeaderRef" :title="'客户人员审核'" :leftFlag="true" :rightFlag="false">
|
<customHeader ref="customHeaderRef" :title="'客户人员审核'" :leftFlag="true" :rightFlag="list.length > 0">
|
||||||
|
<template #right>
|
||||||
|
<view class="head-right" @click="handleReSort">
|
||||||
|
<uni-icons type="arrow-down" size="20" color="#B7D2FF"></uni-icons>
|
||||||
|
{{iconType==='arrow-up'?'最新':'最早'}}
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
</customHeader>
|
</customHeader>
|
||||||
|
|
||||||
<!-- 高度来避免头部遮挡 -->
|
<!-- 高度来避免头部遮挡 -->
|
||||||
@@ -101,9 +107,13 @@ let handleSearch = () => {
|
|||||||
watch(searchValue, (newValue, oldValue) => {
|
watch(searchValue, (newValue, oldValue) => {
|
||||||
handleSearch()
|
handleSearch()
|
||||||
})
|
})
|
||||||
let clearSearchValue = () => {
|
// 排序图标
|
||||||
searchValue.value = '';
|
const iconType = ref('arrow-up');
|
||||||
|
let handleReSort = () => {
|
||||||
|
iconType.value = iconType.value === 'arrow-down' ? 'arrow-up' : 'arrow-down';
|
||||||
|
list.value = list.value.reverse();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询列表
|
// 查询列表
|
||||||
let list = ref([]);
|
let list = ref([]);
|
||||||
|
|
||||||
@@ -230,12 +240,7 @@ let handleDetail = (item) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.scroll-h {
|
.scroll-h {
|
||||||
/* #ifdef APP-PLUS */
|
height: 100%;
|
||||||
height: calc(100vh - 120px);
|
|
||||||
/* #endif */
|
|
||||||
/* #ifndef APP-PLUS */
|
|
||||||
height: calc(100vh - 110px);
|
|
||||||
/* #endif */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.white-bg {
|
.white-bg {
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ let handleDetail = (item) => {
|
|||||||
url: "/pages/business/CRM/customer/components/customerUserEdit",
|
url: "/pages/business/CRM/customer/components/customerUserEdit",
|
||||||
events: {
|
events: {
|
||||||
refreshCusUserList() {
|
refreshCusUserList() {
|
||||||
|
console.log('refreshCusUserList',"响应刷新")
|
||||||
handleSearch();
|
handleSearch();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
<!-- cancelButton="none" bgColor="#6FA2F8" textColor="#ffffff"-->
|
<!-- cancelButton="none" bgColor="#6FA2F8" textColor="#ffffff"-->
|
||||||
<!-- v-model="searchValue"-->
|
<!-- v-model="searchValue"-->
|
||||||
<!-- />-->
|
<!-- />-->
|
||||||
<!-- <button type="default" @click="clearSearchValue" size="mini" class="btn-search">清空</button>-->
|
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
|
|
||||||
<!-- 分页部分 -->
|
<!-- 分页部分 -->
|
||||||
@@ -34,7 +33,7 @@
|
|||||||
<view class="r-list title">
|
<view class="r-list title">
|
||||||
{{ item.cusName }}
|
{{ item.cusName }}
|
||||||
<view class="r-right no-wrap" :class="item.auditStatus ? 'btn-blue' : 'btn-pink' ">
|
<view class="r-right no-wrap" :class="item.auditStatus ? 'btn-blue' : 'btn-pink' ">
|
||||||
{{ item.auditStatus ? item.auditStatus : '待审核' }}
|
{{ item.auditStatus ? item.auditStatus : '待您审核' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="r-list">
|
<view class="r-list">
|
||||||
@@ -100,7 +99,8 @@ const mescrollRef = ref(null);
|
|||||||
let timerId = null;
|
let timerId = null;
|
||||||
// 查询搜索跳转
|
// 查询搜索跳转
|
||||||
let handleSearch = () => {
|
let handleSearch = () => {
|
||||||
// 防抖搜索 console.log(searchValue.value)
|
// 防抖搜索
|
||||||
|
console.log(searchValue.value)
|
||||||
if (timerId) clearTimeout(timerId);
|
if (timerId) clearTimeout(timerId);
|
||||||
|
|
||||||
timerId = setTimeout(async () => {
|
timerId = setTimeout(async () => {
|
||||||
@@ -236,29 +236,6 @@ let handleDetail = (item) => {
|
|||||||
/* #endif */
|
/* #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{
|
.scroll-h{
|
||||||
/* #ifdef APP-PLUS */
|
/* #ifdef APP-PLUS */
|
||||||
top: 160rpx;
|
top: 160rpx;
|
||||||
@@ -270,10 +247,6 @@ let handleDetail = (item) => {
|
|||||||
/* #endif */
|
/* #endif */
|
||||||
}
|
}
|
||||||
|
|
||||||
.search .custom-search.uni-searchbar {
|
|
||||||
padding-right: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.white-bg {
|
.white-bg {
|
||||||
padding-bottom: 10rpx;
|
padding-bottom: 10rpx;
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
|
<!--
|
||||||
|
* @description 查看主归属人变更
|
||||||
|
* @update date 2025/9/17 21:45
|
||||||
|
-->
|
||||||
<template>
|
<template>
|
||||||
<view class="con-body">
|
<view class="con-body">
|
||||||
<view class="con-bg">
|
<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="top-height" :style="{ paddingTop: navBarPaddingTop + 'px' }"></view>
|
||||||
|
|
||||||
<view class="all-body">
|
<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"
|
<mescroll-uni ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"
|
||||||
:up="upOption" :down="downOption" :fixed="false" textColor="#ffffff" bgColor="#ffffff"
|
:up="upOption" :down="downOption" :fixed="false" textColor="#ffffff" bgColor="#ffffff"
|
||||||
@@ -22,19 +20,11 @@
|
|||||||
@click="showDetail(item)">
|
@click="showDetail(item)">
|
||||||
<view>
|
<view>
|
||||||
<view class="report-list">
|
<view class="report-list">
|
||||||
<view class="title">客户:{{ item.cusName }}</view>
|
<view class="r-list title">{{ item.cusName }}
|
||||||
<view class="r-list">
|
|
||||||
<view class="r-name">{{ item.visistCode }}</view>
|
<view class="r-name">{{ item.visistCode }}</view>
|
||||||
<view>
|
<view class="r-right btn-blue no-wrap"> 查看 </view>
|
||||||
|
|
||||||
<view
|
|
||||||
class="r-right btn-blue"
|
|
||||||
size="mini">
|
|
||||||
查看
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
|
||||||
<view class="border-bottom"></view>
|
<view class="border-bottom"></view>
|
||||||
<view class="r-list">
|
<view class="r-list">
|
||||||
<view class="r-left">客户人员名称</view>
|
<view class="r-left">客户人员名称</view>
|
||||||
@@ -94,6 +84,7 @@ onShow(()=>{
|
|||||||
|
|
||||||
|
|
||||||
let list = ref([])
|
let list = ref([])
|
||||||
|
|
||||||
//获取列表信息
|
//获取列表信息
|
||||||
function getList(queryParams) {
|
function getList(queryParams) {
|
||||||
queryViewMainOwnerList(queryParams.value).then(res => {
|
queryViewMainOwnerList(queryParams.value).then(res => {
|
||||||
@@ -180,7 +171,7 @@ function showDetail(item) {
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style scoped>
|
||||||
|
|
||||||
.all-body {
|
.all-body {
|
||||||
/* #ifdef APP-PLUS */
|
/* #ifdef APP-PLUS */
|
||||||
@@ -193,44 +184,30 @@ function showDetail(item) {
|
|||||||
/* #endif */
|
/* #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 */
|
/* #ifdef APP-PLUS */
|
||||||
height: calc(100vh - 120px);
|
top: 160rpx;
|
||||||
|
height: calc(100vh - 160rpx);
|
||||||
/* #endif */
|
/* #endif */
|
||||||
/* #ifndef APP-PLUS */
|
/* #ifndef APP-PLUS */
|
||||||
height: calc(100vh - 110px);
|
top: 116rpx;
|
||||||
|
height: calc(100vh - 116rpx);
|
||||||
/* #endif */
|
/* #endif */
|
||||||
}
|
}
|
||||||
|
|
||||||
.white-bg {
|
.white-bg {
|
||||||
padding-bottom: 10rpx;
|
padding-bottom: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
align-items: baseline
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-wrap {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-blue {
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
<view class="demo-uni-col mar-left">
|
<view class="demo-uni-col mar-left">
|
||||||
<text>{{ WeekShortCN[i] }}</text>
|
<text>{{ WeekShortCN[i] }}</text>
|
||||||
<text v-if="list[0][field]">{{ list[0][field].substring(8) }}</text>
|
<text v-if="list[0][field]">{{ list[0][field].substring(8) }}</text>
|
||||||
|
<text v-else>{{ getWeek(i) }}</text>
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</block>
|
</block>
|
||||||
@@ -103,9 +104,10 @@ import MescrollUni from 'mescroll-uni/mescroll-uni.vue';
|
|||||||
import {getNavBarPaddingTop} from '@/utils/system.js'
|
import {getNavBarPaddingTop} from '@/utils/system.js'
|
||||||
import {getAllWeekPlanList} from "@/api/crm/plan/getPlan";
|
import {getAllWeekPlanList} from "@/api/crm/plan/getPlan";
|
||||||
import {AreaList, COLOR_MAP, OrdinalDate, WeekShortCN, WorkEvent, WorkType} from "./dataMap";
|
import {AreaList, COLOR_MAP, OrdinalDate, WeekShortCN, WorkEvent, WorkType} from "./dataMap";
|
||||||
import {getCurrentWeekNum} from "./dateTimeUtils";
|
import {getCurrentWeekNum, getWeek2} from "./dateTimeUtils";
|
||||||
import {getDate} from "@/utils/datetime";
|
import {getDate} from "@/utils/datetime";
|
||||||
import {getWeekPlanListByDate} from "@/api/crm/plan/getPlan";
|
import {getWeekPlanListByDate} from "@/api/crm/plan/getPlan";
|
||||||
|
import {onPullDownRefresh} from "@dcloudio/uni-app";
|
||||||
|
|
||||||
// const currentYear = new Date().getFullYear();
|
// const currentYear = new Date().getFullYear();
|
||||||
const currentMonth = new Date().getMonth() + 1;
|
const currentMonth = new Date().getMonth() + 1;
|
||||||
@@ -118,8 +120,11 @@ onMounted(() => {
|
|||||||
uni.showLoading({})
|
uni.showLoading({})
|
||||||
getPlanList().then(res => {
|
getPlanList().then(res => {
|
||||||
let {total, rows} = res;
|
let {total, rows} = res;
|
||||||
console.log(rows, "周计划数据获取成功")
|
console.log(total, rows, "周计划数据获取成功")
|
||||||
list.value = rows;
|
list.value = rows;
|
||||||
|
}).catch((err) => {
|
||||||
|
console.warn(err, "周计划数据获取失败")
|
||||||
|
}).finally(() => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -140,22 +145,21 @@ let searchValue = ref({
|
|||||||
// 查询列表
|
// 查询列表
|
||||||
let list = ref([]);
|
let list = ref([]);
|
||||||
const mescrollRef = ref(null);
|
const mescrollRef = ref(null);
|
||||||
const upOption = ref({
|
onPullDownRefresh(() => {
|
||||||
page: {num: 0, size: 10},
|
getPlanList().then(res => {
|
||||||
noMoreSize: 5,
|
const {rows} = res;
|
||||||
empty: {tip: '~ 空空如也 ~'},
|
list.value = rows;
|
||||||
textLoading: '加载中...',
|
console.log(rows,'刷新周计划成功');
|
||||||
textNoMore: '已经到底了'
|
}).finally(()=>{
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
const downOption = ref({
|
// 查询当前周一周日期
|
||||||
auto: true,
|
const aweek = getWeek2('本周');
|
||||||
textInOffset: '下拉刷新',
|
const getWeek = (i) => {
|
||||||
textOutOffset: '释放更新',
|
return aweek[OrdinalDate[i]].substring(7)
|
||||||
textLoading: '刷新中...'
|
}
|
||||||
});
|
|
||||||
|
|
||||||
let cssFlag = ref(false);//控制样式
|
|
||||||
|
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
const getPlanList = (month, date, pageIndex, pageSize) => {
|
const getPlanList = (month, date, pageIndex, pageSize) => {
|
||||||
@@ -197,10 +201,7 @@ let handleSearch = () => {
|
|||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const mescrollInit = (mescroll) => {
|
|
||||||
cssFlag.value = true;
|
|
||||||
mescrollRef.value = mescroll;
|
|
||||||
};
|
|
||||||
// 搜索区域变更
|
// 搜索区域变更
|
||||||
const bindPickerChange = (e) => {
|
const bindPickerChange = (e) => {
|
||||||
// console.log('picker发送选择改变,携带值为', peopleIndex.value)
|
// console.log('picker发送选择改变,携带值为', peopleIndex.value)
|
||||||
@@ -231,8 +232,7 @@ let handleDetail = (rowIndex, colIndex) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "暂无内容",
|
title: "暂无内容",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
@@ -366,10 +366,12 @@ let handleDetail = (rowIndex, colIndex) => {
|
|||||||
margin: 20rpx 0 0 0;
|
margin: 20rpx 0 0 0;
|
||||||
border-radius: 8px 8px 0 0;
|
border-radius: 8px 8px 0 0;
|
||||||
/* #ifdef APP-PLUS */
|
/* #ifdef APP-PLUS */
|
||||||
min-height: calc(100vh - 160rpx/*.topbar height*/ - 68rpx/*.search height*/ - 40rpx/*.white-bg padding-top*/ - 40rpx/*.white-bg padding-bottom*/);
|
min-height: calc(100vh - 160rpx/*.topbar height*/ - 68rpx/*.search height*/ - 40rpx/*.white-bg padding-top*/ - 40rpx /*.white-bg padding-bottom*/
|
||||||
|
);
|
||||||
/* #endif */
|
/* #endif */
|
||||||
/* #ifndef APP-PLUS */
|
/* #ifndef APP-PLUS */
|
||||||
min-height: calc(100vh - 116rpx/*.topbar height*/ - 68rpx/*.search height*/ - 40rpx/*.white-bg padding-top*/ - 40rpx/*.white-bg padding-bottom*/);
|
min-height: calc(100vh - 116rpx/*.topbar height*/ - 68rpx/*.search height*/ - 40rpx/*.white-bg padding-top*/ - 40rpx /*.white-bg padding-bottom*/
|
||||||
|
);
|
||||||
/* #endif */
|
/* #endif */
|
||||||
//overflow-y: auto;
|
//overflow-y: auto;
|
||||||
}
|
}
|
||||||
@@ -394,6 +396,7 @@ let handleDetail = (rowIndex, colIndex) => {
|
|||||||
:deep(.form-con .uni-forms-item) {
|
:deep(.form-con .uni-forms-item) {
|
||||||
margin-bottom: 22px !important;
|
margin-bottom: 22px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*.con-bg {
|
/*.con-bg {
|
||||||
height: 420rpx;
|
height: 420rpx;
|
||||||
}*/
|
}*/
|
||||||
|
|||||||
Reference in New Issue
Block a user