|
@ -152,14 +152,7 @@ |
|
|
@footButtonClick="footButtonClick" |
|
|
@footButtonClick="footButtonClick" |
|
|
@formSelectChange="formSelectChangeLabel" |
|
|
@formSelectChange="formSelectChangeLabel" |
|
|
/> |
|
|
/> |
|
|
<!-- 上传履历表 --> |
|
|
|
|
|
<BasicForm |
|
|
|
|
|
ref="curriculumVitaeRef" |
|
|
|
|
|
:formAllSchemas="CurriculumVitae.allSchemas" |
|
|
|
|
|
@success="submitCurriculumVitae" |
|
|
|
|
|
:tableFormRules="CurriculumVitaeRules" |
|
|
|
|
|
:isBusiness="false" |
|
|
|
|
|
/> |
|
|
|
|
|
<!-- 上传质量报告 --> |
|
|
<!-- 上传质量报告 --> |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="ploadQualityReportRef" |
|
|
ref="ploadQualityReportRef" |
|
@ -544,16 +537,16 @@ const butttondata = (row, $index) => { |
|
|
hide: isShowMainButton(row, ['1', '2', '3']), |
|
|
hide: isShowMainButton(row, ['1', '2', '3']), |
|
|
hasPermi: 'wms:supplierdeliver-request-main:uploadCheck' |
|
|
hasPermi: 'wms:supplierdeliver-request-main:uploadCheck' |
|
|
}), // 上传质量报告 |
|
|
}), // 上传质量报告 |
|
|
// { |
|
|
{ |
|
|
// label: t('ts.上传履历表'), |
|
|
label: t('ts.上传履历表'), |
|
|
// name: 'mainPlanCurriculumVitae', |
|
|
name: 'mainPlanCurriculumVitae', |
|
|
// hide: row.status!=5, |
|
|
hide: row.status!=5, |
|
|
// type: 'primary', |
|
|
type: 'primary', |
|
|
// icon: '', |
|
|
icon: '', |
|
|
// color: '', |
|
|
color: '', |
|
|
// hasPermi: '', |
|
|
hasPermi: '', |
|
|
// link: true // 文本展现按钮 |
|
|
link: true // 文本展现按钮 |
|
|
// }, // 上传履历表 |
|
|
}, // 上传履历表 |
|
|
defaultButtons.mainListPlanSubBtn({ |
|
|
defaultButtons.mainListPlanSubBtn({ |
|
|
hide: isShowMainButton(row, ['1']), |
|
|
hide: isShowMainButton(row, ['1']), |
|
|
hasPermi: 'wms:supplierdeliver-request-main:sub' |
|
|
hasPermi: 'wms:supplierdeliver-request-main:sub' |
|
@ -628,7 +621,7 @@ const buttonTableClick = async (val, row) => { |
|
|
handleUploadQualityReport(row) |
|
|
handleUploadQualityReport(row) |
|
|
}else if (val == 'mainPlanCurriculumVitae') { |
|
|
}else if (val == 'mainPlanCurriculumVitae') { |
|
|
// 上传履历表 |
|
|
// 上传履历表 |
|
|
handleUploadCurriculumVitae(row) |
|
|
handleUploadCurriculumVitae(row,'发货单号', row.asnNumber) |
|
|
} else if (val == 'mainPlanSub') { |
|
|
} else if (val == 'mainPlanSub') { |
|
|
// 提交审批 |
|
|
// 提交审批 |
|
|
handleSub(row.masterId) |
|
|
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隐藏,其他都展示 |
|
|
annexInspectionDetail.value.hiddenDelete = row.status==8 //HL-5838质检明细-删除按钮只有status=8隐藏,其他都展示 |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'requestSupplierdeliverMain') |
|
|
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 formRef = ref() |
|
|
const supplierdeliverFormRef = ref() |
|
|
const supplierdeliverFormRef = ref() |
|
@ -971,30 +978,8 @@ const handleUploadQualityReport = async (row) => { |
|
|
//uploadQualityReportTableData.value = [tableFormKeys] |
|
|
//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) => { |
|
|
const submitFormUploadQualityReport = async (formType, data) => { |
|
|
delete data.number |
|
|
delete data.number |
|
|