invoiceOrder.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <div>
  3. <addorderline :sys_enterpriseid="sys_enterpriseid"></addorderline>
  4. <el-table :data="list" size="mini" border>
  5. <el-table-column prop="sonum" label="订单号"></el-table-column>
  6. <el-table-column prop="enterprisename" label="企业名称"></el-table-column>
  7. <el-table-column prop="remarks" label="备注"></el-table-column>
  8. <el-table-column label="操作" width="90">
  9. <template slot-scope="scope">
  10. <el-button size="small" type="text" @click="createDispatch(scope.row)">选择</el-button>
  11. </template>
  12. </el-table-column>
  13. </el-table>
  14. <div class="container" style="text-align:right">
  15. <el-pagination
  16. background
  17. small
  18. @size-change="handleSizeChange"
  19. @current-change="handleCurrentChange"
  20. :current-page="currentPage"
  21. :page-sizes="[20, 50, 100, 200]"
  22. layout="total,sizes, prev, pager, next, jumper"
  23. :total="total">
  24. </el-pagination>
  25. </div>
  26. </div>
  27. </template>
  28. <script>
  29. import addorderline from './addorderline.vue'
  30. export default {
  31. props:['sys_enterpriseid'],
  32. components:{
  33. addorderline
  34. },
  35. data () {
  36. return {
  37. list:[],
  38. param:{
  39. "id": "20221217091303",
  40. "content": {
  41. "sa_invoiceapplyid":0,
  42. "where":{
  43. "condition":""
  44. }
  45. }
  46. },
  47. list:[],
  48. total:0,
  49. currentPage:0
  50. }
  51. },
  52. methods:{
  53. async listData () {
  54. this.param.content.sa_invoiceapplyid = this.$route.query.id
  55. const res = await this.$api.requested(this.param)
  56. this.list = res.data
  57. this.total = res.total
  58. this.currentPage = res.pageNumber
  59. },
  60. handleSizeChange(val) {
  61. // console.log(`每页 ${val} 条`);
  62. this.param.content.pageSize = val
  63. this.listData()
  64. },
  65. handleCurrentChange(val) {
  66. // console.log(`当前页: ${val}`);
  67. this.param.content.pageNumber = val
  68. this.listData()
  69. },
  70. },
  71. mounted () {
  72. this.listData()
  73. }
  74. }
  75. </script>
  76. <style>
  77. </style>