Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 linhas
4.3KB

  1. import{_ as P,d as G,C as h,B as C,x as F,b as I,r as _,o as q,c as n,e as J,G as K,i as t,h as e,g as x,j as y,u as r,t as Q,a6 as W,aB as X}from"./index.a2494fc2.js";import{u as Z}from"./useExportExc.03cd7129.js";const ee={class:"flex"},ae={class:"flex justify-between items-center"},te=["onClick"],le=G({name:"waitMeToHandle"}),oe=Object.assign(le,{props:{column:{type:Array,default:void 0},state:String,exportData:{type:Array,default:void 0}},emits:["toHandle"],setup(Y,{emit:D}){const{notAppendNum:N,appendNum:V}=h(C.countStore)||0,f=Y,b=F(),H=D,l=I({buildOrgName:void 0,projectYear:void 0,projectName:void 0,times:void 0}),O=()=>{u()},S=()=>{l.buildOrgName=void 0,l.projectYear=void 0,l.projectName=void 0,l.times=void 0,c.value.pageParams.pageNumber=1,c.value.pageParams.pageSize=10,u()},c=_(),j=_(0),w=_([]),u=async(s=c.value.pageParams)=>{var i,d;const a=await W(f.state,{...s,...l,isTemporaryAugment:m.value,createOnMin:(i=l.times)==null?void 0:i[0],createOnMax:(d=l.times)==null?void 0:d[1],times:void 0,projectYear:l.projectYear*1||void 0});j.value=a.data.total,w.value=a.data.records},m=_("0"),L=(s,a)=>{m.value=s.props.name,u()},A=s=>{H("toHandle",s)},{exportLoading:B,exportData:U}=Z(),$=()=>{U(()=>{var s,a;return X(f.state,{...l,createOnMin:((s=l.times)==null?void 0:s[0])||void 0,createOnMax:((a=l.times)==null?void 0:a[1])||void 0,projectYear:l.projectYear*1||void 0,exportOptionList:f.exportData,isTemporaryAugment:m.value})})};return q(async()=>{u(),C.countStore.setTodoNumsStore()}),(s,a)=>{const i=n("el-input"),d=n("el-form-item"),p=n("el-col"),M=n("el-date-picker"),g=n("el-row"),v=n("el-button"),E=n("el-form"),T=n("el-card"),k=n("el-tab-pane"),R=n("el-tabs"),z=n("table-list");return J(),K(g,null,{default:t(()=>[e(T,{class:"w-full search"},{default:t(()=>[e(E,{model:l,size:"small","label-suffix":":"},{default:t(()=>[e(g,{gutter:16,class:"mb-16"},{default:t(()=>[e(p,{span:8},{default:t(()=>[e(d,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[e(i,{modelValue:l.projectName,"onUpdate:modelValue":a[0]||(a[0]=o=>l.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:8},{default:t(()=>[e(d,{label:"\u9879\u76EE\u5355\u4F4D"},{default:t(()=>[e(i,{modelValue:l.buildOrgName,"onUpdate:modelValue":a[1]||(a[1]=o=>l.buildOrgName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:8},{default:t(()=>[e(d,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:t(()=>[e(M,{modelValue:l.projectYear,"onUpdate:modelValue":a[2]||(a[2]=o=>l.projectYear=o),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(g,{gutter:16},{default:t(()=>[e(p,{span:10},{default:t(()=>[e(d,{label:"\u53D1\u8D77\u65F6\u95F4"},{default:t(()=>[e(M,{modelValue:l.times,"onUpdate:modelValue":a[3]||(a[3]=o=>l.times=o),type:"datetimerange",editable:!1,format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:14},{default:t(()=>[e(d,{class:"btn"},{default:t(()=>[x("div",ee,[e(v,{type:"primary",onClick:O},{default:t(()=>a[5]||(a[5]=[y("\u67E5\u8BE2")])),_:1}),e(v,{onClick:S},{default:t(()=>a[6]||(a[6]=[y("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(T,{class:"w-full mt-8 tab-card"},{header:t(()=>[x("div",ae,[e(R,{modelValue:m.value,"onUpdate:modelValue":a[4]||(a[4]=o=>m.value=o),onTabClick:L},{default:t(()=>[e(k,{label:`\u975E\u589E\u8865\u9879\u76EE${r(N)&&r(b).name==="waitMeToHandle"?`\uFF08${r(N)}\uFF09`:""}`,name:"0"},null,8,["label"]),e(k,{label:`\u589E\u8865\u9879\u76EE${r(V)&&r(b).name==="waitMeToHandle"?`\uFF08${r(V)}\uFF09`:""}`,name:"1"},null,8,["label"])]),_:1},8,["modelValue"]),e(v,{type:"primary",plain:"",size:"small",loading:r(B),onClick:$},{default:t(()=>a[7]||(a[7]=[y("\u5BFC\u51FA")])),_:1},8,["loading"])])]),default:t(()=>[e(z,{ref_key:"tableListRef",ref:c,column:Y.column,data:w.value,total:j.value,onGetTableData:u},{action:t(({scope:o})=>[x("a",{onClick:ne=>A(o.row)},Q(r(b).name==="waitMeToHandle"&&(o.row.processStatusName==="\u5BA1\u6838\u4E2D"||o.row.processStatusName==="\u88AB\u9000\u56DE")?"\u5904\u7406":"\u8BE6\u60C5"),9,te)]),_:1},8,["column","data","total"])]),_:1})]),_:1})}}}),re=P(oe,[["__scopeId","data-v-8c705ac6"]]);export{re as default};