選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

2 行
6.6KB

  1. import{l as G,d as H}from"./inquirySheetManage.7abf5210.js";import{d as K,r as V,D as Q,b as C,a0 as W,o as X,H as ee,c as d,e as c,f as _,g as b,h as e,i as a,F as h,J as L,I as S,u as le,j as x,k as T,C as ae,x as te}from"./index.5bb861d3.js";import oe from"./recordListDialog.b3f8f17a.js";import ne from"./upLoadReplayDialog.58e211f1.js";import se from"./upLoadZxDialog.a12144d9.js";import"./uploadAction.60610a95.js";const de={class:"flex"},re=["onClick"],ie=["onClick"],ue=["onClick"],ce=["onClick"],me=["onClick"],pe=["onClick"],fe=K({name:"inquirySheetManage"}),we=Object.assign(fe,{setup(_e){const w=V(),{proxy:F}=te(),{projectTypeOptions:B}=Q.dictStore.globalDicts||{},I=C([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName"},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName"},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName"},{label:"\u6240\u5C5E\u533A\u53BF",key:"regionName",prop:"regionName"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear"},{label:"\u72B6\u6001",key:"status",prop:"status",render:o=>W("span",{class:[1,2,3].includes(o.status)?"text-warning":o.status===4?"text-success":"text-danger"},o.statusName)},{label:"\u54A8\u8BE2\u5355",slot:"consultationForm",key:"consultationForm"},{label:"\u56DE\u590D\u5355",slot:"replyForm",key:"replyForm"},{label:"\u64CD\u4F5C",slot:"action",fixed:"right",width:"200"}]),Y=V([]),U=V(0),n=C({projectName:"",regionCode:void 0,buildOrgName:void 0,projectType:void 0,projectYear:void 0,consultationStatus:void 0}),m=async(o=w.value.pageParams)=>{const t=await G({...o,...n});Y.value=t.data.records,U.value=t.data.total},J=()=>{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,w.value.pageParams.pageNumber=1,w.value.pageParams.pageSize=10,m()},y=C({visible:!1,data:void 0}),z=o=>{y.visible=!0,y.data=o},O=async o=>{var p,f,j,k;const t=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:t}),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=C({visible:!1,data:void 0}),A=o=>{v.visible=!0,v.data=o},E=o=>{v.visible=!1,o&&m()},g=C({visible:!1,data:void 0}),$=(o,t)=>{t===4?F.$messageBox.confirm("\u662F\u5426\u901A\u8FC7?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await H({formId:o.id,status:t}),F.$message.success("\u901A\u8FC7\u6210\u529F\uFF01")}):(g.visible=!0,g.data=o)},M=o=>{g.visible=!1,o&&m()},D=V();return X(async()=>{var t;m();const o=await ee({regionCode:330500,regionLevel:2});D.value=((t=o.data)==null?void 0:t.children)||[]}),(o,t)=>{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"),R=d("el-card"),q=d("table-list");return c(),_(h,null,[b("div",null,[e(R,{class:"w-full search mb-8"},{default:a(()=>[e(Z,{size:"small",model:n,"label-suffix":":"},{default:a(()=>[e(f,{gutter:16,class:"mb-16"},{default:a(()=>[e(r,{span:8},{default:a(()=>[e(u,{label:"\u9879\u76EE\u540D\u79F0",class:"w-full"},{default:a(()=>[e(N,{modelValue:n.projectName,"onUpdate:modelValue":t[0]||(t[0]=l=>n.projectName=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:a(()=>[e(u,{label:"\u7533\u62A5\u5355\u4F4D",class:"w-full"},{default:a(()=>[e(N,{modelValue:n.buildOrgName,"onUpdate:modelValue":t[1]||(t[1]=l=>n.buildOrgName=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:a(()=>[e(u,{label:"\u6240\u5C5E\u533A\u53BF"},{default:a(()=>[e(p,{modelValue:n.regionCode,"onUpdate:modelValue":t[2]||(t[2]=l=>n.regionCode=l),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(c(!0),_(h,null,L(D.value,(l,i)=>(c(),S(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:a(()=>[e(r,{span:8},{default:a(()=>[e(u,{label:"\u9879\u76EE\u7C7B\u578B"},{default:a(()=>[e(p,{modelValue:n.projectType,"onUpdate:modelValue":t[3]||(t[3]=l=>n.projectType=l),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(c(!0),_(h,null,L(le(B),(l,i)=>(c(),S(s,{key:i,label:l,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:a(()=>[e(u,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:a(()=>[e(j,{modelValue:n.projectYear,"onUpdate:modelValue":t[4]||(t[4]=l=>n.projectYear=l),class:"w-full",type:"year",format:"YYYY","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:a(()=>[e(u,{label:"\u72B6\u6001"},{default:a(()=>[e(p,{modelValue:n.consultationStatus,"onUpdate:modelValue":t[5]||(t[5]=l=>n.consultationStatus=l),class:"w-full"},{default:a(()=>[e(s,{label:"\u5F85\u56DE\u590D",value:1}),e(s,{label:"\u5F85\u5904\u7406",value:2}),e(s,{label:"\u5F85\u5BA1\u6838",value:3}),e(s,{label:"\u901A\u8FC7",value:4}),e(s,{label:"\u9A73\u56DE",value:5})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(f,{gutter:16},{default:a(()=>[e(r,{span:24},{default:a(()=>[e(u,{class:"btn"},{default:a(()=>[b("div",de,[e(k,{type:"primary",onClick:J},{default:a(()=>[x("\u67E5\u8BE2")]),_:1}),e(k,{onClick:P},{default:a(()=>[x("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(R,null,{header:a(()=>[x("\u5217\u8868")]),default:a(()=>[e(q,{ref_key:"tableListRef",ref:w,column:I,data:Y.value,total:U.value,onGetTableData:m},{consultationForm:a(({scope:l})=>[b("a",{onClick:i=>O(l.row.consultationForm)},"\u4E0B\u8F7D",8,re)]),replyForm:a(({scope:l})=>[l.row.canUploadReply?(c(),_("a",{key:0,onClick:i=>A(l.row)},"\u4E0A\u4F20",8,ie)):l.row.replyForm?(c(),_("a",{key:1,onClick:i=>O(l.row.replyForm)},"\u4E0B\u8F7D",8,ue)):T("",!0)]),action:a(({scope:l})=>[l.row.canAudit?(c(),_(h,{key:0},[b("a",{onClick:i=>$(l.row,4)},"\u901A\u8FC7",8,ce),b("a",{onClick:i=>$(l.row,5)},"\u9A73\u56DE",8,me)],64)):T("",!0),b("a",{onClick:i=>z(l.row)},"\u67E5\u770B\u8BB0\u5F55",8,pe)]),_:1},8,["column","data","total"])]),_:1})]),e(oe,{visible:y.visible,data:y.data,onClose:t[6]||(t[6]=l=>y.visible=!1)},null,8,["visible","data"]),e(ne,{visible:v.visible,data:v.data,onClose:E},null,8,["visible","data"]),e(se,{visible:g.visible,data:g.data,onClose:M},null,8,["visible","data"])],64)}}});export{we as default};