|
|
@@ -135,7 +135,8 @@ export default function GoodsSpecificationScreen() {
|
|
|
}
|
|
|
|
|
|
if (isNew) {
|
|
|
- content.push({ name: "", multiple: false });
|
|
|
+ content.push({ name: "", multiple: false, addIndex: 0 });
|
|
|
+ changeNew([{ name: "", multiple: false, addIndex: 0 }]);
|
|
|
} else {
|
|
|
addNew.forEach((item, index) => {
|
|
|
if (item.addType === "1") {
|
|
|
@@ -494,7 +495,14 @@ export default function GoodsSpecificationScreen() {
|
|
|
)}
|
|
|
</Layout>
|
|
|
|
|
|
- <Button size="small" onPress={() => saveInfo(editNowInfo)}>
|
|
|
+ <Button
|
|
|
+ disabled={
|
|
|
+ !editNowInfo.name ||
|
|
|
+ (!!editNowInfo.parent && editNowInfo.amount === "")
|
|
|
+ }
|
|
|
+ size="small"
|
|
|
+ onPress={() => saveInfo(editNowInfo)}
|
|
|
+ >
|
|
|
{confirm}
|
|
|
</Button>
|
|
|
<Button
|