您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 行
8.6KB

  1. import{r as v,h as _,i as y,f as b,c as s,b as g,e as C}from"./uploadAction.6ab57011.js";import{d as A,B as J,r as L,J as U,c as O,e as $,G as B,i as a,h as o,u as t,g as w,t as F,j as R}from"./index.55251523.js";const k={class:"el-upload__tip"},q={class:"el-upload__tip"},E={class:"el-upload__tip"},P={class:"el-upload__tip"},T={class:"el-upload__tip"},G={class:"el-upload__tip"},M={class:"el-upload__tip"},z=A({name:"projectCollectionEnterOtherMaterials"}),K=Object.assign(z,{props:{detail:{type:Object},data:{type:Object}},setup(h,{expose:j}){const n=h,c=J.dictStore.uploadUrl,V=L(),r=L({feasibilityStudyReport:[],approvedFile:[],purchaseFile:[],acceptanceLetter:[],purchaseContract:[],acceptanceReport:[],changeApprovalDoc:[]}),d=[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}],D={feasibilityStudyReport:d,approvedFile:d,purchaseFile:d,acceptanceLetter:d,purchaseContract:d,acceptanceReport:d,changeApprovalDoc:d,constructionOrg:[{required:!0,message:"\u8BF7\u586B\u5199\u627F\u5EFA\u5355\u4F4D"}],constructionOrgCreditCode:[{required:!0,message:"\u8BF7\u586B\u5199\u627F\u5EFA\u5355\u4F4D\u7EDF\u4E00\u4FE1\u7528\u4EE3\u7801"}]};return j({formRef:V,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 $(),B(N,{ref_key:"formRef",ref:V,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:"\u53EF\u884C\u6027\u7814\u7A76\u62A5\u544A\uFF08\u5EFA\u8BBE\u65B9\u6848\u3001\u8FD0\u7EF4\u65B9\u6848\uFF09",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(y),"before-upload":e=>t(b)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",k,"\u652F\u6301"+F(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[11]||(l[11]=[R("\u4E0A\u4F20\u6587\u4EF6")])),_: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:"\u7ACB\u9879\u6279\u590D\u6587\u4EF6",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(y),"before-upload":e=>t(b)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",q,"\u652F\u6301"+F(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[12]||(l[12]=[R("\u4E0A\u4F20\u6587\u4EF6")])),_: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:"\u91C7\u8D2D\u6587\u4EF6",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(y),"before-upload":e=>t(b)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",E,"\u652F\u6301"+F(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[13]||(l[13]=[R("\u4E0A\u4F20\u6587\u4EF6")])),_: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:"\u4E2D\u6807\u901A\u77E5\u4E66",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(y),"before-upload":e=>t(b)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",P,"\u652F\u6301"+F(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[14]||(l[14]=[R("\u4E0A\u4F20\u6587\u4EF6")])),_: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:"\u91C7\u8D2D\u5408\u540C",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(y),"before-upload":e=>t(b)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",T,"\u652F\u6301"+F(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[15]||(l[15]=[R("\u4E0A\u4F20\u6587\u4EF6")])),_: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:"\u9A8C\u6536\u62A5\u544A",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(y),"before-upload":e=>t(b)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",G,"\u652F\u6301"+F(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[16]||(l[16]=[R("\u4E0A\u4F20\u6587\u4EF6")])),_: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:"\u53D8\u66F4\u6279\u590D\u6587\u4EF6",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(y),"before-upload":e=>t(b)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(g)},{tip:a(()=>[w("div",M,"\u652F\u6301"+F(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>l[17]||(l[17]=[R("\u4E0A\u4F20\u6587\u4EF6")])),_: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:"\u627F\u5EFA\u5355\u4F4D",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:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1},8,["prop"])]),_:1}),o(u,{span:6},{default:a(()=>[o(i,{label:"\u627F\u5EFA\u5355\u4F4D\u7EDF\u4E00\u4FE1\u7528\u4EE3\u7801",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:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1},8,["prop"])]),_:1}),o(u,{span:6},{default:a(()=>[o(i,{label:"\u76D1\u7406\u5355\u4F4D",prop:"supervisorOrg"},{default:a(()=>[o(S,{modelValue:r.value.supervisorOrg,"onUpdate:modelValue":l[9]||(l[9]=e=>r.value.supervisorOrg=e),maxlength:"50",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1}),o(u,{span:6},{default:a(()=>[o(i,{label:"\u76D1\u7406\u5355\u4F4D\u7EDF\u4E00\u4FE1\u7528\u4EE3\u7801",prop:"supervisorOrgCreditCode"},{default:a(()=>[o(S,{modelValue:r.value.supervisorOrgCreditCode,"onUpdate:modelValue":l[10]||(l[10]=e=>r.value.supervisorOrgCreditCode=e),maxlength:"50",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}});export{K as default};