|
|
@ -152,6 +152,14 @@ |
|
|
|
@footButtonClick="footButtonClick" |
|
|
|
@formSelectChange="formSelectChangeLabel" |
|
|
|
/> |
|
|
|
<!-- 上传履历表 --> |
|
|
|
<BasicForm |
|
|
|
ref="curriculumVitaeRef" |
|
|
|
:formAllSchemas="CurriculumVitae.allSchemas" |
|
|
|
@success="submitCurriculumVitae" |
|
|
|
:tableFormRules="CurriculumVitaeRules" |
|
|
|
:isBusiness="false" |
|
|
|
/> |
|
|
|
<!-- 上传质量报告 --> |
|
|
|
<BasicForm |
|
|
|
ref="ploadQualityReportRef" |
|
|
@ -199,7 +207,9 @@ import { |
|
|
|
} from './supplierdeliverRequestMain.data' |
|
|
|
import { |
|
|
|
SupplierdeliverInspectionDetail, |
|
|
|
SupplierdeliverInspectionDetailRules |
|
|
|
SupplierdeliverInspectionDetailRules, |
|
|
|
CurriculumVitae, |
|
|
|
CurriculumVitaeRules |
|
|
|
} from '../supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data' |
|
|
|
import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain' |
|
|
|
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' |
|
|
@ -534,6 +544,16 @@ const butttondata = (row, $index) => { |
|
|
|
hide: isShowMainButton(row, ['1', '2', '3']), |
|
|
|
hasPermi: 'wms:supplierdeliver-request-main:uploadCheck' |
|
|
|
}), // 上传质量报告 |
|
|
|
// { |
|
|
|
// label: t('ts.上传履历表'), |
|
|
|
// name: 'mainPlanCurriculumVitae', |
|
|
|
// hide: row.status!=5, |
|
|
|
// type: 'primary', |
|
|
|
// icon: '', |
|
|
|
// color: '', |
|
|
|
// hasPermi: '', |
|
|
|
// link: true // 文本展现按钮 |
|
|
|
// }, // 上传履历表 |
|
|
|
defaultButtons.mainListPlanSubBtn({ |
|
|
|
hide: isShowMainButton(row, ['1']), |
|
|
|
hasPermi: 'wms:supplierdeliver-request-main:sub' |
|
|
@ -606,6 +626,9 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'mainPlanUploadQualityReport') { |
|
|
|
// 上传质量报告 |
|
|
|
handleUploadQualityReport(row) |
|
|
|
}else if (val == 'mainPlanCurriculumVitae') { |
|
|
|
// 上传履历表 |
|
|
|
handleUploadCurriculumVitae(row) |
|
|
|
} else if (val == 'mainPlanSub') { |
|
|
|
// 提交审批 |
|
|
|
handleSub(row.masterId) |
|
|
@ -948,6 +971,28 @@ const handleUploadQualityReport = async (row) => { |
|
|
|
//uploadQualityReportTableData.value = [tableFormKeys] |
|
|
|
} |
|
|
|
|
|
|
|
const curriculumVitaeRef = ref() |
|
|
|
const submitCurriculumVitae = async (formType, data) => { |
|
|
|
console.log('上传履历表',data) |
|
|
|
|
|
|
|
} |
|
|
|
/** 上传质量报告 */ |
|
|
|
const handleUploadCurriculumVitae = async (row) => { |
|
|
|
const uploadFile = SupplierdeliverInspectionDetail.allSchemas.formSchema.find( |
|
|
|
(item) => item.field == 'uploadFile' |
|
|
|
) |
|
|
|
if (uploadFile) { |
|
|
|
uploadFile['componentProps']['upData']['tableId'] = row.masterId |
|
|
|
} |
|
|
|
curriculumVitaeRef.value.open( |
|
|
|
'create', |
|
|
|
null, |
|
|
|
{ masterId: row.masterId }, |
|
|
|
t('ts.上传履历表'), |
|
|
|
t('ts.上传履历表') |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
const submitFormUploadQualityReport = async (formType, data) => { |
|
|
|
delete data.number |
|
|
|
data.subList = uploadQualityReportTableData.value // 拼接子表数据参数 |
|
|
|