outInDetailDataDrawer.vue 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <template>
  2. <!-- 出入库详细数据 -->
  3. <a-drawer
  4. title="出入库详细数据"
  5. width="70%"
  6. placement="right"
  7. :closable="true"
  8. :visible="visible"
  9. @close="onClose">
  10. <!-- 查询 -->
  11. <div class="table-page-search-wrapper">
  12. <a-form layout="inline" @keyup.enter.native="searchQuery">
  13. <a-row :gutter="24">
  14. <a-col :md="6" :sm="8">
  15. <a-form-item label="订单日期">
  16. <a-date-picker
  17. style="width: 100%"
  18. v-model="queryParam.orderData"
  19. placeholder="请选择订单日期"
  20. ></a-date-picker>
  21. </a-form-item>
  22. </a-col>
  23. <a-col :md="6" :sm="8">
  24. <a-form-item label="客户简称">
  25. <a-input v-model="queryParam.customerShortName" placeholder="请输入客户简称"></a-input>
  26. </a-form-item>
  27. </a-col>
  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. <!-- 子表 入库单 -->
  42. <div style="marginTop:30px;">
  43. <h6 class="table-title" style="float:left">入库单</h6>
  44. <!-- 导出 -->
  45. <a-row style="float:right">
  46. <a-col :md="24" :sm="12">
  47. <span style="float: right;" class="table-operator">
  48. <a-button type="primary" icon="download" @click="handleExportXls('出入库详细数据 - 入库单')">导出</a-button>
  49. </span>
  50. </a-col>
  51. </a-row>
  52. <a-table
  53. bordered
  54. rowKey="id"
  55. :loading="loading"
  56. :columns="inOrderColumns"
  57. :data-source="inOrderData"
  58. :pagination="false"
  59. :scroll="{ x: 1500 }"
  60. >
  61. </a-table>
  62. </div>
  63. <!-- 子表 出库单 -->
  64. <div style="margin:80px 0;">
  65. <h6 class="table-title" style="float:left">出库单</h6>
  66. <!-- 导出 -->
  67. <a-row style="float:right">
  68. <a-col :md="24" :sm="12">
  69. <span style="float: right;" class="table-operator">
  70. <a-button type="primary" icon="download" @click="handleExportXls('出入库详细数据 - 出库单')">导出</a-button>
  71. </span>
  72. </a-col>
  73. </a-row>
  74. <a-table
  75. bordered
  76. rowKey="id"
  77. :loading="loading"
  78. :columns="outOrderColumns"
  79. :data-source="outOrderData"
  80. :pagination="false"
  81. :scroll="{ x: 1500 }"
  82. >
  83. </a-table>
  84. </div>
  85. <!-- 子表 材料出库单-->
  86. <div>
  87. <h6 class="table-title" style="float:left">材料出库单</h6>
  88. <!-- 导出 -->
  89. <a-row style="float:right">
  90. <a-col :md="24" :sm="12">
  91. <span style="float: right;" class="table-operator">
  92. <a-button type="primary" icon="download" @click="handleExportXls('出入库详细数据 - 材料出库单')">
  93. 导出
  94. </a-button>
  95. </span>
  96. </a-col>
  97. </a-row>
  98. <a-table
  99. bordered
  100. rowKey="id"
  101. :loading="loading"
  102. :columns="materialsOutOrderColumns"
  103. :data-source="materialsOutOrderData"
  104. :pagination="false"
  105. :scroll="{ x: 1500 }"
  106. >
  107. </a-table>
  108. </div>
  109. </a-drawer>
  110. </template>
  111. <script>
  112. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  113. import JEllipsis from '@/components/jeecg/JEllipsis'
  114. import moment from 'moment'
  115. export default {
  116. name: 'SingleOrderReportDrawer',
  117. mixins: [JeecgListMixin],
  118. components: { JEllipsis, moment },
  119. data() {
  120. return {
  121. description: '出入库详细数据 抽屉',
  122. loading: false, // 表格加载
  123. visible: false, // 抽屉
  124. // 查询条件
  125. queryParam: {
  126. orderData: '', // 订单日期
  127. customerShortName: '' // 客户简称
  128. },
  129. // 入库单 表头
  130. inOrderColumns: [
  131. { title: '订单号', width: 140, dataIndex: 'orderNum', fixed: 'left', className: 'replacecolor' },
  132. {
  133. title: '供应商',
  134. width: 120,
  135. dataIndex: 'supplier',
  136. fixed: 'left',
  137. className: 'replacecolor'
  138. },
  139. { title: '出入库类型', width: 140, dataIndex: 'outInType', fixed: 'left', className: 'replacecolor' },
  140. {
  141. title: '物料编号',
  142. width: 140,
  143. dataIndex: 'materialNum',
  144. className: 'replacecolor',
  145. fixed: 'left'
  146. },
  147. { title: '物料名称', width: 200, dataIndex: 'materialName', className: 'replacecolor' },
  148. { title: '入库数量', width: 160, dataIndex: 'inQuantity', className: 'replacecolor' },
  149. { title: '批号', width: 120, dataIndex: 'batchNum', className: 'replacecolor' },
  150. { title: '颜色', width: 140, dataIndex: 'color', className: 'replacecolor' },
  151. { title: '入库单号', width: 140, dataIndex: 'inOrderNum', className: 'replacecolor' },
  152. { title: '仓库名称', width: 140, dataIndex: 'warehouseName', className: 'replacecolor' },
  153. { title: '仓库编码', width: 160, dataIndex: 'warehouseNum', className: 'replacecolor' },
  154. { title: '门幅', width: 140, dataIndex: 'larghezza', className: 'replacecolor' },
  155. { title: '入库时间', width: 100, dataIndex: 'inDate', className: 'replacecolor' },
  156. { title: '小po', width: 100, dataIndex: 'smallPo', className: 'replacecolor' },
  157. { title: '港口', width: 100, dataIndex: 'port', fixed: 'right', className: 'replacecolor' }
  158. ],
  159. inOrderData: [{}],
  160. // 出库单 表头
  161. outOrderColumns: [
  162. { title: '订单号', width: 140, dataIndex: 'orderNum', fixed: 'left', className: 'replacecolor' },
  163. {
  164. title: '客户',
  165. width: 140,
  166. dataIndex: 'customer',
  167. fixed: 'left',
  168. className: 'replacecolor'
  169. },
  170. { title: '出入库类型', width: 140, dataIndex: 'outInType', fixed: 'left', className: 'replacecolor' },
  171. {
  172. title: '物料编号',
  173. width: 140,
  174. dataIndex: 'materialNum',
  175. className: 'replacecolor',
  176. fixed: 'left'
  177. },
  178. { title: '物料名称', width: 200, dataIndex: 'materialName', className: 'replacecolor' },
  179. { title: '出库数量', width: 160, dataIndex: 'outQuantity', className: 'replacecolor' },
  180. { title: '批号', width: 140, dataIndex: 'batchNum', className: 'replacecolor' },
  181. { title: '颜色', width: 140, dataIndex: 'color', className: 'replacecolor' },
  182. { title: '入库单号', width: 140, dataIndex: 'inOrderNum', className: 'replacecolor' },
  183. { title: '仓库名称', width: 140, dataIndex: 'warehouseName', className: 'replacecolor' },
  184. { title: '仓库编码', width: 160, dataIndex: 'warehouseNum', className: 'replacecolor' },
  185. { title: '门幅', width: 140, dataIndex: 'larghezza', className: 'replacecolor' },
  186. { title: '入库时间', width: 160, dataIndex: 'inDate', className: 'replacecolor' },
  187. { title: '小po', width: 140, dataIndex: 'smallPo', className: 'replacecolor' },
  188. { title: '港口', width: 160, dataIndex: 'port', fixed: 'right', className: 'replacecolor' }
  189. ],
  190. outOrderData: [{}],
  191. // 材料出库单 表头
  192. materialsOutOrderColumns: [
  193. { title: '订单号', width: 140, dataIndex: 'orderNum', fixed: 'left', className: 'replacecolor' },
  194. {
  195. title: '物料编号',
  196. width: 140,
  197. dataIndex: 'materialNum',
  198. className: 'replacecolor',
  199. fixed: 'left'
  200. },
  201. {
  202. title: '物料名称',
  203. width: 200,
  204. dataIndex: 'materialName',
  205. className: 'replacecolor'
  206. },
  207. {
  208. title: '出库数量',
  209. width: 140,
  210. dataIndex: 'outQuantity',
  211. className: 'replacecolor'
  212. },
  213. { title: '批号', width: 140, dataIndex: 'batchNum', className: 'replacecolor' },
  214. { title: '颜色', width: 160, dataIndex: 'color', className: 'replacecolor' },
  215. { title: '入库单号', width: 160, dataIndex: 'inOrderNum', className: 'replacecolor' },
  216. { title: '仓库名称', width: 160, dataIndex: 'warehouseName', className: 'replacecolor' },
  217. { title: '仓库编码', width: 160, dataIndex: 'warehouseNum', className: 'replacecolor' },
  218. { title: '门幅', width: 150, dataIndex: 'larghezza', className: 'replacecolor' },
  219. { title: '入库时间', width: 160, dataIndex: 'inDate', fixed: 'right', className: 'replacecolor' }
  220. ],
  221. materialsOutOrderData: [{}]
  222. }
  223. },
  224. created() {},
  225. methods: {
  226. // 查询按钮
  227. searchQuery() {
  228. // 渲染订单销售列表
  229. },
  230. searchReset() {
  231. // console.log('>>>>重置')
  232. this.queryParam = {}
  233. },
  234. // 入库单 导出
  235. // inOrderExportXls() {},
  236. // // 出库单 导出
  237. // outOrderExportXls() {
  238. // console.log(' 出入库详细数据-出库单 导出')
  239. // },
  240. // // 材料出库单 导出
  241. // materialsOutOrderExportXls() {},
  242. onClose() {
  243. // 关闭抽屉
  244. this.visible = false
  245. }
  246. },
  247. computed: {},
  248. mounted() {}
  249. }
  250. </script>
  251. <style lang="less" scoped>
  252. @import '~@assets/less/common.less';
  253. @import '~@assets/less/overwriter.less';
  254. /deep/ .ant-table-thead > tr > th {
  255. text-align: center;
  256. // font-weight: 700;
  257. }
  258. /deep/ .ant-table-tbody {
  259. text-align: center;
  260. }
  261. // /deep/ th.replacecolor {
  262. // background-color: #ccc;
  263. // }
  264. </style>