Browse Source

计量单位+物品基础信息,字段实时校验

dev_web_online
安虹睿 2 years ago
parent
commit
058b2f48e0
  1. 4
      fe/PC/src/views/basicData/DictionaryManage/Uom.vue
  2. 4
      fe/PC/src/views/basicData/ItemsManage/ItemBasic.vue

4
fe/PC/src/views/basicData/DictionaryManage/Uom.vue

@ -128,14 +128,14 @@ export default {
type: [], type: [],
}, },
CreateForm: [ 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: "input", label: "计量单位名称", prop: 'name', colSpan: 12 },
{ type: "select", label: "类型", prop: "type", options: "uomType", colSpan: 12 }, { type: "select", label: "类型", prop: "type", options: "uomType", colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 }, { type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, { type: "input", label: "备注", prop: 'remark', colSpan: 12 },
], ],
editForm: [ 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: "input", label: "计量单位名称", prop: 'name', colSpan: 12 },
{ type: "select", label: "类型", prop: "type", options: "uomType", colSpan: 12 }, { type: "select", label: "类型", prop: "type", options: "uomType", colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 }, { type: "input", label: "描述", prop: "description", colSpan: 12 },

4
fe/PC/src/views/basicData/ItemsManage/ItemBasic.vue

@ -200,7 +200,7 @@ export default {
}, },
editOptions: {}, editOptions: {},
CreateForm: [ 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: "name", colSpan: 12 },
{ type: "input", label: "物料描述", prop: "desc1", colSpan: 12 }, { type: "input", label: "物料描述", prop: "desc1", colSpan: 12 },
{ type: "select", label: "状态", prop: "status", options: "itemStatus", colSpan: 12 }, { type: "select", label: "状态", prop: "status", options: "itemStatus", colSpan: 12 },
@ -230,7 +230,7 @@ export default {
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 }, { type: "input", label: "备注", prop: 'remark', colSpan: 12 },
], ],
editForm: [ 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: "name", colSpan: 12 },
{ type: "input", label: "物料描述", prop: "desc1", colSpan: 12 }, { type: "input", label: "物料描述", prop: "desc1", colSpan: 12 },
{ type: "select", label: "状态", prop: "status", options: "itemStatus", colSpan: 12 }, { type: "select", label: "状态", prop: "status", options: "itemStatus", colSpan: 12 },

Loading…
Cancel
Save