var h=(n,p,i)=>new Promise((m,l)=>{var s=d=>{try{c(i.next(d))}catch(u){l(u)}},t=d=>{try{c(i.throw(d))}catch(u){l(u)}},c=d=>d.done?m(d.value):Promise.resolve(d.value).then(s,t);c((i=i.apply(n,p)).next())});import{_ as N,c as _,w as e,f as C,o as f,k as r,j as V,i as g,L as y,q as x,p as a,t as o,a1 as k,M as R,N as T}from"./index-CZJgrp0v.js";import{g as v}from"./person.D70CBvre.js";const L={name:"historyDetail",data(){return{record:{}}},computed:{changeList(){const n=JSON.parse(this.record.changeContent||"[]");return n.length>0,n},personInfo(){return this.record.personApplyRecordType==="sporter"?this.record.sporterRespVO||{}:this.record.personRespVO||{}}},methods:{_getPersonApplyRecordInfo(n){return h(this,null,function*(){const p=yield v(n);p.code===0&&(console.log({info:p.data}),this.record=p.data)})},formatTime(n){return n}},mounted(){this._getPersonApplyRecordInfo(this.$route.query.id)}};function w(n,p,i,m,l,s){const t=x,c=V,d=C("layout-default-uni");return f(),_(d,null,{default:e(()=>[r(c,{class:"record-info"},{default:e(()=>[r(c,{class:"record-header"},{default:e(()=>[r(t,{class:"record-time"},{default:e(()=>[a(o(s.formatTime(l.record.createTime)),1)]),_:1}),r(c,{class:k(["status-badge",l.record.personStatus])},{default:e(()=>[a(o(l.record.personStatusCn),1)]),_:1},8,["class"])]),_:1}),r(t,{class:"record-type"},{default:e(()=>[a(o(l.record.personApplyRecordTypeCn)+"申请",1)]),_:1}),r(t,{class:"record-applicant"},{default:e(()=>[a("申请人："+o(l.record.creatorName),1)]),_:1}),r(t,{class:"record-applicant"},{default:e(()=>[a("学工号："+o(s.personInfo.tsNo),1)]),_:1}),r(t,{class:"record-applicant"},{default:e(()=>[a("证件号码："+o(s.personInfo.identityCard||"-"),1)]),_:1}),r(t,{class:"record-applicant"},{default:e(()=>[a("出生日期："+o(s.personInfo.birth||"-"),1)]),_:1}),r(t,{class:"record-applicant"},{default:e(()=>[a("手机号码："+o(s.personInfo.phone),1)]),_:1}),r(t,{class:"record-applicant"},{default:e(()=>[a("所在单位："+o(s.personInfo.collegeName),1)]),_:1}),s.personInfo.goodProjectName?(f(),_(t,{key:0,class:"record-applicant"},{default:e(()=>[a(" 擅长项目："+o(s.personInfo.goodProjectName),1)]),_:1})):g("",!0),r(t,{class:"record-applicant"},{default:e(()=>[a("个人介绍："+o(s.personInfo.introduction),1)]),_:1}),r(c,{class:"apply-opinion"},{default:e(()=>[r(t,{class:"opinion-label"},{default:e(()=>[a("审核意见:")]),_:1}),r(t,{class:"opinion-content"},{default:e(()=>[a(o(l.record.auditCause||"-"),1)]),_:1})]),_:1}),s.changeList.length>0?(f(),y("div",{key:1,class:"changeList"},[r(c,{class:"changeTitle"},{default:e(()=>[a("变更记录")]),_:1}),(f(!0),y(R,null,T(s.changeList,(u,I)=>(f(),_(c,{class:"changeItem",key:I},{default:e(()=>[r(t,{class:"fieldValue"},{default:e(()=>[a(o(u.fieldValue)+"：",1)]),_:2},1024),r(t,null,{default:e(()=>[a(o(u.oldValue||"-"),1)]),_:2},1024),a("  修改为   "),r(t,null,{default:e(()=>[a(o(u.newValue||"-"),1)]),_:2},1024)]),_:2},1024))),128))])):g("",!0)]),_:1})]),_:1})}const S=N(L,[["render",w],["__scopeId","data-v-d07366bf"]]);export{S as default};
