diff --git a/fe/PC/src/views/basicData/DictionaryManage/Uom.vue b/fe/PC/src/views/basicData/DictionaryManage/Uom.vue index 29440c37a..b4ad31848 100644 --- a/fe/PC/src/views/basicData/DictionaryManage/Uom.vue +++ b/fe/PC/src/views/basicData/DictionaryManage/Uom.vue @@ -128,14 +128,14 @@ export default { type: [], }, CreateForm: [ - { type: "input", label: "计量单位编号", prop: "code", colSpan: 12 }, + { type: "input", label: "计量单位编号", prop: "code", colSpan: 12, validType:'letter' }, { type: "input", label: "计量单位名称", prop: 'name', colSpan: 12 }, { type: "select", label: "类型", prop: "type", options: "uomType", colSpan: 12 }, { type: "input", label: "描述", prop: "description", colSpan: 12 }, { type: "input", label: "备注", prop: 'remark', colSpan: 12 }, ], editForm: [ - { type: "input", label: "计量单位编号", prop: "code", disabled:"true", colSpan: 12 }, + { type: "input", label: "计量单位编号", prop: "code", disabled:"true", colSpan: 12, validType:'letter' }, { type: "input", label: "计量单位名称", prop: 'name', colSpan: 12 }, { type: "select", label: "类型", prop: "type", options: "uomType", colSpan: 12 }, { type: "input", label: "描述", prop: "description", colSpan: 12 }, diff --git a/fe/PC/src/views/basicData/ItemsManage/ItemBasic.vue b/fe/PC/src/views/basicData/ItemsManage/ItemBasic.vue index 4e741b724..ded253e9a 100644 --- a/fe/PC/src/views/basicData/ItemsManage/ItemBasic.vue +++ b/fe/PC/src/views/basicData/ItemsManage/ItemBasic.vue @@ -200,7 +200,7 @@ export default { }, editOptions: {}, CreateForm: [ - { type: "input", label: "物料代码", prop: 'code', colSpan: 12 }, + { type: "input", label: "物料代码", prop: 'code', colSpan: 12, validType:'numberLetter' }, { type: "input", label: "物料名称", prop: "name", colSpan: 12 }, { type: "input", label: "物料描述", prop: "desc1", colSpan: 12 }, { type: "select", label: "状态", prop: "status", options: "itemStatus", colSpan: 12 }, @@ -230,7 +230,7 @@ export default { { type: "input", label: "备注", prop: 'remark', colSpan: 12 }, ], editForm: [ - { type: "input", label: "物料代码", prop: 'code', disabled: true, colSpan: 12 }, + { type: "input", label: "物料代码", prop: 'code', disabled: true, colSpan: 12, validType:'numberLetter' }, { type: "input", label: "物料名称", prop: "name", colSpan: 12 }, { type: "input", label: "物料描述", prop: "desc1", colSpan: 12 }, { type: "select", label: "状态", prop: "status", options: "itemStatus", colSpan: 12 },