|
|
@ -62,6 +62,7 @@ |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import AddForm from '../inspectionRecordFirst/addForm.vue' |
|
|
|
import Detail from './detail.vue' |
|
|
|
import { getReportUrl } from '@/utils/systemParam' |
|
|
|
|
|
|
|
import { InspectionTemplateMain,InspectionTemplateProcess,InspectionTemplateFeatures,InspectionTemplateRules } from '../inspectionTemplate/inspectionTemplate.data' |
|
|
|
|
|
|
@ -138,8 +139,8 @@ const buttonBaseClick = (val, item) => { |
|
|
|
defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, 'publish'),hasPermi: 'wms:inspection-recode-first-main:update' }), // 编辑 |
|
|
|
defaultButtons.mainListDeleteBtn({ hide: isShowMainButton(row, 'publish'),hasPermi: 'wms:inspection-recode-first-main:delete' }), // 删除 |
|
|
|
defaultButtons.mainListOrderPubBtn({ hide: isShowMainButton(row, 'publish'), hasPermi: 'qms:inspection-recode-first-main:pub' }), // 发布 |
|
|
|
|
|
|
|
defaultButtons.mainExport({ hide: !row.isPublished}), // 导出 |
|
|
|
defaultButtons.mainExport({ hide: !row.isPublished }),// 导出 |
|
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({}) // 查看质检报告 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
@ -155,11 +156,22 @@ const buttonBaseClick = (val, item) => { |
|
|
|
handleDelete(row.id) |
|
|
|
}else if (val == 'mainOrderPub') { //发布 |
|
|
|
handleOrderPub(row) |
|
|
|
}else if (val == 'mainExport') { |
|
|
|
}else if (val == 'mainPlanCheckQualityReport') { |
|
|
|
// 查看质检报告 |
|
|
|
checkQualityReport(row) |
|
|
|
} else if (val == 'mainExport') { |
|
|
|
// 导出 |
|
|
|
handleMainExport(row) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 查看质检报告 |
|
|
|
const reportHeight = ref(window.innerHeight - 120) |
|
|
|
const showQualityReport = ref(false) |
|
|
|
const qualityReport = ref('') |
|
|
|
const checkQualityReport = async (row) => { |
|
|
|
showQualityReport.value = true |
|
|
|
qualityReport.value = `${getReportUrl()}/purchasereceiptReport?asnNumber=${row.asnNumber}` |
|
|
|
} |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = async (type : string, row ?: number) => { |
|
|
|