25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
5.5KB

  1. import{f as q,a as I}from"./index.dd00bdfc.js";import{_ as W,d as Z,B as J,y as K,b as x,r as g,Z as D,o as Q,c as s,e as b,f as k,h as e,i as a,F as N,H as X,u as O,G as ee,g as i,j as w,k as te}from"./index.e8b71da7.js";import{u as ae}from"./useExportExc.bad9edde.js";import le from"./preExaminationDialog.c07f116e.js";import"./uploadAction.65e21f3b.js";const oe={class:"flex"},ne={class:"flex justify-between"},se={class:"mb-8"},re=["onClick"],de=["onClick"],ie=Z({name:"preExaminationDeclare"}),ue=Object.assign(ie,{setup(pe){const{statusOptions:m,projectTypeOptions:T}=J.dictStore.globalDicts||{},C=K(),l=x({projectName:void 0,buildUnitName:void 0,projectType:void 0,year:void 0,times:void 0}),f=g(),j=g(0),E=x([{label:"\u5E8F\u53F7",type:"index",width:"60"},{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:"\u7533\u62A5\u91D1\u989D(\u4E07\u5143)",key:"declaredAmount",prop:"declaredAmount",width:"150"},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrg",prop:"buildOrg",width:"120",showOverflowTooltip:!0},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"80"},{label:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",showOverflowTooltip:!0,width:"180",render:o=>{var t,d,r;return[D("span",{class:["dot mr-4",`bg-${m[o.status].color}`]}),D("span",{class:`text-${(t=m[o.status])==null?void 0:t.color}`},o.status&&((d=m[o.stage])==null?void 0:d.name)+"-"+((r=m[o.status])==null?void 0:r.name))]}},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"160",fixed:"right"}]),h=g([]),u=async(o=f.value.pageParams)=>{var d,r;const t=await q({...o,...l,createOnMin:((d=l.times)==null?void 0:d[0])||void 0,createOnMax:((r=l.times)==null?void 0:r[1])||void 0,times:void 0});h.value=t.data.records,j.value=t.data.total},M=()=>{u()},U=()=>{l.projectName=void 0,l.buildUnitName=void 0,l.projectType=void 0,l.projectYear=void 0,l.times=void 0,f.value.pageParams.pageNumber=1,f.value.pageParams.pageSize=10,u()},{exportLoading:B,exportData:H}=ae(),L=()=>{H(()=>{var o,t;return I(2,{...l,createOnMin:((o=l.times)==null?void 0:o[0])||void 0,createOnMax:((t=l.times)==null?void 0:t[1])||void 0,times:void 0})})},P=o=>{p.visible=!0,p.data=o},p=x({visible:void 0,data:void 0}),$=o=>{p.visible=!1,o&&u()},z=o=>{C.push({name:"preExaminationDeclareDetail",query:{id:o.id}})};return Q(async()=>{u()}),(o,t)=>{const d=s("el-input"),r=s("el-form-item"),c=s("el-col"),F=s("el-option"),R=s("el-select"),Y=s("el-date-picker"),y=s("el-row"),v=s("el-button"),A=s("el-form"),V=s("el-card"),G=s("el-alert"),S=s("table-list");return b(),k(N,null,[e(y,null,{default:a(()=>[e(V,{class:"w-full search"},{default:a(()=>[e(A,{model:l,size:"small","label-suffix":":"},{default:a(()=>[e(y,{gutter:16,class:"mb-16"},{default:a(()=>[e(c,{span:8},{default:a(()=>[e(r,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(d,{modelValue:l.projectName,"onUpdate:modelValue":t[0]||(t[0]=n=>l.projectName=n),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:a(()=>[e(r,{label:"\u9879\u76EE\u7C7B\u578B"},{default:a(()=>[e(R,{modelValue:l.projectType,"onUpdate:modelValue":t[1]||(t[1]=n=>l.projectType=n),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(b(!0),k(N,null,X(O(T),(n,_)=>(b(),ee(F,{key:_,label:n,value:_},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:a(()=>[e(r,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:a(()=>[e(Y,{modelValue:l.projectYear,"onUpdate:modelValue":t[2]||(t[2]=n=>l.projectYear=n),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(y,{gutter:16},{default:a(()=>[e(c,{span:10},{default:a(()=>[e(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[e(Y,{modelValue:l.times,"onUpdate:modelValue":t[3]||(t[3]=n=>l.times=n),type:"datetimerange",editable:!1,format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:14},{default:a(()=>[e(r,{class:"btn"},{default:a(()=>[i("div",oe,[e(v,{type:"primary",onClick:M},{default:a(()=>t[4]||(t[4]=[w("\u67E5\u8BE2")])),_:1}),e(v,{onClick:U},{default:a(()=>t[5]||(t[5]=[w("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(V,{class:"w-full mt-8"},{header:a(()=>[i("div",ne,[t[7]||(t[7]=i("span",null,"\u5F85\u7533\u62A5\u7684\u9879\u76EE",-1)),i("div",null,[e(v,{type:"primary",size:"small",plain:"",loading:O(B),onClick:L},{default:a(()=>t[6]||(t[6]=[w("\u5BFC\u51FA")])),_:1},8,["loading"])])])]),default:a(()=>[i("div",se,[e(G,{title:"\u6E29\u99A8\u63D0\u793A",closable:!1,type:"info",description:"\u4E00\u7EA7\u5355\u4F4D\u7528\u6237\u6709\u6743\u9650\u8FDB\u884C[\u7533\u62A5\u9884\u5BA1]\u64CD\u4F5C\uFF0C\u82E5\u60A8\u65E0\u6743\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u60A8\u4E0A\u7EA7\u5355\u4F4D\u7BA1\u7406\u5458","show-icon":"",class:"primary-alert"})]),e(S,{ref_key:"tableListRef",ref:f,column:E,data:h.value,total:j.value,onGetTableData:u},{action:a(({scope:n})=>[n.row.canPreDeclared?(b(),k("a",{key:0,onClick:_=>P(n.row)},"\u7533\u62A5\u9884\u5BA1",8,re)):te("",!0),i("a",{onClick:_=>z(n.row)},"\u8BE6\u60C5",8,de)]),_:1},8,["column","data","total"])]),_:1})]),_:1}),e(le,{visible:p.visible,data:p.data,onClose:$},null,8,["visible","data"])],64)}}}),ye=W(ue,[["__scopeId","data-v-3fd9ab88"]]);export{ye as default};