{{ pageTitle }}
{{ syncStatusText }}
⬆️ 12%
{{ statistics.totalCoils }}
在库卷数
⬆️ 8%
{{ formatNumber(statistics.totalWeight) }} 吨
总库存重量
¥{{ formatNumber(statistics.totalTransportFee) }}
总运费
{{ statistics.unitCount }}
供应商单位
📈 最近入库趋势(近 {{ dashboardInboundTrendDays }} 天)
🕐 最近入库
e.currentTarget.style.boxShadow = '0 4px 12px rgba(0,0,0,0.1)'"
@mouseleave="(e) => e.currentTarget.style.boxShadow = '0 2px 4px rgba(0,0,0,0.05)'"
>
{{ item.unit }}
{{ item.status === 1 ? '在库' : '已出库' }}
{{ formatDate(item.in_date) }}
批号:
{{ item.batch_no }}
材质:
{{ item.material }}
规格:
{{ item.specification }}
重量:
{{ parseFloat(parseFloat(item.weight).toFixed(3)) }} 吨
库位:
{{ item.storage_location || '-' }}
产地:
{{ item.origin || '-' }}
{{ statistics.totalCoils }}
在库卷数
{{ formatNumber(statistics.totalWeight) }} 吨
总库存重量
{{ statistics.unitCount }}
供应商单位
¥{{ formatNumber(statistics.totalTransportFee) }}
总运费
热卷库存总览
🔍 库存查询条件
{{ queryFormCollapsed ? '点击展开 ▼' : '点击收起 ▲' }}
共找到 {{ (filteredInventory || []).length }} 卷热卷
共找到 {{ (filteredInventory || []).length }} 卷热卷,总重量 {{ totalFilteredWeight }} 吨,总垫付金额 ¥{{ Number(totalFilteredAdvancePayment).toLocaleString() }}
e.currentTarget.style.boxShadow = '0 4px 12px rgba(0,0,0,0.1)'"
@mouseleave="(e) => e.currentTarget.style.boxShadow = '0 2px 4px rgba(0,0,0,0.05)'"
>
加入出库
编辑
查看出库明细
删除
#{{ item.id }}
✕
{{ getOutTypeName(record.out_type) }}
{{ item._is_transferred ? item._original_unit : item.unit }}
{{ item.status === 1 ? '在库' : '已出库' }}
已转让 → {{ item._transferred_to_unit }}
批号:
{{ item.batch_no }}
材质:
{{ item.material }}
规格:
{{ item.specification }}
产地:
{{ item.origin || '-' }}
入库时间:
{{ formatDate(item.in_date) }}
入库:
{{ parseFloat(parseFloat(item.weight).toFixed(3)) }} 吨
|
已出:
{{ parseFloat(item._outbound_weight).toFixed(3) }} 吨
|
剩余:
{{ parseFloat(item._remaining_weight).toFixed(3) }} 吨
库位:
{{ item.storage_location || '-' }}
车号:
{{ item.vehicle_no || '-' }}
运费:
{{ item.transport_fee ? '¥' + item.transport_fee.toLocaleString() : '-' }}
垫付:
{{ item.advance_payment ? '¥' + item.advance_payment.toLocaleString() : '-' }}
备注:
{{ item.remark || '-' }}
📤 转让信息:
原归属单位:
{{ item._original_unit }}
现归属单位:
{{ item._transferred_to_unit }}
转让时间:
{{ formatDate(item._transfer_date) }}
转让原因:
{{ item._transfer_reason }}
📋
出库明细
批号:{{ selectedOutboundDetailItem.batch_no }}
📦 库存基本信息
单位:
{{ selectedOutboundDetailItem.unit }}
材质:
{{ selectedOutboundDetailItem.material }}
规格:
{{ selectedOutboundDetailItem.specification }}
产地:
{{ selectedOutboundDetailItem.origin || '-' }}
入库重量:
{{ parseFloat(parseFloat(selectedOutboundDetailItem.weight).toFixed(3)) }} 吨
已出库:
{{ parseFloat(selectedOutboundDetailItem._outbound_weight).toFixed(3) }} 吨
剩余重量:
{{ parseFloat(selectedOutboundDetailItem._remaining_weight).toFixed(3) }} 吨
入库日期:
{{ formatDate(selectedOutboundDetailItem.in_date) }}
库存状态:
{{ selectedOutboundDetailItem.status === 1 ? '在库' : '已出库' }}
📝 出库记录(共 {{ (matchedOutboundRecords || []).length }} 条)
🚛
出库单号:{{ record.ref_no }}
出库时间:{{ formatDateTime(record.created_at) }}
出库重量:
{{ parseFloat(parseFloat(record.out_weight).toFixed(3)) }} 吨
库存重量:
{{ record.stock_weight ? parseFloat(parseFloat(record.stock_weight).toFixed(3)) + ' 吨' : '-' }}
出库日期:
{{ formatDate(record.out_date) }}
出库车号:
{{ record.vehicle_no || '-' }}
出库单价:
{{ record.unit_price ? '¥' + parseFloat(record.unit_price).toFixed(2) + ' /吨' : '-' }}
总金额:
{{ record.total_amount ? '¥' + Math.ceil(record.total_amount).toLocaleString() : '-' }}
备注:
{{ record.remark }}
📭
暂未找到出库记录
该库存可能还未进行出库操作
📦
暂无库存数据
尝试调整搜索条件或添加新的入库记录
➕ 热卷入库登记
已使用 {{ getUnitUsage(u) }} 次
🔍无匹配单位,可直接输入新单位
➖ 出库制单
出库批号列表
合{{ (row.advance_payment / row.out_weight).toFixed(2) }}元/吨
无
{{ row.batch_no }}
删除
材质{{ row.material }}
规格{{ row.specification }}
库存重量{{ parseFloat(parseFloat(row.stock_weight).toFixed(3)) }} 吨
总价{{ row.unit_price && row.out_weight ? `¥${Math.ceil((parseFloat(row.unit_price) || 0) * (parseFloat(row.out_weight) || 0)).toLocaleString()}` : '0' }}
垫付{{ row.advance_payment ? `¥${row.advance_payment.toLocaleString()}` : '无' }}
运费{{ row.transport_fee ? `¥${row.transport_fee.toLocaleString()}` : '无' }}
出库重量
单价
{{ outboundForm.unit }} - 在库批号列表 (可多选)
{{ batch.batch_no }} - 规格: {{ batch.specification }} - 材质: {{ batch.material }}
- 剩余: {{ parseFloat(batch._remaining_weight).toFixed(3) }}吨 / 入库: {{ parseFloat(parseFloat(batch.weight).toFixed(3)) }}吨
- 重量: {{ parseFloat(parseFloat(batch.weight).toFixed(3)) }}吨
- 库位: {{ batch.storage_location }} - 入库时间: {{ formatDate(batch.in_date) }} - 运费: {{ batch.transport_fee ? '¥' + batch.transport_fee.toLocaleString() : '-' }} - 垫付: {{ batch.advance_payment ? '¥' + batch.advance_payment.toLocaleString() : '-' }}
备注: {{ batch.remark }}
该单位暂无在库热卷
总出库批号数:{{ (outboundForm.batchItems || []).length }} 个
总出库重量:{{ totalOutboundWeight }} 吨
出库总金额:¥ {{ Math.ceil(totalAmount).toLocaleString() }}
📦
暂无出库批号
请从上方选择单位并添加批号到出库列表
🔍 高级筛选 {{ filterPanelExpanded ? '▲ 收起' : '▼ 展开' }}
{{ activeFilterCount }} 个条件已激活
⏰ 时间范围
📦 出库类型
🏢 单位
已使用 {{ getUnitUsage(u) }} 次
🔍无匹配单位
🔎 关键词搜索
📋 按出库类型分组统计
| 出库类型 | 记录数 | 总重量(吨) | 总金额(元) | 平均重量(吨) | 占比 |
|---|---|---|---|---|---|
| {{ group.recordCount }} | {{ group.totalWeight.toLocaleString() }} | ¥{{ group.totalAmount.toLocaleString() }} | {{ (group.recordCount > 0 ? (group.totalWeight / group.recordCount) : 0).toFixed(3) }} |
|
|
| 合计 | {{ (enhancedStats || {}).recordCount }} | {{ ((enhancedStats || {}).totalWeight || 0).toLocaleString() }} | ¥{{ ((enhancedStats || {}).totalAmount || 0).toLocaleString() }} | {{ ((enhancedStats || {}).avgWeight || 0).toFixed(3) }} | 100% |
📋 出库记录
| 出库单号 | 出库日期 | 出库类型 | 单位 | 批号 | 规格 | 材质 | 出库重量(吨) | 单价(元/吨) | 金额(元) | 车号 | 备注 | 操作 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ item.ref_no }} | {{ item.out_date || formatDate(item.created_at) }} |
|
{{ item.unit }} | {{ batch.batch_no }} | {{ batch.specification || '-' }} | {{ batch.material || '-' }} | {{ batch.out_weight != null ? Number(batch.out_weight).toLocaleString(undefined, { minimumFractionDigits: 3, maximumFractionDigits: 3 }) : '-' }} | {{ batch.unit_price != null ? Number(batch.unit_price).toLocaleString(undefined, { minimumFractionDigits: 1, maximumFractionDigits: 1 }) : '-' }} | {{ batch.total_amount != null ? Math.ceil(Number(batch.total_amount)).toLocaleString() : '-' }} | {{ item.vehicle_no || '-' }} | {{ item.remark || '-' }} |
|
e.currentTarget.style.boxShadow = '0 4px 12px rgba(0,0,0,0.1)'"
@mouseleave="(e) => e.currentTarget.style.boxShadow = '0 2px 4px rgba(0,0,0,0.05)'"
>
↩️ 撤销
🖨️ 补打票
编辑
出库单号 {{ item.ref_no }}
出库
{{ getOutTypeName(item.out_type) }}
{{ opt.type_name }}
基本信息
单位:
{{ item.unit }}
▼
出库时间:{{ formatDateTime(item.created_at) }}
装货车辆:{{ item.vehicle_no || '-' }}
备注:{{ item.remark || '-' }}
总重量:{{ (item.batchItems && item.batchItems.length > 0) ? `${parseFloat(item.batchItems.reduce((sum, batch) => sum + (parseFloat(batch.out_weight) || 0), 0).toFixed(3)).toLocaleString(undefined, {minimumFractionDigits: 3, maximumFractionDigits: 3})} 吨` : '-' }}
总价:{{ (item.batchItems && item.batchItems.length > 0) ? `¥${Math.ceil(item.batchItems.reduce((sum, batch) => sum + (parseFloat(batch.total_amount) || 0), 0)).toLocaleString()}` : (item.total_amount !== undefined && item.total_amount !== null ? `¥${Math.ceil(Number(item.total_amount)).toLocaleString()}` : '未记录') }}
批次明细
批号:
{{ batch.batch_no }}
▼
规格:{{ batch.specification || '-' }}
材质:{{ batch.material || '-' }}
重量:{{ batch.out_weight != null ? `${Number(batch.out_weight).toLocaleString(undefined, {minimumFractionDigits: 3, maximumFractionDigits: 3})} 吨` : '-' }}
单价:{{ batch.unit_price != null ? `¥${Number(batch.unit_price).toLocaleString(undefined, {minimumFractionDigits: 1, maximumFractionDigits: 1})}/吨` : '-' }}
总价:{{ batch.total_amount != null ? `¥${Math.ceil(Number(batch.total_amount)).toLocaleString()}` : '-' }}
📦
暂无出库记录
系统中还没有任何出库记录
应收账款
功能开发中...
销售订单
功能开发中...
客户管理
功能开发中...
📅 每日记账
¥ {{ formatFinanceNumber(currentDaily.total_income) }}
当日收入
¥ {{ formatFinanceNumber(currentDaily.total_expense) }}
当日支出
¥ {{ formatFinanceNumber(currentDaily.total_income - currentDaily.total_expense) }}
当日净额
{{ currentDaily.total_transactions }}
交易笔数
已关闭
当日交易明细
加载中...
| 交易时间 | 单号 | 摘要 | 金额 | 状态 | 操作 |
|---|---|---|---|---|---|
| {{ formatFinanceDateTime(row.transaction_time || row.transaction_date, row) }} | {{ row.ref_no }} | {{ row.description }} | {{ row.transaction_type === '收入' ? '+' : '-' }}¥ {{ formatFinanceNumber(row.total_amount) }} | {{ getFinanceStatusText(row.status) }} | |
| 暂无交易记录 | |||||
📒 总账管理
筛选汇总
收入合计:
¥ {{ formatFinanceNumber(ledgerSummary.income) }}
支出合计:
¥ {{ formatFinanceNumber(ledgerSummary.expense) }}
净收入:
{{ ledgerSummary.netIncome >= 0 ? '+' : '' }}¥ {{ formatFinanceNumber(ledgerSummary.netIncome) }}
共 {{ ledgerSummary.count }} 条记录
| 序号 | 日期 | 凭证号 | 摘要 | 金额 | 状态 | 操作 |
|---|---|---|---|---|---|---|
| {{ (ledgerPagination.current - 1) * ledgerPagination.size + index + 1 }} | {{ row.transaction_date }} | {{ row.ref_no }} | {{ row.description }} | {{ row.transaction_type === '收入' ? '+' : '-' }}¥ {{ formatFinanceNumber(row.total_amount) }} | {{ getFinanceStatusText(row.status) }} | |
| 暂无账务记录 | ||||||
第 {{ ledgerPagination.current }} / {{ Math.ceil(ledgerPagination.total / ledgerPagination.size) }} 页
📈 财务报表
正在加载财务数据...
数据加载失败: {{ dashboardError }}
出库总额:
¥ {{ formatNumber(dashboardData.totalExpense) }}
(共 {{ dashboardData.transactionCount }} 条记录)
{{ dashboardData.dateRange }}
¥ {{ formatNumber(dashboardData.currentMonthReceipts) }}
收款总额
¥ {{ formatNumber(dashboardData.totalExpense) }}
总支出
¥ {{ formatNumber(dashboardData.netIncome) }}
净收入
{{ dashboardData.transactionCount }}
交易笔数
今日 {{ dashboardData.todayCount }} 笔
财务趋势分析
收入构成分析
收支对比分析
📥 入库分析
正在加载入库数据...
📦
{{ inboundAnalysis.totalCount }}
入库总卷数
⚖️
{{ (inboundAnalysis.totalWeight || 0).toFixed(2) }}
入库总重量(吨)
📐
{{ (inboundAnalysis.specsData || []).length }}
规格种类
🔧
{{ (inboundAnalysis.materialsData || []).length }}
材质种类
📊 规格分类占比
🔧 材质分类占比
📈 月度入库趋势
📋 入库明细
| 批号 | 规格 | 材质 | 重量(吨) | 入库日期 | 单位 |
|---|---|---|---|---|---|
| {{ item.batch_no || '-' }} | {{ item.specification || '-' }} | {{ item.material || '-' }} | {{ parseFloat(item.weight || 0).toFixed(3) }} | {{ item.in_date || '-' }} | {{ item.unit || '-' }} |
🔧 打印服务器设置
{{ wsServerUrl }}
{{ wsStatus === 'connected' ? '已连接' : wsStatus === 'connecting' ? '连接中...' : '未连接' }}
{{ onlinePrinters.length }} 台打印机在线
⚠️
重要提示:
- 修改服务器地址后,当前连接将断开
- 系统将尝试使用新地址重新连接
- 请确保新地址正确且可访问
货权转移历史
暂无转移记录
📷 图片预览
点击图片或按 ESC 键关闭
总数
{{ userViewInventoryStats.totalBatches }}
总重量(吨)
{{ userViewInventoryStats.totalWeight }}
在库数
{{ userViewInventoryStats.inStock }}
已出库数
{{ userViewInventoryStats.outStock }}
已转让给 {{ row._transferredTo }}
{{ formatDateTime(row._transferDate) }}
{{ formatDateTime(row.lastTransfer.transfer_date) }}
{{ row.lastTransfer.from_unit }} → {{ row.lastTransfer.to_unit }}
暂无数据
暂无出库记录
暂无转让记录
总数
{{ inventoryStats.totalBatches }}
总重量(吨)
{{ inventoryStats.totalWeight }}
在库数
{{ inventoryStats.inStock }}
已出库数
{{ inventoryStats.outStock }}
已转让给 {{ row._transferredTo }}
{{ formatDateTime(row._transferDate) }}
{{ formatDateTime(row.lastTransfer.transfer_date) }}
{{ row.lastTransfer.from_unit }} → {{ row.lastTransfer.to_unit }}
暂无数据
暂无转让记录
虚拟库存总数
{{ virtualInventoryStats.totalBatches }}
总重量(吨)
{{ virtualInventoryStats.totalWeight }}
可用数
{{ virtualInventoryStats.available }}
已锁定
{{ virtualInventoryStats.locked }}
暂无虚拟库存数据
请从上方选择用户组以编辑其权限
⚙️ 系统设置
👷 加工班组备注设置
💡 设置的备注会显示在加工小程序的各班组卡片下方,供加工人员参考。