modelInventoryCost.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <div style="box-sizing:border-box;padding:20px;">
  3. <el-card>
  4. <div slot="header">
  5. 各品类库存情况统计表
  6. </div>
  7. <el-table :data="tableData" style="width: 100%" border show-summary>
  8. <el-table-column prop="categoryName" label="类别">
  9. </el-table-column>
  10. <el-table-column sortable prop="qty" label="库存数量(套)">
  11. </el-table-column>
  12. <el-table-column sortable prop="allPrice" label="成本(万元)">
  13. </el-table-column>
  14. <el-table-column prop="" label="备注">
  15. </el-table-column>
  16. </el-table>
  17. </el-card>
  18. </div>
  19. </template>
  20. <script>
  21. import { stockManagerAllPrice } from '@/api/referCostPrice'
  22. export default {
  23. data() {
  24. return {
  25. tableData: []
  26. }
  27. },
  28. mounted() {
  29. this.getstockManagerAllPrice()
  30. },
  31. methods: {
  32. getstockManagerAllPrice(correspondIds = []) {
  33. stockManagerAllPrice({
  34. correspondId: correspondIds.join(",")
  35. }).then(res => {
  36. this.tableData = res.data
  37. console.log(res.data)
  38. })
  39. }
  40. },
  41. }
  42. </script>
  43. <style scoped lang="scss"></style>