## 工單分配
### 列表_搜索
~~~[api]
get:admin/user/?act=list
int:page=1#第幾頁
int:limit=10#一頁顯示多少內容
content#搜索內容
<<<
success
{
"code": 0,
"msg": "獲取成功!",
"data": [
{
"id": 1,
"content": "我是內容",
"type": "我是分類",
"time": "2024-02-06 04:55:53"
}
],
"count": 1
}
<<<
error
~~~
### 分配員工
#### 列表_搜索
~~~
type 0空閑 1有單 2請假
~~~
~~~[api]
get:admin/staff/?act=staff_list
int:page=1#第幾頁
int:limit=10#一頁顯示多少內容
content#搜索內容
<<<
success
{
"code": 0,
"msg": "獲取成功!",
"data": [
{
"id": 1,
"content": "我是內容",
"type": "我是分類",
"time": "2024-02-06 04:55:53"
}
],
"count": 1
}
<<<
error
~~~
#### 員工當日工單
~~~[api]
get:admin/work/?act=count
*staff_id#員工ID
*type#工單類型
<<<
success
{
"code": 0,
"msg": "獲取成功!",
"count": 10
}
<<<
error
~~~
#### 分配
~~~
staff_id 接單員工ID,用|隔開
type 1質檢工單 2服務工單
~~~
~~~[api]
get:admin/work/?act=allocation
*user_id#客戶ID
*staff_id#接單員工ID
*type#工單類型
<<<
success
{
"code": 0,
"msg": "分配成功!"
}
<<<
error
~~~