(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-79ce0434"],{"372f":function(t,e,s){},"3f33":function(t,e,s){"use strict";s.d(e,"a",(function(){return a})),s.d(e,"b",(function(){return r})),s.d(e,"g",(function(){return d})),s.d(e,"c",(function(){return o})),s.d(e,"h",(function(){return n})),s.d(e,"f",(function(){return l})),s.d(e,"e",(function(){return p})),s.d(e,"d",(function(){return c}));var i=s("6b2d");const a=t=>i.a.post("/pointsshop.points_goods/add",t),r=t=>i.a.get("/pointsshop.points_goods/detail",{params:t}),d=t=>i.a.post("/pointsshop.points_goods/update",t),o=t=>i.a.get("/pointsshop.points_goods/list",{params:t}),n=t=>i.a.post("/pointsshop.points_goods/status",t),l=t=>i.a.get("/pointsshop.order/list",{params:t}),p=t=>i.a.get("/pointsshop.order/detail",{params:t}),c=t=>i.a.post("/pointsshop.order/delivery",t)},a8c9:function(t,e,s){"use strict";s.r(e);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:t=>0==t?"待处理":1==t?"已发货":2==t?"已完成":3==t?"已取消":void 0,onUpdate(t){this.$refs[t].validate(t=>{if(!t)return!1;this.updateGood()})},updateGood(){apiScoreshopUpdateGood(this.detail).then(t=>{this.$message.success(t.msg),1==t.code&&this.$router.push({path:"/scoreshop/goods/lists"})})},getDetail(){Object(i.e)({id:this.$route.query.id}).then(t=>{1!=t.code?this.$message.success(t.msg):this.detail=t.data})}},mounted(){this.getDetail()}},r=(s("d74c"),s("2877")),d=Object(r.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"substance_edit-help"},[s("div",{staticClass:"ls-card"},[s("el-page-header",{attrs:{content:"订单详情"},on:{back:function(e){return t.$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:"订单编号"}},[t._v(t._s(t.detail.sn))]),s("el-descriptions-item",{attrs:{label:"订单状态"}},[t._v(t._s(t.orderTip(t.detail.status)))]),s("el-descriptions-item",{attrs:{label:"发货类型"}},[t._v(t._s(1==t.detail.send_type?"需要物流":"无需物流"))]),s("el-descriptions-item",{attrs:{label:"兑换数量"}},[t._v(t._s(t.detail.goods_num))]),s("el-descriptions-item",{attrs:{label:"消耗总积分"}},[t._v(t._s(t.detail.total_points))])],1)],1),s("div",{staticClass:"ls-card"},[s("el-descriptions",{attrs:{title:"收货信息"}},[s("el-descriptions-item",{attrs:{label:"姓名"}},[t._v(t._s(t.detail.name))]),s("el-descriptions-item",{attrs:{label:"电话"}},[t._v(t._s(t.detail.phone))]),s("el-descriptions-item",{attrs:{label:"地址"}},[t._v(t._s(t.detail.address))]),s("el-descriptions-item",{attrs:{label:"备注"}},[t._v(t._s(t.detail.remark))])],1)],1),s("div",{staticClass:"ls-card"},[s("el-descriptions",{attrs:{title:"商品信息"}},[s("el-descriptions-item",{attrs:{label:"商品名称"}},[t._v(t._s(t.detail.goods.name))]),s("el-descriptions-item",{attrs:{label:"所需积分"}},[t._v(t._s(t.detail.goods.points_price))]),s("el-descriptions-item",{attrs:{label:"库存数量"}},[t._v(t._s(t.detail.goods.stock))]),s("el-descriptions-item",{attrs:{label:"商品图片"}},[s("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.detail.goods.image,fit:"cover"}})],1)],1)],1),1==t.detail.send_type?s("div",{staticClass:"ls-card"},[s("el-descriptions",{attrs:{title:"物流信息"}},[s("el-descriptions-item",{attrs:{label:"快递公司id"}},[t._v(t._s(t.detail.send_express_id))]),s("el-descriptions-item",{attrs:{label:"快递单号"}},[t._v(t._s(t.detail.send_express_id))])],1)],1):t._e()])])}),[],!1,null,"82639138",null);e.default=d.exports},d74c:function(t,e,s){"use strict";s("372f")}}]);