diff --git a/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts b/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts index 97fa5bd..a42e068 100644 --- a/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts +++ b/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts @@ -145,7 +145,7 @@ export const DeviceMaintenance = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 170, + width: 200, }, form: { component: 'InputNumber', diff --git a/src/views/eam/basic/item/item.data.ts b/src/views/eam/basic/item/item.data.ts index 405f418..586fd79 100644 --- a/src/views/eam/basic/item/item.data.ts +++ b/src/views/eam/basic/item/item.data.ts @@ -231,31 +231,31 @@ export const Item = useCrudSchemas(reactive([ } } }, - // { - // label: '是否可用', - // field: 'available', - // dictType: DICT_TYPE.TRUE_FALSE, - // dictClass: 'string', - // isSearch: false, - // isTable: true, - // sort: 'custom', - // table: { - // width: 150 - // }, - // tableForm: { - // type: 'Select', - // inactiveValue: 'FALSE', - // disabled: true - // }, - // form: { - // component: 'Switch', - // value: 'TRUE', - // componentProps: { - // inactiveValue: 'FALSE', - // activeValue: 'TRUE' - // } - // } - // }, + { + label: '是否可用', + field: 'available', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: false, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm: { + type: 'Select', + inactiveValue: 'FALSE', + disabled: true + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, { label: '创建时间', field: 'createTime', diff --git a/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts b/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts index 5b92e95..087478a 100644 --- a/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts +++ b/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts @@ -144,7 +144,7 @@ export const MoldMaintenance = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 170, + width: 200, }, form: { component: 'InputNumber', diff --git a/src/views/eam/device/problemSolving/index.vue b/src/views/eam/device/problemSolving/index.vue index 6b6570a..dae632f 100644 --- a/src/views/eam/device/problemSolving/index.vue +++ b/src/views/eam/device/problemSolving/index.vue @@ -184,7 +184,7 @@ const formsSuccess = async (formType, data) => { await ProblemSolvingApi.createProblemSolving(data) message.success(t('common.createSuccess')) } else { - await ProblemSolvingApi.createProblemSolving(data) + await ProblemSolvingApi.updateProblemSolving(data) message.success(t('common.updateSuccess')) } basicFormRef.value.dialogVisible = false diff --git a/src/views/eam/item/itemOrderMain/index.vue b/src/views/eam/item/itemOrderMain/index.vue index de996e7..f49e7b6 100644 --- a/src/views/eam/item/itemOrderMain/index.vue +++ b/src/views/eam/item/itemOrderMain/index.vue @@ -170,7 +170,7 @@ if (val == 'edit') { // 编辑 openForm('update', row) } - else if (val == 'mainOrderCOMPLETE') { // 关闭 + else if (val == 'mainOrderCOMPLETE') { // 完成 handleCOMPLETE(row.id) } else if (val == 'delete') { // 删除