detailsAdpackingDrawer.vue 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <template>
  2. <!-- 详情 预装箱单 回显信息,有文本框-->
  3. <div id="detailsAdpackingDrawer">
  4. <a-drawer title="详情" width="89%" placement="right" :closable="true" :visible="visible" @close="handleCancel">
  5. <!-- 主表信息 展示 -->
  6. <a-card :bordered="true">
  7. <div class="table-page-search-wrapper">
  8. <a-form-model layout="inline" ref="form">
  9. <a-row :gutter="24">
  10. <a-col :md="6" :sm="8">
  11. <a-form-model-item label="订单号" prop="orderNum">
  12. {{ detailsAdpacking.orderNum }}
  13. </a-form-model-item>
  14. </a-col>
  15. <a-col :md="6" :sm="8">
  16. <a-form-model-item label="款号" prop="styleNum">
  17. {{ detailsAdpacking.itemNumber }}
  18. </a-form-model-item>
  19. </a-col>
  20. <a-col :md="6" :sm="8">
  21. <a-form-model-item label="品名" prop="name">
  22. {{ detailsAdpacking.productName }}
  23. </a-form-model-item>
  24. </a-col>
  25. <a-col :md="6" :sm="8">
  26. <a-form-model-item label="尺码范围" prop="sizeRange">
  27. {{ detailsAdpacking.sizeRange }}
  28. </a-form-model-item>
  29. </a-col>
  30. <a-col :md="6" :sm="8">
  31. <a-form-model-item label="客户" prop="customer">
  32. {{ detailsAdpacking.customer }}
  33. </a-form-model-item>
  34. </a-col>
  35. <a-col :md="6" :sm="8">
  36. <a-form-model-item label="集装箱代号" prop="containerCode">
  37. {{ detailsAdpacking.containerCode }}
  38. </a-form-model-item>
  39. </a-col>
  40. <a-col :md="6" :sm="8">
  41. <a-form-model-item label="集装箱号" prop="containerNumber">
  42. {{ detailsAdpacking.containerNumber }}
  43. </a-form-model-item>
  44. </a-col>
  45. <a-col :md="6" :sm="8">
  46. <a-form-model-item label="备注" prop="aa">
  47. {{ detailsAdpacking.aa }}
  48. </a-form-model-item>
  49. </a-col>
  50. <a-col :md="6" :sm="8">
  51. <a-form-model-item label="成衣工厂" prop="garmentFactory">
  52. {{ detailsAdpacking.garmentFactory }}
  53. </a-form-model-item>
  54. </a-col>
  55. </a-row>
  56. </a-form-model>
  57. </div>
  58. </a-card>
  59. <!-- 子表 ipagination-->
  60. <a-card :bordered="true" style="margin:10px 0">
  61. <a-spin :spinning="confirmLoading">
  62. <a-form-model ref="formRef">
  63. <a-table
  64. bordered
  65. rowKey="id"
  66. :columns="columns"
  67. :data-source="data"
  68. :loading="loading"
  69. :pagination="false"
  70. :scroll="{ x: 1500 }"
  71. @change="handleTableChange"
  72. >
  73. </a-table>
  74. </a-form-model>
  75. </a-spin>
  76. </a-card>
  77. </a-drawer>
  78. </div>
  79. </template>
  80. <script>
  81. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  82. import JEllipsis from '@/components/jeecg/JEllipsis'
  83. export default {
  84. name: 'DetailsAdpackingDrawer', // 详情
  85. mixins: [JeecgListMixin],
  86. components: { JEllipsis },
  87. data() {
  88. let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
  89. return {
  90. // 表头
  91. columns: [
  92. {
  93. title: '账套',
  94. dataIndex: 'accountSet',
  95. width: 120,
  96. fixed: 'left',
  97. className: 'replacecolor'
  98. },
  99. {
  100. title: '成衣工厂',
  101. dataIndex: 'garmentFactory',
  102. width: 120,
  103. fixed: 'left',
  104. className: 'replacecolor'
  105. },
  106. {
  107. title: 'HOD',
  108. dataIndex: 'hod',
  109. width: 120,
  110. fixed: 'left',
  111. className: 'replacecolor'
  112. },
  113. {
  114. title: 'STYLE NO.',
  115. dataIndex: 'styleNo',
  116. width: 120,
  117. className: 'replacecolor'
  118. },
  119. {
  120. title: 'PO NO.',
  121. dataIndex: 'poNo',
  122. width: 120,
  123. className: 'replacecolor'
  124. },
  125. {
  126. title: 'ITEM NO./SKU NO./UPC NO./PACKS CODE',
  127. dataIndex: 'itemNoSoon',
  128. width: 340,
  129. className: 'replacecolor'
  130. },
  131. {
  132. title: '分销点/DC/LABEL',
  133. dataIndex: 'dcLabel',
  134. width: 180,
  135. className: 'replacecolor'
  136. },
  137. {
  138. title: 'PREPACK SKU',
  139. dataIndex: 'prepackSku',
  140. width: 140,
  141. className: 'replacecolor'
  142. },
  143. {
  144. title: 'S',
  145. dataIndex: 's',
  146. width: 120,
  147. className: 'replacecolor'
  148. },
  149. {
  150. title: 'M',
  151. dataIndex: 'm',
  152. width: 120,
  153. className: 'replacecolor'
  154. },
  155. {
  156. title: 'L',
  157. dataIndex: 'l',
  158. width: 120,
  159. className: 'replacecolor'
  160. },
  161. {
  162. title: 'XL',
  163. dataIndex: 'xl',
  164. width: 120,
  165. className: 'replacecolor'
  166. },
  167. {
  168. title: 'XXL',
  169. dataIndex: 'xxl',
  170. width: 120,
  171. className: 'replacecolor'
  172. },
  173. {
  174. title: '3XL',
  175. dataIndex: 'xxxl',
  176. width: 120,
  177. className: 'replacecolor'
  178. },
  179. {
  180. title: '启始箱号',
  181. dataIndex: ' inceptionBoxNo.',
  182. width: 120,
  183. className: 'replacecolor'
  184. },
  185. {
  186. title: '结束箱号',
  187. dataIndex: 'endBoxNo.',
  188. width: 140,
  189. className: 'replacecolor'
  190. },
  191. {
  192. title: '颜色(中英文)',
  193. dataIndex: 'colorChUsa',
  194. width: 140,
  195. customRender: t => ellipsis(t),
  196. className: 'replacecolor'
  197. },
  198. {
  199. title: '配码--根据U8订单来显示',
  200. dataIndex: 'configCode',
  201. width: 140,
  202. className: 'replacecolor'
  203. },
  204. {
  205. title: '件数/箱',
  206. dataIndex: 'packagesBox',
  207. width: 90,
  208. className: 'replacecolor'
  209. },
  210. {
  211. title: '箱数',
  212. dataIndex: 'boxNumber',
  213. width: 140,
  214. className: 'replacecolor'
  215. },
  216. {
  217. title: '总件数',
  218. dataIndex: 'totalPackagesNum',
  219. width: 140,
  220. className: 'replacecolor'
  221. },
  222. {
  223. title: '净重/箱',
  224. dataIndex: 'suttle',
  225. width: 90,
  226. className: 'replacecolor'
  227. },
  228. {
  229. title: '总净重',
  230. dataIndex: 'totalNetWeight',
  231. width: 140,
  232. className: 'replacecolor'
  233. },
  234. {
  235. title: '毛重/箱',
  236. dataIndex: 'roughWeight',
  237. width: 120,
  238. className: 'replacecolor'
  239. },
  240. {
  241. title: '总毛重',
  242. dataIndex: 'totalGrossWeight',
  243. width: 140,
  244. className: 'replacecolor'
  245. },
  246. {
  247. title: '外箱长度',
  248. dataIndex: 'boxLength',
  249. width: 120,
  250. className: 'replacecolor'
  251. },
  252. {
  253. title: '外箱宽度',
  254. dataIndex: 'boxWidth',
  255. width: 140,
  256. className: 'replacecolor'
  257. },
  258. {
  259. title: '外箱高度',
  260. dataIndex: 'boxHeight',
  261. width: 140,
  262. className: 'replacecolor'
  263. },
  264. {
  265. title: '总体积',
  266. dataIndex: 'totalVolume',
  267. width: 140,
  268. className: 'replacecolor'
  269. },
  270. {
  271. title: '净净重',
  272. dataIndex: 'netNetWeight',
  273. width: 120,
  274. className: 'replacecolor'
  275. },
  276. {
  277. title: '单价',
  278. dataIndex: 'price',
  279. width: 120,
  280. className: 'replacecolor'
  281. },
  282. {
  283. title: '总价',
  284. dataIndex: 'totalPrice',
  285. width: 120,
  286. className: 'replacecolor'
  287. },
  288. {
  289. title: '备注(U8)',
  290. dataIndex: 'memo',
  291. width: 140,
  292. fixed: 'right',
  293. className: 'replacecolor'
  294. }
  295. ],
  296. data: [], //子表信息
  297. loading: false, // 表格加载
  298. visible: false,
  299. detailsAdpacking: {}, //主表信息
  300. confirmLoading: false
  301. }
  302. },
  303. created() {},
  304. methods: {
  305. // 抽屉 取消
  306. handleCancel() {
  307. console.log('点击抽屉取消')
  308. this.close()
  309. },
  310. // -------------------------------------
  311. close() {
  312. this.$emit('close')
  313. this.visible = false
  314. // this.$refs.form.resetFields()
  315. },
  316. aa() {},
  317. modalFormOk() {}
  318. },
  319. computed: {},
  320. mounted() {}
  321. }
  322. </script>
  323. <style lang="less" scoped>
  324. @import '~@assets/less/common.less';
  325. /deep/ .ant-table-thead > tr > th {
  326. text-align: center;
  327. // font-weight: 700;
  328. }
  329. /deep/ .ant-table-tbody {
  330. text-align: center;
  331. }
  332. // /deep/ th.replacecolor {
  333. // background-color: #ccc;
  334. // }
  335. // 抽屉里的card样式
  336. /deep/ .ant-drawer-content {
  337. background-color: #f0f2f5;
  338. }
  339. /deep/ .ant-drawer-body {
  340. padding: 10px;
  341. }
  342. </style>