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.8c9baa5d.js";import{d as oe,D as ue,z as pe,b as x,a0 as k,r as c,o as ie,c as v,e as d,f as j,g as h,h as a,i as e,j as i,t as r,n as ne,I as b,k as g,u as B,F as O,J as M,x as de}from"./index.5bb861d3.js";import{a as fe,d as P}from"./performanceApprove.d5c36542.js";import{t as me}from"./indicatorTemplate.dbd53ead.js";const ce={class:"footerPage"},_e={key:0},ve={key:1},ye=["onClick"],be=["onClick"],ge={key:0,class:"footer"},ke=h("div",null,null,-1),he={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=x([{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:l=>k("span",z[l.projectType]||"-"),width:80},{label:"\u6A21\u677F\u7C7B\u578B",key:"templateType",prop:"templateType",render:l=>{var s,t;return k("span",((t=(s=q.value)==null?void 0:s.find(u=>u.id===l.templateType))==null?void 0:t.name)||"-")}},{label:"\u662F\u5426\u590D\u8BC4",key:"isReAppraisal",prop:"isReAppraisal",render:l=>k("span",l.isReAppraisal?"\u662F":"\u5426"),width:80}]),W=x([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u5E94\u7528\u540D\u79F0",key:"relatedExistsApplication",prop:"relatedExistsApplication",minWidth:150,render:l=>k("span",l.relatedExistsApplication||l.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"}]),G=x([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u5206\u7EC4\u540D\u79F0",key:"name",prop:"name",render:l=>k("span",l.name)},{label:"\u590D\u8BC4\u4EBA\u5458",key:"reAppraisalUsers",prop:"reAppraisalUsers",render:l=>k("span",l.reAppraisalUsers.map(s=>s.username).join("\u3001"))},{label:"\u6838\u67E5\u4EBA\u5458",key:"verificationUsers",prop:"verificationUsers",render:l=>k("span",l.verificationUsers.map(s=>s.username).join("\u3001"))},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn"},{label:"\u64CD\u4F5C",slot:"action",fixed:"right"}]),J=x([{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(),H=c(),p=c({}),K=c(),n=c({}),R=async()=>{var l,s;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={...(l=t.data)==null?void 0:l.appraisalDetail,target:(s=t.data)==null?void 0:s.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(",")}}},Q={1:"\u9879\u76EE",2:"\u5E94\u7528"},C=c(!1),_=c({}),X=async l=>{if(l!=null&&l.id){const s=await se(l.id);_.value={...s.data,reAppraisalUsers:s.data.reAppraisalUsers.map(t=>({...t,name:t.username,phoneNo:t.mobile,orgName:t.empPosUnitName})),verificationUsers:s.data.verificationUsers.map(t=>({...t,name:t.username,phoneNo:t.mobile,orgName:t.empPosUnitName}))}}C.value=!0},Z=()=>{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()})},w=c(!1),A=c(),$=c(),ee=()=>{w.value=!0,A.value={auditMessage:""}},ae=async l=>{!l||l.validate(async s=>{s&&(await P({id:y.query.id*1,auditStatus:3,...A.value}),T.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),R(),w.value=!1)})},q=c(),te=async()=>{const l=await me();q.value=l.data};return ie(()=>{te(),R()}),(l,s)=>{const t=v("el-form-item"),u=v("el-col"),m=v("el-row"),N=v("el-form"),I=v("el-card"),U=v("table-list"),D=v("el-button"),S=v("el-tag"),Y=v("el-dialog"),le=v("el-input");return d(),j(O,null,[h("div",ce,[a(I,{header:"\u5BA1\u6838\u4FE1\u606F",class:"mb-16 search",shadow:"never"},{default:e(()=>[a(N,{"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(r(n.value.createBy||"-"),1)]),_:1})]),_:1}),a(u,{span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u72B6\u6001"},{default:e(()=>[h("span",{class:ne(`${n.value.auditStatus===1?"text-warning":n.value.auditStatus===2?"text-success":"text-danger"}`)},r(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(r(n.value.auditMessage||"-"),1)]),_:1})]),_:1})):g("",!0),a(u,{span:12},{default:e(()=>[a(t,{label:"\u5BA1\u6838\u64CD\u4F5C"},{default:e(()=>[i(r(B(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(r(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(r(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(r(n.value.auditOn||"-"),1)]),_:1})]),_:1})):g("",!0)]),_:1})]),_:1})]),_:1}),a(I,{header:"\u8BC4\u4EF7\u8BA1\u5212\u4FE1\u606F",shadow:"never"},{default:e(()=>[a(N,{ref_key:"fromRef",ref:K,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(r(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"+r(p.value.startSelfDays)+"\u5929\u540E\u5F00\u59CB\u81EA\u8BC4\uFF0C"+r(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(r((o=p.value.target)==null?void 0:o.map(f=>Q[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(),j("span",_e,r((o=p.value.projectYear.split(","))==null?void 0:o[0])+" ~ "+r((f=p.value.projectYear.split(","))==null?void 0:f[p.value.projectYear.split(",").length-1]),1)):(d(),j("span",ve,"-"))]}),_:1})]),_:1}),a(u,{span:24},{default:e(()=>[a(t,{label:"\u9879\u76EE\u91D1\u989D\uFF08\u8303\u56F4\uFF09"},{default:e(()=>[i(r(p.value.startAmount)+"\u4E07\u5143\xA0\u2264\xA0\u9879\u76EE\u91D1\u989D\xA0<\xA0"+r(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(r(p.value.reAppraisalRate)+"% ",1)]),_:1})]),_:1}),a(u,{span:24},{default:e(()=>[a(t,{label:"\u6700\u7EC8\u8BC4\u5206\u516C\u5F0F"},{default:e(()=>[i(r(p.value.selfAppraisalScoreRate)+"%\u81EA\u8BC4\u5206+"+r(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})=>[h("a",{onClick:f=>l.$router.push({name:"scoreDetail",query:{projectId:o.row.projectId,projectCode:o.row.projectCode,appraisalId:B(y).query.id}})},r(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:H,column:W,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(r(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:G,pagination:!1,data:p.value.groups,"empty-temp":!1,class:"flex-1"},{action:e(({scope:o})=>[h("a",{onClick:f=>X(o.row)},"\u8BE6\u60C5",8,be)]),_:1},8,["column","data"])]),_:1})]),_:1})]),_:1})):g("",!0)]),_:1},8,["model"])]),_:1}),l.$route.name==="planApproveDetail"&&n.value.auditStatus===1?(d(),j("div",ge,[a(D,{onClick:s[0]||(s[0]=o=>l.$router.go(-1))},{default:e(()=>[i(" \u8FD4\u56DE ")]),_:1}),a(D,{type:"primary",onClick:Z},{default:e(()=>[i(" \u5BA1\u6838\u901A\u8FC7 ")]),_:1}),a(D,{type:"danger",onClick:ee},{default:e(()=>[i(" \u9A73\u56DE ")]),_:1})])):g("",!0)]),a(Y,{modelValue:C.value,"onUpdate:modelValue":s[1]||(s[1]=o=>C.value=o),title:"\u5206\u7EC4\u8BE6\u60C5",width:"59%"},{default:e(()=>[a(N,{ref:"formRef",model:p.value,rules:l.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(()=>[h("span",null,r(_.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:J,pagination:!1,data:_.value.projects,class:"w-full","empty-temp":!1},null,8,["column","data"]),ke]),_: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),j(O,{key:0},M(_.value.reAppraisalUsers,(f,V)=>(d(),b(S,{key:V,class:"mr-4 mb-8"},{default:e(()=>[i(r(f.username)+" | "+r(f.empPosUnitName)+" | "+r(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),j(O,{key:0},M(_.value.verificationUsers,(f,V)=>(d(),b(S,{key:V,class:"mr-4 mb-8"},{default:e(()=>[i(r(f.username)+" | "+r(f.empPosUnitName)+" | "+r(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:l.index},{default:e(()=>[i(r(_.value.verifyLeader.username)+" | "+r(_.value.verifyLeader.empPosUnitName)+" | "+r(_.value.verifyLeader.mobile),1)]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"]),a(Y,{modelValue:w.value,"onUpdate:modelValue":s[4]||(s[4]=o=>w.value=o),title:"\u9A73\u56DE",onClose:s[5]||(s[5]=o=>w.value=!1)},{footer:e(()=>[h("div",he,[a(D,{type:"primary",onClick:s[3]||(s[3]=o=>ae($.value))},{default:e(()=>[i(" \u786E\u8BA4 ")]),_:1})])]),default:e(()=>[a(N,{ref_key:"auditFormRef",ref:$,model:A.value},{default:e(()=>[a(t,{label:"\u9A73\u56DE\u539F\u56E0",prop:"auditMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]},{default:e(()=>[a(le,{modelValue:A.value.auditMessage,"onUpdate:modelValue":s[2]||(s[2]=o=>A.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};