|
|
@@ -9,7 +9,11 @@
|
|
|
<span>{{ scope.row.changeQuantity }}</span>
|
|
|
</template>
|
|
|
<template #action="scope">
|
|
|
- <ActionButton text="报废详情" @click="handleViewDetail(scope.row)" />
|
|
|
+ <ActionButton
|
|
|
+ v-if="scope.row.changeType === CHANGE_TYPE.DISCARD"
|
|
|
+ text="报废详情"
|
|
|
+ @click="handleViewDetail(scope.row)"
|
|
|
+ />
|
|
|
</template>
|
|
|
</BasicTable>
|
|
|
<el-drawer title="报废详情" v-model="drawerVisible" size="40%" :close-on-click-modal="true" :show-close="true">
|
|
|
@@ -48,6 +52,7 @@
|
|
|
import { CHANGE_TYPE_MAP } from '../constant';
|
|
|
import ActionButton from '@/components/ActionButton.vue';
|
|
|
import { unformatImage } from '@/components/UploadImages/utils';
|
|
|
+ import { CHANGE_TYPE } from '../constant';
|
|
|
|
|
|
const { tableConfig } = useTableConfig(CHANGE_RECORD_TABLE_COLUMNS, CHANGE_RECORD_TABLE_OPTIONS, false);
|
|
|
const props = defineProps<{
|
|
|
@@ -87,8 +92,9 @@
|
|
|
.image-container {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
- gap: 5px;
|
|
|
+ gap: 10px;
|
|
|
width: 100%;
|
|
|
+ padding: 10px 0;
|
|
|
}
|
|
|
.image-preview {
|
|
|
width: 100px;
|