fix: column product
This commit is contained in:
parent
7cf403f19d
commit
5039fa736a
|
@ -36,23 +36,23 @@ export const ProductComponent = observer((props) => {
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: "Kode",
|
title: "Kode",
|
||||||
dataIndex: "code",
|
dataIndex: "product_code",
|
||||||
key: "code",
|
key: "product_code",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Produk",
|
title: "Produk",
|
||||||
dataIndex: ["name"],
|
dataIndex: "product_name",
|
||||||
key: "name",
|
key: "product_name",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Harga Beli",
|
title: "Harga Beli",
|
||||||
dataIndex: ["currentPrice", "price"],
|
dataIndex: "current_price_price",
|
||||||
key: ["currentPrice", "price"],
|
key: "current_price_price",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Harga Jual",
|
title: "Harga Jual",
|
||||||
dataIndex: ["currentPrice", "mark_up_price"],
|
dataIndex: "mark_up_price",
|
||||||
key: ["currentPrice", "mark_up_price"],
|
key: "mark_up_price",
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: "Gangguan",
|
// title: "Gangguan",
|
||||||
|
@ -244,7 +244,7 @@ export const ProductComponent = observer((props) => {
|
||||||
store.product.pageSize = page.pageSize;
|
store.product.pageSize = page.pageSize;
|
||||||
store.product.page = pageNumber - 1;
|
store.product.page = pageNumber - 1;
|
||||||
modalLoader.setLoading(true);
|
modalLoader.setLoading(true);
|
||||||
//await store.product.getData();
|
await store.product.getData();
|
||||||
modalLoader.setLoading(false);
|
modalLoader.setLoading(false);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user