CaiWuXiTong/modules/EcommerceFinance/Models/JianSun/SupplierGoodsSttlementPurchase.php
WuYongJie e5c068036b feat: 供应商应付 - 货款对账 + 5个子功能页面
新增功能页面:
- 货款对账 (payment-reconciliation): 入库+代发合并对账,228K+2.8M条记录
- 退货对账 (return-reconciliation): finance_purchaseReturn, 36791行
- 发票扣款 (invoice-deductions): finance_invoiceDeduction, 195行
- 赔偿明细 (compensation-details): 纸板厂+压板厂 UNION, 98行
- 借支明细 (advance-details): finance_advanceLoans, 4行
- 样品扣款 (sample-deductions): finance_sampleDeduction, 12行

后端:
- JianSunConnection: PDO_ODBC 直连 SQL Server
- SupplierPayableRepository: 5个子页面的数据查询+分页
- GoodsReconciliationRepository: 货款对账数据查询
- 15个新API路由 (supplier-payables/*)
- 12个JianSun Eloquent模型

前端:
- 6个Blade视图 + 6个Vue组件
- webpack.mix.js 新增5个编译入口
- show.blade.php 动态视图解析
2026-07-21 18:40:24 +08:00

50 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Modules\EcommerceFinance\Models\JianSun;
/**
* 供应商采购结算明细表
* fys_supplierGoods_sttlement_purchase
*
* 采购入库结算明细,包含每个SKU的结算数量和价格。
* 是货款对账页面"入库记录"的核心数据源(228,039条)。
*
* @property int $Id
* @property string $created 创建时间
* @property int $stock 入库数量
* @property int $settlementStock 结算数量
* @property float $singlePrice 单价
* @property float $settlementPrice 结算价格
* @property string $priceType 价格类型
* @property string $ownername 货主
* @property string $scmname 供应商名称
* @property string $procode 货号
* @property string $whname 仓库名称
* @property string $skuoid 商品编码
* @property string $skuname 规格名称
* @property string $bizpo 业务采购单号
* @property string $spo 采购单号
* @property string $remark 备注
*/
class SupplierGoodsSttlementPurchase extends JianSunModel
{
protected $table = 'fys_supplierGoods_sttlement_purchase';
protected $primaryKey = 'Id';
protected $fillable = [
'created', 'stock', 'settlementStock', 'singlePrice', 'settlementPrice',
'priceType', 'ownername', 'scmname', 'procode', 'whname',
'skuoid', 'skuname', 'bizpo', 'spo', 'remark', 'createTime',
];
protected $casts = [
'stock' => 'integer',
'settlementStock' => 'integer',
'singlePrice' => 'decimal:2',
'settlementPrice' => 'decimal:2',
'created' => 'datetime',
'createTime' => 'datetime',
];
}