Repair Menu
This commit is contained in:
parent
71e6f00fcd
commit
5229359425
|
@ -332,6 +332,29 @@ export const Membership = observer(() => {
|
||||||
Saldo System : {item.coa.amount}
|
Saldo System : {item.coa.amount}
|
||||||
</small>{" "}
|
</small>{" "}
|
||||||
<br />
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
@ -343,7 +366,7 @@ export const Membership = observer(() => {
|
||||||
margin: 0,
|
margin: 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Button
|
{/* <Button
|
||||||
type={
|
type={
|
||||||
item?.isActive === true ? "danger" : "primary"
|
item?.isActive === true ? "danger" : "primary"
|
||||||
}
|
}
|
||||||
|
@ -352,7 +375,7 @@ export const Membership = observer(() => {
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{item?.isActive === true ? "Inactive" : "Active"}
|
{item?.isActive === true ? "Inactive" : "Active"}
|
||||||
</Button>
|
</Button> */}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</List.Item>
|
</List.Item>
|
||||||
|
|
|
@ -36,7 +36,7 @@ export class Product {
|
||||||
async getData() {
|
async getData() {
|
||||||
try {
|
try {
|
||||||
const response = await http.get(`/product/all?supplier=${this.filterSupplier}&sub-category=${this.filterSubCategory}&page=${this.page}&pageSize=${this.pageSize}`);
|
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) => {
|
this.data = response.body.data.map((item, idx) => {
|
||||||
item.key = idx;
|
item.key = idx;
|
||||||
return item
|
return item
|
||||||
|
|
Loading…
Reference in New Issue
Block a user