Files
aiot-platform-ui/apps/web-antd/dist/js/data-2467LO9F.js
lzh c6e51a215f
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 10s
chore: build and deploy web-antd
2026-03-25 16:05:53 +08:00

2 lines
4.3 KiB
JavaScript

var T=Object.defineProperty;var i=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var u=(o,t,l)=>t in o?T(o,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[t]=l,n=(o,t)=>{for(var l in t||(t={}))O.call(t,l)&&u(o,l,t[l]);if(i)for(var l of i(t))C.call(t,l)&&u(o,l,t[l]);return o};import{O as e}from"./index-Cznb2uHz.js";import{dg as P}from"./bootstrap-Cs_ukuUC.js";import{aa as b}from"../jse/index-index-BQSou8bA.js";import{D as R}from"./dict-enum-CaHgMaDZ.js";const f={PENDING:{bg:"#FFF3E8",text:"#C2540A"},QUEUED:{bg:"#F0EDFF",text:"#6D28D9"},DISPATCHED:{bg:"#E0F2FE",text:"#0284C7"},CONFIRMED:{bg:"#EEF0FF",text:"#3730A3"},ARRIVED:{bg:"#E5F5EF",text:"#0D9488"},IN_PROGRESS:{bg:"#E8F0FE",text:"#1558C0"},PAUSED:{bg:"#FFF7E0",text:"#92400E"},RESUMED:{bg:"#E5F6FB",text:"#0891B2"},COMPLETED:{bg:"#E8FAF2",text:"#0A7A55"},CANCELLED:{bg:"#F0EDE8",text:"#6B5E52"}},U={PENDING:"待分配",QUEUED:"排队中",DISPATCHED:"已推送",CONFIRMED:"已确认",ARRIVED:"作业中",PAUSED:"已暂停",RESUMED:"已恢复",COMPLETED:"已完成",CANCELLED:"已取消"},M={PENDING:"solar:inbox-line-bold-duotone",QUEUED:"solar:clock-circle-bold-duotone",DISPATCHED:"solar:transfer-horizontal-bold-duotone",CONFIRMED:"solar:check-circle-bold-duotone",ARRIVED:"solar:play-circle-bold-duotone",PAUSED:"solar:pause-circle-bold-duotone",RESUMED:"solar:play-circle-bold-duotone",COMPLETED:"solar:check-read-bold-duotone",CANCELLED:"solar:close-circle-bold-duotone"},v=[{key:"ALL",label:"全部",statuses:void 0},{key:"PENDING",label:"待处理",statuses:["PENDING"]},{key:"IN_PROGRESS",label:"进行中",statuses:["DISPATCHED","CONFIRMED","ARRIVED","QUEUED"]},{key:"COMPLETED",label:"已完成",statuses:["COMPLETED"]},{key:"CANCELLED",label:"已取消",statuses:["CANCELLED"]}],S={0:{style:{backgroundColor:"#FFF0F0",color:"#C01D1D"},icon:"solar:bolt-bold"},1:{style:{backgroundColor:"#FFF4E6",color:"#C2410C"},icon:"lucide:alert-triangle"},2:{style:{backgroundColor:"#F0EDE8",color:"#6B5E52"},icon:"lucide:info"},3:{style:{backgroundColor:"#E8FAF2",color:"#0A7A55"},icon:"lucide:info"}},F={style:{backgroundColor:"#F0EDE8",color:"#6B5E52"},icon:"lucide:info"};function y(){const o=P(),t=b(()=>o.getDictOptions(R.OPS_ORDER_PRIORITY));function l(r){var a,s;const A=Number(r),E=t.value.find(D=>D.value===String(r)),c=(a=E==null?void 0:E.label)!=null?a:`P${r}`,d=(s=S[A])!=null?s:F;return n({label:c},d)}return{getPriorityInfo:l}}const p=[{label:"保洁",value:e.OrderType.CLEAN},{label:"维修",value:e.OrderType.REPAIR},{label:"安保",value:e.OrderType.SECURITY}],m={CLEAN:"保洁",REPAIR:"维修",SECURITY:"安保"},h={CLEAN:{bg:"#E5FAF2",text:"#047857"},SECURITY:{bg:"#EEF0FF",text:"#3730A3"},FACILITIES:{bg:"#FFF5E0",text:"#92400E"},SERVICE:{bg:"#E0F2FE",text:"#0369A1"}};e.OrderStatus.PENDING,e.OrderStatus.QUEUED,e.OrderStatus.DISPATCHED,e.OrderStatus.CONFIRMED,e.OrderStatus.ARRIVED,e.OrderStatus.PAUSED,e.OrderStatus.COMPLETED,e.OrderStatus.CANCELLED;const x=[{label:"P0 (紧急)",value:e.Priority.P0},{label:"P1 (重要)",value:e.Priority.P1},{label:"P2 (普通)",value:e.Priority.P2}];e.TriggerSource.IOT_BEACON,e.TriggerSource.PEOPLE_FLOW,e.TriggerSource.MANUAL,e.TriggerSource.VIDEO_ALARM,e.TriggerSource.ACCESS_ALARM,e.TriggerSource.PATROL_ALARM,e.TriggerSource.PANIC_BUTTON;const k={IOT_BEACON:"蓝牙信标",IOT_TRAFFIC:"客流阈值",TRAFFIC:"客流阈值",PEOPLE_FLOW:"客流阈值",MANUAL:"手动创建",VIDEO_ALARM:"视频告警",ACCESS_ALARM:"门禁告警",PATROL_ALARM:"巡更告警",PANIC_BUTTON:"紧急按钮"};function w(){return[{type:"seq",width:50,title:"序号"},{field:"orderCode",title:"工单编号",minWidth:180,showOverflow:!0},{field:"title",title:"工单标题",minWidth:180,showOverflow:!0},{field:"orderType",title:"类型",width:80,align:"center",slots:{default:"orderType"}},{field:"status",title:"状态",width:90,align:"center",slots:{default:"status"}},{field:"priority",title:"优先级",width:80,align:"center",slots:{default:"priority"}},{field:"location",title:"位置",minWidth:150,showOverflow:!0},{field:"assigneeName",title:"执行人",width:90,align:"center",slots:{default:"assignee"}},{field:"createTime",title:"创建时间",width:160,formatter:"formatDateTime"},{title:"操作",width:200,fixed:"right",align:"center",slots:{default:"actions"}}]}export{h as O,x as P,f as S,k as T,m as a,M as b,U as c,w as d,v as e,p as f,y as u};