|
|
@ -88,6 +88,17 @@ |
|
|
|
@ListTableSubmit="ListTableSubmit" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-dialog |
|
|
|
v-model="showQualityReport" |
|
|
|
:title="t('质检明细')" |
|
|
|
:append-to-body="false" |
|
|
|
destroy-on-close |
|
|
|
fullscreen |
|
|
|
> |
|
|
|
<iframe :height="reportHeight" width="100%" :src="qualityReport" frameborder="0"></iframe> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
@ -105,6 +116,7 @@ import ListTable from '@/components/ListTable/src/ListTable.vue' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import { getReportUrl } from '@/utils/systemParam' |
|
|
|
// import { InspectionJobPackage} from '../inspectionJob/inspectionJobMain.data' |
|
|
|
|
|
|
|
defineOptions({ name: 'inspectionMain' }) |
|
|
@ -226,7 +238,8 @@ const butttondata = (row) => { |
|
|
|
defaultButtons.mainListEditBtn({ |
|
|
|
hide: isShowMainButton(row, ['1']), |
|
|
|
hasPermi: 'qms:inspection-request-main:edit' |
|
|
|
}) // 编辑 |
|
|
|
}),// 编辑 |
|
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({}) // 查看质检报告 |
|
|
|
] |
|
|
|
} |
|
|
|
const listTableRef = ref() |
|
|
@ -263,7 +276,10 @@ const buttonTableClick = async (val, row) => { |
|
|
|
'包装信息', |
|
|
|
InspectionRequestPackage.allSchemas.tableColumns |
|
|
|
) |
|
|
|
} |
|
|
|
}else if (val == 'mainPlanCheckQualityReport') { |
|
|
|
// 查看质检报告 |
|
|
|
checkQualityReport(row) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 关闭按钮操作 */ |
|
|
@ -350,6 +366,15 @@ const handleSubmit = async (id: number) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 查看质检报告 |
|
|
|
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 formRef = ref() |
|
|
|
const openForm = async (type: string, row?: number) => { |
|
|
|