tplus-components-touch 3.23.1 → 3.23.2
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/billSearch/index.js +64 -4
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +12 -2
- package/dist/components/cloudPrint/api.js +1 -1
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js +114 -106
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +223 -0
- package/dist/components/cloudPrint/printDispatch.js.map +1 -0
- package/dist/components/commonForm/addressPicker/index.js +4 -2
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/formControl/index.js +3 -0
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +14 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/keyboard/index.js +1 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/loading/index.js +5 -0
- package/dist/components/loading/index.js.map +1 -1
- package/dist/components/loading/loadingContent.js +23 -6
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +12 -2
- package/dist/components/message/index.js +11 -0
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +16 -1
- package/dist/components/modalWraper/style.less +6 -0
- package/dist/components/settlement/settlement.js +487 -312
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +87 -13
- package/dist/components/settlement/settlementStore.js +495 -220
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js +1 -1
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +5202 -4949
- package/dist/components/ticon/iconfont/iconfont.css +887 -843
- package/dist/components/ticon/iconfont/iconfont.js +1 -1
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.json +1535 -1458
- package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
- package/dist/components/touchTable/index.js +8 -0
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -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"]}
|
|
@@ -357,6 +357,7 @@ var BillSearch = function (_React$Component) {
|
|
|
357
357
|
value3 = _this$state2.value3,
|
|
358
358
|
value4 = _this$state2.value4,
|
|
359
359
|
value5 = _this$state2.value5,
|
|
360
|
+
value6 = _this$state2.value6,
|
|
360
361
|
option = _this$state2.option;
|
|
361
362
|
|
|
362
363
|
return (0, _extends5.default)({
|
|
@@ -368,6 +369,7 @@ var BillSearch = function (_React$Component) {
|
|
|
368
369
|
KeyType: type === 2 ? '1' : '0', //区分原单退货与单据查询
|
|
369
370
|
Inventory: value4, //string 商品名称(条形码、助记码、商品编码、商品名称)
|
|
370
371
|
Member: value5, //string 会员(会员卡号、手机号、会员名称)
|
|
372
|
+
SerialNumber: value6,
|
|
371
373
|
VoucherType: '', // int 单据业务类型,下拉单选,返回对应业务类型Id
|
|
372
374
|
VoucherState: '', // int 单据状态,下拉单选,返回枚举Id
|
|
373
375
|
Navigator: '', // string 导购,多选,返回导购Id,多个用英文逗号隔开,如:1,2,3,4
|
|
@@ -613,6 +615,18 @@ var BillSearch = function (_React$Component) {
|
|
|
613
615
|
_index.Message.warn('至少选择一个退货信息');
|
|
614
616
|
return;
|
|
615
617
|
}
|
|
618
|
+
var noSerialNumberList = selectedList.filter(function (item) {
|
|
619
|
+
var obj = item.RetailDetailDTO;
|
|
620
|
+
//商品是序列号但原单未录
|
|
621
|
+
if (obj.Inventory && obj.Inventory.IsSerialNumber && !obj.SerialNumber) {
|
|
622
|
+
return true;
|
|
623
|
+
}
|
|
624
|
+
return false;
|
|
625
|
+
});
|
|
626
|
+
if (noSerialNumberList && noSerialNumberList.length > 0) {
|
|
627
|
+
_index.Message.warn('原单中的序列号商品缺少序列号,请使用非原单退货!');
|
|
628
|
+
return;
|
|
629
|
+
}
|
|
616
630
|
var infoList = selectedList.filter(function (item) {
|
|
617
631
|
var obj = item.RetailDetailDTO;
|
|
618
632
|
if (obj.PromotionTypeStr || obj.PromotionIdStr || obj.PromotionCode) {
|
|
@@ -869,6 +883,10 @@ var BillSearch = function (_React$Component) {
|
|
|
869
883
|
_this.setState({
|
|
870
884
|
value5: ''
|
|
871
885
|
});
|
|
886
|
+
} else if (type === 'value6') {
|
|
887
|
+
_this.setState({
|
|
888
|
+
value6: ''
|
|
889
|
+
});
|
|
872
890
|
} else {
|
|
873
891
|
// 剩下的一些单选
|
|
874
892
|
_this.setState({
|
|
@@ -892,6 +910,7 @@ var BillSearch = function (_React$Component) {
|
|
|
892
910
|
value3: '',
|
|
893
911
|
value4: '',
|
|
894
912
|
value5: '',
|
|
913
|
+
value6: '',
|
|
895
914
|
tableDataList: [],
|
|
896
915
|
show: false,
|
|
897
916
|
isLook: true, //区别查看、退货
|
|
@@ -1224,6 +1243,7 @@ var BillSearch = function (_React$Component) {
|
|
|
1224
1243
|
value3 = _state.value3,
|
|
1225
1244
|
value4 = _state.value4,
|
|
1226
1245
|
value5 = _state.value5,
|
|
1246
|
+
value6 = _state.value6,
|
|
1227
1247
|
tableDataList = _state.tableDataList,
|
|
1228
1248
|
show = _state.show,
|
|
1229
1249
|
isLook = _state.isLook,
|
|
@@ -1283,7 +1303,8 @@ var BillSearch = function (_React$Component) {
|
|
|
1283
1303
|
line = isSpecialQuery ? 10 : isEnableMinMall ? 9 : 7;
|
|
1284
1304
|
}
|
|
1285
1305
|
|
|
1286
|
-
|
|
1306
|
+
// let billTitleHeight = (30 + 16) * line + 30 - 8;
|
|
1307
|
+
var billTitleHeight = 240;
|
|
1287
1308
|
|
|
1288
1309
|
if (!searchFilterItemShow) {
|
|
1289
1310
|
billTitleHeight = 0;
|
|
@@ -1298,7 +1319,8 @@ var BillSearch = function (_React$Component) {
|
|
|
1298
1319
|
var billContentHeight = "calc(100% - " + otherHeight + "px)";
|
|
1299
1320
|
|
|
1300
1321
|
var isEnableMember = (0, _tplusPoslogin.PosInitData)('isEnableMember');
|
|
1301
|
-
|
|
1322
|
+
//启用序列号
|
|
1323
|
+
var isEnableSerialNumber = (0, _tplusPoslogin.PosInitData)("IsEnableSerialNumber");
|
|
1302
1324
|
return _react2.default.createElement(
|
|
1303
1325
|
'div',
|
|
1304
1326
|
{ className: 'bill' },
|
|
@@ -1388,13 +1410,51 @@ var BillSearch = function (_React$Component) {
|
|
|
1388
1410
|
_react2.default.createElement(_input2.default, { type: 'text',
|
|
1389
1411
|
placeholder: '\u6761\u5F62\u7801/\u52A9\u8BB0\u7801/\u5546\u54C1\u7F16\u7801/\u5546\u54C1\u540D\u79F0',
|
|
1390
1412
|
value: value4,
|
|
1391
|
-
className: 'bill-title-txt-input',
|
|
1413
|
+
className: 'bill-title-txt-input android_focus_keyboard',
|
|
1392
1414
|
onChange: this.onChange.bind(this, 4),
|
|
1393
1415
|
onClick: this.onFocus.bind(this, 4),
|
|
1394
1416
|
ref: function ref(input) {
|
|
1395
1417
|
return _this4.input4 = input;
|
|
1396
1418
|
} })
|
|
1397
1419
|
),
|
|
1420
|
+
isEnableSerialNumber === 'true' && _react2.default.createElement(
|
|
1421
|
+
'div',
|
|
1422
|
+
{ className: 'bill-title-item' },
|
|
1423
|
+
_react2.default.createElement(
|
|
1424
|
+
'label',
|
|
1425
|
+
null,
|
|
1426
|
+
_react2.default.createElement(
|
|
1427
|
+
'span',
|
|
1428
|
+
null,
|
|
1429
|
+
'\u5E8F'
|
|
1430
|
+
),
|
|
1431
|
+
_react2.default.createElement(
|
|
1432
|
+
'span',
|
|
1433
|
+
null,
|
|
1434
|
+
'\u5217'
|
|
1435
|
+
),
|
|
1436
|
+
_react2.default.createElement(
|
|
1437
|
+
'span',
|
|
1438
|
+
null,
|
|
1439
|
+
'\u53F7'
|
|
1440
|
+
)
|
|
1441
|
+
),
|
|
1442
|
+
':',
|
|
1443
|
+
_react2.default.createElement(
|
|
1444
|
+
'div',
|
|
1445
|
+
{ className: 'bill-title-item-all ' + (value6 ? '' : 'text-default'), onClick: this.onClickAll.bind(this, 'value6') },
|
|
1446
|
+
'\u5168\u90E8'
|
|
1447
|
+
),
|
|
1448
|
+
_react2.default.createElement(_input2.default, { type: 'text',
|
|
1449
|
+
placeholder: '\u8BF7\u8F93\u5165\u5E8F\u5217\u53F7',
|
|
1450
|
+
value: value6,
|
|
1451
|
+
className: 'bill-title-txt-input',
|
|
1452
|
+
onChange: this.onChange.bind(this, 6),
|
|
1453
|
+
onClick: this.onFocus.bind(this, 6),
|
|
1454
|
+
ref: function ref(input) {
|
|
1455
|
+
return _this4.input6 = input;
|
|
1456
|
+
} })
|
|
1457
|
+
),
|
|
1398
1458
|
isEnableMember && _react2.default.createElement(
|
|
1399
1459
|
'div',
|
|
1400
1460
|
{ className: 'bill-title-item' },
|
|
@@ -1423,7 +1483,7 @@ var BillSearch = function (_React$Component) {
|
|
|
1423
1483
|
_react2.default.createElement(_input2.default, { type: 'text',
|
|
1424
1484
|
placeholder: '\u4F1A\u5458\u5361\u53F7/\u624B\u673A\u53F7/\u4F1A\u5458\u540D\u79F0',
|
|
1425
1485
|
value: value5,
|
|
1426
|
-
className: 'bill-title-txt-input',
|
|
1486
|
+
className: 'bill-title-txt-input android_focus_keyboard',
|
|
1427
1487
|
onChange: this.onChange.bind(this, 5),
|
|
1428
1488
|
onClick: this.onFocus.bind(this, 5),
|
|
1429
1489
|
ref: function ref(input) {
|