Browse Source

物料库区配置修改

master_hella_20240701
chenfang 11 months ago
parent
commit
d4132c4181
  1. 7
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  2. 16
      src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts

7
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -250,12 +250,19 @@ const openForm =async (type: string, row?: number) => {
if (item.field == 'areaCode') { if (item.field == 'areaCode') {
item.componentProps.isSearchList = false, item.componentProps.isSearchList = false,
item.componentProps.disabled = true item.componentProps.disabled = true
}
if (item.field == 'itemCode') {
item.componentProps.isSearchList = false,
item.componentProps.disabled = true
}}) }})
}else { }else {
Itemarea.allSchemas.formSchema.forEach((item) => { Itemarea.allSchemas.formSchema.forEach((item) => {
if (item.field == 'areaCode') { if (item.field == 'areaCode') {
item.componentProps.isSearchList = true item.componentProps.isSearchList = true
} }
if (item.field == 'itemCode') {
item.componentProps.isSearchList = true
}
}) })
} }
tableData.value = [] // tableData.value = [] //

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

@ -383,11 +383,10 @@ 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',
disabled: 'TRUE',
} }
}, },
}, },
@ -397,14 +396,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
form: { isForm: false
component: 'Switch',
value: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
}, },
{ {
label: '可以混批次', label: '可以混批次',
@ -414,7 +406,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'
@ -429,7 +421,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