diff --git a/app/Models/Business/AutoInvoicing.php b/app/Models/Business/AutoInvoicing.php new file mode 100644 index 00000000..31877541 --- /dev/null +++ b/app/Models/Business/AutoInvoicing.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/BankAccount.php b/app/Models/Business/BankAccount.php new file mode 100644 index 00000000..c849086a --- /dev/null +++ b/app/Models/Business/BankAccount.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/CompanyCancellation.php b/app/Models/Business/CompanyCancellation.php new file mode 100644 index 00000000..9ccdb0f1 --- /dev/null +++ b/app/Models/Business/CompanyCancellation.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/CompanyChange.php b/app/Models/Business/CompanyChange.php new file mode 100644 index 00000000..3172ed36 --- /dev/null +++ b/app/Models/Business/CompanyChange.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/CompanyRegistration.php b/app/Models/Business/CompanyRegistration.php new file mode 100644 index 00000000..e3854cc1 --- /dev/null +++ b/app/Models/Business/CompanyRegistration.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/CompanySharedAccount.php b/app/Models/Business/CompanySharedAccount.php new file mode 100644 index 00000000..d9a523d3 --- /dev/null +++ b/app/Models/Business/CompanySharedAccount.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/CompanyStoreData.php b/app/Models/Business/CompanyStoreData.php new file mode 100644 index 00000000..24035bf3 --- /dev/null +++ b/app/Models/Business/CompanyStoreData.php @@ -0,0 +1,18 @@ + 'integer', + 'trigger_store_change' => 'boolean', + 'trigger_company_registration' => 'boolean', + ]; +} diff --git a/app/Models/Business/CourierCollection.php b/app/Models/Business/CourierCollection.php new file mode 100644 index 00000000..a8c0b474 --- /dev/null +++ b/app/Models/Business/CourierCollection.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/FinancialAnalysis.php b/app/Models/Business/FinancialAnalysis.php new file mode 100644 index 00000000..d81f5c04 --- /dev/null +++ b/app/Models/Business/FinancialAnalysis.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/FundForecast.php b/app/Models/Business/FundForecast.php new file mode 100644 index 00000000..d291a822 --- /dev/null +++ b/app/Models/Business/FundForecast.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/InputInvoiceReport.php b/app/Models/Business/InputInvoiceReport.php new file mode 100644 index 00000000..6875efe8 --- /dev/null +++ b/app/Models/Business/InputInvoiceReport.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/InvoiceBasicInfo.php b/app/Models/Business/InvoiceBasicInfo.php new file mode 100644 index 00000000..8848b7cc --- /dev/null +++ b/app/Models/Business/InvoiceBasicInfo.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/OutputInvoiceReport.php b/app/Models/Business/OutputInvoiceReport.php new file mode 100644 index 00000000..f9cb4ef5 --- /dev/null +++ b/app/Models/Business/OutputInvoiceReport.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/PaymentStatistics.php b/app/Models/Business/PaymentStatistics.php new file mode 100644 index 00000000..6debca56 --- /dev/null +++ b/app/Models/Business/PaymentStatistics.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/ProcessStatistics.php b/app/Models/Business/ProcessStatistics.php new file mode 100644 index 00000000..44a65c4e --- /dev/null +++ b/app/Models/Business/ProcessStatistics.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/StoreChange.php b/app/Models/Business/StoreChange.php new file mode 100644 index 00000000..78bb0df9 --- /dev/null +++ b/app/Models/Business/StoreChange.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/StoreChangeLog.php b/app/Models/Business/StoreChangeLog.php new file mode 100644 index 00000000..a7a24f16 --- /dev/null +++ b/app/Models/Business/StoreChangeLog.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/StoreClosing.php b/app/Models/Business/StoreClosing.php new file mode 100644 index 00000000..e70edfa3 --- /dev/null +++ b/app/Models/Business/StoreClosing.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/StoreInvoicing.php b/app/Models/Business/StoreInvoicing.php new file mode 100644 index 00000000..ff00b4bd --- /dev/null +++ b/app/Models/Business/StoreInvoicing.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/StoreOpening.php b/app/Models/Business/StoreOpening.php new file mode 100644 index 00000000..bdc52e36 --- /dev/null +++ b/app/Models/Business/StoreOpening.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/StoreReceivingAccount.php b/app/Models/Business/StoreReceivingAccount.php new file mode 100644 index 00000000..ea5357d9 --- /dev/null +++ b/app/Models/Business/StoreReceivingAccount.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/SwActualStatistics.php b/app/Models/Business/SwActualStatistics.php new file mode 100644 index 00000000..320542ef --- /dev/null +++ b/app/Models/Business/SwActualStatistics.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/SwPlanning.php b/app/Models/Business/SwPlanning.php new file mode 100644 index 00000000..0df7ccd9 --- /dev/null +++ b/app/Models/Business/SwPlanning.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/TaxData.php b/app/Models/Business/TaxData.php new file mode 100644 index 00000000..31dc3803 --- /dev/null +++ b/app/Models/Business/TaxData.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/Todo.php b/app/Models/Business/Todo.php new file mode 100644 index 00000000..1393529a --- /dev/null +++ b/app/Models/Business/Todo.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/app/Models/Business/Trademark.php b/app/Models/Business/Trademark.php new file mode 100644 index 00000000..10d672d7 --- /dev/null +++ b/app/Models/Business/Trademark.php @@ -0,0 +1,16 @@ + 'integer', + ]; +} diff --git a/database/migrations/2026_07_21_000000_create_business_tables.php b/database/migrations/2026_07_21_000000_create_business_tables.php new file mode 100644 index 00000000..215f6846 --- /dev/null +++ b/database/migrations/2026_07_21_000000_create_business_tables.php @@ -0,0 +1,513 @@ +increments('id'); + $table->integer('company_id')->default(1); + $table->string('company_name')->comment('公司名称'); + $table->decimal('real_shipping_performance', 15, 2)->default(0)->comment('公司真实发货业绩'); + $table->decimal('planting_performance', 15, 2)->default(0)->comment('公司种菜业绩'); + $table->decimal('refund_amount', 15, 2)->default(0)->comment('退款金额'); + $table->decimal('net_performance_income', 15, 2)->default(0)->comment('业绩净收入'); + $table->decimal('tax_performance', 15, 2)->default(0)->comment('税务业绩'); + $table->decimal('tax_refund', 15, 2)->default(0)->comment('税务退款'); + $table->decimal('tax_net_income', 15, 2)->default(0)->comment('税务净收入'); + $table->decimal('performance_difference', 15, 2)->default(0)->comment('业绩差额'); + $table->decimal('final_tax_performance', 15, 2)->default(0)->comment('最终报税业绩'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 2. 公司店铺数据 + Schema::create('business_company_store_data', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('company_name')->comment('公司名称'); + $table->string('store_name')->comment('店铺名称'); + $table->decimal('store_performance', 15, 2)->default(0)->comment('店铺业绩'); + $table->decimal('company_performance', 15, 2)->default(0)->comment('公司业绩'); + $table->boolean('trigger_store_change')->default(false)->comment('是否触发店铺变更流程'); + $table->boolean('trigger_company_registration')->default(false)->comment('是否触发公司注册流程'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 3. 店铺变更统计表 + Schema::create('business_store_change_logs', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('store_name')->comment('店铺名称'); + $table->string('store_entity')->comment('店铺主体'); + $table->date('change_date')->comment('变更时间'); + $table->string('receiving_account_info')->nullable()->comment('收款账户信息'); + $table->string('historical_entity')->nullable()->comment('历史主体'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 4. 店铺收款账户信息 + Schema::create('business_store_receiving_accounts', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('store_platform')->comment('店铺平台'); + $table->string('store_name')->comment('店铺名称'); + $table->string('wallet_number')->nullable()->comment('钱包号'); + $table->string('store_entity_name')->comment('店铺主体名称'); + $table->string('login_account')->nullable()->comment('登录账号'); + $table->string('login_password')->nullable()->comment('登录密码'); + $table->string('receiving_method')->default('银行卡')->comment('收款方式'); + $table->string('receiving_account_name')->nullable()->comment('收款账户名称'); + $table->string('alipay_or_bank_account')->nullable()->comment('支付宝账号/银行账号'); + $table->string('opening_bank')->nullable()->comment('开户银行'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 5. 银行账户信息 + Schema::create('business_bank_accounts', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('account_name')->comment('账户名称'); + $table->string('account_type')->default('基本户')->comment('账户类型'); + $table->string('bank_account_number')->nullable()->comment('银行账号'); + $table->string('opening_bank')->nullable()->comment('开户行'); + $table->string('ukey_password_maker')->nullable()->comment('ukey密码(制单)'); + $table->string('login_password_maker')->nullable()->comment('登录密码(制单)'); + $table->string('ukey_password_reviewer')->nullable()->comment('ukey密码(审核)'); + $table->string('login_password_reviewer')->nullable()->comment('登录密码(审核)'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 6. 快递收款系统 + Schema::create('business_courier_collections', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('courier_name')->comment('快递名称'); + $table->string('collection_type')->comment('收款类型'); + $table->string('collection_name')->nullable()->comment('收款名称'); + $table->string('collection_account')->nullable()->comment('收款账号'); + $table->string('opening_bank')->nullable()->comment('开户行'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 7. 发票基础信息 + Schema::create('business_invoice_basic_info', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('store_name')->comment('店铺名称'); + $table->string('store_entity')->comment('店铺主体'); + $table->string('invoice_officer')->nullable()->comment('开票员'); + $table->decimal('invoice_quota', 15, 2)->default(0)->comment('开票额度'); + $table->decimal('output_amount', 15, 2)->default(0)->comment('销项金额'); + $table->decimal('input_amount', 15, 2)->default(0)->comment('进项金额'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 8. 店铺后台开票 + Schema::create('business_store_invoicing', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('store_name')->comment('店铺'); + $table->string('seller_name')->comment('销售方名称'); + $table->string('seller_tax_number')->comment('销售方税号'); + $table->string('buyer_name')->nullable()->comment('购买方名称'); + $table->string('buyer_tax_number')->nullable()->comment('购买方税号'); + $table->decimal('invoice_amount', 15, 2)->default(0)->comment('开票金额'); + $table->string('category')->nullable()->comment('类目'); + $table->string('invoice_type')->default('普票')->comment('开票类型'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 9. 财务SW规划表 + Schema::create('business_sw_planning', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('company_name')->comment('公司名称'); + $table->decimal('final_tax_performance', 15, 2)->default(0)->comment('最终报税业绩'); + $table->decimal('product_cost', 15, 2)->default(0)->comment('商品成本'); + $table->decimal('logistics_cost', 15, 2)->default(0)->comment('物流成本'); + $table->decimal('platform_invoice', 15, 2)->default(0)->comment('平台来票'); + $table->decimal('labor_cost', 15, 2)->default(0)->comment('人工'); + $table->decimal('other_expenses', 15, 2)->default(0)->comment('其他报销'); + $table->decimal('profit', 15, 2)->default(0)->comment('利润'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 10. 实际SW统计表 + Schema::create('business_sw_actual_statistics', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('region')->nullable()->comment('区域'); + $table->string('company_type')->nullable()->comment('公司类型'); + $table->string('contact_person')->nullable()->comment('对接人'); + $table->string('bookkeeping_company')->nullable()->comment('代账公司'); + $table->string('period')->nullable()->comment('期间'); + $table->string('company_name')->comment('公司名称'); + $table->decimal('provided_performance', 15, 2)->default(0)->comment('提供业绩'); + $table->decimal('actual_declared_performance', 15, 2)->default(0)->comment('实际申报业绩'); + // 商品收入(13%) + $table->decimal('goods_special_invoice_amount', 15, 2)->default(0)->comment('商品专票金额'); + $table->decimal('goods_special_invoice_tax', 15, 2)->default(0)->comment('商品专票税额'); + $table->decimal('goods_general_invoice_amount', 15, 2)->default(0)->comment('商品普票金额'); + $table->decimal('goods_general_invoice_tax', 15, 2)->default(0)->comment('商品普票税额'); + $table->decimal('goods_uninvoiced_amount', 15, 2)->default(0)->comment('商品未开票金额'); + $table->decimal('goods_uninvoiced_tax', 15, 2)->default(0)->comment('商品未开票税额'); + $table->decimal('goods_income_subtotal', 15, 2)->default(0)->comment('商品收入小计'); + $table->decimal('goods_tax_subtotal', 15, 2)->default(0)->comment('商品税金小计'); + // 服务收入(6%) + $table->decimal('service_special_invoice_amount', 15, 2)->default(0)->comment('服务专票金额'); + $table->decimal('service_special_invoice_tax', 15, 2)->default(0)->comment('服务专票税额'); + $table->decimal('service_general_invoice_amount', 15, 2)->default(0)->comment('服务普票金额'); + $table->decimal('service_general_invoice_tax', 15, 2)->default(0)->comment('服务普票税额'); + $table->decimal('service_uninvoiced_amount', 15, 2)->default(0)->comment('服务未开票金额'); + $table->decimal('service_uninvoiced_tax', 15, 2)->default(0)->comment('服务未开票税额'); + $table->decimal('service_income_subtotal', 15, 2)->default(0)->comment('服务收入小计'); + $table->decimal('service_tax_subtotal', 15, 2)->default(0)->comment('服务税金小计'); + // 合计 + $table->decimal('total_income', 15, 2)->default(0)->comment('合计收入'); + $table->decimal('total_tax', 15, 2)->default(0)->comment('合计税金'); + // 进项发票 + $table->decimal('input_goods_amount', 15, 2)->default(0)->comment('进项商品金额'); + $table->decimal('input_goods_tax', 15, 2)->default(0)->comment('进项商品税额'); + $table->decimal('input_service_amount', 15, 2)->default(0)->comment('进项服务费金额'); + $table->decimal('input_service_tax', 15, 2)->default(0)->comment('进项服务费税额'); + $table->decimal('input_other_amount', 15, 2)->default(0)->comment('进项其他金额'); + $table->decimal('input_other_tax', 15, 2)->default(0)->comment('进项其他税额'); + $table->decimal('input_total_amount', 15, 2)->default(0)->comment('进项金额合计'); + $table->decimal('input_total_tax', 15, 2)->default(0)->comment('进项税额合计'); + // 其他抵减 + $table->decimal('additional_deduction', 15, 2)->default(0)->comment('加计抵减'); + $table->decimal('retained_tax', 15, 2)->default(0)->comment('留抵税金'); + // 实缴税金 + $table->decimal('monthly_vat', 15, 2)->default(0)->comment('本月应交增值税'); + $table->decimal('urban_maintenance_tax', 15, 2)->default(0)->comment('城建税金'); + $table->decimal('education_surcharge', 15, 2)->default(0)->comment('教育费附加'); + $table->decimal('local_education_surcharge', 15, 2)->default(0)->comment('地方教育费附加'); + $table->decimal('stamp_tax', 15, 2)->default(0)->comment('印花税'); + $table->decimal('union_fund', 15, 2)->default(0)->comment('工会经费'); + $table->decimal('personal_income_tax', 15, 2)->default(0)->comment('个税'); + $table->decimal('corporate_income_tax', 15, 2)->default(0)->comment('所得税'); + $table->decimal('garbage_fee', 15, 2)->default(0)->comment('垃圾处理费'); + $table->decimal('other_late_fee', 15, 2)->default(0)->comment('其他(滞纳金)'); + $table->decimal('total_paid_tax', 15, 2)->default(0)->comment('税金合计'); + $table->decimal('tax_burden', 8, 4)->default(0)->comment('税负'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 11. 资金预测表 + Schema::create('business_fund_forecast', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('budget_month')->nullable()->comment('预算填报月份'); + $table->string('actual_month')->nullable()->comment('实际填报月份'); + $table->decimal('store_balance_budget', 15, 2)->default(0)->comment('店铺余额-预算'); + $table->decimal('store_balance_actual', 15, 2)->default(0)->comment('店铺余额-实际'); + $table->decimal('bank_balance_budget', 15, 2)->default(0)->comment('银行余额-预算'); + $table->decimal('bank_balance_actual', 15, 2)->default(0)->comment('银行余额-实际'); + $table->decimal('other_balance_budget', 15, 2)->default(0)->comment('其他账户余额-预算'); + $table->decimal('other_balance_actual', 15, 2)->default(0)->comment('其他账户余额-实际'); + $table->decimal('expected_monthly_return_budget', 15, 2)->default(0)->comment('预计本月回款-预算'); + $table->decimal('expected_monthly_return_actual', 15, 2)->default(0)->comment('预计本月回款-实际'); + $table->decimal('income_total_budget', 15, 2)->default(0)->comment('收入合计-预算'); + $table->decimal('income_total_actual', 15, 2)->default(0)->comment('收入合计-实际'); + // 支出明细 + $table->decimal('prior_unpaid_budget', 15, 2)->default(0)->comment('往期未付-预算'); + $table->decimal('prior_unpaid_actual', 15, 2)->default(0)->comment('往期未付-实际'); + $table->decimal('advance_budget', 15, 2)->default(0)->comment('借支-预算'); + $table->decimal('advance_actual', 15, 2)->default(0)->comment('借支-实际'); + $table->decimal('supplier_budget', 15, 2)->default(0)->comment('供应商-预算'); + $table->decimal('supplier_actual', 15, 2)->default(0)->comment('供应商-实际'); + $table->decimal('spot_settlement_budget', 15, 2)->default(0)->comment('现结-预算'); + $table->decimal('spot_settlement_actual', 15, 2)->default(0)->comment('现结-实际'); + $table->decimal('courier_budget', 15, 2)->default(0)->comment('快递-预算'); + $table->decimal('courier_actual', 15, 2)->default(0)->comment('快递-实际'); + $table->decimal('paper_factory_budget', 15, 2)->default(0)->comment('纸厂压贴-预算'); + $table->decimal('paper_factory_actual', 15, 2)->default(0)->comment('纸厂压贴-实际'); + $table->decimal('edge_band_budget', 15, 2)->default(0)->comment('封边条-预算'); + $table->decimal('edge_band_actual', 15, 2)->default(0)->comment('封边条-实际'); + $table->decimal('board_budget', 15, 2)->default(0)->comment('板材、三合板-预算'); + $table->decimal('board_actual', 15, 2)->default(0)->comment('板材、三合板-实际'); + $table->decimal('salary_budget', 15, 2)->default(0)->comment('工资-预算'); + $table->decimal('salary_actual', 15, 2)->default(0)->comment('工资-实际'); + $table->decimal('daily_expense_budget', 15, 2)->default(0)->comment('日常费用-预算'); + $table->decimal('daily_expense_actual', 15, 2)->default(0)->comment('日常费用-实际'); + $table->decimal('planting_budget', 15, 2)->default(0)->comment('种菜-预算'); + $table->decimal('planting_actual', 15, 2)->default(0)->comment('种菜-实际'); + $table->decimal('red_packet_budget', 15, 2)->default(0)->comment('红包-预算'); + $table->decimal('red_packet_actual', 15, 2)->default(0)->comment('红包-实际'); + $table->decimal('corporate_deduction_budget', 15, 2)->default(0)->comment('对公扣款-预算'); + $table->decimal('corporate_deduction_actual', 15, 2)->default(0)->comment('对公扣款-实际'); + $table->decimal('expense_total_budget', 15, 2)->default(0)->comment('支出合计-预算'); + $table->decimal('expense_total_actual', 15, 2)->default(0)->comment('支出合计-实际'); + $table->decimal('bank_reservation', 15, 2)->default(0)->comment('银行账户店铺预留'); + $table->decimal('net_balance_budget', 15, 2)->default(0)->comment('本月净结余-预算'); + $table->decimal('net_balance_actual', 15, 2)->default(0)->comment('本月净结余-实际'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 12. 公司注册 + Schema::create('business_company_registrations', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('company_name')->comment('公司名称'); + $table->string('registration_type')->nullable()->comment('注册类型'); + $table->string('registration_status')->default('进行中')->comment('注册状态'); + $table->text('notes')->nullable()->comment('备注'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 13. 公司变更 + Schema::create('business_company_changes', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('company_name')->comment('公司名称'); + $table->string('change_type')->nullable()->comment('变更类型'); + $table->string('change_status')->default('进行中')->comment('变更状态'); + $table->date('change_date')->nullable()->comment('变更日期'); + $table->text('notes')->nullable()->comment('备注'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 14. 公司注销 + Schema::create('business_company_cancellations', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('company_name')->comment('公司名称'); + $table->string('cancellation_status')->default('进行中')->comment('注销状态'); + $table->text('notes')->nullable()->comment('备注'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 15. 商标信息 + Schema::create('business_trademarks', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('trademark_name')->comment('商标名称'); + $table->string('trademark_type')->nullable()->comment('商标类型'); + $table->string('trademark_status')->default('有效')->comment('商标状态'); + $table->date('registration_date')->nullable()->comment('注册日期'); + $table->date('expiry_date')->nullable()->comment('到期日期'); + $table->text('notes')->nullable()->comment('备注'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 16. 开店流程 + Schema::create('business_store_openings', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('store_name')->comment('店铺名称'); + $table->string('store_platform')->comment('店铺平台'); + $table->string('opening_status')->default('进行中')->comment('开店状态'); + $table->text('notes')->nullable()->comment('备注'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 17. 店铺变更 + Schema::create('business_store_changes', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('store_name')->comment('店铺名称'); + $table->string('change_type')->nullable()->comment('变更类型'); + $table->string('change_status')->default('进行中')->comment('变更状态'); + $table->text('notes')->nullable()->comment('备注'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 18. 关店流程 + Schema::create('business_store_closings', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('store_name')->comment('店铺名称'); + $table->string('closing_status')->default('进行中')->comment('关店状态'); + $table->text('notes')->nullable()->comment('备注'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 19. 公司公用账户信息 + Schema::create('business_company_shared_accounts', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('account_name')->comment('账户名称'); + $table->string('account_type')->default('基本户')->comment('账户类型'); + $table->string('bank_account_number')->nullable()->comment('银行账号'); + $table->string('opening_bank')->nullable()->comment('开户行'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 20. 自动开票 + Schema::create('business_auto_invoicing', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('store_name')->comment('店铺名称'); + $table->string('auto_invoice_status')->default('已开启')->comment('自动开票状态'); + $table->text('notes')->nullable()->comment('备注'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 21. 进项报表 + Schema::create('business_input_invoice_reports', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('company_name')->comment('公司名称'); + $table->decimal('input_goods_amount', 15, 2)->default(0)->comment('进项商品金额'); + $table->decimal('input_goods_tax', 15, 2)->default(0)->comment('进项商品税额'); + $table->decimal('input_service_amount', 15, 2)->default(0)->comment('进项服务费金额'); + $table->decimal('input_service_tax', 15, 2)->default(0)->comment('进项服务费税额'); + $table->decimal('input_total_amount', 15, 2)->default(0)->comment('进项金额合计'); + $table->decimal('input_total_tax', 15, 2)->default(0)->comment('进项税额合计'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 22. 销项报表 + Schema::create('business_output_invoice_reports', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('company_name')->comment('公司名称'); + $table->decimal('output_goods_amount', 15, 2)->default(0)->comment('销项商品金额'); + $table->decimal('output_goods_tax', 15, 2)->default(0)->comment('销项商品税额'); + $table->decimal('output_service_amount', 15, 2)->default(0)->comment('销项服务费金额'); + $table->decimal('output_service_tax', 15, 2)->default(0)->comment('销项服务费税额'); + $table->decimal('output_total_amount', 15, 2)->default(0)->comment('销项金额合计'); + $table->decimal('output_total_tax', 15, 2)->default(0)->comment('销项税额合计'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 23. 财务经营分析报表 + Schema::create('business_financial_analysis', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('company_name')->comment('公司名称'); + $table->string('period')->nullable()->comment('期间'); + $table->decimal('revenue', 15, 2)->default(0)->comment('收入'); + $table->decimal('total_cost', 15, 2)->default(0)->comment('总成本'); + $table->decimal('gross_profit', 15, 2)->default(0)->comment('毛利'); + $table->decimal('net_profit', 15, 2)->default(0)->comment('净利润'); + $table->decimal('profit_margin', 8, 4)->default(0)->comment('利润率'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 24. 业务流程统计表 + Schema::create('business_process_statistics', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('process_name')->comment('流程名称'); + $table->integer('total_count')->default(0)->comment('总数量'); + $table->integer('completed_count')->default(0)->comment('已完成'); + $table->integer('pending_count')->default(0)->comment('待处理'); + $table->string('period')->nullable()->comment('期间'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 25. 付款流程统计表 + Schema::create('business_payment_statistics', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('payment_type')->comment('付款类型'); + $table->integer('total_count')->default(0)->comment('总数量'); + $table->integer('completed_count')->default(0)->comment('已完成'); + $table->integer('pending_count')->default(0)->comment('待处理'); + $table->decimal('total_amount', 15, 2)->default(0)->comment('总金额'); + $table->string('period')->nullable()->comment('期间'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + + // 26. 待办事项 + Schema::create('business_todos', function (Blueprint $table) { + $table->increments('id'); + $table->integer('company_id')->default(1); + $table->string('title')->comment('标题'); + $table->string('category')->nullable()->comment('分类'); + $table->string('priority')->default('普通')->comment('优先级'); + $table->string('status')->default('待处理')->comment('状态'); + $table->date('due_date')->nullable()->comment('截止日期'); + $table->text('description')->nullable()->comment('描述'); + $table->timestamps(); + $table->softDeletes(); + $table->index('company_id'); + }); + } + + public function down() + { + Schema::dropIfExists('business_tax_data'); + Schema::dropIfExists('business_company_store_data'); + Schema::dropIfExists('business_store_change_logs'); + Schema::dropIfExists('business_store_receiving_accounts'); + Schema::dropIfExists('business_bank_accounts'); + Schema::dropIfExists('business_courier_collections'); + Schema::dropIfExists('business_invoice_basic_info'); + Schema::dropIfExists('business_store_invoicing'); + Schema::dropIfExists('business_sw_planning'); + Schema::dropIfExists('business_sw_actual_statistics'); + Schema::dropIfExists('business_fund_forecast'); + Schema::dropIfExists('business_company_registrations'); + Schema::dropIfExists('business_company_changes'); + Schema::dropIfExists('business_company_cancellations'); + Schema::dropIfExists('business_trademarks'); + Schema::dropIfExists('business_store_openings'); + Schema::dropIfExists('business_store_changes'); + Schema::dropIfExists('business_store_closings'); + Schema::dropIfExists('business_company_shared_accounts'); + Schema::dropIfExists('business_auto_invoicing'); + Schema::dropIfExists('business_input_invoice_reports'); + Schema::dropIfExists('business_output_invoice_reports'); + Schema::dropIfExists('business_financial_analysis'); + Schema::dropIfExists('business_process_statistics'); + Schema::dropIfExists('business_payment_statistics'); + Schema::dropIfExists('business_todos'); + } +}; diff --git a/resources/views/business/pages/auto_invoicing.blade.php b/resources/views/business/pages/auto_invoicing.blade.php new file mode 100644 index 00000000..1c3033de --- /dev/null +++ b/resources/views/business/pages/auto_invoicing.blade.php @@ -0,0 +1,30 @@ +
+ {{ $title ?? '自动开票' }} +
+
+ + + + + + + + + + + + @foreach($items as $item) + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号店铺名称自动开票状态备注
{{ $loop->iteration }}{{ $item->store_name }}{{ $item->auto_invoice_status }}{{ $item->notes }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/bank_accounts.blade.php b/resources/views/business/pages/bank_accounts.blade.php new file mode 100644 index 00000000..05c76466 --- /dev/null +++ b/resources/views/business/pages/bank_accounts.blade.php @@ -0,0 +1,38 @@ +
+ {{ $title ?? '银行账户信息' }} +
+
+ + + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
账户名称账户类型银行账号开户行ukey密码(制单)登录密码(制单)ukey密码(审核)登录密码(审核)
{{ $item->account_name }}{{ $item->account_type }}{{ $item->bank_account_number }}{{ $item->opening_bank }}{{ $item->ukey_password_maker }}{{ $item->login_password_maker }}{{ $item->ukey_password_reviewer }}{{ $item->login_password_reviewer }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/company_cancellation.blade.php b/resources/views/business/pages/company_cancellation.blade.php new file mode 100644 index 00000000..ce7b513e --- /dev/null +++ b/resources/views/business/pages/company_cancellation.blade.php @@ -0,0 +1,30 @@ +
+ {{ $title ?? '公司注销' }} +
+
+ + + + + + + + + + + + @foreach($items as $item) + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号公司名称注销状态备注
{{ $loop->iteration }}{{ $item->company_name }}{{ $item->cancellation_status }}{{ $item->notes }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/company_change.blade.php b/resources/views/business/pages/company_change.blade.php new file mode 100644 index 00000000..d1628bb8 --- /dev/null +++ b/resources/views/business/pages/company_change.blade.php @@ -0,0 +1,34 @@ +
+ {{ $title ?? '公司变更' }} +
+
+ + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号公司名称变更类型变更状态变更日期备注
{{ $loop->iteration }}{{ $item->company_name }}{{ $item->change_type }}{{ $item->change_status }}{{ $item->change_date }}{{ $item->notes }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/company_registration.blade.php b/resources/views/business/pages/company_registration.blade.php new file mode 100644 index 00000000..7a8a0817 --- /dev/null +++ b/resources/views/business/pages/company_registration.blade.php @@ -0,0 +1,32 @@ +
+ {{ $title ?? '公司注册' }} +
+
+ + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号公司名称注册类型注册状态备注
{{ $loop->iteration }}{{ $item->company_name }}{{ $item->registration_type }}{{ $item->registration_status }}{{ $item->notes }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/courier_collection.blade.php b/resources/views/business/pages/courier_collection.blade.php new file mode 100644 index 00000000..d5816b0f --- /dev/null +++ b/resources/views/business/pages/courier_collection.blade.php @@ -0,0 +1,32 @@ +
+ 快递收款系统 +
+
+ + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号快递名称收款类型收款名称收款账号开户行
{{ $loop->iteration }}{{ $item->courier_name }}{{ $item->collection_type }}{{ $item->collection_name }}{{ $item->collection_account }}{{ $item->opening_bank }}
暂无数据
+
diff --git a/resources/views/business/pages/fund_forecast.blade.php b/resources/views/business/pages/fund_forecast.blade.php new file mode 100644 index 00000000..61034f7e --- /dev/null +++ b/resources/views/business/pages/fund_forecast.blade.php @@ -0,0 +1,108 @@ +
+ {{ $title ?? '资金预测表' }} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
预算月份实际月份店铺余额(预算)店铺余额(实际)银行余额(预算)银行余额(实际)其他余额(预算)其他余额(实际)预计回款(预算)预计回款(实际)收入合计(预算)收入合计(实际)往期未付(预算)往期未付(实际)借支(预算)借支(实际)供应商(预算)供应商(实际)现结(预算)现结(实际)快递(预算)快递(实际)纸厂压贴(预算)纸厂压贴(实际)封边条(预算)封边条(实际)板材(预算)板材(实际)工资(预算)工资(实际)日常费用(预算)日常费用(实际)种菜(预算)种菜(实际)红包(预算)红包(实际)对公扣款(预算)对公扣款(实际)支出合计(预算)支出合计(实际)银行预留净结余(预算)净结余(实际)
{{ $item->budget_month }}{{ $item->actual_month }}{{ number_format($item->store_balance_budget, 2) }}{{ number_format($item->store_balance_actual, 2) }}{{ number_format($item->bank_balance_budget, 2) }}{{ number_format($item->bank_balance_actual, 2) }}{{ number_format($item->other_balance_budget, 2) }}{{ number_format($item->other_balance_actual, 2) }}{{ number_format($item->expected_monthly_return_budget, 2) }}{{ number_format($item->expected_monthly_return_actual, 2) }}{{ number_format($item->income_total_budget, 2) }}{{ number_format($item->income_total_actual, 2) }}{{ number_format($item->prior_unpaid_budget, 2) }}{{ number_format($item->prior_unpaid_actual, 2) }}{{ number_format($item->advance_budget, 2) }}{{ number_format($item->advance_actual, 2) }}{{ number_format($item->supplier_budget, 2) }}{{ number_format($item->supplier_actual, 2) }}{{ number_format($item->spot_settlement_budget, 2) }}{{ number_format($item->spot_settlement_actual, 2) }}{{ number_format($item->courier_budget, 2) }}{{ number_format($item->courier_actual, 2) }}{{ number_format($item->paper_factory_budget, 2) }}{{ number_format($item->paper_factory_actual, 2) }}{{ number_format($item->edge_band_budget, 2) }}{{ number_format($item->edge_band_actual, 2) }}{{ number_format($item->board_budget, 2) }}{{ number_format($item->board_actual, 2) }}{{ number_format($item->salary_budget, 2) }}{{ number_format($item->salary_actual, 2) }}{{ number_format($item->daily_expense_budget, 2) }}{{ number_format($item->daily_expense_actual, 2) }}{{ number_format($item->planting_budget, 2) }}{{ number_format($item->planting_actual, 2) }}{{ number_format($item->red_packet_budget, 2) }}{{ number_format($item->red_packet_actual, 2) }}{{ number_format($item->corporate_deduction_budget, 2) }}{{ number_format($item->corporate_deduction_actual, 2) }}{{ number_format($item->expense_total_budget, 2) }}{{ number_format($item->expense_total_actual, 2) }}{{ number_format($item->bank_reservation, 2) }}{{ number_format($item->net_balance_budget, 2) }}{{ number_format($item->net_balance_actual, 2) }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/invoice_basic_info.blade.php b/resources/views/business/pages/invoice_basic_info.blade.php new file mode 100644 index 00000000..ebbc49bd --- /dev/null +++ b/resources/views/business/pages/invoice_basic_info.blade.php @@ -0,0 +1,36 @@ +
+ {{ $title ?? '发票基础信息' }} +
+
+ + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号店铺名称店铺主体开票员开票额度销项金额进项金额
{{ $loop->iteration }}{{ $item->store_name }}{{ $item->store_entity }}{{ $item->invoice_officer }}{{ number_format($item->invoice_quota, 2) }}{{ number_format($item->output_amount, 2) }}{{ number_format($item->input_amount, 2) }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/invoice_reports.blade.php b/resources/views/business/pages/invoice_reports.blade.php new file mode 100644 index 00000000..fc63238e --- /dev/null +++ b/resources/views/business/pages/invoice_reports.blade.php @@ -0,0 +1,44 @@ +@php + // Determine which fields to show based on active tab + $isInputTab = isset($activeTab) && $activeTab['slug'] === 'input'; + $pageTitle = $isInputTab ? '进项报表' : '销项报表'; + if ($isInputTab) { + $displayFields = ['id', 'company_name', 'input_goods_amount', 'input_goods_tax', 'input_service_amount', 'input_service_tax', 'input_total_amount', 'input_total_tax']; + $displayHeaders = ['序号', '公司名称', '商品金额', '商品税额', '服务费金额', '服务费税额', '金额合计', '税额合计']; + } else { + $displayFields = ['id', 'company_name', 'output_goods_amount', 'output_goods_tax', 'output_service_amount', 'output_service_tax', 'output_total_amount', 'output_total_tax']; + $displayHeaders = ['序号', '公司名称', '商品金额', '商品税额', '服务费金额', '服务费税额', '金额合计', '税额合计']; + } +@endphp +
+ {{ $pageTitle ?? '发票数据报表' }} +
+
+ + + + @foreach($displayHeaders as $h) + + @endforeach + + + + @foreach($items as $item) + + @foreach($displayFields as $f) + @if($f === 'id') + + @elseif(in_array($f, ['input_goods_amount', 'input_goods_tax', 'input_service_amount', 'input_service_tax', 'input_total_amount', 'input_total_tax', 'output_goods_amount', 'output_goods_tax', 'output_service_amount', 'output_service_tax', 'output_total_amount', 'output_total_tax'])) + + @else + + @endif + @endforeach + + @endforeach + @if($items->isEmpty()) + + @endif + +
{{ $h }}
{{ $loop->iteration }}{{ number_format($item->$f, 2) }}{{ $item->$f }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/payment_statistics.blade.php b/resources/views/business/pages/payment_statistics.blade.php new file mode 100644 index 00000000..194692d3 --- /dev/null +++ b/resources/views/business/pages/payment_statistics.blade.php @@ -0,0 +1,36 @@ +
+ {{ $title ?? '付款流程统计表' }} +
+
+ + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号付款类型总数量已完成待处理总金额期间
{{ $loop->iteration }}{{ $item->payment_type }}{{ $item->total_count }}{{ $item->completed_count }}{{ $item->pending_count }}{{ number_format($item->total_amount, 2) }}{{ $item->period }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/process_statistics.blade.php b/resources/views/business/pages/process_statistics.blade.php new file mode 100644 index 00000000..e3e913be --- /dev/null +++ b/resources/views/business/pages/process_statistics.blade.php @@ -0,0 +1,34 @@ +
+ {{ $title ?? '业务流程统计表' }} +
+
+ + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号流程名称总数量已完成待处理期间
{{ $loop->iteration }}{{ $item->process_name }}{{ $item->total_count }}{{ $item->completed_count }}{{ $item->pending_count }}{{ $item->period }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/shared_accounts.blade.php b/resources/views/business/pages/shared_accounts.blade.php new file mode 100644 index 00000000..4c5e8391 --- /dev/null +++ b/resources/views/business/pages/shared_accounts.blade.php @@ -0,0 +1,30 @@ +
+ {{ $title ?? '公司公用账户信息' }} +
+
+ + + + + + + + + + + + @foreach($items as $item) + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
账户名称账户类型银行账号开户行
{{ $item->account_name }}{{ $item->account_type }}{{ $item->bank_account_number }}{{ $item->opening_bank }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/store_change_log.blade.php b/resources/views/business/pages/store_change_log.blade.php new file mode 100644 index 00000000..af815f25 --- /dev/null +++ b/resources/views/business/pages/store_change_log.blade.php @@ -0,0 +1,34 @@ +
+ {{ $title ?? '店铺变更统计表' }} +
+
+ + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号店铺名称店铺主体变更时间收款账户信息历史主体
{{ $loop->iteration }}{{ $item->store_name }}{{ $item->store_entity }}{{ $item->change_date }}{{ $item->receiving_account_info }}{{ $item->historical_entity }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/store_data.blade.php b/resources/views/business/pages/store_data.blade.php new file mode 100644 index 00000000..6c841834 --- /dev/null +++ b/resources/views/business/pages/store_data.blade.php @@ -0,0 +1,36 @@ +
+ {{ $title ?? '公司店铺数据' }} +
+
+ + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号公司名称店铺名称店铺业绩公司业绩是否触发店铺变更流程是否触发公司注册流程
{{ $loop->iteration }}{{ $item->company_name }}{{ $item->store_name }}{{ number_format($item->store_performance, 2) }}{{ number_format($item->company_performance, 2) }}@if($item->trigger_store_change) 是 @else 否 @endif@if($item->trigger_company_registration) 是 @else 否 @endif
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/store_invoicing.blade.php b/resources/views/business/pages/store_invoicing.blade.php new file mode 100644 index 00000000..e6a6306c --- /dev/null +++ b/resources/views/business/pages/store_invoicing.blade.php @@ -0,0 +1,40 @@ +
+ {{ $title ?? '店铺后台开票' }} +
+
+ + + + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号店铺销售方名称销售方税号购买方名称购买方税号开票金额类目开票类型
{{ $loop->iteration }}{{ $item->store_name }}{{ $item->seller_name }}{{ $item->seller_tax_number }}{{ $item->buyer_name }}{{ $item->buyer_tax_number }}{{ number_format($item->invoice_amount, 2) }}{{ $item->category }}{{ $item->invoice_type }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/store_process.blade.php b/resources/views/business/pages/store_process.blade.php new file mode 100644 index 00000000..41e01827 --- /dev/null +++ b/resources/views/business/pages/store_process.blade.php @@ -0,0 +1,32 @@ +
+ {{ $title ?? '店铺流程' }} +
+
+ + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号店铺名称店铺平台状态备注
{{ $loop->iteration }}{{ $item->store_name }}{{ $item->store_platform }}{{ $item->opening_status }}{{ $item->notes }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/store_receiving_accounts.blade.php b/resources/views/business/pages/store_receiving_accounts.blade.php new file mode 100644 index 00000000..b3a764d6 --- /dev/null +++ b/resources/views/business/pages/store_receiving_accounts.blade.php @@ -0,0 +1,42 @@ +
+ {{ $title ?? '店铺收款账户信息' }} +
+
+ + + + + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
店铺平台店铺名称钱包号店铺主体名称登录账号登录密码收款方式收款账户名称支付宝账号/银行账号开户银行
{{ $item->store_platform }}{{ $item->store_name }}{{ $item->wallet_number }}{{ $item->store_entity_name }}{{ $item->login_account }}{{ $item->login_password }}{{ $item->receiving_method }}{{ $item->receiving_account_name }}{{ $item->alipay_or_bank_account }}{{ $item->opening_bank }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/sw_actual_statistics.blade.php b/resources/views/business/pages/sw_actual_statistics.blade.php new file mode 100644 index 00000000..4569b143 --- /dev/null +++ b/resources/views/business/pages/sw_actual_statistics.blade.php @@ -0,0 +1,120 @@ +
+ {{ $title ?? '实际SW统计表' }} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号区域公司类型对接人代账公司期间公司名称提供业绩实际申报业绩商品收入(专票金额)商品收入(专票税额)商品收入(普票金额)商品收入(普票税额)商品收入(未开票金额)商品收入(未开票税额)商品收入小计商品税金小计服务收入(专票金额)服务收入(专票税额)服务收入(普票金额)服务收入(普票税额)服务收入(未开票金额)服务收入(未开票税额)服务收入小计服务税金小计合计收入合计税金进项商品金额进项商品税额进项服务费金额进项服务费税额进项其他金额进项其他税额进项金额合计进项税额合计加计抵减留抵税金本月应交增值税城建税金教育费附加地方教育费附加印花税工会经费个税所得税垃圾处理费其他(滞纳金)税金合计税负
{{ $loop->iteration }}{{ $item->region }}{{ $item->company_type }}{{ $item->contact_person }}{{ $item->bookkeeping_company }}{{ $item->period }}{{ $item->company_name }}{{ number_format($item->provided_performance, 2) }}{{ number_format($item->actual_declared_performance, 2) }}{{ number_format($item->goods_special_invoice_amount, 2) }}{{ number_format($item->goods_special_invoice_tax, 2) }}{{ number_format($item->goods_general_invoice_amount, 2) }}{{ number_format($item->goods_general_invoice_tax, 2) }}{{ number_format($item->goods_uninvoiced_amount, 2) }}{{ number_format($item->goods_uninvoiced_tax, 2) }}{{ number_format($item->goods_income_subtotal, 2) }}{{ number_format($item->goods_tax_subtotal, 2) }}{{ number_format($item->service_special_invoice_amount, 2) }}{{ number_format($item->service_special_invoice_tax, 2) }}{{ number_format($item->service_general_invoice_amount, 2) }}{{ number_format($item->service_general_invoice_tax, 2) }}{{ number_format($item->service_uninvoiced_amount, 2) }}{{ number_format($item->service_uninvoiced_tax, 2) }}{{ number_format($item->service_income_subtotal, 2) }}{{ number_format($item->service_tax_subtotal, 2) }}{{ number_format($item->total_income, 2) }}{{ number_format($item->total_tax, 2) }}{{ number_format($item->input_goods_amount, 2) }}{{ number_format($item->input_goods_tax, 2) }}{{ number_format($item->input_service_amount, 2) }}{{ number_format($item->input_service_tax, 2) }}{{ number_format($item->input_other_amount, 2) }}{{ number_format($item->input_other_tax, 2) }}{{ number_format($item->input_total_amount, 2) }}{{ number_format($item->input_total_tax, 2) }}{{ number_format($item->additional_deduction, 2) }}{{ number_format($item->retained_tax, 2) }}{{ number_format($item->monthly_vat, 2) }}{{ number_format($item->urban_maintenance_tax, 2) }}{{ number_format($item->education_surcharge, 2) }}{{ number_format($item->local_education_surcharge, 2) }}{{ number_format($item->stamp_tax, 2) }}{{ number_format($item->union_fund, 2) }}{{ number_format($item->personal_income_tax, 2) }}{{ number_format($item->corporate_income_tax, 2) }}{{ number_format($item->garbage_fee, 2) }}{{ number_format($item->other_late_fee, 2) }}{{ number_format($item->total_paid_tax, 2) }}{{ $item->tax_burden }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/sw_planning.blade.php b/resources/views/business/pages/sw_planning.blade.php new file mode 100644 index 00000000..5fd5a335 --- /dev/null +++ b/resources/views/business/pages/sw_planning.blade.php @@ -0,0 +1,40 @@ +
+ {{ $title ?? '财务SW规划表' }} +
+
+ + + + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号公司名称最终报税业绩商品成本物流成本平台来票人工其他报销利润
{{ $loop->iteration }}{{ $item->company_name }}{{ number_format($item->final_tax_performance, 2) }}{{ number_format($item->product_cost, 2) }}{{ number_format($item->logistics_cost, 2) }}{{ number_format($item->platform_invoice, 2) }}{{ number_format($item->labor_cost, 2) }}{{ number_format($item->other_expenses, 2) }}{{ number_format($item->profit, 2) }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/tax_data.blade.php b/resources/views/business/pages/tax_data.blade.php new file mode 100644 index 00000000..deaf601c --- /dev/null +++ b/resources/views/business/pages/tax_data.blade.php @@ -0,0 +1,44 @@ +
+ {{ $title ?? '店铺后台税务数据' }} +
+
+ + + + + + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号公司名称公司真实发货业绩公司种菜业绩退款金额业绩净收入税务业绩税务退款税务净收入业绩差额最终报税业绩
{{ $loop->iteration }}{{ $item->company_name }}{{ number_format($item->real_shipping_performance, 2) }}{{ number_format($item->planting_performance, 2) }}{{ number_format($item->refund_amount, 2) }}{{ number_format($item->net_performance_income, 2) }}{{ number_format($item->tax_performance, 2) }}{{ number_format($item->tax_refund, 2) }}{{ number_format($item->tax_net_income, 2) }}{{ number_format($item->performance_difference, 2) }}{{ number_format($item->final_tax_performance, 2) }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/todos.blade.php b/resources/views/business/pages/todos.blade.php new file mode 100644 index 00000000..0b46be9f --- /dev/null +++ b/resources/views/business/pages/todos.blade.php @@ -0,0 +1,36 @@ +
+ {{ $title ?? '待办事项' }} +
+
+ + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号标题分类优先级状态截止日期描述
{{ $loop->iteration }}{{ $item->title }}{{ $item->category }}{{ $item->priority }}{{ $item->status }}{{ $item->due_date }}{{ $item->description }}
暂无数据
+
\ No newline at end of file diff --git a/resources/views/business/pages/trademark.blade.php b/resources/views/business/pages/trademark.blade.php new file mode 100644 index 00000000..82d338ea --- /dev/null +++ b/resources/views/business/pages/trademark.blade.php @@ -0,0 +1,36 @@ +
+ {{ $title ?? '商标信息' }} +
+
+ + + + + + + + + + + + + + + @foreach($items as $item) + + + + + + + + + + + @endforeach + @if($items->isEmpty()) + + @endif + +
序号商标名称商标类型商标状态注册日期到期日期备注
{{ $loop->iteration }}{{ $item->trademark_name }}{{ $item->trademark_type }}{{ $item->trademark_status }}{{ $item->registration_date }}{{ $item->expiry_date }}{{ $item->notes }}
暂无数据
+
\ No newline at end of file diff --git a/serviceworker.js b/serviceworker.js index e0ee6ee4..bcca3fb2 100644 --- a/serviceworker.js +++ b/serviceworker.js @@ -1,22 +1,20 @@ -var staticCacheName = "pwa-v" + new Date().getTime(); +var staticCacheName = "pwa-v2"; var filesToCache = [ - 'public/img/pwa/icon-192x192.png', - 'public/img/pwa/icon-512x512.png' + '/public/img/pwa/icon-192x192.png', + '/public/img/pwa/icon-512x512.png' ]; -/* // Cache on install self.addEventListener("install", event => { - this.skipWaiting(); event.waitUntil( caches.open(staticCacheName) .then(cache => { return cache.addAll(filesToCache); }) + .then(() => self.skipWaiting()) ) }); -*/ -/* + // Clear cache on activate self.addEventListener('activate', event => { event.waitUntil( @@ -27,19 +25,29 @@ self.addEventListener('activate', event => { .filter(cacheName => (cacheName !== staticCacheName)) .map(cacheName => caches.delete(cacheName)) ); - }) + }).then(() => self.clients.claim()) ); -});*/ +}); -// Serve from Cache +// Navigation must prefer the network so cached redirects cannot mask auth state. self.addEventListener("fetch", event => { + if (event.request.method !== 'GET') { + return; + } + + if (event.request.mode === 'navigate') { + event.respondWith( + fetch(event.request) + .catch(() => caches.match(event.request)) + ); + + return; + } + event.respondWith( caches.match(event.request) .then(response => { return response || fetch(event.request); }) - .catch(() => { - return caches.match('offline'); - }) ) });