From c97caf2802aa7f4d310499489112415279805144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Mon, 25 Mar 2024 13:49:00 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deviceMaintenance.data.ts | 2 +- src/views/eam/basic/item/item.data.ts | 50 +++++++++---------- .../moldMaintenance/moldMaintenance.data.ts | 2 +- src/views/eam/device/problemSolving/index.vue | 2 +- src/views/eam/item/itemOrderMain/index.vue | 2 +- 5 files changed, 29 insertions(+), 29 deletions(-) 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') { // 删除