chenfang
6 months ago
11 changed files with 164 additions and 12 deletions
@ -0,0 +1,56 @@ |
|||
<template> |
|||
<div style="height:100%;overflow-y: auto;"> |
|||
<ContentWrap > |
|||
<Annex |
|||
:annexData="reportAnnex" |
|||
:showDownload = "false" |
|||
:showPreview="true" |
|||
:hiddenDelete = "true" |
|||
:upData="{ |
|||
tableId:30, |
|||
tableName:'SupplierdeliverInspectionDetail' |
|||
}" |
|||
:key="99" |
|||
:showAddBtn="false" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<ContentWrap v-if="subDetailTableData.tableList.length>0"> |
|||
<Table |
|||
align="center" |
|||
:columns="subDetailTableData.tableColumns" |
|||
:data="subDetailTableData.tableList" |
|||
:loading="false" |
|||
/> |
|||
</ContentWrap> |
|||
</div> |
|||
|
|||
</template> |
|||
<script lang="ts" setup> |
|||
// 查看质检报告 |
|||
import {queryQualityInspection} from '@/api/wms/supplierdeliverInspectionDetail' |
|||
import Annex from '@/components/Annex/src/Annex.vue' |
|||
defineOptions({ name: 'purchasereceiptReport' }) |
|||
const route = useRoute() // 路由 |
|||
const reportAnnex = reactive({ |
|||
annexList: [] |
|||
}) |
|||
const subDetailTableData = ref({ |
|||
tableList: [], |
|||
tableColumns: [], |
|||
}) |
|||
onMounted(() => { |
|||
getAnnexList() |
|||
}) |
|||
const getAnnexList = async () => { |
|||
let res = await queryQualityInspection(route.query.asnNumber as string) |
|||
reportAnnex.annexList = res.fileList |
|||
subDetailTableData.value = { |
|||
tableList: res.inspectionDetailRespVOList, |
|||
tableColumns:[{"label":"物料代码","field":"itemCode","sort":"custom","isForm":false,"isSearch":true,"form":{"componentProps":{"disabled":true}},"tableForm":{"disabled":true}},{"label":"供应商批次","field":"batch","sort":"custom","isForm":false,"isSearch":true,"form":{"componentProps":{"disabled":true}},"tableForm":{"disabled":true}},{"label":"发货数量","field":"planQty","sort":"custom","isForm":false,"isSearch":true,"form":{"componentProps":{"disabled":true}},"tableForm":{"disabled":true,"type":"InputNumber","min":0,"precision":6}},{"width":150,"label":"计量单位","field":"uom","dictType":"uom","dictClass":"string","isTable":true,"isForm":false,"sort":"custom","table":{"width":150},"tableForm":{"type":"Select","disabled":true},"form":{"componentProps":{"disabled":true}}},{"label":"创建时间","field":"createTime","sort":"custom","isSearch":true,"search":{"component":"DatePicker","componentProps":{"valueFormat":"YYYY-MM-DD HH:mm:ss","type":"daterange","defaultTime":["2000-12-31T16:00:00.000Z","2001-01-01T15:59:59.000Z"]}},"isTableForm":false,"isForm":false}], |
|||
} |
|||
console.log('tableColumns',JSON.stringify(subDetailTableData.value.tableColumns)) |
|||
} |
|||
</script> |
|||
<style lang="scss" scoped></style> |
|||
|
Loading…
Reference in new issue