追加功能 #443
v4.0: Order detail - Step 1
Start date:
12/25/2024
Due date:
02/14/2025
% Done:
100%
Estimated time:
80.00 h
Description
Background
- New requirement for v4.0 OTS
See: OneDrive\赤蓝商贸(上海)有限公司\Shanghai Group - IT\开发相关\OTS V4\开发需求
- List the functions related to the order Detail
No Function D/M R/W Done/To-Do Others 1 Display order detail D/M R Done - 2 Upload/download/remove attach files D/M R/W To-Do - 3 Upload/download/remove product proof images D/M R/W To-Do - 4 Edit order D/M W To-Do - 5 Add/Remove order D/M W To-Do -
- Order detail: mobile
- Extra:
- Update order_history: Only order_status is changed -> update order_history
- mobile (page 16): order detail 中的input date应为订单级别还是子订单级别:
方案1. 同order list为子订单级别: 则这个信息需要随着区域二的子订单来切换为当前子订单的创建日期
方案2. 订单级别:则可按word需求,这部分固定不变
A: 订单级别,即order的create date。
- Git提交
#xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
- 代码规范
2.1: 结构:Public -> Protected -> Private
2.2: 其他代码规范同SBX
- 数据层规范(Model)
3.1: 数据库操作只应出现在model或者system中。
3.2: v3/v4的model分为两个文件,比如: order.php, order_v3.php
- 前台代码
twig, js, css (js, css尽量写在单独的css文件中)
- 后台代码
MVCL (L:en,cn)
- 注释
- 类名:
/** * xxx * * @copyright RedBlue-OTS 2024 * @version v4 * */
- 函数名:参数类型 + 返回值类型
/** * xxx * * @param xxx $xxx * @param xxx $xxx * @return xxx */
- 类名:
- Report and Solution
Others
Related issues
Updated by Xihua Fan about 1 year ago
- Due date changed from 11/22/2024 to 12/31/2024
- Start date changed from 11/15/2024 to 12/16/2024
- Estimated time changed from 100.00 h to 80.00 h
Updated by Junyi Zhang 12 months ago
Output (2025/02/06 - 2025/02/08) (2025/01/21 - 2025/01/23), (2024/12/30 - 2025/01/8)
Done:- Functions:
- Common(UI): Order detail(sidepanel).
- Desktop(slide out from right and 60vw), mobile(slide out from right and 100vw)
- Click any of order list will allow open order detail
- Add web/catalog/view/theme/default/stylesheet/svg/file-types/xxx.svg as the icon of files
- Add easyDingZhi.common.collapsible and use collapsible method to open/close order products. About the dynamic max-height, i add the resetHeight function to adjust the max-height of collapsible element. And it should be used when there are add/remove element in collapsible element.
- Edit mode: The init order detail won't allow edit anything(input, urgency, upload etc.) until click 'EDIT' button.
- Edit Urgency: (Desktop)Mouse hover and click event(like SBX), special case(Click the last remaining star will clear star for 'noraml' urgency(no star)). (Mobile)Add stars by click times (0 -> 1 -> 2 -> 0).
- Alert modal: 1. At least one order product alert. 2. Unsaved order detail alert
- Declaration element: The declaration element in order detail only for read(no matter if in 'EDIT' mode). The editable declaration element modal will display when clicking the declaration element in 'EDIT' mode. - Display real order data in order detail
- Admin: Add 'shipped' (whether display tracking info in order detail) and 'sort_order' in order status.
- Add model/common/files as common file functions: add getFileIcon($extension) for file icons in order detail.
- Still use v3's product data structure(product sub types), and we need to replace them after re-design v4 product tables. - Common: Summernote.
- Use third-party [summernote] to replace textarea.
- Summernote-lite: Use the version of summernote without Bootstrap.
- Add easyDingZhi.common.summernote to support customize the functions of summernote.
- Modify some style of summernote since the original style is not suitable.
- Common(UI): Order detail(sidepanel).
- Optimizations:
- Summernote
- Summernote auto adjust the width of textarea when text too long.
- Limit the width of summernote's editable area and do not allow auto-wrap. - Summernote mobile 自动聚焦(输入时屏幕zoom in)
- Summernote auto adjust the width of textarea when text too long.
- Summernote
- Functions:
- Common(UI): Order detail (sidepanel)
- Download attach files.
- Upload/download/preview product proof image
- Upload/remove/preview attach files.
- Select text has conflict with click event(open order detail)
- (待添加,设计者说明暂时不用添加)Remake, R, Not Cn, Sample first - Common(Edit/Remove): Order detail
- Common(Add): Order detail
- Common(UI): Order detail (sidepanel)
- Optimizations:
Updated by Junyi Zhang 10 months ago
- Copied to 追加功能 #456: v4.0: Order detail - Step 2 (Niko) added
Updated by Junyi Zhang 10 months ago
- Status changed from 进行中 to 已关闭
- % Done changed from 20 to 100