| 1 |
- var gt=Object.defineProperty,bt=Object.defineProperties;var _t=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Ct=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable;var Y=(f,n,l)=>n in f?gt(f,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[n]=l,P=(f,n)=>{for(var l in n||(n={}))Ct.call(n,l)&&Y(f,l,n[l]);if(Q)for(var l of Q(n))St.call(n,l)&&Y(f,l,n[l]);return f},Z=(f,n)=>bt(f,_t(n));var _=(f,n,l)=>new Promise((T,S)=>{var V=p=>{try{F(l.next(p))}catch(x){S(x)}},I=p=>{try{F(l.throw(p))}catch(x){S(x)}},F=p=>p.done?T(p.value):Promise.resolve(p.value).then(V,I);F((l=l.apply(f,n)).next())});import{aj as Ft,a1 as xt,a as U,aG as B,b7 as J,bo as N,an as W,u as Dt,_ as It}from"./entry/index-Dg-amWg-.js";import{F as Rt,s as Mt,c as Bt}from"./FormDrawerSift-B_YfbLml.js";import{u as X}from"./index-Dh6LTrbe.js";/* empty css */import{S as Nt}from"./Sift-BGIvITFY.js";import{b as zt}from"./index-CEHYDwVF.js";import{a as Lt}from"./download-BmfIk-no.js";import{u as $}from"./index-DH2IT1GU.js";import{u as Tt,_ as Vt}from"./useTable-BifTAIMy.js";import{_ as Et}from"./TableImg.vue_vue_type_style_index_0_lang-eefdMbag.js";import{s as Pt,o as Ut}from"./taskApi-D-Qw73sJ.js";import $t from"./selFormModal-DUHZtp9A.js";import jt from"./formDrawer-D_NQqArp.js";import At from"./actionFormModal-kH2MGo1h.js";import Gt from"./detailFormDrawer-D7na5R7m.js";import{I as Kt}from"./ImportModal-B4zoucTo.js";import{i as qt}from"./personalApi-DTL-8Y7l.js";import{be as Ot,Y as Ht}from"./antd-BfqWtMX3.js";import{d as Qt,f as k,r as tt,o as Yt,w as Zt,n as Jt,Z as r,_ as c,$ as y,F as z,a7 as Wt,m as et,a4 as j,a5 as w,G as L,a0 as v,u as a,k as u,a8 as h,ad as C}from"./vue-DM5HGU8Z.js";import"./BasicForm.vue_vue_type_script_setup_true_lang-D6F3SFk-.js";import"./FormItem.vue_vue_type_script_lang-7Mk8u-Db.js";import"./helper-BDwqWZ4z.js";import"./index-CQfiYc3b.js";import"./index-DuT_OUwl.js";import"./uuid-BUBnBT7J.js";import"./useSortable-BJrzJ845.js";import"./index-C6zGX2mT.js";import"./IconPicker.vue_vue_type_script_setup_true_lang-CI5i7aUL.js";import"./copyTextToClipboard-B8vsl9wq.js";import"./index-c9dLqB0f.js";import"./base64Conver-DEMZeTZS.js";import"./index-EDMkcanw.js";import"./onMountedOrActivated-Ckq_czNf.js";import"./cateApi-CsYZ2td9.js";import"./resourceApi-pJGnC94b.js";import"./common-B6SHrurw.js";import"./imageEnum-BRgYKvjO.js";import"./sysOrgApi-DkXP8rT9.js";import"./BasicForm.vue_vue_type_style_index_0_lang-CXlQaC-V.js";import"./useForm-BfVULUYi.js";import"./manageApi-Cks1N-kJ.js";import"./useWindowSizeFn-Bnt_z7WM.js";import"./sortable.esm-DYEDn-UA.js";import"./componentMap-DkhnAVRE.js";import"./fieldApi-gg5GKgPP.js";import"./handlingInfo-oBbvZSFI.js";import"./nothingInfo-Ba5Glk9E.js";import"./data-Bh0DTS2S.js";import"./processInfo.vue_vue_type_script_setup_true_lang-BhfPbse4.js";import"./evaluationInfo.vue_vue_type_script_setup_true_lang-CpRg4lfj.js";import"./index-cbr2Kfp6.js";import"./useDescription-DAyMRNiH.js";import"./taskInfo-CmvrkGyH.js";const Xt={class:"h-main"},te={class:"flex justify-between"},ee={class:"text-2xl"},oe={class:"flex items-center"},se={key:0,class:"flex mb-2"},ae={class:"mt-4"},ie={key:1,class:"flex"},le=["color"],re={class:"h-7 lh-7 min-w-12"},ne={key:3,class:"flex"},ue={key:2,class:"round-check",style:{borderColor:"#3366FF",color:"#3366FF"}},ce={key:0,style:{color:"#01092a"}},pe={key:1,style:{color:"#ff552f"}},fe=Qt({__name:"listCard",setup(f){const n=Ft(),l=k({}),T=xt(),{createMessage:S}=Dt(),[V,{openModal:I}]=X(),[F,{openModal:p}]=X(),[x,{openDrawer:A}]=$(),[ot,{openDrawer:st}]=$(),[at,{openDrawer:it}]=$(),[lt,{reload:g,getSelectRowKeys:G}]=Tt({api:Ut,rowKey:"id",columns:Bt,showIndexColumn:!1,pagination:!0,bordered:!0,clickToRowSelect:!1,rowSelection:{type:"checkbox"},actionColumn:{width:220,title:"操作",align:"center",dataIndex:"action"},beforeFetch:nt,showFooter:!0}),rt=k([{key:0,label:"全部",auth:["ssc:task:allList"]},{key:1,label:"待办",auth:["ssc:task:todoList"]},{key:2,label:"已办",auth:["ssc:task:doneList"]},{key:3,label:"抢单池",auth:["ssc:task:grabList"]},{key:4,label:"督办",auth:["ssc:task:supervisingList"]}]),K=k(0),m=k([]),R=k({}),M=k(!1),E=k(!1),q=tt({type:0}),O=k(!1),D=tt({}),H=k([{key:"taskStatus",dictCode:"biz_task_status"}]);Yt(()=>_(this,null,function*(){const o=yield zt(H.value.map(t=>t.dictCode));for(const t in o){const i=H.value.filter(s=>s.dictCode==t)[0];D[i.key]=o[t]}l.value=n.getUserInfo}));function nt(o){return P(Z(P({},o),{orders:[],type:q.type}),R.value)}function ut(){M.value=!0,E.value=!1}function ct(){M.value=!0,E.value=!0}function pt(o){K.value=o,q.type=o,g()}function ft(o){M.value=!1;const t=o.secondCateInfo;o.isImport?I(!0,{title:t.name+"导入",importUrl:(i,s)=>W.uploadFile({url:T.apiUrl+"/"+t.importUrl,onUploadProgress:s},i),exportUrl:()=>W.get({url:t.exportUrl})}):A(!0,{secondCateId:t.id,title:t.name+"新增"})}function mt(o){it(!0,{record:o})}function b(o,t){return _(this,null,function*(){switch(t){case"distributed":p(!0,{type:"distributed",record:o});break;case"transfer":p(!0,{type:"transfer",record:o});break;case"grab":p(!0,{type:"grab",record:o});break;case"evaluation":p(!0,{type:"evaluation",record:o});break;case"startCheck":yield Pt(o.id),S.success("开启稽核成功"),g();break;case"reviewFlow":p(!0,{type:"reviewFlow",record:o});break}})}function dt(){A(!1),g()}function ht(){const o=[];m.value.forEach(t=>{const i={field:t.field,value:t.value};if(t.field=="orgId"){const s={field:"orgName",value:t.showVal};o.push(s)}if(t.field=="secondCateld"){const s={field:"secondCateName",value:t.showVal};o.push(s)}o.push(i)}),st(!0,{record:o})}function kt(o){return _(this,null,function*(){m.value=[];for(const t of Object.keys(o))o[t]&&Mt.forEach(i=>{i.field==t&&i.ifShow&&m.value.push({field:i.field,label:i.label,value:o[t],showVal:i.field==="status"?N(D.taskStatus,o[t],"label"):i.field==="overdue"?o[t]==="1"?"逾期":"未逾期":i.field==="orgId"?o.orgName:i.field==="secondCateId"?o.secondCateName:o[t],type:i.type})});m.value.forEach(t=>{R.value[t.field]=t.value}),yield g()})}function yt(o){return _(this,null,function*(){R.value={},o.type=="clear"&&(m.value=[]),o.type=="close"&&(m.value=m.value.filter(t=>{var i;return t.field!=((i=o.item)==null?void 0:i.field)})),m.value.forEach(t=>{R.value[t.field]=t.value}),yield g()})}function vt(){I(!1)}Zt(()=>G(),o=>{o.length>0?O.value=!0:O.value=!1},{immediate:!0});function wt(){return _(this,null,function*(){const o=G(),t=yield qt(o);Lt(t.base64,t.fileName,String(t.type).toLowerCase()),S.success("导出成功")})}return(o,t)=>{const i=Jt("auth");return r(),c("div",Xt,[y("div",te,[y("div",ee,[(r(!0),c(z,null,Wt(rt.value,s=>et((r(),j(a(Ot),{bordered:!0,key:s.key,checked:K.value===s.key,onChange:e=>pt(s.key)},{default:w(()=>[L(v(s.label),1)]),_:2},1032,["checked","onChange"])),[[i,s.auth]])),128))]),y("div",oe,[u(a(B),{type:"default",border:!1,size:"large",onClick:ct},{icon:w(()=>[u(U,{icon:"icon-sys-import_default|iconfont",size:20,color:"#01092A"})]),_:1}),et((r(),j(a(B),{type:"default",border:!1,size:"large",onClick:ut,class:"ml-2 mr-2 btn-icon"},{icon:w(()=>[u(U,{icon:"icon-create|iconfont",size:20,color:"#01092A"})]),_:1})),[[i,["ssc:task:add"]]]),u(a(Ht),{count:m.value.length},{default:w(()=>[u(a(B),{size:"large",onClick:t[0]||(t[0]=()=>ht())},{icon:w(()=>[u(U,{icon:"icon-filter|iconfont",size:18,color:"#3D4155"})]),_:1})]),_:1},8,["count"])])]),m.value.length?(r(),c("div",se,[u(a(Nt),{data:m.value,onClose:yt},null,8,["data"])])):h("",!0),y("div",ae,[u(a(Vt),{onRegister:a(lt),onRowClick:mt},{bodyCell:w(({column:s,record:e})=>[s.key==="color"?(r(),c("div",{key:0,style:C({backgroundColor:e.color,width:"20px",height:"20px"})},null,4)):h("",!0),s.key==="taskName"?(r(),c("div",ie,[y("div",{color:e.firstCateFontColor,style:C({color:e.firstCateFontColor,background:e.firstCateBgColor}),class:"min-w-12 mr-6 text-center rounded-md h-7 lh-7 pl-2 pr-2"},v(e.firstCateName),13,le),y("div",re,v(e.peopleName)+"-"+v(e.secondCateName),1)])):h("",!0),s.key==="createTime"?(r(),c(z,{key:2},[L(v(a(J)(e.createTime)),1)],64)):h("",!0),s.key==="status"?(r(),c("div",ne,[y("div",{style:C({backgroundColor:a(N)(D.taskStatus,e.status,"prefixColor"),color:"red",margin:"9px 8px 0 0",width:"6px",height:"6px",borderRadius:"3px"})},null,4),y("div",{style:C({color:a(N)(D.taskStatus,e.status,"fontColor")})},v(a(N)(D.taskStatus,e.status,"label")),5),e.checkColor?(r(),c("div",{key:0,class:"round-check",style:C({borderColor:e.checkColor,color:e.checkColor})},"稽",4)):h("",!0),e.reviewColor?(r(),c("div",{key:1,class:"round-check",style:C({borderColor:e.reviewColor,color:e.reviewColor})},"审",4)):h("",!0),e.reviewFlowStatus!="0"?(r(),c("div",ue,v(e.reviewFlowStatus=="1"?"抢":"转"),1)):h("",!0)])):h("",!0),s.key==="lateTime"?(r(),c(z,{key:4},[e.overdue===0?(r(),c("span",ce,"未逾期")):(r(),c("span",pe,v(e.lateTime)+"天",1))],64)):h("",!0),s.key==="deadLine"?(r(),c(z,{key:5},[L(v(a(J)(e.deadLine)),1)],64)):h("",!0),s.key==="action"?(r(),j(a(Et),{key:6,actions:[{auth:"ssc:task:distributed",icon:"icon-paidan|iconfont",ifShow:(e.reviewFlowStatus==null||e.reviewFlowStatus=="0")&&(e.status==="task_status_0"||e.status==="task_status_2"),tooltip:"派单",label:"派单",type:"primary",ghost:!0,onClick:d=>{d.stopPropagation(),b(e,"distributed")}},{auth:"ssc:task:distributed",icon:"icon-paiji|iconfont",ifShow:(e.status==="task_status_3"||e.status==="task_status_4")&&!e.check,tooltip:"派稽",label:"派稽",type:"primary",ghost:!0,onClick:d=>{d.stopPropagation()},popConfirm:{title:"是否开启稽核",placement:"left",confirm:b.bind(null,e,"startCheck")}},{ifShow:e.status==="task_status_1"&&e.processBy===l.value.userId,tooltip:"转单",label:"转单",icon:"icon-zhuandan|iconfont",type:"primary",ghost:!0,onClick:d=>{d.stopPropagation(),b(e,"transfer")}},{auth:"ssc:task:grab",ifShow:(e.reviewFlowStatus==null||e.reviewFlowStatus=="0")&&e.status==="task_status_2",tooltip:"抢单",label:"抢单",icon:"icon-qiangdan|iconfont",type:"primary",ghost:!0,onClick:d=>{d.stopPropagation(),b(e,"grab")}},{ifShow:e.reviewFlowStatus!=null&&e.reviewFlowStatus!="0"&&e.reviewFlowBy===l.value.userId,tooltip:"审核",label:"审核",icon:"icon-qiangdan|iconfont",type:"primary",ghost:!0,onClick:d=>{d.stopPropagation(),b(e,"reviewFlow")}},{ifShow:e.status==="task_status_3",tooltip:"评价",label:"评价",type:"primary",icon:"icon-pingjia|iconfont",ghost:!0,onClick:d=>{d.stopPropagation(),b(e,"evaluation")}}]},null,8,["actions"])):h("",!0)]),tableFooter:w(()=>[y("div",null,[u(a(B),{type:"primary",ghost:"",class:"btn btn-primary btn-sm",onClick:wt},{default:w(()=>t[3]||(t[3]=[L(" 导出 ")])),_:1})])]),_:1},8,["onRegister"])]),u($t,{open:M.value,isImport:E.value,onSuccess:ft},null,8,["open","isImport"]),u(a(Kt),{onRegister:a(V),onSuccess:vt},null,8,["onRegister"]),u(jt,{onRegister:a(x),onSuccess:dt},null,8,["onRegister"]),u(Gt,{onRegister:a(at),onSuccess:t[1]||(t[1]=s=>a(g)())},null,8,["onRegister"]),u(At,{onRegister:a(F),onSuccess:t[2]||(t[2]=s=>a(g)())},null,8,["onRegister"]),u(Rt,{onRegister:a(ot),onSuccess:kt},null,8,["onRegister"])])}}}),mo=It(fe,[["__scopeId","data-v-a8634f8c"]]);export{mo as default};
|