|
|
7c0acb5245
|
fix: UiFile-based upload with drag-drop support, download/delete toolbar
|
2026-07-03 17:57:48 +08:00 |
|
|
|
07d5173d75
|
feat: add download and delete actions to contract attachment list
|
2026-07-03 17:45:57 +08:00 |
|
|
|
3017ac295b
|
fix: bricks.app.getWidgetById → bricks.getWidgetById (app is not the root for widget lookup)
|
2026-07-03 17:42:03 +08:00 |
|
|
|
a914380a9b
|
feat: ContractAttachMgr — supplychain 自有附件管理器
ContractAttachMgr 继承 FileMgr, fiid 从 params_kw 透传
contract_upload.dspy: 自有上传端点
contract_attach.ui: 改用 supplychain 自己的上传 dspy
|
2026-07-03 17:05:24 +08:00 |
|
|
|
64e240872f
|
fix: show_error → console.error (bricks 无此方法)
|
2026-07-03 16:54:26 +08:00 |
|
|
|
b4d66933a6
|
fix: get_files() -> this.value (UiFile 正确取值方式)
|
2026-07-03 16:51:51 +08:00 |
|
|
|
3497d946ce
|
fix: Jinja2 转义 — upload_url 用 {% set %} 预计算
entire_url("/filemgr/...") 中的 " 导致 Jinja2 解析报错
改用 {% set upload_url = entire_url('/filemgr/upload_file.dspy') %}
|
2026-07-03 16:48:24 +08:00 |
|
|
|
a63b6ce427
|
fix: 附件上传改用 UiFile changed + fetch FormData
UiFile changed 事件 → script fetch POST multipart → 成功后 render Tabular
无需点击上传按钮,选择文件即自动上传
|
2026-07-03 16:46:14 +08:00 |
|
|
|
1f06a23fa3
|
fix: 附件上传改用 Form submit_url (multipart) + UiFile multiple
Form submit_url 直接POST到 filemgr, 支持multipart文件上传
UiFile multiple: true 浏览器原生支持拖拽
去掉无用的按钮+toolbar
|
2026-07-03 16:37:26 +08:00 |
|
|
|
3df4e237fc
|
feat: 合同附件支持拖拽上传
drop_zone: 虚线边框拖放区域, 点击选择文件
Form: 隐藏字段 folderid+fiid + file input
Script: dragover/drop 事件处理, 拖入文件自动上传
|
2026-07-03 16:23:21 +08:00 |
|
|
|
fa5a1a3a8e
|
feat: 供应合同和分销协议支持附件上传下载
contract_attach.ui: 附件管理页面(Tabular文件列表 + 上传按钮)
contract_attach_list.dspy: 查询合同附件列表
init.py: ensure_contract_folder() 自动创建附件目录
supply_contracts_list + distribution_agreements_list: 新增'合同附件'toolbar
实现: filemgr folder(contract_id=id, fiid=type)自动管理
|
2026-07-03 15:32:41 +08:00 |
|