|
|
|
|
@ -1,5 +1,10 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="quality-info-container">
|
|
|
|
|
<div class="action-bar">
|
|
|
|
|
<el-button @click="handleRefresh" :loading="loading">
|
|
|
|
|
<Icon icon="ep:refresh" class="mr-5px" /> 刷新
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table v-loading="loading" :data="qualityList" :stripe="true" :show-overflow-tooltip="true">
|
|
|
|
|
<el-table-column label="质检编码" align="center" prop="code" width="150px" />
|
|
|
|
|
<el-table-column label="质检名称" align="center" prop="name" width="150px" />
|
|
|
|
|
@ -95,6 +100,11 @@ watch(
|
|
|
|
|
{ immediate: true }
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const handleRefresh = () => {
|
|
|
|
|
queryParams.pageNo = 1
|
|
|
|
|
getList()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 格式化日期时间 */
|
|
|
|
|
const formatDateTime = (value: string | Date | null) => {
|
|
|
|
|
if (!value) return '-'
|
|
|
|
|
@ -103,6 +113,12 @@ const formatDateTime = (value: string | Date | null) => {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.action-bar {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.section-title {
|
|
|
|
|
margin: 0 0 16px 0;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|