No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

index.65c0c4c8.js 5.1KB

1
  1. import{a as I}from"./index.850e1543.js";import{d as $,D as S,A as G,b as N,r as b,o as J,c as n,e as m,f as y,h as e,i as a,F as T,J as W,u as f,I as K,g as v,j as h,k as M}from"./index.20c8d60f.js";import{u as Q}from"./useExportExc.c1034862.js";import{l as X}from"./contractRecord.3ba97293.js";const Z={class:"flex"},ee={class:"flex justify-between items-center"},te=["onClick"],ae=["onClick"],le=["onClick"],oe=$({name:"contractRecord"}),ie=Object.assign(oe,{setup(ne){const{projectTypeOptions:O}=S.dictStore.globalDicts||{},j=G(),t=N({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),s=b("1"),D=N([{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:"\u6210\u4EA4\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"transactionAmount",prop:"transactionAmount",width:"150"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:80},{label:"\u6210\u4EA4\u65F6\u95F4",key:"transactionTime",prop:"transactionTime",width:"120"},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"200"},{label:"\u64CD\u4F5C",slot:"action",width:"190",fixed:"right"}]),k=b([]),c=b(),i=async(d=c.value.pageParams)=>{var _,r;const l=await X(s.value,{...d,...t,createOnMin:(_=t.times)==null?void 0:_[0],createOnMax:(r=t.times)==null?void 0:r[1],projectYear:t.projectYear*1||void 0,times:void 0});k.value=l.data.records,g.value=l.data.total},g=b(2),R=()=>{c.value.pageParams.pageNumber=1,i()},E=()=>{t.projectYear=void 0,t.projectName=void 0,t.projectType=void 0,t.createOnMin=void 0,t.createOnMax=void 0,t.times=void 0,c.value.pageParams.pageNumber=1,c.value.pageParams.pageSize=10,i()},U=d=>{s.value=d,i()},{exportLoading:B,exportData:H}=Q(),L=()=>{H(()=>{var d,l;return I(7,{...t,createOnMin:(d=t.times)==null?void 0:d[0],createOnMax:(l=t.times)==null?void 0:l[1],projectYear:t.projectYear*1||void 0,times:void 0})})};return J(async()=>{i()}),(d,l)=>{const _=n("el-input"),r=n("el-form-item"),u=n("el-col"),P=n("el-option"),q=n("el-select"),w=n("el-date-picker"),x=n("el-row"),Y=n("el-button"),z=n("el-form"),V=n("el-card"),C=n("el-tab-pane"),A=n("el-tabs"),F=n("table-list");return m(),y(T,null,[e(V,{class:"w-full search"},{default:a(()=>[e(z,{model:t,size:"small","label-suffix":":"},{default:a(()=>[e(x,{gutter:16,class:"mb-16"},{default:a(()=>[e(u,{span:8},{default:a(()=>[e(r,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(_,{modelValue:t.projectName,"onUpdate:modelValue":l[0]||(l[0]=o=>t.projectName=o),maxlength:"50",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:8},{default:a(()=>[e(r,{label:"\u9879\u76EE\u7C7B\u578B"},{default:a(()=>[e(q,{modelValue:t.projectType,"onUpdate:modelValue":l[1]||(l[1]=o=>t.projectType=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(m(!0),y(T,null,W(f(O),(o,p)=>(m(),K(P,{key:p,label:o,value:p},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(u,{span:8},{default:a(()=>[e(r,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:a(()=>[e(w,{modelValue:t.projectYear,"onUpdate:modelValue":l[2]||(l[2]=o=>t.projectYear=o),type:"year",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY","value-format":"YYYY"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(x,{gutter:24},{default:a(()=>[e(u,{span:12},{default:a(()=>[e(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[e(w,{modelValue:t.times,"onUpdate:modelValue":l[3]||(l[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(u,{span:12},{default:a(()=>[e(r,{class:"btn"},{default:a(()=>[v("div",Z,[e(Y,{type:"primary",onClick:R},{default:a(()=>[h("\u67E5\u8BE2")]),_:1}),e(Y,{onClick:E},{default:a(()=>[h("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(V,{class:"w-full mt-8 tab-card"},{header:a(()=>[v("div",ee,[e(A,{modelValue:s.value,"onUpdate:modelValue":l[4]||(l[4]=o=>s.value=o),onTabChange:U},{default:a(()=>[e(C,{label:"\u5F85\u5B8C\u5584\u5408\u540C\u4FE1\u606F",name:"1"}),e(C,{label:"\u5DF2\u5B8C\u5584\u5408\u540C\u4FE1\u606F",name:"2"})]),_:1},8,["modelValue"]),v("div",null,[e(Y,{type:"primary",size:"small",plain:"",loading:f(B),onClick:L},{default:a(()=>[h(" \u5BFC\u51FA ")]),_:1},8,["loading"])])])]),default:a(()=>[e(F,{ref_key:"tableListRef",ref:c,column:D,data:k.value,total:g.value,onGetTableData:i},{action:a(({scope:o})=>[s.value==="1"?(m(),y("a",{key:0,onClick:p=>f(j).push({name:"fillContractInfo",query:{id:o.row.id}})},"\u586B\u5199\u5408\u540C\u4FE1\u606F",8,te)):M("",!0),s.value==="2"&&!o.row.supplemented?(m(),y("a",{key:1,onClick:p=>f(j).push({name:"fillContractInfo",query:{id:o.row.id,isReplenishment:!0}})},"\u8865\u5145\u5B9E\u9645\u4ED8\u6B3E\u91D1\u989D",8,ae)):M("",!0),v("a",{onClick:p=>f(j).push({name:"contractRecordDetail",query:{id:o.row.id}})},"\u8BE6\u60C5",8,le)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{ie as default};