From 45483533a8c1b0615cf653ab415c86407986c39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Tue, 12 Mar 2024 10:32:20 +0800 Subject: [PATCH 1/2] =?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 --- src/utils/dict.ts | 5 +- src/views/eam/basic/item/item.data.ts | 47 ++- src/views/eam/basic/location/index.vue | 348 +++++++++--------- src/views/eam/basic/location/location.data.ts | 6 +- src/views/eam/basic/supplier/supplier.data.ts | 6 +- 5 files changed, 225 insertions(+), 187 deletions(-) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index d5a42a1..e878cec 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -298,7 +298,6 @@ export enum DICT_TYPE { POWER_RANGE = 'power_range', //功率范围 ADJUST_STATUS = 'adjust_status', //盘点调整状态 APP_DEVICE_MOLD_TYPE = 'app_device_mold_type', //设备/模具/工艺:类型 - - - + ITEM_SUBJECT = 'item_subject', //备件的科目 + ITEM_CATEGOR = 'item_categor', //备件的类别 } diff --git a/src/views/eam/basic/item/item.data.ts b/src/views/eam/basic/item/item.data.ts index 8605ab2..926da84 100644 --- a/src/views/eam/basic/item/item.data.ts +++ b/src/views/eam/basic/item/item.data.ts @@ -35,7 +35,7 @@ export const Item = useCrudSchemas(reactive([ sort: 'custom', }, { - label: '是否存储', + label: '是否常储', field: 'isConstant', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', @@ -64,6 +64,12 @@ export const Item = useCrudSchemas(reactive([ field: 'subject', sort: 'custom', }, + { + label: '科目代码', + field: 'subjectCode', + sort: 'custom', + isTable: true, + }, { label: '单位', field: 'uom', @@ -76,6 +82,18 @@ export const Item = useCrudSchemas(reactive([ type: 'Select' } }, + { + label: '类别', + field: 'category', + sort: 'custom', + dictType: DICT_TYPE.ITEM_CATEGOR, + dictClass: 'string', + isSearch: false, + isTable: true, + tableForm: { + type: 'Select' + } + }, { label: '备件分类', field: 'classification', @@ -94,7 +112,7 @@ export const Item = useCrudSchemas(reactive([ sort: 'custom', }, { - label: '重点采购', + label: '重采购点', field: 'reprocurement', sort: 'custom', table: { @@ -163,6 +181,31 @@ export const Item = useCrudSchemas(reactive([ } } }, + { + label: '是否框架协议', + field: 'isFramework', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: false, + isTable: true, + sort: 'custom', + table: { + width: 140 + }, + tableForm: { + type: 'Select', + inactiveValue: 'FALSE', + disabled: true + }, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, { label: '是否可用', field: 'available', diff --git a/src/views/eam/basic/location/index.vue b/src/views/eam/basic/location/index.vue index 4b8f151..37b70d9 100644 --- a/src/views/eam/basic/location/index.vue +++ b/src/views/eam/basic/location/index.vue @@ -4,29 +4,16 @@ - - + + - + }" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage" + v-model:sort="tableObject.sort"> diff --git a/src/views/eam/basic/location/location.data.ts b/src/views/eam/basic/location/location.data.ts index 868c683..d6259df 100644 --- a/src/views/eam/basic/location/location.data.ts +++ b/src/views/eam/basic/location/location.data.ts @@ -5,6 +5,10 @@ import { LocationArea } from '../locationArea/locationArea.data' // 表单校验 export const LocationRules = reactive({ + number: [ + { required: true, message: '请输入库位编号', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], name: [ { required: true, message: '请输入库位名称', trigger: 'blur' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' } @@ -21,7 +25,7 @@ export const Location = useCrudSchemas(reactive([ field: 'number', sort: 'custom', isSearch: true, - isForm: false, + isForm: true, table: { width: 180, fixed: 'left' diff --git a/src/views/eam/basic/supplier/supplier.data.ts b/src/views/eam/basic/supplier/supplier.data.ts index cdce36f..d06aec8 100644 --- a/src/views/eam/basic/supplier/supplier.data.ts +++ b/src/views/eam/basic/supplier/supplier.data.ts @@ -3,6 +3,10 @@ import {validateHanset,validateFax,validatePostCode,validateYS} from '@/utils/va // 表单校验 export const SupplierRules = reactive({ + number: [ + { required: true, message: '请输入供应商编号', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], name: [ { required: true, message: '请输入供应商名称', trigger: 'blur' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' } @@ -19,7 +23,7 @@ export const Supplier = useCrudSchemas(reactive([ field: 'number', sort: 'custom', isSearch: true, - isForm: false, + isForm: true, table: { width: 180, fixed: 'left' From bd8b0bc57248965e94766cc59c22e0b4df02d6b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Tue, 12 Mar 2024 14:47:11 +0800 Subject: [PATCH 2/2] =?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 --- src/utils/dict.ts | 5 +- .../deviceMaintenance.data.ts | 17 ++++++- .../eam/basic/deviceMaintenance/index.vue | 1 + .../eam/basic/inspection/inspection.data.ts | 14 +++++- src/views/eam/basic/item/item.data.ts | 14 +++++- .../moldMaintenance/moldMaintenance.data.ts | 46 ++++++++++++------- 6 files changed, 74 insertions(+), 23 deletions(-) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index e878cec..b2b2127 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -189,7 +189,8 @@ export enum DICT_TYPE { ABC_CLASS = 'abc_class', // ABC类 TRUE_FALSE = 'true_false', // 是否 ITEM_GROUP = 'item_group', // 物品分组 - ITEM_CATEGORY = 'Item_category', // 物品种类 + ITEM_CATEGORY = 'item_category', // 物品种类 + ITEM_REGION = 'item_region', // 物品区域 ITEM_COLOR = 'item_color', // 物品颜色 ITEM_CONFIGURATION = 'item_configuration', // 物品配置 EQ_LEVEL = 'eq_level', // 质量等级 @@ -299,5 +300,5 @@ export enum DICT_TYPE { ADJUST_STATUS = 'adjust_status', //盘点调整状态 APP_DEVICE_MOLD_TYPE = 'app_device_mold_type', //设备/模具/工艺:类型 ITEM_SUBJECT = 'item_subject', //备件的科目 - ITEM_CATEGOR = 'item_categor', //备件的类别 + } diff --git a/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts b/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts index 502b09a..d248ef8 100644 --- a/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts +++ b/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts @@ -21,6 +21,7 @@ export const DeviceMOLD = useCrudSchemas(reactive([ width: 180, fixed: 'left' }, + }, { label: '名称', @@ -41,6 +42,11 @@ export const DeviceMaintenance = useCrudSchemas(reactive([ field: 'name', sort: 'custom', isSearch: true, + form: { + componentProps: { + type: 'textarea', + } + } }, { label: '类型', @@ -84,6 +90,13 @@ export const DeviceMaintenance = useCrudSchemas(reactive([ } } }, + { + label: '设备名称', + field: 'deviceName', + sort: 'custom', + isSearch: false, + isForm: false, + }, { label: '项类型', field: 'status', @@ -110,7 +123,7 @@ export const DeviceMaintenance = useCrudSchemas(reactive([ component: 'Select' }, }, - + { label: '人数', field: 'peoples', @@ -135,7 +148,7 @@ export const DeviceMaintenance = useCrudSchemas(reactive([ component: 'InputNumber', } }, - + { label: '是否可用', field: 'available', diff --git a/src/views/eam/basic/deviceMaintenance/index.vue b/src/views/eam/basic/deviceMaintenance/index.vue index 008e83a..ca0574d 100644 --- a/src/views/eam/basic/deviceMaintenance/index.vue +++ b/src/views/eam/basic/deviceMaintenance/index.vue @@ -42,6 +42,7 @@ ([ export const DeviceMoldItems = useCrudSchemas(reactive([ { - label: '保养内容', + label: '巡检点检项', field: 'name', sort: 'custom', isSearch: true, + form: { + componentProps: { + type: 'textarea', + } + } }, { label: '类型', @@ -84,6 +89,13 @@ export const DeviceMoldItems = useCrudSchemas(reactive([ } } }, + { + label: '设备名称', + field: 'deviceName', + sort: 'custom', + isSearch: false, + isForm: false, + }, { label: '项类型', field: 'status', diff --git a/src/views/eam/basic/item/item.data.ts b/src/views/eam/basic/item/item.data.ts index 926da84..ef3723c 100644 --- a/src/views/eam/basic/item/item.data.ts +++ b/src/views/eam/basic/item/item.data.ts @@ -86,7 +86,7 @@ export const Item = useCrudSchemas(reactive([ label: '类别', field: 'category', sort: 'custom', - dictType: DICT_TYPE.ITEM_CATEGOR, + dictType: DICT_TYPE.ITEM_CATEGORY, dictClass: 'string', isSearch: false, isTable: true, @@ -106,6 +106,18 @@ export const Item = useCrudSchemas(reactive([ type: 'Select' } }, + { + label: '区域', + field: 'region', + sort: 'custom', + dictType: DICT_TYPE.ITEM_REGION, + dictClass: 'string', + isSearch: false, + isTable: true, + tableForm: { + type: 'Select' + } + }, { label: '单价', field: 'singlePrice', diff --git a/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts b/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts index 1578537..007d025 100644 --- a/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts +++ b/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts @@ -41,21 +41,26 @@ export const MoldMaintenance = useCrudSchemas(reactive([ field: 'name', sort: 'custom', 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: '模具编号', field: 'deviceNumber', @@ -84,6 +89,13 @@ export const MoldMaintenance = useCrudSchemas(reactive([ } } }, + { + label: '模具名称', + field: 'deviceName', + sort: 'custom', + isSearch: false, + isForm: false, + }, { label: '项类型', field: 'status', @@ -106,9 +118,9 @@ export const MoldMaintenance = useCrudSchemas(reactive([ dictClass: 'string', sort: 'custom', isSearch: false, - form: { - component: 'Select' - }, + form: { + component: 'Select' + }, }, { label: '是否可用',