2 lines
6.1 KiB
JavaScript
2 lines
6.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25407792"],{"276b":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"personal-center-container"},[e("el-row",{staticClass:"problem-body"},[e("el-col",{staticClass:"problem-lside",attrs:{span:4}},[e("ul",[e("li",[e("a",{staticClass:"nli",attrs:{href:"javascript:void(0);"}},[t._v("个人中心"),e("b",{staticClass:"arrow"})]),e("ul",{staticClass:"ulson",staticStyle:{display:"block"}},[e("li",[e("a",{attrs:{href:"#"}},[t._v("订单管理")])]),e("li",[e("a",{attrs:{href:"/page.html#/pages/plateform/address"}},[t._v("收货地址")])]),e("li",[e("a",{attrs:{href:"/page.html#/pages/plateform/personalInfo"}},[t._v("个人信息")])])])])])]),e("el-col",{staticClass:"problem-rside",attrs:{span:20}},[e("div",{staticClass:"probar"},[e("a",{attrs:{href:"#"}},[t._v("个人中心-订单列表")])]),e("order-list",{ref:"orderList"})],1)],1),e("confirm-order-dialog",{ref:"confirmOrderDialog"}),e("evaluate-dialog",{ref:"evaluateDialog"}),e("logistic-dialog",{ref:"logisticDialog"}),e("return-dialog",{ref:"returnDialog"})],1)},r=[],o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"order-list-container"},[e("div",{staticClass:"goods-table"},[t._m(0),e("div",{staticClass:"goods-tbody"},t._l(t.orderInfo.orders,(function(s,a){return e("div",{key:a,staticClass:"order-item"},[e("div",{staticClass:"order-header"},[t._v(" 订单时间:"+t._s(s.createTime)+" 订单编号 "+t._s(s.orderId)+" ")]),e("div",{staticClass:"order-content"},[e("div",{staticClass:"col col2 goods-title-pic"},[e("a",{attrs:{href:"/page.html#/pages/plateform/productDetail?productId="+s.productId}},[e("img",{attrs:{src:s.coverPhoto,width:"60",height:"60"}})]),e("div",{staticClass:"goods-describ elli"},[e("p",[e("a",{attrs:{href:"/page.html#/pages/plateform/productDetail?productId="+s.productId}},[t._v(t._s(s.prodName))])])])]),e("div",{staticClass:"col col4 goods-price"},[t._v("¥"+t._s(s.price))]),e("div",{staticClass:"col col4 good-num"},[t._v(t._s(s.cartNum))]),e("div",{staticClass:"col col4 orange-bold xiaoji"},[t._v("¥"+t._s(s.cartNum*s.price))]),e("div",{staticClass:"col col6 order-actions"},[3104==s.state?[e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.closeOrder(s)}}},[t._v("关闭订单")])]:t._e(),2002==s.state?[e("div",{staticClass:"status-text"},[t._v("待发货")]),e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.expeditingDelivery(s)}}},[t._v("催发货")])]:t._e(),3003==s.state?[e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.showLogistic(s)}}},[t._v("物流信息")]),e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.showConfirm(s)}}},[t._v("确认收货")])]:t._e(),4004==s.state?[e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.showEvaluate(s)}}},[t._v("立即评价")]),e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.showReturn(s)}}},[t._v("退货")]),e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.showLogistic(s)}}},[t._v("物流信息")])]:t._e(),5005==s.state?[e("div",{staticClass:"status-text"},[t._v("申请退款")])]:t._e(),7017==s.state?[e("div",{staticClass:"status-text"},[t._v("订单已关闭")])]:t._e(),8008==s.state?[e("div",{staticClass:"status-text"},[t._v("已完成")])]:t._e()],2)]),e("div",{staticClass:"order-footer"},[t._v(" 订单总价:"+t._s(s.totalPrice)+" 收货人姓名:"+t._s(s.personName)+" 收货地址电话:"+t._s(s.address)+";"+t._s(s.tel)+" ")])])})),0)]),e("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":t.pageSize,total:t.total,layout:"total, prev, pager, next"},on:{"current-change":t.handlePageChange}})],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods-thead"},[e("div",{staticClass:"col col2"},[t._v("商品信息")]),e("div",{staticClass:"col col4"},[t._v("单价")]),e("div",{staticClass:"col col4"},[t._v("数量")]),e("div",{staticClass:"col col4"},[t._v("实付款")]),e("div",{staticClass:"col col6"},[t._v("操作")])])}],c=s("b775");function l(t){return new Promise((e,s)=>{Object(c["a"])({url:"/storeOrder/queryUserStoreOrderCart",method:"get",params:t}).then(t=>{const s=t.data;e(s)}).catch(t=>{s(t)})})}function n(t){return new Promise((e,s)=>{Object(c["a"])({url:"/storeOrder/expeditingDelivery",method:"post",data:t}).then(t=>{const s=t.data;e(s)}).catch(t=>{s(t)})})}function d(t){return new Promise((e,s)=>{Object(c["a"])({url:"/storeOrder/closeStoreOrder",method:"post",data:t}).then(t=>{const s=t.data;e(s)}).catch(t=>{s(t)})})}var u={name:"OrderList",data(){return{orderInfo:{orders:[],total:0,records:1},currentPage:1,pageSize:10,total:0}},mounted(){this.getList()},methods:{async getList(){try{const t={page:this.currentPage,row:this.pageSize,states:"2002,2012,2013,3003,4004,5005,6006,7007,8008,9009,2102,3103,3104,3004"},e=await l(t);this.orderInfo.orders=e.data,this.total=e.total,console.log(this.orderInfo.records)}catch(t){console.error("获取订单列表失败:",t)}},handlePageChange(t){this.currentPage=t,this.getList()},async expeditingDelivery(t){try{await n({orderId:t.orderId,cartId:t.cartId,personId:t.personId,eventMsg:"用户催发货",shopId:t.shopId}),this.$message.success("已催商家发货")}catch(e){this.$message.error(e.message||"操作失败")}},async closeOrder(t){try{await d(t),this.$message.success("订单已关闭"),this.getList()}catch(e){this.$message.error(e.message||"操作失败")}},showConfirm(t){this.$parent.$refs.confirmOrderDialog.open(t)},showEvaluate(t){this.$parent.$refs.evaluateDialog.open(t)},showLogistic(t){this.$parent.$refs.logisticDialog.open(t)},showReturn(t){this.$parent.$refs.returnDialog.open(t)}}},p=u,v=(s("2ef5"),s("2877")),g=Object(v["a"])(p,o,i,!1,null,"7a0de598",null),h=g.exports,f={name:"PersonalCenter",components:{OrderList:h},mounted(){this.$nextTick(()=>{})}},_=f,m=(s("e2e6"),Object(v["a"])(_,a,r,!1,null,"d7adfb1a",null));e["default"]=m.exports},"2ef5":function(t,e,s){"use strict";s("be53")},"91fc":function(t,e,s){},be53:function(t,e,s){},e2e6:function(t,e,s){"use strict";s("91fc")}}]);
|
||
//# sourceMappingURL=chunk-25407792.f8a95e3b.js.map
|