productCassification.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!-- 产品分类 -->
  2. <!-- 订单(供应商端) -->
  3. <template>
  4. <a-card :bordered="false">
  5. <!-- 查询区域 -->
  6. <div class="table-page-search-wrapper">
  7. <a-form layout="inline" @keyup.enter.native="searchQuery">
  8. <a-row :gutter="24">
  9. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  10. <a-form-item label="供应商">
  11. <a-input placeholder="请输入" v-model="queryParam.supplierName"></a-input>
  12. </a-form-item>
  13. </a-col>
  14. <template v-if="toggleSearchStatus">
  15. </template>
  16. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  17. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  18. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  19. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  20. <a @click="handleToggleSearch" style="margin-left: 8px">
  21. {{ toggleSearchStatus ? '收起' : '展开' }}
  22. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  23. </a>
  24. </span>
  25. </a-col>
  26. </a-row>
  27. </a-form>
  28. </div>
  29. <!-- 查询区域-END -->
  30. <!-- 操作按钮区域 -->
  31. <div class="table-operator">
  32. <a-button type="primary" icon="plus">新增</a-button>
  33. </div>
  34. <!-- table区域-begin -->
  35. <div>
  36. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  37. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  38. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  39. </div>
  40. <a-table
  41. ref="table"
  42. size="middle"
  43. bordered
  44. rowKey="id"
  45. :columns="columns"
  46. :dataSource="dataSource"
  47. :pagination="ipagination"
  48. :scroll="{ x: 2500 }"
  49. :loading="loading"
  50. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  51. @change="handleTableChange"
  52. class="j-table-force-nowrap"
  53. >
  54. </a-table>
  55. </div>
  56. </a-card>
  57. </template>
  58. <script>
  59. import '@/assets/less/TableExpand.less'
  60. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  61. import { putAction,getAction,postAction,deleteAction } from '@/api/manage'
  62. export default {
  63. name: 'productCassification',
  64. mixins:[JeecgListMixin],
  65. components: {},
  66. data () {
  67. return {
  68. description: '产品分类',
  69. selectedRowKeys:[],
  70. dataSource:[],
  71. // 表头
  72. columns: [
  73. {
  74. title: '#',
  75. dataIndex: '',
  76. key:'rowIndex',
  77. width:60,
  78. align:"center",
  79. customRender:function (t,r,index) {
  80. return parseInt(index)+1;
  81. }
  82. },
  83. {
  84. title:'组织',
  85. align:"center",
  86. ellipsis: true,
  87. dataIndex: 'sourceSystem_dictText'
  88. },
  89. ],
  90. url: {
  91. // list: "/purchase/ompoOrder/listBySupplier",
  92. },
  93. }
  94. },
  95. created() {
  96. },
  97. computed: {
  98. },
  99. methods: {
  100. }
  101. }
  102. </script>
  103. <style scoped>
  104. @import '~@assets/less/common.less';
  105. </style>