mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-31 23:58:48 +08:00
1 parent
bbd8a03cbc
commit
a62b108eb1
2 files changed
+18
-7
No files matched your search
+15
-4
@@ -1734,6 +1734,7 @@ button:not(:disabled):hover {
|
|||||||
.info-rows textarea,
|
.info-rows textarea,
|
||||||
.gradient-stop-row input[type="number"],
|
.gradient-stop-row input[type="number"],
|
||||||
.structure-attribute > input,
|
.structure-attribute > input,
|
||||||
|
.invoice-table input[type="text"],
|
||||||
.print-options select,
|
.print-options select,
|
||||||
.form-row input[type="text"],
|
.form-row input[type="text"],
|
||||||
.form-row input[type="password"],
|
.form-row input[type="password"],
|
||||||
@@ -2395,6 +2396,14 @@ body[data-hide-meta] .meta-panel {
|
|||||||
margin-block: 8px;
|
margin-block: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#settingsContext > .invoice-actions:only-child {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#invoiceTabContent > :last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.invoice-group-title {
|
.invoice-group-title {
|
||||||
margin: 12px 0 8px;
|
margin: 12px 0 8px;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
@@ -2449,10 +2458,8 @@ body[data-hide-meta] .meta-panel {
|
|||||||
width: 8em;
|
width: 8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.invoice-table input:not([type="radio"]) {
|
.invoice-table input[type="radio"] {
|
||||||
width: 100%;
|
accent-color: var(--accent);
|
||||||
min-width: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.invoice-dialog #settingsInvoiceXML {
|
.invoice-dialog #settingsInvoiceXML {
|
||||||
@@ -2553,6 +2560,10 @@ body[data-hide-meta] .meta-panel {
|
|||||||
overscroll-behavior: contain;
|
overscroll-behavior: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.settings-dialog > form > .panel-tabs[hidden] + .settings-body {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.settings-body:has(> #settingsContext:empty):has(> #settingsContent:empty) {
|
.settings-body:has(> #settingsContext:empty):has(> #settingsContent:empty) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7552,10 +7552,10 @@ function renderInvoiceSettings() {
|
|||||||
const choices = candidates.map(entry => [entry.key, entry.invoice.number || entry.invoice.code || `${entry.invoice.kind} · ${entry.index + 1}`]);
|
const choices = candidates.map(entry => [entry.key, entry.invoice.number || entry.invoice.code || `${entry.invoice.kind} · ${entry.index + 1}`]);
|
||||||
if (invoicePanel.drafts.has("new")) choices.push(["new", "新建"]);
|
if (invoicePanel.drafts.has("new")) choices.push(["new", "新建"]);
|
||||||
if (choices.length) settingsSelect(context, "发票", "InvoiceEntry", choices, invoicePanel.key, value => { invoicePanel.key = value; loadDocumentSettings(); });
|
if (choices.length) settingsSelect(context, "发票", "InvoiceEntry", choices, invoicePanel.key, value => { invoicePanel.key = value; loadDocumentSettings(); });
|
||||||
const actions = document.createElement("div");
|
|
||||||
actions.className = "invoice-actions";
|
|
||||||
context.append(actions);
|
|
||||||
if (state.editing) {
|
if (state.editing) {
|
||||||
|
const actions = document.createElement("div");
|
||||||
|
actions.className = "invoice-actions";
|
||||||
|
context.append(actions);
|
||||||
settingsButton("新建", newInvoiceDraft, false, "InvoiceNew", actions);
|
settingsButton("新建", newInvoiceDraft, false, "InvoiceNew", actions);
|
||||||
settingsButton("导入", () => readInvoiceFile(async text => {
|
settingsButton("导入", () => readInvoiceFile(async text => {
|
||||||
const value = await newInvoiceDraft();
|
const value = await newInvoiceDraft();
|
||||||
|
|||||||
Reference in new issue
Block a user