|
- var J=Object.defineProperty,K=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var A=(n,o,l)=>o in n?J(n,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[o]=l,N=(n,o)=>{for(var l in o||(o={}))Q.call(o,l)&&A(n,l,o[l]);if(U)for(var l of U(o))W.call(o,l)&&A(n,l,o[l]);return n},k=(n,o)=>K(n,q(o));var M=(n,o,l)=>new Promise((y,_)=>{var f=u=>{try{a(l.next(u))}catch(b){_(b)}},j=u=>{try{a(l.throw(u))}catch(b){_(b)}},a=u=>u.done?y(u.value):Promise.resolve(u.value).then(f,j);a((l=l.apply(n,o)).next())});import{_ as X,d as Z,G as ee,D as $,u as ae,b as te,r as V,o as le,e as r,f as oe,I as ne,l as t,k as e,h as T,m as C,j as p,t as se,aa as de,aH as re}from"./index.11dc4694.js";import{u as ue}from"./useExportExc.3a41eaf3.js";const me={class:"flex"},ie={class:"flex justify-between items-center"},ce=["onClick"],pe=Z({name:"waitMeToHandle"}),_e=Object.assign(pe,{props:{column:{type:Array,default:void 0},state:String,exportData:{type:Array,default:void 0}},emits:["toHandle"],setup(n,{emit:o}){const{notAppendNum:l,appendNum:y}=ee($.countStore)||0,_=n,f=ae(),j=o,a=te({buildOrgName:void 0,projectYear:void 0,projectName:void 0,times:void 0}),u=()=>{v()},b=()=>{a.buildOrgName=void 0,a.projectYear=void 0,a.projectName=void 0,a.times=void 0,Y.value.pageParams.pageNumber=1,Y.value.pageParams.pageSize=10,v()},Y=V(),H=V(0),O=V([]),v=(...s)=>M(this,[...s],function*(m=Y.value.pageParams){var i,c;const x=yield de(_.state,k(N(N({},m),a),{isTemporaryAugment:g.value,createOnMin:(i=a.times)==null?void 0:i[0],createOnMax:(c=a.times)==null?void 0:c[1],times:void 0,projectYear:a.projectYear*1||void 0}));H.value=x.data.total,O.value=x.data.records}),g=V("0"),E=(m,s)=>{g.value=m.props.name,v()},P=m=>{j("toHandle",m)},{exportLoading:R,exportData:z}=ue(),B=()=>{z(()=>{var m,s;return re(_.state,k(N({},a),{createOnMin:((m=a.times)==null?void 0:m[0])||void 0,createOnMax:((s=a.times)==null?void 0:s[1])||void 0,projectYear:a.projectYear*1||void 0,exportOptionList:_.exportData,isTemporaryAugment:g.value}))})};return le(()=>M(this,null,function*(){v(),$.countStore.setTodoNumsStore()})),(m,s)=>{const x=r("el-input"),i=r("el-form-item"),c=r("el-col"),h=r("el-date-picker"),w=r("el-row"),D=r("el-button"),G=r("el-form"),L=r("el-card"),S=r("el-tab-pane"),I=r("el-tabs"),F=r("table-list");return oe(),ne(w,null,{default:t(()=>[e(L,{class:"w-full search"},{default:t(()=>[e(G,{model:a,size:"small","label-suffix":":"},{default:t(()=>[e(w,{gutter:16,class:"mb-16"},{default:t(()=>[e(c,{span:8},{default:t(()=>[e(i,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[e(x,{modelValue:a.projectName,"onUpdate:modelValue":s[0]||(s[0]=d=>a.projectName=d),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:t(()=>[e(i,{label:"\u9879\u76EE\u5355\u4F4D"},{default:t(()=>[e(x,{modelValue:a.buildOrgName,"onUpdate:modelValue":s[1]||(s[1]=d=>a.buildOrgName=d),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:t(()=>[e(i,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:t(()=>[e(h,{modelValue:a.projectYear,"onUpdate:modelValue":s[2]||(s[2]=d=>a.projectYear=d),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(w,{gutter:16},{default:t(()=>[e(c,{span:10},{default:t(()=>[e(i,{label:"\u53D1\u8D77\u65F6\u95F4"},{default:t(()=>[e(h,{modelValue:a.times,"onUpdate:modelValue":s[3]||(s[3]=d=>a.times=d),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:t(()=>[e(i,{class:"btn"},{default:t(()=>[T("div",me,[e(D,{type:"primary",onClick:u},{default:t(()=>[C("\u67E5\u8BE2")]),_:1}),e(D,{onClick:b},{default:t(()=>[C("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(L,{class:"w-full mt-8 tab-card"},{header:t(()=>[T("div",ie,[e(I,{modelValue:g.value,"onUpdate:modelValue":s[4]||(s[4]=d=>g.value=d),onTabClick:E},{default:t(()=>[e(S,{label:`\u975E\u589E\u8865\u9879\u76EE${p(l)&&p(f).name==="waitMeToHandle"?`\uFF08${p(l)}\uFF09`:""}`,name:"0"},null,8,["label"]),e(S,{label:`\u589E\u8865\u9879\u76EE${p(y)&&p(f).name==="waitMeToHandle"?`\uFF08${p(y)}\uFF09`:""}`,name:"1"},null,8,["label"])]),_:1},8,["modelValue"]),e(D,{type:"primary",plain:"",size:"small",loading:p(R),onClick:B},{default:t(()=>[C("\u5BFC\u51FA")]),_:1},8,["loading"])])]),default:t(()=>[e(F,{ref_key:"tableListRef",ref:Y,column:n.column,data:O.value,total:H.value,onGetTableData:v},{action:t(({scope:d})=>[T("a",{onClick:fe=>P(d.row)},se(p(f).name==="waitMeToHandle"&&(d.row.processStatusName==="\u5BA1\u6838\u4E2D"||d.row.processStatusName==="\u88AB\u9000\u56DE")?"\u5904\u7406":"\u8BE6\u60C5"),9,ce)]),_:1},8,["column","data","total"])]),_:1})]),_:1})}}}),xe=X(_e,[["__scopeId","data-v-cb97b621"],["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/toDoCenter/components/todoList.vue"]]);export{xe as default};
|