import{d as H,q as i,a1 as R,U as z,r as d,o as u,c as v,e as l,j as t,g as n,f as k,aA as A,E as M,F as y,C as V,i as h,ak as $,al as G,_ as J}from "./index-f5e1fd05.js";import{l as K}from "./login-bottom-ec7c87ff.js";import{q as x}from "./session-8b690360.js";import{u as b}from "./home-420faaf8.js";const D= c=>($("data-v-69a371e5"),c=c(),G(),c),O={class:"ConfirmDialog_main"},P={class:"title"},Q=["src"],W=D(()=>n("span",null,"案件信息",-1)),X=D(()=>n("div",{class:"question"},"这是您想要的查询内容吗？请确认",-1)),Y={class:"case_name"},Z={class:"btn_footer"},ee=H({name:"ConfirmDialog",__name:"ConfirmDialog",emits:["saveText","saveVoice"],setup(c, {expose:F,emit:S}){const _=i(!1),w=i(""),o=R({cardNumber:"",name:"",cardNumberList:[],idNumber:""}),r=i([]),f=i([]),L=i(),p=i([]);F({async openText(s){await z(),_.value=!0,o.name=s.answerInfo.suspectInfo.name,o.cardNumberList=s.answerInfo.suspectInfo.cardNumber,o.idNumber=s.answerInfo.suspectInfo.idNumber,w.value=s.askInfo.askId;const a=await x({name:o.name,sessionId:b().selectCaseInfo.sessionId});r.value=a.data;for(const m of r.value)m.name===o.name&&(p.value.push(m.idNumber),f.value=m.cardNumber)}});const N=()=>{L.value.resetFields(),r.value=[],_.value=!1},B=S,U=async()=>{const s={confirmFlag:!0,...o,cardNumber:o.cardNumberList.join(","),cardNumberList:void 0,askId:w.value,sessionId:b().selectCaseInfo.sessionId};N(),B("saveText",s)},T=async s=>{if(s){const a=await x({name:s,sessionId:b().selectCaseInfo.sessionId});r.value=a.data}else r.value=[]},j= s=>{o.name=s,o.idNumber="",o.cardNumberList=[],p.value=[],f.value=[];for(const a of r.value)a.name===s&&(p.value.push(a.idNumber),f.value=a.cardNumber)};return(s, a)=>{const m=d("el-icon"),I=d("el-option"),g=d("el-select"),C=d("el-form-item"),q=d("el-form"),E=d("el-dialog");return u(),v("div",null,[l(E,{width:"640","append-to-body":"",title:"",modelValue:_.value,"onUpdate:modelValue":a[4]||(a[4]= e=>_.value=e),"custom-class":"ConfirmDialog"},{default:t(()=>[n("div",O,[n("div",P,[n("img",{src:k(K),alt:""},null,8,Q),W,l(m,{onClick:N,size:"20",class:"icon"},{default:t(()=>[l(k(A))]),_:1})]),X,n("div",Y,M(k(b)().selectCaseInfo.sessionName),1),l(q,{"label-position":"top",ref_key:"ruleFormRef",ref:L,model:o},{default:t(()=>[l(C,{label:"交易姓名",prop:"name"},{default:t(()=>[l(g,{style:{width:"100%"},filterable:"",remote:"","remote-method":T,modelValue:o.name,"onUpdate:modelValue":a[0]||(a[0]= e=>o.name=e),placeholder:"请输入",onChange:j},{default:t(()=>[(u(!0),v(y,null,V(r.value, e=>(u(),h(I,{key:e.idNumber,label:e.name,value:e.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(C,{label:"交易证件号码",prop:"idNumber"},{default:t(()=>[l(g,{style:{width:"100%"},modelValue:o.idNumber,"onUpdate:modelValue":a[1]||(a[1]= e=>o.idNumber=e),placeholder:"请输入"},{default:t(()=>[(u(!0),v(y,null,V(p.value, e=>(u(),h(I,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(C,{label:"交易卡号",prop:"cardNumberList"},{default:t(()=>[l(g,{style:{width:"100%"},modelValue:o.cardNumberList,"onUpdate:modelValue":a[2]||(a[2]= e=>o.cardNumberList=e),placeholder:"请输入",multiple:""},{default:t(()=>[(u(!0),v(y,null,V(f.value, e=>(u(),h(I,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),n("div",Z,[n("div",{class:"main_btn",onClick:a[3]||(a[3]= e=>U())},"确定"),n("div",{class:"btn",onClick:N},"取消")])])]),_:1},8,["modelValue"])])}}});const te=J(ee,[["__scopeId","data-v-69a371e5"]]);export{te as default};
