|
@ -63,6 +63,7 @@ |
|
|
:detailButtonIsShowAdd="true" |
|
|
:detailButtonIsShowAdd="true" |
|
|
:detailButtonIsShowEdit="true" |
|
|
:detailButtonIsShowEdit="true" |
|
|
:detailButtonIsShowDelete="true" |
|
|
:detailButtonIsShowDelete="true" |
|
|
|
|
|
@handleMainFefresh="handleMainFefresh" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
:key="count" |
|
|
:key="count" |
|
|
/> |
|
|
/> |
|
@ -170,9 +171,29 @@ const buttonTableClick = async (val, row) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let count = ref(0) |
|
|
|
|
|
const handleMainFefresh = async()=>{ |
|
|
|
|
|
count.value++; |
|
|
|
|
|
await getList() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const basicFormRef = ref() |
|
|
const basicFormRef = ref() |
|
|
const openForm = (type: string, row?: any) => { |
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
|
|
if(type == "create"){ |
|
|
|
|
|
DismantlingMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if(item.field == 'workbillStatus'){ |
|
|
|
|
|
item.value = '2'; |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
DismantlingMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if(item.field == 'workbillStatus'){ |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|