diff --git a/static/modules/plan.js b/static/modules/plan.js index 0528752..e4d8f5c 100644 --- a/static/modules/plan.js +++ b/static/modules/plan.js @@ -257,9 +257,9 @@ function renderPlan() { { label: '已确收', hideUnsigned: true, value: ctx => moneyWan(ctx.sumRev), color: 'text-blue-700' }, { label: '待回款', hideUnsigned: true, value: ctx => { const v = ctx.sumRev - ctx.sumPay; return { val: v < 0 ? '超额回款 ' + moneyWan(Math.abs(v)) : moneyWan(v), cls: v > 0 ? 'text-red-600' : v < 0 ? 'text-green-600' : 'text-slate-400' }; }, color: null }, { label: '毛利', value: ctx => moneyWan(ctx.sumGross), color: 'text-green-700' }, - { label: '成本(不含平台费用)', value: ctx => moneyWan(ctx.sumCost), color: 'text-rose-700' }, + { label: '当期成本(不含平台费用)', value: ctx => moneyWan(ctx.sumCost), color: 'text-rose-700' }, { label: '回款', hideUnsigned: true, value: ctx => moneyWan(ctx.sumPay), color: 'text-amber-700' }, - { label: '已付', hideUnsigned: true, value: ctx => moneyWan(ctx.sumPaid), color: 'text-purple-700' }, + { label: '当期流出', hideUnsigned: true, value: ctx => moneyWan(ctx.sumPaid), color: 'text-purple-700' }, { label: '现金流(回款-支出)', hideUnsigned: true, value: ctx => { const v = ctx.sumPay - ctx.sumPaid; return { val: moneyWan(v), cls: v >= 0 ? 'text-green-600' : 'text-red-600' }; }, color: null }, { label: '毛利率', hideUnsigned: true, value: ctx => ctx.sumRev && ctx.sumGross ? Math.round(ctx.sumGross / ctx.sumRev * 100) + '%' : '—', color: 'text-slate-500' }, { label: '回款率', hideUnsigned: true, value: ctx => ctx.sumRev && ctx.sumPay ? Math.round(ctx.sumPay / ctx.sumRev * 100) + '%' : '—', color: 'text-slate-500' }, @@ -307,9 +307,8 @@ function renderPlan() { { key: 'gross_rate', label: '毛利率' }, { key: 'payment', label: '回款' }, { key: 'pay_rate', label: '回款率' }, - { key: 'cost', label: '成本' }, - { key: 'paid', label: '付款' }, - { key: 'paid_rate', label: '付款率' }, + { key: 'cost', label: '当期成本' }, + { key: 'paid', label: '当期流出' }, { key: 'cashflow', label: '现金流' }, { key: 'pending', label: '待回款' }, ]; @@ -321,7 +320,7 @@ function renderPlan() { { key: 'sign_amount', label: '签约金额' }, { key: 'sign_month', label: '签约月份' }, { key: 'gross', label: '毛利' }, - { key: 'cost', label: '成本' }, + { key: 'cost', label: '当期成本' }, { key: 'profit', label: '项目利润' }, ]; @@ -332,7 +331,7 @@ function renderPlan() { return typeof v === 'object' ? [c.label, v.val, v.cls] : [c.label, v, c.color]; }); const thead = isUnsigned ? buildThead(UNSIGNED_COLS, 'uns') : buildThead(SIGNED_COLS, 'sig'); - const theadCols = isUnsigned ? 9 : 14; + const theadCols = isUnsigned ? 9 : 13; const tbody = rows.length ? `
${rows.join("")}` : `| 月份 | 确收 | 毛利 | 回款 | 成本 | 支出 | 现金流 | 待回款 |
|---|
| 月份 | 确收 | 毛利 | 回款 | 当期成本 | 当期流出 | 现金流 | 待回款 |
|---|
OPC Manager v1.2.0.19
+OPC Manager v1.2.0.20