bug: 🐛 解决打包报错
All checks were successful
Release / lint (push) Successful in 53s
Release / Release (push) Successful in 1m56s

This commit is contained in:
my_ong 2025-03-08 20:38:12 +08:00
parent c4c2a8bd67
commit bdd0d478df
2 changed files with 12 additions and 6 deletions

View File

@ -61,6 +61,11 @@
//
const columns = [
{
title: '序号',
dataIndex: 'key',
customRender: ({ index }: { index: number }) => `${index + 1}`,
},
{
title: '物料编码',
dataIndex: 'code',

View File

@ -29,8 +29,8 @@
<a-col :span="6" style="width: 180px">
<a-select v-model:value="auditType" :allow-clear="true" placeholder="盘点类型" style="width: 100%">
<a-select-option value="ALL">全部盘点</a-select-option>
<a-select-option value="PARTIAL">部分盘点</a-select-option>
<a-select-option value="SCAN">扫码盘点</a-select-option>
<a-select-option value="MANUAL">人工盘点</a-select-option>
</a-select>
</a-col>
<a-col :span="6">
@ -51,7 +51,7 @@
>
<template #bodyCell="{ column, record }">
<template v-if="column.dataIndex === 'auditType'">
{{ record.auditType === 'ALL' ? '全部盘点' : '部分盘点' }}
{{ record.auditType === 'SCAN' ? '扫码盘点' : '人工盘点' }}
</template>
<template v-if="column.dataIndex === 'reviewResult'">
<!-- 不同状态不同颜色 -->
@ -114,7 +114,7 @@
const startDate = ref<Dayjs>()
const taker = ref('')
const status = ref<Array<'PASS' | 'REJECT' | 'WAIT_SCAN' | 'WAIT_SUBMIT' | 'WAIT_REVIEW'>>()
const auditType = ref<'ALL' | 'PARTIAL'>()
const auditType = ref<'SCAN' | 'MANUAL'>()
//
const loadData = async (page = 1, size = 10) => {
@ -143,8 +143,9 @@
//
const columns = [
{
title: '申请序号',
dataIndex: 'id',
title: '序号',
dataIndex: 'key',
customRender: ({ index }: { index: number }) => `${index + 1}`,
},
{
title: '盘点类型',