This commit is contained in:
2026-07-27 17:19:36 +08:00
parent e50d1b8fda
commit 1c7532e0de
132 changed files with 7066 additions and 1241 deletions

View File

@@ -33,21 +33,26 @@ export const accidentResponsibilityDic = [
export const option = {
height: 'auto',
calcHeight: 32,
dialogWidth: 1050,
labelPosition: 'top',
dialogWidth: 960,
labelPosition: 'right',
labelWidth: 'auto',
searchLabelWidth: 160,
tip: false,
searchBtnText: '查询',
emptyBtnText: '重置',
saveBtnText: '提交',
updateBtnText: '提交',
searchShow: true,
searchMenuSpan: 6,
searchMenuSpan: 24,
searchIcon: true,
searchIndex: 8,
searchMenuPosition: 'right',
border: true,
index: true,
viewBtn: true,
selection: true,
dialogClickModal: false,
menuWidth: 180,
menuWidth: 220,
column: [
{
label: '车船类型',
@@ -57,6 +62,7 @@ export const option = {
dicData: vehicleTypeDic,
value: '车辆',
search: true,
span: 24,
rules: [{ required: true, message: '请选择车船类型', trigger: 'change' }],
},
{
@@ -66,6 +72,8 @@ export const option = {
formslot: true,
search: true,
minWidth: 140,
span: 12,
placeholder: '输入车牌号/船号查询选择',
rules: [
{ required: true, message: '请输入车牌号/船号', trigger: 'blur' },
{ max: 30, message: '最多 30 个字符', trigger: 'blur' },
@@ -78,6 +86,8 @@ export const option = {
format: 'YYYY-MM-DD',
valueFormat: 'YYYY-MM-DD',
minWidth: 140,
span: 12,
placeholder: '请选择,日期选择器',
rules: [{ required: true, message: '请选择事故发生日期', trigger: 'click' }],
},
{
@@ -85,6 +95,8 @@ export const option = {
prop: 'accidentLocation',
minWidth: 200,
overHidden: true,
span: 12,
placeholder: '请输入100字内',
rules: [{ max: 100, message: '最多 100 个字符', trigger: 'blur' }],
},
{
@@ -94,6 +106,8 @@ export const option = {
dicData: accidentNatureDic,
search: true,
minWidth: 120,
span: 12,
placeholder: '请选择',
rules: [{ required: true, message: '请选择事故性质', trigger: 'change' }],
},
{
@@ -103,6 +117,8 @@ export const option = {
dicData: accidentResponsibilityDic,
search: true,
minWidth: 120,
span: 12,
placeholder: '请选择',
rules: [{ required: true, message: '请选择事故责任', trigger: 'change' }],
},
{
@@ -112,6 +128,8 @@ export const option = {
precision: 2,
append: '元',
minWidth: 140,
span: 12,
placeholder: '请输入',
rules: [{ validator: validateNonNegative, trigger: 'blur' }],
},
{
@@ -121,17 +139,20 @@ export const option = {
precision: 2,
append: '元',
minWidth: 140,
span: 12,
placeholder: '请输入',
rules: [{ validator: validateNonNegative, trigger: 'blur' }],
},
{
label: '事故原因',
label: '事故原因及损坏情况',
prop: 'accidentReasonDamage',
type: 'textarea',
minRows: 3,
minRows: 4,
span: 24,
search: true,
minWidth: 220,
overHidden: true,
placeholder: '请输入500字以内',
rules: [{ max: 500, message: '最多 500 个字符', trigger: 'blur' }],
},
{
@@ -142,24 +163,16 @@ export const option = {
span: 24,
minWidth: 180,
overHidden: true,
placeholder: '请输入200字以内',
rules: [{ max: 200, message: '最多 200 个字符', trigger: 'blur' }],
},
{
label: '附件',
prop: 'attachments',
type: 'upload',
listType: 'text',
multiple: true,
accept: '.jpg,.jpeg,.png,.pdf',
propsHttp: {
res: 'data',
url: 'link',
name: 'name',
},
action: '/blade-resource/oss/endpoint/put-file',
span: 24,
minWidth: 100,
slot: true,
formslot: true,
},
{
label: '事故评定开始日期',
@@ -203,7 +216,6 @@ export const option = {
type: 'date',
format: 'YYYY-MM-DD 00:00:00',
valueFormat: 'YYYY-MM-DD 00:00:00',
search: true,
hide: true,
addDisplay: false,
editDisplay: false,
@@ -215,7 +227,6 @@ export const option = {
type: 'date',
format: 'YYYY-MM-DD 23:59:59',
valueFormat: 'YYYY-MM-DD 23:59:59',
search: true,
hide: true,
addDisplay: false,
editDisplay: false,
@@ -261,6 +272,7 @@ export const option = {
};
export const excelOption = {
labelPosition: 'right',
submitBtn: false,
emptyBtn: false,
column: [