Repair Menu

This commit is contained in:
ajat91.sudrajat 2021-12-23 19:18:27 +07:00
parent 71e6f00fcd
commit 5229359425
2 changed files with 26 additions and 3 deletions

View File

@ -332,6 +332,29 @@ export const Membership = observer(() => {
Saldo System : {item.coa.amount}
</small>{" "}
<br />
<Button
style={{marginRight:10}}
onClick={() => {
setDestination(item?.id);
console.log(item?.id);
setIsVisibleTopUpModal(true);
}}
>
<DownloadOutlined /> Top Up Saldo
</Button>
<Button
onClick={async () => {
await store.transaction.getDataHistoryTopUp(
item.id
);
history.push(
LINKS.USER_DETAIL.replace(":id", item.id)
);
console.log(item.id);
}}
>
Detail
</Button>
</p>
</div>
}
@ -343,7 +366,7 @@ export const Membership = observer(() => {
margin: 0,
}}
>
<Button
{/* <Button
type={
item?.isActive === true ? "danger" : "primary"
}
@ -352,7 +375,7 @@ export const Membership = observer(() => {
}
>
{item?.isActive === true ? "Inactive" : "Active"}
</Button>
</Button> */}
</p>
</div>
</List.Item>

View File

@ -36,7 +36,7 @@ export class Product {
async getData() {
try {
const response = await http.get(`/product/all?supplier=${this.filterSupplier}&sub-category=${this.filterSubCategory}&page=${this.page}&pageSize=${this.pageSize}`);
console.log(response)
//console.log(response)
this.data = response.body.data.map((item, idx) => {
item.key = idx;
return item