(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2079a5"],{a0dd:function(t,n,e){"use strict";e.r(n);var a,s=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-container",[e("v-form",{directives:[{name:"loading",rawName:"v-loading",value:t.tload,expression:"tload"}],staticStyle:{"max-width":"600px",margin:"auto"}},[e("v-text-field",{attrs:{label:"接单后免费取消时间(单位：分钟)"},model:{value:t.formData.freeCancelTime,callback:function(n){t.$set(t.formData,"freeCancelTime",n)},expression:"formData.freeCancelTime"}}),e("v-text-field",{attrs:{label:"超出免费取消时间后需承担百分之多少的费用(填写<1的数值)"},model:{value:t.formData.bearCostRate,callback:function(n){t.$set(t.formData,"bearCostRate",n)},expression:"formData.bearCostRate"}}),e("p",{staticClass:"mt-4"},[t._v("设置用户取消订单理由")]),e("p",[t._l(t.formData.userReasons,function(n,a){return e("el-tag",{key:n,attrs:{closable:"","disable-transitions":!1},on:{close:function(n){return t.handleClose(a)}}},[t._v(t._s(n))])}),t.inputVisible?e("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.handleInputConfirm(n)}},model:{value:t.inputValue,callback:function(n){t.inputValue=n},expression:"inputValue"}}):e("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.showInput}},[t._v("+ 添加理由")])],2),e("p",{staticClass:"mt-4"},[t._v("设置跑男取消订单理由")]),e("p",[t._l(t.formData.runmanReasons,function(n,a){return e("el-tag",{key:n,attrs:{closable:"","disable-transitions":!1},on:{close:function(n){return t.handleClose2(a)}}},[t._v(t._s(n))])}),t.inputVisible2?e("el-input",{ref:"saveTagInput2",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm2},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.handleInputConfirm2(n)}},model:{value:t.inputValue2,callback:function(n){t.inputValue2=n},expression:"inputValue2"}}):e("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.showInput2}},[t._v("+ 添加理由")])],2),e("v-btn",{staticClass:"mt-3 dark",attrs:{loading:t.tload},on:{click:function(n){return t.submit()}}},[t._v("保存")])],1)],1)},i=[],o={props:{load:{type:Boolean,default:!1}},data:function(){return{inputVisible:!1,inputValue:"",inputVisible2:!1,inputValue2:"",formData:{freeCancelTime:"",bearCostRate:"",userReasons:[],runmanReasons:[]},pageLoad:this.load,tload:!1}},watch:{load:function(t){t&&(this.pageLoad=t)},pageLoad:function(t){t&&this.getConfig()}},mounted:function(){a=this},methods:{getConfig:function(){a.tload=!0,this.$post("config/get",{config_key:"cancel_order"},function(t){a.tload=!1,0==t.errno&&t.data.config_content&&(a.formData=JSON.parse(t.data.config_content))})},submit:function(){this.tload=!0,this.$post("config/update",{config_key:"cancel_order",config_content:JSON.stringify(this.formData)},function(t){a.tload=!1,0===t.errno&&a.$message({showClose:!0,message:t.errmsg,type:"success"})})},handleClose:function(t){this.formData.userReasons.splice(t,1)},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick(function(n){t.$refs.saveTagInput.$refs.input.focus()})},handleInputConfirm:function(){var t=this.inputValue;t&&this.formData.userReasons.push(t),this.inputVisible=!1,this.inputValue=""},handleClose2:function(t){this.formData.runmanReasons.splice(t,1)},showInput2:function(){var t=this;this.inputVisible2=!0,this.$nextTick(function(n){t.$refs.saveTagInput2.$refs.input.focus()})},handleInputConfirm2:function(){var t=this.inputValue2;t&&this.formData.runmanReasons.push(t),this.inputVisible2=!1,this.inputValue2=""}}},l=o,u=e("6691"),r=Object(u["a"])(l,s,i,!1,null,null,null);n["default"]=r.exports}}]);
//# sourceMappingURL=chunk-2d2079a5.cc96f2f3.js.map