tplus-components-touch 3.17.11 → 3.17.15
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/components/addLog/AddLogProcessor.js +1 -5
- package/dist/components/addLog/AddLogProcessor.js.map +1 -1
- package/dist/components/addLog/OperationLogApi.js +6 -45
- package/dist/components/addLog/OperationLogApi.js.map +1 -1
- package/dist/components/settlement/settlement.js +6 -4
- package/dist/components/settlement/settlement.js.map +1 -1
- package/package.json +1 -1
|
@@ -28,11 +28,7 @@ var AddLogProcessor = function () {
|
|
|
28
28
|
key: 'execute',
|
|
29
29
|
value: function execute(title, docno, description, isShow) {
|
|
30
30
|
try {
|
|
31
|
-
|
|
32
|
-
_OperationLogApi2.default.addPosLog(title, docno, description);
|
|
33
|
-
} else {
|
|
34
|
-
_OperationLogApi2.default.addPosLogWithShow(title, docno, description, isShow);
|
|
35
|
-
}
|
|
31
|
+
_OperationLogApi2.default.addPosLogWithShow(title, docno, description, !!isShow);
|
|
36
32
|
} catch (e) {
|
|
37
33
|
console.error('操作日志接口调用异常');
|
|
38
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/addLog/AddLogProcessor.js"],"names":["AddLogProcessor","title","docno","description","isShow","
|
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/addLog/AddLogProcessor.js"],"names":["AddLogProcessor","title","docno","description","isShow","OperationLogApi","addPosLogWithShow","e","console","error"],"mappings":";;;;;;;;;;;;;;;AAQA;;;;;;IACqBA,e;;;;;;;gCACFC,K,EAAOC,K,EAAOC,W,EAAaC,M,EAAQ;AAC9C,gBAAG;AACCC,0CAAgBC,iBAAhB,CAAkCL,KAAlC,EAAyCC,KAAzC,EAAgDC,WAAhD,EAA4D,CAAC,CAACC,MAA9D;AACH,aAFD,CAGA,OAAOG,CAAP,EAAU;AACNC,wBAAQC,KAAR,CAAc,YAAd;AACH;AACJ;;;;AAhBL;;;;;;;;;kBAQqBT,e","file":"AddLogProcessor.js","sourcesContent":["\r\n/**\r\n *POS 操作日志\r\n *\r\n * @export\r\n * @class AddLogProcessor\r\n * @auther tuzha\r\n */\r\nimport OperationLogApi from './OperationLogApi'\r\nexport default class AddLogProcessor {\r\n static execute(title, docno, description, isShow) {\r\n try{\r\n OperationLogApi.addPosLogWithShow(title, docno, description,!!isShow);\r\n }\r\n catch (e) {\r\n console.error('操作日志接口调用异常');\r\n } \r\n }\r\n}"]}
|
|
@@ -79,13 +79,12 @@ var OperationLogApi = function () {
|
|
|
79
79
|
|
|
80
80
|
return log;
|
|
81
81
|
}()
|
|
82
|
-
|
|
83
82
|
//添加POS操作日志
|
|
84
83
|
|
|
85
84
|
}, {
|
|
86
|
-
key: '
|
|
85
|
+
key: 'addPosLogWithShow',
|
|
87
86
|
value: function () {
|
|
88
|
-
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(title, docno, description) {
|
|
87
|
+
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(title, docno, description, isShow) {
|
|
89
88
|
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
90
89
|
while (1) {
|
|
91
90
|
switch (_context2.prev = _context2.next) {
|
|
@@ -94,12 +93,12 @@ var OperationLogApi = function () {
|
|
|
94
93
|
docno = " ";
|
|
95
94
|
}
|
|
96
95
|
_context2.next = 3;
|
|
97
|
-
return (0, _tplusApi.
|
|
96
|
+
return (0, _tplusApi.addOperatorLog)({
|
|
98
97
|
title: title,
|
|
99
98
|
code: docno,
|
|
100
99
|
description: description,
|
|
101
|
-
isShow:
|
|
102
|
-
}
|
|
100
|
+
isShow: isShow
|
|
101
|
+
});
|
|
103
102
|
|
|
104
103
|
case 3:
|
|
105
104
|
return _context2.abrupt('return', _context2.sent);
|
|
@@ -112,48 +111,10 @@ var OperationLogApi = function () {
|
|
|
112
111
|
}, _callee2, this);
|
|
113
112
|
}));
|
|
114
113
|
|
|
115
|
-
function
|
|
114
|
+
function addPosLogWithShow(_x2, _x3, _x4, _x5) {
|
|
116
115
|
return _ref2.apply(this, arguments);
|
|
117
116
|
}
|
|
118
117
|
|
|
119
|
-
return addPosLog;
|
|
120
|
-
}()
|
|
121
|
-
//添加POS操作日志
|
|
122
|
-
|
|
123
|
-
}, {
|
|
124
|
-
key: 'addPosLogWithShow',
|
|
125
|
-
value: function () {
|
|
126
|
-
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(title, docno, description, isShow) {
|
|
127
|
-
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
128
|
-
while (1) {
|
|
129
|
-
switch (_context3.prev = _context3.next) {
|
|
130
|
-
case 0:
|
|
131
|
-
if (!docno) {
|
|
132
|
-
docno = " ";
|
|
133
|
-
}
|
|
134
|
-
_context3.next = 3;
|
|
135
|
-
return (0, _tplusApi.tApi)({
|
|
136
|
-
title: title,
|
|
137
|
-
code: docno,
|
|
138
|
-
description: description,
|
|
139
|
-
isShow: isShow
|
|
140
|
-
}, 'chanjet.RE.NewPos.AddPosLog', false, false, { timeout_skip: true });
|
|
141
|
-
|
|
142
|
-
case 3:
|
|
143
|
-
return _context3.abrupt('return', _context3.sent);
|
|
144
|
-
|
|
145
|
-
case 4:
|
|
146
|
-
case 'end':
|
|
147
|
-
return _context3.stop();
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}, _callee3, this);
|
|
151
|
-
}));
|
|
152
|
-
|
|
153
|
-
function addPosLogWithShow(_x5, _x6, _x7, _x8) {
|
|
154
|
-
return _ref3.apply(this, arguments);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
118
|
return addPosLogWithShow;
|
|
158
119
|
}()
|
|
159
120
|
}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/addLog/OperationLogApi.js"],"names":["OperationLogApi","params","operationName","description","bringType","strModuleCode","strFunctionCode","strOperationName","status","strDocNo","strDescription","dtFunctionDate","tools","getCurDateTime","title","docno","
|
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/addLog/OperationLogApi.js"],"names":["OperationLogApi","params","operationName","description","bringType","strModuleCode","strFunctionCode","strOperationName","status","strDocNo","strDescription","dtFunctionDate","tools","getCurDateTime","title","docno","isShow","code"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;AACA;;;;IAIqBA,e;;;;;;;;AACjB;;iHACiBC,M;;;;;;AACNC,6C,GAA6BD,M,CAA7BC,a,EAAcC,W,GAAeF,M,CAAfE,W;;uCACR,oBAAK;AACdC,+CAAW,GADG;AAEdC,mDAAe,IAFD;AAGdC,qDAAiB,QAHH;AAIdC,sDAAkBL,aAJJ;AAKdM,4CAAQ,CALM;AAMdC,8CAAU,SANI;AAOdC,oDAAgBP,WAPF;AAQdQ,oDAAgBC,gBAAMC,cAAN;AARF,iCAAL,EASV,wDATU,EASgD,KAThD,EASuD,KATvD,C;;;;;;;;;;;;;;;;;;;AAWhB;;;;;mHAC8BC,K,EAAMC,K,EAAMZ,W,EAAYa,M;;;;;AAEnD,oCAAG,CAACD,KAAJ,EACA;AACIA,4CAAM,GAAN;AACH;;uCACY,8BAAe;AACxBD,2CAAOA,KADiB;AAExBG,0CAAMF,KAFkB;AAGxBZ,iDAAaA,WAHW;AAIxBa,4CAAOA;AAJiB,iCAAf,C;;;;;;;;;;;;;;;;;;;;;;;kBAtBAhB,e","file":"OperationLogApi.js","sourcesContent":["import { tApi,addOperatorLog } from 'tplus-api';\r\nimport tools from '../../util/tools';\r\n/**\r\n * 记操作日志API\r\n * POS端每个操作都需要在T+的表EAP_OPERATION\r\n */\r\nexport default class OperationLogApi {\r\n //获取存货明细信息\r\n static async log(params) {\r\n const {operationName,description} = params;\r\n return await tApi({\r\n bringType: '1',\r\n strModuleCode: 'RE',\r\n strFunctionCode: 'RE3002',\r\n strOperationName: operationName,\r\n status: 1,\r\n strDocNo: '1234567',\r\n strDescription: description,\r\n dtFunctionDate: tools.getCurDateTime(),\r\n }, 'chanjet.SM.CommonInterface.IOperationLogService.AddLog', false, false);\r\n }\r\n //添加POS操作日志\r\n static async addPosLogWithShow(title,docno,description,isShow)\r\n {\r\n if(!docno)\r\n {\r\n docno=\" \";\r\n }\r\n return await addOperatorLog({\r\n title: title,\r\n code: docno,\r\n description: description,\r\n isShow:isShow\r\n });\r\n }\r\n}\r\n\r\n"]}
|
|
@@ -276,7 +276,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
if (b.lastChild) {
|
|
279
|
-
|
|
279
|
+
// 原来bWidth < cWidth,过渡过程中右边按钮会隐藏,+20之后解决
|
|
280
|
+
if (bWidth < cWidth + 20) {
|
|
280
281
|
b.lastChild.className = 'btns voucherMode';
|
|
281
282
|
} else {
|
|
282
283
|
b.lastChild.className = 'btns';
|
|
@@ -961,7 +962,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
961
962
|
Differentiate = _enumController$getEn7.Differentiate;
|
|
962
963
|
|
|
963
964
|
paymode.currentMode = null;
|
|
964
|
-
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(key)) return false;
|
|
965
965
|
switch (key) {
|
|
966
966
|
case PayStyle.hyczk:
|
|
967
967
|
_this2.showCzkModal(-1);
|
|
@@ -1164,6 +1164,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1164
1164
|
};
|
|
1165
1165
|
|
|
1166
1166
|
_this2.handleChange = function (index, e) {
|
|
1167
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(_this2.store.paymode.currentFocus)) return;
|
|
1167
1168
|
var currentInput = e.target;
|
|
1168
1169
|
var amountMaxLength = parseInt(_this2.props.initData["AmountMaxLength"] || 10);
|
|
1169
1170
|
if (!isNaN(e.target.value) || e.target.value == '-') {
|
|
@@ -1281,6 +1282,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1281
1282
|
};
|
|
1282
1283
|
|
|
1283
1284
|
_this2.onHotKeyClick1 = function (mode, index, boriginReturn) {
|
|
1285
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
|
1284
1286
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
|
1285
1287
|
return;
|
|
1286
1288
|
}
|
|
@@ -1320,6 +1322,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1320
1322
|
};
|
|
1321
1323
|
|
|
1322
1324
|
_this2.onHotKeyClick2 = function (index, mode, paymode, e) {
|
|
1325
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
|
1323
1326
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
|
1324
1327
|
return;
|
|
1325
1328
|
}
|
|
@@ -1374,7 +1377,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1374
1377
|
thePaymodes.forEach(function (paymodes, index) {
|
|
1375
1378
|
if (paymodes.paymethodId == _this2.state.currentIndex) payIndex = index;
|
|
1376
1379
|
});
|
|
1377
|
-
|
|
1378
1380
|
_this2.setFocusAndSelectionMode(thePaymodes, payIndex);
|
|
1379
1381
|
}
|
|
1380
1382
|
}, 500, {
|
|
@@ -1420,7 +1422,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1420
1422
|
var findIndex = currenIndex;
|
|
1421
1423
|
var endCurrentMode = thePaymodes.find(function (mode, index) {
|
|
1422
1424
|
findIndex++;
|
|
1423
|
-
return (symbol ? index > currenIndex : index < currenIndex) && mode.paymentType != PayStyle.hyczk && mode.paymentType != PayStyle.djq && mode.paymentType != PayStyle.jfdx;
|
|
1425
|
+
return (symbol ? index > currenIndex : index < currenIndex) && mode.paymentType != PayStyle.hyczk && mode.paymentType != PayStyle.djq && mode.paymentType != PayStyle.jfdx && _mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType, true);
|
|
1424
1426
|
});
|
|
1425
1427
|
if (endCurrentMode) return { mode: endCurrentMode, index: findIndex };
|
|
1426
1428
|
return null;
|