Browse Source

量产件备件关系前端展示样式

hella_online_20240829
chenfang 3 months ago
parent
commit
8c83ac094f
  1. 23
      src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/index.vue
  2. 4
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts

23
src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/index.vue

@ -150,6 +150,29 @@ const buttonTableClick = async (val, row) => {
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
if(type == "update"){
ProductionitemcodeSpareitemcode.allSchemas.formSchema.forEach((item) => {
if (item.field == 'productionItemCode') {
item.componentProps.disabled = true
item.componentProps.isSearchList = false
}
if (item.field == 'spareItemCode') {
item.componentProps.disabled = true
item.componentProps.isSearchList = false
}
})
}else {
ProductionitemcodeSpareitemcode.allSchemas.formSchema.forEach((item) => {
if (item.field == 'productionItemCode') {
item.componentProps.disabled = false
item.componentProps.isSearchList = true
}
if (item.field == 'spareItemCode') {
item.componentProps.disabled = false
item.componentProps.isSearchList = true
}
})
}
}
// form

4
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts

@ -840,7 +840,7 @@ export const RelegateRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>(
}
},
{
label: '包装规格1',
label: '包装规格',
field: 'packUnit',
sort: 'custom',
table: {
@ -893,7 +893,7 @@ export const RelegateRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>(
},
},
{
label: '包装数量1',
label: '包装数量',
field: 'packQty',
sort: 'custom',
table: {

Loading…
Cancel
Save