|
|
@ -68,6 +68,9 @@ |
|
|
|
:apiPage="CustomerreturnRequestDetailApi.getCustomerreturnRequestDetailPage" |
|
|
|
:apiDelete="CustomerreturnRequestDetailApi.deleteCustomerreturnRequestDetail" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
:detailButtonIsShowAdd="trueFalse" |
|
|
|
:detailButtonIsShowDelete="trueFalse" |
|
|
|
@detailOpenForm="detailOpenForm" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
@ -171,7 +174,7 @@ const { tableObject, tableMethods } = useTable({ |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
|
const { getList, setSearchParams } = tableMethods |
|
|
|
const trueFalse = ref() |
|
|
|
const trueFalse = ref(true) |
|
|
|
// 列表头部按钮 |
|
|
|
const HeadButttondata = [ |
|
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:customerreturn-request-main:create'}), // 新增——需要手动修改下权限 |
|
|
@ -290,14 +293,66 @@ const buttonTableClick = async (val, row) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm =async (type: string, row?: number) => { |
|
|
|
if(type == "update"){ |
|
|
|
CustomerreturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if(item.field == 'deliverRecordNumber'){ |
|
|
|
item.componentProps.isSearchList = false, |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
if(item.field == 'customerCode'){ |
|
|
|
item.componentProps.isSearchList = false, |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
if(item.field == 'customerDockCode'){ |
|
|
|
item.componentProps.isSearchList = false, |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
}else { |
|
|
|
CustomerreturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if(item.field == 'deliverRecordNumber'){ |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
if(item.field == 'customerCode'){ |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
if(item.field == 'customerDockCode'){ |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
}) |
|
|
|
CustomerreturnRequestDetail.allSchemas.formSchema.forEach((itemDetail) => { |
|
|
|
if(itemDetail.field == 'packingNumber'){ |
|
|
|
itemDetail.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 详情 编辑页面打开 |
|
|
|
* @param type |
|
|
|
*/ |
|
|
|
const detailOpenForm = (type) => { |
|
|
|
if(type == 'update'){ |
|
|
|
CustomerreturnRequestDetail.allSchemas.formSchema.forEach((itemDetail) => { |
|
|
|
if(itemDetail.field == 'packingNumber'){ |
|
|
|
itemDetail.componentProps.isSearchList = false |
|
|
|
itemDetail.componentProps.disabled = true |
|
|
|
} |
|
|
|
})}else { |
|
|
|
CustomerreturnRequestDetail.allSchemas.formSchema.forEach((itemDetail) => { |
|
|
|
if(itemDetail.field == 'packingNumber'){ |
|
|
|
itemDetail.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
|
const detailRef = ref() |
|
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
console.log(999,row.deliverPlanNumber); |
|
|
|
if(row.deliverPlanNumber != null){ |
|
|
|
trueFalse.value = false |
|
|
|
}else { |
|
|
|