### [[2025]]年 - [[2025-06|06月]], [[2025-06-27|<]] [[第179天]] [[2025-06-29|>]] , 土曜日 --- ## 記事 谌怠惰两天 现已回归( 又被日活压垮了 何时是头啊, https://ec.toranoana.jp/joshi_r/ec/item/040031250508/ https://ec.toranoana.jp/joshi_r/ec/item/040031246686/ https://ec.toranoana.jp/joshi_r/ec/item/040031251376/ https://ec.toranoana.jp/joshi_r/ec/item/040031232332/ https://ec.toranoana.jp/joshi_r/ec/item/040031194228/ ![image.png](https://beday.top/bednight/202506281751115461.png) 2542 * 0.055 + 50 5747 * 0.055 + 80 原画集3500 https://www.suruga-ya.jp/product/detail/185139847 hf1 2300 https://www.suruga-ya.jp/product/detail/185158493 hf2 2800 https://www.suruga-ya.jp/product/detail/185177422 ![image.png](https://beday.top/bednight/202506281751115303.png) 8600 * 0.055 + 70 点兔 440 札幌店 https://order.mandarake.co.jp/order/detailPage/item?itemCode=1187971290&ref=list&categoryCode=030110&deviceId=1 空境2  2750 宇都宫店(不带书腰便宜) https://order.mandarake.co.jp/order/detailPage/item?itemCode=1235668810&deviceId=1 #### 出账 ##### 货款 ###### amex Oamex:: 22884 2969+9282+7718+2915 ###### tongyi Otongyi:: 600 ###### nashiga Onashiga:: ##### 消耗 ###### tongyi Utongyi:: ###### nashiga Unashiga:: ##### 工资 ###### tongyi Stongyi:: 2000 ###### nashiga Snashiga:: #### 入账 ###### tongyi Inashiga:: 743 200+543 Itongyi:: ```dataviewjs const d = dv.current() // === 原始字段 === const amex = d.Oamex || 0 const tongyi = d.Otongyi || 0 const nashiga = d.Onashiga || 0 const use_tongyi = d.Utongyi || 0 const use_nashiga = d.Unashiga || 0 const sal_tongyi = d.Stongyi || 0 const sal_nashiga = d.Snashiga || 0 // === 汇总值 === const oOUTall = amex + tongyi + nashiga const oUSEall = use_tongyi + use_nashiga const oSALall = sal_tongyi + sal_nashiga const oALL = oOUTall + oUSEall + oSALall // === Chart 配置 === const chartData = { type: 'doughnut', data: { labels: [ '总货款', '总消耗', '总工资' ], datasets: [ { label: '总支出分类', data: [oOUTall, oUSEall, oSALall], backgroundColor: [ 'rgba(75, 192, 192, 0.6)', // OUT 'rgba(153, 102, 255, 0.6)', // USE 'rgba(255, 159, 64, 0.6)' // SAL ], borderColor: [ 'rgba(75, 192, 192, 1)', 'rgba(153, 102, 255, 1)', 'rgba(255, 159, 64, 1)' ], borderWidth: 1 } ] }, options: { responsive: true, cutout: '50%', plugins: { legend: { position: 'bottom' }, tooltip: { enabled: true }, centerText: { display: true, text: `总支出:¥${oALL.toLocaleString()}` } } }, plugins: [ { id: 'centerText', beforeDraw: function (chart) { const width = chart.width; const height = chart.height; const ctx = chart.ctx; ctx.restore(); const fontSize = (height / 150).toFixed(2); ctx.font = `${fontSize}em sans-serif`; ctx.textBaseline = 'middle'; const text = chart.options.plugins.centerText.text; const textX = Math.round((width - ctx.measureText(text).width) / 2); const textY = height / 2; ctx.fillText(text, textX, textY); ctx.save(); } } ] } window.renderChart(chartData, this.container) ``` --- # memos