pushuo 2022-08-31 18:15:03 +08:00
parent c3c94acaff
commit b2b985daf9
4 changed files with 13 additions and 9 deletions

View File

@ -124,8 +124,8 @@
}, },
rules: { rules: {
title: [{required: true,message: '请输入税类名称',trigger: 'blur'}, ], title: [{required: true,message: "{{ __('common.error_required', ['name' => __('admin/region.name')])}}",trigger: 'blur'}, ],
description: [{required: true,message: '请输入描述',trigger: 'blur'}, ], description: [{required: true,message: '{{ __('common.error_required', ['name' => __('admin/region.describe')])}}',trigger: 'blur'}, ],
} }
}, },

View File

@ -96,7 +96,7 @@
source: { source: {
all_tax_rates: @json($all_tax_rates ?? []), all_tax_rates: @json($all_tax_rates ?? []),
regions: @json($regions ?? []), regions: @json($regions ?? []),
types: [{value:'percent', name: '百分比'}, {value:'flat', name: '固定税率'}] types: [{value:'percent', name: '{{ __('admin/tax_rate.percentage') }}'}, {value:'flat', name: '{{ __('admin/tax_rate.fixed_tax_rate') }}'}]
}, },
dialog: { dialog: {
@ -113,8 +113,8 @@
}, },
rules: { rules: {
name: [{required: true,message: '请输入税种',trigger: 'blur'}, ], name: [{required: true,message: '{{ __('common.error_required', ['name' => __('admin/tax_rate.tax_rate.tax')])}}',trigger: 'blur'}, ],
rate: [{required: true,message: '请输入税率',trigger: 'blur'}, ], rate: [{required: true,message: '{{ __('common.error_required', ['name' => __('admin/tax_rate.tax_rate')])}}',trigger: 'blur'}, ],
} }
}, },
@ -149,7 +149,7 @@
this.$refs[form].validate((valid) => { this.$refs[form].validate((valid) => {
if (!valid) { if (!valid) {
this.$message.error('请检查表单是否填写正确'); this.$message.error('{{ __('common.error_form') }}');
return; return;
} }
@ -168,9 +168,9 @@
deleteCustomer(id, index) { deleteCustomer(id, index) {
const self = this; const self = this;
this.$confirm('确定要删除税类吗?', '提示', { this.$confirm('{{ __('common.confirm_delete') }}', '{{ __('common.text_hint') }}', {
confirmButtonText: '确定', confirmButtonText: '{{ __('common.confirm') }}',
cancelButtonText: '取消', cancelButtonText: '{{ __('common.cancel') }}',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
$http.delete('tax_rates/' + id).then((res) => { $http.delete('tax_rates/' + id).then((res) => {

View File

@ -16,6 +16,8 @@ return [
'tax_rate' => 'Tax Rate', 'tax_rate' => 'Tax Rate',
'type' => 'Type', 'type' => 'Type',
'area' => 'Area', 'area' => 'Area',
'percentage' => 'Percentage',
'fixed_tax_rate' => 'Fixed Tax Rate',
'tax_rates_index' => 'Index', 'tax_rates_index' => 'Index',
'tax_rates_create' => 'Create', 'tax_rates_create' => 'Create',
'tax_rates_show' => 'Detail', 'tax_rates_show' => 'Detail',

View File

@ -16,6 +16,8 @@ return [
'tax_rate' => '税率', 'tax_rate' => '税率',
'type' => '类型', 'type' => '类型',
'area' => '区域', 'area' => '区域',
'percentage' => '百分比',
'fixed_tax_rate' => '固定税率',
'tax_rates_index' => '税率列表', 'tax_rates_index' => '税率列表',
'tax_rates_create' => '创建税率', 'tax_rates_create' => '创建税率',
'tax_rates_show' => '税率详情', 'tax_rates_show' => '税率详情',