Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.f7736267.js 5.7KB

1
  1. import{y as A,d as J,A as K,D as W,b as N,r as m,o as X,c as s,e as i,f,h as e,i as a,F as j,J as O,u as w,I as Q,g as p,j as T,t as v,k as Z,x as ee}from"./index.d340e473.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=p("div",{class:"flex justify-between"},[p("span",null,"\u5217\u8868")],-1),ne={class:"flex-1 pr-4"},se={class:"flex-1 pr-4"},pe={class:"flex-1 pr-4"},re={class:"flex-1 pr-4"},de={class:"flex-1"},ie=["onClick"],ce=["onClick"],ue=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),me=J({name:"applicationRegist"}),_e=Object.assign(me,{setup(_){const B=K(),{digitalModifySystem:F,projectTypeOptions:R}=W.dictStore.globalDicts,{proxy:S}=ee(),t=N({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),H=N([{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"}]),x=m([]),b=m(),c=async(r=b.value.pageParams)=>{var y,d;const n=await ae({...r,...t,createOnMin:(y=t.times)==null?void 0:y[0],createOnMax:(d=t.times)==null?void 0:d[1],projectYear:t.projectYear*1||void 0,times:void 0});x.value=n.data.records,Y.value=n.data.total},Y=m(2),E=()=>{c()},P=()=>{t.projectYear=void 0,t.projectName=void 0,t.projectType=void 0,t.createOnMin=void 0,t.createOnMax=void 0,t.times=void 0,b.value.pageParams.pageNumber=1,b.value.pageParams.pageSize=10,c()},g=m(!1),h=m(),U=r=>{g.value=!0,h.value=r};return X(async()=>{c(),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"),h.value.appCode=r.data.data,await te(h.value),S.$message.success("\u6CE8\u518C\u6210\u529F"),g.value=!1,c())}}),(r,n)=>{const y=s("el-input"),d=s("el-form-item"),u=s("el-col"),$=s("el-option"),z=s("el-select"),k=s("el-date-picker"),C=s("el-row"),V=s("el-button"),I=s("el-form"),M=s("el-card"),L=s("table-list"),G=s("el-dialog");return i(),f(j,null,[e(M,{class:"w-full search"},{default:a(()=>[e(I,{model:t,size:"small","label-suffix":":"},{default:a(()=>[e(C,{gutter:16,class:"mb-16"},{default:a(()=>[e(u,{span:8},{default:a(()=>[e(d,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(y,{modelValue:t.projectName,"onUpdate:modelValue":n[0]||(n[0]=l=>t.projectName=l),maxlength:"50",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:8},{default:a(()=>[e(d,{label:"\u9879\u76EE\u7C7B\u578B"},{default:a(()=>[e(z,{modelValue:t.projectType,"onUpdate:modelValue":n[1]||(n[1]=l=>t.projectType=l),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(i(!0),f(j,null,O(w(R),(l,o)=>(i(),Q($,{key:o,label:l,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(u,{span:8},{default:a(()=>[e(d,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:a(()=>[e(k,{modelValue:t.projectYear,"onUpdate:modelValue":n[2]||(n[2]=l=>t.projectYear=l),type:"year",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY","value-format":"YYYY"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(C,{gutter:24},{default:a(()=>[e(u,{span:12},{default:a(()=>[e(d,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[e(k,{modelValue:t.times,"onUpdate:modelValue":n[3]||(n[3]=l=>t.times=l),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(u,{span:12},{default:a(()=>[e(d,{class:"btn"},{default:a(()=>[p("div",le,[e(V,{type:"primary",onClick:E},{default:a(()=>[T("\u67E5\u8BE2")]),_:1}),e(V,{onClick:P},{default:a(()=>[T("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(M,{class:"w-full mt-8"},{header:a(()=>[oe]),default:a(()=>[e(L,{ref_key:"tableListRef",ref:b,column:H,data:x.value,total:Y.value,onGetTableData:c},{expand:a(({scope:l})=>[(i(!0),f(j,null,O(l.row.projectApplications,(o,q)=>(i(),f("div",{key:q,class:"flex py-8",style:{"padding-left":"140px","border-bottom":"1px solid rgb(235, 238, 245)"}},[p("p",ne," \u5E94\u7528\u540D\u79F0\uFF1A"+v(o.applicationName||o.relatedExistsApplication),1),p("p",se," \u6570\u6539\u7CFB\u7EDF\uFF1A"+v(o.digitalModification&&o.digitalModification.split(",").map(D=>w(F)[D]).join("\uFF0C")||"-"),1),p("p",pe," \u662F\u5426\u521D\u6B21\u5EFA\u8BBE\uFF1A"+v(o.isFirst?"\u662F":"\u5426"),1),p("p",re," \u662F\u5426\u6CE8\u518C\uFF1A"+v(o.isFirst&&o.appCode?"\u662F":o.isFirst&&!o.appCode?"\u5426":"--"),1),p("p",de,[o.appCode?Z("",!0):(i(),f("a",{key:0,onClick:D=>U({projectCode:l.row.projectCode,appId:o.id})},"\u5E94\u7528\u6CE8\u518C",8,ie))])]))),128))]),action:a(({scope:l})=>[p("a",{onClick:o=>w(B).push({name:"applicationRegistDetail",query:{id:l.row.id}})},"\u8BE6\u60C5",8,ce)]),_:1},8,["column","data","total"])]),_:1}),e(G,{"model-value":g.value,title:"\u5E94\u7528\u6CE8\u518C",width:"80%",onClose:n[4]||(n[4]=l=>g.value=!1)},{default:a(()=>[ue]),_:1},8,["model-value"])],64)}}});export{_e as default};