Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
5.7KB

  1. import{d as T,z,r as k,o as A,c as d,e as n,f as y,I as c,i as e,g as m,t as p,h as t,j as r,k as j,F as q,J as D,l as B,x as M}from"./index.8d65dd27.js";import{p as G}from"./projectStore.eaae545e.js";import{s as H,a as K,b as Q}from"./reviewCheckProjectList.e224aec6.js";const W={class:"footerPage auditList"},X={class:"card-header"},Y={class:"flex justify-between items-center"},Z={class:"flex-1"},ee={class:"font-bold"},te={class:"mt-8 search"},ae={class:"font-bold text-16 mb-8"},le={class:"flex items-center"},oe={class:"footer"},se=T({name:"auditList"}),ie=Object.assign(se,{setup(ue){const{proxy:$}=M(),b=z(),f=k({}),L=k(),_=k({}),P=async()=>{var i;const s=await G(b.query.id);_.value=s.data,f.value={reviewChecklist:((i=s.data)==null?void 0:i.reviewChecklist)&&JSON.parse(s.data.reviewChecklist)||[]}},I=async()=>{const s=await H(b.query.projectCode);f.value={reviewChecklist:s.data}},g=k(!1),O=s=>{!s||s.validate(async i=>{if(i){g.value=!0;const l=[];f.value.reviewChecklist.forEach(o=>{o.modules.forEach(V=>{l.push({...V,...o,projectCode:b.query.projectCode,modules:void 0})})});try{await K(l),g.value=!1,$.$message.success("\u63D0\u4EA4\u6210\u529F"),B.go(-1)}catch{g.value=!1}}})},E=async()=>{await Q(b.query.projectCode),$.$message.success("\u5408\u6210\u6210\u529F"),B.go(-1)};return A(()=>{b.name==="auditList"?P():I()}),(s,i)=>{const l=d("el-form-item"),o=d("el-col"),V=d("el-row"),N=d("el-form"),R=d("el-card"),v=d("el-input"),x=d("el-radio"),F=d("el-radio-group"),J=d("el-divider"),U=d("el-button");return n(),y("div",W,[s.$route.name==="auditList"?(n(),c(R,{key:0,shadow:"never",class:"mb-16"},{default:e(()=>[m("div",X,[m("div",Y,[m("div",Z,[m("p",ee,p(_.value.projectName),1),m("div",te,[t(N,{"label-suffix":":"},{default:e(()=>[t(V,{gutter:24},{default:e(()=>[t(o,{span:6},{default:e(()=>[t(l,{label:"\u9879\u76EE\u8054\u7CFB\u4EBA"},{default:e(()=>[r(p(_.value.contactName||"-"),1)]),_:1})]),_:1}),t(o,{span:6},{default:e(()=>[t(l,{label:"\u8054\u7CFB\u65B9\u5F0F"},{default:e(()=>[r(p(_.value.contactPhone||"-"),1)]),_:1})]),_:1}),t(o,{span:6},{default:e(()=>[t(l,{label:"\u5EFA\u8BBE\u5355\u4F4D"},{default:e(()=>[r(p(_.value.buildOrgName||"-"),1)]),_:1})]),_:1}),t(o,{span:6},{default:e(()=>[t(l,{label:"\u6295\u8D44\u603B\u4F30\u7B97"},{default:e(()=>[r(p(_.value.declareAmount||"-")+"\u4E07\u5143",1)]),_:1})]),_:1}),t(o,{span:6},{default:e(()=>[t(l,{label:"\u9879\u76EE\u7B80\u4ECB"},{default:e(()=>[r(p(_.value.projectIntroduction||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1})):j("",!0),t(R,{shadow:"never"},{default:e(()=>[t(N,{ref_key:"formRef",ref:L,model:f.value,"label-suffix":":","label-position":"top"},{default:e(()=>[(n(!0),y(q,null,D(f.value.reviewChecklist,(w,C)=>{var S;return n(),y("div",{key:C},[m("p",ae,p(w.title),1),(n(!0),y(q,null,D(w.modules,(a,h)=>(n(),y("div",{key:h,class:"mb-16"},[t(V,{gutter:16,class:"items-center"},{default:e(()=>[t(o,{span:8},{default:e(()=>[t(l,{label:a.subTitle},{default:e(()=>[t(v,{modelValue:a.content,"onUpdate:modelValue":u=>a.content=u,type:"textarea",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:2},1024),t(o,{span:4},{default:e(()=>[t(l,{label:"\u5426\u51B3\u60C5\u5F62"},{default:e(()=>[t(v,{modelValue:a.rejectionSituation,"onUpdate:modelValue":u=>a.rejectionSituation=u,type:"textarea",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),t(o,{span:6},{default:e(()=>[t(l,{label:"\u54CD\u5E94\u60C5\u51B5",class:"flex-form-item",style:{"margin-bottom":"14px"}},{default:e(()=>[t(v,{modelValue:a.responseSituation,"onUpdate:modelValue":u=>a.responseSituation=u,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t(l,{label:"\u5BF9\u5E94\u9875\u9762",class:"flex-form-item",style:{"margin-bottom":"0"}},{default:e(()=>[t(v,{modelValue:a.corrPageNum,"onUpdate:modelValue":u=>a.corrPageNum=u,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),s.$route.name==="auditList"?(n(),c(o,{key:0,span:6},{default:e(()=>[m("div",le,[a.reviewResult===2||a.reviewResult===3?(n(),c(l,{key:0,label:"\u5BA1\u6838\u610F\u89C1",prop:`reviewChecklist[${C}].modules[${h}].reviewComments`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],style:{"margin-right":"4px"}},{default:e(()=>[t(v,{modelValue:a.reviewComments,"onUpdate:modelValue":u=>a.reviewComments=u,type:"textarea"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])):j("",!0),t(l,{prop:`reviewChecklist[${C}].modules[${h}].reviewResult`,rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}],style:{"margin-bottom":"0"}},{default:e(()=>[t(F,{modelValue:a.reviewResult,"onUpdate:modelValue":u=>a.reviewResult=u,class:"resultRadiogroup"},{default:e(()=>[t(x,{label:1},{default:e(()=>[r("\u901A\u8FC7")]),_:1}),t(x,{label:2},{default:e(()=>[r("\u4E0D\u901A\u8FC7")]),_:1}),t(x,{label:3},{default:e(()=>[r("\u4E00\u7968\u5426\u51B3")]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])])]),_:2},1024)):(n(),c(o,{key:1,span:6},{default:e(()=>[t(l,{label:"\u5BA1\u6838\u610F\u89C1"},{default:e(()=>[t(v,{modelValue:a.reviewComments,"onUpdate:modelValue":u=>a.reviewComments=u,type:"textarea",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024))]),_:2},1024)]))),128)),C<((S=f.value.reviewChecklist)==null?void 0:S.length)-1?(n(),c(J,{key:0})):j("",!0)])}),128))]),_:1},8,["model"])]),_:1}),m("div",oe,[t(U,{onClick:i[0]||(i[0]=w=>s.$router.go(-1))},{default:e(()=>[r(" \u8FD4\u56DE ")]),_:1}),s.$route.name==="auditList"?(n(),c(U,{key:0,type:"primary",loading:g.value,onClick:i[1]||(i[1]=w=>O(L.value))},{default:e(()=>[r(" \u63D0\u4EA4 ")]),_:1},8,["loading"])):(n(),c(U,{key:1,type:"primary",onClick:E},{default:e(()=>[r(" \u5408\u6210\u62A5\u544A ")]),_:1}))])])}}});export{ie as default};