Merge branch 'develop' into 'devops-staging'
Develop See merge request empatnusabangsa/ppob/ppob-frontend!134
This commit is contained in:
commit
9ee4188a4e
|
@ -228,9 +228,13 @@ export const ProductComponent = observer((props) => {
|
||||||
store.product.filterSupplier = filterSupplier;
|
store.product.filterSupplier = filterSupplier;
|
||||||
store.product.filterSubCategory = filterSubCategories;
|
store.product.filterSubCategory = filterSubCategories;
|
||||||
modalLoader.setLoading(true);
|
modalLoader.setLoading(true);
|
||||||
|
// store.authentication.userData.role === "Admin Partner"
|
||||||
|
// ? await store.product.getData()
|
||||||
|
// : await store.product.getData()
|
||||||
await store.product.getData();
|
await store.product.getData();
|
||||||
modalLoader.setLoading(false);
|
modalLoader.setLoading(false);
|
||||||
store.product.visibleModalFilterProduct = false;
|
store.product.visibleModalFilterProduct = false;
|
||||||
|
//store.product.page=1
|
||||||
};
|
};
|
||||||
|
|
||||||
const footerLayoutFilter = [
|
const footerLayoutFilter = [
|
||||||
|
@ -478,6 +482,7 @@ export const ProductComponent = observer((props) => {
|
||||||
visible={store.product.visibleModalFilterProduct}
|
visible={store.product.visibleModalFilterProduct}
|
||||||
title={"Filter"}
|
title={"Filter"}
|
||||||
footer={footerLayoutFilter}
|
footer={footerLayoutFilter}
|
||||||
|
|
||||||
onCancel={async () => {
|
onCancel={async () => {
|
||||||
// setFilterSupplier([]);
|
// setFilterSupplier([]);
|
||||||
// setFilterSubCategories([]);
|
// setFilterSubCategories([]);
|
||||||
|
|
|
@ -195,6 +195,7 @@ export const Product = observer(() => {
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
store.product.visibleModalFilterProduct = true;
|
store.product.visibleModalFilterProduct = true;
|
||||||
|
store.product.page=0
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FilterOutlined />
|
<FilterOutlined />
|
||||||
|
|
|
@ -215,6 +215,7 @@ export const Product = observer(() => {
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: "#4e79e7",
|
backgroundColor: "#4e79e7",
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
|
marginRight:10
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
form
|
form
|
||||||
|
@ -231,24 +232,24 @@ export const Product = observer(() => {
|
||||||
>
|
>
|
||||||
Beli
|
Beli
|
||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
// <Button
|
||||||
key="Beli Stag"
|
// key="Beli Stag"
|
||||||
type="primary"
|
// type="primary"
|
||||||
onClick={() => {
|
// onClick={() => {
|
||||||
form
|
// form
|
||||||
.validateFields()
|
// .validateFields()
|
||||||
.then((values) => {
|
// .then((values) => {
|
||||||
console.log(values, "isi form");
|
// console.log(values, "isi form");
|
||||||
handleBuyStag(values, barang.product_code);
|
// handleBuyStag(values, barang.product_code);
|
||||||
form.resetFields();
|
// form.resetFields();
|
||||||
})
|
// })
|
||||||
.catch((info) => {
|
// .catch((info) => {
|
||||||
console.error("Validate Failed:", info);
|
// console.error("Validate Failed:", info);
|
||||||
});
|
// });
|
||||||
}}
|
// }}
|
||||||
>
|
// >
|
||||||
Beli Staging
|
// Beli Staging
|
||||||
</Button>,
|
// </Button>,
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Form form={form} layout="vertical">
|
<Form form={form} layout="vertical">
|
||||||
|
|
|
@ -294,6 +294,7 @@ export const Transaction = observer(() => {
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: "#4e79e7",
|
backgroundColor: "#4e79e7",
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
|
marginRight:10
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
form
|
form
|
||||||
|
@ -310,24 +311,24 @@ export const Transaction = observer(() => {
|
||||||
>
|
>
|
||||||
Beli
|
Beli
|
||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
// <Button
|
||||||
key="Beli Stag"
|
// key="Beli Stag"
|
||||||
type="primary"
|
// type="primary"
|
||||||
onClick={() => {
|
// onClick={() => {
|
||||||
form
|
// form
|
||||||
.validateFields()
|
// .validateFields()
|
||||||
.then((values) => {
|
// .then((values) => {
|
||||||
console.log(values, "isi form");
|
// console.log(values, "isi form");
|
||||||
handleBuyStag(values, barang.product_code);
|
// handleBuyStag(values, barang.product_code);
|
||||||
form.resetFields();
|
// form.resetFields();
|
||||||
})
|
// })
|
||||||
.catch((info) => {
|
// .catch((info) => {
|
||||||
console.error("Validate Failed:", info);
|
// console.error("Validate Failed:", info);
|
||||||
});
|
// });
|
||||||
}}
|
// }}
|
||||||
>
|
// >
|
||||||
Beli Staging
|
// Beli Staging
|
||||||
</Button>,
|
// </Button>,
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Form form={form} layout="vertical">
|
<Form form={form} layout="vertical">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user