diff --git a/src/api/wms/supplierCycle/index.ts b/src/api/wms/supplierCycle/index.ts index da29ff1fc..ddaf2013e 100644 --- a/src/api/wms/supplierCycle/index.ts +++ b/src/api/wms/supplierCycle/index.ts @@ -28,38 +28,38 @@ export const getSupplierCyclePage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/basic/supplier-cycle/senior', data }) + return await request.post({ url: '/wms/supplier-cycle/senior', data }) } 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) => { - 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) => { - 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) => { - 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) => { - return await request.delete({ url: `/basic/supplier-cycle/delete?id=` + id }) + return await request.delete({ url: `/wms/supplier-cycle/delete?id=` + id }) } // 导出要货预测周期 Excel 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 = () => { - return request.download({ url: '/basic/supplier-cycle/get-import-template' }) + return request.download({ url: '/wms/supplier-cycle/get-import-template' }) } \ No newline at end of file diff --git a/src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue b/src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue index 7b0767b23..a28c90ac4 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue +++ b/src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue @@ -98,10 +98,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - // defaultButtons.defaultAddBtn({hasPermi:'wms:supplierCycle:create'}), // 新增 - defaultButtons.defaultAddBtn({}), // 新增 - // defaultButtons.defaultImportBtn({hasPermi:'wms:supplierCycle:import'}), // 导入 - // defaultButtons.defaultExportBtn({hasPermi:'wms:supplierCycle:export'}), // 导出 + defaultButtons.defaultAddBtn({hasPermi:'wms:supplier-cycle:create'}), // 新增 + defaultButtons.defaultImportBtn({hasPermi:'wms:supplier-cycle:import'}), // 导入 + defaultButtons.defaultExportBtn({hasPermi:'wms:supplier-cycle:export'}), // 导出 // defaultButtons.defaultFreshBtn(null), // 刷新 // defaultButtons.defaultFilterBtn(null), // 筛选 // defaultButtons.defaultSetBtn(null), // 设置 @@ -133,9 +132,8 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = [ - // defaultButtons.mainListEditBtn({hasPermi:'wms:supplierCycle:update'}), // 编辑 - defaultButtons.mainListEditBtn({}), // 编辑 - defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierCycle:delete'}), // 删除 + defaultButtons.mainListEditBtn({hasPermi:'wms:supplier-cycle:update'}), // 编辑 + defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplier-cycle:delete'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts b/src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts index b872a03c1..3fba51bec 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts @@ -54,26 +54,6 @@ export const SupplierCycle = useCrudSchemas(reactive([ } } }, - { - 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: '星期一', field: 'monday', @@ -146,6 +126,26 @@ export const SupplierCycle = useCrudSchemas(reactive([ }, } }, + { + 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: '操作', field: 'action',