Bug fixing PPOB
This commit is contained in:
@@ -185,7 +185,7 @@ export const Payback = observer(() => {
|
||||
const dataRoute = [
|
||||
{
|
||||
route: LINKS.PAYBACK,
|
||||
name: "Konfirmasi Pembayaran"
|
||||
name: "Konfirmasi Pembayaran",
|
||||
},
|
||||
];
|
||||
|
||||
@@ -201,15 +201,6 @@ export const Payback = observer(() => {
|
||||
: message.success(
|
||||
response?.body?.message || `Success ${capitalize(type)} Payback`
|
||||
);
|
||||
// if (response.body.status !== 201 ) {
|
||||
// message.error(
|
||||
// response?.body?.message || `Failed ${capitalize(type)} Payback`
|
||||
// );
|
||||
// } else {
|
||||
// message.success(
|
||||
// response?.body?.message || `Success ${capitalize(type)} Payback`
|
||||
// );
|
||||
// }
|
||||
} catch (e) {
|
||||
console.error(e, "apa errornya");
|
||||
message.error(
|
||||
@@ -532,46 +523,6 @@ export const Payback = observer(() => {
|
||||
</Form.Item>
|
||||
</Form>
|
||||
</Col>
|
||||
{/* <Col span={24}> */}
|
||||
|
||||
{/* <Title level={5} type={"secondary"} strong>
|
||||
Date
|
||||
</Title>
|
||||
<RangePicker style={{ marginBottom: "20px", width: "100%" }} /> */}
|
||||
{/* <Select
|
||||
mode={"multiple"}
|
||||
placeholder="Choose Category"
|
||||
onChange={async (val) => handleFilterCategory(val)}
|
||||
style={{ marginBottom: "20px", width: "100%" }}
|
||||
value={store.product.filterCategory || []}
|
||||
>
|
||||
{store.category.data.map((item) => (
|
||||
<Option value={item.id} key={item.id}>
|
||||
{item.name}
|
||||
</Option>
|
||||
))}
|
||||
</Select> */}
|
||||
{/* </Col> */}
|
||||
{/* <Col span={24}>
|
||||
<Title level={5} type={"secondary"} strong>
|
||||
Filter Sub-Categories
|
||||
</Title>
|
||||
<Select
|
||||
mode={"multiple"}
|
||||
placeholder="Choose Sub-Category"
|
||||
onChange={(val) => {
|
||||
setFilterSubCategories(val);
|
||||
}}
|
||||
style={{ marginBottom: "20px", width: "100%" }}
|
||||
value={filterSubCategories}
|
||||
>
|
||||
{store.product.dataSubCategories.map((item) => (
|
||||
<Option value={item.id} key={item.id}>
|
||||
{item.name}
|
||||
</Option>
|
||||
))}
|
||||
</Select>
|
||||
</Col> */}
|
||||
</Row>
|
||||
</Modal>
|
||||
</div>
|
||||
|
||||
@@ -90,12 +90,6 @@ export const PaybackCreated = observer(() => {
|
||||
key: "status",
|
||||
width: "10%",
|
||||
render: (text, record) => (
|
||||
// <Tag
|
||||
// color={PAYBACK_STATUS[text] === PAYBACK_STATUS[3] ? "cyan" : "red"}
|
||||
// style={{ color: "#4F566B" }}
|
||||
// >
|
||||
// {PAYBACK_STATUS[text]}
|
||||
// </Tag>
|
||||
<Tag
|
||||
color={
|
||||
record.status === 0
|
||||
@@ -159,10 +153,6 @@ export const PaybackCreated = observer(() => {
|
||||
const handleSubmitFilter = async () => {
|
||||
const data = form.getFieldsValue();
|
||||
console.log(data);
|
||||
//store.payback.filterMembership = filterMembership;
|
||||
// const awal = format(parseISO(data.start_date), "dd-MM-yyyy")
|
||||
// const akhir = format(parseISO(data.start_date), "dd-MM-yyyy")
|
||||
//const awal= format(startOfDay(date.start_date()), 'yyyy-MM-dd 00:00')
|
||||
const awal = (store.payback.filterStart = moment(data.start_date).format(
|
||||
"YYYY-MM-DD 00:00:00"
|
||||
));
|
||||
@@ -174,8 +164,6 @@ export const PaybackCreated = observer(() => {
|
||||
modalLoader.setLoading(true);
|
||||
await store.payback.getDataCreated();
|
||||
modalLoader.setLoading(false);
|
||||
// form.resetFields();
|
||||
// setFilterMembership([]);
|
||||
store.payback.visibleModalFilterCreate = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user