You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 line
4.1KB

  1. import{r as i,B as V,b as n,c as f,L as C,h as t,f as a,i as p,d as N,F as P,H as T,t as B,k as L}from"./index-dd5fae99.js";const R=L({name:"exportFieldDialog"}),G=Object.assign(R,{props:{visible:{type:Boolean,default:!1,required:!0}},emits:["close","exportProject"],setup(g,{emit:x}){const y=g,m=x,c=i(),r=i({}),s=i({id:"项目ID",projectName:"项目名称",areaCode:"行政区划编码",area:"行政区划名称",responsibleMan:"项目负责人",responsibleManMobile:"项目负责人手机号",contactName:"项目联系人",contactPhone:"项目联系人手机号",higherSuperOrg:"上级业务主管单位",higherSuperOrgCode:"上级业务主管单位浙政钉ID",superOrg:"本级主管部门",superOrgCode:"本级主管部门浙政钉ID",buildOrgName:"建设单位",buildOrgZheJiangGovDingId:"建设单位浙政钉ID",orgCreditCode:"建设单位统一信用代码",projectType:"项目类型",isFirst:"是否首次新建",relatedExistsApplication:"关联应用",relatedExistsApplicationCode:"关联应用IRS编码",declareAmount:"申报金额",approvedTotalInvestmentIncrease:"批复金额",budgetSource:"预算来源",projectYear:"预算年度",projectIntroduction:"项目简介",buildBasis:"立项依据",buildLevel:"建设层级",developCode:"发改编码",financialCode:"财政编码",informationValidity:"信息是否有效",isDigitalReform:"是否数字化改革项目",bizDomain:"综合应用领域",isCloud:"是否上云",cloudType:"云类型",fourSystems:"四大体系",isTemporaryAugment:"是否临时增补",protectionLevel:"等保级别",isSecretComments:"是否密评",businessNumber:"业务编号",businessName:"业务名称",orgName:"单位名称",softwareDevelopmentAmount:"软件开发",cloudHardwarePurchaseAmount:"云资源、硬件购置",thirdPartyAmount:"第三方服务",safetyInputTitle:"投入项",safetyInputDescribe:"内容描述",safetyInputAmount:"金额",annualPlanAmount:"年度支付金额",annualPlanHaveAmount:"自有资金",declareGovOwnFinanceAmount:"政府投资-本级财政资金",declareGovSuperiorFinanceAmount:"政府投资-上级补助资金",declareBankLendingAmount:"银行贷款",declareOtherAmount:"其他资金",engineeringSpeedOne:"第一季度",engineeringSpeedTwo:"第二季度",engineeringSpeedThree:"第三季度",engineeringSpeedFour:"第四季度",preliminaryPlanFile:"初步方案",supportingMaterialsFile:"佐证材料",projectRemarks:"备注"}),u=i(!1),d=i(!1),h=o=>{r.value.exportFields=o?Object.keys(s.value):[],d.value=!1},k=o=>{const e=o.length;u.value=e===Object.entries(s.value).length,d.value=e>0&&e<Object.entries(s.value).length},F={exportFields:[{required:!0,message:"请选择导出字段",trigger:"blur"}]},A=async o=>{o&&await o.validate(async e=>{e&&m("exportProject",r.value.exportFields)})};return V(()=>y.visible,async o=>{o?console.log(o):(c.value.resetFields(),u.value=!1,d.value=!1)}),(o,e)=>{const v=n("el-checkbox"),O=n("el-checkbox-group"),I=n("el-form-item"),w=n("el-col"),S=n("el-row"),j=n("el-form"),b=n("el-button"),D=n("el-dialog");return f(),C(D,{"model-value":g.visible,title:"导出",width:"80%","destroy-on-close":"",onClose:e[4]||(e[4]=l=>m("close"))},{footer:t(()=>[a(b,{type:"primary",onClick:e[2]||(e[2]=l=>A(c.value))},{default:t(()=>e[6]||(e[6]=[p(" 提交 ")])),_:1}),a(b,{onClick:e[3]||(e[3]=l=>m("close"))},{default:t(()=>e[7]||(e[7]=[p(" 关闭 ")])),_:1})]),default:t(()=>[a(j,{ref_key:"formRef",ref:c,model:r.value,rules:F,"label-width":"120px","label-suffix":":"},{default:t(()=>[a(S,null,{default:t(()=>[a(w,{span:24},{default:t(()=>[a(I,{label:"导出字段",prop:"exportFields"},{default:t(()=>[a(v,{modelValue:u.value,"onUpdate:modelValue":e[0]||(e[0]=l=>u.value=l),indeterminate:d.value,onChange:h},{default:t(()=>e[5]||(e[5]=[p("全选")])),_:1},8,["modelValue","indeterminate"]),a(O,{modelValue:r.value.exportFields,"onUpdate:modelValue":e[1]||(e[1]=l=>r.value.exportFields=l),onChange:k},{default:t(()=>[(f(!0),N(P,null,T(s.value,(l,_)=>(f(),C(v,{key:_,label:_,style:{width:"180px"}},{default:t(()=>[p(B(l),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])}}});export{G as default};