mcrm-mobile 1.3.8 → 1.3.9-bata.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/common-utils/index.js +31 -0
- package/es/field/index.js +14 -2
- package/es/http/index.js +12 -8
- package/es/index.css +25 -0
- package/es/index.js +1 -1
- package/es/nav-bar/index.css +25 -0
- package/es/nav-bar/index.js +30 -1
- package/es/nav-bar/index.less +23 -0
- package/es/style/css/iconfont.css +4 -4
- package/es/style/fonts/iconfont.ttf +0 -0
- package/es/style/fonts/iconfont.woff +0 -0
- package/es/style/fonts/iconfont.woff2 +0 -0
- package/es/utils/create-request-body/json.js +6 -3
- package/lib/common-utils/index.js +31 -0
- package/lib/field/index.js +14 -2
- package/lib/http/index.js +12 -8
- package/lib/index.css +25 -0
- package/lib/index.js +1 -1
- package/lib/mcrm-mobile.js +93 -14
- package/lib/mcrm-mobile.min.css +1 -1
- package/lib/mcrm-mobile.min.js +1 -1
- package/lib/nav-bar/index.css +25 -0
- package/lib/nav-bar/index.js +30 -1
- package/lib/nav-bar/index.less +23 -0
- package/lib/style/css/iconfont.css +4 -4
- package/lib/style/fonts/iconfont.ttf +0 -0
- package/lib/style/fonts/iconfont.woff +0 -0
- package/lib/style/fonts/iconfont.woff2 +0 -0
- package/lib/utils/create-request-body/json.js +6 -3
- package/package.json +1 -1
- package/types/common.d.ts +28 -0
- package/vetur/attributes.json +53 -37
- package/vetur/tags.json +23 -19
- package/vetur/web-types.json +154 -118
package/es/common-utils/index.js
CHANGED
|
@@ -255,5 +255,36 @@ CommonUtils.zeroPadding = function (fn, num, digits, type) {
|
|
|
255
255
|
return result;
|
|
256
256
|
};
|
|
257
257
|
|
|
258
|
+
CommonUtils.getMonthFirstDay = function (date, format) {
|
|
259
|
+
if (format === void 0) {
|
|
260
|
+
format = "yyyy-MM-dd";
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (date) {
|
|
264
|
+
date = CommonUtils.formattingTime(date, format);
|
|
265
|
+
} else {
|
|
266
|
+
date = CommonUtils.getSysDateTime(format);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
date.day = "01";
|
|
270
|
+
date.desc = date.desc.substring(0, date.desc.length - 2) + "01";
|
|
271
|
+
return date;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
CommonUtils.getMonthLastDay = function (date, format) {
|
|
275
|
+
if (format === void 0) {
|
|
276
|
+
format = "yyyy-MM-dd";
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (date) {
|
|
280
|
+
date = CommonUtils.formattingTime(date, format);
|
|
281
|
+
} else {
|
|
282
|
+
date = CommonUtils.getSysDateTime(format);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
date = CommonUtils.formattingTime(new Date(date.year, date.month, 0), format);
|
|
286
|
+
return date;
|
|
287
|
+
};
|
|
288
|
+
|
|
258
289
|
Vue.prototype.$CommonUtils = CommonUtils;
|
|
259
290
|
export default CommonUtils;
|
package/es/field/index.js
CHANGED
|
@@ -107,7 +107,9 @@ export default create({
|
|
|
107
107
|
type: String,
|
|
108
108
|
default: "text"
|
|
109
109
|
},
|
|
110
|
-
autoFocus: Boolean
|
|
110
|
+
autoFocus: Boolean,
|
|
111
|
+
isTrim: Boolean,
|
|
112
|
+
regular: RegExp
|
|
111
113
|
},
|
|
112
114
|
data: function data() {
|
|
113
115
|
return {
|
|
@@ -115,7 +117,7 @@ export default create({
|
|
|
115
117
|
};
|
|
116
118
|
},
|
|
117
119
|
watch: {
|
|
118
|
-
value: function value() {
|
|
120
|
+
value: function value(newVal) {
|
|
119
121
|
this.$nextTick(this.adjustSize);
|
|
120
122
|
}
|
|
121
123
|
},
|
|
@@ -166,6 +168,16 @@ export default create({
|
|
|
166
168
|
target.value = value;
|
|
167
169
|
}
|
|
168
170
|
|
|
171
|
+
if (this.isTrim) {
|
|
172
|
+
value = value.replace(/ /g, "");
|
|
173
|
+
target.value = value;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (this.regular) {
|
|
177
|
+
value = value.replace(this.regular, "");
|
|
178
|
+
target.value = value;
|
|
179
|
+
}
|
|
180
|
+
|
|
169
181
|
return value;
|
|
170
182
|
},
|
|
171
183
|
onInput: function onInput(event) {
|
package/es/http/index.js
CHANGED
|
@@ -158,14 +158,18 @@ var authMenuPageQuery = /*#__PURE__*/function () {
|
|
|
158
158
|
while (1) {
|
|
159
159
|
switch (_context4.prev = _context4.next) {
|
|
160
160
|
case 0:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
})
|
|
167
|
-
|
|
168
|
-
case
|
|
161
|
+
_context4.t0 = post;
|
|
162
|
+
_context4.next = 3;
|
|
163
|
+
return json({
|
|
164
|
+
pageCode: pageCode,
|
|
165
|
+
pageType: pageType
|
|
166
|
+
}, []);
|
|
167
|
+
|
|
168
|
+
case 3:
|
|
169
|
+
_context4.t1 = _context4.sent;
|
|
170
|
+
return _context4.abrupt("return", (0, _context4.t0)("/auth/menu/page/query", _context4.t1));
|
|
171
|
+
|
|
172
|
+
case 5:
|
|
169
173
|
case "end":
|
|
170
174
|
return _context4.stop();
|
|
171
175
|
}
|
package/es/index.css
CHANGED
|
@@ -3106,6 +3106,31 @@ textarea {
|
|
|
3106
3106
|
color: #0095fd;
|
|
3107
3107
|
font-size: 22px;
|
|
3108
3108
|
}
|
|
3109
|
+
.mm-nav-bar-action-chat {
|
|
3110
|
+
display: -webkit-box;
|
|
3111
|
+
display: -ms-flexbox;
|
|
3112
|
+
display: flex;
|
|
3113
|
+
padding: 0 8px;
|
|
3114
|
+
height: 22px;
|
|
3115
|
+
border-radius: 11px;
|
|
3116
|
+
border: 1px solid #0085cf;
|
|
3117
|
+
}
|
|
3118
|
+
.mm-nav-bar-action-chat div {
|
|
3119
|
+
display: -webkit-box;
|
|
3120
|
+
display: -ms-flexbox;
|
|
3121
|
+
display: flex;
|
|
3122
|
+
-webkit-box-align: center;
|
|
3123
|
+
-ms-flex-align: center;
|
|
3124
|
+
align-items: center;
|
|
3125
|
+
height: 100%;
|
|
3126
|
+
}
|
|
3127
|
+
.mm-nav-bar-action-chat-left {
|
|
3128
|
+
border-right: 1px solid #0085cf;
|
|
3129
|
+
padding-right: 8px;
|
|
3130
|
+
}
|
|
3131
|
+
.mm-nav-bar-action-chat-right {
|
|
3132
|
+
padding-left: 8px;
|
|
3133
|
+
}
|
|
3109
3134
|
.mm-nav-bar-title {
|
|
3110
3135
|
position: absolute;
|
|
3111
3136
|
text-align: center;
|
package/es/index.js
CHANGED
|
@@ -91,7 +91,7 @@ import Tag from './tag';
|
|
|
91
91
|
import Toast from './toast';
|
|
92
92
|
import TreeSelect from './tree-select';
|
|
93
93
|
import Uploader from './uploader';
|
|
94
|
-
var version = '1.3.
|
|
94
|
+
var version = '1.3.9-bata.1';
|
|
95
95
|
var components = [ActionSheet, AddressPicker, Api, Badge, Biz, Button, Calendar, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, CommonUtils, CountDown, DataProcess, DatePicker, DatetimePicker, Dialog, Directive, Divider, Drag, DropdownItem, DropdownMenu, Empty, Field, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Http, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, List, Loading, Local, Menu, MenuIcon, MenuJump, Menus, NavBar, NoticeBar, Notify, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rank, Rate, Row, SafeKeyboard, Search, Session, ShareSheet, Sidebar, SidebarItem, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader];
|
|
96
96
|
|
|
97
97
|
var install = function install(Vue) {
|
package/es/nav-bar/index.css
CHANGED
|
@@ -310,6 +310,31 @@
|
|
|
310
310
|
color: #0095fd;
|
|
311
311
|
font-size: 22px;
|
|
312
312
|
}
|
|
313
|
+
.mm-nav-bar-action-chat {
|
|
314
|
+
display: -webkit-box;
|
|
315
|
+
display: -ms-flexbox;
|
|
316
|
+
display: flex;
|
|
317
|
+
padding: 0 8px;
|
|
318
|
+
height: 22px;
|
|
319
|
+
border-radius: 11px;
|
|
320
|
+
border: 1px solid #0085cf;
|
|
321
|
+
}
|
|
322
|
+
.mm-nav-bar-action-chat div {
|
|
323
|
+
display: -webkit-box;
|
|
324
|
+
display: -ms-flexbox;
|
|
325
|
+
display: flex;
|
|
326
|
+
-webkit-box-align: center;
|
|
327
|
+
-ms-flex-align: center;
|
|
328
|
+
align-items: center;
|
|
329
|
+
height: 100%;
|
|
330
|
+
}
|
|
331
|
+
.mm-nav-bar-action-chat-left {
|
|
332
|
+
border-right: 1px solid #0085cf;
|
|
333
|
+
padding-right: 8px;
|
|
334
|
+
}
|
|
335
|
+
.mm-nav-bar-action-chat-right {
|
|
336
|
+
padding-left: 8px;
|
|
337
|
+
}
|
|
313
338
|
.mm-nav-bar-title {
|
|
314
339
|
position: absolute;
|
|
315
340
|
text-align: center;
|
package/es/nav-bar/index.js
CHANGED
|
@@ -85,7 +85,35 @@ export default create({
|
|
|
85
85
|
"name": "nav-close"
|
|
86
86
|
}
|
|
87
87
|
})];
|
|
88
|
-
})], 2) : _vm._e()
|
|
88
|
+
})], 2) : _vm._e(), _vm.showChatCrm ? _c('div', {
|
|
89
|
+
class: _vm.b('action-chat')
|
|
90
|
+
}, [_c('div', {
|
|
91
|
+
class: _vm.b('action-chat-left'),
|
|
92
|
+
on: {
|
|
93
|
+
"click": function click($event) {
|
|
94
|
+
return _vm.$emit('chat');
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, [_c('icon', {
|
|
98
|
+
attrs: {
|
|
99
|
+
"size": "12",
|
|
100
|
+
"color": "#0085cf",
|
|
101
|
+
"name": "ellipsis-h"
|
|
102
|
+
}
|
|
103
|
+
})], 1), _c('div', {
|
|
104
|
+
class: _vm.b('action-chat-right'),
|
|
105
|
+
on: {
|
|
106
|
+
"click": function click($event) {
|
|
107
|
+
return _vm.$emit('close');
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}, [_c('icon', {
|
|
111
|
+
attrs: {
|
|
112
|
+
"size": "10",
|
|
113
|
+
"color": "#0085cf",
|
|
114
|
+
"name": "close"
|
|
115
|
+
}
|
|
116
|
+
})], 1)]) : _vm._e()])])]);
|
|
89
117
|
},
|
|
90
118
|
name: "nav-bar",
|
|
91
119
|
props: {
|
|
@@ -95,6 +123,7 @@ export default create({
|
|
|
95
123
|
rightText: String,
|
|
96
124
|
leftArrow: Boolean,
|
|
97
125
|
showClose: Boolean,
|
|
126
|
+
showChatCrm: Boolean,
|
|
98
127
|
closeIconPosition: {
|
|
99
128
|
type: String,
|
|
100
129
|
default: "left"
|
package/es/nav-bar/index.less
CHANGED
|
@@ -46,6 +46,29 @@
|
|
|
46
46
|
color: @blue;
|
|
47
47
|
font-size: @nav-bar-close-font-size;
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
&-chat {
|
|
51
|
+
display: flex;
|
|
52
|
+
padding: 0 8px;
|
|
53
|
+
height: 22px;
|
|
54
|
+
border-radius: 11px;
|
|
55
|
+
border: 1px solid #0085cf;
|
|
56
|
+
|
|
57
|
+
div {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
height: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-left {
|
|
64
|
+
border-right: 1px solid #0085cf;
|
|
65
|
+
padding-right: 8px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&-right {
|
|
69
|
+
padding-left: 8px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
49
72
|
}
|
|
50
73
|
|
|
51
74
|
&-title {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.mm-icon-close:before {
|
|
17
|
+
content: "\e760";
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
.mm-icon-chevron-circle-right-o:before {
|
|
17
21
|
content: "\ec63";
|
|
18
22
|
}
|
|
@@ -365,10 +369,6 @@
|
|
|
365
369
|
content: "\eb50";
|
|
366
370
|
}
|
|
367
371
|
|
|
368
|
-
.mm-icon-close:before {
|
|
369
|
-
content: "\e760";
|
|
370
|
-
}
|
|
371
|
-
|
|
372
372
|
.mm-icon-biking:before {
|
|
373
373
|
content: "\e64e";
|
|
374
374
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,7 +9,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
9
9
|
import { getExpInfo } from "../index";
|
|
10
10
|
export var json = /*#__PURE__*/function () {
|
|
11
11
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(body, headerList) {
|
|
12
|
-
var expInfo, header;
|
|
12
|
+
var expInfo, appVersion, header;
|
|
13
13
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
14
14
|
while (1) {
|
|
15
15
|
switch (_context.prev = _context.next) {
|
|
@@ -23,7 +23,10 @@ export var json = /*#__PURE__*/function () {
|
|
|
23
23
|
|
|
24
24
|
case 3:
|
|
25
25
|
expInfo = _context.sent;
|
|
26
|
-
|
|
26
|
+
appVersion = expInfo.appVersion;
|
|
27
|
+
header = {
|
|
28
|
+
appVersion: appVersion
|
|
29
|
+
};
|
|
27
30
|
headerList.forEach(function (value) {
|
|
28
31
|
return header[value] = expInfo[value];
|
|
29
32
|
});
|
|
@@ -32,7 +35,7 @@ export var json = /*#__PURE__*/function () {
|
|
|
32
35
|
body: body
|
|
33
36
|
});
|
|
34
37
|
|
|
35
|
-
case
|
|
38
|
+
case 8:
|
|
36
39
|
case "end":
|
|
37
40
|
return _context.stop();
|
|
38
41
|
}
|
|
@@ -263,6 +263,37 @@ CommonUtils.zeroPadding = function (fn, num, digits, type) {
|
|
|
263
263
|
return result;
|
|
264
264
|
};
|
|
265
265
|
|
|
266
|
+
CommonUtils.getMonthFirstDay = function (date, format) {
|
|
267
|
+
if (format === void 0) {
|
|
268
|
+
format = "yyyy-MM-dd";
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (date) {
|
|
272
|
+
date = CommonUtils.formattingTime(date, format);
|
|
273
|
+
} else {
|
|
274
|
+
date = CommonUtils.getSysDateTime(format);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
date.day = "01";
|
|
278
|
+
date.desc = date.desc.substring(0, date.desc.length - 2) + "01";
|
|
279
|
+
return date;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
CommonUtils.getMonthLastDay = function (date, format) {
|
|
283
|
+
if (format === void 0) {
|
|
284
|
+
format = "yyyy-MM-dd";
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (date) {
|
|
288
|
+
date = CommonUtils.formattingTime(date, format);
|
|
289
|
+
} else {
|
|
290
|
+
date = CommonUtils.getSysDateTime(format);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
date = CommonUtils.formattingTime(new Date(date.year, date.month, 0), format);
|
|
294
|
+
return date;
|
|
295
|
+
};
|
|
296
|
+
|
|
266
297
|
_vue.default.prototype.$CommonUtils = CommonUtils;
|
|
267
298
|
var _default = CommonUtils;
|
|
268
299
|
exports.default = _default;
|
package/lib/field/index.js
CHANGED
|
@@ -119,7 +119,9 @@ var _default = (0, _create.default)({
|
|
|
119
119
|
type: String,
|
|
120
120
|
default: "text"
|
|
121
121
|
},
|
|
122
|
-
autoFocus: Boolean
|
|
122
|
+
autoFocus: Boolean,
|
|
123
|
+
isTrim: Boolean,
|
|
124
|
+
regular: RegExp
|
|
123
125
|
},
|
|
124
126
|
data: function data() {
|
|
125
127
|
return {
|
|
@@ -127,7 +129,7 @@ var _default = (0, _create.default)({
|
|
|
127
129
|
};
|
|
128
130
|
},
|
|
129
131
|
watch: {
|
|
130
|
-
value: function value() {
|
|
132
|
+
value: function value(newVal) {
|
|
131
133
|
this.$nextTick(this.adjustSize);
|
|
132
134
|
}
|
|
133
135
|
},
|
|
@@ -178,6 +180,16 @@ var _default = (0, _create.default)({
|
|
|
178
180
|
target.value = value;
|
|
179
181
|
}
|
|
180
182
|
|
|
183
|
+
if (this.isTrim) {
|
|
184
|
+
value = value.replace(/ /g, "");
|
|
185
|
+
target.value = value;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (this.regular) {
|
|
189
|
+
value = value.replace(this.regular, "");
|
|
190
|
+
target.value = value;
|
|
191
|
+
}
|
|
192
|
+
|
|
181
193
|
return value;
|
|
182
194
|
},
|
|
183
195
|
onInput: function onInput(event) {
|
package/lib/http/index.js
CHANGED
|
@@ -169,14 +169,18 @@ var authMenuPageQuery = /*#__PURE__*/function () {
|
|
|
169
169
|
while (1) {
|
|
170
170
|
switch (_context4.prev = _context4.next) {
|
|
171
171
|
case 0:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
})
|
|
178
|
-
|
|
179
|
-
case
|
|
172
|
+
_context4.t0 = _http.post;
|
|
173
|
+
_context4.next = 3;
|
|
174
|
+
return (0, _json.json)({
|
|
175
|
+
pageCode: pageCode,
|
|
176
|
+
pageType: pageType
|
|
177
|
+
}, []);
|
|
178
|
+
|
|
179
|
+
case 3:
|
|
180
|
+
_context4.t1 = _context4.sent;
|
|
181
|
+
return _context4.abrupt("return", (0, _context4.t0)("/auth/menu/page/query", _context4.t1));
|
|
182
|
+
|
|
183
|
+
case 5:
|
|
180
184
|
case "end":
|
|
181
185
|
return _context4.stop();
|
|
182
186
|
}
|
package/lib/index.css
CHANGED
|
@@ -3106,6 +3106,31 @@ textarea {
|
|
|
3106
3106
|
color: #0095fd;
|
|
3107
3107
|
font-size: 22px;
|
|
3108
3108
|
}
|
|
3109
|
+
.mm-nav-bar-action-chat {
|
|
3110
|
+
display: -webkit-box;
|
|
3111
|
+
display: -ms-flexbox;
|
|
3112
|
+
display: flex;
|
|
3113
|
+
padding: 0 8px;
|
|
3114
|
+
height: 22px;
|
|
3115
|
+
border-radius: 11px;
|
|
3116
|
+
border: 1px solid #0085cf;
|
|
3117
|
+
}
|
|
3118
|
+
.mm-nav-bar-action-chat div {
|
|
3119
|
+
display: -webkit-box;
|
|
3120
|
+
display: -ms-flexbox;
|
|
3121
|
+
display: flex;
|
|
3122
|
+
-webkit-box-align: center;
|
|
3123
|
+
-ms-flex-align: center;
|
|
3124
|
+
align-items: center;
|
|
3125
|
+
height: 100%;
|
|
3126
|
+
}
|
|
3127
|
+
.mm-nav-bar-action-chat-left {
|
|
3128
|
+
border-right: 1px solid #0085cf;
|
|
3129
|
+
padding-right: 8px;
|
|
3130
|
+
}
|
|
3131
|
+
.mm-nav-bar-action-chat-right {
|
|
3132
|
+
padding-left: 8px;
|
|
3133
|
+
}
|
|
3109
3134
|
.mm-nav-bar-title {
|
|
3110
3135
|
position: absolute;
|
|
3111
3136
|
text-align: center;
|
package/lib/index.js
CHANGED
|
@@ -373,7 +373,7 @@ var _uploader = _interopRequireDefault(require("./uploader"));
|
|
|
373
373
|
|
|
374
374
|
exports.Uploader = _uploader.default;
|
|
375
375
|
// This file is auto generated by build/build-entry.js
|
|
376
|
-
var version = '1.3.
|
|
376
|
+
var version = '1.3.9-bata.1';
|
|
377
377
|
exports.version = version;
|
|
378
378
|
var components = [_actionSheet.default, _addressPicker.default, _api.default, _badge.default, _biz.default, _button.default, _calendar.default, _card.default, _cell.default, _cellGroup.default, _checkbox.default, _checkboxGroup.default, _circle.default, _col.default, _collapse.default, _collapseItem.default, _commonUtils.default, _countDown.default, _dataProcess.default, _datePicker.default, _datetimePicker.default, _dialog.default, _directive.default, _divider.default, _drag.default, _dropdownItem.default, _dropdownMenu.default, _empty.default, _field.default, _goodsAction.default, _goodsActionButton.default, _goodsActionIcon.default, _grid.default, _gridItem.default, _http.default, _icon.default, _image.default, _imagePreview.default, _indexAnchor.default, _indexBar.default, _info.default, _list.default, _loading.default, _local.default, _menu.default, _menuIcon.default, _menuJump.default, _menus.default, _navBar.default, _noticeBar.default, _notify.default, _overlay.default, _pagination.default, _panel.default, _passwordInput.default, _picker.default, _popover.default, _popup.default, _progress.default, _pullRefresh.default, _radio.default, _radioGroup.default, _rank.default, _rate.default, _row.default, _safeKeyboard.default, _search.default, _session.default, _shareSheet.default, _sidebar.default, _sidebarItem.default, _slider.default, _step.default, _stepper.default, _steps.default, _sticky.default, _swipe.default, _swipeCell.default, _swipeItem.default, _switch.default, _switchCell.default, _tab.default, _tabbar.default, _tabbarItem.default, _table.default, _tableColumn.default, _tabs.default, _tag.default, _toast.default, _treeSelect.default, _uploader.default];
|
|
379
379
|
|
package/lib/mcrm-mobile.js
CHANGED
|
@@ -18756,6 +18756,37 @@ CommonUtils.zeroPadding = function (fn, num, digits, type) {
|
|
|
18756
18756
|
return result;
|
|
18757
18757
|
};
|
|
18758
18758
|
|
|
18759
|
+
CommonUtils.getMonthFirstDay = function (date, format) {
|
|
18760
|
+
if (format === void 0) {
|
|
18761
|
+
format = "yyyy-MM-dd";
|
|
18762
|
+
}
|
|
18763
|
+
|
|
18764
|
+
if (date) {
|
|
18765
|
+
date = CommonUtils.formattingTime(date, format);
|
|
18766
|
+
} else {
|
|
18767
|
+
date = CommonUtils.getSysDateTime(format);
|
|
18768
|
+
}
|
|
18769
|
+
|
|
18770
|
+
date.day = "01";
|
|
18771
|
+
date.desc = date.desc.substring(0, date.desc.length - 2) + "01";
|
|
18772
|
+
return date;
|
|
18773
|
+
};
|
|
18774
|
+
|
|
18775
|
+
CommonUtils.getMonthLastDay = function (date, format) {
|
|
18776
|
+
if (format === void 0) {
|
|
18777
|
+
format = "yyyy-MM-dd";
|
|
18778
|
+
}
|
|
18779
|
+
|
|
18780
|
+
if (date) {
|
|
18781
|
+
date = CommonUtils.formattingTime(date, format);
|
|
18782
|
+
} else {
|
|
18783
|
+
date = CommonUtils.getSysDateTime(format);
|
|
18784
|
+
}
|
|
18785
|
+
|
|
18786
|
+
date = CommonUtils.formattingTime(new Date(date.year, date.month, 0), format);
|
|
18787
|
+
return date;
|
|
18788
|
+
};
|
|
18789
|
+
|
|
18759
18790
|
external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.prototype.$CommonUtils = CommonUtils;
|
|
18760
18791
|
/* harmony default export */ var common_utils = (CommonUtils);
|
|
18761
18792
|
// CONCATENATED MODULE: ./es/utils/http.js
|
|
@@ -18981,7 +19012,7 @@ var http_get = function get(url) {
|
|
|
18981
19012
|
|
|
18982
19013
|
var json = /*#__PURE__*/function () {
|
|
18983
19014
|
var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(body, headerList) {
|
|
18984
|
-
var expInfo, header;
|
|
19015
|
+
var expInfo, appVersion, header;
|
|
18985
19016
|
return regenerator_default.a.wrap(function _callee$(_context) {
|
|
18986
19017
|
while (1) {
|
|
18987
19018
|
switch (_context.prev = _context.next) {
|
|
@@ -18995,7 +19026,10 @@ var json = /*#__PURE__*/function () {
|
|
|
18995
19026
|
|
|
18996
19027
|
case 3:
|
|
18997
19028
|
expInfo = _context.sent;
|
|
18998
|
-
|
|
19029
|
+
appVersion = expInfo.appVersion;
|
|
19030
|
+
header = {
|
|
19031
|
+
appVersion: appVersion
|
|
19032
|
+
};
|
|
18999
19033
|
headerList.forEach(function (value) {
|
|
19000
19034
|
return header[value] = expInfo[value];
|
|
19001
19035
|
});
|
|
@@ -19004,7 +19038,7 @@ var json = /*#__PURE__*/function () {
|
|
|
19004
19038
|
body: body
|
|
19005
19039
|
});
|
|
19006
19040
|
|
|
19007
|
-
case
|
|
19041
|
+
case 8:
|
|
19008
19042
|
case "end":
|
|
19009
19043
|
return _context.stop();
|
|
19010
19044
|
}
|
|
@@ -19177,14 +19211,18 @@ var authMenuPageQuery = /*#__PURE__*/function () {
|
|
|
19177
19211
|
while (1) {
|
|
19178
19212
|
switch (_context4.prev = _context4.next) {
|
|
19179
19213
|
case 0:
|
|
19180
|
-
|
|
19181
|
-
|
|
19182
|
-
|
|
19183
|
-
|
|
19184
|
-
|
|
19185
|
-
})
|
|
19214
|
+
_context4.t0 = http_post;
|
|
19215
|
+
_context4.next = 3;
|
|
19216
|
+
return json({
|
|
19217
|
+
pageCode: pageCode,
|
|
19218
|
+
pageType: pageType
|
|
19219
|
+
}, []);
|
|
19220
|
+
|
|
19221
|
+
case 3:
|
|
19222
|
+
_context4.t1 = _context4.sent;
|
|
19223
|
+
return _context4.abrupt("return", (0, _context4.t0)("/auth/menu/page/query", _context4.t1));
|
|
19186
19224
|
|
|
19187
|
-
case
|
|
19225
|
+
case 5:
|
|
19188
19226
|
case "end":
|
|
19189
19227
|
return _context4.stop();
|
|
19190
19228
|
}
|
|
@@ -27754,7 +27792,9 @@ var PRESETS = ["error", "search", "default"];
|
|
|
27754
27792
|
type: String,
|
|
27755
27793
|
default: "text"
|
|
27756
27794
|
},
|
|
27757
|
-
autoFocus: Boolean
|
|
27795
|
+
autoFocus: Boolean,
|
|
27796
|
+
isTrim: Boolean,
|
|
27797
|
+
regular: RegExp
|
|
27758
27798
|
},
|
|
27759
27799
|
data: function data() {
|
|
27760
27800
|
return {
|
|
@@ -27762,7 +27802,7 @@ var PRESETS = ["error", "search", "default"];
|
|
|
27762
27802
|
};
|
|
27763
27803
|
},
|
|
27764
27804
|
watch: {
|
|
27765
|
-
value: function value() {
|
|
27805
|
+
value: function value(newVal) {
|
|
27766
27806
|
this.$nextTick(this.adjustSize);
|
|
27767
27807
|
}
|
|
27768
27808
|
},
|
|
@@ -27813,6 +27853,16 @@ var PRESETS = ["error", "search", "default"];
|
|
|
27813
27853
|
target.value = value;
|
|
27814
27854
|
}
|
|
27815
27855
|
|
|
27856
|
+
if (this.isTrim) {
|
|
27857
|
+
value = value.replace(/ /g, "");
|
|
27858
|
+
target.value = value;
|
|
27859
|
+
}
|
|
27860
|
+
|
|
27861
|
+
if (this.regular) {
|
|
27862
|
+
value = value.replace(this.regular, "");
|
|
27863
|
+
target.value = value;
|
|
27864
|
+
}
|
|
27865
|
+
|
|
27816
27866
|
return value;
|
|
27817
27867
|
},
|
|
27818
27868
|
onInput: function onInput(event) {
|
|
@@ -30041,7 +30091,35 @@ external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.prototype.$Local
|
|
|
30041
30091
|
"name": "nav-close"
|
|
30042
30092
|
}
|
|
30043
30093
|
})];
|
|
30044
|
-
})], 2) : _vm._e()
|
|
30094
|
+
})], 2) : _vm._e(), _vm.showChatCrm ? _c('div', {
|
|
30095
|
+
class: _vm.b('action-chat')
|
|
30096
|
+
}, [_c('div', {
|
|
30097
|
+
class: _vm.b('action-chat-left'),
|
|
30098
|
+
on: {
|
|
30099
|
+
"click": function click($event) {
|
|
30100
|
+
return _vm.$emit('chat');
|
|
30101
|
+
}
|
|
30102
|
+
}
|
|
30103
|
+
}, [_c('icon', {
|
|
30104
|
+
attrs: {
|
|
30105
|
+
"size": "12",
|
|
30106
|
+
"color": "#0085cf",
|
|
30107
|
+
"name": "ellipsis-h"
|
|
30108
|
+
}
|
|
30109
|
+
})], 1), _c('div', {
|
|
30110
|
+
class: _vm.b('action-chat-right'),
|
|
30111
|
+
on: {
|
|
30112
|
+
"click": function click($event) {
|
|
30113
|
+
return _vm.$emit('close');
|
|
30114
|
+
}
|
|
30115
|
+
}
|
|
30116
|
+
}, [_c('icon', {
|
|
30117
|
+
attrs: {
|
|
30118
|
+
"size": "10",
|
|
30119
|
+
"color": "#0085cf",
|
|
30120
|
+
"name": "close"
|
|
30121
|
+
}
|
|
30122
|
+
})], 1)]) : _vm._e()])])]);
|
|
30045
30123
|
},
|
|
30046
30124
|
name: "nav-bar",
|
|
30047
30125
|
props: {
|
|
@@ -30051,6 +30129,7 @@ external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.prototype.$Local
|
|
|
30051
30129
|
rightText: String,
|
|
30052
30130
|
leftArrow: Boolean,
|
|
30053
30131
|
showClose: Boolean,
|
|
30132
|
+
showChatCrm: Boolean,
|
|
30054
30133
|
closeIconPosition: {
|
|
30055
30134
|
type: String,
|
|
30056
30135
|
default: "left"
|
|
@@ -36449,7 +36528,7 @@ function isImageFile(item) {
|
|
|
36449
36528
|
|
|
36450
36529
|
|
|
36451
36530
|
|
|
36452
|
-
var version = '1.3.
|
|
36531
|
+
var version = '1.3.9-bata.1';
|
|
36453
36532
|
var components = [action_sheet, address_picker, api, badge, biz, es_button, calendar, card, es_cell, cell_group, es_checkbox, checkbox_group, circle, col, collapse, collapse_item, common_utils, count_down, data_process["a" /* default */], date_picker, datetime_picker, dialog, directive, divider, drag, dropdown_item, dropdown_menu, empty, field, goods_action, goods_action_button, goods_action_icon, grid, grid_item, http, icon, es_image, image_preview, index_anchor, index_bar, es_info, list, loading, local, es_menu, menu_icon, menu_jump, es_menus, nav_bar, notice_bar, notify, es_overlay, pagination, panel, password_input, es_picker, popover, es_popup, es_progress, pull_refresh, es_radio, radio_group, rank, es_rate, row, safe_keyboard, search, session["a" /* default */], share_sheet, sidebar, sidebar_item, slider, es_step, stepper, steps, sticky, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, table, table_column, tabs, tag, es_toast, tree_select, uploader];
|
|
36454
36533
|
|
|
36455
36534
|
var es_install = function install(Vue) {
|