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
55f322f1
Commit
55f322f1
authored
Mar 18, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
航班修改
parent
570ad2e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
61 deletions
+91
-61
flightChild.vue
src/components/Ticketing/flightChild.vue
+91
-61
No files found.
src/components/Ticketing/flightChild.vue
View file @
55f322f1
...
...
@@ -110,7 +110,7 @@
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
@
click=
"outerVisible = true,editVisible = false"
/>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
@
click=
"outerVisible = true,editVisible = false"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"删除"
@
click=
"PostDeleteArray()"
/>
</li>
...
...
@@ -138,7 +138,7 @@
<td>
<el-row>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_edit')"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"editVisible = true,outerVisible=false"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"editVisible = true,outerVisible=false
,ClickItem(item)
"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_edit')"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"DeleteSingleChild(item)"
></el-button>
...
...
@@ -156,14 +156,14 @@
<el-dialog
custom-class=
'flightAddCompany'
title=
"新增效期"
:visible
.
sync=
"outerVisible"
center
>
<el-form>
<div
class=
"flightDateSearch"
>
日期:
<el-date-picker
clearable
class=
"w135"
v-model=
"PostData.StartDate"
type=
"date"
:picker-options=
"beforeCheck"
value-format=
"yyyy-MM-dd"
:placeholder=
"$t('admin.admin_choDate')"
></el-date-picker>
-
<el-date-picker
clearable
class=
"w135"
v-model=
"PostData.EndDate"
type=
"date"
:picker-options=
"afterCheck"
value-format=
"yyyy-MM-dd"
:placeholder=
"$t('admin.admin_choDate')"
></el-date-picker>
<el-select
v-model=
"PostData.UpdateType"
class=
"w100"
style=
"margin-top:20px;"
>
<el-option
:value=
"1"
label=
"全部"
></el-option>
<el-option
:value=
"2"
label=
"星期"
></el-option>
</el-select>
日期:
<el-date-picker
clearable
class=
"w135"
v-model=
"PostData.StartDate"
type=
"date"
:picker-options=
"beforeCheck"
value-format=
"yyyy-MM-dd"
:placeholder=
"$t('admin.admin_choDate')"
></el-date-picker>
-
<el-date-picker
clearable
class=
"w135"
v-model=
"PostData.EndDate"
type=
"date"
:picker-options=
"afterCheck"
value-format=
"yyyy-MM-dd"
:placeholder=
"$t('admin.admin_choDate')"
></el-date-picker>
<el-select
v-model=
"PostData.UpdateType"
class=
"w100"
style=
"margin-top:20px;"
>
<el-option
:value=
"1"
label=
"全部"
></el-option>
<el-option
:value=
"2"
label=
"星期"
></el-option>
</el-select>
</div>
<table
class=
"flightChildTable"
style=
"border-collapse: collapse;text-align:left;"
>
<tr>
...
...
@@ -174,7 +174,7 @@
<el-input
class=
"w135"
v-model=
"subItem.CArrivalTime"
onkeyup=
"value=value.replace(/[^\d^\:]+/g,'')"
></el-input>
</div>
<div
v-if=
"PostData.UpdateType==2"
class=
"FweekList"
v-for=
"subItem in dateObj"
>
<el-checkbox
v-model=
'subItem.CheckStatus'
>
{{
subItem
.
WeekDayStr
}}
</el-checkbox>
<el-checkbox
v-model=
'subItem.CheckStatus'
>
{{
subItem
.
WeekDayStr
}}
</el-checkbox>
<el-input
class=
"w135"
v-model=
"subItem.CDepartTime"
onkeyup=
"value=value.replace(/[^\d^\:]+/g,'')"
></el-input>
<el-input
class=
"w135"
v-model=
"subItem.CArrivalTime"
onkeyup=
"value=value.replace(/[^\d^\:]+/g,'')"
></el-input>
</div>
...
...
@@ -191,24 +191,21 @@
<el-dialog
custom-class=
'flightAddCompany'
title=
"修改效期"
:visible
.
sync=
"editVisible"
center
>
<el-form>
<div
class=
"flightDateSearch"
>
日期:
<el-date-picker
clearable
class=
"w135"
type=
"date"
value-format=
"yyyy-MM-dd"
disabled
:placeholder=
"$t('admin.admin_choDate')"
></el-date-picker>
-
<el-date-picker
clearable
class=
"w135"
type=
"date"
value-format=
"yyyy-MM-dd"
disabled
:placeholder=
"$t('admin.admin_choDate')"
></el-date-picker>
日期:
{{
UpdateMsg
.
FDate
}}
</div>
<table
class=
"flightChildTable"
style=
"border-collapse: collapse;text-align:left;"
>
<tr>
<td>
<div
class=
"FweekList"
>
<span>
全部
</span>
<el-input
class=
"w135"
onkeyup=
"value=value.replace(/[^\d^\:]+/g,'')"
></el-input>
<el-input
class=
"w135"
onkeyup=
"value=value.replace(/[^\d^\:]+/g,'')"
></el-input>
<el-input
class=
"w135"
onkeyup=
"value=value.replace(/[^\d^\:]+/g,'')"
v-model=
"UpdateMsg.CDepartTime"
></el-input>
<el-input
class=
"w135"
onkeyup=
"value=value.replace(/[^\d^\:]+/g,'')"
v-model=
"UpdateMsg.CArrivalTime"
></el-input>
</div>
</td>
</tr>
</table>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"normalBtn"
type=
"primary"
@
click=
""
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"
UpdateFlightChild()
"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"editVisible = false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
</div>
</el-dialog>
...
...
@@ -299,6 +296,12 @@
CheckStatus
:
false
}
],
UpdateMsg
:
{
ID
:
0
,
FDate
:
""
,
CDepartTime
:
""
,
CArrivalTime
:
""
},
beforeCheck
:
{
disabledDate
:
time
=>
{
...
...
@@ -357,59 +360,59 @@
var
isSubmit
=
true
;
if
(
this
.
PostData
.
UpdateType
==
1
)
{
this
.
PostData
.
SubList
.
push
(
this
.
dateObj2
[
0
]);
if
(
this
.
PostData
.
StartDate
==
''
)
{
this
.
Error
(
'请选择开始日期'
);
return
;
if
(
this
.
PostData
.
StartDate
==
''
)
{
this
.
Error
(
'请选择开始日期'
);
return
;
}
if
(
this
.
PostData
.
EndDate
==
''
)
{
this
.
Error
(
'请选择结束日期'
);
return
;
if
(
this
.
PostData
.
EndDate
==
''
)
{
this
.
Error
(
'请选择结束日期'
);
return
;
}
if
(
this
.
dateObj2
[
0
].
CDepartTime
==
''
)
{
this
.
Error
(
'请填写出发时间'
);
return
;
if
(
this
.
dateObj2
[
0
].
CDepartTime
==
''
)
{
this
.
Error
(
'请填写出发时间'
);
return
;
}
if
(
this
.
dateObj2
[
0
].
CArrivalTime
==
''
)
{
this
.
Error
(
'请填写到达时间'
);
return
;
if
(
this
.
dateObj2
[
0
].
CArrivalTime
==
''
)
{
this
.
Error
(
'请填写到达时间'
);
return
;
};
}
else
{
this
.
dateObj
.
forEach
(
item
=>
{
if
(
item
.
CheckStatus
)
{
this
.
PostData
.
SubList
.
push
(
item
);
if
(
this
.
PostData
.
StartDate
==
''
)
{
this
.
Error
(
'请选择开始日期'
);
isSubmit
=
false
;
}
if
(
this
.
PostData
.
EndDate
==
''
)
{
this
.
Error
(
'请选择结束日期'
);
isSubmit
=
false
;
}
if
(
item
.
CDepartTime
==
''
)
{
this
.
Error
(
'请填写周'
+
item
.
WeekDayStr
+
'开始时间'
);
isSubmit
=
false
;
}
if
(
item
.
CArrivalTime
==
''
)
{
this
.
Error
(
'请填写周'
+
item
.
WeekDayStr
+
'到达时间'
);
isSubmit
=
false
;
}
}
else
{
if
(
this
.
PostData
.
StartDate
==
''
)
{
this
.
Error
(
'请选择开始日期'
);
isSubmit
=
false
;
}
if
(
this
.
PostData
.
EndDate
==
''
)
{
this
.
Error
(
'请选择结束日期'
);
isSubmit
=
false
;
}
if
(
this
.
PostData
.
SubList
.
length
==
0
)
{
this
.
Error
(
'请选择星期'
);
isSubmit
=
false
;
}
this
.
PostData
.
SubList
.
push
(
item
);
if
(
this
.
PostData
.
StartDate
==
''
)
{
this
.
Error
(
'请选择开始日期'
);
isSubmit
=
false
;
}
if
(
this
.
PostData
.
EndDate
==
''
)
{
this
.
Error
(
'请选择结束日期'
);
isSubmit
=
false
;
}
if
(
item
.
CDepartTime
==
''
)
{
this
.
Error
(
'请填写周'
+
item
.
WeekDayStr
+
'开始时间'
);
isSubmit
=
false
;
}
if
(
item
.
CArrivalTime
==
''
)
{
this
.
Error
(
'请填写周'
+
item
.
WeekDayStr
+
'到达时间'
);
isSubmit
=
false
;
}
}
else
{
if
(
this
.
PostData
.
StartDate
==
''
)
{
this
.
Error
(
'请选择开始日期'
);
isSubmit
=
false
;
}
if
(
this
.
PostData
.
EndDate
==
''
)
{
this
.
Error
(
'请选择结束日期'
);
isSubmit
=
false
;
}
if
(
this
.
PostData
.
SubList
.
length
==
0
)
{
this
.
Error
(
'请选择星期'
);
isSubmit
=
false
;
}
}
});
}
if
(
isSubmit
)
{
if
(
isSubmit
)
{
this
.
apipost
(
"flight_get_SetFlightChild"
,
this
.
PostData
,
...
...
@@ -470,6 +473,33 @@
err
=>
{}
);
});
},
//点击航班信息
ClickItem
(
item
)
{
this
.
UpdateMsg
.
ID
=
item
.
ID
;
this
.
UpdateMsg
.
FDate
=
item
.
FDateStr
;
this
.
UpdateMsg
.
CDepartTime
=
item
.
CDepartTime
;
this
.
UpdateMsg
.
CArrivalTime
=
item
.
CArrivalTime
;
},
//更新航班信息
UpdateFlightChild
()
{
this
.
apipost
(
"flight_get_UpdateChildFlight"
,
this
.
UpdateMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
this
.
UpdateMsg
.
ID
=
0
;
this
.
UpdateMsg
.
FDate
=
""
;
this
.
UpdateMsg
.
CDepartTime
=
""
;
this
.
UpdateMsg
.
CArrivalTime
=
""
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
}
},
mounted
()
{
...
...
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