|
@@ -97,6 +97,7 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
treeNode: true,
|
|
|
type: 'input',
|
|
|
column: {
|
|
|
+ show:false,
|
|
|
minWidth: 120,
|
|
|
},
|
|
|
form: {
|
|
@@ -114,41 +115,42 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
rules: [{ required: true, message: '' }],
|
|
|
}
|
|
|
},
|
|
|
- device:{
|
|
|
- title: '设备id',
|
|
|
- type: 'dict-select',
|
|
|
+
|
|
|
+ device_code:{
|
|
|
+ title: '设备编号',
|
|
|
+ type: 'input',
|
|
|
column: {
|
|
|
- show:false,
|
|
|
+ show:true,
|
|
|
minWidth: 120,
|
|
|
},
|
|
|
- dict: dict({
|
|
|
- url: '/api/system/device/',
|
|
|
- value: 'id',
|
|
|
- label: 'name',
|
|
|
- }),
|
|
|
form: {
|
|
|
- component: { placeholder: '请填写设备id' },
|
|
|
- rules: [{ required: true, message: '请填写设备id' }],
|
|
|
- },
|
|
|
- editForm:{
|
|
|
- component: { disabled: true },
|
|
|
+ show:true,
|
|
|
+ component: { placeholder: '请填写设备编号' },
|
|
|
+ rules: [{ required: true, message: '请填写设备编号' }],
|
|
|
},
|
|
|
viewForm:{
|
|
|
component: { placeholder: '' },
|
|
|
rules: [{ required: true, message: '' }],
|
|
|
}
|
|
|
},
|
|
|
- device_code:{
|
|
|
- title: '设备编码',
|
|
|
- type: 'input',
|
|
|
+ device:{
|
|
|
+ title: '设备名称',
|
|
|
+ type: 'dict-select',
|
|
|
column: {
|
|
|
show:false,
|
|
|
minWidth: 120,
|
|
|
},
|
|
|
+ dict: dict({
|
|
|
+ url: '/api/system/device/',
|
|
|
+ value: 'id',
|
|
|
+ label: 'name',
|
|
|
+ }),
|
|
|
form: {
|
|
|
- show:true,
|
|
|
- component: { placeholder: '请填写设备编码' },
|
|
|
- rules: [{ required: true, message: '请填写设备编码' }],
|
|
|
+ component: { placeholder: '请填写设备名称' },
|
|
|
+ rules: [{ required: true, message: '请填写设备名称' }],
|
|
|
+ },
|
|
|
+ editForm:{
|
|
|
+ component: { disabled: true },
|
|
|
},
|
|
|
viewForm:{
|
|
|
component: { placeholder: '' },
|
|
@@ -207,7 +209,7 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
},
|
|
|
form: {
|
|
|
value:1,
|
|
|
- show:true,
|
|
|
+ show:false,
|
|
|
component: { placeholder: '请填写排序'},
|
|
|
rules: [{ required: false, message: '请填写排序' }],
|
|
|
},
|
|
@@ -220,14 +222,14 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
}
|
|
|
},
|
|
|
damage_reason:{
|
|
|
- title: '原因',
|
|
|
+ title: '维修原因',
|
|
|
type: 'input',
|
|
|
column: {
|
|
|
minWidth: 120,
|
|
|
},
|
|
|
form: {
|
|
|
- component: { placeholder: '请填写原因' },
|
|
|
- rules: [{ required: false, message: '请填写原因' }],
|
|
|
+ component: { placeholder: '请填写维修原因' },
|
|
|
+ rules: [{ required: false, message: '请填写维修原因' }],
|
|
|
},
|
|
|
viewForm:{
|
|
|
component: { placeholder: '' },
|
|
@@ -235,7 +237,7 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
}
|
|
|
},
|
|
|
estimated_loss:{
|
|
|
- title: '维修费用',
|
|
|
+ title: '维修费用(元)',
|
|
|
type: 'input',
|
|
|
column: {
|
|
|
minWidth: 120,
|
|
@@ -252,6 +254,9 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
return form && form.damage_type === 1;
|
|
|
})
|
|
|
},
|
|
|
+ addForm:{
|
|
|
+ show:false,
|
|
|
+ },
|
|
|
viewForm:{
|
|
|
component: { placeholder: '' },
|
|
|
rules: [{ required: true, message: '' }],
|
|
@@ -262,12 +267,43 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
}
|
|
|
},
|
|
|
responsible_person:{
|
|
|
+ title: '维修人',
|
|
|
+ type: 'input',
|
|
|
+ column: {
|
|
|
+ minWidth: 120,
|
|
|
+ },
|
|
|
+ form: {
|
|
|
+ component: { placeholder: '请填写维修人' },
|
|
|
+ rules: [{ required: false, message: '请填写维修人' }],
|
|
|
+ },
|
|
|
+ viewForm:{
|
|
|
+ component: { placeholder: '' },
|
|
|
+ rules: [{ required: true, message: '' }],
|
|
|
+ }
|
|
|
+ },
|
|
|
+ responsible_phone:{
|
|
|
+ title: '维修人联系方式',
|
|
|
+ type: 'input',
|
|
|
+ column: {
|
|
|
+ minWidth: 120,
|
|
|
+ },
|
|
|
+ form: {
|
|
|
+ component: { placeholder: '请填写维修人联系方式' },
|
|
|
+ rules: [{ required: false, message: '请填写维修人联系方式' }],
|
|
|
+ },
|
|
|
+ viewForm:{
|
|
|
+ component: { placeholder: '' },
|
|
|
+ rules: [{ required: true, message: '' }],
|
|
|
+ }
|
|
|
+ },
|
|
|
+ reporter_name:{
|
|
|
title: '负责人',
|
|
|
type: 'input',
|
|
|
column: {
|
|
|
minWidth: 120,
|
|
|
},
|
|
|
form: {
|
|
|
+ show:false,
|
|
|
component: { placeholder: '请填写负责人' },
|
|
|
rules: [{ required: false, message: '请填写负责人' }],
|
|
|
},
|