|
@ -28,6 +28,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
<script lang="ts" setup> |
|
|
<script lang="ts" setup> |
|
|
// 查看质检报告 |
|
|
// 查看质检报告 |
|
|
|
|
|
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' |
|
|
import {queryQualityInspection} from '@/api/wms/supplierdeliverInspectionDetail' |
|
|
import {queryQualityInspection} from '@/api/wms/supplierdeliverInspectionDetail' |
|
|
import Annex from '@/components/Annex/src/Annex.vue' |
|
|
import Annex from '@/components/Annex/src/Annex.vue' |
|
|
defineOptions({ name: 'purchasereceiptReport' }) |
|
|
defineOptions({ name: 'purchasereceiptReport' }) |
|
@ -45,9 +46,104 @@ onMounted(() => { |
|
|
const getAnnexList = async () => { |
|
|
const getAnnexList = async () => { |
|
|
let res = await queryQualityInspection(route.query.asnNumber as string) |
|
|
let res = await queryQualityInspection(route.query.asnNumber as string) |
|
|
reportAnnex.annexList = res.fileList |
|
|
reportAnnex.annexList = res.fileList |
|
|
|
|
|
let 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', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
subDetailTableData.value = { |
|
|
subDetailTableData.value = { |
|
|
tableList: res.inspectionDetailRespVOList, |
|
|
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}], |
|
|
tableColumns:tableColumns |
|
|
} |
|
|
} |
|
|
console.log('tableColumns',JSON.stringify(subDetailTableData.value.tableColumns)) |
|
|
console.log('tableColumns',JSON.stringify(subDetailTableData.value.tableColumns)) |
|
|
} |
|
|
} |
|
|