mainTableExpenseUSDModal.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <!-- 成本分配 主表 美元费用支出 弹框 -->
  3. <a-modal
  4. title="美元费用支出"
  5. v-model="mainTableExpenseUSDModVis"
  6. :confirmLoading="confirmLoading"
  7. width="86%"
  8. style="top:330px;left:100px;"
  9. :footer="null"
  10. >
  11. <!-- tabel 加载 -->
  12. <a-spin :spinning="confirmLoading">
  13. <!-- 查询 -->
  14. <div class="table-page-search-wrapper">
  15. <a-form layout="inline" @keyup.enter.native="searchQuery">
  16. <a-row :gutter="24">
  17. <a-col :md="6" :sm="8">
  18. <a-form-item label="账套号">
  19. <a-input placeholder="请输入账套号" v-model="queryParam.setNo"></a-input>
  20. </a-form-item>
  21. </a-col>
  22. <a-col :md="6" :sm="8">
  23. <a-form-item label="供应商">
  24. <a-input placeholder="请输入供应商" v-model="queryParam.supplier"></a-input>
  25. </a-form-item>
  26. </a-col>
  27. <!-- 重置 -->
  28. <a-col :md="6" :sm="8">
  29. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  30. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  31. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  32. <a @click="handleToggleSearch" style="margin-left: 8px">
  33. {{ toggleSearchStatus ? '收起' : '展开' }}
  34. <a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
  35. </a>
  36. </span>
  37. </a-col>
  38. </a-row>
  39. </a-form>
  40. </div>
  41. <!-- table -->
  42. <div>
  43. <a-table
  44. bordered
  45. :loading="loading"
  46. :columns="mainTableExpenseUSDColumns"
  47. :data-source="mainTableExpenseUSDData"
  48. :pagination="false"
  49. >
  50. </a-table>
  51. <!-- 返回 -->
  52. <a-row style="marginTop:20px;">
  53. <a-col :md="24" :sm="12">
  54. <span style="float: right;" class="table-operator">
  55. <a-button type="primary" @click="backCostAllocationTable" icon="rollback">返回</a-button>
  56. </span>
  57. </a-col>
  58. </a-row>
  59. </div>
  60. </a-spin>
  61. </a-modal>
  62. </template>
  63. <script>
  64. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  65. import JEllipsis from '@/components/jeecg/JEllipsis'
  66. export default {
  67. name: 'MainTableExpenseUSDModVis', // 成本分配统计 主表 美元费用支出
  68. mixins: [JeecgListMixin],
  69. components: { JEllipsis },
  70. data() {
  71. return {
  72. loading: false, // 表格加载
  73. // orderDataform: this.$form.createForm(this),
  74. confirmLoading: false,
  75. mainTableExpenseUSDModVis: false,
  76. // 表头
  77. mainTableExpenseUSDColumns: [
  78. {
  79. title: '账套号',
  80. dataIndex: 'setNo',
  81. width: 120,
  82. className: 'replacecolor'
  83. },
  84. {
  85. title: '项目',
  86. dataIndex: 'project',
  87. width: 120,
  88. className: 'replacecolor'
  89. },
  90. {
  91. title: '金额',
  92. dataIndex: 'money',
  93. width: 120,
  94. className: 'replacecolor'
  95. },
  96. {
  97. title: '供应商',
  98. dataIndex: 'supplier',
  99. width: 120,
  100. className: 'replacecolor'
  101. }
  102. ],
  103. mainTableExpenseUSDData: [{}, {}],
  104. // 查询条件
  105. queryParam: {
  106. setNo: '', // 账套号
  107. supplier: '' // 供应商
  108. }
  109. }
  110. },
  111. // 接收父组件 方法
  112. props: {
  113. father: {
  114. type: Function,
  115. default: null
  116. }
  117. },
  118. created() {},
  119. methods: {
  120. // 返回
  121. backCostAllocationTable() {
  122. console.log('返回成本分配统计表')
  123. // this.$router.push('fabricLoss-table')
  124. // this.invoiceNumModVis = false
  125. this.close()
  126. },
  127. // 弹框查询按钮
  128. searchQuery() {},
  129. // 重置
  130. searchReset() {
  131. console.log('美元重置查询条件')
  132. this.queryParam = {}
  133. // this.queryParam.setNo = ''
  134. // this.queryParam.supplier = ''
  135. // this.getShipmentList()
  136. },
  137. close() {
  138. this.$emit('close')
  139. this.mainTableExpenseUSDModVis = false
  140. }
  141. }
  142. }
  143. </script>
  144. <style lang="less" scoped>
  145. @import '~@assets/less/common.less';
  146. @import '~@assets/less/overwriter.less';
  147. /deep/ .ant-table-thead > tr > th {
  148. text-align: center;
  149. // font-weight: 700;
  150. }
  151. /deep/ .ant-table-tbody {
  152. text-align: center;
  153. }
  154. // /deep/ th.replacecolor {
  155. // background-color: #ccc;
  156. // }
  157. </style>