From ac209216e491c0094bb6dd0660c15ff5f0e7369e Mon Sep 17 00:00:00 2001
From: zhaoy <137053305@qq.com>
Date: Tue, 30 Jan 2024 18:48:04 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E8=B5=84=E6=96=99?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/proxy.js | 2 +-
.../company/account/components/CreateForm.jsx | 4 +-
src/pages/company/account/index.jsx | 67 +---
.../basic/batching/components/CreateForm.jsx | 16 +-
src/pages/database/basic/batching/index.jsx | 33 +-
src/pages/database/goods/goodsInfo/index.jsx | 40 +--
.../goodsattribute/components/CreateForm.jsx | 152 ++++++--
.../database/goods/goodsattribute/index.jsx | 47 +--
.../components/CreateAttribute.jsx | 327 ++++++++++++++++++
.../components/CreateAttributeValue.jsx | 158 +++++++++
.../goodstypemanage/components/CreateForm.jsx | 2 +-
.../database/goods/goodstypemanage/index.jsx | 51 +--
.../database/goods/goodstypemanage/service.js | 40 ++-
src/pages/database/goods/newgoods/index.jsx | 58 +---
.../deviceVesion/components/CreateForm.jsx | 7 +-
src/pages/device/deviceVesion/index.jsx | 40 +--
.../device/product/components/CreateForm.jsx | 2 +-
src/pages/device/product/index.jsx | 36 +-
.../productmanage/components/CreateForm.jsx | 15 +-
src/pages/device/productmanage/index.jsx | 107 ++----
src/pages/org/orgamange/index.jsx | 69 ++--
src/pages/org/orgamange/service.js | 8 +-
src/pages/sys/dictionary/dictdata/index.jsx | 15 -
src/pages/sys/dictionary/dicttype/index.jsx | 16 +-
src/pages/sys/menus/components/CreateForm.jsx | 6 +-
src/pages/sys/menus/index.jsx | 93 ++---
26 files changed, 895 insertions(+), 516 deletions(-)
create mode 100644 src/pages/database/goods/goodstypemanage/components/CreateAttribute.jsx
create mode 100644 src/pages/database/goods/goodstypemanage/components/CreateAttributeValue.jsx
diff --git a/config/proxy.js b/config/proxy.js
index 39b99d2..8987959 100644
--- a/config/proxy.js
+++ b/config/proxy.js
@@ -9,7 +9,7 @@
export default {
dev: {
'/saasbase/': {
- target: 'http://192.168.1.19:5006',
+ target: 'http://localhost:5006',
changeOrigin: true,
secure: false, //关闭证书验证
pathRewrite: {
diff --git a/src/pages/company/account/components/CreateForm.jsx b/src/pages/company/account/components/CreateForm.jsx
index fab4c96..cf2acc4 100644
--- a/src/pages/company/account/components/CreateForm.jsx
+++ b/src/pages/company/account/components/CreateForm.jsx
@@ -37,7 +37,7 @@ const CreateForm = (props) => {
message: '邮箱格式不正确', }]}>
-
+ {/*
+ */}
diff --git a/src/pages/company/account/index.jsx b/src/pages/company/account/index.jsx
index 0ce10ce..a1eb97f 100644
--- a/src/pages/company/account/index.jsx
+++ b/src/pages/company/account/index.jsx
@@ -165,23 +165,6 @@ const companyManage = () => {
dataIndex: 'email',
ellipsis: true,
},
- {
- title: '所属平台',
- dataIndex: 'type',
- valueType: 'select',
- ellipsis:true,
- valueEnum: {
- 0: {
- text: '团餐',
- },
- 1: {
- text: '门店',
- },
- 2: {
- text: '后厨',
- },
- },
- },
{
title: '电话',
dataIndex: 'phone',
@@ -261,45 +244,19 @@ const companyManage = () => {
>
删除
,
- {
- // api.GetRoleMenu(record.sysRoleId).then((r) => {
- // setRow(r.data);
- // handleUpdateMenuModalVisible(true);
- // });
- // setStepFormValues(record);
- // }}
- >
- {' '}
- LOGO设置
- ,
+ // {
+ // // api.GetRoleMenu(record.sysRoleId).then((r) => {
+ // // setRow(r.data);
+ // // handleUpdateMenuModalVisible(true);
+ // // });
+ // // setStepFormValues(record);
+ // // }}
+ // >
+ // {' '}
+ // LOGO设置
+ // ,
];
- //供应商下架
-
- template.push(
- {
- // record.status = record.status == 0 ? 0 : 0;
- if (record.status == 1) {
- //启用
- api.Enable(record.id).then((r) => {
- message.success('启用成功,即将刷新');
- actionRef.current.reload();
- });
- } else {
- //禁用
- api.Disable(record.id).then((r) => {
- message.success('禁用成功,即将刷新');
- actionRef.current.reload();
- });
- }
- }}
- >
- {' '}
- {record.status == 0 ? '禁用' : '启用'}
- ,
- );
return template;
},
},
diff --git a/src/pages/database/basic/batching/components/CreateForm.jsx b/src/pages/database/basic/batching/components/CreateForm.jsx
index 3d711e9..58b62e9 100644
--- a/src/pages/database/basic/batching/components/CreateForm.jsx
+++ b/src/pages/database/basic/batching/components/CreateForm.jsx
@@ -7,7 +7,7 @@ import styles from './style.less';
import api from '../service'
const fieldLabels = {
name: '物料名称',
- stockUint: '库存单位',
+ stockUint: '物料单位',
specs: '物料规格',
code: '物料编码',
aittribute: '物料属性',
@@ -264,6 +264,12 @@ const CreateForm = (props) => {
label={fieldLabels.typeID}
name="typeID"
style={{width: 235,}}
+ rules={[
+ {
+ required: true,
+ message: '请选择物料类别',
+ },
+ ]}
placeholder="请选择物料类别"
fieldProps={{
dropdownRender:(menu) => (
@@ -340,7 +346,7 @@ const CreateForm = (props) => {
options={itemsuity}
/>
-
+ {/*
{
request={async () => itemsuity}
placeholder="请选择出库单位"
/>
-
+ */}
{
placeholder="请选择状态"
/>
*/}
-
+ {/*
-
+ */}
{/*
{
dataIndex: 'code',
ellipsis: true,
},
- {
- title: '关联外键',
- dataIndex: 'foreignKeyRe',
- },
+ // {
+ // 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: '成品',
@@ -214,12 +219,13 @@ const ProductManage = () => {
title: '物料类别',
dataIndex: 'typeID',
valueType: 'select',
+ hideInSearch: true,
fieldProps: {
options: TypeList,
},
},
{
- title: '库存单位',
+ title: '物料单位',
dataIndex: 'stockUint',
valueType: 'select',
fieldProps: {
@@ -263,23 +269,6 @@ const ProductManage = () => {
{' '}
更新
,
- {
- var parm={id:record.id,status:record.status == 0 ? 1 : 0}
- api.updateStatus(parm).then((r) => {
- if (r.succeeded) {
- message.success('操作成功');
- actionRef.current.reload();
- }else{
- message.error(e.error);
- }
- });
- }}
- >
- {' '}
- {record.status == 0 ? '禁用' : '启用'}
- ,
{
initGoodsUnit();
initGoodsType();
initGetbomType();
- intBatching();
+ //intBatching();//默认原料
//}
}, [tabStatus])
@@ -191,11 +191,11 @@ const Advanced = (props) => {
})
}
- function intBatching(){
- getproductpage().then((r) => {
- setMatedata(r.data);
- });
- }
+ // function intBatching(){
+ // getproductpage().then((r) => {
+ // setMatedata(r.data);
+ // });
+ // }
function initTypeList(){
initGetbomType();
}
@@ -404,7 +404,7 @@ const Advanced = (props) => {
/>
-
+
{
treeDefaultExpandAll
/>
-
-
-
-
+ {/*
+ */}
+
+
+
-
-
+
+
-
+
+
+
+ {/*
-
+ */}
@@ -455,12 +459,6 @@ const Advanced = (props) => {
-
-
-
-
-
-