import{_ as a,s as e,aG as t,aI as r,f as s,h as o,i as l,w as m,j as d,o as n,k as i,l as u,q as f}from"./index-mnxZbLx5.js";import{_ as c}from"./next-watermark.B6CAgmmH.js";import{_ as p,a as h,b as _}from"./uni-forms.Bhdst-hk.js";import"./uni-icons.DUOKuwLq.js";const b=a({data:()=>({caseNum:null,formData:{name:"",idCard:""},rules:{name:{rules:[{required:!0,errorMessage:"请输入姓名"}]},idCard:{rules:[{required:!0,errorMessage:"请输入身份证号"}]}}}),onLoad(a){this.caseNum=a.caseNum},methods:{onSubmit(){this.$refs.form.validate().then((a=>{this.$http({url:`/collaborativeTask/addInvolvePerson?name=${this.formData.name}&idCard=${this.formData.idCard}&caseCode=${this.caseNum}`,method:"POST",data:this.formData}).then((a=>{e({title:"操作成功",icon:"none"}),setTimeout((()=>{let a=t();a[a.length-2].$vm.queryMember(),r()}),1e3)}))})).catch((a=>{console.log("表单错误信息：",a)}))}}},[["render",function(a,e,t,r,b,y){const C=s(o("next-watermark"),c),D=s(o("uni-easyinput"),p),k=s(o("uni-forms-item"),h),V=f,w=s(o("uni-forms"),_),g=d;return n(),l(g,{class:"synergy-person-add"},{default:m((()=>[i(C,{watermark:String(a.userStore.watermark)},null,8,["watermark"]),i(w,{ref:"form",modelValue:b.formData,"label-position":"top","label-width":"100%",rules:b.rules},{default:m((()=>[i(k,{label:"姓名:",name:"name"},{default:m((()=>[i(D,{type:"text",modelValue:b.formData.name,"onUpdate:modelValue":e[0]||(e[0]=a=>b.formData.name=a)},null,8,["modelValue"])])),_:1}),i(k,{label:"身份证号:",name:"idCard"},{default:m((()=>[i(D,{type:"text",modelValue:b.formData.idCard,"onUpdate:modelValue":e[1]||(e[1]=a=>b.formData.idCard=a)},null,8,["modelValue"])])),_:1}),i(V,{type:"primary",onClick:e[2]||(e[2]=a=>y.onSubmit())},{default:m((()=>[u("提交")])),_:1})])),_:1},8,["modelValue","rules"])])),_:1})}],["__scopeId","data-v-c5f10ea0"]]);export{b as default};
