### [[2025]]年 - [[2025-07|07月]], [[2025-07-14|<]] [[第196天]] [[2025-07-16|>]] , 火曜日
---
## 記事
[日本語HUB|日语导航](https://www.nihongo-hub.top/)
#### 出账
##### 货款
###### amex
Oamex:: 21957
2871+16010+3076+3076
###### tongyi
Otongyi:: 40928
23000comiket106票
2880+1750+2428+1870+9000
17928+23000+9000
###### nashiga
Onashiga:: 3680
800+100+700+380+1700
##### 消耗
###### tongyi
Utongyi:: 10000
1600+8400
###### nashiga
Unashiga::
##### 工资
###### tongyi
Stongyi::
###### nashiga
Snashiga::
#### 入账
###### tongyi
Inashiga:: 647
370+277
Itongyi:: 866
```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
38500+12790
51290 * 0.0535+20+40
+1900+2600+4850+1000+4200+1600+800+1100+200
105+50+95-25
288+105+95-60
1500+900+2800+3200+400+2500
麦乐基德
125+95+210+260+76+230
996+280
11300 * 0.05
565-996-280
1500+900+2800+3200+400+2500
11300 * 0.062
6 * 30
700+180+280
1500+900+2800+3200+400+2500
麦乐基德
125+95+210+260+76+230
996+280
11300 * 0.05
565-996-280
1500+900+2800+3200+400+2500
11300 * 0.062
6 * 30
700+180+280