合并CRM
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
#调用后台地址
|
#调用后台地址
|
||||||
VITE_APP_BASE_URL = 'http://118.186.13.120:31302'
|
VITE_APP_BASE_URL = 'http://118.186.13.120:31302'
|
||||||
|
# VITE_APP_BASE_URL = 'https://app-test.718yousheng.com'
|
||||||
# VITE_APP_BASE_URL = "http://192.168.236.71:31302"
|
# VITE_APP_BASE_URL = "http://192.168.236.71:31302"
|
||||||
# VITE_APP_BASE_URL = "http://123.57.20.168:3000"
|
# VITE_APP_BASE_URL = "http://123.57.20.168:3000"
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export function SearchForAllPerson(params){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 客户人员新增审核列表
|
// 客户人员新增审核列表
|
||||||
export function getCusUserApprovalList(params) {
|
export function getCusUserApprovalList(params) {
|
||||||
return request.get({
|
return request.get({
|
||||||
url: '/app/appCrmCusUserNewController/getCusUserApprovalList',
|
url: '/app/appCrmCusUserNewController/getCusUserApprovalList',
|
||||||
data: params
|
data: params
|
||||||
|
|||||||
@@ -260,47 +260,47 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
//回款首页查看(已更新)
|
//回款首页查看(已更新)
|
||||||
// {
|
{
|
||||||
// "path": "pages/business/CRM/paymentCollection/index",
|
"path": "pages/business/CRM/paymentCollection/index",
|
||||||
// "style": {
|
"style": {
|
||||||
// "navigationBarTitleText": "回款首页查看"
|
"navigationBarTitleText": "回款首页查看"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
//回款新增(已更新)
|
//回款新增(已更新)
|
||||||
// {
|
{
|
||||||
// "path": "pages/business/CRM/paymentCollection/addPaymentCollection",
|
"path": "pages/business/CRM/paymentCollection/addPaymentCollection",
|
||||||
// "style": {
|
"style": {
|
||||||
// "navigationBarTitleText": "回款新增"
|
"navigationBarTitleText": "回款新增"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
//回款更新(已更新)
|
//回款更新(已更新)
|
||||||
// {
|
{
|
||||||
// "path": "pages/business/CRM/paymentCollection/paymentDetail",
|
"path": "pages/business/CRM/paymentCollection/paymentDetail",
|
||||||
// "style": {
|
"style": {
|
||||||
// "navigationBarTitleText": "回款新增"
|
"navigationBarTitleText": "回款新增"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
//回款查看公用页面(已更新)
|
//回款查看公用页面(已更新)
|
||||||
// {
|
{
|
||||||
// "path": "pages/business/CRM/paymentCollection/paymentCollectionCheck",
|
"path": "pages/business/CRM/paymentCollection/paymentCollectionCheck",
|
||||||
// "style": {
|
"style": {
|
||||||
// "navigationBarTitleText": "回款查看"
|
"navigationBarTitleText": "回款查看"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
//回款查看全员统计查看(已更新)
|
//回款查看全员统计查看(已更新)
|
||||||
// {
|
{
|
||||||
// "path": "pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable",
|
"path": "pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable",
|
||||||
// "style": {
|
"style": {
|
||||||
// "navigationBarTitleText": "全员统计查看"
|
"navigationBarTitleText": "全员统计查看"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
//回款查看个人详情查看(已更新)
|
//回款查看个人详情查看(已更新)
|
||||||
// {
|
{
|
||||||
// "path": "pages/business/CRM/paymentCollection/personalPaymentCollectionTable",
|
"path": "pages/business/CRM/paymentCollection/personalPaymentCollectionTable",
|
||||||
// "style": {
|
"style": {
|
||||||
// "navigationBarTitleText": "个人详情查看"
|
"navigationBarTitleText": "个人详情查看"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/business/CRM/weekPlanUpdate",
|
"path": "pages/business/CRM/weekPlanUpdate",
|
||||||
//修改周计划
|
//修改周计划
|
||||||
@@ -421,6 +421,13 @@
|
|||||||
},
|
},
|
||||||
//===================================活动报告====================
|
//===================================活动报告====================
|
||||||
{
|
{
|
||||||
|
"path": "pages/business/CRM/mainOwner/view/viewMainOwner", //查看主归属人变更信息
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
|
||||||
"path": "pages/business/CRM/marketActivity/visitReport",
|
"path": "pages/business/CRM/marketActivity/visitReport",
|
||||||
//市场信息管理
|
//市场信息管理
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -2,46 +2,47 @@
|
|||||||
<view class="con-body">
|
<view class="con-body">
|
||||||
<view class="con-bg">
|
<view class="con-bg">
|
||||||
<!-- 头部 -->
|
<!-- 头部 -->
|
||||||
<customHeader ref="customHeaderRef" :title="'市场信息查看'" :leftFlag="true" :rightFlag="true">
|
<customHeader ref="customHeaderRef" :title="!searchShow?'市场信息查看':'搜索'"
|
||||||
<template #right>
|
:leftFlag="true"
|
||||||
</template>
|
:rightFlag="true"
|
||||||
|
@back="handleBack" :searchType="searchShow?1:undefined"
|
||||||
|
>
|
||||||
|
<!-- <template #right v-if="!searchShow">
|
||||||
|
<view class="head-right" @click="handleRead">
|
||||||
|
<img :src="'static/images/icon-clean@2x.png'" />清除未读
|
||||||
|
</view>
|
||||||
|
</template> -->
|
||||||
</customHeader>
|
</customHeader>
|
||||||
|
|
||||||
<!-- 高度来避免头部遮挡 -->
|
<!-- 高度来避免头部遮挡 -->
|
||||||
<view class="top-height" :style="{ paddingTop: navBarPaddingTop + 'px' }"></view>
|
<view class="top-height"></view>
|
||||||
|
|
||||||
|
<!-- 搜索处理 -->
|
||||||
|
<customSearch v-if="searchShow" :searchKeywords="searchText" :searchType="searchTypeObj"
|
||||||
|
:checkTypeObj="notictTypeCheck" :searchTypeList="noticeTypeList" @confirm="handleSearchConfirm">
|
||||||
|
</customSearch>
|
||||||
|
<view class="search" v-else @click="handleSearchFocus">
|
||||||
|
<view class="search-bg">
|
||||||
|
<view class="search-left">{{ notictTypeCheck.name?notictTypeCheck.name:'全部' }}</view>
|
||||||
|
<view class="search-right">
|
||||||
|
<input class="uni-input" v-model="inputval" placeholder="请输入您想查询的内容或服务"
|
||||||
|
placeholder-class="search-color" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</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> -->
|
|
||||||
<view class="search_center">
|
|
||||||
<view class="category">
|
|
||||||
<view class="flex_row_center_center" @click="showCate">
|
|
||||||
<text>{{selCategory.val||'全部'}}</text>
|
|
||||||
<image src="@/static/images/icon-notice@2x.png" mode=""></image>
|
|
||||||
</view>
|
|
||||||
<view class="pop_arrow" v-if="maskShow"></view>
|
|
||||||
<view class="pop" v-if="maskShow">
|
|
||||||
<text v-for="(item,index) in categories" :key="index"
|
|
||||||
@click="toList(item.categoryId,item.categoryName)">{{item.categoryName}}</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<image class="search_icon" src="@/static/images/icon-notice@2x.png"></image>
|
|
||||||
<input class='sea_input' :focus="inputFocus" type='text' :value="inputval" placeholder="请输入搜索条件"
|
|
||||||
@input="inputChange" @confirm='search' maxlength="50" placeholder-class="placeClass"></input>
|
|
||||||
<image class='clear_content' v-show="inputval" @click="clearInputVal"
|
|
||||||
src="@/static/images/icon-notice@2x.png" />
|
|
||||||
</view>
|
|
||||||
<text class='sea_btn' @click="btnSearch(1)">{{'搜索'}}</text>
|
|
||||||
<!-- 分页部分 -->
|
<!-- 分页部分 -->
|
||||||
<mescroll-uni ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"
|
<mescroll-uni v-if="!searchShow" 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"
|
||||||
class="scroll-h" :class="{ 'loading-scroll': cssFlag }">
|
class="scroll-h" :class="{ 'loading-scroll': cssFlag }">
|
||||||
<view class="white-bg margin-bottom20" v-for="(item, index) in list" :key="index" @click="showDetail(item)">
|
<view class="white-bg margin-bottom20" v-for="(item, index) in list" :key="index"
|
||||||
|
@click="showDetail(item)">
|
||||||
<view>
|
<view>
|
||||||
<view class="report-list">
|
<view class="report-list">
|
||||||
<view class="title">信息类型:{{ item.informationType }}</view>
|
<view class="title">信息类型:{{ item.informationType }}</view>
|
||||||
@@ -49,8 +50,9 @@
|
|||||||
|
|
||||||
<view class="r-list">
|
<view class="r-list">
|
||||||
<view class="r-name" v-if="item.cusName!=null">公司名称:{{ item.cusName }}</view>
|
<view class="r-name" v-if="item.cusName!=null">公司名称:{{ item.cusName }}</view>
|
||||||
<view class="r-right btn-gray flex-auto" :class="item.myselfBrowsing==0?'btn-blue':'btn-green'"
|
<view class="r-right btn-gray flex-auto"
|
||||||
size="mini">{{item.myselfBrowsing==0?'未读':'已读'}}</view>
|
:class="item.myselfBrowsing==0?'btn-blue':'btn-green'" size="mini">
|
||||||
|
{{item.myselfBrowsing==0?'未读':'已读'}}</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="border-bottom"></view>
|
<view class="border-bottom"></view>
|
||||||
@@ -70,7 +72,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -82,6 +84,7 @@
|
|||||||
watch
|
watch
|
||||||
} from 'vue'
|
} from 'vue'
|
||||||
import customHeader from '@/components/customHeader.vue'
|
import customHeader from '@/components/customHeader.vue'
|
||||||
|
import customSearch from '@/components/customSearch.vue'
|
||||||
import MescrollUni from 'mescroll-uni/mescroll-uni.vue';
|
import MescrollUni from 'mescroll-uni/mescroll-uni.vue';
|
||||||
import {
|
import {
|
||||||
getNavBarPaddingTop
|
getNavBarPaddingTop
|
||||||
@@ -95,7 +98,8 @@
|
|||||||
import {
|
import {
|
||||||
onLoad,
|
onLoad,
|
||||||
onShow,
|
onShow,
|
||||||
onUnload
|
onUnload,
|
||||||
|
onHide
|
||||||
} from '@dcloudio/uni-app'
|
} from '@dcloudio/uni-app'
|
||||||
// 获取导航栏高度用于内容区域padding
|
// 获取导航栏高度用于内容区域padding
|
||||||
const navBarPaddingTop = ref(0);
|
const navBarPaddingTop = ref(0);
|
||||||
@@ -103,10 +107,45 @@
|
|||||||
navBarPaddingTop.value = getNavBarPaddingTop() * 2;
|
navBarPaddingTop.value = getNavBarPaddingTop() * 2;
|
||||||
uni.$on('updateStatus', markVisited)
|
uni.$on('updateStatus', markVisited)
|
||||||
})
|
})
|
||||||
|
// 搜索处理
|
||||||
|
let searchShow = ref(false);
|
||||||
|
let searchText = ref(undefined);
|
||||||
|
let searchTypeObj = ref({
|
||||||
|
typeId: 3,
|
||||||
|
typeName: '消息类型'
|
||||||
|
});
|
||||||
|
let noticeTypeList = ref([{
|
||||||
|
id: 1,
|
||||||
|
name: '市场机会'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: '重大事项信息'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
name: '竞争对手信息'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
name: '人员变化信息'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 5,
|
||||||
|
name: '重点型号任务信息'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 6,
|
||||||
|
name: '通用信息'
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
let notictTypeCheck = ref({}); //选中类型
|
||||||
|
|
||||||
// 查询列表
|
// 查询列表
|
||||||
let list = ref([]);
|
let list = ref([]);
|
||||||
|
// 新增状态变量存储搜索条件
|
||||||
|
const selValue = ref(''); // 搜索类型名称
|
||||||
|
const inputval = ref(''); // 搜索内容
|
||||||
let searchValue = ref(null)
|
let searchValue = ref(null)
|
||||||
//监视查询的内容的变化
|
//监视查询的内容的变化
|
||||||
watch(searchValue, (newValue, oldValue) => {
|
watch(searchValue, (newValue, oldValue) => {
|
||||||
@@ -114,7 +153,6 @@
|
|||||||
var data = {
|
var data = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
searchContent: searchValue.value
|
|
||||||
};
|
};
|
||||||
viewingMarketInfForAllMembers(data).then(res => {
|
viewingMarketInfForAllMembers(data).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
@@ -123,6 +161,10 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
onHide(()=>{
|
||||||
|
searchShow.value=false;
|
||||||
|
})
|
||||||
|
|
||||||
const index = ref(0)
|
const index = ref(0)
|
||||||
const categories = ref([{
|
const categories = ref([{
|
||||||
categoryId: 1,
|
categoryId: 1,
|
||||||
@@ -147,12 +189,35 @@
|
|||||||
id: 1,
|
id: 1,
|
||||||
val: ''
|
val: ''
|
||||||
})
|
})
|
||||||
|
// 搜索返回操作
|
||||||
|
const handleBack=()=>{
|
||||||
|
searchShow.value=false;
|
||||||
|
}
|
||||||
|
// 获取input 焦点跳转
|
||||||
|
const handleSearchFocus=()=>{
|
||||||
|
searchShow.value = true;
|
||||||
|
}
|
||||||
|
// 搜索完返回处理
|
||||||
|
const handleSearchConfirm = (param1,param2)=>{
|
||||||
|
// console.log(param1,param2)
|
||||||
|
notictTypeCheck.value=param1.value;
|
||||||
|
inputval.value=param2.value || '';
|
||||||
|
selValue.value = param1.value.name || '';
|
||||||
|
searchValue.value = param2.value;
|
||||||
|
console.log("selValue"+selValue.value)
|
||||||
|
console.log("inputval"+inputval.value)
|
||||||
|
// 重置mescroll触发刷新
|
||||||
|
if (mescrollRef.value) {
|
||||||
|
mescrollRef.value.resetUpScroll();
|
||||||
|
}
|
||||||
|
searchShow.value = false;
|
||||||
|
}
|
||||||
// 查询搜索跳转
|
// 查询搜索跳转
|
||||||
let handleSearch = () => {
|
let handleSearch = () => {
|
||||||
var data = {
|
var data = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
searchContent: searchValue.value
|
|
||||||
};
|
};
|
||||||
viewingMarketInfForAllMembers(data).then(res => {
|
viewingMarketInfForAllMembers(data).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
@@ -218,7 +283,8 @@
|
|||||||
const upCallback = async (mescroll) => {
|
const upCallback = async (mescroll) => {
|
||||||
try {
|
try {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
const res = await getViewingMarketInfForAllMembers(mescroll.num, mescroll.size);
|
const res = await getViewingMarketInfForAllMembers(mescroll.num, mescroll.size,selValue.value,
|
||||||
|
inputval.value);
|
||||||
if (mescroll.num === 1) {
|
if (mescroll.num === 1) {
|
||||||
list.value = res.list;
|
list.value = res.list;
|
||||||
} else {
|
} else {
|
||||||
@@ -236,7 +302,10 @@
|
|||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
let param = {
|
let param = {
|
||||||
pageNum,
|
pageNum,
|
||||||
pageSize
|
pageSize,
|
||||||
|
// 添加搜索条件参数
|
||||||
|
selValue: selValue.value,
|
||||||
|
inputval: inputval.value
|
||||||
}
|
}
|
||||||
let res = await viewingMarketInfForAllMembers(param);
|
let res = await viewingMarketInfForAllMembers(param);
|
||||||
resolve({
|
resolve({
|
||||||
@@ -245,7 +314,6 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let Loop = ref(0)
|
let Loop = ref(0)
|
||||||
let now
|
let now
|
||||||
const visistId = ref();
|
const visistId = ref();
|
||||||
@@ -255,7 +323,8 @@
|
|||||||
|
|
||||||
function showDetail(item) {
|
function showDetail(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/business/CRM/marketInformation/informationDetail?informationId=" + item.informationId + '&selValue=' + item.selValue+ '&inputval=' + item.inputval
|
url: "/pages/business/CRM/marketInformation/informationDetail?informationId=" + item.informationId +
|
||||||
|
'&selValue=' + item.selValue + '&inputval=' + item.inputval
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -266,14 +335,16 @@
|
|||||||
const markVisited = (informationId) => {
|
const markVisited = (informationId) => {
|
||||||
const newList = [...list.value].map(item => {
|
const newList = [...list.value].map(item => {
|
||||||
if (item.informationId == informationId) {
|
if (item.informationId == informationId) {
|
||||||
return { ...item, myselfBrowsing: 1 };
|
return {
|
||||||
|
...item,
|
||||||
|
myselfBrowsing: 1
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return item;
|
return item;
|
||||||
});
|
});
|
||||||
list.value = newList;
|
list.value = newList;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -0,0 +1,182 @@
|
|||||||
|
<template>
|
||||||
|
<view class="con-body">
|
||||||
|
<view class="con-bg">
|
||||||
|
<!-- 头部 -->
|
||||||
|
<customHeader ref="customHeaderRef" :title="'回款计划新增'" :leftFlag="true" :rightFlag="true">
|
||||||
|
<template #right>
|
||||||
|
<view class="head-right" @click="submitForm">
|
||||||
|
<uni-icons custom-prefix="iconfont" type="icon-phonebaocun" size="22"
|
||||||
|
color="#B7D2FF"></uni-icons>保存
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</customHeader>
|
||||||
|
|
||||||
|
<!-- 高度来避免头部遮挡 -->
|
||||||
|
<view class="top-height"></view>
|
||||||
|
|
||||||
|
<!-- 正文内容 -->
|
||||||
|
<view class="white-bg">
|
||||||
|
<view class="form-con">
|
||||||
|
<uni-forms ref="formRef" :model="formData" :rules="rules" label-width="100px">
|
||||||
|
<uni-forms-item label="客户名称" name="cusName" class="f-c-right">
|
||||||
|
<view @click="chooseCustomer" class="form-item-container">
|
||||||
|
<text class="name">{{ formData.cusName || '点击选择客户' }}</text>
|
||||||
|
</view>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item label="计划回款金额" name="targetAmount" required
|
||||||
|
class="uni-forms-item is-direction-top is-top">
|
||||||
|
<uni-easyinput type="textarea" autoHeight v-model="formData.targetAmount" placeholder="请输入计划回款金额"
|
||||||
|
class="form-texarea" />
|
||||||
|
</uni-forms-item>
|
||||||
|
</uni-forms>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
onMounted,
|
||||||
|
reactive,
|
||||||
|
onUnmounted,
|
||||||
|
computed
|
||||||
|
} from 'vue'
|
||||||
|
import customHeader from '@/components/customHeader.vue'
|
||||||
|
import {
|
||||||
|
getGuestList
|
||||||
|
} from '@/api/business.js'
|
||||||
|
import {
|
||||||
|
isEmpty
|
||||||
|
} from '@/utils/validate.js'
|
||||||
|
import {
|
||||||
|
addPaymentCollection
|
||||||
|
} from '@/api/crm/api_ys.js'
|
||||||
|
|
||||||
|
|
||||||
|
let customerUser = reactive({})
|
||||||
|
// 客户相关
|
||||||
|
const guestList = ref([])
|
||||||
|
const guestArr = ref([])
|
||||||
|
const guestIndex = ref(0)
|
||||||
|
|
||||||
|
// 表单数据
|
||||||
|
const formData = ref({
|
||||||
|
cusId: null,
|
||||||
|
promiseCode: null,
|
||||||
|
cusName: null,
|
||||||
|
targetAmount: null
|
||||||
|
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
// 表单验证规则
|
||||||
|
const rules = {
|
||||||
|
cusName: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请选择客户'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
targetAmount: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请输入回款计划金额'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
format: 'number',
|
||||||
|
errorMessage: '必须输入数字(可包含小数点)'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const imgList = ref([])
|
||||||
|
|
||||||
|
// picker 相关
|
||||||
|
const index = ref(0)
|
||||||
|
// 表单引用 & 客户选择器引用
|
||||||
|
const formRef = ref(null)
|
||||||
|
const customHeaderRef = ref(null)
|
||||||
|
// 选择客户页面跳转
|
||||||
|
function chooseCustomer() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/business/CRM/chooseCus'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//定义数据接收的值
|
||||||
|
let selectedCustomer = reactive(null)
|
||||||
|
|
||||||
|
//监听时间
|
||||||
|
onMounted(() => {
|
||||||
|
uni.$on('onCustomerSelected', handleCustomerSelected)
|
||||||
|
})
|
||||||
|
//取消监听
|
||||||
|
onUnmounted(() => {
|
||||||
|
uni.$off('onCustomerSelected', handleCustomerSelected)
|
||||||
|
})
|
||||||
|
|
||||||
|
//处理 接收数据
|
||||||
|
const handleCustomerSelected = (data) => {
|
||||||
|
formData.value.cusName = data.cusName
|
||||||
|
formData.value.cusId = data.cusId
|
||||||
|
}
|
||||||
|
// 提交表单
|
||||||
|
const submitForm = async () => {
|
||||||
|
try {
|
||||||
|
// 表单校验
|
||||||
|
await formRef.value.validate()
|
||||||
|
const res = await addPaymentCollection(formData.value);
|
||||||
|
console.log(res)
|
||||||
|
uni.showToast({
|
||||||
|
title: '提交成功',
|
||||||
|
icon: 'success'
|
||||||
|
})
|
||||||
|
uni.$emit('refreshList');
|
||||||
|
uni.navigateBack(1)
|
||||||
|
} catch (err) {
|
||||||
|
console.log('表单验证失败:', err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.white-bg {
|
||||||
|
width: 750rpx;
|
||||||
|
padding: 30rpx 0 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
border-radius: 8px 8px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-con {
|
||||||
|
/* #ifdef APP-PLUS */
|
||||||
|
height: calc(120vh - 100px)
|
||||||
|
/* #endif */
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
height:calc(120vh - 80px)
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x) {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x .icon-calendar) {
|
||||||
|
float: right;
|
||||||
|
margin-top: 15rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
background: url('../../../static/images/business/icon-date.png') no-repeat;
|
||||||
|
background-size: 32rpx 35rpx;
|
||||||
|
width: 32rpx;
|
||||||
|
height: 35rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x .icon-calendar::before) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x .uni-date__x-input) {
|
||||||
|
padding-left: 20rpx;
|
||||||
|
color: #919191;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,262 @@
|
|||||||
|
<template>
|
||||||
|
<view class="con-body">
|
||||||
|
<view class="con-bg">
|
||||||
|
<!-- 头部 -->
|
||||||
|
<customHeader ref="customHeaderRef" :title="'全员信息查看统计表'" :leftFlag="true" :rightFlag="false"></customHeader>
|
||||||
|
|
||||||
|
<!-- 高度来避免头部遮挡 -->
|
||||||
|
<view class="top-height"></view>
|
||||||
|
|
||||||
|
<!-- 正文内容 -->
|
||||||
|
<view>
|
||||||
|
<!-- 搜索 -->
|
||||||
|
<view class="search">
|
||||||
|
<picker :value="index1" @change="handlePlace1" :range="monthArray" :range-key="'name'"
|
||||||
|
class="picker-bg">
|
||||||
|
<view class="picker">
|
||||||
|
<uni-icons custom-prefix="iconfont" color="#ffffff" type="icon-phoneshizhong"
|
||||||
|
size="18"></uni-icons>
|
||||||
|
<view>{{ monthArray[index1]?.name || '选择月份' }}</view>
|
||||||
|
<uni-icons type="down" size="18"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</picker>
|
||||||
|
<picker @change="handlePlace" :value="index2" :range="palceArray" class="picker-bg"
|
||||||
|
:range-key="'name'">
|
||||||
|
<view class="picker">
|
||||||
|
<uni-icons type="person" size="18"></uni-icons>
|
||||||
|
<view>{{palceArray[index2]?.name || '选择区域' }}</view>
|
||||||
|
<uni-icons type="down" size="18"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</picker>
|
||||||
|
<button type="default" @click="handleSearch" size="mini" class="btn-search">查询</button>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 回款信息查询 -->
|
||||||
|
<view class="white-bg">
|
||||||
|
<view class="table-title">回款信息查询</view>
|
||||||
|
<view v-if="loading" class="loading-container">
|
||||||
|
<uni-load-more status="loading" contentText="加载中..."></uni-load-more>
|
||||||
|
</view>
|
||||||
|
<!-- 添加空数据提示 -->
|
||||||
|
<view v-else-if="tableData.length === 0" class="empty-tip">
|
||||||
|
暂无数据
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
<table v-else class="my-table">
|
||||||
|
<tr>
|
||||||
|
<th class="tab-width100">业务员姓名</th>
|
||||||
|
<!-- <th class="tab-width160">客户名称</th> -->
|
||||||
|
<th>目标回款</th>
|
||||||
|
<th>实际回款</th>
|
||||||
|
<th>完成度</th>
|
||||||
|
</tr>
|
||||||
|
<tr v-for="(item, index) in tableData" :key="index">
|
||||||
|
<td>{{ item.userName }}</td>
|
||||||
|
<!-- <td class="txtLeft">{{ item.guestName }}</td> -->
|
||||||
|
<td>{{ item.targetAmount }}</td>
|
||||||
|
<td>{{ item.backMoneyRatio }}</td>
|
||||||
|
<td>{{ item.jisuan }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
onMounted
|
||||||
|
} from 'vue'
|
||||||
|
import customHeader from '@/components/customHeader.vue'
|
||||||
|
import {
|
||||||
|
getDate
|
||||||
|
} from '@/utils/datetime.js'
|
||||||
|
import {
|
||||||
|
getFullStaffStatisticsViewingTable
|
||||||
|
} from '@/api/crm/api_ys.js'
|
||||||
|
const loading = ref(false) // 加载状态
|
||||||
|
const index1 = ref(0)
|
||||||
|
const index2 = ref(0)
|
||||||
|
let peopleIndex = ref(0);
|
||||||
|
// 选择列表
|
||||||
|
let bindPickerChange = (e) => {
|
||||||
|
console.log('picker发送选择改变,携带值为', e.detail.value)
|
||||||
|
peopleIndex.value = e.detail.value
|
||||||
|
}
|
||||||
|
|
||||||
|
let searchValue = ref(null)
|
||||||
|
// 查询搜索跳转
|
||||||
|
let handleSearch = () => {
|
||||||
|
getCrmMarketInformationList();
|
||||||
|
}
|
||||||
|
// 表单数据
|
||||||
|
const formData = ref({
|
||||||
|
month: "1",
|
||||||
|
region: "北京大区",
|
||||||
|
})
|
||||||
|
const tableData = ref([])
|
||||||
|
const palceArray = ref([{
|
||||||
|
id: 1,
|
||||||
|
name: '北京大区'
|
||||||
|
}, {
|
||||||
|
id: 2,
|
||||||
|
name: '市场三部'
|
||||||
|
}, {
|
||||||
|
id: 3,
|
||||||
|
name: '市场二部'
|
||||||
|
}, {
|
||||||
|
id: 4,
|
||||||
|
name: '南方大区'
|
||||||
|
}, {
|
||||||
|
id: 5,
|
||||||
|
name: '北方大区'
|
||||||
|
}, {
|
||||||
|
id: 6,
|
||||||
|
name: '西部大区'
|
||||||
|
}])
|
||||||
|
const monthArray = ref([
|
||||||
|
{ id: 1, name: '1月' },
|
||||||
|
{ id: 2, name: '2月' },
|
||||||
|
{ id: 3, name: '3月' },
|
||||||
|
{ id: 4, name: '4月' },
|
||||||
|
{ id: 5, name: '5月' },
|
||||||
|
{ id: 6, name: '6月' },
|
||||||
|
{ id: 7, name: '7月' },
|
||||||
|
{ id: 8, name: '8月' },
|
||||||
|
{ id: 9, name: '9月' },
|
||||||
|
{ id: 10, name: '10月' },
|
||||||
|
{ id: 11, name: '11月' },
|
||||||
|
{ id: 12, name: '12月' }
|
||||||
|
])
|
||||||
|
const handlePlace1 = (e) => {
|
||||||
|
index1.value = e.detail.value
|
||||||
|
console.log('index1:', monthArray.value[e.detail.value]?.name)
|
||||||
|
formData.value.month = monthArray.value[e.detail.value]?.id || ''
|
||||||
|
}
|
||||||
|
const handlePlace = (e) => {
|
||||||
|
index2.value = e.detail.value
|
||||||
|
console.log('index2:', palceArray.value[e.detail.value]?.name)
|
||||||
|
formData.value.region = palceArray.value[e.detail.value]?.name || ''
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取数据列表
|
||||||
|
const getCrmMarketInformationList = async () => {
|
||||||
|
loading.value = true
|
||||||
|
try {
|
||||||
|
const res = await getFullStaffStatisticsViewingTable(formData.value);
|
||||||
|
// 直接赋值给响应式变量
|
||||||
|
tableData.value = res.rows || []
|
||||||
|
console.log('获取到的数据:', tableData.value)
|
||||||
|
} catch (error) {
|
||||||
|
console.error('获取数据失败:', error)
|
||||||
|
uni.showToast({
|
||||||
|
title: '获取数据失败',
|
||||||
|
icon: 'error'
|
||||||
|
})
|
||||||
|
} finally {
|
||||||
|
loading.value = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 获取数据列表(无参数)
|
||||||
|
const getCrmMarketInformationListNoPo = async () => {
|
||||||
|
loading.value = true
|
||||||
|
try {
|
||||||
|
const res = await getFullStaffStatisticsViewingTable();
|
||||||
|
// 直接赋值给响应式变量
|
||||||
|
tableData.value = res.rows || []
|
||||||
|
console.log('获取到的数据:', tableData.value)
|
||||||
|
} catch (error) {
|
||||||
|
console.error('获取数据失败:', error)
|
||||||
|
uni.showToast({
|
||||||
|
title: '获取数据失败',
|
||||||
|
icon: 'error'
|
||||||
|
})
|
||||||
|
} finally {
|
||||||
|
loading.value = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onMounted(() => {
|
||||||
|
getCrmMarketInformationListNoPo()
|
||||||
|
})
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.search {
|
||||||
|
display: flex;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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 .picker-bg {
|
||||||
|
display: flex;
|
||||||
|
background-color: #6FA2F8;
|
||||||
|
border-radius: 25px;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 28rpx;
|
||||||
|
padding: 0rpx 20rpx;
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
padding: 10rpx 20rpx 0 20rpx;
|
||||||
|
/* #endif */
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search .picker-bg .picker {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
padding-top: 2rpx;
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
|
.search .picker-bg .picker .uni-icons {
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search .picker-bg .picker .uni-icons:first-child {
|
||||||
|
margin-right: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search .picker-bg .picker .uniui-down {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.white-bg {
|
||||||
|
width: 750rpx;
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 8px 8px 0 0;
|
||||||
|
padding: 20rpx 0rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
/* #ifdef APP-PLUS */
|
||||||
|
height: calc(100vh - 135px);
|
||||||
|
/* #endif */
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
height: calc(100vh - 112px);
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-title {
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
border-bottom: 2px solid #E7E7E7;
|
||||||
|
padding-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
254
src/pages/business/CRM/paymentCollection/index.vue
Normal file
254
src/pages/business/CRM/paymentCollection/index.vue
Normal file
@@ -0,0 +1,254 @@
|
|||||||
|
<template>
|
||||||
|
<view class="con-body">
|
||||||
|
<view class="con-bg">
|
||||||
|
<!-- 头部 -->
|
||||||
|
<customHeader ref="customHeaderRef" :title="'个人回款信息查看'" :leftFlag="true" :rightFlag="true">
|
||||||
|
<template #right>
|
||||||
|
<view class="head-right" @click="handleAdd">
|
||||||
|
<uni-icons type="plus" size="24" color="#B7D2FF"></uni-icons>新增
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</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"
|
||||||
|
class="scroll-h" :class="{ 'loading-scroll': cssFlag }">
|
||||||
|
<view class="white-bg margin-bottom20" v-for="(item, index) in list" :key="index" @click="touchstart(item)">
|
||||||
|
<view>
|
||||||
|
<view class="report-list">
|
||||||
|
<view class="title">客户:{{ item.cusName }}</view>
|
||||||
|
<view class="r-list">
|
||||||
|
<!-- <view class="r-name">{{ item.visistCode }}</view> -->
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<view class="border-bottom"></view>
|
||||||
|
<view class="r-list">
|
||||||
|
<view class="r-left">计划年份</view>
|
||||||
|
<view class="r-right">{{ item.year }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="r-list">
|
||||||
|
<view class="r-left">计划月份</view>
|
||||||
|
<view class="r-right">{{ item.month }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="border-bottom"></view>
|
||||||
|
<view class="r-list">
|
||||||
|
<view class="r-left">创建时间</view>
|
||||||
|
<view class="r-right">{{ item.createTime }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="border-bottom"></view>
|
||||||
|
<view class="r-list">
|
||||||
|
<view class="r-left">计划汇款金额</view>
|
||||||
|
<view class="r-right" style="color: red;">{{ item.targetAmount }}</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</mescroll-uni>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref, onMounted, watch,onUnmounted } from 'vue'
|
||||||
|
import customHeader from '@/components/customHeader.vue'
|
||||||
|
import MescrollUni from 'mescroll-uni/mescroll-uni.vue';
|
||||||
|
import { getNavBarPaddingTop } from '@/utils/system.js'
|
||||||
|
import { visitorReportList } from '@/api/business.js'
|
||||||
|
import { getPaymentList } from '@/api/crm/api_ys.js';
|
||||||
|
import { onShow } from '@dcloudio/uni-app'
|
||||||
|
// 获取导航栏高度用于内容区域padding
|
||||||
|
const navBarPaddingTop = ref(0);
|
||||||
|
onMounted(() => {
|
||||||
|
navBarPaddingTop.value = getNavBarPaddingTop() * 2;
|
||||||
|
})
|
||||||
|
|
||||||
|
// 查询列表
|
||||||
|
let list = ref([]);
|
||||||
|
|
||||||
|
let searchValue = ref(null)
|
||||||
|
|
||||||
|
//监视查询的内容的变化
|
||||||
|
watch(searchValue, (newValue, oldValue) => {
|
||||||
|
//变化了之后,重新查询内容
|
||||||
|
var data = {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
searchContent: searchValue.value
|
||||||
|
};
|
||||||
|
getYsVisistList(data).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
//设置列表数据
|
||||||
|
list.value = res.rows;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
// 新增
|
||||||
|
let handleAdd = () => {
|
||||||
|
uni.navigateTo({url: '/pages/business/CRM/paymentCollection/addPaymentCollection'})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const mescrollRef = ref(null);
|
||||||
|
const upOption = ref({
|
||||||
|
page: {num: 0, size: 10},
|
||||||
|
noMoreSize: 5,
|
||||||
|
empty: {tip: '~ 空空如也 ~'},
|
||||||
|
textLoading: '加载中...',
|
||||||
|
textNoMore: '已经到底了'
|
||||||
|
});
|
||||||
|
|
||||||
|
const downOption = ref({
|
||||||
|
auto: true,
|
||||||
|
textInOffset: '下拉刷新',
|
||||||
|
textOutOffset: '释放更新',
|
||||||
|
textLoading: '刷新中...'
|
||||||
|
});
|
||||||
|
|
||||||
|
let cssFlag = ref(false);//控制样式
|
||||||
|
const mescrollInit = (mescroll) => {
|
||||||
|
cssFlag.value = true;
|
||||||
|
mescrollRef.value = mescroll;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 下拉刷新
|
||||||
|
const downCallback = async (mescroll) => {
|
||||||
|
try {
|
||||||
|
setTimeout(async () => {
|
||||||
|
const res = await GetPaymentList(1, upOption.value.page.size);
|
||||||
|
cssFlag.value = false;
|
||||||
|
list.value = res.list;
|
||||||
|
mescroll.resetUpScroll();
|
||||||
|
}, 500);
|
||||||
|
} catch (error) {
|
||||||
|
mescroll.endErr();
|
||||||
|
} finally {
|
||||||
|
setTimeout(async () => {
|
||||||
|
mescroll.endSuccess();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 上拉加载更多
|
||||||
|
const upCallback = async (mescroll) => {
|
||||||
|
try {
|
||||||
|
setTimeout(async () => {
|
||||||
|
const res = await GetPaymentList(mescroll.num, mescroll.size);
|
||||||
|
if (mescroll.num === 1) {
|
||||||
|
list.value = res.list;
|
||||||
|
} else {
|
||||||
|
list.value.push(...res.list);
|
||||||
|
}
|
||||||
|
mescroll.endBySize(res.list.length, res.total);
|
||||||
|
}, 500);
|
||||||
|
} catch (error) {
|
||||||
|
mescroll.endErr();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取数据列表
|
||||||
|
const GetPaymentList = (pageNum, pageSize) => {
|
||||||
|
return new Promise(async (resolve) => {
|
||||||
|
let param = {
|
||||||
|
pageNum,
|
||||||
|
pageSize
|
||||||
|
}
|
||||||
|
let res = await getPaymentList(param);
|
||||||
|
resolve({
|
||||||
|
list: res.rows,
|
||||||
|
total: res.total
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
let Loop = ref(0)
|
||||||
|
|
||||||
|
function touchstart(item) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/business/CRM/paymentCollection/paymentDetail?collectionId=" + item.collectionId + '&cusId=' + item.cusId + '&targetAmount=' + item.targetAmount + '&cusName=' + item.cusName
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 生命周期钩子
|
||||||
|
onShow(() => {
|
||||||
|
// 监听刷新事件
|
||||||
|
|
||||||
|
uni.$on('refreshList', GetPaymentList(1,10))
|
||||||
|
|
||||||
|
// 页面显示时也加载一次数据
|
||||||
|
GetPaymentList(1,10)
|
||||||
|
})
|
||||||
|
onUnmounted(() => {
|
||||||
|
// 移除监听(避免重复触发)
|
||||||
|
uni.$off('refreshList')
|
||||||
|
})
|
||||||
|
onMounted(() => {
|
||||||
|
GetPaymentList()
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.all-body {
|
||||||
|
/* #ifdef APP-PLUS */
|
||||||
|
top: 150rpx;
|
||||||
|
height: calc(100vh - 75px);
|
||||||
|
/* #endif */
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
top: 120rpx;
|
||||||
|
height: calc(100vh);
|
||||||
|
/* #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 {
|
||||||
|
/* #ifdef APP-PLUS */
|
||||||
|
height: calc(100vh - 120px);
|
||||||
|
/* #endif */
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
height: calc(100vh - 110px);
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
|
.white-bg {
|
||||||
|
padding-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
<template>
|
||||||
|
<view class="con-body">
|
||||||
|
<view class="con-bg">
|
||||||
|
<!-- 头部 -->
|
||||||
|
<customHeader ref="customHeaderRef" :title="'回款计划查看'" :leftFlag="true" :rightFlag="true">
|
||||||
|
<template #right>
|
||||||
|
<!-- <view class="head-right" @click="submitForm">
|
||||||
|
<uni-icons custom-prefix="iconfont" type="icon-phonebaocun" size="22"
|
||||||
|
color="#B7D2FF"></uni-icons>保存
|
||||||
|
</view> -->
|
||||||
|
</template>
|
||||||
|
</customHeader>
|
||||||
|
|
||||||
|
<!-- 高度来避免头部遮挡 -->
|
||||||
|
<view class="top-height"></view>
|
||||||
|
|
||||||
|
<!-- 正文内容 -->
|
||||||
|
<view class="white-bg">
|
||||||
|
<view class="form-con">
|
||||||
|
<uni-forms ref="formRef" :model="formData" :rules="rules" label-width="100px">
|
||||||
|
<uni-forms-item label="全员统计查看" name="cusName" class="f-c-right" >
|
||||||
|
<view @click="DiligenceStatistics" class="form-item-container">
|
||||||
|
<text class="name">{{'点击跳转'}}</text>
|
||||||
|
</view>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item label="个人详细查看" name="cusName" class="f-c-right">
|
||||||
|
<view @click="MarketActivity" class="form-item-container">
|
||||||
|
<text class="name">{{'点击跳转'}}</text>
|
||||||
|
</view>
|
||||||
|
</uni-forms-item>
|
||||||
|
</uni-forms>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
onMounted,
|
||||||
|
reactive,
|
||||||
|
onUnmounted,
|
||||||
|
computed
|
||||||
|
} from 'vue'
|
||||||
|
import customHeader from '@/components/customHeader.vue'
|
||||||
|
import { onLoad } from '@dcloudio/uni-app'
|
||||||
|
import { useMessage } from '@/utils/message.js'
|
||||||
|
import cache from '@/utils/cache.js'
|
||||||
|
|
||||||
|
|
||||||
|
// 选择客户页面跳转
|
||||||
|
function DiligenceStatistics() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 选择客户页面跳转
|
||||||
|
function MarketActivity() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/business/CRM/paymentCollection/personalPaymentCollectionTable'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.white-bg {
|
||||||
|
width: 750rpx;
|
||||||
|
padding: 30rpx 0 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
border-radius: 8px 8px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-con {
|
||||||
|
/* #ifdef APP-PLUS */
|
||||||
|
height: calc(120vh - 100px)
|
||||||
|
/* #endif */
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
height:calc(120vh - 80px)
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x) {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x .icon-calendar) {
|
||||||
|
float: right;
|
||||||
|
margin-top: 15rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
background: url('../../../static/images/business/icon-date.png') no-repeat;
|
||||||
|
background-size: 32rpx 35rpx;
|
||||||
|
width: 32rpx;
|
||||||
|
height: 35rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x .icon-calendar::before) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x .uni-date__x-input) {
|
||||||
|
padding-left: 20rpx;
|
||||||
|
color: #919191;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
213
src/pages/business/CRM/paymentCollection/paymentDetail.vue
Normal file
213
src/pages/business/CRM/paymentCollection/paymentDetail.vue
Normal file
@@ -0,0 +1,213 @@
|
|||||||
|
<template>
|
||||||
|
<view class="con-body">
|
||||||
|
<view class="con-bg">
|
||||||
|
<!-- 头部 -->
|
||||||
|
<customHeader ref="customHeaderRef" :title="'回款任务单修改'" :leftFlag="true" :rightFlag="true">
|
||||||
|
<template #right>
|
||||||
|
<view class="head-right" @click="submitForm">
|
||||||
|
<uni-icons custom-prefix="iconfont" type="icon-phonebaocun" size="22"
|
||||||
|
color="#B7D2FF"></uni-icons>保存
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
</customHeader>
|
||||||
|
|
||||||
|
<!-- 高度来避免头部遮挡 -->
|
||||||
|
<view class="top-height"></view>
|
||||||
|
|
||||||
|
<!-- 正文内容 -->
|
||||||
|
<view class="white-bg">
|
||||||
|
<view class="form-con">
|
||||||
|
<uni-forms ref="formRef" :model="formData" :rules="rules" label-width="100px">
|
||||||
|
<uni-forms-item label="客户名称" name="cusName" class="f-c-right">
|
||||||
|
<view @click="chooseCustomer" class="form-item-container">
|
||||||
|
<text class="name">{{ formData.cusName || '点击选择客户' }}</text>
|
||||||
|
</view>
|
||||||
|
</uni-forms-item>
|
||||||
|
<uni-forms-item label="计划回款金额" name="targetAmount" required
|
||||||
|
class="uni-forms-item is-direction-top is-top">
|
||||||
|
<uni-easyinput type="textarea" autoHeight v-model="formData.targetAmount"
|
||||||
|
placeholder="请输入计划回款金额" class="form-texarea" />
|
||||||
|
</uni-forms-item>
|
||||||
|
</uni-forms>
|
||||||
|
<view class="footer-con">
|
||||||
|
<button class="btn-default" type="default" @click="handleDelete" size="mini">删 除</button>
|
||||||
|
<button class="btn-primary" type="primary" @click="submitForm" size="mini">保存/修改</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
onMounted,
|
||||||
|
reactive,
|
||||||
|
onUnmounted,
|
||||||
|
computed
|
||||||
|
} from 'vue'
|
||||||
|
import customHeader from '@/components/customHeader.vue'
|
||||||
|
import {
|
||||||
|
getGuestList
|
||||||
|
} from '@/api/business.js'
|
||||||
|
import {
|
||||||
|
isEmpty
|
||||||
|
} from '@/utils/validate.js'
|
||||||
|
import {
|
||||||
|
updatePaymentDetail,deletePaymentDetail
|
||||||
|
} from '@/api/crm/api_ys.js'
|
||||||
|
import { onLoad } from '@dcloudio/uni-app'
|
||||||
|
import { useMessage } from '@/utils/message.js'
|
||||||
|
import cache from '@/utils/cache.js'
|
||||||
|
let customerUser = reactive({})
|
||||||
|
// 客户相关
|
||||||
|
const guestList = ref([])
|
||||||
|
const guestArr = ref([])
|
||||||
|
const guestIndex = ref(0)
|
||||||
|
|
||||||
|
// 表单数据
|
||||||
|
const formData = ref({
|
||||||
|
cusId: null,
|
||||||
|
promiseCode: null,
|
||||||
|
cusName:null,
|
||||||
|
targetAmount:null,
|
||||||
|
collectionId:null
|
||||||
|
})
|
||||||
|
|
||||||
|
// 表单验证规则
|
||||||
|
const rules = {
|
||||||
|
cusName: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请选择客户'
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
targetAmount: {
|
||||||
|
rules: [{
|
||||||
|
required: true,
|
||||||
|
errorMessage: '请输入回款计划金额'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
format: 'number',
|
||||||
|
errorMessage: '必须输入数字(可包含小数点)'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const imgList = ref([])
|
||||||
|
|
||||||
|
// picker 相关
|
||||||
|
const index = ref(0)
|
||||||
|
// 表单引用 & 客户选择器引用
|
||||||
|
const formRef = ref(null)
|
||||||
|
const customHeaderRef = ref(null)
|
||||||
|
// 选择客户页面跳转
|
||||||
|
function chooseCustomer() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/business/CRM/chooseCus'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//定义数据接收的值
|
||||||
|
let selectedCustomer = reactive(null)
|
||||||
|
|
||||||
|
//监听时间
|
||||||
|
onMounted(() => {
|
||||||
|
uni.$on('onCustomerSelected', handleCustomerSelected)
|
||||||
|
})
|
||||||
|
//取消监听
|
||||||
|
onUnmounted(() => {
|
||||||
|
uni.$off('onCustomerSelected', handleCustomerSelected)
|
||||||
|
})
|
||||||
|
|
||||||
|
//处理 接收数据
|
||||||
|
const handleCustomerSelected = (data) => {
|
||||||
|
formData.value.cusName = data.cusName
|
||||||
|
formData.value.cusId = data.cusId
|
||||||
|
}
|
||||||
|
// 提交表单
|
||||||
|
const submitForm = async () => {
|
||||||
|
try {
|
||||||
|
// 表单校验
|
||||||
|
await formRef.value.validate()
|
||||||
|
const res = await updatePaymentDetail(formData.value);
|
||||||
|
console.log(res)
|
||||||
|
uni.showToast({
|
||||||
|
title: '提交成功',
|
||||||
|
icon: 'success'
|
||||||
|
})
|
||||||
|
uni.$emit('refreshMarketOpportunityList')
|
||||||
|
uni.navigateBack(1)
|
||||||
|
} catch (err) {
|
||||||
|
console.log('表单验证失败:', err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//定义查询参数
|
||||||
|
const queryParams = ref({
|
||||||
|
informationId: 0
|
||||||
|
})
|
||||||
|
onLoad(options => {
|
||||||
|
formData.value.cusName = options.cusName
|
||||||
|
formData.value.cusId = options.cusId
|
||||||
|
formData.value.collectionId = options.collectionId
|
||||||
|
formData.value.targetAmount = options.targetAmount;
|
||||||
|
})
|
||||||
|
|
||||||
|
// 根据ID删除表单
|
||||||
|
const handleDelete = async () => {
|
||||||
|
try {
|
||||||
|
|
||||||
|
const res = await deletePaymentDetail(formData.value);
|
||||||
|
uni.showToast({
|
||||||
|
title: '删除成功',
|
||||||
|
icon: 'success'
|
||||||
|
})
|
||||||
|
uni.$emit('refreshMarketOpportunityList')
|
||||||
|
uni.navigateBack(1)
|
||||||
|
} catch (err) {
|
||||||
|
console.log('表单验证失败:', err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.white-bg {
|
||||||
|
width: 750rpx;
|
||||||
|
padding: 30rpx 0 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
border-radius: 8px 8px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-con {
|
||||||
|
/* #ifdef APP-PLUS */
|
||||||
|
height: calc(120vh - 100px)
|
||||||
|
/* #endif */
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
height:calc(120vh - 80px)
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x) {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x .icon-calendar) {
|
||||||
|
float: right;
|
||||||
|
margin-top: 15rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
background: url('../../../static/images/business/icon-date.png') no-repeat;
|
||||||
|
background-size: 32rpx 35rpx;
|
||||||
|
width: 32rpx;
|
||||||
|
height: 35rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x .icon-calendar::before) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.uni-date-x .uni-date__x-input) {
|
||||||
|
padding-left: 20rpx;
|
||||||
|
color: #919191;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,294 @@
|
|||||||
|
<template>
|
||||||
|
<view class="con-body">
|
||||||
|
<view class="con-bg">
|
||||||
|
<!-- 头部 -->
|
||||||
|
<customHeader ref="customHeaderRef" :title="'个人详情查看统计表'" :leftFlag="true" :rightFlag="false"></customHeader>
|
||||||
|
|
||||||
|
<!-- 高度来避免头部遮挡 -->
|
||||||
|
<view class="top-height"></view>
|
||||||
|
|
||||||
|
<!-- 正文内容 -->
|
||||||
|
<view>
|
||||||
|
<!-- 搜索 -->
|
||||||
|
<view class="search">
|
||||||
|
<picker :value="index1" @change="handlePlace1" :range="monthArray" :range-key="'name'"
|
||||||
|
class="picker-bg">
|
||||||
|
<view class="picker">
|
||||||
|
<uni-icons custom-prefix="iconfont" color="#ffffff" type="icon-phoneshizhong"
|
||||||
|
size="18"></uni-icons>
|
||||||
|
<view>{{ monthArray[index1]?.name || '选择月份' }}</view>
|
||||||
|
<uni-icons type="down" size="18"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</picker>
|
||||||
|
<!-- <picker @change="handlePlace" :value="index2" :range="palceArray" class="picker-bg"
|
||||||
|
:range-key="'name'">
|
||||||
|
<view class="picker">
|
||||||
|
<uni-icons type="person" size="18"></uni-icons>
|
||||||
|
<view>{{palceArray[index2]?.name || '选择区域' }}</view>
|
||||||
|
<uni-icons type="down" size="18"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</picker> -->
|
||||||
|
<view class="picker-bg">
|
||||||
|
<view class="picker">
|
||||||
|
<uni-icons type="person" size="18" color="#ffffff"></uni-icons>
|
||||||
|
<input
|
||||||
|
class="search-input"
|
||||||
|
v-model="formData.bandResult"
|
||||||
|
placeholder="输入业务员"
|
||||||
|
placeholder-style="color:#ffffff;font-size:28rpx"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<button type="default" @click="handleSearch" size="mini" class="btn-search">查询</button>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 回款信息查询 -->
|
||||||
|
<view class="white-bg">
|
||||||
|
<view class="table-title">回款信息查询</view>
|
||||||
|
<view v-if="loading" class="loading-container">
|
||||||
|
<uni-load-more status="loading" contentText="加载中..."></uni-load-more>
|
||||||
|
</view>
|
||||||
|
<!-- 添加空数据提示 -->
|
||||||
|
<view v-else-if="tableData.length === 0" class="empty-tip">
|
||||||
|
暂无数据
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
<table v-else class="my-table">
|
||||||
|
<tr>
|
||||||
|
<th class="tab-width100">业务员姓名</th>
|
||||||
|
<th class="tab-width160">客户名称</th>
|
||||||
|
<th>目标回款</th>
|
||||||
|
<th>实际回款</th>
|
||||||
|
<th>完成度</th>
|
||||||
|
</tr>
|
||||||
|
<tr v-for="(item, index) in tableData" :key="index">
|
||||||
|
<td>{{ item.userName }}</td>
|
||||||
|
<td class="txtLeft">{{ item.cusName }}</td>
|
||||||
|
<td>{{ item.targetAmount }}</td>
|
||||||
|
<td>{{ item.backNum }}</td>
|
||||||
|
<td>{{ item.jisuan }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
onMounted
|
||||||
|
} from 'vue'
|
||||||
|
import customHeader from '@/components/customHeader.vue'
|
||||||
|
import {
|
||||||
|
getDate
|
||||||
|
} from '@/utils/datetime.js'
|
||||||
|
import {
|
||||||
|
getPersonalPaymentCollectionTable
|
||||||
|
} from '@/api/crm/api_ys.js'
|
||||||
|
const loading = ref(false) // 加载状态
|
||||||
|
const index1 = ref(0)
|
||||||
|
const index2 = ref(0)
|
||||||
|
let peopleIndex = ref(0);
|
||||||
|
// 选择列表
|
||||||
|
let bindPickerChange = (e) => {
|
||||||
|
console.log('picker发送选择改变,携带值为', e.detail.value)
|
||||||
|
peopleIndex.value = e.detail.value
|
||||||
|
}
|
||||||
|
|
||||||
|
let searchValue = ref(null)
|
||||||
|
// 查询搜索跳转
|
||||||
|
let handleSearch = () => {
|
||||||
|
getCrmMarketInformationList();
|
||||||
|
}
|
||||||
|
// 表单数据
|
||||||
|
const formData = ref({
|
||||||
|
month: "1",
|
||||||
|
bandResult: '',
|
||||||
|
})
|
||||||
|
const tableData = ref([])
|
||||||
|
const palceArray = ref([{
|
||||||
|
id: 1,
|
||||||
|
name: '北京大区'
|
||||||
|
}, {
|
||||||
|
id: 2,
|
||||||
|
name: '市场三部'
|
||||||
|
}, {
|
||||||
|
id: 3,
|
||||||
|
name: '市场二部'
|
||||||
|
}, {
|
||||||
|
id: 4,
|
||||||
|
name: '南方大区'
|
||||||
|
}, {
|
||||||
|
id: 5,
|
||||||
|
name: '北方大区'
|
||||||
|
}, {
|
||||||
|
id: 6,
|
||||||
|
name: '西部大区'
|
||||||
|
}])
|
||||||
|
const monthArray = ref([
|
||||||
|
{ id: 1, name: '1月' },
|
||||||
|
{ id: 2, name: '2月' },
|
||||||
|
{ id: 3, name: '3月' },
|
||||||
|
{ id: 4, name: '4月' },
|
||||||
|
{ id: 5, name: '5月' },
|
||||||
|
{ id: 6, name: '6月' },
|
||||||
|
{ id: 7, name: '7月' },
|
||||||
|
{ id: 8, name: '8月' },
|
||||||
|
{ id: 9, name: '9月' },
|
||||||
|
{ id: 10, name: '10月' },
|
||||||
|
{ id: 11, name: '11月' },
|
||||||
|
{ id: 12, name: '12月' }
|
||||||
|
])
|
||||||
|
const handlePlace1 = (e) => {
|
||||||
|
index1.value = e.detail.value
|
||||||
|
console.log('index1:', monthArray.value[e.detail.value]?.name)
|
||||||
|
formData.value.month = monthArray.value[e.detail.value]?.id || ''
|
||||||
|
}
|
||||||
|
const handlePlace = (e) => {
|
||||||
|
index2.value = e.detail.value
|
||||||
|
console.log('index2:', palceArray.value[e.detail.value]?.name)
|
||||||
|
formData.value.region = palceArray.value[e.detail.value]?.name || ''
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取数据列表
|
||||||
|
const getCrmMarketInformationList = async () => {
|
||||||
|
loading.value = true
|
||||||
|
try {
|
||||||
|
const res = await getPersonalPaymentCollectionTable(formData.value);
|
||||||
|
// 直接赋值给响应式变量
|
||||||
|
tableData.value = res.rows || []
|
||||||
|
console.log('获取到的数据:', tableData.value)
|
||||||
|
} catch (error) {
|
||||||
|
console.error('获取数据失败:', error)
|
||||||
|
uni.showToast({
|
||||||
|
title: '获取数据失败',
|
||||||
|
icon: 'error'
|
||||||
|
})
|
||||||
|
} finally {
|
||||||
|
loading.value = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 获取数据列表(无参数)
|
||||||
|
const getPersonalPaymentCollectionTableNoPo = async () => {
|
||||||
|
loading.value = true
|
||||||
|
try {
|
||||||
|
const res = await getPersonalPaymentCollectionTable();
|
||||||
|
// 直接赋值给响应式变量
|
||||||
|
tableData.value = res.rows || []
|
||||||
|
console.log('获取到的数据:', tableData.value)
|
||||||
|
} catch (error) {
|
||||||
|
console.error('获取数据失败:', error)
|
||||||
|
uni.showToast({
|
||||||
|
title: '获取数据失败',
|
||||||
|
icon: 'error'
|
||||||
|
})
|
||||||
|
} finally {
|
||||||
|
loading.value = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onMounted(() => {
|
||||||
|
getPersonalPaymentCollectionTableNoPo()
|
||||||
|
})
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
/* 新增搜索输入框样式 */
|
||||||
|
.search-input {
|
||||||
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 28rpx;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
padding: 0 10rpx;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-input::placeholder {
|
||||||
|
color: rgba(255, 255, 255, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 保持原有样式 */
|
||||||
|
.search {
|
||||||
|
display: flex;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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 .picker-bg {
|
||||||
|
/* display: flex; */
|
||||||
|
background-color: #6FA2F8;
|
||||||
|
border-radius: 25px;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 28rpx;
|
||||||
|
padding: 0rpx 20rpx;
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
padding: 10rpx 20rpx 0 20rpx;
|
||||||
|
/* #endif */
|
||||||
|
margin-right: 20rpx;
|
||||||
|
/* 设置固定宽度确保布局一致 */
|
||||||
|
width: 102.72px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search .picker-bg .picker {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%; /* 确保picker占据全部宽度 */
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
padding-top: 2rpx;
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
|
.search .picker-bg .picker .uni-icons {
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search .picker-bg .picker .uni-icons:first-child {
|
||||||
|
margin-right: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search .picker-bg .picker .uniui-down {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.white-bg {
|
||||||
|
width: 750rpx;
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 8px 8px 0 0;
|
||||||
|
padding: 20rpx 0rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
/* #ifdef APP-PLUS */
|
||||||
|
height: calc(100vh - 135px);
|
||||||
|
/* #endif */
|
||||||
|
/* #ifndef APP-PLUS */
|
||||||
|
height: calc(100vh - 112px);
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-title {
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
border-bottom: 2px solid #E7E7E7;
|
||||||
|
padding-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
155
src/utils/area.js
Normal file
155
src/utils/area.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user