detail.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <template>
  2. <div class="bulkWarehousingOrderDetail-wrap">
  3. <a-page-header :ghost="false" @back="handleBack" >
  4. <!-- 自定义的二级文字标题 -->
  5. <template slot="subTitle">
  6. <a id="bulkWarehousingOrderDetail-back-btn" href="javascript:;" @click="handleBack">返回列表</a>
  7. </template>
  8. <!-- 操作区,位于 title 行的行尾 -->
  9. <template slot="extra">
  10. <a-button key="2" id="bulkWarehousingOrderDetail-preview-btn">打印预览</a-button>
  11. <a-button key="1" type="primary" id="bulkWarehousingOrderDetail-print-btn">快速打印</a-button>
  12. </template>
  13. </a-page-header>
  14. <!-- 内容 -->
  15. <a-page-header title="单号:CG2021010100001" >
  16. <template slot="tags">
  17. <a-tag color="blue">审核通过</a-tag>
  18. <a-tag color="orange">未结算</a-tag>
  19. </template>
  20. </a-page-header>
  21. <!-- 基础信息 -->
  22. <a-card size="small" :bordered="false" class="bulkWarehousingOrderDetail-cont">
  23. <a-collapse :activeKey="['1']">
  24. <a-collapse-panel key="1" header="基础信息">
  25. <a-descriptions :column="3">
  26. <a-descriptions-item label="供应商">箭冠营销中心</a-descriptions-item>
  27. <a-descriptions-item label="支付方式">箭冠营销中心</a-descriptions-item>
  28. <a-descriptions-item label="采购员工">箭冠营销中心</a-descriptions-item>
  29. <a-descriptions-item label="收货人">箭冠营销中心</a-descriptions-item>
  30. <a-descriptions-item label="收货地址">箭冠营销中心</a-descriptions-item>
  31. </a-descriptions>
  32. </a-collapse-panel>
  33. </a-collapse>
  34. </a-card>
  35. <!-- 产品详情 -->
  36. <a-card size="small" :bordered="false" class="bulkWarehousingOrderDetail-cont">
  37. <a-collapse :activeKey="['1']">
  38. <a-collapse-panel key="1" header="产品详情">
  39. <!-- 总计 -->
  40. <a-alert type="info" showIcon style="margin-bottom:15px">
  41. <div slot="message">产品款数 <strong>6</strong> ,采购数量合计 <strong>6</strong> ,采购金额合计¥<strong>6.33</strong></div>
  42. </a-alert>
  43. <!-- 列表 -->
  44. <s-table
  45. class="sTable"
  46. ref="table"
  47. size="default"
  48. :rowKey="(record) => record.id"
  49. :columns="columns"
  50. :data="loadData"
  51. :scroll="{ x: 1060 }"
  52. bordered>
  53. <!-- 采购数量 -->
  54. <template slot="purchaseNum" slot-scope="text, record">
  55. <span>{{ record.purchaseNum }}</span>
  56. </template>
  57. <!-- 缺货数量 -->
  58. <template slot="outOfStockNum" slot-scope="text, record">
  59. <span>{{ record.outOfStockNum }}</span>
  60. </template>
  61. </s-table>
  62. </a-collapse-panel>
  63. </a-collapse>
  64. </a-card>
  65. <!-- 单据记录 -->
  66. <a-card size="small" :bordered="false" class="bulkWarehousingOrderDetail-cont">
  67. <a-collapse :activeKey="['1']">
  68. <a-collapse-panel key="1" header="单据记录">
  69. <a-timeline class="timeline-box">
  70. <a-timeline-item>2021-02-01 15:22:38 王凯 审核通过</a-timeline-item>
  71. <a-timeline-item>
  72. <p>2021-02-01 15:22:38 王凯 审核通过</p>
  73. <p class="auxiliary-txt">产品编号JA-11076P的采购数量,由【10】修改为【5】</p>
  74. <p class="auxiliary-txt">产品编号JA-11076P的采购数量,由【10】修改为【5】</p>
  75. </a-timeline-item>
  76. <a-timeline-item>Technical testing 2015-09-01</a-timeline-item>
  77. <a-timeline-item>Network problems being solved 2015-09-01</a-timeline-item>
  78. </a-timeline>
  79. </a-collapse-panel>
  80. </a-collapse>
  81. </a-card>
  82. </div>
  83. </template>
  84. <script>
  85. import { STable, VSelect } from '@/components'
  86. export default {
  87. components: { STable, VSelect },
  88. data () {
  89. return {
  90. // 表头
  91. columns: [
  92. { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
  93. { title: '产品编码', dataIndex: 'creatDate', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
  94. { title: '产品名称', dataIndex: 'custName', align: 'center', customRender: function (text) { return text || '--' } },
  95. { title: '原厂编码', dataIndex: 'totalP', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
  96. { title: '采购单价', dataIndex: 'totalNums', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  97. { title: '采购数量', scopedSlots: { customRender: 'purchaseNum' }, width: 100, align: 'center' },
  98. { title: '缺货数量', scopedSlots: { customRender: 'outOfStockNum' }, width: 100, align: 'center' },
  99. { title: '单位', dataIndex: 'mementPay', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
  100. { title: '采购金额', dataIndex: 'shDate', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
  101. ],
  102. // 加载数据方法 必须为 Promise 对象
  103. loadData: parameter => {
  104. this.disabled = true
  105. // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
  106. // const data = res.data
  107. // const no = (data.pageNo - 1) * data.pageSize
  108. // for (var i = 0; i < data.list.length; i++) {
  109. // data.list[i].no = no + i + 1
  110. // }
  111. // this.disabled = false
  112. // return data
  113. // })
  114. const _this = this
  115. return new Promise(function (resolve, reject) {
  116. const data = {
  117. pageNo: 1,
  118. pageSize: 10,
  119. list: [
  120. { id: '1', purchaseNo: 'jgqp11111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
  121. ],
  122. count: 10
  123. }
  124. const no = (data.pageNo - 1) * data.pageSize
  125. for (var i = 0; i < data.list.length; i++) {
  126. data.list[i].no = no + i + 1
  127. }
  128. _this.disabled = false
  129. resolve(data)
  130. })
  131. }
  132. }
  133. },
  134. methods: {
  135. // 返回列表
  136. handleBack () {
  137. this.$router.push({ path: '/bulkManagement/bulkWarehousingOrder/list' })
  138. }
  139. }
  140. }
  141. </script>
  142. <style lang="less">
  143. .bulkWarehousingOrderDetail-cont{
  144. margin-bottom: 15px;
  145. .timeline-box{
  146. margin-top: 30px;
  147. .auxiliary-txt{
  148. color: #808695;
  149. }
  150. }
  151. }
  152. </style>