(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e9b21"],{"8f41":function(t,e,a){"use strict";a.r(e);var n,s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-dialog",{attrs:{persistent:"","max-width":"600px"},model:{value:t.thisValue,callback:function(e){t.thisValue=e},expression:"thisValue"}},[a("v-card",[a("v-card-title",[a("span",{staticClass:"headline"},[t._v("添加为驾驶员")])]),a("v-card-text",[a("v-container",[a("v-text-field",{attrs:{label:"姓名"},model:{value:t.formData.realname,callback:function(e){t.$set(t.formData,"realname",e)},expression:"formData.realname"}}),a("v-text-field",{attrs:{label:"身份证号码"},model:{value:t.formData.id_number,callback:function(e){t.$set(t.formData,"id_number",e)},expression:"formData.id_number"}}),a("p",[t._v("身份证有效日期")]),a("el-date-picker",{attrs:{value:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:t.formData.start_date,callback:function(e){t.$set(t.formData,"start_date",e)},expression:"formData.start_date"}}),t._v("-\n        "),a("el-date-picker",{attrs:{value:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:t.formData.end_date,callback:function(e){t.$set(t.formData,"end_date",e)},expression:"formData.end_date"}})],1)],1),a("v-card-actions",{staticClass:"justify-space-between"},[a("v-btn",{attrs:{color:"blue gray",text:""},on:{click:function(e){t.thisValue=!1}}},[t._v("取消")]),a("v-btn",{attrs:{color:"dark darken-1",loading:t.loading,text:""},on:{click:function(e){return t.doUpdate()}}},[t._v("保存")])],1)],1)],1)},r=[],i={props:{value:{type:Boolean,required:!0,default:!1},msg:{type:Object,required:!0,default:{realname:"",tel_number:""}}},data:function(){return{thisValue:this.value,thisMsg:JSON.parse(JSON.stringify(this.msg)),loading:!1,formData:{realname:"",id_number:"",start_date:"",end_date:""}}},watch:{value:function(t){this.thisValue=t},thisValue:function(t){this.$emit("change",t)},msg:function(t){this.thisMsg=t}},mounted:function(){n=this},methods:{doUpdate:function(){this.loading=!0,this.$post("admin/service/add",{wx_id:this.thisMsg.id,id_number:this.formData.tel_number,realname:this.formData.realname,start_date:this.formData.start_date,end_date:this.formData.end_date},function(t){n.loading=!1,0==t.errno&&(n.$message({showClose:!0,message:t.errmsg,type:"success"}),n.thisValue=!1,n.$emit("changemsg",t))})}}},l=i,d=a("6691"),o=Object(d["a"])(l,s,r,!1,null,null,null);e["default"]=o.exports}}]);
//# sourceMappingURL=chunk-2d0e9b21.f7c1f636.js.map