[TOC=2]
## 枚舉變量
>[info] 訂單相關的枚舉變量說明(前端類似下拉框)
> 需要用到變量的時候,請自行比對。
### 勞務費計算方式參數如下:
| 可選值 | 說明 |
| --- | --- |
| total | 總價包干 |
| per_unit | 按件計算 |
| per_day | 按天計算 |
| null | 電話議價 |
### 訂單類型參數如下:
| 可選值 | 說明 |
| --- | --- |
| bid | 招標 |
| phone_reservation | 電話預約 |
| online_reservation | 在線預約 |
### 訂單狀態說明:
| 可選值 | 說明 |
| --- | --- |
| pending | 待支付,如果雇主需要付費才能招工,會進入此狀態 |
| processing | 處理中,如果是招標單,表示招標中;如果是預約單,表示等待工人確認 |
| succeed | 成功,已選擇招標候選,或預約已被確認 |
| finished | 已完成,或者工人沒來都算作完成狀態 |
| cancelled | 已取消,超時未成功招工或預約被拒絕 |
| timeout | 招標或預約未及時處理,雇主的單沒有選人,民工沒有及時同意預約,都算超時 |
| refused | 預約被拒絕 |
### 訂單額外狀態說明:
| 可選值 | 說明 |
| --- | --- |
| normal | 正常 |
| absence | 招工成功但工人沒來 |
| labour_cancelled | 工人取消 |
### 取消招工原因說明:
| 可選值 | 說明 |
| --- | --- |
| just_trying | 只是試一下 |
| no_need | 不需要了 |
| dislike_labour | 不想找這個工人 |
| better_platform | 從其它渠道找到工人了 |
| others | 其它原因 |
| time | 時間不合適 |
| price | 價格不合適 |
| cant_contact | 沒有聯系上 |
| null | 雇主主動取消 |
### 支付方式說明:
>[info] 后臺暫時只設置微信支付,前端僅能微信支付。
| 可選值 | 說明 |
| --- | --- |
| wechat | 微信支付 |
## 訂單列表
~~~[api]
get:/order/list
int:current_page=1#當前頁
int:page_number=10#頁碼
<<<
success
{
"code": 0,
"data": {
"order": [
{
"id": 1,
"title": "標題",//標題
"description": "描述",//描述
"employer_name": "雇主名",//雇主名
"employer_phone": "13333333333",//雇主手機號
"employer_id": 2,//雇主id
"labour_id": 2,//民工id
"job_category_name": "工種名稱",//工種名
"job_name": "工作/蔬菜名",//蔬菜名
"specifications": [//招工詳細信息
{
}
],
"address": [//詳細上工地址
{
"province": "四川省"
}
],
"reservation_time": "2017-01-01 01:01:01",//上工時間
"labour_number": 3,//招工人數
"charging_method": "total",//計費方式 詳情見枚舉變量
"cost": 1000,// 費用 不同的計費方式 價錢不同
"with_shuttle": true,//是否接送
"memo": "",//備注信息
"type": "bid",//訂單類型 詳情見枚舉變量
"status": "finished",//訂單狀態 詳情見枚舉變量
"sub_status": "normal",//訂單子狀態 詳情見枚舉變量
"cancel_reason": null,// 取消原因 詳情見枚舉變量
"employer_rated": true,//雇主是否評價 true 已評價 false 未評價
"labour_rated": true,//民工是否評價 true 已評價 false 未評價
"extra": [],// 訂單其他屬性
"publish_time": "2018-02-06 14:41:03",//發布時間
"finish_time": null,// 開始時間
"create_time": "2018-02-06 14:39:05",//創建時間
"rush_list": [
{
"id": 36,
"user_id": 2,
"order_id": 61,
"type": "phone_reservation",
"status": "refused",
"cancel_reason": null,
"create_time": "2018-04-27 18:10:34",
"name": "哈哈",
"phone": "15181474781"
}
]
}
],
"current_page": 1,//當前頁
"page_number": 10,//頁碼
"count": 1//總條數
}
}
~~~
## 雇主的訂單
~~~[api]
get:/order/employerOrder
*int:id=0#雇主id
int:current_page=1#當前頁
int:page_number=10#頁碼
<<<
success
{
"code": 0,
"data": {
"order": [
{
"id": 1,
"title": "標題",//標題
"description": "描述",//描述
"employer_name": "雇主名",//雇主名
"employer_phone": "13333333333",//雇主手機號
"employer_id": 2,//雇主id
"labour_id": 2,//民工id
"job_category_name": "工種名稱",//工種名
"job_name": "工作/蔬菜名",//蔬菜名
"specifications": [//招工詳細信息
{
}
],
"address": [//詳細上工地址
{
"province": "四川省"
}
],
"reservation_time": "2017-01-01 01:01:01",//上工時間
"labour_number": 3,//招工人數
"charging_method": "total",//計費方式 詳情見枚舉變量
"cost": 1000,// 費用 不同的計費方式 價錢不同
"with_shuttle": true,//是否接送
"memo": "",//備注信息
"type": "bid",//訂單類型 詳情見枚舉變量
"status": "finished",//訂單狀態 詳情見枚舉變量
"sub_status": "normal",//訂單子狀態 詳情見枚舉變量
"cancel_reason": null,// 取消原因 詳情見枚舉變量
"employer_rated": true,//雇主是否評價 true 已評價 false 未評價
"labour_rated": true,//民工是否評價 true 已評價 false 未評價
"extra": [],// 訂單其他屬性
"publish_time": "2018-02-06 14:41:03",//發布時間
"finish_time": null,// 開始時間
"create_time": "2018-02-06 14:39:05",//創建時間
}
],
"current_page": 1,//當前頁
"page_number": 10,//頁碼
"count": 1//總條數
}
}
~~~
## 民工的訂單
~~~[api]
get:/order/labourOrder
*int:id=0#民工訂單
int:current_page=1#當前頁
int:page_number=10#頁碼
<<<
success
{
"code": 0,
"data": {
"order": [
{
"id": 18,
"user_id": 2,
"order_id": 21,
"type": "phone_reservation",
"status": "succeed",
"cancel_reason": null,
"create_time": "2018-03-23 20:25:47",
"order_info": {
"id": 21,
"title": "拾掇蔬菜大西紅柿",
"description": "",
"employer_name": "大23",
"employer_phone": "13551344444",
"job_category_name": "拾掇蔬菜",
"job_name": "大西紅柿",
"specifications": [
{
"工作量": "456棵",
"棵子高度": "棵子高度超過鋼絲",
"服務內容(可多選)": "吊嘟嚕(中上棚)、打頭掐須子"
}
],
"address": [
{
"id": 3,
"area": "古城區域",
"city": "濰坊市",
"name": "大23",
"town": "古城街道",
"phone": "13551344444",
"area_id": 135,
"user_id": 6,
"village": "安家村",
"district": "壽光市",
"province": "山東省",
"is_default": false
}
],
"reservation_time": "2018-03-23 20:25:33",
"labour_number": 1,
"charging_method": null,
"cost": null,
"with_shuttle": true,
"memo": null,
"type": "phone_reservation",
"status": "succeed",
"sub_status": "normal",
"cancel_reason": null,
"employer_rated": false,
"labour_rated": false,
"extra": null,
"publish_time": "2018-03-23 20:25:47",
"finish_time": null
}
}
],
"current_page": 1,
"page_number": 10,
"count": 18
}
}
~~~
## 訂單搜索
~~~[api]
get:/order/search
*string:search=15181474781# 搜索內容,雇主姓名或者雇主手機號
<<<
success
返回內容和訂單列表的data 返回一致
~~~
- 使用須知
- 共用數據
- 數據庫
- 管理員
- 管理--登錄注冊
- 管理--個人資料
- 管理--工種相關
- 管理--工作相關
- 管理--蔬菜分類
- 管理--訂單相關
- 管理--用戶相關
- 管理--消息相關
- 管理--banner
- 管理--認證相關
- 管理--蔬菜改版
- 雇主端
- 雇主--登錄注冊
- 雇主--個人資料
- 雇主--設備相關
- 雇主--控制設備
- 雇主--用工地址
- 雇主--我的收藏
- 雇主--工種相關
- 雇主--我的訂單
- 雇主--我的紅包
- 雇主--評價訂單
- 雇主--消息相關
- 雇主--積分相關
- 雇主--民工列表
- 雇主--banner
- 雇主--邀請注冊
- 雇主--分享民工
- 民工端
- 民工--登錄注冊
- 民工--個人資料
- 民工--我的紅包
- 民工--訂單相關
- 民工--我的訂單
- 民工--評價訂單
- 民工--消息相關
- 民工--積分相關
- 民工--認證相關
- 民工--工種相關
- 民工--會員相關
- 民工--分享相關
- 民工--服務區域
- 民工--服務技能
- 民工--邀請注冊