|
|
@ -152,14 +152,7 @@ |
|
|
|
@footButtonClick="footButtonClick" |
|
|
|
@formSelectChange="formSelectChangeLabel" |
|
|
|
/> |
|
|
|
<!-- 上传履历表 --> |
|
|
|
<BasicForm |
|
|
|
ref="curriculumVitaeRef" |
|
|
|
:formAllSchemas="CurriculumVitae.allSchemas" |
|
|
|
@success="submitCurriculumVitae" |
|
|
|
:tableFormRules="CurriculumVitaeRules" |
|
|
|
:isBusiness="false" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 上传质量报告 --> |
|
|
|
<BasicForm |
|
|
|
ref="ploadQualityReportRef" |
|
|
@ -544,16 +537,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 // 文本展现按钮 |
|
|
|
// }, // 上传履历表 |
|
|
|
{ |
|
|
|
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' |
|
|
@ -628,7 +621,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
handleUploadQualityReport(row) |
|
|
|
}else if (val == 'mainPlanCurriculumVitae') { |
|
|
|
// 上传履历表 |
|
|
|
handleUploadCurriculumVitae(row) |
|
|
|
handleUploadCurriculumVitae(row,'发货单号', row.asnNumber) |
|
|
|
} else if (val == 'mainPlanSub') { |
|
|
|
// 提交审批 |
|
|
|
handleSub(row.masterId) |
|
|
@ -830,6 +823,20 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
annexInspectionDetail.value.hiddenDelete = row.status==8 //HL-5838质检明细-删除按钮只有status=8隐藏,其他都展示 |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'requestSupplierdeliverMain') |
|
|
|
} |
|
|
|
/** 上传履历表 */ |
|
|
|
const handleUploadCurriculumVitae = async (row: any, titleName: any, titleValue: any) => { |
|
|
|
const departmentCode = wsCache |
|
|
|
.get(CACHE_KEY.DEPT) |
|
|
|
.find((account) => account.id == row.departmentCode)?.name |
|
|
|
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') |
|
|
|
nextTick(()=>{ |
|
|
|
detailRef.value.changeTabCurrent({ |
|
|
|
label:'履历表' |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
//添加/修改操作 |
|
|
|
const formRef = ref() |
|
|
|
const supplierdeliverFormRef = ref() |
|
|
@ -971,30 +978,8 @@ const handleUploadQualityReport = async (row) => { |
|
|
|
//uploadQualityReportTableData.value = [tableFormKeys] |
|
|
|
} |
|
|
|
|
|
|
|
const curriculumVitaeRef = ref() |
|
|
|
const submitCurriculumVitae = async (formType, data) => { |
|
|
|
console.log('上传履历表',data) |
|
|
|
await SupplierdeliverRequestDetailApi.uploadCurriculumVitae(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
curriculumVitaeRef.value.dialogVisible = false |
|
|
|
getList() |
|
|
|
} |
|
|
|
/** 上传质量报告 */ |
|
|
|
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 |
|
|
|