追加功能 #456
v4.0: Order detail - Step 2 (Niko)
Start date:
05/16/2025
Due date:
05/30/2025
% Done:
100%
Estimated time:
80.00 h (Total: 160.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 移动到#471 - 3 Upload/download/remove product proof images D/M R/W 移动到#471 - 4 Edit order D/M W Done - 5 Add/Remove order D/M W Done -
- 自动导入时未匹配项的处理方式:
- Product: 提前在admin创建一个Product X(或Special product)产品。
- Option + option value: 填入extra info中 + 提示信息
- Size: 填入extra info中 + 提示信息
Questions:
v4 coding standard:- Git提交
#xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
- 代码规范
2.1: 结构:Public -> Protected -> Private
2.2: 其他代码规范同SBX
- MVCL的v3/v4物理分割
3.1: v3/v4的代码分为两个文件,比如: order.php, order_v3.php
3.2: system也分为两个文件,暂时只有一个user_v3
- Note: front的$this->user在v4中会替换为$this->customer, 即v4中需要清除$this->user
3.3: 代码中,区分v3/v4的调用,比如:new User_V3
- 前台代码
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
Subtasks
Related issues
Updated by Junyi Zhang 10 months ago
Output(2025/07/28 - 2025/07/30), (2025/06/16 - 2025/06/18),(2025/06/11 - 2025/06/13),(2025/05/26 - 2025/05/30), (2025/05/21 - 2025/05/23), (2025/05/12 - 2025/05/16), (2025/05/06 - 2025/05/09),(2025/04/28 - 2025/04/30):
DONE:- Functions:
- View/Add/Edit order
- Upload/download/remove/preview product proof image (已移动到: #471 )
- Upload/Download/remove/preview attach files. (已移动到: #471 )
- 权限 参考one drive (Shanghai Group - 文档\IT\开发相关\OTS V4\开发需求\订单管理模块\OTS4.0订单模块权限分析_20250422.xlsx)
- Order status添加order terminated + order terminated时记录manufacturer是否产生了价格 + 是否转给其他的manufacturer
- 根据product 模块新增的stock product,调整order detail的权限相关(具体参考one drive:Shanghai Group - 文档\IT\开发相关\OTS V4\开发需求\订单管理模块\OTS4.0订单模块权限分析_20250422.xlsx)
- DM/DO允许新增/编辑 stock product 的订单,且这类订单只有创建者的隶属公司的DM/DO/DL可以查看/编辑。 - Validate check
- Product + product option required (except checkbox)
- Stock and regular products can not exist at the same time. - Order product 价格一览 + 人工介入时修改价格
- Order detail: product option: required -》 optional
- Price summary加入weight,且与人工介入共用flag。
- 报关信息中的GWG,为总重(product + option)
- 修改订单状态到packing,需要先确认price和weight已人工确认。
- Price & weight summary新增confirm,reset功能
- Confirm: 表示用户已确认当前的price和weight已人工确认。
- Reset: 恢复price和weight 到人工确认之前的状态。
- Optimizations:
- Order detail展开状态使用expand/collapse sidebar显示:缩小宽度 + 占据页面空间 + order list所选高亮。
- Order detail支持全屏显示。