项目管理V1
项目概览与数据统计
销售总额
未收货款
税后利润
利润百分比
我的利润
项目汇总 (共 {{ filteredDashboardProjects.length }} 个)
| 项目名称 | 客户 | 状态 | 销售金额 | 客户已付 | 成本金额 | 税后利润 | 分成方式 | 我的利润 | 生成日期 | 完成日期 | 发票状态 | 备注 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ p.name }} | {{ p.client }} | {{ p.status }} | ¥{{ formatNumber(p.sales_amount) }} | ¥{{ formatNumber(p.paid_amount) }} | ¥{{ formatNumber(p.cost_amount) }} | ¥{{ formatNumber(p.after_tax_profit) }} | {{ p.split_method || '-' }} | ¥{{ formatNumber(p.split_method === '不分成' ? (Number(p.after_tax_profit) - Number(p.client_rebate || 0)) : Number(p.my_split)) }} | {{ formatDate(p.created_date) }} | {{ formatDate(p.completion_date) }} | {{ p.invoice_status || '未开票' }} | |
| 暂无项目 | ||||||||||||
项目列表
管理所有项目
| 项目名称 | 客户 | 状态 | 销售金额 | 客户已付 | 成本金额 | 税后利润 | 分成方式 | 我的利润 | 生成日期 | 完成日期 | 发票状态 | 备注 | 操作 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ p.name }} | {{ p.client || '-' }} | {{ p.status }} | ¥{{ formatNumber(p.sales_amount) }} | ¥{{ formatNumber(p.paid_amount) }} | ¥{{ formatNumber(p.cost_amount) }} | ¥{{ formatNumber(p.after_tax_profit) }} | {{ p.split_method || '-' }} | ¥{{ formatNumber(p.split_method === '不分成' ? (Number(p.after_tax_profit) - Number(p.client_rebate || 0)) : Number(p.my_split)) }} | {{ formatDate(p.created_date) }} | {{ formatDate(p.completion_date) }} | {{ p.invoice_status || '未开票' }} | 📅 🧾发票 | |
📭 暂无项目 |
|||||||||||||
客户资料
| 客户名称 | 公司 | 联系人 | 电话 | 微信 | 地址 | 备注 | 操作 |
|---|---|---|---|---|---|---|---|
| {{ c.name }} | {{ c.company || '-' }} | {{ c.contact || '-' }} | {{ c.phone || '-' }} | {{ c.wechat || '-' }} | {{ c.address || '-' }} | {{ c.notes || '-' }} | |
| 暂无客户资料 | |||||||
供应商管理
| 供应商名称 | 公司 | 类别 | 联系人 | 电话 | 微信 | 地址 | 备注 | 操作 |
|---|---|---|---|---|---|---|---|---|
| {{ s.name }} | {{ s.company || '-' }} | {{ s.category || '-' }} | {{ s.contact || '-' }} | {{ s.phone || '-' }} | {{ s.wechat || '-' }} | {{ s.address || '-' }} | {{ s.notes || '-' }} | |
| 暂无供应商资料 | ||||||||
发货管理
| 发货单号 | 项目名称 | 客户 | 发货日期 | 产品名 | 数量 | 物流公司 | 快递单号 | 收件人 | 状态 | 签收日期 | 快递运费 | 备注 | 操作 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ s.shipment_no }} | {{ s.project_name }} | {{ s.project_client || '-' }} | {{ formatDate(s.shipment_date) }} | {{ s.product_name || '-' }} | {{ s.quantity || '-' }} | {{ s.logistics_company || '-' }} | {{ s.tracking_no || '-' }} | {{ s.receiver || '-' }} | {{ s.status }} | {{ formatDate(s.signed_time) }} | {{ s.shipping_fee ? '¥' + Number(s.shipping_fee).toFixed(2) : '-' }} | ||
| 暂无发货记录 | |||||||||||||
🚚 顺丰寄件
{{ sfResult }}
🔍 物流查询
{{ JSON.stringify(sfRoutesResult.raw, null, 2) }}
📦 截单转寄退回
{{ JSON.stringify(sfInterceptResult.raw, null, 2) }}
用户管理
| ID | 用户名 | 昵称 | 角色 | 状态 | 权限 | 创建日期 | 操作 |
|---|---|---|---|---|---|---|---|
| {{ u.id }} | {{ u.username }} | {{ u.nickname || '-' }} | {{ u.role === 'admin' ? '管理员' : '普通用户' }} | {{ u.is_active ? '启用' : '禁用' }} |
管理员拥有所有权限
菜单: {{ u.permissions.menus.join(', ') }}
无菜单权限
项目: 全部 项目: {{ u.permissions.projects.length }}个(可编辑{{ u.permissions.projects.filter(p=>p.can_edit).length }}个) 无项目权限 |
{{ formatDate(u.created_at) }} | |
| 暂无用户 | |||||||
项目源码
📦 鼎沛文化 · 项目管理系统
| 版本 | {{ versionInfo.version }} |
| 前端 | Vue.js 3 + 纯CSS |
| 后端 | Node.js + Express |
| 数据库 | MySQL 8.0 |
| 更新日期 | {{ versionInfo.date }} |
📋 包含内容
app.js
style.css
sf-api.js
package.json
(建表+数据)
🚀 部署步骤
mysql -u root -p 数据库名 < dingpei_project.sqlnpm installnode server.js📝 更新日志
- {{ change }}
🚀 一键打包发布
短信记录
暂无短信记录
在项目详情中点击"发短信"按钮给客户发送短信
| 时间 | 手机号 | 项目 | 客户 | 模板 | 内容 | 状态 | 发送人 |
|---|---|---|---|---|---|---|---|
| {{ log.created_at ? log.created_at.replace('T', ' ').substring(0, 16) : '-' }} | {{ log.phone_number }} | {{ log.project_name || '-' }} | {{ log.client_name || '-' }} | {{ log.template_name || '-' }} | ✅ 成功 ❌ 失败 ⏳ 待发送 | {{ log.sender || '-' }} |
📌 重大事件公告栏
共 {{ eventsTotalItems }} 项待办需要关注{{ currentProject.project.name }}
{{ currentProject.project.client || '未设客户' }} · {{ currentProject.project.status }}项目汇总
跟进事项
- {{ f.content }}
暂无跟进事项
产品明细({{ currentProject.products.length }}项)
| 排序 | 产品 | 数量 | 销单价 | 前样品费 | 销打样费 | 销运费 | 销金额 | 成单价 | 前期费 | 工厂打样 | 成运费 | 成金额 | 利润 | 打样工期 | 大货工期 | 供应商 | 发票 | 备注 | 操作 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ pr.name }} | {{ pr.quantity }} | {{ formatNumber(pr.sales_unit_price) }} | {{ formatNumber(pr.pre_sample_fee) }} | {{ formatNumber(pr.sales_sample_fee) }} | {{ formatNumber(pr.sales_freight) }} | {{ formatNumber(pr.sales_amount) }} | {{ formatNumber(pr.cost_unit_price) }} | {{ formatNumber(pr.pre_cost_fee) }} | {{ formatNumber(pr.factory_sample) }} | {{ formatNumber(pr.cost_freight) }} | {{ formatNumber(pr.cost_amount) }} | {{ formatNumber(pr.profit) }} | {{ pr.sample_lead_time || '-' }} | {{ pr.bulk_lead_time || '-' }} | {{ pr.supplier || '-' }} | {{ pr.invoice_status || '-' }} | {{ pr.notes || '-' }} | ||
| 合计 | {{ currentProject.products.reduce((s,p) => s + (parseFloat(p.quantity)||0), 0) }} | ¥{{ formatNumber(projectProductsTotal.pre_sample_fee) }} | ¥{{ formatNumber(projectProductsTotal.sales_sample_fee) }} | ¥{{ formatNumber(projectProductsTotal.sales_freight) }} | ¥{{ formatNumber(projectProductsTotal.sales_amount) }} | ¥{{ formatNumber(projectProductsTotal.pre_cost_fee) }} | ¥{{ formatNumber(projectProductsTotal.factory_sample) }} | ¥{{ formatNumber(projectProductsTotal.cost_freight) }} | ¥{{ formatNumber(projectProductsTotal.cost_amount) }} | ¥{{ formatNumber(projectProductsTotal.profit) }} | |||||||||
| 暂无产品明细 | |||||||||||||||||||
合同管理({{ (currentProject.contracts || []).length }}份)
| 合同编号 | 合同名称 | 甲方 | 乙方 | 签署日期 | 金额 | 状态 | 合同文件 | 操作 |
|---|---|---|---|---|---|---|---|---|
| {{ c.contract_no }} | {{ c.contract_name || '-' }} | {{ c.party_a || '-' }} | {{ c.party_b || '-' }} | {{ formatDate(c.sign_date) }} | ¥{{ formatNumber(c.amount) }} | {{ c.status }} | 查看 - | |
| 暂无合同记录 | ||||||||
发货记录({{ (currentProject.shipments || []).length }}次)
| 发货单号 | 发货日期 | 产品名 | 数量 | 物流公司 | 快递单号 | 收件人 | 状态 | 签收日期 | 快递运费 | 备注 | 操作 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ s.shipment_no }} | {{ formatDate(s.shipment_date) }} | {{ s.product_name || '-' }} | {{ s.quantity || '-' }} | {{ s.logistics_company || '-' }} | {{ s.tracking_no || '-' }} | {{ s.receiver || '-' }} | {{ s.status }} | {{ formatDate(s.signed_time) }} | {{ s.shipping_fee ? '¥' + Number(s.shipping_fee).toFixed(2) : '-' }} | ||
| 暂无发货记录 | |||||||||||
| 合计 | {{ currentProject.shipments.reduce((sum, s) => sum + (Number(s.quantity) || 0), 0) }} | 共 {{ currentProject.shipments.filter(s => s.tracking_no).length }} 张快递单 | |||||||||
🧾 公司发票账单
应收应付管理 · 汇总报表 · 税务估算
| 开票主体 | 类型 | 发票种类 | 项目 | 发票号 | 标题 | 金额 | 税率 | 税额 | 价税合计 | 状态 | 开票日期 | 已收/付 | 操作 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ inv.billing_entity||'-' }} | {{ inv.category }} | {{ inv.invoice_type || '普票' }} | {{ inv.project_name||'-' }} | {{ inv.invoice_no||'-' }} | {{ inv.title||'-' }} | {{ fmtInv(inv.amount) }} | {{ inv.tax_rate }}% | {{ fmtInv(inv.tax_amount) }} | {{ fmtInv(inv.total_amount) }} | {{ inv.status }} | {{ inv.invoice_date||'-' }} | {{ fmtInv(inv.received_amount) }} | |
| 合计({{ invFiltered.length }} 笔) | {{ fmtInv(invRowSum.amount) }} | - | {{ fmtInv(invRowSum.tax) }} | {{ fmtInv(invRowSum.total) }} | - | {{ fmtInv(invRowSum.received) }} | |||||||
📋 暂无发票记录
📊 季度汇总
| 季度 | 类型 | 笔数 | 不含税 | 税额 | 价税合计 | 已结算 | 待处理 |
|---|---|---|---|---|---|---|---|
| {{ r.quarter }} | {{ r.category }} | {{ r.count }} | {{ fmtInv(r.total_amount) }} | {{ fmtInv(r.total_tax) }} | {{ fmtInv(r.total_with_tax) }} | {{ fmtInv(r.received_total) }} | {{ fmtInv(r.pending_total) }} |
📅 月度趋势
| 月份 | 类型 | 笔数 | 金额 | 已结算 | 待处理 |
|---|---|---|---|---|---|
| {{ m.month }} | {{ m.category }} | {{ m.count }} | {{ fmtInv(m.total) }} | {{ fmtInv(m.received) }} | {{ fmtInv(m.pending) }} |
📁 按项目汇总
| 项目 | 客户 | 类型 | 笔数 | 金额 | 已结算 | 待处理 |
|---|---|---|---|---|---|---|
| {{ p.project_name||'-' }} | {{ p.client||'-' }} | {{ p.category }} | {{ p.count }} | {{ fmtInv(p.total) }} | {{ fmtInv(p.received) }} | {{ fmtInv(p.pending) }} |
🏢 按主体汇总
| 开票主体 | 类型 | 笔数 | 金额 | 已结算 | 待处理 |
|---|---|---|---|---|---|
| {{ e.billing_entity }} | {{ e.category }} | {{ e.count }} | {{ fmtInv(e.total) }} | {{ fmtInv(e.received) }} | {{ fmtInv(e.pending) }} |
📊 {{ invRptYear }}年暂无数据
📐 企业所得税估算({{ invTaxYear }}年)
💰 增值税及附加税费估算
📅 各季度增值税明细
| 季度 | 开票总额 | 普票金额 | 专票金额 | ≤30万? | 增值税 | 附加税费 | 税费合计 |
|---|---|---|---|---|---|---|---|
| {{ q.quarter }} | {{ fmtInv(q.total) }} | {{ fmtInv(q.normalTotal) }} | {{ fmtInv(q.specialTotal) }} | {{ q.isExempt ? '✅' : '❌' }} | {{ fmtInv(q.vatPayable) }} | {{ fmtInv(q.surtax) }} | {{ fmtInv(q.totalTaxVat) }} |
暂无增值税数据
📊 跨季度调整记录 (按年份+季度管理,影响企业所得税计算)
| 年份 | 季度 | 开票主体 | 调整类型 | 金额 | 备注 | 操作 |
|---|---|---|---|---|---|---|
| {{ a.year }} | Q{{ a.quarter }} | {{ a.billing_entity }} | {{ a.adj_type }} | {{ a.adj_type==='预估未开票支出'?'-':'+' }}¥{{ fmtInv(a.amount) }} |
暂无调整记录,点击"+ 新增调整"按钮添加(可指定任意年份和季度)
1. 小规模纳税人征收率1%(原3%,减按1%至2027年底);
2. 季度销售额≤30万:普票免征增值税,专票仍需缴纳;
3. 季度销售额>30万:全部发票均需缴纳增值税;
4. 附加税费=增值税×6%(城建税7%+教育费附加3%+地方教育附加2%,小规模减半);
5. 企业所得税:小型微利企业(年所得≤300万)实际税负5%;
6. 以上为系统估算,实际以税务申报为准。
新增跨季度调整
{{ invIsEdit?'编辑':'新增' }}发票/账单
💰 员工工资管理
工资发放记录 · 汇总报表
| 姓名 | 月份 | 主体 | 基本工资 | 社保公积金 | 奖金/补贴 | 扣款 | 实发 | 备注 | 操作 |
|---|---|---|---|---|---|---|---|---|---|
| {{ s.employee_name }} | {{ s.salary_month }} | {{ s.billing_entity||"-" }} | {{ fmtNum(s.base_salary) }} | {{ fmtNum(s.social_insurance) }} | {{ fmtNum(s.bonus) }} | {{ fmtNum(s.deductions) }} | {{ fmtNum(s.actual_pay) }} | {{ s.remark || '-' }} |
暂无工资记录
📅 月度汇总
| 月份 | 人数 | 基本工资 | 社保 | 奖金 | 扣款 | 实发合计 |
|---|---|---|---|---|---|---|
| {{ m.salary_month }} | {{ m.emp_count }} | {{ fmtNum(m.total_base) }} | {{ fmtNum(m.total_social) }} | {{ fmtNum(m.total_bonus) }} | {{ fmtNum(m.total_deduct) }} | {{ fmtNum(m.total_actual) }} |
👥 员工年度汇总
| 姓名 | 月数 | 基本工资 | 社保 | 实发合计 |
|---|---|---|---|---|
| {{ e.employee_name }} | {{ e.months }} | {{ fmtNum(e.total_base) }} | {{ fmtNum(e.total_social) }} | {{ fmtNum(e.total_actual) }} |
{{ salReportYear }}年暂无数据
{{ salIsEdit?'编辑':'新增' }}工资
📋 费用报销
报销记录 · 审批管理 · 汇总报表
| 姓名 | 日期 | 类别 | 事由 | 金额 | 状态 | 操作 |
|---|---|---|---|---|---|---|
| {{ e.employee_name }} | {{ e.expense_date }} | {{ e.category }} | {{ e.description || '-' }} | {{ fmtNum(e.amount) }} | {{ e.status }} |
暂无报销记录
📅 月度汇总
| 月份 | 笔数 | 金额 | 已报销 | 待处理 |
|---|---|---|---|---|
| {{ m.month }} | {{ m.cnt }} | {{ fmtNum(m.total) }} | {{ fmtNum(m.reimbursed) }} | {{ fmtNum(m.pending) }} |
📂 按类别汇总
| 类别 | 笔数 | 金额 |
|---|---|---|
| {{ c.category }} | {{ c.cnt }} | {{ fmtNum(c.total) }} |
👤 按人员汇总
| 姓名 | 笔数 | 金额 | 已报销 |
|---|---|---|---|
| {{ e.employee_name }} | {{ e.cnt }} | {{ fmtNum(e.total) }} | {{ fmtNum(e.reimbursed) }} |
{{ expReportYear }}年暂无数据