Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
4.3KB

  1. import{_ as R,d as P,G,D,z as I,b as F,r as _,o as q,c as n,e as J,I as K,i as a,h as e,g as x,j as y,u as r,t as Q,a8 as W,aB as X}from"./index.d340e473.js";import{u as Z}from"./useExportExc.c3c2ae13.js";const ee={class:"flex"},ae={class:"flex justify-between items-center"},te=["onClick"],le=P({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:C}){const{notAppendNum:N,appendNum:V}=G(D.countStore)||0,f=Y,b=I(),H=C,t=F({buildOrgName:void 0,projectYear:void 0,projectName:void 0,times:void 0}),O=()=>{u()},S=()=>{t.buildOrgName=void 0,t.projectYear=void 0,t.projectName=void 0,t.times=void 0,p.value.pageParams.pageNumber=1,p.value.pageParams.pageSize=10,u()},p=_(),j=_(0),w=_([]),u=async(s=p.value.pageParams)=>{var i,d;const l=await W(f.state,{...s,...t,isTemporaryAugment:m.value,createOnMin:(i=t.times)==null?void 0:i[0],createOnMax:(d=t.times)==null?void 0:d[1],times:void 0,projectYear:t.projectYear*1||void 0});j.value=l.data.total,w.value=l.data.records},m=_("0"),h=(s,l)=>{m.value=s.props.name,u()},L=s=>{H("toHandle",s)},{exportLoading:A,exportData:U}=Z(),$=()=>{U(()=>{var s,l;return X(f.state,{...t,createOnMin:((s=t.times)==null?void 0:s[0])||void 0,createOnMax:((l=t.times)==null?void 0:l[1])||void 0,projectYear:t.projectYear*1||void 0,exportOptionList:f.exportData,isTemporaryAugment:m.value})})};return q(async()=>{u(),D.countStore.setTodoNumsStore()}),(s,l)=>{const i=n("el-input"),d=n("el-form-item"),c=n("el-col"),M=n("el-date-picker"),g=n("el-row"),v=n("el-button"),z=n("el-form"),T=n("el-card"),k=n("el-tab-pane"),B=n("el-tabs"),E=n("table-list");return J(),K(g,null,{default:a(()=>[e(T,{class:"w-full search"},{default:a(()=>[e(z,{model:t,size:"small","label-suffix":":"},{default:a(()=>[e(g,{gutter:16,class:"mb-16"},{default:a(()=>[e(c,{span:8},{default:a(()=>[e(d,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(i,{modelValue:t.projectName,"onUpdate:modelValue":l[0]||(l[0]=o=>t.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:a(()=>[e(d,{label:"\u9879\u76EE\u5355\u4F4D"},{default:a(()=>[e(i,{modelValue:t.buildOrgName,"onUpdate:modelValue":l[1]||(l[1]=o=>t.buildOrgName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:a(()=>[e(d,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:a(()=>[e(M,{modelValue:t.projectYear,"onUpdate:modelValue":l[2]||(l[2]=o=>t.projectYear=o),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(g,{gutter:16},{default:a(()=>[e(c,{span:10},{default:a(()=>[e(d,{label:"\u53D1\u8D77\u65F6\u95F4"},{default:a(()=>[e(M,{modelValue:t.times,"onUpdate:modelValue":l[3]||(l[3]=o=>t.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(c,{span:14},{default:a(()=>[e(d,{class:"btn"},{default:a(()=>[x("div",ee,[e(v,{type:"primary",onClick:O},{default:a(()=>[y("\u67E5\u8BE2")]),_:1}),e(v,{onClick:S},{default:a(()=>[y("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(T,{class:"w-full mt-8 tab-card"},{header:a(()=>[x("div",ae,[e(B,{modelValue:m.value,"onUpdate:modelValue":l[4]||(l[4]=o=>m.value=o),onTabClick:h},{default:a(()=>[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(A),onClick:$},{default:a(()=>[y("\u5BFC\u51FA")]),_:1},8,["loading"])])]),default:a(()=>[e(E,{ref_key:"tableListRef",ref:p,column:Y.column,data:w.value,total:j.value,onGetTableData:u},{action:a(({scope:o})=>[x("a",{onClick:ne=>L(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=R(oe,[["__scopeId","data-v-8c705ac6"]]);export{re as default};