747575620@qq.com 11 months ago
parent
commit
eb8b8f5861
6 changed files with 26 additions and 8 deletions
  1. +2
    -1
      frontend/config/routes.ts
  2. +3
    -0
      frontend/src/api/dictType/dto.d.ts
  3. +3
    -2
      frontend/src/pages/dict/index.tsx
  4. +12
    -4
      frontend/src/pages/manufacturing/index.tsx
  5. +4
    -1
      frontend/src/pages/productLine/index.tsx
  6. +2
    -0
      frontend/src/pages/system/role/index.tsx

+ 2
- 1
frontend/config/routes.ts View File

@@ -40,7 +40,8 @@
{ path: '/base/materials', name: '原料管理', component: './materials/index' }, { path: '/base/materials', name: '原料管理', component: './materials/index' },
{ path: '/base/bucket', name: '桶管理', component: './bucket/index' }, { path: '/base/bucket', name: '桶管理', component: './bucket/index' },
{ path: '/base/final', name: '成品管理', component: './final/index' }, { path: '/base/final', name: '成品管理', component: './final/index' },
{ path: '/base/dict',name:'数据字典',component:'./dict/index'}
{ path: '/base/dict',name:'数据字典',component:'./dict/index'},
{ path: '/base/manufacturing', name: '产线设备管理', component: './manufacturing/index' },
] ]
}, },


+ 3
- 0
frontend/src/api/dictType/dto.d.ts View File

@@ -120,6 +120,9 @@ declare namespace dictData {
* 名称 * 名称
*/ */
name?: null | string; name?: null | string;
typeId?: null|string,
typeCode?: null | string ,
id?: null | string
} }
/** /**
* 查询分页输入参数 * 查询分页输入参数


+ 3
- 2
frontend/src/pages/dict/index.tsx View File

@@ -362,7 +362,7 @@ export default () => {
]} ]}
/> />
</ProCard> </ProCard>
<Modal title="设置子项" open={isModalOpen} onCancel={() => {
<Modal title="设置子项" open={isModalOpen} footer={false} onCancel={() => {
setIsModalOpen(false); setIsModalOpen(false);
@@ -478,12 +478,13 @@ export default () => {
<Form.Item <Form.Item
label="外键id" label="外键id"
name="typeId" name="typeId"
hidden
// rules={[{ required: true, message: '此项为必填项!' }]} // rules={[{ required: true, message: '此项为必填项!' }]}
// hidden // hidden
> >
<Input /> <Input />
</Form.Item> </Form.Item>
<Form.Item label="状态" name="value" rules={[{ required: true, message: '此项为必填项!' }]} >
<Form.Item label="名称" name="value" rules={[{ required: true, message: '此项为必填项!' }]} >
<Input /> <Input />
</Form.Item> </Form.Item>
<Form.Item label="编码" name="code" rules={[{ required: true, message: '此项为必填项!' }]} > <Form.Item label="编码" name="code" rules={[{ required: true, message: '此项为必填项!' }]} >


+ 12
- 4
frontend/src/pages/manufacturing/index.tsx View File

@@ -8,7 +8,7 @@ import { Button, Modal, Form, Input, message, Popconfirm, Upload, UploadProps, S
import { useEffect, useRef, useState } from 'react'; import { useEffect, useRef, useState } from 'react';
import RecipeInfoAPI from '@/api/recipeService' import RecipeInfoAPI from '@/api/recipeService'
// import MaterialsInfoAPI from '@/api/materialService' // import MaterialsInfoAPI from '@/api/materialService'
import GroupInfoAPI from '@/api/groupService'
import {dictDataApi} from '@/api/dictType/service'
import DeviceInfoAPI from '@/api/DeviceInfo' import DeviceInfoAPI from '@/api/DeviceInfo'
// 料仓接口 // 料仓接口
import StockInfoAPI from '@/api/StockService'; import StockInfoAPI from '@/api/StockService';
@@ -424,9 +424,17 @@ const Index = () => {
useEffect(() => { useEffect(() => {


const areList = async () => { const areList = async () => {
const data = await GroupInfoAPI.selectlist()
const jsonData: dictData.queryParms = {
typeCode: "cxfz",
}
const data:MyResponse.Content = await dictDataApi.List(jsonData)
// console.log(data); // console.log(data);

if (data.statusCode===200) {
const list:any[] = data.data
list.map((res)=>{
res.title = res.id
})
}
setare(data.data) setare(data.data)
} }
areList(); areList();
@@ -807,7 +815,7 @@ const Index = () => {
// setIsModalGroupFormOpen(false) // setIsModalGroupFormOpen(false)
// }} // }}
> >
删除分组
删除产线
</Button> </Button>
</Popconfirm>, </Popconfirm>,
<Button key="submit2" form="ProductlineEditForm" type="primary" htmlType="submit"> <Button key="submit2" form="ProductlineEditForm" type="primary" htmlType="submit">


+ 4
- 1
frontend/src/pages/productLine/index.tsx View File

@@ -425,12 +425,15 @@
<Divider /> <Divider />
<div className={styles.tag}> <div className={styles.tag}>
{GroupList.map((item, index) => ( {GroupList.map((item, index) => (
<div key={index} onClick={() => { <div key={index} onClick={() => {
setSelectGroup(index); setSelectGroup(index);
}} className={`${styles.tag_item} ${index === selectGroup ? styles.tag_item_activeItem : ''}`}> }} className={`${styles.tag_item} ${index === selectGroup ? styles.tag_item_activeItem : ''}`}>
<Space size="middle"> <Space size="middle">
<div title={item.des}>{item.name}</div> <div title={item.des}>{item.name}</div>
{item.id==="-1"?'': <div className={styles.tag_item_editicon}><EditOutlined style={{fontSize:'20px'}} title='修改名称' onClick={(e)=>{
{
item.id==="-1"?'1111111': <div className={styles.tag_item_editicon}><EditOutlined style={{fontSize:'20px'}} title='修改名称' onClick={(e)=>{
e.stopPropagation(); e.stopPropagation();
const copyFormData = JSON.parse(JSON.stringify(GroupList[index])); const copyFormData = JSON.parse(JSON.stringify(GroupList[index]));
GroupEditForm.setFieldsValue(copyFormData); GroupEditForm.setFieldsValue(copyFormData);


+ 2
- 0
frontend/src/pages/system/role/index.tsx View File

@@ -270,6 +270,8 @@ const onFetchModuleList = async () => {
selectedRowKeys: selectedTempRowKeys, selectedRowKeys: selectedTempRowKeys,
onChange: (selectedRowKeys, selectedRows) => { onChange: (selectedRowKeys, selectedRows) => {
let myselectedRows:any[] = selectedRows; let myselectedRows:any[] = selectedRows;
console.log(selectedRows);
console.log(selectedRowKeys);
myselectedRows.map((v:any)=>( myselectedRows.map((v:any)=>(
// if (!v.parentId) { // if (!v.parentId) {
// if (v.children.length>0) { // if (v.children.length>0) {


Loading…
Cancel
Save