(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e53a5"],{"941e":function(t,s,e){"use strict";e.r(s);var a,i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("v-dialog",{attrs:{persistent:"","max-width":"600px"},model:{value:t.thisValue,callback:function(s){t.thisValue=s},expression:"thisValue"}},[e("v-card",[e("v-card-title",[e("span",{staticClass:"headline"},[t._v("修改信息")])]),e("v-card-text",[e("v-container",[e("v-text-field",{staticClass:"mt-4",attrs:{label:"发放数量限制(填-1表示不限制)",type:"number"},model:{value:t.thisMsg.limit_no,callback:function(s){t.$set(t.thisMsg,"limit_no",s)},expression:"thisMsg.limit_no"}}),e("p",{staticClass:"mt-4"},[t._v("优惠券状态")]),e("v-radio-group",{attrs:{mandatory:!1,row:""},model:{value:t.thisMsg.status,callback:function(s){t.$set(t.thisMsg,"status",s)},expression:"thisMsg.status"}},[e("v-radio",{attrs:{label:"开启优惠券",value:1}}),e("v-radio",{attrs:{label:"不可领取",value:2}}),e("v-radio",{attrs:{label:"停用优惠券",value:3}})],1)],1)],1),e("v-card-actions",{staticClass:"justify-space-between"},[e("v-btn",{attrs:{color:"blue gray",text:""},on:{click:function(s){t.thisValue=!1}}},[t._v("取消")]),e("v-btn",{attrs:{color:"dark darken-1",loading:t.loading,text:""},on:{click:function(s){return t.doUpdate()}}},[t._v("保存")])],1)],1)],1)},n=[],l={props:{value:{type:Boolean,required:!0,default:!1},msg:{type:Object,required:!0,default:{status:"",limit_no:""}}},data:function(){return{thisValue:this.value,thisMsg:JSON.parse(JSON.stringify(this.msg)),loading:!1,roles:[]}},watch:{value:function(t){this.thisValue=t},thisValue:function(t){this.$emit("change",t)},msg:function(t){this.thisMsg=JSON.parse(JSON.stringify(t))}},mounted:function(){a=this},methods:{doUpdate:function(){this.loading=!0,this.$post("coupon/update",{id:this.thisMsg.id,status:this.thisMsg.status,limit_no:this.thisMsg.limit_no},function(t){a.loading=!1,0==t.errno&&(a.$message({showClose:!0,message:t.errmsg,type:"success"}),a.thisValue=!1,a.$emit("changemsg",t))})}}},o=l,u=e("6691"),r=Object(u["a"])(o,i,n,!1,null,null,null);s["default"]=r.exports}}]);
//# sourceMappingURL=chunk-2d0e53a5.b1007296.js.map