Files
aiot-platform-ui/apps/web-antd/dist/js/data-Bi_50pNY.js
lzh 35c3d0e06e
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 8s
chore: build and deploy web-antd
2026-03-18 16:18:59 +08:00

2 lines
3.7 KiB
JavaScript

import{O as e}from"./index-CREMuk4M.js";import{dg as E}from"./bootstrap-CW2RsBQq.js";import{aa as u}from"../jse/index-index-Cy8amzIl.js";import{D as d}from"./dict-enum-CaHgMaDZ.js";const A={PENDING:"#8c8c8c",QUEUED:"#faad14",DISPATCHED:"#1677ff",CONFIRMED:"#13c2c2",ARRIVED:"#52c41a",PAUSED:"#fa8c16",RESUMED:"#52c41a",COMPLETED:"#389e0d",CANCELLED:"#ff4d4f"},P={PENDING:"待分配",QUEUED:"排队中",DISPATCHED:"已推送",CONFIRMED:"已确认",ARRIVED:"作业中",PAUSED:"已暂停",RESUMED:"已恢复",COMPLETED:"已完成",CANCELLED:"已取消"},D={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"},C=[{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"]}];function R(){const o=E(),s=u(()=>o.getDictOptions(d.OPS_ORDER_PRIORITY));function i(t){const r=s.value.find(c=>c.value===String(t));if(!r)return{label:`P${t}`,style:{color:"#8c8c8c",backgroundColor:"#f5f5f5"},icon:"lucide:info"};let l={color:"#8c8c8c",backgroundColor:"#f5f5f5"};switch(r.colorType){case"danger":{l={color:"#ff4d4f",backgroundColor:"#fff1f0"};break}case"info":{l={color:"#1677ff",backgroundColor:"#e6f4ff"};break}case"success":{l={color:"#52c41a",backgroundColor:"#f6ffed"};break}case"warning":{l={color:"#fa8c16",backgroundColor:"#fff7e6"};break}}let a="lucide:info";return Number(t)===0?a="solar:bolt-bold":Number(t)===1&&(a="lucide:alert-triangle"),{label:r.label,style:l,icon:a}}return{getPriorityInfo:i}}const b=[{label:"保洁",value:e.OrderType.CLEAN},{label:"维修",value:e.OrderType.REPAIR},{label:"安保",value:e.OrderType.SECURITY}],S={CLEAN:"保洁",REPAIR:"维修",SECURITY:"安保"},I={CLEAN:"#52c41a",REPAIR:"#fa8c16",SECURITY:"#1890ff"};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 N=[{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 L={IOT_BEACON:"蓝牙信标",IOT_TRAFFIC:"客流阈值",TRAFFIC:"客流阈值",PEOPLE_FLOW:"客流阈值",MANUAL:"手动创建",VIDEO_ALARM:"视频告警",ACCESS_ALARM:"门禁告警",PATROL_ALARM:"巡更告警",PANIC_BUTTON:"紧急按钮"};function _(){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{I as O,N as P,A as S,L as T,S as a,D as b,P as c,_ as d,C as e,b as f,R as u};