packingList-overissue-table.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <!-- 装箱单超发报表 -->
  3. <div id="packingList-overissue-table">
  4. <!-- 查询 -->
  5. <a-card :bordered="false">
  6. <div class="table-page-search-wrapper">
  7. <a-form layout="inline" @keyup.enter.native="searchQuery">
  8. <a-row :gutter="24">
  9. <a-col :md="6" :sm="8">
  10. <a-form-item label="订单号">
  11. <a-input placeholder="请输入订单号" v-model="queryParam.orderNum"></a-input>
  12. </a-form-item>
  13. </a-col>
  14. <a-col :md="6" :sm="8">
  15. <a-form-item label="小po">
  16. <a-input placeholder="请输入小po" v-model="queryParam.smallPo"></a-input>
  17. </a-form-item>
  18. </a-col>
  19. <a-col :md="6" :sm="8">
  20. <a-form-item label="存货名称">
  21. <a-input placeholder="请输入存货名称" v-model="queryParam.inventoryName"></a-input>
  22. </a-form-item>
  23. </a-col>
  24. <a-col :md="6" :sm="8">
  25. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  26. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  27. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  28. <a @click="handleToggleSearch" style="margin-left: 8px">
  29. {{ toggleSearchStatus ? '收起' : '展开' }}
  30. <a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
  31. </a>
  32. </span>
  33. </a-col>
  34. </a-row>
  35. </a-form>
  36. </div>
  37. </a-card>
  38. <!-- 子表 -->
  39. <a-card :bordered="false" style=" marginTop:10px;">
  40. <a-table
  41. bordered
  42. :row-key="record => record.id"
  43. :columns="PackingListOverissueColumns"
  44. :data-source="PackingListOverissueData"
  45. :loading="loading"
  46. :pagination="ipagination"
  47. @change="handleTableChange"
  48. >
  49. </a-table>
  50. </a-card>
  51. </div>
  52. </template>
  53. <script>
  54. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  55. import JEllipsis from '@/components/jeecg/JEllipsis'
  56. // import moment from 'moment'
  57. export default {
  58. name: 'PackingListOverissueTable', // 装箱单超发报表
  59. mixins: [JeecgListMixin],
  60. components: { JEllipsis },
  61. data() {
  62. // let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
  63. return {
  64. loading: false,
  65. id: '',
  66. // 表头
  67. PackingListOverissueColumns: [
  68. {
  69. title: '订单号',
  70. dataIndex: 'orderNum',
  71. width: 120,
  72. className: 'replacecolor'
  73. },
  74. {
  75. title: '小po',
  76. dataIndex: 'smallPo',
  77. width: 130,
  78. className: 'replacecolor'
  79. },
  80. {
  81. title: '存货名称',
  82. dataIndex: 'inventoryName',
  83. width: 100,
  84. className: 'replacecolor'
  85. },
  86. {
  87. title: '数量',
  88. dataIndex: 'quantity',
  89. width: 160,
  90. className: 'replacecolor'
  91. },
  92. {
  93. title: '超出数量',
  94. dataIndex: 'styleNum',
  95. width: 120,
  96. className: 'replacecolor'
  97. }
  98. ],
  99. PackingListOverissueData: [{}],
  100. // 查询条件
  101. queryParam: {
  102. orderNum: '',
  103. smallPo: '',
  104. inventoryName: '' // 存货名称
  105. }
  106. // dateFormat: 'YYYY-MM-DD'
  107. }
  108. },
  109. created() {
  110. // this.getShipmentList() // 装箱单超发
  111. },
  112. methods: {
  113. // 查询按钮
  114. searchQuery() {
  115. // this.getAnnList() //装箱单超发
  116. },
  117. // 重置
  118. searchReset() {
  119. console.log('>>>>重置')
  120. this.queryParam = {}
  121. // this.getAnnList()
  122. },
  123. getBookTotalDetailsTable() {}
  124. // 分页、排序、筛选变化时触发
  125. // handleTableChange(pagination, filters, sorter) {
  126. // // console.log('当前页信息>>>>',pagination)
  127. // this.queryParam.pageNo = pagination.current
  128. // // this.getAnnList()
  129. // }
  130. },
  131. computed: {},
  132. mounted() {}
  133. }
  134. </script>
  135. <style lang="less" scoped>
  136. @import '~@assets/less/common.less';
  137. @import '~@assets/less/overwriter.less';
  138. /deep/ .ant-table-thead > tr > th {
  139. text-align: center;
  140. // font-weight: 700;
  141. }
  142. /deep/ .ant-table-tbody {
  143. text-align: center;
  144. }
  145. // /deep/ th.replacecolor {
  146. // background-color: #ccc;
  147. // }
  148. </style>