新增功能页面: - 货款对账 (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 动态视图解析
86 lines
3.4 KiB
PHP
86 lines
3.4 KiB
PHP
<?php
|
|
|
|
namespace Modules\EcommerceFinance\Models\JianSun;
|
|
|
|
/**
|
|
* 供应商付款汇总表
|
|
* fys_supplierPaymentSummary
|
|
*
|
|
* 核心对账数据源,每条记录代表一个供应商在某月份的应付汇总
|
|
*
|
|
* @property int $id
|
|
* @property string $company 公司
|
|
* @property string $supplier 供应商名称
|
|
* @property string $checker 对账人
|
|
* @property string $settleway 结算方式
|
|
* @property string $Month 对账月份
|
|
* @property float $ExpFieght 快递费
|
|
* @property float $bginMonthPay 月初应付
|
|
* @property float $unpriced 未定价
|
|
* @property float $advloan 预付
|
|
* @property float $loan 借款
|
|
* @property float $refund 退款
|
|
* @property float $procurement 采购
|
|
* @property float $invoiceDct 发票扣款
|
|
* @property float $boardDct 板材扣款
|
|
* @property float $specimenDct 样品扣款
|
|
* @property float $Totalindemnity 总赔偿
|
|
* @property float $other 其他
|
|
* @property float $supplySup 供应商补贴
|
|
* @property float $ShouldPay 应付金额
|
|
* @property float $factPay 实付金额
|
|
* @property float $guessPrice 预估金额
|
|
* @property float $toCorporate 到公账
|
|
* @property float $toPrivate 到私账
|
|
* @property string $remarks 备注
|
|
* @property string $reason 原因
|
|
* @property string $guid GUID
|
|
* @property int $isExamine 是否审核
|
|
* @property int $isPayment 是否付款
|
|
* @property string $scmcode 供应商编码
|
|
* @property int $supid 供应商ID
|
|
* @property string $createTime 创建时间
|
|
*/
|
|
class SupplierPaymentSummary extends JianSunModel
|
|
{
|
|
protected $table = 'fys_supplierPaymentSummary';
|
|
|
|
protected $fillable = [
|
|
'company', 'supplier', 'checker', 'settleway', 'Month',
|
|
'ExpFieght', 'bginMonthPay', 'unpriced', 'advloan', 'loan',
|
|
'refund', 'procurement', 'invoiceDct', 'boardDct', 'specimenDct',
|
|
'Totalindemnity', 'other', 'supplySup', 'ShouldPay', 'factPay',
|
|
'guessPrice', 'toCorporate', 'toPrivate', 'remarks', 'reason',
|
|
'mark', 'guid', 'isExamine', 'isPayment', 'Month',
|
|
'billstatus', 'opstatus', 'elstatu', 'taskid', 'supid',
|
|
'depositMoney', 'depositType', 'cashierbypaid', 'push', 'scmcode',
|
|
'billRemaining',
|
|
];
|
|
|
|
protected $casts = [
|
|
'ExpFieght' => 'decimal:2',
|
|
'bginMonthPay' => 'decimal:2',
|
|
'unpriced' => 'decimal:2',
|
|
'advloan' => 'decimal:2',
|
|
'loan' => 'decimal:2',
|
|
'refund' => 'decimal:2',
|
|
'procurement' => 'decimal:2',
|
|
'invoiceDct' => 'decimal:2',
|
|
'boardDct' => 'decimal:2',
|
|
'specimenDct' => 'decimal:2',
|
|
'Totalindemnity' => 'decimal:2',
|
|
'other' => 'decimal:2',
|
|
'supplySup' => 'decimal:2',
|
|
'ShouldPay' => 'decimal:2',
|
|
'factPay' => 'decimal:2',
|
|
'guessPrice' => 'decimal:2',
|
|
'toCorporate' => 'decimal:2',
|
|
'toPrivate' => 'decimal:2',
|
|
'depositMoney' => 'decimal:2',
|
|
'cashierbypaid' => 'decimal:2',
|
|
'billRemaining' => 'decimal:2',
|
|
'createTime' => 'datetime',
|
|
'modifiedTime' => 'datetime',
|
|
];
|
|
}
|