|
@@ -196,7 +196,7 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
minWidth: 120,
|
|
|
},
|
|
|
dict: dict({
|
|
|
- url: '/api/system/device/',
|
|
|
+ url: '/api/system/device/?has_inventory=1',
|
|
|
value: 'id',
|
|
|
label: 'name',
|
|
|
}),
|
|
@@ -586,14 +586,14 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
title: '维修状态',
|
|
|
type: 'dict-select',
|
|
|
column: {
|
|
|
- show:false,
|
|
|
+ show:true,
|
|
|
minWidth: 120,
|
|
|
},
|
|
|
dict: dict({
|
|
|
data: [
|
|
|
- { label: '待维修', value: 1 },
|
|
|
- { label: '维修中', value: 2 },
|
|
|
- { label: '维修完成', value: 3 },
|
|
|
+ { label: '待维修', value: 1 ,color: "warning"},
|
|
|
+ { label: '维修中', value: 2 ,color: "primary"},
|
|
|
+ { label: '维修完成', value: 3,color: "success" },
|
|
|
],
|
|
|
}),
|
|
|
form: {
|
|
@@ -612,7 +612,7 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
rules: [{ required: true, message: '' }],
|
|
|
}
|
|
|
},
|
|
|
- status_display:{
|
|
|
+ /* status_display:{
|
|
|
title: '维修状态',
|
|
|
type: 'input',
|
|
|
column: {
|
|
@@ -627,7 +627,7 @@ export const createCrudOptions = function ({ crudExpose, dialogId,
|
|
|
component: { placeholder: '' },
|
|
|
rules: [{ required: true, message: '' }],
|
|
|
}
|
|
|
- },
|
|
|
+ }, */
|
|
|
remark:{
|
|
|
title: '备注',
|
|
|
type: 'input',
|