navigate(`/contracts/${link}`, { state: { from: location.pathname + location.search } })} onKeyDown={(event) => { if (event.key === "Enter" && event.target === event.currentTarget) navigate(`/contracts/${link}`, { state: { from: location.pathname + location.search } }); }}>
| {item.no || WORD_UNCONFIGURED}{item.customer || WORD_UNCONFIGURED} · {item.contractType || "新建"} · {item.source === undefined ? : textCell(item.source)} |
{item.extNo ? {item.extNo} : "—"} |
{state ? {state} : }{expiringRow && 快到期 · {expiringLabel(item.end)}}{item.periodState === "val" ? `${d(item.start)} 至 ${d(item.end)}` : } |
{item.opened === undefined || item.opened === null ? : {item.opened ? "已开通" : "未开通"}}实际开通日 {item.openedOn ? d(item.openedOn) : "未回填"} |
{item.amountState === "val" ? ¥{item.amount.toLocaleString("zh-CN")} : }{item.serviceMonthsState === "val" ? `服务期 ${item.serviceMonths} 个月` : } |
{item.agent || WORD_UNCONFIGURED}{item.agentPhone || WORD_UNCONFIGURED} |
{!view.readOnly && , title: "按旧合同带入金额、服务期、服务条目与新的生效日(旧止期次日),生成新合同;不替换原订阅", onSelect: () => navigate(`/contracts/new?renew=${encodeURIComponent(renewContractId)}`) }] : []),
{ label: "删除合同", shortLabel: "删除", danger: true, icon: , title: "引用拦截由服务端判定,删除后不可恢复", onSelect: () => setDeleteId(item.contractId ?? item.no) },
]} />} |
;
})}{!filtered.length &&