subcomponent-rate.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <a-modal
  3. title="子件齐套率"
  4. v-model="SubcomponentModVis"
  5. :confirmLoading="confirmLoading"
  6. width="86%"
  7. :footer="null"
  8. >
  9. <!-- tabel 加载 -->
  10. <a-spin :spinning="confirmLoading">
  11. <!-- table -->
  12. <div>
  13. <a-table
  14. ref="tableRef"
  15. :loading="loading"
  16. bordered
  17. :columns="SubcomponentRateCloumns"
  18. :data-source="SubcomponentRateData"
  19. :pagination="false"
  20. :scroll="{ y: 500,x:1500 }"
  21. :footer="showTotal"
  22. >
  23. </a-table>
  24. <!-- 导出 打印 返回 -->
  25. <a-row style="marginTop:20px;">
  26. <a-col :md="24" :sm="12">
  27. <span style="float: right;" class="table-operator">
  28. <a-button type="primary" @click="backDetailTable" icon="rollback">关闭</a-button>
  29. </span>
  30. </a-col>
  31. </a-row>
  32. </div>
  33. </a-spin>
  34. </a-modal>
  35. </template>
  36. <script>
  37. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  38. import JEllipsis from '@/components/jeecg/JEllipsis'
  39. export default {
  40. name: 'SubcomponentRate', // 明细 弹框
  41. mixins: [JeecgListMixin],
  42. components: { JEllipsis},
  43. data() {
  44. return {
  45. // 表头
  46. SubcomponentRateCloumns: [
  47. {
  48. title: '标准用量',
  49. dataIndex: 'quantityUsed',
  50. width: 80,
  51. className: 'replacecolor',
  52. },
  53. {
  54. title: '应领数据合计',
  55. dataIndex: 'totalQuantityReceivable',
  56. width: 80,
  57. className: 'replacecolor',
  58. },
  59. {
  60. title: '已领数据合计',
  61. dataIndex: 'totalCollectedQuantity',
  62. width: 80,
  63. className: 'replacecolor',
  64. },
  65. {
  66. title: '颜色',
  67. dataIndex: 'clour',
  68. width: 80,
  69. className: 'replacecolor',
  70. },
  71. {
  72. title: '克重',
  73. dataIndex: 'gramWeight',
  74. width: 80,
  75. className: 'replacecolor',
  76. },
  77. {
  78. title: '尺码',
  79. dataIndex: 'size',
  80. width: 80,
  81. className: 'replacecolor',
  82. },
  83. {
  84. title: '门幅',
  85. dataIndex: 'doorframe',
  86. width: 80,
  87. className: 'replacecolor',
  88. },
  89. {
  90. title: '齐套率',
  91. dataIndex: 'setRate',
  92. width: 80,
  93. className: 'replacecolor',
  94. },
  95. ],
  96. SubcomponentRateData: [
  97. ],
  98. loading: false, // 表格加载
  99. confirmLoading: false,
  100. SubcomponentModVis: false,
  101. }
  102. },
  103. methods: {
  104. backDetailTable(){
  105. this.SubcomponentModVis = false
  106. }
  107. }
  108. }
  109. </script>
  110. <style lang="less" scoped>
  111. @import '~@assets/less/common.less';
  112. @import '~@assets/less/overwriter.less';
  113. /deep/ .ant-table-thead > tr > th {
  114. text-align: center;
  115. // font-weight: 700;
  116. }
  117. /deep/ .ant-table-tbody {
  118. text-align: center;
  119. }
  120. /deep/ .ant-table-footer .ant-table-body {
  121. overflow: hidden !important;
  122. }
  123. // /deep/ th.replacecolor {
  124. // background-color: #ccc;
  125. // }
  126. </style>