|
- var ce=Object.defineProperty,ye=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var re=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var ue=(i,b,c)=>b in i?ce(i,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):i[b]=c,pe=(i,b)=>{for(var c in b||(b={}))Se.call(b,c)&&ue(i,c,b[c]);if(re)for(var c of re(b))De.call(b,c)&&ue(i,c,b[c]);return i},de=(i,b)=>ye(i,ge(b));import{_ as we,d as Pe,D as Fe,r as q,L as B,e as D,f as p,I as d,l as a,k as n,g as $,F as G,J as Q,i as g,j as s,h as O,t as _,m as S,Y as E}from"./index.11dc4694.js";import{r as N,h as k,i as M,f as x,c as L,b as C,e as K}from"./uploadAction.c865409e.js";const Re={class:"el-upload__tip"},je={class:"el-upload__tip"},Ie={class:"el-upload__tip"},Ve=O("div",{class:"el-upload__tip"},"\u652F\u6301\u683C\u5F0F\uFF1Apdf",-1),ke=O("div",{class:"el-upload__tip"},"\u652F\u6301\u683C\u5F0F\uFF1Apdf",-1),Me=O("div",{class:"el-upload__tip"},"\u652F\u6301\u683C\u5F0F\uFF1Apdf",-1),xe=Pe({name:"projectApprovalInfo"}),Le=Object.assign(xe,{props:{detail:{type:Object},basicInfoData:{type:Object},dictionaryList:{type:Array,default:()=>[]},isSupplemented:{type:Boolean,default:!1}},emits:["getApprovalInfoData"],setup(i,{expose:b,emit:c}){const A=i,F=Fe.dictStore.uploadUrl,h=q(),o=q({}),J=q([]),r=q();b({formRef:h,formData:o}),B(()=>A.detail,f=>{var t,R,j,v;f&&(A.isSupplemented&&(r.value=f.approve||{}),o.value=de(pe({},f.approve),{baseReviewCommentsFile:((t=f.approve)==null?void 0:t.baseReviewCommentsFile)&&N(JSON.parse(f.approve.baseReviewCommentsFile))||[],approvalFile:((R=f.approve)==null?void 0:R.approvalFile)&&N(JSON.parse(f.approve.approvalFile))||[],preliminaryDesignScheme:((j=f.approve)==null?void 0:j.preliminaryDesignScheme)&&N(JSON.parse(f.approve.preliminaryDesignScheme))||[],preliminaryDesignFile:((v=f.approve)==null?void 0:v.preliminaryDesignFile)&&N(JSON.parse(f.approve.preliminaryDesignFile))||[]}))});const T=[{required:!0,message:"\u8BF7\u4E0A\u4F20"}],me=c;return B(()=>A.basicInfoData,f=>{var t;(f==null?void 0:f.baseProjIsConfidentiality)==="02"?J.value={}:J.value={baseReviewResults:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u5BA1\u7ED3\u679C"}],equalProtectionLevel:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B49\u4FDD\u5B9A\u7EA7"}],baseReviewOpinion:[{required:!0,message:"\u8BF7\u586B\u5199\u8BC4\u5BA1\u610F\u89C1"}],baseReviewCommentsFile:T,approvalFile:T,baseExpertTotalMoney:[{required:!0,message:"\u8BF7\u586B\u5199\u5EFA\u8BAE\u603B\u6295\u8D44"}],baseExpertYearMoney:[{required:!0,message:"\u8BF7\u586B\u5199\u5EFA\u8BAE\u5E74\u5EA6\u9884\u7B97"}],baseInitialReviewTotalMoney:[{required:!0,message:"\u8BF7\u586B\u5199\u5EFA\u8BAE\u6279\u590D\u603B\u6295\u8D44"}],baseProjReplyAmount:[{required:!0,message:"\u8BF7\u586B\u5199\u5EFA\u8BAE\u6279\u590D\u5E74\u5EA6\u9884\u7B97"}],releaseYearMoney:[{required:!0,message:"\u8BF7\u586B\u5199\u5E74\u5EA6\u9884\u7B97\u4E0B\u8FBE\u91D1\u989D"}],preliminaryDesignScheme:T,preliminaryDesignFile:T},(t=h.value)==null||t.clearValidate()},{deep:!0,immediate:!0}),B(()=>o.value,f=>{me("getApprovalInfoData",f)},{deep:!0}),(f,t)=>{const R=D("el-option"),j=D("el-select"),v=D("el-form-item"),y=D("el-col"),fe=D("el-input"),I=D("el-button"),V=D("el-upload"),U=D("el-input-number"),ve=D("el-row"),be=D("el-form");return p(),d(be,{ref_key:"formRef",ref:h,model:o.value,rules:J.value,"label-position":"top","label-suffix":":","scroll-to-error":"","validate-on-rule-change":!1},{default:a(()=>[n(ve,{gutter:40},{default:a(()=>{var W,z,H,X,Z,ee,le,ae,ie,te,oe,se,ne;return[((W=i.basicInfoData)==null?void 0:W.baseProjSetProg)!=="01"?(p(),d(y,{key:0,span:8},{default:a(()=>[n(v,{label:"\u8BC4\u5BA1\u7ED3\u679C",prop:"baseReviewResults"},{default:a(()=>{var l;return[n(j,{modelValue:o.value.baseReviewResults,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value.baseReviewResults=e),class:"w-full",disabled:((l=r.value)==null?void 0:l.baseReviewResults)&&i.isSupplemented},{default:a(()=>{var e;return[(p(!0),$(G,null,Q((e=i.dictionaryList)==null?void 0:e.filter(u=>u.type==="REVIEW_RESULTS"),(u,m)=>(p(),d(R,{key:m,label:u.label,value:u.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1})):g("v-if",!0),((z=i.basicInfoData)==null?void 0:z.baseProjIsConfidentiality)==="01"&&!["01","02","03"].includes((H=i.basicInfoData)==null?void 0:H.baseProjSetProg)?(p(),d(y,{key:1,span:8},{default:a(()=>{var l,e,u;return[((e=(l=i.basicInfoData)==null?void 0:l.baseConstructionType)==null?void 0:e.includes("01"))&&((u=i.basicInfoData)==null?void 0:u.baseProjSetProg)!=="04"?(p(),d(v,{key:"equalProtectionLevel1",label:"\u7B49\u4FDD\u5B9A\u7EA7",prop:"equalProtectionLevel"},{default:a(()=>{var m;return[n(j,{modelValue:o.value.equalProtectionLevel,"onUpdate:modelValue":t[1]||(t[1]=w=>o.value.equalProtectionLevel=w),class:"w-full",disabled:((m=r.value)==null?void 0:m.equalProtectionLevel)&&i.isSupplemented},{default:a(()=>{var w;return[(p(!0),$(G,null,Q((w=i.dictionaryList)==null?void 0:w.filter(P=>P.type==="EQUAL_PROTECTION_RATING"),(P,Y)=>(p(),d(R,{key:Y,label:P.label,value:P.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1})):(p(),d(v,{key:"equalProtectionLevel2",label:"\u7B49\u4FDD\u5B9A\u7EA7"},{default:a(()=>{var m;return[n(j,{modelValue:o.value.equalProtectionLevel,"onUpdate:modelValue":t[2]||(t[2]=w=>o.value.equalProtectionLevel=w),class:"w-full",disabled:((m=r.value)==null?void 0:m.equalProtectionLevel)&&i.isSupplemented},{default:a(()=>{var w;return[(p(!0),$(G,null,Q((w=i.dictionaryList)==null?void 0:w.filter(P=>P.type==="EQUAL_PROTECTION_RATING"),(P,Y)=>(p(),d(R,{key:Y,label:P.label,value:P.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue","disabled"])]}),_:1}))]}),_:1})):g("v-if",!0),((X=i.basicInfoData)==null?void 0:X.baseProjSetProg)!=="01"?(p(),d(y,{key:2,span:24},{default:a(()=>[n(v,{label:"\u8BC4\u5BA1\u610F\u89C1",prop:"baseReviewOpinion"},{default:a(()=>{var l;return[n(fe,{modelValue:o.value.baseReviewOpinion,"onUpdate:modelValue":t[3]||(t[3]=e=>o.value.baseReviewOpinion=e),type:"textarea","show-word-limit":"",maxlength:500,placeholder:"\u8BF7\u586B\u5199",disabled:((l=r.value)==null?void 0:l.baseReviewOpinion)&&i.isSupplemented},null,8,["modelValue","disabled"])]}),_:1})]),_:1})):g("v-if",!0),((Z=i.basicInfoData)==null?void 0:Z.baseProjSetProg)!=="01"?(p(),d(y,{key:3,span:8},{default:a(()=>[n(v,{label:"\u8BC4\u5BA1\u610F\u89C1\u9644\u4EF6",prop:"baseReviewCommentsFile"},{default:a(()=>[n(V,{"file-list":o.value.baseReviewCommentsFile,"onUpdate:fileList":t[4]||(t[4]=l=>o.value.baseReviewCommentsFile=l),class:"w-full",action:s(F),"on-success":l=>s(k)(l,o.value.baseReviewCommentsFile),"on-error":s(M),"before-upload":l=>s(x)(l,{types:s(L)}),accept:s(L).map(l=>`.${l}`).join(","),multiple:"",limit:10,"on-preview":s(C),"before-remove":()=>{var l,e,u;return!(((l=r.value)==null?void 0:l.baseReviewCommentsFile)&&!!((u=JSON.parse((e=r.value)==null?void 0:e.baseReviewCommentsFile))!=null&&u.length)&&i.isSupplemented)}},{tip:a(()=>[O("div",Re,"\u652F\u6301"+_(s(K))+"\u6587\u4EF6",1)]),default:a(()=>{var l;return[n(I,{type:"primary",class:"mr-4",disabled:((l=r.value)==null?void 0:l.baseReviewCommentsFile)&&i.isSupplemented},{default:a(()=>[S("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:1})]),_:1})):g("v-if",!0),["01","02","03"].includes((ee=i.basicInfoData)==null?void 0:ee.baseProjSetProg)?g("v-if",!0):(p(),d(y,{key:4,span:8},{default:a(()=>[n(v,{label:"\u7ACB\u9879\u6279\u590D\u6587\u4EF6",prop:"approvalFile"},{default:a(()=>[n(V,{"file-list":o.value.approvalFile,"onUpdate:fileList":t[5]||(t[5]=l=>o.value.approvalFile=l),class:"w-full",action:s(F),"on-success":l=>s(k)(l,o.value.approvalFile),"on-error":s(M),"before-upload":l=>s(x)(l,{types:s(L)}),accept:s(L).map(l=>`.${l}`).join(","),multiple:"",limit:10,"on-preview":s(C),"before-remove":()=>{var l,e,u;return!(((l=r.value)==null?void 0:l.approvalFile)&&!!((u=JSON.parse((e=r.value)==null?void 0:e.approvalFile))!=null&&u.length)&&i.isSupplemented)}},{tip:a(()=>[O("div",je,"\u652F\u6301"+_(s(K))+"\u6587\u4EF6",1)]),default:a(()=>{var l;return[n(I,{type:"primary",class:"mr-4",disabled:((l=r.value)==null?void 0:l.approvalFile)&&i.isSupplemented},{default:a(()=>[S("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:1})]),_:1})),["01","03"].includes((le=i.basicInfoData)==null?void 0:le.baseProjSetProg)?g("v-if",!0):(p(),d(y,{key:5,span:8},{default:a(()=>[n(v,{label:"\u5EFA\u8BAE\u603B\u6295\u8D44",prop:"baseExpertTotalMoney"},{default:a(()=>{var l;return[n(U,{modelValue:o.value.baseExpertTotalMoney,"onUpdate:modelValue":t[6]||(t[6]=e=>o.value.baseExpertTotalMoney=e),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,disabled:((l=r.value)==null?void 0:l.baseExpertTotalMoney)&&i.isSupplemented,onMousewheel:t[7]||(t[7]=E(()=>{},["prevent"]))},{suffix:a(()=>[S("\u4E07\u5143")]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1})),["01","03"].includes((ae=i.basicInfoData)==null?void 0:ae.baseProjSetProg)?g("v-if",!0):(p(),d(y,{key:6,span:8},{default:a(()=>[n(v,{label:"\u5EFA\u8BAE\u5E74\u5EA6\u9884\u7B97",prop:"baseExpertYearMoney"},{default:a(()=>{var l;return[n(U,{modelValue:o.value.baseExpertYearMoney,"onUpdate:modelValue":t[8]||(t[8]=e=>o.value.baseExpertYearMoney=e),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,disabled:((l=r.value)==null?void 0:l.baseExpertYearMoney)&&i.isSupplemented,onMousewheel:t[9]||(t[9]=E(()=>{},["prevent"]))},{suffix:a(()=>[S("\u4E07\u5143")]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1})),["01","02","03"].includes((ie=i.basicInfoData)==null?void 0:ie.baseProjSetProg)?g("v-if",!0):(p(),d(y,{key:7,span:8},{default:a(()=>[n(v,{label:"\u5EFA\u8BAE\u6279\u590D\u603B\u6295\u8D44",prop:"baseInitialReviewTotalMoney"},{default:a(()=>{var l;return[n(U,{modelValue:o.value.baseInitialReviewTotalMoney,"onUpdate:modelValue":t[10]||(t[10]=e=>o.value.baseInitialReviewTotalMoney=e),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,disabled:((l=r.value)==null?void 0:l.baseInitialReviewTotalMoney)&&i.isSupplemented,onMousewheel:t[11]||(t[11]=E(()=>{},["prevent"]))},{suffix:a(()=>[S("\u4E07\u5143")]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1})),["01","02","03"].includes((te=i.basicInfoData)==null?void 0:te.baseProjSetProg)?g("v-if",!0):(p(),d(y,{key:8,span:8},{default:a(()=>[n(v,{label:"\u5EFA\u8BAE\u6279\u590D\u5E74\u5EA6\u9884\u7B97",prop:"baseProjReplyAmount"},{default:a(()=>{var l;return[n(U,{modelValue:o.value.baseProjReplyAmount,"onUpdate:modelValue":t[12]||(t[12]=e=>o.value.baseProjReplyAmount=e),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,disabled:((l=r.value)==null?void 0:l.baseProjReplyAmount)&&i.isSupplemented,onMousewheel:t[13]||(t[13]=E(()=>{},["prevent"]))},{suffix:a(()=>[S("\u4E07\u5143")]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1})),["05","06","07","00"].includes((oe=i.basicInfoData)==null?void 0:oe.baseProjSetProg)?(p(),d(y,{key:9,span:8},{default:a(()=>[n(v,{label:"\u5E74\u5EA6\u9884\u7B97\u4E0B\u8FBE\u91D1\u989D",prop:"releaseYearMoney"},{default:a(()=>{var l;return[n(U,{modelValue:o.value.releaseYearMoney,"onUpdate:modelValue":t[14]||(t[14]=e=>o.value.releaseYearMoney=e),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,disabled:((l=r.value)==null?void 0:l.releaseYearMoney)&&i.isSupplemented,onMousewheel:t[15]||(t[15]=E(()=>{},["prevent"]))},{suffix:a(()=>[S("\u4E07\u5143")]),_:1},8,["modelValue","disabled"])]}),_:1})]),_:1})):g("v-if",!0),o.value.baseProjReplyAmount>=5e3&&["04","05","06","07","00"].includes((se=i.basicInfoData)==null?void 0:se.baseProjSetProg)?(p(),d(y,{key:10,span:8},{default:a(()=>{var l;return[((l=i.basicInfoData)==null?void 0:l.baseProjSetProg)!=="04"?(p(),d(v,{key:"preliminaryDesignScheme1",label:"\u521D\u6B65\u8BBE\u8BA1\u65B9\u6848",prop:"preliminaryDesignScheme"},{default:a(()=>[n(V,{"file-list":o.value.preliminaryDesignScheme,"onUpdate:fileList":t[16]||(t[16]=e=>o.value.preliminaryDesignScheme=e),class:"w-full",action:s(F),"on-success":e=>s(k)(e,o.value.preliminaryDesignScheme),"on-error":s(M),"before-upload":e=>s(x)(e,{types:s(L)}),accept:s(L).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":s(C),"before-remove":()=>{var e,u,m;return!(((e=r.value)==null?void 0:e.preliminaryDesignScheme)&&!!((m=JSON.parse((u=r.value)==null?void 0:u.preliminaryDesignScheme))!=null&&m.length)&&i.isSupplemented)}},{tip:a(()=>[O("div",Ie,"\u652F\u6301"+_(s(K))+"\u6587\u4EF6",1)]),default:a(()=>{var e;return[n(I,{type:"primary",class:"mr-4",disabled:((e=r.value)==null?void 0:e.preliminaryDesignScheme)&&i.isSupplemented},{default:a(()=>[S("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview","before-remove"])]),_:1})):(p(),d(v,{key:"preliminaryDesignScheme2",label:"\u521D\u6B65\u8BBE\u8BA1\u65B9\u6848"},{default:a(()=>[n(V,{"file-list":o.value.preliminaryDesignScheme,"onUpdate:fileList":t[17]||(t[17]=e=>o.value.preliminaryDesignScheme=e),class:"w-full",action:s(F),"on-success":e=>s(k)(e,o.value.preliminaryDesignScheme),"on-error":s(M),"before-upload":e=>s(x)(e,{types:["application/pdf"]}),accept:".pdf",multiple:"",limit:10,"on-preview":s(C),"before-remove":()=>{var e,u,m;return!(((e=r.value)==null?void 0:e.preliminaryDesignScheme)&&!!((m=JSON.parse((u=r.value)==null?void 0:u.preliminaryDesignScheme))!=null&&m.length)&&i.isSupplemented)}},{tip:a(()=>[Ve]),default:a(()=>{var e;return[n(I,{type:"primary",class:"mr-4",disabled:((e=r.value)==null?void 0:e.preliminaryDesignScheme)&&i.isSupplemented},{default:a(()=>[S("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","on-preview","before-remove"])]),_:1}))]}),_:1})):g("v-if",!0),o.value.baseProjReplyAmount>=5e3&&["04","05","06","07","00"].includes((ne=i.basicInfoData)==null?void 0:ne.baseProjSetProg)?(p(),d(y,{key:11,span:8},{default:a(()=>{var l;return[((l=i.basicInfoData)==null?void 0:l.baseProjSetProg)!=="04"?(p(),d(v,{key:"preliminaryDesignFile1",label:"\u521D\u6B65\u8BBE\u8BA1\u65B9\u6848\u6279\u590D\u51FD",prop:"preliminaryDesignFile"},{default:a(()=>[n(V,{"file-list":o.value.preliminaryDesignFile,"onUpdate:fileList":t[18]||(t[18]=e=>o.value.preliminaryDesignFile=e),class:"w-full",action:s(F),"on-success":e=>s(k)(e,o.value.preliminaryDesignFile),"on-error":s(M),"before-upload":e=>s(x)(e,{types:["application/pdf"]}),accept:".pdf",multiple:"",limit:10,"on-preview":s(C),"before-remove":()=>{var e,u,m;return!(((e=r.value)==null?void 0:e.preliminaryDesignFile)&&!!((m=JSON.parse((u=r.value)==null?void 0:u.preliminaryDesignFile))!=null&&m.length)&&i.isSupplemented)}},{tip:a(()=>[ke]),default:a(()=>{var e;return[n(I,{type:"primary",class:"mr-4",disabled:((e=r.value)==null?void 0:e.preliminaryDesignFile)&&i.isSupplemented},{default:a(()=>[S("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","on-preview","before-remove"])]),_:1})):(p(),d(v,{key:"preliminaryDesignFile2",label:"\u521D\u6B65\u8BBE\u8BA1\u65B9\u6848\u6279\u590D\u51FD"},{default:a(()=>[n(V,{"file-list":o.value.preliminaryDesignFile,"onUpdate:fileList":t[19]||(t[19]=e=>o.value.preliminaryDesignFile=e),class:"w-full",action:s(F),"on-success":e=>s(k)(e,o.value.preliminaryDesignFile),"on-error":s(M),"before-upload":e=>s(x)(e,{types:["application/pdf"]}),accept:".pdf",multiple:"",limit:10,"on-preview":s(C),"before-remove":()=>{var e,u,m;return!(((e=r.value)==null?void 0:e.preliminaryDesignFile)&&!!((m=JSON.parse((u=r.value)==null?void 0:u.preliminaryDesignFile))!=null&&m.length)&&i.isSupplemented)}},{tip:a(()=>[Me]),default:a(()=>{var e;return[n(I,{type:"primary",class:"mr-4",disabled:((e=r.value)==null?void 0:e.preliminaryDesignFile)&&i.isSupplemented},{default:a(()=>[S("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["disabled"])]}),_:1},8,["file-list","action","on-success","on-error","before-upload","on-preview","before-remove"])]),_:1}))]}),_:1})):g("v-if",!0)]}),_:1})]),_:1},8,["model","rules"])}}}),Ee=we(Le,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectCollection/projectCollectionEnter/components/projectApprovalInfo.vue"]]);export{Ee as default};
|