Crunchy
2025-04-29 e5454b769d44a34af423bf87ac8a740bf8c20341
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<template>
  <div>
    <el-dialog title="详情" :visible.sync="viewInfoDia" width="1000px">
      <limsTable :tableData="tableData" :column="column"
                 height="600" @pagination="pagination"
                 :page="page" :tableLoading="tableLoading"></limsTable>
    </el-dialog>
  </div>
</template>
 
<script>
import limsTable from "@/components/Table/lims-table.vue";
import {selectRatesDetail} from "@/api/business/insOrderRates";
export default {
  name: '',
  // import 引入的组件需要注入到对象中才能使用
  components: { limsTable },
  data() {
    // 这里存放数据
    return {
      tableData: [],
      column: [
        { label: '委托编号', prop: 'entrustCode', width: 160 },
        {label: '检验项分类', prop: 'inspectionItemClass', width: 160},
        {label: '检验项', prop: 'inspectionItem', width: 160},
        {label: '检验子项', prop: 'inspectionItemSubclass', width: 160},
        { label: '收费标准(元/次)', prop: 'rates' },
        { label: '分组系数', prop: 'manHourGroup' },
      ],
      viewInfoDia: false,
      tableLoading: false,
      page: {
        current: 1,
        size: 10,
        total: 0
      },
      info: {}
    };
  },
  mounted() {
 
  },
  // 方法集合
  methods: {
    openDia(row) {
      this.viewInfoDia = true
      this.info = this.HaveJson(row)
      this.page.current = 1
      this.page.size = 10
      this.getList();
    },
    getList() {
      this.tableLoading = true;
      selectRatesDetail({insOrderId: this.info.id, ...this.page}).then(res => {
        this.tableLoading = false;
        this.tableData = res.data.records;
        this.page.total = res.data.total;
      }).catch(err => {
        this.tableLoading = false;
      })
    },
    pagination(page) {
      this.page.size = page.limit;
      this.getList();
    },
  }
};
</script>
 
<style scoped>
</style>