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 0dab79b..7bd9696 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) }}>
选择产品