diff --git a/src/api/PBL/billofmaterials.js b/src/api/PBL/billofmaterials.js index b8be6ec..588bbe1 100644 --- a/src/api/PBL/billofmaterials.js +++ b/src/api/PBL/billofmaterials.js @@ -5,11 +5,11 @@ import request from '@/utils/request' * @param {查询条件} data */ export function listBillofmaterials(query) { - return request({ - url: 'business/Billofmaterials/list', - method: 'get', - params: query, - }) + return request({ + url: 'PBL/Billofmaterials/list', + method: 'get', + params: query, + }) } /** @@ -17,32 +17,32 @@ export function listBillofmaterials(query) { * @param data */ export function addBillofmaterials(data) { - return request({ - url: 'business/Billofmaterials', - method: 'post', - data: data, - }) + return request({ + url: 'PBL/Billofmaterials', + method: 'post', + data: data, + }) } /** * 修改物料清单 * @param data */ export function updateBillofmaterials(data) { - return request({ - url: 'business/Billofmaterials', - method: 'PUT', - data: data, - }) + return request({ + url: 'PBL/Billofmaterials', + method: 'PUT', + data: data, + }) } /** * 获取物料清单详情 * @param {Id} */ export function getBillofmaterials(id) { - return request({ - url: 'business/Billofmaterials/' + id, - method: 'get' - }) + return request({ + url: 'PBL/Billofmaterials/' + id, + method: 'get' + }) } /** @@ -50,8 +50,8 @@ export function getBillofmaterials(id) { * @param {主键} pid */ export function delBillofmaterials(pid) { - return request({ - url: 'business/Billofmaterials/delete/' + pid, - method: 'POST' - }) -} + return request({ + url: 'PBL/Billofmaterials/delete/' + pid, + method: 'POST' + }) +} \ No newline at end of file diff --git a/src/api/PBL/inventorylog.js b/src/api/PBL/inventorylog.js index f41a434..5de3eff 100644 --- a/src/api/PBL/inventorylog.js +++ b/src/api/PBL/inventorylog.js @@ -5,11 +5,11 @@ import request from '@/utils/request' * @param {查询条件} data */ export function listInventorylog(query) { - return request({ - url: 'business/Inventorylog/list', - method: 'get', - params: query, - }) + return request({ + url: 'PBL/Inventorylog/list', + method: 'get', + params: query, + }) } /** @@ -17,32 +17,32 @@ export function listInventorylog(query) { * @param data */ export function addInventorylog(data) { - return request({ - url: 'business/Inventorylog', - method: 'post', - data: data, - }) + return request({ + url: 'PBL/Inventorylog', + method: 'post', + data: data, + }) } /** * 修改库存日志 * @param data */ export function updateInventorylog(data) { - return request({ - url: 'business/Inventorylog', - method: 'PUT', - data: data, - }) + return request({ + url: 'PBL/Inventorylog', + method: 'PUT', + data: data, + }) } /** * 获取库存日志详情 * @param {Id} */ export function getInventorylog(id) { - return request({ - url: 'business/Inventorylog/' + id, - method: 'get' - }) + return request({ + url: 'PBL/Inventorylog/' + id, + method: 'get' + }) } /** @@ -50,8 +50,8 @@ export function getInventorylog(id) { * @param {主键} pid */ export function delInventorylog(pid) { - return request({ - url: 'business/Inventorylog/delete/' + pid, - method: 'POST' - }) -} + return request({ + url: 'PBL/Inventorylog/delete/' + pid, + method: 'POST' + }) +} \ No newline at end of file diff --git a/src/api/PBL/storagelocation.js b/src/api/PBL/storagelocation.js index ef98005..23b3a49 100644 --- a/src/api/PBL/storagelocation.js +++ b/src/api/PBL/storagelocation.js @@ -5,11 +5,11 @@ import request from '@/utils/request' * @param {查询条件} data */ export function listStoragelocation(query) { - return request({ - url: 'business/Storagelocation/list', - method: 'get', - params: query, - }) + return request({ + url: 'PBL/Storagelocation/list', + method: 'get', + params: query, + }) } /** @@ -17,32 +17,32 @@ export function listStoragelocation(query) { * @param data */ export function addStoragelocation(data) { - return request({ - url: 'business/Storagelocation', - method: 'post', - data: data, - }) + return request({ + url: 'PBL/Storagelocation', + method: 'post', + data: data, + }) } /** * 修改料架表 * @param data */ export function updateStoragelocation(data) { - return request({ - url: 'business/Storagelocation', - method: 'PUT', - data: data, - }) + return request({ + url: 'PBL/Storagelocation', + method: 'PUT', + data: data, + }) } /** * 获取料架表详情 * @param {Id} */ export function getStoragelocation(id) { - return request({ - url: 'business/Storagelocation/' + id, - method: 'get' - }) + return request({ + url: 'PBL/Storagelocation/' + id, + method: 'get' + }) } /** @@ -50,8 +50,8 @@ export function getStoragelocation(id) { * @param {主键} pid */ export function delStoragelocation(pid) { - return request({ - url: 'business/Storagelocation/delete/' + pid, - method: 'POST' - }) -} + return request({ + url: 'PBL/Storagelocation/delete/' + pid, + method: 'POST' + }) +} \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 50649d9..5f7c63d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,64 +4,64 @@ import createVitePlugins from './vite/plugins' // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => { - const env = loadEnv(mode, process.cwd()) + const env = loadEnv(mode, process.cwd()) - const alias = { - // 设置路径 - '~': path.resolve(__dirname, './'), - // 设置别名 - '@': path.resolve(__dirname, './src') - } - if (command === 'serve') { - // 解决警告You are running the esm-bundler build of vue-i18n. - alias['vue-i18n'] = 'vue-i18n/dist/vue-i18n.cjs.js' - } - return { - plugins: createVitePlugins(env, command === 'build'), - resolve: { - // https://cn.vitejs.dev/config/#resolve-alias - alias: alias, - // 导入时想要省略的扩展名列表 - // https://cn.vitejs.dev/config/#resolve-extensions - extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] - }, - css: { - devSourcemap: true //开发模式时启用 - }, - base: env.VITE_APP_ROUTER_PREFIX, - // 打包配置 - build: { - sourcemap: command === 'build' ? false : 'inline', - outDir: 'dist', //指定输出目录 - assetsDir: 'assets', //指定静态资源存储目录(相对于outDir) - chunkSizeWarningLimit: 2000, //Adjust the limit to your desired value in KB - // 将js、css文件分离到单独文件夹 - rollupOptions: { - output: { - chunkFileNames: 'static/js/[name]-[hash].js', - entryFileNames: 'static/js/[name]-[hash].js', - assetFileNames: 'static/[ext]/[name]-[hash].[ext]' - } - } - }, - // vite 相关配置 - server: { - port: 8887, - host: true, - open: true, - proxy: { - // https://cn.vitejs.dev/config/#server-proxy - '/dev-api': { - target: env.VITE_APP_API_HOST, - changeOrigin: true, - rewrite: (path) => path.replace(/^\/dev-api/, '') - }, - '/msghub': { - target: env.VITE_APP_API_HOST, - ws: true, - rewrite: (path) => path.replace(/^\/msgHub/, '') - } - } - } - } -}) + const alias = { + // 设置路径 + '~': path.resolve(__dirname, './'), + // 设置别名 + '@': path.resolve(__dirname, './src') + } + if (command === 'serve') { + // 解决警告You are running the esm-bundler build of vue-i18n. + alias['vue-i18n'] = 'vue-i18n/dist/vue-i18n.cjs.js' + } + return { + plugins: createVitePlugins(env, command === 'build'), + resolve: { + // https://cn.vitejs.dev/config/#resolve-alias + alias: alias, + // 导入时想要省略的扩展名列表 + // https://cn.vitejs.dev/config/#resolve-extensions + extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] + }, + css: { + devSourcemap: true //开发模式时启用 + }, + base: env.VITE_APP_ROUTER_PREFIX, + // 打包配置 + build: { + sourcemap: command === 'build' ? false : 'inline', + outDir: 'dist', //指定输出目录 + assetsDir: 'assets', //指定静态资源存储目录(相对于outDir) + chunkSizeWarningLimit: 2000, //Adjust the limit to your desired value in KB + // 将js、css文件分离到单独文件夹 + rollupOptions: { + output: { + chunkFileNames: 'static/js/[name]-[hash].js', + entryFileNames: 'static/js/[name]-[hash].js', + assetFileNames: 'static/[ext]/[name]-[hash].[ext]' + } + } + }, + // vite 相关配置 + server: { + port: 8887, + host: true, + open: true, + proxy: { + // https://cn.vitejs.dev/config/#server-proxy + '/dev-api': { + target: env.VITE_APP_API_HOST, + changeOrigin: true, + rewrite: (path) => path.replace(/^\/dev-api/, '') + }, + '/msghub': { + target: env.VITE_APP_API_HOST, + ws: true, + rewrite: (path) => path.replace(/^\/msgHub/, '') + } + } + } + } +}) \ No newline at end of file