|
|
@ -80,7 +80,7 @@ |
|
|
|
class="!w-240px" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.TRUE_FALSE)" |
|
|
|
v-for="dict in getStrDictOptions(DICT_TYPE.TRUE_FALSE)" |
|
|
|
:key="dict.value" |
|
|
|
:label="dict.label" |
|
|
|
:value="dict.value" |
|
|
@ -148,6 +148,12 @@ |
|
|
|
> |
|
|
|
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
type="warning" |
|
|
|
@click="handleImport" |
|
|
|
v-hasPermi="['wms:workstation:import']"> |
|
|
|
<Icon icon="ep:upload" /> 导入 |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
type="success" |
|
|
|
@click="handleExport" |
|
|
@ -235,14 +241,18 @@ |
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
|
<WorkstationForm ref="formRef" @success="getList" /> |
|
|
|
|
|
|
|
<!-- 用户导入对话框 --> |
|
|
|
<WorkstationImportForm ref="importFormRef" @success="getList" /> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import { DICT_TYPE, getStrDictOptions, getIntDictOptions } from '@/utils/dict' |
|
|
|
import { DICT_TYPE, getStrDictOptions} from '@/utils/dict' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import download from '@/utils/download' |
|
|
|
import * as WorkstationApi from '@/api/wms/workstation' |
|
|
|
import WorkstationForm from './WorkstationForm.vue' |
|
|
|
import WorkstationImportForm from './WorkstationImportForm.vue' |
|
|
|
|
|
|
|
defineOptions({ name: 'Workstation' }) |
|
|
|
|
|
|
@ -297,6 +307,12 @@ const resetQuery = () => { |
|
|
|
handleQuery() |
|
|
|
} |
|
|
|
|
|
|
|
/** 用户导入 */ |
|
|
|
const importFormRef = ref() |
|
|
|
const handleImport = () => { |
|
|
|
importFormRef.value.open() |
|
|
|
|
|
|
|
} |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm = (type: string, id?: number) => { |
|
|
|