Browse Source

HL-5838质检明细-删除按钮只有status=8隐藏,其他都展示

hella_online_20240904
yufei_wang 2 months ago
parent
commit
a897442fd0
  1. 56
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

56
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -100,32 +100,7 @@
<Detail <Detail
ref="detailRef" ref="detailRef"
:annexTable="[ :annexTable="[
{ annexInspectionDetail
label: '质检明细',
prop: 'uploadFile',
tableName: 'SupplierdeliverInspectionDetail',
hasSubDetail: true, //
showPreview: true, //
hiddenUpload:false,
hiddenDelete:false,
fileType: ['pdf', 'jpg', 'png', 'jpeg'],
align: 'left',
//
subDetailTableData: {
queryParams: [
{
queryField: 'masterId',
rowField: 'masterId'
}
], //
getSubList: SupplierdeliverInspectionDetailApi.getSupplierdeliverInspectionDetailPage, //
tableColumns: SupplierdeliverInspectionDetail.allSchemas.tableColumns,
tableList: [], //
total: 1,
pageSize: 10,
currentPage: 1
}
}
]" ]"
:isBasic="false" :isBasic="false"
:allSchemas="SupplierdeliverRequestMain.allSchemas" :allSchemas="SupplierdeliverRequestMain.allSchemas"
@ -239,12 +214,38 @@ const route = useRoute() // 路由信息
const routeName = ref() const routeName = ref()
const count = ref(0) const count = ref(0)
routeName.value = route.name routeName.value = route.name
const annexInspectionDetail = ref({
label: '质检明细',
prop: 'uploadFile',
tableName: 'SupplierdeliverInspectionDetail',
hasSubDetail: true, //
showPreview: true, //
hiddenUpload:false,
hiddenDelete:false,
fileType: ['pdf', 'jpg', 'png', 'jpeg'],
align: 'left',
//
subDetailTableData: {
queryParams: [
{
queryField: 'masterId',
rowField: 'masterId'
}
], //
getSubList: SupplierdeliverInspectionDetailApi.getSupplierdeliverInspectionDetailPage, //
tableColumns: SupplierdeliverInspectionDetail.allSchemas.tableColumns,
tableList: [], //
total: 1,
pageSize: 10,
currentPage: 1
}
})
const tableColumns = ref([ const tableColumns = ref([
...SupplierdeliverRequestMain.allSchemas.tableColumns, ...SupplierdeliverRequestMain.allSchemas.tableColumns,
...SupplierdeliverRequestDetail.allSchemas.tableMainColumns ...SupplierdeliverRequestDetail.allSchemas.tableMainColumns
]) ])
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
@ -790,6 +791,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
.get(CACHE_KEY.DEPT) .get(CACHE_KEY.DEPT)
.find((account) => account.id == row.departmentCode)?.name .find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
annexInspectionDetail.value.hiddenDelete = row.status==8 //HL-5838-status=8
detailRef.value.openDetail(row, titleName, titleValue, 'requestSupplierdeliverMain') detailRef.value.openDetail(row, titleName, titleValue, 'requestSupplierdeliverMain')
} }
/// ///

Loading…
Cancel
Save