Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 linhas
12KB

  1. import{d as re,h as se}from"./evaluationPlan.61fc1073.js";import{d as oe,B as ue,x as pe,b as D,Z as k,r as c,o as ie,c as v,e as d,f as w,g as j,h as a,i as e,j as i,t as s,n as ne,G as b,k as g,u as Y,F as O,H as M,q as de}from"./index.a2494fc2.js";import{a as fe,d as P}from"./performanceApprove.ce148b03.js";import{t as me}from"./indicatorTemplate.6dbb281e.js";const ce={class:"footerPage"},_e={key:0},ve={key:1},ye=["onClick"],be=["onClick"],ge={key:0,class:"footer"},ke={class:"flex justify-center"},je=oe({name:"planDetail"}),xe=Object.assign(je,{setup(we){const{operationTypeOptions:F,projectTypeOptions:z}=ue.dictStore.globalDicts||{},{proxy:T}=de(),y=pe(),E=D([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:80},{label:"\u9879\u76EE\u91D1\u989D",key:"declareAmount",prop:"declareAmount"},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName"},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectType",prop:"projectType",render:r=>k("span",z[r.projectType]||"-"),width:80},{label:"\u6A21\u677F\u7C7B\u578B",key:"templateType",prop:"templateType",render:r=>{var l,t;return k("span",((t=(l=q.value)==null?void 0:l.find(u=>u.id===r.templateType))==null?void 0:t.name)||"-")}},{label:"\u662F\u5426\u590D\u8BC4",key:"isReAppraisal",prop:"isReAppraisal",render:r=>k("span",r.isReAppraisal?"\u662F":"\u5426"),width:80}]),G=D([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u5E94\u7528\u540D\u79F0",key:"relatedExistsApplication",prop:"relatedExistsApplication",minWidth:150,render:r=>k("span",r.relatedExistsApplication||r.applicationName),showOverflowTooltip:!0},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName"},{label:"\u5E94\u7528\u7C7B\u578B",key:"applicationType",prop:"applicationType"},{label:"\u5E94\u7528\u9886\u57DF",key:"bizDomain",prop:"bizDomain"},{label:"\u53D1\u5E03\u7AEF",key:"publishSide",prop:"publishSide"}]),W=D([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u5206\u7EC4\u540D\u79F0",key:"name",prop:"name",render:r=>k("span",r.name)},{label:"\u590D\u8BC4\u4EBA\u5458",key:"reAppraisalUsers",prop:"reAppraisalUsers",render:r=>k("span",r.reAppraisalUsers.map(l=>l.username).join("\u3001"))},{label:"\u6838\u67E5\u4EBA\u5458",key:"verificationUsers",prop:"verificationUsers",render:r=>k("span",r.verificationUsers.map(l=>l.username).join("\u3001"))},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn"},{label:"\u64CD\u4F5C",slot:"action",fixed:"right"}]),H=D([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName"},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName"},{label:"\u7533\u62A5\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"declareAmount",prop:"declareAmount",width:"140"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear"}]),L=c(),Z=c(),p=c({}),J=c(),n=c({}),R=async()=>{var r,l;if(y.name==="planApproveDetail"||y.query.auditId){const t=await fe(y.name==="planApproveDetail"?y.query.id:y.query.auditId);n.value={...t.data},p.value={...(r=t.data)==null?void 0:r.appraisalDetail,target:(l=t.data)==null?void 0:l.appraisalDetail.target.split(",")}}else{const t=await re(y.query.id);n.value={...t.data.auditInfo},p.value={...t.data,target:t.data.target.split(",")}}},K={1:"\u9879\u76EE",2:"\u5E94\u7528"},C=c(!1),_=c({}),Q=async r=>{if(r!=null&&r.id){const l=await se(r.id);_.value={...l.data,reAppraisalUsers:l.data.reAppraisalUsers.map(t=>({...t,name:t.username,phoneNo:t.mobile,orgName:t.empPosUnitName})),verificationUsers:l.data.verificationUsers.map(t=>({...t,name:t.username,phoneNo:t.mobile,orgName:t.empPosUnitName}))}}C.value=!0},X=()=>{T.$messageBox.confirm("\u662F\u5426\u786E\u8BA4\u5BA1\u6838\u901A\u8FC7?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await P({id:y.query.id*1,auditStatus:2}),T.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),R()})},A=c(!1),N=c(),$=c(),ee=()=>{A.value=!0,N.value={auditMessage:""}},ae=async r=>{!r||r.validate(async l=>{l&&(await P({id:y.query.id*1,auditStatus:3,...N.value}),T.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),R(),A.value=!1)})},q=c(),te=async()=>{const r=await me();q.value=r.data};return ie(()=>{te(),R()}),(r,l)=>{const t=v("el-form-item"),u=v("el-col"),m=v("el-row"),h=v("el-form"),B=v("el-card"),U=v("table-list"),x=v("el-button"),S=v("el-tag"),I=v("el-dialog"),le=v("el-input");return d(),w(O,null,[j("div",ce,[a(B,{header:"\u5BA1\u6838\u4FE1\u606F",class:"mb-16 search",shadow:"never"},{default:e(()=>[a(h,{"label-position":"right","label-width":"","label-suffix":":"},{default:e(()=>[a(m,{gutter:24},{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"\u914D\u7F6E\u4EBA\u5458"},{default:e(()=>[i(s(n.value.createBy||"-"),1)]),_:1})]),_:1}),a(u,{span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u72B6\u6001"},{default:e(()=>[j("span",{class:ne(`${n.value.auditStatus===1?"text-warning":n.value.auditStatus===2?"text-success":"text-danger"}`)},s(n.value.auditStatusName||"-"),3)]),_:1})]),_:1}),n.value.auditStatus!==1&&n.value.auditMessage?(d(),b(u,{key:0,span:24},{default:e(()=>[a(t,{label:"\u9A73\u56DE\u539F\u56E0"},{default:e(()=>[i(s(n.value.auditMessage||"-"),1)]),_:1})]),_:1})):g("",!0),a(u,{span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u64CD\u4F5C"},{default:e(()=>[i(s(Y(F)[n.value.operationType]||"-"),1)]),_:1})]),_:1}),n.value.auditStatus!==1?(d(),b(u,{key:1,span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u4EBA\u5458"},{default:e(()=>[i(s(n.value.auditBy||"-"),1)]),_:1})]),_:1})):g("",!0),a(u,{span:12},{default:e(()=>[a(t,{label:"\u63D0\u4EA4\u5BA1\u6838\u65F6\u95F4"},{default:e(()=>[i(s(n.value.createOn||"-"),1)]),_:1})]),_:1}),n.value.auditStatus!==1?(d(),b(u,{key:2,span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u65F6\u95F4"},{default:e(()=>[i(s(n.value.auditOn||"-"),1)]),_:1})]),_:1})):g("",!0)]),_:1})]),_:1})]),_:1}),a(B,{header:"\u8BC4\u4EF7\u8BA1\u5212\u4FE1\u606F",shadow:"never"},{default:e(()=>[a(h,{ref_key:"fromRef",ref:J,model:p.value,"label-position":"right","label-width":"","label-suffix":":"},{default:e(()=>[a(m,{gutter:24},{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"\u8BA1\u5212\u540D\u79F0",prop:"name"},{default:e(()=>[i(s(p.value.name),1)]),_:1})]),_:1})]),_:1}),a(m,{gutter:24},{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"\u81EA\u8BC4\u65F6\u95F4"},{default:e(()=>[i(" \u9879\u76EE\u7EC8\u9A8C\u540E"+s(p.value.startSelfDays)+"\u5929\u540E\u5F00\u59CB\u81EA\u8BC4\uFF0C"+s(p.value.completeSelfDays)+"\u5929\u5185\u5B8C\u6210\u81EA\u8BC4 ",1)]),_:1})]),_:1})]),_:1}),a(m,null,{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"\u8BC4\u4EF7\u5BF9\u8C61"},{default:e(()=>{var o;return[i(s((o=p.value.target)==null?void 0:o.map(f=>K[f]).join("\u3001")),1)]}),_:1})]),_:1})]),_:1}),p.value.projects?(d(),b(m,{key:0,gutter:24},{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:e(()=>{var o,f;return[p.value.projectYear.split?(d(),w("span",_e,s((o=p.value.projectYear.split(","))==null?void 0:o[0])+" ~ "+s((f=p.value.projectYear.split(","))==null?void 0:f[p.value.projectYear.split(",").length-1]),1)):(d(),w("span",ve,"-"))]}),_:1})]),_:1}),a(u,{span:24},{default:e(()=>[a(t,{label:"\u9879\u76EE\u91D1\u989D\uFF08\u8303\u56F4\uFF09"},{default:e(()=>[i(s(p.value.startAmount)+"\u4E07\u5143\xA0\u2264\xA0\u9879\u76EE\u91D1\u989D\xA0<\xA0"+s(p.value.endAmount)+"\u4E07\u5143 ",1)]),_:1})]),_:1}),a(u,{span:24},{default:e(()=>[a(t,{label:"\u9879\u76EE\u590D\u8BC4\u5360\u6BD4"},{default:e(()=>[i(s(p.value.reAppraisalRate)+"% ",1)]),_:1})]),_:1}),a(u,{span:24},{default:e(()=>[a(t,{label:"\u6700\u7EC8\u8BC4\u5206\u516C\u5F0F"},{default:e(()=>[i(s(p.value.selfAppraisalScoreRate)+"%\u81EA\u8BC4\u5206+"+s(p.value.reAppraisalScoreRate)+"%\u590D\u8BC4\u5206 ",1)]),_:1})]),_:1}),a(u,{span:24},{default:e(()=>[a(t,{label:"\u8BC4\u4EF7\u9879\u76EE",prop:"projects"},{default:e(()=>[a(U,{ref_key:"tableListRef",ref:L,column:E,pagination:!1,data:p.value.projects,"empty-temp":!1,class:"flex-1"},{projectName:e(({scope:o})=>[j("a",{onClick:f=>r.$router.push({name:"scoreDetail",query:{projectId:o.row.projectId,projectCode:o.row.projectCode,appraisalId:Y(y).query.id}})},s(o.row.projectName),9,ye)]),_:1},8,["column","data"])]),_:1})]),_:1})]),_:1})):g("",!0),p.value.applications?(d(),b(m,{key:1,gutter:24},{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"\u8BC4\u4EF7\u5E94\u7528",prop:"applications"},{default:e(()=>[a(U,{ref_key:"tableListRef1",ref:Z,column:G,pagination:!1,data:p.value.applications,"empty-temp":!1,class:"flex-1"},null,8,["column","data"])]),_:1})]),_:1})]),_:1})):g("",!0),a(m,null,{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"\u5907\u6CE8"},{default:e(()=>[i(s(p.value.remark||"-"),1)]),_:1})]),_:1})]),_:1}),p.value.groups?(d(),b(m,{key:2,gutter:24},{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"\u9879\u76EE\u5206\u7EC4",prop:"groups"},{default:e(()=>[a(U,{ref:"tableListRef2",column:W,pagination:!1,data:p.value.groups,"empty-temp":!1,class:"flex-1"},{action:e(({scope:o})=>[j("a",{onClick:f=>Q(o.row)},"\u8BE6\u60C5",8,be)]),_:1},8,["column","data"])]),_:1})]),_:1})]),_:1})):g("",!0)]),_:1},8,["model"])]),_:1}),r.$route.name==="planApproveDetail"&&n.value.auditStatus===1?(d(),w("div",ge,[a(x,{onClick:l[0]||(l[0]=o=>r.$router.go(-1))},{default:e(()=>l[6]||(l[6]=[i(" \u8FD4\u56DE ")])),_:1}),a(x,{type:"primary",onClick:X},{default:e(()=>l[7]||(l[7]=[i(" \u5BA1\u6838\u901A\u8FC7 ")])),_:1}),a(x,{type:"danger",onClick:ee},{default:e(()=>l[8]||(l[8]=[i(" \u9A73\u56DE ")])),_:1})])):g("",!0)]),a(I,{modelValue:C.value,"onUpdate:modelValue":l[1]||(l[1]=o=>C.value=o),title:"\u5206\u7EC4\u8BE6\u60C5",width:"59%"},{default:e(()=>[a(h,{ref:"formRef",model:p.value,rules:r.rules,"label-position":"right","label-width":"","label-suffix":":"},{default:e(()=>[a(m,{gutter:4},{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"\u5206\u7EC4\u540D\u79F0",prop:"name"},{default:e(()=>[j("span",null,s(_.value.name),1)]),_:1})]),_:1})]),_:1}),a(m,{gutter:4},{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"\u8BC4\u4EF7\u9879\u76EE",prop:"projects"},{default:e(()=>[a(U,{ref_key:"tableListRef",ref:L,column:H,pagination:!1,data:_.value.projects,class:"w-full","empty-temp":!1},null,8,["column","data"]),l[9]||(l[9]=j("div",null,null,-1))]),_:1})]),_:1})]),_:1}),a(m,{gutter:4},{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"\u590D\u8BC4\u4EBA\u5458",prop:"reAppraisalUsers"},{default:e(()=>{var o;return[(o=_.value.reAppraisalUsers)!=null&&o.length?(d(!0),w(O,{key:0},M(_.value.reAppraisalUsers,(f,V)=>(d(),b(S,{key:V,class:"mr-4 mb-8"},{default:e(()=>[i(s(f.username)+" | "+s(f.empPosUnitName)+" | "+s(f.mobile),1)]),_:2},1024))),128)):g("",!0)]}),_:1})]),_:1})]),_:1}),a(m,{gutter:4},{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"\u6838\u67E5\u4EBA\u5458",prop:"verificationUsers"},{default:e(()=>{var o;return[(o=_.value.verificationUsers)!=null&&o.length?(d(!0),w(O,{key:0},M(_.value.verificationUsers,(f,V)=>(d(),b(S,{key:V,class:"mr-4 mb-8"},{default:e(()=>[i(s(f.username)+" | "+s(f.empPosUnitName)+" | "+s(f.mobile),1)]),_:2},1024))),128)):g("",!0)]}),_:1})]),_:1}),a(u,{span:12},{default:e(()=>[a(t,{label:"\u6838\u67E5\u7EC4\u957F"},{default:e(()=>[(d(),b(S,{key:r.index},{default:e(()=>[i(s(_.value.verifyLeader.username)+" | "+s(_.value.verifyLeader.empPosUnitName)+" | "+s(_.value.verifyLeader.mobile),1)]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"]),a(I,{modelValue:A.value,"onUpdate:modelValue":l[4]||(l[4]=o=>A.value=o),title:"\u9A73\u56DE",onClose:l[5]||(l[5]=o=>A.value=!1)},{footer:e(()=>[j("div",ke,[a(x,{type:"primary",onClick:l[3]||(l[3]=o=>ae($.value))},{default:e(()=>l[10]||(l[10]=[i(" \u786E\u8BA4 ")])),_:1})])]),default:e(()=>[a(h,{ref_key:"auditFormRef",ref:$,model:N.value},{default:e(()=>[a(t,{label:"\u9A73\u56DE\u539F\u56E0",prop:"auditMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:e(()=>[a(le,{modelValue:N.value.auditMessage,"onUpdate:modelValue":l[2]||(l[2]=o=>N.value.auditMessage=o),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u9A73\u56DE\u539F\u56E0"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});export{xe as default};