tplus-member 3.40.1 → 3.41.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/member/MemberCardList.js +2 -4
- package/dist/member/MemberCardList.js.map +1 -1
- package/dist/member/ShopMember.js +31 -18
- package/dist/member/ShopMember.js.map +1 -1
- package/dist/member/ShopMember.less +3 -4
- package/dist/member/ShopMemberStorage.js +9 -6
- package/dist/member/ShopMemberStorage.js.map +1 -1
- package/dist/member/api.js +64 -33
- package/dist/member/api.js.map +1 -1
- package/dist/member/index.js +523 -477
- package/dist/member/index.js.map +1 -1
- package/dist/member/index.less +1 -2
- package/dist/member/memberMenu/index.js +46 -35
- package/dist/member/memberMenu/index.js.map +1 -1
- package/dist/member/memberMenu/modifyPass/store.js +81 -31
- package/dist/member/memberMenu/modifyPass/store.js.map +1 -1
- package/dist/member/memberMenuStorage/index.js +1 -1
- package/dist/member/memberMenuStorage/index.js.map +1 -1
- package/dist/member/memberMenuStorage/modifyPass/store.js +111 -43
- package/dist/member/memberMenuStorage/modifyPass/store.js.map +1 -1
- package/dist/member/memberTab/MemberManager.js +22 -17
- package/dist/member/memberTab/MemberManager.js.map +1 -1
- package/dist/member/memberTab.js +19 -14
- package/dist/member/memberTab.js.map +1 -1
- package/dist/stores/MemberStore.js +60 -34
- package/dist/stores/MemberStore.js.map +1 -1
- package/dist/viewDoMain/CheckMemberProcessorBlock.js +4 -1
- package/dist/viewDoMain/CheckMemberProcessorBlock.js.map +1 -1
- package/dist/viewDoMain/StorageAmountChangedProcessorBlock.js +3 -0
- package/dist/viewDoMain/StorageAmountChangedProcessorBlock.js.map +1 -1
- package/dist/views/MemberOrderView.js +2 -4
- package/dist/views/MemberOrderView.js.map +1 -1
- package/dist/views/MemberStoreNewView.js +2 -5
- package/dist/views/MemberStoreNewView.js.map +1 -1
- package/dist/views/MemberStoreView.js +2 -5
- package/dist/views/MemberStoreView.js.map +1 -1
- package/dist/views/MemberStoreViewContainer.js +4 -1
- package/dist/views/MemberStoreViewContainer.js.map +1 -1
- package/package.json +29 -28
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/member/memberMenuStorage/index.js"],"names":["menus1","key","name","visible","icon","auth","SHORTCUT_KEY","display","finish","semi","menus","observer","props","title","subKey","state","modifyPass","passwordTitle","btnDissabled","warnContent","setPwdShortKey","bindCardShow","bindCardBtnDisabled","menuKey","refundShow","refundTitle","memberUnBindCardLoading","refundBtnDisabled","lastesStorageResult","api","MemberStore","changeDisplay","setting_setData","localStore","get","JSON","parse","localStorage","getItem","length","forEach","settingItem","ParamType","Name","Value","storeKey","item","setState","setTimeout","changeState","flag","filterMenus","member","memberEnumState","list","MemberState","Id","notusing","loss","filter","menu","cardList","selected","controllerEvent","memberDto","operationName","card","viewM","context","viewModel","getViewItem","AuthType","CardStatusEnum","Message","warn","cardInfo","CardTypeEnum","WalletEnabled","FreePaymentPasswordStore","storageInit","justifyAuthority","data","IsNeedPassword","value","getCardList","StorageCardNo","params","cardNo","mobile","isStorageCardBindMember","changeBindCardBtnDisabled","MeStorageCardBind","ret","success","MemberMobile","enumController","getEnumOj","TradeType","dto","StorageMutiSettleDetails","pay","v","ThirdPaymentInfo","payment","VoucherType","Payment","REFUND","console","log","resolve","reject","nativeMs","setIpcRendererMethod","res","Code","type","msg","code","storageAmount","stores","memberStore","settlementMemberStore","MeStorageCardId","ID","PresentAmount","BalanceStorage","loadUserInfo","isCanRefund","canReturnAmount","storageInfos","Member","dtMember","isSelectedMember","StorageDetails","Idmember","ThisStorageAmount","StorageType","meStorageCardId","isPresentGiftpack","ThisPresentAmount","redBlueFlagEnum","tradeTypeEnum","finAccountId","paymentTypeId","latestStorageAmount","outTradeNo","StorageAmount","PaymentCode","DynamicPropertyValues","IdbankAccount","IdsettleStyle","DynamicPropertyKeys","DataSource","OrigPayAmount","OrigTradeNo","map","dynamic","thirdPaymentReturnInfo","getThirdPaymentInfo","thirdPayRefund","ReturnedStorage","isSuccess","ex","returnedCash","content","that","ModalWraper","confirm","okText","onOk","submitRefundStorage","handleEvent","then","platform","isHorizontalSunMi","storage","changePassword","reportLoss","cancelLoss","openCard","resetPassword","bindCard","memberUnBindCard","returnedStorage","authProcess","modifyMember","usedPresentAmount","index","status","execute","getMenuItem","changePasswordClick","changePasswordCancel","ref","changeBtnDisabled","bindCardClick","changeBindCardCancel","bindCardRef","changeRefundOk","changeRefundCancel","Component","contextTypes","onEvent","PropTypes","func","object","tags","indexOf","methodName","methodArgs","Action","fromJS","init","settlementControlEvent","onSettleSuccess","modalRouter","hide","callback","show","url","className","memberClass","onHide","handleOk","handleCancel","handleChange","RecordLoss","Success","Msg","Data","dt","Ts","error","catch","e","onCancel","UnRecordLoss","using","MemberType","IsStorage","GetMemberDTO","selectMemberStore","setCurMemberInfo","modalType","closeCk","Loading","destroyOnClose","disabled","bindCardFn","refundable","parseFloat","Number","reduce","total","cur","tstore","obj","paymode","mode","paymodes","find","idSettleStyle","thridPayment","ThirdPaymentReturnInfo","getLatestStorageAmount","cardId","inputRefundAmount","meMemberId","isRefundStorage","MemberName","confirmLoading","MeStorageCardUnbind","loadingBtn","newStyle","click"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AACA;;;;AACA;;AACA;;;;AACA;;;;;;AAEA,IAAIA,SAAS,CAAC;AACVC,SAAK,SADK;AAEVC,UAAM,IAFI;AAGVC,aAAS,IAHC;AAIVC,UAAM,QAJI;AAKVC,UAAK,SALK;AAMVC,kBAAc;AANJ,CAAD,EAOV;AACCL,SAAK,iBADN;AAECC,UAAM,KAFP;AAGCC,aAAS,IAHV;AAICC,UAAM,WAJP;AAKCC,UAAK,eALN;AAMCC,kBAAc;AANf,CAPU,EAcV;AACCL,SAAK,gBADN;AAECC,UAAM,MAFP;AAGCC,aAAS,IAHV;AAICC,UAAM,aAJP;AAKCC,UAAK,gBALN;AAMCC,kBAAc;AANf,CAdU;AAsBb;AACA;A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,IAAjD,YAA0D2Q,eAAe,KAAf,GAAuB,gBAAvB,GAA0C,4CAApG,WAAoJC,YAAY,cAAhK,CAAjB;AACH,iCAAS,mBAAM;AACX,gCAAID,eAAe,KAAnB,EAA0B,OAAKE,KAAL,CAAWtN,KAAK3D,GAAhB,EAAqB2D,KAAKvD,IAA1B;AAC7B;AAHE;AAKC;AAAA;AAAA;AAAK,sDAAC,2BAAD,IAAO,MAAMuD,KAAKxD,IAAlB,GAAL;AAAqC;AAAA;AAAA;AAAA;AAAA,yBAArC;AAAsD;AAAA;AAAA,8BAAK,WAAU,YAAf;AAA6BwD,iCAAKtD;AAAlC;AAAtD;AALD,iBAAP;AAOH;AACJ,SAnBD,MAmBO,IAAIsE,iBAAiB,cAAjB,IAAmC,CAACC,aAApC,IAAqDjB,KAAKvD,IAAL,KAAc,aAAvE,EAAsF;AACzF;AACH,SAFM,MAGA;AACH,mBACA;AAAA;AAAA;AACI,yBAAKsL,KADT;AAEI,2DAAoC,SAAQ/H,KAAKvD,IAAjD,YAA0D2Q,eAAe,KAAf,GAAuB,gBAAvB,GAA0C,4CAApG,WAAoJC,YAAY,cAAhK,CAFJ;AAGI,6BAAS,mBAAM;AACX,4BAAID,eAAe,KAAnB,EAA0B,OAAKE,KAAL,CAAWtN,KAAK3D,GAAhB,EAAqB2D,KAAKvD,IAA1B,EAAgCuD,KAAK1D,IAArC;AAC7B;AALL;AAOI,8CAAC,2BAAD,IAAO,MAAM0D,KAAKxD,IAAlB,GAPJ;AAOoC;AAAA;AAAA;AAAOwD,yBAAK1D;AAAZ,iBAPpC;AAQI;AAAA;AAAA,sBAAK,WAAU,YAAf;AAA6B0D,yBAAKtD;AAAlC;AARJ,aADA;AAYH;AACJ,K","file":"index.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { observer, stores,nativeMs } from \"mutants-microfx\"\r\nimport { Action } from 'mutants-appfx'\r\nimport { toJS } from 'mobx';\r\nimport './style.less';\r\nimport { Ticon, ModalWraper, Message,Loading,Input } from 'tplus-components-touch'\r\nimport { platform, localStore, enumController } from 'mutants-util';\r\nimport { formatPrecision, getFixedNumber } from '../../utils'\r\nimport ModifyPass from './modifyPass'\r\nimport ChangeMemberCard from './changeMemberCard'\r\nimport { PropTypes } from 'prop-types'\r\nimport MemberStore from '../api';\r\nimport BindCard from './bindCard'\r\n\r\nlet menus1 = [{\r\n key: 'storage',\r\n name: '储值',\r\n visible: true,\r\n icon: 'chuzhi',\r\n auth:'Storage',\r\n SHORTCUT_KEY: ''\r\n}, {\r\n key: 'returnedStorage',\r\n name: '退储值',\r\n visible: true,\r\n icon: 'tuichuzhi',\r\n auth:'RefundStorage',\r\n SHORTCUT_KEY: ''\r\n}, {\r\n key: 'changePassword',\r\n name: '修改密码',\r\n visible: true,\r\n icon: 'xiugaimima1',\r\n auth:'ModifyPassword',\r\n SHORTCUT_KEY: ''\r\n},\r\n// {\r\n// key: 'reportLoss',\r\n// name: '挂失',\r\n// visible: true,\r\n// icon: 'guashi',\r\n// auth:'RecordLoss'\r\n\r\n// },\r\n {\r\n key: 'cancelLoss',\r\n name: '取消挂失',\r\n visible: true,\r\n icon: 'quxiaoguashi',\r\n auth:'RecordLoss',\r\n SHORTCUT_KEY: ''\r\n}, {\r\n key: 'resetPassword',\r\n name: '重置密码',\r\n visible: true,\r\n icon: 'chongzhimima',\r\n auth:'PosResetPwd',\r\n SHORTCUT_KEY: ''\r\n},{\r\n key: 'memberBindCard',\r\n name: '会员绑定',\r\n visible: true,\r\n icon: 'huiyuanbangding',\r\n auth:'BindStorageCard',\r\n SHORTCUT_KEY: ''\r\n},\r\n{\r\n key: 'memberUnBindCard',\r\n name: '解绑',\r\n visible: true,\r\n icon: 'jiebang',\r\n auth:'BindStorageCard',\r\n SHORTCUT_KEY: ''\r\n}\r\n]\r\nconst display = {\r\n finish: ['storage', 'changePassword', 'reportLoss', 'cancelLoss'],\r\n semi: ['openCard']\r\n}\r\n\r\nlet menus = [];\r\n@observer\r\nexport default class extends Component {\r\n \r\n constructor(props) {\r\n super(props)\r\n let { title, subKey } = props;\r\n this.state = {\r\n menus: menus1,\r\n modifyPass: false,\r\n passwordTitle: '换卡',\r\n btnDissabled: true,\r\n warnContent: '',\r\n setPwdShortKey: '',\r\n bindCardShow: false, // 是否显示会员绑卡,默认否\r\n bindCardBtnDisabled: true, // 会员绑卡确定按钮disabled\r\n menuKey: null, // 用来判断是否是储值,设置密码的时候使用\r\n refundShow: false, // 是否显示退储值,默认否\r\n refundTitle: '退储值', // 退储值名称\r\n memberUnBindCardLoading: false, // 解绑按钮loadong\r\n refundBtnDisabled: false, // 退储值disabled\r\n lastesStorageResult: {} // 最后一次储值的信息\r\n }\r\n this.api = MemberStore;\r\n }\r\n\r\n static contextTypes = {\r\n onEvent: PropTypes.func,\r\n viewModel: PropTypes.object,\r\n stores: PropTypes.object\r\n }\r\n\r\n componentWillMount() {\r\n this.changeDisplay('finish')\r\n }\r\n\r\n componentDidMount() {\r\n let setting_setData = localStore.get(\"setting_setData\");\r\n if(setting_setData == null){ \r\n setting_setData = JSON.parse(localStorage.getItem(\"setting_setData\"));\r\n }\r\n if(setting_setData && setting_setData.length != 0){\r\n setting_setData.forEach((settingItem)=>{\r\n if(settingItem.ParamType && settingItem.ParamType === \"SHORTCUT_KEY\"){\r\n const { Name, Value} = settingItem || {};\r\n const { title, storeKey } = this.props;\r\n menus = (menus1);\r\n menus.forEach((item) => {\r\n if (item.auth === Name) {\r\n item.SHORTCUT_KEY = Value;\r\n }\r\n })\r\n if (Name === 'MemberSetPassword') {\r\n this.setState({\r\n setPwdShortKey: Value\r\n })\r\n }\r\n }\r\n })\r\n }\r\n setTimeout(() => { this.changeState() }, 0)\r\n }\r\n\r\n componentWillReceiveProps() {\r\n this.changeState()\r\n }\r\n\r\n filterMenus = (tags) => {\r\n const { title, storeKey } = this.props;\r\n menus = (menus1);\r\n return menus.filter((menu) => {\r\n return ~tags.indexOf(menu.key)\r\n })\r\n }\r\n\r\n changeDisplay(flag = 'finish') {\r\n const menus = this.filterMenus(display[flag])\r\n this.setState({ menus });\r\n }\r\n\r\n changeState() {\r\n let { member, memberEnumState } = this.props;\r\n const { title, storeKey } = this.props;\r\n let list = (menus1);;\r\n\r\n if (member && member.MemberState) {\r\n if(member.MemberState.Id == memberEnumState.notusing){\r\n this.changeDisplay('semi')\r\n return;\r\n }\r\n this.changeDisplay('finish')\r\n if (member.MemberState.Id == memberEnumState.loss) {\r\n list = menus.filter((menu) => {\r\n return menu.key !== 'reportLoss'&&menu.key !== 'openCard'\r\n })\r\n }else{\r\n list = menus.filter((menu) => {\r\n return menu.key !== 'cancelLoss'&&menu.key !== 'openCard'\r\n })\r\n }\r\n }\r\n this.setState({ menus: list })\r\n }\r\n\r\n controllerEvent = (methodName, methodArgs) => {\r\n return this.context.onEvent({ 'controllerEvent': Action.fromJS(this.context.viewModel, methodName) }, 'controllerEvent', methodArgs);\r\n }\r\n\r\n async handleEvent(auth) {\r\n const { cardList = [], selected = 0 } = this.props;\r\n await this.controllerEvent('ValidateOperationName', { memberDto: cardList && cardList.length && cardList[selected], operationName: auth, card: 'card' });\r\n let viewM = this.context.viewModel.getViewItem('Voucher');\r\n if (viewM && viewM.AuthType === false) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n\r\n async justifyAuthority() {\r\n const { cardList = [], selected = 0, } = this.props;\r\n const {CardStatusEnum} = cardList[selected] || {};\r\n if (CardStatusEnum === 'DISABLED') {\r\n Message.warn('该储值卡未启用,不能进行该操作!');\r\n return false;\r\n } else if (CardStatusEnum === 'REFUNDED_CARD') {\r\n Message.warn('该储值卡已退卡,不能进行该操作!');\r\n return false;\r\n } else if(CardStatusEnum === 'REFUNDING_CARD') {\r\n Message.warn('该储值卡退卡中,不能进行该操作!');\r\n return false;\r\n } else if (CardStatusEnum === 'INVALIDATION') {\r\n Message.warn('该储值卡已失效,不能进行该操作!');\r\n return false;\r\n } else if (CardStatusEnum === 'EXPIRED') {\r\n Message.warn('该储值卡已过期,不能进行该操作!');\r\n return false;\r\n }\r\n }\r\n\r\n async storage() {\r\n const { cardList = [], selected = 0, } = this.props;\r\n if (cardList && cardList.length) {\r\n let cardInfo = cardList[selected];\r\n const {CardTypeEnum, WalletEnabled, FreePaymentPasswordStore} = cardInfo || {};\r\n if (CardTypeEnum === 'BALANCE_CARD') {\r\n if (FreePaymentPasswordStore || WalletEnabled) {\r\n this.storageInit();\r\n } else {\r\n this.setState({ modifyPass: true, passwordTitle: '设置密码', warnContent: '' });\r\n } \r\n } else {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n this.storageInit(); \r\n }\r\n }\r\n }\r\n\r\n storageInit = () => {\r\n const { cardList = [], getCardList, selected = 0, loadUserInfo } = this.props;\r\n const { StorageCardNo, ID } = cardList[selected] || {};\r\n const { data: { Member: dtMember = {} } = {} } = this.context.viewModel || {};\r\n const isSelectedMember = !!dtMember.ID;\r\n stores.memberStore.init({\r\n cardInfo: cardList[selected],\r\n settlementControlEvent: {\r\n onSettleSuccess: () => {\r\n stores.modalRouter.hide('/memberstore')\r\n if (!!isSelectedMember && dtMember.ID === ID) {\r\n loadUserInfo(ID)\r\n }\r\n getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo)\r\n }\r\n },\r\n callback: () => {\r\n stores.modalRouter.show({\r\n url: '/memberstore',\r\n title: '储值',\r\n className: 'memberContainer1',\r\n memberClass:'memberClassWidth',\r\n onHide: () => {\r\n stores.modalRouter.hide('/memberstore')\r\n } \r\n })\r\n }\r\n })\r\n }\r\n\r\n //修改密码\r\n changePasswordClick = () => {\r\n if (this.modifyPass) this.modifyPass.handleOk()\r\n }\r\n // 修改密码\r\n async changePassword() {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n const { cardList = [], selected = 0 } = this.props\r\n const {IsNeedPassword, CardTypeEnum} = cardList[selected] || {}\r\n if (CardTypeEnum !== 'BALANCE_CARD' && !IsNeedPassword) {\r\n Message.warn(\"此卡没启用密码!\");\r\n return;\r\n }\r\n this.setState({ modifyPass: true, passwordTitle: '修改密码' });\r\n }\r\n\r\n // 重置密码\r\n async resetPassword() {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n const { cardList = [], selected = 0 } = this.props\r\n const {IsNeedPassword, CardTypeEnum} = cardList[selected] || {}\r\n if (CardTypeEnum !== 'BALANCE_CARD' && !IsNeedPassword) {\r\n Message.warn(\"此卡没启用密码!\");\r\n return;\r\n }\r\n this.setState({ modifyPass: true, passwordTitle: '重置密码' });\r\n }\r\n\r\n changePasswordCancel = () => {\r\n this.setState({ modifyPass: false })\r\n this.modifyPass.handleCancel();\r\n }\r\n\r\n // 注销卡\r\n reportLoss = () => {\r\n let { member, handleChange, memberEnumState } = this.props;\r\n ModalWraper.confirm({\r\n title: '提示',\r\n content: '确定要挂失该会员卡吗?',\r\n onOk: async () => {\r\n this.api.RecordLoss(member).then(ret => {\r\n const { Success, Msg, Data } = ret;\r\n if (Success === true && Data) {\r\n const dt = JSON.parse(Data);\r\n member.Ts = dt.Ts;\r\n member.MemberState.Id = memberEnumState.loss;\r\n handleChange && handleChange(member);\r\n Message.success('挂失成功。')\r\n } else {\r\n Message.error(\"挂失失败:\" + Msg)\r\n }\r\n }).catch(e => {\r\n console.log('err', e);\r\n })\r\n },\r\n onCancel() {\r\n },\r\n onHide: () => { \r\n }\r\n })\r\n }\r\n //取消注销卡\r\n cancelLoss = () => {\r\n if(!this.api) return;\r\n let { member,handleChange, memberEnumState } = this.props;\r\n ModalWraper.confirm({\r\n title: '提示',\r\n content: '确定要取消挂失该会员卡吗?',\r\n onOk: async () => {\r\n this.api.UnRecordLoss(member).then(ret => {\r\n const { Success, Msg, Data } = ret;\r\n if (Success === true && Data) {\r\n const dt = JSON.parse(Data);\r\n member.Ts = dt.Ts;\r\n member.MemberState.Id = memberEnumState.using;\r\n handleChange && handleChange(member);\r\n Message.success('取消挂失成功。')\r\n } else {\r\n Message.error(\"取消挂失败:\" + Msg)\r\n }\r\n }).catch(e => {\r\n console.log('err', e);\r\n })\r\n },\r\n onCancel() {\r\n },\r\n onHide: () => { \r\n }\r\n })\r\n }\r\n\r\n // 开卡\r\n openCard = () => {\r\n const { member, selected = 0, memberEnumState } = this.props;\r\n const { ID, MemberType: { IsStorage } = {} } = member || {};\r\n memberStore.GetMemberDTO(ID, false).then((ret) => {\r\n stores.selectMemberStore.setCurMemberInfo(ret)\r\n stores.modalRouter.show({\r\n url: '/AA/OPENCARD',\r\n title: '开卡',\r\n className: 'memberAddModal',\r\n modalType: 'big',\r\n onHide: () => stores.modalRouter.hide('/AA/OPENCARD'),\r\n closeCk: () => {\r\n member.MemberState.Id = memberEnumState.using;\r\n }\r\n\r\n\r\n })\r\n Loading.hide();\r\n })\r\n stores.modalRouter.show({\r\n url: '/AA/OPENCARD',\r\n title: '开卡',\r\n className: 'memberAddModal',\r\n modalType: 'big',\r\n destroyOnClose: true,\r\n onHide: () => stores.modalRouter.hide('/AA/OPENCARD'),\r\n closeCk: () => {\r\n member.MemberState.Id = memberEnumState.using;\r\n },\r\n onHide: () => { \r\n }\r\n })\r\n Loading.hide();\r\n } \r\n\r\n // 点击会员绑卡\r\n bindCard = async () => {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n const { cardList = [], selected = 0 } = this.props\r\n const {ID} = cardList[selected] || {}\r\n if (!!ID) {\r\n Message.error('该储值卡已经绑定,不能再次进行绑定')\r\n return\r\n }\r\n this.setState({ bindCardShow: true})\r\n }\r\n\r\n // 点击关闭绑卡\r\n changeBindCardCancel = async () => {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n this.setState({\r\n bindCardShow: false,\r\n bindCardBtnDisabled: true\r\n })\r\n }\r\n\r\n // 修改会员绑卡disabled\r\n changeBindCardBtnDisabled = (disabled) => {\r\n this.setState({\r\n bindCardBtnDisabled: disabled\r\n })\r\n }\r\n\r\n // 点击会员绑卡确定按钮\r\n bindCardClick = () => {\r\n if (this.bindCardRef) {\r\n const { storeKey } = this.props\r\n this.bindCardFn(this.bindCardRef.state)\r\n }\r\n }\r\n\r\n // MeStorageCard > gridTemplateUser > MeStorageCard.cardbatchExport\r\n // 绑卡/会员绑卡确定按钮后,如果是会员绑卡\r\n async bindCardFn (state) {\r\n const { value } = state\r\n const { getCardList, cardList = [], selected = 0} = this.props\r\n const {StorageCardNo} = cardList[selected] || {}\r\n const params = {\r\n cardNo: StorageCardNo,\r\n mobile: value,\r\n isStorageCardBindMember: true\r\n }\r\n this.changeBindCardBtnDisabled(true)\r\n try {\r\n const ret = await this.api.MeStorageCardBind(params)\r\n this.changeBindCardBtnDisabled(false)\r\n Message.success('绑定成功')\r\n getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo)\r\n this.setState({\r\n bindCardShow: false\r\n })\r\n } catch (err) {\r\n this.changeBindCardBtnDisabled(false)\r\n }\r\n }\r\n\r\n // 点击退储值的取消按钮\r\n changeRefundCancel = () => {\r\n this.setState({\r\n refundShow: false,\r\n })\r\n }\r\n\r\n\r\n // 点击退储值的确定按钮\r\n changeRefundOk = async () => {\r\n const { cardList = [], selected = 0 } = this.props\r\n const {MeStorageCardId, BalanceStorage = 0, PresentAmount = 0, StorageCardNo, ID} = (cardList.length && cardList[selected]) || {};\r\n \r\n const {isCanRefund = false, canReturnAmount = 0, storageInfos = []} = this.state.lastesStorageResult || {}\r\n const refundable = parseFloat(getFixedNumber(canReturnAmount))\r\n const storageAmount = getFixedNumber(0-(canReturnAmount))\r\n\r\n // 退款金额小于等于0,不允许退款\r\n if (Number(canReturnAmount) <= 0) {\r\n Message.error('无可退金额,不支持退款!')\r\n return\r\n }\r\n\r\n // 返回的isCanRefund如果是false,不支持原路退回,弹出退现金提示\r\n if (!isCanRefund) {\r\n this.returnedCash(`只能退现金,是否继续`, storageAmount)\r\n return\r\n }\r\n\r\n // 计算最后一次储值的总金额,\r\n const latestStorageAmount = storageInfos.reduce((total, cur) => total + cur.latestStorageAmount, 0)\r\n // 退款只支持退最后一次储值的金额,如果最后一次储值的金额小于可退金额,弹出提示。\r\n if (latestStorageAmount && latestStorageAmount < refundable) {\r\n this.returnedCash(`退款大于最后一次储值金额,无法原路退回,只可退现金!是否退款?`, storageAmount)\r\n return\r\n }\r\n \r\n this.submitRefundStorage(cardList[selected], storageAmount)\r\n }\r\n\r\n // 获取二开支付信息,如果有的话返回。\r\n getThirdPaymentInfo = (item, tstore) => {\r\n const { paymentTypeId, thirdPaymentReturnInfo } = item || {};\r\n let obj = {};\r\n let paymode = tstore && tstore.paymode;\r\n if (paymode) {\r\n let mode = paymode && paymode.paymodes.find(v => v.idSettleStyle == paymentTypeId)\r\n obj = thirdPaymentReturnInfo ?\r\n {\r\n ThirdPaymentInfo: mode && mode.thridPayment || null,\r\n ThirdPaymentReturnInfo: thirdPaymentReturnInfo\r\n } : {};\r\n }\r\n return obj;\r\n }\r\n\r\n // 执行储值退款\r\n async thirdPayRefund(params) {\r\n try {\r\n const { TradeType } = enumController.getEnumOj();\r\n const dto = params.StorageMutiSettleDetails;\r\n const pay = dto && dto.filter(v => v.ThirdPaymentInfo);\r\n if (pay && pay.length > 0) {\r\n const payment = pay[0];\r\n const params = { VoucherType: 2, Payment: payment, TradeType: TradeType.REFUND, dto: dto };\r\n console.log('退储值刷卡参数:', JSON.stringify(params));\r\n let ret = await new Promise((resolve, reject) => {\r\n nativeMs.setIpcRendererMethod('ThirdPayment', { ...params }, res => {\r\n return resolve(res);\r\n })\r\n })\r\n console.log('退储值刷卡返回:', ret);\r\n ret = JSON.parse(ret);\r\n const { Code, Message } = ret || {};\r\n if (Code > 0) {\r\n return { type: false, msg: Message, code: Code };\r\n } else {\r\n return { type: true, msg: Message, code: Code };\r\n }\r\n }\r\n return { type: true};\r\n }\r\n catch (ex) {\r\n return { type: false,msg: ex, code: '9999' }\r\n }\r\n }\r\n\r\n // 点击退储值确定或者退现金之后,请求数据 isCash, 是否是现金结算\r\n async submitRefundStorage(cardInfo = {}, storageAmount) {\r\n if (!cardInfo) return;\r\n const { memberStore, settlementMemberStore } = stores || {};\r\n const { data = {} } = memberStore;\r\n const { MeStorageCardId, StorageCardNo, ID, PresentAmount = 0, BalanceStorage = 0} = cardInfo\r\n const { getCardList, cardList = [], loadUserInfo} = this.props \r\n const { isCanRefund = false, canReturnAmount = 0, storageInfos = [] } = this.state.lastesStorageResult || {}\r\n const { data: { Member: dtMember = {} } = {} } = this.context.viewModel || {};\r\n const isSelectedMember = !!dtMember.ID;\r\n const params = {\r\n ...data,\r\n StorageDetails: [{\r\n Idmember: ID,\r\n ThisStorageAmount: storageAmount,\r\n StorageType: {},\r\n meStorageCardId: MeStorageCardId,\r\n isPresentGiftpack: data.StorageDetails[0].isPresentGiftpack,\r\n ThisPresentAmount: getFixedNumber(0-(BalanceStorage - canReturnAmount))\r\n }],\r\n redBlueFlagEnum: 'RED',\r\n storageAmount: storageAmount,\r\n tradeTypeEnum: 'REFUND_CARD'\r\n }\r\n\r\n // 如果isCanRefund是false的话,说明是需要退现金,入参的计算方式明细金额是需要退的总金额\r\n if (!isCanRefund) {\r\n const { finAccountId, paymentTypeId, latestStorageAmount, outTradeNo } = storageInfos[0] || {}\r\n params.StorageMutiSettleDetails = [{\r\n StorageAmount: storageAmount,\r\n PaymentCode: \"\",\r\n DynamicPropertyValues: [],\r\n IdbankAccount: finAccountId,\r\n Code: 1,\r\n IdsettleStyle: paymentTypeId,\r\n DynamicPropertyKeys: [],\r\n DataSource: {},\r\n OrigPayAmount: latestStorageAmount,\r\n OrigTradeNo: outTradeNo\r\n }]\r\n } else {\r\n params.StorageMutiSettleDetails = storageInfos.map(item => {\r\n let dynamic = item.thirdPaymentReturnInfo ? this.getThirdPaymentInfo(item, settlementMemberStore) : {};\r\n return {\r\n StorageAmount: '-' + item.latestStorageAmount,\r\n PaymentCode: \"\",\r\n DynamicPropertyValues: [],\r\n IdbankAccount: item.finAccountId,\r\n Code: 1,\r\n IdsettleStyle: item.paymentTypeId,\r\n DynamicPropertyKeys: [],\r\n DataSource: {},\r\n OrigPayAmount: item.latestStorageAmount,\r\n OrigTradeNo: item.outTradeNo,\r\n ...dynamic\r\n }\r\n })\r\n }\r\n\r\n // 二开支付处理\r\n let ret = await this.thirdPayRefund(params);\r\n const { type, code } = ret || {};\r\n if (type === false) {\r\n Message.warn(`刷卡支付失败,错误码:${code}`);\r\n return;\r\n }\r\n\r\n await this.setState({\r\n refundBtnDisabled: true\r\n })\r\n try {\r\n const ret = await this.api.ReturnedStorage(params)\r\n const { isSuccess, ex } = ret.data || {}\r\n if (isSuccess === true || isSuccess === 'true') {\r\n if (!!isSelectedMember && dtMember.ID === ID) {\r\n loadUserInfo(ID)\r\n }\r\n getCardList && getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo)\r\n Message.success('退储值成功!')\r\n } else {\r\n this.returnedCash(`只能退现金,是否继续`, storageAmount)\r\n }\r\n \r\n await this.setState({\r\n refundBtnDisabled: false,\r\n refundShow: false\r\n })\r\n } catch (err) {\r\n await this.setState({\r\n refundBtnDisabled: false\r\n })\r\n }\r\n }\r\n // 退现金提示\r\n returnedCash (content, storageAmount) {\r\n const that = this\r\n ModalWraper.confirm({\r\n title: '提示',\r\n content,\r\n okText: '现金',\r\n onOk: () => {\r\n const {cardList = [], selected} = that.props\r\n that.setState({\r\n refundShow: false\r\n })\r\n that.submitRefundStorage(cardList[selected], storageAmount)\r\n }\r\n })\r\n }\r\n // 点击退储值\r\n returnedStorage = async () => {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n const { cardList = [], selected = 0 } = this.props\r\n const { Id, MeStorageCardId, BalanceStorage = 0, PresentAmount = 0 } = cardList[selected] || {}\r\n\r\n // 获取最后一次储值信息\r\n const refundable = parseFloat(getFixedNumber(BalanceStorage - PresentAmount))\r\n const lastesStorageResult = await this.api.getLatestStorageAmount({cardId: MeStorageCardId, inputRefundAmount: refundable})\r\n this.setState({\r\n lastesStorageResult: lastesStorageResult.data || {}\r\n })\r\n\r\n cardList[selected].meMemberId = Id\r\n cardList[selected].isRefundStorage = 1 // 自己添加参数,用来判断是储值还是退储值\r\n stores.memberStore.init({\r\n cardInfo: cardList[selected],\r\n settlementControlEvent: {},\r\n callback: () => {\r\n this.setState({\r\n refundShow: true\r\n })\r\n }\r\n })\r\n }\r\n // 点击解绑\r\n memberUnBindCard = async () => {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n const { cardList = [], selected = 0 } = this.props\r\n const {StorageCardNo, MemberMobile, MemberName, ID} = cardList[selected] || {}\r\n if (!ID) {\r\n Message.error('该卡未绑定会员')\r\n return\r\n }\r\n ModalWraper.confirm({\r\n title: '提示',\r\n content: `此卡属于${MemberName || MemberMobile}会员,确认解绑吗?`,\r\n confirmLoading: this.state.memberUnBindCardLoading,\r\n onOk: async () => {\r\n this.setState({\r\n memberUnBindCardLoading: true\r\n })\r\n this.api.MeStorageCardUnbind({StorageCardNo}).then(res => {\r\n const { getCardList } = this.props\r\n Message.success('解绑成功')\r\n getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo)\r\n this.setState({\r\n memberUnBindCardLoading: false\r\n })\r\n }).catch(() => {\r\n this.setState({\r\n memberUnBindCardLoading: false\r\n })\r\n })\r\n },\r\n })\r\n }\r\n click(key, auth, name) {\r\n this.setState({\r\n warnContent: ''\r\n })\r\n this.handleEvent(auth).then(ret=>{\r\n if (key === 'storage') {\r\n this.setState({\r\n menuKey: 'storage'\r\n })\r\n } else {\r\n this.setState({\r\n menuKey: null\r\n })\r\n }\r\n if (ret === true) {\r\n const { isHorizontalSunMi } = platform || {};\r\n switch (key) {\r\n case 'storage': this.storage(); break;\r\n case 'changePassword': this.changePassword(); break;\r\n case 'reportLoss': this.reportLoss(); break;\r\n case 'cancelLoss': this.cancelLoss(); break;\r\n case 'openCard': this.openCard(); break;\r\n case 'resetPassword': this.resetPassword(); break;\r\n case 'memberBindCard': this.bindCard(key, name); break;\r\n case 'memberUnBindCard': this.memberUnBindCard(); break;\r\n case 'returnedStorage': this.returnedStorage(); break;\r\n }\r\n }\r\n })\r\n }\r\n\r\n changeBtnDisabled = (value) => {\r\n this.setState({\r\n btnDissabled: value\r\n })\r\n }\r\n\r\n getMenuItem = (index, menu) => {\r\n let {loadingBtn, cardList = [], selected = 0} = this.props;\r\n const { setPwdShortKey } = this.state || {};\r\n let newStyle =localStore && localStore.get('voucherDefaultPosMode')=='voucher';\r\n const { WalletEnabled, CardTypeEnum } = cardList && cardList.length && cardList[selected] || {};\r\n // 控制显示修改密码还是设置密码\r\n if (menu.auth === 'ModifyPassword') {\r\n if (CardTypeEnum === 'BALANCE_CARD') {\r\n return <div key={index} className={`primary-color b-theme ${'hot-'+ menu.auth} ${loadingBtn === false ? 'member-menu-el' : 'member-menu-el disabled-member-select-btn '} ${newStyle && 'memberHeight'}`}\r\n onClick={() => {\r\n if (loadingBtn === false) this.click(menu.key, menu.auth)\r\n }}\r\n >\r\n {WalletEnabled ? <div><Ticon icon={menu.icon}></Ticon><span>修改密码</span><div className='menuHotkey'>{menu.SHORTCUT_KEY}</div></div> : \r\n <div><Ticon icon={menu.icon}></Ticon><span>设置密码</span><div className='menuHotkey'>{setPwdShortKey}</div></div>}\r\n </div>\r\n } else {\r\n return <div key={index} className={`primary-color b-theme ${'hot-'+ menu.auth} ${loadingBtn === false ? 'member-menu-el' : 'member-menu-el disabled-member-select-btn '} ${newStyle && 'memberHeight'}`}\r\n onClick={() => {\r\n if (loadingBtn === false) this.click(menu.key, menu.auth)\r\n }}\r\n >\r\n <div><Ticon icon={menu.icon}></Ticon><span>修改密码</span><div className='menuHotkey'>{menu.SHORTCUT_KEY}</div></div>\r\n </div>\r\n }\r\n } else if (CardTypeEnum === 'BALANCE_CARD' && !WalletEnabled && menu.auth === 'PosResetPwd') {\r\n return\r\n }\r\n else {\r\n return (\r\n <div \r\n key={index} \r\n className={`primary-color b-theme ${'hot-'+ menu.auth} ${loadingBtn === false ? 'member-menu-el' : 'member-menu-el disabled-member-select-btn '} ${newStyle && 'memberHeight'}`}\r\n onClick={() => {\r\n if (loadingBtn === false) this.click(menu.key, menu.auth, menu.name)\r\n }}\r\n >\r\n <Ticon icon={menu.icon}></Ticon><span>{menu.name}</span>\r\n <div className='menuHotkey'>{menu.SHORTCUT_KEY}</div>\r\n </div>\r\n )\r\n }\r\n }\r\n\r\n render() {\r\n const { menus, modifyPass, passwordTitle, btnDissabled, bindCardShow, bindCardBtnDisabled, refundShow, refundBtnDisabled, menuKey, lastesStorageResult = {} } = this.state;\r\n let { member = {}, authProcess, getCardList, selected = 0, modifyMember, cardList = []} = this.props;\r\n const {Id, BalanceStorage = 0, PresentAmount = 0, WalletEnabled, CardTypeEnum, CardStatusEnum, StorageCardNo } = (cardList.length && cardList[selected]) || {};\r\n const { canReturnAmount, usedPresentAmount } = lastesStorageResult\r\n\r\n return (\r\n <div className='member-menu'>\r\n {\r\n menus && menus.map((menu,index) => {\r\n let status = authProcess.execute(menu.auth);\r\n if (status) {\r\n if (menu.auth === 'BindStorageCard') {\r\n if (menu.key === 'memberBindCard' && CardTypeEnum !== 'BALANCE_CARD' && CardStatusEnum && CardStatusEnum === 'UNBINDING') {\r\n return this.getMenuItem(index, menu);\r\n }\r\n if (menu.key === 'memberUnBindCard' && CardTypeEnum !== 'BALANCE_CARD' && CardStatusEnum && CardStatusEnum === 'BINDING') {\r\n return this.getMenuItem(index, menu);\r\n }\r\n } else {\r\n return this.getMenuItem(index, menu)\r\n }\r\n } else {\r\n if (menu.auth === 'ModifyPassword') {\r\n return this.getMenuItem(index, menu);\r\n } else if (menu.auth === 'returnedStorage') {\r\n return this.getMenuItem(index, menu);\r\n } else {\r\n return '';\r\n }\r\n }\r\n })\r\n }\r\n <ModalWraper\r\n title={CardTypeEnum === 'BALANCE_CARD' && !WalletEnabled ? '设置密码' : passwordTitle}\r\n show={modifyPass}\r\n ok={this.changePasswordClick}\r\n className='modify-password'\r\n modalType='mid'\r\n closeButton={true}\r\n exclueBoard={true}\r\n cancel={this.changePasswordCancel}\r\n btnDissabled={btnDissabled}\r\n >\r\n {\r\n passwordTitle === '换卡' ?\r\n <ChangeMemberCard cardList={cardList && cardList.length && cardList[selected]} modifyMember={modifyMember} member={member} ref={ref => this.modifyPass = ref} cancelModal={this.changePasswordCancel}></ChangeMemberCard>:\r\n <ModifyPass menuKey={menuKey} cardListCopy={cardList} cardList={cardList && cardList.length && cardList[selected]} changeBtnDisabled={this.changeBtnDisabled} getCardList={getCardList} selected={selected} storageInit={this.storageInit} passwordTitle={\r\n CardTypeEnum === 'BALANCE_CARD' && !WalletEnabled ? '设置密码' : passwordTitle\r\n } modifyMember={modifyMember} ref={ref => this.modifyPass = ref} member={member} cancelModal={this.changePasswordCancel}></ModifyPass>\r\n }\r\n </ModalWraper>\r\n {/* 会员绑定 */}\r\n <ModalWraper \r\n title='会员绑定'\r\n show={bindCardShow}\r\n className='bind-card'\r\n closeButton={false}\r\n ok={this.bindCardClick}\r\n cancel={this.changeBindCardCancel}\r\n btnDissabled={bindCardBtnDisabled}\r\n >\r\n <BindCard\r\n ref={ref => this.bindCardRef = ref}\r\n bindCardClick={this.bindCardClick}\r\n changeBindCardBtnDisabled={this.changeBindCardBtnDisabled}\r\n />\r\n </ModalWraper>\r\n {/* 会员绑定 */}\r\n {/* 退储值 */}\r\n <ModalWraper \r\n title='退储值'\r\n show={refundShow}\r\n className='refund'\r\n modalType=\"mid\"\r\n closeButton={false}\r\n ok={this.changeRefundOk}\r\n cancel={this.changeRefundCancel}\r\n btnDissabled={refundBtnDisabled}\r\n >\r\n <div className='refund-container'>\r\n <ul className='refund-list'>\r\n <li className='refund-item'>\r\n <span className='title'>储值卡号:</span>\r\n <span className='value'>{StorageCardNo}</span>\r\n </li>\r\n <li className='refund-item'>\r\n <span className='title'>储值余额:</span>\r\n <span className='value'>{formatPrecision(BalanceStorage, 2)}</span>\r\n </li>\r\n <li className='refund-item'>\r\n <span className='title'>赠送金额:</span>\r\n <span className='value'>{getFixedNumber(PresentAmount + usedPresentAmount)}</span>\r\n </li>\r\n <li className='refund-item'>\r\n <span className='title'>可退金额:</span>\r\n <span className='value special'>{ getFixedNumber(canReturnAmount) }</span>\r\n </li>\r\n </ul> \r\n <p className='tips'>注:可退金额 = 储值余额-赠送金。(仅支持将最近一次储值金额原路退回到微信或支付宝,若超出时请退现金!)</p>\r\n </div> \r\n </ModalWraper>\r\n {/* 退储值 */}\r\n </div>\r\n )\r\n }\r\n}"]}
|
1
|
+
{"version":3,"sources":["tplus-member/member/memberMenuStorage/index.js"],"names":["menus1","key","name","visible","icon","auth","SHORTCUT_KEY","display","finish","semi","menus","observer","props","title","subKey","state","modifyPass","passwordTitle","btnDissabled","warnContent","setPwdShortKey","bindCardShow","bindCardBtnDisabled","menuKey","refundShow","refundTitle","memberUnBindCardLoading","refundBtnDisabled","lastesStorageResult","api","MemberStore","changeDisplay","setting_setData","localStore","get","JSON","parse","localStorage","getItem","length","forEach","settingItem","ParamType","Name","Value","storeKey","item","setState","setTimeout","changeState","flag","filterMenus","member","memberEnumState","list","MemberState","Id","notusing","loss","filter","menu","cardList","selected","controllerEvent","memberDto","operationName","card","viewM","context","viewModel","getViewItem","AuthType","CardStatusEnum","Message","warn","cardInfo","CardTypeEnum","WalletEnabled","FreePaymentPasswordStore","storageInit","justifyAuthority","data","IsNeedPassword","value","getCardList","StorageCardNo","params","cardNo","mobile","isStorageCardBindMember","changeBindCardBtnDisabled","MeStorageCardBind","ret","success","MemberMobile","enumController","getEnumOj","TradeType","dto","StorageMutiSettleDetails","pay","v","ThirdPaymentInfo","payment","VoucherType","Payment","REFUND","console","log","resolve","reject","nativeMs","setIpcRendererMethod","res","Code","type","msg","code","storageAmount","stores","memberStore","settlementMemberStore","MeStorageCardId","ID","PresentAmount","BalanceStorage","loadUserInfo","isCanRefund","canReturnAmount","storageInfos","Member","dtMember","isSelectedMember","StorageDetails","Idmember","ThisStorageAmount","StorageType","meStorageCardId","isPresentGiftpack","ThisPresentAmount","redBlueFlagEnum","tradeTypeEnum","finAccountId","paymentTypeId","latestStorageAmount","outTradeNo","StorageAmount","PaymentCode","DynamicPropertyValues","IdbankAccount","IdsettleStyle","DynamicPropertyKeys","DataSource","OrigPayAmount","OrigTradeNo","map","dynamic","thirdPaymentReturnInfo","getThirdPaymentInfo","thirdPayRefund","ReturnedStorage","isSuccess","ex","returnedCash","content","that","ModalWraper","confirm","okText","onOk","submitRefundStorage","handleEvent","then","platform","isHorizontalSunMi","storage","changePassword","reportLoss","cancelLoss","openCard","resetPassword","bindCard","memberUnBindCard","returnedStorage","authProcess","modifyMember","usedPresentAmount","index","status","execute","getMenuItem","changePasswordClick","changePasswordCancel","ref","changeBtnDisabled","bindCardClick","changeBindCardCancel","bindCardRef","changeRefundOk","changeRefundCancel","Component","contextTypes","onEvent","PropTypes","func","object","tags","indexOf","methodName","methodArgs","Action","fromJS","init","settlementControlEvent","onSettleSuccess","modalRouter","hide","callback","show","url","className","memberClass","onHide","handleOk","handleCancel","handleChange","RecordLoss","Success","Msg","Data","dt","Ts","error","catch","e","onCancel","UnRecordLoss","using","MemberType","IsStorage","GetMemberDTO","selectMemberStore","setCurMemberInfo","modalType","closeCk","Loading","destroyOnClose","disabled","bindCardFn","refundable","parseFloat","Number","reduce","total","cur","tstore","obj","paymode","mode","paymodes","find","idSettleStyle","thridPayment","ThirdPaymentReturnInfo","getLatestStorageAmount","cardId","inputRefundAmount","meMemberId","isRefundStorage","MemberName","confirmLoading","MeStorageCardUnbind","loadingBtn","newStyle","click"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AACA;;;;AACA;;AACA;;;;AACA;;;;;;AAEA,IAAIA,SAAS,CAAC;AACVC,SAAK,SADK;AAEVC,UAAM,IAFI;AAGVC,aAAS,IAHC;AAIVC,UAAM,QAJI;AAKVC,UAAK,eALK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AAAOwD,yBAAK1D;AAAZ,iBAPpC;AAQI;AAAA;AAAA,sBAAK,WAAU,YAAf;AAA6B0D,yBAAKtD;AAAlC;AARJ,aADA;AAYH;AACJ,K","file":"index.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { observer, stores,nativeMs } from \"mutants-microfx\"\r\nimport { Action } from 'mutants-appfx'\r\nimport { toJS } from 'mobx';\r\nimport './style.less';\r\nimport { Ticon, ModalWraper, Message,Loading,Input } from 'tplus-components-touch'\r\nimport { platform, localStore, enumController } from 'mutants-util';\r\nimport { formatPrecision, getFixedNumber } from '../../utils'\r\nimport ModifyPass from './modifyPass'\r\nimport ChangeMemberCard from './changeMemberCard'\r\nimport { PropTypes } from 'prop-types'\r\nimport MemberStore from '../api';\r\nimport BindCard from './bindCard'\r\n\r\nlet menus1 = [{\r\n key: 'storage',\r\n name: '储值',\r\n visible: true,\r\n icon: 'chuzhi',\r\n auth:'MemberStorage',\r\n SHORTCUT_KEY: ''\r\n}, {\r\n key: 'returnedStorage',\r\n name: '退储值',\r\n visible: true,\r\n icon: 'tuichuzhi',\r\n auth:'RefundStorage',\r\n SHORTCUT_KEY: ''\r\n}, {\r\n key: 'changePassword',\r\n name: '修改密码',\r\n visible: true,\r\n icon: 'xiugaimima1',\r\n auth:'ModifyPassword',\r\n SHORTCUT_KEY: ''\r\n},\r\n// {\r\n// key: 'reportLoss',\r\n// name: '挂失',\r\n// visible: true,\r\n// icon: 'guashi',\r\n// auth:'RecordLoss'\r\n\r\n// },\r\n {\r\n key: 'cancelLoss',\r\n name: '取消挂失',\r\n visible: true,\r\n icon: 'quxiaoguashi',\r\n auth:'RecordLoss',\r\n SHORTCUT_KEY: ''\r\n}, {\r\n key: 'resetPassword',\r\n name: '重置密码',\r\n visible: true,\r\n icon: 'chongzhimima',\r\n auth:'PosResetPwd',\r\n SHORTCUT_KEY: ''\r\n},{\r\n key: 'memberBindCard',\r\n name: '会员绑定',\r\n visible: true,\r\n icon: 'huiyuanbangding',\r\n auth:'BindStorageCard',\r\n SHORTCUT_KEY: ''\r\n},\r\n{\r\n key: 'memberUnBindCard',\r\n name: '解绑',\r\n visible: true,\r\n icon: 'jiebang',\r\n auth:'BindStorageCard',\r\n SHORTCUT_KEY: ''\r\n}\r\n]\r\nconst display = {\r\n finish: ['storage', 'changePassword', 'reportLoss', 'cancelLoss'],\r\n semi: ['openCard']\r\n}\r\n\r\nlet menus = [];\r\n@observer\r\nexport default class extends Component {\r\n \r\n constructor(props) {\r\n super(props)\r\n let { title, subKey } = props;\r\n this.state = {\r\n menus: menus1,\r\n modifyPass: false,\r\n passwordTitle: '换卡',\r\n btnDissabled: true,\r\n warnContent: '',\r\n setPwdShortKey: '',\r\n bindCardShow: false, // 是否显示会员绑卡,默认否\r\n bindCardBtnDisabled: true, // 会员绑卡确定按钮disabled\r\n menuKey: null, // 用来判断是否是储值,设置密码的时候使用\r\n refundShow: false, // 是否显示退储值,默认否\r\n refundTitle: '退储值', // 退储值名称\r\n memberUnBindCardLoading: false, // 解绑按钮loadong\r\n refundBtnDisabled: false, // 退储值disabled\r\n lastesStorageResult: {} // 最后一次储值的信息\r\n }\r\n this.api = MemberStore;\r\n }\r\n\r\n static contextTypes = {\r\n onEvent: PropTypes.func,\r\n viewModel: PropTypes.object,\r\n stores: PropTypes.object\r\n }\r\n\r\n componentWillMount() {\r\n this.changeDisplay('finish')\r\n }\r\n\r\n componentDidMount() {\r\n let setting_setData = localStore.get(\"setting_setData\");\r\n if(setting_setData == null){ \r\n setting_setData = JSON.parse(localStorage.getItem(\"setting_setData\"));\r\n }\r\n if(setting_setData && setting_setData.length != 0){\r\n setting_setData.forEach((settingItem)=>{\r\n if(settingItem.ParamType && settingItem.ParamType === \"SHORTCUT_KEY\"){\r\n const { Name, Value} = settingItem || {};\r\n const { title, storeKey } = this.props;\r\n menus = (menus1);\r\n menus.forEach((item) => {\r\n if (item.auth === Name) {\r\n item.SHORTCUT_KEY = Value;\r\n }\r\n })\r\n if (Name === 'MemberSetPassword') {\r\n this.setState({\r\n setPwdShortKey: Value\r\n })\r\n }\r\n }\r\n })\r\n }\r\n setTimeout(() => { this.changeState() }, 0)\r\n }\r\n\r\n componentWillReceiveProps() {\r\n this.changeState()\r\n }\r\n\r\n filterMenus = (tags) => {\r\n const { title, storeKey } = this.props;\r\n menus = (menus1);\r\n return menus.filter((menu) => {\r\n return ~tags.indexOf(menu.key)\r\n })\r\n }\r\n\r\n changeDisplay(flag = 'finish') {\r\n const menus = this.filterMenus(display[flag])\r\n this.setState({ menus });\r\n }\r\n\r\n changeState() {\r\n let { member, memberEnumState } = this.props;\r\n const { title, storeKey } = this.props;\r\n let list = (menus1);;\r\n\r\n if (member && member.MemberState) {\r\n if(member.MemberState.Id == memberEnumState.notusing){\r\n this.changeDisplay('semi')\r\n return;\r\n }\r\n this.changeDisplay('finish')\r\n if (member.MemberState.Id == memberEnumState.loss) {\r\n list = menus.filter((menu) => {\r\n return menu.key !== 'reportLoss'&&menu.key !== 'openCard'\r\n })\r\n }else{\r\n list = menus.filter((menu) => {\r\n return menu.key !== 'cancelLoss'&&menu.key !== 'openCard'\r\n })\r\n }\r\n }\r\n this.setState({ menus: list })\r\n }\r\n\r\n controllerEvent = (methodName, methodArgs) => {\r\n return this.context.onEvent({ 'controllerEvent': Action.fromJS(this.context.viewModel, methodName) }, 'controllerEvent', methodArgs);\r\n }\r\n\r\n async handleEvent(auth) {\r\n const { cardList = [], selected = 0 } = this.props;\r\n await this.controllerEvent('ValidateOperationName', { memberDto: cardList && cardList.length && cardList[selected], operationName: auth, card: 'card' });\r\n let viewM = this.context.viewModel.getViewItem('Voucher');\r\n if (viewM && viewM.AuthType === false) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n\r\n async justifyAuthority() {\r\n const { cardList = [], selected = 0, } = this.props;\r\n const {CardStatusEnum} = cardList[selected] || {};\r\n if (CardStatusEnum === 'DISABLED') {\r\n Message.warn('该储值卡未启用,不能进行该操作!');\r\n return false;\r\n } else if (CardStatusEnum === 'REFUNDED_CARD') {\r\n Message.warn('该储值卡已退卡,不能进行该操作!');\r\n return false;\r\n } else if(CardStatusEnum === 'REFUNDING_CARD') {\r\n Message.warn('该储值卡退卡中,不能进行该操作!');\r\n return false;\r\n } else if (CardStatusEnum === 'INVALIDATION') {\r\n Message.warn('该储值卡已失效,不能进行该操作!');\r\n return false;\r\n } else if (CardStatusEnum === 'EXPIRED') {\r\n Message.warn('该储值卡已过期,不能进行该操作!');\r\n return false;\r\n }\r\n }\r\n\r\n async storage() {\r\n const { cardList = [], selected = 0, } = this.props;\r\n if (cardList && cardList.length) {\r\n let cardInfo = cardList[selected];\r\n const {CardTypeEnum, WalletEnabled, FreePaymentPasswordStore} = cardInfo || {};\r\n if (CardTypeEnum === 'BALANCE_CARD') {\r\n if (FreePaymentPasswordStore || WalletEnabled) {\r\n this.storageInit();\r\n } else {\r\n this.setState({ modifyPass: true, passwordTitle: '设置密码', warnContent: '' });\r\n } \r\n } else {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n this.storageInit(); \r\n }\r\n }\r\n }\r\n\r\n storageInit = () => {\r\n const { cardList = [], getCardList, selected = 0, loadUserInfo } = this.props;\r\n const { StorageCardNo, ID } = cardList[selected] || {};\r\n const { data: { Member: dtMember = {} } = {} } = this.context.viewModel || {};\r\n const isSelectedMember = !!dtMember.ID;\r\n stores.memberStore.init({\r\n cardInfo: cardList[selected],\r\n settlementControlEvent: {\r\n onSettleSuccess: () => {\r\n stores.modalRouter.hide('/memberstore')\r\n if (!!isSelectedMember && dtMember.ID === ID) {\r\n loadUserInfo(ID)\r\n }\r\n getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo)\r\n }\r\n },\r\n callback: () => {\r\n stores.modalRouter.show({\r\n url: '/memberstore',\r\n title: '储值',\r\n className: 'memberContainer1',\r\n memberClass:'memberClassWidth',\r\n onHide: () => {\r\n stores.modalRouter.hide('/memberstore')\r\n } \r\n })\r\n }\r\n })\r\n }\r\n\r\n //修改密码\r\n changePasswordClick = () => {\r\n if (this.modifyPass) this.modifyPass.handleOk()\r\n }\r\n // 修改密码\r\n async changePassword() {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n const { cardList = [], selected = 0 } = this.props\r\n const {IsNeedPassword, CardTypeEnum} = cardList[selected] || {}\r\n if (CardTypeEnum !== 'BALANCE_CARD' && !IsNeedPassword) {\r\n Message.warn(\"此卡没启用密码!\");\r\n return;\r\n }\r\n this.setState({ modifyPass: true, passwordTitle: '修改密码' });\r\n }\r\n\r\n // 重置密码\r\n async resetPassword() {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n const { cardList = [], selected = 0 } = this.props\r\n const {IsNeedPassword, CardTypeEnum} = cardList[selected] || {}\r\n if (CardTypeEnum !== 'BALANCE_CARD' && !IsNeedPassword) {\r\n Message.warn(\"此卡没启用密码!\");\r\n return;\r\n }\r\n this.setState({ modifyPass: true, passwordTitle: '重置密码' });\r\n }\r\n\r\n changePasswordCancel = () => {\r\n this.setState({ modifyPass: false })\r\n this.modifyPass.handleCancel();\r\n }\r\n\r\n // 注销卡\r\n reportLoss = () => {\r\n let { member, handleChange, memberEnumState } = this.props;\r\n ModalWraper.confirm({\r\n title: '提示',\r\n content: '确定要挂失该会员卡吗?',\r\n onOk: async () => {\r\n this.api.RecordLoss(member).then(ret => {\r\n const { Success, Msg, Data } = ret;\r\n if (Success === true && Data) {\r\n const dt = JSON.parse(Data);\r\n member.Ts = dt.Ts;\r\n member.MemberState.Id = memberEnumState.loss;\r\n handleChange && handleChange(member);\r\n Message.success('挂失成功。')\r\n } else {\r\n Message.error(\"挂失失败:\" + Msg)\r\n }\r\n }).catch(e => {\r\n console.log('err', e);\r\n })\r\n },\r\n onCancel() {\r\n },\r\n onHide: () => { \r\n }\r\n })\r\n }\r\n //取消注销卡\r\n cancelLoss = () => {\r\n if(!this.api) return;\r\n let { member,handleChange, memberEnumState } = this.props;\r\n ModalWraper.confirm({\r\n title: '提示',\r\n content: '确定要取消挂失该会员卡吗?',\r\n onOk: async () => {\r\n this.api.UnRecordLoss(member).then(ret => {\r\n const { Success, Msg, Data } = ret;\r\n if (Success === true && Data) {\r\n const dt = JSON.parse(Data);\r\n member.Ts = dt.Ts;\r\n member.MemberState.Id = memberEnumState.using;\r\n handleChange && handleChange(member);\r\n Message.success('取消挂失成功。')\r\n } else {\r\n Message.error(\"取消挂失败:\" + Msg)\r\n }\r\n }).catch(e => {\r\n console.log('err', e);\r\n })\r\n },\r\n onCancel() {\r\n },\r\n onHide: () => { \r\n }\r\n })\r\n }\r\n\r\n // 开卡\r\n openCard = () => {\r\n const { member, selected = 0, memberEnumState } = this.props;\r\n const { ID, MemberType: { IsStorage } = {} } = member || {};\r\n memberStore.GetMemberDTO(ID, false).then((ret) => {\r\n stores.selectMemberStore.setCurMemberInfo(ret)\r\n stores.modalRouter.show({\r\n url: '/AA/OPENCARD',\r\n title: '开卡',\r\n className: 'memberAddModal',\r\n modalType: 'big',\r\n onHide: () => stores.modalRouter.hide('/AA/OPENCARD'),\r\n closeCk: () => {\r\n member.MemberState.Id = memberEnumState.using;\r\n }\r\n\r\n\r\n })\r\n Loading.hide();\r\n })\r\n stores.modalRouter.show({\r\n url: '/AA/OPENCARD',\r\n title: '开卡',\r\n className: 'memberAddModal',\r\n modalType: 'big',\r\n destroyOnClose: true,\r\n onHide: () => stores.modalRouter.hide('/AA/OPENCARD'),\r\n closeCk: () => {\r\n member.MemberState.Id = memberEnumState.using;\r\n },\r\n onHide: () => { \r\n }\r\n })\r\n Loading.hide();\r\n } \r\n\r\n // 点击会员绑卡\r\n bindCard = async () => {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n const { cardList = [], selected = 0 } = this.props\r\n const {ID} = cardList[selected] || {}\r\n if (!!ID) {\r\n Message.error('该储值卡已经绑定,不能再次进行绑定')\r\n return\r\n }\r\n this.setState({ bindCardShow: true})\r\n }\r\n\r\n // 点击关闭绑卡\r\n changeBindCardCancel = async () => {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n this.setState({\r\n bindCardShow: false,\r\n bindCardBtnDisabled: true\r\n })\r\n }\r\n\r\n // 修改会员绑卡disabled\r\n changeBindCardBtnDisabled = (disabled) => {\r\n this.setState({\r\n bindCardBtnDisabled: disabled\r\n })\r\n }\r\n\r\n // 点击会员绑卡确定按钮\r\n bindCardClick = () => {\r\n if (this.bindCardRef) {\r\n const { storeKey } = this.props\r\n this.bindCardFn(this.bindCardRef.state)\r\n }\r\n }\r\n\r\n // MeStorageCard > gridTemplateUser > MeStorageCard.cardbatchExport\r\n // 绑卡/会员绑卡确定按钮后,如果是会员绑卡\r\n async bindCardFn (state) {\r\n const { value } = state\r\n const { getCardList, cardList = [], selected = 0} = this.props\r\n const {StorageCardNo} = cardList[selected] || {}\r\n const params = {\r\n cardNo: StorageCardNo,\r\n mobile: value,\r\n isStorageCardBindMember: true\r\n }\r\n this.changeBindCardBtnDisabled(true)\r\n try {\r\n const ret = await this.api.MeStorageCardBind(params)\r\n this.changeBindCardBtnDisabled(false)\r\n Message.success('绑定成功')\r\n getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo)\r\n this.setState({\r\n bindCardShow: false\r\n })\r\n } catch (err) {\r\n this.changeBindCardBtnDisabled(false)\r\n }\r\n }\r\n\r\n // 点击退储值的取消按钮\r\n changeRefundCancel = () => {\r\n this.setState({\r\n refundShow: false,\r\n })\r\n }\r\n\r\n\r\n // 点击退储值的确定按钮\r\n changeRefundOk = async () => {\r\n const { cardList = [], selected = 0 } = this.props\r\n const {MeStorageCardId, BalanceStorage = 0, PresentAmount = 0, StorageCardNo, ID} = (cardList.length && cardList[selected]) || {};\r\n \r\n const {isCanRefund = false, canReturnAmount = 0, storageInfos = []} = this.state.lastesStorageResult || {}\r\n const refundable = parseFloat(getFixedNumber(canReturnAmount))\r\n const storageAmount = getFixedNumber(0-(canReturnAmount))\r\n\r\n // 退款金额小于等于0,不允许退款\r\n if (Number(canReturnAmount) <= 0) {\r\n Message.error('无可退金额,不支持退款!')\r\n return\r\n }\r\n\r\n // 返回的isCanRefund如果是false,不支持原路退回,弹出退现金提示\r\n if (!isCanRefund) {\r\n this.returnedCash(`只能退现金,是否继续`, storageAmount)\r\n return\r\n }\r\n\r\n // 计算最后一次储值的总金额,\r\n const latestStorageAmount = storageInfos.reduce((total, cur) => total + cur.latestStorageAmount, 0)\r\n // 退款只支持退最后一次储值的金额,如果最后一次储值的金额小于可退金额,弹出提示。\r\n if (latestStorageAmount && latestStorageAmount < refundable) {\r\n this.returnedCash(`退款大于最后一次储值金额,无法原路退回,只可退现金!是否退款?`, storageAmount)\r\n return\r\n }\r\n \r\n this.submitRefundStorage(cardList[selected], storageAmount)\r\n }\r\n\r\n // 获取二开支付信息,如果有的话返回。\r\n getThirdPaymentInfo = (item, tstore) => {\r\n const { paymentTypeId, thirdPaymentReturnInfo } = item || {};\r\n let obj = {};\r\n let paymode = tstore && tstore.paymode;\r\n if (paymode) {\r\n let mode = paymode && paymode.paymodes.find(v => v.idSettleStyle == paymentTypeId)\r\n obj = thirdPaymentReturnInfo ?\r\n {\r\n ThirdPaymentInfo: mode && mode.thridPayment || null,\r\n ThirdPaymentReturnInfo: thirdPaymentReturnInfo\r\n } : {};\r\n }\r\n return obj;\r\n }\r\n\r\n // 执行储值退款\r\n async thirdPayRefund(params) {\r\n try {\r\n const { TradeType } = enumController.getEnumOj();\r\n const dto = params.StorageMutiSettleDetails;\r\n const pay = dto && dto.filter(v => v.ThirdPaymentInfo);\r\n if (pay && pay.length > 0) {\r\n const payment = pay[0];\r\n const params = { VoucherType: 2, Payment: payment, TradeType: TradeType.REFUND, dto: dto };\r\n console.log('退储值刷卡参数:', JSON.stringify(params));\r\n let ret = await new Promise((resolve, reject) => {\r\n nativeMs.setIpcRendererMethod('ThirdPayment', { ...params }, res => {\r\n return resolve(res);\r\n })\r\n })\r\n console.log('退储值刷卡返回:', ret);\r\n ret = JSON.parse(ret);\r\n const { Code, Message } = ret || {};\r\n if (Code > 0) {\r\n return { type: false, msg: Message, code: Code };\r\n } else {\r\n return { type: true, msg: Message, code: Code };\r\n }\r\n }\r\n return { type: true};\r\n }\r\n catch (ex) {\r\n return { type: false,msg: ex, code: '9999' }\r\n }\r\n }\r\n\r\n // 点击退储值确定或者退现金之后,请求数据 isCash, 是否是现金结算\r\n async submitRefundStorage(cardInfo = {}, storageAmount) {\r\n if (!cardInfo) return;\r\n const { memberStore, settlementMemberStore } = stores || {};\r\n const { data = {} } = memberStore;\r\n const { MeStorageCardId, StorageCardNo, ID, PresentAmount = 0, BalanceStorage = 0} = cardInfo\r\n const { getCardList, cardList = [], loadUserInfo} = this.props \r\n const { isCanRefund = false, canReturnAmount = 0, storageInfos = [] } = this.state.lastesStorageResult || {}\r\n const { data: { Member: dtMember = {} } = {} } = this.context.viewModel || {};\r\n const isSelectedMember = !!dtMember.ID;\r\n const params = {\r\n ...data,\r\n StorageDetails: [{\r\n Idmember: ID,\r\n ThisStorageAmount: storageAmount,\r\n StorageType: {},\r\n meStorageCardId: MeStorageCardId,\r\n isPresentGiftpack: data.StorageDetails[0].isPresentGiftpack,\r\n ThisPresentAmount: getFixedNumber(0-(BalanceStorage - canReturnAmount))\r\n }],\r\n redBlueFlagEnum: 'RED',\r\n storageAmount: storageAmount,\r\n tradeTypeEnum: 'REFUND_CARD'\r\n }\r\n\r\n // 如果isCanRefund是false的话,说明是需要退现金,入参的计算方式明细金额是需要退的总金额\r\n if (!isCanRefund) {\r\n const { finAccountId, paymentTypeId, latestStorageAmount, outTradeNo } = storageInfos[0] || {}\r\n params.StorageMutiSettleDetails = [{\r\n StorageAmount: storageAmount,\r\n PaymentCode: \"\",\r\n DynamicPropertyValues: [],\r\n IdbankAccount: finAccountId,\r\n Code: 1,\r\n IdsettleStyle: paymentTypeId,\r\n DynamicPropertyKeys: [],\r\n DataSource: {},\r\n OrigPayAmount: latestStorageAmount,\r\n OrigTradeNo: outTradeNo\r\n }]\r\n } else {\r\n params.StorageMutiSettleDetails = storageInfos.map(item => {\r\n let dynamic = item.thirdPaymentReturnInfo ? this.getThirdPaymentInfo(item, settlementMemberStore) : {};\r\n return {\r\n StorageAmount: '-' + item.latestStorageAmount,\r\n PaymentCode: \"\",\r\n DynamicPropertyValues: [],\r\n IdbankAccount: item.finAccountId,\r\n Code: 1,\r\n IdsettleStyle: item.paymentTypeId,\r\n DynamicPropertyKeys: [],\r\n DataSource: {},\r\n OrigPayAmount: item.latestStorageAmount,\r\n OrigTradeNo: item.outTradeNo,\r\n ...dynamic\r\n }\r\n })\r\n }\r\n\r\n // 二开支付处理\r\n let ret = await this.thirdPayRefund(params);\r\n const { type, code } = ret || {};\r\n if (type === false) {\r\n Message.warn(`刷卡支付失败,错误码:${code}`);\r\n return;\r\n }\r\n\r\n await this.setState({\r\n refundBtnDisabled: true\r\n })\r\n try {\r\n const ret = await this.api.ReturnedStorage(params)\r\n const { isSuccess, ex } = ret.data || {}\r\n if (isSuccess === true || isSuccess === 'true') {\r\n if (!!isSelectedMember && dtMember.ID === ID) {\r\n loadUserInfo(ID)\r\n }\r\n getCardList && getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo)\r\n Message.success('退储值成功!')\r\n } else {\r\n this.returnedCash(`只能退现金,是否继续`, storageAmount)\r\n }\r\n \r\n await this.setState({\r\n refundBtnDisabled: false,\r\n refundShow: false\r\n })\r\n } catch (err) {\r\n await this.setState({\r\n refundBtnDisabled: false\r\n })\r\n }\r\n }\r\n // 退现金提示\r\n returnedCash (content, storageAmount) {\r\n const that = this\r\n ModalWraper.confirm({\r\n title: '提示',\r\n content,\r\n okText: '现金',\r\n onOk: () => {\r\n const {cardList = [], selected} = that.props\r\n that.setState({\r\n refundShow: false\r\n })\r\n that.submitRefundStorage(cardList[selected], storageAmount)\r\n }\r\n })\r\n }\r\n // 点击退储值\r\n returnedStorage = async () => {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n const { cardList = [], selected = 0 } = this.props\r\n const { Id, MeStorageCardId, BalanceStorage = 0, PresentAmount = 0 } = cardList[selected] || {}\r\n\r\n // 获取最后一次储值信息\r\n const refundable = parseFloat(getFixedNumber(BalanceStorage - PresentAmount))\r\n const lastesStorageResult = await this.api.getLatestStorageAmount({cardId: MeStorageCardId, inputRefundAmount: refundable})\r\n this.setState({\r\n lastesStorageResult: lastesStorageResult.data || {}\r\n })\r\n\r\n cardList[selected].meMemberId = Id\r\n cardList[selected].isRefundStorage = 1 // 自己添加参数,用来判断是储值还是退储值\r\n stores.memberStore.init({\r\n cardInfo: cardList[selected],\r\n settlementControlEvent: {},\r\n callback: () => {\r\n this.setState({\r\n refundShow: true\r\n })\r\n }\r\n })\r\n }\r\n // 点击解绑\r\n memberUnBindCard = async () => {\r\n let data = await this.justifyAuthority();\r\n if (data === false) {\r\n return;\r\n }\r\n const { cardList = [], selected = 0 } = this.props\r\n const {StorageCardNo, MemberMobile, MemberName, ID} = cardList[selected] || {}\r\n if (!ID) {\r\n Message.error('该卡未绑定会员')\r\n return\r\n }\r\n ModalWraper.confirm({\r\n title: '提示',\r\n content: `此卡属于${MemberName || MemberMobile}会员,确认解绑吗?`,\r\n confirmLoading: this.state.memberUnBindCardLoading,\r\n onOk: async () => {\r\n this.setState({\r\n memberUnBindCardLoading: true\r\n })\r\n this.api.MeStorageCardUnbind({StorageCardNo}).then(res => {\r\n const { getCardList } = this.props\r\n Message.success('解绑成功')\r\n getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo)\r\n this.setState({\r\n memberUnBindCardLoading: false\r\n })\r\n }).catch(() => {\r\n this.setState({\r\n memberUnBindCardLoading: false\r\n })\r\n })\r\n },\r\n })\r\n }\r\n click(key, auth, name) {\r\n this.setState({\r\n warnContent: ''\r\n })\r\n this.handleEvent(auth).then(ret=>{\r\n if (key === 'storage') {\r\n this.setState({\r\n menuKey: 'storage'\r\n })\r\n } else {\r\n this.setState({\r\n menuKey: null\r\n })\r\n }\r\n if (ret === true) {\r\n const { isHorizontalSunMi } = platform || {};\r\n switch (key) {\r\n case 'storage': this.storage(); break;\r\n case 'changePassword': this.changePassword(); break;\r\n case 'reportLoss': this.reportLoss(); break;\r\n case 'cancelLoss': this.cancelLoss(); break;\r\n case 'openCard': this.openCard(); break;\r\n case 'resetPassword': this.resetPassword(); break;\r\n case 'memberBindCard': this.bindCard(key, name); break;\r\n case 'memberUnBindCard': this.memberUnBindCard(); break;\r\n case 'returnedStorage': this.returnedStorage(); break;\r\n }\r\n }\r\n })\r\n }\r\n\r\n changeBtnDisabled = (value) => {\r\n this.setState({\r\n btnDissabled: value\r\n })\r\n }\r\n\r\n getMenuItem = (index, menu) => {\r\n let {loadingBtn, cardList = [], selected = 0} = this.props;\r\n const { setPwdShortKey } = this.state || {};\r\n let newStyle =localStore && localStore.get('voucherDefaultPosMode')=='voucher';\r\n const { WalletEnabled, CardTypeEnum } = cardList && cardList.length && cardList[selected] || {};\r\n // 控制显示修改密码还是设置密码\r\n if (menu.auth === 'ModifyPassword') {\r\n if (CardTypeEnum === 'BALANCE_CARD') {\r\n return <div key={index} className={`primary-color b-theme ${'hot-'+ menu.auth} ${loadingBtn === false ? 'member-menu-el' : 'member-menu-el disabled-member-select-btn '} ${newStyle && 'memberHeight'}`}\r\n onClick={() => {\r\n if (loadingBtn === false) this.click(menu.key, menu.auth)\r\n }}\r\n >\r\n {WalletEnabled ? <div><Ticon icon={menu.icon}></Ticon><span>修改密码</span><div className='menuHotkey'>{menu.SHORTCUT_KEY}</div></div> : \r\n <div><Ticon icon={menu.icon}></Ticon><span>设置密码</span><div className='menuHotkey'>{setPwdShortKey}</div></div>}\r\n </div>\r\n } else {\r\n return <div key={index} className={`primary-color b-theme ${'hot-'+ menu.auth} ${loadingBtn === false ? 'member-menu-el' : 'member-menu-el disabled-member-select-btn '} ${newStyle && 'memberHeight'}`}\r\n onClick={() => {\r\n if (loadingBtn === false) this.click(menu.key, menu.auth)\r\n }}\r\n >\r\n <div><Ticon icon={menu.icon}></Ticon><span>修改密码</span><div className='menuHotkey'>{menu.SHORTCUT_KEY}</div></div>\r\n </div>\r\n }\r\n } else if (CardTypeEnum === 'BALANCE_CARD' && !WalletEnabled && menu.auth === 'PosResetPwd') {\r\n return\r\n }\r\n else {\r\n return (\r\n <div \r\n key={index} \r\n className={`primary-color b-theme ${'hot-'+ menu.auth} ${loadingBtn === false ? 'member-menu-el' : 'member-menu-el disabled-member-select-btn '} ${newStyle && 'memberHeight'}`}\r\n onClick={() => {\r\n if (loadingBtn === false) this.click(menu.key, menu.auth, menu.name)\r\n }}\r\n >\r\n <Ticon icon={menu.icon}></Ticon><span>{menu.name}</span>\r\n <div className='menuHotkey'>{menu.SHORTCUT_KEY}</div>\r\n </div>\r\n )\r\n }\r\n }\r\n\r\n render() {\r\n const { menus, modifyPass, passwordTitle, btnDissabled, bindCardShow, bindCardBtnDisabled, refundShow, refundBtnDisabled, menuKey, lastesStorageResult = {} } = this.state;\r\n let { member = {}, authProcess, getCardList, selected = 0, modifyMember, cardList = []} = this.props;\r\n const {Id, BalanceStorage = 0, PresentAmount = 0, WalletEnabled, CardTypeEnum, CardStatusEnum, StorageCardNo } = (cardList.length && cardList[selected]) || {};\r\n const { canReturnAmount, usedPresentAmount } = lastesStorageResult\r\n\r\n return (\r\n <div className='member-menu'>\r\n {\r\n menus && menus.map((menu,index) => {\r\n let status = authProcess.execute(menu.auth);\r\n if (status) {\r\n if (menu.auth === 'BindStorageCard') {\r\n if (menu.key === 'memberBindCard' && CardTypeEnum !== 'BALANCE_CARD' && CardStatusEnum && CardStatusEnum === 'UNBINDING') {\r\n return this.getMenuItem(index, menu);\r\n }\r\n if (menu.key === 'memberUnBindCard' && CardTypeEnum !== 'BALANCE_CARD' && CardStatusEnum && CardStatusEnum === 'BINDING') {\r\n return this.getMenuItem(index, menu);\r\n }\r\n } else {\r\n return this.getMenuItem(index, menu)\r\n }\r\n } else {\r\n if (menu.auth === 'ModifyPassword') {\r\n return this.getMenuItem(index, menu);\r\n } else if (menu.auth === 'returnedStorage') {\r\n return this.getMenuItem(index, menu);\r\n } else {\r\n return '';\r\n }\r\n }\r\n })\r\n }\r\n <ModalWraper\r\n title={CardTypeEnum === 'BALANCE_CARD' && !WalletEnabled ? '设置密码' : passwordTitle}\r\n show={modifyPass}\r\n ok={this.changePasswordClick}\r\n className='modify-password'\r\n modalType='mid'\r\n closeButton={true}\r\n exclueBoard={true}\r\n cancel={this.changePasswordCancel}\r\n btnDissabled={btnDissabled}\r\n >\r\n {\r\n passwordTitle === '换卡' ?\r\n <ChangeMemberCard cardList={cardList && cardList.length && cardList[selected]} modifyMember={modifyMember} member={member} ref={ref => this.modifyPass = ref} cancelModal={this.changePasswordCancel}></ChangeMemberCard>:\r\n <ModifyPass menuKey={menuKey} cardListCopy={cardList} cardList={cardList && cardList.length && cardList[selected]} changeBtnDisabled={this.changeBtnDisabled} getCardList={getCardList} selected={selected} storageInit={this.storageInit} passwordTitle={\r\n CardTypeEnum === 'BALANCE_CARD' && !WalletEnabled ? '设置密码' : passwordTitle\r\n } modifyMember={modifyMember} ref={ref => this.modifyPass = ref} member={member} cancelModal={this.changePasswordCancel}></ModifyPass>\r\n }\r\n </ModalWraper>\r\n {/* 会员绑定 */}\r\n <ModalWraper \r\n title='会员绑定'\r\n show={bindCardShow}\r\n className='bind-card'\r\n closeButton={false}\r\n ok={this.bindCardClick}\r\n cancel={this.changeBindCardCancel}\r\n btnDissabled={bindCardBtnDisabled}\r\n >\r\n <BindCard\r\n ref={ref => this.bindCardRef = ref}\r\n bindCardClick={this.bindCardClick}\r\n changeBindCardBtnDisabled={this.changeBindCardBtnDisabled}\r\n />\r\n </ModalWraper>\r\n {/* 会员绑定 */}\r\n {/* 退储值 */}\r\n <ModalWraper \r\n title='退储值'\r\n show={refundShow}\r\n className='refund'\r\n modalType=\"mid\"\r\n closeButton={false}\r\n ok={this.changeRefundOk}\r\n cancel={this.changeRefundCancel}\r\n btnDissabled={refundBtnDisabled}\r\n >\r\n <div className='refund-container'>\r\n <ul className='refund-list'>\r\n <li className='refund-item'>\r\n <span className='title'>储值卡号:</span>\r\n <span className='value'>{StorageCardNo}</span>\r\n </li>\r\n <li className='refund-item'>\r\n <span className='title'>储值余额:</span>\r\n <span className='value'>{formatPrecision(BalanceStorage, 2)}</span>\r\n </li>\r\n <li className='refund-item'>\r\n <span className='title'>赠送金额:</span>\r\n <span className='value'>{getFixedNumber(PresentAmount + usedPresentAmount)}</span>\r\n </li>\r\n <li className='refund-item'>\r\n <span className='title'>可退金额:</span>\r\n <span className='value special'>{ getFixedNumber(canReturnAmount) }</span>\r\n </li>\r\n </ul> \r\n <p className='tips'>注:可退金额 = 储值余额-赠送金。(仅支持将最近一次储值金额原路退回到微信或支付宝,若超出时请退现金!)</p>\r\n </div> \r\n </ModalWraper>\r\n {/* 退储值 */}\r\n </div>\r\n )\r\n }\r\n}"]}
|
@@ -145,19 +145,37 @@ var ModifyPassStore = (_class = function () {
|
|
145
145
|
};
|
146
146
|
}
|
147
147
|
this.api.updatePwd(pam).then(function (ret) {
|
148
|
-
var
|
149
|
-
|
148
|
+
var _ref3 = _mutantsUtil.platform || {},
|
149
|
+
isNewRetailBCPos = _ref3.isNewRetailBCPos;
|
150
|
+
|
151
|
+
if (isNewRetailBCPos) {
|
152
|
+
var successful = ret.successful,
|
153
|
+
msg = ret.msg;
|
154
|
+
|
155
|
+
if (successful === true) {
|
156
|
+
if (params === 'update') {
|
157
|
+
_tplusComponentsTouch.Message.success('修改成功');
|
158
|
+
} else if (params === 'reset') {
|
159
|
+
_tplusComponentsTouch.Message.success('重置成功');
|
160
|
+
}
|
161
|
+
_tplusComponentsTouch.Keyboard.close();
|
162
|
+
callback && callback();
|
163
|
+
} else {
|
164
|
+
_tplusComponentsTouch.Message.error(msg);
|
165
|
+
}
|
166
|
+
} else {
|
167
|
+
var Success = ret.Success,
|
168
|
+
Msg = ret.Msg,
|
169
|
+
Ts = ret.Ts;
|
150
170
|
|
151
|
-
|
152
|
-
if (params === 'update') {
|
153
|
-
_tplusComponentsTouch.Message.success('修改成功');
|
154
|
-
} else if (params === 'reset') {
|
171
|
+
if (Success === true) {
|
155
172
|
_tplusComponentsTouch.Message.success('重置成功');
|
173
|
+
_tplusComponentsTouch.Keyboard.close();
|
174
|
+
callback && callback();
|
175
|
+
modifyMember(member.ID, Ts);
|
176
|
+
} else {
|
177
|
+
_tplusComponentsTouch.Message.error(Msg);
|
156
178
|
}
|
157
|
-
_tplusComponentsTouch.Keyboard.close();
|
158
|
-
callback && callback();
|
159
|
-
} else {
|
160
|
-
_tplusComponentsTouch.Message.error(msg);
|
161
179
|
}
|
162
180
|
//Loading.hide();
|
163
181
|
}).catch(function (e) {
|
@@ -185,28 +203,46 @@ var ModifyPassStore = (_class = function () {
|
|
185
203
|
}, {
|
186
204
|
key: 'resetPassWord',
|
187
205
|
value: function () {
|
188
|
-
var
|
189
|
-
var
|
206
|
+
var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(member, callback) {
|
207
|
+
var _ref5, newPass;
|
190
208
|
|
191
209
|
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
192
210
|
while (1) {
|
193
211
|
switch (_context2.prev = _context2.next) {
|
194
212
|
case 0:
|
195
|
-
|
213
|
+
_ref5 = this || {}, newPass = _ref5.newPass;
|
196
214
|
//Loading.show({ target: 'modify-password', text: '请稍后...' })
|
197
215
|
|
198
216
|
try {
|
199
217
|
// member.Password = newPass;
|
200
218
|
this.api.resetMemberPass({ member: member, newPass: newPass, card: 'card' }).then(function (ret) {
|
201
|
-
var
|
202
|
-
|
219
|
+
var _ref6 = _mutantsUtil.platform || {},
|
220
|
+
isNewRetailBCPos = _ref6.isNewRetailBCPos;
|
221
|
+
|
222
|
+
if (isNewRetailBCPos) {
|
223
|
+
var successful = ret.successful,
|
224
|
+
msg = ret.msg;
|
203
225
|
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
226
|
+
if (successful === true) {
|
227
|
+
_tplusComponentsTouch.Message.success('重置成功');
|
228
|
+
_tplusComponentsTouch.Keyboard.close();
|
229
|
+
callback && callback();
|
230
|
+
} else {
|
231
|
+
_tplusComponentsTouch.Message.error(msg);
|
232
|
+
}
|
208
233
|
} else {
|
209
|
-
|
234
|
+
var Success = ret.Success,
|
235
|
+
Msg = ret.Msg,
|
236
|
+
Ts = ret.Ts;
|
237
|
+
|
238
|
+
if (Success === true) {
|
239
|
+
_tplusComponentsTouch.Message.success('重置成功');
|
240
|
+
_tplusComponentsTouch.Keyboard.close();
|
241
|
+
callback && callback();
|
242
|
+
modifyMember(member.ID, Ts);
|
243
|
+
} else {
|
244
|
+
_tplusComponentsTouch.Message.error(Msg);
|
245
|
+
}
|
210
246
|
}
|
211
247
|
//Loading.hide();
|
212
248
|
}).catch(function (e) {
|
@@ -226,7 +262,7 @@ var ModifyPassStore = (_class = function () {
|
|
226
262
|
}));
|
227
263
|
|
228
264
|
function resetPassWord(_x4, _x5) {
|
229
|
-
return
|
265
|
+
return _ref4.apply(this, arguments);
|
230
266
|
}
|
231
267
|
|
232
268
|
return resetPassWord;
|
@@ -234,28 +270,44 @@ var ModifyPassStore = (_class = function () {
|
|
234
270
|
}, {
|
235
271
|
key: 'modifyPassWord',
|
236
272
|
value: function () {
|
237
|
-
var
|
238
|
-
var
|
273
|
+
var _ref7 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(member, callback) {
|
274
|
+
var _ref8, oldPass, newPass;
|
239
275
|
|
240
276
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
241
277
|
while (1) {
|
242
278
|
switch (_context3.prev = _context3.next) {
|
243
279
|
case 0:
|
244
|
-
|
280
|
+
_ref8 = this || {}, oldPass = _ref8.oldPass, newPass = _ref8.newPass;
|
245
281
|
//Loading.show({ target: 'modify-password', text: '请稍后...' })
|
246
282
|
|
247
283
|
try {
|
248
284
|
member.Password = newPass;
|
249
285
|
this.api.modifyMemberPass({ member: member, oldPass: oldPass, card: 'card' }).then(function (ret) {
|
250
|
-
var
|
251
|
-
|
286
|
+
var _ref9 = _mutantsUtil.platform || {},
|
287
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
252
288
|
|
253
|
-
if (
|
254
|
-
|
255
|
-
|
256
|
-
|
289
|
+
if (isNewRetailBCPos) {
|
290
|
+
var successful = ret.successful,
|
291
|
+
msg = ret.msg;
|
292
|
+
|
293
|
+
if (successful === true) {
|
294
|
+
_tplusComponentsTouch.Message.success('修改成功');
|
295
|
+
_tplusComponentsTouch.Keyboard.close();
|
296
|
+
callback && callback();
|
297
|
+
} else {
|
298
|
+
_tplusComponentsTouch.Message.error(msg);
|
299
|
+
}
|
257
300
|
} else {
|
258
|
-
|
301
|
+
var Success = ret.Success,
|
302
|
+
Msg = ret.Msg;
|
303
|
+
|
304
|
+
if (Success === true) {
|
305
|
+
_tplusComponentsTouch.Message.success('修改成功');
|
306
|
+
_tplusComponentsTouch.Keyboard.close();
|
307
|
+
callback && callback();
|
308
|
+
} else {
|
309
|
+
_tplusComponentsTouch.Message.error(Msg);
|
310
|
+
}
|
259
311
|
}
|
260
312
|
//Loading.hide();
|
261
313
|
}).catch(function (e) {
|
@@ -275,7 +327,7 @@ var ModifyPassStore = (_class = function () {
|
|
275
327
|
}));
|
276
328
|
|
277
329
|
function modifyPassWord(_x6, _x7) {
|
278
|
-
return
|
330
|
+
return _ref7.apply(this, arguments);
|
279
331
|
}
|
280
332
|
|
281
333
|
return modifyPassWord;
|
@@ -283,24 +335,40 @@ var ModifyPassStore = (_class = function () {
|
|
283
335
|
}, {
|
284
336
|
key: 'setPwd',
|
285
337
|
value: function setPwd(member, callback) {
|
286
|
-
var
|
287
|
-
oldPass =
|
288
|
-
newPass =
|
338
|
+
var _ref10 = this || {},
|
339
|
+
oldPass = _ref10.oldPass,
|
340
|
+
newPass = _ref10.newPass;
|
289
341
|
//Loading.show({ target: 'modify-password', text: '请稍后...' })
|
290
342
|
|
291
343
|
|
292
344
|
try {
|
293
345
|
member.Password = newPass;
|
294
346
|
this.api.setPwd({ member: member, oldPass: oldPass, card: 'card' }).then(function (ret) {
|
295
|
-
var
|
296
|
-
|
297
|
-
|
298
|
-
if (
|
299
|
-
|
300
|
-
|
301
|
-
|
347
|
+
var _ref11 = _mutantsUtil.platform || {},
|
348
|
+
isNewRetailBCPos = _ref11.isNewRetailBCPos;
|
349
|
+
|
350
|
+
if (isNewRetailBCPos) {
|
351
|
+
var successful = ret.successful,
|
352
|
+
msg = ret.msg;
|
353
|
+
|
354
|
+
if (successful === true) {
|
355
|
+
_tplusComponentsTouch.Message.success('设置成功');
|
356
|
+
_tplusComponentsTouch.Keyboard.close();
|
357
|
+
callback && callback();
|
358
|
+
} else {
|
359
|
+
_tplusComponentsTouch.Message.error(msg);
|
360
|
+
}
|
302
361
|
} else {
|
303
|
-
|
362
|
+
var Success = ret.Success,
|
363
|
+
Msg = ret.Msg;
|
364
|
+
|
365
|
+
if (Success === true) {
|
366
|
+
_tplusComponentsTouch.Message.success('设置成功');
|
367
|
+
_tplusComponentsTouch.Keyboard.close();
|
368
|
+
callback && callback();
|
369
|
+
} else {
|
370
|
+
_tplusComponentsTouch.Message.error(Msg);
|
371
|
+
}
|
304
372
|
}
|
305
373
|
//Loading.hide();
|
306
374
|
}).catch(function (e) {
|