import{F as V}from"./index.d8717905.js";import{T as g,E as D}from"./index.esm.3fe50213.js";import{a9 as A,aa as w}from"./setting.644fa418.js";import{d as T,aX as x,r as U,b as k,b5 as R,a_ as N,c as r,e as z,f as G,h as l,i as t,u as a,a2 as M,g as O,m as i,E as P}from"./index.0308b213.js";const S=O("span",null,"\u914D\u9001\u5458\u7533\u8BF7",-1),X=i("\u8EAB\u4EFD\u8BC1\u53CD\u9762"),j=i("\u6821\u56ED\u5361\u6B63\u9762"),q=i("\u5173\u95ED"),H=i("\u662F"),I=i("\u5426"),J=i("\u662F"),K=i("\u5426"),L=i("\u4FDD\u5B58"),ee=T({setup(Q){const m=x.get("uniacid"),y=U(),e=k({mobile_verify_status:0,idard:0,paperType:2,ageement_delivery:"",is_fill_idCard:0,is_fill_vehicle:0}),n=R(),b={},C={placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9..."};N(()=>{const u=n.value;u!=null&&u.destroy()});const v=u=>{n.value=u},p="default",B=()=>{A({uniacid:m}).then(u=>{e.idard=u.idCard===1,e.mobile_verify_status=u.mobile_verify_status===1,e.ageement_delivery=u.agreement_delivery,e.paperType=u.paperType,e.is_fill_idCard=u.is_fill_idCard||0,e.is_fill_vehicle=u.is_fill_vehicle||0})},F=()=>{w({uniacid:m,mobile_verify_status:e.mobile_verify_status?1:2,idCard:e.idard?1:2,agreement_delivery:e.ageement_delivery,paperType:e.paperType,is_fill_idCard:e.is_fill_idCard,is_fill_vehicle:e.is_fill_vehicle}).then(u=>{u&&P({type:"success",message:"\u4FDD\u5B58\u6210\u529F"})})};return B(),(u,o)=>{const c=r("el-switch"),_=r("el-form-item"),s=r("el-radio"),f=r("el-radio-group"),h=r("el-card"),E=r("el-button");return z(),G("div",null,[l(a(M),{ref_key:"formRef",ref:y,model:a(e),"label-width":"160px",size:"default","label-position":"top"},{default:t(()=>[l(h,{shadow:"always","body-style":{padding:"20px"}},{header:t(()=>[S]),default:t(()=>[l(_,{label:"\u662F\u5426\u77ED\u4FE1\u9A8C\u8BC1\u624B\u673A\u53F7",prop:"switch"},{default:t(()=>[l(c,{modelValue:a(e).mobile_verify_status,"onUpdate:modelValue":o[0]||(o[0]=d=>a(e).mobile_verify_status=d)},null,8,["modelValue"])]),_:1}),l(_,{label:"*\u662F\u5426\u9700\u8981\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u7167\u7247"},{default:t(()=>[l(c,{modelValue:a(e).idard,"onUpdate:modelValue":o[1]||(o[1]=d=>a(e).idard=d)},null,8,["modelValue"])]),_:1}),l(_,{label:"\u4E0A\u4F20\u8BC1\u4EF6\u7C7B\u578B"},{default:t(()=>[l(f,{modelValue:a(e).paperType,"onUpdate:modelValue":o[2]||(o[2]=d=>a(e).paperType=d)},{default:t(()=>[l(s,{label:1},{default:t(()=>[X]),_:1}),l(s,{label:2},{default:t(()=>[j]),_:1}),l(s,{label:0},{default:t(()=>[q]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(_,{label:"\u662F\u5426\u9700\u8981\u586B\u5199\u8EAB\u4EFD\u8BC1"},{default:t(()=>[l(f,{modelValue:a(e).is_fill_idCard,"onUpdate:modelValue":o[3]||(o[3]=d=>a(e).is_fill_idCard=d)},{default:t(()=>[l(s,{label:1},{default:t(()=>[H]),_:1}),l(s,{label:0},{default:t(()=>[I]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(_,{label:"\u662F\u5426\u9700\u8981\u9009\u62E9\u4EA4\u901A\u5DE5\u5177"},{default:t(()=>[l(f,{modelValue:a(e).is_fill_vehicle,"onUpdate:modelValue":o[4]||(o[4]=d=>a(e).is_fill_vehicle=d)},{default:t(()=>[l(s,{label:1},{default:t(()=>[J]),_:1}),l(s,{label:0},{default:t(()=>[K]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(_,{label:"*\u5165\u9A7B\u534F\u8BAE",style:{width:"100%"}},{default:t(()=>[l(a(g),{style:{"border-bottom":"1px solid #ccc"},editor:a(n),defaultConfig:b,mode:p},null,8,["editor"]),l(a(D),{style:{height:"500px",width:"100%"},modelValue:a(e).ageement_delivery,"onUpdate:modelValue":o[5]||(o[5]=d=>a(e).ageement_delivery=d),defaultConfig:C,mode:p,onOnCreated:v},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"]),l(V,null,{default:t(()=>[l(E,{type:"primary",size:"small",onClick:F},{default:t(()=>[L]),_:1})]),_:1})])}}});export{ee as default};
