|
- import{_ as A,d as J,D as $,r as j,L,e as _,f as k,I as M,l as a,k as o,j as t,h as v,t as y,m as b}from"./index.11dc4694.js";import{r as g,h as C,i as O,f as h,c as s,b as w,e as F}from"./uploadAction.c865409e.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"},K={class:"el-upload__tip"},z=J({name:"projectCollectionEnterOtherMaterials"}),G=Object.assign(z,{props:{detail:{type:Object},data:{type:Object}},setup(V,{expose:D}){const u=V,n=$.dictStore.uploadUrl,S=j(),l=j({feasibilityStudyReport:[],approvedFile:[],purchaseFile:[],acceptanceLetter:[],purchaseContract:[],acceptanceReport:[],changeApprovalDoc:[]}),d=[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}],U={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 D({formRef:S,formData:l}),L(()=>u.detail,p=>{p&&(l.value={feasibilityStudyReport:g(JSON.parse(p.feasibilityStudyReport)),approvedFile:g(JSON.parse(p.approvedFile)),purchaseFile:g(JSON.parse(p.purchaseFile)),acceptanceLetter:g(JSON.parse(p.acceptanceLetter)),purchaseContract:g(JSON.parse(p.purchaseContract)),acceptanceReport:g(JSON.parse(p.acceptanceReport)),changeApprovalDoc:g(JSON.parse(p.changeApprovalDoc)),constructionOrg:p.constructionOrg,constructionOrgCreditCode:p.constructionOrgCreditCode,supervisorOrg:p.supervisorOrg,supervisorOrgCreditCode:p.supervisorOrgCreditCode})}),L(()=>u.data,p=>{},{immediate:!0,deep:!0}),(p,r)=>{const f=_("el-button"),m=_("el-upload"),i=_("el-form-item"),c=_("el-col"),R=_("el-input"),x=_("el-row"),N=_("el-form");return k(),M(N,{ref_key:"formRef",ref:S,model:l.value,rules:U,"label-position":"top","label-suffix":":","scroll-to-error":""},{default:a(()=>[o(x,{gutter:40},{default:a(()=>[o(c,{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:u.data.status===1||u.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(C)(e,l.value.feasibilityStudyReport),"on-error":t(O),"before-upload":e=>t(h)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(w)},{tip:a(()=>[v("div",q,"\u652F\u6301"+y(t(F))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[b("\u4E0A\u4F20\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1},8,["prop"])]),_:1}),o(c,{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(C)(e,l.value.approvedFile),"on-error":t(O),"before-upload":e=>t(h)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(w)},{tip:a(()=>[v("div",B,"\u652F\u6301"+y(t(F))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[b("\u4E0A\u4F20\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(c,{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(C)(e,l.value.purchaseFile),"on-error":t(O),"before-upload":e=>t(h)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(w)},{tip:a(()=>[v("div",E,"\u652F\u6301"+y(t(F))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[b("\u4E0A\u4F20\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(c,{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(C)(e,l.value.acceptanceLetter),"on-error":t(O),"before-upload":e=>t(h)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(w)},{tip:a(()=>[v("div",P,"\u652F\u6301"+y(t(F))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[b("\u4E0A\u4F20\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(c,{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(C)(e,l.value.purchaseContract),"on-error":t(O),"before-upload":e=>t(h)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(w)},{tip:a(()=>[v("div",T,"\u652F\u6301"+y(t(F))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[b("\u4E0A\u4F20\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(c,{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(C)(e,l.value.acceptanceReport),"on-error":t(O),"before-upload":e=>t(h)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(w)},{tip:a(()=>[v("div",I,"\u652F\u6301"+y(t(F))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[b("\u4E0A\u4F20\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(c,{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(C)(e,l.value.changeApprovalDoc),"on-error":t(O),"before-upload":e=>t(h)(e,{types:t(s)}),accept:t(s).map(e=>`.${e}`).join(","),multiple:"",limit:10,"on-preview":t(w)},{tip:a(()=>[v("div",K,"\u652F\u6301"+y(t(F))+"\u6587\u4EF6",1)]),default:a(()=>[o(f,{type:"primary",class:"mr-4"},{default:a(()=>[b("\u4E0A\u4F20\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),o(c,{span:6},{default:a(()=>[o(i,{label:"\u627F\u5EFA\u5355\u4F4D",prop:u.data.status===3||u.data.status===4||u.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(c,{span:6},{default:a(()=>[o(i,{label:"\u627F\u5EFA\u5355\u4F4D\u7EDF\u4E00\u4FE1\u7528\u4EE3\u7801",prop:u.data.status===3||u.data.status===4||u.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(c,{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(c,{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"])}}}),W=A(G,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectCollection/projectCollectionEnter/components/otherMaterials.vue"]]);export{W as default};
|