detailsPreBookDrawer.vue 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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="tradeCountry">
  47. {{ preBookDetails.tradeCountry }}
  48. </a-form-model-item>
  49. </a-col>
  50. <a-col :md="6" :sm="8">
  51. <a-form-model-item label="运抵国别" prop="arriveInCountry">
  52. {{ preBookDetails.arriveInCountry }}
  53. </a-form-model-item>
  54. </a-col>
  55. <a-col :md="6" :sm="8">
  56. <a-form-model-item label="收货人" prop="consignee">
  57. {{ preBookDetails.consignee }}
  58. </a-form-model-item>
  59. </a-col>
  60. <a-col :md="6" :sm="8">
  61. <a-form-model-item label="收货人地址" prop="consigneeAddress">
  62. {{ preBookDetails.consigneeAddress }}
  63. </a-form-model-item>
  64. </a-col>
  65. <a-col :md="6" :sm="8">
  66. <a-form-model-item label="通知方" prop="notifyParty">
  67. {{ preBookDetails.notifyParty }}
  68. </a-form-model-item>
  69. </a-col>
  70. <a-col :md="6" :sm="8">
  71. <a-form-model-item label="通知方地址" prop="notifyPartyAddress">
  72. {{ preBookDetails.notifyPartyAddress }}
  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. >
  117. </a-table>
  118. </a-form-model>
  119. </a-spin>
  120. </a-card>
  121. </a-drawer>
  122. </div>
  123. </template>
  124. <script>
  125. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  126. import JEllipsis from '@/components/jeecg/JEllipsis'
  127. import moment from 'moment'
  128. export default {
  129. name: 'DetailsPreBookDrawer', // 详情 预托书
  130. computed: {},
  131. mixins: [JeecgListMixin],
  132. components: { JEllipsis, moment },
  133. data() {
  134. return {
  135. // 表头
  136. columns: [
  137. // {
  138. // title: '英文名称',
  139. // dataIndex: 'englishName',
  140. // width: 120,
  141. // fixed: 'left',
  142. // className: 'replacecolor'
  143. // },
  144. {
  145. title: '款号',
  146. dataIndex: 'itemNumber',
  147. width: 120,
  148. fixed: 'left',
  149. className: 'replacecolor'
  150. },
  151. {
  152. title: '小po号',
  153. dataIndex: 'smallPo',
  154. width: 120,
  155. className: 'replacecolor'
  156. },
  157. {
  158. title: '数量',
  159. dataIndex: 'total',
  160. width: 120,
  161. className: 'replacecolor'
  162. },
  163. {
  164. title: '箱数',
  165. dataIndex: 'boxNumber',
  166. width: 90,
  167. className: 'replacecolor'
  168. },
  169. {
  170. title: '毛重',
  171. dataIndex: 'totalGrossWeight',
  172. width: 120,
  173. className: 'replacecolor'
  174. },
  175. {
  176. title: '净重',
  177. dataIndex: 'totalNetWeight',
  178. width: 120,
  179. className: 'replacecolor'
  180. },
  181. {
  182. title: '体积',
  183. dataIndex: 'totalVolume',
  184. width: 160,
  185. className: 'replacecolor'
  186. },
  187. {
  188. title: '分销点',
  189. dataIndex: 'distributionPoint',
  190. width: 120,
  191. className: 'replacecolor'
  192. },
  193. {
  194. title: '集装箱代号',
  195. dataIndex: 'containerCode',
  196. width: 120,
  197. scopedSlots: { customRender: 'containerCode' },
  198. className: 'replacecolor'
  199. },
  200. {
  201. title: '集装箱号',
  202. dataIndex: 'containerNumber',
  203. width: 120,
  204. scopedSlots: { customRender: 'containerNo' },
  205. className: 'replacecolor'
  206. },
  207. {
  208. title: '单价',
  209. dataIndex: 'unitPrice',
  210. width: 120,
  211. className: 'replacecolor'
  212. },
  213. // {
  214. // title: '创建时间',
  215. // dataIndex: 'createTime',
  216. // align: 'center',
  217. // sorter: true,
  218. // customRender: text => {
  219. // return moment(text).format('YYYY-MM-DD')
  220. // }
  221. // },
  222. {
  223. title: '金额',
  224. dataIndex: 'totalPrice',
  225. width: 120,
  226. className: 'replacecolor'
  227. },
  228. {
  229. title: '预发货日期',
  230. dataIndex: 'preDeliveryDate',
  231. width: 120,
  232. className: 'replacecolor'
  233. },
  234. {
  235. title: '业务员',
  236. dataIndex: 'salesman',
  237. width: 120,
  238. className: 'replacecolor'
  239. },
  240. {
  241. title: '业务部门',
  242. dataIndex: 'salesDepartment',
  243. width: 120,
  244. className: 'replacecolor'
  245. },
  246. {
  247. title: '采购/委外订单号',
  248. dataIndex: 'spurOrSubOrder',
  249. width: 160,
  250. className: 'replacecolor'
  251. },
  252. {
  253. title: '采购/委外工厂',
  254. dataIndex: 'purchaseAboardFactory',
  255. width: 160,
  256. className: 'replacecolor'
  257. }
  258. ],
  259. data: [],
  260. loading: false, // 表格加载
  261. preBook: {},
  262. confirmLoading: false,
  263. visible: false,
  264. dateFormat: 'YYYY-MM-DD',
  265. preBookDetails: {} //主表信息
  266. }
  267. },
  268. created() {},
  269. methods: {
  270. // 抽屉 取消
  271. onClose() {
  272. this.$emit('close')
  273. this.visible = false
  274. },
  275. modalFormOk() {}
  276. },
  277. mounted() {}
  278. }
  279. </script>
  280. <style lang="less" scoped>
  281. @import '~@assets/less/common.less';
  282. @import '~@assets/less/overwriter.less';
  283. /deep/ .ant-table-thead > tr > th {
  284. text-align: center;
  285. // font-weight: 700;
  286. }
  287. /deep/ .ant-table-tbody {
  288. text-align: center;
  289. }
  290. // /deep/ th.replacecolor {
  291. // background-color: #ccc;
  292. // }
  293. // 抽屉里的card样式
  294. /deep/ .ant-drawer-content {
  295. background-color: #f0f2f5;
  296. }
  297. /deep/ .ant-drawer-body {
  298. padding: 10px;
  299. }
  300. </style>