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] =?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'