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