CaiWuXiTong/routes/signed.php
Claude 505855da4c 代发运费对账:核对完成后推送厂家钉钉群确认,厂家免登录逐单确认或提异议
- 财务端:各厂家汇总/单家明细加「核对完成」「推送厂家确认」「重新推送」,显示厂家确认状态和异议
- 推送用供应商对账里这家的钉钉群机器人(和货款对账同一个群),附免登录签名链接(30 天)
- 厂家确认页:汇总、不结或运费有差的单逐单勾选异议并写原因,其他单号可按「单号 原因」填写;可下载厂家版 Excel
- 提交后状态实时回写,并在群里发回执;重新推送版本号加一,旧链接作废
- 状态和异议存在 supplier_payable_overrides 通用表,无数据库迁移

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNTa9mVziToe5w52mmrrar
2026-12-02 19:38:02 +08:00

58 lines
2.6 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
/**
* 'signed' middleware and prefix applied to all routes
*
* @see \App\Providers\Route::mapSignedRoutes
* @see \modules\OfflinePayments\Routes\signed.php for module example
*/
Route::get('invoices/{invoice}', 'Portal\Invoices@signed')->name('signed.invoices.show');
Route::get('invoices/{invoice}/print', 'Portal\Invoices@printInvoice')->name('signed.invoices.print');
Route::get('invoices/{invoice}/pdf', 'Portal\Invoices@pdfInvoice')->name('signed.invoices.pdf');
Route::post('invoices/{invoice}/payment', 'Portal\Invoices@payment')->name('signed.invoices.payment');
Route::post('invoices/{invoice}/confirm', 'Portal\Invoices@confirm')->name('signed.invoices.confirm');
Route::get('invoices/{invoice}/finish', 'Portal\Invoices@finish')->name('signed.invoices.finish');
Route::get('payments/{payment}', 'Portal\Payments@signed')->name('signed.payments.show');
Route::get('payments/{payment}/print', 'Portal\Payments@printPayment')->name('signed.payments.print');
Route::get('payments/{payment}/pdf', 'Portal\Payments@pdfPayment')->name('signed.payments.pdf');
Route::get('supplier-returns/{token}', 'Business\SupplierReturnShare@show')
->middleware('throttle:60,1')
->name('signed.supplier-returns.show');
Route::post('supplier-returns/{token}/confirm-all', 'Business\SupplierReturnShare@confirmAll')
->middleware('throttle:10,1')
->name('signed.supplier-returns.confirm-all');
Route::get('supplier-returns/{token}/excel', 'Business\SupplierReturnShare@downloadExcel')
->middleware('throttle:20,1')
->name('signed.supplier-returns.excel');
Route::get('supplier-returns/{token}/csv', 'Business\SupplierReturnShare@downloadCsv')
->middleware('throttle:20,1')
->name('signed.supplier-returns.csv');
Route::get('supplier-summary-confirmations/{token}', 'Business\SupplierSummaryConfirmationShare@show')
->middleware('throttle:60,1')
->name('signed.supplier-summary-confirmations.show');
Route::post('supplier-summary-confirmations/{token}/confirm', 'Business\SupplierSummaryConfirmationShare@confirm')
->middleware('throttle:10,1')
->name('signed.supplier-summary-confirmations.confirm');
Route::get('dropship-freight/{token}', 'Business\DropshipFreightShare@show')
->middleware('throttle:60,1')
->name('signed.dropship-freight.show');
Route::post('dropship-freight/{token}/submit', 'Business\DropshipFreightShare@submit')
->middleware('throttle:10,1')
->name('signed.dropship-freight.submit');
Route::get('dropship-freight/{token}/excel', 'Business\DropshipFreightShare@excel')
->middleware('throttle:20,1')
->name('signed.dropship-freight.excel');