Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
6.6KB

  1. import{l as M,d as H}from"./inquirySheetManage.03d629d6.js";import{d as K,r as V,B as Q,b as w,Z as W,o as X,D as ee,c as d,e as c,f as _,g as b,h as e,i as t,F as x,H as S,G as T,u as le,j as F,k as h,A as ae,q as te}from"./index.88314652.js";import oe from"./recordListDialog.0f51afad.js";import ne from"./upLoadReplayDialog.ed8fa6aa.js";import se from"./upLoadZxDialog.c881f352.js";import"./uploadAction.a771741b.js";const de={class:"flex"},re=["onClick"],ie=["onClick"],ue=["onClick"],ce=["onClick"],me=["onClick"],pe=["onClick"],fe=K({name:"inquirySheetManage"}),Ce=Object.assign(fe,{setup(_e){const C=V(),{proxy:Y}=te(),{projectTypeOptions:B}=Q.dictStore.globalDicts||{},I=w([{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"}]),U=V([]),O=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 M({...o,...n});U.value=a.data.records,O.value=a.data.total},A=()=>{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},$=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}),q=o=>{v.visible=!0,v.data=o},z=o=>{v.visible=!1,o&&m()},g=w({visible:!1,data:void 0}),D=(o,a)=>{a===4?Y.$messageBox.confirm("\u662F\u5426\u901A\u8FC7?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await H({formId:o.id,status:a}),Y.$message.success("\u901A\u8FC7\u6210\u529F\uFF01")}):(g.visible=!0,g.data=o)},E=o=>{g.visible=!1,o&&m()},R=V();return X(async()=>{var a;m();const o=await ee({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"),G=d("el-form"),L=d("el-card"),J=d("table-list");return c(),_(x,null,[b("div",null,[e(L,{class:"w-full search mb-8"},{default:t(()=>[e(G,{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:"\u9879\u76EE\u540D\u79F0",class:"w-full"},{default:t(()=>[e(N,{modelValue:n.projectName,"onUpdate:modelValue":a[0]||(a[0]=l=>n.projectName=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:t(()=>[e(u,{label:"\u7533\u62A5\u5355\u4F4D",class:"w-full"},{default:t(()=>[e(N,{modelValue:n.buildOrgName,"onUpdate:modelValue":a[1]||(a[1]=l=>n.buildOrgName=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:t(()=>[e(u,{label:"\u6240\u5C5E\u533A\u53BF"},{default:t(()=>[e(p,{modelValue:n.regionCode,"onUpdate:modelValue":a[2]||(a[2]=l=>n.regionCode=l),placeholder:"\u5168\u90E8",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:"\u9879\u76EE\u7C7B\u578B"},{default:t(()=>[e(p,{modelValue:n.projectType,"onUpdate:modelValue":a[3]||(a[3]=l=>n.projectType=l),placeholder:"\u5168\u90E8",class:"w-full"},{default:t(()=>[(c(!0),_(x,null,S(le(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:"\u9884\u7B97\u5E74\u5EA6"},{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:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:t(()=>[e(u,{label:"\u72B6\u6001"},{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:"\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:t(()=>[e(r,{span:24},{default:t(()=>[e(u,{class:"btn"},{default:t(()=>[b("div",de,[e(k,{type:"primary",onClick:A},{default:t(()=>a[7]||(a[7]=[F("\u67E5\u8BE2")])),_:1}),e(k,{onClick:P},{default:t(()=>a[8]||(a[8]=[F("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(L,null,{header:t(()=>a[9]||(a[9]=[F("\u5217\u8868")])),default:t(()=>[e(J,{ref_key:"tableListRef",ref:C,column:I,data:U.value,total:O.value,onGetTableData:m},{consultationForm:t(({scope:l})=>[b("a",{onClick:i=>$(l.row.consultationForm)},"\u4E0B\u8F7D",8,re)]),replyForm:t(({scope:l})=>[l.row.canUploadReply?(c(),_("a",{key:0,onClick:i=>q(l.row)},"\u4E0A\u4F20",8,ie)):l.row.replyForm?(c(),_("a",{key:1,onClick:i=>$(l.row.replyForm)},"\u4E0B\u8F7D",8,ue)):h("",!0)]),action:t(({scope:l})=>[l.row.canAudit?(c(),_(x,{key:0},[b("a",{onClick:i=>D(l.row,4)},"\u901A\u8FC7",8,ce),b("a",{onClick:i=>D(l.row,5)},"\u9A73\u56DE",8,me)],64)):h("",!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:a[6]||(a[6]=l=>y.visible=!1)},null,8,["visible","data"]),e(ne,{visible:v.visible,data:v.data,onClose:z},null,8,["visible","data"]),e(se,{visible:g.visible,data:g.data,onClose:E},null,8,["visible","data"])],64)}}});export{Ce as default};