2 lines
3.1 KiB
JavaScript
2 lines
3.1 KiB
JavaScript
import{O as e}from"./index-DbbJOeuC.js";const a={PENDING:"#8c8c8c",QUEUED:"#faad14",DISPATCHED:"#1677ff",CONFIRMED:"#13c2c2",ARRIVED:"#52c41a",PAUSED:"#fa8c16",RESUMED:"#52c41a",COMPLETED:"#389e0d",CANCELLED:"#ff4d4f"},t={PENDING:"待分配",QUEUED:"排队中",DISPATCHED:"已推送",CONFIRMED:"已确认",ARRIVED:"作业中",PAUSED:"已暂停",RESUMED:"已恢复",COMPLETED:"已完成",CANCELLED:"已取消"},E={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"},o=[{key:"ALL",label:"全部",statuses:void 0},{key:"PENDING",label:"待处理",statuses:["PENDING"]},{key:"IN_PROGRESS",label:"进行中",statuses:["DISPATCHED","CONFIRMED","ARRIVED","QUEUED"]},{key:"PAUSED",label:"已暂停",statuses:["PAUSED"]},{key:"COMPLETED",label:"已完成",statuses:["COMPLETED"]},{key:"CANCELLED",label:"已取消",statuses:["CANCELLED"]}],r={0:{label:"P0",color:"#F44336",bgColor:"#FFEBEE",icon:"lucide:zap",animation:!0},1:{label:"P1",color:"#FF9800",bgColor:"#FFF3E0",icon:"lucide:alert-triangle",animation:!1},2:{label:"P2",color:"#9E9E9E",bgColor:"#FAFAFA",icon:"lucide:info",animation:!1}},s=[{label:"保洁",value:e.OrderType.CLEAN},{label:"维修",value:e.OrderType.REPAIR},{label:"安保",value:e.OrderType.SECURITY}],i={CLEAN:"保洁",REPAIR:"维修",SECURITY:"安保"},d={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 u=[{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;const n={IOT_BEACON:"蓝牙信标",IOT_TRAFFIC:"客流阈值",TRAFFIC:"客流阈值",PEOPLE_FLOW:"客流阈值",MANUAL:"手动创建"};e.CleaningType.ROUTINE,e.CleaningType.DEEP,e.CleaningType.EMERGENCY;const P={ROUTINE:"日常",DEEP:"深度",EMERGENCY:"应急"};function T(){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{P as C,d as O,r as P,a as S,n as T,E as a,t as b,i as c,o as d,s as e,u as f,T as u};
|