王总上门按摩后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
3.6 KiB

webpackJsonp([42],{PF6s:function(t,e){},ehDU:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),s=a("exGp"),o=a.n(s),i=a("PJh5"),l=a.n(i),c={data:function(){return{loading:!1,subForm:{reply_content:""},dataInfo:{}}},created:function(){var t=this.$route.query.id;this.getDetail(t)},methods:{getDetail:function(t){var e=this;return o()(n.a.mark(function a(){var r,s,o,i,l;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.$api.system.feedbackInfo({id:t});case 2:if(r=a.sent,s=r.code,o=r.data,200===s){a.next=7;break}return a.abrupt("return");case 7:o.is_balance=1*o.balance>0?1:0,i=o.coach_refund_text,o.coach_refund_text=i&&i.length>0?i.replace(/\n/g,"<br>"):"没有填写原因哦",e.subForm.reply_content=o.reply_content,e.subForm.id=o.id,l=[],o.images&&o.images.length&&o.images.forEach(function(t){l.push({url:t})}),e.dataInfo=o,e.dataInfo.images=l;case 16:case"end":return a.stop()}},a,e)}))()},submitForm:function(){var t=this,e=this.subForm;this.$api.system.feedbackHandle(e).then(function(e){200===e.code&&(t.$message.success(t.$t("tips.successSub")),t.goBack())})},goBack:function(){this.$route.meta.refresh=!0,this.$router.back(-1)}},filters:{handleTime:function(t,e){return 1===e?l()(1e3*t).format("YYYY-MM-DD"):2===e?l()(1e3*t).format("HH:mm:ss"):3===e?l()(1e3*t).format("YYYY-MM-DD HH:mm"):4===e?l()(1e3*t).format("HH:mm"):l()(1e3*t).format("YYYY-MM-DD HH:mm:ss")}}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lb-shop-order-edit"},[a("top-nav",{attrs:{isBack:!0}}),t._v(" "),a("div",{staticClass:"page-main"},[a("el-form",{attrs:{model:t.subForm,"label-width":"130px",size:"mini"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"ID:"}},[a("div",[t._v(t._s(t.dataInfo.id))])]),t._v(" "),a("el-form-item",{attrs:{label:"反馈类型:"}},[a("div",[t._v(t._s(t.dataInfo.type_name))])]),t._v(" "),a("el-form-item",{attrs:{label:"反馈人:"}},[a("div",[t._v(t._s(t.dataInfo.coach_name))])]),t._v(" "),a("el-form-item",{attrs:{label:"反馈人手机号:"}},[a("div",[t._v(t._s(t.dataInfo.mobile||"无"))])]),t._v(" "),a("el-form-item",{attrs:{label:"订单编号:"}},[a("div",[t._v(t._s(t.dataInfo.order_code||"无"))])]),t._v(" "),a("el-form-item",{attrs:{label:"反馈内容:"}},[a("div",[t._v(t._s(t.dataInfo.content||"无"))]),t._v(" "),t.dataInfo.images&&t.dataInfo.images.length?a("div",{staticClass:"flex pt-md"},[a("lb-cover",{attrs:{fileList:t.dataInfo.images,isToDel:!1,fileType:"image",type:"more",size:"big",fileSize:1}})],1):t._e(),t._v(" "),t.dataInfo.video_url?a("div",{staticClass:"pt-md"},[a("video",{attrs:{controls:"",width:"500",height:"300",src:t.dataInfo.video_url}})]):t._e()]),t._v(" "),1==t.dataInfo.status?a("el-form-item",{attrs:{label:"回复:"}},[a("div",[a("el-input",{attrs:{type:"textarea",rows:6,placeholder:"请输入内容"},model:{value:t.subForm.reply_content,callback:function(e){t.$set(t.subForm,"reply_content",e)},expression:"subForm.reply_content"}})],1)]):a("el-form-item",{attrs:{label:"回复:"}},[a("div",[t._v(t._s(t.subForm.reply_content||"无"))])]),t._v(" "),a("el-form-item",[a("lb-button",{directives:[{name:"show",rawName:"v-show",value:1==t.dataInfo.status,expression:"dataInfo.status == 1"},{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("action.submit")))]),t._v(" "),a("lb-button",{on:{click:function(e){return t.$router.back(-1)}}},[t._v(t._s(t.$t("action.back")))])],1)],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(c,m,!1,function(t){a("PF6s")},"data-v-8276e196",null);e.default=d.exports}});