123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <template>
- <div>
- <el-table
- :data="tableData"
- style="width: 100%"
- size="small"
- border>
- <el-table-column
- prop="billno"
- label="发货单号"
- width="180">
- <template slot-scope="scope">
- <a class="table_row_link" @click="linkDetail(scope.row)">{{scope.row.billno}}</a>
- </template>
- </el-table-column>
- <el-table-column
- prop="status"
- label="状态"
- width="90">
- </el-table-column>
- <el-table-column
- prop="sumqty"
- label="发货数量"
- width="90">
- </el-table-column>
- <el-table-column
- prop="sumamount"
- label="发货金额"
- width="90">
- </el-table-column>
- <el-table-column
- prop="billdate"
- label="发货日期"
- width="160px">
- </el-table-column>
- <el-table-column
- prop="address"
- label="备注">
- </el-table-column>
- </el-table>
- <div class="container normal-panel" style="text-align:right">
- <el-pagination
- background
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="currentPage"
- :page-sizes="[20, 50, 100, 200]"
- layout="total,sizes, prev, pager, next, jumper"
- :total="total">
- </el-pagination>
- </div>
- </div>
- </template>
- <script>
- export default {
- data () {
- return {
- tableData:[],
- param:{
- "id": 20221205111302,
- "content": {
- "sa_orderid": '',
- "pageNumber": 1,
- "pageSize": 17,
- "where": {
- "condition": ""
- }
- },
- },
- total:0,
- currentPage:0,
- }
- },
- methods:{
- async listData() {
- this.param.content.sa_orderid = this.$route.query.id
- const res = await this.$api.requested(this.param)
- this.tableData = res.data
- this.total = res.total
- this.currentPage = res.pageNumber
- },
- handleSizeChange(val) {
- this.param.pageSize = val
- this.listData()
- },
- handleCurrentChange(val) {
- this.param.pageNumber = val
- this.listData()
- },
- linkDetail (item) {
- let route = this.$route
- if (route.path !== '/taskDetails') {
- this.oldRoute = {path:route.path,query:route.query}
- this.$store.dispatch('setHistoryRouter',this.oldRoute)
- }
- this.$router.replace({path:'/dispatchdetail',query:{id:item.sa_dispatchid,rowindex:item.rowindex}})
- }
- },
- mounted () {
- this.listData()
- }
- }
- </script>
- <style>
- </style>
|