|
|
@ -1,15 +1,21 @@ |
|
|
|
<template> |
|
|
|
<ContentWrap> |
|
|
|
<!-- 搜索工作栏 --> |
|
|
|
<Search :schema="ItemBasic.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
|
<Search :schema="Itembasic.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
|
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" /> |
|
|
|
<TableHead |
|
|
|
:HeadButttondata="HeadButttondata" |
|
|
|
@button-base-click="buttonBaseClick" |
|
|
|
:tableColumns="tableColumns" |
|
|
|
:routeName="routeName" |
|
|
|
@updataTableColumns="updataTableColumns" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
|
<ContentWrap> |
|
|
|
<Table :columns="ItemBasic.allSchemas.tableColumns" :data="tableObject.tableList" :loading="tableObject.loading" |
|
|
|
<Table :columns="tableColumns" :data="tableObject.tableList" :loading="tableObject.loading" |
|
|
|
:pagination="{ |
|
|
|
total: tableObject.total |
|
|
|
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"> |
|
|
@ -31,15 +37,15 @@ |
|
|
|
<BasicForm |
|
|
|
ref="basicFormRef" |
|
|
|
@success="getList" |
|
|
|
:rules="ItemBasicRules" |
|
|
|
:formAllSchemas="ItemBasic.allSchemas" |
|
|
|
:rules="ItembasicRules" |
|
|
|
:formAllSchemas="Itembasic.allSchemas" |
|
|
|
:apiUpdate="ItembasicApi.updateItembasic" |
|
|
|
:apiCreate="ItembasicApi.createItembasic" |
|
|
|
:isBusiness="false" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
|
<Detail ref="detailRef" :tabs="ItemBasicTabsList" :isBasic="true" :allSchemas="ItemBasic.allSchemas" /> |
|
|
|
<Detail ref="detailRef" :tabs="ItemBasicTabsList" :isBasic="true" :allSchemas="Itembasic.allSchemas" /> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm ref="importFormRef" :url="ItembasicApi.importUrl" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
@ -50,7 +56,7 @@ import download from '@/utils/download' |
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import { ItemBasic, ItemBasicRules } from '@/utils/disposition/tableColumns' |
|
|
|
import { Itembasic, ItembasicRules } from '@/utils/disposition/tableColumns' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { ItemBasicTabsList } from '@/utils/disposition/tabsList' |
|
|
|
defineOptions({ name: 'Itembasic' }) |
|
|
@ -84,6 +90,18 @@ const { getList, setSearchParams } = tableMethods |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
|
const route = useRoute() // 路由信息 |
|
|
|
const routeName = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(Itembasic.allSchemas.tableColumns) |
|
|
|
|
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
console.log(101, val) |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
|
|
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
|
|
|
|
|
// 头部按钮事件 |
|
|
|