客户类型改为紧凑横排单选,避免撑高开单表单
This commit is contained in:
1 parent
c12f2157b4
commit
c08969b876
2 files changed
+4
-2
No files matched your search
+3
-1
@@ -353,7 +353,7 @@ button.order-copy-button:focus-visible{outline:3px solid var(--gold);outline-off
|
|||||||
@media(max-width:650px){.private-ops-filters{display:grid;grid-template-columns:1fr 1fr}.private-ops-filters>label{min-width:0}.private-ops-filters>.actions{grid-column:1/-1}.private-ops-filters input,.private-ops-filters select,#private-people-form input,#private-people-form select{font-size:16px}#main:has(#private-ops-filter)>.page-heading{display:block}#main:has(#private-ops-filter)>.page-heading .actions{margin-top:12px}}
|
@media(max-width:650px){.private-ops-filters{display:grid;grid-template-columns:1fr 1fr}.private-ops-filters>label{min-width:0}.private-ops-filters>.actions{grid-column:1/-1}.private-ops-filters input,.private-ops-filters select,#private-people-form input,#private-people-form select{font-size:16px}#main:has(#private-ops-filter)>.page-heading{display:block}#main:has(#private-ops-filter)>.page-heading .actions{margin-top:12px}}
|
||||||
|
|
||||||
/* 客户类型直接单选,整块标签均可点击。 */
|
/* 客户类型直接单选,整块标签均可点击。 */
|
||||||
.customer-type-field{border:0;padding:0;margin:0;min-width:0}.customer-type-field legend{padding:0;margin-bottom:7px;color:var(--muted);font-size:12px}.customer-type-options{display:flex;flex-wrap:wrap;gap:8px}.customer-type-options>label{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 12px;margin:0;border:1px solid var(--border);border-radius:7px;background:var(--white);cursor:pointer}.customer-type-options input[type=radio]{width:17px;height:17px;min-height:0;margin:0;padding:0;flex:none;accent-color:var(--green)}.customer-type-options>label:has(input:checked){border-color:var(--green);background:var(--soft);color:var(--green)}.customer-type-options>label:focus-within{outline:2px solid var(--green);outline-offset:2px}.customer-type-options span{font-size:13px}
|
.customer-type-field{border:0;padding:0;margin:0;min-width:0}.customer-type-field legend{padding:0;margin-bottom:6px;color:#566259;font-size:12px}.customer-type-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.customer-type-options>label{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;height:44px;padding:8px 6px;margin:0;border:1px solid var(--border);border-radius:7px;background:var(--white);cursor:pointer}.customer-type-options input[type=radio]{width:15px;height:15px;min-height:0;margin:0;padding:0;flex:none;accent-color:var(--green)}.customer-type-options>label:has(input:checked){border-color:var(--green);background:var(--soft);color:var(--green)}.customer-type-options>label:has(input:focus-visible){outline:2px solid var(--green);outline-offset:2px}.customer-type-options input[type=radio]:focus{outline:none}.customer-type-options span{font-size:13px;white-space:nowrap}
|
||||||
|
|
||||||
.private-ops-summary{min-width:980px}.private-ops-summary th.number{text-align:right}.private-ops-summary tbody th{background:var(--white);color:var(--ink);font-size:13px;font-weight:650;vertical-align:middle}.private-ops-summary td{vertical-align:middle;padding:11px 12px;font-variant-numeric:tabular-nums}.private-ops-summary td .small{margin-top:4px;font-size:11px}.private-ops-summary td:last-child{white-space:nowrap}.private-ops-summary tbody tr:hover td,.private-ops-summary tbody tr:hover th{background:#f5f7f2}.private-ops-summary th:first-child{position:sticky;left:0;z-index:1;min-width:90px;border-right:1px solid var(--border)}.private-ops-summary-wrap:focus-visible{outline:2px solid var(--green);outline-offset:2px}
|
.private-ops-summary{min-width:980px}.private-ops-summary th.number{text-align:right}.private-ops-summary tbody th{background:var(--white);color:var(--ink);font-size:13px;font-weight:650;vertical-align:middle}.private-ops-summary td{vertical-align:middle;padding:11px 12px;font-variant-numeric:tabular-nums}.private-ops-summary td .small{margin-top:4px;font-size:11px}.private-ops-summary td:last-child{white-space:nowrap}.private-ops-summary tbody tr:hover td,.private-ops-summary tbody tr:hover th{background:#f5f7f2}.private-ops-summary th:first-child{position:sticky;left:0;z-index:1;min-width:90px;border-right:1px solid var(--border)}.private-ops-summary-wrap:focus-visible{outline:2px solid var(--green);outline-offset:2px}
|
||||||
|
|
||||||
@@ -364,3 +364,5 @@ button.order-copy-button:focus-visible{outline:3px solid var(--gold);outline-off
|
|||||||
.order-book-table .document-print-badge{padding:1px 5px;margin:0;font-size:11px;font-weight:500}
|
.order-book-table .document-print-badge{padding:1px 5px;margin:0;font-size:11px;font-weight:500}
|
||||||
.order-book-table .document-print-badge.is-unprinted{color:var(--muted);background:transparent}
|
.order-book-table .document-print-badge.is-unprinted{color:var(--muted);background:transparent}
|
||||||
.order-mobile-print-status{margin-top:6px}
|
.order-mobile-print-status{margin-top:6px}
|
||||||
|
|
||||||
|
@media(max-width:650px){.grid>.customer-type-field{grid-column:1/-1}}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
let privateOpsFilters=null,privateOpsUser='',privateOpsRequest=0,privatePeopleRequest=0,privatePeopleEntry=null;
|
let privateOpsFilters=null,privateOpsUser='',privateOpsRequest=0,privatePeopleRequest=0,privatePeopleEntry=null;
|
||||||
function customerTypeField(value='',required=true){const options=[['new','新客户 · 首次成交'],['returning','老客户 · 再次成交']];return `<fieldset class="customer-type-field"><legend>客户类型${required?'(必选)':''}</legend><div class="customer-type-options">${options.map(([key,label])=>`<label><input type="radio" name="customer_type" value="${key}" ${value===key?'checked':''} ${required?'required':''}><span>${label}</span></label>`).join('')}</div></fieldset>`;}
|
function customerTypeField(value='',required=true){const options=[['new','新客户'],['returning','老客户']];return `<fieldset class="customer-type-field"><legend>客户类型${required?'(必选)':''}</legend><div class="customer-type-options">${options.map(([key,label])=>`<label title="${key==='new'?'首次成交':'再次成交'}"><input type="radio" name="customer_type" value="${key}" ${value===key?'checked':''} ${required?'required':''}><span>${label}</span></label>`).join('')}</div></fieldset>`;}
|
||||||
function privateOpsNumber(value){return value===null||value===undefined?'未记录':Number(value).toLocaleString('zh-CN');}
|
function privateOpsNumber(value){return value===null||value===undefined?'未记录':Number(value).toLocaleString('zh-CN');}
|
||||||
function privateOpsRate(row){return row.conversion===null?'—':(row.conversion*100).toFixed(1)+'%';}
|
function privateOpsRate(row){return row.conversion===null?'—':(row.conversion*100).toFixed(1)+'%';}
|
||||||
function privatePeopleCurrent(){return privateOpsCurrent()||!!state?.user&&tab==='people-entry';}
|
function privatePeopleCurrent(){return privateOpsCurrent()||!!state?.user&&tab==='people-entry';}
|
||||||
|
|||||||
Reference in new issue
Block a user