|
|
@ -5,12 +5,17 @@ |
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
|
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" /> |
|
|
|
<TableHead |
|
|
|
:HeadButttondata="HeadButttondata" |
|
|
|
@button-base-click="buttonBaseClick" |
|
|
|
:route-name="routeName" |
|
|
|
@updataTableColumns="updataTableColumns" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
|
<ContentWrap> |
|
|
|
<Table |
|
|
|
:columns="Jobsetting.allSchemas.tableColumns" |
|
|
|
:columns="tableColumns" |
|
|
|
:data="tableObject.tableList" |
|
|
|
:loading="tableObject.loading" |
|
|
|
:pagination="{ |
|
|
@ -35,11 +40,8 @@ |
|
|
|
<BasicForm |
|
|
|
ref="basicFormRef" |
|
|
|
@success="getList" |
|
|
|
:rules="JobsettingRules" |
|
|
|
:formAllSchemas="Jobsetting.allSchemas" |
|
|
|
searchTableTitle="物料基础信息" |
|
|
|
:searchTableAllSchemas="Itembasic.allSchemas" |
|
|
|
:searchTablePage="ItembasicApi.getItembasicPage" |
|
|
|
:rules="JobsettingRules" |
|
|
|
:formAllSchemas="Jobsetting.allSchemas" |
|
|
|
:apiUpdate="JobsettingApi.updateJobsetting" |
|
|
|
:apiCreate="JobsettingApi.createJobsetting" |
|
|
|
:isBusiness="false" |
|
|
@ -55,9 +57,8 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
import download from '@/utils/download' |
|
|
|
import * as JobsettingApi from '@/api/wms/jobsetting' |
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' |
|
|
|
import { Jobsetting, JobsettingRules, Itembasic } from '@/utils/disposition/tableColumns' |
|
|
|
import { Jobsetting, JobsettingRules } from '@/utils/disposition/tableColumns' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
@ -68,8 +69,18 @@ defineOptions({ name: 'Jobsetting' }) |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
|
const route = useRoute() //路由信息 |
|
|
|
const routeName = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(Jobsetting.allSchemas.tableColumns) |
|
|
|
|
|
|
|
//字段设置 更新主列表字段 |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: JobsettingApi.getJobsettingPage // 分页接口 |
|
|
|
getListApi: JobsettingApi.getJobsettingPage // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
@ -78,9 +89,10 @@ const { getList, setSearchParams } = tableMethods |
|
|
|
// 列表头部按钮 |
|
|
|
const HeadButttondata = [ |
|
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:jobsetting:create'}), // 新增 |
|
|
|
defaultButtons.defaultImportBtn({hasPermi:'wms:jobsetting:import'}), // 导入 |
|
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:jobsetting:export'}), // 导出 |
|
|
|
// defaultButtons.defaultImportBtn({hasPermi:'wms:jobsetting:import'}), // 导入 |
|
|
|
// defaultButtons.defaultExportBtn({hasPermi:'wms:jobsetting:export'}), // 导出 |
|
|
|
defaultButtons.defaultFreshBtn(null),//刷新 |
|
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
|
// { |
|
|
|
// label: '自定义扩展按钮', |
|
|
|
// name: 'zdy', |
|
|
@ -172,7 +184,7 @@ const handleImport = () => { |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
templateUrl: '', |
|
|
|
templateTitle: '任务单置导入模版.xls' |
|
|
|
templateTitle: '任务单设置导入模版.xls' |
|
|
|
}) |
|
|
|
// 导入成功之后 |
|
|
|
const importSuccess = () => { |
|
|
|