|
@ -401,6 +401,22 @@ const buttonTableClick = async (val, row) => { |
|
|
} |
|
|
} |
|
|
const onChange = (field, value) => { |
|
|
const onChange = (field, value) => { |
|
|
console.log(field, value) |
|
|
console.log(field, value) |
|
|
|
|
|
if (field == 'isOpenCount') { |
|
|
|
|
|
if (value == 'FALSE') { |
|
|
|
|
|
CountPlanMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'countSplitType') { |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
formRef.value.formRef.formModel.countSplitType = 'masterId' |
|
|
|
|
|
} else { |
|
|
|
|
|
CountPlanMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'countSplitType') { |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const formRef = ref() |
|
|
const formRef = ref() |
|
@ -435,6 +451,13 @@ const openForm = async (type: string, row?: any) => { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
if (type == 'create') { |
|
|
|
|
|
CountPlanMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'countSplitType') { |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|
|
|
|
|
|
|
// Promise.all([getOwnerAllList(), |
|
|
// Promise.all([getOwnerAllList(), |
|
@ -458,7 +481,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
// getAreaAllList() |
|
|
// getAreaAllList() |
|
|
// getLocationgroupAllList() |
|
|
// getLocationgroupAllList() |
|
|
// getLocationAllList() |
|
|
// getLocationAllList() |
|
|
detailRef.value.openDetail(row, titleName, titleValue,"planCountMain") |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'planCountMain') |
|
|
} |
|
|
} |
|
|
// 详情打开的编辑的时候设置盘点范围值列表 |
|
|
// 详情打开的编辑的时候设置盘点范围值列表 |
|
|
const detailOpenForm = (type, row) => { |
|
|
const detailOpenForm = (type, row) => { |
|
|