@kmkf-fe-packages/kmkf-work-order-service-component 0.10.2-alpha.1 → 0.10.3-alpha.0
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.
|
@@ -698,7 +698,11 @@ var FormRender = function FormRender(props) {
|
|
|
698
698
|
}
|
|
699
699
|
// TODO: 如果依赖的组件是隐藏的,当前依赖项为false
|
|
700
700
|
if (Reflect.has(currentComponentDisplayStatus.current, item.leftValue) && !currentComponentDisplayStatus.current[item.leftValue]) {
|
|
701
|
-
console.log(
|
|
701
|
+
// console.log(
|
|
702
|
+
// 'every',
|
|
703
|
+
// item.leftValue,
|
|
704
|
+
// currentComponentDisplayStatus.current[item.leftValue],
|
|
705
|
+
// );
|
|
702
706
|
return false;
|
|
703
707
|
}
|
|
704
708
|
return getExpression((_item$compareSymbol = item.compareSymbol) === null || _item$compareSymbol === void 0 ? void 0 : _item$compareSymbol.toUpperCase(), leftValue, item.rightValue);
|
package/dist/esm/Login/index.js
CHANGED
|
@@ -120,7 +120,7 @@ var Login = function Login(props) {
|
|
|
120
120
|
dispatch(fetchLogin({
|
|
121
121
|
name: name.trim(),
|
|
122
122
|
account: account.trim(),
|
|
123
|
-
password: isDirect ? password
|
|
123
|
+
password: isDirect ? password : md5(password)
|
|
124
124
|
})).unwrap().then( /*#__PURE__*/function () {
|
|
125
125
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
126
126
|
var data, success;
|
|
@@ -202,7 +202,7 @@ var Login = function Login(props) {
|
|
|
202
202
|
case 3:
|
|
203
203
|
whiteList = _context3.sent;
|
|
204
204
|
whiteListArr = whiteList ? whiteList.split(',') : []; // 判断该用户是否在灰度白名单内
|
|
205
|
-
isHdWhiteList = name !== '' && whiteListArr.indexOf(name) > -1;
|
|
205
|
+
isHdWhiteList = name !== '' && whiteListArr.indexOf(name.trim()) > -1;
|
|
206
206
|
cache.setGrayEnv(+isHdWhiteList);
|
|
207
207
|
if (isHdWhiteList) {
|
|
208
208
|
cache.setHost(HD_HOST);
|
|
@@ -1253,16 +1253,19 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1253
1253
|
var bsExchangeType = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsExchangeType")], []);
|
|
1254
1254
|
var bsExchangeReturnGoods = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsExchangeReturnGoods")], []);
|
|
1255
1255
|
var bsExchangeSwapOutGoods = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsExchangeSwapOutGoods")], []);
|
|
1256
|
-
console.log(bsExchangeReturnGoods);
|
|
1256
|
+
// console.log('bsExchangeReturnGoods', bsExchangeReturnGoods);
|
|
1257
|
+
// console.log('bsExchangeSwapOutGoods', bsExchangeSwapOutGoods);
|
|
1257
1258
|
//补发组装数据
|
|
1258
1259
|
if (bsExchangeType !== null && bsExchangeType !== void 0 && bsExchangeType.length && ['2', '4'].includes(bsExchangeType[0])) {
|
|
1259
1260
|
var maxLen = maxBy(bsExchangeReturnGoods, function (t) {
|
|
1260
1261
|
return t.index;
|
|
1261
1262
|
});
|
|
1262
|
-
console.log(maxLen);
|
|
1263
|
-
var newGoods = Array((maxLen === null || maxLen === void 0 ? void 0 : maxLen.index) || 0).
|
|
1264
|
-
|
|
1265
|
-
|
|
1263
|
+
// console.log(maxLen);
|
|
1264
|
+
var newGoods = Array((maxLen === null || maxLen === void 0 ? void 0 : maxLen.index) + 1 || 0).map(function () {
|
|
1265
|
+
return {
|
|
1266
|
+
bsExchangeReturnGoods: [],
|
|
1267
|
+
bsExchangeSwapOutGoods: []
|
|
1268
|
+
};
|
|
1266
1269
|
});
|
|
1267
1270
|
bsExchangeReturnGoods.forEach(function (item) {
|
|
1268
1271
|
if (!newGoods[item.index]) {
|
|
@@ -1271,12 +1274,13 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1271
1274
|
bsExchangeSwapOutGoods: []
|
|
1272
1275
|
};
|
|
1273
1276
|
}
|
|
1277
|
+
// console.log(object);
|
|
1274
1278
|
newGoods[item.index].bsExchangeReturnGoods.push(item);
|
|
1275
1279
|
});
|
|
1276
1280
|
bsExchangeSwapOutGoods.forEach(function (item) {
|
|
1277
1281
|
newGoods[item.index].bsExchangeSwapOutGoods.push(item);
|
|
1278
1282
|
});
|
|
1279
|
-
console.log(newGoods);
|
|
1283
|
+
// console.log(newGoods);
|
|
1280
1284
|
bsExchangeReturnGoods = newGoods;
|
|
1281
1285
|
bsExchangeSwapOutGoods = [];
|
|
1282
1286
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3-alpha.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/icons": "^4.7.0",
|
|
35
|
-
"@kmkf-fe-packages/basic-components": "^0.10.
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.10.0",
|
|
37
|
-
"@kmkf-fe-packages/services-components": "^0.10.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "^0.10.3-alpha.0",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.10.3-alpha.0",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "^0.10.3-alpha.0",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.5",
|
|
39
39
|
"ahooks": "^3.7.4",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "f58b50507a2d67ed726b4256af7fc79658c4447d",
|
|
76
76
|
"gitHooks": {
|
|
77
77
|
"pre-commit": "lint-staged"
|
|
78
78
|
}
|