From 66275b61c700bf4307fa45a01ebb006c83a7e1a5 Mon Sep 17 00:00:00 2001
From: zhaoy <137053305@qq.com>
Date: Wed, 31 Jan 2024 18:18:19 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/company/account/index.jsx | 16 --
.../basic/batching/components/CreateForm.jsx | 36 ++---
src/pages/database/basic/batching/index.jsx | 51 -------
src/pages/database/goods/goodsInfo/index.jsx | 52 +++----
.../database/goods/goodstypemanage/index.jsx | 16 --
src/pages/database/goods/newgoods/index.jsx | 10 +-
src/pages/device/deviceInfo/index.jsx | 10 --
.../productmanage/components/CreateAction.jsx | 18 +--
.../productmanage/components/CreateForm.jsx | 3 +-
.../org/orgamange/components/CreateForm.jsx | 2 +-
src/pages/org/users/components/RoleAuth.jsx | 1 +
src/pages/org/users/index.jsx | 138 ++++++------------
12 files changed, 96 insertions(+), 257 deletions(-)
diff --git a/src/pages/company/account/index.jsx b/src/pages/company/account/index.jsx
index a1eb97f..de5325e 100644
--- a/src/pages/company/account/index.jsx
+++ b/src/pages/company/account/index.jsx
@@ -175,22 +175,6 @@ const companyManage = () => {
dataIndex: 'remark',
hideInSearch: true,
},
- {
- title: '状态',
- dataIndex: 'status',
- hideInForm: true,
- hideInSearch: true,
- valueEnum: {
- 0: {
- text: '启用',
- status: 'Processing',
- },
- 1: {
- text: '禁用',
- status: 'Success',
- },
- },
- },
{
title: '创建时间',
dataIndex: 'createAt',
diff --git a/src/pages/database/basic/batching/components/CreateForm.jsx b/src/pages/database/basic/batching/components/CreateForm.jsx
index d289e29..f9f0b90 100644
--- a/src/pages/database/basic/batching/components/CreateForm.jsx
+++ b/src/pages/database/basic/batching/components/CreateForm.jsx
@@ -11,7 +11,7 @@ const fieldLabels = {
specs: '物料规格',
code: '物料编码',
aittribute: '物料属性',
- typeID: '物料类别',
+ typeID: '物料分类',
status: '物料状态',
price: '成本价',
netrecovery: '净料率(%)',
@@ -41,7 +41,7 @@ const CreateForm = (props) => {
};
useEffect(() => {
getTableInfo();
- console.log("props.typeListData",props.typeListData)
+ console.log("props.uintListData",props.uintListData)
setItems(props.typeListData)
setitemsuity(props.uintListData)
}, [modalVisible,props.typeListData,props.uintListData]);
@@ -176,7 +176,7 @@ const CreateForm = (props) => {
onFinish={props.onFinish}
>
-
+
{
}}
/>
-
+
{
placeholder="请输入原料名称"
/>
-
+ {/*
{
]}
placeholder="请输入规格型号"
/>
-
+ */}
-
+ {/*
{
placeholder="请输入净料率"
/>
-
+
*/}
-
+
(
<>
@@ -296,7 +297,7 @@ const CreateForm = (props) => {
}}
>
{
options={items}
/>
-
+
(
@@ -370,7 +372,7 @@ const CreateForm = (props) => {
placeholder="请选择出库单位"
/>
*/}
-
+ {/*
{
]}
placeholder="请输入换算比例"
/>
-
+ */}
{/*
{
dataIndex: 'code',
ellipsis: true,
},
- // {
- // title: '关联外键',
- // dataIndex: 'foreignKeyRe',
- // hideInSearch: true,
- // },
- {
- title: '物料规格',
- dataIndex: 'specs',
- hideInSearch: true,
- },
- {
- title: '成本价',
- dataIndex: 'price',
- hideInSearch: true,
- },
- {
- title: '净料率(%)',
- dataIndex: 'netrecovery',
- hideInSearch: true,
- },
- {
- title: '物料属性',
- dataIndex: 'aittribute',
- hideInSearch: true,
- valueEnum: {
- 0: {
- text: '成品',
- },
- 1: {
- text: '半成品',
- },
- 2: {
- text: '易耗品',
- },
- },
- },
{
title: '物料类别',
dataIndex: 'typeID',
@@ -232,21 +196,6 @@ const ProductManage = () => {
options: UintList,
},
},
- {
- title: '状态',
- dataIndex: 'status',
- hideInForm: true,
- valueEnum: {
- 0: {
- text: '正常',
- status: 'Processing',
- },
- 1: {
- text: '停用',
- status: 'Success',
- },
- },
- },
{
title: '创建时间',
dataIndex: 'createAt',
diff --git a/src/pages/database/goods/goodsInfo/index.jsx b/src/pages/database/goods/goodsInfo/index.jsx
index 1d22992..bfb2c31 100644
--- a/src/pages/database/goods/goodsInfo/index.jsx
+++ b/src/pages/database/goods/goodsInfo/index.jsx
@@ -41,6 +41,7 @@ const Advanced = (props) => {
const [BomId, setBomId] = useState();
const [UpdateBomVisible, setUpdateBomVisible] = useState(false);
const [BomBatchingVisible,setBomBatchingVisible]= useState(false);
+ const [goodsTypeIdvalue, setgoodsTypeIdvalue] = useState();
//事件
const onFinish = async (values) => {
const hide = message.loading('正在执行');
@@ -358,7 +359,11 @@ const Advanced = (props) => {
],
}
]
-
+ const onChange = (newValue) => {
+ setgoodsTypeIdvalue(newValue);
+ };
+ const filterOption = (input, option) =>
+ (option?.label ?? '').toLowerCase().includes(input.toLowerCase());
const contentList = {
basis: (
{
+
+
+
@@ -387,6 +406,9 @@ const Advanced = (props) => {