Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2 řádky
4.8KB

  1. import{a as L}from"./index.7c249f3d.js";import{d as U,B as z,y as F,b as h,r as y,o as I,c as n,e as b,f as V,h as t,i as l,F as M,H as q,u as f,G,g as d,j}from"./index.a2494fc2.js";import{u as S}from"./useExportExc.03cd7129.js";import{l as $}from"./initialInspectionRecord.8be99a4b.js";const W={class:"flex"},J={class:"flex justify-between"},K=["onClick"],Q=["onClick"],X=U({name:"initialInspectionRecord"}),oe=Object.assign(X,{setup(Z){const{projectTypeOptions:O}=z.dictStore.globalDicts||{},Y=F(),e=h({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),T=h([{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:"\u5E74\u5EA6\u9884\u7B97\uFF08\u4E07\u5143\uFF09",key:"annualPlanAmount",prop:"annualPlanAmount",width:"150"},{label:"\u6210\u4EA4\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"transactionAmount",prop:"transactionAmount",width:"150"},{label:"\u5408\u540C\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"contractAmount",prop:"contractAmount",width:"150"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:80},{label:"\u4EA4\u8D27\u65E5\u671F",key:"deliveryTime",prop:"deliveryTime",width:"200"},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"200"},{label:"\u64CD\u4F5C",slot:"action",width:"180",fixed:"right"}]),k=y([]),p=y(),u=async(s=p.value.pageParams)=>{var c,r;const a=await $({...s,...e,createOnMin:(c=e.times)==null?void 0:c[0],createOnMax:(r=e.times)==null?void 0:r[1],projectYear:e.projectYear*1||void 0,times:void 0});k.value=a.data.records,v.value=a.data.total},v=y(2),N=()=>{u()},C=()=>{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:D,exportData:A}=S(),R=()=>{A(()=>{var s,a;return L(8,{...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 I(async()=>{u()}),(s,a)=>{const c=n("el-input"),r=n("el-form-item"),i=n("el-col"),B=n("el-option"),E=n("el-select"),w=n("el-date-picker"),x=n("el-row"),_=n("el-button"),H=n("el-form"),g=n("el-card"),P=n("table-list");return b(),V(M,null,[t(g,{class:"w-full search"},{default:l(()=>[t(H,{model:e,size:"small","label-suffix":":"},{default:l(()=>[t(x,{gutter:16,class:"mb-16"},{default:l(()=>[t(i,{span:8},{default:l(()=>[t(r,{label:"\u9879\u76EE\u540D\u79F0"},{default:l(()=>[t(c,{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:8},{default:l(()=>[t(r,{label:"\u9879\u76EE\u7C7B\u578B"},{default:l(()=>[t(E,{modelValue:e.projectType,"onUpdate:modelValue":a[1]||(a[1]=o=>e.projectType=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:l(()=>[(b(!0),V(M,null,q(f(O),(o,m)=>(b(),G(B,{key:m,label:o,value:m},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(i,{span:8},{default:l(()=>[t(r,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:l(()=>[t(w,{modelValue:e.projectYear,"onUpdate:modelValue":a[2]||(a[2]=o=>e.projectYear=o),type:"year",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY","value-format":"YYYY"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(x,{gutter:24},{default:l(()=>[t(i,{span:12},{default:l(()=>[t(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[t(w,{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:C},{default:l(()=>a[5]||(a[5]=[j("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(g,{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(D),onClick:R},{default:l(()=>a[6]||(a[6]=[j(" \u5BFC\u51FA ")])),_:1},8,["loading"])])])]),default:l(()=>[t(P,{ref_key:"tableListRef",ref:p,column:T,data:k.value,total:v.value,onGetTableData:u},{action:l(({scope:o})=>[d("a",{onClick:m=>f(Y).push({name:"uploadInitMaterials",query:{id:o.row.id}})},"\u4E0A\u4F20\u521D\u9A8C\u6750\u6599",8,K),d("a",{onClick:m=>f(Y).push({name:"initialInspectionRecordDetail",query:{id:o.row.id}})},"\u8BE6\u60C5",8,Q)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{oe as default};