{"version":3,"sources":["contexts/navigation.js","app-info.js","api/auth.js","contexts/auth.js","utils/media-query.js","pages/profile/profile.js","pages/tasks/tasks.js","constants/enums.js","components/persianCalender/PersianCalender.js","pages/orders/orders.js","components/persianDateTimeCalender/PersianDateTimeCalender.js","pages/orderPayments/orderPayments.js","pages/orderProducts/orderProducts.js","pages/orderRefunds/orderRefunds.js","pages/orderDetails/orderDetails.js","pages/clientProducts/clientProducts.js","app-routes.js","pages/home/home.js","components/user-panel/user-panel.js","components/header/header.js","components/footer/footer.js","components/login-form/login-form.js","components/reset-password-form/reset-password-form.js","components/create-account-form/create-account-form.js","components/change-password-form/change-password-form.js","app-navigation.js","components/side-navigation-menu/side-navigation-menu.js","utils/patches.js","layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.js","layouts/single-card/single-card.js","Content.js","UnauthenticatedContent.js","App.js","reportWebVitals.js","index.js"],"names":["NavigationContext","createContext","useNavigation","useContext","NavigationProvider","props","useState","navigationData","setNavigationData","Provider","value","appInfo","title","mainAPI","qomClientId","signIn","email","password","a","console","log","postObj","axios","post","headers","response","data","status","localStorage","setItem","token","getUser","userProfile","isOk","message","get","getItem","createAccount","changePassword","recoveryCode","resetPassword","AuthProvider","user","setUser","loading","setLoading","useEffect","result","useCallback","sendSignInRequest","signOut","AuthContext","useAuth","useScreenSize","getScreenSize","screenSize","setScreenSize","onSizeChanged","subscribe","unsubscribe","handlers","xSmallMedia","window","matchMedia","smallMedia","mediumMedia","largeMedia","forEach","media","addListener","e","matches","handler","push","filter","item","isXSmall","isSmall","isMedium","isLarge","colCountByScreen","xs","sm","md","lg","dataSource","store","type","key","url","expand","select","priorities","name","enums","paymentStatus","paymentMethods","samanRefundStatus","jMoment","loadPersian","dialect","usePersianDigits","PersianCalender","state","selectedDate","Date","onValueChanged","bind","onSelectionChanged","this","setState","_d","setValue","component","updateDimensions","utils","JalaliUtils","locale","DatePicker","style","marginRight","clearable","okLabel","cancelLabel","clearLabel","labelFunc","date","format","onChange","React","Component","Order","showRecalculationModal","dataGridRef","createRef","makeStore","CustomStore","onBeforeSend","method","ajaxOptions","xhrFields","withCredentials","load","loadOption","fetch","body","JSON","stringify","then","json","catch","current","instance","history","id","workbook","Workbook","worksheet","addWorksheet","exportDataGrid","autoFilterEnabled","customizeCell","options","gridCell","excelCell","rowType","column","dataField","formatDate","xlsx","writeBuffer","buffer","saveAs","Blob","cancel","useOldPrice","UseOldPrice","OrderIds","dataGrid","getSelectedRowsData","map","x","updatePrice","notify","Fragment","className","display","marginBottom","onClick","text","ref","showBorders","columnAutoWidth","columnHidingEnabled","remoteOperations","onRowClick","onRowClicked","onExporting","onEditorPreparing","editorComponent","ReactDOM","render","editorElement","enabled","defaultPageSize","showPageSizeSelector","allowedPageSizes","showNavigationButtons","allowExportSelectedData","storageKey","savingTimeout","visible","mode","selectAllMode","showCheckBoxesMode","summaryType","valueFormat","precision","caption","valueExpr","displayExpr","dataType","width","defaultSortOrder","height","resizeEnabled","showTitle","hideOnOutsideClick","showCloseButton","onHiding","marginLeft","onClickUpdatePrice","shadingColor","showIndicator","shading","showPane","PersianDateTimeCalender","DateTimePicker","OrderDetails","orderData","productsData","showRefundReqModal","refundRequest","refundTotally","refundAmount","paymentId","clientRefNumber","showListRefundReqModal","lstRefundRequest","showListRefundReqTransactionModal","lstRefundRequestTransactions","formFieldDataChanged","paymentsDataGridRef","productsDataGridRef","getInitData","match","params","orderId","getInitDataProducts","client","days","setDate","getDate","updatedField","newValue","addDays","payments","paymentsDataGrid","getDataSource","items","products","productsDataGrid","myDialog","custom","messageHtml","buttons","buttonText","option","show","d","row","transactions","icon","goBack","formData","onFieldDataChanged","colCount","colSpan","editorType","onDateValueChanged","onValueChange","onSaved","onRowUpdating","allowUpdating","allowAdding","allowDeleting","showInfo","fixedPosition","hint","onGridRefund","onGridListRefundReq","allowEditing","isEnabled","stylingMode","onUpdate","onUpdatePrice","refundRequestFormFieldDataChanged","onRefund","fixed","onGridListRefundReqTransaction","OrderPayments","orderGuidId","parentType","OrderProducts","allowColumnReordering","visibleIndex","ClientProducts","initData","changes","clientId","onSaving","OrderRefunds","upateRefundReq","endDate","startDate","getFullYear","updateRefunds","routes","path","focusedRowEnabled","defaultFocusedRowIndex","hidingPriority","allowSorting","notes","setNotes","employee","ID","FirstName","LastName","Prefix","Position","Picture","BirthDate","HireDate","Notes","Address","alt","src","defaultFormData","labelLocation","fontSize","OrdersPage","OrderDetailsPage","OrderPaymentsPage","OrderProductsPage","ClientProductsPage","OrdedrRefundsPage","route","currentPath","createElement","UserPanel","menuMode","useHistory","menuItems","useMemo","background","backgroundSize","target","showEvent","cssClass","my","at","Header","menuToggleEnabled","toggleMenu","location","widget","locateInMenu","menuItemTemplate","Footer","rest","LoginForm","useRef","onSubmit","preventDefault","disabled","editorOptions","emailEditorOptions","passwordEditorOptions","useSubmitBehavior","placeholder","ResetPasswordForm","elementAttr","submitButtonAttributes","to","class","CreateAccountForm","confirmPassword","confirmedPasswordEditorOptions","validationCallback","ChangePasswordForm","useParams","navigation","SideNavigationMenu","children","selectedItemChanged","openMenu","compactMode","onMenuReady","test","expanded","treeViewRef","wrapperRef","getWrapperRef","element","prevElement","events","treeView","undefined","includes","unselectAll","selectItem","expandItem","collapseAll","keyExpr","selectionMode","focusStateEnabled","expandEvent","onItemClick","onContentReady","useMenuPatch","setEnabled","setTimeout","SideNavOuterToolbar","scrollViewRef","patchCssClass","MenuStatus","Opened","Closed","menuStatus","setMenuStatus","event","prevMenuStatus","stopPropagation","temporaryOpenMenu","TemporaryOpened","onOutsideClick","onNavigationChanged","itemData","node","selected","scrollTo","join","position","closeOnOutsideClick","openedStateMode","revealMode","minSize","maxSize","opened","template","Children","SingleCard","description","Content","exact","UnauthenticatedContent","App","Root","screenSizeClass","useScreenSizeClass","config","rtlEnabled","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","StrictMode","document","getElementById"],"mappings":"yfAEMA,EAAoBC,wBAAc,IAClCC,EAAgB,kBAAMC,qBAAWH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0E,OAAK,EAACzI,KAAK,iCAAlB,SACE,cAACsI,GAAD,CAAYlc,MAAM,kBAAlB,SACE,cAACoY,GAAD,QAGJ,cAAC,IAAD,CAAUN,GAAI,c,aChBpB,SAASyE,KACP,MAA0B/Z,IAAlBV,EAAR,EAAQA,KAER,OAFA,EAAcE,QAGL,cAAC,IAAD,CAAWuK,SAAS,IAGzBzK,EACK,cAACsa,GAAD,IAGF,cAACE,GAAD,IAGM,SAASE,KACtB,IAAMC,E5BX0B,WAChC,IAAM9Z,EAAaF,IAEnB,OAAIE,EAAWwB,QACN,eAGLxB,EAAWuB,SACN,gBAGLvB,EAAWsB,QACN,eAGF,iB4BJiByY,GAMxB,OALAC,aAAO,CACLC,YAAY,IAEfnW,aAAO,8BAGJ,cAAC,IAAD,UACE,cAAC5E,EAAD,UACE,cAACrC,EAAD,UACE,qBAAKqL,UAAS,cAAS4R,GAAvB,SACE,cAACF,GAAD,YCzCZ,IAYeM,GAZS,SAAAC,GAClBA,GAAeA,aAAuBC,UACxC,+BAAqBvU,MAAK,YAAkD,IAA/CwU,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOF,GACPG,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAQN,OCAdlR,IAASC,OACP,cAAC,IAAMwR,WAAP,UACE,cAAC,GAAD,MAEFC,SAASC,eAAe,SAM1BV,M","file":"static/js/main.a19b5401.chunk.js","sourcesContent":["import React, { useState, createContext, useContext, useEffect } from 'react';\n\nconst NavigationContext = createContext({});\nconst useNavigation = () => useContext(NavigationContext);\n\nfunction NavigationProvider(props) {\n const [navigationData, setNavigationData] = useState({});\n\n return (\n \n );\n}\n\nfunction withNavigationWatcher(Component) {\n return function (props) {\n const { path } = props.match;\n const { setNavigationData } = useNavigation();\n\n useEffect(() => {\n setNavigationData({ currentPath: path });\n }, [path, setNavigationData]);\n\n return React.createElement(Component, props);\n }\n}\n\nexport {\n NavigationProvider,\n useNavigation,\n withNavigationWatcher\n}\n","const appInfo = {\n title: 'پردیس فروشگاه کار و اندیشه نوآور',\n // mainAPI: 'http://localhost:42101/',\n mainAPI: 'https://shop.kanco.ir/payment/',\n qomClientId:'B74DDD14-6340-4840-95C2-DB12554843D7'\n //qomClientId:'B74DDD14-6340-4840-95C2-DB12554843D6'\n};\nexport default appInfo;\n\n","import defaultUser from '../utils/default-user';\nimport appInfo from '../app-info';\nimport axios from 'axios';\nexport async function signIn(email, password) {\n try {\n // Send request\n console.log(email, password);\n const postObj = {\n \"email\": email,\n \"password\": password\n }\n const response = await axios.post(appInfo.mainAPI + \"v1/Auth/Login\", postObj, {\n headers: {\n \"Content-Type\": \"application/json\",\n }\n });\n const data = await response;\n if (data.status == 200) {\n localStorage.setItem(\"kancoToken\",data.data.token)\n\n const userProfile = await getUser();\n return {\n isOk: true,\n data: userProfile.data\n };\n } else {\n return {\n isOk: false,\n message: \"Authentication failed\"\n };\n }\n\n }\n catch {\n return {\n isOk: false,\n message: \"Authentication failed\"\n };\n }\n}\n\n\nexport async function getUser() {\n try {\n const response = await axios.get(appInfo.mainAPI + \"v1/Auth/GetUserProfile\", {\n headers: {\n \"Content-Type\": \"application/json\",\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\n\n }\n });\n const data = await response;\n\n if (data.status == 200) {\n return {\n isOk: true,\n data: { ...data.data }\n };\n } else {\n return {\n isOk: false\n };\n }\n\n }\n catch {\n return {\n isOk: false\n };\n }\n}\n\nexport async function createAccount(email, password) {\n try {\n // Send request\n console.log(email, password);\n\n return {\n isOk: true\n };\n }\n catch {\n return {\n isOk: false,\n message: \"Failed to create account\"\n };\n }\n}\n\nexport async function changePassword(email, recoveryCode) {\n try {\n // Send request\n console.log(email, recoveryCode);\n\n return {\n isOk: true\n };\n }\n catch {\n return {\n isOk: false,\n message: \"Failed to change password\"\n }\n }\n}\n\nexport async function resetPassword(email) {\n try {\n // Send request\n console.log(email);\n\n return {\n isOk: true\n };\n }\n catch {\n return {\n isOk: false,\n message: \"Failed to reset password\"\n };\n }\n}\n","import React, { useState, useEffect, createContext, useContext, useCallback } from 'react';\nimport { getUser, signIn as sendSignInRequest } from '../api/auth';\n\nfunction AuthProvider(props) {\n const [user, setUser] = useState();\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n (async function () {\n const result = await getUser();\n if (result.isOk) {\n setUser(result.data);\n }\n\n setLoading(false);\n })();\n }, []);\n\n const signIn = useCallback(async (email, password) => {\n const result = await sendSignInRequest(email, password);\n if (result.isOk) {\n setUser(result.data);\n }\n\n return result;\n }, []);\n\n const signOut = useCallback(() => {\n setUser();\n }, []);\n\n\n return (\n \n );\n}\n\nconst AuthContext = createContext({});\nconst useAuth = () => useContext(AuthContext);\n\nexport { AuthProvider, useAuth }\n","import { useState, useCallback, useEffect } from 'react';\n\nexport const useScreenSize = () => {\n const [screenSize, setScreenSize] = useState(getScreenSize());\n const onSizeChanged = useCallback(() => {\n setScreenSize(getScreenSize());\n }, []);\n\n useEffect(() => {\n subscribe(onSizeChanged);\n\n return () => {\n unsubscribe(onSizeChanged);\n };\n }, [onSizeChanged]);\n\n return screenSize;\n};\n\nexport const useScreenSizeClass = () => {\n const screenSize = useScreenSize();\n\n if (screenSize.isLarge) {\n return 'screen-large';\n }\n\n if (screenSize.isMedium) {\n return 'screen-medium';\n }\n\n if (screenSize.isSmall) {\n return 'screen-small';\n }\n\n return 'screen-x-small';\n}\n\nlet handlers = [];\nconst xSmallMedia = window.matchMedia('(max-width: 599.99px)');\nconst smallMedia = window.matchMedia('(min-width: 600px) and (max-width: 959.99px)');\nconst mediumMedia = window.matchMedia('(min-width: 960px) and (max-width: 1279.99px)');\nconst largeMedia = window.matchMedia('(min-width: 1280px)');\n\n[xSmallMedia, smallMedia, mediumMedia, largeMedia].forEach(media => {\n media.addListener((e) => {\n e.matches && handlers.forEach(handler => handler());\n });\n});\n\nconst subscribe = handler => handlers.push(handler);\n\nconst unsubscribe = handler => {\n handlers = handlers.filter(item => item !== handler);\n};\n\nfunction getScreenSize() {\n return {\n isXSmall: xSmallMedia.matches,\n isSmall: smallMedia.matches,\n isMedium: mediumMedia.matches,\n isLarge: largeMedia.matches\n };\n}\n","import React, { useState } from 'react';\nimport './profile.scss';\nimport Form from 'devextreme-react/form';\n\nexport default function Profile() {\n const [notes, setNotes] = useState(\n 'Sandra is a CPA and has been our controller since 2008. She loves to interact with staff so if you`ve not met her, be certain to say hi.\\r\\n\\r\\nSandra has 2 daughters both of whom are accomplished gymnasts.'\n );\n const employee = {\n ID: 7,\n FirstName: 'Sandra',\n LastName: 'Johnson',\n Prefix: 'Mrs.',\n Position: 'Controller',\n Picture: 'images/employees/06.png',\n BirthDate: new Date('1974/11/15'),\n HireDate: new Date('2005/05/11'),\n Notes: notes,\n Address: '4600 N Virginia Rd.'\n };\n\n return (\n \n

Profile

\n\n
\n
\n \n
\n {notes}\n
\n\n
\n e.dataField === 'Notes' && setNotes(e.value)}\n labelLocation={'top'}\n colCountByScreen={colCountByScreen}\n />\n
\n
\n );\n}\n\nconst colCountByScreen = {\n xs: 1,\n sm: 2,\n md: 3,\n lg: 4\n};\n","import React from 'react';\nimport 'devextreme/data/odata/store';\nimport DataGrid, {\n Column,\n Pager,\n Paging,\n FilterRow,\n Lookup\n} from 'devextreme-react/data-grid';\n\nexport default function Task() {\n return (\n \n

Tasks

\n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n
\n)}\n\nconst dataSource = {\n store: {\n type: 'odata',\n key: 'Task_ID',\n url: 'https://js.devexpress.com/Demos/DevAV/odata/Tasks'\n },\n expand: 'ResponsibleEmployee',\n select: [\n 'Task_ID',\n 'Task_Subject',\n 'Task_Start_Date',\n 'Task_Due_Date',\n 'Task_Status',\n 'Task_Priority',\n 'Task_Completion',\n 'ResponsibleEmployee/Employee_Full_Name'\n ]\n};\n\nconst priorities = [\n { name: 'High', value: 4 },\n { name: 'Urgent', value: 3 },\n { name: 'Normal', value: 2 },\n { name: 'Low', value: 1 }\n];\n","const enums = {\r\n status: [\r\n { name: 'پرداخت نشده', value: 0 },\r\n { name: 'پرداخت شده', value: 1 },\r\n { name: 'درحال نصب', value: 2 },\r\n { name: 'نصب شده', value: 3 },\r\n { name: 'لغو شده', value: 100 },\r\n { name: 'استرداد شده', value: 101 },\r\n // { name: 'استرداد وجه به صورت ناقص', value: 102 },\r\n { name: 'پرداخت ناقص', value: 103 },\r\n { name: 'مشکل در پرداخت', value: 104 },\r\n { name: 'اضافه پرداخت', value: 105 },\r\n { name: 'در حال استرداد', value: 106 },\r\n { name: 'مشکل نصب', value: 110 },\r\n ],\r\n\r\n\r\n paymentStatus: [\r\n { name: 'غیره', value: 0 },\r\n { name: 'با موفقیت', value: 1 },\r\n { name: 'لغو', value: 2 },\r\n { name: 'استرداد شده', value: 3 },\r\n { name: 'در حال استرداد', value:4 },\r\n { name: 'شروع تراکنش', value:5 },\r\n { name: 'مشکل در پرداخت', value: 100 },\r\n ],\r\n\r\n paymentMethods: [\r\n { name: 'غیره', value: 0 },\r\n { name: 'نقد', value: 1 },\r\n { name: 'درگاه اینترنتی سامان', value: 2 },\r\n { name: 'دستگاه POS', value: 3 },\r\n { name: 'کارت به کارت', value: 4 },\r\n ],\r\n\r\n samanRefundStatus: [\r\n { name: 'اجرای درخواست متوقف شده', value: 0 },\r\n { name: 'درخواست در حالت اولیه میباشد', value: 1 },\r\n { name: 'تلاش برای استرداد درخواست انجام شده', value: 2 },\r\n { name: 'با موفقیت', value: 3 },\r\n { name: 'خطا', value:4 },\r\n { name: 'عملیات از سوی پذیرنده لغو شده است', value:5 },\r\n ],\r\n\r\n\r\n};\r\nexport default enums;\r\n\r\n","import React from 'react';\r\nimport jMoment from \"moment-jalaali\";\r\nimport JalaliUtils from \"@date-io/jalaali\";\r\n\r\nimport { DatePicker, MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\n\r\njMoment.loadPersian({ dialect: \"persian-modern\", usePersianDigits: true });\r\nexport default class PersianCalender extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n selectedDate: new Date()\r\n }\r\n this.onValueChanged = this.onValueChanged.bind(this);\r\n this.onSelectionChanged = this.onSelectionChanged.bind(this);\r\n }\r\n\r\n onValueChanged(e) {\r\n this.setState({ selectedDate: e._d })\r\n this.props.data.setValue(e._d);\r\n }\r\n\r\n onSelectionChanged() {\r\n this.props.data.component.updateDimensions();\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n (date ? date.format(\"jYYYY/jMM/jDD\") : \"\")}\r\n value={this.state.selectedDate}\r\n onChange={this.onValueChanged}\r\n\r\n />\r\n \r\n\r\n )\r\n }\r\n}\r\n","import React from 'react';\nimport 'devextreme/data/odata/store';\nimport DataGrid, {\n Column, FilterRow, Scrolling, HeaderFilter, SearchPanel, Button as DevExpressButton, ColumnChooser, Selection, Pager, Paging, TotalItem, Summary, Grouping,\n GroupPanel, FilterBuilderPopup, FilterPanel, StateStoring, GroupItem, SortByGroupSummaryInfo, Export, Lookup\n} from 'devextreme-react/data-grid';\nimport CustomStore from 'devextreme/data/custom_store';\n\nimport appInfo from '../../app-info';\nimport enums from '../../constants/enums';\nimport PersianCalender from '../../components/persianCalender/PersianCalender';\nimport ReactDOM from 'react-dom';\nimport { exportDataGrid } from \"devextreme/excel_exporter\";\nimport { Workbook } from \"exceljs\";\nimport { saveAs } from \"file-saver-es\";\nimport { formatDate } from \"devextreme/localization\";\nimport { Button } from \"devextreme-react/button\";\nimport { Popup } from \"devextreme-react/popup\";\nimport notify from 'devextreme/ui/notify';\nimport axios from 'axios';\nimport LoadPanel from \"devextreme-react/load-panel\";\nimport \"./orders.scss\"\n\n\nvar dataSource;\n\nexport default class Order extends React.Component {\n\n constructor(props) {\n super(props);\n this.state = {\n showRecalculationModal: false,\n loading: false\n }\n this.dataGridRef = React.createRef();\n\n }\n\n\n componentDidMount() {\n this.makeStore()\n }\n\n\n makeStore() {\n dataSource = new CustomStore({\n // key: 'oid',\n //loadUrl: `${AppConfig.infrastructureAPI}Locations/GetIntersections/${localStorage.getItem('selectedCustomerId')}`,\n onBeforeSend: (method, ajaxOptions) => {\n ajaxOptions.xhrFields = { withCredentials: false };\n ajaxOptions.headers = {\n \"Authorization\": `Bearer ${localStorage.getItem('kancoToken')}`\n }\n },\n load: (loadOption) => {\n //console.log(loadOption)\n return fetch(`${appInfo.mainAPI}pardis/orders/AllOrders`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${localStorage.getItem('kancoToken')}`\n },\n body: JSON.stringify(loadOption)\n })\n .then(response => response.json())\n .catch(() => { throw 'Network error' })\n }\n });\n }\n\n get dataGrid() {\n if (this.dataGridRef.current != null) {\n return this.dataGridRef.current.instance;\n }\n return null;\n }\n\n onRowClicked({ data }) {\n this.props.history.push('/order-details/' + data.id);\n }\n\n onExporting(e) {\n const workbook = new Workbook();\n const worksheet = workbook.addWorksheet(\"Main sheet\");\n\n exportDataGrid({\n component: e.component,\n worksheet,\n autoFilterEnabled: true,\n customizeCell(options) {\n const { gridCell, excelCell } = options;\n\n if (\n gridCell.rowType === \"data\" &&\n (gridCell.column.dataField === \"receivedDT\" || gridCell.column.dataField === \"receivedDT\")\n ) {\n excelCell.value = formatDate(excelCell.value, \"shortDate\");\n }\n }\n }).then(() => {\n workbook.xlsx.writeBuffer().then((buffer) => {\n saveAs(\n new Blob([buffer], { type: \"application/octet-stream\" }),\n \"Orders.xlsx\"\n );\n });\n });\n\n e.cancel = true;\n }\n\n\n async onClickUpdatePrice(useOldPrice) {\n var postObj = {\n UseOldPrice: useOldPrice,\n OrderIds: this.dataGrid.getSelectedRowsData().map(x => x.id)\n\n }\n await this.updatePrice(postObj);\n }\n\n async updatePrice(postObj) {\n try {\n this.setState({ loading: true });\n const response = await axios.post(appInfo.mainAPI + \"pardis/orders/UpdateOrdersAmount\", postObj, {\n headers: {\n \"Content-Type\": \"application/json\",\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\n\n }\n });\n const data = await response;\n\n if (data.status == 200) {\n notify(\"قیمت با موفقیت به روزرسانی شد\", \"success\", 1000);\n } else {\n notify(\"خطا در به روزرسانی قیمت\", \"error\", 5000);\n }\n this.setState({ showRecalculationModal: false, loading: false })\n }\n catch (ex) {\n notify(\"خطا در به روزرسانی\" + ex, \"error\", 5000);\n this.setState({ showRecalculationModal: false, loading: false })\n }\n }\n\n\n\n\n render() {\n return (\n \n

سفارشات

\n\n
\n
\n this.setState({ showRecalculationModal: true })}\n text=\"بروزرسانی قیمت\"\n />\n
\n
\n {\n if ((e.dataField === \"receivedDT\" || e.dataField === \"installationDT\")) {\n e.cancel = true;\n let editorComponent =\n ()\n ReactDOM.render(editorComponent, e.editorElement);\n\n }\n }\n }\n\n >\n \n \n\n \n \n\n \n\n \n\n\n \n\n \n\n \n\n\n \n \n \n\n \n\n \n\n {/* */}\n\n \n\n\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n \n\n\n this.setState({ showRecalculationModal: false })}\n >\n
\n this.onClickUpdatePrice(false)}\n text=\"بروزرسانی قیمت جدید\"\n />\n this.onClickUpdatePrice(true)}\n text=\"بروزرسانی قیمت قدیم\"\n />\n
\n \n\n \n
\n )\n }\n}\n\n","import React from 'react';\r\nimport jMoment from \"moment-jalaali\";\r\nimport JalaliUtils from \"@date-io/jalaali\";\r\n\r\nimport { DatePicker, MuiPickersUtilsProvider,DateTimePicker } from \"@material-ui/pickers\";\r\n\r\njMoment.loadPersian({ dialect: \"persian-modern\", usePersianDigits: true });\r\nexport default class PersianDateTimeCalender extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n selectedDate: new Date()\r\n }\r\n this.onValueChanged = this.onValueChanged.bind(this);\r\n this.onSelectionChanged = this.onSelectionChanged.bind(this);\r\n }\r\n\r\n onValueChanged(e) {\r\n this.setState({ selectedDate: e._d })\r\n this.props.data.setValue(e._d);\r\n }\r\n\r\n onSelectionChanged() {\r\n this.props.data.component.updateDimensions();\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n (date ? date.format(\"jYYYY/jMM/jDD HH:MM\") : \"\")}\r\n value={this.state.selectedDate}\r\n onChange={this.onValueChanged}\r\n\r\n />\r\n \r\n\r\n )\r\n }\r\n}\r\n","import React from 'react';\nimport 'devextreme/data/odata/store';\nimport DataGrid, {\n Column, FilterRow, Scrolling, HeaderFilter, SearchPanel, Button as DevExpressButton, ColumnChooser, Selection, Pager, Paging, TotalItem, Summary, Grouping,\n GroupPanel, FilterBuilderPopup, FilterPanel, StateStoring, GroupItem, SortByGroupSummaryInfo, Export, Lookup\n} from 'devextreme-react/data-grid';\nimport CustomStore from 'devextreme/data/custom_store';\n\nimport appInfo from '../../app-info';\nimport enums from '../../constants/enums';\nimport PersianCalender from '../../components/persianCalender/PersianCalender';\nimport ReactDOM from 'react-dom';\nimport { exportDataGrid } from \"devextreme/excel_exporter\";\nimport { Workbook } from \"exceljs\";\nimport { saveAs } from \"file-saver-es\";\nimport { formatDate } from \"devextreme/localization\";\nvar dataSource;\n\n\nexport default class OrderPayments extends React.Component {\n\n componentDidMount() {\n this.makeStore()\n }\n\n makeStore() {\n dataSource = new CustomStore({\n // key: 'oid',\n //loadUrl: `${AppConfig.infrastructureAPI}Locations/GetIntersections/${localStorage.getItem('selectedCustomerId')}`,\n onBeforeSend: (method, ajaxOptions) => {\n ajaxOptions.xhrFields = { withCredentials: false };\n ajaxOptions.headers = {\n \"Authorization\": `Bearer ${localStorage.getItem('kancoToken')}`\n }\n },\n load: (loadOption) => {\n console.log(loadOption)\n return fetch(`${appInfo.mainAPI}pardis/orders/AllPayments`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${localStorage.getItem('kancoToken')}`\n },\n body: JSON.stringify(loadOption)\n })\n .then(response => response.json())\n .catch(() => { throw 'Network error' })\n }\n });\n }\n\n onRowClicked({ data }) {\n this.props.history.push('/order-details/' + data.orderGuidId);\n }\n\n onExporting(e) {\n const workbook = new Workbook();\n const worksheet = workbook.addWorksheet(\"Main sheet\");\n\n exportDataGrid({\n component: e.component,\n worksheet,\n autoFilterEnabled: true,\n customizeCell(options) {\n const { gridCell, excelCell } = options;\n\n if (\n gridCell.rowType === \"data\" &&\n (gridCell.column.dataField === \"paymentDT\")\n ) {\n excelCell.value = formatDate(excelCell.value, \"shortDate\");\n }\n }\n }).then(() => {\n workbook.xlsx.writeBuffer().then((buffer) => {\n saveAs(\n new Blob([buffer], { type: \"application/octet-stream\" }),\n \"Payments.xlsx\"\n );\n });\n });\n\n e.cancel = true;\n }\n\n render() {\n return (\n \n

پرداختی ها

\n\n {\n if ((e.dataField === \"paymentDT\") && e.parentType === \"filterRow\") {\n e.cancel = true;\n let editorComponent =\n ()\n ReactDOM.render(editorComponent, e.editorElement);\n\n }\n }\n }\n >\n \n \n\n \n\n\n \n\n \n \n \n\n \n \n \n \n\n\n \n \n\n \n\n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n\n \n\n\n\n\n \n
\n )\n }\n}\n\n","import React from 'react';\nimport 'devextreme/data/odata/store';\nimport DataGrid, {\n Column, FilterRow, Scrolling, HeaderFilter, SearchPanel, Button as DevExpressButton, ColumnChooser, Selection, Pager, Paging, TotalItem, Summary, Grouping,\n GroupPanel, FilterBuilderPopup, FilterPanel, StateStoring, GroupItem, SortByGroupSummaryInfo, Export, Lookup\n} from 'devextreme-react/data-grid';\nimport CustomStore from 'devextreme/data/custom_store';\n\nimport appInfo from '../../app-info';\nimport enums from '../../constants/enums';\nimport PersianCalender from '../../components/persianCalender/PersianCalender';\nimport ReactDOM from 'react-dom';\nimport { exportDataGrid } from \"devextreme/excel_exporter\";\nimport { Workbook } from \"exceljs\";\nimport { saveAs } from \"file-saver-es\";\nimport { formatDate } from \"devextreme/localization\";\nvar dataSource;\n\nexport default class OrderProducts extends React.Component {\n\n componentDidMount() {\n this.makeStore()\n }\n\n\n makeStore() {\n dataSource = new CustomStore({\n // key: 'oid',\n //loadUrl: `${AppConfig.infrastructureAPI}Locations/GetIntersections/${localStorage.getItem('selectedCustomerId')}`,\n onBeforeSend: (method, ajaxOptions) => {\n ajaxOptions.xhrFields = { withCredentials: false };\n ajaxOptions.headers = {\n \"Authorization\": `Bearer ${localStorage.getItem('kancoToken')}`\n }\n },\n load: (loadOption) => {\n console.log(loadOption)\n return fetch(`${appInfo.mainAPI}pardis/orders/AllProducts`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${localStorage.getItem('kancoToken')}`\n },\n body: JSON.stringify(loadOption)\n })\n .then(response => response.json())\n .catch(() => { throw 'Network error' })\n }\n });\n }\n\n onRowClicked({ data }) {\n this.props.history.push('/order-details/' + data.id);\n }\n onExporting(e) {\n const workbook = new Workbook();\n const worksheet = workbook.addWorksheet(\"Main sheet\");\n\n exportDataGrid({\n component: e.component,\n worksheet,\n autoFilterEnabled: true,\n customizeCell(options) {\n const { gridCell, excelCell } = options;\n\n if (\n gridCell.rowType === \"data\" &&\n (gridCell.column.dataField === \"installationDT\" || gridCell.column.dataField === \"receivedDT\")\n ) {\n excelCell.value = formatDate(excelCell.value, \"shortDate\");\n }\n }\n }).then(() => {\n workbook.xlsx.writeBuffer().then((buffer) => {\n saveAs(\n new Blob([buffer], { type: \"application/octet-stream\" }),\n \"Products.xlsx\"\n );\n });\n });\n\n e.cancel = true;\n }\n\n render() {\n return (\n \n

محصولات

\n {\n if ((e.dataField === \"receivedDT\" || e.dataField === \"installationDT\") && e.parentType === \"filterRow\") {\n e.cancel = true;\n let editorComponent =\n ()\n ReactDOM.render(editorComponent, e.editorElement);\n\n }\n }\n }\n\n >\n \n \n\n \n \n\n\n \n\n \n\n\n \n\n \n\n \n\n \n \n \n \n \n\n \n\n \n\n {/* */}\n\n \n\n\n \n\n\n \n\n \n\n \n\n \n \n \n\n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n\n\n\n \n
\n )\n }\n}\n\n","import React from 'react';\r\nimport 'devextreme/data/odata/store';\r\nimport DataGrid, {\r\n Column, FilterRow, Scrolling, HeaderFilter, SearchPanel, ColumnChooser, Selection, Pager, Paging, TotalItem, Summary, Grouping,\r\n GroupPanel, FilterBuilderPopup, FilterPanel, StateStoring, GroupItem, SortByGroupSummaryInfo, Export, Lookup\r\n} from 'devextreme-react/data-grid';\r\nimport CustomStore from 'devextreme/data/custom_store';\r\nimport { Button } from 'devextreme-react/button';\r\n\r\nimport appInfo from '../../app-info';\r\nimport enums from '../../constants/enums';\r\nimport PersianCalender from '../../components/persianCalender/PersianCalender';\r\nimport ReactDOM from 'react-dom';\r\nimport { exportDataGrid } from \"devextreme/excel_exporter\";\r\nimport { Workbook } from \"exceljs\";\r\nimport { saveAs } from \"file-saver-es\";\r\nimport { formatDate } from \"devextreme/localization\";\r\nimport Form, {\r\n SimpleItem,\r\n Label,\r\n} from 'devextreme-react/form';\r\nimport { DatePicker, MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\nimport JalaliUtils from \"@date-io/jalaali\";\r\nimport notify from 'devextreme/ui/notify';\r\nimport axios from 'axios';\r\n\r\n\r\nvar dataSource;\r\n\r\n\r\nexport default class OrderRefunds extends React.Component {\r\n\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n upateRefundReq: {\r\n endDate: new Date(),\r\n startDate: new Date(new Date().getFullYear() - 1, 1, 1),\r\n },\r\n }\r\n }\r\n\r\n\r\n componentDidMount() {\r\n this.makeStore()\r\n }\r\n\r\n\r\n async updateRefunds() {\r\n try {\r\n const response = await axios.post(appInfo.mainAPI + \"pardis/orders/UpdateRefundStatus\", this.state.upateRefundReq, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\r\n\r\n }\r\n });\r\n const data = await response;\r\n\r\n if (data.status == 200) {\r\n notify(\" موفقیت به روزرسانی شد\", \"success\", 1000);\r\n } else {\r\n notify(\"خطا در به روزرسانی \", \"error\", 1000);\r\n }\r\n\r\n }\r\n catch (ex) {\r\n notify(\"خطا در به روزرسانی\" + ex, \"error\", 1000);\r\n }\r\n }\r\n\r\n makeStore() {\r\n dataSource = new CustomStore({\r\n // key: 'oid',\r\n //loadUrl: `${AppConfig.infrastructureAPI}Locations/GetIntersections/${localStorage.getItem('selectedCustomerId')}`,\r\n onBeforeSend: (method, ajaxOptions) => {\r\n ajaxOptions.xhrFields = { withCredentials: false };\r\n ajaxOptions.headers = {\r\n \"Authorization\": `Bearer ${localStorage.getItem('kancoToken')}`\r\n }\r\n },\r\n load: (loadOption) => {\r\n console.log(loadOption)\r\n return fetch(`${appInfo.mainAPI}pardis/orders/AllRefunds`, {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `Bearer ${localStorage.getItem('kancoToken')}`\r\n },\r\n body: JSON.stringify(loadOption)\r\n })\r\n .then(response => response.json())\r\n .catch(() => { throw 'Network error' })\r\n }\r\n });\r\n }\r\n\r\n onRowClicked({ data }) {\r\n this.props.history.push('/order-details/' + data.orderGuidId);\r\n }\r\n\r\n onExporting(e) {\r\n const workbook = new Workbook();\r\n const worksheet = workbook.addWorksheet(\"Main sheet\");\r\n\r\n exportDataGrid({\r\n component: e.component,\r\n worksheet,\r\n autoFilterEnabled: true,\r\n customizeCell(options) {\r\n const { gridCell, excelCell } = options;\r\n\r\n if (\r\n gridCell.rowType === \"data\" &&\r\n (gridCell.column.dataField === \"paymentDT\")\r\n ) {\r\n excelCell.value = formatDate(excelCell.value, \"shortDate\");\r\n }\r\n }\r\n }).then(() => {\r\n workbook.xlsx.writeBuffer().then((buffer) => {\r\n saveAs(\r\n new Blob([buffer], { type: \"application/octet-stream\" }),\r\n \"Payments.xlsx\"\r\n );\r\n });\r\n });\r\n\r\n e.cancel = true;\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n

استرااد ها

\r\n\r\n
\r\n\r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n \r\n this.updateRefunds()}\r\n />\r\n \r\n\r\n\r\n
\r\n\r\n\r\n {\r\n if ((e.dataField === \"paymentDT\") && e.parentType === \"filterRow\") {\r\n e.cancel = true;\r\n let editorComponent =\r\n ()\r\n ReactDOM.render(editorComponent, e.editorElement);\r\n\r\n }\r\n }\r\n }\r\n >\r\n \r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n\r\n\r\n \r\n
\r\n )\r\n }\r\n}\r\n\r\n","import React from 'react';\r\nimport './orderDetails.scss';\r\n\r\nimport axios from 'axios';\r\nimport appInfo from '../../app-info';\r\nimport enums from '../../constants/enums';\r\nimport Form, {\r\n SimpleItem,\r\n GroupItem,\r\n Label,\r\n} from 'devextreme-react/form';\r\nimport { Button } from 'devextreme-react/button';\r\nimport SelectBox from 'devextreme-react/select-box';\r\nimport ReactDOM from 'react-dom';\r\nimport jMoment from \"moment-jalaali\";\r\nimport JalaliUtils from \"@date-io/jalaali\";\r\nimport { custom } from \"devextreme/ui/dialog\";\r\nimport { Popup } from 'devextreme-react/popup';\r\nimport ScrollView from 'devextreme-react/scroll-view';\r\n\r\nimport { DatePicker, MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\nimport DataGrid, {\r\n Editing,\r\n Column, FilterRow, Scrolling, HeaderFilter, SearchPanel, Button as DevExpressButton, ColumnChooser, Selection, Pager, Paging, TotalItem, Summary, Grouping,\r\n GroupPanel, FilterBuilderPopup, FilterPanel, StateStoring, SortByGroupSummaryInfo, Export, Lookup\r\n} from 'devextreme-react/data-grid';\r\nimport Box, {\r\n Item,\r\n} from 'devextreme-react/box';\r\nimport NumberBox from 'devextreme-react/number-box';\r\n\r\nimport notify from 'devextreme/ui/notify';\r\nimport PersianDateTimeCalender from '../../components/persianDateTimeCalender/PersianDateTimeCalender';\r\nimport { TextBox } from 'devextreme-react';\r\n\r\nexport default class OrderDetails extends React.Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n orderData: {\r\n\r\n },\r\n productsData: [],\r\n showRefundReqModal: false,\r\n refundRequest: {\r\n refundTotally: true,\r\n refundAmount: 0,\r\n paymentId: \"\",\r\n clientRefNumber: \"\"\r\n },\r\n\r\n showListRefundReqModal: false,\r\n lstRefundRequest: [],\r\n\r\n showListRefundReqTransactionModal: false,\r\n lstRefundRequestTransactions: [],\r\n\r\n\r\n }\r\n this.formFieldDataChanged = this.formFieldDataChanged.bind(this);\r\n this.onValueChanged = this.onValueChanged.bind(this);\r\n this.paymentsDataGridRef = React.createRef();\r\n this.productsDataGridRef = React.createRef();\r\n\r\n }\r\n\r\n\r\n componentDidMount() {\r\n this.getInitData(this.props.match.params.orderId)\r\n\r\n }\r\n\r\n async getInitData(id) {\r\n try {\r\n const response = await axios.get(appInfo.mainAPI + \"pardis/orders/\" + id, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\r\n\r\n }\r\n });\r\n const data = await response;\r\n\r\n if (data.status == 200) {\r\n this.setState({ orderData: data.data })\r\n await this.getInitDataProducts(data.data.client.id)\r\n }\r\n\r\n }\r\n catch {\r\n }\r\n }\r\n\r\n\r\n async getInitDataProducts(id) {\r\n try {\r\n const response = await axios.get(appInfo.mainAPI + \"pardis/adminTools/GetClientProducts/\" + id, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\r\n\r\n }\r\n });\r\n const data = await response;\r\n\r\n if (data.status == 200) {\r\n this.setState({ productsData: data.data })\r\n }\r\n\r\n }\r\n catch {\r\n }\r\n }\r\n\r\n addDays(date, days) {\r\n var result = new Date(date);\r\n result.setDate(result.getDate() + days);\r\n return result;\r\n }\r\n\r\n formFieldDataChanged(e) {\r\n const updatedField = e.dataField;\r\n const newValue = e.value;\r\n\r\n if (updatedField == \"alowTempUpdate\" && newValue == true) {\r\n this.setState({ orderData: { ...this.state.orderData, [updatedField]: newValue, tempUpdateExpiry: this.addDays(new Date(), 7) } })\r\n\r\n } else {\r\n this.setState({ orderData: { ...this.state.orderData, [updatedField]: newValue } })\r\n\r\n }\r\n }\r\n\r\n\r\n refundRequestFormFieldDataChanged(e) {\r\n const updatedField = e.dataField;\r\n const newValue = e.value;\r\n console.log(\"FIELESD \" + updatedField + \" \" + newValue)\r\n this.setState({ refundRequest: { ...this.state.refundRequest, [updatedField]: newValue } })\r\n }\r\n\r\n onValueChanged(e, name) {\r\n this.setState({ orderData: { ...this.state.orderData, [name]: e.value } })\r\n }\r\n\r\n onDateValueChanged(e, name) {\r\n console.log(e._d)\r\n this.setState({ orderData: { ...this.state.orderData, [name]: e._d } })\r\n }\r\n\r\n async onUpdate() {\r\n const postObj = {\r\n ...this.state.orderData,\r\n payments: this.paymentsDataGrid.getDataSource().items(),\r\n products: this.productsDataGrid.getDataSource().items(),\r\n }\r\n\r\n try {\r\n const response = await axios.post(appInfo.mainAPI + \"pardis/orders/UpdateOrder\", JSON.stringify(postObj), {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\r\n\r\n }\r\n });\r\n const data = await response;\r\n\r\n if (data.status == 200) {\r\n await this.getInitData(this.props.match.params.orderId)\r\n\r\n notify(\"سفارش با موفقیت به روزرسانی شد\", \"success\", 1000);\r\n } else {\r\n notify(\"خطا در به روزرسانی\", \"error\", 1000);\r\n }\r\n\r\n }\r\n catch (ex) {\r\n notify(\"خطا در به روزرسانی\" + ex, \"error\", 1000);\r\n }\r\n }\r\n\r\n\r\n async onUpdatePrice() {\r\n //dialog to show if you want to save the changed the data or discard it.\r\n let myDialog = custom({\r\n title: \"به روزرسانی قیمت\",\r\n messageHtml: \"به روزرسانی قیمت\",\r\n buttons: [\r\n {\r\n text: \"قیمت قدیم\",\r\n onClick: async (e) => {\r\n var postObj = {\r\n UseOldPrice: true,\r\n OrderIds: [\r\n this.state.orderData.id\r\n ]\r\n }\r\n await this.updatePrice(postObj)\r\n return { buttonText: e.component.option(\"text\") };\r\n },\r\n },\r\n {\r\n text: \"قیمت جدید\",\r\n onClick: async (e) => {\r\n var postObj = {\r\n UseOldPrice: false,\r\n OrderIds: [\r\n this.state.orderData.id\r\n ]\r\n }\r\n await this.updatePrice(postObj)\r\n return { buttonText: e.component.option(\"text\") };\r\n },\r\n },\r\n {\r\n text: \"انصراف\",\r\n onClick: (e) => {\r\n //setBackPermission(false);\r\n return { buttonText: e.component.option(\"text\") };\r\n },\r\n },\r\n ],\r\n });\r\n myDialog.show();\r\n }\r\n\r\n async updatePrice(postObj) {\r\n try {\r\n const response = await axios.post(appInfo.mainAPI + \"pardis/orders/UpdateOrdersAmount\", postObj, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\r\n\r\n }\r\n });\r\n const data = await response;\r\n\r\n if (data.status == 200) {\r\n await this.getInitData(this.props.match.params.orderId)\r\n notify(\"قیمت با موفقیت به روزرسانی شد\", \"success\", 1000);\r\n } else {\r\n notify(\"خطا در به روزرسانی قیمت\", \"error\", 1000);\r\n }\r\n\r\n }\r\n catch (ex) {\r\n notify(\"خطا در به روزرسانی\" + ex, \"error\", 1000);\r\n }\r\n }\r\n\r\n get paymentsDataGrid() {\r\n if (this.paymentsDataGridRef.current != null) {\r\n return this.paymentsDataGridRef.current.instance;\r\n }\r\n return null;\r\n }\r\n get productsDataGrid() {\r\n if (this.productsDataGridRef.current != null) {\r\n return this.productsDataGridRef.current.instance;\r\n }\r\n return null;\r\n }\r\n\r\n onGridRefund(d) {\r\n this.setState({ showRefundReqModal: true, refundRequest: { ...this.state.refundRequest, paymentId: d.row.data.id } })\r\n }\r\n\r\n async onRefund() {\r\n // console.log(\"POST OBJ \" + JSON.stringify(this.state.refundRequest))\r\n try {\r\n const response = await axios.post(appInfo.mainAPI + \"pardis/orders/RefundPayment\", this.state.refundRequest, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\r\n\r\n }\r\n });\r\n const data = await response;\r\n\r\n if (data.status == 200) {\r\n notify(\"بازگشت مبلغ با موفقیت انجام شد\", \"success\", 1000);\r\n this.setState({ showRefundReqModal: false, refundRequest: { ...this.state.refundRequest, paymentId: \"\", refundTotally: true, refundAmount: 0 } })\r\n\r\n } else {\r\n notify(\"خطا در بازگشت مبلغ\", \"error\", 1000);\r\n }\r\n\r\n }\r\n catch (ex) {\r\n notify(\"خطا در مبلغ\" + ex, \"error\", 1000);\r\n }\r\n }\r\n\r\n\r\n\r\n onGridListRefundReq(d) {\r\n this.setState({ showListRefundReqModal: true, lstRefundRequest: d.row.data.refundRequest })\r\n }\r\n\r\n onGridListRefundReqTransaction(d) {\r\n this.setState({ showListRefundReqTransactionModal: true, lstRefundRequestTransactions: d.row.data.transactions })\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n

\r\n this.props.history.goBack()}\r\n />\r\n اطلاعات سفارش

\r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n\r\n\r\n \r\n this.onValueChanged(e, \"totalPrice\")}\r\n format={{\r\n type: \"fixedPoint\",\r\n precision: 0\r\n }}\r\n value={this.state.orderData[\"totalPrice\"]} />\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n {\r\n if ((e.dataField === \"paymentDT\")) {\r\n e.cancel = true;\r\n let editorComponent =\r\n ()\r\n ReactDOM.render(editorComponent, e.editorElement);\r\n\r\n }\r\n }\r\n }\r\n\r\n\r\n >\r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n this.onGridRefund(x)} icon=\"revert\">\r\n\r\n \r\n\r\n this.onGridListRefundReq(x)} icon=\"info\">\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n \r\n\r\n \r\n x.isEnabled === true)} displayExpr=\"title\" valueExpr=\"contractProductId\" />\r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n this.onUpdate()}\r\n />\r\n\r\n this.onUpdatePrice()}\r\n />\r\n\r\n this.props.history.goBack()}\r\n />\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n\r\n this.setState({ showRefundReqModal: false })}\r\n >\r\n \r\n
this.refundRequestFormFieldDataChanged(x)} >\r\n\r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n \r\n this.setState({ refundRequest: { ...this.state.refundRequest, refundAmount: e } })}\r\n format={{\r\n type: \"fixedPoint\",\r\n precision: 0\r\n }}\r\n visible={!this.state.refundRequest.refundTotally}\r\n value={this.state.refundRequest.refundAmount} />\r\n \r\n\r\n\r\n
\r\n
\r\n\r\n
\r\n this.setState({ showRefundReqModal: false })}\r\n text={\"انصراف\"}\r\n />\r\n this.onRefund()}\r\n text={\"برشگت مبلغ\"}\r\n />\r\n\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n this.setState({ showListRefundReqModal: false })}\r\n >\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n this.onGridListRefundReqTransaction(x)} icon=\"info\">\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n this.setState({ showListRefundReqTransactionModal: false })}\r\n >\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n\r\n \r\n \r\n\r\n
\r\n );\r\n }\r\n}\r\n\r\n","import React from 'react';\nimport 'devextreme/data/odata/store';\nimport DataGrid, {\n Column, FilterRow, Scrolling, HeaderFilter, SearchPanel, Button as DevExpressButton, ColumnChooser, Selection, Pager, Paging, TotalItem, Summary, Grouping,\n GroupPanel, FilterBuilderPopup, FilterPanel, StateStoring, GroupItem, SortByGroupSummaryInfo, Export, Lookup, Editing\n} from 'devextreme-react/data-grid';\nimport CustomStore from 'devextreme/data/custom_store';\n\nimport appInfo from '../../app-info';\nimport enums from '../../constants/enums';\nimport PersianCalender from '../../components/persianCalender/PersianCalender';\nimport ReactDOM from 'react-dom';\nimport { exportDataGrid } from \"devextreme/excel_exporter\";\nimport { Workbook } from \"exceljs\";\nimport { saveAs } from \"file-saver-es\";\nimport { formatDate } from \"devextreme/localization\";\nimport axios from 'axios';\nimport notify from 'devextreme/ui/notify';\n\n\nexport default class ClientProducts extends React.Component {\n\n constructor(props) {\n super(props);\n this.state = {\n initData: []\n\n }\n\n }\n\n\n componentDidMount() {\n this.getInitData(appInfo.qomClientId)\n\n }\n\n async getInitData(id) {\n try {\n const response = await axios.get(appInfo.mainAPI + \"pardis/adminTools/GetClientProducts/\" + id, {\n headers: {\n \"Content-Type\": \"application/json\",\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\n\n }\n });\n const data = await response;\n\n if (data.status == 200) {\n this.setState({ initData: data.data })\n }\n\n }\n catch {\n\n\n }\n }\n\n\n\n onExporting(e) {\n const workbook = new Workbook();\n const worksheet = workbook.addWorksheet(\"Main sheet\");\n\n exportDataGrid({\n component: e.component,\n worksheet,\n autoFilterEnabled: true,\n customizeCell(options) {\n const { gridCell, excelCell } = options;\n\n if (\n gridCell.rowType === \"data\" &&\n (gridCell.column.dataField === \"receivedDT\" || gridCell.column.dataField === \"receivedDT\")\n ) {\n excelCell.value = formatDate(excelCell.value, \"shortDate\");\n }\n }\n }).then(() => {\n workbook.xlsx.writeBuffer().then((buffer) => {\n saveAs(\n new Blob([buffer], { type: \"application/octet-stream\" }),\n \"Orders.xlsx\"\n );\n });\n });\n\n e.cancel = true;\n }\n\n async onSaving(e) {\n console.log(e)\n if (e.changes[0].type === \"update\") {\n var postObj = { ...e.changes[0].key, ...e.changes[0].data }\n\n try {\n const response = await axios.post(appInfo.mainAPI + \"pardis/adminTools/UpdateClientProducts\", JSON.stringify(postObj), {\n headers: {\n \"Content-Type\": \"application/json\",\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\n\n }\n });\n const data = await response;\n\n if (data.status == 200) {\n notify(\"محصوب با موفقیت به روزرسانی شد\", \"success\", 1000);\n } else {\n notify(\"خطا در به روزرسانی\", \"error\", 1000);\n }\n\n }\n catch (ex) {\n notify(\"خطا در به روزرسانی\" + ex, \"error\", 1000);\n }\n }\n\n if (e.changes[0].type === \"insert\") {\n var postObj = {\n ...e.changes[0].data,\n clientId: appInfo.qomClientId\n }\n try {\n const response = await axios.post(appInfo.mainAPI + \"pardis/adminTools/AddClientProducts\", postObj, {\n headers: {\n \"Content-Type\": \"application/json\",\n 'Authorization': `Bearer ${localStorage.getItem(\"kancoToken\")}`\n\n }\n });\n const data = await response;\n\n if (data.status == 200) {\n notify(\"محصول با موفقیت اضافه شد\", \"success\", 1000);\n } else {\n notify(\"خطا در به اضافه کردم\", \"error\", 1000);\n }\n\n }\n catch (ex) {\n notify(\"خطا در به اضافه کردن\" + ex, \"error\", 1000);\n }\n\n\n }\n }\n\n render() {\n return (\n \n

لیسا محصولات آبفا

\n \n \n \n\n \n \n\n \n\n \n\n\n \n\n \n\n \n\n\n \n\n\n \n \n \n \n\n\n \n \n\n\n \n\n\n \n
\n )\n }\n}\n\n","import { withNavigationWatcher } from './contexts/navigation';\r\nimport { HomePage, TasksPage, ProfilePage, OrdersPage, OrderDetailsPage, OrderPaymentsPage, OrderProductsPage, ClientProductsPage, OrdedrRefundsPage } from './pages';\r\n\r\nconst routes = [\r\n {\r\n path: '/tasks',\r\n component: TasksPage\r\n },\r\n {\r\n path: '/profile',\r\n component: ProfilePage\r\n },\r\n {\r\n path: '/home',\r\n component: HomePage\r\n },\r\n {\r\n path: '/orders',\r\n component: OrdersPage\r\n },\r\n {\r\n path: '/order-details/:orderId',\r\n component: OrderDetailsPage\r\n },\r\n {\r\n path: '/order-payments',\r\n component: OrderPaymentsPage\r\n },\r\n {\r\n path: '/order-products',\r\n component: OrderProductsPage\r\n },\r\n {\r\n path: '/client-products',\r\n component: ClientProductsPage\r\n },\r\n {\r\n path: '/order-refunds',\r\n component: OrdedrRefundsPage\r\n }\r\n];\r\n\r\nexport default routes.map(route => {\r\n return {\r\n ...route,\r\n component: withNavigationWatcher(route.component)\r\n };\r\n});\r\n","import React from 'react';\nimport './home.scss';\n\nexport default function Home() {\n return (\n \n

صفحه اصلی

\n
\n
\n
\n

به پردیس فروشگاه شرکت کار و اندیشه نوآور خوش آمدید!

\n
\n
\n
\n
\n)}\n","import React, { useMemo } from 'react';\nimport { useHistory } from \"react-router-dom\";\nimport ContextMenu, { Position } from 'devextreme-react/context-menu';\nimport List from 'devextreme-react/list';\nimport { useAuth } from '../../contexts/auth';\nimport './user-panel.scss';\n\nexport default function UserPanel({ menuMode }) {\n const { user, signOut } = useAuth();\n const history = useHistory();\n\n function navigateToProfile() {\n history.push(\"/profile\");\n }\n const menuItems = useMemo(() => ([\n\n {\n text: 'Logout',\n icon: 'runner',\n onClick: signOut\n }\n ]), [signOut]);\n\n return (\n
\n
\n
\n \n
\n
{user.email}
\n
\n\n {menuMode === 'context' && (\n \n \n \n )}\n {menuMode === 'list' && (\n \n )}\n
\n );\n}\n","import React from 'react';\nimport Toolbar, { Item } from 'devextreme-react/toolbar';\nimport Button from 'devextreme-react/button';\nimport UserPanel from '../user-panel/user-panel';\nimport './header.scss';\nimport { Template } from 'devextreme-react/core/template';\n\nexport default function Header({ menuToggleEnabled, title, toggleMenu }) {\n return (\n
\n \n \n \n \n \n \n
\n)}\n","import React from 'react';\nimport './footer.scss';\n\nexport default function Footer({ ...rest }) {\n return