Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
7680dd4e
Commit
7680dd4e
authored
Apr 01, 2022
by
赵伟庚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up 申请服务默认期限
parent
857a88c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
src/components/shop-car-apply/apply_form.vue
src/components/shop-car-apply/apply_form.vue
+5
-0
src/pages/service_shop/shop_car_apply.vue
src/pages/service_shop/shop_car_apply.vue
+12
-1
No files found.
src/components/shop-car-apply/apply_form.vue
View file @
7680dd4e
...
...
@@ -23,6 +23,7 @@
<el-form-item
prop=
"date"
>
<p
class=
"formname"
>
申请使用期限
</p>
<el-date-picker
:disabled=
"disabledDate"
v-model=
"formInline.date"
type=
"daterange"
range-separator=
"至"
...
...
@@ -48,6 +49,10 @@ export default {
return
{};
},
},
disabledDate
:
{
type
:
Boolean
,
default
:
false
}
},
components
:
{},
data
()
{
...
...
src/pages/service_shop/shop_car_apply.vue
View file @
7680dd4e
...
...
@@ -3,6 +3,7 @@
<info-list
:list_arr=
"module_arr"
>
<apply-form
:formInline=
"formInline"
:disabledDate=
"disabledDate"
ref=
"apply_info"
slot=
"apply_info"
></apply-form>
...
...
@@ -125,7 +126,8 @@ export default {
val
:
"
mg
"
}
],
temp_sub_arr
:
[]
temp_sub_arr
:
[],
disabledDate
:
false
,
};
},
watch
:
{},
...
...
@@ -197,6 +199,15 @@ export default {
let
data
=
response
.
data
.
data
;
if
(
response
.
data
.
success
&&
data
)
{
//服务
if
(
data
.
interface_typ
!=
1
)
{
this
.
disabledDate
=
true
let
yyyy
=
new
Date
().
getFullYear
()
let
mm
=
new
Date
().
getMonth
()
+
1
<
10
?
'
0
'
+
(
new
Date
().
getMonth
()
+
1
)
:
new
Date
().
getMonth
()
+
1
let
dd
=
new
Date
().
getDate
()
<
10
?
'
0
'
+
new
Date
().
getDate
()
:
new
Date
().
getDate
()
let
date_now
=
yyyy
+
'
-
'
+
mm
+
'
-
'
+
dd
this
.
formInline
.
date
=
[
""
,
"
2099-12-31
"
]
this
.
formInline
.
date
[
0
]
=
date_now
}
this
.
post_arr
=
[
data
];
this
.
post_arr
[
0
].
service_id
=
parseInt
(
service_data
.
service_id
);
this
.
post_arr
[
0
].
spec_id
=
parseInt
(
service_data
.
spec_id
);
...
...
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