Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

2 rindas
5.5KB

  1. import{h as G,a as S}from"./index.52f0c4e2.js";import{d as I,B as W,y as Z,b as O,Z as M,r as Y,o as J,c as d,e as _,f as g,h as a,i as l,F as N,H as K,u as b,G as Q,g as i,j as x,k as X}from"./index.88314652.js";import{u as ee}from"./useExportExc.d7823a98.js";const te={class:"flex"},ae={class:"flex justify-between"},le=["onClick"],oe=["onClick"],ne=I({name:"projectAdjustment"}),pe=Object.assign(ne,{setup(se){const{statusOptionsCascader:C,statusOptions:c,projectTypeOptions:T}=W.dictStore.globalDicts||{},j=Z(),e=O({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),D=O([{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:"\u7533\u62A5\u91D1\u989D(\u4E07\u5143)",key:"declaredAmount",prop:"declaredAmount",width:"150"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:80},{label:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",width:"220",render:n=>{var t,u,s,r;return[M("span",{class:["dot mr-4",`bg-${(t=c[n.status])==null?void 0:t.color}`]}),M("span",{class:`text-${(u=c[n.status])==null?void 0:u.color}`},n.status&&((s=c[n.stage])==null?void 0:s.name)+"-"+((r=c[n.status])==null?void 0:r.name))]}},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",showOverflowTooltip:!0,width:"200"},{label:"\u64CD\u4F5C",slot:"action",width:"150px",fixed:"right"}]),k=Y([]),m=Y(),f=async(n=m.value.pageParams)=>{var u,s,r;const t=await G({...n,...e,createOnMin:(u=e.times)==null?void 0:u[0],createOnMax:(s=e.times)==null?void 0:s[1],projectYear:e.projectYear*1||void 0,status:(r=e.status)==null?void 0:r[e.status.length-1],times:void 0});k.value=t.data.records,v.value=t.data.total},v=Y(2),B=()=>{f()},E=()=>{e.status=void 0,e.projectYear=void 0,e.projectName=void 0,e.projectType=void 0,e.createOnMin=void 0,e.createOnMax=void 0,e.times=void 0,m.value.pageParams.pageNumber=1,m.value.pageParams.pageSize=10,f()},{exportLoading:H,exportData:L}=ee(),U=()=>{L(()=>{var n,t,u;return S(4,{...e,createOnMin:(n=e.times)==null?void 0:n[0],createOnMax:(t=e.times)==null?void 0:t[1],projectYear:e.projectYear*1||void 0,status:(u=e.status)==null?void 0:u[e.status.length-1],times:void 0})})},A=n=>{n.status===20005?j.push({name:"declarationFinal",query:{id:n.id}}):j.push({name:"declarePage",query:{id:n.id}})};return J(async()=>{f()}),(n,t)=>{const u=d("el-input"),s=d("el-form-item"),r=d("el-col"),P=d("el-option"),R=d("el-select"),$=d("el-cascader"),h=d("el-row"),V=d("el-date-picker"),y=d("el-button"),q=d("el-form"),w=d("el-card"),z=d("table-list");return _(),g(N,null,[a(w,{class:"w-full search"},{default:l(()=>[a(q,{model:e,size:"small","label-suffix":":"},{default:l(()=>[a(h,{gutter:16,class:"mb-16"},{default:l(()=>[a(r,{span:8},{default:l(()=>[a(s,{label:"\u9879\u76EE\u540D\u79F0"},{default:l(()=>[a(u,{modelValue:e.projectName,"onUpdate:modelValue":t[0]||(t[0]=o=>e.projectName=o),maxlength:"50",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(r,{span:8},{default:l(()=>[a(s,{label:"\u9879\u76EE\u7C7B\u578B"},{default:l(()=>[a(R,{modelValue:e.projectType,"onUpdate:modelValue":t[1]||(t[1]=o=>e.projectType=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:l(()=>[(_(!0),g(N,null,K(b(T),(o,p)=>(_(),Q(P,{key:p,label:o,value:p},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(r,{span:8},{default:l(()=>[a(s,{label:"\u9879\u76EE\u72B6\u6001"},{default:l(()=>[a($,{modelValue:e.status,"onUpdate:modelValue":t[2]||(t[2]=o=>e.status=o),class:"w-full",props:{label:"name",value:"code"},options:b(C).map(o=>{var p;return{...o,children:(p=o==null?void 0:o.children)==null?void 0:p.filter(F=>F.color==="danger")}})},null,8,["modelValue","options"])]),_:1})]),_:1})]),_:1}),a(h,{gutter:20},{default:l(()=>[a(r,{span:8},{default:l(()=>[a(s,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:l(()=>[a(V,{modelValue:e.projectYear,"onUpdate:modelValue":t[3]||(t[3]=o=>e.projectYear=o),type:"year",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY","value-format":"YYYY"},null,8,["modelValue"])]),_:1})]),_:1}),a(r,{span:12},{default:l(()=>[a(s,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[a(V,{modelValue:e.times,"onUpdate:modelValue":t[4]||(t[4]=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}),a(r,{span:4},{default:l(()=>[a(s,{class:"btn"},{default:l(()=>[i("div",te,[a(y,{type:"primary",onClick:B},{default:l(()=>t[5]||(t[5]=[x("\u67E5\u8BE2")])),_:1}),a(y,{onClick:E},{default:l(()=>t[6]||(t[6]=[x("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(w,{class:"w-full mt-8"},{header:l(()=>[i("div",ae,[t[8]||(t[8]=i("span",null,"\u5F85\u8C03\u6574\u7684\u9879\u76EE",-1)),i("div",null,[a(y,{type:"primary",size:"small",plain:"",loading:b(H),onClick:U},{default:l(()=>t[7]||(t[7]=[x(" \u5BFC\u51FA ")])),_:1},8,["loading"])])])]),default:l(()=>[a(z,{ref_key:"tableListRef",ref:m,column:D,data:k.value,total:v.value,onGetTableData:f},{action:l(({scope:o})=>[o.row.status!==10009?(_(),g("a",{key:0,onClick:p=>A(o.row)},"\u91CD\u65B0\u7533\u62A5",8,le)):X("",!0),i("a",{onClick:p=>b(j).push({name:"projectDeclareDetail",query:{id:o.row.id}})},"\u8BE6\u60C5",8,oe)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{pe as default};