detailsPreBookDrawer.vue 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <template>
  2. <!-- 详情预托书 回显所有信息-->
  3. <div id="detailPreBookDrawer">
  4. <a-drawer title="详情" width="89%" placement="right" :closable="true" :visible="visible" @close="onClose">
  5. <!-- 主表信息 展示-->
  6. <a-card :bordered="true">
  7. <div class="table-page-search-wrapper">
  8. <a-form-model layout="inline" ref="form" :model="preBook">
  9. <a-row :gutter="24">
  10. <a-col :md="6" :sm="8">
  11. <a-form-model-item label="预托书号" prop="depositaryReceiptNo">
  12. {{ preBookDetails.depositaryReceiptNo }}
  13. </a-form-model-item>
  14. </a-col>
  15. <a-col :md="6" :sm="8">
  16. <a-form-model-item label="托书日期" prop="shippingOrderDate">
  17. {{ preBookDetails.shippingOrderDate }}
  18. </a-form-model-item>
  19. </a-col>
  20. <a-col :md="12" :sm="12">
  21. <a-form-model-item label="外销发票号码" prop="exportInvoiceNo">
  22. {{ preBookDetails.exportInvoiceNo }}
  23. </a-form-model-item>
  24. </a-col>
  25. <a-col :md="6" :sm="8">
  26. <a-form-model-item label="经营单位" prop="unitInOperation">
  27. {{ preBookDetails.unitInOperation }}
  28. </a-form-model-item>
  29. </a-col>
  30. <a-col :md="6" :sm="8">
  31. <a-form-model-item label="经营单位地址" prop="unitInOperationAddress">
  32. {{ preBookDetails.unitInOperationAddress }}
  33. </a-form-model-item>
  34. </a-col>
  35. <a-col :md="6" :sm="8">
  36. <a-form-model-item label="进仓/装柜日期" prop="latestDateOfShipment">
  37. {{ preBookDetails.latestDateOfShipment }}
  38. </a-form-model-item>
  39. </a-col>
  40. <a-col :md="6" :sm="8">
  41. <a-form-model-item label="最终船期" prop="theFinalShippingDate">
  42. {{ preBookDetails.theFinalShippingDate }}
  43. </a-form-model-item>
  44. </a-col>
  45. <a-col :md="6" :sm="8">
  46. <a-form-model-item label="收货人" prop="consignee">
  47. {{ preBookDetails.consignee }}
  48. </a-form-model-item>
  49. </a-col>
  50. <a-col :md="6" :sm="8">
  51. <a-form-model-item label="收货人地址" prop="consigneeAddress">
  52. {{ preBookDetails.consigneeAddress }}
  53. </a-form-model-item>
  54. </a-col>
  55. <a-col :md="6" :sm="8">
  56. <a-form-model-item label="通知方" prop="notifyParty">
  57. {{ preBookDetails.notifyParty }}
  58. </a-form-model-item>
  59. </a-col>
  60. <a-col :md="6" :sm="8">
  61. <a-form-model-item label="通知方地址" prop="notifyPartyAddress">
  62. {{ preBookDetails.notifyPartyAddress }}
  63. </a-form-model-item>
  64. </a-col>
  65. <a-col :md="6" :sm="8">
  66. <a-form-model-item label="贸易国别" prop="tradeCountry">
  67. {{ preBookDetails.tradeCountry }}
  68. </a-form-model-item>
  69. </a-col>
  70. <a-col :md="6" :sm="8">
  71. <a-form-model-item label="运抵国别" prop="arriveInCountry">
  72. {{ preBookDetails.arriveInCountry }}
  73. </a-form-model-item>
  74. </a-col>
  75. <a-col :md="6" :sm="8">
  76. <a-form-model-item label="出口口岸" prop="exportPort">
  77. {{ preBookDetails.exportPort }}
  78. </a-form-model-item>
  79. </a-col>
  80. <a-col :md="6" :sm="8">
  81. <a-form-model-item label="目的港" prop="destinationPort">
  82. {{ preBookDetails.destinationPort }}
  83. </a-form-model-item>
  84. </a-col>
  85. <a-col :md="6" :sm="8">
  86. <a-form-model-item label="收汇方式" prop="exchangeEarningsValue">
  87. {{ preBookDetails.exchangeEarningsValue }}
  88. </a-form-model-item>
  89. </a-col>
  90. <a-col :md="6" :sm="8">
  91. <a-form-model-item label="成交方式" prop="termsOfDeliveryvalue">
  92. {{ preBookDetails.termsOfDeliveryvalue }}
  93. </a-form-model-item>
  94. </a-col>
  95. <a-col :md="6" :sm="8">
  96. <a-form-model-item label="金额" prop="money">
  97. {{ preBookDetails.money }}
  98. </a-form-model-item>
  99. </a-col>
  100. </a-row>
  101. </a-form-model>
  102. </div>
  103. </a-card>
  104. <!--子表 -->
  105. <a-card :bordered="true" style="marginTop:10px;">
  106. <a-spin :spinning="confirmLoading">
  107. <a-form-model ref="formRef">
  108. <a-table
  109. bordered
  110. rowKey="id"
  111. :columns="columns"
  112. :data-source="data"
  113. :loading="loading"
  114. :pagination="ipagination"
  115. :scroll="{ x: 1500 }"
  116. @change="handleTableChange"
  117. >
  118. </a-table>
  119. </a-form-model>
  120. </a-spin>
  121. </a-card>
  122. </a-drawer>
  123. </div>
  124. </template>
  125. <script>
  126. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  127. import JEllipsis from '@/components/jeecg/JEllipsis'
  128. import moment from 'moment'
  129. export default {
  130. name: 'DetailsPreBookDrawer', // 详情 预托书
  131. computed: {},
  132. mixins: [JeecgListMixin],
  133. components: { JEllipsis, moment },
  134. data() {
  135. return {
  136. // 表头
  137. columns: [
  138. {
  139. title: '英文名称',
  140. dataIndex: 'englishName',
  141. width: 120,
  142. fixed: 'left',
  143. className: 'replacecolor'
  144. },
  145. {
  146. title: '款号',
  147. dataIndex: 'itemNumber',
  148. width: 120,
  149. fixed: 'left',
  150. className: 'replacecolor'
  151. },
  152. {
  153. title: '小po号',
  154. dataIndex: 'poNo',
  155. width: 120,
  156. className: 'replacecolor'
  157. },
  158. {
  159. title: '数量',
  160. dataIndex: 'total',
  161. width: 120,
  162. className: 'replacecolor'
  163. },
  164. {
  165. title: '箱数',
  166. dataIndex: 'boxNumber',
  167. width: 90,
  168. className: 'replacecolor'
  169. },
  170. {
  171. title: '毛重',
  172. dataIndex: 'totalGrossWeight',
  173. width: 120,
  174. className: 'replacecolor'
  175. },
  176. {
  177. title: '净重',
  178. dataIndex: 'totalNetWeight',
  179. width: 120,
  180. className: 'replacecolor'
  181. },
  182. {
  183. title: '体积',
  184. dataIndex: 'totalVolume',
  185. width: 160,
  186. className: 'replacecolor'
  187. },
  188. {
  189. title: '分销点',
  190. dataIndex: 'distributionPoint',
  191. width: 120,
  192. className: 'replacecolor'
  193. },
  194. {
  195. title: '集装箱代号',
  196. dataIndex: 'containerCode',
  197. width: 120,
  198. scopedSlots: { customRender: 'containerCode' },
  199. className: 'replacecolor'
  200. },
  201. {
  202. title: '集装箱号',
  203. dataIndex: 'containerNumber',
  204. width: 120,
  205. scopedSlots: { customRender: 'containerNo' },
  206. className: 'replacecolor'
  207. },
  208. {
  209. title: '单价',
  210. dataIndex: 'unitPrice',
  211. width: 120,
  212. className: 'replacecolor'
  213. },
  214. // {
  215. // title: '创建时间',
  216. // dataIndex: 'createTime',
  217. // align: 'center',
  218. // sorter: true,
  219. // customRender: text => {
  220. // return moment(text).format('YYYY-MM-DD')
  221. // }
  222. // },
  223. {
  224. title: '金额',
  225. key: 'totalPrice',
  226. width: 120,
  227. className: 'replacecolor'
  228. },
  229. {
  230. title: '预发货日期',
  231. dataIndex: 'scheduledShipDate',
  232. width: 120,
  233. className: 'replacecolor'
  234. },
  235. {
  236. title: '业务员',
  237. dataIndex: 'salesman',
  238. width: 120,
  239. className: 'replacecolor'
  240. },
  241. {
  242. title: '业务部门',
  243. dataIndex: 'operatingDepartment',
  244. width: 120,
  245. className: 'replacecolor'
  246. },
  247. {
  248. title: '采购/委外订单号',
  249. dataIndex: 'purchaseAboardOrderNum',
  250. width: 160,
  251. className: 'replacecolor'
  252. },
  253. {
  254. title: '采购/委外工厂',
  255. dataIndex: 'purchaseAboardFactory',
  256. width: 160,
  257. className: 'replacecolor'
  258. }
  259. ],
  260. data: [],
  261. loading: false, // 表格加载
  262. preBook: {},
  263. confirmLoading: false,
  264. visible: false,
  265. dateFormat: 'YYYY-MM-DD',
  266. preBookDetails: {} //主表信息
  267. }
  268. },
  269. created() {},
  270. methods: {
  271. // 抽屉 取消
  272. onClose() {
  273. this.$emit('close')
  274. this.visible = false
  275. },
  276. modalFormOk() {}
  277. },
  278. mounted() {}
  279. }
  280. </script>
  281. <style lang="less" scoped>
  282. @import '~@assets/less/common.less';
  283. @import '~@assets/less/overwriter.less';
  284. /deep/ .ant-table-thead > tr > th {
  285. text-align: center;
  286. // font-weight: 700;
  287. }
  288. /deep/ .ant-table-tbody {
  289. text-align: center;
  290. }
  291. // /deep/ th.replacecolor {
  292. // background-color: #ccc;
  293. // }
  294. // 抽屉里的card样式
  295. /deep/ .ant-drawer-content {
  296. background-color: #f0f2f5;
  297. }
  298. /deep/ .ant-drawer-body {
  299. padding: 10px;
  300. }
  301. </style>