Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
cb5d0a3e
Commit
cb5d0a3e
authored
Jul 23, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
票务提成规则修改
parent
22459cc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
23 deletions
+55
-23
airTicketRules.vue
src/components/Ticketing/airTicketRules.vue
+55
-23
No files found.
src/components/Ticketing/airTicketRules.vue
View file @
cb5d0a3e
...
...
@@ -443,22 +443,39 @@
<div
class=
"combottomTitle"
>
{{
divTitle
}}
</div>
<div
class=
""
>
<el-form
:model=
"addMsg"
ref=
"addMsg"
label-width=
"130px"
>
<el-col
:span=
"5"
>
<el-form-item
label=
"年"
>
<el-select
v-model=
"addMsg.YearStr"
size=
"mini"
class=
"_month_input"
>
<el-option
:key=
"DefaultValue"
label=
"请选择"
:value=
"DefaultValue"
></el-option>
<el-option
v-for=
"item in YearList"
:key=
"item"
:label=
"item"
:value=
"item"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"月"
>
<el-select
v-model=
"addMsg.MonthStr"
size=
"mini"
class=
"_month_input"
>
<el-option
:key=
"DefaultValue"
label=
"请选择"
:value=
"DefaultValue"
></el-option>
<el-option
v-for=
"item in MonthList"
:key=
"item"
:label=
"item"
:value=
"item"
></el-option>
</el-select>
</el-form-item>
</el-col>
<template
v-if=
"addMsg.ID==0"
>
<el-col
:span=
"5"
>
<el-form-item
label=
"开始月份"
>
<el-date-picker
v-model=
"addMsg.MonthRangeStart"
type=
"month"
value-format=
"yyyy-MM"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"结束月份"
>
<el-date-picker
v-model=
"addMsg.MonthRangeEnd"
type=
"month"
value-format=
"yyyy-MM"
>
</el-date-picker>
</el-form-item>
</el-col>
</
template
>
<
template
v-else
>
<el-col
:span=
"5"
>
<el-form-item
label=
"年"
>
<el-select
v-model=
"addMsg.YearStr"
size=
"mini"
class=
"_month_input"
>
<el-option
:key=
"DefaultValue"
label=
"请选择"
:value=
"DefaultValue"
></el-option>
<el-option
v-for=
"item in YearList"
:key=
"item"
:label=
"item"
:value=
"item"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"月"
>
<el-select
v-model=
"addMsg.MonthStr"
size=
"mini"
class=
"_month_input"
>
<el-option
:key=
"DefaultValue"
label=
"请选择"
:value=
"DefaultValue"
></el-option>
<el-option
v-for=
"item in MonthList"
:key=
"item"
:label=
"item"
:value=
"item"
></el-option>
</el-select>
</el-form-item>
</el-col>
</
template
>
<el-col
:span=
"5"
>
<el-form-item
label=
"单价/人"
>
<el-input
v-model=
"addMsg.UnitPrice"
maxlength=
"5"
@
keyup
.
native=
"checkPrice(addMsg,'UnitPrice')"
>
...
...
@@ -492,6 +509,8 @@
YearStr
:
0
,
//年份
MonthStr
:
0
,
//月份
UnitPrice
:
0
,
//单价每人
MonthRangeStart
:
""
,
//开始月份【2019-01到2019-12】
MonthRangeEnd
:
""
,
//结束月份【2019-01到2019-12】
},
DefaultValue
:
0
,
//默认值
YearList
:
[],
...
...
@@ -535,16 +554,29 @@
this
.
addMsg
.
YearStr
=
0
;
this
.
addMsg
.
MonthStr
=
0
;
this
.
addMsg
.
UnitPrice
=
0
;
this
.
addMsg
.
MonthRangeEnd
=
""
;
this
.
addMsg
.
MonthRangeStart
=
""
;
},
//保存信息
SaveAirticketRules
()
{
if
(
this
.
addMsg
.
YearStr
==
0
)
{
this
.
Info
(
"请选择年份!"
);
return
;
}
if
(
this
.
addMsg
.
MonthStr
==
0
)
{
this
.
Info
(
"请选择月份!"
);
return
;
if
(
this
.
addMsg
.
ID
>
0
)
{
if
(
this
.
addMsg
.
YearStr
==
0
)
{
this
.
Info
(
"请选择年份!"
);
return
;
}
if
(
this
.
addMsg
.
MonthStr
==
0
)
{
this
.
Info
(
"请选择月份!"
);
return
;
}
}
else
{
if
(
this
.
addMsg
.
MonthRangeStart
==
""
)
{
this
.
Info
(
"请选择开始月份!"
);
return
;
}
if
(
this
.
addMsg
.
MonthRangeEnd
==
""
)
{
this
.
Info
(
"请选择结束月份!"
);
return
;
}
}
if
(
this
.
addMsg
.
UnitPrice
==
0
)
{
this
.
Info
(
"请输入提成金额!"
);
...
...
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