tplus-member 3.42.2 → 3.44.1
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.map +1 -1
- package/dist/member/ShopMember.less +635 -635
- package/dist/member/ShopMemberStorage.js.map +1 -1
- package/dist/member/api.js.map +1 -1
- package/dist/member/color.less +31 -31
- package/dist/member/index.js +4 -4
- 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.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 +2 -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 +7 -7
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
4
|
+
value: true
|
5
5
|
});
|
6
6
|
exports.InitDataProcessor = undefined;
|
7
7
|
|
@@ -26,128 +26,128 @@ var _tplusPoslogin = require("tplus-poslogin");
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
27
27
|
|
28
28
|
var InitDataProcessor = exports.InitDataProcessor = function () {
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
29
|
+
function InitDataProcessor() {
|
30
|
+
(0, _classCallCheck3.default)(this, InitDataProcessor);
|
31
|
+
}
|
32
|
+
|
33
|
+
(0, _createClass3.default)(InitDataProcessor, null, [{
|
34
|
+
key: "execute",
|
35
|
+
value: function () {
|
36
|
+
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(dto, memberDto) {
|
37
|
+
var IPMSG;
|
38
|
+
return _regenerator2.default.wrap(function _callee$(_context) {
|
39
|
+
while (1) {
|
40
|
+
switch (_context.prev = _context.next) {
|
41
|
+
case 0:
|
42
|
+
$T.debugger();
|
43
|
+
|
44
|
+
// CardCode 会员卡号
|
45
|
+
JSON.setCellValue(dto, "CardCode", memberDto.CardCode);
|
46
|
+
// Code 编号
|
47
|
+
// DataSource 数据来源
|
48
|
+
|
49
|
+
// DayVoucherCode 日结单号
|
50
|
+
JSON.setCellValue(dto, "DayVoucherCode", (0, _tplusPoslogin.PosInitData)('DailyCode'));
|
51
|
+
// ExternalCode 外部系统单据编码
|
52
|
+
// dto.ExternalCode=
|
53
|
+
// idcustomer idcustomer
|
54
|
+
// iddailydetailvoucher 日结单ID
|
55
|
+
JSON.setCellValue(dto, "IdDailyDetailVoucher", (0, _tplusPoslogin.PosInitData)('IdDailyVoucher'));
|
56
|
+
// idintegralmember idintegralmember
|
57
|
+
// idmarketingOrgan 多营销机构临时值
|
58
|
+
JSON.setCellValue(dto, "IdmarketingOrgan", (0, _tplusPoslogin.PosInitData)('IdmarketingOrgan'));
|
59
|
+
|
60
|
+
JSON.setCellValue(dto, "Idmember", memberDto.ID);
|
61
|
+
|
62
|
+
JSON.setCellValue(dto, "Member", memberDto);
|
63
|
+
|
64
|
+
//JSON.setCellValue(dto,"Person",memberDto.Person);
|
65
|
+
|
66
|
+
//JSON.setCellValue(dto,"IdPerson",JSON.getCellValue(memberDto,"Person.ID"));
|
67
|
+
|
68
|
+
// idsettleCustomer idsettleCustomer
|
69
|
+
// Idstore idstore
|
70
|
+
JSON.setCellValue(dto, "Idstore", (0, _tplusPoslogin.PosInitData)('storeID'));
|
71
|
+
|
72
|
+
// Store Store
|
73
|
+
// PosCode POS编号
|
74
|
+
JSON.setCellValue(dto, "PosCode", (0, _tplusPoslogin.PosInitData)('posCode'));
|
75
|
+
// ShiftVoucherCode 交班单号
|
76
|
+
JSON.setCellValue(dto, "ShiftVoucherCode", (0, _tplusPoslogin.PosInitData)('ShiftCode'));
|
77
|
+
|
78
|
+
//交班单ID
|
79
|
+
dto.IdShiftVoucher = (0, _tplusPoslogin.PosInitData)('IdShiftVoucher');
|
80
|
+
//
|
81
|
+
// Maker 制单人
|
82
|
+
// MemberQuantity 会员数量
|
83
|
+
// Memo 备注
|
84
|
+
// Name 名称
|
85
|
+
|
86
|
+
// cc结算调用
|
87
|
+
IPMSG = {};
|
88
|
+
|
89
|
+
if (!!window.localStorage.IPMSG) {
|
90
|
+
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
91
|
+
}
|
92
|
+
|
93
|
+
dto.Cip = IPMSG.query || "";
|
94
|
+
|
95
|
+
// SingleStorageAmount 单卡储值金额
|
96
|
+
// StorageAmount 储值总额
|
97
|
+
// StorageDetails StorageDetails
|
98
|
+
// StorageMutiSettleDetails StorageMutiSettleDetails
|
99
|
+
|
100
|
+
// Ts 分布时间戳
|
101
|
+
// UID U会员储值明细ID
|
102
|
+
dto.UID = memberDto.Uid || 0;
|
103
|
+
// VoucherDate 单据日期
|
104
|
+
JSON.setCellValue(dto, "VoucherDate", (0, _tplusPoslogin.PosInitData)('VoucherDate'));
|
105
|
+
// 数据来源 POS端
|
106
|
+
if (!dto.DataSource) {
|
107
|
+
dto.DataSource = {};
|
108
|
+
}
|
109
|
+
|
110
|
+
dto.DataSource.Id = "POS";
|
111
|
+
dto.MakerId = (0, _tplusPoslogin.PosInitData)('UserID');
|
112
|
+
|
113
|
+
if (dto.StorageDetails == null || dto.StorageDetails.length < 1) {
|
114
|
+
|
115
|
+
dto.StorageDetails.push({ "Code": "0".PadLeft(4, '0'),
|
116
|
+
"Idmember": dto.Idmember,
|
117
|
+
"IdmemberType": null,
|
118
|
+
"ThisStorageAmount": null,
|
119
|
+
"ThisPresentAmount": null,
|
120
|
+
"ThisValidStorageAmount": null,
|
121
|
+
"StorageType": { Id: 2099 }
|
122
|
+
});
|
123
|
+
}
|
124
|
+
|
125
|
+
// 积分会员
|
126
|
+
if (JSON.getCellValue(memberDto, "MemberType.IsIntegral")) {
|
127
|
+
JSON.setCellValue(dto, "IdIntegralMember", memberDto.ID);
|
128
|
+
}
|
129
|
+
dto.ExternalCode = dto.Idmember + "_" + dto.PosCode + "_" + new Date().toArray().join("_") + Math.floor(Math.random() * 1000 + 1);
|
130
|
+
|
131
|
+
if (!dto.StorageDetails[0].StorageType) {
|
132
|
+
dto.StorageDetails[0].StorageType = {};
|
133
|
+
}
|
134
|
+
dto.StorageDetails[0].StorageType.Id = 2099;
|
135
|
+
|
136
|
+
case 24:
|
137
|
+
case "end":
|
138
|
+
return _context.stop();
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}, _callee, this);
|
142
|
+
}));
|
143
|
+
|
144
|
+
function execute(_x, _x2) {
|
145
|
+
return _ref.apply(this, arguments);
|
139
146
|
}
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
return _ref.apply(this, arguments);
|
146
|
-
}
|
147
|
-
|
148
|
-
return execute;
|
149
|
-
}()
|
150
|
-
}]);
|
151
|
-
return InitDataProcessor;
|
147
|
+
|
148
|
+
return execute;
|
149
|
+
}()
|
150
|
+
}]);
|
151
|
+
return InitDataProcessor;
|
152
152
|
}();
|
153
153
|
//# sourceMappingURL=InitDataProcessor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/domain/member/InitDataProcessor.js"],"names":["InitDataProcessor","dto","memberDto","$T","debugger","JSON","setCellValue","CardCode","ID","IdShiftVoucher","IPMSG","window","localStorage","parse","Cip","query","UID","Uid","DataSource","Id","MakerId","StorageDetails","length","push","PadLeft","Idmember","getCellValue","ExternalCode","PosCode","Date","toArray","join","Math","floor","random","StorageType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;IAEaA,iB,WAAAA,iB;;;;;;;;
|
1
|
+
{"version":3,"sources":["tplus-member/domain/member/InitDataProcessor.js"],"names":["InitDataProcessor","dto","memberDto","$T","debugger","JSON","setCellValue","CardCode","ID","IdShiftVoucher","IPMSG","window","localStorage","parse","Cip","query","UID","Uid","DataSource","Id","MakerId","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;;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{\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 //交班单ID\r\n dto.IdShiftVoucher = PosInitData('IdShiftVoucher');\r\n // \r\n // Maker\t制单人\r\n // MemberQuantity\t会员数量\r\n // Memo\t备注\r\n // Name\t名称\r\n\r\n // cc结算调用\r\n let IPMSG = {};\r\n if (!!window.localStorage.IPMSG) {\r\n IPMSG = JSON.parse(window.localStorage.IPMSG);\r\n }\r\n\r\n dto.Cip = IPMSG.query || \"\"\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=\"POS\";\r\n dto.MakerId = PosInitData('UserID');\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}"]}
|
@@ -15,8 +15,8 @@ var _createClass3 = _interopRequireDefault(_createClass2);
|
|
15
15
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
17
|
|
18
|
-
/**
|
19
|
-
* 判断会员是否生效
|
18
|
+
/**
|
19
|
+
* 判断会员是否生效
|
20
20
|
*/
|
21
21
|
var IsMemberEffectiveProcessor = exports.IsMemberEffectiveProcessor = function () {
|
22
22
|
function IsMemberEffectiveProcessor() {
|
@@ -1 +1 @@
|
|
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":["\n/**\n * 判断会员是否生效\n */\nexport class IsMemberEffectiveProcessor {\n static execute(memberDTO) {\n // 生效日期\n let effectiveDate = new Date(memberDTO.EffectiveDate);\n let effectiveDateStr = effectiveDate.Format('yyyy-MM-dd');\n if (effectiveDateStr < '1900-01-01') {\n return true;\n }\n let nowDate = new Date();\n let nowDateStr = nowDate.Format('yyyy-MM-dd');\n if (effectiveDateStr > nowDateStr) {\n return false;\n }\n return true;\n }\n}\n\n"]}
|
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 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/domain/member/IsMemberEnableProcessor.js"],"names":["IsMemberEnableProcessor","memberDTO","enumController","getEnumOj","memberEnumState","memberState","MemberDTO","MemberState","Id","using"],"mappings":";;;;;;;;;;;;;;;AAGA;;;;IAEaA,uB,WAAAA,uB;;;;;;;gCAEMC,S,EACf;AAAA,wCACgCC,4BAAeC,SAAf,EADhC;AAAA,gBACYC,eADZ,yBACYA,eADZ;;AAEI,gBAAIC,cAAaC,UAAUC,WAA3B;AACA,gBAAIF,YAAYG,EAAZ,IAAkBJ,gBAAgBK,KAAtC,EAA6C;AACzC,uBAAO,IAAP;AACH;AACD,mBAAO,KAAP;AACH;;;KAfL","file":"IsMemberEnableProcessor.js","sourcesContent":["/**\n * 判断当前会员是否启用\n */\nimport { enumController } from 'mutants-util'\n\nexport class IsMemberEnableProcessor\n{\n static execute(memberDTO)\n { \n const { memberEnumState } = enumController.getEnumOj();\n let memberState= MemberDTO.MemberState;\n if (memberState.Id == memberEnumState.using) {\n return true;\n }\n return false;\n }\n}"]}
|
1
|
+
{"version":3,"sources":["tplus-member/domain/member/IsMemberEnableProcessor.js"],"names":["IsMemberEnableProcessor","memberDTO","enumController","getEnumOj","memberEnumState","memberState","MemberDTO","MemberState","Id","using"],"mappings":";;;;;;;;;;;;;;;AAGA;;;;IAEaA,uB,WAAAA,uB;;;;;;;gCAEMC,S,EACf;AAAA,wCACgCC,4BAAeC,SAAf,EADhC;AAAA,gBACYC,eADZ,yBACYA,eADZ;;AAEI,gBAAIC,cAAaC,UAAUC,WAA3B;AACA,gBAAIF,YAAYG,EAAZ,IAAkBJ,gBAAgBK,KAAtC,EAA6C;AACzC,uBAAO,IAAP;AACH;AACD,mBAAO,KAAP;AACH;;;KAfL","file":"IsMemberEnableProcessor.js","sourcesContent":["/**\r\n * 判断当前会员是否启用\r\n */\r\nimport { enumController } from 'mutants-util'\r\n\r\nexport class IsMemberEnableProcessor\r\n{\r\n static execute(memberDTO)\r\n { \r\n const { memberEnumState } = enumController.getEnumOj();\r\n let memberState= MemberDTO.MemberState;\r\n if (memberState.Id == memberEnumState.using) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n}"]}
|
@@ -15,8 +15,8 @@ var _createClass3 = _interopRequireDefault(_createClass2);
|
|
15
15
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
17
|
|
18
|
-
/**
|
19
|
-
* 判断会员是否失效
|
18
|
+
/**
|
19
|
+
* 判断会员是否失效
|
20
20
|
*/
|
21
21
|
var IsMemberExpirationProcessor = exports.IsMemberExpirationProcessor = function () {
|
22
22
|
function IsMemberExpirationProcessor() {
|
@@ -1 +1 @@
|
|
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":["\n/**\n * 判断会员是否失效\n */\nexport class IsMemberExpirationProcessor {\n static execute(memberDTO) {\n // 失效日期\n let ExpirationDate =new Date(memberDTO.ExpirationDate);\n let ExpirationDateStr = ExpirationDate.Format('yyyy-MM-dd');\n if (ExpirationDateStr < '1900-01-01') {\n return false;\n }\n let nowDate = new Date();\n let nowDateStr = nowDate.Format('yyyy-MM-dd');\n\n if (ExpirationDateStr < nowDateStr) {\n return false;\n }\n return true;\n }\n}\n"]}
|
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"]}
|
@@ -15,8 +15,8 @@ var _createClass3 = _interopRequireDefault(_createClass2);
|
|
15
15
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
17
|
|
18
|
-
/**
|
19
|
-
* 校验两次密码是否一致
|
18
|
+
/**
|
19
|
+
* 校验两次密码是否一致
|
20
20
|
*/
|
21
21
|
var IsMemberPasswordSameProcessor = exports.IsMemberPasswordSameProcessor = function () {
|
22
22
|
function IsMemberPasswordSameProcessor() {
|
@@ -1 +1 @@
|
|
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":["/**\n * 校验两次密码是否一致\n */\nexport class IsMemberPasswordSameProcessor\n{\n static execute(memberData)\n {\n if(memberData[\"RePassword\"]==undefined||memberData[\"Password\"]==undefined)\n {\n //没有密码输入框,不校验\n return true;\n }\n if (memberData[\"Password\"]==memberData[\"RePassword\"]) {\n return true;\n }\n return false;\n }\n}"]}
|
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}"]}
|
@@ -19,9 +19,9 @@ var _tplusPoslogin = require('tplus-poslogin');
|
|
19
19
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21
21
|
|
22
|
-
/***
|
23
|
-
* 依据门店判断会员是否可以储值
|
24
|
-
* 专柜不能储值
|
22
|
+
/***
|
23
|
+
* 依据门店判断会员是否可以储值
|
24
|
+
* 专柜不能储值
|
25
25
|
***/
|
26
26
|
var IsMemberStorageForStoreProcessor = exports.IsMemberStorageForStoreProcessor = function () {
|
27
27
|
function IsMemberStorageForStoreProcessor() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/domain/member/IsMemberStorageForStoreProcessor.js"],"names":["IsMemberStorageForStoreProcessor","enumController","getEnumOj","StoreType","storeTypeId","specialCounter"],"mappings":";;;;;;;;;;;;;;;AAIA;;AACA;;;;AALA;;;;IAOaA,gC,WAAAA,gC;;;;;;;kCAGT;AAAA,wCAC0BC,4BAAeC,SAAf,EAD1B;AAAA,gBACYC,SADZ,yBACYA,SADZ;;AAEI,gBAAIC,cAAe,gCAAY,aAAZ,CAAnB;AACA,gBAAIA,eAAeD,UAAUE,cAA7B,EAA6C;AACzC,uBAAO,KAAP;AACH;AACD,mBAAO,IAAP;AACH","file":"IsMemberStorageForStoreProcessor.js","sourcesContent":["/***\n * 依据门店判断会员是否可以储值\n * 专柜不能储值\n***/\nimport { enumController } from 'mutants-util'\nimport {PosInitData} from 'tplus-poslogin';\n\nexport class IsMemberStorageForStoreProcessor\n{\n static execute()\n {\n const { StoreType } = enumController.getEnumOj();\n let storeTypeId = PosInitData('StoreTypeId');\n if (storeTypeId == StoreType.specialCounter) {\n return false;\n }\n return true;\n }\n}"]}
|
1
|
+
{"version":3,"sources":["tplus-member/domain/member/IsMemberStorageForStoreProcessor.js"],"names":["IsMemberStorageForStoreProcessor","enumController","getEnumOj","StoreType","storeTypeId","specialCounter"],"mappings":";;;;;;;;;;;;;;;AAIA;;AACA;;;;AALA;;;;IAOaA,gC,WAAAA,gC;;;;;;;kCAGT;AAAA,wCAC0BC,4BAAeC,SAAf,EAD1B;AAAA,gBACYC,SADZ,yBACYA,SADZ;;AAEI,gBAAIC,cAAe,gCAAY,aAAZ,CAAnB;AACA,gBAAIA,eAAeD,UAAUE,cAA7B,EAA6C;AACzC,uBAAO,KAAP;AACH;AACD,mBAAO,IAAP;AACH","file":"IsMemberStorageForStoreProcessor.js","sourcesContent":["/***\r\n * 依据门店判断会员是否可以储值\r\n * 专柜不能储值\r\n***/\r\nimport { enumController } from 'mutants-util'\r\nimport {PosInitData} from 'tplus-poslogin';\r\n\r\nexport class IsMemberStorageForStoreProcessor\r\n{\r\n static execute()\r\n {\r\n const { StoreType } = enumController.getEnumOj();\r\n let storeTypeId = PosInitData('StoreTypeId');\r\n if (storeTypeId == StoreType.specialCounter) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n}"]}
|
@@ -19,10 +19,10 @@ var _mutantsUtil = require('mutants-util');
|
|
19
19
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21
21
|
|
22
|
-
/**
|
23
|
-
* 会员类型修改时
|
24
|
-
* 1、如果会员类型启用了积分,并且设置了期初积分,则给会员的期初积分赋值
|
25
|
-
* 2、如果会员类型未启用积分,则会员期初积分不显示
|
22
|
+
/**
|
23
|
+
* 会员类型修改时
|
24
|
+
* 1、如果会员类型启用了积分,并且设置了期初积分,则给会员的期初积分赋值
|
25
|
+
* 2、如果会员类型未启用积分,则会员期初积分不显示
|
26
26
|
*/
|
27
27
|
var MemberTypeChangedProcessor = exports.MemberTypeChangedProcessor = function () {
|
28
28
|
function MemberTypeChangedProcessor() {
|
@@ -1 +1 @@
|
|
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","enumController","getEnumOj","MemberValidityControlMode","Id","year","setFullYear","getFullYear","month","setMonth","getMonth"],"mappings":";;;;;;;;;;;;;;;AAKA;;AACA;;;;AANA;;;;;IAQcA,0B,WAAAA,0B;;;;;;;4BAEMC,M,EAAOC,U,EAAWC,O,EAAQC,I,EAAKC,U,EAAWC,kB,EACzD;AACE;AACC,UAAMC,eAAeH,KAAKI,IAAL,CAAU;AAAA,eAAIC,GAAGC,SAA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ypeChangedProcessor.js","sourcesContent":["/**\n * 会员类型修改时\n * 1、如果会员类型启用了积分,并且设置了期初积分,则给会员的期初积分赋值\n * 2、如果会员类型未启用积分,则会员期初积分不显示\n */\nimport { tools } from 'tplus-components-touch'\nimport { enumController } from 'mutants-util';\n\n export class MemberTypeChangedProcessor\n {\n static execute(isOpen,memberData,changed,view,membertype,startMobileRequset)\n {\n //期初积分\n const openIntegral = view.find(el=>el.FieldName=='OpenIntegral');\n if(!isOpen)\n {\n changed[\"OpenIntegral\"]=null;\n if(membertype.IsIntegral==true&&membertype.InitIntegral!=null)\n {\n changed[\"OpenIntegral\"]=membertype.InitIntegral;\n }\n }\n if(openIntegral)\n {\n if(membertype.IsIntegral)\n {\n openIntegral.Visible=true;\n }\n else\n {\n openIntegral.Visible=false;\n }\n }\n //密码\n if(!isOpen)\n {\n changed[\"Password\"]=null;\n changed[\"RePassword\"]=null;\n if(membertype.IsNeedPwd)\n {\n changed[\"Password\"]=membertype.InitPassword;\n changed[\"RePassword\"]=membertype.InitPassword;\n }\n }\n const password=view.find(el=>el.FieldName=='Password');\n const rePassword=view.find(el=>el.FieldName=='RePassword');\n if(password&&rePassword)\n {\n if(membertype.IsNeedPwd)\n {\n password.Visible=true;\n rePassword.Visible=true;\n }\n else\n {\n password.Visible=false;\n rePassword.Visible=false;\n }\n }\n //期初储值\n const openStorage=view.find(el=>el.FieldName=='OpenStorage');\n if(openStorage)\n {\n if(membertype.IsStorage)\n {\n openStorage.Visible=true;\n }\n else\n {\n openStorage.Visible=false;\n }\n }\n //手机号必录\n const mobilephone=view.find(el=>el.FieldName=='Mobilephone');\n if(mobilephone&&!startMobileRequset)\n {\n if(membertype.MobilephoneRequired)\n {\n mobilephone.AllowNone=false;\n }\n else\n {\n mobilephone.AllowNone=true;\n }\n }\n \n changed[\"EffectiveDate\"]=tools.dateFormat(new Date());\n if(!isOpen||(isOpen&&memberData[\"ExpirationDate\"]==null))\n {\n changed[\"ExpirationDate\"]=null;\n //失效日期\n if(membertype.ValidityControlMode!=null&&membertype.ValidityPeriod!=null&&membertype.ValidityPeriod>0)\n {\n let EffectiveDate=memberData[\"EffectiveDate\"];\n if(EffectiveDate)\n {\n let nowDate=new Date(EffectiveDate);\n let stride=membertype.ValidityPeriod;\n const { MemberValidityControlMode } = enumController.getEnumOj();\n switch(membertype.ValidityControlMode.Id)\n {\n case MemberValidityControlMode.year:\n nowDate=nowDate.setFullYear(nowDate.getFullYear()+stride);\n break;\n case MemberValidityControlMode.month:\n nowDate=nowDate.setMonth(nowDate.getMonth()+stride);\n }\n changed[\"ExpirationDate\"]=tools.dateFormat(nowDate);\n }\n }\n }\n }\n }"]}
|
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","enumController","getEnumOj","MemberValidityControlMode","Id","year","setFullYear","getFullYear","month","setMonth","getMonth"],"mappings":";;;;;;;;;;;;;;;AAKA;;AACA;;;;AANA;;;;;IAQcA,0B,WAAAA,0B;;;;;;;4BAEMC,M,EAAOC,U,EAAWC,O,EAAQC,I,EAAKC,U,EAAWC,kB,EACzD;AACE;AACC,UAAMC,eAAeH,KAAKI,IAAL,CAAU;AAAA,eAAIC,GAAGC,SAAH,IAAc,cAAlB;AAAA,OAAV,CAArB;AACA,UAAG,CAACT,MAAJ,EACA;AACEE,gBAAQ,cAAR,IAAwB,IAAxB;AACA,YAAGE,WAAWM,UAAX,IAAuB,IAAvB,IAA6BN,WAAWO,YAAX,IAAyB,IAAzD,EACA;AACET,kBAAQ,cAAR,IAAwBE,WAAWO,YAAnC;AACD;AACF;AACD,UAAGL,YAAH,EACA;AACE,YAAGF,WAAWM,UAAd,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F,sBAAYE,SAAZ,GAAsB,IAAtB;AACD;AACF;;AAEDnB,cAAQ,eAAR,IAAyBoB,4BAAMC,UAAN,CAAiB,IAAIC,IAAJ,EAAjB,CAAzB;AACA,UAAG,CAACxB,MAAD,IAAUA,UAAQC,WAAW,gBAAX,KAA8B,IAAnD,EACA;AACEC,gBAAQ,gBAAR,IAA0B,IAA1B;AACA;AACA,YAAGE,WAAWqB,mBAAX,IAAgC,IAAhC,IAAsCrB,WAAWsB,cAAX,IAA2B,IAAjE,IAAuEtB,WAAWsB,cAAX,GAA0B,CAApG,EACA;AACE,cAAIC,gBAAc1B,WAAW,eAAX,CAAlB;AACA,cAAG0B,aAAH,EACA;AACE,gBAAIC,UAAQ,IAAIJ,IAAJ,CAASG,aAAT,CAAZ;AACA,gBAAIE,SAAOzB,WAAWsB,cAAtB;;AAFF,wCAGwCI,4BAAeC,SAAf,EAHxC;AAAA,gBAGUC,yBAHV,yBAGUA,yBAHV;;AAIE,oBAAO5B,WAAWqB,mBAAX,CAA+BQ,EAAtC;AAEE,mBAAKD,0BAA0BE,IAA/B;AACEN,0BAAQA,QAAQO,WAAR,CAAoBP,QAAQQ,WAAR,KAAsBP,MAA1C,CAAR;AACA;AACF,mBAAKG,0BAA0BK,KAA/B;AACET,0BAAQA,QAAQU,QAAR,CAAiBV,QAAQW,QAAR,KAAmBV,MAApC,CAAR;AANJ;AAQA3B,oBAAQ,gBAAR,IAA0BoB,4BAAMC,UAAN,CAAiBK,OAAjB,CAA1B;AACD;AACF;AACF;AACH","file":"MemberTypeChangedProcessor.js","sourcesContent":["/**\r\n * 会员类型修改时\r\n * 1、如果会员类型启用了积分,并且设置了期初积分,则给会员的期初积分赋值\r\n * 2、如果会员类型未启用积分,则会员期初积分不显示\r\n */\r\nimport { tools } from 'tplus-components-touch'\r\nimport { enumController } from 'mutants-util';\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 const { MemberValidityControlMode } = enumController.getEnumOj();\r\n switch(membertype.ValidityControlMode.Id)\r\n {\r\n case MemberValidityControlMode.year:\r\n nowDate=nowDate.setFullYear(nowDate.getFullYear()+stride);\r\n break;\r\n case MemberValidityControlMode.month:\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 }"]}
|
@@ -15,10 +15,10 @@ var _createClass3 = _interopRequireDefault(_createClass2);
|
|
15
15
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
17
|
|
18
|
-
/**
|
19
|
-
* 会员手机号改变时
|
20
|
-
* 如果会员卡号为空,则填充手机号
|
21
|
-
* 如果会员编号为空,则填充手机号
|
18
|
+
/**
|
19
|
+
* 会员手机号改变时
|
20
|
+
* 如果会员卡号为空,则填充手机号
|
21
|
+
* 如果会员编号为空,则填充手机号
|
22
22
|
*/
|
23
23
|
|
24
24
|
var MobilephoneChangedProcessor = exports.MobilephoneChangedProcessor = function () {
|
@@ -1 +1 @@
|
|
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":["/**\n * 会员手机号改变时\n * 如果会员卡号为空,则填充手机号\n * 如果会员编号为空,则填充手机号\n */\n\nexport class MobilephoneChangedProcessor\n{\n static execute(isOpen,memberData,changed,newValue)\n {\n if(!isOpen&&(memberData[\"CardCode\"]==null||memberData[\"CardCode\"]=='')&&(/^1\\d{10}$/.test(newValue)))\n {\n changed[\"CardCode\"]=newValue;\n }\n }\n}"]}
|
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 +1 @@
|
|
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{\n static execute(dto, updatedDetail)\n {\n let person=updatedDetail.value;\n if(person)\n {\n JSON.setCellValue(dto,\"IdPerson\",person.ID);\n JSON.setCellValue(dto,\"Person\",person);\n }\n \n }\n}"]}
|
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 +1 @@
|
|
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":["/**\n * 自定义项的处理\n */\nimport {tools} from 'tplus-components-touch'\n\nexport class PriuserdefChangedProcessor\n{\n static execute(memberData,view,changed)\n {\n for (let key in memberData) {\n if (key.indexOf(\"userdef\") > 0&&!JSON.getCellValue(memberData, key)) {\n let value=JSON.getDynamicValue(changed, key);\n let userdefItem = view.find(el=>el.FieldName==key);\n if(userdefItem&&userdefItem.FieldType==\"date\")\n {\n value=tools.dateFormat(value);\n }\n JSON.setCellValue(memberData, key, value);\n }\n }\n }\n}"]}
|
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}"]}
|
@@ -36,11 +36,11 @@ var AddLogProcessor = exports.AddLogProcessor = function () {
|
|
36
36
|
}]);
|
37
37
|
return AddLogProcessor;
|
38
38
|
}();
|
39
|
-
/**
|
40
|
-
*POS 操作日志
|
41
|
-
*
|
42
|
-
* @export
|
43
|
-
* @class AddLogProcessor
|
44
|
-
* @auther tuzha
|
39
|
+
/**
|
40
|
+
*POS 操作日志
|
41
|
+
*
|
42
|
+
* @export
|
43
|
+
* @class AddLogProcessor
|
44
|
+
* @auther tuzha
|
45
45
|
*/
|
46
46
|
//# sourceMappingURL=AddLogProcessor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/domain/operationLog/AddLogProcessor.js"],"names":["AddLogProcessor","title","docno","description","OperationLogApi","addPosLog","e","console","error"],"mappings":";;;;;;;;;;;;;;;AAQA;;;;;;IACaA,e,WAAAA,e;;;;;;;gCACMC,K,EAAOC,K,EAAOC,W,EAAa;AACtC,gBAAG;AACDC,0CAAgBC,SAAhB,CAA0BJ,KAA1B,EAAiCC,KAAjC,EAAwCC,WAAxC;AACD,aAFD,CAGA,OAAOG,CAAP,EAAU;AACNC,wBAAQC,KAAR,CAAc,YAAd;AACH;AAEJ;;;;AAjBL","file":"AddLogProcessor.js","sourcesContent":["\n/**\n *POS 操作日志\n *\n * @export\n * @class AddLogProcessor\n * @auther tuzha\n */\nimport OperationLogApi from '../../api/OperationLogApi'\nexport class AddLogProcessor {\n static execute(title, docno, description) {\n try{\n OperationLogApi.addPosLog(title, docno, description);\n }\n catch (e) {\n console.error('操作日志接口调用异常');\n }\n \n }\n}"]}
|
1
|
+
{"version":3,"sources":["tplus-member/domain/operationLog/AddLogProcessor.js"],"names":["AddLogProcessor","title","docno","description","OperationLogApi","addPosLog","e","console","error"],"mappings":";;;;;;;;;;;;;;;AAQA;;;;;;IACaA,e,WAAAA,e;;;;;;;gCACMC,K,EAAOC,K,EAAOC,W,EAAa;AACtC,gBAAG;AACDC,0CAAgBC,SAAhB,CAA0BJ,KAA1B,EAAiCC,KAAjC,EAAwCC,WAAxC;AACD,aAFD,CAGA,OAAOG,CAAP,EAAU;AACNC,wBAAQC,KAAR,CAAc,YAAd;AACH;AAEJ;;;;AAjBL","file":"AddLogProcessor.js","sourcesContent":["\r\n/**\r\n *POS 操作日志\r\n *\r\n * @export\r\n * @class AddLogProcessor\r\n * @auther tuzha\r\n */\r\nimport OperationLogApi from '../../api/OperationLogApi'\r\nexport class AddLogProcessor {\r\n static execute(title, docno, description) {\r\n try{\r\n OperationLogApi.addPosLog(title, docno, description);\r\n }\r\n catch (e) {\r\n console.error('操作日志接口调用异常');\r\n }\r\n \r\n }\r\n}"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/domain/operationLog/OperationConfig.js"],"names":["OperationConfig"],"mappings":";;;;;;;;;;;;AACA,IAAMA;AACF,wBAAoB,IADlB;AAEF,oBAAgB,MAFd;AAGF,wBAAoB,MAHlB;AAIF,uBAAkB,MAJhB;AAKF,0BAAqB,MALnB;AAMF,0BAAsB,MANpB;AAOF,sBAAkB,OAPhB;AAQF,sBAAkB,MARhB;AASF,sBAAkB,QAThB;AAUF,uBAAmB,QAVjB;AAWF,yBAAqB,QAXnB;AAYF,sBAAiB,OAZf;AAaF,mBAAc,MAbZ;AAcF,wBAAmB,MAdjB;AAeF,uBAAkB,OAfhB;AAgBF,mBAAc,KAhBZ;AAiBF,yBAAoB;AAjBlB,yBAkBmB,MAlBnB,CAAN;;kBAqBeA,e","file":"OperationConfig.js","sourcesContent":["\nconst OperationConfig = {\n 'updateWipeChange': '抹零',\n 'changeMember': '修改会员',\n 'updateSingleSale': '单品打折',\n 'updateTotalSale':'整单打折',\n 'updateTotalPresent':'整单赠送',\n 'updateSingleAmount': '单品金额',\n 'deleteBodyItem': '删除明细行',\n 'updateQuantity': '修改数量',\n 'updateTaxPrice': '修改含税单价',\n 'updateTaxAmount': '修改含税金额',\n 'updateVoucherDate': '修改单据日期',\n 'updateFreeItem':'修改自由项',\n 'updateBatch':'修改批号',\n 'updateSingleMemo':'修改备注',\n 'updateQuantity2':'修改数量二',\n 'updateGuide':'改导购',\n 'updateSingleGuide':'改单行导购',\n 'updateSingleAmount':'单品金额'\n}\n\nexport default OperationConfig;\n"]}
|
1
|
+
{"version":3,"sources":["tplus-member/domain/operationLog/OperationConfig.js"],"names":["OperationConfig"],"mappings":";;;;;;;;;;;;AACA,IAAMA;AACF,wBAAoB,IADlB;AAEF,oBAAgB,MAFd;AAGF,wBAAoB,MAHlB;AAIF,uBAAkB,MAJhB;AAKF,0BAAqB,MALnB;AAMF,0BAAsB,MANpB;AAOF,sBAAkB,OAPhB;AAQF,sBAAkB,MARhB;AASF,sBAAkB,QAThB;AAUF,uBAAmB,QAVjB;AAWF,yBAAqB,QAXnB;AAYF,sBAAiB,OAZf;AAaF,mBAAc,MAbZ;AAcF,wBAAmB,MAdjB;AAeF,uBAAkB,OAfhB;AAgBF,mBAAc,KAhBZ;AAiBF,yBAAoB;AAjBlB,yBAkBmB,MAlBnB,CAAN;;kBAqBeA,e","file":"OperationConfig.js","sourcesContent":["\r\nconst OperationConfig = {\r\n 'updateWipeChange': '抹零',\r\n 'changeMember': '修改会员',\r\n 'updateSingleSale': '单品打折',\r\n 'updateTotalSale':'整单打折',\r\n 'updateTotalPresent':'整单赠送',\r\n 'updateSingleAmount': '单品金额',\r\n 'deleteBodyItem': '删除明细行',\r\n 'updateQuantity': '修改数量',\r\n 'updateTaxPrice': '修改含税单价',\r\n 'updateTaxAmount': '修改含税金额',\r\n 'updateVoucherDate': '修改单据日期',\r\n 'updateFreeItem':'修改自由项',\r\n 'updateBatch':'修改批号',\r\n 'updateSingleMemo':'修改备注',\r\n 'updateQuantity2':'修改数量二',\r\n 'updateGuide':'改导购',\r\n 'updateSingleGuide':'改单行导购',\r\n 'updateSingleAmount':'单品金额'\r\n}\r\n\r\nexport default OperationConfig;\r\n"]}
|