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