You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 line
4.9KB

  1. import{a as P}from"./index.dd00bdfc.js";import{d as $,B as G,y as S,b as y,r as v,o as q,c as n,e as _,f as j,h as e,i as l,F as V,H as W,u as Y,G as I,g as m,j as g,k as J}from"./index.e8b71da7.js";import{u as K}from"./useExportExc.bad9edde.js";import{l as Q}from"./delayApply.d6579f0b.js";import X from"./applyDialog.5fb2bb4d.js";import"./uploadAction.65e21f3b.js";const Z={class:"flex"},ee={class:"flex justify-between"},te=["onClick"],ae=["onClick"],le=$({name:"delayApply"}),me=Object.assign(le,{setup(oe){const{projectTypeOptions:h}=G.dictStore.globalDicts||{},N=S(),t=y({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),T=y([{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"}]),k=v([]),u=v(),s=async(r=u.value.pageParams)=>{var c,d;const a=await Q({...r,...t,createOnMin:(c=t.times)==null?void 0:c[0],createOnMax:(d=t.times)==null?void 0:d[1],projectYear:t.projectYear*1||void 0,times:void 0});k.value=a.data.records,x.value=a.data.total},x=v(2),C=()=>{s()},O=()=>{t.projectYear=void 0,t.projectName=void 0,t.projectType=void 0,t.createOnMin=void 0,t.createOnMax=void 0,t.times=void 0,u.value.pageParams.pageNumber=1,u.value.pageParams.pageSize=10,s()},{exportLoading:H,exportData:A}=K(),B=()=>{A(()=>{var r,a;return P(10,{...t,createOnMin:(r=t.times)==null?void 0:r[0],createOnMax:(a=t.times)==null?void 0:a[1],projectYear:t.projectYear*1||void 0,times:void 0})})},E=r=>{i.visible=!0,i.data=r},i=y({visible:void 0,data:void 0}),L=r=>{i.visible=!1,r&&s()};return q(async()=>{s()}),(r,a)=>{const c=n("el-input"),d=n("el-form-item"),p=n("el-col"),R=n("el-option"),U=n("el-select"),w=n("el-date-picker"),M=n("el-row"),b=n("el-button"),z=n("el-form"),D=n("el-card"),F=n("table-list");return _(),j(V,null,[e(D,{class:"w-full search"},{default:l(()=>[e(z,{model:t,size:"small","label-suffix":":"},{default:l(()=>[e(M,{gutter:16,class:"mb-16"},{default:l(()=>[e(p,{span:8},{default:l(()=>[e(d,{label:"\u9879\u76EE\u540D\u79F0"},{default:l(()=>[e(c,{modelValue:t.projectName,"onUpdate:modelValue":a[0]||(a[0]=o=>t.projectName=o),maxlength:"50",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:l(()=>[e(d,{label:"\u9879\u76EE\u7C7B\u578B"},{default:l(()=>[e(U,{modelValue:t.projectType,"onUpdate:modelValue":a[1]||(a[1]=o=>t.projectType=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:l(()=>[(_(!0),j(V,null,W(Y(h),(o,f)=>(_(),I(R,{key:f,label:o,value:f},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(p,{span:10},{default:l(()=>[e(d,{label:"\u8BA1\u5212\u9A8C\u6536\u65F6\u95F4"},{default:l(()=>[e(w,{modelValue:t.times,"onUpdate:modelValue":a[2]||(a[2]=o=>t.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}),e(M,{gutter:24},{default:l(()=>[e(p,{span:12},{default:l(()=>[e(d,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[e(w,{modelValue:t.times,"onUpdate:modelValue":a[3]||(a[3]=o=>t.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}),e(p,{span:12},{default:l(()=>[e(d,{class:"btn"},{default:l(()=>[m("div",Z,[e(b,{type:"primary",onClick:C},{default:l(()=>a[4]||(a[4]=[g("\u67E5\u8BE2")])),_:1}),e(b,{onClick:O},{default:l(()=>a[5]||(a[5]=[g("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(D,{class:"w-full mt-8"},{header:l(()=>[m("div",ee,[a[7]||(a[7]=m("span",null,"\u5217\u8868",-1)),m("div",null,[e(b,{type:"primary",size:"small",plain:"",loading:Y(H),onClick:B},{default:l(()=>a[6]||(a[6]=[g(" \u5BFC\u51FA ")])),_:1},8,["loading"])])])]),default:l(()=>[e(F,{ref_key:"tableListRef",ref:u,column:T,data:k.value,total:x.value,onGetTableData:s},{action:l(({scope:o})=>[o.row.canDelayApply?(_(),j("a",{key:0,onClick:f=>E(o.row)},"\u7533\u8BF7\u5EF6\u671F",8,te)):J("",!0),m("a",{onClick:f=>Y(N).push({name:"delayApplyDetail",query:{id:o.row.id}})},"\u8BE6\u60C5",8,ae)]),_:1},8,["column","data","total"])]),_:1}),e(X,{visible:i.visible,data:i.data,onClose:L},null,8,["visible","data"])],64)}}});export{me as default};