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