|
- import{z as A,y as K,E as W,a as D,r as m,o as X,b as s,c as i,d as f,f as e,h as a,F as w,H as O,u as x,L as J,e as p,i as T,t as v,j as Q,k as Z,s as ee}from"./index-dd5fae99.js";const ae=_=>A.get("/api/v1/application/to-register-app-project-list",{params:_}),te=_=>A.post("/api/v1/irs/app/push-project-app",_),le={class:"flex"},oe={class:"flex-1 pr-4"},ne={class:"flex-1 pr-4"},se={class:"flex-1 pr-4"},pe={class:"flex-1 pr-4"},re={class:"flex-1"},de=["onClick"],ie=["onClick"],ue=Z({name:"applicationRegist"}),me=Object.assign(ue,{setup(_){const B=K(),{digitalModifySystem:F,projectTypeOptions:H}=W.dictStore.globalDicts,{proxy:R}=ee(),l=D({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),S=D([{type:"expand"},{label:"序号",type:"index",width:"80"},{label:"项目名称",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"项目类型",key:"projectTypeName",prop:"projectTypeName",width:"80"},{label:"预算年度",key:"projectYear",prop:"projectYear",width:80},{label:"批复时间",key:"approvalDate",prop:"approvalDate",width:"110"},{label:"批复金额(万元)",key:"approvedAmount",prop:"approvedAmount",width:"140"},{label:"创建时间",key:"createOn",prop:"createOn",width:"200"},{label:"操作",slot:"action",width:"120",fixed:"right"}]),Y=m([]),b=m(),u=async(r=b.value.pageParams)=>{var g,d;const t=await ae({...r,...l,createOnMin:(g=l.times)==null?void 0:g[0],createOnMax:(d=l.times)==null?void 0:d[1],projectYear:l.projectYear*1||void 0,times:void 0});Y.value=t.data.records,h.value=t.data.total},h=m(2),E=()=>{u()},z=()=>{l.projectYear=void 0,l.projectName=void 0,l.projectType=void 0,l.createOnMin=void 0,l.createOnMax=void 0,l.times=void 0,b.value.pageParams.pageNumber=1,b.value.pageParams.pageSize=10,u()},y=m(!1),j=m(),L=r=>{y.value=!0,j.value=r};return X(async()=>{u(),window.onmessage=async r=>{r.data&&r.data.msg==="编码已生成,请复制编码查询应用"&&(console.log(r.data,"编码"),j.value.appCode=r.data.data,await te(j.value),R.$message.success("注册成功"),y.value=!1,u())}}),(r,t)=>{const g=s("el-input"),d=s("el-form-item"),c=s("el-col"),P=s("el-option"),U=s("el-select"),k=s("el-date-picker"),C=s("el-row"),V=s("el-button"),$=s("el-form"),M=s("el-card"),G=s("table-list"),I=s("el-dialog");return i(),f(w,null,[e(M,{class:"w-full search"},{default:a(()=>[e($,{model:l,size:"small","label-suffix":":"},{default:a(()=>[e(C,{gutter:16,class:"mb-16"},{default:a(()=>[e(c,{span:8},{default:a(()=>[e(d,{label:"项目名称"},{default:a(()=>[e(g,{modelValue:l.projectName,"onUpdate:modelValue":t[0]||(t[0]=o=>l.projectName=o),maxlength:"50",placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:a(()=>[e(d,{label:"项目类型"},{default:a(()=>[e(U,{modelValue:l.projectType,"onUpdate:modelValue":t[1]||(t[1]=o=>l.projectType=o),placeholder:"全部",class:"w-full"},{default:a(()=>[(i(!0),f(w,null,O(x(H),(o,n)=>(i(),J(P,{key:n,label:o,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:a(()=>[e(d,{label:"预算年度"},{default:a(()=>[e(k,{modelValue:l.projectYear,"onUpdate:modelValue":t[2]||(t[2]=o=>l.projectYear=o),type:"year",placeholder:"请选择",format:"YYYY","value-format":"YYYY"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(C,{gutter:24},{default:a(()=>[e(c,{span:12},{default:a(()=>[e(d,{label:"创建时间"},{default:a(()=>[e(k,{modelValue:l.times,"onUpdate:modelValue":t[3]||(t[3]=o=>l.times=o),type:"datetimerange","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:12},{default:a(()=>[e(d,{class:"btn"},{default:a(()=>[p("div",le,[e(V,{type:"primary",onClick:E},{default:a(()=>t[5]||(t[5]=[T("查询")])),_:1}),e(V,{onClick:z},{default:a(()=>t[6]||(t[6]=[T("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(M,{class:"w-full mt-8"},{header:a(()=>t[7]||(t[7]=[p("div",{class:"flex justify-between"},[p("span",null,"列表")],-1)])),default:a(()=>[e(G,{ref_key:"tableListRef",ref:b,column:S,data:Y.value,total:h.value,onGetTableData:u},{expand:a(({scope:o})=>[(i(!0),f(w,null,O(o.row.projectApplications,(n,q)=>(i(),f("div",{key:q,class:"flex py-8",style:{"padding-left":"140px","border-bottom":"1px solid rgb(235, 238, 245)"}},[p("p",oe," 应用名称:"+v(n.applicationName||n.relatedExistsApplication),1),p("p",ne," 数改系统:"+v(n.digitalModification&&n.digitalModification.split(",").map(N=>x(F)[N]).join(",")||"-"),1),p("p",se," 是否初次建设:"+v(n.isFirst?"是":"否"),1),p("p",pe," 是否注册:"+v(n.isFirst&&n.appCode?"是":n.isFirst&&!n.appCode?"否":"--"),1),p("p",re,[n.appCode?Q("",!0):(i(),f("a",{key:0,onClick:N=>L({projectCode:o.row.projectCode,appId:n.id})},"应用注册",8,de))])]))),128))]),action:a(({scope:o})=>[p("a",{onClick:n=>x(B).push({name:"applicationRegistDetail",query:{id:o.row.id}})},"详情",8,ie)]),_:1},8,["column","data","total"])]),_:1}),e(I,{"model-value":y.value,title:"应用注册",width:"80%",onClose:t[4]||(t[4]=o=>y.value=!1)},{default:a(()=>t[8]||(t[8]=[p("iframe",{src:"https://jdirs.zj.gov.cn/api/system/register-view?X-BG-HMAC-ACCESS-KEY=42bcb49bea174986a3bfdfba7d005566&path=Ovl4aua87eB",width:"100%",height:"700px"},null,-1)])),_:1},8,["model-value"])],64)}}});export{me as default};
|