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

index.b5a5dc01.js 4.6KB

1
  1. import{a as R}from"./index.ed13ba65.js";import{d as U,y as z,B as P,b as M,r as b,o as q,c as n,e as y,f as D,h as t,i as l,F as V,H as G,u as f,G as I,g as d,j}from"./index.1cbb0c88.js";import{u as S}from"./useExportExc.35d184d0.js";import{l as $}from"./finalInspectionDeclare.02186d62.js";const W={class:"flex"},J={class:"flex justify-between"},K=["onClick"],Q=["onClick"],X=U({name:"finalInspectionDeclare"}),oe=Object.assign(X,{setup(Z){const Y=z(),{projectTypeOptions:h}=P.dictStore.globalDicts||{},e=M({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),T=M([{label:"\u5E8F\u53F7",type:"index",width:"80"},{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:"\u6279\u590D\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"approvedAmount",prop:"approvedAmount",width:"150"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:80},{label:"\u8BA1\u5212\u9A8C\u6536\u65F6\u95F4",key:"planAcceptanceTime",prop:"planAcceptanceTime",width:"200"},{label:"\u64CD\u4F5C",slot:"action",width:"180",fixed:"right"}]),g=b([]),p=b(),u=async(s=p.value.pageParams)=>{var m,r;const a=await $({...s,...e,createOnMin:(m=e.times)==null?void 0:m[0],createOnMax:(r=e.times)==null?void 0:r[1],projectYear:e.projectYear*1||void 0,times:void 0});g.value=a.data.records,v.value=a.data.total},v=b(0),N=()=>{u()},O=()=>{e.projectYear=void 0,e.projectName=void 0,e.projectType=void 0,e.createOnMin=void 0,e.createOnMax=void 0,e.times=void 0,p.value.pageParams.pageNumber=1,p.value.pageParams.pageSize=10,u()},{exportLoading:C,exportData:H}=S(),B=()=>{H(()=>{var s,a;return R(9,{...e,createOnMin:(s=e.times)==null?void 0:s[0],createOnMax:(a=e.times)==null?void 0:a[1],projectYear:e.projectYear*1||void 0,times:void 0})})};return q(async()=>{u()}),(s,a)=>{const m=n("el-input"),r=n("el-form-item"),i=n("el-col"),E=n("el-option"),A=n("el-select"),x=n("el-date-picker"),k=n("el-row"),_=n("el-button"),F=n("el-form"),w=n("el-card"),L=n("table-list");return y(),D(V,null,[t(w,{class:"w-full search"},{default:l(()=>[t(F,{model:e,size:"small","label-suffix":":"},{default:l(()=>[t(k,{gutter:16,class:"mb-16"},{default:l(()=>[t(i,{span:8},{default:l(()=>[t(r,{label:"\u9879\u76EE\u540D\u79F0"},{default:l(()=>[t(m,{modelValue:e.projectName,"onUpdate:modelValue":a[0]||(a[0]=o=>e.projectName=o),maxlength:"50",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(i,{span:6},{default:l(()=>[t(r,{label:"\u9879\u76EE\u7C7B\u578B"},{default:l(()=>[t(A,{modelValue:e.projectType,"onUpdate:modelValue":a[1]||(a[1]=o=>e.projectType=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:l(()=>[(y(!0),D(V,null,G(f(h),(o,c)=>(y(),I(E,{key:c,label:o,value:c},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(i,{span:10},{default:l(()=>[t(r,{label:"\u8BA1\u5212\u9A8C\u6536\u65F6\u95F4"},{default:l(()=>[t(x,{modelValue:e.times,"onUpdate:modelValue":a[2]||(a[2]=o=>e.times=o),type:"datetimerange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(k,{gutter:24},{default:l(()=>[t(i,{span:12},{default:l(()=>[t(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[t(x,{modelValue:e.times,"onUpdate:modelValue":a[3]||(a[3]=o=>e.times=o),type:"datetimerange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue"])]),_:1})]),_:1}),t(i,{span:12},{default:l(()=>[t(r,{class:"btn"},{default:l(()=>[d("div",W,[t(_,{type:"primary",onClick:N},{default:l(()=>a[4]||(a[4]=[j("\u67E5\u8BE2")])),_:1}),t(_,{onClick:O},{default:l(()=>a[5]||(a[5]=[j("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(w,{class:"w-full mt-8"},{header:l(()=>[d("div",J,[a[7]||(a[7]=d("span",null,"\u5217\u8868",-1)),d("div",null,[t(_,{type:"primary",size:"small",plain:"",loading:f(C),onClick:B},{default:l(()=>a[6]||(a[6]=[j(" \u5BFC\u51FA ")])),_:1},8,["loading"])])])]),default:l(()=>[t(L,{ref_key:"tableListRef",ref:p,column:T,data:g.value,total:v.value,onGetTableData:u},{action:l(({scope:o})=>[d("a",{onClick:c=>f(Y).push({name:"declarationFinal",query:{id:o.row.id}})},"\u7EC8\u9A8C\u7533\u62A5",8,K),d("a",{onClick:c=>f(Y).push({name:"finalInspectionDeclareDetail",query:{id:o.row.id}})},"\u8BE6\u60C5",8,Q)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{oe as default};