tplus-member 3.38.10 → 3.39.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api.js +5 -5
- package/dist/api.js.map +1 -1
- package/dist/controllers/FeedbackController.js.map +1 -1
- package/dist/controllers/MemberOrderController.js +12 -12
- package/dist/controllers/MemberOrderController.js.map +1 -1
- package/dist/controllers/OpenCardController.js +7 -7
- package/dist/controllers/OpenCardController.js.map +1 -1
- package/dist/controllers/defaultConfig.js.map +1 -1
- package/dist/dataProvider/member.js +7 -7
- package/dist/dataProvider/member.js.map +1 -1
- package/dist/dataProvider/openCard.js.map +1 -1
- package/dist/domain/member/AuthProcess.js.map +1 -1
- package/dist/domain/member/CardCodeChangedProcessor.js +2 -2
- package/dist/domain/member/CardCodeChangedProcessor.js.map +1 -1
- package/dist/domain/member/CheckCardCodeAndCodeProcessor.js +2 -2
- package/dist/domain/member/CheckCardCodeAndCodeProcessor.js.map +1 -1
- package/dist/domain/member/CheckMobilephoneFormatProcessor.js +2 -2
- package/dist/domain/member/CheckMobilephoneFormatProcessor.js.map +1 -1
- package/dist/domain/member/CheckPresentAmountProcessor.js +2 -2
- package/dist/domain/member/CheckPresentAmountProcessor.js.map +1 -1
- package/dist/domain/member/EffectiveDateChangedProcessor.js +2 -2
- package/dist/domain/member/EffectiveDateChangedProcessor.js.map +1 -1
- package/dist/domain/member/GetThisPresentAmountProcessor.js +2 -2
- package/dist/domain/member/GetThisPresentAmountProcessor.js.map +1 -1
- package/dist/domain/member/InitDataProcessor.js +123 -123
- package/dist/domain/member/InitDataProcessor.js.map +1 -1
- package/dist/domain/member/IsMemberEffectiveProcessor.js +2 -2
- package/dist/domain/member/IsMemberEffectiveProcessor.js.map +1 -1
- package/dist/domain/member/IsMemberEnableProcessor.js +2 -2
- package/dist/domain/member/IsMemberEnableProcessor.js.map +1 -1
- package/dist/domain/member/IsMemberExpirationProcessor.js +2 -2
- package/dist/domain/member/IsMemberExpirationProcessor.js.map +1 -1
- package/dist/domain/member/IsMemberPasswordSameProcessor.js +2 -2
- package/dist/domain/member/IsMemberPasswordSameProcessor.js.map +1 -1
- package/dist/domain/member/IsMemberStorageForStoreProcessor.js +3 -3
- package/dist/domain/member/IsMemberStorageForStoreProcessor.js.map +1 -1
- package/dist/domain/member/MemberTypeChangedProcessor.js +4 -4
- package/dist/domain/member/MemberTypeChangedProcessor.js.map +1 -1
- package/dist/domain/member/MobilephoneChangedProcessor.js +4 -4
- package/dist/domain/member/MobilephoneChangedProcessor.js.map +1 -1
- package/dist/domain/member/PersonProcesser.js.map +1 -1
- package/dist/domain/member/PriuserdefChangedProcessor.js +2 -2
- package/dist/domain/member/PriuserdefChangedProcessor.js.map +1 -1
- package/dist/domain/operationLog/AddLogProcessor.js +6 -6
- package/dist/domain/operationLog/AddLogProcessor.js.map +1 -1
- package/dist/domain/operationLog/OperationConfig.js.map +1 -1
- package/dist/domain/operationLog/OperationLog.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/member/MemberCardList.js +2 -2
- package/dist/member/MemberCardList.js.map +1 -1
- package/dist/member/MemberPhoto.js.map +1 -1
- package/dist/member/MemberShow.js.map +1 -1
- package/dist/member/ShopMember.js +19 -9
- package/dist/member/ShopMember.js.map +1 -1
- package/dist/member/ShopMember.less +635 -635
- package/dist/member/ShopMemberStorage.js.map +1 -1
- package/dist/member/api.js +4 -3
- package/dist/member/api.js.map +1 -1
- package/dist/member/color.less +31 -31
- package/dist/member/index.js +8 -6
- package/dist/member/index.js.map +1 -1
- package/dist/member/index.less +570 -570
- package/dist/member/memberMenu/bindCard/index.js +7 -8
- package/dist/member/memberMenu/bindCard/index.js.map +1 -1
- package/dist/member/memberMenu/bindCard/style.less +7 -7
- package/dist/member/memberMenu/changeMemberCard/index.js.map +1 -1
- package/dist/member/memberMenu/changeMemberCard/style.less +42 -42
- package/dist/member/memberMenu/index.js.map +1 -1
- package/dist/member/memberMenu/modifyPass/index.js.map +1 -1
- package/dist/member/memberMenu/modifyPass/store.js.map +1 -1
- package/dist/member/memberMenu/modifyPass/style.less +96 -96
- package/dist/member/memberMenu/style.less +136 -136
- package/dist/member/memberMenuStorage/bindCard/index.js.map +1 -1
- package/dist/member/memberMenuStorage/bindCard/style.less +7 -7
- package/dist/member/memberMenuStorage/changeMemberCard/index.js.map +1 -1
- package/dist/member/memberMenuStorage/changeMemberCard/style.less +42 -42
- package/dist/member/memberMenuStorage/index.js +1 -1
- package/dist/member/memberMenuStorage/index.js.map +1 -1
- package/dist/member/memberMenuStorage/modifyPass/index.js.map +1 -1
- package/dist/member/memberMenuStorage/modifyPass/store.js.map +1 -1
- package/dist/member/memberMenuStorage/modifyPass/style.less +96 -96
- package/dist/member/memberMenuStorage/style.less +138 -138
- package/dist/member/memberTab/MemberCardInfo.js.map +1 -1
- package/dist/member/memberTab/MemberManager.js.map +1 -1
- package/dist/member/memberTab/MemberStorage.js +7 -7
- package/dist/member/memberTab/MemberStorage.js.map +1 -1
- package/dist/member/memberTab/index.js.map +1 -1
- package/dist/member/memberTab.js.map +1 -1
- package/dist/socket.js +13 -13
- package/dist/socket.js.map +1 -1
- package/dist/stores/MemberStore.js.map +1 -1
- package/dist/stores/index.js.map +1 -1
- package/dist/utils.js.map +1 -1
- package/dist/viewController/MemberOrderViewController.js.map +1 -1
- package/dist/viewDoMain/CheckMemberProcessorBlock.js +2 -2
- package/dist/viewDoMain/CheckMemberProcessorBlock.js.map +1 -1
- package/dist/viewDoMain/CheckMemberStorageProcessorBlock.js +2 -2
- package/dist/viewDoMain/CheckMemberStorageProcessorBlock.js.map +1 -1
- package/dist/viewDoMain/CheckSelectMemberProcessorBlock.js +2 -2
- package/dist/viewDoMain/CheckSelectMemberProcessorBlock.js.map +1 -1
- package/dist/viewDoMain/CheckUpdatePasswordProcessorBlock.js.map +1 -1
- package/dist/viewDoMain/MemberDataChangedProcessorBlock.js +2 -2
- package/dist/viewDoMain/MemberDataChangedProcessorBlock.js.map +1 -1
- package/dist/viewDoMain/MemberDataPreSaveProcessorBlock.js +2 -2
- package/dist/viewDoMain/MemberDataPreSaveProcessorBlock.js.map +1 -1
- package/dist/viewDoMain/StorageAmountChangedProcessorBlock.js +5 -2
- package/dist/viewDoMain/StorageAmountChangedProcessorBlock.js.map +1 -1
- package/dist/viewModels/memberVoucher.js +3 -3
- package/dist/viewModels/memberVoucher.js.map +1 -1
- package/dist/views/MemberOrderView.js +5 -5
- package/dist/views/MemberOrderView.js.map +1 -1
- package/dist/views/MemberStore.less +143 -143
- package/dist/views/MemberStoreNew.less +228 -228
- package/dist/views/MemberStoreNewView.js.map +1 -1
- package/dist/views/MemberStoreView.js.map +1 -1
- package/dist/views/MemberStoreViewContainer.js.map +1 -1
- package/dist/views/PresentDetail.less +118 -118
- package/dist/views/PresetDetailView.js.map +1 -1
- package/dist/views/memberOrder.less +54 -54
- package/locales/zh/tplus-portsetting.json +1 -1
- package/locales/zh-CN/tplus-portsetting.json +1 -1
- package/package.json +29 -28
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/views/MemberStoreView.js"],"names":["FormItem","Item","Option","photo","MemberStoreView","observer","props","getLocalStoreParam","fieldname","data","localStore","get","filter","item","Name","length","shift","Value","handleChange","info","type","value","state","isCanUpdate","percentNumber","editPresentAmount","inputStorageAmount","inputPresentAmount","thisStorageInput","input","thisPresentInput","maxValue","parseInt","Message","warn","top","duration","setState","memberDisabled","focus","timer","timerFun","window","clearTimeout","store","stores","memberStore","changeValue","strfun","console","log","percentValue","setTimeout","getPersonList","initPersonList","Idstore","initFormData","StorageDetails","thisPresentAmount","JSON","getCellValue","undefined","inputChange","canUpdate","percent","personList","settlementControlEvent","Member","Person","Mobilephone","CardCode","ImageFile","BalanceIntegral","BalanceStorage","salesman","thisStorageAmount","amountPrecision","amountMaxLength","storeInfo","TStore","restore","settlementParams","dataSource","DataSource","initData","PosInitData","showAmount","isMemberStorePage","amount","dto","hotKey","hotKeyBindClass","width","marginRight","ot","map","ID","height","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AAAA;AARd;AADJ;AAFJ,yBAxBJ;AAuCI;AAAC,oCAAD;AAAA,8BAAU,KAAK,CAAf;AACI;AAAA;AAAA,kCAAK,WAAU,KAAf;AAAA;AAAA,6BADJ;AAEI;AAAA;AAAA,kCAAK,WAAU,KAAf;AAEQE,8CAEI,8BAAC,iCAAD;AACI,+CAAU,SADd;AAEI,0CAAK,MAFT;AAGI,kDAHJ;AAII,2CAAO,EAAEqE,OAAO,GAAT,EAAcK,QAAQ,EAAtB,EAJX;AAKI,+CAAWpB,eALf;AAMI,qDAAiBD,eANrB;AAOI,yCAAK;AAAA,+CAAS,OAAKjD,kBAAL,GAA0BE,KAAnC;AAAA,qCAPT;AAQI,4CAAQ;AAAA,+CAAS,OAAKX,YAAL,CAAkBT,IAAlB,EAAwB,eAAxB,EAAyCY,KAAzC,CAAT;AAAA,qCARZ;AASI,8CAAU;AAAA,+CAAS,OAAKH,YAAL,CAAkBT,IAAlB,EAAwB,eAAxB,EAAyCY,KAAzC,CAAT;AAAA;AATd,kCAFJ,GAcIqC;AAhBZ;AAFJ;AAvCJ,qBA1BJ;AAwFI,2DAAK,WAAU,OAAf,GAxFJ;AAyFI;AAAA;AAAA,0BAAK,WAAU,QAAf;AACI;AAAA;AAAA,8BAAK,WAAU,gBAAf;AACI,0DAAC,gCAAD,EAAgBuB,gBAAhB;AADJ;AADJ;AAzFJ;AAHR,aADJ;AAsGH;;;EAnNyBiB,gB;;kBAqNf9F,e","file":"MemberStoreView.js","sourcesContent":["import React, { Component } from 'react';\nimport { Select, Form } from 'antd';\nimport { observer, stores, localStore } from \"mutants-microfx\";\nimport { Settlement, NumKeyboard, Message, hotKey } from 'tplus-components-touch';\nimport { PosInitData, TStore } from 'tplus-poslogin';\nimport { formatPrecision } from '../utils';\nimport './MemberStore.less';\n\nconst FormItem = Form.Item;\nconst Option = Select.Option;\nconst photo = 'https://newretail.static.chanjet.com/default_avatar.png'\n\n@observer\nclass MemberStoreView extends Component{\n\n constructor(props) {\n super(props)\n this.timerFun = null;\n let canUpdate = this.getLocalStoreParam('CanModifyPresentAmount')\n canUpdate = canUpdate == '1' ? true : false;\n let percent = this.getLocalStoreParam('PresentAmountLimitPercent')\n this.state = {\n isCanUpdate: canUpdate,\n percentNumber: percent,\n memberDisabled: false\n }\n }\n getLocalStoreParam = (fieldname) => {\n let data = localStore.get('setting_setData') || [];\n data = data.filter(item => item.Name === fieldname);\n return (data && data.length > 0) ? data.shift().Value : null;\n }\n handleChange = (info, type, value) => {\n const { isCanUpdate, percentNumber } = this.state;\n if (type == 'PresentAmount') {\n this.editPresentAmount = true;\n if (isCanUpdate && this.inputStorageAmount && this.inputPresentAmount) {\n let thisStorageInput = this.inputStorageAmount.input.input;\n let thisPresentInput = this.inputPresentAmount.input.input;\n let maxValue = (thisStorageInput.value * parseInt(percentNumber)) / 100;\n if (thisPresentInput.value > maxValue) {\n Message.warn(`本次储值最大可赠送金额为${maxValue},请修改`, { top: 300, duration: 3 })\n this.setState({ memberDisabled: true })\n thisPresentInput.focus();\n return;\n } else {\n this.setState({ memberDisabled: false })\n }\n }\n } else {\n this.editPresentAmount = false;\n }\n let timer = this.timerFun;\n if (timer != null) {\n window.clearTimeout(timer);\n }\n\n const store = stores.memberStore;\n const { changeValue } = store || {};\n const strfun = async () => {\n console.log(`this${type} value:` + value);\n await changeValue(info, type, value, { isCanUpdate, percentValue: percentNumber })\n }\n this.timerFun = window.setTimeout(strfun, 400);\n }\n\n getPersonList = () => {\n const store = stores.memberStore;\n const { data, initPersonList } = store || {};\n const { Idstore } = data || {};\n initPersonList(Idstore)\n }\n\n initFormData = () => {\n const store = stores.memberStore;\n const { data } = store || {};\n const { StorageDetails } = data || {};\n let thisPresentAmount = StorageDetails ? JSON.getCellValue(StorageDetails[0], \"ThisPresentAmount\") : '';\n thisPresentAmount = (thisPresentAmount === null || thisPresentAmount === undefined) ? '' : thisPresentAmount;\n if (this.inputPresentAmount && this.inputPresentAmount.inputChange) {\n this.inputPresentAmount.inputChange(thisPresentAmount + \"\")\n }\n }\n componentDidUpdate() {\n const { isCanUpdate } = this.state;\n if (!this.editPresentAmount && isCanUpdate) {\n this.initFormData()\n }\n }\n render(){\n const store = stores.memberStore;\n const { isCanUpdate,memberDisabled } = this.state;\n const { data, changeValue, personList, settlementControlEvent } = store || {};\n const { Member, Person, StorageDetails } = data || {};\n const { Name, Mobilephone, CardCode, ImageFile, BalanceIntegral, BalanceStorage } = Member || {};\n let salesman = Member ? JSON.getCellValue(Member, \"Person.Name\") : '';\n let thisPresentAmount = StorageDetails ? JSON.getCellValue(StorageDetails[0], \"ThisPresentAmount\") : '';\n thisPresentAmount = (thisPresentAmount === null || thisPresentAmount === undefined) ? '' : thisPresentAmount;\n let thisStorageAmount = StorageDetails ? JSON.getCellValue(StorageDetails[0], \"ThisStorageAmount\") : '';\n thisStorageAmount = (thisStorageAmount === null || thisStorageAmount === undefined) ? '' : thisStorageAmount;\n //金额小数精度\n let amountPrecision = PosInitData(\"AmountPrecision\");\n amountPrecision = amountPrecision ? parseInt(amountPrecision) : '';\n //金额最大位数\n let amountMaxLength = PosInitData(\"AmountMaxLength\");\n amountMaxLength = amountMaxLength ? parseInt(amountMaxLength) : '';\n //储值参数\n const storeInfo = TStore.restore()\n let settlementParams = {\n dataSource: data ? data.DataSource : {},\n initData: PosInitData,\n storeInfo: storeInfo,\n showAmount: false,\n isMemberStorePage: true,\n amount: thisStorageAmount,\n type: 1,\n dto: data,\n memberDisabled: memberDisabled,\n ...settlementControlEvent\n }\n console.log('储值金额:' + thisStorageAmount)\n console.log('储值settlementParams', settlementParams)\n return (\n <div className={`${hotKey.hotKeyBindClass('1')}`}>\n {\n data &&\n <div className='memberstore'>\n <div className='memberstore-head'>\n <div className='imageContainer'>\n <img src={ImageFile || photo} />\n <div className='imageContainer-message'>\n {\n Name && <div className='divText'>{Name}</div>\n }\n {\n Name && <div className='divBlank'></div>\n }\n <div className='divText'>{Mobilephone || CardCode}</div>\n </div>\n </div>\n <div className='message'>\n <span>{formatPrecision(BalanceStorage)}</span>\n <br />\n <span>余额</span>\n </div>\n <div className='message'>\n <span>{formatPrecision(BalanceIntegral)}</span>\n <br />\n <span>积分</span>\n </div>\n </div>\n <div className='line'></div>\n <div className='form'>\n <FormItem key={1}>\n <div className='one'>开卡业务员</div>\n <div className='two'>{salesman}</div>\n </FormItem>\n <FormItem key={2}>\n <div className='one'>导购员</div>\n <div className='two'>\n <Select\n placeholder='请选择储值业务员'\n style={{ width: 300, marginRight: 6 }}\n showSearch={false}\n notFoundContent={'空'}\n onFocus={this.getPersonList}\n onChange={(value, item) => changeValue(data, 'Person', item.props.ot)}\n >\n {\n personList && personList.map(item => {\n return <Option key={item.ID} ot={item} value={item.ID}>{item.Name}</Option>\n })\n }\n </Select>\n </div>\n </FormItem>\n <FormItem key={3}>\n <div className='one'>本次储值</div>\n <div className='two'>\n <NumKeyboard\n className=\"content\"\n type='text'\n bordered\n style={{ width: 300, height: 32 }}\n maxLength={amountMaxLength}\n precisionLength={amountPrecision}\n ref={input => this.inputStorageAmount = input}\n onChange={value => this.handleChange(data, 'StoreAmount', value)}\n />\n </div>\n </FormItem>\n <FormItem key={4}>\n <div className='one'>本次赠送</div>\n <div className='two'>\n {\n isCanUpdate\n ?\n <NumKeyboard\n className=\"content\"\n type='text'\n bordered\n style={{ width: 300, height: 32 }}\n maxLength={amountMaxLength}\n precisionLength={amountPrecision}\n ref={input => this.inputPresentAmount = input}\n onBlur={value => this.handleChange(data, 'PresentAmount', value)}\n onChange={value => this.handleChange(data, 'PresentAmount', value)}\n />\n :\n thisPresentAmount\n }\n </div>\n </FormItem>\n </div>\n <div className='line2'></div>\n <div className='footer'>\n <div className='storage-footer'>\n <Settlement {...settlementParams} />\n </div>\n </div>\n </div>\n }\n </div>\n )\n }\n}\nexport default MemberStoreView;"]}
|
1
|
+
{"version":3,"sources":["tplus-member/views/MemberStoreView.js"],"names":["FormItem","Item","Option","photo","MemberStoreView","observer","props","getLocalStoreParam","fieldname","data","localStore","get","filter","item","Name","length","shift","Value","handleChange","info","type","value","state","isCanUpdate","percentNumber","editPresentAmount","inputStorageAmount","inputPresentAmount","thisStorageInput","input","thisPresentInput","maxValue","parseInt","Message","warn","top","duration","setState","memberDisabled","focus","timer","timerFun","window","clearTimeout","store","stores","memberStore","changeValue","strfun","console","log","percentValue","setTimeout","getPersonList","initPersonList","Idstore","initFormData","StorageDetails","thisPresentAmount","JSON","getCellValue","undefined","inputChange","canUpdate","percent","personList","settlementControlEvent","Member","Person","Mobilephone","CardCode","ImageFile","BalanceIntegral","BalanceStorage","salesman","thisStorageAmount","amountPrecision","amountMaxLength","storeInfo","TStore","restore","settlementParams","dataSource","DataSource","initData","PosInitData","showAmount","isMemberStorePage","amount","dto","hotKey","hotKeyBindClass","width","marginRight","ot","map","ID","height","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,IAAMA,WAAW,eAAKC,IAAtB;AACA,IAAMC,SAAS,iBAAOA,MAAtB;AACA,IAAMC,QAAQ,yDAAd;;IAGMC,e,OADLC,wB;;;AAGG,6BAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AAAA,4JACTA,KADS;;AAAA,cAYnBC,kBAZmB,GAYE,UAACC,SAAD,EAAe;AAChC,gBAAIC,OAAOC,2BAAWC,GAAX,CAAe,iBAAf,KAAqC,EAAhD;AACAF,mBAAOA,KAAKG,MAAL,CAAY;AAAA,uBAAQC,KAAKC,IAAL,KAAcN,SAAtB;AAAA,aAAZ,CAAP;AACA,mBAAQC,QAAQA,KAAKM,MAAL,GAAc,CAAvB,GAA4BN,KAAKO,KAAL,GAAaC,KAAzC,GAAiD,IAAxD;AACH,SAhBkB;;AAAA,cAiBnBC,YAjBmB,GAiBJ,UAACC,IAAD,EAAOC,IAAP,EAAaC,KAAb,EAAuB;AAAA,8BACK,MAAKC,KADV;AAAA,gBAC1BC,WAD0B,eAC1BA,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AAwFI,2DAAK,WAAU,OAAf,GAxFJ;AAyFI;AAAA;AAAA,0BAAK,WAAU,QAAf;AACI;AAAA;AAAA,8BAAK,WAAU,gBAAf;AACI,0DAAC,gCAAD,EAAgBuB,gBAAhB;AADJ;AADJ;AAzFJ;AAHR,aADJ;AAsGH;;;EAnNyBiB,gB;;kBAqNf9F,e","file":"MemberStoreView.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { Select, Form } from 'antd';\r\nimport { observer, stores, localStore } from \"mutants-microfx\";\r\nimport { Settlement, NumKeyboard, Message, hotKey } from 'tplus-components-touch';\r\nimport { PosInitData, TStore } from 'tplus-poslogin';\r\nimport { formatPrecision } from '../utils';\r\nimport './MemberStore.less';\r\n\r\nconst FormItem = Form.Item;\r\nconst Option = Select.Option;\r\nconst photo = 'https://newretail.static.chanjet.com/default_avatar.png'\r\n\r\n@observer\r\nclass MemberStoreView extends Component{\r\n\r\n constructor(props) {\r\n super(props)\r\n this.timerFun = null;\r\n let canUpdate = this.getLocalStoreParam('CanModifyPresentAmount')\r\n canUpdate = canUpdate == '1' ? true : false;\r\n let percent = this.getLocalStoreParam('PresentAmountLimitPercent')\r\n this.state = {\r\n isCanUpdate: canUpdate,\r\n percentNumber: percent,\r\n memberDisabled: false\r\n }\r\n }\r\n getLocalStoreParam = (fieldname) => {\r\n let data = localStore.get('setting_setData') || [];\r\n data = data.filter(item => item.Name === fieldname);\r\n return (data && data.length > 0) ? data.shift().Value : null;\r\n }\r\n handleChange = (info, type, value) => {\r\n const { isCanUpdate, percentNumber } = this.state;\r\n if (type == 'PresentAmount') {\r\n this.editPresentAmount = true;\r\n if (isCanUpdate && this.inputStorageAmount && this.inputPresentAmount) {\r\n let thisStorageInput = this.inputStorageAmount.input.input;\r\n let thisPresentInput = this.inputPresentAmount.input.input;\r\n let maxValue = (thisStorageInput.value * parseInt(percentNumber)) / 100;\r\n if (thisPresentInput.value > maxValue) {\r\n Message.warn(`本次储值最大可赠送金额为${maxValue},请修改`, { top: 300, duration: 3 })\r\n this.setState({ memberDisabled: true })\r\n thisPresentInput.focus();\r\n return;\r\n } else {\r\n this.setState({ memberDisabled: false })\r\n }\r\n }\r\n } else {\r\n this.editPresentAmount = false;\r\n }\r\n let timer = this.timerFun;\r\n if (timer != null) {\r\n window.clearTimeout(timer);\r\n }\r\n\r\n const store = stores.memberStore;\r\n const { changeValue } = store || {};\r\n const strfun = async () => {\r\n console.log(`this${type} value:` + value);\r\n await changeValue(info, type, value, { isCanUpdate, percentValue: percentNumber })\r\n }\r\n this.timerFun = window.setTimeout(strfun, 400);\r\n }\r\n\r\n getPersonList = () => {\r\n const store = stores.memberStore;\r\n const { data, initPersonList } = store || {};\r\n const { Idstore } = data || {};\r\n initPersonList(Idstore)\r\n }\r\n\r\n initFormData = () => {\r\n const store = stores.memberStore;\r\n const { data } = store || {};\r\n const { StorageDetails } = data || {};\r\n let thisPresentAmount = StorageDetails ? JSON.getCellValue(StorageDetails[0], \"ThisPresentAmount\") : '';\r\n thisPresentAmount = (thisPresentAmount === null || thisPresentAmount === undefined) ? '' : thisPresentAmount;\r\n if (this.inputPresentAmount && this.inputPresentAmount.inputChange) {\r\n this.inputPresentAmount.inputChange(thisPresentAmount + \"\")\r\n }\r\n }\r\n componentDidUpdate() {\r\n const { isCanUpdate } = this.state;\r\n if (!this.editPresentAmount && isCanUpdate) {\r\n this.initFormData()\r\n }\r\n }\r\n render(){\r\n const store = stores.memberStore;\r\n const { isCanUpdate,memberDisabled } = this.state;\r\n const { data, changeValue, personList, settlementControlEvent } = store || {};\r\n const { Member, Person, StorageDetails } = data || {};\r\n const { Name, Mobilephone, CardCode, ImageFile, BalanceIntegral, BalanceStorage } = Member || {};\r\n let salesman = Member ? JSON.getCellValue(Member, \"Person.Name\") : '';\r\n let thisPresentAmount = StorageDetails ? JSON.getCellValue(StorageDetails[0], \"ThisPresentAmount\") : '';\r\n thisPresentAmount = (thisPresentAmount === null || thisPresentAmount === undefined) ? '' : thisPresentAmount;\r\n let thisStorageAmount = StorageDetails ? JSON.getCellValue(StorageDetails[0], \"ThisStorageAmount\") : '';\r\n thisStorageAmount = (thisStorageAmount === null || thisStorageAmount === undefined) ? '' : thisStorageAmount;\r\n //金额小数精度\r\n let amountPrecision = PosInitData(\"AmountPrecision\");\r\n amountPrecision = amountPrecision ? parseInt(amountPrecision) : '';\r\n //金额最大位数\r\n let amountMaxLength = PosInitData(\"AmountMaxLength\");\r\n amountMaxLength = amountMaxLength ? parseInt(amountMaxLength) : '';\r\n //储值参数\r\n const storeInfo = TStore.restore()\r\n let settlementParams = {\r\n dataSource: data ? data.DataSource : {},\r\n initData: PosInitData,\r\n storeInfo: storeInfo,\r\n showAmount: false,\r\n isMemberStorePage: true,\r\n amount: thisStorageAmount,\r\n type: 1,\r\n dto: data,\r\n memberDisabled: memberDisabled,\r\n ...settlementControlEvent\r\n }\r\n console.log('储值金额:' + thisStorageAmount)\r\n console.log('储值settlementParams', settlementParams)\r\n return (\r\n <div className={`${hotKey.hotKeyBindClass('1')}`}>\r\n {\r\n data &&\r\n <div className='memberstore'>\r\n <div className='memberstore-head'>\r\n <div className='imageContainer'>\r\n <img src={ImageFile || photo} />\r\n <div className='imageContainer-message'>\r\n {\r\n Name && <div className='divText'>{Name}</div>\r\n }\r\n {\r\n Name && <div className='divBlank'></div>\r\n }\r\n <div className='divText'>{Mobilephone || CardCode}</div>\r\n </div>\r\n </div>\r\n <div className='message'>\r\n <span>{formatPrecision(BalanceStorage)}</span>\r\n <br />\r\n <span>余额</span>\r\n </div>\r\n <div className='message'>\r\n <span>{formatPrecision(BalanceIntegral)}</span>\r\n <br />\r\n <span>积分</span>\r\n </div>\r\n </div>\r\n <div className='line'></div>\r\n <div className='form'>\r\n <FormItem key={1}>\r\n <div className='one'>开卡业务员</div>\r\n <div className='two'>{salesman}</div>\r\n </FormItem>\r\n <FormItem key={2}>\r\n <div className='one'>导购员</div>\r\n <div className='two'>\r\n <Select\r\n placeholder='请选择储值业务员'\r\n style={{ width: 300, marginRight: 6 }}\r\n showSearch={false}\r\n notFoundContent={'空'}\r\n onFocus={this.getPersonList}\r\n onChange={(value, item) => changeValue(data, 'Person', item.props.ot)}\r\n >\r\n {\r\n personList && personList.map(item => {\r\n return <Option key={item.ID} ot={item} value={item.ID}>{item.Name}</Option>\r\n })\r\n }\r\n </Select>\r\n </div>\r\n </FormItem>\r\n <FormItem key={3}>\r\n <div className='one'>本次储值</div>\r\n <div className='two'>\r\n <NumKeyboard\r\n className=\"content\"\r\n type='text'\r\n bordered\r\n style={{ width: 300, height: 32 }}\r\n maxLength={amountMaxLength}\r\n precisionLength={amountPrecision}\r\n ref={input => this.inputStorageAmount = input}\r\n onChange={value => this.handleChange(data, 'StoreAmount', value)}\r\n />\r\n </div>\r\n </FormItem>\r\n <FormItem key={4}>\r\n <div className='one'>本次赠送</div>\r\n <div className='two'>\r\n {\r\n isCanUpdate\r\n ?\r\n <NumKeyboard\r\n className=\"content\"\r\n type='text'\r\n bordered\r\n style={{ width: 300, height: 32 }}\r\n maxLength={amountMaxLength}\r\n precisionLength={amountPrecision}\r\n ref={input => this.inputPresentAmount = input}\r\n onBlur={value => this.handleChange(data, 'PresentAmount', value)}\r\n onChange={value => this.handleChange(data, 'PresentAmount', value)}\r\n />\r\n :\r\n thisPresentAmount\r\n }\r\n </div>\r\n </FormItem>\r\n </div>\r\n <div className='line2'></div>\r\n <div className='footer'>\r\n <div className='storage-footer'>\r\n <Settlement {...settlementParams} />\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n )\r\n }\r\n}\r\nexport default MemberStoreView;"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/views/MemberStoreViewContainer.js"],"names":["MemberStoreViewContainer","observer","platform","isNewRetailBCPos","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;;;AACA;;;;AACA;;;;IAEMA,wB,OADLC,wB;;;;;;;;;;iCAGW;AAAA,uBACyBC,yBAAY,EADrC;AAAA,gBACIC,gBADJ,QACIA,gBADJ;;AAEJ,mBACI;AAAA;AAAA;AACKA,mCAAmB,8BAAC,4BAAD,OAAnB,GAA4C,8BAAC,yBAAD;AADjD,aADJ;AAKH;;;EATkCC,gB;;kBAWxBJ,wB","file":"MemberStoreViewContainer.js","sourcesContent":["import React, { Component } from 'react';\nimport { observer } from \"mutants-microfx\";\nimport MemberStoreView from './MemberStoreView'\nimport MemberStoreNewView from './MemberStoreNewView'\nimport { platform } from 'mutants-util';\n@observer\nclass MemberStoreViewContainer extends Component{\n \n render(){\n const { isNewRetailBCPos } = platform || {};\n return (\n <div>\n {isNewRetailBCPos ? <MemberStoreNewView /> : <MemberStoreView />}\n </div>\n )\n }\n}\nexport default MemberStoreViewContainer;"]}
|
1
|
+
{"version":3,"sources":["tplus-member/views/MemberStoreViewContainer.js"],"names":["MemberStoreViewContainer","observer","platform","isNewRetailBCPos","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;;;AACA;;;;AACA;;;;IAEMA,wB,OADLC,wB;;;;;;;;;;iCAGW;AAAA,uBACyBC,yBAAY,EADrC;AAAA,gBACIC,gBADJ,QACIA,gBADJ;;AAEJ,mBACI;AAAA;AAAA;AACKA,mCAAmB,8BAAC,4BAAD,OAAnB,GAA4C,8BAAC,yBAAD;AADjD,aADJ;AAKH;;;EATkCC,gB;;kBAWxBJ,wB","file":"MemberStoreViewContainer.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { observer } from \"mutants-microfx\";\r\nimport MemberStoreView from './MemberStoreView'\r\nimport MemberStoreNewView from './MemberStoreNewView'\r\nimport { platform } from 'mutants-util';\r\n@observer\r\nclass MemberStoreViewContainer extends Component{\r\n \r\n render(){\r\n const { isNewRetailBCPos } = platform || {};\r\n return (\r\n <div>\r\n {isNewRetailBCPos ? <MemberStoreNewView /> : <MemberStoreView />}\r\n </div>\r\n )\r\n }\r\n}\r\nexport default MemberStoreViewContainer;"]}
|
@@ -1,119 +1,119 @@
|
|
1
|
-
.presentDetailContainer {
|
2
|
-
display: flex;
|
3
|
-
flex-direction: column;
|
4
|
-
align-items: center;
|
5
|
-
margin-top: 10px;
|
6
|
-
.content{
|
7
|
-
display: flex;
|
8
|
-
justify-content: center;
|
9
|
-
align-items: center;
|
10
|
-
width: 360px;
|
11
|
-
height: 68px;
|
12
|
-
.contentOut {
|
13
|
-
width: 356px;
|
14
|
-
height: 64px;
|
15
|
-
border-style: dashed;
|
16
|
-
border-width: 1px;
|
17
|
-
padding: 10px 14px;
|
18
|
-
border-radius: 5px;
|
19
|
-
.one {
|
20
|
-
font-family: 'PingFangSC-Semibold';
|
21
|
-
font-size: 14px;
|
22
|
-
color: #333333;
|
23
|
-
line-height: 16px;
|
24
|
-
}
|
25
|
-
.two{
|
26
|
-
font-family: 'PingFangSC-Regular';
|
27
|
-
font-size: 12px;
|
28
|
-
color: #666666;
|
29
|
-
line-height: 13px;
|
30
|
-
margin-top: 4px;
|
31
|
-
}
|
32
|
-
.floatLeftDashed {
|
33
|
-
position: absolute;
|
34
|
-
display: inline-block;
|
35
|
-
width:8px;
|
36
|
-
height:16px;
|
37
|
-
border-top-right-radius: 8px;
|
38
|
-
border-bottom-right-radius: 8px;
|
39
|
-
left: 1px;
|
40
|
-
top: 24px;
|
41
|
-
&::after{
|
42
|
-
position: absolute;
|
43
|
-
bottom: -1px;
|
44
|
-
left: -2px;
|
45
|
-
content: '';
|
46
|
-
width: 12px;
|
47
|
-
height: 16px;
|
48
|
-
border-left: 2px solid white;
|
49
|
-
z-index: 10;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
.floatRightDashed {
|
53
|
-
position: absolute;
|
54
|
-
display: inline-block;
|
55
|
-
width:8px;
|
56
|
-
height:16px;
|
57
|
-
border-top-left-radius: 8px;
|
58
|
-
border-bottom-left-radius: 8px;
|
59
|
-
right: 1px;
|
60
|
-
top: 24px;
|
61
|
-
&::after{
|
62
|
-
position: absolute;
|
63
|
-
bottom: -1px;
|
64
|
-
right: -1px;
|
65
|
-
content: '';
|
66
|
-
width: 12px;
|
67
|
-
height: 16px;
|
68
|
-
border-right: 2px solid white;
|
69
|
-
z-index: 10;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
}
|
73
|
-
border-radius: 5px;
|
74
|
-
position: relative;
|
75
|
-
margin-bottom: 10px;
|
76
|
-
.floatLeft {
|
77
|
-
position: absolute;
|
78
|
-
display: inline-block;
|
79
|
-
width:7px;
|
80
|
-
height:14px;
|
81
|
-
border-top-right-radius:7px;
|
82
|
-
border-bottom-right-radius:7px;
|
83
|
-
left: -1px;
|
84
|
-
top: 25px;
|
85
|
-
z-index: 20;
|
86
|
-
&::after{
|
87
|
-
position: absolute;
|
88
|
-
bottom: 0px;
|
89
|
-
left: -1px;
|
90
|
-
content: '';
|
91
|
-
width: 12px;
|
92
|
-
height: 12px;
|
93
|
-
border-left: 2px solid white;
|
94
|
-
z-index: 10;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
.floatRight {
|
98
|
-
position: absolute;
|
99
|
-
display: inline-block;
|
100
|
-
width:7px;
|
101
|
-
height:14px;
|
102
|
-
border-top-left-radius:7px;
|
103
|
-
border-bottom-left-radius:7px;
|
104
|
-
right: -1px;
|
105
|
-
top: 25px;
|
106
|
-
z-index: 20;
|
107
|
-
&::after{
|
108
|
-
position: absolute;
|
109
|
-
bottom: 0px;
|
110
|
-
right: -1px;
|
111
|
-
content: '';
|
112
|
-
width: 12px;
|
113
|
-
height: 12px;
|
114
|
-
border-right: 2px solid white;
|
115
|
-
z-index: 10;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
}
|
1
|
+
.presentDetailContainer {
|
2
|
+
display: flex;
|
3
|
+
flex-direction: column;
|
4
|
+
align-items: center;
|
5
|
+
margin-top: 10px;
|
6
|
+
.content{
|
7
|
+
display: flex;
|
8
|
+
justify-content: center;
|
9
|
+
align-items: center;
|
10
|
+
width: 360px;
|
11
|
+
height: 68px;
|
12
|
+
.contentOut {
|
13
|
+
width: 356px;
|
14
|
+
height: 64px;
|
15
|
+
border-style: dashed;
|
16
|
+
border-width: 1px;
|
17
|
+
padding: 10px 14px;
|
18
|
+
border-radius: 5px;
|
19
|
+
.one {
|
20
|
+
font-family: 'PingFangSC-Semibold';
|
21
|
+
font-size: 14px;
|
22
|
+
color: #333333;
|
23
|
+
line-height: 16px;
|
24
|
+
}
|
25
|
+
.two{
|
26
|
+
font-family: 'PingFangSC-Regular';
|
27
|
+
font-size: 12px;
|
28
|
+
color: #666666;
|
29
|
+
line-height: 13px;
|
30
|
+
margin-top: 4px;
|
31
|
+
}
|
32
|
+
.floatLeftDashed {
|
33
|
+
position: absolute;
|
34
|
+
display: inline-block;
|
35
|
+
width:8px;
|
36
|
+
height:16px;
|
37
|
+
border-top-right-radius: 8px;
|
38
|
+
border-bottom-right-radius: 8px;
|
39
|
+
left: 1px;
|
40
|
+
top: 24px;
|
41
|
+
&::after{
|
42
|
+
position: absolute;
|
43
|
+
bottom: -1px;
|
44
|
+
left: -2px;
|
45
|
+
content: '';
|
46
|
+
width: 12px;
|
47
|
+
height: 16px;
|
48
|
+
border-left: 2px solid white;
|
49
|
+
z-index: 10;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
.floatRightDashed {
|
53
|
+
position: absolute;
|
54
|
+
display: inline-block;
|
55
|
+
width:8px;
|
56
|
+
height:16px;
|
57
|
+
border-top-left-radius: 8px;
|
58
|
+
border-bottom-left-radius: 8px;
|
59
|
+
right: 1px;
|
60
|
+
top: 24px;
|
61
|
+
&::after{
|
62
|
+
position: absolute;
|
63
|
+
bottom: -1px;
|
64
|
+
right: -1px;
|
65
|
+
content: '';
|
66
|
+
width: 12px;
|
67
|
+
height: 16px;
|
68
|
+
border-right: 2px solid white;
|
69
|
+
z-index: 10;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
border-radius: 5px;
|
74
|
+
position: relative;
|
75
|
+
margin-bottom: 10px;
|
76
|
+
.floatLeft {
|
77
|
+
position: absolute;
|
78
|
+
display: inline-block;
|
79
|
+
width:7px;
|
80
|
+
height:14px;
|
81
|
+
border-top-right-radius:7px;
|
82
|
+
border-bottom-right-radius:7px;
|
83
|
+
left: -1px;
|
84
|
+
top: 25px;
|
85
|
+
z-index: 20;
|
86
|
+
&::after{
|
87
|
+
position: absolute;
|
88
|
+
bottom: 0px;
|
89
|
+
left: -1px;
|
90
|
+
content: '';
|
91
|
+
width: 12px;
|
92
|
+
height: 12px;
|
93
|
+
border-left: 2px solid white;
|
94
|
+
z-index: 10;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
.floatRight {
|
98
|
+
position: absolute;
|
99
|
+
display: inline-block;
|
100
|
+
width:7px;
|
101
|
+
height:14px;
|
102
|
+
border-top-left-radius:7px;
|
103
|
+
border-bottom-left-radius:7px;
|
104
|
+
right: -1px;
|
105
|
+
top: 25px;
|
106
|
+
z-index: 20;
|
107
|
+
&::after{
|
108
|
+
position: absolute;
|
109
|
+
bottom: 0px;
|
110
|
+
right: -1px;
|
111
|
+
content: '';
|
112
|
+
width: 12px;
|
113
|
+
height: 12px;
|
114
|
+
border-right: 2px solid white;
|
115
|
+
z-index: 10;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
119
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/views/PresetDetailView.js"],"names":["PresetDetailView","props","state","giftList","map","value","amount","RightsStr","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;IAEqBA,gB;;;AACnB,8BAAYC,KAAZ,EAAmB;AAAA;;AAAA,8JACXA,KADW;;AAEjB,cAAKC,KAAL,GAAa,EAAb;AAFiB;AAKlB;;;;iCAEQ;AAAA,gBACGC,QADH,GACgB,KAAKF,KADrB,CACGE,QADH;;AAEP,mBACI;AAAA;AAAA,kBAAK,WAAU,wBAAf;AAEQA,4BAAYA,SAASC,GAAT,CAAa,UAACC,KAAD,EAAW;AAChC,2BACA;AAAA;AAAA,0BAAK,WAAU,iBAAf;AACI;AAAA;AAAA,8BAAK,WAAU,0BAAf;AACI;AAAA;AAAA,kCAAK,WAAU,KAAf;AAAA;AAA4BA,sCAAMC;AAAlC,6BADJ;AAEI;AAAA;AAAA,kCAAK,WAAU,KAAf;AAAuBD,sCAAME;AAA7B,6BAFJ;AAGI,oEAAM,WAAU,mBAAhB,GAHJ;AAII,oEAAM,WAAU,oBAAhB,GAJJ;AAKI,oEAAM,WAAU,+BAAhB,GALJ;AAMI,oEAAM,WAAU,gCAAhB;AANJ;AADJ,qBADA;AAYH,iBAbW;AAFpB,aADJ;AAoBD;;;EA9B2CC,gB;;kBAAzBR,gB","file":"PresetDetailView.js","sourcesContent":["import React, { Component } from 'react';\nimport './PresentDetail.less';\n\nexport default class PresetDetailView extends Component {\n constructor(props) {\n super(props);\n this.state = {\n \n };\n }\n\n render() {\n const { giftList } = this.props;\n return (\n <div className='presentDetailContainer'>\n {\n giftList && giftList.map((value) => {\n return (\n <div className='content b-theme'>\n <div className='contentOut b-theme-color'>\n <div className='one'>储值金额:{ value.amount }</div>\n <div className='two'>{ value.RightsStr }</div>\n <span className='floatLeft b-theme'></span>\n <span className='floatRight b-theme'></span>\n <span className='floatLeftDashed b-theme-color'></span>\n <span className='floatRightDashed b-theme-color'></span>\n </div>\n </div>\n )\n })\n }\n </div>\n )\n }\n}\n"]}
|
1
|
+
{"version":3,"sources":["tplus-member/views/PresetDetailView.js"],"names":["PresetDetailView","props","state","giftList","map","value","amount","RightsStr","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;IAEqBA,gB;;;AACnB,8BAAYC,KAAZ,EAAmB;AAAA;;AAAA,8JACXA,KADW;;AAEjB,cAAKC,KAAL,GAAa,EAAb;AAFiB;AAKlB;;;;iCAEQ;AAAA,gBACGC,QADH,GACgB,KAAKF,KADrB,CACGE,QADH;;AAEP,mBACI;AAAA;AAAA,kBAAK,WAAU,wBAAf;AAEQA,4BAAYA,SAASC,GAAT,CAAa,UAACC,KAAD,EAAW;AAChC,2BACA;AAAA;AAAA,0BAAK,WAAU,iBAAf;AACI;AAAA;AAAA,8BAAK,WAAU,0BAAf;AACI;AAAA;AAAA,kCAAK,WAAU,KAAf;AAAA;AAA4BA,sCAAMC;AAAlC,6BADJ;AAEI;AAAA;AAAA,kCAAK,WAAU,KAAf;AAAuBD,sCAAME;AAA7B,6BAFJ;AAGI,oEAAM,WAAU,mBAAhB,GAHJ;AAII,oEAAM,WAAU,oBAAhB,GAJJ;AAKI,oEAAM,WAAU,+BAAhB,GALJ;AAMI,oEAAM,WAAU,gCAAhB;AANJ;AADJ,qBADA;AAYH,iBAbW;AAFpB,aADJ;AAoBD;;;EA9B2CC,gB;;kBAAzBR,gB","file":"PresetDetailView.js","sourcesContent":["import React, { Component } from 'react';\r\nimport './PresentDetail.less';\r\n\r\nexport default class PresetDetailView extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n \r\n };\r\n }\r\n\r\n render() {\r\n const { giftList } = this.props;\r\n return (\r\n <div className='presentDetailContainer'>\r\n {\r\n giftList && giftList.map((value) => {\r\n return (\r\n <div className='content b-theme'>\r\n <div className='contentOut b-theme-color'>\r\n <div className='one'>储值金额:{ value.amount }</div>\r\n <div className='two'>{ value.RightsStr }</div>\r\n <span className='floatLeft b-theme'></span>\r\n <span className='floatRight b-theme'></span>\r\n <span className='floatLeftDashed b-theme-color'></span>\r\n <span className='floatRightDashed b-theme-color'></span>\r\n </div>\r\n </div>\r\n )\r\n })\r\n }\r\n </div>\r\n )\r\n }\r\n}\r\n"]}
|
@@ -1,54 +1,54 @@
|
|
1
|
-
.memberAddModal{
|
2
|
-
.ant-modal-body{
|
3
|
-
overflow:initial!important;
|
4
|
-
>section{
|
5
|
-
height: 336px!important;
|
6
|
-
}
|
7
|
-
section{
|
8
|
-
background: white;
|
9
|
-
}
|
10
|
-
}
|
11
|
-
.memberadd-container{
|
12
|
-
position: relative;
|
13
|
-
height: 376px;
|
14
|
-
padding-top: 2px;
|
15
|
-
.image{
|
16
|
-
width:48px;
|
17
|
-
height:48px;
|
18
|
-
border:1px solid #EFEFEF;
|
19
|
-
border-radius: 50%;
|
20
|
-
margin:0 auto;
|
21
|
-
margin-top: 2px;
|
22
|
-
overflow: hidden;
|
23
|
-
img {
|
24
|
-
margin: -1px;
|
25
|
-
width : 104%;
|
26
|
-
height: 104%;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
.editIcon{
|
30
|
-
position: absolute;
|
31
|
-
top: 27px;
|
32
|
-
left: 410px;
|
33
|
-
color: #FF8C26;
|
34
|
-
}
|
35
|
-
.memberadd-submit{
|
36
|
-
padding-right: 16px;
|
37
|
-
width:100%;
|
38
|
-
height: 46px;
|
39
|
-
display: flex;
|
40
|
-
justify-content: space-between;
|
41
|
-
align-items: center;
|
42
|
-
justify-content: flex-end
|
43
|
-
}
|
44
|
-
|
45
|
-
button{
|
46
|
-
height:32px;
|
47
|
-
font-size:16px;
|
48
|
-
margin-left:16px;
|
49
|
-
border-radius: 4px;
|
50
|
-
line-height: 24px;
|
51
|
-
// float: right;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
1
|
+
.memberAddModal{
|
2
|
+
.ant-modal-body{
|
3
|
+
overflow:initial!important;
|
4
|
+
>section{
|
5
|
+
height: 336px!important;
|
6
|
+
}
|
7
|
+
section{
|
8
|
+
background: white;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
.memberadd-container{
|
12
|
+
position: relative;
|
13
|
+
height: 376px;
|
14
|
+
padding-top: 2px;
|
15
|
+
.image{
|
16
|
+
width:48px;
|
17
|
+
height:48px;
|
18
|
+
border:1px solid #EFEFEF;
|
19
|
+
border-radius: 50%;
|
20
|
+
margin:0 auto;
|
21
|
+
margin-top: 2px;
|
22
|
+
overflow: hidden;
|
23
|
+
img {
|
24
|
+
margin: -1px;
|
25
|
+
width : 104%;
|
26
|
+
height: 104%;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
.editIcon{
|
30
|
+
position: absolute;
|
31
|
+
top: 27px;
|
32
|
+
left: 410px;
|
33
|
+
color: #FF8C26;
|
34
|
+
}
|
35
|
+
.memberadd-submit{
|
36
|
+
padding-right: 16px;
|
37
|
+
width:100%;
|
38
|
+
height: 46px;
|
39
|
+
display: flex;
|
40
|
+
justify-content: space-between;
|
41
|
+
align-items: center;
|
42
|
+
justify-content: flex-end
|
43
|
+
}
|
44
|
+
|
45
|
+
button{
|
46
|
+
height:32px;
|
47
|
+
font-size:16px;
|
48
|
+
margin-left:16px;
|
49
|
+
border-radius: 4px;
|
50
|
+
line-height: 24px;
|
51
|
+
// float: right;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{}
|
1
|
+
{}
|
@@ -1 +1 @@
|
|
1
|
-
{}
|
1
|
+
{}
|
package/package.json
CHANGED
@@ -1,28 +1,29 @@
|
|
1
|
-
{
|
2
|
-
"name": "tplus-member",
|
3
|
-
"version": "3.
|
4
|
-
"description": "",
|
5
|
-
"main": "dist/index.js",
|
6
|
-
"scripts": {
|
7
|
-
"test": "set DEBUG=tplus:*,-not_this && mocha",
|
8
|
-
"start": "node node_modules/mutants-devtools/bin/start",
|
9
|
-
"build": "rm -rf dist && node node_modules/mutants-devtools/bin/build",
|
10
|
-
"pub": "npm run build && npm publish --registry https://registry.npmjs.org && cnpm sync tplus-member",
|
11
|
-
"dev": "node node_modules/mutants-devtools/bin/dev ../touch"
|
12
|
-
},
|
13
|
-
"author": "",
|
14
|
-
"license": "ISC",
|
15
|
-
"devDependencies": {
|
16
|
-
"mutants-appfx": "^1.0.0",
|
17
|
-
"mutants-devtools": "^1.0.0",
|
18
|
-
"mutants-microfx": "^1.0.0",
|
19
|
-
"tplus-api": "~5.0.1",
|
20
|
-
"tplus-components": "~3.
|
21
|
-
"tplus-components-touch": "~3.
|
22
|
-
"tplus-
|
23
|
-
"tplus-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
}
|
1
|
+
{
|
2
|
+
"name": "tplus-member",
|
3
|
+
"version": "3.39.3",
|
4
|
+
"description": "",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "set DEBUG=tplus:*,-not_this && mocha",
|
8
|
+
"start": "node node_modules/mutants-devtools/bin/start",
|
9
|
+
"build": "rm -rf dist && node node_modules/mutants-devtools/bin/build",
|
10
|
+
"pub": "npm run build && npm publish --registry https://registry.npmjs.org && cnpm sync tplus-member",
|
11
|
+
"dev": "node node_modules/mutants-devtools/bin/dev ../touch"
|
12
|
+
},
|
13
|
+
"author": "",
|
14
|
+
"license": "ISC",
|
15
|
+
"devDependencies": {
|
16
|
+
"mutants-appfx": "^1.0.0",
|
17
|
+
"mutants-devtools": "^1.0.0",
|
18
|
+
"mutants-microfx": "^1.0.0",
|
19
|
+
"tplus-api": "~5.0.1",
|
20
|
+
"tplus-components": "~3.39.1",
|
21
|
+
"tplus-components-touch": "~3.39.1",
|
22
|
+
"tplus-portaltouch": "~3.39.1",
|
23
|
+
"tplus-poslogin": "~3.39.1",
|
24
|
+
"tplus-setting-touch": "~3.39.1"
|
25
|
+
},
|
26
|
+
"dependencies": {
|
27
|
+
"antd": "4.10.3"
|
28
|
+
}
|
29
|
+
}
|