f712230d3e18a3b03d99a13a7f4e227c.json 9.3 KB

1
  1. {"remainingRequest":"E:\\item\\newItem\\admin\\node_modules\\babel-loader\\lib\\index.js!E:\\item\\newItem\\admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\item\\newItem\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\item\\newItem\\admin\\node_modules\\iview-loader\\index.js??ref--0-2!E:\\item\\newItem\\admin\\src\\pages\\kefu\\pc\\components\\order_detail.vue?vue&type=script&lang=js&","dependencies":[{"path":"E:\\item\\newItem\\admin\\src\\pages\\kefu\\pc\\components\\order_detail.vue","mtime":1677828270205},{"path":"E:\\item\\newItem\\admin\\babel.config.js","mtime":1677828270071},{"path":"E:\\item\\newItem\\admin\\.babelrc","mtime":1677828270070},{"path":"E:\\item\\newItem\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\item\\newItem\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"E:\\item\\newItem\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\item\\newItem\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"E:\\item\\newItem\\admin\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMubnVtYmVyLmNvbnN0cnVjdG9yLmpzIjsKLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KaW1wb3J0IHsgb3JkZXJJbmZvIH0gZnJvbSAnQC9hcGkva2VmdSc7CmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAnb3JkZXJfZGV0YWlsJywKICBwcm9wczogewogICAgb3JkZXJJZDogewogICAgICB0eXBlOiBTdHJpbmcgfCBOdW1iZXIsCiAgICAgIGRlZmF1bHQ6ICcnCiAgICB9CiAgfSwKICBkYXRhOiBmdW5jdGlvbiBkYXRhKCkgewogICAgcmV0dXJuIHsKICAgICAgb3JkZXJEZXRhaWw6IHt9LAogICAgICBvcmRlckxpc3Q6IFtdLAogICAgICBjb2x1bW5zMTogW3sKICAgICAgICB0aXRsZTogJ+WVhuWTgUlEJywKICAgICAgICBzbG90OiAnaWQnLAogICAgICAgIG1heFdpZHRoOiA4MAogICAgICB9LCB7CiAgICAgICAgdGl0bGU6ICfllYblk4HlkI3np7AnLAogICAgICAgIHNsb3Q6ICduYW1lJywKICAgICAgICBtaW5XaWR0aDogMTYwCiAgICAgIH0sIHsKICAgICAgICB0aXRsZTogJ+WVhuWTgeWIhuexuycsCiAgICAgICAgc2xvdDogJ2NsYXNzTmFtZScKICAgICAgfSwgewogICAgICAgIHRpdGxlOiAn5ZWG5ZOB5ZSu5Lu3JywKICAgICAgICBzbG90OiAncHJpY2UnCiAgICAgIH0sIHsKICAgICAgICB0aXRsZTogJ+WVhuWTgeaVsOmHjycsCiAgICAgICAgc2xvdDogJ3RvdGFsX251bScKICAgICAgfV0KICAgIH07CiAgfSwKICBtb3VudGVkOiBmdW5jdGlvbiBtb3VudGVkKCkgewogICAgdGhpcy5nZXRPcmRlckluZm8oKTsKICB9LAogIG1ldGhvZHM6IHsKICAgIGdldE9yZGVySW5mbzogZnVuY3Rpb24gZ2V0T3JkZXJJbmZvKCkgewogICAgICB2YXIgX3RoaXMgPSB0aGlzOwoKICAgICAgb3JkZXJJbmZvKHRoaXMub3JkZXJJZCkudGhlbihmdW5jdGlvbiAocmVzKSB7CiAgICAgICAgcmVzLmRhdGEub3JkZXJJbmZvLmFkZF90aW1lID0gX3RoaXMuJG1vbWVudChwYXJzZUludChyZXMuZGF0YS5vcmRlckluZm8uYWRkX3RpbWUpICogMTAwMCkuZm9ybWF0KCdZWVlZLU1NLUREJyk7CiAgICAgICAgX3RoaXMub3JkZXJEZXRhaWwgPSByZXMuZGF0YTsKICAgICAgICBfdGhpcy5vcmRlckxpc3QgPSByZXMuZGF0YS5vcmRlckluZm8uY2FydEluZm87CiAgICAgIH0pOwogICAgfQogIH0KfTs="},{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EA;AACA;EACAA,oBADA;EAEAC;IACAC;MACAC,qBADA;MAEAC;IAFA;EADA,CAFA;EAQAC,IARA,kBAQA;IACA;MACAC,eADA;MAEAC,aAFA;MAGAC,WACA;QACAC,aADA;QAEAC,UAFA;QAGAC;MAHA,CADA,EAMA;QACAF,aADA;QAEAC,YAFA;QAGAE;MAHA,CANA,EAWA;QACAH,aADA;QAEAC;MAFA,CAXA,EAeA;QACAD,aADA;QAEAC;MAFA,CAfA,EAmBA;QACAD,aADA;QAEAC;MAFA,CAnBA;IAHA;EA4BA,CArCA;EAsCAG,OAtCA,qBAsCA;IACA;EACA,CAxCA;EAyCAC;IACAC,YADA,0BACA;MAAA;;MACAC;QACAC;QACA;QACA;MACA,CAJA;IAKA;EAPA;AAzCA","names":["name","props","orderId","type","default","data","orderDetail","orderList","columns1","title","slot","maxWidth","minWidth","mounted","methods","getOrderInfo","orderInfo","res"],"sourceRoot":"src/pages/kefu/pc/components","sources":["order_detail.vue"],"sourcesContent":["<template>\r\n <div class=\"order_detail\" v-if=\"orderDetail.userInfo\">\r\n <div class=\"msg-box\">\r\n <div class=\"box-title\">收货信息</div>\r\n <div class=\"msg-wrapper\">\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>用户昵称:</span>{{ orderDetail.userInfo.nickname }}</div>\r\n <div class=\"item\"><span>收货人:</span>{{ orderDetail.orderInfo.real_name }}</div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>联系电话:</span>{{ orderDetail.orderInfo.user_phone }}</div>\r\n <div class=\"item\"><span>收货地址:</span>{{ orderDetail.orderInfo.user_address }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"msg-box\" style=\"border: none\">\r\n <div class=\"box-title\">订单信息</div>\r\n <div class=\"msg-wrapper\">\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>订单ID:</span>{{ orderDetail.orderInfo.order_id }}</div>\r\n <div class=\"item\" style=\"color: red\">\r\n <span style=\"color: red\">订单状态:</span>{{ orderDetail.orderInfo._status._title }}\r\n </div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>商品总数:</span>{{ orderDetail.orderInfo.total_num }}</div>\r\n <div class=\"item\">\r\n <span>商品总价:</span\r\n >{{ parseFloat(orderDetail.orderInfo.total_price) + parseFloat(orderDetail.orderInfo.vip_true_price || 0) }}\r\n </div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>交付邮费:</span>{{ orderDetail.orderInfo.pay_postage }}</div>\r\n <div class=\"item\"><span>优惠券金额:</span>{{ orderDetail.orderInfo.coupon_price }}</div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>实际支付:</span>{{ orderDetail.orderInfo.pay_price }}</div>\r\n <div class=\"item\"><span>创建时间:</span>{{ orderDetail.orderInfo.add_time }}</div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>支付方式:</span>{{ orderDetail.orderInfo._status._payType }}</div>\r\n <div class=\"item\"><span>推广人:</span>{{ orderDetail.userInfo.spread_name }}</div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>商家备注:</span>{{ orderDetail.orderInfo.mark }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"goods-box\">\r\n <Table :columns=\"columns1\" :data=\"orderList\">\r\n <template slot-scope=\"{ row, index }\" slot=\"id\">\r\n {{ row.productInfo.id }}\r\n </template>\r\n <template slot-scope=\"{ row, index }\" slot=\"name\">\r\n <div class=\"product_info\">\r\n <img :src=\"row.productInfo.image\" alt=\"\" />\r\n <p>{{ row.productInfo.store_name }}</p>\r\n </div>\r\n </template>\r\n <template slot-scope=\"{ row, index }\" slot=\"className\">\r\n {{ row.class_name }}\r\n </template>\r\n <template slot-scope=\"{ row, index }\" slot=\"price\">\r\n {{ row.productInfo.attrInfo.price }}\r\n </template>\r\n <template slot-scope=\"{ row, index }\" slot=\"total_num\">\r\n {{ row.cart_num }}\r\n </template>\r\n </Table>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { orderInfo } from '@/api/kefu';\r\nexport default {\r\n name: 'order_detail',\r\n props: {\r\n orderId: {\r\n type: String | Number,\r\n default: '',\r\n },\r\n },\r\n data() {\r\n return {\r\n orderDetail: {},\r\n orderList: [],\r\n columns1: [\r\n {\r\n title: '商品ID',\r\n slot: 'id',\r\n maxWidth: 80,\r\n },\r\n {\r\n title: '商品名称',\r\n slot: 'name',\r\n minWidth: 160,\r\n },\r\n {\r\n title: '商品分类',\r\n slot: 'className',\r\n },\r\n {\r\n title: '商品售价',\r\n slot: 'price',\r\n },\r\n {\r\n title: '商品数量',\r\n slot: 'total_num',\r\n },\r\n ],\r\n };\r\n },\r\n mounted() {\r\n this.getOrderInfo();\r\n },\r\n methods: {\r\n getOrderInfo() {\r\n orderInfo(this.orderId).then((res) => {\r\n res.data.orderInfo.add_time = this.$moment(parseInt(res.data.orderInfo.add_time) * 1000).format('YYYY-MM-DD');\r\n this.orderDetail = res.data;\r\n this.orderList = res.data.orderInfo.cartInfo;\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"stylus\" scoped>\r\n.order_detail\r\n .msg-box\r\n border-bottom 1px solid #E8EAED\r\n .box-title\r\n padding-top 20px\r\n font-size 16px\r\n color #333\r\n .msg-wrapper\r\n margin-top 15px\r\n padding-bottom 10px\r\n .msg-item\r\n display flex\r\n .item\r\n flex 1\r\n margin-bottom 15px\r\n span\r\n color #333\r\n &:first-child .box-title\r\n padding-top 0\r\n .product_info\r\n display flex\r\n align-items center\r\n img\r\n width 36px\r\n height 36px\r\n border-radius 4px\r\n margin-right 10px\r\n</style>\r\n"]}]}