tplus-member 3.44.1 → 3.44.4
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 +6 -4
- 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 +9 -12
- package/dist/member/ShopMember.js.map +1 -1
- package/dist/member/ShopMember.less +636 -635
- package/dist/member/ShopMemberStorage.js +6 -9
- package/dist/member/ShopMemberStorage.js.map +1 -1
- package/dist/member/api.js +30 -60
- package/dist/member/api.js.map +1 -1
- package/dist/member/color.less +31 -31
- package/dist/member/index.js +476 -520
- package/dist/member/index.js.map +1 -1
- package/dist/member/index.less +571 -570
- 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 +46 -54
- 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 +31 -81
- 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 +43 -111
- 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 +17 -22
- 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 +14 -19
- 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 +34 -60
- 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 +3 -6
- 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 +9 -7
- 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 +5 -2
- package/dist/views/MemberStoreNewView.js.map +1 -1
- package/dist/views/MemberStoreView.js +5 -2
- package/dist/views/MemberStoreView.js.map +1 -1
- package/dist/views/MemberStoreViewContainer.js +1 -4
- 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 +1 -1
@@ -1,229 +1,229 @@
|
|
1
|
-
|
2
|
-
.memberContainer1[role='dialog'] {
|
3
|
-
z-index: 1002 !important;
|
4
|
-
}
|
5
|
-
.memberContainer1 {
|
6
|
-
.ant-modal {
|
7
|
-
height: 574px !important;
|
8
|
-
width : 800px !important;
|
9
|
-
.ant-modal-header {
|
10
|
-
border-bottom: 1px solid #E6E6EB !important;
|
11
|
-
height: 54px;
|
12
|
-
line-height: 54px;
|
13
|
-
}
|
14
|
-
}
|
15
|
-
.ant-modal-body {
|
16
|
-
height: 514px !important;
|
17
|
-
overflow:hidden !important;
|
18
|
-
}
|
19
|
-
|
20
|
-
.ant-modal-footer {
|
21
|
-
display: none;
|
22
|
-
}
|
23
|
-
|
24
|
-
.ant-modal-title {
|
25
|
-
font-size: 16px !important;
|
26
|
-
line-height: 54px;
|
27
|
-
padding: 4px 0 0 10px;
|
28
|
-
}
|
29
|
-
|
30
|
-
.ant-modal-close {
|
31
|
-
color: rgba(0, 0, 0, 0.45);
|
32
|
-
}
|
33
|
-
|
34
|
-
.memberstore {
|
35
|
-
.memberstore-head {
|
36
|
-
display : flex;
|
37
|
-
justify-content: flex-start;
|
38
|
-
align-items : center;
|
39
|
-
width : 100%;
|
40
|
-
height : 88px;
|
41
|
-
margin-left: 38px;
|
42
|
-
|
43
|
-
.imageContainer {
|
44
|
-
font-family : PingFang-SC-Regular;
|
45
|
-
display: flex;
|
46
|
-
align-items: center;
|
47
|
-
width: 200px;
|
48
|
-
img {
|
49
|
-
display : inline-block;
|
50
|
-
width : 69px;
|
51
|
-
height : 69px;
|
52
|
-
border-radius: 50%;
|
53
|
-
}
|
54
|
-
|
55
|
-
.imageContainer-message {
|
56
|
-
width : 150px;
|
57
|
-
text-align : left;
|
58
|
-
|
59
|
-
.divText{
|
60
|
-
font-size : 13px;
|
61
|
-
color : #000000;
|
62
|
-
letter-spacing: 0;
|
63
|
-
text-align : left;
|
64
|
-
white-space : nowrap;
|
65
|
-
text-overflow : ellipsis;
|
66
|
-
overflow : hidden;
|
67
|
-
word-break : break-all;
|
68
|
-
height : 16px;
|
69
|
-
line-height : 16px;
|
70
|
-
padding: 0 2px;
|
71
|
-
}
|
72
|
-
|
73
|
-
.divBlank {
|
74
|
-
height: 16px;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
.message {
|
80
|
-
text-align : left;
|
81
|
-
position : relative;
|
82
|
-
width : 180px;
|
83
|
-
height : 56px;
|
84
|
-
box-sizing : border-box;
|
85
|
-
padding-left: 20px;
|
86
|
-
padding-top : 10px;
|
87
|
-
|
88
|
-
span:last-child {
|
89
|
-
font-family: PingFang-SC-Regular;
|
90
|
-
font-size : 12px;
|
91
|
-
color : #666666;
|
92
|
-
line-height: 12px;
|
93
|
-
}
|
94
|
-
|
95
|
-
span:first-child {
|
96
|
-
font-family: PingFang-SC-Semibold;
|
97
|
-
font-size : 16px;
|
98
|
-
color : #FF595E;
|
99
|
-
line-height: 12px;
|
100
|
-
}
|
101
|
-
|
102
|
-
&:before {
|
103
|
-
content : '';
|
104
|
-
position : absolute;
|
105
|
-
top : 13px;
|
106
|
-
left : 0px;
|
107
|
-
width : 1px;
|
108
|
-
height : 25px;
|
109
|
-
background: #C8C8CD;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
.line {
|
115
|
-
height : 8px;
|
116
|
-
width : 100%;
|
117
|
-
background-color: #F4F4F4;
|
118
|
-
}
|
119
|
-
|
120
|
-
.form {
|
121
|
-
height: 351px;
|
122
|
-
padding: 16px 10px;
|
123
|
-
.ant-form-item{
|
124
|
-
margin-bottom: 6px;
|
125
|
-
}
|
126
|
-
.ant-form-item-control-input-content {
|
127
|
-
display : flex;
|
128
|
-
min-height: 34px;
|
129
|
-
// margin : 0 !important;
|
130
|
-
// height: 32px;
|
131
|
-
|
132
|
-
.one {
|
133
|
-
width : 120px;
|
134
|
-
font-size : 14px;
|
135
|
-
color : #000000;
|
136
|
-
text-align : right;
|
137
|
-
padding-right: 20px;
|
138
|
-
}
|
139
|
-
|
140
|
-
.two {
|
141
|
-
font-size : 14px;
|
142
|
-
color : #000000;
|
143
|
-
width: 300px;
|
144
|
-
overflow: hidden;
|
145
|
-
white-space: nowrap;
|
146
|
-
text-overflow: ellipsis;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
.storageAmount {
|
150
|
-
padding-top: 10px;
|
151
|
-
.one {
|
152
|
-
width: 134px !important;
|
153
|
-
}
|
154
|
-
.two {
|
155
|
-
width: 100% !important;
|
156
|
-
.checkPresentDetails {
|
157
|
-
height: 24px;
|
158
|
-
font-size: 14px;
|
159
|
-
font-family: 'PingFangSC-Medium';
|
160
|
-
cursor: pointer;
|
161
|
-
}
|
162
|
-
.content {
|
163
|
-
width: 256px;
|
164
|
-
margin-top: 10px;
|
165
|
-
margin-bottom: 10px;
|
166
|
-
}
|
167
|
-
}
|
168
|
-
}
|
169
|
-
.gift {
|
170
|
-
.giftDetail {
|
171
|
-
padding: 8px 8px 0 8px;
|
172
|
-
font-size: 14px;
|
173
|
-
border-radius: 2px;
|
174
|
-
width: 776px;
|
175
|
-
height: 54px;
|
176
|
-
overflow-x: scroll;
|
177
|
-
}
|
178
|
-
}
|
179
|
-
}
|
180
|
-
|
181
|
-
.line2 {
|
182
|
-
height : 1px;
|
183
|
-
width : 100%;
|
184
|
-
background-color: #E6E6EB;
|
185
|
-
}
|
186
|
-
.footer {
|
187
|
-
height : 66px !important;
|
188
|
-
line-height: 50px;
|
189
|
-
padding: 10px 16px;
|
190
|
-
display: flex;
|
191
|
-
align-items: center;
|
192
|
-
justify-content: flex-end;
|
193
|
-
margin-top: 6px;
|
194
|
-
}
|
195
|
-
}
|
196
|
-
}
|
197
|
-
.presentModalWraper[role="dialog"]{
|
198
|
-
z-index: 1010 !important;
|
199
|
-
}
|
200
|
-
.presentModalWraper {
|
201
|
-
.ant-modal-header {
|
202
|
-
font-size: 18px;
|
203
|
-
border-bottom: 1px solid #E6E6EB !important;
|
204
|
-
}
|
205
|
-
.ant-modal-body {
|
206
|
-
height: 288px !important;
|
207
|
-
}
|
208
|
-
.ant-modal-footer {
|
209
|
-
border-top: 1px solid #E6E6EB !important;
|
210
|
-
}
|
211
|
-
}
|
212
|
-
|
213
|
-
.detailAmount {
|
214
|
-
display: flex;
|
215
|
-
flex-wrap: wrap;
|
216
|
-
max-height: 100px;
|
217
|
-
overflow-y: scroll;
|
218
|
-
span {
|
219
|
-
width: 150px;
|
220
|
-
height: 32px;
|
221
|
-
display: inline-block;
|
222
|
-
text-align: center;
|
223
|
-
vertical-align:middle;
|
224
|
-
border: 1px solid #C8C8CD;
|
225
|
-
margin: 10px 7px 7px 0;
|
226
|
-
line-height:32px;
|
227
|
-
font-size: 16px;
|
228
|
-
}
|
1
|
+
|
2
|
+
.memberContainer1[role='dialog'] {
|
3
|
+
z-index: 1002 !important;
|
4
|
+
}
|
5
|
+
.memberContainer1 {
|
6
|
+
.ant-modal {
|
7
|
+
height: 574px !important;
|
8
|
+
width : 800px !important;
|
9
|
+
.ant-modal-header {
|
10
|
+
border-bottom: 1px solid #E6E6EB !important;
|
11
|
+
height: 54px;
|
12
|
+
line-height: 54px;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
.ant-modal-body {
|
16
|
+
height: 514px !important;
|
17
|
+
overflow:hidden !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
.ant-modal-footer {
|
21
|
+
display: none;
|
22
|
+
}
|
23
|
+
|
24
|
+
.ant-modal-title {
|
25
|
+
font-size: 16px !important;
|
26
|
+
line-height: 54px;
|
27
|
+
padding: 4px 0 0 10px;
|
28
|
+
}
|
29
|
+
|
30
|
+
.ant-modal-close {
|
31
|
+
color: rgba(0, 0, 0, 0.45);
|
32
|
+
}
|
33
|
+
|
34
|
+
.memberstore {
|
35
|
+
.memberstore-head {
|
36
|
+
display : flex;
|
37
|
+
justify-content: flex-start;
|
38
|
+
align-items : center;
|
39
|
+
width : 100%;
|
40
|
+
height : 88px;
|
41
|
+
margin-left: 38px;
|
42
|
+
|
43
|
+
.imageContainer {
|
44
|
+
font-family : PingFang-SC-Regular;
|
45
|
+
display: flex;
|
46
|
+
align-items: center;
|
47
|
+
width: 200px;
|
48
|
+
img {
|
49
|
+
display : inline-block;
|
50
|
+
width : 69px;
|
51
|
+
height : 69px;
|
52
|
+
border-radius: 50%;
|
53
|
+
}
|
54
|
+
|
55
|
+
.imageContainer-message {
|
56
|
+
width : 150px;
|
57
|
+
text-align : left;
|
58
|
+
|
59
|
+
.divText{
|
60
|
+
font-size : 13px;
|
61
|
+
color : #000000;
|
62
|
+
letter-spacing: 0;
|
63
|
+
text-align : left;
|
64
|
+
white-space : nowrap;
|
65
|
+
text-overflow : ellipsis;
|
66
|
+
overflow : hidden;
|
67
|
+
word-break : break-all;
|
68
|
+
height : 16px;
|
69
|
+
line-height : 16px;
|
70
|
+
padding: 0 2px;
|
71
|
+
}
|
72
|
+
|
73
|
+
.divBlank {
|
74
|
+
height: 16px;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
.message {
|
80
|
+
text-align : left;
|
81
|
+
position : relative;
|
82
|
+
width : 180px;
|
83
|
+
height : 56px;
|
84
|
+
box-sizing : border-box;
|
85
|
+
padding-left: 20px;
|
86
|
+
padding-top : 10px;
|
87
|
+
|
88
|
+
span:last-child {
|
89
|
+
font-family: PingFang-SC-Regular;
|
90
|
+
font-size : 12px;
|
91
|
+
color : #666666;
|
92
|
+
line-height: 12px;
|
93
|
+
}
|
94
|
+
|
95
|
+
span:first-child {
|
96
|
+
font-family: PingFang-SC-Semibold;
|
97
|
+
font-size : 16px;
|
98
|
+
color : #FF595E;
|
99
|
+
line-height: 12px;
|
100
|
+
}
|
101
|
+
|
102
|
+
&:before {
|
103
|
+
content : '';
|
104
|
+
position : absolute;
|
105
|
+
top : 13px;
|
106
|
+
left : 0px;
|
107
|
+
width : 1px;
|
108
|
+
height : 25px;
|
109
|
+
background: #C8C8CD;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
.line {
|
115
|
+
height : 8px;
|
116
|
+
width : 100%;
|
117
|
+
background-color: #F4F4F4;
|
118
|
+
}
|
119
|
+
|
120
|
+
.form {
|
121
|
+
height: 351px;
|
122
|
+
padding: 16px 10px;
|
123
|
+
.ant-form-item{
|
124
|
+
margin-bottom: 6px;
|
125
|
+
}
|
126
|
+
.ant-form-item-control-input-content {
|
127
|
+
display : flex;
|
128
|
+
min-height: 34px;
|
129
|
+
// margin : 0 !important;
|
130
|
+
// height: 32px;
|
131
|
+
|
132
|
+
.one {
|
133
|
+
width : 120px;
|
134
|
+
font-size : 14px;
|
135
|
+
color : #000000;
|
136
|
+
text-align : right;
|
137
|
+
padding-right: 20px;
|
138
|
+
}
|
139
|
+
|
140
|
+
.two {
|
141
|
+
font-size : 14px;
|
142
|
+
color : #000000;
|
143
|
+
width: 300px;
|
144
|
+
overflow: hidden;
|
145
|
+
white-space: nowrap;
|
146
|
+
text-overflow: ellipsis;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
.storageAmount {
|
150
|
+
padding-top: 10px;
|
151
|
+
.one {
|
152
|
+
width: 134px !important;
|
153
|
+
}
|
154
|
+
.two {
|
155
|
+
width: 100% !important;
|
156
|
+
.checkPresentDetails {
|
157
|
+
height: 24px;
|
158
|
+
font-size: 14px;
|
159
|
+
font-family: 'PingFangSC-Medium';
|
160
|
+
cursor: pointer;
|
161
|
+
}
|
162
|
+
.content {
|
163
|
+
width: 256px;
|
164
|
+
margin-top: 10px;
|
165
|
+
margin-bottom: 10px;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
169
|
+
.gift {
|
170
|
+
.giftDetail {
|
171
|
+
padding: 8px 8px 0 8px;
|
172
|
+
font-size: 14px;
|
173
|
+
border-radius: 2px;
|
174
|
+
width: 776px;
|
175
|
+
height: 54px;
|
176
|
+
overflow-x: scroll;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
.line2 {
|
182
|
+
height : 1px;
|
183
|
+
width : 100%;
|
184
|
+
background-color: #E6E6EB;
|
185
|
+
}
|
186
|
+
.footer {
|
187
|
+
height : 66px !important;
|
188
|
+
line-height: 50px;
|
189
|
+
padding: 10px 16px;
|
190
|
+
display: flex;
|
191
|
+
align-items: center;
|
192
|
+
justify-content: flex-end;
|
193
|
+
margin-top: 6px;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
.presentModalWraper[role="dialog"]{
|
198
|
+
z-index: 1010 !important;
|
199
|
+
}
|
200
|
+
.presentModalWraper {
|
201
|
+
.ant-modal-header {
|
202
|
+
font-size: 18px;
|
203
|
+
border-bottom: 1px solid #E6E6EB !important;
|
204
|
+
}
|
205
|
+
.ant-modal-body {
|
206
|
+
height: 288px !important;
|
207
|
+
}
|
208
|
+
.ant-modal-footer {
|
209
|
+
border-top: 1px solid #E6E6EB !important;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
.detailAmount {
|
214
|
+
display: flex;
|
215
|
+
flex-wrap: wrap;
|
216
|
+
max-height: 100px;
|
217
|
+
overflow-y: scroll;
|
218
|
+
span {
|
219
|
+
width: 150px;
|
220
|
+
height: 32px;
|
221
|
+
display: inline-block;
|
222
|
+
text-align: center;
|
223
|
+
vertical-align:middle;
|
224
|
+
border: 1px solid #C8C8CD;
|
225
|
+
margin: 10px 7px 7px 0;
|
226
|
+
line-height:32px;
|
227
|
+
font-size: 16px;
|
228
|
+
}
|
229
229
|
}
|
@@ -72,7 +72,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
72
72
|
|
73
73
|
var FormItem = _form2.default.Item;
|
74
74
|
var Option = _select2.default.Option;
|
75
|
-
var photo = 'https://newretail.static.chanjet.com/default_avatar.png';
|
76
75
|
|
77
76
|
var MemberStoreNewView = (0, _mutantsMicrofx.observer)(_class = function (_Component) {
|
78
77
|
(0, _inherits3.default)(MemberStoreNewView, _Component);
|
@@ -84,6 +83,10 @@ var MemberStoreNewView = (0, _mutantsMicrofx.observer)(_class = function (_Compo
|
|
84
83
|
|
85
84
|
var _this = (0, _possibleConstructorReturn3.default)(this, (MemberStoreNewView.__proto__ || (0, _getPrototypeOf2.default)(MemberStoreNewView)).call(this, props));
|
86
85
|
|
86
|
+
_this.sys_parms = {
|
87
|
+
photo: window.ossAliyuncsFileURL + '/default_avatar.png'
|
88
|
+
};
|
89
|
+
|
87
90
|
_this.getLocalStoreParam = function (fieldname) {
|
88
91
|
var data = _mutantsMicrofx.localStore.get('setting_setData') || [];
|
89
92
|
data = data.filter(function (item) {
|
@@ -339,7 +342,7 @@ var MemberStoreNewView = (0, _mutantsMicrofx.observer)(_class = function (_Compo
|
|
339
342
|
_react2.default.createElement(
|
340
343
|
'div',
|
341
344
|
{ className: 'imageContainer' },
|
342
|
-
CardTypeEnum === 'BALANCE_CARD' && _react2.default.createElement('img', { src: ImageFile || photo }),
|
345
|
+
CardTypeEnum === 'BALANCE_CARD' && _react2.default.createElement('img', { src: ImageFile || this.sys_parms.photo }),
|
343
346
|
_react2.default.createElement(
|
344
347
|
'div',
|
345
348
|
{ className: 'imageContainer-message' },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/views/MemberStoreNewView.js"],"names":["FormItem","Item","Option","photo","MemberStoreNewView","observer","props","getLocalStoreParam","fieldname","data","localStore","get","filter","item","Name","length","shift","Value","handleChange","info","type","value","state","isCanUpdate","percentNumber","changeStatus","timer","timerFun","window","clearTimeout","store","stores","memberStore","changeValue","strfun","console","log","percentValue","setTimeout","setState","getPersonList","initPersonList","Idstore","initFormData","StorageDetails","setSelectAmount","amount","index","currentValue","inputStorageAmount","inputChange","changeGiftSingle","setCurrentIndex","checkPresentDetail","showPresentDetail","modalCancel","modalOk","canUpdate","percent","memberDisabled","amountList","isInput","editPresentAmount","clearCon","personList","settlementControlEvent","storageAmountSpecData","giftSingle","giftList","noIsMinAmount","currentIndex","Member","Person","storageAmountSpecList","MemberMobile","ImageFile","BalanceStorage","PresentAmount","CardTypeEnum","StorageCardNo","IsSale","IsCustomStorage","salesman","JSON","getCellValue","thisPresentAmount","undefined","thisStorageAmount","amountPrecision","parseInt","amountMaxLength","storeInfo","TStore","restore","settlementParams","dataSource","DataSource","initData","PosInitData","showAmount","isMemberStorePage","dto","hotKey","hotKeyBindClass","width","marginRight","ot","map","ID","storageAmount","height","input","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AACA,IAAMA,WAAW,eAAKC,IAAtB;AACA,IAAMC,SAAS,iBAAOA,MAAtB;AACA,IAAM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,+CAAW,EAN0H;AAOrI,qDAAiB,CAPoH;AAQrI,yCAAK;AAAA,+CAAS,OAAK7D,kBAAL,GAA0B8D,KAAnC;AAAA,qCARgI;AASrI,6CAAS,mBAAM;AACX3D,2DAAmBA,gBAAgB,IAAhB,CAAnB;AACA,+CAAKH,kBAAL,IAA2B,CAAC,OAAKA,kBAAL,CAAwB8D,KAAxB,CAA8BA,KAA9B,CAAoC1F,KAAhE,IAAyE0C,UAAzE;AACH,qCAZoI;AAarI,8CAAU;AAAA,+CAAS,OAAK7C,YAAL,CAAkBT,IAAlB,EAAwB,aAAxB,EAAuCY,KAAvC,CAAT;AAAA;AAb2H;AAdjJ;AAFJ,yBAxBJ;AA0DI;AAAC,oCAAD;AAAA,8BAAU,KAAK,CAAf,EAAkB,WAAU,MAA5B;AACI;AAAA;AAAA,kCAAK,WAAU,KAAf;AAAA;AAAA,6BADJ;AAEI;AAAA;AAAA,kCAAK,WAAU,YAAf;AACI8C;AADJ;AAFJ;AA1DJ,qBA5BJ;AA6FI,2DAAK,WAAU,OAAf,GA7FJ;AA8FI;AAAA;AAAA,0BAAK,WAAU,QAAf;AACI;AAAA;AAAA,8BAAK,WAAU,gBAAf;AACI,0DAAC,gCAAD,EAAgB2B,gBAAhB;AADJ;AADJ;AA9FJ,iBAHR;AAwGI;AAAC,qDAAD;AAAA;AACI,mCAAU,oBADd;AAEI,8BAAMxC,iBAFV;AAGI,kCAAU,IAHd;AAII,+BAAM,0BAJV;AAKI,gCAAQ,KAAKC,WALjB;AAMI,uCAAe;AACX,uCAAW;AADA,yBANnB;AASI,4BAAI,KAAKC,OATb;AAUQ,kDAAC,0BAAD,IAAkB,UAAUY,QAA5B;AAVR;AAxGJ,aADJ;AAuHH;;;EAtR4B4C,gB;;kBAwRlB5G,kB","file":"MemberStoreNewView.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { Form, Select } from 'antd';\r\nimport { observer, stores, localStore } from \"mutants-microfx\";\r\nimport { Settlement, NumKeyboard, hotKey, ModalWraper } from 'tplus-components-touch';\r\nimport { PosInitData, TStore } from 'tplus-poslogin';\r\nimport { formatPrecision } from '../utils';\r\nimport './MemberStoreNew.less';\r\nimport PresetDetailView from './PresetDetailView'\r\nconst FormItem = Form.Item;\r\nconst Option = Select.Option;\r\nconst photo = 'https://newretail.static.chanjet.com/default_avatar.png'\r\n\r\n@observer\r\nclass MemberStoreNewView extends Component{\r\n\r\n constructor(props) {\r\n super(props)\r\n this.timerFun = null;\r\n let canUpdate = this.getLocalStoreParam('CanModifyPresentAmount')\r\n canUpdate = canUpdate == '1' ? true : false;\r\n let percent = this.getLocalStoreParam('PresentAmountLimitPercent')\r\n this.state = {\r\n isCanUpdate: canUpdate,\r\n percentNumber: percent,\r\n memberDisabled: false,\r\n currentValue: null,\r\n showPresentDetail: false,\r\n amountList: [\r\n 100,200,300,400,500,600,700\r\n ],\r\n changeStatus: true\r\n }\r\n }\r\n getLocalStoreParam = (fieldname) => {\r\n let data = localStore.get('setting_setData') || [];\r\n data = data.filter(item => item.Name === fieldname);\r\n return (data && data.length > 0) ? data.shift().Value : null;\r\n }\r\n handleChange = (info, type, value) => {\r\n const { isCanUpdate, percentNumber, changeStatus } = this.state;\r\n if (changeStatus) {\r\n // if (type == 'PresentAmount') {\r\n // this.editPresentAmount = true;\r\n // if (isCanUpdate && this.inputStorageAmount) {\r\n // let thisStorageInput = this.inputStorageAmount.input.input;\r\n // let maxValue = (thisStorageInput.value * parseInt(percentNumber)) / 100;\r\n // if (thisPresentInput.value > maxValue) {\r\n // Message.warn(`本次储值最大可赠送金额为${maxValue},请修改`, { top: 300, duration: 3 })\r\n // this.setState({ memberDisabled: true })\r\n // thisPresentInput.focus();\r\n // return;\r\n // } else {\r\n // this.setState({ memberDisabled: false })\r\n // }\r\n // }\r\n // } else {\r\n // this.editPresentAmount = false;\r\n // }\r\n let timer = this.timerFun;\r\n if (timer != null) {\r\n window.clearTimeout(timer);\r\n }\r\n \r\n const store = stores.memberStore;\r\n const { changeValue } = store || {};\r\n const strfun = async () => {\r\n console.log(`this${type} value:` + value);\r\n await changeValue(info, type, value, { isCanUpdate, percentValue: percentNumber })\r\n }\r\n this.timerFun = window.setTimeout(strfun, 400);\r\n } else {\r\n this.setState({\r\n changeStatus: false\r\n })\r\n }\r\n }\r\n\r\n getPersonList = () => {\r\n const store = stores.memberStore;\r\n const { data, initPersonList } = store || {};\r\n const { Idstore } = data || {};\r\n initPersonList(Idstore)\r\n }\r\n\r\n initFormData = () => {\r\n const store = stores.memberStore;\r\n const { data } = store || {};\r\n const { StorageDetails } = data || {};\r\n }\r\n componentDidUpdate() {\r\n const { isCanUpdate } = this.state;\r\n const store = stores.memberStore;\r\n const { isInput } = store || {};\r\n if (isInput) {\r\n this.inputStorageAmount && this.inputStorageAmount.inputChange('');\r\n }\r\n if (!this.editPresentAmount && isCanUpdate) {\r\n this.initFormData();\r\n } \r\n }\r\n\r\n setSelectAmount = (amount, index) => {\r\n this.setState({\r\n currentValue: amount,\r\n changeStatus: false\r\n })\r\n setTimeout(() => {\r\n this.inputStorageAmount && this.inputStorageAmount.inputChange(\"\");\r\n // this.inputStorageAmount && this.inputStorageAmount.input.input.focus();\r\n this.setState({\r\n changeStatus: true\r\n })\r\n }, 100)\r\n const store = stores.memberStore;\r\n const { changeGiftSingle, setCurrentIndex } = store || {};\r\n setCurrentIndex && setCurrentIndex(index);\r\n changeGiftSingle(amount)\r\n }\r\n\r\n checkPresentDetail = () => {\r\n this.setState({\r\n showPresentDetail: true\r\n })\r\n }\r\n\r\n modalCancel = () => {\r\n this.setState({\r\n showPresentDetail: false\r\n })\r\n }\r\n\r\n modalOk = () => {\r\n this.modalCancel();\r\n }\r\n\r\n render(){\r\n const store = stores.memberStore;\r\n const { isCanUpdate,memberDisabled, amountList, showPresentDetail } = this.state;\r\n const { clearCon, data, changeValue, personList, settlementControlEvent, storageAmountSpecData, giftSingle, giftList, noIsMinAmount, currentIndex, setCurrentIndex } = store || {};\r\n const { Member, Person, StorageDetails } = data || {};\r\n const { storageAmountSpecList } = storageAmountSpecData || {};\r\n \r\n // const { storageAmountSpecList } = storageAmountSpecData;\r\n const { Name, MemberMobile, ImageFile, BalanceStorage = 0, PresentAmount = 0,CardTypeEnum, StorageCardNo, IsSale, IsCustomStorage } = Member || {};\r\n let salesman = Member ? JSON.getCellValue(Member, \"Person.Name\") : '';\r\n let thisPresentAmount = StorageDetails ? JSON.getCellValue(StorageDetails[0], \"ThisPresentAmount\") : '';\r\n thisPresentAmount = (thisPresentAmount === null || thisPresentAmount === undefined) ? '' : thisPresentAmount;\r\n let thisStorageAmount = StorageDetails ? JSON.getCellValue(StorageDetails[0], \"ThisStorageAmount\") : '';\r\n thisStorageAmount = (thisStorageAmount === null || thisStorageAmount === undefined) ? '' : thisStorageAmount;\r\n //金额小数精度\r\n let amountPrecision = PosInitData(\"AmountPrecision\");\r\n amountPrecision = amountPrecision ? parseInt(amountPrecision) : '';\r\n //金额最大位数 \r\n let amountMaxLength = PosInitData(\"AmountMaxLength\");\r\n amountMaxLength = amountMaxLength ? parseInt(amountMaxLength) : '';\r\n //储值参数\r\n const storeInfo = TStore.restore()\r\n let settlementParams = {\r\n dataSource: data ? data.DataSource : {},\r\n initData: PosInitData,\r\n storeInfo: storeInfo,\r\n showAmount: false,\r\n isMemberStorePage: true,\r\n amount: thisStorageAmount,\r\n type: 1,\r\n dto: data,\r\n memberDisabled: memberDisabled,\r\n ...settlementControlEvent,\r\n noIsMinAmount: noIsMinAmount,\r\n }\r\n console.log('储值金额:' + thisStorageAmount)\r\n console.log('储值settlementParams', settlementParams)\r\n return (\r\n <div className={`${hotKey.hotKeyBindClass('1')}`}>\r\n {\r\n data &&\r\n <div className='memberstore'>\r\n <div className='memberstore-head'>\r\n <div className='imageContainer'>\r\n {\r\n CardTypeEnum === 'BALANCE_CARD' && <img src={ImageFile || photo} />\r\n }\r\n <div className='imageContainer-message'>\r\n {\r\n Name && <div className='divText'>{Name}</div>\r\n }\r\n {\r\n Name && <div className='divBlank'></div>\r\n }\r\n <div className='divText'>{MemberMobile || StorageCardNo}</div>\r\n </div>\r\n </div>\r\n {/* <div className='message'>\r\n <span>{formatPrecision(TotalBalanceAmount)}</span>\r\n <br />\r\n <span>储值总额</span>\r\n </div> */}\r\n <div className='message'>\r\n <span>{IsSale === 'ON_SALE' ? 0.00 :formatPrecision(BalanceStorage)}</span>\r\n <br />\r\n <span>余额</span>\r\n </div>\r\n </div>\r\n <div className='line'></div>\r\n <div className='form'>\r\n <FormItem key={1}>\r\n <div className='one'>开卡业务员</div>\r\n <div className='two'>{salesman}</div>\r\n </FormItem>\r\n <FormItem key={2}>\r\n <div className='one'>导购员</div>\r\n <div className='two'>\r\n <Select\r\n placeholder='请选择导购员'\r\n style={{ width: 300, marginRight: 6 }}\r\n showSearch={false}\r\n notFoundContent={'空'}\r\n onFocus={this.getPersonList}\r\n onChange={(value, item) => changeValue(data, 'Person', item.props.ot)}\r\n >\r\n {\r\n personList && personList.map(item => {\r\n return <Option key={item.ID} ot={item} value={item.ID}>{item.Name}</Option>\r\n })\r\n }\r\n </Select>\r\n </div>\r\n </FormItem>\r\n <FormItem key={3} className='storageAmount'>\r\n <div className='one'>储值金额</div>\r\n <div className='two'>\r\n <div onClick={() => this.checkPresentDetail()} className='primary-color checkPresentDetails'>查看礼包详情</div>\r\n {\r\n storageAmountSpecList && <div className='detailAmount'>\r\n {\r\n storageAmountSpecList.map((value, index) => {\r\n return (\r\n <span onClick={() => (IsSale === 'SOLD' || CardTypeEnum === 'BALANCE_CARD') && this.setSelectAmount(value, index)} className={`${index === currentIndex && 'primary-color b-theme-color'}`}>¥{value.storageAmount}</span>\r\n )\r\n })\r\n }\r\n </div>\r\n }\r\n {\r\n (CardTypeEnum === 'BALANCE_CARD'|| (IsSale === 'SOLD' && IsCustomStorage) || (BalanceStorage+PresentAmount === 0 && IsCustomStorage)) && <NumKeyboard\r\n className=\"content\"\r\n type='text'\r\n bordered\r\n placeholder='其他金额'\r\n style={{ width: 300, height: 32 }}\r\n maxLength={12}\r\n precisionLength={2}\r\n ref={input => this.inputStorageAmount = input}\r\n onFocus={() => {\r\n setCurrentIndex && setCurrentIndex(null);\r\n this.inputStorageAmount && !this.inputStorageAmount.input.input.value && clearCon();\r\n }}\r\n onChange={value => this.handleChange(data, 'StoreAmount', value)}\r\n />\r\n }\r\n </div>\r\n </FormItem>\r\n <FormItem key={4} className='gift'>\r\n <div className='one'>礼包详情</div>\r\n <div className='giftDetail'>\r\n { giftSingle }\r\n </div>\r\n </FormItem>\r\n </div>\r\n <div className='line2'></div>\r\n <div className='footer'>\r\n <div className='storage-footer'>\r\n <Settlement {...settlementParams} />\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n <ModalWraper \r\n className='presentModalWraper'\r\n show={showPresentDetail} \r\n centered={true} \r\n title='礼包详情'\r\n cancel={this.modalCancel}\r\n backdropStyle={{\r\n 'z-index': '1002'\r\n }}\r\n ok={this.modalOk}>\r\n <PresetDetailView giftList={giftList}/>\r\n </ModalWraper>\r\n </div>\r\n )\r\n }\r\n}\r\nexport default MemberStoreNewView;"]}
|
1
|
+
{"version":3,"sources":["tplus-member/views/MemberStoreNewView.js"],"names":["FormItem","Item","Option","MemberStoreNewView","observer","props","sys_parms","photo","window","ossAliyuncsFileURL","getLocalStoreParam","fieldname","data","localStore","get","filter","item","Name","length","shift","Value","handleChange","info","type","value","state","isCanUpdate","percentNumber","changeStatus","timer","timerFun","clearTimeout","store","stores","memberStore","changeValue","strfun","console","log","percentValue","setTimeout","setState","getPersonList","initPersonList","Idstore","initFormData","StorageDetails","setSelectAmount","amount","index","currentValue","inputStorageAmount","inputChange","changeGiftSingle","setCurrentIndex","checkPresentDetail","showPresentDetail","modalCancel","modalOk","canUpdate","percent","memberDisabled","amountList","isInput","editPresentAmount","clearCon","personList","settlementControlEvent","storageAmountSpecData","giftSingle","giftList","noIsMinAmount","currentIndex","Member","Person","storageAmountSpecList","MemberMobile","ImageFile","BalanceStorage","PresentAmount","CardTypeEnum","StorageCardNo","IsSale","IsCustomStorage","salesman","JSON","getCellValue","thisPresentAmount","undefined","thisStorageAmount","amountPrecision","parseInt","amountMaxLength","storeInfo","TStore","restore","settlementParams","dataSource","DataSource","initData","PosInitData","showAmount","isMemberStorePage","dto","hotKey","hotKeyBindClass","width","marginRight","ot","map","ID","storageAmount","height","input","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,WAAW,eAAKC,IAAtB;AACA,IAAMC,SAAS,iBAAOA,MAAtB;;IAGMC,kB,OADLC,wB;;;AAOG,gCAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AAAA,kKACTA,KADS;;AAAA,cAJnBC,SAImB,GAJP;AACRC,mBAAUC,OAAOC,kBAAjB;AADQ,SAIO;;AAAA,cAkBnBC,kBAlBmB,GAkBE,UAACC,SAAD,EAAe;AAChC,gBAAIC,OAAOC,2BAAWC,GAAX,CAAe,iBAAf,KAAqC,EAAhD;AACAF,mBAAOA,KAAKG,MAAL,CAAY;AAAA,uBAAQC,KAAKC,IAAL,KAAcN,SAAtB;AAAA,aAAZ,CAAP;AACA,mBAAQC,QAAQA,KAAKM,MAAL,GAAc,CAAvB,GAA4BN,KAAKO,KAAL,GAAaC,KAAzC,GAAiD,IAAxD;AACH,SAtBkB;;AAAA,cAuBnBC,YAvBmB,GAuBJ,UAACC,IAAD,EAAOC,IAAP,EAAaC,KAAb,EAAuB;AAAA,8BACmB,MAAKC,KADxB;AAAA,gBAC1BC,WAD0B,eAC1BA,WAD0B;AAAA,gBACbC,aADa,eACbA,aADa;AAAA,gBACEC,YADF,eACEA,YADF;;AAElC,gBAAIA,YAAJ,EAAkB;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAIC,QAAQ,MAAKC,QAAjB;AACA,oBAAID,SAAS,I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B2B,gBAAhB;AADJ;AADJ;AA9FJ,iBAHR;AAwGI;AAAC,qDAAD;AAAA;AACI,mCAAU,oBADd;AAEI,8BAAMxC,iBAFV;AAGI,kCAAU,IAHd;AAII,+BAAM,0BAJV;AAKI,gCAAQ,KAAKC,WALjB;AAMI,uCAAe;AACX,uCAAW;AADA,yBANnB;AASI,4BAAI,KAAKC,OATb;AAUQ,kDAAC,0BAAD,IAAkB,UAAUY,QAA5B;AAVR;AAxGJ,aADJ;AAuHH;;;EA1R4B4C,gB;;kBA4RlB/G,kB","file":"MemberStoreNewView.js","sourcesContent":["import React, { Component } from 'react';\nimport { Form, Select } from 'antd';\nimport { observer, stores, localStore } from \"mutants-microfx\";\nimport { Settlement, NumKeyboard, hotKey, ModalWraper } from 'tplus-components-touch';\nimport { PosInitData, TStore } from 'tplus-poslogin';\nimport { formatPrecision } from '../utils';\nimport './MemberStoreNew.less';\nimport PresetDetailView from './PresetDetailView';\n\nconst FormItem = Form.Item;\nconst Option = Select.Option;\n\n@observer\nclass MemberStoreNewView extends Component{\n\n sys_parms = {\n photo: `${window.ossAliyuncsFileURL}/default_avatar.png`\n }\n\n constructor(props) {\n super(props)\n this.timerFun = null;\n let canUpdate = this.getLocalStoreParam('CanModifyPresentAmount')\n canUpdate = canUpdate == '1' ? true : false;\n let percent = this.getLocalStoreParam('PresentAmountLimitPercent')\n this.state = {\n isCanUpdate: canUpdate,\n percentNumber: percent,\n memberDisabled: false,\n currentValue: null,\n showPresentDetail: false,\n amountList: [\n 100,200,300,400,500,600,700\n ],\n changeStatus: true\n }\n }\n getLocalStoreParam = (fieldname) => {\n let data = localStore.get('setting_setData') || [];\n data = data.filter(item => item.Name === fieldname);\n return (data && data.length > 0) ? data.shift().Value : null;\n }\n handleChange = (info, type, value) => {\n const { isCanUpdate, percentNumber, changeStatus } = this.state;\n if (changeStatus) {\n // if (type == 'PresentAmount') {\n // this.editPresentAmount = true;\n // if (isCanUpdate && this.inputStorageAmount) {\n // let thisStorageInput = this.inputStorageAmount.input.input;\n // let maxValue = (thisStorageInput.value * parseInt(percentNumber)) / 100;\n // if (thisPresentInput.value > maxValue) {\n // Message.warn(`本次储值最大可赠送金额为${maxValue},请修改`, { top: 300, duration: 3 })\n // this.setState({ memberDisabled: true })\n // thisPresentInput.focus();\n // return;\n // } else {\n // this.setState({ memberDisabled: false })\n // }\n // }\n // } else {\n // this.editPresentAmount = false;\n // }\n let timer = this.timerFun;\n if (timer != null) {\n window.clearTimeout(timer);\n }\n \n const store = stores.memberStore;\n const { changeValue } = store || {};\n const strfun = async () => {\n console.log(`this${type} value:` + value);\n await changeValue(info, type, value, { isCanUpdate, percentValue: percentNumber })\n }\n this.timerFun = window.setTimeout(strfun, 400);\n } else {\n this.setState({\n changeStatus: false\n })\n }\n }\n\n getPersonList = () => {\n const store = stores.memberStore;\n const { data, initPersonList } = store || {};\n const { Idstore } = data || {};\n initPersonList(Idstore)\n }\n\n initFormData = () => {\n const store = stores.memberStore;\n const { data } = store || {};\n const { StorageDetails } = data || {};\n }\n componentDidUpdate() {\n const { isCanUpdate } = this.state;\n const store = stores.memberStore;\n const { isInput } = store || {};\n if (isInput) {\n this.inputStorageAmount && this.inputStorageAmount.inputChange('');\n }\n if (!this.editPresentAmount && isCanUpdate) {\n this.initFormData();\n } \n }\n\n setSelectAmount = (amount, index) => {\n this.setState({\n currentValue: amount,\n changeStatus: false\n })\n setTimeout(() => {\n this.inputStorageAmount && this.inputStorageAmount.inputChange(\"\");\n // this.inputStorageAmount && this.inputStorageAmount.input.input.focus();\n this.setState({\n changeStatus: true\n })\n }, 100)\n const store = stores.memberStore;\n const { changeGiftSingle, setCurrentIndex } = store || {};\n setCurrentIndex && setCurrentIndex(index);\n changeGiftSingle(amount)\n }\n\n checkPresentDetail = () => {\n this.setState({\n showPresentDetail: true\n })\n }\n\n modalCancel = () => {\n this.setState({\n showPresentDetail: false\n })\n }\n\n modalOk = () => {\n this.modalCancel();\n }\n\n render(){\n const store = stores.memberStore;\n const { isCanUpdate,memberDisabled, amountList, showPresentDetail } = this.state;\n const { clearCon, data, changeValue, personList, settlementControlEvent, storageAmountSpecData, giftSingle, giftList, noIsMinAmount, currentIndex, setCurrentIndex } = store || {};\n const { Member, Person, StorageDetails } = data || {};\n const { storageAmountSpecList } = storageAmountSpecData || {};\n \n // const { storageAmountSpecList } = storageAmountSpecData;\n const { Name, MemberMobile, ImageFile, BalanceStorage = 0, PresentAmount = 0,CardTypeEnum, StorageCardNo, IsSale, IsCustomStorage } = Member || {};\n let salesman = Member ? JSON.getCellValue(Member, \"Person.Name\") : '';\n let thisPresentAmount = StorageDetails ? JSON.getCellValue(StorageDetails[0], \"ThisPresentAmount\") : '';\n thisPresentAmount = (thisPresentAmount === null || thisPresentAmount === undefined) ? '' : thisPresentAmount;\n let thisStorageAmount = StorageDetails ? JSON.getCellValue(StorageDetails[0], \"ThisStorageAmount\") : '';\n thisStorageAmount = (thisStorageAmount === null || thisStorageAmount === undefined) ? '' : thisStorageAmount;\n //金额小数精度\n let amountPrecision = PosInitData(\"AmountPrecision\");\n amountPrecision = amountPrecision ? parseInt(amountPrecision) : '';\n //金额最大位数 \n let amountMaxLength = PosInitData(\"AmountMaxLength\");\n amountMaxLength = amountMaxLength ? parseInt(amountMaxLength) : '';\n //储值参数\n const storeInfo = TStore.restore()\n let settlementParams = {\n dataSource: data ? data.DataSource : {},\n initData: PosInitData,\n storeInfo: storeInfo,\n showAmount: false,\n isMemberStorePage: true,\n amount: thisStorageAmount,\n type: 1,\n dto: data,\n memberDisabled: memberDisabled,\n ...settlementControlEvent,\n noIsMinAmount: noIsMinAmount,\n }\n console.log('储值金额:' + thisStorageAmount)\n console.log('储值settlementParams', settlementParams)\n return (\n <div className={`${hotKey.hotKeyBindClass('1')}`}>\n {\n data &&\n <div className='memberstore'>\n <div className='memberstore-head'>\n <div className='imageContainer'>\n {\n CardTypeEnum === 'BALANCE_CARD' && <img src={ImageFile || this.sys_parms.photo} />\n }\n <div className='imageContainer-message'>\n {\n Name && <div className='divText'>{Name}</div>\n }\n {\n Name && <div className='divBlank'></div>\n }\n <div className='divText'>{MemberMobile || StorageCardNo}</div>\n </div>\n </div>\n {/* <div className='message'>\n <span>{formatPrecision(TotalBalanceAmount)}</span>\n <br />\n <span>储值总额</span>\n </div> */}\n <div className='message'>\n <span>{IsSale === 'ON_SALE' ? 0.00 :formatPrecision(BalanceStorage)}</span>\n <br />\n <span>余额</span>\n </div>\n </div>\n <div className='line'></div>\n <div className='form'>\n <FormItem key={1}>\n <div className='one'>开卡业务员</div>\n <div className='two'>{salesman}</div>\n </FormItem>\n <FormItem key={2}>\n <div className='one'>导购员</div>\n <div className='two'>\n <Select\n placeholder='请选择导购员'\n style={{ width: 300, marginRight: 6 }}\n showSearch={false}\n notFoundContent={'空'}\n onFocus={this.getPersonList}\n onChange={(value, item) => changeValue(data, 'Person', item.props.ot)}\n >\n {\n personList && personList.map(item => {\n return <Option key={item.ID} ot={item} value={item.ID}>{item.Name}</Option>\n })\n }\n </Select>\n </div>\n </FormItem>\n <FormItem key={3} className='storageAmount'>\n <div className='one'>储值金额</div>\n <div className='two'>\n <div onClick={() => this.checkPresentDetail()} className='primary-color checkPresentDetails'>查看礼包详情</div>\n {\n storageAmountSpecList && <div className='detailAmount'>\n {\n storageAmountSpecList.map((value, index) => {\n return (\n <span onClick={() => (IsSale === 'SOLD' || CardTypeEnum === 'BALANCE_CARD') && this.setSelectAmount(value, index)} className={`${index === currentIndex && 'primary-color b-theme-color'}`}>¥{value.storageAmount}</span>\n )\n })\n }\n </div>\n }\n {\n (CardTypeEnum === 'BALANCE_CARD'|| (IsSale === 'SOLD' && IsCustomStorage) || (BalanceStorage+PresentAmount === 0 && IsCustomStorage)) && <NumKeyboard\n className=\"content\"\n type='text'\n bordered\n placeholder='其他金额'\n style={{ width: 300, height: 32 }}\n maxLength={12}\n precisionLength={2}\n ref={input => this.inputStorageAmount = input}\n onFocus={() => {\n setCurrentIndex && setCurrentIndex(null);\n this.inputStorageAmount && !this.inputStorageAmount.input.input.value && clearCon();\n }}\n onChange={value => this.handleChange(data, 'StoreAmount', value)}\n />\n }\n </div>\n </FormItem>\n <FormItem key={4} className='gift'>\n <div className='one'>礼包详情</div>\n <div className='giftDetail'>\n { giftSingle }\n </div>\n </FormItem>\n </div>\n <div className='line2'></div>\n <div className='footer'>\n <div className='storage-footer'>\n <Settlement {...settlementParams} />\n </div>\n </div>\n </div>\n }\n <ModalWraper \n className='presentModalWraper'\n show={showPresentDetail} \n centered={true} \n title='礼包详情'\n cancel={this.modalCancel}\n backdropStyle={{\n 'z-index': '1002'\n }}\n ok={this.modalOk}>\n <PresetDetailView giftList={giftList}/>\n </ModalWraper>\n </div>\n )\n }\n}\nexport default MemberStoreNewView;"]}
|
@@ -68,7 +68,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
68
68
|
|
69
69
|
var FormItem = _form2.default.Item;
|
70
70
|
var Option = _select2.default.Option;
|
71
|
-
var photo = 'https://newretail.static.chanjet.com/default_avatar.png';
|
72
71
|
|
73
72
|
var MemberStoreView = (0, _mutantsMicrofx.observer)(_class = function (_Component) {
|
74
73
|
(0, _inherits3.default)(MemberStoreView, _Component);
|
@@ -80,6 +79,10 @@ var MemberStoreView = (0, _mutantsMicrofx.observer)(_class = function (_Componen
|
|
80
79
|
|
81
80
|
var _this = (0, _possibleConstructorReturn3.default)(this, (MemberStoreView.__proto__ || (0, _getPrototypeOf2.default)(MemberStoreView)).call(this, props));
|
82
81
|
|
82
|
+
_this.sys_parms = {
|
83
|
+
photo: window.ossAliyuncsFileURL + '/default_avatar.png'
|
84
|
+
};
|
85
|
+
|
83
86
|
_this.getLocalStoreParam = function (fieldname) {
|
84
87
|
var data = _mutantsMicrofx.localStore.get('setting_setData') || [];
|
85
88
|
data = data.filter(function (item) {
|
@@ -263,7 +266,7 @@ var MemberStoreView = (0, _mutantsMicrofx.observer)(_class = function (_Componen
|
|
263
266
|
_react2.default.createElement(
|
264
267
|
'div',
|
265
268
|
{ className: 'imageContainer' },
|
266
|
-
_react2.default.createElement('img', { src: ImageFile || photo }),
|
269
|
+
_react2.default.createElement('img', { src: ImageFile || this.sys_parms.photo }),
|
267
270
|
_react2.default.createElement(
|
268
271
|
'div',
|
269
272
|
{ className: 'imageContainer-message' },
|