### [[2025]]年 - [[2025-07|07月]], [[2025-07-01|<]] [[第183天]] [[2025-07-03|>]] , 水曜日
---
## 記事
时常无能为力感
1650+1650+1650+6000+3850+4500+15000
34300/20-2244
公用
137335-1700-6623-3610 = 125402
125402 /2 = 62701
3610+6623+7650-3630+3820+12200+7700
39793+62701
31284 tongyi运费
61+55+77+3+53+4+160 = 413nashiga工资
413 * 20
tongyi货款
3970+1000+12487+4200+1000+11800+7400+605
42462+31284
73746/2
102494-36873+2435-3040+9010-200+4900
102494-36873+2435+3040-9010-200+4900
78726-66786
nashiga货款
400+4470
4870/2
tongyi运费
6080/2
tongyi收款
376+300+225
901*20
18020/2
tongyi工资
400
nashiga工资
1540+8260
#### 出账
##### 货款
###### amex
Oamex:: 2013
###### tongyi
Otongyi:: 7830
7830
###### nashiga
Onashiga::
##### 消耗
###### tongyi
Utongyi::
###### nashiga
Unashiga::
##### 工资
###### tongyi
Stongyi:: 2000
###### nashiga
Snashiga::
#### 入账
###### tongyi
Inashiga:: 2223
188+46+85+97+117+87+178+300+158+132+240+485+110
Itongyi:: 1406
400+58+144+92+179+58+185+68+222
```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