tplus-portaltouch 3.47.6 → 3.47.7
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/package.json +1 -1
- package/dist/api/ModifyPassApi.js +0 -165
- package/dist/api/ModifyPassApi.js.map +0 -1
- package/dist/components/dutyandsettle/dutysettlebill.js +0 -1030
- package/dist/components/dutyandsettle/dutysettlebill.js.map +0 -1
- package/dist/components/dutyandsettle/dutysettlehistory.js +0 -220
- package/dist/components/dutyandsettle/dutysettlehistory.js.map +0 -1
- package/dist/components/dutyandsettle/index.js +0 -25
- package/dist/components/dutyandsettle/index.js.map +0 -1
- package/dist/components/dutyandsettle/tipContent.js +0 -101
- package/dist/components/dutyandsettle/tipContent.js.map +0 -1
- package/dist/components/header/customUse.js +0 -79
- package/dist/components/header/customUse.js.map +0 -1
- package/dist/components/header/headContent.js +0 -935
- package/dist/components/header/headContent.js.map +0 -1
- package/dist/components/header/index.js +0 -107
- package/dist/components/header/index.js.map +0 -1
- package/dist/components/header/offlinePointDesc.js +0 -7
- package/dist/components/header/offlinePointDesc.js.map +0 -1
- package/dist/components/header/style.less +0 -458
- package/dist/components/header/themeModal.js +0 -164
- package/dist/components/header/themeModal.js.map +0 -1
- package/dist/components/header/uploadList.js +0 -271
- package/dist/components/header/uploadList.js.map +0 -1
- package/dist/components/header/vertical-touch.js +0 -285
- package/dist/components/header/vertical-touch.js.map +0 -1
- package/dist/components/header/vertical-touch.less +0 -229
- package/dist/containers/Main/index.js +0 -613
- package/dist/containers/Main/index.js.map +0 -1
- package/dist/dutyService/index.js +0 -276
- package/dist/dutyService/index.js.map +0 -1
- package/dist/index.js +0 -40
- package/dist/index.js.map +0 -1
- package/dist/middleWare/index.js +0 -75
- package/dist/middleWare/index.js.map +0 -1
- package/dist/modalRouter/StaticRouter.js +0 -134
- package/dist/modalRouter/StaticRouter.js.map +0 -1
- package/dist/modalRouter/index.js +0 -141
- package/dist/modalRouter/index.js.map +0 -1
- package/dist/pages/Modal/index.js +0 -71
- package/dist/pages/Modal/index.js.map +0 -1
- package/dist/pages/Modal/style.less +0 -5
- package/dist/pages/Portalbc/data.js +0 -835
- package/dist/pages/Portalbc/data.js.map +0 -1
- package/dist/pages/Portalbc/horizontalPadPortal.js +0 -129
- package/dist/pages/Portalbc/horizontalPadPortal.js.map +0 -1
- package/dist/pages/Portalbc/horizontalSunMiPortal.js +0 -130
- package/dist/pages/Portalbc/horizontalSunMiPortal.js.map +0 -1
- package/dist/pages/Portalbc/index.js +0 -1515
- package/dist/pages/Portalbc/index.js.map +0 -1
- package/dist/pages/Portalbc/index.less +0 -823
- package/dist/pages/Portalbc/onframe.js +0 -256
- package/dist/pages/Portalbc/onframe.js.map +0 -1
- package/dist/pages/Portalbc/verticalPortal.js +0 -134
- package/dist/pages/Portalbc/verticalPortal.js.map +0 -1
- package/dist/pages/dutyandsettle/AuthProcess.js +0 -42
- package/dist/pages/dutyandsettle/AuthProcess.js.map +0 -1
- package/dist/pages/dutyandsettle/index.js +0 -37
- package/dist/pages/dutyandsettle/index.js.map +0 -1
- package/dist/pages/dutyandsettle/index.less +0 -529
- package/dist/pages/dutyandsettle/offDuty.js +0 -544
- package/dist/pages/dutyandsettle/offDuty.js.map +0 -1
- package/dist/pages/dutyandsettle/onDialy.js +0 -182
- package/dist/pages/dutyandsettle/onDialy.js.map +0 -1
- package/dist/pages/dutyandsettle/onDuty.js +0 -242
- package/dist/pages/dutyandsettle/onDuty.js.map +0 -1
- package/dist/pages/dutyandsettle/onUnDaily.js +0 -138
- package/dist/pages/dutyandsettle/onUnDaily.js.map +0 -1
- package/dist/pages/dutyandsettle/settleDialy.js +0 -116
- package/dist/pages/dutyandsettle/settleDialy.js.map +0 -1
- package/dist/pages/index.js +0 -54
- package/dist/pages/index.js.map +0 -1
- package/dist/pages/modifyPass/index.js +0 -174
- package/dist/pages/modifyPass/index.js.map +0 -1
- package/dist/pages/modifyPass/style.less +0 -71
- package/dist/pages/notFound/index.js +0 -85
- package/dist/pages/notFound/index.js.map +0 -1
- package/dist/pages/notFound/style.less +0 -17
- package/dist/stores/IframeStore.js +0 -144
- package/dist/stores/IframeStore.js.map +0 -1
- package/dist/stores/ModalRouter.js +0 -182
- package/dist/stores/ModalRouter.js.map +0 -1
- package/dist/stores/ModifyPassStore.js +0 -211
- package/dist/stores/ModifyPassStore.js.map +0 -1
- package/dist/stores/PortalStore.js +0 -285
- package/dist/stores/PortalStore.js.map +0 -1
- package/dist/stores/PosLoginStore.js +0 -108
- package/dist/stores/PosLoginStore.js.map +0 -1
- package/dist/stores/billHistoryStore.js +0 -114
- package/dist/stores/billHistoryStore.js.map +0 -1
- package/dist/stores/dutySettleStore.js +0 -115
- package/dist/stores/dutySettleStore.js.map +0 -1
- package/dist/stores/index.js +0 -41
- package/dist/stores/index.js.map +0 -1
- package/dist/utils/PrintProcess.js +0 -112
- package/dist/utils/PrintProcess.js.map +0 -1
- package/dist/utils/index.js +0 -93
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/networkCheck.js +0 -33
- package/dist/utils/networkCheck.js.map +0 -1
@@ -1,256 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = undefined;
|
7
|
-
|
8
|
-
var _extends2 = require('babel-runtime/helpers/extends');
|
9
|
-
|
10
|
-
var _extends3 = _interopRequireDefault(_extends2);
|
11
|
-
|
12
|
-
var _stringify = require('babel-runtime/core-js/json/stringify');
|
13
|
-
|
14
|
-
var _stringify2 = _interopRequireDefault(_stringify);
|
15
|
-
|
16
|
-
var _assign = require('babel-runtime/core-js/object/assign');
|
17
|
-
|
18
|
-
var _assign2 = _interopRequireDefault(_assign);
|
19
|
-
|
20
|
-
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
|
21
|
-
|
22
|
-
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
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 _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
33
|
-
|
34
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
35
|
-
|
36
|
-
var _inherits2 = require('babel-runtime/helpers/inherits');
|
37
|
-
|
38
|
-
var _inherits3 = _interopRequireDefault(_inherits2);
|
39
|
-
|
40
|
-
var _class;
|
41
|
-
|
42
|
-
var _react = require('react');
|
43
|
-
|
44
|
-
var _react2 = _interopRequireDefault(_react);
|
45
|
-
|
46
|
-
var _mobxReact = require('mobx-react');
|
47
|
-
|
48
|
-
var _antd = require('antd');
|
49
|
-
|
50
|
-
var _tplusApi = require('tplus-api');
|
51
|
-
|
52
|
-
var _mutantsMicrofx = require('mutants-microfx');
|
53
|
-
|
54
|
-
var _tplusPoslogin = require('tplus-poslogin');
|
55
|
-
|
56
|
-
require('./onframe.less');
|
57
|
-
|
58
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
59
|
-
|
60
|
-
var _default = (0, _mobxReact.observer)(_class = function (_Component) {
|
61
|
-
(0, _inherits3.default)(_default, _Component);
|
62
|
-
|
63
|
-
function _default(props) {
|
64
|
-
(0, _classCallCheck3.default)(this, _default);
|
65
|
-
|
66
|
-
var _this = (0, _possibleConstructorReturn3.default)(this, (_default.__proto__ || (0, _getPrototypeOf2.default)(_default)).call(this, props));
|
67
|
-
|
68
|
-
_this.initHash = function (params) {
|
69
|
-
var content_only = params.content_only,
|
70
|
-
bar_bg = params.bar_bg,
|
71
|
-
bar_active_bg = params.bar_active_bg,
|
72
|
-
menu = params.menu,
|
73
|
-
secondRouter = params.secondRouter,
|
74
|
-
activePrompt = params.activePrompt,
|
75
|
-
closePrompt = params.closePrompt,
|
76
|
-
closeable = params.closeable,
|
77
|
-
leavePrompt = params.leavePrompt,
|
78
|
-
lock = params.lock,
|
79
|
-
pageId = params.pageId,
|
80
|
-
pageParams = params.pageParams,
|
81
|
-
path = params.path,
|
82
|
-
tabId = params.tabId,
|
83
|
-
tabLabel = params.tabLabel,
|
84
|
-
pageType = params.pageType,
|
85
|
-
_k = params._k;
|
86
|
-
|
87
|
-
|
88
|
-
var filter = {};
|
89
|
-
//对仓库参数的处理
|
90
|
-
var IdWarehouse = (0, _tplusPoslogin.PosInitData)('IdWarehouse') || '';
|
91
|
-
var WarehouseName = (0, _tplusPoslogin.PosInitData)('WarehouseName') || '';
|
92
|
-
|
93
|
-
var _ref = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
94
|
-
_ref$IdStore = _ref.IdStore,
|
95
|
-
IdStore = _ref$IdStore === undefined ? '' : _ref$IdStore,
|
96
|
-
_ref$PosId = _ref.PosId,
|
97
|
-
PosId = _ref$PosId === undefined ? '' : _ref$PosId;
|
98
|
-
|
99
|
-
var _ref2 = _mutantsMicrofx.stores.user.options.get('store') || {},
|
100
|
-
_ref2$storeName = _ref2.storeName,
|
101
|
-
storeName = _ref2$storeName === undefined ? '' : _ref2$storeName;
|
102
|
-
|
103
|
-
switch (pageType) {
|
104
|
-
case 'voucher':
|
105
|
-
filter = {
|
106
|
-
defaultValue: {
|
107
|
-
storeId: {
|
108
|
-
id: IdStore,
|
109
|
-
storeName: storeName
|
110
|
-
},
|
111
|
-
warehouseId: {
|
112
|
-
id: IdWarehouse,
|
113
|
-
name: WarehouseName
|
114
|
-
}
|
115
|
-
}
|
116
|
-
//要货单特殊处理
|
117
|
-
};if (menu == 'require-goods-new') {
|
118
|
-
filter = {
|
119
|
-
defaultValue: {
|
120
|
-
storeId: {
|
121
|
-
id: IdStore,
|
122
|
-
storeName: storeName
|
123
|
-
},
|
124
|
-
requireWarehouseId: {
|
125
|
-
id: IdWarehouse,
|
126
|
-
name: WarehouseName
|
127
|
-
}
|
128
|
-
}
|
129
|
-
};
|
130
|
-
}
|
131
|
-
break;
|
132
|
-
case 'report':
|
133
|
-
filter = {
|
134
|
-
filterValue: {
|
135
|
-
storeId: {
|
136
|
-
value: {
|
137
|
-
id: IdStore,
|
138
|
-
storeName: storeName
|
139
|
-
}
|
140
|
-
},
|
141
|
-
warehouseId: {
|
142
|
-
value: [{
|
143
|
-
id: IdWarehouse,
|
144
|
-
name: WarehouseName
|
145
|
-
}]
|
146
|
-
}
|
147
|
-
}
|
148
|
-
};
|
149
|
-
break;
|
150
|
-
}
|
151
|
-
bar_bg = encodeURIComponent(bar_bg);
|
152
|
-
bar_active_bg = encodeURIComponent(bar_active_bg);
|
153
|
-
menu = secondRouter ? menu + '/' + _this.randomWord(true, 13) : menu;
|
154
|
-
pageId = menu;
|
155
|
-
pageParams = (0, _assign2.default)(pageParams, filter);
|
156
|
-
pageParams = encodeURIComponent((0, _stringify2.default)(pageParams));
|
157
|
-
path = encodeURIComponent(path);
|
158
|
-
tabLabel = encodeURIComponent(tabLabel);
|
159
|
-
_k = _this.randomWord(false, 6);
|
160
|
-
var domain = _tplusApi.User.getWebEntry();
|
161
|
-
var commonArgs = '?posid=' + PosId + '&content_only=' + content_only + '&bar_bg=' + bar_bg + '&bar_active_bg=' + bar_active_bg;
|
162
|
-
var actionUrl = '#/' + menu + '?activePrompt=' + activePrompt + '&closePrompt=' + closePrompt + '&closeable=' + closeable + '&leavePrompt=' + leavePrompt + '&lock=' + lock + '&pageId=' + pageId + '&pageParams=' + pageParams + '&path=' + path + '&tabId=' + tabId + '&tabLabel=' + tabLabel + '&_k=' + _k;
|
163
|
-
_this.cc_url = domain.replace('#/', '') + commonArgs + actionUrl;
|
164
|
-
console.log('webEntry==============', _this.cc_url);
|
165
|
-
};
|
166
|
-
|
167
|
-
_this.randomWord = function (only, digits) {
|
168
|
-
var str = "";
|
169
|
-
var number = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
170
|
-
var letter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'];
|
171
|
-
var arr = only ? [].concat(number) : [].concat(number, letter);
|
172
|
-
for (var i = 0; i < digits; i++) {
|
173
|
-
var pos = Math.round(Math.random() * (arr.length - 1));
|
174
|
-
str += arr[pos];
|
175
|
-
}
|
176
|
-
return str;
|
177
|
-
};
|
178
|
-
|
179
|
-
_this.initIframeHeight = function () {
|
180
|
-
var iframe = document.getElementById("external-frame");
|
181
|
-
try {
|
182
|
-
var bHeight = iframe.ownerDocument.body.scrollHeight;
|
183
|
-
var dHeight = iframe.ownerDocument.documentElement.scrollHeight;
|
184
|
-
var height = Math.max(bHeight, dHeight);
|
185
|
-
iframe.height = height - 65;
|
186
|
-
} catch (ex) {}
|
187
|
-
};
|
188
|
-
|
189
|
-
_this.state = {
|
190
|
-
loading: false,
|
191
|
-
preLoad: false
|
192
|
-
};
|
193
|
-
var s = _this.getQueryString(props.location.search, 's');
|
194
|
-
var p = _this.getQueryString(props.location.search, 'p');
|
195
|
-
var style = JSON.parse(decodeURIComponent(s));
|
196
|
-
var search = JSON.parse(decodeURIComponent(p));
|
197
|
-
_this.initHash((0, _extends3.default)({}, style, search));
|
198
|
-
return _this;
|
199
|
-
}
|
200
|
-
|
201
|
-
(0, _createClass3.default)(_default, [{
|
202
|
-
key: 'getQueryString',
|
203
|
-
value: function getQueryString(search, type) {
|
204
|
-
var reg = new RegExp("(^|&)" + type + "=([^&]*)(&|$)", "i");
|
205
|
-
var r = search.substr(1).match(reg);
|
206
|
-
if (r != null) return r[2];return null;
|
207
|
-
}
|
208
|
-
}, {
|
209
|
-
key: 'componentWillMount',
|
210
|
-
value: function componentWillMount() {
|
211
|
-
rx$.changeHsy.next({ back: true, fn: null });
|
212
|
-
this.setState({ loading: true, preLoad: true });
|
213
|
-
}
|
214
|
-
}, {
|
215
|
-
key: 'componentDidMount',
|
216
|
-
value: function componentDidMount() {
|
217
|
-
var _this2 = this;
|
218
|
-
|
219
|
-
setTimeout(function () {
|
220
|
-
_this2.setState({ loading: false });
|
221
|
-
}, 1800);
|
222
|
-
setTimeout(function () {
|
223
|
-
_this2.setState({ preLoad: false });_this2.initIframeHeight();
|
224
|
-
}, 2000);
|
225
|
-
}
|
226
|
-
}, {
|
227
|
-
key: 'componentWillUnmount',
|
228
|
-
value: function componentWillUnmount() {
|
229
|
-
rx$.changeHsy.next();
|
230
|
-
}
|
231
|
-
}, {
|
232
|
-
key: 'render',
|
233
|
-
value: function render() {
|
234
|
-
var _state = this.state,
|
235
|
-
loading = _state.loading,
|
236
|
-
preLoad = _state.preLoad;
|
237
|
-
|
238
|
-
return _react2.default.createElement(
|
239
|
-
'div',
|
240
|
-
{ className: 'outerWebview' },
|
241
|
-
_react2.default.createElement(
|
242
|
-
'div',
|
243
|
-
{ className: preLoad ? 'outerbody preLoad' : 'outerbody' },
|
244
|
-
_react2.default.createElement('iframe', { src: this.cc_url, frameborder: '0', scrolling: 'no', id: 'external-frame', width: '100%', onload: 'setIframeHeight(this)' })
|
245
|
-
),
|
246
|
-
_react2.default.createElement(_antd.Spin, {
|
247
|
-
show: loading
|
248
|
-
})
|
249
|
-
);
|
250
|
-
}
|
251
|
-
}]);
|
252
|
-
return _default;
|
253
|
-
}(_react.Component)) || _class;
|
254
|
-
|
255
|
-
exports.default = _default;
|
256
|
-
//# sourceMappingURL=onframe.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/pages/Portalbc/onframe.js"],"names":["observer","props","initHash","params","content_only","bar_bg","bar_active_bg","menu","secondRouter","activePrompt","closePrompt","closeable","leavePrompt","lock","pageId","pageParams","path","tabId","tabLabel","pageType","_k","filter","IdWarehouse","WarehouseName","stores","user","options","get","IdStore","PosId","storeName","defaultValue","storeId","id","warehouseId","name","requireWarehouseId","filterValue","value","encodeURIComponent","randomWord","domain","User","getWebEntry","commonArgs","actionUrl","cc_url","replace","console","log","only","digits","str","number","letter","arr","i","pos","Math","round","random","length","initIframeHeight","iframe","document","getElementById","bHeight","ownerDocument","body","scrollHeight","dHeight","documentElement","height","max","ex","state","loading","preLoad","s","getQueryString","location","search","p","style","JSON","parse","decodeURIComponent","type","reg","RegExp","r","substr","match","rx$","changeHsy","next","back","fn","setState","setTimeout","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;mBAECA,mB;;;AAEG,sBAAYC,KAAZ,EAAmB;AAAA;;AAAA,8IACTA,KADS;;AAAA,cAanBC,QAbmB,GAaR,UAACC,MAAD,EAAY;AAAA,gBAEfC,YAFe,GAmBfD,MAnBe,CAEfC,YAFe;AAAA,gBAGfC,MAHe,GAmBfF,MAnBe,CAGfE,MAHe;AAAA,gBAIfC,aAJe,GAmBfH,MAnBe,CAIfG,aAJe;AAAA,gBAKfC,IALe,GAmBfJ,MAnBe,CAKfI,IALe;AAAA,gBAMfC,YANe,GAmBfL,MAnBe,CAMfK,YANe;AAAA,gBAOfC,YAPe,GAmBfN,MAnBe,CAOfM,YAPe;AAAA,gBAQfC,WARe,GAmBfP,MAnBe,CAQfO,WARe;AAAA,gBASfC,SATe,GAmBfR,MAnBe,CASfQ,SATe;AAAA,gBAUfC,WAVe,GAmBfT,MAnBe,CAUfS,WAVe;AAAA,gBAWfC,IAXe,GAmBfV,MAnBe,CAWfU,IAXe;AAAA,gBAYfC,MAZe,GAmBfX,MAnBe,CAYfW,MAZe;AAAA,gBAafC,UAbe,GAmBfZ,MAnBe,CAafY,UAbe;AAAA,gBAcfC,IAde,GAmBfb,MAnBe,CAcfa,IAde;AAAA,gBAefC,KAfe,GAmBfd,MAnBe,CAefc,KAfe;AAAA,gBAgBfC,QAhBe,GAmBff,MAnBe,CAgBf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BAAK,WAAU,cAAf;AACJ;AAAA;AAAA,sBAAK,WAAWA,UAAU,mBAAV,GAAgC,WAAhD;AACI,8DAAQ,KAAK,KAAK/B,MAAlB,EAA0B,aAAY,GAAtC,EAA0C,WAAU,IAApD,EAAyD,IAAG,gBAA5D,EAA6E,OAAM,MAAnF,EAA0F,QAAO,uBAAjG;AADJ,iBADI;AAIJ,8CAAC,UAAD;AACI,0BAAM8B;AADV;AAJI,aAAR;AAQH;;;EA9JwBwB,gB","file":"onframe.js","sourcesContent":["import React, { Component } from 'react';\nimport { observer } from 'mobx-react';\nimport { Spin } from 'antd';\nimport { User } from 'tplus-api';\nimport { stores, localStore } from 'mutants-microfx';\nimport { PosInitData } from 'tplus-poslogin';\nimport './onframe.less';\n\n@observer\nexport default class extends Component {\n constructor(props) {\n super(props);\n this.state = {\n loading: false,\n preLoad: false\n }\n const s = this.getQueryString(props.location.search, 's');\n const p = this.getQueryString(props.location.search, 'p');\n const style = JSON.parse(decodeURIComponent(s));\n const search = JSON.parse(decodeURIComponent(p));\n this.initHash({ ...style, ...search });\n }\n\n initHash = (params) => {\n let {\n content_only, //只加载内容区域\n bar_bg, //页签栏颜色\n bar_active_bg, //激活态的标签背景颜色\n menu,\n secondRouter,\n activePrompt,\n closePrompt,\n closeable,\n leavePrompt,\n lock,\n pageId,\n pageParams,\n path,\n tabId,\n tabLabel,\n pageType,\n _k\n } = params;\n\n let filter = {};\n //对仓库参数的处理\n const IdWarehouse = PosInitData('IdWarehouse') || '';\n const WarehouseName = PosInitData('WarehouseName') || '';\n const { IdStore = '', PosId = '' } = stores.user.options.get('loginInfo') || {};\n const { storeName = '' } = stores.user.options.get('store') || {};\n switch (pageType) {\n case 'voucher':\n filter = {\n defaultValue: {\n storeId: {\n id: IdStore,\n storeName\n },\n warehouseId: {\n id: IdWarehouse,\n name: WarehouseName\n }\n }\n }\n //要货单特殊处理\n if (menu == 'require-goods-new') {\n filter = {\n defaultValue: {\n storeId: {\n id: IdStore,\n storeName\n },\n requireWarehouseId: {\n id: IdWarehouse,\n name: WarehouseName\n }\n }\n }\n }\n break;\n case 'report':\n filter = {\n filterValue: {\n storeId: {\n value: {\n id: IdStore,\n storeName\n }\n },\n warehouseId: {\n value: [{\n id: IdWarehouse,\n name: WarehouseName\n }]\n }\n }\n }\n break;\n }\n bar_bg = encodeURIComponent(bar_bg);\n bar_active_bg = encodeURIComponent(bar_active_bg);\n menu = secondRouter ? `${menu}/${this.randomWord(true, 13)}` : menu;\n pageId = menu;\n pageParams = Object.assign(pageParams, filter);\n pageParams = encodeURIComponent(JSON.stringify(pageParams));\n path = encodeURIComponent(path);\n tabLabel = encodeURIComponent(tabLabel);\n _k = this.randomWord(false, 6);\n const domain = User.getWebEntry();\n const commonArgs = `?posid=${PosId}&content_only=${content_only}&bar_bg=${bar_bg}&bar_active_bg=${bar_active_bg}`;\n const actionUrl = `#/${menu}?activePrompt=${activePrompt}&closePrompt=${closePrompt}&closeable=${closeable}&leavePrompt=${leavePrompt}&lock=${lock}&pageId=${pageId}&pageParams=${pageParams}&path=${path}&tabId=${tabId}&tabLabel=${tabLabel}&_k=${_k}`;\n this.cc_url = domain.replace('#/', '') + commonArgs + actionUrl;\n console.log('webEntry==============', this.cc_url);\n }\n\n randomWord = (only, digits) => {\n let str = \"\";\n const number = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];\n const letter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']\n let arr = only ? [...number] : [...number, ...letter];\n for (let i = 0; i < digits; i++) {\n let pos = Math.round(Math.random() * (arr.length - 1));\n str += arr[pos];\n }\n return str;\n }\n\n getQueryString(search, type) {\n let reg = new RegExp(\"(^|&)\" + type + \"=([^&]*)(&|$)\", \"i\");\n let r = search.substr(1).match(reg);\n if (r != null) return (r[2]); return null;\n }\n\n initIframeHeight = () => {\n let iframe = document.getElementById(\"external-frame\");\n try {\n let bHeight = iframe.ownerDocument.body.scrollHeight;\n let dHeight = iframe.ownerDocument.documentElement.scrollHeight;\n let height = Math.max(bHeight, dHeight);\n iframe.height = height - 65;\n } catch (ex) { }\n }\n\n componentWillMount() {\n rx$.changeHsy.next({ back: true, fn: null })\n this.setState({ loading: true, preLoad: true })\n }\n\n componentDidMount() {\n setTimeout(() => { this.setState({ loading: false }); }, 1800);\n setTimeout(() => { this.setState({ preLoad: false }); this.initIframeHeight(); }, 2000);\n }\n\n componentWillUnmount() {\n rx$.changeHsy.next();\n }\n\n render() {\n const { loading, preLoad } = this.state;\n return (<div className=\"outerWebview\">\n <div className={preLoad ? 'outerbody preLoad' : 'outerbody'}>\n <iframe src={this.cc_url} frameborder=\"0\" scrolling=\"no\" id=\"external-frame\" width=\"100%\" onload=\"setIframeHeight(this)\"></iframe>\n </div>\n <Spin\n show={loading}\n />\n </div>)\n }\n}"]}
|
@@ -1,134 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
|
7
|
-
var _react = require('react');
|
8
|
-
|
9
|
-
var _react2 = _interopRequireDefault(_react);
|
10
|
-
|
11
|
-
var _tplusComponentsTouch = require('tplus-components-touch');
|
12
|
-
|
13
|
-
var _antd = require('antd');
|
14
|
-
|
15
|
-
var _data = require('./data');
|
16
|
-
|
17
|
-
var _data2 = _interopRequireDefault(_data);
|
18
|
-
|
19
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
20
|
-
|
21
|
-
var Content = _tplusComponentsTouch.Layout.Content,
|
22
|
-
Footer = _tplusComponentsTouch.Layout.Footer;
|
23
|
-
|
24
|
-
|
25
|
-
function VerticalPortal(props) {
|
26
|
-
return _react2.default.createElement(
|
27
|
-
_tplusComponentsTouch.Layout,
|
28
|
-
{ style: { height: '100%' }, className: 'portal-content' },
|
29
|
-
_react2.default.createElement(
|
30
|
-
Content,
|
31
|
-
{ style: { paddingLeft: '50px', paddingRight: '50px' }, className: 'portal-container' },
|
32
|
-
_react2.default.createElement(
|
33
|
-
_antd.Row,
|
34
|
-
null,
|
35
|
-
_react2.default.createElement(
|
36
|
-
_antd.Col,
|
37
|
-
{ xl: 24, md: 24, className: 'portal-center-col', key: 'center' },
|
38
|
-
_react2.default.createElement(
|
39
|
-
'div',
|
40
|
-
{ className: 'portal-center-content' },
|
41
|
-
_react2.default.createElement(VerticalPortalNode, props)
|
42
|
-
)
|
43
|
-
)
|
44
|
-
)
|
45
|
-
)
|
46
|
-
);
|
47
|
-
}
|
48
|
-
|
49
|
-
function VerticalPortalNode(props) {
|
50
|
-
var handelClick = props.handelClick;
|
51
|
-
|
52
|
-
var _ref = _data2.default || {},
|
53
|
-
centerLeftMenu = _ref.centerLeftMenu,
|
54
|
-
centerRightMenu = _ref.centerRightMenu;
|
55
|
-
|
56
|
-
var leftMenu = centerLeftMenu.filter(function (v) {
|
57
|
-
return v.key === 'cashier';
|
58
|
-
});
|
59
|
-
var hardwareSetItem = centerRightMenu.find(function (v) {
|
60
|
-
return v.sub && v.sub.find(function (vv) {
|
61
|
-
return vv.key == 'portsetting';
|
62
|
-
});
|
63
|
-
}).sub[0];
|
64
|
-
hardwareSetItem.icon = 'yingjiancanshu';
|
65
|
-
var rightMenu = [hardwareSetItem];
|
66
|
-
|
67
|
-
var menuLeftNode = leftMenu.map(function (v) {
|
68
|
-
return _react2.default.createElement(
|
69
|
-
'div',
|
70
|
-
{
|
71
|
-
className: 'worktop-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
|
72
|
-
style: v.style,
|
73
|
-
key: v.className,
|
74
|
-
onClick: function onClick() {
|
75
|
-
return handelClick(v);
|
76
|
-
}
|
77
|
-
},
|
78
|
-
v.title && _react2.default.createElement(
|
79
|
-
'h1',
|
80
|
-
null,
|
81
|
-
v.title
|
82
|
-
),
|
83
|
-
v.label && _react2.default.createElement(
|
84
|
-
'p',
|
85
|
-
null,
|
86
|
-
v.label
|
87
|
-
),
|
88
|
-
v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon }),
|
89
|
-
v.disabled && _react2.default.createElement('div', { className: 'item-disabled-placeholder' })
|
90
|
-
);
|
91
|
-
});
|
92
|
-
|
93
|
-
var menuRightNode = rightMenu.map(function (v) {
|
94
|
-
return _react2.default.createElement(
|
95
|
-
'div',
|
96
|
-
{
|
97
|
-
className: 'worktop-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
|
98
|
-
key: v.className,
|
99
|
-
onClick: function onClick() {
|
100
|
-
return handelClick(v);
|
101
|
-
}
|
102
|
-
},
|
103
|
-
v.title && _react2.default.createElement(
|
104
|
-
'h1',
|
105
|
-
null,
|
106
|
-
v.title
|
107
|
-
),
|
108
|
-
v.label && _react2.default.createElement(
|
109
|
-
'p',
|
110
|
-
null,
|
111
|
-
v.label
|
112
|
-
),
|
113
|
-
v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon })
|
114
|
-
);
|
115
|
-
});
|
116
|
-
|
117
|
-
return _react2.default.createElement(
|
118
|
-
'div',
|
119
|
-
null,
|
120
|
-
_react2.default.createElement(
|
121
|
-
'div',
|
122
|
-
{ className: 'worktop-container-left' },
|
123
|
-
menuLeftNode
|
124
|
-
),
|
125
|
-
_react2.default.createElement(
|
126
|
-
'div',
|
127
|
-
{ className: 'worktop-container-right' },
|
128
|
-
menuRightNode
|
129
|
-
)
|
130
|
-
);
|
131
|
-
}
|
132
|
-
|
133
|
-
exports.default = VerticalPortal;
|
134
|
-
//# sourceMappingURL=verticalPortal.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/pages/Portalbc/verticalPortal.js"],"names":["Content","Layout","Footer","VerticalPortal","props","height","paddingLeft","paddingRight","VerticalPortalNode","handelClick","Menus","centerLeftMenu","centerRightMenu","leftMenu","filter","v","key","hardwareSetItem","find","sub","vv","icon","rightMenu","menuLeftNode","map","className","disabled","style","title","label","menuRightNode"],"mappings":";;;;;;AAAA;;;;AACA;;AACA;;AACA;;;;;;IACQA,O,GAAoBC,4B,CAApBD,O;IAASE,M,GAAWD,4B,CAAXC,M;;;AAEjB,SAASC,cAAT,CAAwBC,KAAxB,EAA+B;AAC7B,SACE;AAAC,gCAAD;AAAA,MAAQ,OAAO,EAAEC,QAAQ,MAAV,EAAf,EAAmC,WAAU,gBAA7C;AACE;AAAC,aAAD;AAAA,QAAS,OAAO,EAAEC,aAAa,MAAf,EAAuBC,cAAc,MAArC,EAAhB,EAA+D,WAAU,kBAAzE;AACE;AAAC,iBAAD;AAAA;AACE;AAAC,mBAAD;AAAA,YAAK,IAAI,EAAT,EAAa,IAAI,EAAjB,EAAqB,WAAU,mBAA/B,EAAmD,KAAI,QAAvD;AACE;AAAA;AAAA,cAAK,WAAU,uBAAf;AACE,0CAAC,kBAAD,EAAwBH,KAAxB;AADF;AADF;AADF;AADF;AADF,GADF;AAaD;;AAED,SAASI,kBAAT,CAA4BJ,KAA5B,EAAmC;AAAA,MACzBK,WADyB,GACTL,KADS,CACzBK,WADyB;;AAAA,aAEWC,kBAAS,EAFpB;AAAA,MAEzBC,cAFyB,QAEzBA,cAFyB;AAAA,MAETC,eAFS,QAETA,eAFS;;AAGjC,MAAMC,WAAWF,eAAeG,MAAf,CAAsB;AAAA,WAAKC,EAAEC,GAAF,KAAU,SAAf;AAAA,GAAtB,CAAjB;AACA,MAAMC,kBAAkBL,gBAAgBM,IAAhB,CAAqB;AAAA,WAAKH,EAAEI,GAAF,IAASJ,EAAEI,GAAF,CAAMD,IAAN,CAAW;AAAA,aAAME,GAAGJ,GAAH,IAAU,aAAhB;AAAA,KAAX,CAAd;AAAA,GAArB,EAA8EG,GAA9E,CAAkF,CAAlF,CAAxB;AACAF,kBAAgBI,IAAhB,GAAuB,gBAAvB;AACA,MAAMC,YAAY,CAACL,eAAD,CAAlB;;AAEA,MAAMM,eAAeV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 'tplus-components-touch';\nimport { Row, Col } from 'antd';\nimport Menus from './data';\nconst { Content, Footer } = Layout;\n\nfunction VerticalPortal(props) {\n return (\n <Layout style={{ height: '100%' }} className='portal-content'>\n <Content style={{ paddingLeft: '50px', paddingRight: '50px' }} className='portal-container'>\n <Row>\n <Col xl={24} md={24} className='portal-center-col' key='center'>\n <div className='portal-center-content'>\n <VerticalPortalNode {...props} />\n </div>\n </Col>\n </Row>\n </Content>\n </Layout>\n );\n}\n\nfunction VerticalPortalNode(props) {\n const { handelClick } = props;\n const { centerLeftMenu, centerRightMenu } = Menus || {};\n const leftMenu = centerLeftMenu.filter(v => v.key === 'cashier');\n const hardwareSetItem = centerRightMenu.find(v => v.sub && v.sub.find(vv => vv.key == 'portsetting')).sub[0];\n hardwareSetItem.icon = 'yingjiancanshu';\n const rightMenu = [hardwareSetItem];\n\n const menuLeftNode = leftMenu.map(v => <div\n className={`worktop-item ${v.className} ${v.disabled ? 'menu-item-disabled' : ''}`}\n style={v.style}\n key={v.className}\n onClick={() => handelClick(v)}\n >\n {v.title && <h1>{v.title}</h1>}\n {v.label && <p>{v.label}</p>}\n {v.icon && <Ticon icon={v.icon} />}\n {v.disabled && <div className='item-disabled-placeholder' />}\n </div>);\n\n const menuRightNode = rightMenu.map(v => (<div\n className={`worktop-item ${v.className} ${v.disabled ? 'menu-item-disabled' : ''}`}\n key={v.className}\n onClick={() => handelClick(v)}\n >\n {v.title && <h1>{v.title}</h1>}\n {v.label && <p>{v.label}</p>}\n {v.icon && <Ticon icon={v.icon} />}\n </div>)\n );\n\n return (<div>\n <div className='worktop-container-left'>{menuLeftNode}</div>\n <div className='worktop-container-right'>{menuRightNode}</div>\n </div>);\n}\n\nexport default VerticalPortal;"]}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.AuthProcess = undefined;
|
7
|
-
|
8
|
-
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
9
|
-
|
10
|
-
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
11
|
-
|
12
|
-
var _createClass2 = require('babel-runtime/helpers/createClass');
|
13
|
-
|
14
|
-
var _createClass3 = _interopRequireDefault(_createClass2);
|
15
|
-
|
16
|
-
var _tplusPoslogin = require('tplus-poslogin');
|
17
|
-
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
|
-
|
20
|
-
var AuthProcess = exports.AuthProcess = function () {
|
21
|
-
function AuthProcess() {
|
22
|
-
(0, _classCallCheck3.default)(this, AuthProcess);
|
23
|
-
}
|
24
|
-
|
25
|
-
(0, _createClass3.default)(AuthProcess, null, [{
|
26
|
-
key: 'execute',
|
27
|
-
value: function execute(name) {
|
28
|
-
var operations = (0, _tplusPoslogin.PosInitData)('FunctionAuth');
|
29
|
-
if (operations) {
|
30
|
-
for (var index = 0; index < operations.length; index++) {
|
31
|
-
var operation = operations[index];
|
32
|
-
if (name + '' == operation + '') {
|
33
|
-
return true;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
return false;
|
38
|
-
}
|
39
|
-
}]);
|
40
|
-
return AuthProcess;
|
41
|
-
}();
|
42
|
-
//# sourceMappingURL=AuthProcess.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/pages/dutyandsettle/AuthProcess.js"],"names":["AuthProcess","name","operations","index","length","operation"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;IACaA,W,WAAAA,W;;;;;;;gCACMC,I,EAAM;AACjB,gBAAIC,aAAa,gCAAY,cAAZ,CAAjB;AACA,gBAAIA,UAAJ,EAAgB;AACZ,qBAAK,IAAIC,QAAQ,CAAjB,EAAoBA,QAAQD,WAAWE,MAAvC,EAA+CD,OAA/C,EAAwD;AACpD,wBAAME,YAAYH,WAAWC,KAAX,CAAlB;AACA,wBAAKF,OAAO,EAAR,IAAgBI,YAAY,EAAhC,EAAqC;AACjC,+BAAO,IAAP;AACH;AACJ;AACJ;AACD,mBAAO,KAAP;AACH","file":"AuthProcess.js","sourcesContent":["import { PosInitData } from 'tplus-poslogin';\nexport class AuthProcess {\n static execute(name) {\n let operations = PosInitData('FunctionAuth');\n if (operations) {\n for (let index = 0; index < operations.length; index++) {\n const operation = operations[index];\n if ((name + '') == (operation + '')) {\n return true;\n }\n }\n }\n return false\n }\n}"]}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.OnUnDaily = exports.OnDaily = exports.SettleDialy = exports.OffDuty = exports.OnDuty = undefined;
|
7
|
-
|
8
|
-
require('./index.less');
|
9
|
-
|
10
|
-
var _onDuty = require('./onDuty');
|
11
|
-
|
12
|
-
var _onDuty2 = _interopRequireDefault(_onDuty);
|
13
|
-
|
14
|
-
var _offDuty = require('./offDuty');
|
15
|
-
|
16
|
-
var _offDuty2 = _interopRequireDefault(_offDuty);
|
17
|
-
|
18
|
-
var _settleDialy = require('./settleDialy');
|
19
|
-
|
20
|
-
var _settleDialy2 = _interopRequireDefault(_settleDialy);
|
21
|
-
|
22
|
-
var _onDialy = require('./onDialy');
|
23
|
-
|
24
|
-
var _onDialy2 = _interopRequireDefault(_onDialy);
|
25
|
-
|
26
|
-
var _onUnDaily = require('./onUnDaily');
|
27
|
-
|
28
|
-
var _onUnDaily2 = _interopRequireDefault(_onUnDaily);
|
29
|
-
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
31
|
-
|
32
|
-
exports.OnDuty = _onDuty2.default;
|
33
|
-
exports.OffDuty = _offDuty2.default;
|
34
|
-
exports.SettleDialy = _settleDialy2.default;
|
35
|
-
exports.OnDaily = _onDialy2.default;
|
36
|
-
exports.OnUnDaily = _onUnDaily2.default;
|
37
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/pages/dutyandsettle/index.js"],"names":["OnDuty","OffDuty","SettleDialy","OnDaily","OnUnDaily"],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;QAEOA,M;QACAC,O;QACAC,W;QACAC,O;QACAC,S","file":"index.js","sourcesContent":["import './index.less'\n\nexport OnDuty from './onDuty'\nexport OffDuty from './offDuty'\nexport SettleDialy from './settleDialy'\nexport OnDaily from './onDialy'\nexport OnUnDaily from './onUnDaily'"]}
|