Commit d6fd7909 authored by wenwen.tang's avatar wenwen.tang 😕

feat(web): 台账「合同原件」列的按钮与合同管理浮层

- td.files 不再走打字编辑:有合同显示「📎 N 份」,编辑态空行显示「+ 合同」,只读空行显示 —
- openFilesDlg:列出文件名 / 大小 / 上传时间 + 查阅 / 下载 / 移除,底部「上传合同」;
  pickContract 走真实文件选择器(可多选,逐个上传,>20MB 跳过)
- 增删都走 stageCell(rowId,'AL','files',…) 暂存,与普通格子一致——
  回列表点「保存 N 处改动」才写台账;只读态浮层没有上传/移除入口
- 修 bug:renderGrid 的 files 分支原先读台账原值,上传后(暂存未保存)格子仍显示旧按钮 →
  改为优先读 TB_PEND 暂存值
- startEdit 对 files 列直接返回;delRow/startEdit 的行标签统一走 rowLabelOf()
- fmtVal 增加 files 分支(修改记录 / 确认框里显示文件名列表)
- CSS:td.files 按钮样式(pill + 虚线加号 + 暂存态黄底);admin.html 补用法说明
parent 09815170
......@@ -340,6 +340,9 @@
改动会先<b>暂存并高亮</b>(不逐格弹窗),改完点顶部「保存 N 处改动」时<b>统一确认一次</b>再写入;
不想要就点「放弃改动」。Esc 取消当前单元格编辑。
数值/金额列按类型校验,「合计」行为当前显示行的实时汇总。每次提交都会记入下方「修改记录」,可撤销。
<br>最右边的<b>「合同原件」</b>列用来挂本单元的合同(存服务器),点格子里的按钮可以<b>查阅 / 下载</b>合同;
编辑模式下同一个浮层里能<b>上传</b>或<b>移除</b>(一份可挂多份:租赁合同 + 补充协议 + 车位合同)。
支持 PDF / Word / Excel / 图片,单个 ≤ 20MB;「移除」只解除本行关联,不会删掉服务器上的文件。
<br>数据仅初次导入有效,之后不提供导入;增删改一律在页面完成。
</div>
</div>
......
This diff is collapsed.
......@@ -552,6 +552,21 @@ table.edgrid td.cell input {
outline: none; background: #fff;
}
/* 「合同原件」列:格子里是查阅 / 上传按钮,不打字 */
table.edgrid td.files { text-align: center; cursor: default; padding: 3px 6px; }
table.edgrid td.files:hover { background: #f4f8ff; }
table.edgrid td.files button.fbtn {
padding: 2px 9px; height: auto; font-size: 12px; border-radius: 999px;
background: #eef4ff; border: 1px solid #c9dcff; color: #1f4e9c;
white-space: nowrap;
}
table.edgrid td.files button.fbtn:hover { background: #dceaff; border-color: #a9c8ff; }
table.edgrid td.files button.fbtn.add {
background: #f7f9fc; border-style: dashed; border-color: #cfd8e6; color: #7b8798;
}
table.edgrid td.files button.fbtn.add:hover { background: #eaf2ff; border-color: #a9c8ff; color: #1f4e9c; }
table.edgrid td.files.pending button.fbtn { background: #fffbeb; border-color: #fcd34d; color: #8a6100; }
table.edgrid tfoot td {
position: sticky; bottom: 0; z-index: 6;
background: #fff8e6; font-weight: 600; color: #7a5a00;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment