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
5.7KB

  1. import{s as A,d as K,y as W,B as X,b as D,r as m,o as J,c as s,e as i,f,h as e,i as a,F as w,H as O,u as x,G as Q,g as p,j as T,t as v,k as Z,q as ee}from"./index.88314652.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=K({name:"applicationRegist"}),me=Object.assign(ue,{setup(_){const B=W(),{digitalModifySystem:F,projectTypeOptions:H}=X.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:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName",width:"80"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:80},{label:"\u6279\u590D\u65F6\u95F4",key:"approvalDate",prop:"approvalDate",width:"110"},{label:"\u6279\u590D\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"approvedAmount",prop:"approvedAmount",width:"140"},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"200"},{label:"\u64CD\u4F5C",slot:"action",width:"120",fixed:"right"}]),Y=m([]),b=m(),u=async(r=b.value.pageParams)=>{var y,d;const t=await ae({...r,...l,createOnMin:(y=l.times)==null?void 0:y[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()},P=()=>{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()},g=m(!1),j=m(),U=r=>{g.value=!0,j.value=r};return J(async()=>{u(),window.onmessage=async r=>{r.data&&r.data.msg==="\u7F16\u7801\u5DF2\u751F\u6210\uFF0C\u8BF7\u590D\u5236\u7F16\u7801\u67E5\u8BE2\u5E94\u7528"&&(console.log(r.data,"\u7F16\u7801"),j.value.appCode=r.data.data,await te(j.value),R.$message.success("\u6CE8\u518C\u6210\u529F"),g.value=!1,u())}}),(r,t)=>{const y=s("el-input"),d=s("el-form-item"),c=s("el-col"),$=s("el-option"),z=s("el-select"),k=s("el-date-picker"),C=s("el-row"),V=s("el-button"),G=s("el-form"),M=s("el-card"),L=s("table-list"),q=s("el-dialog");return i(),f(w,null,[e(M,{class:"w-full search"},{default:a(()=>[e(G,{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:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(y,{modelValue:l.projectName,"onUpdate:modelValue":t[0]||(t[0]=o=>l.projectName=o),maxlength:"50",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:a(()=>[e(d,{label:"\u9879\u76EE\u7C7B\u578B"},{default:a(()=>[e(z,{modelValue:l.projectType,"onUpdate:modelValue":t[1]||(t[1]=o=>l.projectType=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(i(!0),f(w,null,O(x(H),(o,n)=>(i(),Q($,{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:"\u9884\u7B97\u5E74\u5EA6"},{default:a(()=>[e(k,{modelValue:l.projectYear,"onUpdate:modelValue":t[2]||(t[2]=o=>l.projectYear=o),type:"year",placeholder:"\u8BF7\u9009\u62E9",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:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[e(k,{modelValue:l.times,"onUpdate:modelValue":t[3]||(t[3]=o=>l.times=o),type:"datetimerange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",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("\u67E5\u8BE2")])),_:1}),e(V,{onClick:P},{default:a(()=>t[6]||(t[6]=[T("\u91CD\u7F6E")])),_: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,"\u5217\u8868")],-1)])),default:a(()=>[e(L,{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,I)=>(i(),f("div",{key:I,class:"flex py-8",style:{"padding-left":"140px","border-bottom":"1px solid rgb(235, 238, 245)"}},[p("p",oe," \u5E94\u7528\u540D\u79F0\uFF1A"+v(n.applicationName||n.relatedExistsApplication),1),p("p",ne," \u6570\u6539\u7CFB\u7EDF\uFF1A"+v(n.digitalModification&&n.digitalModification.split(",").map(N=>x(F)[N]).join("\uFF0C")||"-"),1),p("p",se," \u662F\u5426\u521D\u6B21\u5EFA\u8BBE\uFF1A"+v(n.isFirst?"\u662F":"\u5426"),1),p("p",pe," \u662F\u5426\u6CE8\u518C\uFF1A"+v(n.isFirst&&n.appCode?"\u662F":n.isFirst&&!n.appCode?"\u5426":"--"),1),p("p",re,[n.appCode?Z("",!0):(i(),f("a",{key:0,onClick:N=>U({projectCode:o.row.projectCode,appId:n.id})},"\u5E94\u7528\u6CE8\u518C",8,de))])]))),128))]),action:a(({scope:o})=>[p("a",{onClick:n=>x(B).push({name:"applicationRegistDetail",query:{id:o.row.id}})},"\u8BE6\u60C5",8,ie)]),_:1},8,["column","data","total"])]),_:1}),e(q,{"model-value":g.value,title:"\u5E94\u7528\u6CE8\u518C",width:"80%",onClose:t[4]||(t[4]=o=>g.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};