tplus-portaltouch 3.41.3 → 3.41.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/api/ModifyPassApi.js.map +1 -1
  2. package/dist/components/dutyandsettle/dutysettlebill.js.map +1 -1
  3. package/dist/components/dutyandsettle/dutysettlehistory.js +7 -7
  4. package/dist/components/dutyandsettle/dutysettlehistory.js.map +1 -1
  5. package/dist/components/dutyandsettle/index.js.map +1 -1
  6. package/dist/components/dutyandsettle/tipContent.js.map +1 -1
  7. package/dist/components/header/customUse.js.map +1 -1
  8. package/dist/components/header/headContent.js.map +1 -1
  9. package/dist/components/header/index.js +13 -13
  10. package/dist/components/header/index.js.map +1 -1
  11. package/dist/components/header/offlinePointDesc.js.map +1 -1
  12. package/dist/components/header/style.less +457 -457
  13. package/dist/components/header/themeModal.js.map +1 -1
  14. package/dist/components/header/uploadList.js +6 -6
  15. package/dist/components/header/uploadList.js.map +1 -1
  16. package/dist/components/header/vertical-touch.js.map +1 -1
  17. package/dist/components/header/vertical-touch.less +228 -228
  18. package/dist/containers/Main/index.js +1 -1
  19. package/dist/containers/Main/index.js.map +1 -1
  20. package/dist/dutyService/index.js.map +1 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/middleWare/index.js.map +1 -1
  23. package/dist/modalRouter/StaticRouter.js.map +1 -1
  24. package/dist/modalRouter/index.js +8 -8
  25. package/dist/modalRouter/index.js.map +1 -1
  26. package/dist/pages/Modal/index.js.map +1 -1
  27. package/dist/pages/Modal/style.less +5 -5
  28. package/dist/pages/Portalbc/data.js +5 -5
  29. package/dist/pages/Portalbc/data.js.map +1 -1
  30. package/dist/pages/Portalbc/horizontalPadPortal.js.map +1 -1
  31. package/dist/pages/Portalbc/horizontalSunMiPortal.js.map +1 -1
  32. package/dist/pages/Portalbc/index.js +6 -6
  33. package/dist/pages/Portalbc/index.js.map +1 -1
  34. package/dist/pages/Portalbc/index.less +822 -822
  35. package/dist/pages/Portalbc/onframe.js.map +1 -1
  36. package/dist/pages/Portalbc/verticalPortal.js.map +1 -1
  37. package/dist/pages/dutyandsettle/AuthProcess.js.map +1 -1
  38. package/dist/pages/dutyandsettle/index.js.map +1 -1
  39. package/dist/pages/dutyandsettle/index.less +529 -529
  40. package/dist/pages/dutyandsettle/offDuty.js +7 -7
  41. package/dist/pages/dutyandsettle/offDuty.js.map +1 -1
  42. package/dist/pages/dutyandsettle/onDialy.js.map +1 -1
  43. package/dist/pages/dutyandsettle/onDuty.js.map +1 -1
  44. package/dist/pages/dutyandsettle/onUnDaily.js.map +1 -1
  45. package/dist/pages/dutyandsettle/settleDialy.js.map +1 -1
  46. package/dist/pages/index.js.map +1 -1
  47. package/dist/pages/modifyPass/index.js.map +1 -1
  48. package/dist/pages/modifyPass/style.less +71 -71
  49. package/dist/pages/notFound/index.js.map +1 -1
  50. package/dist/pages/notFound/style.less +17 -17
  51. package/dist/stores/IframeStore.js +5 -5
  52. package/dist/stores/IframeStore.js.map +1 -1
  53. package/dist/stores/ModalRouter.js.map +1 -1
  54. package/dist/stores/ModifyPassStore.js.map +1 -1
  55. package/dist/stores/PortalStore.js +5 -5
  56. package/dist/stores/PortalStore.js.map +1 -1
  57. package/dist/stores/PosLoginStore.js.map +1 -1
  58. package/dist/stores/billHistoryStore.js.map +1 -1
  59. package/dist/stores/dutySettleStore.js.map +1 -1
  60. package/dist/stores/index.js.map +1 -1
  61. package/dist/utils/PrintProcess.js +10 -10
  62. package/dist/utils/PrintProcess.js.map +1 -1
  63. package/dist/utils/index.js.map +1 -1
  64. package/dist/utils/networkCheck.js.map +1 -1
  65. package/package.json +37 -37
  66. package/tsconfig.json +14 -14
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-portaltouch/stores/PortalStore.js"],"names":["PortalStore","console","log","DutyService","checkDuty","userId","posCode","duty","bduty","dutyState","DutyState","NotOnDuty","OnDuty","OtherDuty","OnOtherDuty","shift","result","enumController","getEnumOj","cashierCheckAccount","BY_POS","obj","param","searchName","code","planName","name","observable","localStorage","getItem","action","value","themeStore"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;sDAAA;;;;;;;;AAMA;;AAKA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEMA,W;;;;;;;;;;;;;AAQF;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AAEIC,wCAAQC,GAAR,CAAY,gBAAZ,EAA6B,gCAAY,SAAZ,CAA7B;;uCACmBC,yBAAYC,SAAZ,CAAsB,EAACC,QAAO,gCAAY,QAAZ,CAAR,EAA8BC,SAAQ,gCAAY,SAAZ,CAAtC,EAAtB,C;;;AAAbC,oC;AACFC,qC,GAAM,K;8CACHD,KAAKE,S;gEACHC,uBAAUC,S,uBAGVD,uBAAUE,M,wBAGVF,uBAAUG,S,wBAGVH,uBAAUI,W;;;;AARX;;;;AAGAN,wCAAM,IAAN;;;;AAGA,mEAAiBD,KAAKQ,KAAtB;;;;AAGA,qEAAmBR,KAAKQ,KAAxB;;;;iEAGDP,QAAMD,KAAKQ,KAAX,GAAiB,I;;;;;;;;;;;;;;;;;;;;;;;;;;uCAKLZ,yBAAYC,SAAZ,CAAsB,EAACC,QAAO,gCAAY,QAAZ,CAAR,EAA8BC,SAAQ,gCAAY,SAAZ,CAAtC,EAAtB,C;;;AAAbC,oC;+CAECA,KAAKE,S;kEACHC,uBAAUC,S,wBAQVD,uBAAUE,M,yBAGVF,uBAAUG,S,yBAGVH,uBAAUI,W;;;;;uCAbU,6BAAWP,KAAKQ,KAAhB,C;;;AAAfC,sC;;oCACF,CAACA,M;;;;;kEACM;AACHD,2CAAM;AADH,iC;;;;;;AAMX;;;;AAGA,mEAAiBR,KAAKQ,KAAtB;;;;AAGA,qEAAmBR,KAAKQ,KAAxB;;;;;;;;;;;;;;;;;;;oCAKD;AAAA,wCAC0BE,4BAAeC,SAAf,EAD1B;AAAA,gBACCC,mBADD,yBACCA,mBADD;;AAEP,mBAAO,gCAAY,cAAZ,KAA6BA,oBAAoBC,MAAxD;AACH;;;uCAEa;AACV;AACH;;;;mHAEqBC,G;;;;;;AACdC,qC,GAAQ,EAACC,YAAWF,IAAIG,IAAhB,EAAqBC,UAASJ,IAAIK,IAAlC,E;;uCACC,oBAAKJ,KAAL,EAAW,uCAAX,EAAmD,KAAnD,EAAyD,KAAzD,C;;;;;;;;;;;;;;;;;;;;;+EAtEhBK,gB;;;eAAwBC,aAAaC,OAAb,CAAqB,OAArB,C;;+EAExBC,Y;;;;;eAAqB,UAACC,KAAD,EAAW;AAC7B,kBAAKC,UAAL,GAAkBD,KAAlB;AACH,S;;;kBAqEU/B,W","file":"PortalStore.js","sourcesContent":["/*\n * @Date: 2019-08-13 08:42:18\n * @LastEditTime: 2019-10-17 20:24:12\n * @LastEditors: wangzhhr@chanjet.com\n * modify:增加查询T+中方案id接口\n */\nimport {\n action,\n observable,\n runInAction\n} from 'mobx';\nimport {tApi} from 'tplus-api';\nimport {PosInitData} from 'tplus-poslogin';\nimport { DutyService, DutyState, showOnDutyTip, showNotDutyTip, showOtherDutyTip, showOnOtherDutyTip, showOnDuty, showOnDaily} from '../dutyService'\nimport {enumController } from 'mutants-util'\n\nclass PortalStore {\n\n @observable themeStore = localStorage.getItem(\"theme\");\n\n @action themeChange = (value) => {\n this.themeStore = value;\n }\n\n // @observable portalMenus = [];\n // @action async getPortalMenu(){\n // // const data = await tApi({},'PortalMenu',false,false);\n // // runInAction(()=>{\n // // this.portalMenus = data;\n // // })\n // }\n async checkDuty(){\n console.log('posCode=======',PosInitData('posCode'));\n const duty = await DutyService.checkDuty({userId:PosInitData('UserID'),posCode:PosInitData('posCode')});\n let bduty=false;\n switch(duty.dutyState){\n case DutyState.NotOnDuty:\n showNotDutyTip();\n break;\n case DutyState.OnDuty:\n bduty=true;\n break;\n case DutyState.OtherDuty:\n showOtherDutyTip(duty.shift);\n break;\n case DutyState.OnOtherDuty:\n showOnOtherDutyTip(duty.shift);\n break;\n }\n return bduty?duty.shift:null;\n }\n\n async onDuty(){\n\n const duty = await DutyService.checkDuty({userId:PosInitData('UserID'),posCode:PosInitData('posCode')});//user.options.store.posCode\n //showOnDuty(duty.shift);\n switch(duty.dutyState){\n case DutyState.NotOnDuty:\n const result = await showOnDuty(duty.shift);\n if(!!result){\n return {\n shift:true\n }\n }\n break;\n case DutyState.OnDuty:\n showOnDutyTip();\n break;\n case DutyState.OtherDuty:\n showOtherDutyTip(duty.shift);\n break;\n case DutyState.OnOtherDuty:\n showOnOtherDutyTip(duty.shift);\n break;\n }\n }\n\n bPosDaily(){\n const { cashierCheckAccount } = enumController.getEnumOj();\n return PosInitData('POSCheckWays')==cashierCheckAccount.BY_POS;\n }\n\n onMakerDaily(){\n showOnDaily();\n }\n\n async getSearchPlanId(obj){\n let param = {searchName:obj.code,planName:obj.name};\n return await tApi(param,'chanjet.RE.NewPos.GetSearchPlanPlanID',false,false);\n }\n}\nexport default PortalStore;"]}
1
+ {"version":3,"sources":["tplus-portaltouch/stores/PortalStore.js"],"names":["PortalStore","console","log","DutyService","checkDuty","userId","posCode","duty","bduty","dutyState","DutyState","NotOnDuty","OnDuty","OtherDuty","OnOtherDuty","shift","result","enumController","getEnumOj","cashierCheckAccount","BY_POS","obj","param","searchName","code","planName","name","observable","localStorage","getItem","action","value","themeStore"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;sDAAA;;;;;;;;AAMA;;AAKA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEMA,W;;;;;;;;;;;;;AAQF;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AAEIC,wCAAQC,GAAR,CAAY,gBAAZ,EAA6B,gCAAY,SAAZ,CAA7B;;uCACmBC,yBAAYC,SAAZ,CAAsB,EAACC,QAAO,gCAAY,QAAZ,CAAR,EAA8BC,SAAQ,gCAAY,SAAZ,CAAtC,EAAtB,C;;;AAAbC,oC;A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/*\r\n * @Date: 2019-08-13 08:42:18\r\n * @LastEditTime: 2019-10-17 20:24:12\r\n * @LastEditors: wangzhhr@chanjet.com\r\n * modify:增加查询T+中方案id接口\r\n */\r\nimport {\r\n action,\r\n observable,\r\n runInAction\r\n} from 'mobx';\r\nimport {tApi} from 'tplus-api';\r\nimport {PosInitData} from 'tplus-poslogin';\r\nimport { DutyService, DutyState, showOnDutyTip, showNotDutyTip, showOtherDutyTip, showOnOtherDutyTip, showOnDuty, showOnDaily} from '../dutyService'\r\nimport {enumController } from 'mutants-util'\r\n\r\nclass PortalStore {\r\n\r\n @observable themeStore = localStorage.getItem(\"theme\");\r\n\r\n @action themeChange = (value) => {\r\n this.themeStore = value;\r\n }\r\n\r\n // @observable portalMenus = [];\r\n // @action async getPortalMenu(){\r\n // // const data = await tApi({},'PortalMenu',false,false);\r\n // // runInAction(()=>{\r\n // // this.portalMenus = data;\r\n // // })\r\n // }\r\n async checkDuty(){\r\n console.log('posCode=======',PosInitData('posCode'));\r\n const duty = await DutyService.checkDuty({userId:PosInitData('UserID'),posCode:PosInitData('posCode')});\r\n let bduty=false;\r\n switch(duty.dutyState){\r\n case DutyState.NotOnDuty:\r\n showNotDutyTip();\r\n break;\r\n case DutyState.OnDuty:\r\n bduty=true;\r\n break;\r\n case DutyState.OtherDuty:\r\n showOtherDutyTip(duty.shift);\r\n break;\r\n case DutyState.OnOtherDuty:\r\n showOnOtherDutyTip(duty.shift);\r\n break;\r\n }\r\n return bduty?duty.shift:null;\r\n }\r\n\r\n async onDuty(){\r\n\r\n const duty = await DutyService.checkDuty({userId:PosInitData('UserID'),posCode:PosInitData('posCode')});//user.options.store.posCode\r\n //showOnDuty(duty.shift);\r\n switch(duty.dutyState){\r\n case DutyState.NotOnDuty:\r\n const result = await showOnDuty(duty.shift);\r\n if(!!result){\r\n return {\r\n shift:true\r\n }\r\n }\r\n break;\r\n case DutyState.OnDuty:\r\n showOnDutyTip();\r\n break;\r\n case DutyState.OtherDuty:\r\n showOtherDutyTip(duty.shift);\r\n break;\r\n case DutyState.OnOtherDuty:\r\n showOnOtherDutyTip(duty.shift);\r\n break;\r\n }\r\n }\r\n\r\n bPosDaily(){\r\n const { cashierCheckAccount } = enumController.getEnumOj();\r\n return PosInitData('POSCheckWays')==cashierCheckAccount.BY_POS;\r\n }\r\n\r\n onMakerDaily(){\r\n showOnDaily();\r\n }\r\n\r\n async getSearchPlanId(obj){\r\n let param = {searchName:obj.code,planName:obj.name};\r\n return await tApi(param,'chanjet.RE.NewPos.GetSearchPlanPlanID',false,false);\r\n }\r\n}\r\nexport default PortalStore;"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-portaltouch/stores/PosLoginStore.js"],"names":["LoginStore","codeParam","code","stores","user","options","get","posCode","localPosCode","observable","computed","action"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEMA,U;;;;;;;;;gCAQgBC,S,EAAW;AAC7B,UAAIC,aAAJ;AACA,UAAI,OAAOD,SAAP,KAAqB,WAAzB,EAAsC;AAAA,mBACGE,uBAAOC,IAAP,CAAYC,OAAZ,CAAoBC,GAApB,CAAwB,OAAxB,KAAoC,EADvC;AAAA,gCAC5BC,OAD4B;AAAA,YACnBC,YADmB,gCACJ,EADI;;AAEpCN,eAAOM,YAAP;AACD,OAHD,MAGO;AACLN,eAAOD,SAAP;AACD;AACD,WAAKM,OAAL,GAAeL,IAAf;AACD;;;wBAb0B;AACzB,aAAO,CAAC,CAAC,KAAKK,OAAd;AACD;;;4EAJAE,gB;;;+DAEAC,c,2JAIAC,Y;kBAYYX,U","file":"PosLoginStore.js","sourcesContent":["import { action, observable, computed } from 'mobx';\nimport { stores, localStore } from 'mutants-microfx';\n\nclass LoginStore {\n\n @observable posCode;\n\n @computed get posIsLogin() {\n return !!this.posCode;\n }\n\n @action savePosCode(codeParam) {\n let code;\n if (typeof codeParam === 'undefined') {\n const { posCode: localPosCode = '' } = stores.user.options.get('store') || {};\n code = localPosCode;\n } else {\n code = codeParam;\n }\n this.posCode = code;\n }\n}\n\nexport default LoginStore;\n"]}
1
+ {"version":3,"sources":["tplus-portaltouch/stores/PosLoginStore.js"],"names":["LoginStore","codeParam","code","stores","user","options","get","posCode","localPosCode","observable","computed","action"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEMA,U;;;;;;;;;gCAQgBC,S,EAAW;AAC7B,UAAIC,aAAJ;AACA,UAAI,OAAOD,SAAP,KAAqB,WAAzB,EAAsC;AAAA,mBACGE,uBAAOC,IAAP,CAAYC,OAAZ,CAAoBC,GAApB,CAAwB,OAAxB,KAAoC,EADvC;AAAA,gCAC5BC,OAD4B;AAAA,YACnBC,YADmB,gCACJ,EADI;;AAEpCN,eAAOM,YAAP;AACD,OAHD,MAGO;AACLN,eAAOD,SAAP;AACD;AACD,WAAKM,OAAL,GAAeL,IAAf;AACD;;;wBAb0B;AACzB,aAAO,CAAC,CAAC,KAAKK,OAAd;AACD;;;4EAJAE,gB;;;+DAEAC,c,2JAIAC,Y;kBAYYX,U","file":"PosLoginStore.js","sourcesContent":["import { action, observable, computed } from 'mobx';\r\nimport { stores, localStore } from 'mutants-microfx';\r\n\r\nclass LoginStore {\r\n\r\n @observable posCode;\r\n\r\n @computed get posIsLogin() {\r\n return !!this.posCode;\r\n }\r\n\r\n @action savePosCode(codeParam) {\r\n let code;\r\n if (typeof codeParam === 'undefined') {\r\n const { posCode: localPosCode = '' } = stores.user.options.get('store') || {};\r\n code = localPosCode;\r\n } else {\r\n code = codeParam;\r\n }\r\n this.posCode = code;\r\n }\r\n}\r\n\r\nexport default LoginStore;\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-portaltouch/stores/billHistoryStore.js"],"names":["BillHistoryStore","vouchers","index","curIndex","length","dateStr","type","setCurIndex","then","result","ShiftVoucherList","JSON","parse","DailyDetailList","voucherInfo","ViewInfoList","observable","action"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEqBA,gB;AAIpB,6BAAc;AAAA;AAAA,OAHdC,QAGc,GAHJ,EAGI;;AAAA;AAEb;;;;8BAEmBC,K,EAAM;AACzB,QAAKC,QAAL,GAAcD,KAAd;AACA;;;6BAEUA,K,EAAM;AAChB,UAAOA,SAAO,CAAC,CAAR,IAAaA,QAAM,KAAKD,QAAL,CAAcG,MAAd,GAAqB,CAAxC,GAA4C,IAA5C,GAAmD,KAAKH,QAAL,CAAcC,KAAd,CAA1D;AACA;;;8BAEWG,O,EAAQC,I,EAAK;AAAA;;AACxB,QAAKC,WAAL,CAAiB,CAAC,CAAlB;AACA,uBAAK,EAACF,gBAAD,EAAL,EAAgBC,QAAM,SAAN,GAAgB,uCAAhB,GAAwD,uCAAxE,EAAiH,KAAjH,EAAwH,KAAxH,EAA+HE,IAA/H,CAAoI,UAACC,MAAD,EAAU;AAC7I,UAAKR,QAAL,GAAcK,QAAM,SAAN,GAAiBG,OAAOC,gBAAP,IAAyB,EAAzB,GAA4B,EAA5B,GAA+BC,KAAKC,KAAL,CAAWH,OAAOC,gBAAlB,CAAhD,GACJD,OAAOI,eAAP,IAAwB,EAAxB,GAA2B,EAA3B,GAA8BF,KAAKC,KAAL,CAAWH,OAAOI,eAAlB,CADxC;AAEA,UAAKC,WAAL,GAAiBH,KAAKC,KAAL,CAAWH,OAAOM,YAAlB,CAAjB;AACA,UAAKR,WAAL,CAAiB,MAAKN,QAAL,CAAcG,MAAd,GAAqB,CAArB,GAAuB,CAAvB,GAAyB,CAAC,CAA3C;AACA,IALD;AAMA;;;6EArBAY,gB;;;SAAoB,CAAC,C;;gEAKrBC,Y;kBARmBjB,gB","file":"billHistoryStore.js","sourcesContent":["import { tApi } from 'tplus-api';\nimport { action, observable, runInAction, computed, toJS, transaction } from 'mobx';\n\nexport default class BillHistoryStore {\n\tvouchers =[]\n\tvoucherInfo\n\t@observable curIndex=-1\n\tconstructor() {\n\t\t\n\t}\n\n\t@action setCurIndex(index){\n\t\tthis.curIndex=index;\n\t}\n\n\tgetVoucher(index){\n\t\treturn index==-1 || index>this.vouchers.length-1 ? null : this.vouchers[index];\n\t}\n\n\tgetVouchers(dateStr,type){\n\t\tthis.setCurIndex(-1);\n\t\ttApi({dateStr}, type=='offDuty'?'chanjet.RE.NewPos.GetShiftVoucherDTOs':'chanjet.RE.NewPos.GetDailyVoucherDTOs', false, false).then((result)=>{\n\t\t\tthis.vouchers=type=='offDuty'?(result.ShiftVoucherList==\"\"?[]:JSON.parse(result.ShiftVoucherList))\n\t\t\t\t\t\t\t\t\t\t :(result.DailyDetailList==\"\"?[]:JSON.parse(result.DailyDetailList));\n\t\t\tthis.voucherInfo=JSON.parse(result.ViewInfoList);\n\t\t\tthis.setCurIndex(this.vouchers.length>0?0:-1);\n\t\t})\n\t}\n}\n"]}
1
+ {"version":3,"sources":["tplus-portaltouch/stores/billHistoryStore.js"],"names":["BillHistoryStore","vouchers","index","curIndex","length","dateStr","type","setCurIndex","then","result","ShiftVoucherList","JSON","parse","DailyDetailList","voucherInfo","ViewInfoList","observable","action"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEqBA,gB;AAIpB,6BAAc;AAAA;AAAA,OAHdC,QAGc,GAHJ,EAGI;;AAAA;AAEb;;;;8BAEmBC,K,EAAM;AACzB,QAAKC,QAAL,GAAcD,KAAd;AACA;;;6BAEUA,K,EAAM;AAChB,UAAOA,SAAO,CAAC,CAAR,IAAaA,QAAM,KAAKD,QAAL,CAAcG,MAAd,GAAqB,CAAxC,GAA4C,IAA5C,GAAmD,KAAKH,QAAL,CAAcC,KAAd,CAA1D;AACA;;;8BAEWG,O,EAAQC,I,EAAK;AAAA;;AACxB,QAAKC,WAAL,CAAiB,CAAC,CAAlB;AACA,uBAAK,EAACF,gBAAD,EAAL,EAAgBC,QAAM,SAAN,GAAgB,uCAAhB,GAAwD,uCAAxE,EAAiH,KAAjH,EAAwH,KAAxH,EAA+HE,IAA/H,CAAoI,UAACC,MAAD,EAAU;AAC7I,UAAKR,QAAL,GAAcK,QAAM,SAAN,GAAiBG,OAAOC,gBAAP,IAAyB,EAAzB,GAA4B,EAA5B,GAA+BC,KAAKC,KAAL,CAAWH,OAAOC,gBAAlB,CAAhD,GACJD,OAAOI,eAAP,IAAwB,EAAxB,GAA2B,EAA3B,GAA8BF,KAAKC,KAAL,CAAWH,OAAOI,eAAlB,CADxC;AAEA,UAAKC,WAAL,GAAiBH,KAAKC,KAAL,CAAWH,OAAOM,YAAlB,CAAjB;AACA,UAAKR,WAAL,CAAiB,MAAKN,QAAL,CAAcG,MAAd,GAAqB,CAArB,GAAuB,CAAvB,GAAyB,CAAC,CAA3C;AACA,IALD;AAMA;;;6EArBAY,gB;;;SAAoB,CAAC,C;;gEAKrBC,Y;kBARmBjB,gB","file":"billHistoryStore.js","sourcesContent":["import { tApi } from 'tplus-api';\r\nimport { action, observable, runInAction, computed, toJS, transaction } from 'mobx';\r\n\r\nexport default class BillHistoryStore {\r\n\tvouchers =[]\r\n\tvoucherInfo\r\n\t@observable curIndex=-1\r\n\tconstructor() {\r\n\t\t\r\n\t}\r\n\r\n\t@action setCurIndex(index){\r\n\t\tthis.curIndex=index;\r\n\t}\r\n\r\n\tgetVoucher(index){\r\n\t\treturn index==-1 || index>this.vouchers.length-1 ? null : this.vouchers[index];\r\n\t}\r\n\r\n\tgetVouchers(dateStr,type){\r\n\t\tthis.setCurIndex(-1);\r\n\t\ttApi({dateStr}, type=='offDuty'?'chanjet.RE.NewPos.GetShiftVoucherDTOs':'chanjet.RE.NewPos.GetDailyVoucherDTOs', false, false).then((result)=>{\r\n\t\t\tthis.vouchers=type=='offDuty'?(result.ShiftVoucherList==\"\"?[]:JSON.parse(result.ShiftVoucherList))\r\n\t\t\t\t\t\t\t\t\t\t :(result.DailyDetailList==\"\"?[]:JSON.parse(result.DailyDetailList));\r\n\t\t\tthis.voucherInfo=JSON.parse(result.ViewInfoList);\r\n\t\t\tthis.setCurIndex(this.vouchers.length>0?0:-1);\r\n\t\t})\r\n\t}\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-portaltouch/stores/dutySettleStore.js"],"names":["DutySettleStore","preHandShiftOffDutyError","preHandShiftDailyError","u","type","user","dateStr","format","DateFormat","then","resp","shiftVoucher","JSON","parse","ShiftVoucherDTO","DailyDetailDTO","voucherInfo","ViewInfoList","bOffDuty","ImprestAmount","observable"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEqBA,e;AASpB,4BAAc;AAAA;AAAA,OAPdC,wBAOc,GAPa,CAAC,kBAAD,EAAoB,gBAApB,CAOb;AAAA,OANdC,sBAMc,GANW,CAAC,kBAAD,EAAoB,2BAApB,EAAgD,iBAAhD,EAAkE,sBAAlE,CAMX;;AAAA;AAEb;;;;+BAEaC,C,EAAEC,I,EAAM;AAAA;;AACrB,QAAKC,IAAL,GAAUF,CAAV;AACA,QAAKC,IAAL,GAAUA,IAAV;AACA,UAAO,oBAAKA,QAAM,SAAN,GAAgB,EAAhB,GAAmB,EAACE,SAAQ,wBAASC,MAAT,CAAgBC,uBAAhB,CAAT,EAAxB,EAA+DJ,QAAM,SAAN,GAAgB,gCAAhB,GAAiD,+BAAhH,EAAiJ,KAAjJ,EAAwJ,KAAxJ,EAA+JK,IAA/J,CAAoK,UAACC,IAAD,EAAQ;AAClL,UAAKC,YAAL,GAAkBC,KAAKC,KAAL,CAAWH,KAAKI,eAAL,IAAsBJ,KAAKK,cAAtC,CAAlB;AACA,UAAKC,WAAL,GAAiBJ,KAAKC,KAAL,CAAWH,KAAKO,YAAhB,CAAjB;AACA,2BAAY,YAAI;AAAC,WAAKC,QAAL,GAAc,CAAC,MAAKA,QAApB;AAA6B,KAA9C;AACA,IAJM,CAAP;AAKA;;;8BACWd,I,EAAKe,a,EAAc;AAC9B,UAAO,oBAAK,EAACA,4BAAD,EAAeb,SAAQ,wBAASC,MAAT,CAAgBC,uBAAhB,CAAvB,EAAL,EAA0DJ,QAAM,SAAN,GAAgB,6BAAhB,GAA8C,gCAAxG,EAA0I,KAA1I,EAAiJ,KAAjJ,CAAP;AACA;;;6EAjBAgB,gB;;;SAAqB,K;;;kBAPFpB,e","file":"dutySettleStore.js","sourcesContent":["import moment from \"moment\";\nimport { tApi } from 'tplus-api';\nimport { observable, runInAction } from 'mobx';\nimport { DateFormat } from '../dutyService';\n\nexport default class DutySettleStore {\n\n\tpreHandShiftOffDutyError = ['RE_POS_HasLogout','RE_POS_UnShift'];\n\tpreHandShiftDailyError = ['RE_POS_HasLogout','RE_POS_CashierCheck_Error','RE_POS_NotDaily','RE_POS_UnShift_Error'];\n user\n\tshiftVoucher\n\tvoucherInfo\n\t@observable bOffDuty =false;\n\ttype\n\tconstructor() {\n\t\t\n\t}\n\n preHandShift(u,type) {\n\t\tthis.user=u;\n\t\tthis.type=type;\n\t\treturn tApi(type=='offDuty'?{}:{dateStr:moment().format(DateFormat)}, type=='offDuty'?'chanjet.RE.NewPos.PreHandShift':'chanjet.RE.NewPos.PrePosDaily', false, false).then((resp)=>{\n\t\t\tthis.shiftVoucher=JSON.parse(resp.ShiftVoucherDTO||resp.DailyDetailDTO);\n\t\t\tthis.voucherInfo=JSON.parse(resp.ViewInfoList);\n\t\t\trunInAction(()=>{this.bOffDuty=!this.bOffDuty})\n\t\t})\n\t}\n\thandleShift(type,ImprestAmount){\n\t\treturn tApi({ImprestAmount,dateStr:moment().format(DateFormat)}, type=='offDuty'?'chanjet.RE.NewPos.HandShift':'chanjet.RE.NewPos.HandPosDaily', false, false)\n\t}\n}\n"]}
1
+ {"version":3,"sources":["tplus-portaltouch/stores/dutySettleStore.js"],"names":["DutySettleStore","preHandShiftOffDutyError","preHandShiftDailyError","u","type","user","dateStr","format","DateFormat","then","resp","shiftVoucher","JSON","parse","ShiftVoucherDTO","DailyDetailDTO","voucherInfo","ViewInfoList","bOffDuty","ImprestAmount","observable"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEqBA,e;AASpB,4BAAc;AAAA;AAAA,OAPdC,wBAOc,GAPa,CAAC,kBAAD,EAAoB,gBAApB,CAOb;AAAA,OANdC,sBAMc,GANW,CAAC,kBAAD,EAAoB,2BAApB,EAAgD,iBAAhD,EAAkE,sBAAlE,CAMX;;AAAA;AAEb;;;;+BAEaC,C,EAAEC,I,EAAM;AAAA;;AACrB,QAAKC,IAAL,GAAUF,CAAV;AACA,QAAKC,IAAL,GAAUA,IAAV;AACA,UAAO,oBAAKA,QAAM,SAAN,GAAgB,EAAhB,GAAmB,EAACE,SAAQ,wBAASC,MAAT,CAAgBC,uBAAhB,CAAT,EAAxB,EAA+DJ,QAAM,SAAN,GAAgB,gCAAhB,GAAiD,+BAAhH,EAAiJ,KAAjJ,EAAwJ,KAAxJ,EAA+JK,IAA/J,CAAoK,UAACC,IAAD,EAAQ;AAClL,UAAKC,YAAL,GAAkBC,KAAKC,KAAL,CAAWH,KAAKI,eAAL,IAAsBJ,KAAKK,cAAtC,CAAlB;AACA,UAAKC,WAAL,GAAiBJ,KAAKC,KAAL,CAAWH,KAAKO,YAAhB,CAAjB;AACA,2BAAY,YAAI;AAAC,WAAKC,QAAL,GAAc,CAAC,MAAKA,QAApB;AAA6B,KAA9C;AACA,IAJM,CAAP;AAKA;;;8BACWd,I,EAAKe,a,EAAc;AAC9B,UAAO,oBAAK,EAACA,4BAAD,EAAeb,SAAQ,wBAASC,MAAT,CAAgBC,uBAAhB,CAAvB,EAAL,EAA0DJ,QAAM,SAAN,GAAgB,6BAAhB,GAA8C,gCAAxG,EAA0I,KAA1I,EAAiJ,KAAjJ,CAAP;AACA;;;6EAjBAgB,gB;;;SAAqB,K;;;kBAPFpB,e","file":"dutySettleStore.js","sourcesContent":["import moment from \"moment\";\r\nimport { tApi } from 'tplus-api';\r\nimport { observable, runInAction } from 'mobx';\r\nimport { DateFormat } from '../dutyService';\r\n\r\nexport default class DutySettleStore {\r\n\r\n\tpreHandShiftOffDutyError = ['RE_POS_HasLogout','RE_POS_UnShift'];\r\n\tpreHandShiftDailyError = ['RE_POS_HasLogout','RE_POS_CashierCheck_Error','RE_POS_NotDaily','RE_POS_UnShift_Error'];\r\n user\r\n\tshiftVoucher\r\n\tvoucherInfo\r\n\t@observable bOffDuty =false;\r\n\ttype\r\n\tconstructor() {\r\n\t\t\r\n\t}\r\n\r\n preHandShift(u,type) {\r\n\t\tthis.user=u;\r\n\t\tthis.type=type;\r\n\t\treturn tApi(type=='offDuty'?{}:{dateStr:moment().format(DateFormat)}, type=='offDuty'?'chanjet.RE.NewPos.PreHandShift':'chanjet.RE.NewPos.PrePosDaily', false, false).then((resp)=>{\r\n\t\t\tthis.shiftVoucher=JSON.parse(resp.ShiftVoucherDTO||resp.DailyDetailDTO);\r\n\t\t\tthis.voucherInfo=JSON.parse(resp.ViewInfoList);\r\n\t\t\trunInAction(()=>{this.bOffDuty=!this.bOffDuty})\r\n\t\t})\r\n\t}\r\n\thandleShift(type,ImprestAmount){\r\n\t\treturn tApi({ImprestAmount,dateStr:moment().format(DateFormat)}, type=='offDuty'?'chanjet.RE.NewPos.HandShift':'chanjet.RE.NewPos.HandPosDaily', false, false)\r\n\t}\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-portaltouch/stores/index.js"],"names":["portalStore","PortalStore","modalRouter","ModalRouter","dutySettleStore","DutySettleStore","modifyPassStore","ModifyPassStore","posLoginStore","PosLoginStore","IframeStore"],"mappings":";;;;;;AAAA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;kBACe;AACbA,eAAa,IAAIC,qBAAJ,EADA;AAEbC,eAAa,IAAIC,qBAAJ,EAFA;AAGbC,mBAAiB,IAAIC,yBAAJ,EAHJ;AAIbC,mBAAiB,IAAIC,yBAAJ,EAJJ;AAKbC,iBAAe,IAAIC,uBAAJ,EALF;AAMbC,eAAaA;AANA,C","file":"index.js","sourcesContent":["import PortalStore from './PortalStore';\nimport ModalRouter from './ModalRouter';\nimport DutySettleStore from './dutySettleStore'\nimport ModifyPassStore from './ModifyPassStore'\nimport PosLoginStore from './PosLoginStore'\nimport IframeStore from './IframeStore';\nexport default {\n portalStore: new PortalStore(),\n modalRouter: new ModalRouter(),\n dutySettleStore: new DutySettleStore(),\n modifyPassStore: new ModifyPassStore(),\n posLoginStore: new PosLoginStore(),\n IframeStore: IframeStore\n};\n"]}
1
+ {"version":3,"sources":["tplus-portaltouch/stores/index.js"],"names":["portalStore","PortalStore","modalRouter","ModalRouter","dutySettleStore","DutySettleStore","modifyPassStore","ModifyPassStore","posLoginStore","PosLoginStore","IframeStore"],"mappings":";;;;;;AAAA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;kBACe;AACbA,eAAa,IAAIC,qBAAJ,EADA;AAEbC,eAAa,IAAIC,qBAAJ,EAFA;AAGbC,mBAAiB,IAAIC,yBAAJ,EAHJ;AAIbC,mBAAiB,IAAIC,yBAAJ,EAJJ;AAKbC,iBAAe,IAAIC,uBAAJ,EALF;AAMbC,eAAaA;AANA,C","file":"index.js","sourcesContent":["import PortalStore from './PortalStore';\r\nimport ModalRouter from './ModalRouter';\r\nimport DutySettleStore from './dutySettleStore'\r\nimport ModifyPassStore from './ModifyPassStore'\r\nimport PosLoginStore from './PosLoginStore'\r\nimport IframeStore from './IframeStore';\r\nexport default {\r\n portalStore: new PortalStore(),\r\n modalRouter: new ModalRouter(),\r\n dutySettleStore: new DutySettleStore(),\r\n modifyPassStore: new ModifyPassStore(),\r\n posLoginStore: new PosLoginStore(),\r\n IframeStore: IframeStore\r\n};\r\n"]}
@@ -23,9 +23,9 @@ var _createClass3 = _interopRequireDefault(_createClass2);
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
- /**
27
- * 打印
28
- * @auther 马坚
26
+ /**
27
+ * 打印
28
+ * @auther 马坚
29
29
  */
30
30
  var PrintProcess = exports.PrintProcess = function () {
31
31
  function PrintProcess() {
@@ -35,13 +35,13 @@ var PrintProcess = exports.PrintProcess = function () {
35
35
  (0, _createClass3.default)(PrintProcess, null, [{
36
36
  key: "execute",
37
37
 
38
- /**
39
- *打印
40
- *
41
- * @static
42
- * @param {*} id 单据ID
43
- * @param {*} isShift 是否交班单
44
- * @memberof PrintProcess
38
+ /**
39
+ *打印
40
+ *
41
+ * @static
42
+ * @param {*} id 单据ID
43
+ * @param {*} isShift 是否交班单
44
+ * @memberof PrintProcess
45
45
  */
46
46
  value: function () {
47
47
  var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(id, isShift) {
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-portaltouch/utils/PrintProcess.js"],"names":["PrintProcess","id","isShift","console","log","global","printShiftVoucher","execute","printDailyVoucher","error"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;IAIaA,Y,WAAAA,Y;;;;;;;;AACT;;;;;;;;;wGAQqBC,E,EAAGC,O;;;;;AAE1BC,gBAAQC,GAAR,CAAY,uBAAqBH,EAArB,GAAwB,WAAxB,GAAoCC,OAAhD;;;aAEKA,O;;;;;cAECG,OAAOC,iBAAP,IACAD,OAAOC,iBAAP,CAAyBC,O;;;;;;eACtBF,OAAOC,iBAAP,CAAyBC,OAAzB,CAAiCN,EAAjC,C;;;;;;;cAKHI,OAAOG,iBAAP,IACAH,OAAOG,iBAAP,CAAyBD,O;;;;;;eACtBF,OAAOG,iBAAP,CAAyBD,OAAzB,CAAiCN,EAAjC,C;;;;;;;;;;AAIRE,gBAAQM,KAAR,CAAc,0BAAd;;;;AAGDN,gBAAQC,GAAR,CAAY,kBAAZ","file":"PrintProcess.js","sourcesContent":["/**\n * 打印\n * @auther 马坚\n */\nexport class PrintProcess{\n /**\n *打印\n *\n * @static\n * @param {*} id 单据ID\n * @param {*} isShift 是否交班单\n * @memberof PrintProcess\n */\n static async execute(id,isShift)\n {\n\t\tconsole.log(\"PrintProcess开始:id:\"+id+\",isShift:\"+isShift);\n\t\ttry {\n\t\t\tif (isShift) {\n\t\t\t\t// 交班单打印\n\t\t\t\tif (global.printShiftVoucher \n\t\t\t\t\t&& global.printShiftVoucher.execute) {\n\t\t\t\t\tawait global.printShiftVoucher.execute(id);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// 日结单打印\n\t\t\t\tif (global.printDailyVoucher\n\t\t\t\t\t&& global.printDailyVoucher.execute) {\n\t\t\t\t\tawait global.printDailyVoucher.execute(id);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tconsole.error(\"打印出错,错误信息:\"+error)\n\t\t}\n \n\t\tconsole.log(\"PrintProcess打印结束\");\n }\n}"]}
1
+ {"version":3,"sources":["tplus-portaltouch/utils/PrintProcess.js"],"names":["PrintProcess","id","isShift","console","log","global","printShiftVoucher","execute","printDailyVoucher","error"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;IAIaA,Y,WAAAA,Y;;;;;;;;AACT;;;;;;;;;wGAQqBC,E,EAAGC,O;;;;;AAE1BC,gBAAQC,GAAR,CAAY,uBAAqBH,EAArB,GAAwB,WAAxB,GAAoCC,OAAhD;;;aAEKA,O;;;;;cAECG,OAAOC,iBAAP,IACAD,OAAOC,iBAAP,CAAyBC,O;;;;;;eACtBF,OAAOC,iBAAP,CAAyBC,OAAzB,CAAiCN,EAAjC,C;;;;;;;cAKHI,OAAOG,iBAAP,IACAH,OAAOG,iBAAP,CAAyBD,O;;;;;;eACtBF,OAAOG,iBAAP,CAAyBD,OAAzB,CAAiCN,EAAjC,C;;;;;;;;;;AAIRE,gBAAQM,KAAR,CAAc,0BAAd;;;;AAGDN,gBAAQC,GAAR,CAAY,kBAAZ","file":"PrintProcess.js","sourcesContent":["/**\r\n * 打印\r\n * @auther 马坚\r\n */\r\nexport class PrintProcess{\r\n /**\r\n *打印\r\n *\r\n * @static\r\n * @param {*} id 单据ID\r\n * @param {*} isShift 是否交班单\r\n * @memberof PrintProcess\r\n */\r\n static async execute(id,isShift)\r\n {\r\n\t\tconsole.log(\"PrintProcess开始:id:\"+id+\",isShift:\"+isShift);\r\n\t\ttry {\r\n\t\t\tif (isShift) {\r\n\t\t\t\t// 交班单打印\r\n\t\t\t\tif (global.printShiftVoucher \r\n\t\t\t\t\t&& global.printShiftVoucher.execute) {\r\n\t\t\t\t\tawait global.printShiftVoucher.execute(id);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t// 日结单打印\r\n\t\t\t\tif (global.printDailyVoucher\r\n\t\t\t\t\t&& global.printDailyVoucher.execute) {\r\n\t\t\t\t\tawait global.printDailyVoucher.execute(id);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (error) {\r\n\t\t\tconsole.error(\"打印出错,错误信息:\"+error)\r\n\t\t}\r\n \r\n\t\tconsole.log(\"PrintProcess打印结束\");\r\n }\r\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-portaltouch/utils/index.js"],"names":["formatDate","formatMoney","generatorClass","closeWebPage","getQueryString","time","format","Date","o","getMonth","getDate","getHours","getMinutes","getSeconds","Math","floor","getMilliseconds","test","replace","RegExp","$1","getFullYear","substr","length","k","num","digit","mode","powNumber","pow","money","ceil","round","numStr","toString","numArr","split","integer","decimal","decimalLength","i","String","className","addClassName","join","trim","window","location","href","locationSearch","name","reg","r","match","operationKeys","enter","esc"],"mappings":";;;;;;;;;;;QAEgBA,U,GAAAA,U;QAsBAC,W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AP,CAAgBC,IAAhB,GAAuB,aAAvB;AACD;;AAEM,SAAS5C,cAAT,CAAwB6C,cAAxB,EAAwCC,IAAxC,EAA8C;AACnD,MAAIC,MAAM,IAAIhC,MAAJ,CAAW,UAAU+B,IAAV,GAAiB,eAA5B,EAA4C,GAA5C,CAAV;AACA,MAAIE,IAAIH,eAAe3B,MAAf,CAAsB,CAAtB,EAAyB+B,KAAzB,CAA+BF,GAA/B,CAAR;AACA,MAAIC,KAAG,IAAP,EAAa,OAAQA,EAAE,CAAF,CAAR,CAAe,OAAO,IAAP;AAC7B;;AAEM,IAAME,wCAAgB;AAC3BC,SAAO,CACL,aADK,EACU,8BADV,EAC0C,eAD1C,EAEL,0BAFK,EAEuB,2BAFvB,EAEoD,aAFpD,EAGJ,kBAHI,EAGe,4BAHf,CADoB;AAM3BC,OAAK,CAAC,WAAD,EAAc,eAAd,EAA+B,cAA/B,EAA+C,oBAA/C,EAAqE,yBAArE;AANsB,CAAtB","file":"index.js","sourcesContent":["/* eslint-disable */\n// Usage https://github.com/Hzy0913/utils\nexport function formatDate(time, format) {\n time = new Date(time);\n const o = {\n 'M+': time.getMonth() + 1,\n 'd+': time.getDate(),\n 'h+': time.getHours(),\n 'm+': time.getMinutes(),\n 's+': time.getSeconds(),\n 'q+': Math.floor((time.getMonth() + 3) / 3),\n 'S': time.getMilliseconds()\n };\n if (/(y+)/.test(format)) {\n format = format.replace(RegExp.$1, (time.getFullYear() + '').substr(4 - RegExp.$1.length));\n }\n for (var k in o) {\n if (new RegExp('(' + k + ')').test(format)) {\n format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));\n }\n }\n return format;\n}\n\nexport function formatMoney(num, digit, mode) {\n var powNumber = Math.pow(10, digit);\n var money;\n if (mode === 'ceil') {\n money = Math.ceil(num * powNumber) / powNumber;\n } else if (mode === 'floor') {\n money = Math.floor(num * powNumber) / powNumber;\n } else {\n money = Math.round(num * powNumber) / powNumber;\n }\n var numStr = money.toString();\n var numArr = numStr.split('.');\n var integer = numArr[0];\n var decimal = numArr[1] || '';\n var decimalLength = decimal.length;\n for (var i = 0; i < (digit - decimalLength); i++) {\n decimal += '0';\n }\n money = String(integer).replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n if (digit) {\n money = money + '.' + decimal;\n }\n return money;\n}\n\nexport function generatorClass(className, addClassName = '') {\n if (typeof addClassName === 'string') {\n return [className, addClassName].join(' ').trim();\n }\n return [className, ...addClassName].join(' ').trim();\n}\n\n//关闭浏览器窗口或页签\nexport function closeWebPage() {\n window.location.href = 'about:blank';\n}\n\nexport function getQueryString(locationSearch, name) {\n var reg = new RegExp(\"(^|&)\" + name + \"=([^&]*)(&|$)\",\"i\");\n var r = locationSearch.substr(1).match(reg);\n if (r!=null) return (r[2]); return null;\n}\n\nexport const operationKeys = {\n enter: [\n '.ant-btn=确定', '.number-keyboard-input .sure', '.login-button',\n '.settlement .hotKeyEnter', '.ant-modal-body button=确定', '.ant-btn=继续'\n ,'.ant-btn-primary','.ant-btn-primary span=选取会员',\n ],\n esc: ['.uf-close', '.drawer-close', '.u-button=取消', '.payfooter .cancel', '.u-modal-body button=取消'],\n}\n"]}
1
+ {"version":3,"sources":["tplus-portaltouch/utils/index.js"],"names":["formatDate","formatMoney","generatorClass","closeWebPage","getQueryString","time","format","Date","o","getMonth","getDate","getHours","getMinutes","getSeconds","Math","floor","getMilliseconds","test","replace","RegExp","$1","getFullYear","substr","length","k","num","digit","mode","powNumber","pow","money","ceil","round","numStr","toString","numArr","split","integer","decimal","decimalLength","i","String","className","addClassName","join","trim","window","location","href","locationSearch","name","reg","r","match","operationKeys","enter","esc"],"mappings":";;;;;;;;;;;QAEgBA,U,GAAAA,U;QAsBAC,W,GAAAA,W;QAyBAC,c,GAAAA,c;QAQAC,Y,GAAAA,Y;QAIAC,c,GAAAA,c;;;;AA7DhB;AACA;AACO,SAASJ,UAAT,CAAoBK,IAApB,EAA0BC,MAA1B,EAAkC;A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+B,IAAV,GAAiB,eAA5B,EAA4C,GAA5C,CAAV;AACA,MAAIE,IAAIH,eAAe3B,MAAf,CAAsB,CAAtB,EAAyB+B,KAAzB,CAA+BF,GAA/B,CAAR;AACA,MAAIC,KAAG,IAAP,EAAa,OAAQA,EAAE,CAAF,CAAR,CAAe,OAAO,IAAP;AAC7B;;AAEM,IAAME,wCAAgB;AAC3BC,SAAO,CACL,aADK,EACU,8BADV,EAC0C,eAD1C,EAEL,0BAFK,EAEuB,2BAFvB,EAEoD,aAFpD,EAGJ,kBAHI,EAGe,4BAHf,CADoB;AAM3BC,OAAK,CAAC,WAAD,EAAc,eAAd,EAA+B,cAA/B,EAA+C,oBAA/C,EAAqE,yBAArE;AANsB,CAAtB","file":"index.js","sourcesContent":["/* eslint-disable */\r\n// Usage https://github.com/Hzy0913/utils\r\nexport function formatDate(time, format) {\r\n time = new Date(time);\r\n const o = {\r\n 'M+': time.getMonth() + 1,\r\n 'd+': time.getDate(),\r\n 'h+': time.getHours(),\r\n 'm+': time.getMinutes(),\r\n 's+': time.getSeconds(),\r\n 'q+': Math.floor((time.getMonth() + 3) / 3),\r\n 'S': time.getMilliseconds()\r\n };\r\n if (/(y+)/.test(format)) {\r\n format = format.replace(RegExp.$1, (time.getFullYear() + '').substr(4 - RegExp.$1.length));\r\n }\r\n for (var k in o) {\r\n if (new RegExp('(' + k + ')').test(format)) {\r\n format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));\r\n }\r\n }\r\n return format;\r\n}\r\n\r\nexport function formatMoney(num, digit, mode) {\r\n var powNumber = Math.pow(10, digit);\r\n var money;\r\n if (mode === 'ceil') {\r\n money = Math.ceil(num * powNumber) / powNumber;\r\n } else if (mode === 'floor') {\r\n money = Math.floor(num * powNumber) / powNumber;\r\n } else {\r\n money = Math.round(num * powNumber) / powNumber;\r\n }\r\n var numStr = money.toString();\r\n var numArr = numStr.split('.');\r\n var integer = numArr[0];\r\n var decimal = numArr[1] || '';\r\n var decimalLength = decimal.length;\r\n for (var i = 0; i < (digit - decimalLength); i++) {\r\n decimal += '0';\r\n }\r\n money = String(integer).replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\r\n if (digit) {\r\n money = money + '.' + decimal;\r\n }\r\n return money;\r\n}\r\n\r\nexport function generatorClass(className, addClassName = '') {\r\n if (typeof addClassName === 'string') {\r\n return [className, addClassName].join(' ').trim();\r\n }\r\n return [className, ...addClassName].join(' ').trim();\r\n}\r\n\r\n//关闭浏览器窗口或页签\r\nexport function closeWebPage() {\r\n window.location.href = 'about:blank';\r\n}\r\n\r\nexport function getQueryString(locationSearch, name) {\r\n var reg = new RegExp(\"(^|&)\" + name + \"=([^&]*)(&|$)\",\"i\");\r\n var r = locationSearch.substr(1).match(reg);\r\n if (r!=null) return (r[2]); return null;\r\n}\r\n\r\nexport const operationKeys = {\r\n enter: [\r\n '.ant-btn=确定', '.number-keyboard-input .sure', '.login-button',\r\n '.settlement .hotKeyEnter', '.ant-modal-body button=确定', '.ant-btn=继续'\r\n ,'.ant-btn-primary','.ant-btn-primary span=选取会员',\r\n ],\r\n esc: ['.uf-close', '.drawer-close', '.u-button=取消', '.payfooter .cancel', '.u-modal-body button=取消'],\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-portaltouch/utils/networkCheck.js"],"names":["win","CheckNetwork","callback","navigator","_init","checkNetworkProto","prototype","that","onlineListener","_fnNetworkHandler","offlineListener","addEventListener","onLine","destroy","removeEventListener","isOnline","window"],"mappings":";;AAAA,CAAC,UAASA,GAAT,EAAa;AACV,aAASC,YAAT,CAAsBC,QAAtB,EAA+B;AAC3B,aAAKC,SAAL,GAAiBH,IAAIG,SAArB;AACA,aAAKD,QAAL,GAAgBA,QAAhB;AACA,aAAKE,KAAL;AACH,KAAC;AACF,QAAIC,oBAAoBJ,aAAaK,SAArC;AACAD,sBAAkBD,KAAlB,GAA0B,YAAU;AAChC,YAAIG,OAAO,IAAX;AACA,aAAKC,cAAL,GAAsB,YAAU;AAC5BD,iBAAKE,iBAAL;AACH,SAFD;AAGA,aAAKC,eAAL,GAAuB,YAAU;AAC7BH,iBAAKE,iBAAL;AACH,SAFD;AAGAT,YAAIW,gBAAJ,CAAqB,QAArB,EAA8B,KAAKH,cAAnC,EAAkD,IAAlD;AACAR,YAAIW,gBAAJ,CAAqB,SAArB,EAA+B,KAAKD,eAApC,EAAoD,IAApD;AACH,KAVD;AAWAL,sBAAkBI,iBAAlB,GAAsC,YAAU;AAC5C,aAAKP,QAAL,IAAiB,KAAKA,QAAL,CAAc,KAAKC,SAAL,CAAeS,MAAf,GAAwB,QAAxB,GAAmC,SAAjD,CAAjB;AACH,KAFD;AAGAP,sBAAkBQ,OAAlB,GAA4B,YAAU;AAClCb,YAAIc,mBAAJ,CAAwB,QAAxB,EAAiC,KAAKN,cAAL,IAAuB,YAAU,CAAE,CAApE;AACAR,YAAIc,mBAAJ,CAAwB,SAAxB,EAAkC,KAAKJ,eAAL,IAAwB,YAAU,CAAE,CAAtE;AACH,KAHD;AAIAL,sBAAkBU,QAAlB,GAA6B,YAAU;AACnC,eAAO,KAAKZ,SAAL,CAAeS,MAAtB;AACH,KAFD;AAGAZ,QAAIC,YAAJ,GAAmBA,YAAnB;AACH,CA7BD,EA6BGe,MA7BH","file":"networkCheck.js","sourcesContent":["(function(win){\n function CheckNetwork(callback){\n this.navigator = win.navigator ;\n this.callback = callback ;\n this._init() ;\n } ;\n var checkNetworkProto = CheckNetwork.prototype ;\n checkNetworkProto._init = function(){\n var that = this ;\n this.onlineListener = function(){\n that._fnNetworkHandler() ;\n }\n this.offlineListener = function(){\n that._fnNetworkHandler() ;\n }\n win.addEventListener(\"online\",this.onlineListener,true) ;\n win.addEventListener(\"offline\",this.offlineListener,true) ;\n } ;\n checkNetworkProto._fnNetworkHandler = function(){\n this.callback && this.callback(this.navigator.onLine ? \"online\" : \"offline\") ;\n } ;\n checkNetworkProto.destroy = function(){\n win.removeEventListener(\"online\",this.onlineListener || function(){});\n win.removeEventListener(\"offline\",this.offlineListener || function(){});\n }\n checkNetworkProto.isOnline = function(){\n return this.navigator.onLine ;\n } ;\n win.CheckNetwork = CheckNetwork ;\n})(window);"]}
1
+ {"version":3,"sources":["tplus-portaltouch/utils/networkCheck.js"],"names":["win","CheckNetwork","callback","navigator","_init","checkNetworkProto","prototype","that","onlineListener","_fnNetworkHandler","offlineListener","addEventListener","onLine","destroy","removeEventListener","isOnline","window"],"mappings":";;AAAA,CAAC,UAASA,GAAT,EAAa;AACV,aAASC,YAAT,CAAsBC,QAAtB,EAA+B;AAC3B,aAAKC,SAAL,GAAiBH,IAAIG,SAArB;AACA,aAAKD,QAAL,GAAgBA,QAAhB;AACA,aAAKE,KAAL;AACH,KAAC;AACF,QAAIC,oBAAoBJ,aAAaK,SAArC;AACAD,sBAAkBD,KAAlB,GAA0B,YAAU;AAChC,YAAIG,OAAO,IAAX;AACA,aAAKC,cAAL,GAAsB,YAAU;AAC5BD,iBAAKE,iBAAL;AACH,SAFD;AAGA,aAAKC,eAAL,GAAuB,YAAU;AAC7BH,iBAAKE,iBAAL;AACH,SAFD;AAGAT,YAAIW,gBAAJ,CAAqB,QAArB,EAA8B,KAAKH,cAAnC,EAAkD,IAAlD;AACAR,YAAIW,gBAAJ,CAAqB,SAArB,EAA+B,KAAKD,eAApC,EAAoD,IAApD;AACH,KAVD;AAWAL,sBAAkBI,iBAAlB,GAAsC,YAAU;AAC5C,aAAKP,QAAL,IAAiB,KAAKA,QAAL,CAAc,KAAKC,SAAL,CAAeS,MAAf,GAAwB,QAAxB,GAAmC,SAAjD,CAAjB;AACH,KAFD;AAGAP,sBAAkBQ,OAAlB,GAA4B,YAAU;AAClCb,YAAIc,mBAAJ,CAAwB,QAAxB,EAAiC,KAAKN,cAAL,IAAuB,YAAU,CAAE,CAApE;AACAR,YAAIc,mBAAJ,CAAwB,SAAxB,EAAkC,KAAKJ,eAAL,IAAwB,YAAU,CAAE,CAAtE;AACH,KAHD;AAIAL,sBAAkBU,QAAlB,GAA6B,YAAU;AACnC,eAAO,KAAKZ,SAAL,CAAeS,MAAtB;AACH,KAFD;AAGAZ,QAAIC,YAAJ,GAAmBA,YAAnB;AACH,CA7BD,EA6BGe,MA7BH","file":"networkCheck.js","sourcesContent":["(function(win){\r\n function CheckNetwork(callback){\r\n this.navigator = win.navigator ;\r\n this.callback = callback ;\r\n this._init() ;\r\n } ;\r\n var checkNetworkProto = CheckNetwork.prototype ;\r\n checkNetworkProto._init = function(){\r\n var that = this ;\r\n this.onlineListener = function(){\r\n that._fnNetworkHandler() ;\r\n }\r\n this.offlineListener = function(){\r\n that._fnNetworkHandler() ;\r\n }\r\n win.addEventListener(\"online\",this.onlineListener,true) ;\r\n win.addEventListener(\"offline\",this.offlineListener,true) ;\r\n } ;\r\n checkNetworkProto._fnNetworkHandler = function(){\r\n this.callback && this.callback(this.navigator.onLine ? \"online\" : \"offline\") ;\r\n } ;\r\n checkNetworkProto.destroy = function(){\r\n win.removeEventListener(\"online\",this.onlineListener || function(){});\r\n win.removeEventListener(\"offline\",this.offlineListener || function(){});\r\n }\r\n checkNetworkProto.isOnline = function(){\r\n return this.navigator.onLine ;\r\n } ;\r\n win.CheckNetwork = CheckNetwork ;\r\n})(window);"]}
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
- {
2
- "name": "tplus-portaltouch",
3
- "version": "3.41.3",
4
- "description": "touch protal",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "start": "node node_modules/mutants-devtools/bin/start",
8
- "build": "rm -rf dist && node node_modules/mutants-devtools/bin/build",
9
- "dev": "node node_modules/mutants-devtools/bin/dev ../touch",
10
- "pub": "npm run build && npm publish --registry https://registry.npmjs.org && cnpm sync tplus-portaltouch",
11
- "test": "set DEBUG=tplus:*,-not_this && mocha"
12
- },
13
- "keywords": [
14
- "tplus",
15
- "pos"
16
- ],
17
- "author": "tplus",
18
- "license": "ISC",
19
- "dependencies": {
20
- "antd": "4.10.3",
21
- "react": "^16.8.6",
22
- "rxjs": "^6.5.4"
23
- },
24
- "devDependencies": {
25
- "babel-eslint": "^8.0.3",
26
- "babel-plugin-import-bee": "^1.1.0",
27
- "eslint": "^4.13.1",
28
- "eslint-plugin-react": "^7.12.4",
29
- "mocha": "^5.2.0",
30
- "mutants-devtools": "^1.0.0",
31
- "mutants-microfx": "^1.0.0",
32
- "tplus-api": "~5.0.1",
33
- "tplus-components": "~3.41.1",
34
- "tplus-components-touch": "~3.41.1",
35
- "tplus-poslogin": "~3.41.1"
36
- }
37
- }
1
+ {
2
+ "name": "tplus-portaltouch",
3
+ "version": "3.41.4",
4
+ "description": "touch protal",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "start": "node node_modules/mutants-devtools/bin/start",
8
+ "build": "rm -rf dist && node node_modules/mutants-devtools/bin/build",
9
+ "dev": "node node_modules/mutants-devtools/bin/dev ../touch",
10
+ "pub": "npm run build && npm publish --registry https://registry.npmjs.org && cnpm sync tplus-portaltouch",
11
+ "test": "set DEBUG=tplus:*,-not_this && mocha"
12
+ },
13
+ "keywords": [
14
+ "tplus",
15
+ "pos"
16
+ ],
17
+ "author": "tplus",
18
+ "license": "ISC",
19
+ "dependencies": {
20
+ "antd": "4.10.3",
21
+ "react": "^16.8.6",
22
+ "rxjs": "^6.5.4"
23
+ },
24
+ "devDependencies": {
25
+ "babel-eslint": "^8.0.3",
26
+ "babel-plugin-import-bee": "^1.1.0",
27
+ "eslint": "^4.13.1",
28
+ "eslint-plugin-react": "^7.12.4",
29
+ "mocha": "^5.2.0",
30
+ "mutants-devtools": "^1.0.0",
31
+ "mutants-microfx": "^1.0.0",
32
+ "tplus-api": "~5.0.1",
33
+ "tplus-components": "~3.41.1",
34
+ "tplus-components-touch": "~3.41.1",
35
+ "tplus-poslogin": "~3.41.1"
36
+ }
37
+ }
package/tsconfig.json CHANGED
@@ -1,15 +1,15 @@
1
- {
2
- "compilerOptions": {
3
- "outDir": "./dist/", // 输出目录 path to output directory
4
- "sourceMap": true, // 允许sourcemap支持 allow sourcemap support
5
- "strictNullChecks": true, // 启用严格空检查作为最佳实践 enable strict null checks as a best practice
6
- "module": "commonjs", // 指定模块代码生成 specify module code generation
7
- "jsx": "react", // 使用typescript将jsx转换为js use typescript to transpile jsx to js
8
- "target": "es6", // 指定ECMAScript目标版本 specify ECMAScript target version
9
- "allowJs": true // 允许部分TypeScript和JavaScript代码库 allow a partial TypeScript and JavaScript codebase
10
-
11
- },
12
- "include": [
13
- "./src/"
14
- ]
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "./dist/", // 输出目录 path to output directory
4
+ "sourceMap": true, // 允许sourcemap支持 allow sourcemap support
5
+ "strictNullChecks": true, // 启用严格空检查作为最佳实践 enable strict null checks as a best practice
6
+ "module": "commonjs", // 指定模块代码生成 specify module code generation
7
+ "jsx": "react", // 使用typescript将jsx转换为js use typescript to transpile jsx to js
8
+ "target": "es6", // 指定ECMAScript目标版本 specify ECMAScript target version
9
+ "allowJs": true // 允许部分TypeScript和JavaScript代码库 allow a partial TypeScript and JavaScript codebase
10
+
11
+ },
12
+ "include": [
13
+ "./src/"
14
+ ]
15
15
  }