Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baifang-java
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
单欣鑫
baifang-java
Commits
f0fb9e2c
You need to sign in or sign up before continuing.
Commit
f0fb9e2c
authored
Jun 14, 2025
by
法拉51246
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1d3a503e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
30 deletions
+49
-30
InfoPageReqVO.java
.../module/visit/controller/admin/info/vo/InfoPageReqVO.java
+3
-0
InfoMapper.java
...iocoder/yudao/module/visit/dal/mysql/info/InfoMapper.java
+1
-0
InfoServiceImpl.java
...oder/yudao/module/visit/service/info/InfoServiceImpl.java
+21
-18
index.vue
yudao-ui/yudao-ui-admin-vue3/src/views/system/role/index.vue
+10
-10
index.vue
yudao-ui/yudao-ui-admin-vue3/src/views/visit/info/index.vue
+13
-1
PrintContent.vue
...yudao-ui-admin-vue3/src/views/visit/util/PrintContent.vue
+1
-1
No files found.
yudao-module-visit/src/main/java/cn/iocoder/yudao/module/visit/controller/admin/info/vo/InfoPageReqVO.java
View file @
f0fb9e2c
...
@@ -53,4 +53,7 @@ public class InfoPageReqVO extends PageParam {
...
@@ -53,4 +53,7 @@ public class InfoPageReqVO extends PageParam {
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
private
LocalDateTime
[]
createTime
;
private
LocalDateTime
[]
createTime
;
@Schema
(
description
=
"业务经理"
)
private
String
creator
;
}
}
\ No newline at end of file
yudao-module-visit/src/main/java/cn/iocoder/yudao/module/visit/dal/mysql/info/InfoMapper.java
View file @
f0fb9e2c
...
@@ -31,6 +31,7 @@ public interface InfoMapper extends BaseMapperX<InfoDO> {
...
@@ -31,6 +31,7 @@ public interface InfoMapper extends BaseMapperX<InfoDO> {
.
eqIfPresent
(
InfoDO:
:
getVisitType
,
reqVO
.
getVisitType
())
.
eqIfPresent
(
InfoDO:
:
getVisitType
,
reqVO
.
getVisitType
())
.
eqIfPresent
(
InfoDO:
:
getCompanyId
,
companyId
)
.
eqIfPresent
(
InfoDO:
:
getCompanyId
,
companyId
)
.
betweenIfPresent
(
InfoDO:
:
getCreateTime
,
reqVO
.
getCreateTime
())
.
betweenIfPresent
(
InfoDO:
:
getCreateTime
,
reqVO
.
getCreateTime
())
.
eqIfPresent
(
InfoDO:
:
getCreator
,
reqVO
.
getCreator
())
.
orderByDesc
(
InfoDO:
:
getVisitDate
));
.
orderByDesc
(
InfoDO:
:
getVisitDate
));
}
}
default
PageResult
<
InfoDO
>
selectHomePage
(
InfoPageReqVO
reqVO
)
{
default
PageResult
<
InfoDO
>
selectHomePage
(
InfoPageReqVO
reqVO
)
{
...
...
yudao-module-visit/src/main/java/cn/iocoder/yudao/module/visit/service/info/InfoServiceImpl.java
View file @
f0fb9e2c
...
@@ -284,7 +284,6 @@ public class InfoServiceImpl implements InfoService {
...
@@ -284,7 +284,6 @@ public class InfoServiceImpl implements InfoService {
//现根据客户名称获取历史拜访记录
//现根据客户名称获取历史拜访记录
List
<
InfoDO
>
info
=
infoMapper
.
selectByCompanyName
(
companyName
);
List
<
InfoDO
>
info
=
infoMapper
.
selectByCompanyName
(
companyName
);
if
(
info
!=
null
&&
!
info
.
isEmpty
()){
if
(
info
!=
null
&&
!
info
.
isEmpty
()){
Long
companyId
=
info
.
get
(
0
).
getCompanyId
();
//取最近四次
//取最近四次
info
=
info
.
stream
()
info
=
info
.
stream
()
// 筛选本月记录(基于 LocalDateTime)
// 筛选本月记录(基于 LocalDateTime)
...
@@ -313,13 +312,15 @@ public class InfoServiceImpl implements InfoService {
...
@@ -313,13 +312,15 @@ public class InfoServiceImpl implements InfoService {
visitDateList
.
add
(
infoDO
.
getVisitDate
().
toLocalDate
());
visitDateList
.
add
(
infoDO
.
getVisitDate
().
toLocalDate
());
});
});
//下面获取客户信息
//下面获取客户信息
CustomerInfoDO
customerInfoDO
=
customerInfoMapper
.
selectByCompanyName
(
companyName
,
companyId
);
//这个companyId是从根据companyId获取得数据List中获取得,一定和点得这条匹配
// CustomerInfoDO customerInfoDO = customerInfoMapper.selectByCompanyName(companyName,companyId);//这个companyId是从根据companyId获取得数据List中获取得,一定和点得这条匹配
infoPrintVO
.
setVisitProductNames
(
customerInfoDO
.
getProductNames
());
//本次拜访品种
//根据第一条数据去展示
infoPrintVO
.
setCompanyName
(
customerInfoDO
.
getCompanyName
());
//公司名称
InfoDO
infoDO1
=
info
.
get
(
0
);
infoPrintVO
.
setSalesman
(
customerInfoDO
.
getCreator
());
//拜访记录的创建者就是该记录的业务员
infoPrintVO
.
setVisitProductNames
(
infoDO1
.
getVisitProductNames
());
//本次拜访品种
infoPrintVO
.
setLocationImage
(
customerInfoDO
.
getLocationImage
());
//公司定位图
infoPrintVO
.
setCompanyName
(
infoDO1
.
getCompanyName
());
//公司名称
infoPrintVO
.
setContact
(
customerInfoDO
.
getContact
());
infoPrintVO
.
setSalesman
(
infoDO1
.
getCreator
());
//拜访记录的创建者就是该记录的业务员
infoPrintVO
.
setDepartment
(
customerInfoDO
.
getDepartment
());
infoPrintVO
.
setLocationImage
(
infoDO1
.
getLocationImage
());
//公司定位图
infoPrintVO
.
setContact
(
infoDO1
.
getContact
());
infoPrintVO
.
setDepartment
(
infoDO1
.
getDepartment
());
//添加多次的信息
//添加多次的信息
infoPrintVO
.
setServiceContent
(
serviceContent
);
infoPrintVO
.
setServiceContent
(
serviceContent
);
infoPrintVO
.
setVisitDate
(
visitDateList
);
infoPrintVO
.
setVisitDate
(
visitDateList
);
...
@@ -361,8 +362,8 @@ public class InfoServiceImpl implements InfoService {
...
@@ -361,8 +362,8 @@ public class InfoServiceImpl implements InfoService {
//拜访时间记录
//拜访时间记录
List
<
LocalDate
>
visitDateList
=
new
ArrayList
<>();
List
<
LocalDate
>
visitDateList
=
new
ArrayList
<>();
//以第一个公司名称作为合并打印的公司
//以第一个公司名称作为合并打印的公司
String
companyName
=
info
.
get
(
0
).
getCompanyName
();
//
String companyName = info.get(0).getCompanyName();
Long
companyId
=
info
.
get
(
0
).
getCompanyId
();
//
Long companyId = info.get(0).getCompanyId();
//取最多4张服务图片
//取最多4张服务图片
int
maxImages
=
4
;
int
maxImages
=
4
;
for
(
InfoDO
infoDO
:
info
)
{
for
(
InfoDO
infoDO
:
info
)
{
...
@@ -384,14 +385,16 @@ public class InfoServiceImpl implements InfoService {
...
@@ -384,14 +385,16 @@ public class InfoServiceImpl implements InfoService {
});
});
//下面获取客户信息
//下面获取客户信息
InfoPrintVO
infoPrintVO
=
new
InfoPrintVO
();
InfoPrintVO
infoPrintVO
=
new
InfoPrintVO
();
CustomerInfoDO
customerInfoDO
=
customerInfoMapper
.
selectByCompanyName
(
companyName
,
companyId
);
// CustomerInfoDO customerInfoDO = customerInfoMapper.selectByCompanyName(companyName,companyId);
if
(
customerInfoDO
!=
null
){
InfoDO
infoDO
=
info
.
get
(
0
);
infoPrintVO
.
setVisitProductNames
(
customerInfoDO
.
getProductNames
());
//本次拜访品种
infoPrintVO
.
setCompanyName
(
customerInfoDO
.
getCompanyName
());
//公司名称
if
(
infoDO
!=
null
){
infoPrintVO
.
setSalesman
(
customerInfoDO
.
getCreator
());
//拜访记录的创建者就是该记录的业务员
infoPrintVO
.
setVisitProductNames
(
infoDO
.
getVisitProductNames
());
//本次拜访品种
infoPrintVO
.
setLocationImage
(
customerInfoDO
.
getLocationImage
());
//公司定位图
infoPrintVO
.
setCompanyName
(
infoDO
.
getCompanyName
());
//公司名称
infoPrintVO
.
setContact
(
customerInfoDO
.
getContact
());
infoPrintVO
.
setSalesman
(
infoDO
.
getCreator
());
//拜访记录的创建者就是该记录的业务员
infoPrintVO
.
setDepartment
(
customerInfoDO
.
getDepartment
());
infoPrintVO
.
setLocationImage
(
infoDO
.
getLocationImage
());
//公司定位图
infoPrintVO
.
setContact
(
infoDO
.
getContact
());
infoPrintVO
.
setDepartment
(
infoDO
.
getDepartment
());
}
}
//添加多次的信息
//添加多次的信息
infoPrintVO
.
setServiceContent
(
serviceContent
);
infoPrintVO
.
setServiceContent
(
serviceContent
);
...
...
yudao-ui/yudao-ui-admin-vue3/src/views/system/role/index.vue
View file @
f0fb9e2c
...
@@ -125,16 +125,16 @@
...
@@ -125,16 +125,16 @@
>
>
菜单权限
菜单权限
</el-button>
</el-button>
<el-button
<!--
<el-button-->
v-hasPermi=
"['system:permission:assign-role-data-scope']"
<!-- v-hasPermi="['system:permission:assign-role-data-scope']"-->
link
<!-- link-->
preIcon=
"ep:coin"
<!-- preIcon="ep:coin"-->
title=
"数据权限"
<!-- title="数据权限"-->
type=
"primary"
<!-- type="primary"-->
@
click=
"openDataPermissionForm(scope.row)"
<!-- @click="openDataPermissionForm(scope.row)"-->
>
<!-- >--
>
数据权限
<!-- 数据权限-->
</el-button
>
<!--
</el-button>
--
>
<el-button
<el-button
v-hasPermi=
"['system:role:delete']"
v-hasPermi=
"['system:role:delete']"
link
link
...
...
yudao-ui/yudao-ui-admin-vue3/src/views/visit/info/index.vue
View file @
f0fb9e2c
...
@@ -95,6 +95,16 @@
...
@@ -95,6 +95,16 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"业务经理"
prop=
"creator"
>
<el-input
v-model=
"queryParams.creator"
placeholder=
"请输入业务经理"
clearable
@
keyup.enter=
"handleQuery"
class=
"!w-240px"
/>
</el-form-item>
<!--
<el-form-item
label=
"创建时间"
prop=
"createTime"
>
-->
<!--
<el-form-item
label=
"创建时间"
prop=
"createTime"
>
-->
<!--
<el-date-picker-->
<!--
<el-date-picker-->
<!-- v-model="queryParams.createTime"-->
<!-- v-model="queryParams.createTime"-->
...
@@ -201,6 +211,7 @@
...
@@ -201,6 +211,7 @@
<dict-tag
:type=
"DICT_TYPE.VISIT_TYPE"
:value=
"scope.row.visitType"
/>
<dict-tag
:type=
"DICT_TYPE.VISIT_TYPE"
:value=
"scope.row.visitType"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"业务经理"
align=
"center"
prop=
"creator"
/>
<!-- <el-table-column-->
<!-- <el-table-column-->
<!-- label="创建时间"-->
<!-- label="创建时间"-->
<!-- align="center"-->
<!-- align="center"-->
...
@@ -258,7 +269,7 @@
...
@@ -258,7 +269,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'
@/utils/dict
'
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'
@/utils/dict
'
import
{
dateFormatter
,
dateFormatter
2
}
from
'
@/utils/formatTime
'
import
{
dateFormatter2
}
from
'
@/utils/formatTime
'
import
download
from
'
@/utils/download
'
import
download
from
'
@/utils/download
'
import
{
InfoApi
,
InfoVO
}
from
'
@/api/visit/info
'
import
{
InfoApi
,
InfoVO
}
from
'
@/api/visit/info
'
import
InfoForm
from
'
./InfoForm.vue
'
import
InfoForm
from
'
./InfoForm.vue
'
...
@@ -327,6 +338,7 @@ const queryParams = reactive({
...
@@ -327,6 +338,7 @@ const queryParams = reactive({
visitMethod
:
undefined
,
visitMethod
:
undefined
,
visitType
:
undefined
,
visitType
:
undefined
,
createTime
:
[],
createTime
:
[],
creator
:
undefined
,
})
})
const
queryFormRef
=
ref
()
// 搜索的表单
const
queryFormRef
=
ref
()
// 搜索的表单
const
exportLoading
=
ref
(
false
)
// 导出的加载中
const
exportLoading
=
ref
(
false
)
// 导出的加载中
...
...
yudao-ui/yudao-ui-admin-vue3/src/views/visit/util/PrintContent.vue
View file @
f0fb9e2c
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
:src=
"url"
:src=
"url"
style=
"width: 100%;
style=
"width: 100%;
height: 25%;
height: 25%;
object-fit:
cover;
object-fit:
fill;/* cover是切一部分 */
border: 1px solid #ccc;"
border: 1px solid #ccc;"
/>
/>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment