Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
李俊赕
self-support
Commits
3602ff28
Commit
3602ff28
authored
Jul 06, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报备默认选择最后一个时间;改约最后一个时间不可选
parent
51847eed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
appoint-time.vue
src/components/appoint/appoint-time.vue
+12
-3
feedback.vue
src/pages/order/feedback.vue
+7
-2
No files found.
src/components/appoint/appoint-time.vue
View file @
3602ff28
...
@@ -97,6 +97,13 @@
...
@@ -97,6 +97,13 @@
]
]
}
}
},
},
defaultAppointRangeItem
:
{
type
:
Object
,
default
()
{
// return {"name":"22:00-24:00","pkey":"appointment_range_24","disabled":false}
return
{}
}
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -133,8 +140,7 @@
...
@@ -133,8 +140,7 @@
list
,
list
,
}
}
this
.
appointTime
=
item
.
day
this
.
appointTime
=
item
.
day
this
.
appointRange
=
null
this
.
initAppointRange
()
this
.
appointRangeText
=
''
this
.
currentDayIndex
=
index
this
.
currentDayIndex
=
index
this
.
$emit
(
'date-change'
,
data
)
this
.
$emit
(
'date-change'
,
data
)
},
},
...
@@ -196,7 +202,10 @@
...
@@ -196,7 +202,10 @@
}
}
return
content
return
content
},
},
initAppointRange
()
{
this
.
appointRange
=
this
.
defaultAppointRangeItem
.
pkey
this
.
appointRangeText
=
this
.
defaultAppointRangeItem
.
name
}
}
}
}
}
</
script
>
</
script
>
...
...
src/pages/order/feedback.vue
View file @
3602ff28
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
:title=
"appointTitle"
:title=
"appointTitle"
:timeList=
"timeList"
:timeList=
"timeList"
:type=
"timeType"
:type=
"timeType"
:defaultAppointRangeItem=
"defaultAppointRangeItem"
@
dateChange=
"dateChange"
@
dateChange=
"dateChange"
@
timeChange=
"timeChange"
@
timeChange=
"timeChange"
@
weekChange=
"weekChange"
@
weekChange=
"weekChange"
...
@@ -158,6 +159,9 @@ export default {
...
@@ -158,6 +159,9 @@ export default {
},
},
timeType
()
{
timeType
()
{
return
this
.
types
[
this
.
options
[
this
.
curTab
].
name
]
return
this
.
types
[
this
.
options
[
this
.
curTab
].
name
]
},
defaultAppointRangeItem
()
{
return
this
.
options
[
this
.
curTab
].
defaultAppointRangeItem
}
}
},
},
async
onLoad
(
e
)
{
async
onLoad
(
e
)
{
...
@@ -197,7 +201,8 @@ export default {
...
@@ -197,7 +201,8 @@ export default {
let
row
=
tabVals
[
index
];
let
row
=
tabVals
[
index
];
let
owns
=
Object
.
keys
(
row
);
let
owns
=
Object
.
keys
(
row
);
let
ownVals
=
Object
.
values
(
row
);
let
ownVals
=
Object
.
values
(
row
);
configs
[
index
]
=
{
name
:
tab
,
owns
:
[]
};
var
defaultAppointRangeItem
=
tab
==
'报备'
?
{
name
:
'22:00-24:00'
,
pkey
:
'appointment_range_24'
,
disabled
:
false
}
:
{}
configs
[
index
]
=
{
name
:
tab
,
owns
:
[],
defaultAppointRangeItem
:
defaultAppointRangeItem
};
if
(
tab
==
'改约'
)
{
if
(
tab
==
'改约'
)
{
self
.
appoint
[
index
]
=
'预约时间'
self
.
appoint
[
index
]
=
'预约时间'
}
else
{
}
else
{
...
@@ -321,7 +326,7 @@ export default {
...
@@ -321,7 +326,7 @@ export default {
self
.
dateItem
=
data
.
item
self
.
dateItem
=
data
.
item
if
(
self
.
trace
.
reasonType
==
'改约'
)
{
if
(
self
.
trace
.
reasonType
==
'改约'
)
{
self
.
timeList
.
map
((
item
,
index
)
=>
{
self
.
timeList
.
map
((
item
,
index
)
=>
{
if
(
data
.
item
.
timeRange
.
indexOf
(
item
.
pkey
)
>
-
1
)
{
if
(
data
.
item
.
pkey
.
indexOf
(
item
.
pkey
)
>
-
1
)
{
item
.
disabled
=
true
;
item
.
disabled
=
true
;
}
else
{
}
else
{
item
.
disabled
=
false
;
item
.
disabled
=
false
;
...
...
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