import{_ as a,b as e,aG as t,aI as r,d as s,e as o,f as m,w as l,i as d,o as n,h as i,j as u,m as f}from"./index-DHEmZ3XZ.js";import{_ as c}from"./next-watermark.0mun_i3T.js";import{_ as p,a as h,b}from"./uni-forms.CmPDhUme.js";import"./uni-icons.K5G-aCXf.js";const _=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,_,y){const C=s(o("next-watermark"),c),D=s(o("uni-easyinput"),p),V=s(o("uni-forms-item"),h),k=f,w=s(o("uni-forms"),b),g=d;return n(),m(g,{class:"synergy-person-add"},{default:l((()=>[i(C,{watermark:String(a.userStore.watermark)},null,8,["watermark"]),i(w,{ref:"form",modelValue:_.formData,"label-position":"top","label-width":"100%",rules:_.rules},{default:l((()=>[i(V,{label:"姓名:",name:"name"},{default:l((()=>[i(D,{type:"text",modelValue:_.formData.name,"onUpdate:modelValue":e[0]||(e[0]=a=>_.formData.name=a)},null,8,["modelValue"])])),_:1}),i(V,{label:"身份证号:",name:"idCard"},{default:l((()=>[i(D,{type:"text",modelValue:_.formData.idCard,"onUpdate:modelValue":e[1]||(e[1]=a=>_.formData.idCard=a)},null,8,["modelValue"])])),_:1}),i(k,{type:"primary",onClick:e[2]||(e[2]=a=>y.onSubmit())},{default:l((()=>[u("提交")])),_:1})])),_:1},8,["modelValue","rules"])])),_:1})}],["__scopeId","data-v-c5f10ea0"]]);export{_ as default};
