Browse Source

基础数据页面补充

master
李胜楠 1 year ago
parent
commit
3d083c5dd0
  1. 54
      src/api/wms/businesstype/index.ts
  2. 52
      src/api/wms/carrier/index.ts
  3. 40
      src/api/wms/condition/index.ts
  4. 40
      src/api/wms/configuration/index.ts
  5. 42
      src/api/wms/configurationsetting/index.ts
  6. 49
      src/api/wms/documentsetting/index.ts
  7. 51
      src/api/wms/jobsetting/index.ts
  8. 52
      src/api/wms/owner/index.ts
  9. 43
      src/api/wms/paramsetting/index.ts
  10. 41
      src/api/wms/recordsetting/index.ts
  11. 45
      src/api/wms/requestsetting/index.ts
  12. 41
      src/api/wms/rule/index.ts
  13. 44
      src/api/wms/shift/index.ts
  14. 41
      src/api/wms/strategy/index.ts
  15. 42
      src/api/wms/team/index.ts
  16. 44
      src/api/wms/transactiontype/index.ts
  17. 186
      src/views/wms/businesstype/index.vue
  18. 186
      src/views/wms/carrier/index.vue
  19. 186
      src/views/wms/condition/index.vue
  20. 186
      src/views/wms/configuration/index.vue
  21. 186
      src/views/wms/configurationsetting/index.vue
  22. 186
      src/views/wms/documentsetting/index.vue
  23. 186
      src/views/wms/jobsetting/index.vue
  24. 186
      src/views/wms/owner/index.vue
  25. 186
      src/views/wms/paramsetting/index.vue
  26. 186
      src/views/wms/recordsetting/index.vue
  27. 186
      src/views/wms/requestsetting/index.vue
  28. 186
      src/views/wms/rule/index.vue
  29. 186
      src/views/wms/shift/index.vue
  30. 186
      src/views/wms/strategy/index.vue
  31. 186
      src/views/wms/team/index.vue
  32. 186
      src/views/wms/transactiontype/index.vue

54
src/api/wms/businesstype/index.ts

@ -0,0 +1,54 @@
import request from '@/config/axios'
export interface BusinesstypeVO {
code: string
name: string
description: string
itemTypes: string
itemStatuses: string
outLocationTypes: string
inLocationTypes: string
outAreaCodes: string
inAreaCodes: string
outInventoryStatuses: string
inInventoryStatuses: string
outTransactionType: string
inTransactionType: string
onTheWayArea: string
activeTime: Date
expireTime: Date
remark: string
useOnTheWay: string
available: string
isSoftDeleted: string
}
// 查询业务类型列表
export const getBusinesstypePage = async (params) => {
return await request.get({ url: `/wms/businesstype/page`, params })
}
// 查询业务类型详情
export const getBusinesstype = async (id: number) => {
return await request.get({ url: `/wms/businesstype/get?id=` + id })
}
// 新增业务类型
export const createBusinesstype = async (data: BusinesstypeVO) => {
return await request.post({ url: `/wms/businesstype/create`, data })
}
// 修改业务类型
export const updateBusinesstype = async (data: BusinesstypeVO) => {
return await request.put({ url: `/wms/businesstype/update`, data })
}
// 删除业务类型
export const deleteBusinesstype = async (id: number) => {
return await request.delete({ url: `/wms/businesstype/delete?id=` + id })
}
// 导出业务类型 Excel
export const exportBusinesstype = async (params) => {
return await request.download({ url: `/wms/businesstype/export-excel`, params })
}

52
src/api/wms/carrier/index.ts

@ -0,0 +1,52 @@
import request from '@/config/axios'
export interface CarrierVO {
code: string
name: string
shortName: string
address: string
country: string
city: string
phone: string
fax: string
postId: string
contacts: string
bank: string
currency: string
taxRate: number
type: string
activeTime: Date
expireTime: Date
remark: string
available: string
}
// 查询承运商列表
export const getCarrierPage = async (params) => {
return await request.get({ url: `/wms/carrier/page`, params })
}
// 查询承运商详情
export const getCarrier = async (id: number) => {
return await request.get({ url: `/wms/carrier/get?id=` + id })
}
// 新增承运商
export const createCarrier = async (data: CarrierVO) => {
return await request.post({ url: `/wms/carrier/create`, data })
}
// 修改承运商
export const updateCarrier = async (data: CarrierVO) => {
return await request.put({ url: `/wms/carrier/update`, data })
}
// 删除承运商
export const deleteCarrier = async (id: number) => {
return await request.delete({ url: `/wms/carrier/delete?id=` + id })
}
// 导出承运商 Excel
export const exportCarrier = async (params) => {
return await request.download({ url: `/wms/carrier/export-excel`, params })
}

40
src/api/wms/condition/index.ts

@ -0,0 +1,40 @@
import request from '@/config/axios'
export interface ConditionVO {
strategyCode: string
ruleCode: string
paramCode: string
operator: string
value: string
groupCode: string
}
// 查询条件列表
export const getConditionPage = async (params) => {
return await request.get({ url: `/wms/condition/page`, params })
}
// 查询条件详情
export const getCondition = async (id: number) => {
return await request.get({ url: `/wms/condition/get?id=` + id })
}
// 新增条件
export const createCondition = async (data: ConditionVO) => {
return await request.post({ url: `/wms/condition/create`, data })
}
// 修改条件
export const updateCondition = async (data: ConditionVO) => {
return await request.put({ url: `/wms/condition/update`, data })
}
// 删除条件
export const deleteCondition = async (id: number) => {
return await request.delete({ url: `/wms/condition/delete?id=` + id })
}
// 导出条件 Excel
export const exportCondition = async (params) => {
return await request.download({ url: `/wms/condition/export-excel`, params })
}

40
src/api/wms/configuration/index.ts

@ -0,0 +1,40 @@
import request from '@/config/axios'
export interface ConfigurationVO {
strategyCode: string
ruleCode: string
configurationCode: string
configurationValue: string
description: string
groupCode: string
}
// 查询配置列表
export const getConfigurationPage = async (params) => {
return await request.get({ url: `/wms/configuration/page`, params })
}
// 查询配置详情
export const getConfiguration = async (id: number) => {
return await request.get({ url: `/wms/configuration/get?id=` + id })
}
// 新增配置
export const createConfiguration = async (data: ConfigurationVO) => {
return await request.post({ url: `/wms/configuration/create`, data })
}
// 修改配置
export const updateConfiguration = async (data: ConfigurationVO) => {
return await request.put({ url: `/wms/configuration/update`, data })
}
// 删除配置
export const deleteConfiguration = async (id: number) => {
return await request.delete({ url: `/wms/configuration/delete?id=` + id })
}
// 导出配置 Excel
export const exportConfiguration = async (params) => {
return await request.download({ url: `/wms/configuration/export-excel`, params })
}

42
src/api/wms/configurationsetting/index.ts

@ -0,0 +1,42 @@
import request from '@/config/axios'
export interface ConfigurationsettingVO {
strategyType: string
configurationCode: string
configurationName: string
dataType: string
valueScope: string
relatedTo: string
description: string
isRequired: string
}
// 查询配置设置列表
export const getConfigurationsettingPage = async (params) => {
return await request.get({ url: `/wms/configurationsetting/page`, params })
}
// 查询配置设置详情
export const getConfigurationsetting = async (id: number) => {
return await request.get({ url: `/wms/configurationsetting/get?id=` + id })
}
// 新增配置设置
export const createConfigurationsetting = async (data: ConfigurationsettingVO) => {
return await request.post({ url: `/wms/configurationsetting/create`, data })
}
// 修改配置设置
export const updateConfigurationsetting = async (data: ConfigurationsettingVO) => {
return await request.put({ url: `/wms/configurationsetting/update`, data })
}
// 删除配置设置
export const deleteConfigurationsetting = async (id: number) => {
return await request.delete({ url: `/wms/configurationsetting/delete?id=` + id })
}
// 导出配置设置 Excel
export const exportConfigurationsetting = async (params) => {
return await request.download({ url: `/wms/configurationsetting/export-excel`, params })
}

49
src/api/wms/documentsetting/index.ts

@ -0,0 +1,49 @@
import request from '@/config/axios'
export interface DocumentsettingVO {
code: string
name: string
description: string
type: string
businessType: string
numberPrefix: string
dateFormat: string
serialLength: number
separatorStr: string
resetPeriod: string
activeTime: Date
expireTime: Date
remark: string
available: string
isSoftDeleted: string
}
// 查询单据设置列表
export const getDocumentsettingPage = async (params) => {
return await request.get({ url: `/wms/documentsetting/page`, params })
}
// 查询单据设置详情
export const getDocumentsetting = async (id: number) => {
return await request.get({ url: `/wms/documentsetting/get?id=` + id })
}
// 新增单据设置
export const createDocumentsetting = async (data: DocumentsettingVO) => {
return await request.post({ url: `/wms/documentsetting/create`, data })
}
// 修改单据设置
export const updateDocumentsetting = async (data: DocumentsettingVO) => {
return await request.put({ url: `/wms/documentsetting/update`, data })
}
// 删除单据设置
export const deleteDocumentsetting = async (id: number) => {
return await request.delete({ url: `/wms/documentsetting/delete?id=` + id })
}
// 导出单据设置 Excel
export const exportDocumentsetting = async (params) => {
return await request.download({ url: `/wms/documentsetting/export-excel`, params })
}

51
src/api/wms/jobsetting/index.ts

@ -0,0 +1,51 @@
import request from '@/config/axios'
export interface JobsettingVO {
code: string
validMinutes: number
activeTime: Date
remark: string
autoComplete: string
allowModifyLocation: string
allowModifyQty: string
allowBiggerQty: string
allowSmallerQty: string
allowModifyInventoryStatus: string
allowContinuousScanning: string
allowPartialComplete: string
allowModifyBach: string
allowModifyPackingNumber: string
available: string
isSoftDeleted: string
expireTime: Date
}
// 查询任务设置列表
export const getJobsettingPage = async (params) => {
return await request.get({ url: `/wms/jobsetting/page`, params })
}
// 查询任务设置详情
export const getJobsetting = async (id: number) => {
return await request.get({ url: `/wms/jobsetting/get?id=` + id })
}
// 新增任务设置
export const createJobsetting = async (data: JobsettingVO) => {
return await request.post({ url: `/wms/jobsetting/create`, data })
}
// 修改任务设置
export const updateJobsetting = async (data: JobsettingVO) => {
return await request.put({ url: `/wms/jobsetting/update`, data })
}
// 删除任务设置
export const deleteJobsetting = async (id: number) => {
return await request.delete({ url: `/wms/jobsetting/delete?id=` + id })
}
// 导出任务设置 Excel
export const exportJobsetting = async (params) => {
return await request.download({ url: `/wms/jobsetting/export-excel`, params })
}

52
src/api/wms/owner/index.ts

@ -0,0 +1,52 @@
import request from '@/config/axios'
export interface OwnerVO {
code: string
name: string
shortName: string
address: string
country: string
city: string
phone: string
fax: string
postId: string
contacts: string
bank: string
currency: string
taxRate: number
type: string
activeTime: Date
expireTime: Date
remark: string
available: string
}
// 查询货主列表
export const getOwnerPage = async (params) => {
return await request.get({ url: `/wms/owner/page`, params })
}
// 查询货主详情
export const getOwner = async (id: number) => {
return await request.get({ url: `/wms/owner/get?id=` + id })
}
// 新增货主
export const createOwner = async (data: OwnerVO) => {
return await request.post({ url: `/wms/owner/create`, data })
}
// 修改货主
export const updateOwner = async (data: OwnerVO) => {
return await request.put({ url: `/wms/owner/update`, data })
}
// 删除货主
export const deleteOwner = async (id: number) => {
return await request.delete({ url: `/wms/owner/delete?id=` + id })
}
// 导出货主 Excel
export const exportOwner = async (params) => {
return await request.download({ url: `/wms/owner/export-excel`, params })
}

43
src/api/wms/paramsetting/index.ts

@ -0,0 +1,43 @@
import request from '@/config/axios'
export interface ParamsettingVO {
strategyType: string
paramCode: string
paramName: string
usableOpeartors: string
dataType: string
valueScope: string
relatedTo: string
description: string
isRequired: string
}
// 查询参数设置列表
export const getParamsettingPage = async (params) => {
return await request.get({ url: `/wms/paramsetting/page`, params })
}
// 查询参数设置详情
export const getParamsetting = async (id: number) => {
return await request.get({ url: `/wms/paramsetting/get?id=` + id })
}
// 新增参数设置
export const createParamsetting = async (data: ParamsettingVO) => {
return await request.post({ url: `/wms/paramsetting/create`, data })
}
// 修改参数设置
export const updateParamsetting = async (data: ParamsettingVO) => {
return await request.put({ url: `/wms/paramsetting/update`, data })
}
// 删除参数设置
export const deleteParamsetting = async (id: number) => {
return await request.delete({ url: `/wms/paramsetting/delete?id=` + id })
}
// 导出参数设置 Excel
export const exportParamsetting = async (params) => {
return await request.download({ url: `/wms/paramsetting/export-excel`, params })
}

41
src/api/wms/recordsetting/index.ts

@ -0,0 +1,41 @@
import request from '@/config/axios'
export interface RecordsettingVO {
code: string
interfaceType: string
activeTime: Date
expireTime: Date
remark: string
available: string
isSoftDeleted: string
}
// 查询记录设置列表
export const getRecordsettingPage = async (params) => {
return await request.get({ url: `/wms/recordsetting/page`, params })
}
// 查询记录设置详情
export const getRecordsetting = async (id: number) => {
return await request.get({ url: `/wms/recordsetting/get?id=` + id })
}
// 新增记录设置
export const createRecordsetting = async (data: RecordsettingVO) => {
return await request.post({ url: `/wms/recordsetting/create`, data })
}
// 修改记录设置
export const updateRecordsetting = async (data: RecordsettingVO) => {
return await request.put({ url: `/wms/recordsetting/update`, data })
}
// 删除记录设置
export const deleteRecordsetting = async (id: number) => {
return await request.delete({ url: `/wms/recordsetting/delete?id=` + id })
}
// 导出记录设置 Excel
export const exportRecordsetting = async (params) => {
return await request.download({ url: `/wms/recordsetting/export-excel`, params })
}

45
src/api/wms/requestsetting/index.ts

@ -0,0 +1,45 @@
import request from '@/config/axios'
export interface RequestsettingVO {
code: string
requestMode: string
activeTime: Date
expireTime: Date
remark: string
autoCommit: string
autoAgree: string
autoExecute: string
directCreateRecord: string
available: string
isSoftDeleted: string
}
// 查询申请设置列表
export const getRequestsettingPage = async (params) => {
return await request.get({ url: `/wms/requestsetting/page`, params })
}
// 查询申请设置详情
export const getRequestsetting = async (id: number) => {
return await request.get({ url: `/wms/requestsetting/get?id=` + id })
}
// 新增申请设置
export const createRequestsetting = async (data: RequestsettingVO) => {
return await request.post({ url: `/wms/requestsetting/create`, data })
}
// 修改申请设置
export const updateRequestsetting = async (data: RequestsettingVO) => {
return await request.put({ url: `/wms/requestsetting/update`, data })
}
// 删除申请设置
export const deleteRequestsetting = async (id: number) => {
return await request.delete({ url: `/wms/requestsetting/delete?id=` + id })
}
// 导出申请设置 Excel
export const exportRequestsetting = async (params) => {
return await request.download({ url: `/wms/requestsetting/export-excel`, params })
}

41
src/api/wms/rule/index.ts

@ -0,0 +1,41 @@
import request from '@/config/axios'
export interface RuleVO {
strategyCode: string
priority: number
code: string
name: string
description: string
condition: string
configuration: string
}
// 查询规则列表
export const getRulePage = async (params) => {
return await request.get({ url: `/wms/rule/page`, params })
}
// 查询规则详情
export const getRule = async (id: number) => {
return await request.get({ url: `/wms/rule/get?id=` + id })
}
// 新增规则
export const createRule = async (data: RuleVO) => {
return await request.post({ url: `/wms/rule/create`, data })
}
// 修改规则
export const updateRule = async (data: RuleVO) => {
return await request.put({ url: `/wms/rule/update`, data })
}
// 删除规则
export const deleteRule = async (id: number) => {
return await request.delete({ url: `/wms/rule/delete?id=` + id })
}
// 导出规则 Excel
export const exportRule = async (params) => {
return await request.download({ url: `/wms/rule/export-excel`, params })
}

44
src/api/wms/shift/index.ts

@ -0,0 +1,44 @@
import request from '@/config/axios'
export interface ShiftVO {
code: string
name: string
description: string
beginTime: Date
entTime: Date
activeTime: Date
expireTime: Date
remark: string
endAtNextDay: string
available: string
}
// 查询班次列表
export const getShiftPage = async (params) => {
return await request.get({ url: `/wms/shift/page`, params })
}
// 查询班次详情
export const getShift = async (id: number) => {
return await request.get({ url: `/wms/shift/get?id=` + id })
}
// 新增班次
export const createShift = async (data: ShiftVO) => {
return await request.post({ url: `/wms/shift/create`, data })
}
// 修改班次
export const updateShift = async (data: ShiftVO) => {
return await request.put({ url: `/wms/shift/update`, data })
}
// 删除班次
export const deleteShift = async (id: number) => {
return await request.delete({ url: `/wms/shift/delete?id=` + id })
}
// 导出班次 Excel
export const exportShift = async (params) => {
return await request.download({ url: `/wms/shift/export-excel`, params })
}

41
src/api/wms/strategy/index.ts

@ -0,0 +1,41 @@
import request from '@/config/axios'
export interface StrategyVO {
remark: string
code: string
name: string
description: string
type: string
priority: number
isActive: string
}
// 查询策略列表
export const getStrategyPage = async (params) => {
return await request.get({ url: `/wms/strategy/page`, params })
}
// 查询策略详情
export const getStrategy = async (id: number) => {
return await request.get({ url: `/wms/strategy/get?id=` + id })
}
// 新增策略
export const createStrategy = async (data: StrategyVO) => {
return await request.post({ url: `/wms/strategy/create`, data })
}
// 修改策略
export const updateStrategy = async (data: StrategyVO) => {
return await request.put({ url: `/wms/strategy/update`, data })
}
// 删除策略
export const deleteStrategy = async (id: number) => {
return await request.delete({ url: `/wms/strategy/delete?id=` + id })
}
// 导出策略 Excel
export const exportStrategy = async (params) => {
return await request.download({ url: `/wms/strategy/export-excel`, params })
}

42
src/api/wms/team/index.ts

@ -0,0 +1,42 @@
import request from '@/config/axios'
export interface TeamVO {
code: string
name: string
description: string
members: string
activeTime: Date
expireTime: Date
remark: string
available: string
}
// 查询班组列表
export const getTeamPage = async (params) => {
return await request.get({ url: `/wms/team/page`, params })
}
// 查询班组详情
export const getTeam = async (id: number) => {
return await request.get({ url: `/wms/team/get?id=` + id })
}
// 新增班组
export const createTeam = async (data: TeamVO) => {
return await request.post({ url: `/wms/team/create`, data })
}
// 修改班组
export const updateTeam = async (data: TeamVO) => {
return await request.put({ url: `/wms/team/update`, data })
}
// 删除班组
export const deleteTeam = async (id: number) => {
return await request.delete({ url: `/wms/team/delete?id=` + id })
}
// 导出班组 Excel
export const exportTeam = async (params) => {
return await request.download({ url: `/wms/team/export-excel`, params })
}

44
src/api/wms/transactiontype/index.ts

@ -0,0 +1,44 @@
import request from '@/config/axios'
export interface TransactiontypeVO {
code: string
name: string
description: string
inventoryAction: string
activeTime: Date
expireTime: Date
remark: string
allowNegative: string
available: string
isSoftDeleted: string
}
// 查询事务类型列表
export const getTransactiontypePage = async (params) => {
return await request.get({ url: `/wms/transactiontype/page`, params })
}
// 查询事务类型详情
export const getTransactiontype = async (id: number) => {
return await request.get({ url: `/wms/transactiontype/get?id=` + id })
}
// 新增事务类型
export const createTransactiontype = async (data: TransactiontypeVO) => {
return await request.post({ url: `/wms/transactiontype/create`, data })
}
// 修改事务类型
export const updateTransactiontype = async (data: TransactiontypeVO) => {
return await request.put({ url: `/wms/transactiontype/update`, data })
}
// 删除事务类型
export const deleteTransactiontype = async (id: number) => {
return await request.delete({ url: `/wms/transactiontype/delete?id=` + id })
}
// 导出事务类型 Excel
export const exportTransactiontype = async (params) => {
return await request.download({ url: `/wms/transactiontype/export-excel`, params })
}

186
src/views/wms/businesstype/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Businesstype.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Businesstype.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="BusinesstypeRules"
:formAllSchemas="Businesstype.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="BusinesstypeApi.updateBusinesstype"
:apiCreate="BusinesstypeApi.createBusinesstype"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Businesstype.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/businesstype/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as BusinesstypeApi from '@/api/wms/businesstype'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Businesstype, BusinesstypeRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Businesstype' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: BusinesstypeApi.getBusinesstypePage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:businesstype:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:businesstype:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:businesstype:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:businesstype:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:businesstype:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await BusinesstypeApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await BusinesstypeApi.deleteBusinesstype(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await BusinesstypeApi.exportBusinesstype(setSearchParams)
download.excel(data, '仓库.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '仓库导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/carrier/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Carrier.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Carrier.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="CarrierRules"
:formAllSchemas="Carrier.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="CarrierApi.updateCarrier"
:apiCreate="CarrierApi.createCarrier"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Carrier.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/carrier/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as CarrierApi from '@/api/wms/carrier'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Carrier, CarrierRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Carrier' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: CarrierApi.getCarrierPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:carrier:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:carrier:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:carrier:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:carrier:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:carrier:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await CarrierApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await CarrierApi.deleteCarrier(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await CarrierApi.exportCarrier(setSearchParams)
download.excel(data, '承运商.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '承运商导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/condition/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Condition.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Condition.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #strategyCode="{row}">
<el-button type="primary" link @click="openDetail(row, '策略代码', row.strategyCode)">
<span>{{ row.strategyCode }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="ConditionRules"
:formAllSchemas="Condition.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="ConditionApi.updateCondition"
:apiCreate="ConditionApi.createCondition"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Condition.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/condition/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as ConditionApi from '@/api/wms/condition'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Condition, ConditionRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Condition' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: ConditionApi.getConditionPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:condition:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:condition:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:condition:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:condition:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:condition:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await ConditionApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await ConditionApi.deleteCondition(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await ConditionApi.exportCondition(setSearchParams)
download.excel(data, '条件.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '条件导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/configuration/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Configuration.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Configuration.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #strategyCode="{row}">
<el-button type="primary" link @click="openDetail(row, '策略代码', row.strategyCode)">
<span>{{ row.strategyCode }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="ConfigurationRules"
:formAllSchemas="Configuration.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="ConfigurationApi.updateConfiguration"
:apiCreate="ConfigurationApi.createConfiguration"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Configuration.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/configuration/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as ConfigurationApi from '@/api/wms/configuration'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Configuration, ConfigurationRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Configuration' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: ConfigurationApi.getConfigurationPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:configuration:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:configuration:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:configuration:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:configuration:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:configuration:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await ConfigurationApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await ConfigurationApi.deleteConfiguration(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await ConfigurationApi.exportConfiguration(setSearchParams)
download.excel(data, '仓库.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '仓库导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/configurationsetting/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Configurationsetting.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Configurationsetting.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #strategyType="{row}">
<el-button type="primary" link @click="openDetail(row, '策略类型', row.strategyType)">
<span>{{ row.strategyType }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="ConfigurationsettingRules"
:formAllSchemas="Configurationsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="ConfigurationsettingApi.updateConfigurationsetting"
:apiCreate="ConfigurationsettingApi.createConfigurationsetting"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Configurationsetting.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/configurationsetting/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as ConfigurationsettingApi from '@/api/wms/configurationsetting'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Configurationsetting, ConfigurationsettingRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Configurationsetting' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: ConfigurationsettingApi.getConfigurationsettingPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:configurationsetting:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:configurationsetting:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:configurationsetting:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:configurationsetting:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:configurationsetting:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await ConfigurationsettingApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await ConfigurationsettingApi.deleteConfigurationsetting(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await ConfigurationsettingApi.exportConfigurationsetting(setSearchParams)
download.excel(data, '配置设置.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '配置设置导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/documentsetting/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Documentsetting.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Documentsetting.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="DocumentsettingRules"
:formAllSchemas="Documentsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="DocumentsettingApi.updateDocumentsetting"
:apiCreate="DocumentsettingApi.createDocumentsetting"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Documentsetting.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/documentsetting/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as DocumentsettingApi from '@/api/wms/documentsetting'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Documentsetting, DocumentsettingRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Documentsetting' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: DocumentsettingApi.getDocumentsettingPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:documentsetting:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:documentsetting:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:documentsetting:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:documentsetting:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:documentsetting:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await DocumentsettingApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await DocumentsettingApi.deleteDocumentsetting(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await DocumentsettingApi.exportDocumentsetting(setSearchParams)
download.excel(data, '单据设置.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '单据设置导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/jobsetting/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Jobsetting.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Jobsetting.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="JobsettingRules"
:formAllSchemas="Jobsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="JobsettingApi.updateJobsetting"
:apiCreate="JobsettingApi.createJobsetting"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Jobsetting.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/jobsetting/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<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 * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Jobsetting' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: JobsettingApi.getJobsettingPage //
})
//
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.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:jobsetting:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:jobsetting:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await JobsettingApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await JobsettingApi.deleteJobsetting(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await JobsettingApi.exportJobsetting(setSearchParams)
download.excel(data, '任务单设置.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '任务单置导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/owner/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Owner.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Owner.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="OwnerRules"
:formAllSchemas="Owner.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="OwnerApi.updateOwner"
:apiCreate="OwnerApi.createOwner"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Owner.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/owner/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as OwnerApi from '@/api/wms/owner'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Owner, OwnerRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Owner' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: OwnerApi.getOwnerPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:owner:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:owner:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:owner:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:owner:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:owner:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await OwnerApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await OwnerApi.deleteOwner(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await OwnerApi.exportOwner(setSearchParams)
download.excel(data, '货主.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '货主导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/paramsetting/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Paramsetting.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Paramsetting.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #strategyType="{row}">
<el-button type="primary" link @click="openDetail(row, '策略类型', row.strategyType)">
<span>{{ row.strategyType }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="ParamsettingRules"
:formAllSchemas="Paramsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="ParamsettingApi.updateParamsetting"
:apiCreate="ParamsettingApi.createParamsetting"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Paramsetting.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/paramsetting/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as ParamsettingApi from '@/api/wms/paramsetting'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Paramsetting, ParamsettingRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Paramsetting' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: ParamsettingApi.getParamsettingPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:paramsetting:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:paramsetting:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:paramsetting:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:paramsetting:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:paramsetting:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await ParamsettingApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await ParamsettingApi.deleteParamsetting(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await ParamsettingApi.exportParamsetting(setSearchParams)
download.excel(data, '参数设置.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '参数设置导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/recordsetting/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Recordsetting.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Recordsetting.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="RecordsettingRules"
:formAllSchemas="Recordsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="RecordsettingApi.updateRecordsetting"
:apiCreate="RecordsettingApi.createRecordsetting"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Recordsetting.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/recordsetting/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as RecordsettingApi from '@/api/wms/recordsetting'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Recordsetting, RecordsettingRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Recordsetting' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: RecordsettingApi.getRecordsettingPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:recordsetting:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:recordsetting:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:recordsetting:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:recordsetting:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:recordsetting:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await RecordsettingApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await RecordsettingApi.deleteRecordsetting(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await RecordsettingApi.exportRecordsetting(setSearchParams)
download.excel(data, '记录单设置.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '记录单设置导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/requestsetting/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Requestsetting.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Requestsetting.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="RequestsettingRules"
:formAllSchemas="Requestsetting.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="RequestsettingApi.updateRequestsetting"
:apiCreate="RequestsettingApi.createRequestsetting"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Requestsetting.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/requestsetting/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as RequestsettingApi from '@/api/wms/requestsetting'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Requestsetting, RequestsettingRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Requestsetting' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: RequestsettingApi.getRequestsettingPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:requestsetting:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:requestsetting:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:requestsetting:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:requestsetting:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:requestsetting:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await RequestsettingApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await RequestsettingApi.deleteRequestsetting(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await RequestsettingApi.exportRequestsetting(setSearchParams)
download.excel(data, '申请单设置.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '申请单设置导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/rule/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Rule.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Rule.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #strategyCode="{row}">
<el-button type="primary" link @click="openDetail(row, '策略代码', row.strategyCode)">
<span>{{ row.strategyCode }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="RuleRules"
:formAllSchemas="Rule.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="RuleApi.updateRule"
:apiCreate="RuleApi.createRule"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Rule.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/rule/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as RuleApi from '@/api/wms/rule'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Rule, RuleRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Rule' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: RuleApi.getRulePage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:rule:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:rule:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:rule:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:rule:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:rule:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await RuleApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await RuleApi.exportRule(setSearchParams)
download.excel(data, '规则.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '规则导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/shift/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Shift.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Shift.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="ShiftRules"
:formAllSchemas="Shift.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="ShiftApi.updateShift"
:apiCreate="ShiftApi.createShift"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Shift.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/shift/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as ShiftApi from '@/api/wms/shift'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Shift, ShiftRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Shift' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: ShiftApi.getShiftPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:shift:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:shift:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:shift:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:shift:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:shift:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await ShiftApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await ShiftApi.deleteShift(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await ShiftApi.exportShift(setSearchParams)
download.excel(data, '班次.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '班次导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/strategy/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Strategy.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Strategy.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="StrategyRules"
:formAllSchemas="Strategy.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="StrategyApi.updateStrategy"
:apiCreate="StrategyApi.createStrategy"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Strategy.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/strategy/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as StrategyApi from '@/api/wms/strategy'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Strategy, StrategyRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Strategy' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: StrategyApi.getStrategyPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:strategy:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:strategy:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:strategy:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:strategy:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:strategy:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await StrategyApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await StrategyApi.deleteStrategy(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await StrategyApi.exportStrategy(setSearchParams)
download.excel(data, '策略.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '策略导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/team/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Team.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Team.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="TeamRules"
:formAllSchemas="Team.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="TeamApi.updateTeam"
:apiCreate="TeamApi.createTeam"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Team.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/team/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as TeamApi from '@/api/wms/team'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Team, TeamRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Team' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: TeamApi.getTeamPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:team:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:team:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:team:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:team:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:team:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await TeamApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await TeamApi.deleteTeam(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await TeamApi.exportTeam(setSearchParams)
download.excel(data, '班组.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '班组导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>

186
src/views/wms/transactiontype/index.vue

@ -0,0 +1,186 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="Transactiontype.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="Transactiontype.allSchemas.tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
:rules="TransactiontypeRules"
:formAllSchemas="Transactiontype.allSchemas"
searchTableTitle="物料基础信息"
:searchTableAllSchemas="ItemBasic.allSchemas"
:searchTablePage="ItembasicApi.getItembasicPage"
:apiUpdate="TransactiontypeApi.updateTransactiontype"
:apiCreate="TransactiontypeApi.createTransactiontype"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Transactiontype.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/transactiontype/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import * as TransactiontypeApi from '@/api/wms/transactiontype'
import * as ItembasicApi from '@/api/wms/itembasic'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Transactiontype, TransactiontypeRules, ItemBasic } 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'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'Transactiontype' })
const message = useMessage() //
const { t } = useI18n() //
const { tableObject, tableMethods } = useTable({
getListApi: TransactiontypeApi.getTransactiontype //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:transactiontype:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:transactiontype:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:transactiontype:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:transactiontype:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:transactiontype:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
// const res = await TransactiontypeApi.getItempackaging(row.id)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue)
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await TransactiontypeApi.deleteTransactiontype(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await TransactiontypeApi.exportTransactiontype(setSearchParams)
download.excel(data, '事务类型.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '事务类型导入模版.xls'
})
//
const importSuccess = () => {
getList()
}
/** 初始化 **/
onMounted(() => {
getList()
})
</script>
Loading…
Cancel
Save