|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div style="width: 70%;margin: 0 auto;display:flex;justify-content: space-around">
|
|
|
+ <div style="width: 85%;margin: 0 auto;display:flex;justify-content: space-around">
|
|
|
<div style="width: 20%;height: 392px; margin-top: 60px;border: 1px solid #e7e7e7">
|
|
|
<el-menu
|
|
|
default-active="3"
|
|
@@ -63,7 +63,7 @@
|
|
|
<div style="width: 20%;">
|
|
|
<el-input placeholder="收货人" v-model="filterAll.fConsigneername"></el-input>
|
|
|
<el-input placeholder="航次" v-model="filterAll.voyidName"></el-input>
|
|
|
- <el-input placeholder="条数"></el-input>
|
|
|
+ <el-input placeholder="条数" v-model="filterAll.pageSize"></el-input>
|
|
|
</div>
|
|
|
<div style="width: 50%;">
|
|
|
<div style="display:flex;justify-content: space-between">
|
|
@@ -72,9 +72,23 @@
|
|
|
<el-input placeholder="目的港" style="width: 45%;"></el-input>
|
|
|
</div>
|
|
|
<div style="display:flex;justify-content: space-between;">
|
|
|
- <el-input placeholder="创建开始时间" style="width: 45%;" v-model="filterAll.startTime"></el-input>
|
|
|
+<!-- <el-input placeholder="创建开始时间" style="width: 45%;" v-model="filterAll.startTime"></el-input>-->
|
|
|
+ <el-date-picker
|
|
|
+ v-model="filterAll.startTime"
|
|
|
+ style="width: 45%;"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="创建开始时间">
|
|
|
+ </el-date-picker>
|
|
|
<span style="margin-top: 20px">至</span>
|
|
|
- <el-input placeholder="创建结束时间" style="width: 45%;" v-model="filterAll.endTime"></el-input>
|
|
|
+<!-- <el-input placeholder="创建结束时间" style="width: 45%;" v-model="filterAll.endTime"></el-input>-->
|
|
|
+ <el-date-picker
|
|
|
+ v-model="filterAll.endTime"
|
|
|
+ style="width: 45%;"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="创建结束时间">
|
|
|
+ </el-date-picker>
|
|
|
</div>
|
|
|
<div style="display:flex;justify-content: space-between;">
|
|
|
<el-input placeholder="单据有效期结束" style="width: 45%;"></el-input>
|
|
@@ -157,24 +171,16 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-<!-- <div style="float: right;height: 40px;padding-top: 30px;margin-right: 20px">-->
|
|
|
-<!-- <el-pagination-->
|
|
|
-<!-- @size-change="handleSizeChange"-->
|
|
|
-<!-- @current-change="handleCurrentChange"-->
|
|
|
-<!-- :current-page="currentPage4"-->
|
|
|
-<!-- :page-sizes="[100, 200, 300, 400]"-->
|
|
|
-<!-- :page-size="100"-->
|
|
|
-<!-- layout="total, sizes, prev, pager, next, jumper"-->
|
|
|
-<!-- :total="400">-->
|
|
|
-<!-- </el-pagination>-->
|
|
|
-<!-- <pagination-->
|
|
|
-<!-- v-show="total>0"-->
|
|
|
-<!-- :total="total"-->
|
|
|
-<!-- :page.sync="queryParams.pageNum"-->
|
|
|
-<!-- :limit.sync="queryParams.pageSize"-->
|
|
|
-<!-- @pagination="getList"-->
|
|
|
-<!-- />-->
|
|
|
-<!-- </div>-->
|
|
|
+ <div style="float: right;height: 40px;padding-top: 30px;margin-right: 20px">
|
|
|
+ <el-pagination
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :page-sizes="[10, 20, 50, 100]"
|
|
|
+ :page-size="10"
|
|
|
+ layout="sizes, prev, pager, next"
|
|
|
+ :total="total">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -188,14 +194,31 @@ export default {
|
|
|
return {
|
|
|
activeIndex: '1',
|
|
|
checked: true,
|
|
|
- filterAll: {},
|
|
|
+ total:0,
|
|
|
+ filterAll: {
|
|
|
+ pageNum:1,
|
|
|
+ pageSize:10
|
|
|
+ },
|
|
|
dataList: []
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ let myDate = new Date();
|
|
|
+ this.filterAll.startTime = myDate.getFullYear() + '-' + myDate.getMonth() + '-' +myDate.getDate()
|
|
|
+ console.log(this.filterAll.startTime);
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleSizeChange(val) {
|
|
|
+ console.log(`每页 ${val} 条`);
|
|
|
+ this.filterAll.pageSize = val
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ console.log(`当前页: ${val}`);
|
|
|
+ this.filterAll.pageNum = val
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
getList() {
|
|
|
request({
|
|
|
url: '/khwarehouse/warehousebills/webVersionOrderMessage',
|
|
@@ -205,6 +228,7 @@ export default {
|
|
|
.then(res => {
|
|
|
console.log(res);
|
|
|
this.dataList = res.data.rows;
|
|
|
+ this.total = res.data.total
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.log(err);
|
|
@@ -214,7 +238,7 @@ export default {
|
|
|
// console.log(fId);
|
|
|
// this.$router.push({ path: '/contractPlacing/index', query: { userId: fId } });
|
|
|
this.$router.push({
|
|
|
- path: '/contractPlacing/index',
|
|
|
+ path: '/eontractPlaCing',
|
|
|
query: { data:JSON.stringify(fId) },
|
|
|
});
|
|
|
},
|