Browse Source

物料基本信息bug修复,状态字段调整

hella_online_20240829
TengXF 4 months ago
parent
commit
864e1f032b
  1. 2
      src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts
  2. 45
      src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

2
src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts

@ -191,7 +191,7 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE',
disabled: true
// disabled: true
}
},
isSearch: true

45
src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

@ -27,6 +27,26 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '是否可用',
field: 'available',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
isSearch: true,
table: {
width: 120
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
},
{
label: '描述1',
field: 'desc1',
@ -50,9 +70,9 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
dictType: DICT_TYPE.ITEM_STATUS,
dictClass: 'string',
isForm: true,
isSearch: true,
isTable: true,
isForm: false,
isSearch: false,
isTable: false,
table: {
width: 100
} ,
@ -346,25 +366,6 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
}
},
},
{
label: '是否可用',
field: 'available',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
table: {
width: 120
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
},
{
label: '生效时间',
field: 'activeTime',

Loading…
Cancel
Save