切换导航条
此项目
正在载入...
登录
朱兆平
/
vue_cli
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
xudada
5 years ago
提交
a3f9876ab879c3c70c81440fb0d98a9d4bc532e1
1 个父辈
d689eb34
运输工具通用查询
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
38 行增加
和
43 行删除
src/api/transport.js
src/views/airtransport/bill.vue
src/views/airtransport/queryBill.vue
src/api/transport.js
查看文件 @
a3f9876
...
...
@@ -9,6 +9,7 @@ let baseUrlPrediction = 'air-server-transport/transport/prediction'
let
baseUrlConfirm
=
'air-server-transport/transport/confirm'
let
baseUrlSchedule
=
'air-server-transport/transport/schedule'
let
baseUrlLongtimeplan
=
'air-server-transport/transport/longtimeplan'
let
baseUrlBillperson
=
'air-server-transport/transport/billperson'
...
...
@@ -92,5 +93,14 @@ export const addSchedule = params => { return http.post(`${baseUrlSchedule}/addS
export
const
editSchedule
=
params
=>
{
return
http
.
put
(
`
$
{
baseUrlSchedule
}
/editSchedule`, params
)
;}
;
//查询列表
export
const
selectSchedule
=
params
=>
{
return
http
.
get
(
`
$
{
baseUrlSchedule
}
/selectSchedule`, params
)
;}
;
//查询长期计划查询列表
export
const
selectLongTimePlan
=
params
=>
{
return
http
.
get
(
`
$
{
baseUrlLongtimeplan
}
/selectLongTimePlan`, params
)
;};
\ No newline at end of file
export
const
selectLongTimePlan
=
params
=>
{
return
http
.
get
(
`
$
{
baseUrlLongtimeplan
}
/selectLongTimePlan`, params
)
;}
;
//机组人员
//新增方法
export
const
addBillPerson
=
params
=>
{
return
http
.
post
(
`
$
{
baseUrlBillperson
}
/addBillPerson`, params
)
; }
;
//删除方法
export
const
editBillPerson
=
params
=>
{
return
http
.
put
(
`
$
{
baseUrlBillperson
}
/editBillPerson`, params
)
;}
;
//查询列表
export
const
selectBillPerson
=
params
=>
{
return
http
.
get
(
`
$
{
baseUrlBillperson
}
/selectBillPerson`, params
)
;};
\ No newline at end of file
...
...
src/views/airtransport/bill.vue
查看文件 @
a3f9876
...
...
@@ -303,8 +303,9 @@ background-color: white;
.el-col{margin-right: 0px;}
</style>
<script>
import {addBill} from '../../api/transport'
const fecha = require('fecha');
import loginUserInfo from '../../api/base'
export default {
data(){
return{
...
...
@@ -338,9 +339,9 @@ background-color: white;
statusMsg:undefined,
meno:undefined,
createTime:undefined,
createBy:
undefined
,
createBy:
loginUserInfo.username
,
updateTime:undefined,
updateBy:
undefined
,
updateBy:
loginUserInfo.username
,
isDelete:undefined,
remark:undefined,
remark1:undefined,
...
...
@@ -425,9 +426,9 @@ background-color: white;
certType:undefined,
ceterNo:undefined,
createTime:undefined,
createBy:
undefined
,
createBy:
loginUserInfo.username
,
updateTime:undefined,
updateBy:
undefined
,
updateBy:
loginUserInfo.username
,
meno:undefined,
isDelete:undefined,
billsId:undefined
...
...
@@ -471,7 +472,8 @@ background-color: white;
if(response.code=='200'){
this.centerDialogVisible=true;
this.msg=response.msg;
this.$router.push({path:'/queryBill',query:{serialNo:JSON.stringify(this.bill.serialNo)}});
this.$router.push({path:'/queryBill',query:{aircraftNo:JSON.stringify(this.bill.aircraftNo),flightNo:JSON.stringify(this.bill.flightNo),
flightDate:JSON.stringify(this.bill.flightDate)}});
}else{
this.msg=response.msg;
}
...
...
src/views/airtransport/queryBill.vue
查看文件 @
a3f9876
...
...
@@ -6,7 +6,7 @@
<div class="grid-content content">单据查询</div>
</el-col>
</el-row>
<!--
搜索区域-->
<!--搜索区域-->
<el-row>
<el-form :label-position="labelPosition" :model="queryBill" :rules="rules" ref="queryBill"
label-width="130px" class="demo-ruleForm">
...
...
@@ -25,6 +25,8 @@
<el-date-picker
v-model="queryBill.flightDate"
type="date"
value-format="yyyyMMdd"
format="yyyyMMdd"
style="width:190px"
placeholder="选择日期">
</el-date-picker>
...
...
@@ -40,7 +42,7 @@
</el-col>
</el-form>
</el-row>
<!--
表单区域-->
<!--
表单区域-->
<el-row>
<el-table
:data="tableData"
...
...
@@ -59,61 +61,43 @@
</template>
</el-table-column>
<el-table-column
fixed
prop=aircraftNo"
label="航空器注册号"
width="120">
label="航空器注册号">
</el-table-column>
<el-table-column
fixed
prop="flightNo"
label="航班号"
width="80">
label="航班号">
</el-table-column>
<el-table-column
fixed
prop="flightDate"
label="航班日期"
width="150">
label="航班日期">
</el-table-column>
<el-table-column
fixed
prop="accessFlag"
label="进出港标识"
width="120">
label="进出港标识">
</el-table-column>
<el-table-column
fixed
prop="departureAirport"
label="出发港"
width="80">
label="出发港">
</el-table-column>
<el-table-column
fixed
prop="departuredatetime"
label="出发时间"
width="150">
label="出发时间">
</el-table-column>
<el-table-column
fixed
prop="arrivalAirport"
label="目的港"
width="80">
label="目的港">
</el-table-column>
<el-table-column
fixed
prop="arrivaldatetime"
label="到达时间"
width="150">
label="到达时间">
</el-table-column>
<el-table-column
fixed
prop="statusMsg"
label="海关回执"
width="150">
label="海关回执">
</el-table-column>
<el-table-column
fixed
fixed
="right"
prop=""
label="报文操作"
width="150">
...
...
@@ -122,8 +106,6 @@
size="mini"
type="success"
@click="handleEdit(scope.$index, scope.row)">查看</el-button>
</template>
<template slot-scope="scope">
<el-button
size="mini"
type="danger"
...
...
@@ -229,10 +211,11 @@
},
//获取默认值
defaultData(){
this.flightNo=JSON.parse(this.$route.query.flightNo);
this.aircraftNo=JSON.parse(this.$route.query.aircraftNo);
this.flightDate=JSON.parse(this.$route.query.flightDate);
this.accessFlag=JSON.parse(this.$route.query.accessFlag);
if(this.$route.query.aircraftNo!=null){
this.queryBill.flightNo=JSON.parse(this.$route.query.flightNo);
this.queryBill.aircraftNo=JSON.parse(this.$route.query.aircraftNo);
this.queryBill.flightDate=JSON.parse(this.$route.query.flightDate);
}
},
//编辑单据查询
handleEdit(index,row){
...
...
请
注册
或
登录
后发表评论