Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
8.5KB

  1. import{r as _,h as v,i as y,f as b,c as s,b as g,e as C}from"./uploadAction.95992a5e.js";import{d as A,D as J,r as L,L as V,c as O,e as $,I as k,i as a,h as o,u as t,g as w,t as h,j as F}from"./index.d340e473.js";const q={class:"el-upload__tip"},B={class:"el-upload__tip"},E={class:"el-upload__tip"},P={class:"el-upload__tip"},T={class:"el-upload__tip"},I={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(U,{expose:j}){const c=U,n=J.dictStore.uploadUrl,S=L(),l=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:S,formData:l}),V(()=>c.detail,p=>{p&&(l.value={feasibilityStudyReport:_(JSON.parse(p.feasibilityStudyReport)),approvedFile:_(JSON.parse(p.approvedFile)),purchaseFile:_(JSON.parse(p.purchaseFile)),acceptanceLetter:_(JSON.parse(p.acceptanceLetter)),purchaseContract:_(JSON.parse(p.purchaseContract)),acceptanceReport:_(JSON.parse(p.acceptanceReport)),changeApprovalDoc:_(JSON.parse(p.changeApprovalDoc)),constructionOrg:p.constructionOrg,constructionOrgCreditCode:p.constructionOrgCreditCode,supervisorOrg:p.supervisorOrg,supervisorOrgCreditCode:p.supervisorOrgCreditCode})}),V(()=>c.data,p=>{},{immediate:!0,deep:!0}),(p,r)=>{const f=O("el-button"),m=O("el-upload"),i=O("el-form-item"),u=O("el-col"),R=O("el-input"),x=O("el-row"),N=O("el-form");return $(),k(N,{ref_key:"formRef",ref:S,model:l.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:c.data.status===1||c.data.status===2?"":"feasibilityStudyReport"},{default:a(()=>[o(m,{"file-list":l.value.feasibilityStudyReport,"onUpdate:fileList":r[0]||(r[0]=e=>l.value.feasibilityStudyReport=e),class:"w-full",action:t(n),"on-success":e=>t(v)(e,l.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",q,"\u652F\u6301"+h(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[F("\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":l.value.approvedFile,"onUpdate:fileList":r[1]||(r[1]=e=>l.value.approvedFile=e),class:"w-full",action:t(n),"on-success":e=>t(v)(e,l.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",B,"\u652F\u6301"+h(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[F("\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":l.value.purchaseFile,"onUpdate:fileList":r[2]||(r[2]=e=>l.value.purchaseFile=e),class:"w-full",action:t(n),"on-success":e=>t(v)(e,l.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"+h(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[F("\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":l.value.acceptanceLetter,"onUpdate:fileList":r[3]||(r[3]=e=>l.value.acceptanceLetter=e),class:"w-full",action:t(n),"on-success":e=>t(v)(e,l.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"+h(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[F("\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":l.value.purchaseContract,"onUpdate:fileList":r[4]||(r[4]=e=>l.value.purchaseContract=e),class:"w-full",action:t(n),"on-success":e=>t(v)(e,l.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"+h(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[F("\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":l.value.acceptanceReport,"onUpdate:fileList":r[5]||(r[5]=e=>l.value.acceptanceReport=e),class:"w-full",action:t(n),"on-success":e=>t(v)(e,l.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",I,"\u652F\u6301"+h(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[F("\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":l.value.changeApprovalDoc,"onUpdate:fileList":r[6]||(r[6]=e=>l.value.changeApprovalDoc=e),class:"w-full",action:t(n),"on-success":e=>t(v)(e,l.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"+h(t(C))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[F("\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:c.data.status===3||c.data.status===4||c.data.status===6?"constructionOrg":""},{default:a(()=>[o(R,{modelValue:l.value.constructionOrg,"onUpdate:modelValue":r[7]||(r[7]=e=>l.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:c.data.status===3||c.data.status===4||c.data.status===6?"constructionOrgCreditCode":""},{default:a(()=>[o(R,{modelValue:l.value.constructionOrgCreditCode,"onUpdate:modelValue":r[8]||(r[8]=e=>l.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(R,{modelValue:l.value.supervisorOrg,"onUpdate:modelValue":r[9]||(r[9]=e=>l.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(R,{modelValue:l.value.supervisorOrgCreditCode,"onUpdate:modelValue":r[10]||(r[10]=e=>l.value.supervisorOrgCreditCode=e),maxlength:"50",placeholder:"\u8BF7\u586B\u5199"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}});export{K as default};