tplus-member 1.26.3 → 1.27.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. package/locales/zh/tplus-portsetting.json +1 -1
  2. package/locales/zh-CN/tplus-portsetting.json +1 -1
  3. package/package.json +27 -27
  4. package/dist/api.js +0 -533
  5. package/dist/api.js.map +0 -1
  6. package/dist/controllers/FeedbackController.js +0 -53
  7. package/dist/controllers/FeedbackController.js.map +0 -1
  8. package/dist/controllers/MemberOrderController.js +0 -359
  9. package/dist/controllers/MemberOrderController.js.map +0 -1
  10. package/dist/controllers/OpenCardController.js +0 -289
  11. package/dist/controllers/OpenCardController.js.map +0 -1
  12. package/dist/controllers/defaultConfig.js +0 -19
  13. package/dist/controllers/defaultConfig.js.map +0 -1
  14. package/dist/dataProvider/member.js +0 -144
  15. package/dist/dataProvider/member.js.map +0 -1
  16. package/dist/dataProvider/openCard.js +0 -145
  17. package/dist/dataProvider/openCard.js.map +0 -1
  18. package/dist/domain/member/AuthProcess.js +0 -42
  19. package/dist/domain/member/AuthProcess.js.map +0 -1
  20. package/dist/domain/member/CardCodeChangedProcessor.js +0 -35
  21. package/dist/domain/member/CardCodeChangedProcessor.js.map +0 -1
  22. package/dist/domain/member/CheckCardCodeAndCodeProcessor.js +0 -48
  23. package/dist/domain/member/CheckCardCodeAndCodeProcessor.js.map +0 -1
  24. package/dist/domain/member/CheckMobilephoneFormatProcessor.js +0 -38
  25. package/dist/domain/member/CheckMobilephoneFormatProcessor.js.map +0 -1
  26. package/dist/domain/member/CheckPresentAmountProcessor.js +0 -99
  27. package/dist/domain/member/CheckPresentAmountProcessor.js.map +0 -1
  28. package/dist/domain/member/EffectiveDateChangedProcessor.js +0 -50
  29. package/dist/domain/member/EffectiveDateChangedProcessor.js.map +0 -1
  30. package/dist/domain/member/GetThisPresentAmountProcessor.js +0 -116
  31. package/dist/domain/member/GetThisPresentAmountProcessor.js.map +0 -1
  32. package/dist/domain/member/InitDataDeductionProcessor.js +0 -68
  33. package/dist/domain/member/InitDataDeductionProcessor.js.map +0 -1
  34. package/dist/domain/member/InitDataProcessor.js +0 -140
  35. package/dist/domain/member/InitDataProcessor.js.map +0 -1
  36. package/dist/domain/member/InitDataProjectProcessor.js +0 -102
  37. package/dist/domain/member/InitDataProjectProcessor.js.map +0 -1
  38. package/dist/domain/member/IsMemberEffectiveProcessor.js +0 -45
  39. package/dist/domain/member/IsMemberEffectiveProcessor.js.map +0 -1
  40. package/dist/domain/member/IsMemberEnableProcessor.js +0 -38
  41. package/dist/domain/member/IsMemberEnableProcessor.js.map +0 -1
  42. package/dist/domain/member/IsMemberExpirationProcessor.js +0 -46
  43. package/dist/domain/member/IsMemberExpirationProcessor.js.map +0 -1
  44. package/dist/domain/member/IsMemberPasswordSameProcessor.js +0 -41
  45. package/dist/domain/member/IsMemberPasswordSameProcessor.js.map +0 -1
  46. package/dist/domain/member/IsMemberStorageForStoreProcessor.js +0 -40
  47. package/dist/domain/member/IsMemberStorageForStoreProcessor.js.map +0 -1
  48. package/dist/domain/member/MemberTypeChangedProcessor.js +0 -120
  49. package/dist/domain/member/MemberTypeChangedProcessor.js.map +0 -1
  50. package/dist/domain/member/MobilephoneChangedProcessor.js +0 -39
  51. package/dist/domain/member/MobilephoneChangedProcessor.js.map +0 -1
  52. package/dist/domain/member/PersonProcesser.js +0 -35
  53. package/dist/domain/member/PersonProcesser.js.map +0 -1
  54. package/dist/domain/member/PriuserdefChangedProcessor.js +0 -50
  55. package/dist/domain/member/PriuserdefChangedProcessor.js.map +0 -1
  56. package/dist/domain/operationLog/AddLogProcessor.js +0 -50
  57. package/dist/domain/operationLog/AddLogProcessor.js.map +0 -1
  58. package/dist/domain/operationLog/OperationConfig.js +0 -34
  59. package/dist/domain/operationLog/OperationConfig.js.map +0 -1
  60. package/dist/domain/operationLog/OperationLog.js +0 -146
  61. package/dist/domain/operationLog/OperationLog.js.map +0 -1
  62. package/dist/index.js +0 -124
  63. package/dist/index.js.map +0 -1
  64. package/dist/member/MemberPhoto.js +0 -268
  65. package/dist/member/MemberPhoto.js.map +0 -1
  66. package/dist/member/MemberShow.js +0 -167
  67. package/dist/member/MemberShow.js.map +0 -1
  68. package/dist/member/ShopMember.js +0 -1096
  69. package/dist/member/ShopMember.js.map +0 -1
  70. package/dist/member/ShopMember.less +0 -605
  71. package/dist/member/api.js +0 -726
  72. package/dist/member/api.js.map +0 -1
  73. package/dist/member/color.less +0 -32
  74. package/dist/member/index.js +0 -843
  75. package/dist/member/index.js.map +0 -1
  76. package/dist/member/index.less +0 -466
  77. package/dist/member/memberTab.js +0 -675
  78. package/dist/member/memberTab.js.map +0 -1
  79. package/dist/memberMenu/changeMemberCard/index.js +0 -268
  80. package/dist/memberMenu/changeMemberCard/index.js.map +0 -1
  81. package/dist/memberMenu/changeMemberCard/style.less +0 -43
  82. package/dist/memberMenu/index.js +0 -826
  83. package/dist/memberMenu/index.js.map +0 -1
  84. package/dist/memberMenu/modifyPass/index.js +0 -207
  85. package/dist/memberMenu/modifyPass/index.js.map +0 -1
  86. package/dist/memberMenu/modifyPass/store.js +0 -357
  87. package/dist/memberMenu/modifyPass/store.js.map +0 -1
  88. package/dist/memberMenu/modifyPass/style.less +0 -91
  89. package/dist/memberMenu/style.less +0 -82
  90. package/dist/socket.js +0 -164
  91. package/dist/socket.js.map +0 -1
  92. package/dist/utils.js +0 -246
  93. package/dist/utils.js.map +0 -1
  94. package/dist/viewController/MemberOrderViewController.js +0 -144
  95. package/dist/viewController/MemberOrderViewController.js.map +0 -1
  96. package/dist/viewDoMain/CheckMemberProcessorBlock.js +0 -53
  97. package/dist/viewDoMain/CheckMemberProcessorBlock.js.map +0 -1
  98. package/dist/viewDoMain/CheckMemberStorageProcessorBlock.js +0 -85
  99. package/dist/viewDoMain/CheckMemberStorageProcessorBlock.js.map +0 -1
  100. package/dist/viewDoMain/CheckSelectMemberProcessorBlock.js +0 -69
  101. package/dist/viewDoMain/CheckSelectMemberProcessorBlock.js.map +0 -1
  102. package/dist/viewDoMain/CheckUpdatePasswordProcessorBlock.js +0 -44
  103. package/dist/viewDoMain/CheckUpdatePasswordProcessorBlock.js.map +0 -1
  104. package/dist/viewDoMain/MemberDataChangedProcessorBlock.js +0 -66
  105. package/dist/viewDoMain/MemberDataChangedProcessorBlock.js.map +0 -1
  106. package/dist/viewDoMain/MemberDataPreSaveProcessorBlock.js +0 -79
  107. package/dist/viewDoMain/MemberDataPreSaveProcessorBlock.js.map +0 -1
  108. package/dist/viewModels/MemberDeduction.js +0 -862
  109. package/dist/viewModels/MemberDeduction.js.map +0 -1
  110. package/dist/viewModels/MemberOrder.js +0 -248
  111. package/dist/viewModels/MemberOrder.js.map +0 -1
  112. package/dist/viewModels/MemberProject.js +0 -953
  113. package/dist/viewModels/MemberProject.js.map +0 -1
  114. package/dist/viewModels/MemberStore.js +0 -310
  115. package/dist/viewModels/MemberStore.js.map +0 -1
  116. package/dist/views/commonPerson/commonPerson.less +0 -54
  117. package/dist/views/commonPerson/commonPersonModal.js +0 -459
  118. package/dist/views/commonPerson/commonPersonModal.js.map +0 -1
  119. package/dist/views/memberDeduction/MemberDeductionView.js +0 -837
  120. package/dist/views/memberDeduction/MemberDeductionView.js.map +0 -1
  121. package/dist/views/memberDeduction/deductionSuccess.js +0 -62
  122. package/dist/views/memberDeduction/deductionSuccess.js.map +0 -1
  123. package/dist/views/memberDeduction/memberDeduction.less +0 -238
  124. package/dist/views/memberManage/MemberOrderView.js +0 -427
  125. package/dist/views/memberManage/MemberOrderView.js.map +0 -1
  126. package/dist/views/memberManage/memberOrder.less +0 -72
  127. package/dist/views/memberProject/GroupProjectModal.js +0 -676
  128. package/dist/views/memberProject/GroupProjectModal.js.map +0 -1
  129. package/dist/views/memberProject/MemberProjectView.js +0 -578
  130. package/dist/views/memberProject/MemberProjectView.js.map +0 -1
  131. package/dist/views/memberProject/SelectProjectModal.js +0 -330
  132. package/dist/views/memberProject/SelectProjectModal.js.map +0 -1
  133. package/dist/views/memberProject/memberProject.less +0 -334
  134. package/dist/views/memberRecharge/MemberStoreView.js +0 -546
  135. package/dist/views/memberRecharge/MemberStoreView.js.map +0 -1
  136. package/dist/views/memberRecharge/memberStore.less +0 -148
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/InitDataProcessor.js"],"names":["InitDataProcessor","dto","memberDto","$T","debugger","JSON","setCellValue","CardCode","ID","UID","Uid","DataSource","Id","StorageDetails","length","push","PadLeft","Idmember","getCellValue","ExternalCode","PosCode","Date","toArray","join","Math","floor","random","StorageType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;IAEaA,iB,WAAAA,iB;;;;;;;;6HACYC,G,EAAIC,S;;;;;AAErBC,mEAAGC,QAAH;;AAEA;AACAC,qEAAKC,YAAL,CAAkBL,GAAlB,EAAsB,UAAtB,EAAiCC,UAAUK,QAA3C;AACA;AACA;;AAEA;AACAF,qEAAKC,YAAL,CAAkBL,GAAlB,EAAsB,gBAAtB,EAAuC,gCAAY,WAAZ,CAAvC;AACA;AACA;AACA;AACA;AACAI,qEAAKC,YAAL,CAAkBL,GAAlB,EAAsB,sBAAtB,EAA6C,gCAAY,gBAAZ,CAA7C;AACA;AACA;AACAI,qEAAKC,YAAL,CAAkBL,GAAlB,EAAsB,kBAAtB,EAAyC,gCAAY,kBAAZ,CAAzC;;AAEAI,qEAAKC,YAAL,CAAkBL,GAAlB,EAAsB,UAAtB,EAAiCC,UAAUM,EAA3C;;AAEAH,qEAAKC,YAAL,CAAkBL,GAAlB,EAAsB,QAAtB,EAA+BC,SAA/B;;AAEA;;AAEA;;AAEA;AACA;AACAG,qEAAKC,YAAL,CAAkBL,GAAlB,EAAsB,SAAtB,EAAgC,gCAAY,SAAZ,CAAhC;;AAEA;AACA;AACAI,qEAAKC,YAAL,CAAkBL,GAAlB,EAAsB,SAAtB,EAAgC,gCAAY,SAAZ,CAAhC;AACA;AACAI,qEAAKC,YAAL,CAAkBL,GAAlB,EAAsB,kBAAtB,EAAyC,gCAAY,WAAZ,CAAzC;AACA;AACA;AACA;AACA;AACA;;;AAIA;AACA;AACA;AACA;;AAEA;AACA;AACAA,oEAAIQ,GAAJ,GAAQP,UAAUQ,GAAV,IAAe,CAAvB;AACA;AACAL,qEAAKC,YAAL,CAAkBL,GAAlB,EAAsB,aAAtB,EAAoC,gCAAY,aAAZ,CAApC;AACA;AACA,oEAAI,CAACA,IAAIU,UAAT,EAAqB;AACjBV,4EAAIU,UAAJ,GAAe,EAAf;AACH;;AAEDV,oEAAIU,UAAJ,CAAeC,EAAf,GAAkB,OAAlB;;AAEA,oEAAGX,IAAIY,cAAJ,IAAoB,IAApB,IAA4BZ,IAAIY,cAAJ,CAAmBC,MAAnB,GAA0B,CAAzD,EACA;;AAEIb,4EAAIY,cAAJ,CAAmBE,IAAnB,CAAwB,EAAC,QAAO,IAAIC,OAAJ,CAAY,CAAZ,EAAe,GAAf,CAAR;AACA,4FAAWf,IAAIgB,QADf;AAEA,gGAAe,IAFf;AAGA,qGAAoB,IAHpB;AAIA,qGAAoB,IAJpB;AAKA,0GAAyB,IALzB;AAMA,+FAAc,EAACL,IAAG,IAAJ;AANd,yEAAxB;AAQH;;AAED;AACA,oEAAIP,KAAKa,YAAL,CAAkBhB,SAAlB,EAA4B,uBAA5B,CAAJ,EAA0D;AACtDG,6EAAKC,YAAL,CAAkBL,GAAlB,EAAsB,kBAAtB,EAAyCC,UAAUM,EAAnD;AACH;AACDP,oEAAIkB,YAAJ,GAAkBlB,IAAIgB,QAAJ,GAAa,GAAb,GAAiBhB,IAAImB,OAArB,GAA6B,GAA7B,GAAkC,IAAIC,IAAJ,GAAWC,OAAX,GAAqBC,IAArB,CAA0B,GAA1B,CAAlC,GAAiEC,KAAKC,KAAL,CAAYD,KAAKE,MAAL,KAAc,IAAf,GAAqB,CAAhC,CAAnF;;AAEA,oEAAI,CAACzB,IAAIY,cAAJ,CAAmB,CAAnB,EAAsBc,WAA3B,EAAwC;AACpC1B,4EAAIY,cAAJ,CAAmB,CAAnB,EAAsBc,WAAtB,GAAkC,EAAlC;AACH;AACD1B,oEAAIY,cAAJ,CAAmB,CAAnB,EAAsBc,WAAtB,CAAkCf,EAAlC,GAAqC,IAArC","file":"InitDataProcessor.js","sourcesContent":["import {PosInitData} from 'tplus-poslogin';\r\n\r\nexport class InitDataProcessor{\r\n static async execute(dto,memberDto)\r\n {\r\n $T.debugger();\r\n\r\n // CardCode\t会员卡号\r\n JSON.setCellValue(dto,\"CardCode\",memberDto.CardCode);\r\n // Code\t编号\r\n // DataSource\t数据来源\r\n\r\n // DayVoucherCode\t日结单号\r\n JSON.setCellValue(dto,\"DayVoucherCode\",PosInitData('DailyCode'));\r\n // ExternalCode\t外部系统单据编码\r\n // dto.ExternalCode=\r\n // idcustomer\tidcustomer\r\n // iddailydetailvoucher\t日结单ID\r\n JSON.setCellValue(dto,\"IdDailyDetailVoucher\",PosInitData('IdDailyVoucher'));\r\n // idintegralmember\tidintegralmember\r\n // idmarketingOrgan\t多营销机构临时值\r\n JSON.setCellValue(dto,\"IdmarketingOrgan\",PosInitData('IdmarketingOrgan'));\r\n\r\n JSON.setCellValue(dto,\"Idmember\",memberDto.ID);\r\n\r\n JSON.setCellValue(dto,\"Member\",memberDto);\r\n\r\n //JSON.setCellValue(dto,\"Person\",memberDto.Person);\r\n \r\n //JSON.setCellValue(dto,\"IdPerson\",JSON.getCellValue(memberDto,\"Person.ID\"));\r\n \r\n // idsettleCustomer\tidsettleCustomer\r\n // Idstore\tidstore\r\n JSON.setCellValue(dto,\"Idstore\",PosInitData('storeID'));\r\n \r\n // Store\tStore\r\n // PosCode\tPOS编号\r\n JSON.setCellValue(dto,\"PosCode\",PosInitData('posCode'));\r\n // ShiftVoucherCode\t交班单号\r\n JSON.setCellValue(dto,\"ShiftVoucherCode\",PosInitData('ShiftCode'));\r\n // \r\n // Maker\t制单人\r\n // MemberQuantity\t会员数量\r\n // Memo\t备注\r\n // Name\t名称\r\n\r\n\r\n\r\n // SingleStorageAmount\t单卡储值金额\r\n // StorageAmount\t储值总额\r\n // StorageDetails\tStorageDetails\r\n // StorageMutiSettleDetails\tStorageMutiSettleDetails\r\n\r\n // Ts\t分布时间戳\r\n // UID\tU会员储值明细ID\r\n dto.UID=memberDto.Uid||0;\r\n // VoucherDate\t单据日期\r\n JSON.setCellValue(dto,\"VoucherDate\",PosInitData('VoucherDate'));\r\n // 数据来源 POS端\r\n if (!dto.DataSource) {\r\n dto.DataSource={};\r\n }\r\n\r\n dto.DataSource.Id=\"51205\";\r\n\r\n if(dto.StorageDetails==null || dto.StorageDetails.length<1)\r\n {\r\n\r\n dto.StorageDetails.push({\"Code\":\"0\".PadLeft(4, '0'),\r\n \"Idmember\":dto.Idmember,\r\n \"IdmemberType\":null,\r\n \"ThisStorageAmount\":null,\r\n \"ThisPresentAmount\":null,\r\n \"ThisValidStorageAmount\":null,\r\n \"StorageType\":{Id:2099}\r\n });\r\n }\r\n\r\n // 积分会员\r\n if (JSON.getCellValue(memberDto,\"MemberType.IsIntegral\")) {\r\n JSON.setCellValue(dto,\"IdIntegralMember\",memberDto.ID);\r\n }\r\n dto.ExternalCode =dto.Idmember+\"_\"+dto.PosCode+\"_\"+ new Date().toArray().join(\"_\")+Math.floor((Math.random()*1000)+1)\r\n\r\n if (!dto.StorageDetails[0].StorageType) {\r\n dto.StorageDetails[0].StorageType={};\r\n }\r\n dto.StorageDetails[0].StorageType.Id=2099;\r\n }\r\n}"]}
@@ -1,102 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.InitProjectDataProcessor = undefined;
7
-
8
- var _regenerator = require('babel-runtime/regenerator');
9
-
10
- var _regenerator2 = _interopRequireDefault(_regenerator);
11
-
12
- var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
13
-
14
- var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
15
-
16
- var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
17
-
18
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
19
-
20
- var _createClass2 = require('babel-runtime/helpers/createClass');
21
-
22
- var _createClass3 = _interopRequireDefault(_createClass2);
23
-
24
- var _tplusPoslogin = require('tplus-poslogin');
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
- var InitProjectDataProcessor = exports.InitProjectDataProcessor = function () {
29
- function InitProjectDataProcessor() {
30
- (0, _classCallCheck3.default)(this, InitProjectDataProcessor);
31
- }
32
-
33
- (0, _createClass3.default)(InitProjectDataProcessor, null, [{
34
- key: 'execute',
35
- value: function () {
36
- var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(dto, memberDto) {
37
- return _regenerator2.default.wrap(function _callee$(_context) {
38
- while (1) {
39
- switch (_context.prev = _context.next) {
40
- case 0:
41
-
42
- dto.Idmember = memberDto.ID;
43
-
44
- dto.Idstore = (0, _tplusPoslogin.PosInitData)('storeID');
45
- // DayVoucherCode 日结单号
46
- dto.DayVoucherCode = (0, _tplusPoslogin.PosInitData)('DailyCode');
47
- // Store Store
48
- // PosCode POS编号
49
- dto.PosCode = (0, _tplusPoslogin.PosInitData)('posCode');
50
- // ShiftVoucherCode 交班单号
51
- dto.ShiftVoucherCode = (0, _tplusPoslogin.PosInitData)('ShiftCode');
52
- dto.Memo = '';
53
- //
54
- // Maker 制单人
55
- // MemberQuantity 会员数量
56
- // Memo 备注
57
- // Name 名称
58
-
59
-
60
- // SingleStorageAmount 单卡储值金额
61
- // StorageAmount 储值总额
62
- // StorageDetails StorageDetails
63
- // StorageMutiSettleDetails StorageMutiSettleDetails
64
-
65
- // Ts 分布时间戳
66
- // UID U会员储值明细ID
67
- // VoucherDate 单据日期
68
- dto.VoucherDate = (0, _tplusPoslogin.PosInitData)('VoucherDate');
69
- // 数据来源 POS端
70
- if (!dto.DataSource) {
71
- dto.DataSource = {};
72
- }
73
-
74
- dto.DataSource.Id = "51205";
75
-
76
- dto.IdServiceClass = '';
77
- dto.StorageAmount = '';
78
- dto.EffectiveDate = '';
79
- dto.ExpirationDate = '';
80
-
81
- dto.ExternalCode = memberDto.ID + "_" + (0, _tplusPoslogin.PosInitData)('posCode') + "_" + new Date().toArray().join("_") + Math.floor(Math.random() * 1000 + 1);
82
-
83
- dto.Details = [];
84
-
85
- case 15:
86
- case 'end':
87
- return _context.stop();
88
- }
89
- }
90
- }, _callee, this);
91
- }));
92
-
93
- function execute(_x, _x2) {
94
- return _ref.apply(this, arguments);
95
- }
96
-
97
- return execute;
98
- }()
99
- }]);
100
- return InitProjectDataProcessor;
101
- }();
102
- //# sourceMappingURL=InitDataProjectProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/InitDataProjectProcessor.js"],"names":["InitProjectDataProcessor","dto","memberDto","Idmember","ID","Idstore","DayVoucherCode","PosCode","ShiftVoucherCode","Memo","VoucherDate","DataSource","Id","IdServiceClass","StorageAmount","EffectiveDate","ExpirationDate","ExternalCode","Date","toArray","join","Math","floor","random","Details"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;IAEaA,wB,WAAAA,wB;;;;;;;;6HACYC,G,EAAIC,S;;;;;;AAGrBD,oEAAIE,QAAJ,GAAeD,UAAUE,EAAzB;;AAEAH,oEAAII,OAAJ,GAAc,gCAAY,SAAZ,CAAd;AACA;AACAJ,oEAAIK,cAAJ,GAAqB,gCAAY,WAAZ,CAArB;AACA;AACA;AACAL,oEAAIM,OAAJ,GAAc,gCAAY,SAAZ,CAAd;AACA;AACAN,oEAAIO,gBAAJ,GAAuB,gCAAY,WAAZ,CAAvB;AACAP,oEAAIQ,IAAJ,GAAW,EAAX;AACA;AACA;AACA;AACA;AACA;;;AAIA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACAR,oEAAIS,WAAJ,GAAkB,gCAAY,aAAZ,CAAlB;AACA;AACA,oEAAI,CAACT,IAAIU,UAAT,EAAqB;AACjBV,4EAAIU,UAAJ,GAAe,EAAf;AACH;;AAEDV,oEAAIU,UAAJ,CAAeC,EAAf,GAAkB,OAAlB;;AAEAX,oEAAIY,cAAJ,GAAqB,EAArB;AACAZ,oEAAIa,aAAJ,GAAoB,EAApB;AACAb,oEAAIc,aAAJ,GAAoB,EAApB;AACAd,oEAAIe,cAAJ,GAAqB,EAArB;;AAEAf,oEAAIgB,YAAJ,GAAkBf,UAAUE,EAAV,GAAa,GAAb,GAAiB,gCAAY,SAAZ,CAAjB,GAAwC,GAAxC,GAA6C,IAAIc,IAAJ,GAAWC,OAAX,GAAqBC,IAArB,CAA0B,GAA1B,CAA7C,GAA4EC,KAAKC,KAAL,CAAYD,KAAKE,MAAL,KAAc,IAAf,GAAqB,CAAhC,CAA9F;;AAEAtB,oEAAIuB,OAAJ,GAAc,EAAd","file":"InitDataProjectProcessor.js","sourcesContent":["import {PosInitData} from 'tplus-poslogin';\r\n\r\nexport class InitProjectDataProcessor{\r\n static async execute(dto,memberDto)\r\n {\r\n\r\n dto.Idmember = memberDto.ID;\r\n\r\n dto.Idstore = PosInitData('storeID');\r\n // DayVoucherCode\t日结单号\r\n dto.DayVoucherCode = PosInitData('DailyCode');\r\n // Store\tStore\r\n // PosCode\tPOS编号\r\n dto.PosCode = PosInitData('posCode');\r\n // ShiftVoucherCode\t交班单号\r\n dto.ShiftVoucherCode = PosInitData('ShiftCode');\r\n dto.Memo = '';\r\n // \r\n // Maker\t制单人\r\n // MemberQuantity\t会员数量\r\n // Memo\t备注\r\n // Name\t名称\r\n\r\n\r\n\r\n // SingleStorageAmount\t单卡储值金额\r\n // StorageAmount\t储值总额\r\n // StorageDetails\tStorageDetails\r\n // StorageMutiSettleDetails\tStorageMutiSettleDetails\r\n\r\n // Ts\t分布时间戳\r\n // UID\tU会员储值明细ID\r\n // VoucherDate\t单据日期\r\n dto.VoucherDate = PosInitData('VoucherDate');\r\n // 数据来源 POS端\r\n if (!dto.DataSource) {\r\n dto.DataSource={};\r\n }\r\n\r\n dto.DataSource.Id=\"51205\"; \r\n\r\n dto.IdServiceClass = '';\r\n dto.StorageAmount = '';\r\n dto.EffectiveDate = '';\r\n dto.ExpirationDate = '';\r\n\r\n dto.ExternalCode =memberDto.ID+\"_\"+PosInitData('posCode')+\"_\"+ new Date().toArray().join(\"_\")+Math.floor((Math.random()*1000)+1);\r\n\r\n dto.Details = [];\r\n\r\n }\r\n}"]}
@@ -1,45 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.IsMemberEffectiveProcessor = undefined;
7
-
8
- var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
9
-
10
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
11
-
12
- var _createClass2 = require('babel-runtime/helpers/createClass');
13
-
14
- var _createClass3 = _interopRequireDefault(_createClass2);
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- /**
19
- * 判断会员是否生效
20
- */
21
- var IsMemberEffectiveProcessor = exports.IsMemberEffectiveProcessor = function () {
22
- function IsMemberEffectiveProcessor() {
23
- (0, _classCallCheck3.default)(this, IsMemberEffectiveProcessor);
24
- }
25
-
26
- (0, _createClass3.default)(IsMemberEffectiveProcessor, null, [{
27
- key: 'execute',
28
- value: function execute(memberDTO) {
29
- // 生效日期
30
- var effectiveDate = new Date(memberDTO.EffectiveDate);
31
- var effectiveDateStr = effectiveDate.Format('yyyy-MM-dd');
32
- if (effectiveDateStr < '1900-01-01') {
33
- return true;
34
- }
35
- var nowDate = new Date();
36
- var nowDateStr = nowDate.Format('yyyy-MM-dd');
37
- if (effectiveDateStr > nowDateStr) {
38
- return false;
39
- }
40
- return true;
41
- }
42
- }]);
43
- return IsMemberEffectiveProcessor;
44
- }();
45
- //# sourceMappingURL=IsMemberEffectiveProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/IsMemberEffectiveProcessor.js"],"names":["IsMemberEffectiveProcessor","memberDTO","effectiveDate","Date","EffectiveDate","effectiveDateStr","Format","nowDate","nowDateStr"],"mappings":";;;;;;;;;;;;;;;;;AACA;;;IAGaA,0B,WAAAA,0B;;;;;;;gCACMC,S,EAAW;AACtB;AACA,gBAAIC,gBAAgB,IAAIC,IAAJ,CAASF,UAAUG,aAAnB,CAApB;AACA,gBAAIC,mBAAmBH,cAAcI,MAAd,CAAqB,YAArB,CAAvB;AACA,gBAAID,mBAAmB,YAAvB,EAAqC;AACjC,uBAAO,IAAP;AACH;AACD,gBAAIE,UAAU,IAAIJ,IAAJ,EAAd;AACA,gBAAIK,aAAaD,QAAQD,MAAR,CAAe,YAAf,CAAjB;AACA,gBAAID,mBAAmBG,UAAvB,EAAmC;AAC/B,uBAAO,KAAP;AACH;AACD,mBAAO,IAAP;AACH","file":"IsMemberEffectiveProcessor.js","sourcesContent":["\r\n/**\r\n * 判断会员是否生效\r\n */\r\nexport class IsMemberEffectiveProcessor {\r\n static execute(memberDTO) {\r\n // 生效日期\r\n let effectiveDate = new Date(memberDTO.EffectiveDate);\r\n let effectiveDateStr = effectiveDate.Format('yyyy-MM-dd');\r\n if (effectiveDateStr < '1900-01-01') {\r\n return true;\r\n }\r\n let nowDate = new Date();\r\n let nowDateStr = nowDate.Format('yyyy-MM-dd');\r\n if (effectiveDateStr > nowDateStr) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n}\r\n\r\n"]}
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.IsMemberEnableProcessor = undefined;
7
-
8
- var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
9
-
10
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
11
-
12
- var _createClass2 = require('babel-runtime/helpers/createClass');
13
-
14
- var _createClass3 = _interopRequireDefault(_createClass2);
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- /**
19
- * 判断当前会员是否启用
20
- */
21
- var IsMemberEnableProcessor = exports.IsMemberEnableProcessor = function () {
22
- function IsMemberEnableProcessor() {
23
- (0, _classCallCheck3.default)(this, IsMemberEnableProcessor);
24
- }
25
-
26
- (0, _createClass3.default)(IsMemberEnableProcessor, null, [{
27
- key: 'execute',
28
- value: function execute(memberDTO) {
29
- var memberState = MemberDTO.MemberState;
30
- if (memberState.Id == '1636') {
31
- return true;
32
- }
33
- return false;
34
- }
35
- }]);
36
- return IsMemberEnableProcessor;
37
- }();
38
- //# sourceMappingURL=IsMemberEnableProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/IsMemberEnableProcessor.js"],"names":["IsMemberEnableProcessor","memberDTO","memberState","MemberDTO","MemberState","Id"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;IAGaA,uB,WAAAA,uB;;;;;;;gCAEMC,S,EACf;AACI,gBAAIC,cAAaC,UAAUC,WAA3B;AACA,gBAAIF,YAAYG,EAAZ,IAAgB,MAApB,EAA4B;AACxB,uBAAO,IAAP;AACH;AACD,mBAAO,KAAP;AACH","file":"IsMemberEnableProcessor.js","sourcesContent":["/**\r\n * 判断当前会员是否启用\r\n */\r\nexport class IsMemberEnableProcessor\r\n{\r\n static execute(memberDTO)\r\n {\r\n let memberState= MemberDTO.MemberState;\r\n if (memberState.Id=='1636') {\r\n return true;\r\n }\r\n return false;\r\n }\r\n}"]}
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.IsMemberExpirationProcessor = undefined;
7
-
8
- var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
9
-
10
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
11
-
12
- var _createClass2 = require('babel-runtime/helpers/createClass');
13
-
14
- var _createClass3 = _interopRequireDefault(_createClass2);
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- /**
19
- * 判断会员是否失效
20
- */
21
- var IsMemberExpirationProcessor = exports.IsMemberExpirationProcessor = function () {
22
- function IsMemberExpirationProcessor() {
23
- (0, _classCallCheck3.default)(this, IsMemberExpirationProcessor);
24
- }
25
-
26
- (0, _createClass3.default)(IsMemberExpirationProcessor, null, [{
27
- key: 'execute',
28
- value: function execute(memberDTO) {
29
- // 失效日期
30
- var ExpirationDate = new Date(memberDTO.ExpirationDate);
31
- var ExpirationDateStr = ExpirationDate.Format('yyyy-MM-dd');
32
- if (ExpirationDateStr < '1900-01-01') {
33
- return false;
34
- }
35
- var nowDate = new Date();
36
- var nowDateStr = nowDate.Format('yyyy-MM-dd');
37
-
38
- if (ExpirationDateStr < nowDateStr) {
39
- return false;
40
- }
41
- return true;
42
- }
43
- }]);
44
- return IsMemberExpirationProcessor;
45
- }();
46
- //# sourceMappingURL=IsMemberExpirationProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/IsMemberExpirationProcessor.js"],"names":["IsMemberExpirationProcessor","memberDTO","ExpirationDate","Date","ExpirationDateStr","Format","nowDate","nowDateStr"],"mappings":";;;;;;;;;;;;;;;;;AACA;;;IAGaA,2B,WAAAA,2B;;;;;;;gCACMC,S,EAAW;AACtB;AACA,gBAAIC,iBAAgB,IAAIC,IAAJ,CAASF,UAAUC,cAAnB,CAApB;AACA,gBAAIE,oBAAoBF,eAAeG,MAAf,CAAsB,YAAtB,CAAxB;AACA,gBAAID,oBAAoB,YAAxB,EAAsC;AAClC,uBAAO,KAAP;AACH;AACD,gBAAIE,UAAU,IAAIH,IAAJ,EAAd;AACA,gBAAII,aAAaD,QAAQD,MAAR,CAAe,YAAf,CAAjB;;AAEA,gBAAID,oBAAoBG,UAAxB,EAAoC;AAChC,uBAAO,KAAP;AACH;AACD,mBAAO,IAAP;AACH","file":"IsMemberExpirationProcessor.js","sourcesContent":["\r\n/**\r\n * 判断会员是否失效\r\n */\r\nexport class IsMemberExpirationProcessor {\r\n static execute(memberDTO) {\r\n // 失效日期\r\n let ExpirationDate =new Date(memberDTO.ExpirationDate);\r\n let ExpirationDateStr = ExpirationDate.Format('yyyy-MM-dd');\r\n if (ExpirationDateStr < '1900-01-01') {\r\n return false;\r\n }\r\n let nowDate = new Date();\r\n let nowDateStr = nowDate.Format('yyyy-MM-dd');\r\n\r\n if (ExpirationDateStr < nowDateStr) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n}\r\n"]}
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.IsMemberPasswordSameProcessor = undefined;
7
-
8
- var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
9
-
10
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
11
-
12
- var _createClass2 = require("babel-runtime/helpers/createClass");
13
-
14
- var _createClass3 = _interopRequireDefault(_createClass2);
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- /**
19
- * 校验两次密码是否一致
20
- */
21
- var IsMemberPasswordSameProcessor = exports.IsMemberPasswordSameProcessor = function () {
22
- function IsMemberPasswordSameProcessor() {
23
- (0, _classCallCheck3.default)(this, IsMemberPasswordSameProcessor);
24
- }
25
-
26
- (0, _createClass3.default)(IsMemberPasswordSameProcessor, null, [{
27
- key: "execute",
28
- value: function execute(memberData) {
29
- if (memberData["RePassword"] == undefined || memberData["Password"] == undefined) {
30
- //没有密码输入框,不校验
31
- return true;
32
- }
33
- if (memberData["Password"] == memberData["RePassword"]) {
34
- return true;
35
- }
36
- return false;
37
- }
38
- }]);
39
- return IsMemberPasswordSameProcessor;
40
- }();
41
- //# sourceMappingURL=IsMemberPasswordSameProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/IsMemberPasswordSameProcessor.js"],"names":["IsMemberPasswordSameProcessor","memberData","undefined"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;IAGaA,6B,WAAAA,6B;;;;;;;gCAEMC,U,EACf;AACI,gBAAGA,WAAW,YAAX,KAA0BC,SAA1B,IAAqCD,WAAW,UAAX,KAAwBC,SAAhE,EACA;AACI;AACA,uBAAO,IAAP;AACH;AACD,gBAAID,WAAW,UAAX,KAAwBA,WAAW,YAAX,CAA5B,EAAsD;AAClD,uBAAO,IAAP;AACH;AACD,mBAAO,KAAP;AACH","file":"IsMemberPasswordSameProcessor.js","sourcesContent":["/**\r\n * 校验两次密码是否一致\r\n */\r\nexport class IsMemberPasswordSameProcessor\r\n{\r\n static execute(memberData)\r\n {\r\n if(memberData[\"RePassword\"]==undefined||memberData[\"Password\"]==undefined)\r\n {\r\n //没有密码输入框,不校验\r\n return true;\r\n }\r\n if (memberData[\"Password\"]==memberData[\"RePassword\"]) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n}"]}
@@ -1,40 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.IsMemberStorageForStoreProcessor = undefined;
7
-
8
- var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
9
-
10
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
11
-
12
- var _createClass2 = require('babel-runtime/helpers/createClass');
13
-
14
- var _createClass3 = _interopRequireDefault(_createClass2);
15
-
16
- var _tplusPoslogin = require('tplus-poslogin');
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- var IsMemberStorageForStoreProcessor = exports.IsMemberStorageForStoreProcessor = function () {
21
- function IsMemberStorageForStoreProcessor() {
22
- (0, _classCallCheck3.default)(this, IsMemberStorageForStoreProcessor);
23
- }
24
-
25
- (0, _createClass3.default)(IsMemberStorageForStoreProcessor, null, [{
26
- key: 'execute',
27
- value: function execute() {
28
- var storeTypeId = (0, _tplusPoslogin.PosInitData)('StoreTypeId');
29
- if (storeTypeId == '1613') {
30
- return false;
31
- }
32
- return true;
33
- }
34
- }]);
35
- return IsMemberStorageForStoreProcessor;
36
- }(); /***
37
- * 依据门店判断会员是否可以储值
38
- * 专柜不能储值
39
- ***/
40
- //# sourceMappingURL=IsMemberStorageForStoreProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/IsMemberStorageForStoreProcessor.js"],"names":["IsMemberStorageForStoreProcessor","storeTypeId"],"mappings":";;;;;;;;;;;;;;;AAKA;;;;IAEaA,gC,WAAAA,gC;;;;;;;kCAGT;AACI,gBAAIC,cAAc,gCAAY,aAAZ,CAAlB;AACA,gBAAIA,eAAa,MAAjB,EAAyB;AACrB,uBAAO,KAAP;AACH;AACD,mBAAO,IAAP;AACH;;;KAhBL","file":"IsMemberStorageForStoreProcessor.js","sourcesContent":["/***\r\n * 依据门店判断会员是否可以储值\r\n * 专柜不能储值\r\n***/\r\n\r\nimport {PosInitData} from 'tplus-poslogin';\r\n\r\nexport class IsMemberStorageForStoreProcessor\r\n{\r\n static execute()\r\n {\r\n let storeTypeId= PosInitData('StoreTypeId');\r\n if (storeTypeId=='1613') {\r\n return false;\r\n }\r\n return true;\r\n }\r\n}"]}
@@ -1,120 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.MemberTypeChangedProcessor = undefined;
7
-
8
- var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
9
-
10
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
11
-
12
- var _createClass2 = require('babel-runtime/helpers/createClass');
13
-
14
- var _createClass3 = _interopRequireDefault(_createClass2);
15
-
16
- var _tplusComponentsTouch = require('tplus-components-touch');
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- var MemberTypeChangedProcessor = exports.MemberTypeChangedProcessor = function () {
21
- function MemberTypeChangedProcessor() {
22
- (0, _classCallCheck3.default)(this, MemberTypeChangedProcessor);
23
- }
24
-
25
- (0, _createClass3.default)(MemberTypeChangedProcessor, null, [{
26
- key: 'execute',
27
- value: function execute(isOpen, memberData, changed, view, membertype, startMobileRequset) {
28
- //期初积分
29
- var openIntegral = view.find(function (el) {
30
- return el.FieldName == 'OpenIntegral';
31
- });
32
- if (!isOpen) {
33
- changed["OpenIntegral"] = null;
34
- if (membertype.IsIntegral == true && membertype.InitIntegral != null) {
35
- changed["OpenIntegral"] = membertype.InitIntegral;
36
- }
37
- }
38
- if (openIntegral) {
39
- if (membertype.IsIntegral) {
40
- openIntegral.Visible = true;
41
- } else {
42
- openIntegral.Visible = false;
43
- }
44
- }
45
- //密码
46
- if (!isOpen) {
47
- changed["Password"] = null;
48
- changed["RePassword"] = null;
49
- if (membertype.IsNeedPwd) {
50
- changed["Password"] = membertype.InitPassword;
51
- changed["RePassword"] = membertype.InitPassword;
52
- }
53
- }
54
- var password = view.find(function (el) {
55
- return el.FieldName == 'Password';
56
- });
57
- var rePassword = view.find(function (el) {
58
- return el.FieldName == 'RePassword';
59
- });
60
- if (password && rePassword) {
61
- if (membertype.IsNeedPwd) {
62
- password.Visible = true;
63
- rePassword.Visible = true;
64
- } else {
65
- password.Visible = false;
66
- rePassword.Visible = false;
67
- }
68
- }
69
- //期初储值
70
- var openStorage = view.find(function (el) {
71
- return el.FieldName == 'OpenStorage';
72
- });
73
- if (openStorage) {
74
- if (membertype.IsStorage) {
75
- openStorage.Visible = true;
76
- } else {
77
- openStorage.Visible = false;
78
- }
79
- }
80
- //手机号必录
81
- var mobilephone = view.find(function (el) {
82
- return el.FieldName == 'Mobilephone';
83
- });
84
- if (mobilephone && !startMobileRequset) {
85
- if (membertype.MobilephoneRequired) {
86
- mobilephone.AllowNone = false;
87
- } else {
88
- mobilephone.AllowNone = true;
89
- }
90
- }
91
-
92
- changed["EffectiveDate"] = _tplusComponentsTouch.tools.dateFormat(new Date());
93
- if (!isOpen || isOpen && memberData["ExpirationDate"] == null) {
94
- changed["ExpirationDate"] = null;
95
- //失效日期
96
- if (membertype.ValidityControlMode != null && membertype.ValidityPeriod != null && membertype.ValidityPeriod > 0) {
97
- var EffectiveDate = memberData["EffectiveDate"];
98
- if (EffectiveDate) {
99
- var nowDate = new Date(EffectiveDate);
100
- var stride = membertype.ValidityPeriod;
101
- switch (membertype.ValidityControlMode.Id) {
102
- case '56137':
103
- nowDate = nowDate.setFullYear(nowDate.getFullYear() + stride);
104
- break;
105
- case '56138':
106
- nowDate = nowDate.setMonth(nowDate.getMonth() + stride);
107
- }
108
- changed["ExpirationDate"] = _tplusComponentsTouch.tools.dateFormat(nowDate);
109
- }
110
- }
111
- }
112
- }
113
- }]);
114
- return MemberTypeChangedProcessor;
115
- }(); /**
116
- * 会员类型修改时
117
- * 1、如果会员类型启用了积分,并且设置了期初积分,则给会员的期初积分赋值
118
- * 2、如果会员类型未启用积分,则会员期初积分不显示
119
- */
120
- //# sourceMappingURL=MemberTypeChangedProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/MemberTypeChangedProcessor.js"],"names":["MemberTypeChangedProcessor","isOpen","memberData","changed","view","membertype","startMobileRequset","openIntegral","find","el","FieldName","IsIntegral","InitIntegral","Visible","IsNeedPwd","InitPassword","password","rePassword","openStorage","IsStorage","mobilephone","MobilephoneRequired","AllowNone","tools","dateFormat","Date","ValidityControlMode","ValidityPeriod","EffectiveDate","nowDate","stride","Id","setFullYear","getFullYear","setMonth","getMonth"],"mappings":"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","file":"MemberTypeChangedProcessor.js","sourcesContent":["/**\r\n * 会员类型修改时\r\n * 1、如果会员类型启用了积分,并且设置了期初积分,则给会员的期初积分赋值\r\n * 2、如果会员类型未启用积分,则会员期初积分不显示\r\n */\r\nimport {tools} from 'tplus-components-touch'\r\n\r\n export class MemberTypeChangedProcessor\r\n {\r\n static execute(isOpen,memberData,changed,view,membertype,startMobileRequset)\r\n {\r\n //期初积分\r\n const openIntegral = view.find(el=>el.FieldName=='OpenIntegral');\r\n if(!isOpen)\r\n {\r\n changed[\"OpenIntegral\"]=null;\r\n if(membertype.IsIntegral==true&&membertype.InitIntegral!=null)\r\n {\r\n changed[\"OpenIntegral\"]=membertype.InitIntegral;\r\n }\r\n }\r\n if(openIntegral)\r\n {\r\n if(membertype.IsIntegral)\r\n {\r\n openIntegral.Visible=true;\r\n }\r\n else\r\n {\r\n openIntegral.Visible=false;\r\n }\r\n }\r\n //密码\r\n if(!isOpen)\r\n {\r\n changed[\"Password\"]=null;\r\n changed[\"RePassword\"]=null;\r\n if(membertype.IsNeedPwd)\r\n {\r\n changed[\"Password\"]=membertype.InitPassword;\r\n changed[\"RePassword\"]=membertype.InitPassword;\r\n }\r\n }\r\n const password=view.find(el=>el.FieldName=='Password');\r\n const rePassword=view.find(el=>el.FieldName=='RePassword');\r\n if(password&&rePassword)\r\n {\r\n if(membertype.IsNeedPwd)\r\n {\r\n password.Visible=true;\r\n rePassword.Visible=true;\r\n }\r\n else\r\n {\r\n password.Visible=false;\r\n rePassword.Visible=false;\r\n }\r\n }\r\n //期初储值\r\n const openStorage=view.find(el=>el.FieldName=='OpenStorage');\r\n if(openStorage)\r\n {\r\n if(membertype.IsStorage)\r\n {\r\n openStorage.Visible=true;\r\n }\r\n else\r\n {\r\n openStorage.Visible=false;\r\n }\r\n }\r\n //手机号必录\r\n const mobilephone=view.find(el=>el.FieldName=='Mobilephone');\r\n if(mobilephone&&!startMobileRequset)\r\n {\r\n if(membertype.MobilephoneRequired)\r\n {\r\n mobilephone.AllowNone=false;\r\n }\r\n else\r\n {\r\n mobilephone.AllowNone=true;\r\n }\r\n }\r\n \r\n changed[\"EffectiveDate\"]=tools.dateFormat(new Date());\r\n if(!isOpen||(isOpen&&memberData[\"ExpirationDate\"]==null))\r\n {\r\n changed[\"ExpirationDate\"]=null;\r\n //失效日期\r\n if(membertype.ValidityControlMode!=null&&membertype.ValidityPeriod!=null&&membertype.ValidityPeriod>0)\r\n {\r\n let EffectiveDate=memberData[\"EffectiveDate\"];\r\n if(EffectiveDate)\r\n {\r\n let nowDate=new Date(EffectiveDate);\r\n let stride=membertype.ValidityPeriod;\r\n switch(membertype.ValidityControlMode.Id)\r\n {\r\n case '56137':\r\n nowDate=nowDate.setFullYear(nowDate.getFullYear()+stride);\r\n break;\r\n case '56138':\r\n nowDate=nowDate.setMonth(nowDate.getMonth()+stride);\r\n }\r\n changed[\"ExpirationDate\"]=tools.dateFormat(nowDate);\r\n }\r\n }\r\n }\r\n }\r\n }"]}
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.MobilephoneChangedProcessor = undefined;
7
-
8
- var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
9
-
10
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
11
-
12
- var _createClass2 = require("babel-runtime/helpers/createClass");
13
-
14
- var _createClass3 = _interopRequireDefault(_createClass2);
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- /**
19
- * 会员手机号改变时
20
- * 如果会员卡号为空,则填充手机号
21
- * 如果会员编号为空,则填充手机号
22
- */
23
-
24
- var MobilephoneChangedProcessor = exports.MobilephoneChangedProcessor = function () {
25
- function MobilephoneChangedProcessor() {
26
- (0, _classCallCheck3.default)(this, MobilephoneChangedProcessor);
27
- }
28
-
29
- (0, _createClass3.default)(MobilephoneChangedProcessor, null, [{
30
- key: "execute",
31
- value: function execute(isOpen, memberData, changed, newValue) {
32
- if (!isOpen && (memberData["CardCode"] == null || memberData["CardCode"] == '') && /^1\d{10}$/.test(newValue)) {
33
- changed["CardCode"] = newValue;
34
- }
35
- }
36
- }]);
37
- return MobilephoneChangedProcessor;
38
- }();
39
- //# sourceMappingURL=MobilephoneChangedProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/MobilephoneChangedProcessor.js"],"names":["MobilephoneChangedProcessor","isOpen","memberData","changed","newValue","test"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;IAMaA,2B,WAAAA,2B;;;;;;;gCAEMC,M,EAAOC,U,EAAWC,O,EAAQC,Q,EACzC;AACI,gBAAG,CAACH,MAAD,KAAUC,WAAW,UAAX,KAAwB,IAAxB,IAA8BA,WAAW,UAAX,KAAwB,EAAhE,KAAsE,YAAYG,IAAZ,CAAiBD,QAAjB,CAAzE,EACA;AACID,wBAAQ,UAAR,IAAoBC,QAApB;AACH;AACJ","file":"MobilephoneChangedProcessor.js","sourcesContent":["/**\r\n * 会员手机号改变时\r\n * 如果会员卡号为空,则填充手机号\r\n * 如果会员编号为空,则填充手机号\r\n */\r\n\r\nexport class MobilephoneChangedProcessor\r\n{\r\n static execute(isOpen,memberData,changed,newValue)\r\n {\r\n if(!isOpen&&(memberData[\"CardCode\"]==null||memberData[\"CardCode\"]=='')&&(/^1\\d{10}$/.test(newValue)))\r\n {\r\n changed[\"CardCode\"]=newValue;\r\n }\r\n }\r\n}"]}
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PersonProcesser = undefined;
7
-
8
- var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
9
-
10
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
11
-
12
- var _createClass2 = require("babel-runtime/helpers/createClass");
13
-
14
- var _createClass3 = _interopRequireDefault(_createClass2);
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- var PersonProcesser = exports.PersonProcesser = function () {
19
- function PersonProcesser() {
20
- (0, _classCallCheck3.default)(this, PersonProcesser);
21
- }
22
-
23
- (0, _createClass3.default)(PersonProcesser, null, [{
24
- key: "execute",
25
- value: function execute(dto, updatedDetail) {
26
- var person = updatedDetail.value;
27
- if (person) {
28
- JSON.setCellValue(dto, "IdPerson", person.ID);
29
- JSON.setCellValue(dto, "Person", person);
30
- }
31
- }
32
- }]);
33
- return PersonProcesser;
34
- }();
35
- //# sourceMappingURL=PersonProcesser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/PersonProcesser.js"],"names":["PersonProcesser","dto","updatedDetail","person","value","JSON","setCellValue","ID"],"mappings":";;;;;;;;;;;;;;;;;IAAaA,e,WAAAA,e;;;;;;;gCACMC,G,EAAKC,a,EACpB;AACI,gBAAIC,SAAOD,cAAcE,KAAzB;AACA,gBAAGD,MAAH,EACA;AACIE,qBAAKC,YAAL,CAAkBL,GAAlB,EAAsB,UAAtB,EAAiCE,OAAOI,EAAxC;AACAF,qBAAKC,YAAL,CAAkBL,GAAlB,EAAsB,QAAtB,EAA+BE,MAA/B;AACH;AAEJ","file":"PersonProcesser.js","sourcesContent":["export class PersonProcesser{\r\n static execute(dto, updatedDetail)\r\n {\r\n let person=updatedDetail.value;\r\n if(person)\r\n {\r\n JSON.setCellValue(dto,\"IdPerson\",person.ID);\r\n JSON.setCellValue(dto,\"Person\",person);\r\n }\r\n \r\n }\r\n}"]}
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PriuserdefChangedProcessor = undefined;
7
-
8
- var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
9
-
10
- var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
11
-
12
- var _createClass2 = require("babel-runtime/helpers/createClass");
13
-
14
- var _createClass3 = _interopRequireDefault(_createClass2);
15
-
16
- var _tplusComponentsTouch = require("tplus-components-touch");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- var PriuserdefChangedProcessor = exports.PriuserdefChangedProcessor = function () {
21
- function PriuserdefChangedProcessor() {
22
- (0, _classCallCheck3.default)(this, PriuserdefChangedProcessor);
23
- }
24
-
25
- (0, _createClass3.default)(PriuserdefChangedProcessor, null, [{
26
- key: "execute",
27
- value: function execute(memberData, view, changed) {
28
- var _loop = function _loop(key) {
29
- if (key.indexOf("userdef") > 0 && !JSON.getCellValue(memberData, key)) {
30
- var value = JSON.getDynamicValue(changed, key);
31
- var userdefItem = view.find(function (el) {
32
- return el.FieldName == key;
33
- });
34
- if (userdefItem && userdefItem.FieldType == "date") {
35
- value = _tplusComponentsTouch.tools.dateFormat(value);
36
- }
37
- JSON.setCellValue(memberData, key, value);
38
- }
39
- };
40
-
41
- for (var key in memberData) {
42
- _loop(key);
43
- }
44
- }
45
- }]);
46
- return PriuserdefChangedProcessor;
47
- }(); /**
48
- * 自定义项的处理
49
- */
50
- //# sourceMappingURL=PriuserdefChangedProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tplus-member/domain/member/PriuserdefChangedProcessor.js"],"names":["PriuserdefChangedProcessor","memberData","view","changed","key","indexOf","JSON","getCellValue","value","getDynamicValue","userdefItem","find","el","FieldName","FieldType","tools","dateFormat","setCellValue"],"mappings":";;;;;;;;;;;;;;;AAGA;;;;IAEaA,0B,WAAAA,0B;;;;;;;4BAEMC,U,EAAWC,I,EAAKC,O,EAC/B;AAAA,iCACaC,GADb;AAEQ,YAAIA,IAAIC,OAAJ,CAAY,SAAZ,IAAyB,CAAzB,IAA4B,CAACC,KAAKC,YAAL,CAAkBN,UAAlB,EAA8BG,GAA9B,CAAjC,EAAqE;AACnE,cAAII,QAAMF,KAAKG,eAAL,CAAqBN,OAArB,EAA8BC,GAA9B,CAAV;AACA,cAAIM,cAAcR,KAAKS,IAAL,CAAU;AAAA,mBAAIC,GAAGC,SAAH,IAAcT,GAAlB;AAAA,WAAV,CAAlB;AACA,cAAGM,eAAaA,YAAYI,SAAZ,IAAuB,MAAvC,EACA;AACEN,oBAAMO,4BAAMC,UAAN,CAAiBR,KAAjB,CAAN;AACD;AACDF,eAAKW,YAAL,CAAkBhB,UAAlB,EAA8BG,GAA9B,EAAmCI,KAAnC;AACD;AAVT;;AACI,WAAK,IAAIJ,GAAT,IAAgBH,UAAhB,EAA4B;AAAA,cAAnBG,GAAmB;AAUzB;AACN;;;KApBL","file":"PriuserdefChangedProcessor.js","sourcesContent":["/**\r\n * 自定义项的处理\r\n */\r\nimport {tools} from 'tplus-components-touch'\r\n\r\nexport class PriuserdefChangedProcessor\r\n{\r\n static execute(memberData,view,changed)\r\n {\r\n for (let key in memberData) {\r\n if (key.indexOf(\"userdef\") > 0&&!JSON.getCellValue(memberData, key)) {\r\n let value=JSON.getDynamicValue(changed, key);\r\n let userdefItem = view.find(el=>el.FieldName==key);\r\n if(userdefItem&&userdefItem.FieldType==\"date\")\r\n {\r\n value=tools.dateFormat(value);\r\n }\r\n JSON.setCellValue(memberData, key, value);\r\n }\r\n }\r\n }\r\n}"]}