fix: column product

This commit is contained in:
caturbgs 2021-12-22 14:48:50 +07:00
parent 7cf403f19d
commit 5039fa736a

View File

@ -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);
}}
/>