(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a13779f2"],{"372f":function(e,t,s){},"3f33":function(e,t,s){"use strict";s.d(t,"a",(function(){return a})),s.d(t,"b",(function(){return r})),s.d(t,"g",(function(){return o})),s.d(t,"c",(function(){return d})),s.d(t,"h",(function(){return n})),s.d(t,"f",(function(){return l})),s.d(t,"e",(function(){return c})),s.d(t,"d",(function(){return p}));var i=s("6b2d");const a=e=>i.a.post("/pointsshop.points_goods/add",e),r=e=>i.a.get("/pointsshop.points_goods/detail",{params:e}),o=e=>i.a.post("/pointsshop.points_goods/update",e),d=e=>i.a.get("/pointsshop.points_goods/list",{params:e}),n=e=>i.a.post("/pointsshop.points_goods/status",e),l=e=>i.a.get("/pointsshop.order/list",{params:e}),c=e=>i.a.get("/pointsshop.order/detail",{params:e}),p=e=>i.a.post("/pointsshop.order/delivery",e)},"6b2d":function(e,t,s){"use strict";var i=s("0613"),a=s("bc3a"),r=s.n(a),o=s("d70b"),d=s("afbc"),n=s("5c96"),l=s("6ddb");const c={baseURL:o.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},p=(Object(l.g)(()=>(i.a.commit("setToken",""),i.a.commit("setUserInfo",{}),i.a.commit("setPermission",{}),d.b.push("/account/login"),Promise.reject())),r.a.create(c));p.interceptors.request.use(e=>{const t=i.a.getters.token;return t&&(e.headers.token=t),e.headers.version=o.a.version,e},e=>Promise.reject(e)),p.interceptors.response.use(e=>e.data,e=>(Object(n.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(e))),t.a=p},a8c9:function(e,t,s){"use strict";s.r(t);var i=s("3f33"),a={components:{MaterialSelect:s("b3ad").a},data:()=>({mode:"",detail:{id:0,sn:0,user_id:0,goods_id:0,goods_num:0,total_points:0,status:0,name:"",phone:"",address:"",remark:"",create_time:"",update_time:"",send_express_id:0,send_invoice_no:0,send_remark:"",send_type:0,goods:{id:0,name:"",description:"",image:"",points_price:0,stock:0,limit_per_user:0,status:1,created_time:"",updated_time:"",sort:0}},rules:{name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],points_price:[{required:!0,message:"请输入所需积分",trigger:"blur"},{type:"number",message:"积分必须为数字值",trigger:"blur"}]}}),methods:{orderTip:e=>0==e?"待处理":1==e?"已发货":2==e?"已完成":3==e?"已取消":void 0,onUpdate(e){this.$refs[e].validate(e=>{if(!e)return!1;this.updateGood()})},updateGood(){apiScoreshopUpdateGood(this.detail).then(e=>{this.$message.success(e.msg),1==e.code&&this.$router.push({path:"/scoreshop/goods/lists"})})},getDetail(){Object(i.e)({id:this.$route.query.id}).then(e=>{1!=e.code?this.$message.success(e.msg):this.detail=e.data})}},mounted(){this.getDetail()}},r=(s("d74c"),s("2877")),o=Object(r.a)(a,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"substance_edit-help"},[s("div",{staticClass:"ls-card"},[s("el-page-header",{attrs:{content:"订单详情"},on:{back:function(t){return e.$router.go(-1)}}})],1),s("div",{staticClass:"ls-card m-t-16 form-container"},[s("div",{staticClass:"ls-card"},[s("el-descriptions",{attrs:{title:"订单信息"}},[s("el-descriptions-item",{attrs:{label:"订单编号"}},[e._v(e._s(e.detail.sn))]),s("el-descriptions-item",{attrs:{label:"订单状态"}},[e._v(e._s(e.orderTip(e.detail.status)))]),s("el-descriptions-item",{attrs:{label:"发货类型"}},[e._v(e._s(1==e.detail.send_type?"需要物流":"无需物流"))]),s("el-descriptions-item",{attrs:{label:"兑换数量"}},[e._v(e._s(e.detail.goods_num))]),s("el-descriptions-item",{attrs:{label:"消耗总积分"}},[e._v(e._s(e.detail.total_points))])],1)],1),s("div",{staticClass:"ls-card"},[s("el-descriptions",{attrs:{title:"收货信息"}},[s("el-descriptions-item",{attrs:{label:"姓名"}},[e._v(e._s(e.detail.name))]),s("el-descriptions-item",{attrs:{label:"电话"}},[e._v(e._s(e.detail.phone))]),s("el-descriptions-item",{attrs:{label:"地址"}},[e._v(e._s(e.detail.address))]),s("el-descriptions-item",{attrs:{label:"备注"}},[e._v(e._s(e.detail.remark))])],1)],1),s("div",{staticClass:"ls-card"},[s("el-descriptions",{attrs:{title:"商品信息"}},[s("el-descriptions-item",{attrs:{label:"商品名称"}},[e._v(e._s(e.detail.goods.name))]),s("el-descriptions-item",{attrs:{label:"所需积分"}},[e._v(e._s(e.detail.goods.points_price))]),s("el-descriptions-item",{attrs:{label:"库存数量"}},[e._v(e._s(e.detail.goods.stock))]),s("el-descriptions-item",{attrs:{label:"商品图片"}},[s("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.detail.goods.image,fit:"cover"}})],1)],1)],1),1==e.detail.send_type?s("div",{staticClass:"ls-card"},[s("el-descriptions",{attrs:{title:"物流信息"}},[s("el-descriptions-item",{attrs:{label:"快递公司id"}},[e._v(e._s(e.detail.send_express_id))]),s("el-descriptions-item",{attrs:{label:"快递单号"}},[e._v(e._s(e.detail.send_express_id))])],1)],1):e._e()])])}),[],!1,null,"82639138",null);t.default=o.exports},d74c:function(e,t,s){"use strict";s("372f")}}]);