materialFlow.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <template>
  2. <zj-page-container>
  3. <zj-page-fill>
  4. <div style="box-sizing: border-box; padding:10px;">
  5. <div>
  6. <div class="order-main">
  7. <el-row style="padding: 15px 15px 10px">
  8. <el-col :span="24">
  9. <div class="order-main-title">
  10. <span>订单编号:{{ orderDetail.esOrderId }}</span>
  11. <span>下单时间:{{ orderDetail.createTime }}</span>
  12. </div>
  13. </el-col>
  14. </el-row>
  15. <div style="width: 100%; padding: 10px 15px 15px 15px">
  16. <el-row :gutter="10">
  17. <el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
  18. <div class='info'>
  19. <div class='info_title'>卖家信息</div>
  20. <div class='info_bottom'>
  21. <div class='info_bottom_lt'>
  22. <el-image style='width: 40px; height: 40px' :src="orderDetail.sellUrl"></el-image>
  23. </div>
  24. <div class='info_bottom_rt'>
  25. <div>昵称:{{orderDetail.sellName}}</div>
  26. <div>手机号:{{orderDetail.sellMobile}}</div>
  27. <div>发布时间:{{orderDetail.sellTime}}</div>
  28. </div>
  29. </div>
  30. </div>
  31. </el-col>
  32. <el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
  33. <div class='info'>
  34. <div class='info_title'>买家信息</div>
  35. <div class='info_bottom'>
  36. <div class='info_bottom_lt'>
  37. <el-image style='width: 40px; height: 40px' :src="orderDetail.wechatUserUrl">
  38. </el-image>
  39. </div>
  40. <div class='info_bottom_rt'>
  41. <div v-if="orderDetail.wechatUserName">昵称:{{orderDetail.wechatUserName}}</div>
  42. <div v-if="orderDetail.wechatUserMobile">手机号:{{orderDetail.wechatUserMobile}}</div>
  43. <div>收货人信息:({{orderDetail.userName}}){{orderDetail.userMobile}}</div>
  44. <div>收货人地址:{{ orderDetail.province + orderDetail.city + orderDetail.area + orderDetail.street + orderDetail.receAddress }}</div>
  45. <div>支付方式:{{({WECHAT:"微信支付", CASH:"到店支付", TRANSFER:"转账支付"})[orderDetail.payType]}}</div>
  46. </div>
  47. </div>
  48. </div>
  49. </el-col>
  50. <el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
  51. <div class='info'>
  52. <div class='info_title'>物流信息</div>
  53. <div class='info_bottom'>
  54. <div class='info_bottom_rt'>
  55. <div>
  56. <el-radio-group disabled v-model="orderDetail.pickType">
  57. <el-radio label='YES'>自提</el-radio>
  58. <el-radio label='NO'>物流</el-radio>
  59. </el-radio-group>
  60. </div>
  61. <div>快递单号:{{orderDetail.logisticsNo}}</div>
  62. <div>快递公司:{{orderDetail.logisticsName}}</div>
  63. <el-button v-if="detailsTypeCp==0 && orderDetail.logisticsCode && orderDetail.logisticsNo" type='primary' size='small' @click="lookkuaidi">查看物流
  64. </el-button>
  65. </div>
  66. </div>
  67. </div>
  68. </el-col>
  69. </el-row>
  70. </div>
  71. </div>
  72. <h3>物流信息</h3>
  73. <div class="order-detail">
  74. <el-table :data="expressList" style="width: 100%" border>
  75. <el-table-column prop="comName" label="物流公司" align="center"></el-table-column>
  76. <el-table-column prop="areaName" label="地区名称" align="center"></el-table-column>
  77. <el-table-column prop="time" label="物流时间" align="center" min-width="100"></el-table-column>
  78. <el-table-column prop="state" label="物流状态" align="center">
  79. <template slot-scope="scope">
  80. <div>{{ ({0:'在途',1:'揽收',2:'疑难',3:'签收',4:'退签',5:'派件',6:'退回'})[scope.row.state] }}</div>
  81. </template>
  82. </el-table-column>
  83. <el-table-column prop="context" label="物流详情" align="center"></el-table-column>
  84. </el-table>
  85. </div>
  86. </div>
  87. </div>
  88. </zj-page-fill>
  89. </zj-page-container>
  90. </template>
  91. <script>
  92. import { esOrderDetail, esOrderExpress, esOrderRefund, esOrderPayPrice } from "@/api/orderManagement";
  93. export default {
  94. props:{
  95. detailsId: {
  96. type: [String, Number],
  97. default: ""
  98. },
  99. },
  100. data() {
  101. return {
  102. // 订单详情
  103. orderDetail: {
  104. },
  105. // 物流详情
  106. expressList: [],
  107. }
  108. },
  109. watch: {
  110. detailsId: {
  111. handler(newVal, oldVal) {
  112. this.getEsOrderDetail()
  113. },
  114. deep: true,
  115. immediate: true,
  116. },
  117. },
  118. methods: {
  119. getEsOrderDetail(){
  120. esOrderDetail({
  121. esOrderId: this.detailsId
  122. }).then(res=>{
  123. this.orderDetail = {
  124. ...res.data
  125. }
  126. if(this.orderDetail.logisticsCode && this.orderDetail.logisticsNo){
  127. esOrderExpress({
  128. companyCode:this.orderDetail.logisticsCode,
  129. logisticsNo:this.orderDetail.logisticsNo
  130. }).then(res2=>{
  131. this.expressList = res2.data
  132. })
  133. }
  134. })
  135. },
  136. }
  137. }
  138. </script>
  139. <style scoped lang="scss">
  140. .info {
  141. .info_title {
  142. font-size: 16px;
  143. font-weight: 700;
  144. }
  145. .info_bottom {
  146. display: flex;
  147. margin: 10px 0;
  148. .info_bottom_lt {
  149. width: 40px;
  150. height: 40px;
  151. }
  152. .info_bottom_rt {
  153. padding: 0 0 0 10px;
  154. line-height: 30px;
  155. .photoPZ {
  156. display: inline-block;
  157. vertical-align: text-top;
  158. }
  159. }
  160. }
  161. }
  162. .order-main {
  163. margin-top: 15px;
  164. border: 1px solid #e5e5e5;
  165. .order-main-title {
  166. font-size: 14px;
  167. }
  168. .order-main-title span {
  169. margin-right: 15px;
  170. }
  171. .order-main-status {
  172. padding: 15px 0;
  173. font-size: 24px;
  174. color: #409EFF;
  175. }
  176. .order-main-opt-btn {
  177. padding: 15px 0;
  178. }
  179. }
  180. .order-receive-info {
  181. margin: 15px 0 30px;
  182. padding: 15px;
  183. background: #f5f7fa;
  184. :first-child div span {
  185. padding-right: 15px;
  186. }
  187. }
  188. .order-detail {
  189. background: #f5f7fa;
  190. .order-amount-info {
  191. padding: 15px 0;
  192. font-size: 12px;
  193. font-weight: bold;
  194. }
  195. ::v-deep .el-table tr,
  196. ::v-deep .el-table th {
  197. background-color: #f5f7fa;
  198. }
  199. }
  200. .main-detail {
  201. .title {
  202. font-size: 16px;
  203. font-weight: 700;
  204. margin-bottom: 20px;
  205. }
  206. .item {
  207. display: flex;
  208. font-size: 14px;
  209. color: #666;
  210. padding-bottom: 12px;
  211. .label {
  212. white-space: nowrap;
  213. }
  214. }
  215. }
  216. .order-evaluate-info {
  217. margin: 15px 0;
  218. padding: 30px 15px;
  219. background: #f5f7fa;
  220. .title {
  221. display: flex;
  222. justify-content: space-between;
  223. align-items: center;
  224. .left {
  225. font-size: 16px;
  226. font-weight: 700;
  227. span {
  228. font-weight: normal;
  229. margin-left: 20px;
  230. font-size: 14px;
  231. color: #666;
  232. }
  233. }
  234. .right {
  235. display: flex;
  236. align-items: center;
  237. font-size: 14px;
  238. span {
  239. margin-right: 10px;
  240. }
  241. }
  242. }
  243. .main {
  244. margin-top: 20px;
  245. display: flex;
  246. .rate-list {
  247. font-size: 14px;
  248. flex-shrink: 0;
  249. }
  250. .tag-list {
  251. margin-left: 30px;
  252. ::v-deep .el-tag {
  253. margin-right: 10px;
  254. margin-bottom: 10px;
  255. }
  256. }
  257. }
  258. .content {
  259. width: 400px;
  260. line-height: 20px;
  261. font-size: 14px;
  262. color: #333;
  263. margin-top: 10px;
  264. }
  265. .img-list {
  266. display: flex;
  267. flex-wrap: wrap;
  268. margin-top: 10px;
  269. width: 400px;
  270. ::v-deep .el-image {
  271. width: 100px;
  272. height: 100px;
  273. margin-right: 10px;
  274. margin-bottom: 10px;
  275. border: 1px solid #eaeaea;
  276. }
  277. }
  278. }
  279. </style>