POST /ext/api/serial/:sn/transfer 做状态流转
| 人员 | 出勤天数 | 签到次数 | 签退次数 | 缺签退 |
|---|---|---|---|---|
| {{ a.user_name }} | {{ a.work_days }} | {{ a.check_ins }} | {{ a.check_outs }} | {{ a.missing_out }} |
| 日期 | 人员 | 类型 | 时间 | 位置 | 精度 | 校验 |
|---|---|---|---|---|---|---|
| {{ r.punch_date }} | {{ r.user_name }} | {{ r.punch_type==='check_in'?'签到':'签退' }} | {{ r.punch_time }} | {{ r.addr||'—' }} | {{ r.accuracy?Math.round(r.accuracy)+'m':'—' }} | {{ r.location_verified?'范围内':'范围外' }} |
| 组名 | 点位 | 成员数 | 状态 |
|---|---|---|---|
| {{ g.name }} {{ g.description||'' }} |
{{ g.points }} | {{ g.members?g.members.length:0 }} | {{ g.is_active?'启用':'停用' }} |
| 点位 | 客户 | 检查项 | 需照片 |
|---|---|---|---|
| {{ p.name }} {{ p.addr||'' }} |
{{ p.customer_name||'—' }} | {{ p.items?p.items.length:0 }} | {{ p.photos_required?p.photo_min_count+'张':'否' }} |
| 单号 | 标题 | 类型 | 发现人 | 发现时间 | 状态 | 操作 |
|---|---|---|---|---|---|---|
| {{ a.order_no }} | {{ a.title }} {{ a.description }} |
{{ a.abnormal_type }} | {{ a.found_by_name }} | {{ (a.created_at||'').slice(5,16) }} | {{ {pending:'待处理',assigned:'处理中',done:'已处理',closed:'已关闭'}[a.status] }} |
| 单号 | 点位 | 巡检人 | 日期 | 结果 | 距离 | 照片 |
|---|---|---|---|---|---|---|
| {{ r.order_no }} | {{ r.point_name }} | {{ r.user_name }} | {{ r.check_date }} | {{ r.result==='abnormal'?'异常':'正常' }} | {{ r.distance_m!==null?r.distance_m+'m':'—' }} 超出 | {{ (r.photos||[]).length }} |
| 序列号 | 设备 | 品牌 | 客户 | 状态 | 购买 | 销售 | 保修至 |
|---|---|---|---|---|---|---|---|
| {{ s.serial_no }} | {{ s.device_name||'' }} {{ s.device_model }} | {{ s.brand||'—' }} | {{ s.customer_name||'—' }} {{ s.customer_phone||'' }} |
{{ {in_stock:'在库',sold:'已售出',in_repair:'维修中',returned:'已退回',scrapped:'已报废'}[s.status] }} | {{ s.purchase_date||'—' }} | {{ s.sale_date||'—' }} | {{ s.warranty_until||'—' }} |
POST /api/repair-ext/serial/:sn/transfer { "to_status":"sold", "sale_price":4800, "order_no":"XS..." }to_status:"in_repair",修好返还调 to_status:"returned"。device_serial_logs,可在设备详情里查完整履历。