diff --git a/src/common/pages/App/routes.js b/src/common/pages/App/routes.js index b52a227..b8980b9 100644 --- a/src/common/pages/App/routes.js +++ b/src/common/pages/App/routes.js @@ -13,6 +13,7 @@ import ItemsComponent from '../Items/index'; import VouchersComponent from '../Vouchers/index'; import VerifyVouchers from '../Vouchers/Verify'; import CheckoutVouchers from '../Vouchers/Checkout'; +import PaymentVouchers from '../Vouchers/Payment'; import FormItems from "../Items/FormItems/FormItems"; import FormItemAdmin from "../Items/FormItems/FormItemAdmin"; import FormPromotion from "../Items/FormItems/FormPromotion"; @@ -87,6 +88,7 @@ export default class ComponentName extends React.Component { + diff --git a/src/common/pages/Items/All/index.js b/src/common/pages/Items/All/index.js index 242c2ee..76f28b4 100644 --- a/src/common/pages/Items/All/index.js +++ b/src/common/pages/Items/All/index.js @@ -516,7 +516,7 @@ export default class All extends React.Component { - {(this.userData.role === 'store' && this.userData.entity_permission.can_store_change_item) ? + {/* {(this.userData.role === 'store' && this.userData.entity_permission.can_store_change_item) ?
: "" - } + } */} {data.map(item => { return ( diff --git a/src/common/pages/Vouchers/Checkout/index.js b/src/common/pages/Vouchers/Checkout/index.js index c61d8dc..0116fe5 100644 --- a/src/common/pages/Vouchers/Checkout/index.js +++ b/src/common/pages/Vouchers/Checkout/index.js @@ -11,8 +11,8 @@ import Loader from 'react-loader-advanced'; import {DIALOG} from "../../../stores/global_ui"; import EmptyComponent from '../../EmptyComponent'; import NavigationArrowBack from 'material-ui/svg-icons/navigation/arrow-back'; -import Search from 'material-ui/svg-icons/action/search'; -import Timer from 'react-compound-timer'; +import {LINKS} from "../../../routes"; +import {Route} from "react-router-dom"; @inject('appstate') @observer @@ -52,7 +52,7 @@ export default class CheckoutVouchers extends React.Component { /> -

+

Detail Pembelian

}> @@ -66,18 +66,18 @@ export default class CheckoutVouchers extends React.Component {
-

Jenis Layanan

+

Jenis Layanan :

-

: KFC Rp.50.000,00

+

KFC Rp.50.000,00

-

Point

+

Point :

-

: 150,000

+

50 Points

@@ -89,19 +89,19 @@ export default class CheckoutVouchers extends React.Component {
-

Poin

-

150,000

+

Point

+

11,570 Points

-

Total Pembayaran Poin

-

150,000

+

Total Pembayaran Point

+

50 Points

- +
diff --git a/src/common/pages/Vouchers/Payment/index.js b/src/common/pages/Vouchers/Payment/index.js new file mode 100644 index 0000000..c71db5e --- /dev/null +++ b/src/common/pages/Vouchers/Payment/index.js @@ -0,0 +1,132 @@ +import React from 'react'; +import {inject, observer} from 'mobx-react'; +import { + FlatButton +} from 'material-ui'; +import { Affix, Card, Slider, Select, Row, Col, Icon, Tag,Rate, Button, Checkbox ,Divider, DatePicker, Alert, Input ,Avatar, Collapse, notification } from 'antd'; +import {startCase} from 'lodash'; +import LoadingDialog from "../../LoadingDialog"; +import Loader from 'react-loader-advanced'; +// import './style.scss'; +import {DIALOG} from "../../../stores/global_ui"; +import EmptyComponent from '../../EmptyComponent'; +import NavigationArrowBack from 'material-ui/svg-icons/navigation/arrow-back'; +import {LINKS} from "../../../routes"; + +const Panel = Collapse.Panel; + +@inject('appstate') +@observer +export default class PaymentVouchers extends React.Component { + constructor(props) { + super(props); + this.props = props; + this.state = { + value: 1, + }; + this.defaultState = Object.assign({}, this.state); + this.http = props.appstate.http; + this.authStore = props.appstate.auth; + this.globalUI = props.appstate.globalUI; + } + + componentDidMount() { + + } + + render() { + const openNotificationWithIcon = (type) => { + notification[type]({ + message: 'Success', + description: 'Selamat anda telah mendapatkan vouchers sebesar KFC Rp. 50,000', + placement:'topRight', + duration: 5, + }); + }; + + return ( +
+
+
+
+
+ this.props.history.goBack()} + label="Back" + primary={true} + icon={} + /> + +
+
+ + +

+ 50 Points +

+

+ Detail Tagihan +

+
+ } key="1"> + +
+

KFC - Rp. 50,000

+

50 Points

+
+
+ +
+

1 x Rp. 50 Points

+

50 Points

+
+
+ + +
+

Tagihan

+

50 Points

+
+
+ + +
+
+ +
+

+ Points BTN +

+
+
+ +
+
}> +
+ +
+
+
    +
  • Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
  • +
  • Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
  • +
+
+ +
+
+ +
+
+
+
+
+ ) + } +} diff --git a/src/common/routes.js b/src/common/routes.js index 12dff0e..62a1d0b 100644 --- a/src/common/routes.js +++ b/src/common/routes.js @@ -113,6 +113,7 @@ export const LINKS = { VOUCHERS: '/app/vouchers', VERIFY_VOUCHERS: '/app/vouchers/verify', CHECKOUT_VOUCHERS: '/app/vouchers/checkout', + PAYMENT_VOUCHERS: '/app/vouchers/payment', CART_DETAIL: '/app/cart', };