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
dea95891
Commit
dea95891
authored
Jul 01, 2025
by
赵乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
6b96845e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
54 deletions
+55
-54
.env.local
yudao-ui/yudao-ui-admin-vue3/.env.local
+2
-2
index.vue
yudao-ui/yudao-ui-admin-vue3/src/views/visit/info/index.vue
+53
-52
No files found.
yudao-ui/yudao-ui-admin-vue3/.env.local
View file @
dea95891
...
...
@@ -4,8 +4,8 @@ NODE_ENV=development
VITE_DEV=true
# 请求路径
# VITE_BASE_URL='http://192.168.0.133
:48080'
VITE_BASE_URL='https://hntqwl.com'
VITE_BASE_URL='http://192.168.0.182
:48080'
#
VITE_BASE_URL='https://hntqwl.com'
# VITE_BASE_URL='http://localhost:48080'
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
...
...
yudao-ui/yudao-ui-admin-vue3/src/views/visit/info/index.vue
View file @
dea95891
...
...
@@ -96,26 +96,26 @@
</el-select>
</el-form-item>
<el-form-item
label=
"业务经理"
prop=
"creator"
>
<el-input
v-model=
"queryParams.creator"
placeholder=
"请输入业务经理"
clearable
@
keyup.enter=
"handleQuery"
class=
"!w-240px"
/>
<el-input
v-model=
"queryParams.creator"
placeholder=
"请输入业务经理"
clearable
@
keyup.enter=
"handleQuery"
class=
"!w-240px"
/>
</el-form-item>
<!--
<el-form-item
label=
"创建时间"
prop=
"createTime"
>
-->
<!--
<el-date-picker-->
<!-- v-model="queryParams.createTime"-->
<!-- value-format="YYYY-MM-DD HH:mm:ss"-->
<!-- type="daterange"-->
<!-- start-placeholder="开始日期"-->
<!-- end-placeholder="结束日期"-->
<!-- :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"-->
<!-- class="!w-220px"-->
<!-- />-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"创建时间"
prop=
"createTime"
>
-->
<!--
<el-date-picker-->
<!-- v-model="queryParams.createTime"-->
<!-- value-format="YYYY-MM-DD HH:mm:ss"-->
<!-- type="daterange"-->
<!-- start-placeholder="开始日期"-->
<!-- end-placeholder="结束日期"-->
<!-- :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"-->
<!-- class="!w-220px"-->
<!-- />-->
<!--
</el-form-item>
-->
<el-form-item>
<el-button
@
click=
"handleQuery"
><Icon
icon=
"ep:search"
class=
"mr-5px"
/>
搜索
</el-button>
<el-button
@
click=
"resetQuery"
><Icon
icon=
"ep:refresh"
class=
"mr-5px"
/>
重置
</el-button>
...
...
@@ -177,11 +177,17 @@
<!-- 列表 -->
<ContentWrap>
<el-table
v-loading=
"loading"
:data=
"list"
:stripe=
"true"
:show-overflow-tooltip=
"true"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<!--
<el-table-column
label=
"主键ID"
align=
"center"
prop=
"id"
/>
-->
<el-table-column
label=
"拜访人姓名"
align=
"center"
prop=
"customerName"
width=
"100px"
/>
<el-table-column
label=
"联系方式"
align=
"center"
prop=
"contact"
width=
"120px"
/>
<el-table
v-loading=
"loading"
:data=
"list"
:stripe=
"true"
:show-overflow-tooltip=
"true"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<!--
<el-table-column
label=
"主键ID"
align=
"center"
prop=
"id"
/>
-->
<el-table-column
label=
"拜访人姓名"
align=
"center"
prop=
"customerName"
width=
"100px"
/>
<el-table-column
label=
"联系方式"
align=
"center"
prop=
"contact"
width=
"120px"
/>
<el-table-column
label=
"客户公司名称"
align=
"center"
prop=
"companyName"
width=
"240px"
/>
<el-table-column
label=
"所在地区"
align=
"center"
prop=
"regionFullName"
width=
"160px"
/>
<el-table-column
...
...
@@ -198,7 +204,7 @@
</el-table-column>
<el-table-column
label=
"拜访品种"
align=
"center"
prop=
"visitProductIds"
width=
"100px"
>
<
template
#default
="
scope
"
>
<ProductList
:ids=
scope.row.visitProductIds
/>
<ProductList
:ids=
"scope.row.visitProductIds"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"拜访方式"
align=
"center"
prop=
"visitMethod"
>
...
...
@@ -212,20 +218,16 @@
</
template
>
</el-table-column>
<el-table-column
label=
"业务经理"
align=
"center"
prop=
"creator"
/>
<!-- <el-table-column-->
<!-- label="创建时间"-->
<!-- align="center"-->
<!-- prop="createTime"-->
<!-- :formatter="dateFormatter2"-->
<!-- width="180px"-->
<!-- />-->
<!-- <el-table-column-->
<!-- label="创建时间"-->
<!-- align="center"-->
<!-- prop="createTime"-->
<!-- :formatter="dateFormatter2"-->
<!-- width="180px"-->
<!-- />-->
<el-table-column
label=
"操作"
align=
"center"
min-width=
"180px"
fixed=
"right"
>
<
template
#default
="
scope
"
>
<el-button
link
type=
"primary"
@
click=
"openForm('detail', scope.row.id)"
>
<el-button
link
type=
"primary"
@
click=
"openForm('detail', scope.row.id)"
>
查看详情
</el-button>
<el-button
...
...
@@ -264,20 +266,18 @@
<PrintContent
ref=
"printComp"
:dataList=
"printData"
/>
</div>
</Teleport>
</template>
<
script
setup
lang=
"ts"
>
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'
@/utils/dict
'
import
{
dateFormatter2
}
from
'
@/utils/formatTime
'
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'
@/utils/dict
'
import
{
dateFormatter2
}
from
'
@/utils/formatTime
'
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
ProductList
from
"
@/views/visit/util/ProductList.vue
"
;
import
{
useRoute
}
from
'
vue-router
'
import
ProductList
from
'
@/views/visit/util/ProductList.vue
'
import
{
useRoute
}
from
'
vue-router
'
import
{
usePrint
}
from
'
../util/print
'
import
{
usePrint
}
from
'
../util/print
'
import
PrintContent
from
'
../util/PrintContent.vue
'
//==========
...
...
@@ -307,10 +307,11 @@ const handleUnionAllPrint = async () => {
if
(
list
.
value
.
length
===
0
)
{
return
message
.
warning
(
'
当前不存在可打印数据
'
)
}
delete
queryParams
.
pageSize
// queryParams.pageSize=100
// 需要修改接口 最多只能100条数据
printData
.
value
=
await
InfoApi
.
getUnionAllPrintListByIds
(
queryParams
)
let
params
=
{
...
queryParams
}
params
.
pageSize
=
-
1
printData
.
value
=
await
InfoApi
.
getUnionAllPrintListByIds
(
params
)
await
nextTick
()
const
dom
=
printComp
.
value
.
printRef
if
(
dom
)
usePrint
(
dom
)
...
...
@@ -341,15 +342,15 @@ const queryParams = reactive({
visitMethod
:
undefined
,
visitType
:
undefined
,
createTime
:
[],
creator
:
undefined
,
creator
:
undefined
})
const
queryFormRef
=
ref
()
// 搜索的表单
const
exportLoading
=
ref
(
false
)
// 导出的加载中
const
multipleSelection
=
ref
([])
//存储多选内容
const
multipleSelection
=
ref
([])
//存储多选内容
/** 多选操作**/
const
handleSelectionChange
=
(
val
)
=>
{
multipleSelection
.
value
=
val
.
map
(
item
=>
item
.
id
)
multipleSelection
.
value
=
val
.
map
(
(
item
)
=>
item
.
id
)
//console.log(val,multipleSelection)
}
/** 查询列表 */
...
...
@@ -429,7 +430,7 @@ const handleExport = async () => {
/** 初始化 **/
onMounted
(()
=>
{
const
companyName
=
route
.
query
.
companyName
if
(
companyName
){
if
(
companyName
)
{
queryParams
.
companyName
=
companyName
}
getList
()
...
...
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