tplus-member 3.45.1 → 3.46.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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","voucherDefaultPosMode","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;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;AAK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fx\"\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 const voucherDefaultPosMode = localStore && localStore.get('voucherDefaultPosMode') || 'touch'\r\n let newStyle = 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;;;;AAC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,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:'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}"]}
@@ -276,7 +276,7 @@ var Store = (_class = function Store() {
276
276
  initializer: function initializer() {
277
277
  var _this4 = this;
278
278
 
279
- return function (amount) {
279
+ return function (amount, IsSale) {
280
280
  var _ref = _this4 || {},
281
281
  storageAmountSpecData = _ref.storageAmountSpecData;
282
282
 
@@ -288,7 +288,15 @@ var Store = (_class = function Store() {
288
288
  _this4.noIsMinAmount = false;
289
289
  _this4.giftSingle = giftResult && giftResult[0].RightsStr;
290
290
  _this4.mtActivitys = giftResult && giftResult[0].MtActivitys;
291
- _this4.data.StorageDetails[0].ThisStorageAmount = amount.storageAmount;
291
+ if (IsSale === 'ON_SALE') {
292
+ if (amount.salesPrice) {
293
+ _this4.data.StorageDetails[0].ThisStorageAmount = amount.salesPrice;
294
+ } else {
295
+ _this4.data.StorageDetails[0].ThisStorageAmount = amount.storageAmount;
296
+ }
297
+ } else {
298
+ _this4.data.StorageDetails[0].ThisStorageAmount = amount.storageAmount;
299
+ }
292
300
  _this4.data.StorageDetails[0].mtActivityList = giftResult && giftResult[0].MtActivitys;
293
301
  }
294
302
  };
@@ -367,15 +375,17 @@ var Store = (_class = function Store() {
367
375
  initializer: function initializer() {
368
376
  var _this7 = this;
369
377
 
370
- return function (data, salesPrice) {
378
+ return function (storageAmount, salesPrice) {
371
379
  var presentAmount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
372
380
  var isSale = arguments[3];
373
381
 
374
382
  if (isSale === 'ON_SALE') {
375
- _this7.data.StorageDetails[0].ThisStorageAmount = salesPrice;
376
- _this7.data.StorageDetails[0].ThisPresentAmount = data - salesPrice + presentAmount;
383
+ var newSalesPrice = salesPrice;
384
+ if (!salesPrice) newSalesPrice = storageAmount;
385
+ _this7.data.StorageDetails[0].ThisStorageAmount = newSalesPrice;
386
+ _this7.data.StorageDetails[0].ThisPresentAmount = storageAmount - newSalesPrice + presentAmount;
377
387
  } else {
378
- _this7.data.StorageDetails[0].ThisStorageAmount = data;
388
+ _this7.data.StorageDetails[0].ThisStorageAmount = storageAmount;
379
389
  }
380
390
  };
381
391
  }
@@ -486,7 +496,6 @@ var Store = (_class = function Store() {
486
496
  // that.storageAmountSpecData = result.data;
487
497
  that.changeSpecData(result.data);
488
498
  that.changePresentGiftpack(result.data.isPresentGiftpack);
489
- // that.data.StorageDetails[0].ThisStorageAmount = result.data.storageAmountSpecList[0].storageAmount;
490
499
  that.changeStorageAmount(result.data.storageAmountSpecList[0].storageAmount);
491
500
  giftResult = _StorageAmountChangedProcessorBlock.StorageAmountChangedProcessorBlock.execute(result.data.storageAmountSpecList[0].storageAmount, result.data);
492
501
  giftResult1 = _StorageAmountChangedProcessorBlock.StorageAmountChangedProcessorBlock.execute('', result.data);
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-member/stores/MemberStore.js"],"names":["Store","observable","action","index","currentIndex","noIsMinAmount","Idstore","_this","api","getPersonDTOsByStoreID","then","personList","ret","amount","storageAmountSpecData","giftResult","StorageAmountChangedProcessorBlock","execute","storageAmount","giftSingle","RightsStr","mtActivitys","MtActivitys","data","StorageDetails","ThisStorageAmount","mtActivityList","fileName","value","params","parseFloat","CheckPresentAmountProcessor","PersonProcesser","salesPrice","presentAmount","isSale","ThisPresentAmount","giftList","settlementControlEvent","isPresentGiftpack","member","callback","that","isInput","getMemberVoucherDataInfo","DataModel","InitDataProcessor","getPosStorageRule","ID","result","meStorageCardId","storageAmountSpecList","changeSpecData","changePresentGiftpack","changeStorageAmount","giftResult1","changeGiftList","changeNoMin","changeGiftSingle1","changeActivitys","changeStorageActivitys","changeSettlementControl","console","log","cardInfo","CardTypeEnum","isRefundStorage","IsSale","memberId","MeStorageCardId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEqBA,K;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEAClBC,gB;;;WAAkB,CACjB;AACE,mBAAa,aADf;AAEE,mBAAa,WAFf;AAGE,eAAS,OAHX;AAIE,iBAAW,IAJb;AAKE,kBAAY,IALd;AAME,qBAAe,eANjB;AAOE,mBAAa,IAPf;AAQE,mBAAa,IARf;AASE,gBAAU,IATZ;AAUE,mBAAa,CAVf;AAWE,mBAAa,IAXf;AAYE,mBAAa,IAZf;AAaE,oBAAc,IAbhB;AAcE,qBAAe;AAdjB,KADiB,EAiBjB;AACE,mBAAa,aADf;AAEE,mBAAa,WAFf;AAGE,eAAS,OAHX;AAIE,iBAAW,IAJb;AAKE,kBAAY,IALd;AAME,qBAAe,eANjB;AAOE,mBAAa,IAPf;AAQE,mBAAa,IARf;AASE,gBAAU,IATZ;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ent":["import { observable, action, runInAction, computed } from 'mobx';\r\nimport { DataModel } from 'mutants-appfx'\r\nimport { InitDataProcessor } from '../domain/member/InitDataProcessor';\r\nimport { PosInitData} from 'tplus-poslogin';\r\nimport { GetThisPresentAmountProcessor } from '../domain/member/GetThisPresentAmountProcessor';\r\nimport { CheckPresentAmountProcessor } from '../domain/member/CheckPresentAmountProcessor';\r\nimport { StorageAmountChangedProcessorBlock } from '../viewDoMain/StorageAmountChangedProcessorBlock'\r\nimport { PersonProcesser } from '../domain/member/PersonProcesser';\r\nimport { platform } from 'mutants-util';\r\nimport api from '../api';\r\nimport { observer } from 'mutants-microfx/dist';\r\n\r\nexport default class Store {\r\n @observable view = [\r\n {\r\n \"FieldName\": \"Person.Name\",\r\n \"FieldType\": \"reference\",\r\n \"Title\": \"开卡业务员\",\r\n \"Visible\": true,\r\n \"ReadOnly\": true,\r\n \"ControlType\": \"RefComplexBox\",\r\n \"AllowZero\": true,\r\n \"AllowNone\": true,\r\n \"Format\": null,\r\n \"MaxLength\": 0,\r\n \"Precision\": null,\r\n \"UserCheck\": null,\r\n \"UserPrompt\": null,\r\n \"TabPageName\": \"TabHead1\"\r\n },\r\n {\r\n \"FieldName\": \"Person.Name\",\r\n \"FieldType\": \"reference\",\r\n \"Title\": \"储值业务员\",\r\n \"Visible\": true,\r\n \"ReadOnly\": true,\r\n \"ControlType\": \"RefComplexBox\",\r\n \"AllowZero\": true,\r\n \"AllowNone\": true,\r\n \"Format\": null,\r\n \"MaxLength\": 0,\r\n \"Precision\": null,\r\n \"UserCheck\": null,\r\n \"UserPrompt\": null,\r\n \"TabPageName\": \"TabHead1\"\r\n },\r\n {\r\n \"FieldName\": \"StorageAmount\",\r\n \"FieldType\": \"reference\",\r\n \"Title\": \"本次储值\",\r\n \"Visible\": true,\r\n \"ReadOnly\": false,\r\n \"ControlType\": \"RefComplexBox\",\r\n \"AllowZero\": true,\r\n \"AllowNone\": true,\r\n \"Format\": null,\r\n \"MaxLength\": 0,\r\n \"Precision\": null,\r\n \"UserCheck\": null,\r\n \"UserPrompt\": null,\r\n \"TabPageName\": \"TabHead1\"\r\n },\r\n {\r\n \"FieldName\": \"PresentAmount\",\r\n \"FieldType\": \"reference\",\r\n \"Title\": \"本次赠送\",\r\n \"Visible\": true,\r\n \"ReadOnly\": false,\r\n \"ControlType\": \"RefComplexBox\",\r\n \"AllowZero\": true,\r\n \"AllowNone\": true,\r\n \"Format\": null,\r\n \"MaxLength\": 0,\r\n \"Precision\": null,\r\n \"UserCheck\": null,\r\n \"UserPrompt\": null,\r\n \"TabPageName\": \"TabHead1\"\r\n }\r\n ]\r\n\r\n @observable data\r\n\r\n @observable personList\r\n\r\n @observable settlementControlEvent\r\n\r\n @observable storageAmountSpecData\r\n\r\n @observable giftSingle\r\n\r\n @observable mtActivitys\r\n\r\n @observable giftList\r\n\r\n @observable noIsMinAmount\r\n\r\n @observable currentIndex\r\n\r\n @observable isInput\r\n\r\n @action setCurrentIndex = (index) => {\r\n this.currentIndex = index;\r\n this.noIsMinAmount = true;\r\n }\r\n\r\n @action initPersonList = (Idstore) => {\r\n let _this = this;\r\n api && api.getPersonDTOsByStoreID(Idstore).then(ret => {\r\n runInAction(() => {\r\n _this.personList = ret;\r\n })\r\n })\r\n }\r\n\r\n @action changeGiftSingle = (amount) => {\r\n const { storageAmountSpecData } = this || {};\r\n let giftResult = StorageAmountChangedProcessorBlock.execute(amount.storageAmount, storageAmountSpecData);\r\n if (giftResult === 'noIsMinAmount') {\r\n this.noIsMinAmount = true;\r\n this.giftSingle = '';\r\n } else {\r\n this.noIsMinAmount = false;\r\n this.giftSingle = giftResult && giftResult[0].RightsStr;\r\n this.mtActivitys = giftResult && giftResult[0].MtActivitys;\r\n this.data.StorageDetails[0].ThisStorageAmount = amount.storageAmount;\r\n this.data.StorageDetails[0].mtActivityList = giftResult && giftResult[0].MtActivitys;\r\n }\r\n }\r\n\r\n @action changeValue = async (data, fileName, value, params) => {\r\n if (fileName === 'StoreAmount') { //本次储值\r\n const { storageAmountSpecData } = this || {};\r\n let giftResult = StorageAmountChangedProcessorBlock.execute(parseFloat(value), storageAmountSpecData);\r\n if (giftResult === 'noIsMinAmount') {\r\n this.noIsMinAmount = true;\r\n this.giftSingle = '';\r\n } else {\r\n this.noIsMinAmount = false;\r\n this.giftSingle = giftResult && giftResult[0].RightsStr;\r\n this.mtActivitys = giftResult && giftResult[0].MtActivitys;\r\n this.data.StorageDetails[0].ThisStorageAmount = value;\r\n this.data.StorageDetails[0].mtActivityList = giftResult && giftResult[0].MtActivitys;\r\n } \r\n }\r\n if (fileName === 'PresentAmount') { //本次赠送\r\n await CheckPresentAmountProcessor.execute(data, { 'fileName': fileName, 'value': value, ...params });\r\n }\r\n if (fileName === 'Person') {\r\n await PersonProcesser.execute(data, { 'fileName': fileName, 'value': value })\r\n }\r\n }\r\n\r\n @action changeSpecData = (data) => {\r\n this.storageAmountSpecData = data;\r\n }\r\n\r\n @action changeStorageAmount = (data, salesPrice, presentAmount = 0, isSale) => {\r\n if (isSale === 'ON_SALE') {\r\n this.data.StorageDetails[0].ThisStorageAmount = salesPrice;\r\n this.data.StorageDetails[0].ThisPresentAmount = data - salesPrice + presentAmount;\r\n } else {\r\n this.data.StorageDetails[0].ThisStorageAmount = data;\r\n }\r\n }\r\n\r\n @action changeGiftList = (data) => {\r\n this.giftList = data;\r\n }\r\n\r\n @action changeNoMin = (data) => {\r\n this.noIsMinAmount = data;\r\n }\r\n\r\n @action changeGiftSingle1 = (data) => {\r\n this.giftSingle = data;\r\n }\r\n\r\n @action changeActivitys = (data) => {\r\n this.mtActivitys = data;\r\n }\r\n\r\n @action changeStorageActivitys = (data) => {\r\n this.data.StorageDetails[0].mtActivityList = data;\r\n }\r\n\r\n @action changeSettlementControl = (data) => {\r\n this.settlementControlEvent = data;\r\n }\r\n\r\n @action changePresentGiftpack = (data) => {\r\n this.data.StorageDetails[0].isPresentGiftpack = data;\r\n }\r\n\r\n @action clearCon = () => {\r\n this.giftSingle = null;\r\n }\r\n \r\n @action storageInit = ({ member, settlementControlEvent, callback }) => {\r\n let that = this;\r\n this.currentIndex = 0;\r\n this.isInput = true;\r\n api && api.getMemberVoucherDataInfo().then(ret => { //获取datainfo数据 生成data\r\n runInAction(async () => {\r\n this.isInput = false;\r\n that.data = new DataModel(ret, '001');\r\n InitDataProcessor.execute(that.data, member);\r\n let result = await api.getPosStorageRule({ \"memberId\": member.ID, \"storeId\": PosInitData('storeID') });\r\n that.data.StorageDetails[0].meStorageCardId = result.data.meStorageCardId;\r\n if (result && result.data.storageAmountSpecList[0]) {\r\n // that.storageAmountSpecData = result.data;\r\n that.changeSpecData(result.data);\r\n that.changePresentGiftpack(result.data.isPresentGiftpack);\r\n // that.data.StorageDetails[0].ThisStorageAmount = result.data.storageAmountSpecList[0].storageAmount;\r\n that.changeStorageAmount(result.data.storageAmountSpecList[0].storageAmount)\r\n let giftResult = StorageAmountChangedProcessorBlock.execute(result.data.storageAmountSpecList[0].storageAmount, result.data);\r\n let giftResult1 = StorageAmountChangedProcessorBlock.execute('', result.data);\r\n that.changeGiftList(giftResult1)\r\n if (giftResult === 'noIsMinAmount') {\r\n that.changeNoMin(true)\r\n that.changeGiftSingle1('')\r\n } else {\r\n that.changeNoMin(false)\r\n that.changeGiftSingle1(giftResult && giftResult[0].RightsStr)\r\n that.changeActivitys(giftResult && giftResult[0].MtActivitys)\r\n that.changeStorageActivitys(giftResult && giftResult[0].MtActivitys);\r\n }\r\n }\r\n that.changeSettlementControl(settlementControlEvent)\r\n callback && callback();\r\n console.log('====会员储值data====', that.data);\r\n })\r\n })\r\n }\r\n @action init = ({ cardInfo, settlementControlEvent, callback }) => {\r\n // 此处的变量参数是卡信息,命名为member是为了兼容其他信息,此页内容有些是兼容卡信息\r\n let that = this;\r\n this.currentIndex = 0;\r\n this.isInput = true;\r\n that.changeSpecData([]);\r\n api && api.getMemberVoucherDataInfo().then(ret => { //获取datainfo数据 生成data\r\n runInAction(async () => {\r\n this.isInput = false;\r\n that.data = new DataModel(ret, '001');\r\n InitDataProcessor.execute(that.data, cardInfo);\r\n const { CardTypeEnum, isRefundStorage, IsSale} = cardInfo;\r\n let result = null;\r\n let memberId = null;\r\n memberId = (cardInfo.ID ? cardInfo.ID : null);\r\n result = await api.getPosStorageRule({\"memberId\":memberId,\"storeId\":PosInitData('storeID'), \"meStorageCardId\": cardInfo.MeStorageCardId});\r\n that.data.StorageDetails[0].meStorageCardId = result.data.meStorageCardId;\r\n that.changeSpecData(result.data);\r\n if (result && result.data.storageAmountSpecList[0]) {\r\n that.changePresentGiftpack(result.data.isPresentGiftpack);\r\n // that.data.StorageDetails[0].ThisStorageAmount = result.data.storageAmountSpecList[0].storageAmount;\r\n let giftResult = StorageAmountChangedProcessorBlock.execute(result.data.storageAmountSpecList[0].storageAmount,result.data);\r\n that.changeStorageAmount(result.data.storageAmountSpecList[0].storageAmount, result.data.storageAmountSpecList[0].salesPrice, giftResult && giftResult[0].presentAmount, IsSale)\r\n let giftResult1 = StorageAmountChangedProcessorBlock.execute('', result.data);\r\n that.changeGiftList(giftResult1)\r\n if (giftResult === 'noIsMinAmount') {\r\n that.changeNoMin(true)\r\n that.changeGiftSingle1('')\r\n } else {\r\n that.changeNoMin(false)\r\n that.changeGiftSingle1(giftResult && giftResult[0].RightsStr)\r\n that.changeActivitys(giftResult && giftResult[0].MtActivitys)\r\n that.changeStorageActivitys(giftResult && giftResult[0].MtActivitys);\r\n }\r\n }\r\n that.changeSettlementControl(settlementControlEvent)\r\n callback && callback();\r\n console.log('====会员储值data====', that.data);\r\n })\r\n })\r\n }\r\n}"]}
1
+ {"version":3,"sources":["tplus-member/stores/MemberStore.js"],"names":["Store","observable","action","index","currentIndex","noIsMinAmount","Idstore","_this","api","getPersonDTOsByStoreID","then","personList","ret","amount","IsSale","storageAmountSpecData","giftResult","StorageAmountChangedProcessorBlock","execute","storageAmount","giftSingle","RightsStr","mtActivitys","MtActivitys","salesPrice","data","StorageDetails","ThisStorageAmount","mtActivityList","fileName","value","params","parseFloat","CheckPresentAmountProcessor","PersonProcesser","presentAmount","isSale","newSalesPrice","ThisPresentAmount","giftList","settlementControlEvent","isPresentGiftpack","member","callback","that","isInput","getMemberVoucherDataInfo","DataModel","InitDataProcessor","getPosStorageRule","ID","result","meStorageCardId","storageAmountSpecList","changeSpecData","changePresentGiftpack","changeStorageAmount","giftResult1","changeGiftList","changeNoMin","changeGiftSingle1","changeActivitys","changeStorageActivitys","changeSettlementControl","console","log","cardInfo","CardTypeEnum","isRefundStorage","memberId","MeStorageCardId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEqBA,K;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEAClBC,gB;;;WAAkB,CACjB;AACE,mBAAa,aADf;AAEE,mBAAa,WAFf;AAGE,eAAS,OAHX;AAIE,iBAAW,IAJb;AAKE,kBAAY,IALd;AAME,qBAAe,eANjB;AAOE,mBAAa,IAPf;AAQE,mBAAa,IARf;AASE,gBAAU,IATZ;AAUE,mBAAa,CAVf;AAWE,mBAAa,IAXf;AAYE,mBAAa,IAZf;AAaE,oBAAc,IAbhB;AAcE,qBAAe;AAdjB,KADiB,EAiBjB;AACE,mBAAa,aADf;AAEE,mBAAa,WAFf;AAGE,eAAS,OAHX;AAIE,iBAAW,IAJb;AAKE,kBAAY,IALd;AAME,qBAAe,eANjB;AAOE,mBAAa,IAPf;AAQE,mBAAa,IARf;AASE,gBAAU,IATZ;AAUE,mBAAa,CAVf;AAWE,mBAAa,IAXf;AAYE,mBAAa,IAZf;AAaE,oBAAc,IAbhB;AAcE,qBAAe;AAdjB,KAjBiB,EAiCjB;AACE,mBAAa,eADf;AAEE,mBAAa,WAFf;AAGE,eAAS,MAHX;AAIE,iBAAW,IAJb;AAKE,kB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;AACAqB,0BAAQC,GAAR,CAAY,kBAAZ,EAAgCrB,KAAKnB,IAArC;;AA9BU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAZ;AAgCD,OAjCM,CAAP;AAkCD,K;;;kBA9QkBzB,K","file":"MemberStore.js","sourcesContent":["import { observable, action, runInAction, computed } from 'mobx';\r\nimport { DataModel } from 'mutants-appfx'\r\nimport { InitDataProcessor } from '../domain/member/InitDataProcessor';\r\nimport { PosInitData} from 'tplus-poslogin';\r\nimport { GetThisPresentAmountProcessor } from '../domain/member/GetThisPresentAmountProcessor';\r\nimport { CheckPresentAmountProcessor } from '../domain/member/CheckPresentAmountProcessor';\r\nimport { StorageAmountChangedProcessorBlock } from '../viewDoMain/StorageAmountChangedProcessorBlock'\r\nimport { PersonProcesser } from '../domain/member/PersonProcesser';\r\nimport { platform } from 'mutants-util';\r\nimport api from '../api';\r\nimport { observer } from 'mutants-microfx/dist';\r\n\r\nexport default class Store {\r\n @observable view = [\r\n {\r\n \"FieldName\": \"Person.Name\",\r\n \"FieldType\": \"reference\",\r\n \"Title\": \"开卡业务员\",\r\n \"Visible\": true,\r\n \"ReadOnly\": true,\r\n \"ControlType\": \"RefComplexBox\",\r\n \"AllowZero\": true,\r\n \"AllowNone\": true,\r\n \"Format\": null,\r\n \"MaxLength\": 0,\r\n \"Precision\": null,\r\n \"UserCheck\": null,\r\n \"UserPrompt\": null,\r\n \"TabPageName\": \"TabHead1\"\r\n },\r\n {\r\n \"FieldName\": \"Person.Name\",\r\n \"FieldType\": \"reference\",\r\n \"Title\": \"储值业务员\",\r\n \"Visible\": true,\r\n \"ReadOnly\": true,\r\n \"ControlType\": \"RefComplexBox\",\r\n \"AllowZero\": true,\r\n \"AllowNone\": true,\r\n \"Format\": null,\r\n \"MaxLength\": 0,\r\n \"Precision\": null,\r\n \"UserCheck\": null,\r\n \"UserPrompt\": null,\r\n \"TabPageName\": \"TabHead1\"\r\n },\r\n {\r\n \"FieldName\": \"StorageAmount\",\r\n \"FieldType\": \"reference\",\r\n \"Title\": \"本次储值\",\r\n \"Visible\": true,\r\n \"ReadOnly\": false,\r\n \"ControlType\": \"RefComplexBox\",\r\n \"AllowZero\": true,\r\n \"AllowNone\": true,\r\n \"Format\": null,\r\n \"MaxLength\": 0,\r\n \"Precision\": null,\r\n \"UserCheck\": null,\r\n \"UserPrompt\": null,\r\n \"TabPageName\": \"TabHead1\"\r\n },\r\n {\r\n \"FieldName\": \"PresentAmount\",\r\n \"FieldType\": \"reference\",\r\n \"Title\": \"本次赠送\",\r\n \"Visible\": true,\r\n \"ReadOnly\": false,\r\n \"ControlType\": \"RefComplexBox\",\r\n \"AllowZero\": true,\r\n \"AllowNone\": true,\r\n \"Format\": null,\r\n \"MaxLength\": 0,\r\n \"Precision\": null,\r\n \"UserCheck\": null,\r\n \"UserPrompt\": null,\r\n \"TabPageName\": \"TabHead1\"\r\n }\r\n ]\r\n\r\n @observable data\r\n\r\n @observable personList\r\n\r\n @observable settlementControlEvent\r\n\r\n @observable storageAmountSpecData\r\n\r\n @observable giftSingle\r\n\r\n @observable mtActivitys\r\n\r\n @observable giftList\r\n\r\n @observable noIsMinAmount\r\n\r\n @observable currentIndex\r\n\r\n @observable isInput\r\n\r\n @action setCurrentIndex = (index) => {\r\n this.currentIndex = index;\r\n this.noIsMinAmount = true;\r\n }\r\n\r\n @action initPersonList = (Idstore) => {\r\n let _this = this;\r\n api && api.getPersonDTOsByStoreID(Idstore).then(ret => {\r\n runInAction(() => {\r\n _this.personList = ret;\r\n })\r\n })\r\n }\r\n\r\n @action changeGiftSingle = (amount, IsSale) => {\r\n const { storageAmountSpecData } = this || {};\r\n let giftResult = StorageAmountChangedProcessorBlock.execute(amount.storageAmount, storageAmountSpecData);\r\n if (giftResult === 'noIsMinAmount') {\r\n this.noIsMinAmount = true;\r\n this.giftSingle = '';\r\n } else {\r\n this.noIsMinAmount = false;\r\n this.giftSingle = giftResult && giftResult[0].RightsStr;\r\n this.mtActivitys = giftResult && giftResult[0].MtActivitys;\r\n if (IsSale === 'ON_SALE') {\r\n if (amount.salesPrice) {\r\n this.data.StorageDetails[0].ThisStorageAmount = amount.salesPrice\r\n } else {\r\n this.data.StorageDetails[0].ThisStorageAmount = amount.storageAmount;\r\n }\r\n } else {\r\n this.data.StorageDetails[0].ThisStorageAmount = amount.storageAmount;\r\n }\r\n this.data.StorageDetails[0].mtActivityList = giftResult && giftResult[0].MtActivitys;\r\n }\r\n }\r\n\r\n @action changeValue = async (data, fileName, value, params) => {\r\n if (fileName === 'StoreAmount') { //本次储值\r\n const { storageAmountSpecData } = this || {};\r\n let giftResult = StorageAmountChangedProcessorBlock.execute(parseFloat(value), storageAmountSpecData);\r\n if (giftResult === 'noIsMinAmount') {\r\n this.noIsMinAmount = true;\r\n this.giftSingle = '';\r\n } else {\r\n this.noIsMinAmount = false;\r\n this.giftSingle = giftResult && giftResult[0].RightsStr;\r\n this.mtActivitys = giftResult && giftResult[0].MtActivitys;\r\n this.data.StorageDetails[0].ThisStorageAmount = value;\r\n this.data.StorageDetails[0].mtActivityList = giftResult && giftResult[0].MtActivitys;\r\n } \r\n }\r\n if (fileName === 'PresentAmount') { //本次赠送\r\n await CheckPresentAmountProcessor.execute(data, { 'fileName': fileName, 'value': value, ...params });\r\n }\r\n if (fileName === 'Person') {\r\n await PersonProcesser.execute(data, { 'fileName': fileName, 'value': value })\r\n }\r\n }\r\n\r\n @action changeSpecData = (data) => {\r\n this.storageAmountSpecData = data;\r\n }\r\n\r\n @action changeStorageAmount = (storageAmount, salesPrice, presentAmount = 0, isSale) => {\r\n if (isSale === 'ON_SALE') {\r\n let newSalesPrice = salesPrice;\r\n if (!salesPrice) newSalesPrice = storageAmount;\r\n this.data.StorageDetails[0].ThisStorageAmount = newSalesPrice;\r\n this.data.StorageDetails[0].ThisPresentAmount = storageAmount - newSalesPrice + presentAmount;\r\n } else {\r\n this.data.StorageDetails[0].ThisStorageAmount = storageAmount;\r\n }\r\n }\r\n\r\n @action changeGiftList = (data) => {\r\n this.giftList = data;\r\n }\r\n\r\n @action changeNoMin = (data) => {\r\n this.noIsMinAmount = data;\r\n }\r\n\r\n @action changeGiftSingle1 = (data) => {\r\n this.giftSingle = data;\r\n }\r\n\r\n @action changeActivitys = (data) => {\r\n this.mtActivitys = data;\r\n }\r\n\r\n @action changeStorageActivitys = (data) => {\r\n this.data.StorageDetails[0].mtActivityList = data;\r\n }\r\n\r\n @action changeSettlementControl = (data) => {\r\n this.settlementControlEvent = data;\r\n }\r\n\r\n @action changePresentGiftpack = (data) => {\r\n this.data.StorageDetails[0].isPresentGiftpack = data;\r\n }\r\n\r\n @action clearCon = () => {\r\n this.giftSingle = null;\r\n }\r\n \r\n @action storageInit = ({ member, settlementControlEvent, callback }) => {\r\n let that = this;\r\n this.currentIndex = 0;\r\n this.isInput = true;\r\n api && api.getMemberVoucherDataInfo().then(ret => { //获取datainfo数据 生成data\r\n runInAction(async () => {\r\n this.isInput = false;\r\n that.data = new DataModel(ret, '001');\r\n InitDataProcessor.execute(that.data, member);\r\n let result = await api.getPosStorageRule({ \"memberId\": member.ID, \"storeId\": PosInitData('storeID') });\r\n that.data.StorageDetails[0].meStorageCardId = result.data.meStorageCardId;\r\n if (result && result.data.storageAmountSpecList[0]) {\r\n // that.storageAmountSpecData = result.data;\r\n that.changeSpecData(result.data);\r\n that.changePresentGiftpack(result.data.isPresentGiftpack);\r\n that.changeStorageAmount(result.data.storageAmountSpecList[0].storageAmount)\r\n let giftResult = StorageAmountChangedProcessorBlock.execute(result.data.storageAmountSpecList[0].storageAmount, result.data);\r\n let giftResult1 = StorageAmountChangedProcessorBlock.execute('', result.data);\r\n that.changeGiftList(giftResult1)\r\n if (giftResult === 'noIsMinAmount') {\r\n that.changeNoMin(true)\r\n that.changeGiftSingle1('')\r\n } else {\r\n that.changeNoMin(false)\r\n that.changeGiftSingle1(giftResult && giftResult[0].RightsStr)\r\n that.changeActivitys(giftResult && giftResult[0].MtActivitys)\r\n that.changeStorageActivitys(giftResult && giftResult[0].MtActivitys);\r\n }\r\n }\r\n that.changeSettlementControl(settlementControlEvent)\r\n callback && callback();\r\n console.log('====会员储值data====', that.data);\r\n })\r\n })\r\n }\r\n @action init = ({ cardInfo, settlementControlEvent, callback }) => {\r\n // 此处的变量参数是卡信息,命名为member是为了兼容其他信息,此页内容有些是兼容卡信息\r\n let that = this;\r\n this.currentIndex = 0;\r\n this.isInput = true;\r\n that.changeSpecData([]);\r\n api && api.getMemberVoucherDataInfo().then(ret => { //获取datainfo数据 生成data\r\n runInAction(async () => {\r\n this.isInput = false;\r\n that.data = new DataModel(ret, '001');\r\n InitDataProcessor.execute(that.data, cardInfo);\r\n const { CardTypeEnum, isRefundStorage, IsSale} = cardInfo;\r\n let result = null;\r\n let memberId = null;\r\n memberId = (cardInfo.ID ? cardInfo.ID : null);\r\n result = await api.getPosStorageRule({\"memberId\":memberId,\"storeId\":PosInitData('storeID'), \"meStorageCardId\": cardInfo.MeStorageCardId});\r\n that.data.StorageDetails[0].meStorageCardId = result.data.meStorageCardId;\r\n that.changeSpecData(result.data);\r\n if (result && result.data.storageAmountSpecList[0]) {\r\n that.changePresentGiftpack(result.data.isPresentGiftpack);\r\n // that.data.StorageDetails[0].ThisStorageAmount = result.data.storageAmountSpecList[0].storageAmount;\r\n let giftResult = StorageAmountChangedProcessorBlock.execute(result.data.storageAmountSpecList[0].storageAmount,result.data);\r\n that.changeStorageAmount(result.data.storageAmountSpecList[0].storageAmount, result.data.storageAmountSpecList[0].salesPrice, giftResult && giftResult[0].presentAmount, IsSale)\r\n let giftResult1 = StorageAmountChangedProcessorBlock.execute('', result.data);\r\n that.changeGiftList(giftResult1)\r\n if (giftResult === 'noIsMinAmount') {\r\n that.changeNoMin(true)\r\n that.changeGiftSingle1('')\r\n } else {\r\n that.changeNoMin(false)\r\n that.changeGiftSingle1(giftResult && giftResult[0].RightsStr)\r\n that.changeActivitys(giftResult && giftResult[0].MtActivitys)\r\n that.changeStorageActivitys(giftResult && giftResult[0].MtActivitys);\r\n }\r\n }\r\n that.changeSettlementControl(settlementControlEvent)\r\n callback && callback();\r\n console.log('====会员储值data====', that.data);\r\n })\r\n })\r\n }\r\n}"]}
@@ -182,7 +182,7 @@ var MemberStoreNewView = (0, _mutantsMicrofx.observer)(_class = function (_Compo
182
182
  StorageDetails = _ref6.StorageDetails;
183
183
  };
184
184
 
185
- _this.setSelectAmount = function (amount, index) {
185
+ _this.setSelectAmount = function (amount, index, IsSale) {
186
186
  _this.setState({
187
187
  currentValue: amount,
188
188
  changeStatus: false
@@ -201,7 +201,7 @@ var MemberStoreNewView = (0, _mutantsMicrofx.observer)(_class = function (_Compo
201
201
  setCurrentIndex = _ref7.setCurrentIndex;
202
202
 
203
203
  setCurrentIndex && setCurrentIndex(index);
204
- changeGiftSingle(amount);
204
+ changeGiftSingle(amount, IsSale);
205
205
  };
206
206
 
207
207
  _this.checkPresentDetail = function () {
@@ -451,7 +451,7 @@ var MemberStoreNewView = (0, _mutantsMicrofx.observer)(_class = function (_Compo
451
451
  return _react2.default.createElement(
452
452
  'span',
453
453
  { onClick: function onClick() {
454
- return (IsSale === 'SOLD' || CardTypeEnum === 'BALANCE_CARD') && _this3.setSelectAmount(value, index);
454
+ return _this3.setSelectAmount(value, index, IsSale);
455
455
  }, className: '' + (index === currentIndex && 'primary-color b-theme-color') },
456
456
  '\xA5',
457
457
  value.storageAmount
@@ -470,7 +470,7 @@ var MemberStoreNewView = (0, _mutantsMicrofx.observer)(_class = function (_Compo
470
470
  return _this3.inputStorageAmount = input;
471
471
  },
472
472
  onFocus: function onFocus() {
473
- setCurrentIndex && setCurrentIndex(null);
473
+ _this3.inputStorageAmount && !_this3.inputStorageAmount.input.input.value && setCurrentIndex && setCurrentIndex(null);
474
474
  _this3.inputStorageAmount && !_this3.inputStorageAmount.input.input.value && clearCon();
475
475
  },
476
476
  onChange: function onChange(value) {