From 050ee0fd8c5b9edd3887fe38e25752a50dcb99ef Mon Sep 17 00:00:00 2001 From: wangzhuo Date: Thu, 21 Aug 2025 13:02:20 +0800 Subject: [PATCH 1/4] =?UTF-8?q?pref:=20=E4=BC=98=E5=8C=96=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E6=9F=A5=E8=AF=A2=E5=8D=95=E9=80=89=E7=BB=84=E7=9A=84?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=20fix:=20=E8=B0=83=E6=95=B4=E5=91=A8?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=9F=A5=E7=9C=8B=E9=A1=B5=E9=9D=A2=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CRM/customer/changeCustomerOwner.vue | 9 ++++++--- .../business/CRM/customer/customerAdd.vue | 3 ++- .../business/CRM/customer/customerAudit.vue | 19 ++++++++----------- .../CRM/customer/customerUserBelong.vue | 4 ++-- .../business/CRM/customer/selectCustomer.vue | 17 +++++++---------- src/pages/business/CRM/plan/planView.vue | 7 +++++++ 6 files changed, 32 insertions(+), 27 deletions(-) diff --git a/src/pages/business/CRM/customer/changeCustomerOwner.vue b/src/pages/business/CRM/customer/changeCustomerOwner.vue index 1f5d820..16dedca 100644 --- a/src/pages/business/CRM/customer/changeCustomerOwner.vue +++ b/src/pages/business/CRM/customer/changeCustomerOwner.vue @@ -298,7 +298,7 @@ let handleCopyInfo=(item)=>{ } - \ No newline at end of file diff --git a/src/pages/business/CRM/customer/customerAdd.vue b/src/pages/business/CRM/customer/customerAdd.vue index f6f3a7a..4e07bde 100644 --- a/src/pages/business/CRM/customer/customerAdd.vue +++ b/src/pages/business/CRM/customer/customerAdd.vue @@ -179,7 +179,7 @@ @@ -435,6 +435,7 @@ let handleFunctionChange = (e) => { console.log(e.detail.value, '职能索引'); const {name} = functionalRequirementList[e.detail.value]; formData.value.functionalRequirements = name; + formData.value.function = name; getRecommendLevel(); } diff --git a/src/pages/business/CRM/customer/customerAudit.vue b/src/pages/business/CRM/customer/customerAudit.vue index 2fa806a..31f23eb 100644 --- a/src/pages/business/CRM/customer/customerAudit.vue +++ b/src/pages/business/CRM/customer/customerAudit.vue @@ -16,13 +16,13 @@ - + - - + + { // 防抖搜索 console.log(searchValue.value) if (timerId) clearTimeout(timerId); - uni.showLoading() timerId = setTimeout(async () => { - - cssFlag.value = true; - // let res = await getList(1, upOption.value.page.size) await downCallback(mescrollRef.value.mescroll); - - cssFlag.value = false; - uni.hideLoading(); clearTimeout(timerId); timerId = null; }, 500) @@ -138,6 +131,8 @@ const mescrollInit = (mescroll) => { // 下拉刷新 const downCallback = async (mescroll) => { try { + uni.showLoading(); + cssFlag.value = true; setTimeout(async () => { // 重置页码为第一页 const res = await getList(1, mescroll.size || upOption.page.size); @@ -145,6 +140,8 @@ const downCallback = async (mescroll) => { list.value = res.list; // 正确传递 total 参数 mescroll.endSuccess(res.list.length, res.total > (mescroll.size || upOption.page.size)); + uni.hideLoading(); + cssFlag.value = false; }, 500); } catch (error) { console.log(error) @@ -162,6 +159,7 @@ const upCallback = async (mescroll) => { } else { list.value.push(...res.list); } + mescroll.endBySize(res.list.length, res.total); // 正确判断是否还有更多数据 mescroll.endSuccess(res.list.length, res.total > mescroll.num * mescroll.size); }, 500); @@ -218,7 +216,6 @@ let handleDetail = (item) => { /* #endif */ } - .scroll-h { /* #ifdef APP-PLUS */ height: calc(100vh - 120px); diff --git a/src/pages/business/CRM/customer/customerUserBelong.vue b/src/pages/business/CRM/customer/customerUserBelong.vue index 179491b..c017c4f 100644 --- a/src/pages/business/CRM/customer/customerUserBelong.vue +++ b/src/pages/business/CRM/customer/customerUserBelong.vue @@ -32,8 +32,8 @@ - + {{ item.cusName }} {{ item.nodeCode }} diff --git a/src/pages/business/CRM/customer/selectCustomer.vue b/src/pages/business/CRM/customer/selectCustomer.vue index 88deb74..7126d19 100644 --- a/src/pages/business/CRM/customer/selectCustomer.vue +++ b/src/pages/business/CRM/customer/selectCustomer.vue @@ -33,10 +33,9 @@ + :class="index === selectIndex ? 'checked' : ''" + :checked="index === selectIndex" + :value="index+''"> @@ -118,7 +117,6 @@ let timerId = null; watch(searchValue, (newValue, oldValue) => { // console.log(`新值: ${newValue}, 旧值: ${oldValue}`); if(timerId) clearTimeout(timerId); - cssFlag.value = true; timerId = setTimeout(async ()=>{ handleSearch(); clearTimeout(timerId); @@ -130,7 +128,6 @@ watch(searchValue, (newValue, oldValue) => { const downCallback = async (mescroll) => { try { const res = await getList(1, upOption.value.page.size); - cssFlag.value = false; list.value = res.list; // 正确结束下拉刷新状态 mescroll.endSuccess(res.list.length, res.total >= upOption.value.page.size); @@ -163,9 +160,11 @@ const upCallback = async (mescroll) => { let handleSearch = async () => { // 触发下拉刷新以重新加载数据 if (mescrollRef.value) { + cssFlag.value = true; uni.showLoading() await downCallback(mescrollRef.value.mescroll); uni.hideLoading() + cssFlag.value = false; } } // 获取数据列表 @@ -181,12 +180,10 @@ const getList = async (pageIndex, pageSize) => { // 选中项的索引号 const selectIndex = ref(null); const radioChange = (e) => { - let {value} = e.detail; - let {index} = e.target.dataset; + let {value} = e.detail; // index // console.log(value); - // console.log(e.target.dataset); const eventChannel = instance.getOpenerEventChannel(); - eventChannel.emit('cuSelected', value); + eventChannel.emit('cuSelected', list.value[value]); uni.navigateBack() } diff --git a/src/pages/business/CRM/plan/planView.vue b/src/pages/business/CRM/plan/planView.vue index cfa8580..f265deb 100644 --- a/src/pages/business/CRM/plan/planView.vue +++ b/src/pages/business/CRM/plan/planView.vue @@ -366,6 +366,13 @@ let handleDetail = (rowIndex, colIndex) => { width: 690rpx; margin: 20rpx 0 0 0; border-radius: 8px 8px 0 0; + /* #ifdef APP-PLUS */ + min-height: calc(100vh - 160rpx/*.topbar height*/ - 68rpx/*.search height*/ - 40rpx/*.white-bg padding-top*/ - 40rpx/*.white-bg padding-bottom*/); + /* #endif */ + /* #ifndef APP-PLUS */ + min-height: calc(100vh - 116rpx/*.topbar height*/ - 68rpx/*.search height*/ - 40rpx/*.white-bg padding-top*/ - 40rpx/*.white-bg padding-bottom*/); + /* #endif */ + //overflow-y: auto; } .white-bg.white-bg-2 { From 1703e5987c842bc09eb16a6f30817d87f7580155 Mon Sep 17 00:00:00 2001 From: wangzhuo Date: Fri, 22 Aug 2025 09:13:31 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=99=BD=E8=89=B2=E8=83=8C=E6=99=AF=E9=AB=98=E5=BA=A6100vh?= =?UTF-8?q?=E4=B8=BA=E9=AB=98=E5=BA=A6=E6=9C=80=E5=B0=8F=E6=98=AF100vh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mainOwner/view/viewMainOwnerDetail.vue | 50 +------------------ 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/src/pages/business/CRM/mainOwner/view/viewMainOwnerDetail.vue b/src/pages/business/CRM/mainOwner/view/viewMainOwnerDetail.vue index 694a87f..9574355 100644 --- a/src/pages/business/CRM/mainOwner/view/viewMainOwnerDetail.vue +++ b/src/pages/business/CRM/mainOwner/view/viewMainOwnerDetail.vue @@ -135,55 +135,7 @@ function getCrmCusUserNewChangeOwnerList() { \ No newline at end of file diff --git a/src/pages.json b/src/pages.json index 07cd9ee..721d3be 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1,531 +1,536 @@ { - "easycom": { - "autoscan": true, - "custom": { - "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" - } - }, - "pages": [ - { - "path": "pages/loading/loading", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/login/login", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/home/home", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/business", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/visitorReport", - //市场信息管理 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/visitorReportAdd", - //走访报告添加 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/visitorReportDetail", - //走访报告详情 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/visitorReportEnter", - //走访报告内容录入 - "style": { - "navigationBarTitleText": "" - } - }, - //市场信息管理(已更新) - { - "path": "pages/business/CRM/marketInformation/marketInformation", - "style": { - "navigationBarTitleText": "市场信息管理" - } - }, - //市场机会录入(已更新) - { - "path": "pages/business/CRM/marketInformation/marketOpportunities", - "style": { - "navigationBarTitleText": "市场机会录入" - } - }, - //市场机会修改(已更新) - { - "path": "pages/business/CRM/marketInformation/marketOpportunitiesDetail", - "style": { - "navigationBarTitleText": "市场机会修改" - } - }, - //重大事项录入(已更新) - { - "path": "pages/business/CRM/marketInformation/majorMatter", - "style": { - "navigationBarTitleText": "重大事项录入" - } - }, - //重大事项更改(已更新) - { - "path": "pages/business/CRM/marketInformation/majorMatterDetail", - "style": { - "navigationBarTitleText": "重大事项更改" - } - }, - //竞争对手信息录入(已更新) - { - "path": "pages/business/CRM/marketInformation/competitor", - "style": { - "navigationBarTitleText": "竞争对手信息录入" - } - }, - //竞争对手信息更改(已更新) - { - "path": "pages/business/CRM/marketInformation/competitorDetail", - "style": { - "navigationBarTitleText": "竞争对手信息更改" - } - }, - //人员变化信息录入(已更新) - { - "path": "pages/business/CRM/marketInformation/personnelChanges", - "style": { - "navigationBarTitleText": "人员变化信息录入" - } - }, - //人员变化信息更改(已更新) - { - "path": "pages/business/CRM/marketInformation/personnelChangesDetail", - "style": { - "navigationBarTitleText": "人员变化信息更改" - } - }, - //重点型号任务信息录入(已更新) - { - "path": "pages/business/CRM/marketInformation/keyModelTasks", - "style": { - "navigationBarTitleText": "重点型号任务信息录入" - } - }, - //重点型号任务信息更新(已更新) - { - "path": "pages/business/CRM/marketInformation/keyModelTasksDetail", - "style": { - "navigationBarTitleText": "重点型号任务信息更新" - } - }, - //通用信息录入(已更新) - { - "path": "pages/business/CRM/marketInformation/beCurrent", - "style": { - "navigationBarTitleText": "通用信息录入" - } - }, - //通用信息更新(已更新) - { - "path": "pages/business/CRM/marketInformation/beCurrentDetail", - "style": { - "navigationBarTitleText": "通用信息更新" - } - }, - //选择客户(已更新) - { - "path": "pages/business/CRM/chooseCus", - "style": { - "navigationBarTitleText": "客户选择" - } - }, - //选择客户人员(已更新) - { - "path": "pages/business/CRM/customerUserList", - "style": { - "navigationBarTitleText": "客户人员选择" - } - }, - //市场信息查看(已更新) - { - "path": "pages/business/CRM/marketInformation/infomationView", - "style": { - "navigationBarTitleText": "市场信息查看" - } - }, - //市场信息详情(已更新) - { - "path": "pages/business/CRM/marketInformation/informationDetail", - "style": { - "navigationBarTitleText": "市场信息详情" - } - }, - //市场信息审核(已更新) - { - "path": "pages/business/CRM/marketInformation/marketInformationReview", - "style": { - "navigationBarTitleText": "市场信息审核" - } - }, - //市场信息审核详情(已更新) - { - "path": "pages/business/CRM/marketInformation/marketInformationReviewDetail", - "style": { - "navigationBarTitleText": "市场信息审核" - } - }, - //回款首页查看(已更新) - { - "path": "pages/business/CRM/paymentCollection/index", - "style": { - "navigationBarTitleText": "回款首页查看" - } - }, - //回款新增(已更新) - { - "path": "pages/business/CRM/paymentCollection/addPaymentCollection", - "style": { - "navigationBarTitleText": "回款新增" - } - }, - //回款更新(已更新) - { - "path": "pages/business/CRM/paymentCollection/paymentDetail", - "style": { - "navigationBarTitleText": "回款新增" - } - }, - //回款查看公用页面(已更新) - { - "path": "pages/business/CRM/paymentCollection/paymentCollectionCheck", - "style": { - "navigationBarTitleText": "回款查看" - } - }, - //回款查看全员统计查看(已更新) - { - "path": "pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable", - "style": { - "navigationBarTitleText": "全员统计查看" - } - }, - //回款查看个人详情查看(已更新) - { - "path": "pages/business/CRM/paymentCollection/personalPaymentCollectionTable", - "style": { - "navigationBarTitleText": "个人详情查看" - } - }, - { - "path": "pages/business/CRM/weekPlanUpdate", - //修改周计划 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/plan/index", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/plan/myPlan", - //我的计划列表 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/plan/planEdit", - //计划修改 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/plan/planView", - //周计划查看 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/customerAdd", - //客户人员新增 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/customerAudit", - //客户人员审核 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/customerUserBelong", - //客户人员归属 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/components/confirmForm", - //客户人员主归属人变更审核提交 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/changeCustomerOwner", - //客户人员主归属人变更 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/mainOwner/audit/mainOwnerChangeAudit", - //客户人员主归属人变更审核 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/mainOwner/audit/confirmForm", - //客户人员主归属人变更审核提交 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/components/customerUserEdit", - //客户人员详情编辑 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/customer/selectCustomer", - //选择客户 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/vistorCheckin", - //签到打卡 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/checkinStatistics", - //打卡统计 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/paymentCollection", - //回款查看 - "style": { - "navigationBarTitleText": "" - } - }, - //===================================活动报告==================== - { - "path": "pages/business/CRM/marketActivity/visitReport", - //市场信息管理 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/visitorReportAdd", - //走访报告添加 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/visitReportView", - //走访报告查看 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/visitReportDetail", - //走访报告查看具体明细 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/auditReport", - //走访报告审批列表查看 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/detailForApproval", - //走访报告明细审批 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/visitorReportEnter", - //走访报告内容录入 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/auditReject", - //走访报告驳回输入原因 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/customerUserList", - //客户公司人员信息 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/myUserList", - //我公司人员信息 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/activityTypeList", - //活动类型 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/marketActivity/chooseCus", - //选择客户单位 - "style": { - "navigationBarTitleText": "" - } - }, - //====================地图====== - { - "path": "pages/business/CRM/map/vistorCheckin", - //签到打卡 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/map/addRearkSignIn", - //签到备注 - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/map/checkInView", - //打卡信息(考勤查看) - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/business/CRM/map/checkinStatistics", - //打卡统计 - "style": { - "navigationBarTitleText": "" - } - }, - //===================================活动报告==================== - { - "path": "pages/notice/notice", - "style": { - "navigationBarTitleText": "", - "app-plus": { - "bounce": "none" - // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') - }, - "mp-alipay": { - "allowsBounceVertical": "NO" - } - // 取消支付宝和钉钉小程序的iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') - } - }, - { - "path": "pages/userinfo/userinfo", - "style": { - "navigationBarTitleText": "" - } - } - ], - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "718友晟", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8", - "navigationStyle": "custom" - }, - "tabBar": { - "color": "#919191", - "selectedColor": "#ffffff", - "borderStyle": "#ffffff", - "backgroundColor": "#000000", - "fontSize": "12px", - "iconWidth": "24px", - "list": [ - { - "pagePath": "pages/home/home", - "iconPath": "static/images/tabs/menu-home.png", - "selectedIconPath": "static/images/tabs/menu-home-on.png", - "text": "首页" - }, - { - "pagePath": "pages/business/business", - "iconPath": "static/images/tabs/menu-business.png", - "selectedIconPath": "static/images/tabs/menu-business-on.png", - "text": "业务中心" - }, - { - "pagePath": "pages/notice/notice", - "iconPath": "static/images/tabs/menu-info.png", - "selectedIconPath": "static/images/tabs/menu-info-on.png", - "text": "消息" - }, - { - "pagePath": "pages/userinfo/userinfo", - "iconPath": "static/images/tabs/menu-me.png", - "selectedIconPath": "static/images/tabs/menu-me-on.png", - "text": "我的" - } - ] - } -} + "easycom": { + "autoscan": true, + "custom": { + "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" + } + }, + "pages": [{ + "path": "pages/loading/loading", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/home/home", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/business", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/visitorReport", + //市场信息管理 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/visitorReportAdd", + //走访报告添加 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/visitorReportDetail", + //走访报告详情 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/visitorReportEnter", + //走访报告内容录入 + "style": { + "navigationBarTitleText": "" + } + }, + //市场信息管理(已更新) + { + "path": "pages/business/CRM/marketInformation/marketInformation", + "style": { + "navigationBarTitleText": "市场信息管理" + } + }, + //市场机会录入(已更新) + { + "path": "pages/business/CRM/marketInformation/marketOpportunities", + "style": { + "navigationBarTitleText": "市场机会录入" + } + }, + //市场机会修改(已更新) + { + "path": "pages/business/CRM/marketInformation/marketOpportunitiesDetail", + "style": { + "navigationBarTitleText": "市场机会修改" + } + }, + //重大事项录入(已更新) + { + "path": "pages/business/CRM/marketInformation/majorMatter", + "style": { + "navigationBarTitleText": "重大事项录入" + } + }, + //重大事项更改(已更新) + { + "path": "pages/business/CRM/marketInformation/majorMatterDetail", + "style": { + "navigationBarTitleText": "重大事项更改" + } + }, + //竞争对手信息录入(已更新) + { + "path": "pages/business/CRM/marketInformation/competitor", + "style": { + "navigationBarTitleText": "竞争对手信息录入" + } + }, + //竞争对手信息更改(已更新) + { + "path": "pages/business/CRM/marketInformation/competitorDetail", + "style": { + "navigationBarTitleText": "竞争对手信息更改" + } + }, + //人员变化信息录入(已更新) + { + "path": "pages/business/CRM/marketInformation/personnelChanges", + "style": { + "navigationBarTitleText": "人员变化信息录入" + } + }, + //人员变化信息更改(已更新) + { + "path": "pages/business/CRM/marketInformation/personnelChangesDetail", + "style": { + "navigationBarTitleText": "人员变化信息更改" + } + }, + //重点型号任务信息录入(已更新) + { + "path": "pages/business/CRM/marketInformation/keyModelTasks", + "style": { + "navigationBarTitleText": "重点型号任务信息录入" + } + }, + //重点型号任务信息更新(已更新) + { + "path": "pages/business/CRM/marketInformation/keyModelTasksDetail", + "style": { + "navigationBarTitleText": "重点型号任务信息更新" + } + }, + //通用信息录入(已更新) + { + "path": "pages/business/CRM/marketInformation/beCurrent", + "style": { + "navigationBarTitleText": "通用信息录入" + } + }, + //通用信息更新(已更新) + { + "path": "pages/business/CRM/marketInformation/beCurrentDetail", + "style": { + "navigationBarTitleText": "通用信息更新" + } + }, + //选择客户(已更新) + { + "path": "pages/business/CRM/chooseCus", + "style": { + "navigationBarTitleText": "客户选择" + } + }, + //选择客户人员(已更新) + { + "path": "pages/business/CRM/customerUserList", + "style": { + "navigationBarTitleText": "客户人员选择" + } + }, + //市场信息查看(已更新) + { + "path": "pages/business/CRM/marketInformation/infomationView", + "style": { + "navigationBarTitleText": "市场信息查看" + } + }, + //市场信息详情(已更新) + { + "path": "pages/business/CRM/marketInformation/informationDetail", + "style": { + "navigationBarTitleText": "市场信息详情" + } + }, + //市场信息审核(已更新) + { + "path": "pages/business/CRM/marketInformation/marketInformationReview", + "style": { + "navigationBarTitleText": "市场信息审核" + } + }, + //市场信息审核详情(已更新) + { + "path": "pages/business/CRM/marketInformation/marketInformationReviewDetail", + "style": { + "navigationBarTitleText": "市场信息审核" + } + }, + //回款首页查看(已更新) + { + "path": "pages/business/CRM/paymentCollection/index", + "style": { + "navigationBarTitleText": "回款首页查看" + } + }, + //回款新增(已更新) + { + "path": "pages/business/CRM/paymentCollection/addPaymentCollection", + "style": { + "navigationBarTitleText": "回款新增" + } + }, + //回款更新(已更新) + { + "path": "pages/business/CRM/paymentCollection/paymentDetail", + "style": { + "navigationBarTitleText": "回款新增" + } + }, + //回款查看公用页面(已更新) + { + "path": "pages/business/CRM/paymentCollection/paymentCollectionCheck", + "style": { + "navigationBarTitleText": "回款查看" + } + }, + //回款查看全员统计查看(已更新) + { + "path": "pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable", + "style": { + "navigationBarTitleText": "全员统计查看" + } + }, + //回款查看个人详情查看(已更新) + { + "path": "pages/business/CRM/paymentCollection/personalPaymentCollectionTable", + "style": { + "navigationBarTitleText": "个人详情查看" + } + }, + { + "path": "pages/business/CRM/weekPlanUpdate", + //修改周计划 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/plan/index", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/plan/myPlan", + //我的计划列表 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/plan/planEdit", + //计划修改 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/plan/planView", + //周计划查看 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/customerAdd", + //客户人员新增 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/customerAudit", + //客户人员审核 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/customerUserBelong", + //客户人员归属 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/components/confirmForm", + //客户人员主归属人变更审核提交 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/changeCustomerOwner", + //客户人员主归属人变更 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/mainOwner/audit/mainOwnerChangeAudit", + //客户人员主归属人变更审核 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/mainOwner/audit/confirmForm", + //客户人员主归属人变更审核提交 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/components/customerUserEdit", + //客户人员详情编辑 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/customer/selectCustomer", + //选择客户 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/vistorCheckin", + //签到打卡 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/checkinStatistics", + //打卡统计 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/paymentCollection", + //回款查看 + "style": { + "navigationBarTitleText": "" + } + }, + //===================================活动报告==================== + { + "path": "pages/business/CRM/mainOwner/view/viewMainOwner", //查看主归属人变更信息 + "style": { + "navigationBarTitleText": "" + } + }, + { + + "path": "pages/business/CRM/marketActivity/visitReport", + //市场信息管理 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/visitorReportAdd", + //走访报告添加 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/visitReportView", + //走访报告查看 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/visitReportDetail", + //走访报告查看具体明细 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/auditReport", + //走访报告审批列表查看 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/detailForApproval", + //走访报告明细审批 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/visitorReportEnter", + //走访报告内容录入 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/auditReject", + //走访报告驳回输入原因 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/customerUserList", + //客户公司人员信息 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/myUserList", + //我公司人员信息 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/activityTypeList", + //活动类型 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/marketActivity/chooseCus", + //选择客户单位 + "style": { + "navigationBarTitleText": "" + } + }, + //====================地图====== + { + "path": "pages/business/CRM/map/vistorCheckin", + //签到打卡 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/map/addRearkSignIn", + //签到备注 + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/map/checkInView", + //打卡信息(考勤查看) + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/business/CRM/map/checkinStatistics", + //打卡统计 + "style": { + "navigationBarTitleText": "" + } + }, + //===================================活动报告==================== + { + "path": "pages/notice/notice", + "style": { + "navigationBarTitleText": "", + "app-plus": { + "bounce": "none" + // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') + }, + "mp-alipay": { + "allowsBounceVertical": "NO" + } + // 取消支付宝和钉钉小程序的iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') + } + }, + { + "path": "pages/userinfo/userinfo", + "style": { + "navigationBarTitleText": "" + } + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "718友晟", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8", + "navigationStyle": "custom" + }, + "tabBar": { + "color": "#919191", + "selectedColor": "#ffffff", + "borderStyle": "#ffffff", + "backgroundColor": "#000000", + "fontSize": "12px", + "iconWidth": "24px", + "list": [{ + "pagePath": "pages/home/home", + "iconPath": "static/images/tabs/menu-home.png", + "selectedIconPath": "static/images/tabs/menu-home-on.png", + "text": "首页" + }, + { + "pagePath": "pages/business/business", + "iconPath": "static/images/tabs/menu-business.png", + "selectedIconPath": "static/images/tabs/menu-business-on.png", + "text": "业务中心" + }, + { + "pagePath": "pages/notice/notice", + "iconPath": "static/images/tabs/menu-info.png", + "selectedIconPath": "static/images/tabs/menu-info-on.png", + "text": "消息" + }, + { + "pagePath": "pages/userinfo/userinfo", + "iconPath": "static/images/tabs/menu-me.png", + "selectedIconPath": "static/images/tabs/menu-me-on.png", + "text": "我的" + } + ] + } +} \ No newline at end of file diff --git a/src/pages/business/CRM/marketInformation/infomationView.vue b/src/pages/business/CRM/marketInformation/infomationView.vue index 41d8790..7df89d7 100644 --- a/src/pages/business/CRM/marketInformation/infomationView.vue +++ b/src/pages/business/CRM/marketInformation/infomationView.vue @@ -2,59 +2,61 @@ - - + + - + - + + + + + + + + {{ notictTypeCheck.name?notictTypeCheck.name:'全部' }} + + + + + + + + - - - - - - - {{selCategory.val||'全部'}} - - - - - {{item.categoryName}} - - - - - - - {{'搜索'}} + + - - + 信息类型:{{ item.informationType }} - - + + - 公司名称:{{ item.cusName }} - {{item.myselfBrowsing==0?'未读':'已读'}} + 公司名称:{{ item.cusName }} + + {{item.myselfBrowsing==0?'未读':'已读'}} - + 报告人 @@ -70,7 +72,7 @@ - + @@ -82,6 +84,7 @@ watch } from 'vue' import customHeader from '@/components/customHeader.vue' + import customSearch from '@/components/customSearch.vue' import MescrollUni from 'mescroll-uni/mescroll-uni.vue'; import { getNavBarPaddingTop @@ -90,12 +93,13 @@ visitorReportList } from '@/api/business.js' import { - viewingMarketInfForAllMembers + viewingMarketInfForAllMembers } from '@/api/crm/api_ys.js'; import { onLoad, onShow, - onUnload + onUnload, + onHide } from '@dcloudio/uni-app' // 获取导航栏高度用于内容区域padding const navBarPaddingTop = ref(0); @@ -103,10 +107,45 @@ navBarPaddingTop.value = getNavBarPaddingTop() * 2; 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([]); - +// 新增状态变量存储搜索条件 +const selValue = ref(''); // 搜索类型名称 +const inputval = ref(''); // 搜索内容 let searchValue = ref(null) //监视查询的内容的变化 watch(searchValue, (newValue, oldValue) => { @@ -114,7 +153,6 @@ var data = { pageNum: 1, pageSize: 10, - searchContent: searchValue.value }; viewingMarketInfForAllMembers(data).then(res => { if (res.code == 200) { @@ -123,6 +161,10 @@ } }) }) + onHide(()=>{ + searchShow.value=false; + }) + const index = ref(0) const categories = ref([{ categoryId: 1, @@ -143,16 +185,39 @@ categoryId: 6, categoryName: '通用信息' }]) - const selCategory = ref ({ - id: 1, - val: '' + const selCategory = ref({ + id: 1, + 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 = () => { var data = { pageNum: 1, pageSize: 10, - searchContent: searchValue.value + }; viewingMarketInfForAllMembers(data).then(res => { if (res.code == 200) { @@ -218,7 +283,8 @@ const upCallback = async (mescroll) => { try { 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) { list.value = res.list; } else { @@ -236,7 +302,10 @@ return new Promise(async (resolve) => { let param = { pageNum, - pageSize + pageSize, + // 添加搜索条件参数 + selValue: selValue.value, + inputval: inputval.value } let res = await viewingMarketInfForAllMembers(param); resolve({ @@ -245,7 +314,6 @@ }); }); } - let Loop = ref(0) let now const visistId = ref(); @@ -255,25 +323,28 @@ function showDetail(item) { 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 }) - } - - onUnload(() => { - uni.$off('updateStatus') - }) - + } + + onUnload(() => { + uni.$off('updateStatus') + }) + const markVisited = (informationId) => { - const newList = [...list.value].map(item => { - if (item.informationId == informationId) { - return { ...item, myselfBrowsing: 1 }; - } - return item; - }); - list.value = newList; - + const newList = [...list.value].map(item => { + if (item.informationId == informationId) { + return { + ...item, + myselfBrowsing: 1 + }; + } + return item; + }); + list.value = newList; + }; - \ No newline at end of file diff --git a/src/pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable.vue b/src/pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable.vue new file mode 100644 index 0000000..2719ab9 --- /dev/null +++ b/src/pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable.vue @@ -0,0 +1,262 @@ + + + + + \ No newline at end of file diff --git a/src/pages/business/CRM/paymentCollection/index.vue b/src/pages/business/CRM/paymentCollection/index.vue new file mode 100644 index 0000000..f1490ba --- /dev/null +++ b/src/pages/business/CRM/paymentCollection/index.vue @@ -0,0 +1,254 @@ + + + + + diff --git a/src/pages/business/CRM/paymentCollection/paymentCollectionCheck.vue b/src/pages/business/CRM/paymentCollection/paymentCollectionCheck.vue new file mode 100644 index 0000000..c38266a --- /dev/null +++ b/src/pages/business/CRM/paymentCollection/paymentCollectionCheck.vue @@ -0,0 +1,106 @@ + + + + + \ No newline at end of file diff --git a/src/pages/business/CRM/paymentCollection/paymentDetail.vue b/src/pages/business/CRM/paymentCollection/paymentDetail.vue new file mode 100644 index 0000000..4b46007 --- /dev/null +++ b/src/pages/business/CRM/paymentCollection/paymentDetail.vue @@ -0,0 +1,213 @@ + + + + + \ No newline at end of file diff --git a/src/pages/business/CRM/paymentCollection/personalPaymentCollectionTable.vue b/src/pages/business/CRM/paymentCollection/personalPaymentCollectionTable.vue new file mode 100644 index 0000000..a52c7e5 --- /dev/null +++ b/src/pages/business/CRM/paymentCollection/personalPaymentCollectionTable.vue @@ -0,0 +1,294 @@ + + + + + \ No newline at end of file diff --git a/src/static/common.css b/src/static/common.css index c9c2e31..18154c7 100644 --- a/src/static/common.css +++ b/src/static/common.css @@ -87,6 +87,8 @@ page { /* 弹出提示框修改样式 begin */ +/* #ifdef H5 */ + .uni-modal { border-radius: 24rpx !important; width: 70% !important; @@ -136,7 +138,7 @@ page { background-color: #05A3F4 !important; color: #fff !important; } - +/* #endif */ /* 弹出提示框修改样式 end */ /* 搜索框修改样式 begin */ @@ -169,13 +171,51 @@ page { } .custom-search .uni-searchbar__box-icon-clear { - display: none !important; + /* display: none !important; */ + margin-right:10rpx; } -/* .custom-search .uni-searchbar__box-icon-clear .uniui-clear{ +.custom-search .uni-searchbar__box-icon-clear .uniui-clear{ color:#fff !important; font-size: 40rpx !important; -} */ +} + +/* 自定义搜索框 */ +.search-bg{ + background-color: #6FA2F8; + border-radius: 28rpx; + /* width:690rpx; */ + width:630rpx; + height:56rpx; + margin:0 auto 30rpx; + padding:0 30rpx; + display: flex; + color:#fff; + font-size:28rpx; + flex: auto; +} +.search-bg .search-left{ + border-right:1px solid #4687F2; + margin-top:10rpx; + margin-bottom:10rpx; + padding-right:30rpx; + /* width:10%; */ +} +.search-bg .search-right{ + margin-top:10rpx; + padding-left:30rpx; + /* width:60%; */ +} +.search-bg .search-right .uni-input{ + color:#fff; + font-size:28rpx; +} +.search-bg .search-right .uni-input .uni-input-input{ + width: 380rpx; +} +.search-bg .search-right .uni-input .search-color{ + color:#fff !important; +} /* 搜索框修改样式 end */ .head-right {