diff --git a/.superpowers/prototype/screens/m-stock-in-list.html b/.superpowers/prototype/screens/m-stock-in-list.html index 020443c..9cedd12 100644 --- a/.superpowers/prototype/screens/m-stock-in-list.html +++ b/.superpowers/prototype/screens/m-stock-in-list.html @@ -22,9 +22,9 @@
-
全部
+
-
新增
+
近30天入库笔数
28
▲ 12% 较上期
@@ -79,9 +79,9 @@ function filtered(){ return ORDERS.filter(o=>{ return true; }); } function render(){ const n=advCount(); - document.getElementById('stVal').textContent=state.status; - document.getElementById('stSel').style.borderColor=state.status==='全部'?'':'var(--primary)'; - document.getElementById('stSel').style.color=state.status==='全部'?'':'var(--primary)'; + document.getElementById('stIcon').innerHTML=''; + const ss=document.getElementById('stSel'); + ss.classList.toggle('primary',state.status!=='全部'); ss.classList.toggle('ghost',state.status==='全部'); const ab=document.getElementById('advBtn'); ab.classList.toggle('primary',n>0); ab.classList.toggle('ghost',n===0); const rows=filtered(); diff --git a/.superpowers/prototype/screens/m-stock-out-list.html b/.superpowers/prototype/screens/m-stock-out-list.html index 2cfd042..0382438 100644 --- a/.superpowers/prototype/screens/m-stock-out-list.html +++ b/.superpowers/prototype/screens/m-stock-out-list.html @@ -22,9 +22,9 @@
-
全部
+
-
新增
+
近30天出库笔数
35
▲ 9.2% 较上期
@@ -78,9 +78,9 @@ function filtered(){ return ORDERS.filter(o=>{ return true; }); } function render(){ const n=advCount(); - document.getElementById('stVal').textContent=state.status; - document.getElementById('stSel').style.borderColor=state.status==='全部'?'':'var(--primary)'; - document.getElementById('stSel').style.color=state.status==='全部'?'':'var(--primary)'; + document.getElementById('stIcon').innerHTML=''; + const ss=document.getElementById('stSel'); + ss.classList.toggle('primary',state.status!=='全部'); ss.classList.toggle('ghost',state.status==='全部'); const ab=document.getElementById('advBtn'); ab.classList.toggle('primary',n>0); ab.classList.toggle('ghost',n===0); const rows=filtered();