Commit e2e36256 authored by krysent's avatar krysent

代理

parent 019e6db4
...@@ -56,7 +56,7 @@ export default defineConfig({ ...@@ -56,7 +56,7 @@ export default defineConfig({
nodeModulesTransform: { nodeModulesTransform: {
type: "all", type: "all",
}, },
headScripts: [`alert(0)`, { src: "/LodopFuncs.js", defer: true }], headScripts: [{ src: "/LodopFuncs.js", defer: true }],
//mfsu: {}, //mfsu: {},
//webpack5: {} //webpack5: {}
}); });
...@@ -9,13 +9,14 @@ ...@@ -9,13 +9,14 @@
export default { export default {
dev: { dev: {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/** // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/wms/": { "/srwms/": {
// 要代理的地址 // 要代理的地址
// target: "http://192.168.40.18/wms/", //39:28040 18/wms/ // target: "http://192.168.40.18/wms/", //39:28040 18/wms/
target: "http://192.168.40.203:28040", //39:28040 18/wms/ // target: "http://192.168.40.203:28040", //39:28040 18/wms/ dj
target: "http://192.168.40.117:28040", //39:28040 18/wms/ dj
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
"^/wms": "", "^/srwms": "",
}, },
}, },
"/staticfile/": { "/staticfile/": {
......
...@@ -9,21 +9,21 @@ const Footer = () => { ...@@ -9,21 +9,21 @@ const Footer = () => {
<DefaultFooter <DefaultFooter
copyright={`${currentYear} 江苏南高智能装备创新中心出品`} copyright={`${currentYear} 江苏南高智能装备创新中心出品`}
links={[ links={[
{ // {
key: "Ant Design Pro", // key: "Ant Design Pro",
title: "JiangSuNanGao", // title: "JiangSuNanGao",
blankTarget: true, // blankTarget: true,
}, // },
{ // {
key: "github", // key: "github",
title: <GithubOutlined />, // title: <GithubOutlined />,
blankTarget: true, // blankTarget: true,
}, // },
{ // {
key: "Designed By Wuhao", // key: "Designed By Wuhao",
title: "Designed By Wuhao", // title: "Designed By Wuhao",
blankTarget: true, // blankTarget: true,
}, // },
]} ]}
/> />
); );
......
...@@ -2,7 +2,7 @@ import request from "@/utils/request"; ...@@ -2,7 +2,7 @@ import request from "@/utils/request";
//登录 //登录
export async function fakeAccountLogin(params) { export async function fakeAccountLogin(params) {
return request("/wms/ngic-auth/sysAccount/login", { return request("/srwms/ngic-auth/sysAccount/login", {
method: "POST", method: "POST",
data: params, data: params,
}); });
...@@ -10,7 +10,7 @@ export async function fakeAccountLogin(params) { ...@@ -10,7 +10,7 @@ export async function fakeAccountLogin(params) {
//登出 //登出
export async function fakeAccountLoginOut(params) { export async function fakeAccountLoginOut(params) {
return request(`/wms/ngic-auth/sysAccount/logout`, { return request(`/srwms/ngic-auth/sysAccount/logout`, {
method: "POST", method: "POST",
body: params, body: params,
}); });
...@@ -18,7 +18,7 @@ export async function fakeAccountLoginOut(params) { ...@@ -18,7 +18,7 @@ export async function fakeAccountLoginOut(params) {
//登录 //登录
export async function saveForRegister(params) { export async function saveForRegister(params) {
return request("/wms/ngic-auth/sysAccountApply/saveForRegister", { return request("/srwms/ngic-auth/sysAccountApply/saveForRegister", {
method: "POST", method: "POST",
data: params, data: params,
}); });
...@@ -27,7 +27,7 @@ export async function saveForRegister(params) { ...@@ -27,7 +27,7 @@ export async function saveForRegister(params) {
//个人信息 //个人信息
export async function queryCurrentUser(params) { export async function queryCurrentUser(params) {
return request("/wms/ngic-auth/sysUser/query", { return request("/srwms/ngic-auth/sysUser/query", {
method: "POST", method: "POST",
data: params, data: params,
}); });
...@@ -35,7 +35,7 @@ export async function queryCurrentUser(params) { ...@@ -35,7 +35,7 @@ export async function queryCurrentUser(params) {
//获取菜单/权限/菜单/公司类型 //获取菜单/权限/菜单/公司类型
export async function getMenu(params) { export async function getMenu(params) {
return request(`/wms/ngic-auth/sysPermission/queryMenu`, { return request(`/srwms/ngic-auth/sysPermission/queryMenu`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
......
import src from "../../public/ewm.png"; import src from "../../public/ewm.png";
export const str = `<table export const str = `<table
border="1" border="1"
width="100%" width="100%"
height="100%" height="100%"
style="border-collapse: collapse; border: solid 1px" style="border-collapse: collapse; border: solid 1px"
bordercolor="#000000" bordercolor="#000000"
cellpadding="0" cellpadding="0"
> >
<tr> <tr>
<td colspan="6">卷料名称:剪切后硅钢片</td> <td colspan="8">卷料名称:剪切后硅钢片</td>
</tr> </tr>
<tr> <tr>
<td colspan="6">卷料编码:PDC010100093</td> <td colspan="8">卷料编码:PDC010100093</td>
</tr> </tr>
<tr> <tr>
<td colspan="3">牌号:070片</td> <td colspan="4">牌号:070片</td>
<td colspan="3">母卷编号:20SQC</td> <td colspan="4">母卷编号:20SQC</td>
</tr> </tr>
<tr> <tr>
<td colspan="3">厂家:江苏南高</td> <td colspan="4">厂家:江苏南高</td>
<td colspan="3">母卷重量:100KG</td> <td colspan="4">母卷重量:100KG</td>
</tr> </tr>
<tr> <tr>
<td colspan="2" rowspan='4'><img src=${src} width='80%' /></td> <td colspan="8">单边卷料厚度:200mm</td>
<td colspan="4">单边卷料厚度:200mm</td> </tr>
</tr> <tr>
<tr> <td colspan="2" rowspan="3">
<td colspan="2">铁损:0.68w/kg</td> <img src=${src} style="width:50px"/>
<td colspan="2">批次:20230412</td> </td>
</tr> <td colspan="3">铁损:0.68w/kg</td>
<tr> <td colspan="3">批次:20230412</td>
<td colspan="2">宽度:188mm</td> </tr>
<td colspan="2">片厚:0.2mm</td> <tr>
</tr> <td colspan="3">宽度:188mm</td>
<tr> <td colspan="3">片厚:0.2mm</td>
<td colspan="2">重量:631KG</td> </tr>
<td colspan="2">米数2292M</td> <tr>
</tr> <td colspan="3">重量:631KG</td>
<tr> <td colspan="3">米数:2292M</td>
<td colspan="6">条码:1BR157846039401296</td> </tr>
</tr> <tr>
<td colspan="8">条码:1BR157846039401296</td>
</tr>
</table>`; </table>`;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment