From fa9444bbbeb39e7c079ed4ecf3bfca40462c9a4f Mon Sep 17 00:00:00 2001 From: WuYongJie <549727955@qq.com> Date: Wed, 22 Jul 2026 13:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=EF=BC=9A=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=8E=9F=E6=9D=90=E6=96=99=E5=BA=94=E4=BB=98=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/business_navigation.php | 4 +- .../edge-banding-materials/_styles.blade.php | 175 ++++++++++++++++ .../compensation.blade.php | 57 ++++++ .../edge-banding-materials/details.blade.php | 81 ++++++++ .../edge-banding-payables.blade.php | 78 +++++++ .../edge-banding-prices.blade.php | 65 ++++++ .../_standard-page.blade.php | 47 +++++ .../_styles.blade.php | 190 ++++++++++++++++++ .../factory-compensation.blade.php | 13 ++ .../factory-payables-details.blade.php | 24 +++ .../factory-payables-report.blade.php | 81 ++++++++ .../factory-raw-boards.blade.php | 15 ++ .../finished-board-freight.blade.php | 17 ++ .../finished-board-prices.blade.php | 17 ++ .../invoice-tax-points.blade.php | 20 ++ .../lamination-fees.blade.php | 15 ++ .../lamination-prices.blade.php | 18 ++ .../paper-stock-in.blade.php | 13 ++ .../paper-stock-out.blade.php | 18 ++ .../raw-board-freight.blade.php | 17 ++ .../pages/paper-materials/_styles.blade.php | 177 ++++++++++++++++ .../paper-materials/paper-details.blade.php | 59 ++++++ .../paper-factory-payables.blade.php | 73 +++++++ .../paper-materials/paper-prices.blade.php | 65 ++++++ .../paper-materials/penalty-details.blade.php | 56 ++++++ resources/views/business/pages/show.blade.php | 24 ++- tests/Feature/Business/PagesTest.php | 112 +++++++++++ 27 files changed, 1529 insertions(+), 2 deletions(-) create mode 100644 resources/views/business/pages/edge-banding-materials/_styles.blade.php create mode 100644 resources/views/business/pages/edge-banding-materials/compensation.blade.php create mode 100644 resources/views/business/pages/edge-banding-materials/details.blade.php create mode 100644 resources/views/business/pages/edge-banding-materials/edge-banding-payables.blade.php create mode 100644 resources/views/business/pages/edge-banding-materials/edge-banding-prices.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/_standard-page.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/_styles.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/factory-compensation.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/factory-payables-details.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/factory-payables-report.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/factory-raw-boards.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/finished-board-freight.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/finished-board-prices.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/invoice-tax-points.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/lamination-fees.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/lamination-prices.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/paper-stock-in.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/paper-stock-out.blade.php create mode 100644 resources/views/business/pages/lamination-factory-payables/raw-board-freight.blade.php create mode 100644 resources/views/business/pages/paper-materials/_styles.blade.php create mode 100644 resources/views/business/pages/paper-materials/paper-details.blade.php create mode 100644 resources/views/business/pages/paper-materials/paper-factory-payables.blade.php create mode 100644 resources/views/business/pages/paper-materials/paper-prices.blade.php create mode 100644 resources/views/business/pages/paper-materials/penalty-details.blade.php create mode 100644 tests/Feature/Business/PagesTest.php diff --git a/config/business_navigation.php b/config/business_navigation.php index 2bf9efd5..a3a271fb 100644 --- a/config/business_navigation.php +++ b/config/business_navigation.php @@ -191,10 +191,11 @@ return [ ], [ 'slug' => 'lamination-factory-payables', - 'title' => '原材-压贴厂应付', + 'title' => '原材料-压贴厂应付', 'icon' => 'factory', 'pages' => [ ['slug' => 'lamination-prices', 'title' => '压贴费价格'], + ['slug' => 'finished-board-prices', 'title' => '成品板价格'], ['slug' => 'lamination-fees', 'title' => '压贴费'], ['slug' => 'finished-board-freight', 'title' => '成品板运费'], ['slug' => 'paper-stock-in', 'title' => '入库纸张'], @@ -203,6 +204,7 @@ return [ ['slug' => 'raw-board-freight', 'title' => '素板运费'], ['slug' => 'invoice-tax-points', 'title' => '发票(税点)'], ['slug' => 'factory-compensation', 'title' => '赔付明细(压贴厂)'], + ['slug' => 'factory-payables-details', 'title' => '压贴厂应付明细表'], ['slug' => 'factory-payables-report', 'title' => '压贴厂应付表'], ], ], diff --git a/resources/views/business/pages/edge-banding-materials/_styles.blade.php b/resources/views/business/pages/edge-banding-materials/_styles.blade.php new file mode 100644 index 00000000..ba3dd78c --- /dev/null +++ b/resources/views/business/pages/edge-banding-materials/_styles.blade.php @@ -0,0 +1,175 @@ + diff --git a/resources/views/business/pages/edge-banding-materials/compensation.blade.php b/resources/views/business/pages/edge-banding-materials/compensation.blade.php new file mode 100644 index 00000000..16647e6e --- /dev/null +++ b/resources/views/business/pages/edge-banding-materials/compensation.blade.php @@ -0,0 +1,57 @@ +
+ @include('business.pages.edge-banding-materials._styles') + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + +
单号到货厂商创建日期原料名称申领米数已出库米数最新出库日期送货厂商事由超时天数违约金
暂无数据
+
+
+ 共 0 条记录 + 第 1 / 1 页 +
+
+
diff --git a/resources/views/business/pages/edge-banding-materials/details.blade.php b/resources/views/business/pages/edge-banding-materials/details.blade.php new file mode 100644 index 00000000..1296bbbb --- /dev/null +++ b/resources/views/business/pages/edge-banding-materials/details.blade.php @@ -0,0 +1,81 @@ +
+ @include('business.pages.edge-banding-materials._styles') + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
入库日期原料生产编号原料名称出库数量单位退货标识出库厂商到货厂商批次日期出库单号出库备注申领单号单号类型送货单号实收数量对账金额运费封边条厂单价应付金额家具厂单价家具厂金额价格差利润
暂无数据
+
+
+ 共 0 条记录 + 第 1 / 1 页 +
+
+
diff --git a/resources/views/business/pages/edge-banding-materials/edge-banding-payables.blade.php b/resources/views/business/pages/edge-banding-materials/edge-banding-payables.blade.php new file mode 100644 index 00000000..23f2e206 --- /dev/null +++ b/resources/views/business/pages/edge-banding-materials/edge-banding-payables.blade.php @@ -0,0 +1,78 @@ +
+ @include('business.pages.edge-banding-materials._styles') + +
+
+ + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
2026年公司应付封边条厂6月份货款
序号供货单位月初未付加加减加单位:元备注
货款代垫付运费赔付封边条厂家回款应付金额已付金额实际打款金额对私打款对公打款
暂无数据
合计----------全部对公
+
+
+ 共 0 条记录 + 第 1 / 1 页 +
+
+
diff --git a/resources/views/business/pages/edge-banding-materials/edge-banding-prices.blade.php b/resources/views/business/pages/edge-banding-materials/edge-banding-prices.blade.php new file mode 100644 index 00000000..8d37a4ea --- /dev/null +++ b/resources/views/business/pages/edge-banding-materials/edge-banding-prices.blade.php @@ -0,0 +1,65 @@ +
+ @include('business.pages.edge-banding-materials._styles') + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + +
价格类型原料名称原料编号生产编号最新价格目标厂商厂商类型
暂无数据
+
+
+ 共 0 条记录 + 第 1 / 1 页 +
+
+
diff --git a/resources/views/business/pages/lamination-factory-payables/_standard-page.blade.php b/resources/views/business/pages/lamination-factory-payables/_standard-page.blade.php new file mode 100644 index 00000000..b4ee659d --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/_standard-page.blade.php @@ -0,0 +1,47 @@ +
+ @include('business.pages.lamination-factory-payables._styles') + +
+ @foreach ($laminationFilters as $filter) +
+ + @if (($filter['type'] ?? 'text') === 'select') + + @else + + @endif +
+ @endforeach +
+ +
+
+ + + + @foreach ($laminationColumns as $column) + + @endforeach + + + + + + + +
!empty($column['numeric'])])>{{ $column['label'] }}
暂无数据
+
+
+ 共 0 条记录 + 第 1 / 1 页 +
+
+
diff --git a/resources/views/business/pages/lamination-factory-payables/_styles.blade.php b/resources/views/business/pages/lamination-factory-payables/_styles.blade.php new file mode 100644 index 00000000..2b89c4de --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/_styles.blade.php @@ -0,0 +1,190 @@ + diff --git a/resources/views/business/pages/lamination-factory-payables/factory-compensation.blade.php b/resources/views/business/pages/lamination-factory-payables/factory-compensation.blade.php new file mode 100644 index 00000000..98b7cb4e --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/factory-compensation.blade.php @@ -0,0 +1,13 @@ +@php + $laminationPageId = 'factory-compensation-page'; + $laminationToolbarLabel = '压贴厂赔付筛选'; + $laminationFilters = [ + ['id' => 'factory-compensation-name', 'label' => '厂家', 'placeholder' => '请输入厂家'], + ['id' => 'factory-compensation-reason', 'label' => '事由', 'placeholder' => '请输入事由'], + ]; + $laminationColumns = [ + ['label' => '厂家'], ['label' => '事由'], ['label' => '补款金额', 'numeric' => true], + ['label' => '来源金额', 'numeric' => true], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/lamination-factory-payables/factory-payables-details.blade.php b/resources/views/business/pages/lamination-factory-payables/factory-payables-details.blade.php new file mode 100644 index 00000000..9f33ec21 --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/factory-payables-details.blade.php @@ -0,0 +1,24 @@ +@php + $laminationPageId = 'factory-payables-details-page'; + $laminationToolbarLabel = '压贴厂应付明细筛选'; + $laminationTableModifier = 'lamination-table--wide'; + $laminationFilters = [ + ['id' => 'payables-details-date', 'label' => '入库日期', 'type' => 'date'], + ['id' => 'payables-details-lamination-factory', 'label' => '压贴厂', 'placeholder' => '请输入压贴厂'], + ['id' => 'payables-details-furniture-factory', 'label' => '家具厂', 'placeholder' => '请输入家具厂'], + ['id' => 'payables-details-spec', 'label' => '规格', 'placeholder' => '请输入规格'], + ['id' => 'payables-details-material', 'label' => '原料名称', 'placeholder' => '请输入原料名称'], + ]; + $laminationColumns = [ + ['label' => '入库日期'], ['label' => '压贴厂'], ['label' => '家具厂'], ['label' => '规格'], + ['label' => '原料名称'], ['label' => '单位'], ['label' => '实收数量', 'numeric' => true], + ['label' => '单价', 'numeric' => true], ['label' => '金额', 'numeric' => true], ['label' => '出库备注'], + ['label' => '纸张1单价', 'numeric' => true], ['label' => '纸张2单价', 'numeric' => true], + ['label' => '纸张合计', 'numeric' => true], ['label' => '压贴费', 'numeric' => true], + ['label' => '压贴费合计', 'numeric' => true], ['label' => '垫付纸运费', 'numeric' => true], + ['label' => '垫付纸运费合计', 'numeric' => true], ['label' => '素板', 'numeric' => true], + ['label' => '素板金额', 'numeric' => true], ['label' => '成品板运费', 'numeric' => true], + ['label' => '成品板运费合计', 'numeric' => true], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/lamination-factory-payables/factory-payables-report.blade.php b/resources/views/business/pages/lamination-factory-payables/factory-payables-report.blade.php new file mode 100644 index 00000000..f63c8616 --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/factory-payables-report.blade.php @@ -0,0 +1,81 @@ +
+ @include('business.pages.lamination-factory-payables._styles') + +
+
+ + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
2026年公司应付压贴厂5月份货款
序号供货单位月初未付加加加加加加减减加加单位:元备注
出库纸张金额压贴费金额代垫付运费垫付纸运费素板成品板运费入库纸张金额赔付压贴厂回款其他补款应付金额已付金额实际打款金额对公打款对私打款
暂无数据
合计----------------
+
+
+ 共 0 条记录 + 第 1 / 1 页 +
+
+
diff --git a/resources/views/business/pages/lamination-factory-payables/factory-raw-boards.blade.php b/resources/views/business/pages/lamination-factory-payables/factory-raw-boards.blade.php new file mode 100644 index 00000000..f984eb60 --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/factory-raw-boards.blade.php @@ -0,0 +1,15 @@ +@php + $laminationPageId = 'factory-raw-boards-page'; + $laminationToolbarLabel = '压贴厂素板筛选'; + $laminationTableModifier = 'lamination-table--accent-first'; + $laminationFilters = [ + ['id' => 'factory-board-material', 'label' => '原料名称', 'placeholder' => '请输入原料名称'], + ['id' => 'factory-board-order-type', 'label' => '单号类型', 'type' => 'select', 'options' => ['全部类型', '申领单', '补料单']], + ['id' => 'factory-board-claim-number', 'label' => '申领单号', 'placeholder' => '请输入申领单号'], + ]; + $laminationColumns = [ + ['label' => '原料名称'], ['label' => '纸张1', 'numeric' => true], ['label' => '纸张2', 'numeric' => true], + ['label' => '纸张合计', 'numeric' => true], ['label' => '单号类型'], ['label' => '申领单号'], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/lamination-factory-payables/finished-board-freight.blade.php b/resources/views/business/pages/lamination-factory-payables/finished-board-freight.blade.php new file mode 100644 index 00000000..5bdbe549 --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/finished-board-freight.blade.php @@ -0,0 +1,17 @@ +@php + $laminationPageId = 'finished-board-freight-page'; + $laminationToolbarLabel = '成品板运费筛选'; + $laminationTableModifier = 'lamination-table--accent-first'; + $laminationFilters = [ + ['id' => 'finished-freight-material', 'label' => '原料名称', 'placeholder' => '请输入原料名称'], + ['id' => 'finished-freight-spec', 'label' => '成品板规格', 'placeholder' => '请输入成品板规格'], + ['id' => 'finished-freight-order-type', 'label' => '单号类型', 'type' => 'select', 'options' => ['全部类型', '申领单', '补料单']], + ['id' => 'finished-freight-claim-number', 'label' => '申领单号', 'placeholder' => '请输入申领单号'], + ]; + $laminationColumns = [ + ['label' => '原料名称'], ['label' => '成品板规格'], ['label' => '数量', 'numeric' => true], + ['label' => '单价', 'numeric' => true], ['label' => '金额', 'numeric' => true], + ['label' => '单号类型'], ['label' => '申领单号'], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/lamination-factory-payables/finished-board-prices.blade.php b/resources/views/business/pages/lamination-factory-payables/finished-board-prices.blade.php new file mode 100644 index 00000000..73cdc3de --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/finished-board-prices.blade.php @@ -0,0 +1,17 @@ +@php + $laminationPageId = 'finished-board-prices-page'; + $laminationToolbarLabel = '成品板价格筛选'; + $laminationFilters = [ + ['id' => 'finished-price-type', 'label' => '价格类型', 'type' => 'select', 'options' => ['全部价格', '采购价格', '结算价格']], + ['id' => 'finished-price-material', 'label' => '原料名称', 'placeholder' => '请输入原料名称'], + ['id' => 'finished-price-material-code', 'label' => '原料编号', 'placeholder' => '请输入原料编号'], + ['id' => 'finished-price-production-code', 'label' => '生产编号', 'placeholder' => '请输入生产编号'], + ['id' => 'finished-price-target-factory', 'label' => '目标厂商', 'placeholder' => '请输入目标厂商'], + ['id' => 'finished-price-factory-type', 'label' => '厂商类型', 'type' => 'select', 'options' => ['全部厂商', '压贴厂', '家具厂']], + ]; + $laminationColumns = [ + ['label' => '价格类型'], ['label' => '原料名称'], ['label' => '原料编号'], ['label' => '生产编号'], + ['label' => '最新价格', 'numeric' => true], ['label' => '目标厂商'], ['label' => '厂商类型'], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/lamination-factory-payables/invoice-tax-points.blade.php b/resources/views/business/pages/lamination-factory-payables/invoice-tax-points.blade.php new file mode 100644 index 00000000..8d32b86e --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/invoice-tax-points.blade.php @@ -0,0 +1,20 @@ +@php + $laminationPageId = 'invoice-tax-points-page'; + $laminationToolbarLabel = '发票税点筛选'; + $laminationTableModifier = 'lamination-table--medium lamination-table--blue-header'; + $laminationFilters = [ + ['id' => 'tax-point-date', 'label' => '入库日期', 'type' => 'date'], + ['id' => 'tax-point-arrival-factory', 'label' => '到货厂商', 'placeholder' => '请输入到货厂商'], + ['id' => 'tax-point-out-factory', 'label' => '出库厂商', 'placeholder' => '请输入出库厂商'], + ['id' => 'tax-point-material', 'label' => '原料名称', 'placeholder' => '请输入原料名称'], + ['id' => 'tax-point-order-type', 'label' => '单号类型', 'type' => 'select', 'options' => ['全部类型', '申领单', '补料单']], + ['id' => 'tax-point-claim-number', 'label' => '申领单号', 'placeholder' => '请输入申领单号'], + ]; + $laminationColumns = [ + ['label' => '入库日期'], ['label' => '到货厂商'], ['label' => '出库厂商'], ['label' => '原料名称'], + ['label' => '单号类型'], ['label' => '实收数量', 'numeric' => true], ['label' => '单价', 'numeric' => true], + ['label' => '对账金额', 'numeric' => true], ['label' => '备注'], ['label' => '运费', 'numeric' => true], + ['label' => '申领单号'], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/lamination-factory-payables/lamination-fees.blade.php b/resources/views/business/pages/lamination-factory-payables/lamination-fees.blade.php new file mode 100644 index 00000000..f12d3fae --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/lamination-fees.blade.php @@ -0,0 +1,15 @@ +@php + $laminationPageId = 'lamination-fees-page'; + $laminationToolbarLabel = '压贴费筛选'; + $laminationTableModifier = 'lamination-table--accent-first'; + $laminationFilters = [ + ['id' => 'lamination-fee-material', 'label' => '原料名称', 'placeholder' => '请输入原料名称'], + ['id' => 'lamination-fee-order-type', 'label' => '单号类型', 'type' => 'select', 'options' => ['全部类型', '申领单', '补料单']], + ['id' => 'lamination-fee-claim-number', 'label' => '申领单号', 'placeholder' => '请输入申领单号'], + ]; + $laminationColumns = [ + ['label' => '原料名称'], ['label' => '数量', 'numeric' => true], ['label' => '单价', 'numeric' => true], + ['label' => '金额', 'numeric' => true], ['label' => '单号类型'], ['label' => '申领单号'], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/lamination-factory-payables/lamination-prices.blade.php b/resources/views/business/pages/lamination-factory-payables/lamination-prices.blade.php new file mode 100644 index 00000000..e1d3d71b --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/lamination-prices.blade.php @@ -0,0 +1,18 @@ +@php + $laminationPageId = 'lamination-prices-page'; + $laminationToolbarLabel = '压贴费价格筛选'; + $laminationFilters = [ + ['id' => 'lamination-price-type', 'label' => '价格类型', 'type' => 'select', 'options' => ['全部价格', '标准价格', '临时价格']], + ['id' => 'lamination-price-material', 'label' => '原料名称', 'placeholder' => '请输入原料名称'], + ['id' => 'lamination-price-material-code', 'label' => '原料编码', 'placeholder' => '请输入原料编码'], + ['id' => 'lamination-price-production-code', 'label' => '生产编号', 'placeholder' => '请输入生产编号'], + ['id' => 'lamination-price-target-factory', 'label' => '目标厂商', 'placeholder' => '请输入目标厂商'], + ['id' => 'lamination-price-factory-type', 'label' => '厂商类型', 'type' => 'select', 'options' => ['全部厂商', '压贴厂', '家具厂']], + ['id' => 'lamination-price-date', 'label' => '执行日期', 'type' => 'date'], + ]; + $laminationColumns = [ + ['label' => '价格类型'], ['label' => '原料名称'], ['label' => '原料编码'], ['label' => '生产编号'], + ['label' => '价格', 'numeric' => true], ['label' => '目标厂商'], ['label' => '厂商类型'], ['label' => '执行日期'], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/lamination-factory-payables/paper-stock-in.blade.php b/resources/views/business/pages/lamination-factory-payables/paper-stock-in.blade.php new file mode 100644 index 00000000..4c9460c9 --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/paper-stock-in.blade.php @@ -0,0 +1,13 @@ +@php + $laminationPageId = 'paper-stock-in-page'; + $laminationToolbarLabel = '入库纸张筛选'; + $laminationFilters = [ + ['id' => 'paper-in-lamination-factory', 'label' => '压贴厂', 'placeholder' => '请输入压贴厂'], + ['id' => 'paper-in-furniture-factory', 'label' => '家具厂', 'placeholder' => '请输入家具厂'], + ['id' => 'paper-in-spec', 'label' => '规格', 'placeholder' => '请输入规格'], + ]; + $laminationColumns = [ + ['label' => '压贴厂'], ['label' => '家具厂'], ['label' => '规格'], ['label' => '价格', 'numeric' => true], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/lamination-factory-payables/paper-stock-out.blade.php b/resources/views/business/pages/lamination-factory-payables/paper-stock-out.blade.php new file mode 100644 index 00000000..f8b2f0e3 --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/paper-stock-out.blade.php @@ -0,0 +1,18 @@ +@php + $laminationPageId = 'paper-stock-out-page'; + $laminationToolbarLabel = '出库纸张筛选'; + $laminationTableModifier = 'lamination-table--green-header'; + $laminationFilters = [ + ['id' => 'paper-out-date', 'label' => '入库日期', 'type' => 'date'], + ['id' => 'paper-out-factory', 'label' => '出库厂商', 'placeholder' => '请输入出库厂商'], + ['id' => 'paper-out-arrival-factory', 'label' => '到货厂商', 'placeholder' => '请输入到货厂商'], + ['id' => 'paper-out-material', 'label' => '原料名称', 'placeholder' => '请输入原料名称'], + ['id' => 'paper-out-claim-number', 'label' => '申领单号', 'placeholder' => '请输入申领单号'], + ]; + $laminationColumns = [ + ['label' => '入库日期'], ['label' => '出库厂商'], ['label' => '到货厂商'], ['label' => '原料名称'], + ['label' => '实收数量', 'numeric' => true], ['label' => '压贴厂单价', 'numeric' => true], + ['label' => '压贴厂金额', 'numeric' => true], ['label' => '申领单号'], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/lamination-factory-payables/raw-board-freight.blade.php b/resources/views/business/pages/lamination-factory-payables/raw-board-freight.blade.php new file mode 100644 index 00000000..ea62f1fd --- /dev/null +++ b/resources/views/business/pages/lamination-factory-payables/raw-board-freight.blade.php @@ -0,0 +1,17 @@ +@php + $laminationPageId = 'raw-board-freight-page'; + $laminationToolbarLabel = '素板运费筛选'; + $laminationTableModifier = 'lamination-table--accent-first'; + $laminationFilters = [ + ['id' => 'raw-board-freight-material', 'label' => '原料名称', 'placeholder' => '请输入原料名称'], + ['id' => 'raw-board-freight-spec', 'label' => '素板规格', 'placeholder' => '请输入素板规格'], + ['id' => 'raw-board-freight-order-type', 'label' => '单号类型', 'type' => 'select', 'options' => ['全部类型', '申领单', '补料单']], + ['id' => 'raw-board-freight-claim-number', 'label' => '申领单号', 'placeholder' => '请输入申领单号'], + ]; + $laminationColumns = [ + ['label' => '原料名称'], ['label' => '素板规格'], ['label' => '数量', 'numeric' => true], + ['label' => '单价', 'numeric' => true], ['label' => '金额', 'numeric' => true], + ['label' => '单号类型'], ['label' => '申领单号'], + ]; +@endphp +@include('business.pages.lamination-factory-payables._standard-page') diff --git a/resources/views/business/pages/paper-materials/_styles.blade.php b/resources/views/business/pages/paper-materials/_styles.blade.php new file mode 100644 index 00000000..bf40f6b9 --- /dev/null +++ b/resources/views/business/pages/paper-materials/_styles.blade.php @@ -0,0 +1,177 @@ + diff --git a/resources/views/business/pages/paper-materials/paper-details.blade.php b/resources/views/business/pages/paper-materials/paper-details.blade.php new file mode 100644 index 00000000..dcc64551 --- /dev/null +++ b/resources/views/business/pages/paper-materials/paper-details.blade.php @@ -0,0 +1,59 @@ +
+ @include('business.pages.paper-materials._styles') + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
出库日期入库日期出库厂商到货厂商原料名称实收数量纸厂单价应付金额压贴厂单价压贴厂金额价格差利润申领单号
暂无数据
+
+
+ 共 0 条记录 + 第 1 / 1 页 +
+
+
diff --git a/resources/views/business/pages/paper-materials/paper-factory-payables.blade.php b/resources/views/business/pages/paper-materials/paper-factory-payables.blade.php new file mode 100644 index 00000000..71aa0f22 --- /dev/null +++ b/resources/views/business/pages/paper-materials/paper-factory-payables.blade.php @@ -0,0 +1,73 @@ +
+ @include('business.pages.paper-materials._styles') + +
+
+ + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
2026年公司应付纸厂6月份货款
序号供货单位月初未付本月采购金额加减加加单位:元对私打款对公打款备注
货款金额应付金额赔付垫纸运费纸加工票点实际应付金额
暂无数据
合计---------
+
+
+ 共 0 条记录 + 第 1 / 1 页 +
+
+
diff --git a/resources/views/business/pages/paper-materials/paper-prices.blade.php b/resources/views/business/pages/paper-materials/paper-prices.blade.php new file mode 100644 index 00000000..9a334398 --- /dev/null +++ b/resources/views/business/pages/paper-materials/paper-prices.blade.php @@ -0,0 +1,65 @@ +
+ @include('business.pages.paper-materials._styles') + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + +
价格类型原料名称原料编号生产编号最新价格目标厂商厂商类型
暂无数据
+
+
+ 共 0 条记录 + 第 1 / 1 页 +
+
+
diff --git a/resources/views/business/pages/paper-materials/penalty-details.blade.php b/resources/views/business/pages/paper-materials/penalty-details.blade.php new file mode 100644 index 00000000..41b82880 --- /dev/null +++ b/resources/views/business/pages/paper-materials/penalty-details.blade.php @@ -0,0 +1,56 @@ +
+ @include('business.pages.paper-materials._styles') + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + +
单号到货厂商创建日期原料名称申领数量超时天数事由已出库数量送货厂商违约金
暂无数据
+
+
+ 共 0 条记录 + 第 1 / 1 页 +
+
+
diff --git a/resources/views/business/pages/show.blade.php b/resources/views/business/pages/show.blade.php index a276adaf..c716c8c1 100644 --- a/resources/views/business/pages/show.blade.php +++ b/resources/views/business/pages/show.blade.php @@ -71,6 +71,10 @@ background: #ffffff; } + [v-cloak] { + display: none; + } + @media (min-width: 1280px) { #main-body > .container { margin-left: 2.5rem; @@ -104,10 +108,28 @@ @endif - @if ($page && !empty($content) && !empty($content['view'])) + @php + $pageView = null; + + if ($page) { + $viewName = 'business.pages.' . $section['slug'] . '.' . $page['slug']; + + if ($tabs->isNotEmpty()) { + $viewName .= '.' . ($activeTab['slug'] ?? ''); + } + + if (view()->exists($viewName)) { + $pageView = $viewName; + } + } + @endphp + + @if (!empty($content) && !empty($content['view']))
@include($content['view'], $content)
+ @elseif ($pageView) + @include($pageView) @else
@endif diff --git a/tests/Feature/Business/PagesTest.php b/tests/Feature/Business/PagesTest.php new file mode 100644 index 00000000..8cb79566 --- /dev/null +++ b/tests/Feature/Business/PagesTest.php @@ -0,0 +1,112 @@ +user->attachPermission( + Permission::where('name', 'read-admin-panel')->firstOrFail() + ); + + $this->loginAs() + ->get(route('business.pages.show', [ + 'section' => 'supplier-payables', + 'page' => 'payment-reconciliation', + ])) + ->assertOk() + ->assertSee('id="goods-reconciliation-app"', false) + ->assertSee('public/js/ecommerce-finance/goods-reconciliations.min.js', false) + ->assertDontSee('class="business-blank-page"', false); + } + + public function testPaperMaterialPagesRenderAsSeparateTables() + { + $this->user->attachPermission( + Permission::where('name', 'read-admin-panel')->firstOrFail() + ); + + $pages = [ + 'paper-prices' => '价格类型', + 'paper-details' => '压贴厂金额', + 'penalty-details' => '违约金', + 'paper-factory-payables' => '2026年公司应付纸厂6月份货款', + ]; + + foreach ($pages as $page => $expectedHeader) { + $this->loginAs() + ->get(route('business.pages.show', [ + 'section' => 'paper-materials', + 'page' => $page, + ])) + ->assertOk() + ->assertSee($expectedHeader) + ->assertSee('class="paper-material-table', false) + ->assertDontSee('class="business-blank-page"', false); + } + } + + public function testEdgeBandingMaterialPagesRenderAsSeparateTables() + { + $this->user->attachPermission( + Permission::where('name', 'read-admin-panel')->firstOrFail() + ); + + $pages = [ + 'edge-banding-prices' => '价格类型', + 'details' => '封边条厂单价', + 'compensation' => '最新出库日期', + 'edge-banding-payables' => '2026年公司应付封边条厂6月份货款', + ]; + + foreach ($pages as $page => $expectedHeader) { + $this->loginAs() + ->get(route('business.pages.show', [ + 'section' => 'edge-banding-materials', + 'page' => $page, + ])) + ->assertOk() + ->assertSee($expectedHeader) + ->assertSee('class="edge-banding-table', false) + ->assertDontSee('class="business-blank-page"', false); + } + } + + public function testLaminationFactoryPayablePagesRenderAsSeparateTables() + { + $this->user->attachPermission( + Permission::where('name', 'read-admin-panel')->firstOrFail() + ); + + $pages = [ + 'lamination-prices' => '执行日期', + 'finished-board-prices' => '最新价格', + 'lamination-fees' => '单号类型', + 'finished-board-freight' => '成品板规格', + 'paper-stock-in' => '家具厂', + 'paper-stock-out' => '压贴厂金额', + 'factory-raw-boards' => '纸张合计', + 'raw-board-freight' => '素板规格', + 'invoice-tax-points' => '对账金额', + 'factory-compensation' => '来源金额', + 'factory-payables-details' => '成品板运费合计', + 'factory-payables-report' => '2026年公司应付压贴厂5月份货款', + ]; + + foreach ($pages as $page => $expectedHeader) { + $this->loginAs() + ->get(route('business.pages.show', [ + 'section' => 'lamination-factory-payables', + 'page' => $page, + ])) + ->assertOk() + ->assertSee($expectedHeader) + ->assertSee('class="lamination-table', false) + ->assertDontSee('class="business-blank-page"', false); + } + } +}