detailsAdpackingDrawer.vue 10 KB

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