@@ -24,7 +24,7 @@ | |||||
{ | { | ||||
path: '/base', icon: 'SettingOutlined', name: '工厂数据管理', | path: '/base', icon: 'SettingOutlined', name: '工厂数据管理', | ||||
routes: [ | routes: [ | ||||
// { path: '/base/dict', name: '码表管理', component: './dict/index' }, | |||||
{ path: '/base/dict', name: '码表管理', component: './dict/index' }, | |||||
{ path: '/base/process', name: '工艺流程', component: './plantModel/process' }, | { path: '/base/process', name: '工艺流程', component: './plantModel/process' }, | ||||
{ path: '/base/materials', name: '原料管理', component: './materials/index' }, | { path: '/base/materials', name: '原料管理', component: './materials/index' }, | ||||
{ path: '/base/final', name: '成品管理', component: './final/index' }, | { path: '/base/final', name: '成品管理', component: './final/index' }, | ||||
@@ -5,10 +5,10 @@ | |||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||||
<link rel="stylesheet" href="/umi.54f62417.css"> | <link rel="stylesheet" href="/umi.54f62417.css"> | ||||
<script src="/preload_helper.88a63e67.js"></script> | |||||
<script src="/preload_helper.0373a7de.js"></script> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<div id="root"></div> | <div id="root"></div> | ||||
<script src="/umi.68d4bbe9.js"></script> | |||||
<script src="/umi.13d75677.js"></script> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1 +0,0 @@ | |||||
!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["p__system__role__index.6ae92abd.async.js",24],["p__deviceInfo__index.ff2808b7.async.js",36],["p__user__login__index.26100c69.chunk.css",37],["p__user__login__index.b934e735.async.js",37],["119.4e6a5656.async.js",119],["p__recipe__index.d83dba3f.async.js",187],["222.4d9ce06a.async.js",222],["p__system__module__index.ef46db37.chunk.css",257],["p__system__module__index.4ef32e9c.async.js",257],["p__materials__index.0233f7a0.async.js",262],["t__plugin-layout__Layout.5012e1ab.chunk.css",301],["t__plugin-layout__Layout.bb77edb1.async.js",301],["390.c53868f3.async.js",390],["393.e127e60f.async.js",393],["p__deviceProductInfo__index.835c0c6c.chunk.css",402],["p__deviceProductInfo__index.9784ccc7.async.js",402],["p__workInfo__index.efd768af.async.js",420],["p__welcome__index.dde73410.async.js",446],["p__final__index.0c5211d3.async.js",460],["p__system__user__index.695d982e.chunk.css",472],["p__system__user__index.7a86743e.async.js",472],["550.cc113611.async.js",550],["t__plugin-maxtabs__Layout.b832af3b.async.js",558],["563.9aeac478.async.js",563],["565.b1a57ede.async.js",565],["p__404.a52587bb.async.js",571],["635.dbb47eab.async.js",635],["821.b970c16a.async.js",821],["865.ae9bc490.async.js",865],["p__craftInfo__pot.b10f2cd8.chunk.css",869],["p__craftInfo__pot.607eaf9a.async.js",869],["p__plantModel__process.d5739d84.async.js",988],["p__productLine__line.30343921.async.js",990]],"r":{"/*":[25,27],"/":[13,17,22,4,10,11,27,28],"/work":[4,6,13,16,21,27,22,10,11,28],"/user/login":[2,3],"/system/user":[4,19,20,21,27,22,10,11,28],"/system/role":[0,4,21,27,22,10,11,28],"/system/module":[4,7,8,21,27,22,10,11,28],"/wmx/deviceProduct":[4,14,15,21,27,22,10,11,28],"/wmx/deviceinfo":[1,4,21,27,22,10,11,28],"/base/process":[4,21,27,31,22,10,11,28],"/base/materials":[4,9,21,27,22,10,11,28],"/base/final":[4,18,21,23,27,22,10,11,28],"/base/line":[4,21,24,26,27,32,22,10,11,28],"/recipeCraft/recipe":[4,5,21,23,27,22,10,11,28],"/recipeCraft/pot":[4,13,21,26,27,29,30,22,10,11,28]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); |
@@ -35,7 +35,7 @@ const final = () => { | |||||
// eslint-disable-next-line react-hooks/rules-of-hooks | // eslint-disable-next-line react-hooks/rules-of-hooks | ||||
const [modelTitle, setModelTitle] = useState<string>(); | const [modelTitle, setModelTitle] = useState<string>(); | ||||
const [peifangOpen,setPeifangOpen] = useState<boolean>(); | |||||
const [peifangOpen, setPeifangOpen] = useState<boolean>(); | |||||
// 定义列表数据 | // 定义列表数据 | ||||
const columns: ProColumns<FinalTypes.Info>[] = [ | const columns: ProColumns<FinalTypes.Info>[] = [ | ||||
{ | { | ||||
@@ -77,38 +77,34 @@ const final = () => { | |||||
> | > | ||||
编辑 | 编辑 | ||||
</Button>, | </Button>, | ||||
<Button key="peifang" | |||||
type="primary" ghost | |||||
onClick={async () => { | |||||
setSpinStatus(true); | |||||
const jsonData: finalMaterialTypes.queryParms = { | |||||
finalId: record.id!, | |||||
}; | |||||
setSelectRowItem(record); | |||||
//根据工艺列表查询功能值 | |||||
finalMaterialAPI.List(jsonData) | |||||
.then((res: MyResponse.Content) => { | |||||
if (res.statusCode === 200) { | |||||
setMateriallist(res.data) | |||||
setPeifangOpen(true); | |||||
} | |||||
setSpinStatus(false) | |||||
}) | |||||
.catch(() => { | |||||
setPeifangOpen(false); | |||||
setSpinStatus(false) | |||||
}); | |||||
// const copyFormData = JSON.parse(JSON.stringify(record)); | |||||
// copyFormData.state = copyFormData.state === '0'; | |||||
// typeForm.setFieldsValue(copyFormData); | |||||
}}> | |||||
配方设置 | |||||
<Button key="peifang" | |||||
type="primary" ghost | |||||
onClick={async () => { | |||||
setSpinStatus(true); | |||||
const jsonData: finalMaterialTypes.queryParms = { | |||||
finalId: record.id!, | |||||
}; | |||||
setSelectRowItem(record); | |||||
//根据工艺列表查询功能值 | |||||
finalMaterialAPI.List(jsonData) | |||||
.then((res: MyResponse.Content) => { | |||||
if (res.statusCode === 200) { | |||||
setMateriallist(res.data) | |||||
setPeifangOpen(true); | |||||
} | |||||
setSpinStatus(false) | |||||
}) | |||||
.catch(() => { | |||||
setPeifangOpen(false); | |||||
setSpinStatus(false) | |||||
}); | |||||
}}> | |||||
配方设置 | |||||
</Button> | </Button> | ||||
, | |||||
, | |||||
<Popconfirm | <Popconfirm | ||||
key="del" | key="del" | ||||
title="确定要删除此条数据吗?" | title="确定要删除此条数据吗?" | ||||
@@ -209,7 +205,7 @@ const final = () => { | |||||
rowKey="id" | rowKey="id" | ||||
pagination={{ | pagination={{ | ||||
pageSize: 10, | pageSize: 10, | ||||
showSizeChanger:false | |||||
showSizeChanger: false | |||||
}} | }} | ||||
dateFormatter="string" | dateFormatter="string" | ||||
headerTitle="成品列表" | headerTitle="成品列表" | ||||
@@ -286,7 +282,7 @@ const final = () => { | |||||
</Form> | </Form> | ||||
</Modal> | </Modal> | ||||
<Modal | <Modal | ||||
maskClosable={false} | maskClosable={false} | ||||
key="02" | key="02" | ||||
@@ -388,7 +384,7 @@ const final = () => { | |||||
> | > | ||||
编辑原料 | 编辑原料 | ||||
</Button>, | </Button>, | ||||
], | ], | ||||
}, | }, | ||||
]} | ]} | ||||