Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 79a1b95f
authored
Sep 06, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
BUG修复
1 parent
5ee53e11
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
116 deletions
src/views/goods/coupons/reservationDialog.vue
src/views/goods/coupons/scheduling.vue
src/views/goods/coupons/reservationDialog.vue
View file @
79a1b95
...
@@ -14,10 +14,11 @@
...
@@ -14,10 +14,11 @@
<el-form
label-width=
"100px"
<el-form
label-width=
"100px"
:model=
"infoForm"
:model=
"infoForm"
ref=
"editRef"
ref=
"editRef"
:rules=
"formRules"
:rules=
"formRules"
>
:inline=
"true"
>
<el-form-item
label=
"预约时间:"
<el-form-item
label=
"预约时间:"
prop=
"dateTime"
>
required
>
<el-col
:span=
"10"
>
<el-form-item
prop=
"dateTime"
>
<el-date-picker
v-model=
"infoForm.dateTime"
<el-date-picker
v-model=
"infoForm.dateTime"
type=
"date"
type=
"date"
class=
"default-width"
class=
"default-width"
...
@@ -26,10 +27,15 @@
...
@@ -26,10 +27,15 @@
@
change=
"inviteStatMerchantList"
@
change=
"inviteStatMerchantList"
:picker-options=
"datePickerOptions"
>
:picker-options=
"datePickerOptions"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"1"
></el-col>
<el-col
:span=
"13"
>
<el-form-item
prop=
"times"
>
<el-select
v-model=
"infoForm.times"
<el-select
v-model=
"infoForm.times"
filterable
filterable
placeholder=
"请选择"
placeholder=
"请选择"
class=
"default-width timesSle
"
>
class=
"default-width
"
>
<el-option
v-for=
"(item, key) in timesOpt"
<el-option
v-for=
"(item, key) in timesOpt"
:key=
"key"
:key=
"key"
:label=
"item.confValue"
:label=
"item.confValue"
...
@@ -43,6 +49,8 @@
...
@@ -43,6 +49,8 @@
v-if=
"paramsObj.inviteDate"
v-if=
"paramsObj.inviteDate"
@
click=
"cancelInvite"
>
取消预约
</el-button>
@
click=
"cancelInvite"
>
取消预约
</el-button>
</el-form-item>
</el-form-item>
</el-col>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
@@ -82,21 +90,21 @@ export default {
...
@@ -82,21 +90,21 @@ export default {
this
.
inviteDatePush
()
this
.
inviteDatePush
()
},
},
data
()
{
data
()
{
var
validateDateTime
=
{
//
var validateDateTime = {
validator
:
(
rule
,
value
,
callback
)
=>
{
//
validator: (rule, value, callback) => {
if
(
!
value
)
{
//
if (!value) {
return
callback
(
new
Error
(
`请选择日期`
))
//
return callback(new Error(`请选择日期`))
}
//
}
const
times
=
this
.
infoForm
.
times
//
const times = this.infoForm.times
if
(
!
times
)
{
//
if (!times) {
return
callback
(
new
Error
(
`请选择时间段`
))
//
return callback(new Error(`请选择时间段`))
}
//
}
callback
()
// 验证通过
//
callback() // 验证通过
},
//
},
trigger
:
"change"
//
trigger: "change"
}
//
}
return
{
return
{
dialogConfig
:
{
dialogConfig
:
{
config
:
{
config
:
{
...
@@ -110,7 +118,13 @@ export default {
...
@@ -110,7 +118,13 @@ export default {
},
},
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
formRules
:
{
formRules
:
{
dateTime
:
[
validateDateTime
]
// dateTime: [validateDateTime]
dateTime
:
[
{
required
:
true
,
message
:
'请选择日期'
,
trigger
:
'change'
}
],
times
:
[
{
required
:
true
,
message
:
'请选择时间段'
,
trigger
:
'change'
}
]
},
},
datePickerOptions
:
{
datePickerOptions
:
{
disabledDate
:
(
time
)
=>
{
disabledDate
:
(
time
)
=>
{
...
@@ -259,103 +273,10 @@ export default {
...
@@ -259,103 +273,10 @@ export default {
height
:
28px
;
height
:
28px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
.tipsText
{
.tipsText
{
padding-left
:
20px
;
font-size
:
14px
;
font-size
:
14px
;
}
}
}
}
.el-form-item__content
{
display
:
inline-block
;
width
:
calc
(
100%
-
150px
);
line-height
:
24px
;
}
.el-form-item__label
{
padding
:
0
;
line-height
:
24px
;
}
.el-form-item
{
width
:
100%
;
margin-bottom
:
20px
;
}
.edit-sub-block
{
//
padding
:
0
10px
;
.detail-txt
{
display
:
inline-block
;
width
:
200px
;
vertical-align
:
bottom
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
::v-deep
.el-form-item__content
{
max-width
:
calc
(
100%
-
110px
);
word-break
:
break-all
;
}
.itemDiv
{
display
:
flex
;
.halfItem
{
width
:
33%
;
}
}
.onLineItem
{
::v-deep
.el-form-item__content
{
max-width
:
80%
;
}
}
}
.edit-sub-block-two
{
.el-form-item__label
{
padding
:
0
;
}
.el-form-item
{
//
width
:
300px
;
margin
:
0px
;
}
}
.busi-info
{
box-sizing
:
border-box
;
width
:
890px
;
border-radius
:
4px
;
border
:
1px
solid
#e5e5e5
;
padding
:
6px
0
;
color
:
#333333
;
font-size
:
14px
;
margin-bottom
:
14px
;
.info-row
{
height
:
20px
;
line-height
:
20px
;
margin-bottom
:
16px
;
}
.info-row
:last-child
{
margin-bottom
:
0
;
}
.info-item
{
display
:
inline-block
;
width
:
50%
;
height
:
20px
;
line-height
:
20px
;
margin-bottom
:
6px
;
.item-label
{
display
:
inline-block
;
width
:
150px
;
color
:
#666666
;
text-align
:
right
;
}
}
}
}
.receiptBtn
{
margin-left
:
20px
;
}
.imgCon
{
text-align
:
center
;
margin-bottom
:
50px
;
}
.imgSize
{
width
:
1040px
;
}
}
.default-width
{
.default-width
{
width
:
170px
;
width
:
170px
;
...
...
src/views/goods/coupons/scheduling.vue
View file @
79a1b95
...
@@ -200,7 +200,7 @@ export default {
...
@@ -200,7 +200,7 @@ export default {
prop
:
'staffName'
,
prop
:
'staffName'
,
width
:
'250'
,
width
:
'250'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
customer
?.
merchantName
+
'-'
+
cellValue
.
customerCoupon
?.
employeeName
return
cellValue
.
merchantCoupon
?.
merchantName
+
'-'
+
cellValue
.
customerCoupon
?.
employeeName
}
}
},
{
},
{
label
:
'礼券名称'
,
label
:
'礼券名称'
,
...
@@ -319,9 +319,9 @@ export default {
...
@@ -319,9 +319,9 @@ export default {
const
params
=
deepClone
(
this
.
searchFormSearch
)
const
params
=
deepClone
(
this
.
searchFormSearch
)
delete
params
.
inviteMode
delete
params
.
inviteMode
inviteRecordCount
(
params
).
then
((
res
)
=>
{
inviteRecordCount
(
params
).
then
((
res
)
=>
{
this
.
tabPaneList
[
0
].
count
=
res
.
inviteCount
this
.
tabPaneList
[
0
].
count
=
res
.
inviteCount
||
0
this
.
tabPaneList
[
1
].
count
=
res
.
hadInvitedCount
this
.
tabPaneList
[
1
].
count
=
res
.
hadInvitedCount
||
0
this
.
tabPaneList
[
2
].
count
=
res
.
notInvitedCount
this
.
tabPaneList
[
2
].
count
=
res
.
notInvitedCount
||
0
})
})
},
},
getInviteMerchant
()
{
getInviteMerchant
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment