import{S as a,G as e,C as l,Z as s,_ as t,D as i,y as d,h as o}from"./element-plus-DSMJnpwa.js";import{d as n}from"./index-mv7arXuk.js";/* empty css                     *//* empty css                 *//* empty css                       *//* empty css                */import{_ as u}from"./index-ppR_FSA-.js";import{R as r}from"./repairUser-LFqcoMoS.js";import{_ as m}from"./index-9_f6rNAP.js";import{g as c,u as p}from"./index-BoOYLMmI.js";import{l as v}from"./index-owI_ozJS.js";import{B as f,g as _,a4 as h,aB as b,aE as j,H as y,L as x,M as I,P as g,O as C,Z as k,u as w,F as B,ab as V,I as D,Y as N,d as R}from"./vue-vendor-DZekML78.js";import"./utils-cPVb2Haz.js";/* empty css               *//* empty css                  */import"./index-CY3mI-ZB.js";/* empty css                  *//* empty css                    *//* empty css                        */import"./index-C9waQ9oZ.js";const M={class:"ResidentMainBox p-2 w-full"},U={class:"ResidentMainBody"},q={class:"mb-10"},L={class:"w-full h-full CarinfoBox"},P={class:"carinfo_item"},Z={class:"main"},E={class:"carinfo_item"},F={class:"main"},G={class:"carinfo_item"},H={class:"main"},J={class:"carinfo_item"},O={class:"main"},Q={class:"carinfo_item"},S={class:"main"},W={class:"carinfo_item"},Y={class:"main"},$={class:"mb-10"},z={class:"formbox"},A=n(f({__name:"complainMain",setup(n){const{proxy:f}=_(),{com_complaint_status:A}=h(f?.useDict("com_complaint_status")),K=b(),T=j(),X=R({id:null,type:"",typeId:null,problemDes:"",complaintName:"",phone:"",problemIamgeUrl:"",status:"1",handleId:"",handleName:"",handleContent:""}),aa={status:[{required:!0,message:"选择投诉处理状态",trigger:"blur"}]},ea=R();function la(a){X.value.handleId=a.userId,X.value.handleName=a.nickName}K.query.id&&(ea.value=K.query.id,async function(){const a=await v();c(ea.value).then(e=>{X.value={...X.value,...e.data};const l=a.rows.find(a=>a.id===X.value.typeId);l&&(X.value.type=l.name)})}());const sa=R(),ta=()=>{sa.value?.validate(async a=>{a&&ea.value&&p(X.value).then(()=>{o.success("编辑成功"),ia()})})};function ia(){T.push({path:"/repair/complaint"})}return(o,n)=>{const c=u,p=a,v=t,f=s,_=l,h=i,b=d,j=e;return y(),x("div",M,[I(m,{title:"投诉详情"}),g("div",U,[g("div",q,[I(p,null,{header:C(()=>[...n[2]||(n[2]=[g("div",{class:"card-header"},[g("span",null,"投诉信息")],-1)])]),default:C(()=>[g("div",L,[g("div",P,[n[3]||(n[3]=g("div",{class:"label"},"投诉类型",-1)),g("div",Z,k(X.value.type),1)]),g("div",E,[n[4]||(n[4]=g("div",{class:"label"},"问题描述",-1)),g("div",F,k(X.value.problemDes),1)]),g("div",G,[n[5]||(n[5]=g("div",{class:"label"},"投诉人姓名",-1)),g("div",H,k(X.value.complaintName),1)]),g("div",J,[n[6]||(n[6]=g("div",{class:"label"},"手机号码",-1)),g("div",O,k(X.value.phone),1)]),g("div",Q,[n[7]||(n[7]=g("div",{class:"label"},"投诉时间",-1)),g("div",S,k(X.value.orderDate),1)]),g("div",W,[n[8]||(n[8]=g("div",{class:"label"},"处理状态",-1)),g("div",Y,[I(c,{options:w(A),value:X.value.status},null,8,["options","value"])])])])]),_:1})]),g("div",$,[I(p,null,{header:C(()=>[...n[9]||(n[9]=[g("div",{class:"card-header"},[g("span",null,"处理情况")],-1)])]),default:C(()=>[g("div",z,[I(j,{ref_key:"formRef",ref:sa,rules:aa,class:"m-auto",inline:!1,"label-width":"100px",model:X.value},{default:C(()=>[I(_,{label:"处理状态",prop:"status"},{default:C(()=>[I(f,{modelValue:X.value.status,"onUpdate:modelValue":n[0]||(n[0]=a=>X.value.status=a)},{default:C(()=>[(y(!0),x(B,null,V(w(A),(a,e)=>(y(),D(v,{key:e,value:a.value},{default:C(()=>[N(k(a.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(_,{label:"处理人员",prop:"handleId"},{default:C(()=>[I(r,{userid:X.value.handleId,returnvalue:"value",onChange:la},null,8,["userid"])]),_:1}),I(_,{label:"处理描述",prop:"handleContent"},{default:C(()=>[I(h,{type:"textarea",rows:5,modelValue:X.value.handleContent,"onUpdate:modelValue":n[1]||(n[1]=a=>X.value.handleContent=a)},null,8,["modelValue"])]),_:1}),I(_,null,{default:C(()=>[I(b,{type:"primary",onClick:ta},{default:C(()=>[...n[10]||(n[10]=[N("提交",-1)])]),_:1}),I(b,{onClick:ia},{default:C(()=>[...n[11]||(n[11]=[N("返回",-1)])]),_:1})]),_:1})]),_:1},8,["model"])])]),_:1})])])])}}}),[["__scopeId","data-v-fe340d01"]]);export{A as default};
