追加功能 #491
Updated by Zhongbao Ye 18 days ago
*Background* # 手机端直接通过局域网连接唛头打印机,提高物流人员的工作效率 *Task Details (具体步骤)* * *1. 安装本地打印服务器【Zebra 888-TT】步骤* |_. 顺序 |_. 内容 |_. 参考 | |1 |安装驱动Zebra Setup Utilities | https://supportcommunity.zebra.com/s/article/Zebra-Setup-Utilities-Downloading-ZSU-Configuring-Printer-Settings?language=en_US | |2 |配置打印机首选项 | https://redmine.easydingzhi.com/attachments/248 | |3 |共享该打印机 | - | * *2. 本地局域网的电脑连接网络打印机打印* |_. 顺序 |_. 内容 |_. 参考 | |1 |访问打印机服务器的ip地址,比如: \\192.168.3.188 -》 自动安装驱动 | - | |2 |参考服务器配置本地打印机首选项 | https://redmine.easydingzhi.com/attachments/248 | * *3. Mobile设备连接打印机打印* Mobile设备连接打印机打印( %{color:red}依赖第三方的解决方案,因一些基础问题未解决,暂时搁置%)* ## 方案1:依然使用window.print() %{color:red}依赖第三方的解决方案,因一些基础问题未解决,暂时搁置% *** ** 列印浓度不够(IOS/Android) *** ** 打印时调整横向/纵向 无效果,达不到打印效果。(Android) *** ** 部分机型搜索不到目标打印机。(Android) ## 方案2:官方指定渠道,发送ZPL指令(图像格式) https://www.zebra.com/content/dam/support-dam/en/documentation/unrestricted/guide/software/zebra-browser-print-user-guide-v1-3-2-android-en-us.pdf *** 需调查 html -> 图片的有效方式 *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) # 注释 ## 类名: <pre> /** * xxx * * @copyright RedBlue-OTS 2024 * @version v4 * */ </pre> ## 函数名:参数类型 + 返回值类型 <pre> /** * xxx * * @param xxx $xxx * @param xxx $xxx * @return xxx */ </pre> *Output* * Report and Solution *Others*