(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-327c5484"],{"5c01":function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return s})),r.d(e,"d",(function(){return i})),r.d(e,"e",(function(){return n})),r.d(e,"a",(function(){return l}));var a=r("6b2d");const o=t=>a.a.post("/match_friend.MatchFriendOrder/create",t),s=t=>a.a.get("/match_friend.MatchFriendOrder/del",{params:t}),i=t=>a.a.get("/match_friend.MatchFriendOrder/detail",{params:t}),n=t=>a.a.post("/match_friend.MatchFriendOrder/update",t),l=t=>a.a.get("/match_friend.MatchFriendOrder/list",{params:t})},7870:function(t,e,r){"use strict";r.r(e);var a=r("5c01"),o={data:()=>({form:{id:"",sn:"",user_id:"",blind_boxe_id:"",pay_status:"",pay_way:"",order_amount:"",pay_time:""}}),methods:{formatPayTime(t){if(null==t||""===t)return"";const e=Number(t);if(!e)return"";const r=new Date(e<1e12?1e3*e:e),a=t=>String(t).padStart(2,"0");return`${r.getFullYear()}-${a(r.getMonth()+1)}-${a(r.getDate())} ${a(r.getHours())}:${a(r.getMinutes())}:${a(r.getSeconds())}`},getDetail(){Object(a.d)({id:this.form.id}).then(t=>{1==t.code?this.form=t.data:this.$message.error(t.msg||"查询失败")})},onSubmit(){Object(a.e)(this.form).then(t=>{1==t.code?(this.$message.success("修改成功!"),setTimeout(()=>this.$router.go(-1),500)):this.$message.error(t.msg||"修改失败")})}},mounted(){this.getDetail()},created(){const t=this.$route.query;this.form.id=t.id}},s=r("2877"),i=Object(s.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"ls-card"},[r("el-page-header",{attrs:{content:"编辑订单"},on:{back:function(e){return t.$router.go(-1)}}})],1),r("div",{staticClass:"ls-card m-t-16"},[r("div",{staticClass:"card-title"},[t._v("编辑订单")]),r("div",{staticClass:"card-content m-t-24"},[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[r("el-form-item",{attrs:{prop:"id",label:"订单ID"}},[r("el-input",{attrs:{disabled:""},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}})],1),r("el-form-item",{attrs:{prop:"sn",label:"订单编号"}},[r("el-input",{attrs:{disabled:""},model:{value:t.form.sn,callback:function(e){t.$set(t.form,"sn",e)},expression:"form.sn"}})],1),r("el-form-item",{attrs:{prop:"user_id",label:"用户ID"}},[r("el-input",{attrs:{disabled:""},model:{value:t.form.user_id,callback:function(e){t.$set(t.form,"user_id",e)},expression:"form.user_id"}})],1),r("el-form-item",{attrs:{prop:"blind_boxe_id",label:"盲盒ID"}},[r("el-input",{attrs:{disabled:""},model:{value:t.form.blind_boxe_id,callback:function(e){t.$set(t.form,"blind_boxe_id",e)},expression:"form.blind_boxe_id"}})],1),r("el-form-item",{attrs:{prop:"pay_status",label:"支付状态"}},[r("el-input",{model:{value:t.form.pay_status,callback:function(e){t.$set(t.form,"pay_status",e)},expression:"form.pay_status"}})],1),r("el-form-item",{attrs:{prop:"pay_way",label:"支付方式"}},[r("el-input",{model:{value:t.form.pay_way,callback:function(e){t.$set(t.form,"pay_way",e)},expression:"form.pay_way"}})],1),r("el-form-item",{attrs:{prop:"order_amount",label:"支付金额"}},[r("el-input",{model:{value:t.form.order_amount,callback:function(e){t.$set(t.form,"order_amount",e)},expression:"form.order_amount"}})],1),r("el-form-item",{attrs:{prop:"pay_time",label:"支付时间"}},[r("el-input",{attrs:{value:t.formatPayTime(t.form.pay_time),disabled:""}})],1)],1)],1)]),r("div",{staticClass:"bg-white ls-fixed-footer"},[r("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[r("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),r("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onSubmit}},[t._v("保存")])],1)])])}),[],!1,null,null,null);e.default=i.exports}}]);