|
- import{f as G,a as J}from"./index.7cf53a4d.js";import{_ as W,d as K,D as Q,A as X,b as x,r as g,a0 as N,o as Z,c as s,e as y,f as k,h as e,i as t,F as O,J as ee,u as T,I as te,g as i,j as w,k as ae,q as le,s as oe}from"./index.622ee9e7.js";import{u as ne}from"./useExportExc.30749d6d.js";import se from"./preExaminationDialog.f09032da.js";import"./uploadAction.44c3f16c.js";const de=m=>(le("data-v-3fd9ab88"),m=m(),oe(),m),re={class:"flex"},ie={class:"flex justify-between"},ce=de(()=>i("span",null,"\u5F85\u7533\u62A5\u7684\u9879\u76EE",-1)),pe={class:"mb-8"},ue=["onClick"],me=["onClick"],_e=K({name:"preExaminationDeclare"}),fe=Object.assign(_e,{setup(m){const{statusOptions:_,projectTypeOptions:C}=Q.dictStore.globalDicts||{},E=X(),a=x({projectName:void 0,buildUnitName:void 0,projectType:void 0,year:void 0,times:void 0}),f=g(),j=g(0),M=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:l=>{var o,r,d;return[N("span",{class:["dot mr-4",`bg-${_[l.status].color}`]}),N("span",{class:`text-${(o=_[l.status])==null?void 0:o.color}`},l.status&&((r=_[l.stage])==null?void 0:r.name)+"-"+((d=_[l.status])==null?void 0:d.name))]}},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"160",fixed:"right"}]),Y=g([]),c=async(l=f.value.pageParams)=>{var r,d;const o=await G({...l,...a,createOnMin:((r=a.times)==null?void 0:r[0])||void 0,createOnMax:((d=a.times)==null?void 0:d[1])||void 0,times:void 0});Y.value=o.data.records,j.value=o.data.total},U=()=>{c()},I=()=>{a.projectName=void 0,a.buildUnitName=void 0,a.projectType=void 0,a.projectYear=void 0,a.times=void 0,f.value.pageParams.pageNumber=1,f.value.pageParams.pageSize=10,c()},{exportLoading:L,exportData:P}=ne(),S=()=>{P(()=>{var l,o;return J(2,{...a,createOnMin:((l=a.times)==null?void 0:l[0])||void 0,createOnMax:((o=a.times)==null?void 0:o[1])||void 0,times:void 0})})},$=l=>{p.visible=!0,p.data=l},p=x({visible:void 0,data:void 0}),B=l=>{p.visible=!1,l&&c()},H=l=>{E.push({name:"preExaminationDeclareDetail",query:{id:l.id}})};return Z(async()=>{c()}),(l,o)=>{const r=s("el-input"),d=s("el-form-item"),u=s("el-col"),z=s("el-option"),A=s("el-select"),D=s("el-date-picker"),v=s("el-row"),h=s("el-button"),F=s("el-form"),V=s("el-card"),R=s("el-alert"),q=s("table-list");return y(),k(O,null,[e(v,null,{default:t(()=>[e(V,{class:"w-full search"},{default:t(()=>[e(F,{model:a,size:"small","label-suffix":":"},{default:t(()=>[e(v,{gutter:16,class:"mb-16"},{default:t(()=>[e(u,{span:8},{default:t(()=>[e(d,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[e(r,{modelValue:a.projectName,"onUpdate:modelValue":o[0]||(o[0]=n=>a.projectName=n),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:8},{default:t(()=>[e(d,{label:"\u9879\u76EE\u7C7B\u578B"},{default:t(()=>[e(A,{modelValue:a.projectType,"onUpdate:modelValue":o[1]||(o[1]=n=>a.projectType=n),placeholder:"\u5168\u90E8",class:"w-full"},{default:t(()=>[(y(!0),k(O,null,ee(T(C),(n,b)=>(y(),te(z,{key:b,label:n,value:b},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(u,{span:8},{default:t(()=>[e(d,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:t(()=>[e(D,{modelValue:a.projectYear,"onUpdate:modelValue":o[2]||(o[2]=n=>a.projectYear=n),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(v,{gutter:16},{default:t(()=>[e(u,{span:10},{default:t(()=>[e(d,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(()=>[e(D,{modelValue:a.times,"onUpdate:modelValue":o[3]||(o[3]=n=>a.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(u,{span:14},{default:t(()=>[e(d,{class:"btn"},{default:t(()=>[i("div",re,[e(h,{type:"primary",onClick:U},{default:t(()=>[w("\u67E5\u8BE2")]),_:1}),e(h,{onClick:I},{default:t(()=>[w("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(V,{class:"w-full mt-8"},{header:t(()=>[i("div",ie,[ce,i("div",null,[e(h,{type:"primary",size:"small",plain:"",loading:T(L),onClick:S},{default:t(()=>[w("\u5BFC\u51FA")]),_:1},8,["loading"])])])]),default:t(()=>[i("div",pe,[e(R,{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(q,{ref_key:"tableListRef",ref:f,column:M,data:Y.value,total:j.value,onGetTableData:c},{action:t(({scope:n})=>[n.row.canPreDeclared?(y(),k("a",{key:0,onClick:b=>$(n.row)},"\u7533\u62A5\u9884\u5BA1",8,ue)):ae("",!0),i("a",{onClick:b=>H(n.row)},"\u8BE6\u60C5",8,me)]),_:1},8,["column","data","total"])]),_:1})]),_:1}),e(se,{visible:p.visible,data:p.data,onClose:B},null,8,["visible","data"])],64)}}}),ge=W(fe,[["__scopeId","data-v-3fd9ab88"]]);export{ge as default};
|