|
@@ -53,6 +53,7 @@ export default function AddGoodsClassification({ navigation, route }) {
|
|
|
addClassTips,
|
|
addClassTips,
|
|
|
} = useModel("wordsModel");
|
|
} = useModel("wordsModel");
|
|
|
const { showDialog } = useModel("dialogModel", true);
|
|
const { showDialog } = useModel("dialogModel", true);
|
|
|
|
|
+ const { selectInfos, changeSelect } = useModel("goodsModel");
|
|
|
const [categoryList, changeCategoryList] = React.useState([]);
|
|
const [categoryList, changeCategoryList] = React.useState([]);
|
|
|
const [merchantNatureList, changeMerchantNatureList] = React.useState([]);
|
|
const [merchantNatureList, changeMerchantNatureList] = React.useState([]);
|
|
|
const [goods, changeGoods] = React.useState([]);
|
|
const [goods, changeGoods] = React.useState([]);
|
|
@@ -79,6 +80,8 @@ export default function AddGoodsClassification({ navigation, route }) {
|
|
|
React.useEffect(() => {
|
|
React.useEffect(() => {
|
|
|
if (selectId && selectId != "new") {
|
|
if (selectId && selectId != "new") {
|
|
|
getSelectGoods();
|
|
getSelectGoods();
|
|
|
|
|
+ } else if (selectId == "new") {
|
|
|
|
|
+ setGoodsClass(selectInfos);
|
|
|
}
|
|
}
|
|
|
}, [selectId]);
|
|
}, [selectId]);
|
|
|
function getSelectGoods() {
|
|
function getSelectGoods() {
|
|
@@ -195,6 +198,7 @@ export default function AddGoodsClassification({ navigation, route }) {
|
|
|
}
|
|
}
|
|
|
success(tips + successText);
|
|
success(tips + successText);
|
|
|
setGoodsClass(_goodsClass);
|
|
setGoodsClass(_goodsClass);
|
|
|
|
|
+ changeSelect(_goodsClass);
|
|
|
} else {
|
|
} else {
|
|
|
if (signboard) {
|
|
if (signboard) {
|
|
|
let ids = topGoods.map((item) => {
|
|
let ids = topGoods.map((item) => {
|
|
@@ -263,7 +267,7 @@ export default function AddGoodsClassification({ navigation, route }) {
|
|
|
/>
|
|
/>
|
|
|
</Card>
|
|
</Card>
|
|
|
</Layout>
|
|
</Layout>
|
|
|
- <ActionButton
|
|
|
|
|
|
|
+ {/* <ActionButton
|
|
|
style={{ zIndex: 2 }}
|
|
style={{ zIndex: 2 }}
|
|
|
buttonColor={theme["color-primary-500"]}
|
|
buttonColor={theme["color-primary-500"]}
|
|
|
onPress={() => {
|
|
onPress={() => {
|
|
@@ -277,7 +281,7 @@ export default function AddGoodsClassification({ navigation, route }) {
|
|
|
});
|
|
});
|
|
|
}}
|
|
}}
|
|
|
position='center'
|
|
position='center'
|
|
|
- />
|
|
|
|
|
|
|
+ /> */}
|
|
|
</ScrollPage>
|
|
</ScrollPage>
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|