mcrm-mobile 1.5.7 → 1.5.8
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/http/index.js +45 -18
- package/es/index.js +1 -1
- package/es/menu-jump/index.js +190 -179
- package/es/utils/filter/index.js +29 -1
- package/lib/http/index.js +46 -18
- package/lib/index.js +1 -1
- package/lib/mcrm-mobile.js +302 -236
- package/lib/mcrm-mobile.min.js +1 -1
- package/lib/menu-jump/index.js +190 -179
- package/lib/utils/filter/index.js +29 -0
- package/package.json +158 -158
- package/vetur/attributes.json +285 -285
- package/vetur/tags.json +64 -64
- package/vetur/web-types.json +499 -499
package/es/http/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { post } from "../utils/http";
|
|
|
9
9
|
import { json } from "../utils/create-request-body/json";
|
|
10
10
|
import mcrm from "mcrm-jsapi";
|
|
11
11
|
import Session from "../session";
|
|
12
|
+
import { customerTypeFilter } from "../utils/filter/index";
|
|
12
13
|
/**
|
|
13
14
|
* 创建外部订单流水入参
|
|
14
15
|
* @typedef AddOutFormParams
|
|
@@ -375,7 +376,7 @@ var operationSaveLog = /*#__PURE__*/function () {
|
|
|
375
376
|
_ref10 = Session.get("mmExpInfo") || {}, SESSIONNEED = _ref10.SESSIONNEED, _ref10$mainAcct = _ref10.mainAcct, mainAcct = _ref10$mainAcct === void 0 ? "" : _ref10$mainAcct, _ref10$resAcct = _ref10.resAcct, resAcct = _ref10$resAcct === void 0 ? "" : _ref10$resAcct, _ref10$switchNames = _ref10.switchNames, switchNames = _ref10$switchNames === void 0 ? {} : _ref10$switchNames;
|
|
376
377
|
|
|
377
378
|
if (!switchNames.OPERATION_LOG_SWITCH) {
|
|
378
|
-
_context9.next =
|
|
379
|
+
_context9.next = 41;
|
|
379
380
|
break;
|
|
380
381
|
}
|
|
381
382
|
|
|
@@ -392,6 +393,30 @@ var operationSaveLog = /*#__PURE__*/function () {
|
|
|
392
393
|
});
|
|
393
394
|
|
|
394
395
|
case 6:
|
|
396
|
+
_context9.next = 8;
|
|
397
|
+
return mcrm.base.getCache({
|
|
398
|
+
cacheKey: "clientType",
|
|
399
|
+
onSuccess: function onSuccess(data) {
|
|
400
|
+
data[0] && (params.receptionNumType = customerTypeFilter(data[0]));
|
|
401
|
+
},
|
|
402
|
+
onFail: function onFail(e) {
|
|
403
|
+
console.log(e);
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
case 8:
|
|
408
|
+
_context9.next = 10;
|
|
409
|
+
return mcrm.base.getCache({
|
|
410
|
+
cacheKey: "clientBillId",
|
|
411
|
+
onSuccess: function onSuccess(data) {
|
|
412
|
+
data[0] && (params.receptionNum = data[0]);
|
|
413
|
+
},
|
|
414
|
+
onFail: function onFail(e) {
|
|
415
|
+
console.log(e);
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
case 10:
|
|
395
420
|
params.resourceCode = "sys_m_crm";
|
|
396
421
|
params.login4a = 0;
|
|
397
422
|
params.operationSessionId = SESSIONNEED;
|
|
@@ -403,34 +428,34 @@ var operationSaveLog = /*#__PURE__*/function () {
|
|
|
403
428
|
params.resourceSubAccount = resAcct;
|
|
404
429
|
params.operationResult = operationResult;
|
|
405
430
|
_context9.t0 = operationTypeCode;
|
|
406
|
-
_context9.next = _context9.t0 === "openMenu" ?
|
|
431
|
+
_context9.next = _context9.t0 === "openMenu" ? 23 : _context9.t0 === "logIn" ? 25 : _context9.t0 === "logOut" ? 27 : _context9.t0 === "query" ? 29 : _context9.t0 === "handle" ? 31 : 33;
|
|
407
432
|
break;
|
|
408
433
|
|
|
409
|
-
case
|
|
434
|
+
case 23:
|
|
410
435
|
params.operationContent = mainAcct + operationTypeName + moduleName;
|
|
411
|
-
return _context9.abrupt("break",
|
|
436
|
+
return _context9.abrupt("break", 35);
|
|
412
437
|
|
|
413
|
-
case
|
|
438
|
+
case 25:
|
|
414
439
|
params.operationContent = mainAcct + operationTypeName;
|
|
415
|
-
return _context9.abrupt("break",
|
|
440
|
+
return _context9.abrupt("break", 35);
|
|
416
441
|
|
|
417
|
-
case
|
|
442
|
+
case 27:
|
|
418
443
|
params.operationContent = mainAcct + operationTypeName;
|
|
419
|
-
return _context9.abrupt("break",
|
|
444
|
+
return _context9.abrupt("break", 35);
|
|
420
445
|
|
|
421
|
-
case
|
|
446
|
+
case 29:
|
|
422
447
|
params.operationContent = mainAcct + "查询了" + moduleName;
|
|
423
|
-
return _context9.abrupt("break",
|
|
448
|
+
return _context9.abrupt("break", 35);
|
|
424
449
|
|
|
425
|
-
case
|
|
450
|
+
case 31:
|
|
426
451
|
params.operationContent = mainAcct + "办理了" + moduleName;
|
|
427
|
-
return _context9.abrupt("break",
|
|
452
|
+
return _context9.abrupt("break", 35);
|
|
428
453
|
|
|
429
|
-
case
|
|
454
|
+
case 33:
|
|
430
455
|
params.operationContent = "";
|
|
431
|
-
return _context9.abrupt("break",
|
|
456
|
+
return _context9.abrupt("break", 35);
|
|
432
457
|
|
|
433
|
-
case
|
|
458
|
+
case 35:
|
|
434
459
|
if (window.secureOptLog) {
|
|
435
460
|
setLog = window.secureOptLog;
|
|
436
461
|
setLog.set("resourceCode", "sys_m_crm");
|
|
@@ -445,18 +470,20 @@ var operationSaveLog = /*#__PURE__*/function () {
|
|
|
445
470
|
setLog.set("resourceSubAccount", resAcct);
|
|
446
471
|
setLog.set("clientIp", params.clientIp);
|
|
447
472
|
setLog.set("operationResult", operationResult);
|
|
473
|
+
setLog.set("receptionNumType", params.receptionNumType || "");
|
|
474
|
+
setLog.set("receptionNum", params.receptionNum || "");
|
|
448
475
|
window.secureOptLog && (params.invokeSessionId = window.secureOptLog.getAESData(Session.get("defaultKeys")[3].log_key, Session.get("defaultKeys")[3].log_iv));
|
|
449
476
|
}
|
|
450
477
|
|
|
451
478
|
_context9.t1 = post;
|
|
452
|
-
_context9.next =
|
|
479
|
+
_context9.next = 39;
|
|
453
480
|
return json(params);
|
|
454
481
|
|
|
455
|
-
case
|
|
482
|
+
case 39:
|
|
456
483
|
_context9.t2 = _context9.sent;
|
|
457
484
|
return _context9.abrupt("return", (0, _context9.t1)("/expension/log/addMenuBuryingPoint", _context9.t2));
|
|
458
485
|
|
|
459
|
-
case
|
|
486
|
+
case 41:
|
|
460
487
|
case "end":
|
|
461
488
|
return _context9.stop();
|
|
462
489
|
}
|
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.5.
|
|
94
|
+
var version = '1.5.8';
|
|
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) {
|