purchaseInQuantityModal.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <template>
  2. <a-modal
  3. title="采购入库数量"
  4. v-model="purchaseInQuantityModVis"
  5. :confirmLoading="confirmLoading"
  6. width="86%"
  7. style="top:330px;left:100px;"
  8. :footer="null"
  9. >
  10. <!-- tabel 加载 -->
  11. <a-spin :spinning="confirmLoading">
  12. <!-- 查询 -->
  13. <div class="table-page-search-wrapper">
  14. <a-form layout="inline" @keyup.enter.native="searchQuery">
  15. <a-row :gutter="24">
  16. <a-col :md="6" :sm="8">
  17. <a-form-item label="委外订单号">
  18. <a-input placeholder="请输入委外订单号" v-model="queryParam.aboardorderNum"></a-input>
  19. </a-form-item>
  20. </a-col>
  21. <a-col :md="6" :sm="8">
  22. <a-form-item label="下游委外订单号">
  23. <a-input placeholder="请输入下游委外订单号" v-model="queryParam.downAboardorderNum"></a-input>
  24. </a-form-item>
  25. </a-col>
  26. <a-col :md="6" :sm="8">
  27. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  28. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  29. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  30. <a @click="handleToggleSearch" style="margin-left: 8px">
  31. {{ toggleSearchStatus ? '收起' : '展开' }}
  32. <a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
  33. </a>
  34. </span>
  35. </a-col>
  36. </a-row>
  37. </a-form>
  38. </div>
  39. <!-- table -->
  40. <div>
  41. <a-table
  42. :loading="loading"
  43. bordered
  44. :columns="purchaseInQuantityColumns"
  45. :data-source="purchaseInQuantityData"
  46. :pagination="false"
  47. >
  48. </a-table>
  49. <!-- 导出 打印 返回 -->
  50. <a-row style="marginTop:20px;">
  51. <a-col :md="24" :sm="12">
  52. <span style="float: right;" class="table-operator">
  53. <a-button type="primary" icon="download" @click="handleExportXls('采购入库数量')">导出</a-button>
  54. <a-button type="primary" @click="print" icon="printer" style="margin:0 10px;">打印</a-button>
  55. <a-button type="primary" @click="backFabricLossTable" 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: 'PurchaseInQuantityModal', // 采购入库数量 弹框
  68. mixins: [JeecgListMixin],
  69. components: { JEllipsis },
  70. data() {
  71. return {
  72. // 表头
  73. purchaseInQuantityColumns: [
  74. {
  75. title: '批号',
  76. dataIndex: '',
  77. width: 120,
  78. key: '',
  79. className: 'replacecolor'
  80. },
  81. {
  82. title: '委外订单号',
  83. dataIndex: 'purchaseAboardOrderNum',
  84. width: 120,
  85. key: '',
  86. className: 'replacecolor'
  87. },
  88. {
  89. title: '采购入库数量',
  90. dataIndex: 'purchaseInQuantity',
  91. width: 120,
  92. key: '',
  93. className: 'replacecolor'
  94. },
  95. {
  96. title: '单个物料成本',
  97. dataIndex: 'costPerMaterial',
  98. width: 120,
  99. key: '',
  100. className: 'replacecolor'
  101. },
  102. {
  103. title: '开票数',
  104. dataIndex: 'invoicedQuantity',
  105. width: 120,
  106. key: '',
  107. className: 'replacecolor'
  108. },
  109. {
  110. title: '未开票数',
  111. dataIndex: 'notInvoicedQuantity',
  112. width: 120,
  113. key: '',
  114. className: 'replacecolor'
  115. },
  116. {
  117. title: '结算数量',
  118. dataIndex: 'isquantity',
  119. width: 120,
  120. key: '',
  121. className: 'replacecolor'
  122. },
  123. {
  124. title: '未结算数量',
  125. dataIndex: 'notIsquantity',
  126. width: 120,
  127. key: '',
  128. className: 'replacecolor'
  129. }
  130. ],
  131. purchaseInQuantityData: [{}, {}, {}],
  132. loading: false, // 表格加载
  133. // orderDataform: this.$form.createForm(this),
  134. confirmLoading: false,
  135. purchaseInQuantityModVis: false,
  136. // 查询条件
  137. queryParam: {
  138. downAboardorderNum: '', // 下游委外订单号
  139. aboardorderNum: '' // 委外订单号
  140. }
  141. }
  142. },
  143. // 接收父组件 方法
  144. props: {
  145. father: {
  146. type: Function,
  147. default: null
  148. }
  149. },
  150. created() {},
  151. methods: {
  152. // 第一行 导出
  153. handleExportXls() {},
  154. // 打印
  155. print() {},
  156. // 返回
  157. backFabricLossTable() {
  158. console.log('返回到面料损耗表')
  159. // this.$router.push('fabricLoss-table')
  160. // this.materialsOutQuantityModVis = false
  161. this.close()
  162. },
  163. // 弹框查询按钮
  164. searchQuery() {},
  165. // 重置
  166. searchReset() {
  167. this.queryParam = {}
  168. // this.getShipmentList()
  169. },
  170. close() {
  171. this.$emit('close')
  172. this.purchaseInQuantityModVis = false
  173. }
  174. }
  175. }
  176. </script>
  177. <style lang="less" scoped>
  178. @import '~@assets/less/common.less';
  179. @import '~@assets/less/overwriter.less';
  180. /deep/ .ant-table-thead > tr > th {
  181. text-align: center;
  182. // font-weight: 700;
  183. }
  184. /deep/ .ant-table-tbody {
  185. text-align: center;
  186. }
  187. // /deep/ th.replacecolor {
  188. // background-color: #ccc;
  189. // }
  190. </style>