warehouse_book.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <div class="app-container">
  3. <el-card class="box-card">
  4. <div slot="header" class="clearfix">
  5. <span>仓库每天预约提货设置</span>
  6. </div>
  7. <!-- 列表 -->
  8. <div class="">
  9. <el-table
  10. v-loading="listLoading"
  11. :data="dataList"
  12. element-loading-text="Loading"
  13. border
  14. fit
  15. highlight-current-row
  16. stripe
  17. >
  18. <el-table-column
  19. align="center"
  20. label="序号"
  21. type="index"
  22. min-width="60"
  23. show-overflow-tooltip
  24. />
  25. <el-table-column
  26. align="center"
  27. label="仓库"
  28. prop="stockName"
  29. min-width="160"
  30. show-overflow-tooltip
  31. />
  32. <el-table-column
  33. align="center"
  34. label="预约存货类型"
  35. prop="type"
  36. min-width="160"
  37. show-overflow-tooltip
  38. />
  39. <el-table-column
  40. align="center"
  41. label="最大预约单量"
  42. prop="number"
  43. min-width="160"
  44. show-overflow-tooltip
  45. >
  46. <template slot-scope="scope">
  47. <el-input v-model="scope.row.number"></el-input>
  48. </template>
  49. </el-table-column>
  50. <el-table-column
  51. align="center"
  52. label="最大预约台数"
  53. prop="towerNum"
  54. min-width="160"
  55. show-overflow-tooltip
  56. >
  57. <template slot-scope="scope">
  58. <el-input v-model="scope.row.towerNum"></el-input>
  59. </template>
  60. </el-table-column>
  61. <el-table-column
  62. align="center"
  63. label="操作"
  64. min-width="160"
  65. show-overflow-tooltip
  66. >
  67. <el-button type="text" class="textColor" @click="editFn"
  68. >编辑</el-button
  69. >
  70. <el-button type="text" class="textColor">删除</el-button>
  71. </el-table-column>
  72. </el-table>
  73. </div>
  74. </el-card>
  75. </div>
  76. </template>
  77. <script>
  78. import Mixin from "@/mixin/index";
  79. import { getListReserve } from "@/api/basic_data/warehouse";
  80. export default {
  81. mixins: [Mixin],
  82. data() {
  83. return {
  84. dataList: [
  85. {
  86. num: "1",
  87. store: "万豪仓",
  88. type: "家用空调",
  89. maxNum: "1111",
  90. maxSets: "12331",
  91. },
  92. {
  93. num: "1",
  94. store: "万豪仓",
  95. type: "家用空调",
  96. maxNum: "1111",
  97. maxSets: "",
  98. },
  99. {
  100. num: "1",
  101. store: "万豪仓",
  102. type: "家用空调",
  103. maxNum: "1111",
  104. maxSets: "",
  105. },
  106. {
  107. num: "1",
  108. store: "万豪仓",
  109. type: "家用空调",
  110. maxNum: "1111",
  111. maxSets: "",
  112. },
  113. ],
  114. };
  115. },
  116. created() {
  117. this.getList();
  118. },
  119. methods: {
  120. getList() {
  121. this.listLoading = true;
  122. let params = {
  123. pageNum: this.currentPage,
  124. pageSize: this.pageSize,
  125. };
  126. getListReserve(params).then((res) => {
  127. this.dataList = res.data.records;
  128. this.listTotal = res.data.total;
  129. this.listLoading = false;
  130. console.log(this.dataList, 1233);
  131. });
  132. },
  133. },
  134. };
  135. </script>
  136. <style lang="scss" scoped></style>