displace_detail.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <template>
  2. <div class="detail-container">
  3. <el-page-header @back="goBack" content="详情"></el-page-header>
  4. <div id="printMe">
  5. <div class="main-title">
  6. <div class="title">订单信息</div>
  7. </div>
  8. <div class="diy-table-1">
  9. <el-row :gutter="0">
  10. <el-col :span="8" class="item">
  11. <div class="label">置换单号</div>
  12. <div class="value">{{detailData.displaceOrderId}}</div>
  13. </el-col>
  14. <el-col :span="8" class="item">
  15. <div class="label">订单日期</div>
  16. <div class="value">{{ detailData.orderDate ? detailData.orderDate.split(" ")[0] : '' }}</div>
  17. </el-col>
  18. <el-col :span="8" class="item">
  19. <div class="label">单据状态</div>
  20. <div class="value">{{ $parent.findExamineStatus(detailData.examineStatus) }}</div>
  21. </el-col>
  22. <el-col :span="8" class="item">
  23. <div class="label">原订单号</div>
  24. <div class="value">{{detailData.orderNo}}</div>
  25. </el-col>
  26. <el-col :span="8" class="item">
  27. <div class="label">订单类型</div>
  28. <div class="value">{{ $parent.findOrderType(detailData.orderType) }}</div>
  29. </el-col>
  30. <el-col :span="8" class="item">
  31. <div class="label">销售政策编号</div>
  32. <div class="value">{{detailData.policyCode}}</div>
  33. </el-col>
  34. <el-col :span="8" class="item">
  35. <div class="label">销售政策</div>
  36. <div class="value">{{detailData.policyTitle}}</div>
  37. </el-col>
  38. <el-col :span="8" class="item">
  39. <div class="label">销售政策说明</div>
  40. <div class="value">{{detailData.policyRemark}}</div>
  41. </el-col>
  42. <el-col :span="8" class="item">
  43. <div class="label">工程登录编号</div>
  44. <div class="value">{{detailData.enginRecordNo}}</div>
  45. </el-col>
  46. <el-col :span="8" class="item">
  47. <div class="label">业务员</div>
  48. <div class="value">{{detailData.serviceName}}</div>
  49. </el-col>
  50. <el-col :span="8" class="item">
  51. <div class="label">经销商编号</div>
  52. <div class="value">{{detailData.customerNumber}}</div>
  53. </el-col>
  54. <el-col :span="8" class="item">
  55. <div class="label">经销商名称</div>
  56. <div class="value">{{detailData.customerName}}</div>
  57. </el-col>
  58. <el-col :span="8" class="item">
  59. <div class="label"></div>
  60. <div class="value"></div>
  61. </el-col>
  62. <el-col :xs="24" :sm="24" :lg="24" class="item">
  63. <div class="label">备注</div>
  64. <div class="value">{{detailData.remark}}</div>
  65. </el-col>
  66. <el-col :span="8" class="item">
  67. <div class="label">申请人</div>
  68. <div class="value">{{detailData.createName}}</div>
  69. </el-col>
  70. <el-col :span="8" class="item">
  71. <div class="label">审核人</div>
  72. <div class="value">{{detailData.confirmName}}</div>
  73. </el-col>
  74. </el-row>
  75. </div>
  76. <div class="main-title">
  77. <div class="title">原订单货品信息</div>
  78. </div>
  79. <div class="table">
  80. <el-table :data="detailData.originItems" element-loading-text="Loading" border fit highlight-current-row stripe>
  81. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  82. <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="160" show-overflow-tooltip></el-table-column>
  83. <el-table-column align="center" label="产品编码" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
  84. <el-table-column align="center" label="产品旧编码" prop="materialOldNumber" min-width="160" show-overflow-tooltip></el-table-column>
  85. <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  86. <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  87. <el-table-column align="center" label="单位" prop="unit" min-width="160" show-overflow-tooltip></el-table-column>
  88. <el-table-column align="center" label="单价" prop="price" min-width="160" show-overflow-tooltip></el-table-column>
  89. <el-table-column align="center" label="数量" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
  90. <el-table-column align="center" label="订单金额" prop="totalAmount" min-width="100" show-overflow-tooltip></el-table-column>
  91. <el-table-column align="center" label="返利类型" prop="customerWalletName2" min-width="100" show-overflow-tooltip></el-table-column>
  92. <el-table-column align="center" label="返利金额" prop="rebateAmount" min-width="100" show-overflow-tooltip></el-table-column>
  93. <el-table-column align="center" label="格力折扣" prop="discAmount" min-width="100" show-overflow-tooltip></el-table-column>
  94. <el-table-column align="center" label="现金钱包" prop="customerWalletName" min-width="100" show-overflow-tooltip></el-table-column>
  95. <el-table-column align="center" label="实付金额" prop="payAmount" min-width="100" show-overflow-tooltip></el-table-column>
  96. <el-table-column align="center" label="原数量" prop="displaceQty" min-width="100" show-overflow-tooltip></el-table-column>
  97. <el-table-column align="center" label="备注" prop="remark" min-width="100" show-overflow-tooltip></el-table-column>
  98. <el-table-column align="center" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
  99. </el-table>
  100. </div>
  101. </div>
  102. <div class="main-title">
  103. <div class="title">置换货品信息</div>
  104. </div>
  105. <div class="table">
  106. <el-table :data="detailData.items" element-loading-text="Loading" border fit highlight-current-row stripe>
  107. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  108. <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="160" show-overflow-tooltip></el-table-column>
  109. <el-table-column align="center" label="产品编码" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
  110. <el-table-column align="center" label="产品旧编码" prop="materialOldNumber" min-width="160" show-overflow-tooltip></el-table-column>
  111. <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  112. <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  113. <el-table-column align="center" label="单位" prop="unit" min-width="160" show-overflow-tooltip></el-table-column>
  114. <el-table-column align="center" label="单价" prop="price" min-width="160" show-overflow-tooltip></el-table-column>
  115. <el-table-column align="center" label="数量" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
  116. <el-table-column align="center" label="订单金额" prop="totalAmount" min-width="100" show-overflow-tooltip></el-table-column>
  117. <el-table-column align="center" label="返利类型" prop="customerWalletName2" min-width="100" show-overflow-tooltip></el-table-column>
  118. <el-table-column align="center" label="返利金额" prop="rebateAmount" min-width="100" show-overflow-tooltip></el-table-column>
  119. <el-table-column align="center" label="格力折扣" prop="discAmount" min-width="100" show-overflow-tooltip></el-table-column>
  120. <el-table-column align="center" label="现金钱包" prop="customerWalletName" min-width="100" show-overflow-tooltip></el-table-column>
  121. <el-table-column align="center" label="实付金额" prop="payAmount" min-width="100" show-overflow-tooltip></el-table-column>
  122. <el-table-column align="center" label="备注" prop="remark" min-width="100" show-overflow-tooltip></el-table-column>
  123. <el-table-column align="center" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
  124. </el-table>
  125. </div>
  126. <div class="main-title">
  127. <div class="title">审批记录</div>
  128. </div>
  129. <div class="diy-table-1">
  130. <el-row :gutter="0">
  131. <el-col :span="8" class="item">
  132. <div class="label">审批人</div>
  133. <div class="value">{{detailData.salesDep}}</div>
  134. </el-col>
  135. <el-col :span="8" class="item">
  136. <div class="label">审批结果</div>
  137. <div class="value">{{detailData.salesDep}}</div>
  138. </el-col>
  139. <el-col :span="8" class="item">
  140. <div class="label">审批时间</div>
  141. <div class="value">{{detailData.salesDep}}</div>
  142. </el-col>
  143. <el-col :xs="24" :sm="24" :lg="24" class="item">
  144. <div class="label">审批说明</div>
  145. <div class="value">{{detailData.remark}}</div>
  146. </el-col>
  147. </el-row>
  148. </div>
  149. <div class="page-footer">
  150. <div class="footer" :class="classObj">
  151. <el-button type="primary" icon="el-icon-printer" v-print="printObj">打 印</el-button>
  152. <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;">
  153. <el-button slot="reference">关 闭</el-button>
  154. </el-popconfirm>
  155. </div>
  156. </div>
  157. </div>
  158. </template>
  159. <script>
  160. import print from 'vue-print-nb'
  161. import { getDetail } from "@/api/supply/displace";
  162. export default {
  163. name: 'DisplaceDetail',
  164. componentName: 'DisplaceDetail',
  165. props: [
  166. 'listItem'
  167. ],
  168. directives: {
  169. print
  170. },
  171. data() {
  172. return {
  173. printObj: {
  174. id: 'printMe'
  175. },
  176. detailData: {},
  177. }
  178. },
  179. computed: {
  180. sidebar() {
  181. return this.$store.state.app.sidebar
  182. },
  183. classObj() {
  184. return {
  185. hideSidebar: !this.sidebar.opened,
  186. openSidebar: this.sidebar.opened
  187. }
  188. },
  189. },
  190. created() {
  191. this.getDetail();
  192. },
  193. methods: {
  194. // 返回列表
  195. goBack() {
  196. this.$emit('backListFormDetail');
  197. },
  198. // 获取详情
  199. getDetail() {
  200. getDetail({ id: this.listItem.displaceOrderId }).then(res => {
  201. this.detailData = res.data;
  202. })
  203. }
  204. }
  205. }
  206. </script>
  207. <style scoped lang="scss">
  208. .detail-container {
  209. width: 100%;
  210. height: 100%;
  211. }
  212. .main-title {
  213. display: flex;
  214. justify-content: space-between;
  215. align-items: center;
  216. margin-top: 30px;
  217. height: 60px;
  218. border-bottom: 1px solid #DCDFE6;
  219. margin-bottom: 20px;
  220. .title {
  221. font-size: 16px;
  222. font-weight: 600;
  223. padding-left: 10px;
  224. }
  225. }
  226. </style>