|
|
@@ -60,16 +60,16 @@ const goodstechnologymaken = (props) => { |
|
|
|
message.error("查询商品信息失败"); |
|
|
|
} |
|
|
|
}); |
|
|
|
GetGoodsTechnology().then((r) => { |
|
|
|
var data = r.data; |
|
|
|
var sd = [] |
|
|
|
if (data.length > 0) { |
|
|
|
data.forEach((x) => { |
|
|
|
sd.push({ label: x.name, value: x.id, isBatch: x.isBatch }); |
|
|
|
}); |
|
|
|
setgoodstechnologydata(sd) |
|
|
|
} |
|
|
|
}); |
|
|
|
// GetGoodsTechnology().then((r) => { |
|
|
|
// var data = r.data; |
|
|
|
// var sd = [] |
|
|
|
// if (data.length > 0) { |
|
|
|
// data.forEach((x) => { |
|
|
|
// sd.push({ label: x.name, value: x.id, isBatch: x.isBatch }); |
|
|
|
// }); |
|
|
|
// setgoodstechnologydata(sd) |
|
|
|
// } |
|
|
|
// }); |
|
|
|
GetTechnologyActionListAll().then((r) => { |
|
|
|
setTechnologyattralldata(r.data) |
|
|
|
}) |
|
|
@@ -184,7 +184,7 @@ const goodstechnologymaken = (props) => { |
|
|
|
return { value: x.goodsTechnologyId, label: x.name } |
|
|
|
}) |
|
|
|
console.log(godata) |
|
|
|
//setgoodstechnologydata(godata) |
|
|
|
setgoodstechnologydata(godata) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|