|
@ -100,7 +100,7 @@ const tableColumns = ref(DeliverRequestMain.allSchemas.tableColumns) |
|
|
|
|
|
|
|
|
const isShowButton = ref(true) |
|
|
const isShowButton = ref(true) |
|
|
//定义 展示子表数据时是否显示新增/修改/删除按钮 |
|
|
//定义 展示子表数据时是否显示新增/修改/删除按钮 |
|
|
const trueFalse = ref() |
|
|
const trueFalse = ref(true) |
|
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
// 字段设置 更新主列表字段 |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
@ -298,6 +298,8 @@ const formRef = ref() |
|
|
const openForm =async (type: string, row?: number) => { |
|
|
const openForm =async (type: string, row?: number) => { |
|
|
if(type == "update"){ |
|
|
if(type == "update"){ |
|
|
DeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
DeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
console.log(95132,item); |
|
|
|
|
|
|
|
|
if (item.field == 'deliverPlanNumber') { |
|
|
if (item.field == 'deliverPlanNumber') { |
|
|
item.componentProps.isSearchList = false, |
|
|
item.componentProps.isSearchList = false, |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.disabled = true |
|
@ -374,7 +376,7 @@ const handleDeleteTable = (item, index) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//为true表示子表数据中存在数量为0的数据 |
|
|
//为true表示子表数据中存在数量为0的数据 |
|
|
const flag = ref() |
|
|
const flag = ref(false) |
|
|
|
|
|
|
|
|
// 主子数据 提交 |
|
|
// 主子数据 提交 |
|
|
const submitForm = async (formType, data) => { |
|
|
const submitForm = async (formType, data) => { |
|
@ -386,7 +388,7 @@ const submitForm = async (formType, data) => { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if(flag){ |
|
|
if(flag.value){ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
try { |
|
|
try { |
|
|