No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2 líneas
8.1KB

  1. import{r as v,h as _,i as b,f as y,b as s,c as g,e as C}from"./uploadAction-3962500e.js";import{E as A,r as V,B as U,b as O,c as J,L as $,h as a,f as o,u as t,e as w,t as F,i as R,k}from"./index-dd5fae99.js";const B={class:"el-upload__tip"},q={class:"el-upload__tip"},E={class:"el-upload__tip"},P={class:"el-upload__tip"},T={class:"el-upload__tip"},M={class:"el-upload__tip"},z={class:"el-upload__tip"},G=k({name:"projectCollectionEnterOtherMaterials"}),K=Object.assign(G,{props:{detail:{type:Object},data:{type:Object}},setup(h,{expose:j}){const n=h,c=A.dictStore.uploadUrl,L=V(),r=V({feasibilityStudyReport:[],approvedFile:[],purchaseFile:[],acceptanceLetter:[],purchaseContract:[],acceptanceReport:[],changeApprovalDoc:[]}),d=[{required:!0,message:"请选择文件"}],D={feasibilityStudyReport:d,approvedFile:d,purchaseFile:d,acceptanceLetter:d,purchaseContract:d,acceptanceReport:d,changeApprovalDoc:d,constructionOrg:[{required:!0,message:"请填写承建单位"}],constructionOrgCreditCode:[{required:!0,message:"请填写承建单位统一信用代码"}]};return j({formRef:L,formData:r}),U(()=>n.detail,p=>{p&&(r.value={feasibilityStudyReport:v(JSON.parse(p.feasibilityStudyReport)),approvedFile:v(JSON.parse(p.approvedFile)),purchaseFile:v(JSON.parse(p.purchaseFile)),acceptanceLetter:v(JSON.parse(p.acceptanceLetter)),purchaseContract:v(JSON.parse(p.purchaseContract)),acceptanceReport:v(JSON.parse(p.acceptanceReport)),changeApprovalDoc:v(JSON.parse(p.changeApprovalDoc)),constructionOrg:p.constructionOrg,constructionOrgCreditCode:p.constructionOrgCreditCode,supervisorOrg:p.supervisorOrg,supervisorOrgCreditCode:p.supervisorOrgCreditCode})}),U(()=>n.data,p=>{},{immediate:!0,deep:!0}),(p,l)=>{const f=O("el-button"),m=O("el-upload"),i=O("el-form-item"),u=O("el-col"),S=O("el-input"),x=O("el-row"),N=O("el-form");return J(),$(N,{ref_key:"formRef",ref:L,model:r.value,rules:D,"label-position":"top","label-suffix":":","scroll-to-error":""},{default:a(()=>[o(x,{gutter:40},{default:a(()=>[o(u,{span:24},{default:a(()=>[o(i,{label:"可行性研究报告(建设方案、运维方案)",prop:n.data.status===1||n.data.status===2?"":"feasibilityStudyReport"},{default:a(()=>[o(m,{"file-list":r.value.feasibilityStudyReport,"onUpdate:fileList":l[0]||(l[0]=e=>r.value.feasibilityStudyReport=e),class:"w-full",action:t(c),"on-success":e=>t(_)(e,r.value.feasibilityStudyReport),"on-error":t(b),"before-upload":e=>t(y)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",B,"支持"+F(t(C))+"文件",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[11]||(l[11]=[R("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1},8,["prop"])]),_:1}),o(u,{span:8},{default:a(()=>[o(i,{label:"立项批复文件",prop:"approvedFile"},{default:a(()=>[o(m,{"file-list":r.value.approvedFile,"onUpdate:fileList":l[1]||(l[1]=e=>r.value.approvedFile=e),class:"w-full",action:t(c),"on-success":e=>t(_)(e,r.value.approvedFile),"on-error":t(b),"before-upload":e=>t(y)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",q,"支持"+F(t(C))+"文件",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[12]||(l[12]=[R("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(u,{span:8},{default:a(()=>[o(i,{label:"采购文件",prop:"purchaseFile"},{default:a(()=>[o(m,{"file-list":r.value.purchaseFile,"onUpdate:fileList":l[2]||(l[2]=e=>r.value.purchaseFile=e),class:"w-full",action:t(c),"on-success":e=>t(_)(e,r.value.purchaseFile),"on-error":t(b),"before-upload":e=>t(y)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",E,"支持"+F(t(C))+"文件",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[13]||(l[13]=[R("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(u,{span:8},{default:a(()=>[o(i,{label:"中标通知书",prop:"acceptanceLetter"},{default:a(()=>[o(m,{"file-list":r.value.acceptanceLetter,"onUpdate:fileList":l[3]||(l[3]=e=>r.value.acceptanceLetter=e),class:"w-full",action:t(c),"on-success":e=>t(_)(e,r.value.acceptanceLetter),"on-error":t(b),"before-upload":e=>t(y)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",P,"支持"+F(t(C))+"文件",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[14]||(l[14]=[R("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(u,{span:8},{default:a(()=>[o(i,{label:"采购合同",prop:"purchaseContract"},{default:a(()=>[o(m,{"file-list":r.value.purchaseContract,"onUpdate:fileList":l[4]||(l[4]=e=>r.value.purchaseContract=e),class:"w-full",action:t(c),"on-success":e=>t(_)(e,r.value.purchaseContract),"on-error":t(b),"before-upload":e=>t(y)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",T,"支持"+F(t(C))+"文件",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[15]||(l[15]=[R("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(u,{span:8},{default:a(()=>[o(i,{label:"验收报告",prop:"acceptanceReport"},{default:a(()=>[o(m,{"file-list":r.value.acceptanceReport,"onUpdate:fileList":l[5]||(l[5]=e=>r.value.acceptanceReport=e),class:"w-full",action:t(c),"on-success":e=>t(_)(e,r.value.acceptanceReport),"on-error":t(b),"before-upload":e=>t(y)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",M,"支持"+F(t(C))+"文件",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[16]||(l[16]=[R("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(u,{span:8},{default:a(()=>[o(i,{label:"变更批复文件",prop:"changeApprovalDoc"},{default:a(()=>[o(m,{"file-list":r.value.changeApprovalDoc,"onUpdate:fileList":l[6]||(l[6]=e=>r.value.changeApprovalDoc=e),class:"w-full",action:t(c),"on-success":e=>t(_)(e,r.value.changeApprovalDoc),"on-error":t(b),"before-upload":e=>t(y)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",z,"支持"+F(t(C))+"文件",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[17]||(l[17]=[R("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(u,{span:6},{default:a(()=>[o(i,{label:"承建单位",prop:n.data.status===3||n.data.status===4||n.data.status===6?"constructionOrg":""},{default:a(()=>[o(S,{modelValue:r.value.constructionOrg,"onUpdate:modelValue":l[7]||(l[7]=e=>r.value.constructionOrg=e),maxlength:"50",placeholder:"请填写"},null,8,["modelValue"])]),_:1},8,["prop"])]),_:1}),o(u,{span:6},{default:a(()=>[o(i,{label:"承建单位统一信用代码",prop:n.data.status===3||n.data.status===4||n.data.status===6?"constructionOrgCreditCode":""},{default:a(()=>[o(S,{modelValue:r.value.constructionOrgCreditCode,"onUpdate:modelValue":l[8]||(l[8]=e=>r.value.constructionOrgCreditCode=e),maxlength:"50",placeholder:"请填写"},null,8,["modelValue"])]),_:1},8,["prop"])]),_:1}),o(u,{span:6},{default:a(()=>[o(i,{label:"监理单位",prop:"supervisorOrg"},{default:a(()=>[o(S,{modelValue:r.value.supervisorOrg,"onUpdate:modelValue":l[9]||(l[9]=e=>r.value.supervisorOrg=e),maxlength:"50",placeholder:"请填写"},null,8,["modelValue"])]),_:1})]),_:1}),o(u,{span:6},{default:a(()=>[o(i,{label:"监理单位统一信用代码",prop:"supervisorOrgCreditCode"},{default:a(()=>[o(S,{modelValue:r.value.supervisorOrgCreditCode,"onUpdate:modelValue":l[10]||(l[10]=e=>r.value.supervisorOrgCreditCode=e),maxlength:"50",placeholder:"请填写"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}});export{K as default};