tplus-portaltouch 3.27.4 → 3.27.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/dist/api/ModifyPassApi.js +165 -0
- package/dist/api/ModifyPassApi.js.map +1 -0
- package/dist/components/dutyandsettle/dutysettlebill.js +1056 -0
- package/dist/components/dutyandsettle/dutysettlebill.js.map +1 -0
- package/dist/components/dutyandsettle/dutysettlehistory.js +219 -0
- package/dist/components/dutyandsettle/dutysettlehistory.js.map +1 -0
- package/dist/components/dutyandsettle/index.js +25 -0
- package/dist/components/dutyandsettle/index.js.map +1 -0
- package/dist/components/dutyandsettle/tipContent.js +101 -0
- package/dist/components/dutyandsettle/tipContent.js.map +1 -0
- package/dist/components/header/customUse.js +79 -0
- package/dist/components/header/customUse.js.map +1 -0
- package/dist/components/header/headContent.js +888 -0
- package/dist/components/header/headContent.js.map +1 -0
- package/dist/components/header/index.js +102 -0
- package/dist/components/header/index.js.map +1 -0
- package/dist/components/header/offlinePointDesc.js +7 -0
- package/dist/components/header/offlinePointDesc.js.map +1 -0
- package/dist/components/header/style.less +457 -0
- package/dist/components/header/themeModal.js +164 -0
- package/dist/components/header/themeModal.js.map +1 -0
- package/dist/components/header/uploadList.js +271 -0
- package/dist/components/header/uploadList.js.map +1 -0
- package/dist/components/header/vertical-touch.js +285 -0
- package/dist/components/header/vertical-touch.js.map +1 -0
- package/dist/components/header/vertical-touch.less +229 -0
- package/dist/containers/Main/index.js +662 -0
- package/dist/containers/Main/index.js.map +1 -0
- package/dist/dutyService/index.js +276 -0
- package/dist/dutyService/index.js.map +1 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/middleWare/index.js +75 -0
- package/dist/middleWare/index.js.map +1 -0
- package/dist/modalRouter/StaticRouter.js +134 -0
- package/dist/modalRouter/StaticRouter.js.map +1 -0
- package/dist/modalRouter/index.js +141 -0
- package/dist/modalRouter/index.js.map +1 -0
- package/dist/pages/Modal/index.js +71 -0
- package/dist/pages/Modal/index.js.map +1 -0
- package/dist/pages/Modal/style.less +5 -0
- package/dist/pages/Portalbc/data.js +772 -0
- package/dist/pages/Portalbc/data.js.map +1 -0
- package/dist/pages/Portalbc/horizontalPadPortal.js +129 -0
- package/dist/pages/Portalbc/horizontalPadPortal.js.map +1 -0
- package/dist/pages/Portalbc/horizontalSunMiPortal.js +130 -0
- package/dist/pages/Portalbc/horizontalSunMiPortal.js.map +1 -0
- package/dist/pages/Portalbc/index.js +1471 -0
- package/dist/pages/Portalbc/index.js.map +1 -0
- package/dist/pages/Portalbc/index.less +822 -0
- package/dist/pages/Portalbc/onframe.js +256 -0
- package/dist/pages/Portalbc/onframe.js.map +1 -0
- package/dist/pages/Portalbc/verticalPortal.js +134 -0
- package/dist/pages/Portalbc/verticalPortal.js.map +1 -0
- package/dist/pages/dutyandsettle/AuthProcess.js +42 -0
- package/dist/pages/dutyandsettle/AuthProcess.js.map +1 -0
- package/dist/pages/dutyandsettle/index.js +37 -0
- package/dist/pages/dutyandsettle/index.js.map +1 -0
- package/dist/pages/dutyandsettle/index.less +529 -0
- package/dist/pages/dutyandsettle/offDuty.js +544 -0
- package/dist/pages/dutyandsettle/offDuty.js.map +1 -0
- package/dist/pages/dutyandsettle/onDialy.js +182 -0
- package/dist/pages/dutyandsettle/onDialy.js.map +1 -0
- package/dist/pages/dutyandsettle/onDuty.js +242 -0
- package/dist/pages/dutyandsettle/onDuty.js.map +1 -0
- package/dist/pages/dutyandsettle/onUnDaily.js +138 -0
- package/dist/pages/dutyandsettle/onUnDaily.js.map +1 -0
- package/dist/pages/dutyandsettle/settleDialy.js +116 -0
- package/dist/pages/dutyandsettle/settleDialy.js.map +1 -0
- package/dist/pages/index.js +54 -0
- package/dist/pages/index.js.map +1 -0
- package/dist/pages/modifyPass/index.js +174 -0
- package/dist/pages/modifyPass/index.js.map +1 -0
- package/dist/pages/modifyPass/style.less +71 -0
- package/dist/pages/notFound/index.js +85 -0
- package/dist/pages/notFound/index.js.map +1 -0
- package/dist/pages/notFound/style.less +17 -0
- package/dist/stores/ModalRouter.js +182 -0
- package/dist/stores/ModalRouter.js.map +1 -0
- package/dist/stores/ModifyPassStore.js +211 -0
- package/dist/stores/ModifyPassStore.js.map +1 -0
- package/dist/stores/PortalStore.js +285 -0
- package/dist/stores/PortalStore.js.map +1 -0
- package/dist/stores/PosLoginStore.js +108 -0
- package/dist/stores/PosLoginStore.js.map +1 -0
- package/dist/stores/billHistoryStore.js +114 -0
- package/dist/stores/billHistoryStore.js.map +1 -0
- package/dist/stores/dutySettleStore.js +115 -0
- package/dist/stores/dutySettleStore.js.map +1 -0
- package/dist/stores/index.js +36 -0
- package/dist/stores/index.js.map +1 -0
- package/dist/utils/PrintProcess.js +112 -0
- package/dist/utils/PrintProcess.js.map +1 -0
- package/dist/utils/index.js +93 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/networkCheck.js +33 -0
- package/dist/utils/networkCheck.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = undefined;
|
|
7
|
+
|
|
8
|
+
var _defineProperty = require('babel-runtime/core-js/object/define-property');
|
|
9
|
+
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(_defineProperty);
|
|
11
|
+
|
|
12
|
+
var _getOwnPropertyDescriptor = require('babel-runtime/core-js/object/get-own-property-descriptor');
|
|
13
|
+
|
|
14
|
+
var _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);
|
|
15
|
+
|
|
16
|
+
var _extends2 = require('babel-runtime/helpers/extends');
|
|
17
|
+
|
|
18
|
+
var _extends3 = _interopRequireDefault(_extends2);
|
|
19
|
+
|
|
20
|
+
var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray');
|
|
21
|
+
|
|
22
|
+
var _slicedToArray3 = _interopRequireDefault(_slicedToArray2);
|
|
23
|
+
|
|
24
|
+
var _keys = require('babel-runtime/core-js/object/keys');
|
|
25
|
+
|
|
26
|
+
var _keys2 = _interopRequireDefault(_keys);
|
|
27
|
+
|
|
28
|
+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
|
29
|
+
|
|
30
|
+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
31
|
+
|
|
32
|
+
var _createClass2 = require('babel-runtime/helpers/createClass');
|
|
33
|
+
|
|
34
|
+
var _createClass3 = _interopRequireDefault(_createClass2);
|
|
35
|
+
|
|
36
|
+
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
37
|
+
|
|
38
|
+
var _mobx = require('mobx');
|
|
39
|
+
|
|
40
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
41
|
+
|
|
42
|
+
function _initDefineProp(target, property, descriptor, context) {
|
|
43
|
+
if (!descriptor) return;
|
|
44
|
+
(0, _defineProperty2.default)(target, property, {
|
|
45
|
+
enumerable: descriptor.enumerable,
|
|
46
|
+
configurable: descriptor.configurable,
|
|
47
|
+
writable: descriptor.writable,
|
|
48
|
+
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
|
|
53
|
+
var desc = {};
|
|
54
|
+
Object['ke' + 'ys'](descriptor).forEach(function (key) {
|
|
55
|
+
desc[key] = descriptor[key];
|
|
56
|
+
});
|
|
57
|
+
desc.enumerable = !!desc.enumerable;
|
|
58
|
+
desc.configurable = !!desc.configurable;
|
|
59
|
+
|
|
60
|
+
if ('value' in desc || desc.initializer) {
|
|
61
|
+
desc.writable = true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
desc = decorators.slice().reverse().reduce(function (desc, decorator) {
|
|
65
|
+
return decorator(target, property, desc) || desc;
|
|
66
|
+
}, desc);
|
|
67
|
+
|
|
68
|
+
if (context && desc.initializer !== void 0) {
|
|
69
|
+
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
|
|
70
|
+
desc.initializer = undefined;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (desc.initializer === void 0) {
|
|
74
|
+
Object['define' + 'Property'](target, property, desc);
|
|
75
|
+
desc = null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return desc;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function _initializerWarningHelper(descriptor, context) {
|
|
82
|
+
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
var ModalRouter = (_class = function () {
|
|
86
|
+
function ModalRouter() {
|
|
87
|
+
(0, _classCallCheck3.default)(this, ModalRouter);
|
|
88
|
+
|
|
89
|
+
_initDefineProp(this, 'modals', _descriptor, this);
|
|
90
|
+
|
|
91
|
+
_initDefineProp(this, 'currentMoadl', _descriptor2, this);
|
|
92
|
+
|
|
93
|
+
_initDefineProp(this, 'hide', _descriptor3, this);
|
|
94
|
+
|
|
95
|
+
_initDefineProp(this, 'show', _descriptor4, this);
|
|
96
|
+
|
|
97
|
+
_initDefineProp(this, 'hideAll', _descriptor5, this);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
(0, _createClass3.default)(ModalRouter, [{
|
|
101
|
+
key: 'update',
|
|
102
|
+
value: function update() {
|
|
103
|
+
var _this = this;
|
|
104
|
+
|
|
105
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
106
|
+
var url = options.url;
|
|
107
|
+
|
|
108
|
+
(0, _keys2.default)(options).forEach(function (key) {
|
|
109
|
+
_this.modals[url][key] = options[key];
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}]);
|
|
113
|
+
return ModalRouter;
|
|
114
|
+
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'modals', [_mobx.observable], {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
initializer: function initializer() {
|
|
117
|
+
return {};
|
|
118
|
+
}
|
|
119
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'currentMoadl', [_mobx.observable], {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
initializer: null
|
|
122
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'hide', [_mobx.action], {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
initializer: function initializer() {
|
|
125
|
+
var _this2 = this;
|
|
126
|
+
|
|
127
|
+
return function () {
|
|
128
|
+
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
129
|
+
|
|
130
|
+
var currentMoadl = url + '_HIDE_';
|
|
131
|
+
_this2.currentMoadl = currentMoadl;
|
|
132
|
+
|
|
133
|
+
var _currentMoadl$split = currentMoadl.split('_HIDE_'),
|
|
134
|
+
_currentMoadl$split2 = (0, _slicedToArray3.default)(_currentMoadl$split, 1),
|
|
135
|
+
currentMoadlUrl = _currentMoadl$split2[0];
|
|
136
|
+
|
|
137
|
+
_this2.modals[currentMoadlUrl].visible = false;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'show', [_mobx.action], {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
initializer: function initializer() {
|
|
143
|
+
var _this3 = this;
|
|
144
|
+
|
|
145
|
+
return function () {
|
|
146
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
147
|
+
|
|
148
|
+
console.log(options);
|
|
149
|
+
|
|
150
|
+
var url = options.url;
|
|
151
|
+
|
|
152
|
+
_this3.currentMoadl = url;
|
|
153
|
+
|
|
154
|
+
if (!_this3.modals[url]) {
|
|
155
|
+
_this3.modals[url] = (0, _extends3.default)({
|
|
156
|
+
url: '',
|
|
157
|
+
title: '',
|
|
158
|
+
width: undefined,
|
|
159
|
+
visible: false,
|
|
160
|
+
maskClosable: undefined,
|
|
161
|
+
footer: []
|
|
162
|
+
}, options);
|
|
163
|
+
}
|
|
164
|
+
_this3.update((0, _extends3.default)({}, options, {
|
|
165
|
+
visible: true
|
|
166
|
+
}));
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}), _applyDecoratedDescriptor(_class.prototype, 'update', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'update'), _class.prototype), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, 'hideAll', [_mobx.action], {
|
|
170
|
+
enumerable: true,
|
|
171
|
+
initializer: function initializer() {
|
|
172
|
+
var _this4 = this;
|
|
173
|
+
|
|
174
|
+
return function () {
|
|
175
|
+
(0, _keys2.default)(_this4.modals).forEach(function (url) {
|
|
176
|
+
_this4.hide(url);
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
})), _class);
|
|
181
|
+
exports.default = ModalRouter;
|
|
182
|
+
//# sourceMappingURL=ModalRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["tplus-portaltouch/stores/ModalRouter.js"],"names":["ModalRouter","options","url","forEach","modals","key","observable","action","currentMoadl","split","currentMoadlUrl","visible","console","log","title","width","undefined","maskClosable","footer","update","hide"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEqBA,W;;;;;;;;;;;;;;;;;6BAoCU;AAAA;;AAAA,UAAdC,OAAc,uEAAJ,EAAI;AAAA,UACnBC,GADmB,GACXD,OADW,CACnBC,GADmB;;AAE3B,0BAAYD,OAAZ,EAAqBE,OAArB,CAA6B,eAAO;AAClC,cAAKC,MAAL,CAAYF,GAAZ,EAAiBG,GAAjB,IAAwBJ,QAAQI,GAAR,CAAxB;AACD,OAFD;AAGD;;;2EAxCAC,gB;;;WAAoB,E;;gFACpBA,gB;;;wEAEAC,Y;;;;;WAAc,YAAc;AAAA,UAAbL,GAAa,uEAAP,EAAO;;AAC3B,UAAMM,eAAkBN,GAAlB,WAAN;AACA,aAAKM,YAAL,GAAoBA,YAApB;;AAF2B,gCAGDA,aAAaC,KAAb,CAAmB,QAAnB,CAHC;AAAA;AAAA,UAGpBC,eAHoB;;AAK3B,aAAKN,MAAL,CAAYM,eAAZ,EAA6BC,OAA7B,GAAuC,KAAvC;AACD,K;;wEAEAJ,Y;;;;;WAAc,YAAkB;AAAA,UAAjBN,OAAiB,uEAAP,EAAO;;AAC/BW,cAAQC,GAAR,CAAYZ,OAAZ;;AAD+B,UAIvBC,GAJuB,GAIfD,OAJe,CAIvBC,GAJuB;;AAK/B,aAAKM,YAAL,GAAoBN,GAApB;;AAEA,UAAI,CAAC,OAAKE,MAAL,CAAYF,GAAZ,CAAL,EAAuB;AACrB,eAAKE,MAAL,CAAYF,GAAZ;AACEA,eAAK,EADP;AAEEY,iBAAO,EAFT;AAGEC,iBAAOC,SAHT;AAIEL,mBAAS,KAJX;AAKEM,wBAAcD,SALhB;AAMEE,kBAAQ;AANV,WAOKjB,OAPL;AASD;AACD,aAAKkB,MAAL,4BACKlB,OADL;AAEEU,iBAAS;AAFX;AAID,K;;2DAEAJ,Y,kKAOAA,Y;;;;;WAAe,YAAI;AAClB,0BAAY,OAAKH,MAAjB,EAAyBD,OAAzB,CAAiC,UAACD,GAAD,EAAO;AACtC,eAAKkB,IAAL,CAAUlB,GAAV;AACD,OAFD;AAGD,K;;;kBA/CkBF,W","file":"ModalRouter.js","sourcesContent":["import {action, observable} from 'mobx';\n\nexport default class ModalRouter {\n @observable modals = {};\n @observable currentMoadl;\n\n @action hide = (url = '') => {\n const currentMoadl = `${url}_HIDE_`;\n this.currentMoadl = currentMoadl;\n const [currentMoadlUrl] = currentMoadl.split('_HIDE_');\n\n this.modals[currentMoadlUrl].visible = false;\n }\n\n @action show = (options = {}) => {\n console.log(options)\n\n\n const { url } = options;\n this.currentMoadl = url;\n\n if (!this.modals[url]) {\n this.modals[url] = {\n url: '',\n title: '',\n width: undefined,\n visible: false,\n maskClosable: undefined,\n footer: [],\n ...options\n };\n }\n this.update({\n ...options,\n visible: true\n });\n }\n\n @action update(options = {}) {\n const { url } = options;\n Object.keys(options).forEach(key => {\n this.modals[url][key] = options[key];\n });\n }\n\n @action hideAll=()=>{\n Object.keys(this.modals).forEach((url)=>{\n this.hide(url)\n })\n }\n}\n"]}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = undefined;
|
|
7
|
+
|
|
8
|
+
var _defineProperty = require('babel-runtime/core-js/object/define-property');
|
|
9
|
+
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(_defineProperty);
|
|
11
|
+
|
|
12
|
+
var _getOwnPropertyDescriptor = require('babel-runtime/core-js/object/get-own-property-descriptor');
|
|
13
|
+
|
|
14
|
+
var _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);
|
|
15
|
+
|
|
16
|
+
var _regenerator = require('babel-runtime/regenerator');
|
|
17
|
+
|
|
18
|
+
var _regenerator2 = _interopRequireDefault(_regenerator);
|
|
19
|
+
|
|
20
|
+
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
|
|
21
|
+
|
|
22
|
+
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
|
|
23
|
+
|
|
24
|
+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
|
25
|
+
|
|
26
|
+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
27
|
+
|
|
28
|
+
var _createClass2 = require('babel-runtime/helpers/createClass');
|
|
29
|
+
|
|
30
|
+
var _createClass3 = _interopRequireDefault(_createClass2);
|
|
31
|
+
|
|
32
|
+
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
33
|
+
|
|
34
|
+
var _mobx = require('mobx');
|
|
35
|
+
|
|
36
|
+
var _tplusComponentsTouch = require('tplus-components-touch');
|
|
37
|
+
|
|
38
|
+
var _mutantsMicrofx = require('mutants-microfx');
|
|
39
|
+
|
|
40
|
+
var _tplusApi = require('tplus-api');
|
|
41
|
+
|
|
42
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
|
+
|
|
44
|
+
function _initDefineProp(target, property, descriptor, context) {
|
|
45
|
+
if (!descriptor) return;
|
|
46
|
+
(0, _defineProperty2.default)(target, property, {
|
|
47
|
+
enumerable: descriptor.enumerable,
|
|
48
|
+
configurable: descriptor.configurable,
|
|
49
|
+
writable: descriptor.writable,
|
|
50
|
+
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
|
|
55
|
+
var desc = {};
|
|
56
|
+
Object['ke' + 'ys'](descriptor).forEach(function (key) {
|
|
57
|
+
desc[key] = descriptor[key];
|
|
58
|
+
});
|
|
59
|
+
desc.enumerable = !!desc.enumerable;
|
|
60
|
+
desc.configurable = !!desc.configurable;
|
|
61
|
+
|
|
62
|
+
if ('value' in desc || desc.initializer) {
|
|
63
|
+
desc.writable = true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
desc = decorators.slice().reverse().reduce(function (desc, decorator) {
|
|
67
|
+
return decorator(target, property, desc) || desc;
|
|
68
|
+
}, desc);
|
|
69
|
+
|
|
70
|
+
if (context && desc.initializer !== void 0) {
|
|
71
|
+
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
|
|
72
|
+
desc.initializer = undefined;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (desc.initializer === void 0) {
|
|
76
|
+
Object['define' + 'Property'](target, property, desc);
|
|
77
|
+
desc = null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return desc;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function _initializerWarningHelper(descriptor, context) {
|
|
84
|
+
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
(0, _mobx.useStrict)(true);
|
|
88
|
+
var ModifyPassStore = (_class = function () {
|
|
89
|
+
function ModifyPassStore() {
|
|
90
|
+
(0, _classCallCheck3.default)(this, ModifyPassStore);
|
|
91
|
+
|
|
92
|
+
_initDefineProp(this, 'oldPass', _descriptor, this);
|
|
93
|
+
|
|
94
|
+
_initDefineProp(this, 'newPass', _descriptor2, this);
|
|
95
|
+
|
|
96
|
+
_initDefineProp(this, 'newPassConfirm', _descriptor3, this);
|
|
97
|
+
|
|
98
|
+
_initDefineProp(this, 'watchChange', _descriptor4, this);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
(0, _createClass3.default)(ModifyPassStore, [{
|
|
102
|
+
key: 'modifyPassWord',
|
|
103
|
+
value: function () {
|
|
104
|
+
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
|
|
105
|
+
var _ref2, oldPass, newPass, newPassConfirm, data;
|
|
106
|
+
|
|
107
|
+
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
108
|
+
while (1) {
|
|
109
|
+
switch (_context.prev = _context.next) {
|
|
110
|
+
case 0:
|
|
111
|
+
_ref2 = this || {}, oldPass = _ref2.oldPass, newPass = _ref2.newPass, newPassConfirm = _ref2.newPassConfirm;
|
|
112
|
+
|
|
113
|
+
if (!(!oldPass || !newPass || !newPassConfirm)) {
|
|
114
|
+
_context.next = 3;
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return _context.abrupt('return', _tplusComponentsTouch.Message.warn('您还有未填写项', { top: 30 }));
|
|
119
|
+
|
|
120
|
+
case 3:
|
|
121
|
+
if (!(newPass !== newPassConfirm)) {
|
|
122
|
+
_context.next = 5;
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return _context.abrupt('return', _tplusComponentsTouch.Message.warn('您两次输入的密码不一致', { top: 30 }));
|
|
127
|
+
|
|
128
|
+
case 5:
|
|
129
|
+
_context.prev = 5;
|
|
130
|
+
|
|
131
|
+
_tplusComponentsTouch.Loading.show({
|
|
132
|
+
target: 'modify-password',
|
|
133
|
+
text: '信息提交中,请稍等...'
|
|
134
|
+
});
|
|
135
|
+
_context.next = 9;
|
|
136
|
+
return _tplusApi.User.updatePwd(oldPass, newPass);
|
|
137
|
+
|
|
138
|
+
case 9:
|
|
139
|
+
data = _context.sent;
|
|
140
|
+
|
|
141
|
+
if (data.result) {
|
|
142
|
+
_tplusComponentsTouch.Message.success('您的密码修改成功', { top: 30 });
|
|
143
|
+
_mutantsMicrofx.stores.modalRouter.hide('/modifypass');
|
|
144
|
+
_tplusApi.User.logout();
|
|
145
|
+
} else if (!!data.errorCode) {
|
|
146
|
+
if (data.errorCode === '20109') {
|
|
147
|
+
_tplusComponentsTouch.Message.warn('旧密码录入有误!', { top: 30 });
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
_tplusComponentsTouch.Loading.hide();
|
|
151
|
+
_tplusComponentsTouch.Keyboard.close();
|
|
152
|
+
_context.next = 19;
|
|
153
|
+
break;
|
|
154
|
+
|
|
155
|
+
case 15:
|
|
156
|
+
_context.prev = 15;
|
|
157
|
+
_context.t0 = _context['catch'](5);
|
|
158
|
+
|
|
159
|
+
_tplusComponentsTouch.Loading.hide();
|
|
160
|
+
console.log('err======modifyPassWord>>>>>>', _context.t0);
|
|
161
|
+
|
|
162
|
+
case 19:
|
|
163
|
+
case 'end':
|
|
164
|
+
return _context.stop();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}, _callee, this, [[5, 15]]);
|
|
168
|
+
}));
|
|
169
|
+
|
|
170
|
+
function modifyPassWord() {
|
|
171
|
+
return _ref.apply(this, arguments);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return modifyPassWord;
|
|
175
|
+
}()
|
|
176
|
+
}, {
|
|
177
|
+
key: 'cleanStores',
|
|
178
|
+
value: function cleanStores() {
|
|
179
|
+
this.oldPass = '';
|
|
180
|
+
this.newPass = '';
|
|
181
|
+
this.newPassConfirm = '';
|
|
182
|
+
}
|
|
183
|
+
}]);
|
|
184
|
+
return ModifyPassStore;
|
|
185
|
+
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'oldPass', [_mobx.observable], {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
initializer: function initializer() {
|
|
188
|
+
return '';
|
|
189
|
+
}
|
|
190
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'newPass', [_mobx.observable], {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
initializer: function initializer() {
|
|
193
|
+
return '';
|
|
194
|
+
}
|
|
195
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'newPassConfirm', [_mobx.observable], {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
initializer: function initializer() {
|
|
198
|
+
return '';
|
|
199
|
+
}
|
|
200
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'watchChange', [_mobx.action], {
|
|
201
|
+
enumerable: true,
|
|
202
|
+
initializer: function initializer() {
|
|
203
|
+
var _this = this;
|
|
204
|
+
|
|
205
|
+
return function (key, value) {
|
|
206
|
+
_this[key] = value;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
}), _applyDecoratedDescriptor(_class.prototype, 'modifyPassWord', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'modifyPassWord'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'cleanStores', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'cleanStores'), _class.prototype)), _class);
|
|
210
|
+
exports.default = ModifyPassStore;
|
|
211
|
+
//# sourceMappingURL=ModifyPassStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["tplus-portaltouch/stores/ModifyPassStore.js"],"names":["ModifyPassStore","oldPass","newPass","newPassConfirm","Message","warn","top","Loading","show","target","text","User","updatePwd","data","result","success","stores","modalRouter","hide","logout","errorCode","Keyboard","close","console","log","observable","action","key","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qBAAU,IAAV;IACqBA,e;;;;;;;;;;;;;;;;;;;;;;;wBAW0B,QAAQ,E,EAA5CC,O,SAAAA,O,EAASC,O,SAAAA,O,EAASC,c,SAAAA,c;;sBACrB,CAACF,OAAD,IAAY,CAACC,OAAb,IAAwB,CAACC,c;;;;;iDACpBC,8BAAQC,IAAR,CAAa,SAAb,EAAwB,EAACC,KAAK,EAAN,EAAxB,C;;;sBAELJ,YAAYC,c;;;;;iDACPC,8BAAQC,IAAR,CAAa,aAAb,EAA4B,EAACC,KAAK,EAAN,EAA5B,C;;;;;AAGPC,8CAAQC,IAAR,CAAa;AACXC,0BAAQ,iBADG;AAEXC,wBAAM;AAFK,iBAAb;;uBAImBC,eAAKC,SAAL,CAAeX,OAAf,EAAwBC,OAAxB,C;;;AAAbW,oB;;AACN,oBAAIA,KAAKC,MAAT,EAAiB;AACfV,gDAAQW,OAAR,CAAgB,UAAhB,EAA4B,EAAET,KAAK,EAAP,EAA5B;AACAU,yCAAOC,WAAP,CAAmBC,IAAnB,CAAwB,aAAxB;AACAP,iCAAKQ,MAAL;AACD,iBAJD,MAIO,IAAI,CAAC,CAACN,KAAKO,SAAX,EAAsB;AAC3B,sBAAIP,KAAKO,SAAL,KAAmB,OAAvB,EAAgC;AAC9BhB,kDAAQC,IAAR,CAAa,UAAb,EAAyB,EAAEC,KAAK,EAAP,EAAzB;AACD;AACF;AACDC,8CAAQW,IAAR;AACAG,+CAASC,KAAT;;;;;;;;AAEAf,8CAAQW,IAAR;AACAK,wBAAQC,GAAR,CAAY,+BAAZ;;;;;;;;;;;;;;;;;;kCAIkB;AACpB,WAAKvB,OAAL,GAAe,EAAf;AACA,WAAKC,OAAL,GAAe,EAAf;AACA,WAAKC,cAAL,GAAsB,EAAtB;AACD;;;4EA3CAsB,gB;;;WAAqB,E;;2EACrBA,gB;;;WAAqB,E;;kFACrBA,gB;;;WAA4B,E;;+EAE5BC,Y;;;;;WAAqB,UAACC,GAAD,EAAMC,KAAN,EAAgB;AACpC,YAAKD,GAAL,IAAYC,KAAZ;AACD,K;;mEAEAF,Y,+JA+BAA,Y;kBAzCkB1B,e","file":"ModifyPassStore.js","sourcesContent":["import { observable, action, useStrict } from 'mobx';\nimport { Message, Loading, Keyboard } from 'tplus-components-touch';\nimport { stores, runInAction } from 'mutants-microfx';\nimport { User } from 'tplus-api';\n\nuseStrict(true);\nexport default class ModifyPassStore {\n\n @observable oldPass = '';\n @observable newPass = '';\n @observable newPassConfirm = '';\n\n @action watchChange = (key, value) => {\n this[key] = value;\n }\n\n @action async modifyPassWord() {\n const {oldPass, newPass, newPassConfirm} = this || {};\n if (!oldPass || !newPass || !newPassConfirm) {\n return Message.warn('您还有未填写项', {top: 30});\n }\n if (newPass !== newPassConfirm) {\n return Message.warn('您两次输入的密码不一致', {top: 30});\n }\n try {\n Loading.show({\n target: 'modify-password',\n text: '信息提交中,请稍等...'\n })\n const data = await User.updatePwd(oldPass, newPass);\n if (data.result) {\n Message.success('您的密码修改成功', { top: 30 });\n stores.modalRouter.hide('/modifypass');\n User.logout();\n } else if (!!data.errorCode) {\n if (data.errorCode === '20109') {\n Message.warn('旧密码录入有误!', { top: 30 });\n }\n }\n Loading.hide();\n Keyboard.close();\n } catch (err) {\n Loading.hide();\n console.log('err======modifyPassWord>>>>>>', err);\n }\n }\n\n @action cleanStores() {\n this.oldPass = '';\n this.newPass = '';\n this.newPassConfirm = '';\n }\n\n}\n"]}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _defineProperty = require('babel-runtime/core-js/object/define-property');
|
|
8
|
+
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(_defineProperty);
|
|
10
|
+
|
|
11
|
+
var _regenerator = require('babel-runtime/regenerator');
|
|
12
|
+
|
|
13
|
+
var _regenerator2 = _interopRequireDefault(_regenerator);
|
|
14
|
+
|
|
15
|
+
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
|
|
16
|
+
|
|
17
|
+
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
|
|
18
|
+
|
|
19
|
+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
|
20
|
+
|
|
21
|
+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
22
|
+
|
|
23
|
+
var _createClass2 = require('babel-runtime/helpers/createClass');
|
|
24
|
+
|
|
25
|
+
var _createClass3 = _interopRequireDefault(_createClass2);
|
|
26
|
+
|
|
27
|
+
var _desc, _value, _class, _descriptor, _descriptor2; /*
|
|
28
|
+
* @Date: 2019-08-13 08:42:18
|
|
29
|
+
* @LastEditTime: 2019-10-17 20:24:12
|
|
30
|
+
* @LastEditors: wangzhhr@chanjet.com
|
|
31
|
+
* modify:增加查询T+中方案id接口
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var _mobx = require('mobx');
|
|
36
|
+
|
|
37
|
+
var _tplusApi = require('tplus-api');
|
|
38
|
+
|
|
39
|
+
var _tplusPoslogin = require('tplus-poslogin');
|
|
40
|
+
|
|
41
|
+
var _dutyService = require('../dutyService');
|
|
42
|
+
|
|
43
|
+
var _mutantsUtil = require('mutants-util');
|
|
44
|
+
|
|
45
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
46
|
+
|
|
47
|
+
function _initDefineProp(target, property, descriptor, context) {
|
|
48
|
+
if (!descriptor) return;
|
|
49
|
+
(0, _defineProperty2.default)(target, property, {
|
|
50
|
+
enumerable: descriptor.enumerable,
|
|
51
|
+
configurable: descriptor.configurable,
|
|
52
|
+
writable: descriptor.writable,
|
|
53
|
+
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
|
|
58
|
+
var desc = {};
|
|
59
|
+
Object['ke' + 'ys'](descriptor).forEach(function (key) {
|
|
60
|
+
desc[key] = descriptor[key];
|
|
61
|
+
});
|
|
62
|
+
desc.enumerable = !!desc.enumerable;
|
|
63
|
+
desc.configurable = !!desc.configurable;
|
|
64
|
+
|
|
65
|
+
if ('value' in desc || desc.initializer) {
|
|
66
|
+
desc.writable = true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
desc = decorators.slice().reverse().reduce(function (desc, decorator) {
|
|
70
|
+
return decorator(target, property, desc) || desc;
|
|
71
|
+
}, desc);
|
|
72
|
+
|
|
73
|
+
if (context && desc.initializer !== void 0) {
|
|
74
|
+
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
|
|
75
|
+
desc.initializer = undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (desc.initializer === void 0) {
|
|
79
|
+
Object['define' + 'Property'](target, property, desc);
|
|
80
|
+
desc = null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return desc;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function _initializerWarningHelper(descriptor, context) {
|
|
87
|
+
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
var PortalStore = (_class = function () {
|
|
91
|
+
function PortalStore() {
|
|
92
|
+
(0, _classCallCheck3.default)(this, PortalStore);
|
|
93
|
+
|
|
94
|
+
_initDefineProp(this, 'themeStore', _descriptor, this);
|
|
95
|
+
|
|
96
|
+
_initDefineProp(this, 'themeChange', _descriptor2, this);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
(0, _createClass3.default)(PortalStore, [{
|
|
100
|
+
key: 'checkDuty',
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
// @observable portalMenus = [];
|
|
104
|
+
// @action async getPortalMenu(){
|
|
105
|
+
// // const data = await tApi({},'PortalMenu',false,false);
|
|
106
|
+
// // runInAction(()=>{
|
|
107
|
+
// // this.portalMenus = data;
|
|
108
|
+
// // })
|
|
109
|
+
// }
|
|
110
|
+
value: function () {
|
|
111
|
+
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
|
|
112
|
+
var duty, bduty;
|
|
113
|
+
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
114
|
+
while (1) {
|
|
115
|
+
switch (_context.prev = _context.next) {
|
|
116
|
+
case 0:
|
|
117
|
+
console.log('posCode=======', (0, _tplusPoslogin.PosInitData)('posCode'));
|
|
118
|
+
_context.next = 3;
|
|
119
|
+
return _dutyService.DutyService.checkDuty({ userId: (0, _tplusPoslogin.PosInitData)('UserID'), posCode: (0, _tplusPoslogin.PosInitData)('posCode') });
|
|
120
|
+
|
|
121
|
+
case 3:
|
|
122
|
+
duty = _context.sent;
|
|
123
|
+
bduty = false;
|
|
124
|
+
_context.t0 = duty.dutyState;
|
|
125
|
+
_context.next = _context.t0 === _dutyService.DutyState.NotOnDuty ? 8 : _context.t0 === _dutyService.DutyState.OnDuty ? 10 : _context.t0 === _dutyService.DutyState.OtherDuty ? 12 : _context.t0 === _dutyService.DutyState.OnOtherDuty ? 14 : 16;
|
|
126
|
+
break;
|
|
127
|
+
|
|
128
|
+
case 8:
|
|
129
|
+
(0, _dutyService.showNotDutyTip)();
|
|
130
|
+
return _context.abrupt('break', 16);
|
|
131
|
+
|
|
132
|
+
case 10:
|
|
133
|
+
bduty = true;
|
|
134
|
+
return _context.abrupt('break', 16);
|
|
135
|
+
|
|
136
|
+
case 12:
|
|
137
|
+
(0, _dutyService.showOtherDutyTip)(duty.shift);
|
|
138
|
+
return _context.abrupt('break', 16);
|
|
139
|
+
|
|
140
|
+
case 14:
|
|
141
|
+
(0, _dutyService.showOnOtherDutyTip)(duty.shift);
|
|
142
|
+
return _context.abrupt('break', 16);
|
|
143
|
+
|
|
144
|
+
case 16:
|
|
145
|
+
return _context.abrupt('return', bduty ? duty.shift : null);
|
|
146
|
+
|
|
147
|
+
case 17:
|
|
148
|
+
case 'end':
|
|
149
|
+
return _context.stop();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}, _callee, this);
|
|
153
|
+
}));
|
|
154
|
+
|
|
155
|
+
function checkDuty() {
|
|
156
|
+
return _ref.apply(this, arguments);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return checkDuty;
|
|
160
|
+
}()
|
|
161
|
+
}, {
|
|
162
|
+
key: 'onDuty',
|
|
163
|
+
value: function () {
|
|
164
|
+
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
|
|
165
|
+
var duty, result;
|
|
166
|
+
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
167
|
+
while (1) {
|
|
168
|
+
switch (_context2.prev = _context2.next) {
|
|
169
|
+
case 0:
|
|
170
|
+
_context2.next = 2;
|
|
171
|
+
return _dutyService.DutyService.checkDuty({ userId: (0, _tplusPoslogin.PosInitData)('UserID'), posCode: (0, _tplusPoslogin.PosInitData)('posCode') });
|
|
172
|
+
|
|
173
|
+
case 2:
|
|
174
|
+
duty = _context2.sent;
|
|
175
|
+
_context2.t0 = duty.dutyState;
|
|
176
|
+
_context2.next = _context2.t0 === _dutyService.DutyState.NotOnDuty ? 6 : _context2.t0 === _dutyService.DutyState.OnDuty ? 12 : _context2.t0 === _dutyService.DutyState.OtherDuty ? 14 : _context2.t0 === _dutyService.DutyState.OnOtherDuty ? 16 : 18;
|
|
177
|
+
break;
|
|
178
|
+
|
|
179
|
+
case 6:
|
|
180
|
+
_context2.next = 8;
|
|
181
|
+
return (0, _dutyService.showOnDuty)(duty.shift);
|
|
182
|
+
|
|
183
|
+
case 8:
|
|
184
|
+
result = _context2.sent;
|
|
185
|
+
|
|
186
|
+
if (!result) {
|
|
187
|
+
_context2.next = 11;
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return _context2.abrupt('return', {
|
|
192
|
+
shift: true
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
case 11:
|
|
196
|
+
return _context2.abrupt('break', 18);
|
|
197
|
+
|
|
198
|
+
case 12:
|
|
199
|
+
(0, _dutyService.showOnDutyTip)();
|
|
200
|
+
return _context2.abrupt('break', 18);
|
|
201
|
+
|
|
202
|
+
case 14:
|
|
203
|
+
(0, _dutyService.showOtherDutyTip)(duty.shift);
|
|
204
|
+
return _context2.abrupt('break', 18);
|
|
205
|
+
|
|
206
|
+
case 16:
|
|
207
|
+
(0, _dutyService.showOnOtherDutyTip)(duty.shift);
|
|
208
|
+
return _context2.abrupt('break', 18);
|
|
209
|
+
|
|
210
|
+
case 18:
|
|
211
|
+
case 'end':
|
|
212
|
+
return _context2.stop();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}, _callee2, this);
|
|
216
|
+
}));
|
|
217
|
+
|
|
218
|
+
function onDuty() {
|
|
219
|
+
return _ref2.apply(this, arguments);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
return onDuty;
|
|
223
|
+
}()
|
|
224
|
+
}, {
|
|
225
|
+
key: 'bPosDaily',
|
|
226
|
+
value: function bPosDaily() {
|
|
227
|
+
var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
|
|
228
|
+
cashierCheckAccount = _enumController$getEn.cashierCheckAccount;
|
|
229
|
+
|
|
230
|
+
return (0, _tplusPoslogin.PosInitData)('POSCheckWays') == cashierCheckAccount.BY_POS;
|
|
231
|
+
}
|
|
232
|
+
}, {
|
|
233
|
+
key: 'onMakerDaily',
|
|
234
|
+
value: function onMakerDaily() {
|
|
235
|
+
(0, _dutyService.showOnDaily)();
|
|
236
|
+
}
|
|
237
|
+
}, {
|
|
238
|
+
key: 'getSearchPlanId',
|
|
239
|
+
value: function () {
|
|
240
|
+
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(obj) {
|
|
241
|
+
var param;
|
|
242
|
+
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
243
|
+
while (1) {
|
|
244
|
+
switch (_context3.prev = _context3.next) {
|
|
245
|
+
case 0:
|
|
246
|
+
param = { searchName: obj.code, planName: obj.name };
|
|
247
|
+
_context3.next = 3;
|
|
248
|
+
return (0, _tplusApi.tApi)(param, 'chanjet.RE.NewPos.GetSearchPlanPlanID', false, false);
|
|
249
|
+
|
|
250
|
+
case 3:
|
|
251
|
+
return _context3.abrupt('return', _context3.sent);
|
|
252
|
+
|
|
253
|
+
case 4:
|
|
254
|
+
case 'end':
|
|
255
|
+
return _context3.stop();
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}, _callee3, this);
|
|
259
|
+
}));
|
|
260
|
+
|
|
261
|
+
function getSearchPlanId(_x) {
|
|
262
|
+
return _ref3.apply(this, arguments);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
return getSearchPlanId;
|
|
266
|
+
}()
|
|
267
|
+
}]);
|
|
268
|
+
return PortalStore;
|
|
269
|
+
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'themeStore', [_mobx.observable], {
|
|
270
|
+
enumerable: true,
|
|
271
|
+
initializer: function initializer() {
|
|
272
|
+
return localStorage.getItem("theme");
|
|
273
|
+
}
|
|
274
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'themeChange', [_mobx.action], {
|
|
275
|
+
enumerable: true,
|
|
276
|
+
initializer: function initializer() {
|
|
277
|
+
var _this = this;
|
|
278
|
+
|
|
279
|
+
return function (value) {
|
|
280
|
+
_this.themeStore = value;
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
})), _class);
|
|
284
|
+
exports.default = PortalStore;
|
|
285
|
+
//# sourceMappingURL=PortalStore.js.map
|