Browse Source

物料库区隐藏部分字段

master_hella_20240701
chenfang 6 months ago
parent
commit
2536a93311
  1. 2
      src/utils/validator.ts
  2. 7
      src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts

2
src/utils/validator.ts

@ -729,7 +729,7 @@ function trim(str) {
//校验只可输入大小写字母及数字
export function validateYS(rule, value, callback) {
if (value) {
const regs = /^[a-zA-Z0-9-_]+$/
const regs = /^[a-zA-Z0-9-_.]+$/
if(regs.test(value)){
callback()
} else {

7
src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts

@ -383,7 +383,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
form: {
component: 'Switch',
value: 'FALSE',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
@ -401,7 +401,8 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
value: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
activeValue: 'TRUE',
disabled: 'TRUE',
}
},
},
@ -428,7 +429,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string',
form: {
component: 'Switch',
value: 'TRUE',
value: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'

Loading…
Cancel
Save