Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yuzhenWang
yd-csf-front
Commits
09b9c2b9
Commit
09b9c2b9
authored
Dec 19, 2025
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' into sw
parents
dbcd9f18
375ff2e5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
68 deletions
+70
-68
src/components/commonDialog/index.vue
+7
-2
src/components/commonPage/index.vue
+13
-15
src/views/sign/FnaList/components/customer.vue
+2
-1
src/views/sign/FnaList/index.vue
+26
-28
src/views/sign/appointment/index.vue
+22
-22
No files found.
src/components/commonDialog/index.vue
View file @
09b9c2b9
...
@@ -13,7 +13,10 @@
...
@@ -13,7 +13,10 @@
<template
#
header
>
<template
#
header
>
<div
class=
"titleBox"
>
{{
dialogTitle
}}
</div>
<div
class=
"titleBox"
>
{{
dialogTitle
}}
</div>
</
template
>
</
template
>
<slot
class=
"content"
></slot>
<div
class=
"content"
>
<slot></slot>
</div>
<
template
#
footer
>
<
template
#
footer
>
<div
class=
"dialog-footer"
>
<div
class=
"dialog-footer"
>
<!-- 取消按钮 -->
<!-- 取消按钮 -->
...
@@ -107,7 +110,9 @@ watch(
...
@@ -107,7 +110,9 @@ watch(
align-items
:
center
;
align-items
:
center
;
padding
:
15px
0
;
padding
:
15px
0
;
}
}
.content
{
padding
:
0
15px
;
}
.dialog-footer
{
.dialog-footer
{
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
...
...
src/components/commonPage/index.vue
View file @
09b9c2b9
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ref
,
computed
,
watch
,
nextTick
,
onMounted
,
defineExpose
}
from
'vue'
import
{
ref
,
computed
,
watch
,
nextTick
,
onMounted
}
from
'vue'
// 按钮类型定义
// 按钮类型定义
export
interface
OperationButton
{
export
interface
OperationButton
{
...
@@ -172,11 +172,11 @@ const emit = defineEmits<{
...
@@ -172,11 +172,11 @@ const emit = defineEmits<{
// 搜索展开/收起
// 搜索展开/收起
'search-toggle'
:
[
expanded
:
boolean
]
'search-toggle'
:
[
expanded
:
boolean
]
// 默认按钮事件(为方便使用保留)
// 默认按钮事件(为方便使用保留)
'add'
:
[]
add
:
[]
'import'
:
[]
import
:
[]
'export'
:
[]
export
:
[]
'reset'
:
[]
reset
:
[]
'query'
:
[]
query
:
[]
}
>
()
}
>
()
// 响应式数据
// 响应式数据
...
@@ -266,18 +266,16 @@ const computedButtons = computed(() => {
...
@@ -266,18 +266,16 @@ const computedButtons = computed(() => {
// 计算左侧按钮
// 计算左侧按钮
const
leftButtons
=
computed
(()
=>
{
const
leftButtons
=
computed
(()
=>
{
return
computedButtons
.
value
.
filter
(
btn
=>
return
computedButtons
.
value
.
filter
(
btn
=>
(
btn
.
direction
===
'left'
||
(
!
btn
.
direction
&&
props
.
showDefaultButtons
))
&&
(
btn
.
direction
===
'left'
||
(
!
btn
.
direction
&&
props
.
showDefaultButtons
))
&&
(
btn
.
visible
!==
false
)
btn
.
visible
!==
false
)
)
})
})
// 计算右侧按钮
// 计算右侧按钮
const
rightButtons
=
computed
(()
=>
{
const
rightButtons
=
computed
(()
=>
{
return
computedButtons
.
value
.
filter
(
btn
=>
return
computedButtons
.
value
.
filter
(
btn
=>
btn
.
direction
===
'right'
&&
btn
.
visible
!==
false
)
btn
.
direction
===
'right'
&&
(
btn
.
visible
!==
false
)
)
})
})
// 方法
// 方法
...
@@ -300,14 +298,14 @@ const checkConditions = () => {
...
@@ -300,14 +298,14 @@ const checkConditions = () => {
if
(
!
isExpanded
.
value
&&
hasMoreCondition
.
value
)
{
if
(
!
isExpanded
.
value
&&
hasMoreCondition
.
value
)
{
formItems
.
forEach
((
item
,
index
)
=>
{
formItems
.
forEach
((
item
,
index
)
=>
{
if
(
index
>=
props
.
defaultVisibleConditions
)
{
if
(
index
>=
props
.
defaultVisibleConditions
)
{
(
item
as
HTMLElement
).
style
.
display
=
'none'
;
(
item
as
HTMLElement
).
style
.
display
=
'none'
}
else
{
}
else
{
(
item
as
HTMLElement
).
style
.
display
=
''
;
(
item
as
HTMLElement
).
style
.
display
=
''
}
}
})
})
}
else
{
}
else
{
formItems
.
forEach
(
item
=>
{
formItems
.
forEach
(
item
=>
{
(
item
as
HTMLElement
).
style
.
display
=
''
;
(
item
as
HTMLElement
).
style
.
display
=
''
})
})
}
}
})
})
...
...
src/views/sign/FnaList/components/customer.vue
View file @
09b9c2b9
...
@@ -286,7 +286,8 @@ import {
...
@@ -286,7 +286,8 @@ import {
getCustomerDetail
,
getCustomerDetail
,
editCustomer
,
editCustomer
,
getCustomerList
,
getCustomerList
,
addFna
addFna
,
calculateFieldValue
,
}
from
'@/api/sign/fna'
}
from
'@/api/sign/fna'
import
useDictStore
from
'@/store/modules/dict'
import
useDictStore
from
'@/store/modules/dict'
const
dictStore
=
useDictStore
()
//获取字典数据
const
dictStore
=
useDictStore
()
//获取字典数据
...
...
src/views/sign/FnaList/index.vue
View file @
09b9c2b9
...
@@ -2,8 +2,14 @@
...
@@ -2,8 +2,14 @@
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<CommonPage
<CommonPage
:operationBtnList=
"operationBtnList"
:operationBtnList=
"operationBtnList"
:visibleDefaultButtons=
"visibleDefaultButtons"
:showSearchForm=
"true"
:showSearchForm=
"true"
:show-pagination=
"false"
:show-pagination=
"true"
:currentPage=
"queryParams.pageNo"
:total=
"total"
:pageSize=
"queryParams.pageSize"
@
current-change=
"changePageNo"
@
size-change=
"changePageSize"
>
>
<!-- 查询条件插槽 -->
<!-- 查询条件插槽 -->
<template
#
searchForm
>
<template
#
searchForm
>
...
@@ -124,7 +130,7 @@
...
@@ -124,7 +130,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div
style=
"width: 100%; display: flex; justify-content: flex-end; margin-bottom: 30px"
>
<
!-- <
div style="width: 100%; display: flex; justify-content: flex-end; margin-bottom: 30px">
<pagination
<pagination
v-show="total >= 0"
v-show="total >= 0"
:total="total"
:total="total"
...
@@ -133,7 +139,7 @@
...
@@ -133,7 +139,7 @@
@pagination="getList"
@pagination="getList"
style="text-align: right"
style="text-align: right"
/>
/>
</div>
</div>
-->
</template>
</template>
</CommonPage>
</CommonPage>
<!-- 下一步到预约 -->
<!-- 下一步到预约 -->
...
@@ -170,38 +176,39 @@ const data = reactive({
...
@@ -170,38 +176,39 @@ const data = reactive({
})
})
const
{
queryParams
,
form
,
rules
}
=
toRefs
(
data
)
const
{
queryParams
,
form
,
rules
}
=
toRefs
(
data
)
// 控制要显示的默认按钮
const
visibleDefaultButtons
=
ref
([
'add'
,
'query'
,
'reset'
])
// 只显示新增和查询两个默认按钮
// 按钮配置
const
operationBtnList
=
ref
([
const
operationBtnList
=
ref
([
{
{
key
:
'add'
,
label
:
'新建流程'
,
label
:
'新建流程'
,
icon
:
'Plus'
,
type
:
'primary'
,
direction
:
'left'
,
direction
:
'left'
,
size
:
'large'
,
click
:
handleAdd
click
:
handleAdd
},
},
{
{
label
:
'搜索'
,
key
:
'reset'
,
icon
:
'Search'
,
type
:
'primary'
,
direction
:
'right'
,
direction
:
'right'
,
size
:
'large'
,
click
:
resetQuery
click
:
handleQuery
},
},
{
{
label
:
'重置'
,
key
:
'query'
,
icon
:
'Refresh'
,
type
:
'info'
,
direction
:
'right'
,
direction
:
'right'
,
size
:
'large'
,
click
:
handleQuery
click
:
resetQuery
}
}
])
])
const
changePageNo
=
val
=>
{
queryParams
.
value
.
pageNo
=
val
getList
()
}
const
changePageSize
=
val
=>
{
queryParams
.
value
.
pageSize
=
val
getList
()
}
const
clearDateRange
=
()
=>
{
const
clearDateRange
=
()
=>
{
dateRange
.
value
=
[]
dateRange
.
value
=
[]
}
}
const
handleCopy
=
row
=>
{
const
handleCopy
=
row
=>
{
// { fnaBizId: row.fnaBizId }
subProcess
({
fnaBizId
:
row
.
fnaBizId
}).
then
(
response
=>
{
subProcess
({
fnaBizId
:
row
.
fnaBizId
}).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
if
(
response
.
code
===
200
)
{
getList
()
getList
()
...
@@ -262,7 +269,7 @@ function resetQuery() {
...
@@ -262,7 +269,7 @@ function resetQuery() {
proxy
.
resetForm
(
'queryRef'
)
proxy
.
resetForm
(
'queryRef'
)
queryParams
.
value
=
{
queryParams
.
value
=
{
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
8
,
pageSize
:
10
,
startTime
:
''
,
startTime
:
''
,
endTime
:
''
endTime
:
''
}
}
...
@@ -283,15 +290,6 @@ function handleDelete(row) {
...
@@ -283,15 +290,6 @@ function handleDelete(row) {
.
catch
(()
=>
{})
.
catch
(()
=>
{})
}
}
/** 重置操作表单 */
function
reset
()
{
form
.
value
=
{
pageNo
:
1
,
pageSize
:
8
}
proxy
.
resetForm
(
'tenantRef'
)
}
/** 新增按钮操作 */
/** 新增按钮操作 */
function
handleAdd
()
{
function
handleAdd
()
{
router
.
push
(
'/sign/FnaList/edit?type=add'
)
router
.
push
(
'/sign/FnaList/edit?type=add'
)
...
...
src/views/sign/appointment/index.vue
View file @
09b9c2b9
...
@@ -2,8 +2,14 @@
...
@@ -2,8 +2,14 @@
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<CommonPage
<CommonPage
:operationBtnList=
"operationBtnList"
:operationBtnList=
"operationBtnList"
:visibleDefaultButtons=
"visibleDefaultButtons"
:showSearchForm=
"true"
:showSearchForm=
"true"
:show-pagination=
"false"
:show-pagination=
"true"
:currentPage=
"queryParams.pageNo"
:total=
"total"
:pageSize=
"queryParams.pageSize"
@
current-change=
"changePageNo"
@
size-change=
"changePageSize"
>
>
<!-- 查询条件插槽 -->
<!-- 查询条件插槽 -->
<template
#
searchForm
>
<template
#
searchForm
>
...
@@ -139,15 +145,6 @@
...
@@ -139,15 +145,6 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div
style=
"width: 100%; display: flex; justify-content: flex-end; margin-bottom: 30px"
>
<pagination
v-show=
"total >= 0"
:total=
"total"
v-model:page=
"queryParams.pageNo"
v-model:limit=
"queryParams.pageSize"
@
pagination=
"getList"
/>
</div>
</template>
</template>
</CommonPage>
</CommonPage>
<!-- 下一步到预约 -->
<!-- 下一步到预约 -->
...
@@ -210,30 +207,34 @@ const dialogVisible = ref(false)
...
@@ -210,30 +207,34 @@ const dialogVisible = ref(false)
const
appointmentSummeryInfo
=
ref
({})
const
appointmentSummeryInfo
=
ref
({})
const
tenantList
=
ref
([])
const
tenantList
=
ref
([])
const
loading
=
ref
(
true
)
const
loading
=
ref
(
true
)
const
showSearch
=
ref
(
true
)
const
ids
=
ref
([])
const
ids
=
ref
([])
const
total
=
ref
(
0
)
const
total
=
ref
(
0
)
const
dateRange
=
ref
([])
const
dateRange
=
ref
([])
const
detailData
=
ref
([])
//行程单-行程信息
const
detailData
=
ref
([])
//行程单-行程信息
const
exportLoading
=
ref
(
false
)
const
exportLoading
=
ref
(
false
)
// 控制要显示的默认按钮
const
visibleDefaultButtons
=
ref
([
'query'
,
'reset'
])
// 只显示新增和查询两个默认按钮
// 按钮配置
const
operationBtnList
=
ref
([
const
operationBtnList
=
ref
([
{
{
label
:
'搜索'
,
key
:
'reset'
,
icon
:
'Search'
,
type
:
'primary'
,
direction
:
'right'
,
direction
:
'right'
,
size
:
'small'
,
click
:
resetQuery
click
:
handleQuery
},
},
{
{
label
:
'重置'
,
key
:
'query'
,
icon
:
'Refresh'
,
type
:
'info'
,
direction
:
'right'
,
direction
:
'right'
,
size
:
'small'
,
click
:
handleQuery
click
:
resetQuery
}
}
])
])
const
changePageNo
=
val
=>
{
queryParams
.
value
.
pageNo
=
val
getList
()
}
const
changePageSize
=
val
=>
{
queryParams
.
value
.
pageSize
=
val
getList
()
}
const
data
=
reactive
({
const
data
=
reactive
({
form
:
{},
form
:
{},
queryParams
:
{
queryParams
:
{
...
@@ -530,7 +531,6 @@ getList()
...
@@ -530,7 +531,6 @@ getList()
padding: 10px 20px; */
padding: 10px 20px; */
}
}
.dialogBox
{
.dialogBox
{
padding
:
0
15px
;
.dialogTitle
{
.dialogTitle
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
...
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