Browse Source

BUG修改

master
parent
commit
bd8b0bc572
  1. 5
      src/utils/dict.ts
  2. 13
      src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts
  3. 1
      src/views/eam/basic/deviceMaintenance/index.vue
  4. 14
      src/views/eam/basic/inspection/inspection.data.ts
  5. 14
      src/views/eam/basic/item/item.data.ts
  6. 46
      src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts

5
src/utils/dict.ts

@ -189,7 +189,8 @@ export enum DICT_TYPE {
ABC_CLASS = 'abc_class', // ABC类 ABC_CLASS = 'abc_class', // ABC类
TRUE_FALSE = 'true_false', // 是否 TRUE_FALSE = 'true_false', // 是否
ITEM_GROUP = 'item_group', // 物品分组 ITEM_GROUP = 'item_group', // 物品分组
ITEM_CATEGORY = 'Item_category', // 物品种类 ITEM_CATEGORY = 'item_category', // 物品种类
ITEM_REGION = 'item_region', // 物品区域
ITEM_COLOR = 'item_color', // 物品颜色 ITEM_COLOR = 'item_color', // 物品颜色
ITEM_CONFIGURATION = 'item_configuration', // 物品配置 ITEM_CONFIGURATION = 'item_configuration', // 物品配置
EQ_LEVEL = 'eq_level', // 质量等级 EQ_LEVEL = 'eq_level', // 质量等级
@ -299,5 +300,5 @@ export enum DICT_TYPE {
ADJUST_STATUS = 'adjust_status', //盘点调整状态 ADJUST_STATUS = 'adjust_status', //盘点调整状态
APP_DEVICE_MOLD_TYPE = 'app_device_mold_type', //设备/模具/工艺:类型 APP_DEVICE_MOLD_TYPE = 'app_device_mold_type', //设备/模具/工艺:类型
ITEM_SUBJECT = 'item_subject', //备件的科目 ITEM_SUBJECT = 'item_subject', //备件的科目
ITEM_CATEGOR = 'item_categor', //备件的类别
} }

13
src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts

@ -21,6 +21,7 @@ export const DeviceMOLD = useCrudSchemas(reactive<CrudSchema[]>([
width: 180, width: 180,
fixed: 'left' fixed: 'left'
}, },
}, },
{ {
label: '名称', label: '名称',
@ -41,6 +42,11 @@ export const DeviceMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
componentProps: {
type: 'textarea',
}
}
}, },
{ {
label: '类型', label: '类型',
@ -84,6 +90,13 @@ export const DeviceMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '设备名称',
field: 'deviceName',
sort: 'custom',
isSearch: false,
isForm: false,
},
{ {
label: '项类型', label: '项类型',
field: 'status', field: 'status',

1
src/views/eam/basic/deviceMaintenance/index.vue

@ -42,6 +42,7 @@
<BasicForm <BasicForm
ref="basicFormRef" ref="basicFormRef"
@success="formsSuccess" @success="formsSuccess"
:isCol="true"
:rules="DeviceMaintenanceRules" :rules="DeviceMaintenanceRules"
:formAllSchemas="DeviceMaintenance.allSchemas" :formAllSchemas="DeviceMaintenance.allSchemas"
:apiUpdate="DeviceMaintenanceApi.updateDeviceMoldItems" :apiUpdate="DeviceMaintenanceApi.updateDeviceMoldItems"

14
src/views/eam/basic/inspection/inspection.data.ts

@ -37,10 +37,15 @@ export const DeviceMOLD = useCrudSchemas(reactive<CrudSchema[]>([
export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '保养内容', label: '巡检点检项',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
componentProps: {
type: 'textarea',
}
}
}, },
{ {
label: '类型', label: '类型',
@ -84,6 +89,13 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '设备名称',
field: 'deviceName',
sort: 'custom',
isSearch: false,
isForm: false,
},
{ {
label: '项类型', label: '项类型',
field: 'status', field: 'status',

14
src/views/eam/basic/item/item.data.ts

@ -86,7 +86,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
label: '类别', label: '类别',
field: 'category', field: 'category',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ITEM_CATEGOR, dictType: DICT_TYPE.ITEM_CATEGORY,
dictClass: 'string', dictClass: 'string',
isSearch: false, isSearch: false,
isTable: true, isTable: true,
@ -106,6 +106,18 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
type: 'Select' type: 'Select'
} }
}, },
{
label: '区域',
field: 'region',
sort: 'custom',
dictType: DICT_TYPE.ITEM_REGION,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{ {
label: '单价', label: '单价',
field: 'singlePrice', field: 'singlePrice',

46
src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts

@ -41,21 +41,26 @@ export const MoldMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
componentProps: {
type: 'textarea',
}
}
},
{
label: '类型',
field: 'type',
dictType: DICT_TYPE.DEVICE_MOLD_TYPE,
dictClass: 'string',
sort: 'custom',
isSearch: false,
form: {
value: 'MOLD',
componentProps: {
disabled: true,
}
}
}, },
{
label: '类型',
field: 'type',
dictType: DICT_TYPE.DEVICE_MOLD_TYPE,
dictClass: 'string',
sort: 'custom',
isSearch: false,
form: {
value: 'MOLD',
componentProps: {
disabled: true,
}
}
},
{ {
label: '模具编号', label: '模具编号',
field: 'deviceNumber', field: 'deviceNumber',
@ -84,6 +89,13 @@ export const MoldMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '模具名称',
field: 'deviceName',
sort: 'custom',
isSearch: false,
isForm: false,
},
{ {
label: '项类型', label: '项类型',
field: 'status', field: 'status',
@ -106,9 +118,9 @@ export const MoldMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string', dictClass: 'string',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: { form: {
component: 'Select' component: 'Select'
}, },
}, },
{ {
label: '是否可用', label: '是否可用',

Loading…
Cancel
Save