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: { componentProps: {
inactiveValue: 'FALSE', inactiveValue: 'FALSE',
activeValue: 'TRUE', activeValue: 'TRUE',
disabled: true // disabled: true
} }
}, },
isSearch: 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 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', label: '描述1',
field: 'desc1', field: 'desc1',
@ -50,9 +70,9 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ITEM_STATUS, dictType: DICT_TYPE.ITEM_STATUS,
dictClass: 'string', dictClass: 'string',
isForm: true, isForm: false,
isSearch: true, isSearch: false,
isTable: true, isTable: false,
table: { table: {
width: 100 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: '生效时间', label: '生效时间',
field: 'activeTime', field: 'activeTime',

Loading…
Cancel
Save