From 962b28a9a90cdeb3cbd95f4d2d0aa9caded579d6 Mon Sep 17 00:00:00 2001
From: zhaoy <137053305@qq.com>
Date: Wed, 21 Feb 2024 18:22:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=B7=A5=E8=89=BA=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../goods/goodstechnology/components/EditFrom.jsx | 6 +++---
.../database/goods/goodstechnology/components/From.jsx | 7 +++++++
.../components/goodstechnologymaken.jsx | 6 +++---
src/pages/database/goods/newgoods/index.jsx | 3 ++-
.../device/technology/components/CreateAction.jsx | 10 +++++++---
.../device/technology/components/technologylist.jsx | 6 ++----
src/pages/device/technology/index.jsx | 6 +++---
7 files changed, 27 insertions(+), 17 deletions(-)
diff --git a/src/pages/database/goods/goodstechnology/components/EditFrom.jsx b/src/pages/database/goods/goodstechnology/components/EditFrom.jsx
index 5df4e2f..cfbdbd1 100644
--- a/src/pages/database/goods/goodstechnology/components/EditFrom.jsx
+++ b/src/pages/database/goods/goodstechnology/components/EditFrom.jsx
@@ -130,9 +130,9 @@ const EditFrom = (props) => {
{
- x.isBatch ?
-
- :
+ // x.isBatch ?
+
+ //:
}
diff --git a/src/pages/database/goods/goodstechnology/components/From.jsx b/src/pages/database/goods/goodstechnology/components/From.jsx
index 09ba74d..f0d68e9 100644
--- a/src/pages/database/goods/goodstechnology/components/From.jsx
+++ b/src/pages/database/goods/goodstechnology/components/From.jsx
@@ -114,6 +114,13 @@ const From = (props) => {
var op = va.map((p, index) => {
return { value: index, label: p.actionValueName }
})
+ //判断是否物料
+ if(x.technologyType==1){
+ var sd= props.batchingdata.map(p=>{
+ return { value: p.id, label: p.name }
+ })
+ op=sd
+ }
return <>
{x.actionName}
diff --git a/src/pages/database/goods/goodstechnology/components/goodstechnologymaken.jsx b/src/pages/database/goods/goodstechnology/components/goodstechnologymaken.jsx
index 15545a2..1bf8258 100644
--- a/src/pages/database/goods/goodstechnology/components/goodstechnologymaken.jsx
+++ b/src/pages/database/goods/goodstechnology/components/goodstechnologymaken.jsx
@@ -189,14 +189,14 @@ const goodstechnologymaken = (props) => {
actionType: x.actionType,
actionValue: x.actionValue,
goodstechnologyId: x.technologyId,
- isBatch: x.isBatch,
+ technologyType: x.technologyType,
sort: x.sort,
goddteid: item.id
}
propsdatanew.push(sd)
})
obj.propsdata = propsdatanew;
- obj.isBatch = item.isBatch;
+ obj.technologyType = item.technologyType;
obj.typeName = item.stepName;
attr.push(obj)
@@ -312,7 +312,7 @@ const goodstechnologymaken = (props) => {
item.id = x.id
item.stepName = x.stepName;
item.chnologyId = x.chnologyId;
- item.isBatch = x.isBatch;
+ item.technologyType = x.technologyType;
if (UpdataStatus != "add") {
item.sort = x.sort;
}
diff --git a/src/pages/database/goods/newgoods/index.jsx b/src/pages/database/goods/newgoods/index.jsx
index 8bba620..24fcfbf 100644
--- a/src/pages/database/goods/newgoods/index.jsx
+++ b/src/pages/database/goods/newgoods/index.jsx
@@ -249,7 +249,8 @@ const GoodsManage = () => {
}
if (info.file.status === 'done') {
setLoading(false);
- message.success(`${info.file.name} file uploaded successfully`);
+ message.success(`${info.file.name}导入成功`);
+ actionRef.current.reload();
} else if (info.file.status === 'error') {
setLoading(false);
message.error(`${info.file.name}:${info.file.response} `);
diff --git a/src/pages/device/technology/components/CreateAction.jsx b/src/pages/device/technology/components/CreateAction.jsx
index f2ba192..ac84041 100644
--- a/src/pages/device/technology/components/CreateAction.jsx
+++ b/src/pages/device/technology/components/CreateAction.jsx
@@ -29,9 +29,13 @@ const CreateAction = (props) => {
if(props.values.actionType=="select"){
setLayoutType('ModalForm');
let ary=[];
- let op=JSON.parse(props.values.actionValue)
- for (let t = 0; t < op.length; t++) {
- ary.push({actionValueName:op[t].actionValueName})
+ if(props.values.technologyType==0){
+
+ let op=JSON.parse(props.values.actionValue)
+ for (let t = 0; t < op.length; t++) {
+ ary.push({actionValueName:op[t].actionValueName})
+ }
+
}
setoptionitem(ary);
}else{
diff --git a/src/pages/device/technology/components/technologylist.jsx b/src/pages/device/technology/components/technologylist.jsx
index 90f45ef..e8e5a1d 100644
--- a/src/pages/device/technology/components/technologylist.jsx
+++ b/src/pages/device/technology/components/technologylist.jsx
@@ -48,7 +48,7 @@ const bomtechnology = (props) => {
dataIndex: 'name',
valueType: 'textarea',
ellipsis: true,
- search: true,
+ search: false,
},
{
@@ -125,9 +125,7 @@ const bomtechnology = (props) => {
headerTitle="工艺"
actionRef={actionRef}
rowKey="id"
- search={{
- labelWidth: 120,
- }}
+ search={false}
columns={columns}
toolBarRender={false}
dataSource={props.dataSource}
diff --git a/src/pages/device/technology/index.jsx b/src/pages/device/technology/index.jsx
index b48a2f2..15c8e90 100644
--- a/src/pages/device/technology/index.jsx
+++ b/src/pages/device/technology/index.jsx
@@ -287,11 +287,11 @@ const GoodsTypeManage = () => {
)}
{ setIsModalOpen(false) }}>
+ destroyOnClose onCancel={() => { setDeviceVesionData();setIsModalOpen(false) }}>
选择产品