|
@ -89,7 +89,7 @@ |
|
|
|
|
|
|
|
|
<el-dialog |
|
|
<el-dialog |
|
|
v-model="showQualityReport" |
|
|
v-model="showQualityReport" |
|
|
:title="t('质检明细')" |
|
|
:title="reportTitle" |
|
|
:append-to-body="false" |
|
|
:append-to-body="false" |
|
|
destroy-on-close |
|
|
destroy-on-close |
|
|
fullscreen |
|
|
fullscreen |
|
@ -118,6 +118,7 @@ import { getReportUrl } from '@/utils/systemParam' |
|
|
// import { InspectionJobPackage} from '../inspectionJob/inspectionJobMain.data' |
|
|
// import { InspectionJobPackage} from '../inspectionJob/inspectionJobMain.data' |
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
|
|
// 检验申请 |
|
|
defineOptions({ name: 'inspectionMain' }) |
|
|
defineOptions({ name: 'inspectionMain' }) |
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
@ -238,7 +239,9 @@ const butttondata = (row) => { |
|
|
hide: isShowMainButton(row, ['1']), |
|
|
hide: isShowMainButton(row, ['1']), |
|
|
hasPermi: 'qms:inspection-request-main:edit' |
|
|
hasPermi: 'qms:inspection-request-main:edit' |
|
|
}),// 编辑 |
|
|
}),// 编辑 |
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({}) // 查看质检报告 |
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({}), // 查看质检报告 |
|
|
|
|
|
defaultButtons.mainListSupplierResumeBtn({}) // 查看履历表 |
|
|
|
|
|
|
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
const listTableRef = ref() |
|
|
const listTableRef = ref() |
|
@ -278,6 +281,9 @@ const buttonTableClick = async (val, row) => { |
|
|
}else if (val == 'mainPlanCheckQualityReport') { |
|
|
}else if (val == 'mainPlanCheckQualityReport') { |
|
|
// 查看质检报告 |
|
|
// 查看质检报告 |
|
|
checkQualityReport(row) |
|
|
checkQualityReport(row) |
|
|
|
|
|
}else if (val == 'mainSupplierResume') { |
|
|
|
|
|
// 查看履历表 |
|
|
|
|
|
checkSupplierResume(row) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -369,10 +375,18 @@ const handleSubmit = async (id: number) => { |
|
|
const reportHeight = ref(window.innerHeight - 120) |
|
|
const reportHeight = ref(window.innerHeight - 120) |
|
|
const showQualityReport = ref(false) |
|
|
const showQualityReport = ref(false) |
|
|
const qualityReport = ref('') |
|
|
const qualityReport = ref('') |
|
|
|
|
|
const reportTitle = ref('') |
|
|
const checkQualityReport = async (row) => { |
|
|
const checkQualityReport = async (row) => { |
|
|
|
|
|
reportTitle.value = t('ts.质检明细') |
|
|
showQualityReport.value = true |
|
|
showQualityReport.value = true |
|
|
qualityReport.value = getReportUrl() + '/purchasereceiptReport?asnNumber=' + row.asnNumber |
|
|
qualityReport.value = getReportUrl() + '/purchasereceiptReport?asnNumber=' + row.asnNumber |
|
|
} |
|
|
} |
|
|
|
|
|
// 查看履历表 |
|
|
|
|
|
const checkSupplierResume = async (row) => { |
|
|
|
|
|
reportTitle.value = t('ts.履历表明细') |
|
|
|
|
|
showQualityReport.value = true |
|
|
|
|
|
qualityReport.value = getReportUrl() + '/supplierResume?asnNumber=' + row.asnNumber |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const formRef = ref() |
|
|
const formRef = ref() |
|
|