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) { export function validateYS(rule, value, callback) {
if (value) { if (value) {
const regs = /^[a-zA-Z0-9-_]+$/ const regs = /^[a-zA-Z0-9-_.]+$/
if(regs.test(value)){ if(regs.test(value)){
callback() callback()
} else { } else {

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

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

Loading…
Cancel
Save