Browse Source

要货预测周期修改

master_hella_20240701
zhaoxuebing 5 months ago
parent
commit
fbbaab0fa9
  1. 16
      src/api/wms/supplierCycle/index.ts
  2. 12
      src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue
  3. 40
      src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts

16
src/api/wms/supplierCycle/index.ts

@ -28,38 +28,38 @@ export const getSupplierCyclePage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/basic/supplier-cycle/senior', data }) return await request.post({ url: '/wms/supplier-cycle/senior', data })
} else { } else {
return await request.get({ url: `/basic/supplier-cycle/page`, params }) return await request.get({ url: `/wms/supplier-cycle/page`, params })
} }
} }
// 查询要货预测周期详情 // 查询要货预测周期详情
export const getSupplierCycle = async (id: number) => { export const getSupplierCycle = async (id: number) => {
return await request.get({ url: `/basic/supplier-cycle/get?id=` + id }) return await request.get({ url: `/wms/supplier-cycle/get?id=` + id })
} }
// 新增要货预测周期 // 新增要货预测周期
export const createSupplierCycle = async (data: SupplierCycleVO) => { export const createSupplierCycle = async (data: SupplierCycleVO) => {
return await request.post({ url: `/basic/supplier-cycle/create`, data }) return await request.post({ url: `/wms/supplier-cycle/create`, data })
} }
// 修改要货预测周期 // 修改要货预测周期
export const updateSupplierCycle = async (data: SupplierCycleVO) => { export const updateSupplierCycle = async (data: SupplierCycleVO) => {
return await request.put({ url: `/basic/supplier-cycle/update`, data }) return await request.put({ url: `/wms/supplier-cycle/update`, data })
} }
// 删除要货预测周期 // 删除要货预测周期
export const deleteSupplierCycle = async (id: number) => { export const deleteSupplierCycle = async (id: number) => {
return await request.delete({ url: `/basic/supplier-cycle/delete?id=` + id }) return await request.delete({ url: `/wms/supplier-cycle/delete?id=` + id })
} }
// 导出要货预测周期 Excel // 导出要货预测周期 Excel
export const exportSupplierCycle = async (params) => { export const exportSupplierCycle = async (params) => {
return await request.download({ url: `/basic/supplier-cycle/export-excel`, params }) return await request.download({ url: `/wms/supplier-cycle/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/basic/supplier-cycle/get-import-template' }) return request.download({ url: '/wms/supplier-cycle/get-import-template' })
} }

12
src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue

@ -98,10 +98,9 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'wms:supplierCycle:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:supplier-cycle:create'}), //
defaultButtons.defaultAddBtn({}), // defaultButtons.defaultImportBtn({hasPermi:'wms:supplier-cycle:import'}), //
// defaultButtons.defaultImportBtn({hasPermi:'wms:supplierCycle:import'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:supplier-cycle:export'}), //
// defaultButtons.defaultExportBtn({hasPermi:'wms:supplierCycle:export'}), //
// defaultButtons.defaultFreshBtn(null), // // defaultButtons.defaultFreshBtn(null), //
// defaultButtons.defaultFilterBtn(null), // // defaultButtons.defaultFilterBtn(null), //
// defaultButtons.defaultSetBtn(null), // // defaultButtons.defaultSetBtn(null), //
@ -133,9 +132,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
// defaultButtons.mainListEditBtn({hasPermi:'wms:supplierCycle:update'}), // defaultButtons.mainListEditBtn({hasPermi:'wms:supplier-cycle:update'}), //
defaultButtons.mainListEditBtn({}), // defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplier-cycle:delete'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierCycle:delete'}), //
] ]
// - // -

40
src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts

@ -54,26 +54,6 @@ export const SupplierCycle = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
isSearch: false,
sort: 'custom',
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{ {
label: '星期一', label: '星期一',
field: 'monday', field: 'monday',
@ -146,6 +126,26 @@ export const SupplierCycle = useCrudSchemas(reactive<CrudSchema[]>([
}, },
} }
}, },
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
isSearch: false,
sort: 'custom',
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

Loading…
Cancel
Save