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 lines
5.4KB

  1. var J=Object.defineProperty,S=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var H=(n,l,o)=>l in n?J(n,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[l]=o,Y=(n,l)=>{for(var o in l||(l={}))G.call(l,o)&&H(n,o,l[o]);if(C)for(var o of C(l))K.call(l,o)&&H(n,o,l[o]);return n},k=(n,l)=>S(n,$(l));var w=(n,l,o)=>new Promise((e,y)=>{var j=c=>{try{i(o.next(c))}catch(_){y(_)}},m=c=>{try{i(o.throw(c))}catch(_){y(_)}},i=c=>c.done?e(c.value):Promise.resolve(c.value).then(j,m);i((o=o.apply(n,l)).next())});import{_ as W,d as Q,A as X,D as Z,b as A,r as D,o as ee,e as d,f as M,g as E,k as t,l as a,F as U,J as te,j as g,I as ae,h as f,m as V}from"./index.11dc4694.js";import{a as le}from"./index.f58f6803.js";import{u as oe}from"./useExportExc.3a41eaf3.js";import{l as ne}from"./finalInspectionDeclare.67654f3e.js";const re={class:"flex"},se={class:"flex justify-between"},de=f("span",null,"\u5217\u8868",-1),ce=["onClick"],ie=["onClick"],pe=Q({name:"finalInspectionDeclare"}),ue=Object.assign(pe,{setup(n){const l=X(),{projectTypeOptions:o}=Z.dictStore.globalDicts||{},e=A({projectType:void 0,status:void 0,projectYear:void 0,projectName:void 0,createOnMin:void 0,createOnMax:void 0,times:[]}),y=A([{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"}]),j=D([]),m=D(),i=(...s)=>w(this,[...s],function*(b=m.value.pageParams){var p,u;const h=yield ne(k(Y(Y({},b),e),{createOnMin:(p=e.times)==null?void 0:p[0],createOnMax:(u=e.times)==null?void 0:u[1],projectYear:e.projectYear*1||void 0,times:void 0}));j.value=h.data.records,c.value=h.data.total}),c=D(0),_=()=>{i()},B=()=>{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,i()},{exportLoading:F,exportData:I}=oe(),L=()=>{I(()=>{var b,s;return le(9,k(Y({},e),{createOnMin:(b=e.times)==null?void 0:b[0],createOnMax:(s=e.times)==null?void 0:s[1],projectYear:e.projectYear*1||void 0,times:void 0}))})};return ee(()=>w(this,null,function*(){i()})),(b,s)=>{const h=d("el-input"),p=d("el-form-item"),u=d("el-col"),P=d("el-option"),R=d("el-select"),N=d("el-date-picker"),T=d("el-row"),v=d("el-button"),z=d("el-form"),O=d("el-card"),q=d("table-list");return M(),E(U,null,[t(O,{class:"w-full search"},{default:a(()=>[t(z,{model:e,size:"small","label-suffix":":"},{default:a(()=>[t(T,{gutter:16,class:"mb-16"},{default:a(()=>[t(u,{span:8},{default:a(()=>[t(p,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[t(h,{modelValue:e.projectName,"onUpdate:modelValue":s[0]||(s[0]=r=>e.projectName=r),maxlength:"50",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(u,{span:6},{default:a(()=>[t(p,{label:"\u9879\u76EE\u7C7B\u578B"},{default:a(()=>[t(R,{modelValue:e.projectType,"onUpdate:modelValue":s[1]||(s[1]=r=>e.projectType=r),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(M(!0),E(U,null,te(g(o),(r,x)=>(M(),ae(P,{key:x,label:r,value:x},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(u,{span:10},{default:a(()=>[t(p,{label:"\u8BA1\u5212\u9A8C\u6536\u65F6\u95F4"},{default:a(()=>[t(N,{modelValue:e.times,"onUpdate:modelValue":s[2]||(s[2]=r=>e.times=r),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(T,{gutter:24},{default:a(()=>[t(u,{span:12},{default:a(()=>[t(p,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[t(N,{modelValue:e.times,"onUpdate:modelValue":s[3]||(s[3]=r=>e.times=r),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(u,{span:12},{default:a(()=>[t(p,{class:"btn"},{default:a(()=>[f("div",re,[t(v,{type:"primary",onClick:_},{default:a(()=>[V("\u67E5\u8BE2")]),_:1}),t(v,{onClick:B},{default:a(()=>[V("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(O,{class:"w-full mt-8"},{header:a(()=>[f("div",se,[de,f("div",null,[t(v,{type:"primary",size:"small",plain:"",loading:g(F),onClick:L},{default:a(()=>[V(" \u5BFC\u51FA ")]),_:1},8,["loading"])])])]),default:a(()=>[t(q,{ref_key:"tableListRef",ref:m,column:y,data:j.value,total:c.value,onGetTableData:i},{action:a(({scope:r})=>[f("a",{onClick:x=>g(l).push({name:"declarationFinal",query:{id:r.row.id}})},"\u7EC8\u9A8C\u7533\u62A5",8,ce),f("a",{onClick:x=>g(l).push({name:"finalInspectionDeclareDetail",query:{id:r.row.id}})},"\u8BE6\u60C5",8,ie)]),_:1},8,["column","data","total"])]),_:1})],64)}}}),je=W(ue,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/declareManage/finalInspectionDeclare/index.vue"]]);export{je as default};