Commit 9de05491 authored by krysent's avatar krysent

new

parent 5939a3b5
...@@ -12,8 +12,8 @@ export default { ...@@ -12,8 +12,8 @@ export default {
"/srwms/": { "/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/ dj // target: "http://192.168.40.203:28040", //39:28040 18/wms/ dj
// target: "http://192.168.40.117:28040", //39:28040 18/wms/ jf target: "http://192.168.40.117:28040", //39:28040 18/wms/ jf
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
"^/srwms": "", "^/srwms": "",
......
...@@ -118,7 +118,7 @@ class Mtable extends PureComponent { ...@@ -118,7 +118,7 @@ class Mtable extends PureComponent {
delete newparams.pageSize; delete newparams.pageSize;
} }
let res = await request("/wms" + path, { let res = await request("/srwms" + path, {
body: JSON.stringify(newparams ? newparams : {}), body: JSON.stringify(newparams ? newparams : {}),
headers, headers,
method: "POST", method: "POST",
...@@ -251,7 +251,7 @@ class Mtable extends PureComponent { ...@@ -251,7 +251,7 @@ class Mtable extends PureComponent {
pagination == "false" pagination == "false"
? data.dataList ? data.dataList
: data.page : data.page
? data.page.list ? data.page.records
: []; //分页或不分页的接口返回数据 : []; //分页或不分页的接口返回数据
return defaultval; return defaultval;
}} }}
......
...@@ -7,6 +7,7 @@ function Table({ route }) { ...@@ -7,6 +7,7 @@ function Table({ route }) {
const [vs, setvs] = useState(); const [vs, setvs] = useState();
return ( return (
<div style={{ height: "200vh" }}> <div style={{ height: "200vh" }}>
首页
{/* <AutoTable {/* <AutoTable
pagetitle={route.name} pagetitle={route.name}
pageextra={() => <Button onClick={() => { pageextra={() => <Button onClick={() => {
......
...@@ -2,7 +2,7 @@ export default { ...@@ -2,7 +2,7 @@ export default {
"customerNo": { "customerNo": {
"value": null, "value": null,
"type": "input", "type": "input",
"title": "编号", "title": "仓位编码",
"name": [ "name": [
"customerNo" "customerNo"
], ],
...@@ -11,7 +11,7 @@ export default { ...@@ -11,7 +11,7 @@ export default {
"customerName": { "customerName": {
"value": null, "value": null,
"type": "input", "type": "input",
"title": "名称", "title": "仓位名称",
"name": [ "name": [
"customerName" "customerName"
], ],
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
"officialWebsite": { "officialWebsite": {
"value": null, "value": null,
"type": "input", "type": "input",
"title": "公司官网", "title": "所属仓库",
"name": [ "name": [
"officialWebsite" "officialWebsite"
], ],
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
"telephone": { "telephone": {
"value": null, "value": null,
"type": "input", "type": "input",
"title": "联系电话", "title": "所属库区",
"name": [ "name": [
"telephone" "telephone"
], ],
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
"email": { "email": {
"value": null, "value": null,
"type": "input", "type": "input",
"title": "公司邮箱", "title": "",
"name": [ "name": [
"email" "email"
], ],
...@@ -47,7 +47,7 @@ export default { ...@@ -47,7 +47,7 @@ export default {
"address": { "address": {
"value": null, "value": null,
"type": "input", "type": "input",
"title": "地址", "title": "",
"name": [ "name": [
"address" "address"
], ],
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
"score": { "score": {
"value": null, "value": null,
"type": "rate", "type": "rate",
"title": "评分", "title": "",
"name": [ "name": [
"score" "score"
], ],
......
...@@ -250,7 +250,7 @@ const Pushdeploy = (props) => { ...@@ -250,7 +250,7 @@ const Pushdeploy = (props) => {
search: false, search: false,
}, },
{ {
title: "适用类型", title: "适用范围",
dataIndex: "fitFieldName", dataIndex: "fitFieldName",
key: "fitField", key: "fitField",
valueType: "select", valueType: "select",
...@@ -274,7 +274,7 @@ const Pushdeploy = (props) => { ...@@ -274,7 +274,7 @@ const Pushdeploy = (props) => {
], ],
}, },
{ {
title: "类型名称", title: "范围名称",
dataIndex: "fieldName", dataIndex: "fieldName",
key: "fieldName", key: "fieldName",
}, },
......
...@@ -165,13 +165,13 @@ const Fieldmanage = (props) => { ...@@ -165,13 +165,13 @@ const Fieldmanage = (props) => {
{ checkedNode } = props, { checkedNode } = props,
columns = [ columns = [
{ {
title: "自定义字段名称", title: "字段名称",
dataIndex: "fieldName", dataIndex: "fieldName",
key: "fieldName", key: "fieldName",
search: false, search: false,
}, },
{ {
title: "自定义字段属性", title: "字段类型",
dataIndex: "fieldCharName", dataIndex: "fieldCharName",
key: "fieldCharName", key: "fieldCharName",
search: false, search: false,
......
...@@ -116,7 +116,7 @@ export async function allUserSelect(params) { ...@@ -116,7 +116,7 @@ export async function allUserSelect(params) {
} }
//根据工厂id查询树结构 //根据工厂id查询树结构
export async function departmentTree(params) { export async function departmentTree(params) {
return request(`/srwms/ngic-auth/sysDepartment/query/tree`, { return request(`/srwms/ngic-auth/sysDepartment/query/all/tree`, {
method: "POST", method: "POST",
data: params, data: params,
}); });
......
import src from "../../public/ewm.png"; import src from "../../public/ewm.png";
import srcc from "../../public/1.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="8">卷料名称:剪切后硅钢片</td>
// <td colspan="8">卷料名称:剪切后硅钢片</td> </tr>
// </tr> <tr>
// <tr> <td colspan="8">卷料编码:PDC010100093</td>
// <td colspan="8">卷料编码:PDC010100093</td> </tr>
// </tr> <tr>
// <tr> <td colspan="4">牌号:070片</td>
// <td colspan="4">牌号:070片</td> <td colspan="4">母卷编号:20SQC</td>
// <td colspan="4">母卷编号:20SQC</td> </tr>
// </tr> <tr>
// <tr> <td colspan="4">厂家:江苏南高</td>
// <td colspan="4">厂家:江苏南高</td> <td colspan="4">母卷重量:100KG</td>
// <td colspan="4">母卷重量:100KG</td> </tr>
// </tr> <tr>
// <tr> <td colspan="8">单边卷料厚度:200mm</td>
// <td colspan="8">单边卷料厚度:200mm</td> </tr>
// </tr> <tr>
// <tr> <td colspan="2" rowspan="3">
// <td colspan="2" rowspan="3"> <img src=${src} style="width:50px"/>
// <img src=${src} style="width:50px"/> </td>
// </td> <td colspan="3">铁损:0.68w/kg</td>
// <td colspan="3">铁损:0.68w/kg</td> <td colspan="3">批次:20230412</td>
// <td colspan="3">批次:20230412</td> </tr>
// </tr> <tr>
// <tr> <td colspan="3">宽度:188mm</td>
// <td colspan="3">宽度:188mm</td> <td colspan="3">片厚:0.2mm</td>
// <td colspan="3">片厚:0.2mm</td> </tr>
// </tr> <tr>
// <tr> <td colspan="3">重量:631KG</td>
// <td colspan="3">重量:631KG</td> <td colspan="3">米数:2292M</td>
// <td colspan="3">米数:2292M</td> </tr>
// </tr> <tr>
// <tr> <td colspan="8">条码:1BR157846039401296</td>
// <td colspan="8">条码:1BR157846039401296</td> </tr>
// </tr> </table>`;
// </table>`;
export const str = `<img src=${srcc}/>`
\ No newline at end of file
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