|
@ -77,7 +77,7 @@ |
|
|
:annexTable="[{ |
|
|
:annexTable="[{ |
|
|
label: '质检明细', |
|
|
label: '质检明细', |
|
|
prop: 'uploadFile', |
|
|
prop: 'uploadFile', |
|
|
tableName:'UploadQualityReport', |
|
|
tableName:'SupplierdeliverInspectionDetail', |
|
|
hasSubDetail:true, // 附件中是否展示明细表 |
|
|
hasSubDetail:true, // 附件中是否展示明细表 |
|
|
//明细表数据 |
|
|
//明细表数据 |
|
|
subDetailTableData:{ |
|
|
subDetailTableData:{ |
|
@ -86,7 +86,7 @@ |
|
|
rowField:'id' |
|
|
rowField:'id' |
|
|
}], // 查询参数 |
|
|
}], // 查询参数 |
|
|
getSubList:SupplierdeliverInspectionDetailApi.getSupplierdeliverInspectionDetailPage,//请求接口 |
|
|
getSubList:SupplierdeliverInspectionDetailApi.getSupplierdeliverInspectionDetailPage,//请求接口 |
|
|
tableColumns:UploadQualityReport.allSchemas.tableColumns, |
|
|
tableColumns:SupplierdeliverInspectionDetail.allSchemas.tableColumns, |
|
|
tableList:[],//表格数据 |
|
|
tableList:[],//表格数据 |
|
|
total:1, |
|
|
total:1, |
|
|
pageSize:10, |
|
|
pageSize:10, |
|
@ -132,15 +132,15 @@ |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="ploadQualityReportRef" |
|
|
ref="ploadQualityReportRef" |
|
|
@success="getList" |
|
|
@success="getList" |
|
|
:formAllSchemas="UploadQualityReport.allSchemas" |
|
|
:formAllSchemas="SupplierdeliverInspectionDetail.allSchemas" |
|
|
:tableAllSchemas="UploadQualityReport.allSchemas" |
|
|
:tableAllSchemas="SupplierdeliverInspectionDetail.allSchemas" |
|
|
:tableData="ploadQualityReportTableData" |
|
|
:tableData="ploadQualityReportTableData" |
|
|
@handleAddTable="SupplierdeliverInspectionDetailApi.createSupplierdeliverInspectionDetail" |
|
|
@handleAddTable="SupplierdeliverInspectionDetailApi.createSupplierdeliverInspectionDetail" |
|
|
@handleDeleteTable="SupplierdeliverInspectionDetailApi.deleteSupplierdeliverInspectionDetail" |
|
|
@handleDeleteTable="SupplierdeliverInspectionDetailApi.deleteSupplierdeliverInspectionDetail" |
|
|
@submitForm="submitFormUploadQualityReport" |
|
|
@submitForm="submitFormUploadQualityReport" |
|
|
:isShowReduceButton="true" |
|
|
:isShowReduceButton="true" |
|
|
> |
|
|
> |
|
|
<template #UploadQualityReport> |
|
|
<template #SupplierdeliverInspectionDetail> |
|
|
<span>1111</span> |
|
|
<span>1111</span> |
|
|
</template> |
|
|
</template> |
|
|
</BasicForm> |
|
|
</BasicForm> |
|
@ -157,9 +157,9 @@ import { |
|
|
SupplierdeliverRequestMainRules, |
|
|
SupplierdeliverRequestMainRules, |
|
|
SupplierdeliverRequestDetail, |
|
|
SupplierdeliverRequestDetail, |
|
|
SupplierdeliverRequestDetailRules, |
|
|
SupplierdeliverRequestDetailRules, |
|
|
SupplierdeliverRequestDetailLabel, |
|
|
SupplierdeliverRequestDetailLabel |
|
|
UploadQualityReport |
|
|
|
|
|
} from './supplierdeliverRequestMain.data' |
|
|
} from './supplierdeliverRequestMain.data' |
|
|
|
|
|
import { SupplierdeliverInspectionDetail} from '../supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data' |
|
|
import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain' |
|
|
import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain' |
|
|
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' |
|
|
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
@ -592,14 +592,14 @@ const ploadQualityReportRef = ref() |
|
|
const ploadQualityReportTableData = ref([]) |
|
|
const ploadQualityReportTableData = ref([]) |
|
|
/** 上传质量报告 */ |
|
|
/** 上传质量报告 */ |
|
|
const handleUploadQualityReport = async (row) => { |
|
|
const handleUploadQualityReport = async (row) => { |
|
|
console.log('UploadQualityReport',UploadQualityReport.allSchemas) |
|
|
console.log('SupplierdeliverInspectionDetail',SupplierdeliverInspectionDetail.allSchemas) |
|
|
const uploadFile = UploadQualityReport.allSchemas.formSchema.find(item=>item.field=='uploadFile') |
|
|
const uploadFile = SupplierdeliverInspectionDetail.allSchemas.formSchema.find(item=>item.field=='uploadFile') |
|
|
if(uploadFile){ |
|
|
if(uploadFile){ |
|
|
uploadFile['componentProps']['upData']['tableId'] = row.id |
|
|
uploadFile['componentProps']['upData']['tableId'] = row.id |
|
|
} |
|
|
} |
|
|
ploadQualityReportRef.value.open('create', null, {masterId:row.id},'上传质量报告')//创建标签页面 createLabel 标题 |
|
|
ploadQualityReportRef.value.open('create', null, {masterId:row.id},'上传质量报告')//创建标签页面 createLabel 标题 |
|
|
const tableFormKeys = {} |
|
|
const tableFormKeys = {} |
|
|
UploadQualityReport.allSchemas.tableFormColumns.forEach((item) => { |
|
|
SupplierdeliverInspectionDetail.allSchemas.tableFormColumns.forEach((item) => { |
|
|
tableFormKeys[item.field] = item.default ? item.default : '' |
|
|
tableFormKeys[item.field] = item.default ? item.default : '' |
|
|
}) |
|
|
}) |
|
|
ploadQualityReportTableData.value = [tableFormKeys] |
|
|
ploadQualityReportTableData.value = [tableFormKeys] |
|
|