-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] order status ui mapping #126
Comments
待處理 remark: 付款完成與否與訂單: |
UI 訂單狀態: 要切 utils -> return. ui status (sdk) |
UI 狀態 priority 判斷由下至上 先付款後出貨 宅配
先出貨後付款 超商取貨付款
|
UI 訂單狀態UI 訂單狀態: 未付款(checkout 未成單) 待處理(預設狀態 或 超商取貨付款:未付款+物流狀態未出貨) 處理中 已出貨 -> staff 已出貨(物流 callback) 已取消 (人工切換) waiting、processing、processed、cancel const PAYMENT_STATUS_DISPLAY = {
[PAYMENT_STATUS.pending]: {
value: PAYMENT_STATUS.pending,
label: '尚未付款',
},
[PAYMENT_STATUS.waiting]: {
value: PAYMENT_STATUS.waiting,
label: '款項確認中',
},
[PAYMENT_STATUS.success]: {
value: PAYMENT_STATUS.success,
label: '付款成功',
},
[PAYMENT_STATUS.failure]: {
value: PAYMENT_STATUS.failure,
label: '付款失敗',
},
}; const LOGISTICS_STATUS_DISPLAY = {
[LOGISTICS_STATUS.pending]: {
label: '備貨中',
value: LOGISTICS_STATUS.pending,
},
[LOGISTICS_STATUS.center_delivered]: {
label: '已出貨',
value: LOGISTICS_STATUS.center_delivered,
},
[LOGISTICS_STATUS.in_delivery]: {
label: '運送中',
value: LOGISTICS_STATUS.in_delivery,
},
[LOGISTICS_STATUS.delivered]: {
label: '已送達',
value: LOGISTICS_STATUS.delivered,
},
[LOGISTICS_STATUS.error]: {
label: '地址錯誤',
value: LOGISTICS_STATUS.error,
},
[LOGISTICS_STATUS.exception]: {
label: '尚未定義狀態',
value: LOGISTICS_STATUS.exception,
},
}; 先付款後出貨 宅配 (atm / credit / default / offline)
先出貨後付款 超商取貨付款 (cod)
|
訂單 ui 狀態新增
已出貨
訂單完成
分別對應物流的已出貨、已送達
注意: 是 UI 訂單狀態,不是真實存在的 order status
這個狀態是用 mapping 前端 map 出來的,query 時其實是下物流狀態 query (注意不要和原有 query 打架
實作待討論確認
The text was updated successfully, but these errors were encountered: