(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-521f21ec"],{"8a38":function(e,t,a){"use strict";a.r(t);var i=a("7a23");const r=Object(i["withScopeId"])("data-v-bbb4652a");Object(i["pushScopeId"])("data-v-bbb4652a");const s={class:"ele-body"},o=Object(i["createVNode"])("div",{class:"item-tips"},"说明:填写的手机号将会作为当前设置人的登录账号",-1),d=Object(i["createVNode"])("div",{class:"item-tips"},"说明:若不设置初始密码,默认为手机后六位",-1);Object(i["popScopeId"])();const l=r((e,t,a,l,n,u)=>{const c=Object(i["resolveComponent"])("a-input"),m=Object(i["resolveComponent"])("a-form-item"),b=Object(i["resolveComponent"])("a-textarea"),h=Object(i["resolveComponent"])("a-form"),p=Object(i["resolveComponent"])("a-modal");return Object(i["openBlock"])(),Object(i["createBlock"])(p,{"wrap-class-name":"ele-modal-movable ele-modal-resizable ele-modal-resizable",visible:n.modalShow,closable:"",keyboard:"",title:n.form.id?"编辑":"新增",width:600,onCancel:t[6]||(t[6]=e=>n.modalShow=!1),onOk:u.submit,confirmLoading:n.loading,bodyStyle:n.modalBodyStyle},{default:r(()=>[Object(i["createVNode"])("div",s,[Object(i["createVNode"])(h,{ref:"form",model:n.form,rules:n.rules,style:{"max-width":"800px",margin:"0 auto"},"label-col":{md:{span:4},sm:{span:24}},"wrapper-col":{md:{span:20},sm:{span:24}}},{default:r(()=>[Object(i["createVNode"])(m,{label:"名称:",name:"name"},{default:r(()=>[Object(i["createVNode"])(c,{value:n.form.name,"onUpdate:value":t[1]||(t[1]=e=>n.form.name=e),placeholder:"请填写名称","allow-clear":""},null,8,["value"])]),_:1}),Object(i["createVNode"])(m,{label:"手机号:",name:"mobile"},{default:r(()=>[Object(i["createVNode"])(c,{value:n.form.mobile,"onUpdate:value":t[2]||(t[2]=e=>n.form.mobile=e),placeholder:"请填写联系人手机号","allow-clear":""},null,8,["value"]),o]),_:1}),Object(i["createVNode"])(m,{label:"客服电话:",name:"customer_service_phone"},{default:r(()=>[Object(i["createVNode"])(c,{value:n.form.customer_service_phone,"onUpdate:value":t[3]||(t[3]=e=>n.form.customer_service_phone=e),placeholder:"请填写客服电话","allow-clear":""},null,8,["value"])]),_:1}),n.form.id?Object(i["createCommentVNode"])("",!0):(Object(i["openBlock"])(),Object(i["createBlock"])(m,{key:0,label:"登录密码:",name:"password"},{default:r(()=>[Object(i["createVNode"])(c,{value:n.form.password,"onUpdate:value":t[4]||(t[4]=e=>n.form.password=e),placeholder:"请填写密码","allow-clear":""},null,8,["value"]),d]),_:1})),Object(i["createVNode"])(m,{label:"备注:",name:"remark"},{default:r(()=>[Object(i["createVNode"])(b,{value:n.form.remark,"onUpdate:value":t[5]||(t[5]=e=>n.form.remark=e),placeholder:"请填写备注信息"},null,8,["value"])]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["visible","title","onOk","confirmLoading","bodyStyle"])});var n=a("c2e6"),u={name:"addEdit",data(){return{modalShow:!1,loading:!1,modalBodyStyle:{maxHeight:"68vh",overflowY:"auto"},form:{},rules:{name:[{required:!0,message:"请填写名称",trigger:"blur"}],mobile:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:n["a"].phone,message:"手机号格式不正确",trigger:"blur"}],customer_service_phone:[{required:!0,message:"请输入客服手机号",trigger:"blur"}]}}},methods:{openDetail(e){if(e){const t=Object.assign({},e);this.form=t}else this.form={mobile:"",remark:""};this.modalShow=!0},submit(){this.$refs.form.validate().then(()=>{this.loading=!0;let e=Object.assign({},this.form),t="";t=e.id?"/manager/travelTeam/editTeam":"/manager/travelTeam/addTeam",this.$post(t,e).then(()=>{this.$message.success("操作成功!"),this.$emit("reload"),this.modalShow=!1})}).finally(()=>{this.loading=!1})}}},c=(a("a9c0"),a("6b0d")),m=a.n(c);const b=m()(u,[["render",l],["__scopeId","data-v-bbb4652a"]]);t["default"]=b},a9c0:function(e,t,a){"use strict";a("ad9a")},ad9a:function(e,t,a){},c2e6:function(e,t,a){"use strict";t["a"]={phone:/^1\d{10}$/,isPhone(e){return this.phone.test(e)},phoneStrong:/^(13[0-9]{9})|(15[0-9]{9})|(17[0-9]{9})|(18[0-9]{9})|(19[0-9]{9})$/,tel:/^(400|800)([0-9\\-]{7,10})|(([0-9]{4}|[0-9]{3})(-| )?)?([0-9]{7,8})((-| |转)*([0-9]{1,4}))?$/,isTel(e){return this.tel.test(e)},email:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,isEmail(e){return this.email.test(e)},url:/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,isUrl(e){return this.url.test(e)},number:/^[0-9]+\.?[0-9]*$/,isNumber(e){return!isNaN(e)},date:/^(\d{4})[-/](\d{1}|0\d{1}|1[0-2])([-/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,isDate(e){return this.date.test(e)},identity:/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,isIdentity(e){return this.identity.test(e)},digits:/^-?\d+$/,isDigits(e){return this.digits.test(e)},digitsP:/^[1-9]\d*$/,isDigitsP(e){return this.digitsP.test(e)},digitsN:/^-[1-9]\d*$/,isDigitsN(e){return this.digitsN.test(e)},digitsPZ:/^\d+$/,isDigitsPZ(e){return this.digitsPZ.test(e)},digitsNZ:/^-[1-9]\d*|0/,isDigitsNZ(e){return this.digitsNZ.test(e)},maxMinLength(e,t,a){return"undefined"===typeof e||null===e?!t:!(t&&e.toString().lengtha)},maxMin(e,t,a){return"undefined"===typeof e||null===e?"undefined"===typeof t||null===t:!("undefined"!==typeof t&&null!==t&&ea)},chinese:/^[\u4E00-\u9FA5]{2,4}$/,isChinese(e){return this.chinese.test(e)},port:/^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/,isPort(e){return this.port.test(e)},ip:/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/,isIP(e){return this.ip.test(e)},longitude:/^[-|+]?(0?\d{1,2}\.\d{1,5}|1[0-7]?\d{1}\.\d{1,5}|180\.0{1,5})$/,isLongitude(e){return this.longitude.test(e)},latitude:/^[-|+]?([0-8]?\d{1}\.\d{1,5}|90\.0{1,5})$/,isLatitude(e){return this.latitude.test(e)},isIdentityStrong(e){if(!this.isIdentity(e))return"身份证号码格式错误";const t=18===e.length?e.substring(0,17):e.substring(0,6)+"19"+e.substring(6,15),a=t.substring(6,10),i=a+"/"+t.substring(10,12)+"/"+t.substring(12,14);if(!this.isDate(i))return"身份证号码出生日期无效";const r=new Date;if(r.getFullYear()-parseInt(a)>150||r.getTime()-new Date(i).getTime()<0)return"身份证号码出生日期不在有效范围";const s=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"];if(-1===s.indexOf(t.substring(0,2)))return"身份证号码地区编码错误";if(18===e.length){const a=["1","0","X","9","8","7","6","5","4","3","2"],i=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];let r=0;for(let e=0;e<17;e++)r+=parseInt(t.charAt(e))*i[e];if(e!==t+a[r%11])return"身份证号码最后一位错误"}}}}}]);