Project

General

Profile

Actions

追加功能 #443

closed
JZ JZ

v4.0: Order detail - Step 1

追加功能 #443: v4.0: Order detail - Step 1

Added by Junyi Zhang over 1 year ago. Updated 4 months ago.

Status:
已关闭
Priority:
普通
Assignee:
Target version:
IT: Easytryck (Sweden) - v4.0
Start date:
12/25/2024
Due date:
02/14/2025
% Done:

100%

Estimated time:
80.00 h

Description

Background
  1. New requirement for v4.0 OTS
    See: OneDrive\赤蓝商贸(上海)有限公司\Shanghai Group - IT\开发相关\OTS V4\开发需求
Task List
  1. 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 -
Task Details
  1. Order detail: mobile
  2. Extra:
    1. Update order_history: Only order_status is changed -> update order_history
Questions:
  1. mobile (page 16): order detail 中的input date应为订单级别还是子订单级别:
    方案1. 同order list为子订单级别: 则这个信息需要随着区域二的子订单来切换为当前子订单的创建日期
    方案2. 订单级别:则可按word需求,这部分固定不变
    A: 订单级别,即order的create date。
v4 coding standard:
  1. Git提交
    #xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
      
  2. 代码规范
    2.1: 结构:Public -> Protected -> Private
    2.2: 其他代码规范同SBX
      
  3. 数据层规范(Model)
    3.1: 数据库操作只应出现在model或者system中。
    3.2: v3/v4的model分为两个文件,比如: order.php, order_v3.php
     
  4. 前台代码
    twig, js, css (js, css尽量写在单独的css文件中)
     
  5. 后台代码
    MVCL (L:en,cn)
     
  6. 注释
    1. 类名:
      /**
       * xxx
       *
       * @copyright RedBlue-OTS 2024
       * @version v4
       *
       */
      
    2. 函数名:参数类型 + 返回值类型
          /**
           * xxx
           *
           * @param  xxx $xxx
           * @param  xxx $xxx
           * @return xxx
           */
      
Output
  • Report and Solution

Others


Related issues 1 (0 open1 closed)

Copied to 追加功能 #456: v4.0: Order detail - Step 2 (Niko)已关闭Junyi Zhang05/16/202505/30/2025

Actions

JZ Updated by Junyi Zhang over 1 year ago Actions #1

  • Description updated (diff)

XF Updated by Xihua Fan over 1 year ago Actions #2

  • 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

JZ Updated by Junyi Zhang about 1 year ago Actions #3

  • Description updated (diff)

XF Updated by Xihua Fan about 1 year ago Actions #4

  • Status changed from 新建 to 进行中
  • Start date changed from 12/16/2024 to 12/25/2024

JZ Updated by Junyi Zhang about 1 year ago Actions #5

Output (2025/02/06 - 2025/02/08) (2025/01/21 - 2025/01/23), (2024/12/30 - 2025/01/8)

Done:
  1. Functions:
    1. 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.
    2. 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.
    3. 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.
  2. Optimizations:
    1. Summernote
      1. 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.
      2. Summernote mobile 自动聚焦(输入时屏幕zoom in)
TODO Order Detail剩余TODO移到新票 #456
  1. Functions:
    1. 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
    2. Common(Edit/Remove): Order detail
    3. Common(Add): Order detail
  2. Optimizations:

JZ Updated by Junyi Zhang about 1 year ago Actions #6

  • Due date changed from 12/31/2024 to 02/14/2025

JZ Updated by Junyi Zhang about 1 year ago Actions #7

  • % Done changed from 0 to 20

XF Updated by Xihua Fan about 1 year ago Actions #8

  • Subject changed from v4.0: Order detail to v4.0: Order detail - 1

JZ Updated by Junyi Zhang about 1 year ago Actions #9

  • Description updated (diff)

JZ Updated by Junyi Zhang about 1 year ago Actions #10

  • Description updated (diff)

JZ Updated by Junyi Zhang about 1 year ago Actions #11

  • Description updated (diff)

JZ Updated by Junyi Zhang about 1 year ago Actions #12

JZ Updated by Junyi Zhang about 1 year ago Actions #13

  • Description updated (diff)

JZ Updated by Junyi Zhang about 1 year ago Actions #14

  • Status changed from 进行中 to 已关闭
  • % Done changed from 20 to 100

XF Updated by Xihua Fan about 1 year ago Actions #15

  • Tracker changed from 其他 to 追加功能

XF Updated by Xihua Fan 4 months ago Actions #16

  • Subject changed from v4.0: Order detail - 1 to v4.0: Order detail - Step 1
Actions

Also available in: PDF Atom