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
0421718f
Commit
0421718f
authored
Nov 06, 2025
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug1
parent
86ad47a4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
120 additions
and
49 deletions
+120
-49
src/formJson/applicant.js
+3
-3
src/formJson/appointmentInfo.js
+6
-6
src/formJson/fnaForm.js
+7
-7
src/formJson/insured.js
+1
-1
src/views/sign/FnaList/components/fanForm.vue
+2
-6
src/views/sign/appointment/appointmentEdit.vue
+2
-1
src/views/sign/appointment/components/appointmentInfo.vue
+99
-25
No files found.
src/formJson/applicant.js
View file @
0421718f
...
@@ -520,7 +520,7 @@ const applicant = [
...
@@ -520,7 +520,7 @@ const applicant = [
required
:
false
,
required
:
false
,
maxLength
:
300
,
maxLength
:
300
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入
平均每月支出
'
,
placeholder
:
'请输入'
,
show
:
true
,
show
:
true
,
labelPosition
:
'top'
,
//标签的位置
labelPosition
:
'top'
,
//标签的位置
labelWidth
:
'120px'
,
//标签宽度
labelWidth
:
'120px'
,
//标签宽度
...
@@ -612,7 +612,7 @@ const applicant = [
...
@@ -612,7 +612,7 @@ const applicant = [
required
:
false
,
required
:
false
,
maxLength
:
300
,
maxLength
:
300
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入
平均每月支出
'
,
placeholder
:
'请输入'
,
show
:
true
,
show
:
true
,
labelPosition
:
'top'
,
//标签的位置
labelPosition
:
'top'
,
//标签的位置
labelWidth
:
'120px'
,
//标签宽度
labelWidth
:
'120px'
,
//标签宽度
...
@@ -722,7 +722,7 @@ const applicant = [
...
@@ -722,7 +722,7 @@ const applicant = [
required
:
false
,
required
:
false
,
maxLength
:
300
,
maxLength
:
300
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入
平均每月支出
'
,
placeholder
:
'请输入'
,
show
:
true
,
show
:
true
,
labelPosition
:
'top'
,
//标签的位置
labelPosition
:
'top'
,
//标签的位置
labelWidth
:
'120px'
,
//标签宽度
labelWidth
:
'120px'
,
//标签宽度
...
...
src/formJson/appointmentInfo.js
View file @
0421718f
...
@@ -267,11 +267,11 @@ const appointmentInfo = [
...
@@ -267,11 +267,11 @@ const appointmentInfo = [
lg
:
8
//栅格布局份数
lg
:
8
//栅格布局份数
},
},
{
{
label
:
'离港时间'
,
label
:
'离港时间
(先选择离港时间)
'
,
key
:
'departureTime'
,
key
:
'departureTime'
,
domType
:
'datetimePicker'
,
domType
:
'datetimePicker'
,
required
:
false
,
required
:
false
,
disabled
:
fals
e
,
disabled
:
tru
e
,
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
show
:
true
,
show
:
true
,
labelPosition
:
'top'
,
//标签的位置
labelPosition
:
'top'
,
//标签的位置
...
@@ -393,7 +393,7 @@ const appointmentInfo = [
...
@@ -393,7 +393,7 @@ const appointmentInfo = [
{
{
label
:
'开户时间段(开始)'
,
label
:
'开户时间段(开始)'
,
key
:
'openAccountStartTime'
,
key
:
'openAccountStartTime'
,
domType
:
'
datetim
ePicker'
,
domType
:
'
Dat
ePicker'
,
timeType
:
'date'
,
timeType
:
'date'
,
required
:
false
,
required
:
false
,
disabled
:
false
,
disabled
:
false
,
...
@@ -405,11 +405,11 @@ const appointmentInfo = [
...
@@ -405,11 +405,11 @@ const appointmentInfo = [
lg
:
8
//栅格布局份数
lg
:
8
//栅格布局份数
},
},
{
{
label
:
'开户时间段(结束)'
,
label
:
'开户时间段(结束
,先选择开始时间
)'
,
key
:
'openAccountEndTime'
,
key
:
'openAccountEndTime'
,
domType
:
'
datetim
ePicker'
,
domType
:
'
Dat
ePicker'
,
required
:
false
,
required
:
false
,
disabled
:
fals
e
,
disabled
:
tru
e
,
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
show
:
true
,
show
:
true
,
labelPosition
:
'top'
,
//标签的位置
labelPosition
:
'top'
,
//标签的位置
...
...
src/formJson/fnaForm.js
View file @
0421718f
...
@@ -389,7 +389,7 @@ const fnaForm = [
...
@@ -389,7 +389,7 @@ const fnaForm = [
subTitle
:
'公司业务资料 (适用于公司老板跟股东)'
,
subTitle
:
'公司业务资料 (适用于公司老板跟股东)'
,
data
:
[
data
:
[
{
{
label
:
'公司過去兩年平均純利
(HKD)
'
,
label
:
'公司過去兩年平均純利'
,
key
:
'averageNetProfit'
,
key
:
'averageNetProfit'
,
domType
:
'Input'
,
domType
:
'Input'
,
inputType
:
'text'
,
inputType
:
'text'
,
...
@@ -404,7 +404,7 @@ const fnaForm = [
...
@@ -404,7 +404,7 @@ const fnaForm = [
lg
:
8
//栅格布局份数
lg
:
8
//栅格布局份数
},
},
{
{
label
:
'公司現時大約的總資產
(HKD)
'
,
label
:
'公司現時大約的總資產'
,
key
:
'estimatedTotalAssets'
,
key
:
'estimatedTotalAssets'
,
domType
:
'Input'
,
domType
:
'Input'
,
inputType
:
'text'
,
inputType
:
'text'
,
...
@@ -467,7 +467,7 @@ const fnaForm = [
...
@@ -467,7 +467,7 @@ const fnaForm = [
required
:
false
,
required
:
false
,
maxLength
:
300
,
maxLength
:
300
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入
金额(HKD)
'
,
placeholder
:
'请输入'
,
show
:
true
,
show
:
true
,
inputWidth
:
'300px'
,
inputWidth
:
'300px'
,
labelWidth
:
'800px'
,
//标签宽度
labelWidth
:
'800px'
,
//标签宽度
...
@@ -483,7 +483,7 @@ const fnaForm = [
...
@@ -483,7 +483,7 @@ const fnaForm = [
required
:
false
,
required
:
false
,
maxLength
:
300
,
maxLength
:
300
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入
金额(HKD)
'
,
placeholder
:
'请输入'
,
show
:
true
,
show
:
true
,
inputWidth
:
'300px'
,
//输入框宽度
inputWidth
:
'300px'
,
//输入框宽度
labelWidth
:
'260px'
,
//标签宽度
labelWidth
:
'260px'
,
//标签宽度
...
@@ -507,7 +507,7 @@ const fnaForm = [
...
@@ -507,7 +507,7 @@ const fnaForm = [
required
:
false
,
required
:
false
,
maxLength
:
300
,
maxLength
:
300
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入
金额(HKD)
'
,
placeholder
:
'请输入'
,
show
:
true
,
show
:
true
,
inputWidth
:
'300px'
,
//输入框宽度
inputWidth
:
'300px'
,
//输入框宽度
labelWidth
:
'220px'
,
//标签宽度
labelWidth
:
'220px'
,
//标签宽度
...
@@ -522,7 +522,7 @@ const fnaForm = [
...
@@ -522,7 +522,7 @@ const fnaForm = [
required
:
false
,
required
:
false
,
maxLength
:
300
,
maxLength
:
300
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入
金额(HKD)
'
,
placeholder
:
'请输入'
,
show
:
true
,
show
:
true
,
labelWidth
:
'100px'
,
//标签宽度
labelWidth
:
'100px'
,
//标签宽度
sm
:
18
,
//栅格布局份数
sm
:
18
,
//栅格布局份数
...
@@ -537,7 +537,7 @@ const fnaForm = [
...
@@ -537,7 +537,7 @@ const fnaForm = [
required
:
false
,
required
:
false
,
maxLength
:
300
,
maxLength
:
300
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入
说明
'
,
placeholder
:
'请输入'
,
show
:
true
,
show
:
true
,
labelWidth
:
'0px'
,
//标签宽度
labelWidth
:
'0px'
,
//标签宽度
sm
:
6
,
//栅格布局份数
sm
:
6
,
//栅格布局份数
...
...
src/formJson/insured.js
View file @
0421718f
...
@@ -627,7 +627,7 @@ const insured = [
...
@@ -627,7 +627,7 @@ const insured = [
required
:
false
,
required
:
false
,
maxLength
:
300
,
maxLength
:
300
,
disabled
:
false
,
disabled
:
false
,
placeholder
:
'请输入
平均每月支出
'
,
placeholder
:
'请输入'
,
show
:
true
,
show
:
true
,
labelPosition
:
'top'
,
//标签的位置
labelPosition
:
'top'
,
//标签的位置
labelWidth
:
'120px'
,
//标签宽度
labelWidth
:
'120px'
,
//标签宽度
...
...
src/views/sign/FnaList/components/fanForm.vue
View file @
0421718f
...
@@ -332,7 +332,7 @@
...
@@ -332,7 +332,7 @@
/>
/>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"市值
(HKD)
"
prop
=
"marketValue"
align
=
"center"
>
<
el
-
table
-
column
label
=
"市值"
prop
=
"marketValue"
align
=
"center"
>
<
template
#
default
=
"scope"
>
<
template
#
default
=
"scope"
>
<
el
-
input
<
el
-
input
v
-
model
=
"scope.row.marketValue"
v
-
model
=
"scope.row.marketValue"
...
@@ -371,11 +371,7 @@
...
@@ -371,11 +371,7 @@
/>
/>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"自住用途之房地产市值"
prop
=
"marketValue"
align
=
"center"
>
label
=
"自住用途之房地产市值(HKD)"
prop
=
"marketValue"
align
=
"center"
>
<
template
#
default
=
"scope"
>
<
template
#
default
=
"scope"
>
<
el
-
input
<
el
-
input
v
-
model
=
"scope.row.marketValue"
v
-
model
=
"scope.row.marketValue"
...
...
src/views/sign/appointment/appointmentEdit.vue
View file @
0421718f
...
@@ -775,7 +775,9 @@ const handleSubmit = type => {
...
@@ -775,7 +775,9 @@ const handleSubmit = type => {
proxy
.
$message
.
success
(
'修改预约单成功'
)
proxy
.
$message
.
success
(
'修改预约单成功'
)
}
}
})
})
getAppointmentInfo
(
idsObj
.
value
.
appointmentBizId
)
}
}
// 预约暂存
if
(
type
==
'storage'
)
{
if
(
type
==
'storage'
)
{
submitAppointmentObj
.
value
.
apiAppointmentInfoDto
.
customerBizId
=
submitAppointmentObj
.
value
.
apiAppointmentInfoDto
.
customerBizId
=
props
.
processDetail
.
customerBizId
props
.
processDetail
.
customerBizId
...
@@ -789,7 +791,6 @@ const handleSubmit = type => {
...
@@ -789,7 +791,6 @@ const handleSubmit = type => {
}
}
})
})
}
}
getAppointmentInfo
(
idsObj
.
value
.
appointmentBizId
)
}
}
//修改预约数据
//修改预约数据
...
...
src/views/sign/appointment/components/appointmentInfo.vue
View file @
0421718f
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
:value=
"item.value"
:value=
"item.value"
/>
/>
</el-select>
</el-select>
<!-- 带时分的时间框 -->
<el-date-picker
<el-date-picker
v-model=
"form[child.key]"
v-model=
"form[child.key]"
style=
"width: 100%"
style=
"width: 100%"
...
@@ -67,15 +67,28 @@
...
@@ -67,15 +67,28 @@
:disabled-date=
"time => disabledDate(time, child)"
:disabled-date=
"time => disabledDate(time, child)"
format=
"YYYY-MM-DD HH:mm"
format=
"YYYY-MM-DD HH:mm"
value-format=
"YYYY-MM-DD HH:mm:ss"
value-format=
"YYYY-MM-DD HH:mm:ss"
@
clear=
"handleDateClear(child)"
/>
<!-- 不带时分 -->
<el-date-picker
style=
"width: 100%"
v-if=
"child.domType === 'DatePicker'"
v-model=
"form[child.key]"
type=
"date"
:placeholder=
"child.placeholder"
:disabled=
"child.disabled"
:disabled-date=
"time => disabledDate(time, child)"
@
change=
"handleDateChange(child)"
@
clear=
"handleDateClear(child)"
/>
/>
<el-input
<el-input
v-if=
"child.domType === 'arrowRight'"
v-if=
"child.domType === 'arrowRight'"
v-model=
"form[child.key]"
v-model=
"form[child.key]"
:placeholder=
"child.placeholder"
:placeholder=
"child.placeholder"
@
click=
"handleFoucs(child)"
:suffix-icon=
"ArrowRight"
:suffix-icon=
"ArrowRight"
readonly
readonly
:disabled=
"child.disabled"
:disabled=
"child.disabled"
@
focus=
"handleFoucs(child)"
>
>
</el-input>
</el-input>
<el-button
<el-button
...
@@ -313,16 +326,42 @@ const disabledDate = (time, child) => {
...
@@ -313,16 +326,42 @@ const disabledDate = (time, child) => {
return
inputDate
.
isBefore
(
today
,
'day'
)
return
inputDate
.
isBefore
(
today
,
'day'
)
break
break
case
'departureTime'
:
case
'departureTime'
:
return
inputDate
.
isBefore
(
today
,
'day'
)
// 获取开始日期(需要从表单数据中获取)
const
startTime1
=
form
.
value
.
arrivalTime
if
(
startTime1
)
{
const
arrivalDate
=
dayjs
(
startTime1
).
startOf
(
'day'
)
// 只禁用到达日期之前的日期,允许选择同一天
return
inputDate
.
isBefore
(
arrivalDate
,
'day'
)
}
else
{
// 如果没有选择到达时间,禁用今天之前的日期
return
inputDate
.
isBefore
(
today
,
'day'
)
}
break
break
case
'confirmAppointmentTime'
:
case
'confirmAppointmentTime'
:
return
inputDate
.
isBefore
(
today
,
'day'
)
return
inputDate
.
isBefore
(
today
,
'day'
)
break
break
case
'openAccountStartTime'
:
return
time
.
getTime
()
>
Date
.
now
()
break
case
'openAccountEndTime'
:
// 获取开始日期(需要从表单数据中获取)
const
startTime
=
form
.
value
.
openAccountStartTime
if
(
startTime
)
{
const
startDate
=
dayjs
(
startTime
).
startOf
(
'day'
)
// 禁用开始日期之前的所有日期(包括开始日期当天)
return
inputDate
.
isBefore
(
startDate
,
'day'
)
||
inputDate
.
isSame
(
startDate
,
'day'
)
}
else
{
// 如果没有选择开始日期,禁用今天之前的日期
return
inputDate
.
isBefore
(
today
,
'day'
)
}
break
default
:
default
:
// return time.getTime() > Date.now()
// return time.getTime() > Date.now()
break
break
}
}
}
}
const
handleButtonClick
=
child
=>
{
const
handleButtonClick
=
child
=>
{
if
(
child
.
key
==
'newPolicyButton'
)
{
if
(
child
.
key
==
'newPolicyButton'
)
{
let
obj
=
{
let
obj
=
{
...
@@ -337,7 +376,29 @@ const handleButtonClick = child => {
...
@@ -337,7 +376,29 @@ const handleButtonClick = child => {
})
})
}
}
}
}
const
handleDateClear
=
child
=>
{
if
(
child
.
key
==
'openAccountStartTime'
&&
!
form
.
value
[
'openAccountStartTime'
])
{
form
.
value
[
'openAccountEndTime'
]
=
''
resetShow
({
type
:
'child'
,
key
:
'openAccountEndTime'
,
status
:
true
,
flag
:
'disabled'
})
return
}
if
(
child
.
key
==
'arrivalTime'
&&
!
form
.
value
[
'arrivalTime'
])
{
form
.
value
[
'departureTime'
]
=
''
resetShow
({
type
:
'child'
,
key
:
'departureTime'
,
status
:
true
,
flag
:
'disabled'
})
return
}
}
const
handleDateChange
=
child
=>
{
const
handleDateChange
=
child
=>
{
if
(
child
.
key
==
'openAccountStartTime'
&&
form
.
value
[
'openAccountStartTime'
])
{
resetShow
({
type
:
'child'
,
key
:
'openAccountEndTime'
,
status
:
false
,
flag
:
'disabled'
})
disabledDate
(
form
.
value
[
'openAccountStartTime'
],
{
key
:
'openAccountEndTime'
})
return
}
if
(
child
.
key
==
'arrivalTime'
&&
form
.
value
[
'arrivalTime'
])
{
resetShow
({
type
:
'child'
,
key
:
'departureTime'
,
status
:
false
,
flag
:
'disabled'
})
disabledDate
(
form
.
value
[
'arrivalTime'
],
{
key
:
'departureTime'
})
}
if
(
child
.
key
===
'confirmAppointmentTime'
&&
form
.
value
[
child
.
key
])
{
if
(
child
.
key
===
'confirmAppointmentTime'
&&
form
.
value
[
child
.
key
])
{
if
(
form
.
value
[
'arrivalTime'
])
{
if
(
form
.
value
[
'arrivalTime'
])
{
const
appointmentTimestamp
=
dayjs
(
form
.
value
[
'confirmAppointmentTime'
]).
valueOf
()
const
appointmentTimestamp
=
dayjs
(
form
.
value
[
'confirmAppointmentTime'
]).
valueOf
()
...
@@ -347,17 +408,15 @@ const handleDateChange = child => {
...
@@ -347,17 +408,15 @@ const handleDateChange = child => {
form
.
value
[
'confirmAppointmentTime'
]
=
''
form
.
value
[
'confirmAppointmentTime'
]
=
''
return
return
}
else
if
(
appointmentTimestamp
>
arrivalTimestamp
)
{
}
else
if
(
appointmentTimestamp
>
arrivalTimestamp
)
{
// proxy.$modal.msgError('预约时间早于到港时间,请重新选择预约时间')
// form.value['confirmAppointmentTime'] = ''
}
else
{
}
else
{
proxy
.
$modal
.
msgError
(
'预约时间应晚于到港时间,请重新选择预约时间'
)
proxy
.
$modal
.
msgError
(
'预约时间应晚于到港时间,请重新选择预约时间'
)
form
.
value
[
'confirmAppointmentTime'
]
=
''
form
.
value
[
'confirmAppointmentTime'
]
=
''
return
return
}
}
}
}
resetShow
({
type
:
'child'
,
key
:
'newPolicyButton'
,
status
:
true
})
resetShow
({
type
:
'child'
,
key
:
'newPolicyButton'
,
status
:
true
,
flag
:
'show'
})
}
else
if
(
child
.
key
===
'confirmAppointmentTime'
&&
!
form
.
value
[
child
.
key
])
{
}
else
if
(
child
.
key
===
'confirmAppointmentTime'
&&
!
form
.
value
[
child
.
key
])
{
resetShow
({
type
:
'child'
,
key
:
'newPolicyButton'
,
status
:
false
})
resetShow
({
type
:
'child'
,
key
:
'newPolicyButton'
,
status
:
false
,
flag
:
'show'
})
}
else
if
(
child
.
key
===
'arrivalTime'
)
{
}
else
if
(
child
.
key
===
'arrivalTime'
)
{
if
(
form
.
value
[
'confirmAppointmentTime'
])
{
if
(
form
.
value
[
'confirmAppointmentTime'
])
{
const
appointmentTimestamp
=
dayjs
(
form
.
value
[
'confirmAppointmentTime'
]).
valueOf
()
const
appointmentTimestamp
=
dayjs
(
form
.
value
[
'confirmAppointmentTime'
]).
valueOf
()
...
@@ -365,31 +424,23 @@ const handleDateChange = child => {
...
@@ -365,31 +424,23 @@ const handleDateChange = child => {
if
(
appointmentTimestamp
<
arrivalTimestamp
)
{
if
(
appointmentTimestamp
<
arrivalTimestamp
)
{
proxy
.
$modal
.
msgError
(
'预约时间早于到港时间,请重新选择到港时间'
)
proxy
.
$modal
.
msgError
(
'预约时间早于到港时间,请重新选择到港时间'
)
form
.
value
[
'arrivalTime'
]
=
''
form
.
value
[
'arrivalTime'
]
=
''
form
.
value
[
'departureTime'
]
=
''
resetShow
({
type
:
'child'
,
key
:
'departureTime'
,
status
:
true
,
flag
:
'disabled'
})
}
else
if
(
appointmentTimestamp
>
arrivalTimestamp
)
{
}
else
if
(
appointmentTimestamp
>
arrivalTimestamp
)
{
console
.
log
(
'预约时间晚于到港时间'
)
console
.
log
(
'预约时间晚于到港时间'
)
}
else
{
}
else
{
proxy
.
$modal
.
msgError
(
'到港时间应早于预约时间,请重新选择到港时间'
)
proxy
.
$modal
.
msgError
(
'到港时间应早于预约时间,请重新选择到港时间'
)
form
.
value
[
'arrivalTime'
]
=
''
form
.
value
[
'arrivalTime'
]
=
''
form
.
value
[
'departureTime'
]
=
''
resetShow
({
type
:
'child'
,
key
:
'departureTime'
,
status
:
true
,
flag
:
'disabled'
})
}
}
}
}
}
else
if
(
child
.
key
===
'confirmAppointmentTime'
)
{
}
else
if
(
child
.
key
===
'confirmAppointmentTime'
)
{
if
(
form
.
value
[
'arrivalTime'
])
{
if
(
form
.
value
[
'arrivalTime'
])
{
console
.
log
(
'22222'
)
const
appointmentTimestamp
=
dayjs
(
form
.
value
[
'confirmAppointmentTime'
]).
valueOf
()
const
appointmentTimestamp
=
dayjs
(
form
.
value
[
'confirmAppointmentTime'
]).
valueOf
()
const
arrivalTimestamp
=
dayjs
(
form
.
value
[
'arrivalTime'
]).
valueOf
()
const
arrivalTimestamp
=
dayjs
(
form
.
value
[
'arrivalTime'
]).
valueOf
()
console
.
log
(
'appointmentTimestamp'
,
appointmentTimestamp
)
console
.
log
(
'appointmentTimestamp'
,
appointmentTimestamp
)
console
.
log
(
'arrivalTimestamp'
,
arrivalTimestamp
)
console
.
log
(
'arrivalTimestamp'
,
arrivalTimestamp
)
// if (appointmentTimestamp
<
arrivalTimestamp
)
{
// // proxy.$modal.msgError('预约时间早于到港时间,请重新选择预约时间')
// // form.value['confirmAppointmentTime'] = ''
// } else if (appointmentTimestamp > arrivalTimestamp) {
// proxy.$modal.msgError('预约时间早于到港时间,请重新选择预约时间')
// form.value['confirmAppointmentTime'] = ''
// } else {
// proxy.$modal.msgError('预约时间应晚于到港时间,请重新选择预约时间')
// form.value['confirmAppointmentTime'] = ''
// }
}
}
}
}
}
}
...
@@ -578,7 +629,7 @@ const confirmDrawer = info => {
...
@@ -578,7 +629,7 @@ const confirmDrawer = info => {
handleCloseDrawer
()
handleCloseDrawer
()
}
}
// 根据联动重置表单项的显示与否
// 根据联动重置表单项的显示与否
是否禁用
const
resetShow
=
obj
=>
{
const
resetShow
=
obj
=>
{
for
(
const
section
of
processedAppointmentData
.
value
)
{
for
(
const
section
of
processedAppointmentData
.
value
)
{
if
(
obj
.
type
==
'father'
&&
section
.
key
==
obj
.
key
)
{
if
(
obj
.
type
==
'father'
&&
section
.
key
==
obj
.
key
)
{
...
@@ -593,12 +644,11 @@ const resetShow = obj => {
...
@@ -593,12 +644,11 @@ const resetShow = obj => {
}
else
if
(
obj
.
type
==
'child'
)
{
}
else
if
(
obj
.
type
==
'child'
)
{
if
(
section
.
data
)
{
if
(
section
.
data
)
{
for
(
const
field
of
section
.
data
)
{
for
(
const
field
of
section
.
data
)
{
if
(
field
.
key
==
obj
.
key
)
{
if
(
field
.
key
==
obj
.
key
&&
obj
.
flag
==
'show'
)
{
// 获取字典数据
// 获取字典数据
field
.
show
=
obj
.
status
field
.
show
=
obj
.
status
// if (!obj.status) {
}
else
if
(
field
.
key
==
obj
.
key
&&
obj
.
flag
==
'disabled'
)
{
// form.value[obj.key] = ''
field
.
disabled
=
obj
.
status
// }
}
}
}
}
}
}
...
@@ -641,7 +691,13 @@ const handleEditStatus = status => {
...
@@ -641,7 +691,13 @@ const handleEditStatus = status => {
if
(
editStatus
.
value
)
{
if
(
editStatus
.
value
)
{
field
.
disabled
=
true
field
.
disabled
=
true
}
else
{
}
else
{
field
.
disabled
=
false
if
(
!
form
.
value
[
'openAccountStartTime'
]
&&
field
.
key
==
'openAccountEndTime'
)
{
field
.
disabled
=
true
}
else
if
(
!
form
.
value
[
'arrivalTime'
]
&&
field
.
key
==
'departureTime'
)
{
field
.
disabled
=
true
}
else
{
field
.
disabled
=
false
}
}
}
}
}
}
}
...
@@ -682,6 +738,24 @@ const setFormValue = (obj, formData) => {
...
@@ -682,6 +738,24 @@ const setFormValue = (obj, formData) => {
if
(
field
.
key
==
'bankName'
)
{
if
(
field
.
key
==
'bankName'
)
{
searchOptions
.
value
[
field
.
key
]
=
fetchDictData
(
field
.
dictType
)
searchOptions
.
value
[
field
.
key
]
=
fetchDictData
(
field
.
dictType
)
}
}
// 处理时间
if
(
field
.
key
==
'openAccountEndTime'
&&
obj
[
field
.
key
])
{
// 开始时间是否在结束时间之前
if
(
obj
[
'openAccountStartTime'
]
&&
!
dayjs
(
obj
[
'openAccountStartTime'
]).
isBefore
(
dayjs
(
obj
[
field
.
key
]))
)
{
form
.
value
[
field
.
key
]
=
''
field
.
disabled
=
true
}
}
if
(
field
.
key
==
'departureTime'
&&
obj
[
field
.
key
])
{
// 开始时间是否在结束时间之前
if
(
obj
[
'arrivalTime'
]
&&
!
dayjs
(
obj
[
'arrivalTime'
]).
isBefore
(
dayjs
(
obj
[
field
.
key
])))
{
form
.
value
[
field
.
key
]
=
''
field
.
disabled
=
true
}
}
//要判断drawerType,因为抽屉要回显数据
//要判断drawerType,因为抽屉要回显数据
switch
(
field
.
drawerType
)
{
switch
(
field
.
drawerType
)
{
case
'phone'
:
case
'phone'
:
...
...
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