25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
6.3KB

  1. import{l as G,d as H}from"./inquirySheetManage-6139194f.js";import{r as V,E as K,a as w,$ as Q,o as W,V as X,b as d,c,d as _,e as b,f as e,h as t,F as x,H as S,L as T,u as ee,i as F,j as h,k as le,U as ae,s as te}from"./index-dd5fae99.js";import oe from"./recordListDialog-d48b6006.js";import ne from"./upLoadReplayDialog-5ee389bb.js";import se from"./upLoadZxDialog-65ec837a.js";import"./uploadAction-3962500e.js";const de={class:"flex"},re=["onClick"],ie=["onClick"],ue=["onClick"],ce=["onClick"],me=["onClick"],pe=["onClick"],fe=le({name:"inquirySheetManage"}),Ce=Object.assign(fe,{setup(_e){const C=V(),{proxy:U}=te(),{projectTypeOptions:B}=K.dictStore.globalDicts||{},I=w([{label:"序号",type:"index",width:"80"},{label:"项目名称",key:"projectName",prop:"projectName"},{label:"申报单位",key:"buildOrgName",prop:"buildOrgName"},{label:"项目类型",key:"projectTypeName",prop:"projectTypeName"},{label:"所属区县",key:"regionName",prop:"regionName"},{label:"预算年度",key:"projectYear",prop:"projectYear"},{label:"状态",key:"status",prop:"status",render:o=>Q("span",{class:[1,2,3].includes(o.status)?"text-warning":o.status===4?"text-success":"text-danger"},o.statusName)},{label:"咨询单",slot:"consultationForm",key:"consultationForm"},{label:"回复单",slot:"replyForm",key:"replyForm"},{label:"操作",slot:"action",fixed:"right",width:"200"}]),Y=V([]),$=V(0),n=w({projectName:"",regionCode:void 0,buildOrgName:void 0,projectType:void 0,projectYear:void 0,consultationStatus:void 0}),m=async(o=C.value.pageParams)=>{const a=await G({...o,...n});Y.value=a.data.records,$.value=a.data.total},E=()=>{m()},P=()=>{n.buildOrgName=void 0,n.regionCode=void 0,n.consultationStatus=void 0,n.projectName=void 0,n.projectType=void 0,n.projectYear=void 0,C.value.pageParams.pageNumber=1,C.value.pageParams.pageSize=10,m()},y=w({visible:!1,data:void 0}),z=o=>{y.visible=!0,y.data=o},O=async o=>{var p,f,j,k;const a=o&&((f=(p=JSON.parse(o))==null?void 0:p[0])==null?void 0:f.id),N=o&&((k=(j=JSON.parse(o))==null?void 0:j[0])==null?void 0:k.originalFileName),u=await ae({fileId:a}),r=URL.createObjectURL(u),s=document.createElement("a");s.style.display="none",s.href=r,s.download=N,document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(r)},v=w({visible:!1,data:void 0}),A=o=>{v.visible=!0,v.data=o},J=o=>{v.visible=!1,o&&m()},g=w({visible:!1,data:void 0}),L=(o,a)=>{a===4?U.$messageBox.confirm("是否通过?","提示!",{type:"warning"}).then(async()=>{await H({formId:o.id,status:a}),U.$message.success("通过成功!")}):(g.visible=!0,g.data=o)},M=o=>{g.visible=!1,o&&m()},R=V();return W(async()=>{var a;m();const o=await X({regionCode:330500,regionLevel:2});R.value=((a=o.data)==null?void 0:a.children)||[]}),(o,a)=>{const N=d("el-input"),u=d("el-form-item"),r=d("el-col"),s=d("el-option"),p=d("el-select"),f=d("el-row"),j=d("el-date-picker"),k=d("el-button"),Z=d("el-form"),D=d("el-card"),q=d("table-list");return c(),_(x,null,[b("div",null,[e(D,{class:"w-full search mb-8"},{default:t(()=>[e(Z,{size:"small",model:n,"label-suffix":":"},{default:t(()=>[e(f,{gutter:16,class:"mb-16"},{default:t(()=>[e(r,{span:8},{default:t(()=>[e(u,{label:"项目名称",class:"w-full"},{default:t(()=>[e(N,{modelValue:n.projectName,"onUpdate:modelValue":a[0]||(a[0]=l=>n.projectName=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:t(()=>[e(u,{label:"申报单位",class:"w-full"},{default:t(()=>[e(N,{modelValue:n.buildOrgName,"onUpdate:modelValue":a[1]||(a[1]=l=>n.buildOrgName=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:t(()=>[e(u,{label:"所属区县"},{default:t(()=>[e(p,{modelValue:n.regionCode,"onUpdate:modelValue":a[2]||(a[2]=l=>n.regionCode=l),placeholder:"全部",class:"w-full"},{default:t(()=>[(c(!0),_(x,null,S(R.value,(l,i)=>(c(),T(s,{key:i,label:l==null?void 0:l.name,value:l==null?void 0:l.regionCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,{gutter:16,class:"mb-16"},{default:t(()=>[e(r,{span:8},{default:t(()=>[e(u,{label:"项目类型"},{default:t(()=>[e(p,{modelValue:n.projectType,"onUpdate:modelValue":a[3]||(a[3]=l=>n.projectType=l),placeholder:"全部",class:"w-full"},{default:t(()=>[(c(!0),_(x,null,S(ee(B),(l,i)=>(c(),T(s,{key:i,label:l,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:t(()=>[e(u,{label:"预算年度"},{default:t(()=>[e(j,{modelValue:n.projectYear,"onUpdate:modelValue":a[4]||(a[4]=l=>n.projectYear=l),class:"w-full",type:"year",format:"YYYY","value-format":"YYYY",placeholder:"请选择"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:t(()=>[e(u,{label:"状态"},{default:t(()=>[e(p,{modelValue:n.consultationStatus,"onUpdate:modelValue":a[5]||(a[5]=l=>n.consultationStatus=l),class:"w-full"},{default:t(()=>[e(s,{label:"待回复",value:1}),e(s,{label:"待处理",value:2}),e(s,{label:"待审核",value:3}),e(s,{label:"通过",value:4}),e(s,{label:"驳回",value:5})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,{gutter:16},{default:t(()=>[e(r,{span:24},{default:t(()=>[e(u,{class:"btn"},{default:t(()=>[b("div",de,[e(k,{type:"primary",onClick:E},{default:t(()=>a[7]||(a[7]=[F("查询")])),_:1}),e(k,{onClick:P},{default:t(()=>a[8]||(a[8]=[F("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(D,null,{header:t(()=>a[9]||(a[9]=[F("列表")])),default:t(()=>[e(q,{ref_key:"tableListRef",ref:C,column:I,data:Y.value,total:$.value,onGetTableData:m},{consultationForm:t(({scope:l})=>[b("a",{onClick:i=>O(l.row.consultationForm)},"下载",8,re)]),replyForm:t(({scope:l})=>[l.row.canUploadReply?(c(),_("a",{key:0,onClick:i=>A(l.row)},"上传",8,ie)):l.row.replyForm?(c(),_("a",{key:1,onClick:i=>O(l.row.replyForm)},"下载",8,ue)):h("",!0)]),action:t(({scope:l})=>[l.row.canAudit?(c(),_(x,{key:0},[b("a",{onClick:i=>L(l.row,4)},"通过",8,ce),b("a",{onClick:i=>L(l.row,5)},"驳回",8,me)],64)):h("",!0),b("a",{onClick:i=>z(l.row)},"查看记录",8,pe)]),_:1},8,["column","data","total"])]),_:1})]),e(oe,{visible:y.visible,data:y.data,onClose:a[6]||(a[6]=l=>y.visible=!1)},null,8,["visible","data"]),e(ne,{visible:v.visible,data:v.data,onClose:J},null,8,["visible","data"]),e(se,{visible:g.visible,data:g.data,onClose:M},null,8,["visible","data"])],64)}}});export{Ce as default};