|
|
@@ -8,7 +8,7 @@ import { Button, Modal, Form, Input, message, Popconfirm, Upload, UploadProps, S |
|
|
|
import { useEffect, useRef, useState } from 'react'; |
|
|
|
import RecipeInfoAPI from '@/api/recipeService' |
|
|
|
// import MaterialsInfoAPI from '@/api/materialService' |
|
|
|
import GroupInfoAPI from '@/api/groupService' |
|
|
|
import {dictDataApi} from '@/api/dictType/service' |
|
|
|
import DeviceInfoAPI from '@/api/DeviceInfo' |
|
|
|
// 料仓接口 |
|
|
|
import StockInfoAPI from '@/api/StockService'; |
|
|
@@ -424,9 +424,17 @@ const Index = () => { |
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
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); |
|
|
|
|
|
|
|
if (data.statusCode===200) { |
|
|
|
const list:any[] = data.data |
|
|
|
list.map((res)=>{ |
|
|
|
res.title = res.id |
|
|
|
}) |
|
|
|
} |
|
|
|
setare(data.data) |
|
|
|
} |
|
|
|
areList(); |
|
|
@@ -807,7 +815,7 @@ const Index = () => { |
|
|
|
// setIsModalGroupFormOpen(false) |
|
|
|
// }} |
|
|
|
> |
|
|
|
删除分组 |
|
|
|
删除产线 |
|
|
|
</Button> |
|
|
|
</Popconfirm>, |
|
|
|
<Button key="submit2" form="ProductlineEditForm" type="primary" htmlType="submit"> |
|
|
|