|
@ -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') |
|
|
} |
|
|
} |
|
|
//添加/修改操作 |
|
|
//添加/修改操作 |
|
|