新增功能页面: - 货款对账 (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 动态视图解析
28 lines
687 B
PHP
28 lines
687 B
PHP
<?php
|
||
|
||
namespace Modules\EcommerceFinance\Models\JianSun;
|
||
|
||
/**
|
||
* 加权平均单价表
|
||
* pm_averageUnitPrice
|
||
*
|
||
* 按货号+供应商存储的加权平均单价(262条)。
|
||
* 用于计算"预估金额"。
|
||
*
|
||
* @property int $id
|
||
* @property string $number 货号
|
||
* @property string $supplier 供应商名称
|
||
* @property float $price 加权平均单价(页面表头第11列来源)
|
||
* @property string $name 商品名称
|
||
*/
|
||
class AverageUnitPrice extends JianSunModel
|
||
{
|
||
protected $table = 'pm_averageUnitPrice';
|
||
|
||
protected $fillable = ['number', 'supplier', 'price', 'name'];
|
||
|
||
protected $casts = [
|
||
'price' => 'decimal:4',
|
||
];
|
||
}
|