@kmkf-fe-packages/kmkf-work-order-service-component 0.10.1-alpha.0 → 0.10.2-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);
|
|
@@ -1267,16 +1267,19 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1267
1267
|
var bsExchangeType = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsExchangeType")], []);
|
|
1268
1268
|
var bsExchangeReturnGoods = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsExchangeReturnGoods")], []);
|
|
1269
1269
|
var bsExchangeSwapOutGoods = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsExchangeSwapOutGoods")], []);
|
|
1270
|
-
console.log(bsExchangeReturnGoods);
|
|
1270
|
+
// console.log('bsExchangeReturnGoods', bsExchangeReturnGoods);
|
|
1271
|
+
// console.log('bsExchangeSwapOutGoods', bsExchangeSwapOutGoods);
|
|
1271
1272
|
//补发组装数据
|
|
1272
1273
|
if (bsExchangeType !== null && bsExchangeType !== void 0 && bsExchangeType.length && ['2', '4'].includes(bsExchangeType[0])) {
|
|
1273
1274
|
var maxLen = maxBy(bsExchangeReturnGoods, function (t) {
|
|
1274
1275
|
return t.index;
|
|
1275
1276
|
});
|
|
1276
|
-
console.log(maxLen);
|
|
1277
|
-
var newGoods = Array((maxLen === null || maxLen === void 0 ? void 0 : maxLen.index) || 0).
|
|
1278
|
-
|
|
1279
|
-
|
|
1277
|
+
// console.log(maxLen);
|
|
1278
|
+
var newGoods = Array((maxLen === null || maxLen === void 0 ? void 0 : maxLen.index) + 1 || 0).map(function () {
|
|
1279
|
+
return {
|
|
1280
|
+
bsExchangeReturnGoods: [],
|
|
1281
|
+
bsExchangeSwapOutGoods: []
|
|
1282
|
+
};
|
|
1280
1283
|
});
|
|
1281
1284
|
bsExchangeReturnGoods.forEach(function (item) {
|
|
1282
1285
|
if (!newGoods[item.index]) {
|
|
@@ -1285,12 +1288,13 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1285
1288
|
bsExchangeSwapOutGoods: []
|
|
1286
1289
|
};
|
|
1287
1290
|
}
|
|
1291
|
+
// console.log(object);
|
|
1288
1292
|
newGoods[item.index].bsExchangeReturnGoods.push(item);
|
|
1289
1293
|
});
|
|
1290
1294
|
bsExchangeSwapOutGoods.forEach(function (item) {
|
|
1291
1295
|
newGoods[item.index].bsExchangeSwapOutGoods.push(item);
|
|
1292
1296
|
});
|
|
1293
|
-
console.log(newGoods);
|
|
1297
|
+
// console.log(newGoods);
|
|
1294
1298
|
bsExchangeReturnGoods = newGoods;
|
|
1295
1299
|
bsExchangeSwapOutGoods = [];
|
|
1296
1300
|
}
|
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.2-alpha.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "33ee3800cfcf90a207352e00441d579a40362211",
|
|
76
76
|
"gitHooks": {
|
|
77
77
|
"pre-commit": "lint-staged"
|
|
78
78
|
}
|