@bit-sun/business-component 2.4.19 → 3.0.0-alpha.1
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/Business/BsLayouts/Components/ChooseStore/index.d.ts +3 -0
- package/dist/components/Business/BsLayouts/Components/ChooseStore/services.d.ts +1 -0
- package/dist/components/Business/BsLayouts/Components/RightContent/i18n.d.ts +9 -0
- package/dist/components/Business/BsLayouts/service.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -0
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +1 -0
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +1 -0
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -0
- package/dist/components/Solution/RuleComponent/services.d.ts +1 -1
- package/dist/index.esm.js +1563 -1070
- package/dist/index.js +1548 -1053
- package/dist/utils/request.d.ts +2 -0
- package/dist/utils/utils.d.ts +6 -0
- package/package.json +6 -4
- package/src/assets/arrow_top.svg +18 -0
- package/src/components/Business/AddSelectBusiness/index.tsx +38 -19
- package/src/components/Business/BsLayouts/Components/ChooseStore/index.less +0 -0
- package/src/components/Business/BsLayouts/Components/ChooseStore/index.tsx +193 -0
- package/src/components/Business/BsLayouts/Components/ChooseStore/services.ts +10 -0
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +7 -1
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +3 -3
- package/src/components/Business/BsLayouts/Components/RightContent/i18n.ts +9 -0
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +19 -2
- package/src/components/Business/BsLayouts/index.tsx +44 -34
- package/src/components/Business/BsLayouts/service.ts +2 -2
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +9 -9
- package/src/components/Business/BsSulaQueryTable/bssulaquerytable.less +5 -0
- package/src/components/Business/BsSulaQueryTable/index.tsx +346 -175
- package/src/components/Business/BsSulaQueryTable/setting.tsx +125 -87
- package/src/components/Business/BsSulaQueryTable/utils.tsx +57 -34
- package/src/components/Business/CommonGuideWrapper/index.tsx +11 -2
- package/src/components/Business/JsonQueryTable/index.tsx +10 -12
- package/src/components/Business/SearchSelect/utils.ts +3 -3
- package/src/components/Business/columnSettingTable/columnSetting.tsx +10 -8
- package/src/components/Business/columnSettingTable/utils.tsx +29 -29
- package/src/components/Functional/AddSelect/helps.ts +4 -3
- package/src/components/Functional/AddSelect/index.tsx +79 -33
- package/src/components/Functional/BillEntry/index.tsx +3 -3
- package/src/components/Functional/DataImport/index.tsx +3 -3
- package/src/components/Functional/DataValidation/index.tsx +3 -3
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +10 -5
- package/src/components/Functional/QueryMutipleInput/index.tsx +2 -1
- package/src/components/Functional/SearchSelect/index.less +6 -0
- package/src/components/Functional/SearchSelect/index.tsx +152 -45
- package/src/components/Functional/TreeSearchSelect/index.tsx +24 -22
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +641 -0
- package/src/components/Solution/RuleComponent/index.js +7 -652
- package/src/components/Solution/RuleComponent/services.ts +2 -2
- package/src/plugin/TableColumnSetting/index.tsx +2 -2
- package/src/utils/request.ts +53 -0
- package/src/utils/utils.ts +37 -21
package/dist/index.esm.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import cookie from 'js-cookie';
|
|
3
|
-
import { message as message$1, Image, Popover, Card, Avatar, Tooltip, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
|
|
4
|
-
import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
5
|
-
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
3
|
+
import { message as message$1, Image, Popover, Card, Avatar, Tooltip, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
|
|
4
|
+
import _, { isNil, escapeRegExp, omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
5
|
+
import { history, formatMessage, useLocation, Link, useModel, setLocale, useIntl } from 'umi';
|
|
6
6
|
import isEqual from 'lodash/isEqual';
|
|
7
7
|
import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
8
8
|
import moment$1 from 'moment';
|
|
9
9
|
import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
10
|
-
import { Table as Table$1, request as request$
|
|
10
|
+
import { Table as Table$1, request as request$2, QueryTable, Form as Form$1 } from 'bssula';
|
|
11
|
+
import 'qs';
|
|
11
12
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
13
|
+
import request$1 from 'umi-request';
|
|
12
14
|
import { useDebounceFn, useMount } from 'ahooks';
|
|
13
15
|
import { stringify } from 'querystring';
|
|
14
16
|
import { Resizable } from 'react-resizable';
|
|
@@ -17,6 +19,7 @@ import { arrayMoveImmutable } from 'array-move';
|
|
|
17
19
|
import ProLayout from '@ant-design/pro-layout';
|
|
18
20
|
import cloneDeep from 'lodash/cloneDeep';
|
|
19
21
|
import classNames from 'classnames';
|
|
22
|
+
import debounce$1 from 'lodash/debounce';
|
|
20
23
|
import { DndProvider, useDrop, useDrag } from 'react-dnd';
|
|
21
24
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
22
25
|
import Editor$1, { monaco } from '@monaco-editor/react';
|
|
@@ -464,20 +467,6 @@ function _defineProperty(obj, key, value) {
|
|
|
464
467
|
}
|
|
465
468
|
return obj;
|
|
466
469
|
}
|
|
467
|
-
function _extends() {
|
|
468
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
469
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
470
|
-
var source = arguments[i];
|
|
471
|
-
for (var key in source) {
|
|
472
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
473
|
-
target[key] = source[key];
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
return target;
|
|
478
|
-
};
|
|
479
|
-
return _extends.apply(this, arguments);
|
|
480
|
-
}
|
|
481
470
|
function _inherits(subClass, superClass) {
|
|
482
471
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
483
472
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -1144,109 +1133,57 @@ function handleCommonTimeRender(text, format) {
|
|
|
1144
1133
|
var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
1145
1134
|
var _ref;
|
|
1146
1135
|
var defaultWidth = 200;
|
|
1136
|
+
if (Array.isArray(item.key) || Array.isArray(item.dataIndex)) return defaultWidth;
|
|
1147
1137
|
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
1148
|
-
if (lowerCaseKey)
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
}
|
|
1138
|
+
if (!lowerCaseKey) return defaultWidth;
|
|
1139
|
+
switch (true) {
|
|
1140
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
1141
|
+
defaultWidth = 60;
|
|
1142
|
+
break;
|
|
1143
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
1144
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
1145
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
1146
|
+
defaultWidth = 90;
|
|
1147
|
+
break;
|
|
1148
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
1149
|
+
defaultWidth = 200;
|
|
1150
|
+
break;
|
|
1151
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
1152
|
+
defaultWidth = 170;
|
|
1153
|
+
break;
|
|
1154
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
1155
|
+
defaultWidth = 130;
|
|
1156
|
+
break;
|
|
1157
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
1158
|
+
defaultWidth = 100;
|
|
1159
|
+
break;
|
|
1160
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
1161
|
+
defaultWidth = 130;
|
|
1162
|
+
break;
|
|
1174
1163
|
}
|
|
1175
1164
|
return defaultWidth;
|
|
1176
1165
|
};
|
|
1177
|
-
/**
|
|
1178
|
-
* 查询参数处理
|
|
1179
|
-
* @param params 要应用于查询的参数
|
|
1180
|
-
* @returns 返回处理后的查询参数
|
|
1181
|
-
*/
|
|
1182
|
-
function queryParams(params, flag) {
|
|
1183
|
-
var _loop = function _loop() {
|
|
1184
|
-
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
1185
|
-
var element = params[key];
|
|
1186
|
-
if (element && key.indexOf('*number*') >= 0) {
|
|
1187
|
-
var dataParams = key.split('*number*');
|
|
1188
|
-
dataParams.forEach(function (value, index) {
|
|
1189
|
-
params[value] = element[index];
|
|
1190
|
-
});
|
|
1191
|
-
delete params[key];
|
|
1192
|
-
} else if (element && key.indexOf('*address*') >= 0) {
|
|
1193
|
-
var _dataParams = key.split('*address*');
|
|
1194
|
-
_dataParams.forEach(function (value, index) {
|
|
1195
|
-
params[value] = element.PCDCode[index];
|
|
1196
|
-
});
|
|
1197
|
-
delete params[key];
|
|
1198
|
-
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
1199
|
-
var _dataParams2 = key.split('*costType*');
|
|
1200
|
-
// eslint-disable-next-line prefer-destructuring
|
|
1201
|
-
params[_dataParams2[0]] = element[1];
|
|
1202
|
-
delete params[key];
|
|
1203
|
-
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
1204
|
-
var _dataParams3 = key.split('*fullDate*');
|
|
1205
|
-
_dataParams3.forEach(function (value, index) {
|
|
1206
|
-
if (index === 0) {
|
|
1207
|
-
params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
1208
|
-
} else {
|
|
1209
|
-
params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
1210
|
-
}
|
|
1211
|
-
});
|
|
1212
|
-
delete params[key];
|
|
1213
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
1214
|
-
var _dataParams4 = key.split('*');
|
|
1215
|
-
_dataParams4.forEach(function (value, index) {
|
|
1216
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
1217
|
-
});
|
|
1218
|
-
delete params[key];
|
|
1219
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
1220
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
1221
|
-
if (element.indexOf(',') >= 0) {
|
|
1222
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
1223
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
1224
|
-
} else {
|
|
1225
|
-
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
1226
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
1227
|
-
}
|
|
1228
|
-
delete params[key];
|
|
1229
|
-
} else if (Array.isArray(element)) {
|
|
1230
|
-
params[key] = element.join(',');
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
};
|
|
1234
|
-
for (var key in params) {
|
|
1235
|
-
_loop();
|
|
1236
|
-
}
|
|
1237
|
-
return flag ? params : qs.stringify(params);
|
|
1238
|
-
}
|
|
1239
1166
|
/**
|
|
1240
1167
|
* 根据用户权限检验对应按钮是够显示 !!!!现在先去掉
|
|
1241
1168
|
* @param code 对应权限值
|
|
1242
1169
|
* @returns boolean
|
|
1243
1170
|
*/
|
|
1244
1171
|
var authFn = function authFn(code) {
|
|
1172
|
+
if (!code) {
|
|
1173
|
+
return true;
|
|
1174
|
+
}
|
|
1245
1175
|
var authButton = localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES) ? JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES)) : [];
|
|
1246
1176
|
return authButton.findIndex(function (d) {
|
|
1247
1177
|
return d === code;
|
|
1248
1178
|
}) !== -1;
|
|
1249
1179
|
};
|
|
1180
|
+
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1181
|
+
var renderToString = function renderToString(render) {
|
|
1182
|
+
return render;
|
|
1183
|
+
// return typeof render === 'string'
|
|
1184
|
+
// ? render
|
|
1185
|
+
// : ReactDOMServer.renderToString(render);
|
|
1186
|
+
};
|
|
1250
1187
|
|
|
1251
1188
|
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1252
1189
|
return data.map(function (item) {
|
|
@@ -1297,52 +1234,49 @@ var handleBssulaColumnsSpecialParams = function handleBssulaColumnsSpecialParams
|
|
|
1297
1234
|
var text = _ref.text;
|
|
1298
1235
|
return handleTooltipHours(text, col.timeRenderHour);
|
|
1299
1236
|
};
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
if (col.timeRender) {
|
|
1237
|
+
} else if (col.timeRender) {
|
|
1238
|
+
// 处理不显示 时分秒的时间
|
|
1303
1239
|
col.render = function (_ref2) {
|
|
1304
1240
|
var text = _ref2.text;
|
|
1305
1241
|
return handleTooltip(text, col.timeRender);
|
|
1306
1242
|
};
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
if (col.textOverflow) {
|
|
1243
|
+
} else if (col.textOverflow) {
|
|
1244
|
+
// 处理文字太长
|
|
1310
1245
|
col.render = function (_ref3) {
|
|
1311
1246
|
var text = _ref3.text;
|
|
1312
1247
|
return handleTextOverflow(text, col.width);
|
|
1313
1248
|
};
|
|
1314
|
-
}
|
|
1315
|
-
if (col.images) {
|
|
1249
|
+
} else if (col.images) {
|
|
1316
1250
|
col.render = function (_ref4) {
|
|
1317
1251
|
var text = _ref4.text;
|
|
1318
1252
|
return tableColumnsImage(text);
|
|
1319
1253
|
};
|
|
1320
|
-
}
|
|
1321
|
-
if (col.double) {
|
|
1254
|
+
} else if (col.double) {
|
|
1322
1255
|
col.render = function (_ref5) {
|
|
1323
1256
|
var record = _ref5.record;
|
|
1324
1257
|
return handleTextDouble(record[col.textOne], record[col.textTwo]);
|
|
1325
1258
|
};
|
|
1326
|
-
}
|
|
1327
|
-
if (col.lineFeed) {
|
|
1259
|
+
} else if (col.lineFeed) {
|
|
1328
1260
|
col.render = function (_ref6) {
|
|
1329
1261
|
var text = _ref6.text;
|
|
1330
1262
|
return handleTextLineFeed(text);
|
|
1331
1263
|
};
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
if (col.indexNumber) {
|
|
1264
|
+
} else if (col.indexNumber) {
|
|
1265
|
+
// 处理序号
|
|
1335
1266
|
col.render = function (_ref7) {
|
|
1336
1267
|
var index = _ref7.index;
|
|
1337
1268
|
return index + 1;
|
|
1338
1269
|
};
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
|
|
1270
|
+
} else if (col.isPermissionColumn && Array.isArray(col === null || col === void 0 ? void 0 : col.render)) {
|
|
1271
|
+
col.render = col.render.filter(function (item) {
|
|
1272
|
+
return authFn(item.code);
|
|
1273
|
+
});
|
|
1274
|
+
} else if (!col.render) {
|
|
1275
|
+
// 没有值默认显示 - -
|
|
1342
1276
|
// col.render = ({ text }: any) => text || '- -';
|
|
1343
1277
|
col.render = function (_ref8) {
|
|
1344
1278
|
var text = _ref8.text;
|
|
1345
|
-
return text
|
|
1279
|
+
return text !== null && text !== void 0 ? text : '--';
|
|
1346
1280
|
};
|
|
1347
1281
|
}
|
|
1348
1282
|
};
|
|
@@ -1436,10 +1370,64 @@ var judgeIsEmpty = function judgeIsEmpty(value) {
|
|
|
1436
1370
|
return false;
|
|
1437
1371
|
};
|
|
1438
1372
|
|
|
1373
|
+
var _excluded = ["url"];
|
|
1374
|
+
var get = function get(url, params) {
|
|
1375
|
+
return request$1.get(url, _objectSpread2({}, params)).then(handleResponseData);
|
|
1376
|
+
};
|
|
1377
|
+
var post = function post(url, data) {
|
|
1378
|
+
return request$1.post(url, {
|
|
1379
|
+
data: data
|
|
1380
|
+
}).then(handleResponseData);
|
|
1381
|
+
};
|
|
1382
|
+
var patch = function patch(url, data) {
|
|
1383
|
+
return request$1.patch(url, {
|
|
1384
|
+
data: data
|
|
1385
|
+
}).then(handleResponseData);
|
|
1386
|
+
};
|
|
1387
|
+
var put = function put(url, data) {
|
|
1388
|
+
return request$1.put(url, {
|
|
1389
|
+
data: data
|
|
1390
|
+
}).then(handleResponseData);
|
|
1391
|
+
};
|
|
1392
|
+
var deleteS = function deleteS(url, data) {
|
|
1393
|
+
return request$1.delete(url, {
|
|
1394
|
+
data: data
|
|
1395
|
+
}).then(handleResponseData);
|
|
1396
|
+
};
|
|
1397
|
+
var requestUtil = function requestUtil(_ref) {
|
|
1398
|
+
var url = _ref.url,
|
|
1399
|
+
parms = _objectWithoutProperties(_ref, _excluded);
|
|
1400
|
+
return request$1(url, parms).then(handleResponseData);
|
|
1401
|
+
};
|
|
1402
|
+
var handleResponseData = /*#__PURE__*/function () {
|
|
1403
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
1404
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1405
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1406
|
+
case 0:
|
|
1407
|
+
return _context.abrupt("return", Promise.resolve({
|
|
1408
|
+
data: response,
|
|
1409
|
+
status: response.status
|
|
1410
|
+
}));
|
|
1411
|
+
case 1:
|
|
1412
|
+
case "end":
|
|
1413
|
+
return _context.stop();
|
|
1414
|
+
}
|
|
1415
|
+
}, _callee);
|
|
1416
|
+
}));
|
|
1417
|
+
return function handleResponseData(_x) {
|
|
1418
|
+
return _ref2.apply(this, arguments);
|
|
1419
|
+
};
|
|
1420
|
+
}();
|
|
1421
|
+
requestUtil.get = get;
|
|
1422
|
+
requestUtil.post = post;
|
|
1423
|
+
requestUtil.patch = patch;
|
|
1424
|
+
requestUtil.put = put;
|
|
1425
|
+
requestUtil.delete = deleteS;
|
|
1426
|
+
|
|
1439
1427
|
var css_248z$1 = ".luckysheet {\n overflow: hidden;\n}\n.luckysheet .luckysheet-work-area.luckysheet-noselected-text {\n display: none;\n}\n.sheet_table_top {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_top .menu_item_text {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.sheet_table_footer {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_text {\n color: #8f8f8f;\n}\n.sheet_table_dnd_text {\n background: #f2f2f2;\n border: 1px solid #d8d8d8;\n display: inline-block;\n width: 100px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n";
|
|
1440
1428
|
styleInject(css_248z$1);
|
|
1441
1429
|
|
|
1442
|
-
var _excluded = ["flag", "checkResults"],
|
|
1430
|
+
var _excluded$1 = ["flag", "checkResults"],
|
|
1443
1431
|
_excluded2 = ["flag", "checkResults"];
|
|
1444
1432
|
// const luckysheet = window.luckysheet;
|
|
1445
1433
|
var itemsTemp = [];
|
|
@@ -1702,7 +1690,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1702
1690
|
}).map(function (_ref2) {
|
|
1703
1691
|
var flag = _ref2.flag,
|
|
1704
1692
|
checkResults = _ref2.checkResults,
|
|
1705
|
-
item = _objectWithoutProperties(_ref2, _excluded);
|
|
1693
|
+
item = _objectWithoutProperties(_ref2, _excluded$1);
|
|
1706
1694
|
return item;
|
|
1707
1695
|
}),
|
|
1708
1696
|
failData: resultData.filter(function (item) {
|
|
@@ -1748,7 +1736,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1748
1736
|
brandAuth: 'ctl-withAuth'
|
|
1749
1737
|
};
|
|
1750
1738
|
}
|
|
1751
|
-
|
|
1739
|
+
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
1752
1740
|
columns: columns,
|
|
1753
1741
|
data: resultData,
|
|
1754
1742
|
checkStockNum: isCheckStockNum
|
|
@@ -2008,7 +1996,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2008
1996
|
var css_248z$2 = ".luckysheet {\n overflow: hidden;\n}\n.luckysheet .luckysheet-work-area.luckysheet-noselected-text {\n display: none;\n}\n.sheet_table_top {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_top .menu_item_text {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.sheet_table_footer {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_text {\n color: #8f8f8f;\n}\n.sheet_table_dnd_text {\n background: #f2f2f2;\n border: 1px solid #d8d8d8;\n display: inline-block;\n width: 100px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n";
|
|
2009
1997
|
styleInject(css_248z$2);
|
|
2010
1998
|
|
|
2011
|
-
var _excluded$
|
|
1999
|
+
var _excluded$2 = ["flag", "checkResults"],
|
|
2012
2000
|
_excluded2$1 = ["flag", "checkResults"];
|
|
2013
2001
|
// const luckysheet = window.luckysheet;
|
|
2014
2002
|
var itemsTemp$1 = [];
|
|
@@ -2272,7 +2260,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2272
2260
|
}).map(function (_ref2) {
|
|
2273
2261
|
var flag = _ref2.flag,
|
|
2274
2262
|
checkResults = _ref2.checkResults,
|
|
2275
|
-
item = _objectWithoutProperties(_ref2, _excluded$
|
|
2263
|
+
item = _objectWithoutProperties(_ref2, _excluded$2);
|
|
2276
2264
|
return item;
|
|
2277
2265
|
}),
|
|
2278
2266
|
failData: resultData.filter(function (item) {
|
|
@@ -2309,7 +2297,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
2309
2297
|
var resultData = _this.getData().filter(function (d) {
|
|
2310
2298
|
return _.compact(Object.values(d)).length;
|
|
2311
2299
|
});
|
|
2312
|
-
|
|
2300
|
+
requestUtil.post(validDataUrl, {
|
|
2313
2301
|
columns: columns,
|
|
2314
2302
|
data: resultData
|
|
2315
2303
|
}).then(function (result) {
|
|
@@ -2586,7 +2574,8 @@ var css_248z$3 = ".query_input_show {\n display: flex;\n}\n.query_input_expand_
|
|
|
2586
2574
|
styleInject(css_248z$3);
|
|
2587
2575
|
|
|
2588
2576
|
var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
2589
|
-
var onValueChange = _ref.onValueChange
|
|
2577
|
+
var onValueChange = _ref.onValueChange,
|
|
2578
|
+
_onPressEnter = _ref.onPressEnter;
|
|
2590
2579
|
var _useState = useState(false),
|
|
2591
2580
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2592
2581
|
isModalVisible = _useState2[0],
|
|
@@ -2649,7 +2638,10 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
2649
2638
|
style: {
|
|
2650
2639
|
width: 'calc(100% - 30px)'
|
|
2651
2640
|
},
|
|
2652
|
-
placeholder: "\u8BF7\u8F93\u5165\uFF08\u67E5\u8BE2\u591A\u4E2A\u503C\u8BF7\u7528 ; \u6216 , \u5206\u5272\uFF09"
|
|
2641
|
+
placeholder: "\u8BF7\u8F93\u5165\uFF08\u67E5\u8BE2\u591A\u4E2A\u503C\u8BF7\u7528 ; \u6216 , \u5206\u5272\uFF09",
|
|
2642
|
+
onPressEnter: function onPressEnter() {
|
|
2643
|
+
return _onPressEnter === null || _onPressEnter === void 0 ? void 0 : _onPressEnter();
|
|
2644
|
+
}
|
|
2653
2645
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
2654
2646
|
style: {
|
|
2655
2647
|
width: '30px',
|
|
@@ -2699,7 +2691,7 @@ function ToCDB(str) {
|
|
|
2699
2691
|
return tmp;
|
|
2700
2692
|
}
|
|
2701
2693
|
|
|
2702
|
-
var css_248z$4 = ".search_select_show {\n display: flex;\n}\n.search_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.search_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_wrapper {\n position: relative;\n display: flex;\n min-height: 60vh;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n}\n.search_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.search_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_left {\n width: 28%;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-left: 20px;\n}\n.search_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.search_select_wrapper_right {\n width: 70%;\n margin-left: 1%;\n}\n.search_select_wrapper_right1 {\n width: 100%;\n margin-left: 20px;\n}\n.search_select_wrapper_right,\n.search_select_wrapper_right1 {\n overflow-x: auto;\n}\n.search_select_wrapper .select_list_columns {\n width: 100%;\n height: calc(60vh - 60px);\n overflow-y: auto;\n border: 1px solid #d8d8d8;\n}\n.search_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.search_select_wrapper .select_list_columns_formItems {\n padding: 0 20px;\n}\n.search_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px 0px;\n justify-content: flex-end;\n}\n.search_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 34px;\n line-height: 32px;\n background-color: #eee;\n margin-bottom: 10px;\n padding: 0 12px;\n}\n.search_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n";
|
|
2694
|
+
var css_248z$4 = ".search_select_show {\n display: flex;\n}\n.search_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.search_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_wrapper {\n position: relative;\n display: flex;\n min-height: 60vh;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n}\n.search_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.search_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_left {\n width: 28%;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-left: 20px;\n}\n.search_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.search_select_wrapper_right {\n width: 70%;\n margin-left: 1%;\n}\n.search_select_wrapper_right1 {\n width: 100%;\n margin-left: 20px;\n}\n.search_select_wrapper_right,\n.search_select_wrapper_right1 {\n overflow-x: auto;\n}\n.search_select_wrapper .select_list_columns {\n width: 100%;\n height: calc(60vh - 60px);\n overflow-y: auto;\n border: 1px solid #d8d8d8;\n}\n.search_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.search_select_wrapper .select_list_columns_formItems {\n padding: 0 20px;\n}\n.search_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px 0px;\n justify-content: flex-end;\n}\n.search_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 34px;\n line-height: 32px;\n background-color: #eee;\n margin-bottom: 10px;\n padding: 0 12px;\n}\n.search_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n";
|
|
2703
2695
|
styleInject(css_248z$4);
|
|
2704
2696
|
|
|
2705
2697
|
var handleSourceName = function handleSourceName(sName) {
|
|
@@ -2987,6 +2979,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2987
2979
|
}
|
|
2988
2980
|
});
|
|
2989
2981
|
delete params[key];
|
|
2982
|
+
} else if (element && key.indexOf('*multiInput') >= 0) {
|
|
2983
|
+
var name = '',
|
|
2984
|
+
_value = element['value'];
|
|
2985
|
+
if (_value.indexOf(',') >= 0) {
|
|
2986
|
+
name = "qp-".concat(element['name'], "-in");
|
|
2987
|
+
} else {
|
|
2988
|
+
name = "qp-".concat(element['name'], "-like");
|
|
2989
|
+
}
|
|
2990
|
+
params[name] = _value;
|
|
2991
|
+
delete params[key];
|
|
2990
2992
|
} else if (element && key.indexOf('*') >= 0) {
|
|
2991
2993
|
var _dataParams7 = key.split('*');
|
|
2992
2994
|
_dataParams7.forEach(function (value, index) {
|
|
@@ -3021,7 +3023,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3021
3023
|
pageSize: pageSize,
|
|
3022
3024
|
currentPage: currentPage
|
|
3023
3025
|
}, otherParams), fixedParam), params);
|
|
3024
|
-
|
|
3026
|
+
if (isNil(queryParams[selectParamsKey])) {
|
|
3027
|
+
queryParams[selectParamsKey] = searchValue;
|
|
3028
|
+
}
|
|
3029
|
+
requestUtil.get("".concat(url, "?").concat(stringify(queryParams)), {
|
|
3025
3030
|
headers: _objectSpread2({}, extralHeaders)
|
|
3026
3031
|
}).then(function (result) {
|
|
3027
3032
|
setFetching(false);
|
|
@@ -3348,8 +3353,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3348
3353
|
if (heightTxt === '') {
|
|
3349
3354
|
return text;
|
|
3350
3355
|
}
|
|
3356
|
+
var searchString = escapeRegExp(heightTxt);
|
|
3351
3357
|
// 前面filterOption 不区分大小写,这里用i
|
|
3352
|
-
var regexp = new RegExp(
|
|
3358
|
+
var regexp = new RegExp(searchString, 'gi');
|
|
3353
3359
|
return text.replace(regexp, "<span style=\"color:red\">".concat(heightTxt, "</span>"));
|
|
3354
3360
|
};
|
|
3355
3361
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
@@ -3582,9 +3588,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3582
3588
|
}
|
|
3583
3589
|
}), menu);
|
|
3584
3590
|
},
|
|
3585
|
-
notFoundContent: fetching ? /*#__PURE__*/React.createElement(Spin, {
|
|
3586
|
-
size: "small"
|
|
3587
|
-
|
|
3591
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React.createElement(Spin, {
|
|
3592
|
+
size: "small",
|
|
3593
|
+
className: 'searchSelectSpin'
|
|
3594
|
+
})) : ( /*#__PURE__*/React.createElement("div", {
|
|
3588
3595
|
style: {
|
|
3589
3596
|
textAlign: 'center'
|
|
3590
3597
|
}
|
|
@@ -3596,7 +3603,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3596
3603
|
style: {
|
|
3597
3604
|
fontSize: '50px'
|
|
3598
3605
|
}
|
|
3599
|
-
})), /*#__PURE__*/React.createElement("div", null, "\u65E0\u5339\u914D\u7ED3\u679C\uFF0C\u8BF7\u66F4\u6362\u5176\u4ED6\u5185\u5BB9\u518D\u8BD5")),
|
|
3606
|
+
})), /*#__PURE__*/React.createElement("div", null, "\u65E0\u5339\u914D\u7ED3\u679C\uFF0C\u8BF7\u66F4\u6362\u5176\u4ED6\u5185\u5BB9\u518D\u8BD5"))),
|
|
3600
3607
|
onPopupScroll: SelectScroll,
|
|
3601
3608
|
style: {
|
|
3602
3609
|
width: needModalTable ? 'calc(100% - 30px)' : 'calc(100%)'
|
|
@@ -3624,7 +3631,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3624
3631
|
onClick: showModal,
|
|
3625
3632
|
type: "primary"
|
|
3626
3633
|
}, /*#__PURE__*/React.createElement(SearchOutlined, null))))), needModalTable && isModalVisible && ( /*#__PURE__*/React.createElement(Modal, _objectSpread2({
|
|
3627
|
-
width:
|
|
3634
|
+
width: "80%",
|
|
3628
3635
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
3629
3636
|
visible: isModalVisible,
|
|
3630
3637
|
onOk: handleOk,
|
|
@@ -3657,16 +3664,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3657
3664
|
className: 'select_list_columns_formItems'
|
|
3658
3665
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
3659
3666
|
form: form,
|
|
3660
|
-
layout:
|
|
3661
|
-
key:
|
|
3667
|
+
layout: "vertical",
|
|
3668
|
+
key: "modalForm"
|
|
3662
3669
|
}, formItem(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm)))), /*#__PURE__*/React.createElement("div", {
|
|
3663
3670
|
className: 'select_list_searchButton'
|
|
3664
3671
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
3665
|
-
key:
|
|
3672
|
+
key: "reset",
|
|
3666
3673
|
className: 'select_list_button_space',
|
|
3667
3674
|
onClick: onResetTable
|
|
3668
3675
|
}, "\u91CD\u7F6E"), /*#__PURE__*/React.createElement(Button, {
|
|
3669
|
-
key:
|
|
3676
|
+
key: "search",
|
|
3670
3677
|
type: "primary",
|
|
3671
3678
|
onClick: onSearchTable
|
|
3672
3679
|
}, "\u67E5\u8BE2"))), /*#__PURE__*/React.createElement("div", {
|
|
@@ -3679,14 +3686,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3679
3686
|
}
|
|
3680
3687
|
}, "\u641C\u7D22\u7ED3\u679C\u5171", /*#__PURE__*/React.createElement("span", {
|
|
3681
3688
|
style: themeColor
|
|
3682
|
-
}, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\u9879", selectMode ? /*#__PURE__*/React.createElement("span", null, "\uFF0C \u672C\u6B21\u5DF2\u9009", /*#__PURE__*/React.createElement("span", {
|
|
3689
|
+
}, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\u9879", selectMode ? ( /*#__PURE__*/React.createElement("span", null, "\uFF0C \u672C\u6B21\u5DF2\u9009", /*#__PURE__*/React.createElement("span", {
|
|
3683
3690
|
style: themeColor
|
|
3684
|
-
}, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\u9879") : ''), /*#__PURE__*/React.createElement("div", {
|
|
3691
|
+
}, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\u9879")) : ''), /*#__PURE__*/React.createElement("div", {
|
|
3685
3692
|
style: {
|
|
3686
3693
|
color: 'rgba(127, 127, 127, 0.6470588235294118)'
|
|
3687
3694
|
}
|
|
3688
3695
|
}, selectMode ? '勾选后点击确定按钮完成选择' : '双击数据行或点击单选图标完成选择')), /*#__PURE__*/React.createElement(Table, {
|
|
3689
|
-
size:
|
|
3696
|
+
size: "small",
|
|
3690
3697
|
rowSelection: rowSelection,
|
|
3691
3698
|
columns: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns,
|
|
3692
3699
|
dataSource: tableData,
|
|
@@ -3704,14 +3711,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3704
3711
|
}
|
|
3705
3712
|
};
|
|
3706
3713
|
}
|
|
3707
|
-
}), selectMode ? /*#__PURE__*/React.createElement("div", {
|
|
3714
|
+
}), selectMode ? ( /*#__PURE__*/React.createElement("div", {
|
|
3708
3715
|
className: 'select_list_selectAll'
|
|
3709
3716
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
3710
3717
|
indeterminate: indeterminate,
|
|
3711
3718
|
checked: checkedAll,
|
|
3712
3719
|
onChange: onChangeCheckAll,
|
|
3713
3720
|
disabled: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled)
|
|
3714
|
-
}), "
|
|
3721
|
+
}), ' ', "\u5168\u9009\u6240\u6709\u9875\u9762")) : ''))))));
|
|
3715
3722
|
});
|
|
3716
3723
|
|
|
3717
3724
|
var css_248z$5 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper_select_quick {\n margin: 0;\n}\n.react-resizable {\n position: relative;\n background-clip: padding-box;\n}\n.react-resizable-handle {\n position: absolute;\n width: 10px;\n height: 100%;\n bottom: 0;\n right: -5px;\n cursor: col-resize;\n z-index: 1;\n}\n";
|
|
@@ -3734,7 +3741,7 @@ var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20enc
|
|
|
3734
3741
|
var css_248z$6 = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.global_tab_nav_style {\n top: 2px !important;\n}\n.row-dragging {\n background: #fafafa;\n border: 1px solid #ccc;\n z-index: 10000;\n}\n.row-dragging td {\n padding: 7px 16px;\n display: none;\n}\n.row-dragging td:first-child {\n display: inline-block;\n}\n.row-dragging .drag-visible {\n visibility: visible;\n}\n";
|
|
3735
3742
|
styleInject(css_248z$6);
|
|
3736
3743
|
|
|
3737
|
-
var _excluded$
|
|
3744
|
+
var _excluded$3 = ["className", "style"];
|
|
3738
3745
|
var Search = Input.Search;
|
|
3739
3746
|
var DragHandle = SortableHandle(function () {
|
|
3740
3747
|
return /*#__PURE__*/React.createElement("img", {
|
|
@@ -3780,7 +3787,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
3780
3787
|
fixed: item.fixed
|
|
3781
3788
|
};
|
|
3782
3789
|
});
|
|
3783
|
-
|
|
3790
|
+
requestUtil({
|
|
3784
3791
|
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
3785
3792
|
method: 'POST',
|
|
3786
3793
|
data: {
|
|
@@ -4088,7 +4095,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
4088
4095
|
_this.DraggableBodyRow = function (_ref2) {
|
|
4089
4096
|
var className = _ref2.className,
|
|
4090
4097
|
style = _ref2.style,
|
|
4091
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
4098
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$3);
|
|
4092
4099
|
var sortDataSource = _this.state.sortDataSource;
|
|
4093
4100
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
4094
4101
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -4374,33 +4381,33 @@ var noEmptyArray = function noEmptyArray(arr) {
|
|
|
4374
4381
|
var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
|
|
4375
4382
|
var _ref;
|
|
4376
4383
|
var defaultWidth = 200;
|
|
4384
|
+
if (Array.isArray(item.key) || Array.isArray(item.dataIndex)) return defaultWidth;
|
|
4377
4385
|
var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
|
|
4378
|
-
if (lowerCaseKey)
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
}
|
|
4386
|
+
if (!lowerCaseKey) return defaultWidth;
|
|
4387
|
+
switch (true) {
|
|
4388
|
+
case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
|
|
4389
|
+
defaultWidth = 60;
|
|
4390
|
+
break;
|
|
4391
|
+
case lowerCaseKey.indexOf('number') > -1:
|
|
4392
|
+
case lowerCaseKey.indexOf('quantity') > -1:
|
|
4393
|
+
case lowerCaseKey.indexOf('amount') > -1:
|
|
4394
|
+
defaultWidth = 90;
|
|
4395
|
+
break;
|
|
4396
|
+
case lowerCaseKey.indexOf('no') > -1:
|
|
4397
|
+
defaultWidth = 200;
|
|
4398
|
+
break;
|
|
4399
|
+
case lowerCaseKey.indexOf('code') > -1:
|
|
4400
|
+
defaultWidth = 170;
|
|
4401
|
+
break;
|
|
4402
|
+
case lowerCaseKey.indexOf('time') > -1:
|
|
4403
|
+
defaultWidth = 130;
|
|
4404
|
+
break;
|
|
4405
|
+
case lowerCaseKey.indexOf('status') > -1:
|
|
4406
|
+
defaultWidth = 100;
|
|
4407
|
+
break;
|
|
4408
|
+
case lowerCaseKey.indexOf('user') > -1:
|
|
4409
|
+
defaultWidth = 130;
|
|
4410
|
+
break;
|
|
4404
4411
|
}
|
|
4405
4412
|
return defaultWidth;
|
|
4406
4413
|
};
|
|
@@ -4427,7 +4434,7 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
|
|
|
4427
4434
|
};
|
|
4428
4435
|
var loadSelectSource = function loadSelectSource(url, params) {
|
|
4429
4436
|
return new Promise(function (resolve, reject) {
|
|
4430
|
-
|
|
4437
|
+
requestUtil.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
4431
4438
|
result = result.data;
|
|
4432
4439
|
if (judgeIsRequestError(result)) {
|
|
4433
4440
|
message$1.error(result.msg);
|
|
@@ -4492,10 +4499,11 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
4492
4499
|
});
|
|
4493
4500
|
};
|
|
4494
4501
|
|
|
4495
|
-
var _excluded$
|
|
4502
|
+
var _excluded$4 = ["onResize", "width"],
|
|
4503
|
+
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
4496
4504
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
4497
4505
|
return new Promise(function (resolve, reject) {
|
|
4498
|
-
|
|
4506
|
+
requestUtil.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
|
|
4499
4507
|
result = result.data;
|
|
4500
4508
|
if (judgeIsRequestError(result)) {
|
|
4501
4509
|
message$1.error(result.msg);
|
|
@@ -4511,7 +4519,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
4511
4519
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
4512
4520
|
var onResize = props.onResize,
|
|
4513
4521
|
width = props.width,
|
|
4514
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
4522
|
+
restProps = _objectWithoutProperties(props, _excluded$4);
|
|
4515
4523
|
if (!width) {
|
|
4516
4524
|
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
4517
4525
|
}
|
|
@@ -4546,6 +4554,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4546
4554
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
4547
4555
|
_props$getPopupContai = props.getPopupContainer,
|
|
4548
4556
|
onSaveCallback = props.onSaveCallback,
|
|
4557
|
+
onCancelCallback = props.onCancelCallback,
|
|
4549
4558
|
_props$buttonText = props.buttonText,
|
|
4550
4559
|
buttonText = _props$buttonText === void 0 ? '添加' : _props$buttonText,
|
|
4551
4560
|
_props$buttonProps = props.buttonProps,
|
|
@@ -4556,7 +4565,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
4556
4565
|
_props$businessType = props.businessType,
|
|
4557
4566
|
businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
|
|
4558
4567
|
_props$isAllowRepeate = props.isAllowRepeatedSelect,
|
|
4559
|
-
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate
|
|
4568
|
+
isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate,
|
|
4569
|
+
clearTitle = props.clearTitle;
|
|
4560
4570
|
var _ref = requestConfig || {},
|
|
4561
4571
|
url = _ref.url,
|
|
4562
4572
|
otherParams = _ref.otherParams,
|
|
@@ -4709,6 +4719,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4709
4719
|
setShowToChooseColumns = _useState46[1];
|
|
4710
4720
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
4711
4721
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
4722
|
+
// FIXME: 特殊业务逻辑
|
|
4712
4723
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
4713
4724
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
4714
4725
|
var result;
|
|
@@ -4790,6 +4801,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4790
4801
|
}();
|
|
4791
4802
|
var setBusinessDefaultValue = function setBusinessDefaultValue(list, recordList) {
|
|
4792
4803
|
var result = list;
|
|
4804
|
+
// FIXME: 特殊业务逻辑
|
|
4793
4805
|
if (businessType == 'spu' && ((recordList === null || recordList === void 0 ? void 0 : recordList.some(function (i) {
|
|
4794
4806
|
var _i$colorValues;
|
|
4795
4807
|
return (i === null || i === void 0 ? void 0 : (_i$colorValues = i.colorValues) === null || _i$colorValues === void 0 ? void 0 : _i$colorValues.length) == 1;
|
|
@@ -4828,6 +4840,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4828
4840
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
4829
4841
|
// let
|
|
4830
4842
|
if (record.needFocus === true && currentIndex === 0) ;
|
|
4843
|
+
// FIXME: 特殊业务逻辑
|
|
4831
4844
|
var precisionObj = businessType == 'skc' ? {
|
|
4832
4845
|
precision: 0
|
|
4833
4846
|
} : {};
|
|
@@ -5100,6 +5113,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
5100
5113
|
}
|
|
5101
5114
|
});
|
|
5102
5115
|
delete params[key];
|
|
5116
|
+
} else if (element && key.indexOf('*multiInput') >= 0) {
|
|
5117
|
+
var name = '',
|
|
5118
|
+
_value = element['value'];
|
|
5119
|
+
if (_value.indexOf(',') >= 0) {
|
|
5120
|
+
name = "qp-".concat(element['name'], "-in");
|
|
5121
|
+
} else {
|
|
5122
|
+
name = "qp-".concat(element['name'], "-like");
|
|
5123
|
+
}
|
|
5124
|
+
params[name] = _value;
|
|
5125
|
+
delete params[key];
|
|
5103
5126
|
} else if (element && key.indexOf('*') >= 0) {
|
|
5104
5127
|
var _dataParams7 = key.split('*');
|
|
5105
5128
|
_dataParams7.forEach(function (value, index) {
|
|
@@ -5134,7 +5157,18 @@ var AddSelect = function AddSelect(props) {
|
|
|
5134
5157
|
pageSize: pageSize,
|
|
5135
5158
|
currentPage: currentPage
|
|
5136
5159
|
}, otherParams), fixedParam), params);
|
|
5137
|
-
|
|
5160
|
+
//todo 为了满足单个使用like查询,多个含,的使用in查询
|
|
5161
|
+
if (!queryParams.unConvert) {
|
|
5162
|
+
Object.keys(queryParams).forEach(function (key) {
|
|
5163
|
+
if (String(queryParams[key]).includes(',')) {
|
|
5164
|
+
if (key.includes('like')) {
|
|
5165
|
+
queryParams[key.replace('like', 'in')] = queryParams[key];
|
|
5166
|
+
delete queryParams[key];
|
|
5167
|
+
}
|
|
5168
|
+
}
|
|
5169
|
+
});
|
|
5170
|
+
}
|
|
5171
|
+
requestUtil.get("".concat(url).concat(url.includes("?") ? "&" : "?").concat(stringify(queryParams))).then(function (result) {
|
|
5138
5172
|
setFetching(false);
|
|
5139
5173
|
result = result.data;
|
|
5140
5174
|
if (judgeIsRequestError(result)) {
|
|
@@ -5329,27 +5363,31 @@ var AddSelect = function AddSelect(props) {
|
|
|
5329
5363
|
setTableFormParams({});
|
|
5330
5364
|
setIsModalVisible(false);
|
|
5331
5365
|
setTableData([]);
|
|
5366
|
+
onCancelCallback && onCancelCallback();
|
|
5332
5367
|
// if (selectMode) {
|
|
5333
5368
|
// run();
|
|
5334
5369
|
// }
|
|
5335
5370
|
};
|
|
5336
5371
|
var onSearchTable = function onSearchTable() {
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
// }
|
|
5372
|
+
form.validateFields().then(function () {
|
|
5373
|
+
var params = form.getFieldsValue();
|
|
5374
|
+
setTableFormParams(params);
|
|
5375
|
+
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
5376
|
+
pageSize: tableInitPageSize
|
|
5377
|
+
}), 2);
|
|
5378
|
+
});
|
|
5345
5379
|
};
|
|
5346
5380
|
var onResetTable = function onResetTable() {
|
|
5347
5381
|
form.resetFields();
|
|
5348
5382
|
setTableFormParams({});
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5383
|
+
form.validateFields().then(function () {
|
|
5384
|
+
getData({
|
|
5385
|
+
pageSize: tableInitPageSize,
|
|
5386
|
+
currentPage: 1
|
|
5387
|
+
}, 2);
|
|
5388
|
+
}).catch(function () {
|
|
5389
|
+
setTableData([]);
|
|
5390
|
+
});
|
|
5353
5391
|
};
|
|
5354
5392
|
var handleTableChange = function handleTableChange(pagination) {
|
|
5355
5393
|
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
@@ -5417,62 +5455,69 @@ var AddSelect = function AddSelect(props) {
|
|
|
5417
5455
|
var formItem = function formItem(list) {
|
|
5418
5456
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5419
5457
|
return list.map(function (i, index) {
|
|
5420
|
-
var
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5458
|
+
var name = i.name,
|
|
5459
|
+
label = i.label,
|
|
5460
|
+
field = i.field,
|
|
5461
|
+
_i$type = i.type,
|
|
5462
|
+
type = _i$type === void 0 ? '' : _i$type,
|
|
5463
|
+
filterFormItem = i.filterFormItem,
|
|
5464
|
+
_i$initialSource = i.initialSource,
|
|
5465
|
+
initialSource = _i$initialSource === void 0 ? [] : _i$initialSource,
|
|
5466
|
+
restProps = _objectWithoutProperties(i, _excluded2$2);
|
|
5467
|
+
if (type === 'custom_filter_form_item') return filterFormItem;
|
|
5468
|
+
if (type === 'select' || (field === null || field === void 0 ? void 0 : field.type) === 'select') {
|
|
5469
|
+
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({
|
|
5470
|
+
name: name,
|
|
5471
|
+
label: label,
|
|
5472
|
+
key: name
|
|
5473
|
+
}, restProps), /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
5428
5474
|
style: {
|
|
5429
5475
|
width: '100%'
|
|
5430
5476
|
},
|
|
5431
5477
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
5432
|
-
},
|
|
5478
|
+
}, field === null || field === void 0 ? void 0 : field.props), initialSource.length && initialSource.map(function (m) {
|
|
5433
5479
|
return /*#__PURE__*/React.createElement(Option$2, {
|
|
5434
5480
|
value: m.value,
|
|
5435
5481
|
key: m.value
|
|
5436
5482
|
}, m.text);
|
|
5437
|
-
})))
|
|
5483
|
+
})));
|
|
5438
5484
|
}
|
|
5439
|
-
if (
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
}, /*#__PURE__*/React.createElement(TreeSelect, _objectSpread2({
|
|
5485
|
+
if (type === 'treeSelect' || (field === null || field === void 0 ? void 0 : field.type) === 'treeSelect') {
|
|
5486
|
+
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({
|
|
5487
|
+
name: name,
|
|
5488
|
+
label: label,
|
|
5489
|
+
key: name
|
|
5490
|
+
}, restProps), /*#__PURE__*/React.createElement(TreeSelect, _objectSpread2({
|
|
5446
5491
|
style: {
|
|
5447
5492
|
width: '100%'
|
|
5448
5493
|
},
|
|
5449
5494
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
5450
|
-
},
|
|
5451
|
-
}
|
|
5452
|
-
if (
|
|
5453
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
5454
|
-
name:
|
|
5455
|
-
label:
|
|
5456
|
-
key:
|
|
5457
|
-
}, /*#__PURE__*/React.createElement(BusinessSearchSelect$1, _objectSpread2({},
|
|
5458
|
-
}
|
|
5459
|
-
if (
|
|
5460
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
5461
|
-
name:
|
|
5462
|
-
label:
|
|
5463
|
-
key:
|
|
5464
|
-
}, /*#__PURE__*/React.createElement(QueryMutipleInput, {
|
|
5495
|
+
}, field === null || field === void 0 ? void 0 : field.props)));
|
|
5496
|
+
}
|
|
5497
|
+
if (type === 'BusinessSearchSelect' || (field === null || field === void 0 ? void 0 : field.type) === 'BusinessSearchSelect') {
|
|
5498
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({
|
|
5499
|
+
name: name,
|
|
5500
|
+
label: label,
|
|
5501
|
+
key: name
|
|
5502
|
+
}, restProps), /*#__PURE__*/React.createElement(BusinessSearchSelect$1, _objectSpread2({}, field === null || field === void 0 ? void 0 : field.props))));
|
|
5503
|
+
}
|
|
5504
|
+
if (type === 'multipleQueryInput' || (field === null || field === void 0 ? void 0 : field.type) === 'multipleQueryInput') {
|
|
5505
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({
|
|
5506
|
+
name: name,
|
|
5507
|
+
label: label,
|
|
5508
|
+
key: name
|
|
5509
|
+
}, restProps), /*#__PURE__*/React.createElement(QueryMutipleInput, {
|
|
5465
5510
|
onValueChange: function onValueChange(value) {
|
|
5466
|
-
form.setFieldsValue(_defineProperty({},
|
|
5511
|
+
form.setFieldsValue(_defineProperty({}, name, value));
|
|
5467
5512
|
}
|
|
5468
5513
|
})));
|
|
5469
5514
|
}
|
|
5470
5515
|
// 默认type是input
|
|
5471
|
-
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
5472
|
-
name:
|
|
5473
|
-
label:
|
|
5474
|
-
key:
|
|
5475
|
-
}, /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
5516
|
+
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({
|
|
5517
|
+
name: name,
|
|
5518
|
+
label: label,
|
|
5519
|
+
key: name
|
|
5520
|
+
}, restProps), /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
5476
5521
|
id: index === 0 ? "first-query" : 'index',
|
|
5477
5522
|
style: {
|
|
5478
5523
|
width: '100%'
|
|
@@ -5485,7 +5530,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5485
5530
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
5486
5531
|
allowClear: true,
|
|
5487
5532
|
maxLength: 100
|
|
5488
|
-
},
|
|
5533
|
+
}, field === null || field === void 0 ? void 0 : field.props)));
|
|
5489
5534
|
});
|
|
5490
5535
|
} else {
|
|
5491
5536
|
return null;
|
|
@@ -5737,7 +5782,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
5737
5782
|
style: _objectSpread2(_objectSpread2({}, themeColor), {}, {
|
|
5738
5783
|
cursor: 'pointer'
|
|
5739
5784
|
})
|
|
5740
|
-
},
|
|
5785
|
+
}, clearTitle !== null && clearTitle !== void 0 ? clearTitle : '清空所选商品')))), /*#__PURE__*/React.createElement(Table, {
|
|
5741
5786
|
size: 'small',
|
|
5742
5787
|
columns: showSelectedCol,
|
|
5743
5788
|
dataSource: popvalue,
|
|
@@ -5776,7 +5821,7 @@ var getSkuImg = function getSkuImg(record) {
|
|
|
5776
5821
|
return imgShow;
|
|
5777
5822
|
};
|
|
5778
5823
|
|
|
5779
|
-
var _excluded$
|
|
5824
|
+
var _excluded$5 = ["onResize", "width"];
|
|
5780
5825
|
var _this = undefined;
|
|
5781
5826
|
var InputElement = function InputElement(_ref) {
|
|
5782
5827
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -5804,7 +5849,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
5804
5849
|
setValue = _useState6[1];
|
|
5805
5850
|
var inputRef = useRef(false);
|
|
5806
5851
|
var onSerchdata = function onSerchdata(name) {
|
|
5807
|
-
|
|
5852
|
+
requestUtil.get("/items/sku/pager/v2?".concat(stringify({
|
|
5808
5853
|
'skuCodeAndSkuName': name,
|
|
5809
5854
|
'pageSize': 100,
|
|
5810
5855
|
'qp-combination-eq': false,
|
|
@@ -6279,7 +6324,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
6279
6324
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
6280
6325
|
var onResize = props.onResize,
|
|
6281
6326
|
width = props.width,
|
|
6282
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
6327
|
+
restProps = _objectWithoutProperties(props, _excluded$5);
|
|
6283
6328
|
if (!width) {
|
|
6284
6329
|
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
6285
6330
|
}
|
|
@@ -6488,7 +6533,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
6488
6533
|
brandAuth: 'ctl-withAuth'
|
|
6489
6534
|
};
|
|
6490
6535
|
}
|
|
6491
|
-
return
|
|
6536
|
+
return requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
|
|
6492
6537
|
columns: ["skuCode", "quantity"],
|
|
6493
6538
|
data: resultData.map(function (i) {
|
|
6494
6539
|
return {
|
|
@@ -6823,7 +6868,7 @@ var getDictionaryTextByValue = function getDictionaryTextByValue(dicCode, value)
|
|
|
6823
6868
|
};
|
|
6824
6869
|
var loadSelectSource$1 = function loadSelectSource(url, params) {
|
|
6825
6870
|
return new Promise(function (resolve, reject) {
|
|
6826
|
-
|
|
6871
|
+
requestUtil.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
|
|
6827
6872
|
result = result.data;
|
|
6828
6873
|
if (judgeIsRequestError(result)) {
|
|
6829
6874
|
message$1.error(result.msg);
|
|
@@ -9182,24 +9227,28 @@ function handleSelectColumn(c, parentProps) {
|
|
|
9182
9227
|
var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
|
|
9183
9228
|
var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || [];
|
|
9184
9229
|
// 仅展示内容
|
|
9230
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9185
9231
|
if (showColumns === null || showColumns === void 0 ? void 0 : showColumns.length) {
|
|
9186
9232
|
result = result.filter(function (i) {
|
|
9187
9233
|
return showColumns.includes(i.dataIndex);
|
|
9188
9234
|
});
|
|
9189
9235
|
}
|
|
9190
9236
|
// 过滤不需要展示内容
|
|
9237
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9191
9238
|
if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
|
|
9192
9239
|
result = result.filter(function (i) {
|
|
9193
9240
|
return !exceptColumns.includes(i.dataIndex);
|
|
9194
9241
|
});
|
|
9195
9242
|
}
|
|
9196
9243
|
// 追加(最好不用这个,当组件不固定时候会有影响)
|
|
9244
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9197
9245
|
if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
|
|
9198
9246
|
additionColumns.forEach(function (i) {
|
|
9199
9247
|
result.splice(i.position, 0, i.column);
|
|
9200
9248
|
});
|
|
9201
9249
|
}
|
|
9202
9250
|
// 覆盖内容
|
|
9251
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9203
9252
|
if (coverColumns === null || coverColumns === void 0 ? void 0 : coverColumns.length) {
|
|
9204
9253
|
result = coverColumns;
|
|
9205
9254
|
}
|
|
@@ -9211,18 +9260,21 @@ function handleSearchForm(c, parentProps) {
|
|
|
9211
9260
|
var exceptTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableSearchForm) || [];
|
|
9212
9261
|
var coverTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableSearchForm) || [];
|
|
9213
9262
|
// 仅展示内容
|
|
9263
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9214
9264
|
if (showTableSearchForm === null || showTableSearchForm === void 0 ? void 0 : showTableSearchForm.length) {
|
|
9215
9265
|
result = result.filter(function (i) {
|
|
9216
9266
|
return showTableSearchForm.includes(i.name);
|
|
9217
9267
|
});
|
|
9218
9268
|
}
|
|
9219
9269
|
// 过滤不需要展示内容
|
|
9270
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9220
9271
|
if (exceptTableSearchForm === null || exceptTableSearchForm === void 0 ? void 0 : exceptTableSearchForm.length) {
|
|
9221
9272
|
result = result.filter(function (i) {
|
|
9222
9273
|
return !exceptTableSearchForm.includes(i.name);
|
|
9223
9274
|
});
|
|
9224
9275
|
}
|
|
9225
9276
|
// 覆盖内容
|
|
9277
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9226
9278
|
if (coverTableSearchForm === null || coverTableSearchForm === void 0 ? void 0 : coverTableSearchForm.length) {
|
|
9227
9279
|
result = coverTableSearchForm;
|
|
9228
9280
|
}
|
|
@@ -9235,18 +9287,21 @@ function handleFormSearchSourceLoad(c, parentProps) {
|
|
|
9235
9287
|
var coverTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableFormSearchSourceLoad) || [];
|
|
9236
9288
|
var noNeedTableFormSearchSourceLoad = parentProps === null || parentProps === void 0 ? void 0 : parentProps.noNeedTableFormSearchSourceLoad;
|
|
9237
9289
|
// 仅展示内容
|
|
9290
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9238
9291
|
if (showTableFormSearchSourceLoad === null || showTableFormSearchSourceLoad === void 0 ? void 0 : showTableFormSearchSourceLoad.length) {
|
|
9239
9292
|
result = result.filter(function (i) {
|
|
9240
9293
|
return showTableFormSearchSourceLoad.includes(i.url);
|
|
9241
9294
|
});
|
|
9242
9295
|
}
|
|
9243
9296
|
// 过滤不需要展示内容
|
|
9297
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9244
9298
|
if (exceptTableFormSearchSourceLoad === null || exceptTableFormSearchSourceLoad === void 0 ? void 0 : exceptTableFormSearchSourceLoad.length) {
|
|
9245
9299
|
result = result.filter(function (i) {
|
|
9246
9300
|
return !exceptTableFormSearchSourceLoad.includes(i.url);
|
|
9247
9301
|
});
|
|
9248
9302
|
}
|
|
9249
9303
|
// 覆盖内容
|
|
9304
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
9250
9305
|
if (coverTableFormSearchSourceLoad === null || coverTableFormSearchSourceLoad === void 0 ? void 0 : coverTableFormSearchSourceLoad.length) {
|
|
9251
9306
|
result = coverTableFormSearchSourceLoad;
|
|
9252
9307
|
}
|
|
@@ -9278,6 +9333,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9278
9333
|
showTitle: false
|
|
9279
9334
|
},
|
|
9280
9335
|
dataIndex: 'itemEancode',
|
|
9336
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115627
|
|
9281
9337
|
render: function render(text) {
|
|
9282
9338
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
9283
9339
|
placement: "topLeft",
|
|
@@ -9327,6 +9383,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9327
9383
|
},
|
|
9328
9384
|
render: function render(text, record) {
|
|
9329
9385
|
var _record$packingUnitLi;
|
|
9386
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115636
|
|
9330
9387
|
if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : _record$packingUnitLi.length) {
|
|
9331
9388
|
var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
|
|
9332
9389
|
record.selectUnitCode = basePackUnit.unitCode;
|
|
@@ -9409,6 +9466,10 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9409
9466
|
}, text);
|
|
9410
9467
|
}
|
|
9411
9468
|
}]), [{
|
|
9469
|
+
title: 'SKC编码',
|
|
9470
|
+
width: 150,
|
|
9471
|
+
dataIndex: 'skcCode'
|
|
9472
|
+
}, {
|
|
9412
9473
|
title: '所属SPU名称',
|
|
9413
9474
|
width: 100,
|
|
9414
9475
|
ellipsis: {
|
|
@@ -9503,10 +9564,19 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9503
9564
|
var mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
|
|
9504
9565
|
var initialTableSearchForm = [{
|
|
9505
9566
|
name: 'qp-skuCode-like',
|
|
9506
|
-
label: 'SKU编码'
|
|
9567
|
+
label: 'SKU编码',
|
|
9568
|
+
type: 'multipleQueryInput'
|
|
9507
9569
|
}, {
|
|
9508
9570
|
name: 'qp-skuName-like',
|
|
9509
9571
|
label: 'SKU名称'
|
|
9572
|
+
}, {
|
|
9573
|
+
name: 'qp-skcCode-like',
|
|
9574
|
+
label: 'SKC编码',
|
|
9575
|
+
type: 'multipleQueryInput'
|
|
9576
|
+
}, {
|
|
9577
|
+
name: 'qp-itemCode-like',
|
|
9578
|
+
label: 'SPU编码',
|
|
9579
|
+
type: 'multipleQueryInput'
|
|
9510
9580
|
}].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
|
|
9511
9581
|
name: 'qp-code-in',
|
|
9512
9582
|
label: '商品条码',
|
|
@@ -9634,7 +9704,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9634
9704
|
setPropertyList = _useState6[1];
|
|
9635
9705
|
useEffect(function () {
|
|
9636
9706
|
// type: 1 尺码组; 2 配码组
|
|
9637
|
-
|
|
9707
|
+
requestUtil.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
|
|
9638
9708
|
result = result.data;
|
|
9639
9709
|
if (judgeIsRequestError(result)) {
|
|
9640
9710
|
message$1.error(result.msg);
|
|
@@ -9691,7 +9761,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9691
9761
|
var initialPromiseLoadList = [{
|
|
9692
9762
|
url: "/items/item/propertyValue/sizeBySkcConfig",
|
|
9693
9763
|
params: {
|
|
9694
|
-
pageSize:
|
|
9764
|
+
pageSize: 50,
|
|
9695
9765
|
currentPage: 1,
|
|
9696
9766
|
type: 2 // 类型:1尺码;2颜色
|
|
9697
9767
|
},
|
|
@@ -9701,7 +9771,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
9701
9771
|
}, {
|
|
9702
9772
|
url: "/items/category/queryCategoryTree",
|
|
9703
9773
|
params: {
|
|
9704
|
-
pageSize:
|
|
9774
|
+
pageSize: 50,
|
|
9705
9775
|
currentPage: 1
|
|
9706
9776
|
},
|
|
9707
9777
|
resType: 'treeList',
|
|
@@ -9952,7 +10022,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
9952
10022
|
useEffect(function () {
|
|
9953
10023
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
9954
10024
|
// type: 1 尺码组; 2 配码组
|
|
9955
|
-
|
|
10025
|
+
requestUtil.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
|
|
9956
10026
|
result = result.data;
|
|
9957
10027
|
if (judgeIsRequestError(result)) {
|
|
9958
10028
|
message$1.error(result.msg);
|
|
@@ -10037,7 +10107,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
10037
10107
|
}, {
|
|
10038
10108
|
url: "/items/category/queryCategoryTree",
|
|
10039
10109
|
params: {
|
|
10040
|
-
pageSize:
|
|
10110
|
+
pageSize: 50,
|
|
10041
10111
|
currentPage: 1
|
|
10042
10112
|
},
|
|
10043
10113
|
resType: 'treeList',
|
|
@@ -10375,7 +10445,7 @@ function getStorageVale(storageKeyString) {
|
|
|
10375
10445
|
return "";
|
|
10376
10446
|
}
|
|
10377
10447
|
|
|
10378
|
-
var _excluded$
|
|
10448
|
+
var _excluded$6 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
|
|
10379
10449
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
10380
10450
|
var _useState = useState([]),
|
|
10381
10451
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10417,7 +10487,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
10417
10487
|
} : _props$style,
|
|
10418
10488
|
getTreeData = props.getTreeData,
|
|
10419
10489
|
disabled = props.disabled,
|
|
10420
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
10490
|
+
restProps = _objectWithoutProperties(props, _excluded$6);
|
|
10421
10491
|
var url = remoteSource.url,
|
|
10422
10492
|
headers = remoteSource.headers,
|
|
10423
10493
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -10458,7 +10528,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
10458
10528
|
/* 实时查询 但是目前用的直接是完整数据源, 所以没有使用 */
|
|
10459
10529
|
var handleSearch = function handleSearch(q) {
|
|
10460
10530
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
10461
|
-
|
|
10531
|
+
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
10462
10532
|
headers: headers
|
|
10463
10533
|
}).then( /*#__PURE__*/function () {
|
|
10464
10534
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
@@ -10817,11 +10887,11 @@ var arrow_top = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXA
|
|
|
10817
10887
|
var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005CFF;\n height: 20px;\n margin-right: 16px;\n}\n.field-group-hidden .ant-card-body {\n display: none !important;\n}\n";
|
|
10818
10888
|
styleInject(css_248z$9);
|
|
10819
10889
|
|
|
10820
|
-
var _excluded$
|
|
10821
|
-
_excluded2$
|
|
10890
|
+
var _excluded$7 = ["children"],
|
|
10891
|
+
_excluded2$3 = ["children"];
|
|
10822
10892
|
var Field = function Field(_ref) {
|
|
10823
10893
|
var children = _ref.children,
|
|
10824
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10894
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
10825
10895
|
var _React$useState = React.useState(true),
|
|
10826
10896
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
10827
10897
|
fieldGroupVisible = _React$useState2[0],
|
|
@@ -10867,8 +10937,10 @@ var GuideWrapper = /*#__PURE__*/function (_Component) {
|
|
|
10867
10937
|
var _this$props = this.props,
|
|
10868
10938
|
_this$props$children = _this$props.children,
|
|
10869
10939
|
children = _this$props$children === void 0 ? [] : _this$props$children,
|
|
10870
|
-
props = _objectWithoutProperties(_this$props, _excluded2$
|
|
10871
|
-
|
|
10940
|
+
props = _objectWithoutProperties(_this$props, _excluded2$3);
|
|
10941
|
+
// 兼容容器下只有一个dom元素非数组的情况
|
|
10942
|
+
var domList = Array.isArray(children) ? children : [children];
|
|
10943
|
+
var cardGroups = domList.filter(function (item) {
|
|
10872
10944
|
var _item$props, _item$props2;
|
|
10873
10945
|
return (item === null || item === void 0 ? void 0 : (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.id) && (item === null || item === void 0 ? void 0 : (_item$props2 = item.props) === null || _item$props2 === void 0 ? void 0 : _item$props2.title);
|
|
10874
10946
|
});
|
|
@@ -10890,6 +10962,12 @@ var GuideWrapper = /*#__PURE__*/function (_Component) {
|
|
|
10890
10962
|
block: 'center',
|
|
10891
10963
|
behavior: 'smooth'
|
|
10892
10964
|
});
|
|
10965
|
+
// 高亮
|
|
10966
|
+
var heightLight = currentDom.getElementsByClassName('ant-card-head-title');
|
|
10967
|
+
heightLight[0].style.backgroundColor = '#2065c7';
|
|
10968
|
+
setTimeout(function () {
|
|
10969
|
+
heightLight[0].style.backgroundColor = '';
|
|
10970
|
+
}, 800);
|
|
10893
10971
|
}
|
|
10894
10972
|
}, item.props.title);
|
|
10895
10973
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -10907,11 +10985,13 @@ GuideWrapper.Field = Field;
|
|
|
10907
10985
|
var exportlogo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAAAXNSR0IArs4c6QAAB0JJREFUeF7tnFtsFFUYx/9nehFaaMGooDZWrTvdRAwoog8SbdUHL4nRwJPxRtRo1GC8JxLwghDvGowvGi8RDC/iAw/6YLDVaLwiqKjbWVepbUhRDLTSUtsyx/zX85FhmHZnlu6yu51JGtjd2dnz/eb/Xc539qyC79BaW0op1/u01rqqt7e3tqamxvKfXw6PR0dH3aamphGl1EGfXUfYqoJOyGQyja7rXuO67mVa69OVUg0AagFUlQOAgDESxIjWekAptdOyrC2WZW1uaWnp9wvgEBB5wXGcJQDWaa1PAaABDALYC2DUT7hc4FDhAGoAzAZQD0AppXYBWG7b9iYvlCwQD4yVWusnCcGyrHUANluWtau2tnb/4ODg6KxZsw5zpXIBsm/fPqu+vr5mZGRkhuu6vNFU/3LCUUqtsm17tTBQpMc7T2Vord8D8JtSaolt29u11iRJlVTMITY5jrNAa70JwJlKqaVGKVVZhaTT6Qat9Q6t9Ryl1MW2bX/V0dFRzdfa2tpEFeUOJmtrZ2dnNjG0t7ePOY5zodb6U6XUbqXUvEQiMSBAbnBdd71lWWsTicQKwuAbKkYWAYaIjel0eo3ruo9alnVjIpHYkAXS1dX1FoBbtNaLk8nk5+JGlQxEbEylUhcppT4D8HZra+uyLBDHcTq01gurq6vntbS0/BFUi1QaHLExk8mcNjY2tkMptdW27XYG1WrHcb4GcMK0adPmNzc3751KQLq7u2cPDw9/D2CPbdsXqJ6enulDQ0PfAJiutV6QTCb/qcTsElCRZzNoKpWaqZTaDuBAXV3dItXX11ff39//rVKqqqGh4dy5c+cOTiUgtH9gYGCb1vpgY2Pj+TGQGMj/ziNeUO4KYVElBeJRFYqVAEQmogKCj/OGUu5AxPizALwAYA0AlgqcxR7W4whbL5UzELoJ51NnAODk8zxOQAGwTcF0mReUYgHh4CjjiaQcVeYC5HoA77LRY5pVvQCuAvBjPlCKAeSofDqH1OXadwF4lc0q0/DJALguHyiFBiIDngdgKYCmAAN5p/8F8BCA/SEA8Hx/IGW8uM/EEboRFdltlPJzFKUUEohIejGADwHMMC7j7dfSTfj4AIBmAH+Zx3734TkSE4JcSz7rVgCvmc/h+WmjlJ/Gue4R/AsJRD7sIwCXe+R8WP86BxDp5kszajqAswGcCuBEAHOMiwjkYQA3AUgCYN+GzaxfAVwLgFAE3LhCLBQQcZU6AAxybOJygOsB7ARwnCfA8lwGxOcADHlG6oXBTHIHgEsAnGMawmEyqcSU9032yfmeYgDZbdyFbkGDOIPOlRLl9ZMA3MMuOIDGAJfzG0glETD/GFd4nS7jNr+UikIECOXcDuBLI3N/4SRuIbJmIN4AYL7HOAKg0n43QfNP85jPMzDTNehK4i6EwedSxzqGeF2Gg+aaB4FQIRNVkqIMxpyNbE55Yg9djS7HjjgzB42WoMx/7zdZRpTBIu0KE1hzKfKQ0orhMmGBiDIYND8GQHehcXyea0FPA+jz3Wl5z4MmBgUF0tAwCjnbjaoQOZ9xYguAhQYGDbyTjV4DRs6TWEFlrATARTSBQSVdadyEWSbSKkGpKEQG/hSAFR7jWFe8adInIXhXCAUO647bjebpJqxQfwgRuAMzTikAEdm3AvjE1BYc7EsmLhAWXSeoWJMY8rqpSi/NVxlCp5SAiPQ5th4ze90TMjuwYOPaLOcwkWLGeE3mye6YRY0hVAHrkwVmgI8AeDakcd6pgPzfW9RFWog/1goRcMws35npOwu4toiNHinGIhkfFESONRCRt/Q0OEbWKQRCMPm0DhYBYAeNKtlmapbQ1ykVIJy6v2ju2AcArg7pLkE3mc0iAubxBIDHw5TspRJUJd0+A+BhM6h3ANxsyntOzsIeogJmnNvMm5jC15YjkJcB3GuMeMMYFLWoEiCsW5aZa60CsLocgdBd6DY8YiAAXjHTfAIRl5nSCnkMwN1G2pQ848mUBCIB83gA/M4r48AAgL/zSLkVEUPCZpAw51UUEKk0aXiuBa3x4JQlEM5GvzAlel5rrxNIhUDY+2DvhHUMj5JMu9JTZUedJXmYJnMYF/GfE9QfKUkgbPvNNEsNzCRbTY/1qCdiPiIEwsqWEFj682BLgU2nnOsxhS7d5fr8Yj27V1w4EheJuqgdVS00nmC49sOKlS4UOoUXanJHI+SuPADgedP+K8a+GiqPn8MVO3b5ubuhJBQiPs39NFxsYrP4ZM9CddQ7H+Z8WSdm4Ka78HsioWFkU5zZ2DDZHTPv4AUM3Yd/hT7oklwDOhQWonxgsYAQymQH0Vx2RlJGsYJqUGrMZchkvJ534C6GQibDwKJdIwbiQx0DiYFM7H3jKiTeHuLbHhJvIPJtIKKw4i1mni1mBBJvQvRtQkyn0/E2Ve821Xgjs2cjc7zVPWCre/xjCJ4fQ/DM/rI/LhL/XIa3oWB+XSb+QZUAKN7Cdyr95M5/xzmpLRDiZSsAAAAASUVORK5CYII=";
|
|
10908
10986
|
|
|
10909
10987
|
var ExportIcon = function ExportIcon(_ref) {
|
|
10910
|
-
var
|
|
10911
|
-
tableRef = _ref.tableRef
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10988
|
+
var exportRequest = _ref.request,
|
|
10989
|
+
tableRef = _ref.tableRef,
|
|
10990
|
+
allowSelect = _ref.allowSelect,
|
|
10991
|
+
columnsRowKey = _ref.columnsRowKey;
|
|
10992
|
+
var url = exportRequest.url,
|
|
10993
|
+
params = exportRequest.params,
|
|
10994
|
+
others = exportRequest.others;
|
|
10915
10995
|
return /*#__PURE__*/React.createElement("div", {
|
|
10916
10996
|
style: {
|
|
10917
10997
|
cursor: 'pointer'
|
|
@@ -10922,21 +11002,27 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
10922
11002
|
width: 32,
|
|
10923
11003
|
src: exportlogo,
|
|
10924
11004
|
onClick: function onClick() {
|
|
10925
|
-
var _tableRef$current
|
|
11005
|
+
var _tableRef$current;
|
|
10926
11006
|
var convertedParams = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getExportParams();
|
|
10927
11007
|
var requestData;
|
|
10928
11008
|
if (typeof params === 'function') {
|
|
10929
11009
|
requestData = _objectSpread2({}, omit(params(convertedParams), 'selectedRows'));
|
|
11010
|
+
requestData.pageSize = 100000;
|
|
10930
11011
|
} else if (_typeof(params) === 'object') {
|
|
10931
11012
|
requestData = _objectSpread2({}, params);
|
|
10932
11013
|
}
|
|
10933
11014
|
if (!params) {
|
|
10934
11015
|
requestData = omit(convertedParams, 'selectedRows');
|
|
11016
|
+
requestData.pageSize = 100000;
|
|
11017
|
+
}
|
|
11018
|
+
if (allowSelect) {
|
|
11019
|
+
var _convertedParams$sele, _convertedParams$sele2;
|
|
11020
|
+
var selectKey = (allowSelect === null || allowSelect === void 0 ? void 0 : allowSelect.key) || columnsRowKey;
|
|
11021
|
+
requestData["qp-".concat(selectKey, "-in")] = convertedParams === null || convertedParams === void 0 ? void 0 : (_convertedParams$sele = convertedParams.selectedRows) === null || _convertedParams$sele === void 0 ? void 0 : (_convertedParams$sele2 = _convertedParams$sele.map(function (d) {
|
|
11022
|
+
return d[selectKey];
|
|
11023
|
+
})) === null || _convertedParams$sele2 === void 0 ? void 0 : _convertedParams$sele2.join(',');
|
|
10935
11024
|
}
|
|
10936
|
-
|
|
10937
|
-
return d.id;
|
|
10938
|
-
})) === null || _convertedParams$sele2 === void 0 ? void 0 : _convertedParams$sele2.join(',');
|
|
10939
|
-
axios(_objectSpread2({
|
|
11025
|
+
requestUtil(_objectSpread2({
|
|
10940
11026
|
url: url,
|
|
10941
11027
|
method: 'POST',
|
|
10942
11028
|
data: requestData
|
|
@@ -10956,7 +11042,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
10956
11042
|
var css_248z$a = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.global_tab_nav_style {\n top: 2px !important;\n}\n.row-dragging {\n background: #fafafa;\n border: 1px solid #ccc;\n z-index: 10000;\n}\n.row-dragging td {\n padding: 7px 16px;\n display: none;\n}\n.row-dragging td:first-child {\n display: inline-block;\n}\n.row-dragging .drag-visible {\n visibility: visible;\n}\n";
|
|
10957
11043
|
styleInject(css_248z$a);
|
|
10958
11044
|
|
|
10959
|
-
var _excluded$
|
|
11045
|
+
var _excluded$8 = ["className", "style"];
|
|
10960
11046
|
var Search$1 = Input.Search;
|
|
10961
11047
|
var DragHandle$1 = SortableHandle(function () {
|
|
10962
11048
|
return /*#__PURE__*/React.createElement("img", {
|
|
@@ -11002,7 +11088,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11002
11088
|
fixed: item.fixed
|
|
11003
11089
|
};
|
|
11004
11090
|
});
|
|
11005
|
-
|
|
11091
|
+
requestUtil({
|
|
11006
11092
|
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
11007
11093
|
method: 'POST',
|
|
11008
11094
|
data: {
|
|
@@ -11068,6 +11154,17 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11068
11154
|
})
|
|
11069
11155
|
});
|
|
11070
11156
|
};
|
|
11157
|
+
_this.isColumnsChange = function () {
|
|
11158
|
+
var pre = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
11159
|
+
var next = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
11160
|
+
var preKeyStr = pre.map(function (item) {
|
|
11161
|
+
return item.key || item.dataIndex;
|
|
11162
|
+
}).join(',');
|
|
11163
|
+
var nextKeyStr = next.map(function (item) {
|
|
11164
|
+
return item.key || item.dataIndex;
|
|
11165
|
+
}).join(',');
|
|
11166
|
+
return preKeyStr !== nextKeyStr;
|
|
11167
|
+
};
|
|
11071
11168
|
_this.columns = [{
|
|
11072
11169
|
title: '列名称',
|
|
11073
11170
|
dataIndex: 'title',
|
|
@@ -11324,7 +11421,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11324
11421
|
_this.DraggableBodyRow = function (_ref2) {
|
|
11325
11422
|
var className = _ref2.className,
|
|
11326
11423
|
style = _ref2.style,
|
|
11327
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11424
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$8);
|
|
11328
11425
|
var sortDataSource = _this.state.sortDataSource;
|
|
11329
11426
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
11330
11427
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -11417,8 +11514,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11417
11514
|
_createClass(SortableTable, [{
|
|
11418
11515
|
key: "componentWillReceiveProps",
|
|
11419
11516
|
value: function componentWillReceiveProps(nextProps) {
|
|
11420
|
-
var _this$props3
|
|
11421
|
-
if (((_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : _this$props3.datasource
|
|
11517
|
+
var _this$props3;
|
|
11518
|
+
if (this.isColumnsChange((_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : _this$props3.datasource, nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource)) {
|
|
11422
11519
|
this.setInitValue((nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource) || []);
|
|
11423
11520
|
}
|
|
11424
11521
|
}
|
|
@@ -11591,8 +11688,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11591
11688
|
return SortableTable;
|
|
11592
11689
|
}(React.Component);
|
|
11593
11690
|
|
|
11594
|
-
var _excluded$
|
|
11595
|
-
_excluded2$
|
|
11691
|
+
var _excluded$9 = ["onResize", "width"],
|
|
11692
|
+
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
11596
11693
|
var Text = Typography.Text;
|
|
11597
11694
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
11598
11695
|
_inherits(ColumnSettingSulaTable, _React$Component);
|
|
@@ -11704,7 +11801,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11704
11801
|
_this.ResizeableTitle = function (props) {
|
|
11705
11802
|
var onResize = props.onResize,
|
|
11706
11803
|
width = props.width,
|
|
11707
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
11804
|
+
restProps = _objectWithoutProperties(props, _excluded$9);
|
|
11708
11805
|
if (!width) {
|
|
11709
11806
|
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
11710
11807
|
}
|
|
@@ -11763,7 +11860,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11763
11860
|
dynamicColumns = _this$props3$dynamicC === void 0 ? [] : _this$props3$dynamicC,
|
|
11764
11861
|
_this$props3$scroll = _this$props3.scroll,
|
|
11765
11862
|
scroll = _this$props3$scroll === void 0 ? {} : _this$props3$scroll,
|
|
11766
|
-
restProps = _objectWithoutProperties(_this$props3, _excluded2$
|
|
11863
|
+
restProps = _objectWithoutProperties(_this$props3, _excluded2$4);
|
|
11767
11864
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
11768
11865
|
var showSummary = null;
|
|
11769
11866
|
if (this.state.showColumns.length) {
|
|
@@ -11838,8 +11935,8 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11838
11935
|
return ColumnSettingSulaTable;
|
|
11839
11936
|
}(React.Component);
|
|
11840
11937
|
|
|
11841
|
-
var _excluded$
|
|
11842
|
-
_excluded2$
|
|
11938
|
+
var _excluded$a = ["onResize", "width"],
|
|
11939
|
+
_excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
11843
11940
|
var Text$1 = Typography.Text;
|
|
11844
11941
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
11845
11942
|
_inherits(ColumnSettingTable, _React$Component);
|
|
@@ -11950,7 +12047,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
11950
12047
|
_this.ResizeableTitle = function (props) {
|
|
11951
12048
|
var onResize = props.onResize,
|
|
11952
12049
|
width = props.width,
|
|
11953
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
12050
|
+
restProps = _objectWithoutProperties(props, _excluded$a);
|
|
11954
12051
|
if (!width) {
|
|
11955
12052
|
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
11956
12053
|
}
|
|
@@ -12006,7 +12103,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12006
12103
|
dynamicColumns = _this$props3$dynamicC === void 0 ? [] : _this$props3$dynamicC,
|
|
12007
12104
|
_this$props3$scroll = _this$props3.scroll,
|
|
12008
12105
|
scroll = _this$props3$scroll === void 0 ? {} : _this$props3$scroll,
|
|
12009
|
-
restProps = _objectWithoutProperties(_this$props3, _excluded2$
|
|
12106
|
+
restProps = _objectWithoutProperties(_this$props3, _excluded2$5);
|
|
12010
12107
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
12011
12108
|
var showSummary = null;
|
|
12012
12109
|
if (this.state.showColumns.length) {
|
|
@@ -12089,7 +12186,7 @@ var doDetailPageAction = function doDetailPageAction(config) {
|
|
|
12089
12186
|
successMessage: config === null || config === void 0 ? void 0 : config.successMessage
|
|
12090
12187
|
};
|
|
12091
12188
|
var onOk = function onOk() {
|
|
12092
|
-
request$
|
|
12189
|
+
request$2(requestConfig).then(function (res) {
|
|
12093
12190
|
if (config.backPath) {
|
|
12094
12191
|
history.push({
|
|
12095
12192
|
pathname: config.backPath
|
|
@@ -12162,12 +12259,12 @@ var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D
|
|
|
12162
12259
|
var css_248z$c = "";
|
|
12163
12260
|
styleInject(css_248z$c);
|
|
12164
12261
|
|
|
12165
|
-
var _excluded$
|
|
12262
|
+
var _excluded$b = ["message", "type"];
|
|
12166
12263
|
var CommonAlert = (function (props) {
|
|
12167
12264
|
var message = props.message,
|
|
12168
12265
|
_props$type = props.type,
|
|
12169
12266
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
12170
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
12267
|
+
reset = _objectWithoutProperties(props, _excluded$b);
|
|
12171
12268
|
return /*#__PURE__*/React.createElement("div", {
|
|
12172
12269
|
style: {
|
|
12173
12270
|
width: '100%',
|
|
@@ -12188,7 +12285,7 @@ var CommonAlert = (function (props) {
|
|
|
12188
12285
|
}, reset)));
|
|
12189
12286
|
});
|
|
12190
12287
|
|
|
12191
|
-
var _excluded$
|
|
12288
|
+
var _excluded$c = ["children"];
|
|
12192
12289
|
var iconMap = {
|
|
12193
12290
|
edit: /*#__PURE__*/React.createElement("img", {
|
|
12194
12291
|
src: editIcon
|
|
@@ -12210,7 +12307,7 @@ var index$4 = (function (props) {
|
|
|
12210
12307
|
_useState2 = _slicedToArray(_useState, 1),
|
|
12211
12308
|
id = _useState2[0];
|
|
12212
12309
|
var children = props.children,
|
|
12213
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
12310
|
+
restProps = _objectWithoutProperties(props, _excluded$c);
|
|
12214
12311
|
return /*#__PURE__*/React.createElement("div", {
|
|
12215
12312
|
id: id,
|
|
12216
12313
|
className: 'detail_page_wrapper'
|
|
@@ -12420,7 +12517,7 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
12420
12517
|
var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 20px;\n}\n.home_page_head .home_page_title {\n height: 20px;\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n flex-grow: 1;\n margin-top: 2px;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n";
|
|
12421
12518
|
styleInject(css_248z$d);
|
|
12422
12519
|
|
|
12423
|
-
var _excluded$
|
|
12520
|
+
var _excluded$d = ["children"];
|
|
12424
12521
|
var index$5 = (function (props) {
|
|
12425
12522
|
var _useLocation = useLocation(),
|
|
12426
12523
|
pathname = _useLocation.pathname;
|
|
@@ -12428,7 +12525,7 @@ var index$5 = (function (props) {
|
|
|
12428
12525
|
_useState2 = _slicedToArray(_useState, 1),
|
|
12429
12526
|
id = _useState2[0];
|
|
12430
12527
|
var children = props.children,
|
|
12431
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
12528
|
+
restProps = _objectWithoutProperties(props, _excluded$d);
|
|
12432
12529
|
return /*#__PURE__*/React.createElement("div", {
|
|
12433
12530
|
id: id,
|
|
12434
12531
|
className: 'home_page_wrapper'
|
|
@@ -12531,7 +12628,7 @@ var HeaderWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
12531
12628
|
var css_248z$e = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n";
|
|
12532
12629
|
styleInject(css_248z$e);
|
|
12533
12630
|
|
|
12534
|
-
var _excluded$
|
|
12631
|
+
var _excluded$e = ["className", "style"];
|
|
12535
12632
|
var DragHandle$2 = SortableHandle(function () {
|
|
12536
12633
|
return /*#__PURE__*/React.createElement("img", {
|
|
12537
12634
|
width: 25,
|
|
@@ -12578,7 +12675,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12578
12675
|
};
|
|
12579
12676
|
}) : '';
|
|
12580
12677
|
return new Promise(function (resolve, reject) {
|
|
12581
|
-
|
|
12678
|
+
requestUtil({
|
|
12582
12679
|
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
12583
12680
|
method: 'POST',
|
|
12584
12681
|
data: {
|
|
@@ -12626,8 +12723,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12626
12723
|
currentSetting[0].detail = JSON.stringify(configvalue);
|
|
12627
12724
|
} else {
|
|
12628
12725
|
configArray.push({
|
|
12629
|
-
|
|
12630
|
-
|
|
12726
|
+
code: bsTableCode,
|
|
12727
|
+
detail: JSON.stringify(configvalue)
|
|
12631
12728
|
});
|
|
12632
12729
|
}
|
|
12633
12730
|
localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
|
|
@@ -12899,10 +12996,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12899
12996
|
// this.patchUserColumnConfig('');
|
|
12900
12997
|
// return;
|
|
12901
12998
|
// }
|
|
12902
|
-
|
|
12999
|
+
_this.patchUserColumnConfig(sortDataSource);
|
|
12903
13000
|
};
|
|
12904
13001
|
_this.handleCancel = function (e) {
|
|
12905
|
-
console.log(e);
|
|
12906
13002
|
_this.setState({
|
|
12907
13003
|
visible: false
|
|
12908
13004
|
});
|
|
@@ -12965,7 +13061,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12965
13061
|
_this.DraggableBodyRow = function (_ref2) {
|
|
12966
13062
|
var className = _ref2.className,
|
|
12967
13063
|
style = _ref2.style,
|
|
12968
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
13064
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$e);
|
|
12969
13065
|
var sortDataSource = _this.state.sortDataSource;
|
|
12970
13066
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
12971
13067
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -12982,11 +13078,11 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12982
13078
|
if (!e.target.checked) {
|
|
12983
13079
|
_this.setState({
|
|
12984
13080
|
sortDataSource: sortDataSource.filter(function (item) {
|
|
12985
|
-
return item.title !== title;
|
|
13081
|
+
return renderToString(item.title) !== renderToString(title);
|
|
12986
13082
|
}),
|
|
12987
13083
|
isDefaultValue: false,
|
|
12988
13084
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
12989
|
-
if (item.title === title) {
|
|
13085
|
+
if (renderToString(item.title) === renderToString(title)) {
|
|
12990
13086
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
12991
13087
|
hidden: true
|
|
12992
13088
|
});
|
|
@@ -12999,7 +13095,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
12999
13095
|
var _fixedRight = [];
|
|
13000
13096
|
var noFixedSortSource = [];
|
|
13001
13097
|
var newSortData = [].concat(_toConsumableArray(sortDataSource), _toConsumableArray(dataSource.filter(function (item) {
|
|
13002
|
-
return item.title === title;
|
|
13098
|
+
return renderToString(item.title) === renderToString(title);
|
|
13003
13099
|
}).map(function (source) {
|
|
13004
13100
|
return _objectSpread2(_objectSpread2({}, source), {}, {
|
|
13005
13101
|
hidden: false
|
|
@@ -13018,7 +13114,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13018
13114
|
sortDataSource: [].concat(_fixedLeft, noFixedSortSource, _fixedRight),
|
|
13019
13115
|
isDefaultValue: false,
|
|
13020
13116
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
13021
|
-
if (item.title === title) {
|
|
13117
|
+
if (renderToString(item.title) === renderToString(title)) {
|
|
13022
13118
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13023
13119
|
hidden: false
|
|
13024
13120
|
});
|
|
@@ -13109,8 +13205,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13109
13205
|
visible = _this$state5.visible,
|
|
13110
13206
|
onSearchSort = _this$state5.onSearchSort;
|
|
13111
13207
|
var seatchDataSource = dataSource.filter(function (item) {
|
|
13112
|
-
var
|
|
13113
|
-
return (item === null || item === void 0 ? void 0 : (
|
|
13208
|
+
var _renderToString, _renderToString$index;
|
|
13209
|
+
return ((_renderToString = renderToString(item === null || item === void 0 ? void 0 : item.title)) === null || _renderToString === void 0 ? void 0 : (_renderToString$index = _renderToString.indexOf) === null || _renderToString$index === void 0 ? void 0 : _renderToString$index.call(_renderToString, searchDataSource || '')) > -1;
|
|
13114
13210
|
});
|
|
13115
13211
|
return /*#__PURE__*/React.createElement("div", {
|
|
13116
13212
|
className: 'sort_table_wrapper'
|
|
@@ -13127,7 +13223,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13127
13223
|
style: {
|
|
13128
13224
|
marginRight: 0
|
|
13129
13225
|
}
|
|
13130
|
-
}, "\u6062\u590D\u9ED8\u8BA4"),
|
|
13226
|
+
}, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React.createElement(Button, {
|
|
13131
13227
|
key: "back",
|
|
13132
13228
|
onClick: this.handleResetSetting
|
|
13133
13229
|
}, "\u91CD\u7F6E\u8BBE\u7F6E")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -13136,7 +13232,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13136
13232
|
style: {
|
|
13137
13233
|
marginRight: 0
|
|
13138
13234
|
}
|
|
13139
|
-
}, "\u53D6\u6D88"),
|
|
13235
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
13140
13236
|
key: "submit",
|
|
13141
13237
|
type: "primary",
|
|
13142
13238
|
onClick: this.handleOk
|
|
@@ -13203,8 +13299,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13203
13299
|
}
|
|
13204
13300
|
}, item.title);
|
|
13205
13301
|
}) : dataSource.filter(function (item) {
|
|
13206
|
-
var
|
|
13207
|
-
|
|
13302
|
+
var _title$indexOf, _title$indexOf2;
|
|
13303
|
+
var title = renderToString(item.title);
|
|
13304
|
+
return (title === null || title === void 0 ? void 0 : (_title$indexOf = title.indexOf) === null || _title$indexOf === void 0 ? void 0 : _title$indexOf.call(title, '人')) === -1 && (title === null || title === void 0 ? void 0 : (_title$indexOf2 = title.indexOf) === null || _title$indexOf2 === void 0 ? void 0 : _title$indexOf2.call(title, '日期')) === -1;
|
|
13208
13305
|
}).map(function (item) {
|
|
13209
13306
|
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
13210
13307
|
checked: !item.hidden,
|
|
@@ -13223,8 +13320,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13223
13320
|
}, /*#__PURE__*/React.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React.createElement("div", {
|
|
13224
13321
|
className: 'sort_table_column_all'
|
|
13225
13322
|
}, _toConsumableArray(dataSource).filter(function (item) {
|
|
13226
|
-
var _item$
|
|
13227
|
-
return (item === null || item === void 0 ? void 0 : (_item$
|
|
13323
|
+
var _item$title, _item$title$indexOf, _item$title2, _item$title2$indexOf;
|
|
13324
|
+
return (item === null || item === void 0 ? void 0 : (_item$title = item.title) === null || _item$title === void 0 ? void 0 : (_item$title$indexOf = _item$title.indexOf) === null || _item$title$indexOf === void 0 ? void 0 : _item$title$indexOf.call(_item$title, '人')) > -1 || (item === null || item === void 0 ? void 0 : (_item$title2 = item.title) === null || _item$title2 === void 0 ? void 0 : (_item$title2$indexOf = _item$title2.indexOf) === null || _item$title2$indexOf === void 0 ? void 0 : _item$title2$indexOf.call(_item$title2, '日期')) > -1;
|
|
13228
13325
|
}).map(function (item) {
|
|
13229
13326
|
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
13230
13327
|
checked: !item.hidden,
|
|
@@ -13260,8 +13357,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13260
13357
|
pagination: false,
|
|
13261
13358
|
showHeader: false,
|
|
13262
13359
|
dataSource: onSearchSort ? sortDataSource.filter(function (item) {
|
|
13263
|
-
var
|
|
13264
|
-
return (item === null || item === void 0 ? void 0 :
|
|
13360
|
+
var _renderToString2;
|
|
13361
|
+
return ((_renderToString2 = renderToString(item === null || item === void 0 ? void 0 : item.title)) === null || _renderToString2 === void 0 ? void 0 : _renderToString2.indexOf(onSearchSort)) > -1;
|
|
13265
13362
|
}) : sortDataSource,
|
|
13266
13363
|
columns: this.columns,
|
|
13267
13364
|
rowKey: "key",
|
|
@@ -13283,7 +13380,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
13283
13380
|
return SortableTable;
|
|
13284
13381
|
}(React.Component);
|
|
13285
13382
|
|
|
13286
|
-
var _excluded$
|
|
13383
|
+
var _excluded$f = ["className", "style"];
|
|
13287
13384
|
var DragHandle$3 = SortableHandle(function () {
|
|
13288
13385
|
return /*#__PURE__*/React.createElement("img", {
|
|
13289
13386
|
width: 25,
|
|
@@ -13326,7 +13423,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13326
13423
|
hidden: item.hidden
|
|
13327
13424
|
};
|
|
13328
13425
|
}) : '';
|
|
13329
|
-
|
|
13426
|
+
requestUtil({
|
|
13330
13427
|
url: handleRequestUrl('/user', '/appConfig/saveQueryCriteria', appRequestConfig),
|
|
13331
13428
|
method: 'POST',
|
|
13332
13429
|
data: {
|
|
@@ -13535,7 +13632,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13535
13632
|
_this.DraggableBodyRow = function (_ref2) {
|
|
13536
13633
|
var className = _ref2.className,
|
|
13537
13634
|
style = _ref2.style,
|
|
13538
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
13635
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$f);
|
|
13539
13636
|
var sortDataSource = _this.state.sortDataSource;
|
|
13540
13637
|
var index = sortDataSource.findIndex(function (x) {
|
|
13541
13638
|
return x.name === restProps['data-row-key'];
|
|
@@ -13670,7 +13767,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13670
13767
|
style: {
|
|
13671
13768
|
marginRight: 0
|
|
13672
13769
|
}
|
|
13673
|
-
}, "\u6062\u590D\u9ED8\u8BA4"),
|
|
13770
|
+
}, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React.createElement(Button, {
|
|
13674
13771
|
key: "back",
|
|
13675
13772
|
onClick: this.handleResetSetting
|
|
13676
13773
|
}, "\u91CD\u7F6E\u8BBE\u7F6E")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -13679,7 +13776,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13679
13776
|
style: {
|
|
13680
13777
|
marginRight: 0
|
|
13681
13778
|
}
|
|
13682
|
-
}, "\u53D6\u6D88"),
|
|
13779
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
13683
13780
|
key: "submit",
|
|
13684
13781
|
type: "primary",
|
|
13685
13782
|
onClick: this.handleOk
|
|
@@ -13791,12 +13888,16 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13791
13888
|
return SearchItemTable;
|
|
13792
13889
|
}(React.Component);
|
|
13793
13890
|
|
|
13794
|
-
var
|
|
13891
|
+
var css_248z$f = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
13892
|
+
styleInject(css_248z$f);
|
|
13893
|
+
|
|
13894
|
+
var _excluded$g = ["onResize", "width"];
|
|
13795
13895
|
var MemoQueryTable = /*#__PURE__*/React.memo(QueryTable);
|
|
13896
|
+
var Text$2 = Typography.Text;
|
|
13796
13897
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
13797
13898
|
var onResize = props.onResize,
|
|
13798
13899
|
width = props.width,
|
|
13799
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
13900
|
+
restProps = _objectWithoutProperties(props, _excluded$g);
|
|
13800
13901
|
if (!width) {
|
|
13801
13902
|
return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
|
|
13802
13903
|
}
|
|
@@ -13810,80 +13911,52 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
13810
13911
|
}, /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps)));
|
|
13811
13912
|
};
|
|
13812
13913
|
var BsSulaQueryTable = (function (props) {
|
|
13813
|
-
var
|
|
13814
|
-
var
|
|
13815
|
-
|
|
13816
|
-
|
|
13817
|
-
var configSetting = configArray.filter(function (item) {
|
|
13818
|
-
return item.code === bsTableCode;
|
|
13819
|
-
});
|
|
13820
|
-
if (configSetting.length && configSetting[0].detail) {
|
|
13821
|
-
return JSON.parse(configSetting[0].detail);
|
|
13822
|
-
}
|
|
13823
|
-
return [];
|
|
13824
|
-
};
|
|
13825
|
-
var getInitialSearchFieldsInfo = function getInitialSearchFieldsInfo() {
|
|
13826
|
-
//获取搜索字段的缓存配置
|
|
13827
|
-
var _props$fields = props.fields,
|
|
13828
|
-
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
13829
|
-
var searchFieldsConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION);
|
|
13830
|
-
var showSearchFields = searchFieldsConfig.length ? searchFieldsConfig.map(function (item) {
|
|
13831
|
-
var inner = fields.filter(function (inneritem) {
|
|
13832
|
-
var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
|
|
13833
|
-
var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
|
|
13834
|
-
return innerKey && innerKey === itemKey;
|
|
13835
|
-
})[0];
|
|
13836
|
-
return _objectSpread2(_objectSpread2({}, inner), item);
|
|
13837
|
-
}) : fields;
|
|
13838
|
-
return _toConsumableArray(showSearchFields);
|
|
13839
|
-
};
|
|
13914
|
+
var _props$expandable, _value$exportConfig7;
|
|
13915
|
+
var _props$isPage = props.isPage,
|
|
13916
|
+
pagination = props.pagination,
|
|
13917
|
+
tableCode = props.tableCode;
|
|
13840
13918
|
var refs = useRef(null);
|
|
13841
13919
|
var _useState = useState(''),
|
|
13842
13920
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13843
13921
|
pagePath = _useState2[0],
|
|
13844
13922
|
setPagePath = _useState2[1];
|
|
13845
13923
|
// 获取 table columns中所有的 key 防止有的地方是 dataindex
|
|
13846
|
-
var
|
|
13847
|
-
|
|
13848
|
-
|
|
13849
|
-
|
|
13850
|
-
|
|
13851
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
13852
|
-
checkedList = _useState4[0],
|
|
13853
|
-
setCheckedList = _useState4[1];
|
|
13924
|
+
var checkedList = props.columns.filter(function (col) {
|
|
13925
|
+
return !col.hidden;
|
|
13926
|
+
}).map(function (d) {
|
|
13927
|
+
return Array.isArray(d.key || d.dataIndex) ? JSON.stringify(d.key || d.dataIndex) : d.key || d.dataIndex;
|
|
13928
|
+
});
|
|
13854
13929
|
var _useLocation = useLocation(),
|
|
13855
|
-
pathname = _useLocation.pathname
|
|
13856
|
-
|
|
13857
|
-
|
|
13858
|
-
|
|
13859
|
-
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
setIsFnllScreen = _useState8[1];
|
|
13930
|
+
pathname = _useLocation.pathname,
|
|
13931
|
+
_useLocation$state = _useLocation.state,
|
|
13932
|
+
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
13933
|
+
var _useState3 = useState(false),
|
|
13934
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
13935
|
+
isFullScreen = _useState4[0],
|
|
13936
|
+
setIsFnllScreen = _useState4[1];
|
|
13863
13937
|
// @ts-nocheck
|
|
13864
|
-
var
|
|
13938
|
+
var value = props;
|
|
13939
|
+
var _useState5 = useState([]),
|
|
13940
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
13941
|
+
showColumn = _useState6[0],
|
|
13942
|
+
setShowColumns = _useState6[1]; // 列字段
|
|
13943
|
+
var _useState7 = useState(props.fields || []),
|
|
13944
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
13945
|
+
showSearchFields = _useState8[0],
|
|
13946
|
+
setShowSearchFields = _useState8[1]; //搜索项字段
|
|
13947
|
+
var _useState9 = useState([]),
|
|
13865
13948
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
13866
|
-
|
|
13867
|
-
|
|
13868
|
-
var _useState11 = useState(
|
|
13949
|
+
showExportColumn = _useState10[0],
|
|
13950
|
+
setShowExportColumns = _useState10[1]; // 导出列字段
|
|
13951
|
+
var _useState11 = useState('100vh'),
|
|
13869
13952
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
13870
|
-
|
|
13871
|
-
|
|
13872
|
-
var originSearchFields = getInitialSearchFieldsInfo();
|
|
13873
|
-
var _useState13 = useState(originSearchFields),
|
|
13874
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
13875
|
-
showSearchFields = _useState14[0],
|
|
13876
|
-
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
13877
|
-
var _props$isPage = props.isPage,
|
|
13878
|
-
pagination = props.pagination,
|
|
13879
|
-
tableCode = props.tableCode,
|
|
13880
|
-
appRequestConfig = props.appRequestConfig;
|
|
13881
|
-
var _useState15 = useState('100vh'),
|
|
13882
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
13883
|
-
height = _useState16[0],
|
|
13884
|
-
setHeight = _useState16[1];
|
|
13953
|
+
height = _useState12[0],
|
|
13954
|
+
setHeight = _useState12[1];
|
|
13885
13955
|
var sortTableRef = useRef(null);
|
|
13886
13956
|
var searchTableRef = useRef(null);
|
|
13957
|
+
var exportTableRef = useRef(null);
|
|
13958
|
+
var bsTableCode = tableCode || window.location.hash; //设置列字段的唯一标识
|
|
13959
|
+
var bsTableCodeExport = "".concat(bsTableCode, "___Export"); //设置导出列字段的唯一标识
|
|
13887
13960
|
// 获取table高度
|
|
13888
13961
|
var getTableHeight = function getTableHeight() {
|
|
13889
13962
|
setTimeout(function () {
|
|
@@ -13896,7 +13969,6 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13896
13969
|
var listTabHeight = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav") ? ((_document$querySelect2 = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav")) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 48 : 0;
|
|
13897
13970
|
var h = realIframeClientHeight - summaryHeight - listTabHeight - (((_document$querySelect3 = document.querySelector(".ant-tabs-tabpane-active .ant-form ant-form-horizontal")) === null || _document$querySelect3 === void 0 ? void 0 : _document$querySelect3.clientHeight) || 0) - (isFullScreen ? 0 : ((_document$querySelect4 = document.querySelector(".ant-tabs-tabpane-active .ant-pro-page-container-warp")) === null || _document$querySelect4 === void 0 ? void 0 : _document$querySelect4.clientHeight) || 0) - cancelHeight + 'px';
|
|
13898
13971
|
setHeight(h);
|
|
13899
|
-
setValue(_objectSpread2({}, value));
|
|
13900
13972
|
}, 0);
|
|
13901
13973
|
};
|
|
13902
13974
|
//监测是否按下esc键
|
|
@@ -13907,6 +13979,18 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13907
13979
|
if (isFull == undefined) isFull = false;
|
|
13908
13980
|
return isFull;
|
|
13909
13981
|
}
|
|
13982
|
+
var getConfigFromlocalstorage = function getConfigFromlocalstorage(type) {
|
|
13983
|
+
var tableCode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : bsTableCode;
|
|
13984
|
+
var config = localStorage.getItem(type) || '[]';
|
|
13985
|
+
var configArray = JSON.parse(config);
|
|
13986
|
+
var configSetting = configArray.filter(function (item) {
|
|
13987
|
+
return item.code === tableCode;
|
|
13988
|
+
});
|
|
13989
|
+
if (configSetting.length && configSetting[0].detail) {
|
|
13990
|
+
return JSON.parse(configSetting[0].detail);
|
|
13991
|
+
}
|
|
13992
|
+
return [];
|
|
13993
|
+
};
|
|
13910
13994
|
var setInitialTableInfo = function setInitialTableInfo() {
|
|
13911
13995
|
var resourceCodeArray = {};
|
|
13912
13996
|
if (props.actionsRender && props.actionsRender.length) {
|
|
@@ -13949,22 +14033,23 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13949
14033
|
}
|
|
13950
14034
|
});
|
|
13951
14035
|
}
|
|
13952
|
-
|
|
13953
|
-
|
|
13954
|
-
|
|
13955
|
-
|
|
13956
|
-
|
|
13957
|
-
|
|
13958
|
-
|
|
13959
|
-
|
|
13960
|
-
|
|
13961
|
-
return
|
|
13962
|
-
})
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
|
|
13967
|
-
|
|
14036
|
+
var columns = props.columns,
|
|
14037
|
+
exportColumns = props.exportColumns;
|
|
14038
|
+
var getShowColumns = function getShowColumns(columnConfig, columns) {
|
|
14039
|
+
return columnConfig.length ? columnConfig.map(function (item) {
|
|
14040
|
+
var inner = columns.filter(function (inneritem) {
|
|
14041
|
+
var innerKey = Array.isArray(inneritem.key || inneritem.dataIndex) ? JSON.stringify(inneritem.key || inneritem.dataIndex) : inneritem.key || inneritem.dataIndex;
|
|
14042
|
+
var itemKey = Array.isArray(item.key || item.dataIndex) ? JSON.stringify(item.key || item.dataIndex) : item.key || item.dataIndex;
|
|
14043
|
+
return innerKey && innerKey === itemKey;
|
|
14044
|
+
})[0];
|
|
14045
|
+
return _objectSpread2(_objectSpread2({}, inner), item);
|
|
14046
|
+
}) : columns.filter(function (column) {
|
|
14047
|
+
var columnKey = Array.isArray(column.key || column.dataIndex) ? JSON.stringify(column.key || column.dataIndex) : column.key || column.dataIndex;
|
|
14048
|
+
return column.notRegularCheckList || checkedList.indexOf(columnKey) > -1;
|
|
14049
|
+
});
|
|
14050
|
+
};
|
|
14051
|
+
var columnConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.COLUMN_CONDITION);
|
|
14052
|
+
var showColumns = getShowColumns(columnConfig, columns);
|
|
13968
14053
|
showColumns.forEach(function (item, index) {
|
|
13969
14054
|
item.width = item.width || getItemDefaultWidth(item);
|
|
13970
14055
|
handleBssulaColumnsSpecialParams(item);
|
|
@@ -13976,11 +14061,24 @@ var BsSulaQueryTable = (function (props) {
|
|
|
13976
14061
|
};
|
|
13977
14062
|
});
|
|
13978
14063
|
setShowColumns(_toConsumableArray(showColumns));
|
|
14064
|
+
var exportColumnConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.COLUMN_CONDITION, bsTableCodeExport);
|
|
14065
|
+
var showExportColumns = getShowColumns(exportColumnConfig, columns);
|
|
14066
|
+
showExportColumns.forEach(function (item, index) {
|
|
14067
|
+
item.width = item.width || getItemDefaultWidth(item);
|
|
14068
|
+
handleBssulaColumnsSpecialParams(item);
|
|
14069
|
+
item.onHeaderCell = function (column) {
|
|
14070
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14071
|
+
width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
|
|
14072
|
+
onResize: handleResize(index)
|
|
14073
|
+
});
|
|
14074
|
+
};
|
|
14075
|
+
});
|
|
14076
|
+
setShowExportColumns(_toConsumableArray(showExportColumns));
|
|
13979
14077
|
};
|
|
13980
14078
|
var setInitialSearchFieldsInfo = function setInitialSearchFieldsInfo() {
|
|
13981
14079
|
//获取搜索字段的缓存配置
|
|
13982
|
-
var _props$
|
|
13983
|
-
fields = _props$
|
|
14080
|
+
var _props$fields = props.fields,
|
|
14081
|
+
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
13984
14082
|
var searchFieldsConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION);
|
|
13985
14083
|
var showSearchFields = searchFieldsConfig.length ? searchFieldsConfig.map(function (item) {
|
|
13986
14084
|
var inner = fields.filter(function (inneritem) {
|
|
@@ -14073,7 +14171,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14073
14171
|
}
|
|
14074
14172
|
},
|
|
14075
14173
|
initialSelectedRowKeys: value.initialSelectedRowKeys || [],
|
|
14076
|
-
expandable:
|
|
14174
|
+
expandable: props.expandable,
|
|
14077
14175
|
scroll: {
|
|
14078
14176
|
x: props.overScrollX || 'max-content',
|
|
14079
14177
|
y: height
|
|
@@ -14121,7 +14219,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14121
14219
|
}
|
|
14122
14220
|
};
|
|
14123
14221
|
var handleTimeValue = function handleTimeValue() {
|
|
14124
|
-
var _sortTableRef$current, _value$exportConfig, _value$exportConfig2, _value$exportConfig3;
|
|
14222
|
+
var _sortTableRef$current, _value$exportConfig, _exportTableRef$curre, _value$exportConfig2, _value$exportConfig3, _value$exportConfig4, _value$exportConfig5, _value$exportConfig6;
|
|
14125
14223
|
var actionsRender = value.actionsRender || [];
|
|
14126
14224
|
actionsRender = [].concat(_toConsumableArray(actionsRender), [{
|
|
14127
14225
|
type: 'text',
|
|
@@ -14140,9 +14238,14 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14140
14238
|
setShowSearchFields: setShowSearchFields,
|
|
14141
14239
|
showSearchFields: showSearchFields,
|
|
14142
14240
|
datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
|
|
14143
|
-
bsTableCode: bsTableCode
|
|
14144
|
-
|
|
14145
|
-
|
|
14241
|
+
bsTableCode: bsTableCode
|
|
14242
|
+
})), (value === null || value === void 0 ? void 0 : (_value$exportConfig = value.exportConfig) === null || _value$exportConfig === void 0 ? void 0 : _value$exportConfig.settingColumns) && ( /*#__PURE__*/React.createElement(Menu.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
14243
|
+
onClick: exportTableRef === null || exportTableRef === void 0 ? void 0 : (_exportTableRef$curre = exportTableRef.current) === null || _exportTableRef$curre === void 0 ? void 0 : _exportTableRef$curre.showModal,
|
|
14244
|
+
style: {
|
|
14245
|
+
fontSize: 14,
|
|
14246
|
+
textAlign: 'center'
|
|
14247
|
+
}
|
|
14248
|
+
}, "\u5BFC\u51FA\u5B57\u6BB5\u8BBE\u7F6E")))),
|
|
14146
14249
|
placement: "bottomRight"
|
|
14147
14250
|
}, /*#__PURE__*/React.createElement("span", {
|
|
14148
14251
|
className: "ant-dropdown-link"
|
|
@@ -14175,12 +14278,14 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14175
14278
|
}, {
|
|
14176
14279
|
type: 'text',
|
|
14177
14280
|
props: {
|
|
14178
|
-
children: (value === null || value === void 0 ? void 0 : value.exportConfig) && authFn(value === null || value === void 0 ? void 0 : (_value$
|
|
14281
|
+
children: (value === null || value === void 0 ? void 0 : value.exportConfig) && authFn(value === null || value === void 0 ? void 0 : (_value$exportConfig2 = value.exportConfig) === null || _value$exportConfig2 === void 0 ? void 0 : _value$exportConfig2.code) ? ( /*#__PURE__*/React.createElement(ExportIcon, {
|
|
14179
14282
|
request: {
|
|
14180
|
-
url: "/oms-ops/excel/exportAsync/".concat(value === null || value === void 0 ? void 0 : (_value$
|
|
14181
|
-
params:
|
|
14283
|
+
url: (value === null || value === void 0 ? void 0 : (_value$exportConfig3 = value.exportConfig) === null || _value$exportConfig3 === void 0 ? void 0 : _value$exportConfig3.url) || "/oms-ops/excel/exportAsync/".concat(value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.type),
|
|
14284
|
+
params: value === null || value === void 0 ? void 0 : (_value$exportConfig5 = value.exportConfig) === null || _value$exportConfig5 === void 0 ? void 0 : _value$exportConfig5.params
|
|
14182
14285
|
},
|
|
14183
|
-
tableRef: props.forwardedRef || refs
|
|
14286
|
+
tableRef: props.forwardedRef || refs,
|
|
14287
|
+
allowSelect: value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.allowSelect,
|
|
14288
|
+
columnsRowKey: value === null || value === void 0 ? void 0 : value.rowKey
|
|
14184
14289
|
})) : ( /*#__PURE__*/React.createElement("span", null))
|
|
14185
14290
|
}
|
|
14186
14291
|
}]);
|
|
@@ -14210,6 +14315,29 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14210
14315
|
var _sortTableRef$current2, _sortTableRef$current3;
|
|
14211
14316
|
sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current2 = sortTableRef.current) === null || _sortTableRef$current2 === void 0 ? void 0 : (_sortTableRef$current3 = _sortTableRef$current2.handleTableHeadHidden) === null || _sortTableRef$current3 === void 0 ? void 0 : _sortTableRef$current3.call(_sortTableRef$current2, columnTitle);
|
|
14212
14317
|
};
|
|
14318
|
+
var toMapByKey = function toMapByKey(arr, key, fn) {
|
|
14319
|
+
var map = {};
|
|
14320
|
+
arr.forEach(function (i) {
|
|
14321
|
+
return map[renderToString(i[key])] = i;
|
|
14322
|
+
});
|
|
14323
|
+
return map;
|
|
14324
|
+
};
|
|
14325
|
+
var getColumns = function getColumns() {
|
|
14326
|
+
// 优化一下 减少复杂度
|
|
14327
|
+
var titleMap = toMapByKey(value.columns, 'title');
|
|
14328
|
+
// 加上排序
|
|
14329
|
+
var cols = showColumn.map(function (i) {
|
|
14330
|
+
var _titleMap$renderToStr, _titleMap$renderToStr2;
|
|
14331
|
+
return _objectSpread2(_objectSpread2({}, i), {}, {
|
|
14332
|
+
isPermissionColumn: (_titleMap$renderToStr = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr === void 0 ? void 0 : _titleMap$renderToStr.isPermissionColumn,
|
|
14333
|
+
render: (_titleMap$renderToStr2 = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr2 === void 0 ? void 0 : _titleMap$renderToStr2.render
|
|
14334
|
+
});
|
|
14335
|
+
});
|
|
14336
|
+
cols.forEach(function (i) {
|
|
14337
|
+
return handleBssulaColumnsSpecialParams(i);
|
|
14338
|
+
});
|
|
14339
|
+
return cols;
|
|
14340
|
+
};
|
|
14213
14341
|
var config = _objectSpread2(_objectSpread2({
|
|
14214
14342
|
visibleFieldsCount: 3,
|
|
14215
14343
|
tableWrapperStyle: {
|
|
@@ -14231,45 +14359,109 @@ var BsSulaQueryTable = (function (props) {
|
|
|
14231
14359
|
rowSelection: false
|
|
14232
14360
|
}, handleTimeValue()), {}, {
|
|
14233
14361
|
tableProps: setTableProps(),
|
|
14234
|
-
columns:
|
|
14362
|
+
columns: getColumns(),
|
|
14235
14363
|
fields: _toConsumableArray(showSearchFields),
|
|
14236
14364
|
ref: props.forwardedRef || refs,
|
|
14237
14365
|
isFullScreen: isFullScreen
|
|
14238
14366
|
});
|
|
14239
14367
|
useEffect(function () {
|
|
14240
|
-
if (!localStorage.getItem('isTabChange')) {
|
|
14368
|
+
if (!localStorage.getItem('isTabChange') || (state === null || state === void 0 ? void 0 : state.updateCurrentPage)) {
|
|
14241
14369
|
if (pagePath === pathname) {
|
|
14242
14370
|
var _config$ref, _config$ref$current, _config$ref$current$t, _config$ref$current$t2;
|
|
14243
14371
|
// @ts-ignore
|
|
14244
14372
|
(_config$ref = config.ref) === null || _config$ref === void 0 ? void 0 : (_config$ref$current = _config$ref.current) === null || _config$ref$current === void 0 ? void 0 : (_config$ref$current$t = _config$ref$current.tableRef) === null || _config$ref$current$t === void 0 ? void 0 : (_config$ref$current$t2 = _config$ref$current$t.current) === null || _config$ref$current$t2 === void 0 ? void 0 : _config$ref$current$t2.refreshTable();
|
|
14245
14373
|
}
|
|
14246
|
-
} else {
|
|
14247
|
-
setTimeout(function () {
|
|
14248
|
-
// 处理页面刷新两面
|
|
14249
|
-
localStorage.removeItem('isTabChange');
|
|
14250
|
-
}, 0);
|
|
14251
14374
|
}
|
|
14375
|
+
setTimeout(function () {
|
|
14376
|
+
// 处理页面刷新两面
|
|
14377
|
+
localStorage.removeItem('isTabChange');
|
|
14378
|
+
}, 0);
|
|
14252
14379
|
}, [pathname]);
|
|
14380
|
+
var expandedRowKeys = props === null || props === void 0 ? void 0 : (_props$expandable = props.expandable) === null || _props$expandable === void 0 ? void 0 : _props$expandable.expandedRowKeys;
|
|
14381
|
+
//todo summary属性已经被使用,为了兼容之前的,现在使用 summaryList
|
|
14382
|
+
//结构为了实现多行总结栏 定义如下(lableShow: boolean 是否显示列文本)
|
|
14383
|
+
/**
|
|
14384
|
+
* [
|
|
14385
|
+
* {
|
|
14386
|
+
* cont:[{key: 'spuCode',value: 100,labelShow: false}]
|
|
14387
|
+
* }
|
|
14388
|
+
* ]
|
|
14389
|
+
* @returns []
|
|
14390
|
+
*/
|
|
14391
|
+
var getTableSummaryInfo = function getTableSummaryInfo() {
|
|
14392
|
+
var summaryList = props.summaryList,
|
|
14393
|
+
rowSelection = props.rowSelection,
|
|
14394
|
+
expandable = props.expandable;
|
|
14395
|
+
if (summaryList && Array.isArray(summaryList)) {
|
|
14396
|
+
var summaryRow = rowSelection ? [{}].concat(_toConsumableArray(showColumn)) : _toConsumableArray(showColumn);
|
|
14397
|
+
if (expandable) {
|
|
14398
|
+
summaryRow.unshift({});
|
|
14399
|
+
}
|
|
14400
|
+
// let summaryInitial = summary().cont;
|
|
14401
|
+
return /*#__PURE__*/React.createElement(Table.Summary, {
|
|
14402
|
+
fixed: true
|
|
14403
|
+
}, Array.isArray(summaryList) && summaryList.map(function (summaryItem, summaryIndex) {
|
|
14404
|
+
return /*#__PURE__*/React.createElement(Table.Summary.Row, {
|
|
14405
|
+
key: summaryIndex
|
|
14406
|
+
}, summaryRow.map(function (item, index) {
|
|
14407
|
+
var _summaryItem$cout = summaryItem.cout,
|
|
14408
|
+
cout = _summaryItem$cout === void 0 ? [] : _summaryItem$cout;
|
|
14409
|
+
var target = cout.filter(function (inner) {
|
|
14410
|
+
return inner.key && (inner.key === item.dataIndex || inner.key === item.key);
|
|
14411
|
+
})[0];
|
|
14412
|
+
if (target) {
|
|
14413
|
+
var _target$value;
|
|
14414
|
+
var labelText = target.labelShow ? "".concat(item.title, ":") : "";
|
|
14415
|
+
return /*#__PURE__*/React.createElement(Table.Summary.Cell, {
|
|
14416
|
+
index: index,
|
|
14417
|
+
key: "Table.Summary.Cell_".concat(item.index)
|
|
14418
|
+
}, /*#__PURE__*/React.createElement(Text$2, {
|
|
14419
|
+
type: "danger"
|
|
14420
|
+
}, "".concat(labelText, " ").concat((_target$value = target.value) !== null && _target$value !== void 0 ? _target$value : '')));
|
|
14421
|
+
} else {
|
|
14422
|
+
return /*#__PURE__*/React.createElement(Table.Summary.Cell, {
|
|
14423
|
+
index: index,
|
|
14424
|
+
key: "Table.Summary.Cell_".concat(item.index)
|
|
14425
|
+
}, /*#__PURE__*/React.createElement(Text$2, {
|
|
14426
|
+
type: "danger"
|
|
14427
|
+
}, " "));
|
|
14428
|
+
}
|
|
14429
|
+
}));
|
|
14430
|
+
}));
|
|
14431
|
+
} else {
|
|
14432
|
+
return undefined;
|
|
14433
|
+
}
|
|
14434
|
+
};
|
|
14253
14435
|
var memoConfig = useMemo(function () {
|
|
14254
14436
|
return _objectSpread2(_objectSpread2({}, config), {}, {
|
|
14255
14437
|
summary: props.summary,
|
|
14256
|
-
|
|
14257
|
-
|
|
14438
|
+
summaryList: props.summaryList ? getTableSummaryInfo : undefined,
|
|
14439
|
+
statusMapping: props.statusMapping
|
|
14258
14440
|
});
|
|
14259
|
-
}, [
|
|
14260
|
-
|
|
14441
|
+
}, [
|
|
14442
|
+
// value,
|
|
14443
|
+
checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
|
|
14444
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14445
|
+
id: "bs-sula-query-table"
|
|
14446
|
+
}, /*#__PURE__*/React.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React.createElement(SortableTable$1, {
|
|
14261
14447
|
ref: sortTableRef,
|
|
14262
14448
|
setShowColumns: setShowColumns,
|
|
14263
14449
|
showColumn: showColumn,
|
|
14264
14450
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
14265
14451
|
bsTableCode: bsTableCode,
|
|
14266
|
-
appRequestConfig: appRequestConfig,
|
|
14267
14452
|
onlyModal: true
|
|
14268
|
-
}))
|
|
14453
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig7 = value.exportConfig) === null || _value$exportConfig7 === void 0 ? void 0 : _value$exportConfig7.settingColumns) && ( /*#__PURE__*/React.createElement(SortableTable$1, {
|
|
14454
|
+
ref: exportTableRef,
|
|
14455
|
+
setShowColumns: setShowExportColumns,
|
|
14456
|
+
showColumn: showExportColumn,
|
|
14457
|
+
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
14458
|
+
bsTableCode: bsTableCodeExport,
|
|
14459
|
+
onlyModal: true
|
|
14460
|
+
})));
|
|
14269
14461
|
});
|
|
14270
14462
|
|
|
14271
|
-
var css_248z$
|
|
14272
|
-
styleInject(css_248z$
|
|
14463
|
+
var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.allFunsList {\n margin-bottom: 10px;\n}\n.isClons {\n position: relative;\n left: -8px;\n width: 30px;\n height: 36px;\n}\n.drawerWarp {\n -moz-column-count: 3;\n column-count: 3;\n}\n.allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n.searchTop {\n display: flex;\n align-items: center;\n}\n.searchTopInp {\n width: 528px;\n height: 40px;\n background: #f8f9fa;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.searchTopInp .ant-input {\n background: #f8f9fa;\n}\n.searchTopBtn {\n position: relative;\n left: -1px;\n width: 92px;\n height: 40px;\n background: #005cff;\n border-radius: 0px 4px 4px 0px;\n}\n.contentWarp {\n margin-top: 54px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005CFF;\n}\n.serachView {\n margin-top: 36px;\n margin-bottom: 32px;\n}\n.content {\n display: flex;\n flex-wrap: wrap;\n}\n.content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.content div:hover {\n cursor: pointer;\n}\n";
|
|
14464
|
+
styleInject(css_248z$g);
|
|
14273
14465
|
|
|
14274
14466
|
var cache = {};
|
|
14275
14467
|
var cacheLimit = 10000;
|
|
@@ -14525,8 +14717,8 @@ var AllFunc = function AllFunc(props) {
|
|
|
14525
14717
|
})))));
|
|
14526
14718
|
};
|
|
14527
14719
|
|
|
14528
|
-
var css_248z$
|
|
14529
|
-
styleInject(css_248z$
|
|
14720
|
+
var css_248z$h = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
|
|
14721
|
+
styleInject(css_248z$h);
|
|
14530
14722
|
|
|
14531
14723
|
var allfunc = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
14532
14724
|
|
|
@@ -14725,8 +14917,17 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14725
14917
|
}))));
|
|
14726
14918
|
});
|
|
14727
14919
|
|
|
14728
|
-
var
|
|
14729
|
-
|
|
14920
|
+
var i18n = {
|
|
14921
|
+
'zh-CN': {
|
|
14922
|
+
lang: '中文'
|
|
14923
|
+
},
|
|
14924
|
+
'en-US': {
|
|
14925
|
+
lang: 'English'
|
|
14926
|
+
}
|
|
14927
|
+
};
|
|
14928
|
+
|
|
14929
|
+
var css_248z$i = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.rcom_right .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_dark .action:hover {\n background: #252a3d;\n}\n.rcom_dark .action .opened {\n background: #252a3d;\n}\n.rcom_dark .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_imgWap {\n position: relative;\n display: flex;\n align-items: center;\n}\n.rcom_imgWap .rcom_headLine {\n width: 1px;\n height: 16px;\n margin-right: 20px;\n background: #cacaca;\n}\n.rcom_imgWap img {\n width: 22px;\n height: 22px;\n margin-right: 20px;\n}\n.rcom_userWarp {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 142px;\n height: 35px;\n margin-right: 10px;\n border: 1px solid #c8c8c8;\n border-radius: 4px;\n}\n.rcom_userWarp .rcom_l {\n margin-left: 4px;\n}\n.rcom_userWarp .rcom_l img {\n margin-right: 0;\n width: 36px;\n height: 36px;\n}\n.rcom_userWarp .rcom_c {\n display: flex;\n flex-direction: column;\n}\n.rcom_userWarp .rcom_c .rcom_ct {\n color: #000000;\n font-weight: 500;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_c .rcom_cb {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 10px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_r {\n margin-right: 9px;\n}\n.rcom_.userWarp:hover,\n.rcom_c:hover,\n.rcom_l:hover,\n.rcom_r:hover {\n cursor: pointer;\n}\n.userDownWarp {\n width: 217px;\n margin-top: 4px;\n background: #ffffff;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n}\n.userDownWarp .userDownTop {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 155px;\n padding: 20px 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.userDownWarp .userDownTop .userDownTopT {\n width: 68px;\n height: 68px;\n border-radius: 50%;\n}\n.userDownWarp .userDownTop .userDownTopC {\n color: #000000;\n font-weight: 500;\n font-size: 14px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 26px;\n text-align: center;\n}\n.userDownWarp .userDownTop .userDownTopB {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 15px;\n text-align: center;\n}\n.userDownWarp .userDownB .userDownBList,\n.userDownWarp .userDownB .userDownOut {\n display: flex;\n align-items: center;\n height: 36px;\n background: #ffffff;\n border-bottom: 1px solid #f3f3f3;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label,\n.userDownWarp .userDownB .userDownOut .rcom_label {\n margin: 0 4px 0 20px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label img,\n.userDownWarp .userDownB .userDownOut .rcom_label img {\n width: 16px;\n height: 16px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_name,\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #000000;\n font-weight: 400;\n font-size: 12px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n}\n.userDownWarp .userDownB .userDownBList:hover,\n.userDownWarp .userDownB .userDownOut:hover {\n cursor: pointer;\n}\n.userDownWarp .userDownB .userDownOut {\n height: 46px;\n border-bottom: none;\n}\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #fe0300;\n}\n";
|
|
14930
|
+
styleInject(css_248z$i);
|
|
14730
14931
|
|
|
14731
14932
|
var Morentouxiang = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2240px%22%20viewBox%3D%220%200%2040%2040%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E32%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22path-1%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2213%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%3Cfilter%20x%3D%22-40.4%25%22%20y%3D%22-40.4%25%22%20width%3D%22180.8%25%22%20height%3D%22180.8%25%22%20filterUnits%3D%22objectBoundingBox%22%20id%3D%22filter-2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeOffset%20dx%3D%220%22%20dy%3D%220%22%20in%3D%22SourceAlpha%22%20result%3D%22shadowOffsetOuter1%22%3E%3C%2FfeOffset%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeGaussianBlur%20stdDeviation%3D%223.5%22%20in%3D%22shadowOffsetOuter1%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeGaussianBlur%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeComposite%20in%3D%22shadowBlurOuter1%22%20in2%3D%22SourceAlpha%22%20operator%3D%22out%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeComposite%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeColorMatrix%20values%3D%220%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%200%200%200%201%200%22%20type%3D%22matrix%22%20in%3D%22shadowBlurOuter1%22%3E%3C%2FfeColorMatrix%3E%20%20%20%20%20%20%20%20%3C%2Ffilter%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22-----6.1-%E9%BB%98%E8%AE%A4%E5%9B%BE%E7%89%87%2F-Default-picture%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22B-Design-%E4%BD%93%E9%AA%8C%E8%A7%84%E8%8C%83%22%20transform%3D%22translate%28-1119.000000%2C%20-988.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%2232%22%20transform%3D%22translate%281126.000000%2C%20995.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%9C%86%E5%BD%A2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20fill%3D%22black%22%20fill-opacity%3D%221%22%20filter%3D%22url%28%23filter-2%29%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20stroke%3D%22%23FFFFFF%22%20stroke-width%3D%220.8328125%22%20stroke-linejoin%3D%22square%22%20fill%3D%22%23EDF4FF%22%20fill-rule%3D%22evenodd%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2212.5835938%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15.644709%2C13.6190476%20L18.9119048%2C15.0892857%20L18.9119048%2C19.5%20L7.15%2C19.5%20L7.15%2C15.0892857%20L10.4171958%2C13.6190476%20L15.644709%2C13.6190476%20Z%20M16.1261905%2C16.4047619%20L13.65%2C16.4047619%20L13.65%2C17.6428571%20L16.1261905%2C17.6428571%20L16.1261905%2C16.4047619%20Z%20M13.1857143%2C6.5%20C14.9806397%2C6.5%2016.4357143%2C7.95507456%2016.4357143%2C9.75%20C16.4357143%2C11.5449254%2014.9806397%2C13%2013.1857143%2C13%20C11.3907888%2C13%209.93571429%2C11.5449254%209.93571429%2C9.75%20C9.93571429%2C7.95507456%2011.3907888%2C6.5%2013.1857143%2C6.5%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%239AC4FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
14732
14933
|
|
|
@@ -14744,7 +14945,7 @@ function _outLogin() {
|
|
|
14744
14945
|
while (1) switch (_context.prev = _context.next) {
|
|
14745
14946
|
case 0:
|
|
14746
14947
|
_context.next = 2;
|
|
14747
|
-
return
|
|
14948
|
+
return requestUtil({
|
|
14748
14949
|
url: '/user/web/loginOut',
|
|
14749
14950
|
method: 'GET'
|
|
14750
14951
|
});
|
|
@@ -14777,11 +14978,11 @@ var LoginModal = (function (props) {
|
|
|
14777
14978
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
14778
14979
|
onClick: function onClick() {
|
|
14779
14980
|
form.validateFields().then(function (res) {
|
|
14780
|
-
|
|
14981
|
+
requestUtil({
|
|
14781
14982
|
url: "/bop/api/account/changePassWord/".concat(getAccountID()),
|
|
14782
14983
|
method: 'patch',
|
|
14783
14984
|
params: res
|
|
14784
|
-
}).then(function (
|
|
14985
|
+
}).then(function () {
|
|
14785
14986
|
loginOut();
|
|
14786
14987
|
});
|
|
14787
14988
|
});
|
|
@@ -14835,6 +15036,7 @@ var LoginModal = (function (props) {
|
|
|
14835
15036
|
});
|
|
14836
15037
|
|
|
14837
15038
|
var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
15039
|
+
var _i18n$language;
|
|
14838
15040
|
var menu = _ref.menu;
|
|
14839
15041
|
var _useModel = useModel('@@initialState'),
|
|
14840
15042
|
initialState = _useModel.initialState;
|
|
@@ -14943,12 +15145,25 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14943
15145
|
})), /*#__PURE__*/React.createElement("div", {
|
|
14944
15146
|
className: 'rcom_name'
|
|
14945
15147
|
}, "\u9000\u51FA\u767B\u5F55"))));
|
|
15148
|
+
var changeLanguage = function changeLanguage(lang) {
|
|
15149
|
+
localStorage.setItem('umi_locale', lang || "zh-CN");
|
|
15150
|
+
setLocale(lang || "zh-CN");
|
|
15151
|
+
window.location.reload();
|
|
15152
|
+
};
|
|
15153
|
+
var language = localStorage.getItem('umi_locale') || 'zh-CN';
|
|
14946
15154
|
return /*#__PURE__*/React.createElement("div", {
|
|
14947
15155
|
className: className,
|
|
14948
15156
|
style: divStyle()
|
|
14949
15157
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14950
15158
|
className: 'rcom_imgWap'
|
|
14951
|
-
}, /*#__PURE__*/React.createElement(
|
|
15159
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
15160
|
+
style: {
|
|
15161
|
+
marginRight: '20px'
|
|
15162
|
+
},
|
|
15163
|
+
onClick: function onClick() {
|
|
15164
|
+
changeLanguage(language === 'zh-CN' ? 'en-US' : 'zh-CN');
|
|
15165
|
+
}
|
|
15166
|
+
}, ((_i18n$language = i18n[language]) === null || _i18n$language === void 0 ? void 0 : _i18n$language.lang) || "English"), /*#__PURE__*/React.createElement(Dropdown, {
|
|
14952
15167
|
overlay: menus,
|
|
14953
15168
|
trigger: ['click']
|
|
14954
15169
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -14973,8 +15188,277 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
14973
15188
|
}))))), loginModalParams.visible && ( /*#__PURE__*/React.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
14974
15189
|
};
|
|
14975
15190
|
|
|
14976
|
-
|
|
14977
|
-
|
|
15191
|
+
// -- 查询店铺 --
|
|
15192
|
+
function getStoreByName(_x) {
|
|
15193
|
+
return _getStoreByName.apply(this, arguments);
|
|
15194
|
+
}
|
|
15195
|
+
function _getStoreByName() {
|
|
15196
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
15197
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15198
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15199
|
+
case 0:
|
|
15200
|
+
return _context.abrupt("return", requestUtil({
|
|
15201
|
+
url: '/store-house/orgViewNode/listNoPage',
|
|
15202
|
+
method: 'GET',
|
|
15203
|
+
params: _objectSpread2({}, params)
|
|
15204
|
+
}));
|
|
15205
|
+
case 1:
|
|
15206
|
+
case "end":
|
|
15207
|
+
return _context.stop();
|
|
15208
|
+
}
|
|
15209
|
+
}, _callee);
|
|
15210
|
+
}));
|
|
15211
|
+
return _getStoreByName.apply(this, arguments);
|
|
15212
|
+
}
|
|
15213
|
+
|
|
15214
|
+
var debounceTimeout = 800;
|
|
15215
|
+
var ChooseStore = function ChooseStore(props) {
|
|
15216
|
+
var employeeCode = props.employeeCode;
|
|
15217
|
+
var plainOptions = ['UR', '本来'];
|
|
15218
|
+
var name = localStorage.getItem('WARE_HOUSE_NAME');
|
|
15219
|
+
var code = localStorage.getItem('WARE_HOUSE_CODE');
|
|
15220
|
+
var fetchRef = useRef(0);
|
|
15221
|
+
var _useState = useState(-1),
|
|
15222
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
15223
|
+
index = _useState2[0],
|
|
15224
|
+
setIndex = _useState2[1];
|
|
15225
|
+
var _useState3 = useState([{
|
|
15226
|
+
label: name,
|
|
15227
|
+
value: code
|
|
15228
|
+
}]),
|
|
15229
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
15230
|
+
value = _useState4[0],
|
|
15231
|
+
setValue = _useState4[1];
|
|
15232
|
+
// const [ key, setKey ] = useState(undefined);
|
|
15233
|
+
var _useState5 = useState(undefined),
|
|
15234
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
15235
|
+
key = _useState6[0],
|
|
15236
|
+
setKey = _useState6[1];
|
|
15237
|
+
var _useState7 = useState(false),
|
|
15238
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
15239
|
+
openSelect = _useState8[0],
|
|
15240
|
+
setOpenSelect = _useState8[1];
|
|
15241
|
+
var _useState9 = useState([]),
|
|
15242
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
15243
|
+
options = _useState10[0],
|
|
15244
|
+
setOptions = _useState10[1];
|
|
15245
|
+
var _useState11 = useState([]),
|
|
15246
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
15247
|
+
rescouse = _useState12[0],
|
|
15248
|
+
setRescouse = _useState12[1];
|
|
15249
|
+
var _useState13 = useState(''),
|
|
15250
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
15251
|
+
searchValue = _useState14[0],
|
|
15252
|
+
setSearchValue = _useState14[1];
|
|
15253
|
+
var _useState15 = useState([{
|
|
15254
|
+
label: name,
|
|
15255
|
+
value: code
|
|
15256
|
+
}]),
|
|
15257
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
15258
|
+
store = _useState16[0],
|
|
15259
|
+
setStore = _useState16[1];
|
|
15260
|
+
function fetchUserList(_x, _x2) {
|
|
15261
|
+
return _fetchUserList.apply(this, arguments);
|
|
15262
|
+
}
|
|
15263
|
+
function _fetchUserList() {
|
|
15264
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
15265
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
15266
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
15267
|
+
case 0:
|
|
15268
|
+
return _context3.abrupt("return", getStoreByName({
|
|
15269
|
+
orgName: storeName ? storeName : undefined,
|
|
15270
|
+
platCompanyCode: init ? undefined : key,
|
|
15271
|
+
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
15272
|
+
'qp-orgViewCode-eq': 'business-organizational-view'
|
|
15273
|
+
}).then(function (res) {
|
|
15274
|
+
var data = res.data;
|
|
15275
|
+
if (data.code != '000000') {
|
|
15276
|
+
return;
|
|
15277
|
+
}
|
|
15278
|
+
return data.data.map(function (item) {
|
|
15279
|
+
return {
|
|
15280
|
+
label: item.orgName,
|
|
15281
|
+
value: item.orgCode,
|
|
15282
|
+
defaultOrg: item.defaultOrg,
|
|
15283
|
+
platCompanyCode: item.platCompanyCode
|
|
15284
|
+
};
|
|
15285
|
+
});
|
|
15286
|
+
}));
|
|
15287
|
+
case 1:
|
|
15288
|
+
case "end":
|
|
15289
|
+
return _context3.stop();
|
|
15290
|
+
}
|
|
15291
|
+
}, _callee3);
|
|
15292
|
+
}));
|
|
15293
|
+
return _fetchUserList.apply(this, arguments);
|
|
15294
|
+
}
|
|
15295
|
+
var debounceFetcher = useMemo(function () {
|
|
15296
|
+
var loadOptions = function loadOptions(str) {
|
|
15297
|
+
fetchRef.current += 1;
|
|
15298
|
+
var fetchId = fetchRef.current;
|
|
15299
|
+
setOptions([]);
|
|
15300
|
+
setRescouse([]);
|
|
15301
|
+
fetchUserList(str).then(function (newOptions) {
|
|
15302
|
+
if (fetchId !== fetchRef.current) {
|
|
15303
|
+
return;
|
|
15304
|
+
}
|
|
15305
|
+
setOptions(newOptions);
|
|
15306
|
+
setRescouse(newOptions);
|
|
15307
|
+
});
|
|
15308
|
+
};
|
|
15309
|
+
return debounce$1(loadOptions, debounceTimeout);
|
|
15310
|
+
}, [debounceTimeout, key]);
|
|
15311
|
+
var changeInput = /*#__PURE__*/function () {
|
|
15312
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
15313
|
+
var res;
|
|
15314
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15315
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15316
|
+
case 0:
|
|
15317
|
+
_context.next = 2;
|
|
15318
|
+
return debounceFetcher(str);
|
|
15319
|
+
case 2:
|
|
15320
|
+
res = _context.sent;
|
|
15321
|
+
setOptions(res);
|
|
15322
|
+
setRescouse(res);
|
|
15323
|
+
case 5:
|
|
15324
|
+
case "end":
|
|
15325
|
+
return _context.stop();
|
|
15326
|
+
}
|
|
15327
|
+
}, _callee);
|
|
15328
|
+
}));
|
|
15329
|
+
return function changeInput(_x3) {
|
|
15330
|
+
return _ref.apply(this, arguments);
|
|
15331
|
+
};
|
|
15332
|
+
}();
|
|
15333
|
+
useEffect(function () {
|
|
15334
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
15335
|
+
var res;
|
|
15336
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
15337
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
15338
|
+
case 0:
|
|
15339
|
+
_context2.next = 2;
|
|
15340
|
+
return fetchUserList(undefined, true);
|
|
15341
|
+
case 2:
|
|
15342
|
+
res = _context2.sent;
|
|
15343
|
+
res.map(function (item, indexNumber) {
|
|
15344
|
+
if (item.label === name) {
|
|
15345
|
+
setIndex(indexNumber);
|
|
15346
|
+
}
|
|
15347
|
+
if (item.defaultOrg) {
|
|
15348
|
+
if (name) {
|
|
15349
|
+
return;
|
|
15350
|
+
}
|
|
15351
|
+
localStorage.setItem('WARE_HOUSE_NAME', item === null || item === void 0 ? void 0 : item.label);
|
|
15352
|
+
localStorage.setItem('WARE_HOUSE_CODE', item === null || item === void 0 ? void 0 : item.value);
|
|
15353
|
+
setValue([item]);
|
|
15354
|
+
}
|
|
15355
|
+
});
|
|
15356
|
+
setOptions(res);
|
|
15357
|
+
setRescouse(res);
|
|
15358
|
+
case 6:
|
|
15359
|
+
case "end":
|
|
15360
|
+
return _context2.stop();
|
|
15361
|
+
}
|
|
15362
|
+
}, _callee2);
|
|
15363
|
+
}))();
|
|
15364
|
+
}, []);
|
|
15365
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
|
15366
|
+
value: value,
|
|
15367
|
+
style: {
|
|
15368
|
+
width: 280,
|
|
15369
|
+
marginRight: 20
|
|
15370
|
+
},
|
|
15371
|
+
open: false,
|
|
15372
|
+
onClick: function onClick() {
|
|
15373
|
+
setOpenSelect(true);
|
|
15374
|
+
}
|
|
15375
|
+
}), /*#__PURE__*/React.createElement(Modal, {
|
|
15376
|
+
open: openSelect,
|
|
15377
|
+
onCancel: function onCancel() {
|
|
15378
|
+
setOpenSelect(false);
|
|
15379
|
+
},
|
|
15380
|
+
onOk: function onOk() {
|
|
15381
|
+
var _store$, _store$2;
|
|
15382
|
+
localStorage.setItem('WARE_HOUSE_NAME', (_store$ = store[0]) === null || _store$ === void 0 ? void 0 : _store$.label);
|
|
15383
|
+
localStorage.setItem('WARE_HOUSE_CODE', (_store$2 = store[0]) === null || _store$2 === void 0 ? void 0 : _store$2.value);
|
|
15384
|
+
window.location.reload();
|
|
15385
|
+
}
|
|
15386
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
15387
|
+
style: {
|
|
15388
|
+
height: 300,
|
|
15389
|
+
marginTop: 20
|
|
15390
|
+
},
|
|
15391
|
+
labelCol: {
|
|
15392
|
+
span: 3
|
|
15393
|
+
},
|
|
15394
|
+
wrapperCol: {
|
|
15395
|
+
span: 16
|
|
15396
|
+
}
|
|
15397
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
15398
|
+
label: "\u54C1\u724C",
|
|
15399
|
+
name: "brand"
|
|
15400
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
15401
|
+
options: plainOptions,
|
|
15402
|
+
onChange: function onChange(item) {
|
|
15403
|
+
var _item$target;
|
|
15404
|
+
var str = item === null || item === void 0 ? void 0 : (_item$target = item.target) === null || _item$target === void 0 ? void 0 : _item$target.value;
|
|
15405
|
+
setKey(str === 'UR' ? 'UR' : 'BL');
|
|
15406
|
+
if (str === 'UR') {
|
|
15407
|
+
var res = rescouse === null || rescouse === void 0 ? void 0 : rescouse.filter(function (current) {
|
|
15408
|
+
return current.platCompanyCode === 'UR';
|
|
15409
|
+
});
|
|
15410
|
+
setOptions(res);
|
|
15411
|
+
setSearchValue('');
|
|
15412
|
+
} else {
|
|
15413
|
+
var _res = rescouse === null || rescouse === void 0 ? void 0 : rescouse.filter(function (current) {
|
|
15414
|
+
return current.platCompanyCode === 'BL';
|
|
15415
|
+
});
|
|
15416
|
+
setOptions(_res);
|
|
15417
|
+
setSearchValue('');
|
|
15418
|
+
}
|
|
15419
|
+
},
|
|
15420
|
+
optionType: "button",
|
|
15421
|
+
buttonStyle: "solid"
|
|
15422
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
15423
|
+
label: "\u95E8\u5E97",
|
|
15424
|
+
name: "store",
|
|
15425
|
+
rules: [{
|
|
15426
|
+
required: true,
|
|
15427
|
+
message: '请选择门店'
|
|
15428
|
+
}]
|
|
15429
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
15430
|
+
placeholder: "\u8F93\u5165\u95E8\u5E97\u540D\u79F0",
|
|
15431
|
+
value: searchValue,
|
|
15432
|
+
onChange: function onChange(e) {
|
|
15433
|
+
changeInput(e.target.value);
|
|
15434
|
+
setSearchValue(e.target.value);
|
|
15435
|
+
}
|
|
15436
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
15437
|
+
style: {
|
|
15438
|
+
height: 220,
|
|
15439
|
+
overflowY: 'scroll'
|
|
15440
|
+
}
|
|
15441
|
+
}, /*#__PURE__*/React.createElement(List, {
|
|
15442
|
+
dataSource: options,
|
|
15443
|
+
bordered: true,
|
|
15444
|
+
renderItem: function renderItem(item, indexNumber) {
|
|
15445
|
+
return /*#__PURE__*/React.createElement(List.Item, {
|
|
15446
|
+
style: indexNumber === index ? {
|
|
15447
|
+
// opacity
|
|
15448
|
+
color: '#0047bb'
|
|
15449
|
+
} : {},
|
|
15450
|
+
onClick: function onClick(current) {
|
|
15451
|
+
// setValue([item]);
|
|
15452
|
+
setStore([item]);
|
|
15453
|
+
setIndex(indexNumber);
|
|
15454
|
+
}
|
|
15455
|
+
}, item.label);
|
|
15456
|
+
}
|
|
15457
|
+
}))))));
|
|
15458
|
+
};
|
|
15459
|
+
|
|
15460
|
+
var css_248z$j = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005cff;\n}\n.itemPath {\n height: 30px;\n line-height: 30px;\n width: 100%;\n cursor: pointer;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.itemPath:hover {\n background-color: #E6EEFF;\n}\n";
|
|
15461
|
+
styleInject(css_248z$j);
|
|
14978
15462
|
|
|
14979
15463
|
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
14980
15464
|
if (value == null || value == undefined || String(value).trim() == '') {
|
|
@@ -14984,7 +15468,11 @@ var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
|
14984
15468
|
};
|
|
14985
15469
|
var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
14986
15470
|
var _props$route$routes = props.route.routes,
|
|
14987
|
-
routes = _props$route$routes === void 0 ? [] : _props$route$routes
|
|
15471
|
+
routes = _props$route$routes === void 0 ? [] : _props$route$routes,
|
|
15472
|
+
_props$showSelectStor = props.showSelectStore,
|
|
15473
|
+
showSelectStore = _props$showSelectStor === void 0 ? false : _props$showSelectStor,
|
|
15474
|
+
_props$employeeCode = props.employeeCode,
|
|
15475
|
+
employeeCode = _props$employeeCode === void 0 ? "EMP231011000002" : _props$employeeCode;
|
|
14988
15476
|
var _useState = useState(''),
|
|
14989
15477
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14990
15478
|
keyWord = _useState2[0],
|
|
@@ -15121,13 +15609,15 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
15121
15609
|
},
|
|
15122
15610
|
title: item.fullPathName
|
|
15123
15611
|
}, renderLineStyl(item.fullPathName));
|
|
15124
|
-
}))))), /*#__PURE__*/React.createElement(
|
|
15612
|
+
}))))), showSelectStore && ( /*#__PURE__*/React.createElement(ChooseStore, {
|
|
15613
|
+
employeeCode: employeeCode
|
|
15614
|
+
})), /*#__PURE__*/React.createElement(GlobalHeaderRight, null));
|
|
15125
15615
|
};
|
|
15126
15616
|
|
|
15127
15617
|
var addIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2014%401x%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-21.000000%2C%20-71.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-15%22%20transform%3D%22translate%2821.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-14%22%20transform%3D%22translate%280.000000%2C%201.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%284.000000%2C%204.000000%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M8%2C0%20C12.4183529%2C0%2016%2C3.58164706%2016%2C8%20C16%2C12.4183529%2012.4183529%2C16%208%2C16%20C3.58164706%2C16%200%2C12.4183529%200%2C8%20C0%2C3.58164706%203.58164706%2C0%208%2C0%20Z%20M8%2C1.4117647%20C4.36141178%2C1.4117647%201.4117647%2C4.36141175%201.4117647%2C8%20C1.4117647%2C11.6385882%204.36141175%2C14.5882353%208%2C14.5882353%20C11.6385882%2C14.5882353%2014.5882353%2C11.6385882%2014.5882353%2C8%20C14.5882353%2C4.36141175%2011.6385882%2C1.4117647%208%2C1.4117647%20Z%20M8.70588235%2C3.76470589%20L8.70588235%2C7.29411765%20L12.2352941%2C7.29411765%20L12.2352941%2C8.70588235%20L8.70588235%2C8.70588235%20L8.70588235%2C12.2352941%20L7.29411765%2C12.2352941%20L7.29411765%2C8.70541177%20L3.76470589%2C8.70588235%20L3.76470589%2C7.29411765%20L7.29411765%2C7.29364707%20L7.29411765%2C3.76470589%20L8.70588235%2C3.76470589%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15128
15618
|
|
|
15129
|
-
var css_248z$
|
|
15130
|
-
styleInject(css_248z$
|
|
15619
|
+
var css_248z$k = ".setting_content > div {\n width: 50%;\n box-sizing: border-box;\n margin: 0 10px;\n}\n.setting_content {\n display: flex;\n}\n.tree_title {\n height: 50px;\n}\n.tree_content {\n height: 400px;\n overflow: auto;\n border: 1px solid #d9d9d9;\n padding: 5px;\n}\n.setting_content::after {\n clear: both;\n display: block;\n content: '';\n}\n.choosed_label_color {\n color: #f50;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n flex-grow: 1;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper .ant-tree-title {\n width: 100%;\n}\n.left_tree_content .ant-tree .ant-tree-treenode {\n width: 100%;\n}\n.right_tree_content .ant-tree .ant-tree-node-content-wrapper,\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n display: flex;\n margin-left: -3px;\n}\n.right_tree_content .ant-tree-checkbox,\n.left_tree_content .ant-tree-checkbox {\n top: auto;\n top: initial;\n}\n.node_title_content:hover .right_arrow {\n display: block !important;\n}\n.right_arrow {\n float: right;\n display: none;\n color: #999999;\n margin-right: 10px;\n}\n.right_tree_content .ant-tree-title {\n width: 100%;\n display: inline-block;\n padding-right: 10px;\n}\n.right_tree_content .ant-dropdown-trigger {\n color: gray !important;\n}\n.right_tree_content .tree_node_title {\n font-size: 20px;\n color: #d9d9d9;\n float: right;\n}\n.right_tree_content .tree_node_title span {\n margin-right: 5px;\n}\n";
|
|
15620
|
+
styleInject(css_248z$k);
|
|
15131
15621
|
|
|
15132
15622
|
var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%20186%E5%A4%87%E4%BB%BD%203%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-949.000000%2C%20-484.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%28534.000000%2C%20180.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%B1%BB%E7%9B%AE%E4%B8%80%E5%A4%87%E4%BB%BD-101%22%20transform%3D%22translate%2831.000000%2C%20298.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-186%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%28384.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-132%E5%A4%87%E4%BB%BD-85%22%20opacity%3D%220%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M24%2C0%20L24%2C24%20L0%2C24%20L0%2C0%20L24%2C0%20Z%20M23.765625%2C0.234375%20L0.234375%2C0.234375%20L0.234375%2C23.765625%20L23.765625%2C23.765625%20L23.765625%2C0.234375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-235%22%20fill%3D%22%23979797%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21.39%2C2.64%20L21.39%2C21.39%20L2.64%2C21.39%20L2.64%2C2.64%20L21.39%2C2.64%20Z%20M21.155625%2C2.874375%20L2.874375%2C2.874375%20L2.874375%2C21.155625%20L21.155625%2C21.155625%20L21.155625%2C2.874375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-236%22%20fill%3D%22%23979797%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M20.22%2C1.56%20L20.22%2C22.56%20L3.72%2C22.56%20L3.72%2C1.56%20L20.22%2C1.56%20Z%20M19.985625%2C1.794375%20L3.954375%2C1.794375%20L3.954375%2C22.325625%20L19.985625%2C22.325625%20L19.985625%2C1.794375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-237%22%20fill%3D%22%23FA6400%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M22.56%2C3.72%20L22.56%2C20.22%20L1.56%2C20.22%20L1.56%2C3.72%20L22.56%2C3.72%20Z%20M22.325625%2C3.954375%20L1.794375%2C3.954375%20L1.794375%2C19.985625%20L22.325625%2C19.985625%20L22.325625%2C3.954375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-238%22%20fill%3D%22%2344D7B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.06%2C1.56%20C17.8589899%2C1.56%2022.56%2C6.26101013%2022.56%2C12.06%20C22.56%2C17.8589899%2017.8589899%2C22.56%2012.06%2C22.56%20C6.26101013%2C22.56%201.56%2C17.8589899%201.56%2C12.06%20C1.56%2C6.26101013%206.26101013%2C1.56%2012.06%2C1.56%20Z%20M12.06%2C1.794375%20C6.39045187%2C1.794375%201.794375%2C6.39045187%201.794375%2C12.06%20C1.794375%2C17.7295481%206.39045187%2C22.325625%2012.06%2C22.325625%20C17.7295481%2C22.325625%2022.325625%2C17.7295481%2022.325625%2C12.06%20C22.325625%2C6.39045187%2017.7295481%2C1.794375%2012.06%2C1.794375%20Z%22%20id%3D%22%E6%A4%AD%E5%9C%86%E5%BD%A2%E5%A4%87%E4%BB%BD-59%22%20fill%3D%22%23F7B500%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%E5%A4%87%E4%BB%BD-43%22%20transform%3D%22translate%281.560000%2C%201.680000%29%22%20fill%3D%22%23999999%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10.44%2C0%20C16.2059506%2C0%2020.88%2C4.67404941%2020.88%2C10.44%20C20.88%2C16.2059506%2016.2059506%2C20.88%2010.44%2C20.88%20C4.67404941%2C20.88%200%2C16.2059506%200%2C10.44%20C0%2C4.67404941%204.67404941%2C0%2010.44%2C0%20Z%20M10.44%2C1.84235294%20C5.69164237%2C1.84235294%201.84235294%2C5.69164234%201.84235294%2C10.44%20C1.84235294%2C15.1883577%205.69164234%2C19.0376471%2010.44%2C19.0376471%20C15.1883577%2C19.0376471%2019.0376471%2C15.1883577%2019.0376471%2C10.44%20C19.0376471%2C5.69164234%2015.1883577%2C1.84235294%2010.44%2C1.84235294%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20points%3D%2210.4408066%206.32%2014.3966662%2010.2757133%2010.4408066%2014.2314265%209.2540487%2013.0447125%2011.1949264%2011.1039067%206%2011.1033618%206%209.42518043%2011.1725861%209.42518043%209.25459358%207.50671398%2010.4408066%206.32%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
15133
15623
|
|
|
@@ -15758,8 +16248,8 @@ var MenuSetting = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
15758
16248
|
}));
|
|
15759
16249
|
});
|
|
15760
16250
|
|
|
15761
|
-
var css_248z$
|
|
15762
|
-
styleInject(css_248z$
|
|
16251
|
+
var css_248z$l = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 45px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.customer_menu_content .ant-drawer-body {\n padding: 10px !important;\n}\n.menu_drawer_header_warp .ant-drawer-body {\n background-color: #F8F9FA;\n padding: 10px 0 0 0 !important;\n}\n.menu_title_line {\n font-size: 16px;\n font-weight: bold;\n color: #b1bad4;\n text-align: center;\n margin-bottom: 10px;\n}\n.menu_item {\n line-height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #E4E7ED;\n cursor: pointer;\n}\n.header_style {\n height: 50px;\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n display: flex;\n align-items: center;\n background-color: #ffffff;\n}\n.global_menu_draw .ant-drawer-body {\n padding: 10px !important;\n}\n";
|
|
16252
|
+
styleInject(css_248z$l);
|
|
15763
16253
|
|
|
15764
16254
|
var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
15765
16255
|
var isCollapse = _ref.isCollapse,
|
|
@@ -15895,8 +16385,8 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
15895
16385
|
})));
|
|
15896
16386
|
});
|
|
15897
16387
|
|
|
15898
|
-
var css_248z$
|
|
15899
|
-
styleInject(css_248z$
|
|
16388
|
+
var css_248z$m = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #1890ff !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
|
|
16389
|
+
styleInject(css_248z$m);
|
|
15900
16390
|
|
|
15901
16391
|
var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
|
|
15902
16392
|
|
|
@@ -16311,10 +16801,10 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
16311
16801
|
})));
|
|
16312
16802
|
};
|
|
16313
16803
|
|
|
16314
|
-
var css_248z$
|
|
16315
|
-
styleInject(css_248z$
|
|
16804
|
+
var css_248z$n = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #1890ff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
|
|
16805
|
+
styleInject(css_248z$n);
|
|
16316
16806
|
|
|
16317
|
-
var _excluded$
|
|
16807
|
+
var _excluded$h = ["route"];
|
|
16318
16808
|
var TabPane = Tabs.TabPane;
|
|
16319
16809
|
var UN_LISTTEN_DRP;
|
|
16320
16810
|
var routerArray = [];
|
|
@@ -17000,7 +17490,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17000
17490
|
if (!istParent) {
|
|
17001
17491
|
var _window$$wujie2;
|
|
17002
17492
|
if (route.pathname === '/') return;
|
|
17003
|
-
(_window$$wujie2 = window.$wujie) === null || _window$$wujie2 === void 0 ? void 0 : _window$$wujie2.bus.$emit('sub-route-change', itemPath, currentKey);
|
|
17493
|
+
(_window$$wujie2 = window.$wujie) === null || _window$$wujie2 === void 0 ? void 0 : _window$$wujie2.bus.$emit('sub-route-change', itemPath, currentKey, route === null || route === void 0 ? void 0 : route.state);
|
|
17004
17494
|
// window.parent.postMessage(`/parent/${itemPath}${currentKey}`, '*');
|
|
17005
17495
|
}
|
|
17006
17496
|
// 防止出错
|
|
@@ -17038,39 +17528,49 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17038
17528
|
newListenRouterKey = [].concat(_toConsumableArray(listenRouterKey), [currentKey]);
|
|
17039
17529
|
}
|
|
17040
17530
|
}
|
|
17041
|
-
//
|
|
17531
|
+
// -------------------处理页签关闭----------------------------
|
|
17042
17532
|
lastTwoRouterArray.push(route.pathname);
|
|
17043
17533
|
lastTwoRouterArray.shift();
|
|
17044
|
-
|
|
17045
|
-
|
|
17046
|
-
|
|
17047
|
-
|
|
17048
|
-
|
|
17049
|
-
|
|
17050
|
-
|
|
17051
|
-
|
|
17052
|
-
|
|
17053
|
-
|
|
17054
|
-
|
|
17055
|
-
|
|
17056
|
-
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17057
|
-
});
|
|
17058
|
-
newListenRouterKey = newListenRouterKey.filter(function (item) {
|
|
17059
|
-
var _ref5 = item ? item.split('?') : [],
|
|
17060
|
-
_ref6 = _slicedToArray(_ref5, 1),
|
|
17061
|
-
pathname = _ref6[0];
|
|
17062
|
-
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17063
|
-
});
|
|
17064
|
-
}
|
|
17065
|
-
}
|
|
17066
|
-
// refs?.tableRef?.current?.refreshTable();
|
|
17534
|
+
var _ref3 = (route === null || route === void 0 ? void 0 : route.state) || {},
|
|
17535
|
+
_ref3$thisHideInMenuD = _ref3.thisHideInMenuDoNotClose,
|
|
17536
|
+
thisHideInMenuDoNotClose = _ref3$thisHideInMenuD === void 0 ? false : _ref3$thisHideInMenuD,
|
|
17537
|
+
_ref3$closePrevPage = _ref3.closePrevPage,
|
|
17538
|
+
closePrevPage = _ref3$closePrevPage === void 0 ? false : _ref3$closePrevPage,
|
|
17539
|
+
_ref3$updateCurrentPa = _ref3.updateCurrentPage;
|
|
17540
|
+
var needRemoveKey = '';
|
|
17541
|
+
// lastTwoRouterArray[0] != lastTwoRouterArray[1] 该判断条件用于判断是否是tab删除操作,如果是tab页删除操作,删除的是不是最后一个打开的tab页,执行history.push会导致错误的将最后打开的那个tab页也删除掉
|
|
17542
|
+
var notSamePageFlag = lastTwoRouterArray[0] != lastTwoRouterArray[1];
|
|
17543
|
+
// 满足包含closePrevPage标识则直接删除上一页
|
|
17544
|
+
if (closePrevPage) {
|
|
17545
|
+
needRemoveKey = lastTwoRouterArray[0] && typeof lastTwoRouterArray[0] === 'string' && notSamePageFlag ? lastTwoRouterArray[0] : '';
|
|
17067
17546
|
} else {
|
|
17068
|
-
|
|
17069
|
-
|
|
17070
|
-
|
|
17071
|
-
|
|
17072
|
-
}
|
|
17547
|
+
// 满足非tabclick或者menuClick的hideInMenu类型菜单自动关闭
|
|
17548
|
+
var shouldClosePrev = !localStorage.getItem('isTabChange') && !localStorage.getItem('isMenuClick');
|
|
17549
|
+
var needRemoveKeyArray = lastTwoRouterArray[0] && typeof lastTwoRouterArray[0] === 'string' && shouldClosePrev ? hideMenuArray.filter(function (itemRoute) {
|
|
17550
|
+
return pathToRegexp(itemRoute.path || '').test(lastTwoRouterArray[0]);
|
|
17551
|
+
}) : [];
|
|
17552
|
+
needRemoveKey = needRemoveKeyArray.length && notSamePageFlag && !thisHideInMenuDoNotClose ? needRemoveKeyArray[0] : '';
|
|
17553
|
+
}
|
|
17554
|
+
if (needRemoveKey) {
|
|
17555
|
+
newListenRouterState = newListenRouterState.filter(function (item) {
|
|
17556
|
+
var _ref4 = item.key ? item.key.split('?') : [],
|
|
17557
|
+
_ref5 = _slicedToArray(_ref4, 1),
|
|
17558
|
+
pathname = _ref5[0];
|
|
17559
|
+
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17560
|
+
});
|
|
17561
|
+
newListenRouterKey = newListenRouterKey.filter(function (item) {
|
|
17562
|
+
var _ref6 = item ? item.split('?') : [],
|
|
17563
|
+
_ref7 = _slicedToArray(_ref6, 1),
|
|
17564
|
+
pathname = _ref7[0];
|
|
17565
|
+
return pathname && pathname !== lastTwoRouterArray[0];
|
|
17566
|
+
});
|
|
17073
17567
|
}
|
|
17568
|
+
setTimeout(function () {
|
|
17569
|
+
// 处理页面刷新两面
|
|
17570
|
+
localStorage.removeItem('isTabChange');
|
|
17571
|
+
localStorage.removeItem('isMenuClick');
|
|
17572
|
+
}, 0);
|
|
17573
|
+
// -------------------处理页签关闭 end----------------------------
|
|
17074
17574
|
_this2.setState({
|
|
17075
17575
|
//路由监听函数最后执行setState,避免处理hideMenu类型页面自动关闭的逻辑块内获取不到最新state的listenRouterState和listenRouterKey
|
|
17076
17576
|
activeKey: currentKey,
|
|
@@ -17118,10 +17618,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17118
17618
|
defaultSettings = _this$props2.defaultSettings,
|
|
17119
17619
|
_this$props2$transpar = _this$props2.transparentProps,
|
|
17120
17620
|
transparentProps = _this$props2$transpar === void 0 ? {} : _this$props2$transpar;
|
|
17121
|
-
var TabTitle = function TabTitle(
|
|
17122
|
-
var item =
|
|
17123
|
-
index =
|
|
17124
|
-
updateState =
|
|
17621
|
+
var TabTitle = function TabTitle(_ref8) {
|
|
17622
|
+
var item = _ref8.item,
|
|
17623
|
+
index = _ref8.index,
|
|
17624
|
+
updateState = _ref8.updateState;
|
|
17125
17625
|
return /*#__PURE__*/React.createElement("div", {
|
|
17126
17626
|
className: "tab_title_content"
|
|
17127
17627
|
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React.createElement(ItemMenu, {
|
|
@@ -17136,7 +17636,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17136
17636
|
}); // 添加数据大屏
|
|
17137
17637
|
var _this$props3 = this.props,
|
|
17138
17638
|
route = _this$props3.route,
|
|
17139
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
17639
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$h);
|
|
17140
17640
|
var exist = route.routes.find(function (route) {
|
|
17141
17641
|
return route.path === '/homePage/data-show';
|
|
17142
17642
|
});
|
|
@@ -17291,8 +17791,8 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
17291
17791
|
onMenuHeaderClick: function onMenuHeaderClick() {
|
|
17292
17792
|
return history.push('/');
|
|
17293
17793
|
},
|
|
17294
|
-
menuHeaderRender: function menuHeaderRender(
|
|
17295
|
-
_objectDestructuringEmpty(
|
|
17794
|
+
menuHeaderRender: function menuHeaderRender(_ref9) {
|
|
17795
|
+
_objectDestructuringEmpty(_ref9);
|
|
17296
17796
|
return /*#__PURE__*/React.createElement(CustomerMenuHeader, {
|
|
17297
17797
|
originRoutes: originRoutes,
|
|
17298
17798
|
itemPath: itemPath,
|
|
@@ -17696,8 +18196,8 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
17696
18196
|
};
|
|
17697
18197
|
};
|
|
17698
18198
|
|
|
17699
|
-
var css_248z$
|
|
17700
|
-
styleInject(css_248z$
|
|
18199
|
+
var css_248z$o = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
|
|
18200
|
+
styleInject(css_248z$o);
|
|
17701
18201
|
|
|
17702
18202
|
var useSticky = function useSticky(sticky) {
|
|
17703
18203
|
var _ref = _typeof(sticky) === 'object' ? sticky : {},
|
|
@@ -18109,10 +18609,10 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
18109
18609
|
}))))));
|
|
18110
18610
|
});
|
|
18111
18611
|
|
|
18112
|
-
var _excluded$
|
|
18612
|
+
var _excluded$i = ["children"];
|
|
18113
18613
|
var Drawer = (function (props) {
|
|
18114
18614
|
var children = props.children,
|
|
18115
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
18615
|
+
restProps = _objectWithoutProperties(props, _excluded$i);
|
|
18116
18616
|
return /*#__PURE__*/React.createElement(Drawer$1, _objectSpread2({
|
|
18117
18617
|
mask: true,
|
|
18118
18618
|
closable: false,
|
|
@@ -23936,8 +24436,8 @@ var nameRender = (function (data) {
|
|
|
23936
24436
|
}, " ");
|
|
23937
24437
|
});
|
|
23938
24438
|
|
|
23939
|
-
var css_248z$
|
|
23940
|
-
styleInject(css_248z$
|
|
24439
|
+
var css_248z$p = ".si-tree {\n font-size: 14px;\n}\n.si-tree-node-block {\n display: flex;\n align-items: center;\n padding: 2px 4px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.si-tree-node-block:hover {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-block-actived {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-switcher {\n margin-right: 2px;\n}\n.si-tree-node-icon {\n margin-right: 4px;\n display: flex;\n}\n.tree-compact {\n margin-left: 4px;\n font-size: 13px;\n font-style: italic;\n color: #49aa19;\n}\n";
|
|
24440
|
+
styleInject(css_248z$p);
|
|
23941
24441
|
|
|
23942
24442
|
function parseData(data) {
|
|
23943
24443
|
var res;
|
|
@@ -24148,8 +24648,8 @@ function registerSuggestions(monaco) {
|
|
|
24148
24648
|
});
|
|
24149
24649
|
}
|
|
24150
24650
|
|
|
24151
|
-
var css_248z$
|
|
24152
|
-
styleInject(css_248z$
|
|
24651
|
+
var css_248z$q = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #1890ff;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
|
|
24652
|
+
styleInject(css_248z$q);
|
|
24153
24653
|
|
|
24154
24654
|
var Title = Typography.Title;
|
|
24155
24655
|
var STRTEMP = 'const config = ';
|
|
@@ -24343,7 +24843,7 @@ var Editor = (function (props) {
|
|
|
24343
24843
|
}, [shallowHeight]);
|
|
24344
24844
|
var hasConfigTree = type !== 'editor';
|
|
24345
24845
|
return /*#__PURE__*/React.createElement("div", {
|
|
24346
|
-
className: isFull ? css_248z$
|
|
24846
|
+
className: isFull ? css_248z$q.editorWrapper : ''
|
|
24347
24847
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24348
24848
|
style: {
|
|
24349
24849
|
overflow: 'hidden'
|
|
@@ -24411,7 +24911,7 @@ var Editor = (function (props) {
|
|
|
24411
24911
|
})), hasConfigTree && /*#__PURE__*/React.createElement(Col, {
|
|
24412
24912
|
span: 8
|
|
24413
24913
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24414
|
-
className: css_248z$
|
|
24914
|
+
className: css_248z$q.title
|
|
24415
24915
|
}, "\u5C5E\u6027\u8282\u70B9\u6811"), /*#__PURE__*/React.createElement(ConfigTree, {
|
|
24416
24916
|
style: {
|
|
24417
24917
|
height: 'calc(100vh - 300px)',
|
|
@@ -24549,7 +25049,7 @@ var App = function App(_ref) {
|
|
|
24549
25049
|
fieldList = _useState6[0],
|
|
24550
25050
|
UpdateFiedList = _useState6[1];
|
|
24551
25051
|
useEffect(function () {
|
|
24552
|
-
request$
|
|
25052
|
+
request$2({
|
|
24553
25053
|
url: '/basic/flow/businessField/listNoPage',
|
|
24554
25054
|
params: {
|
|
24555
25055
|
'qp-businessType-eq': record.businessType,
|
|
@@ -25161,7 +25661,7 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
25161
25661
|
while (1) switch (_context.prev = _context.next) {
|
|
25162
25662
|
case 0:
|
|
25163
25663
|
_context.next = 2;
|
|
25164
|
-
return request$
|
|
25664
|
+
return request$2({
|
|
25165
25665
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
25166
25666
|
converter: function converter(_ref2) {
|
|
25167
25667
|
var data = _ref2.data;
|
|
@@ -25389,7 +25889,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25389
25889
|
form = _ref4.form;
|
|
25390
25890
|
if (values[0]) {
|
|
25391
25891
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, undefined);
|
|
25392
|
-
request$
|
|
25892
|
+
request$2({
|
|
25393
25893
|
url: "/basic/businessVariable/dict/".concat(values[0]),
|
|
25394
25894
|
converter: function converter(_ref5) {
|
|
25395
25895
|
var _data$defaultValue, _data$defaultValue4;
|
|
@@ -25834,7 +26334,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
25834
26334
|
break;
|
|
25835
26335
|
}
|
|
25836
26336
|
_context3.next = 5;
|
|
25837
|
-
return request$
|
|
26337
|
+
return request$2({
|
|
25838
26338
|
url: '/basic/dictDynamicItem/queryList',
|
|
25839
26339
|
converter: function converter(_ref11) {
|
|
25840
26340
|
var data = _ref11.data;
|
|
@@ -26080,7 +26580,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
26080
26580
|
_context4.next = 18;
|
|
26081
26581
|
break;
|
|
26082
26582
|
}
|
|
26083
|
-
request$
|
|
26583
|
+
request$2({
|
|
26084
26584
|
url: "/basic/flow/businessField",
|
|
26085
26585
|
method: 'POST',
|
|
26086
26586
|
params: res,
|
|
@@ -26091,7 +26591,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
26091
26591
|
});
|
|
26092
26592
|
return _context4.abrupt("return");
|
|
26093
26593
|
case 18:
|
|
26094
|
-
request$
|
|
26594
|
+
request$2({
|
|
26095
26595
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
26096
26596
|
method: 'PATCH',
|
|
26097
26597
|
params: res,
|
|
@@ -26294,8 +26794,8 @@ var FieldsSettingsTable = (function (props) {
|
|
|
26294
26794
|
})), fieldsModify.visible && /*#__PURE__*/React.createElement(FieldsModifyModal, _objectSpread2({}, fieldsModify)));
|
|
26295
26795
|
});
|
|
26296
26796
|
|
|
26297
|
-
var css_248z$
|
|
26298
|
-
styleInject(css_248z$
|
|
26797
|
+
var css_248z$r = ".customFieldsDrawer .ant-col-8 {\n flex: 0 0 100%!important;\n max-width: 100%!important;\n}\n.customFieldsDrawer .ant-form-item {\n margin-bottom: 0!important;\n}\n.customFieldsDrawer .ant-form {\n margin-bottom: 15px;\n}\n.customFieldsDrawer .sula-template-query-table-fields-wrapper {\n align-items: center;\n}\n";
|
|
26798
|
+
styleInject(css_248z$r);
|
|
26299
26799
|
|
|
26300
26800
|
function iterFileds(fields) {
|
|
26301
26801
|
var filedsValue = [];
|
|
@@ -26361,7 +26861,7 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
|
|
|
26361
26861
|
if (item.dependency) {
|
|
26362
26862
|
targetValue.dependency = {
|
|
26363
26863
|
visible: _objectSpread2(_objectSpread2({}, item.dependency.visible), {}, {
|
|
26364
|
-
type: new Function('
|
|
26864
|
+
type: new Function('request', 'ctx', item.dependency.visible.type).bind(null, requestUtil)
|
|
26365
26865
|
})
|
|
26366
26866
|
};
|
|
26367
26867
|
}
|
|
@@ -26576,12 +27076,13 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
26576
27076
|
tableJsonEditorValsArr = _useState16[0],
|
|
26577
27077
|
setTableJsonEditorValsArr = _useState16[1];
|
|
26578
27078
|
useEffect(function () {
|
|
26579
|
-
Promise.all([
|
|
27079
|
+
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
26580
27080
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
26581
27081
|
res = _ref3[0];
|
|
26582
|
-
var
|
|
26583
|
-
|
|
26584
|
-
|
|
27082
|
+
var _ref4 = (res === null || res === void 0 ? void 0 : res.data) || {},
|
|
27083
|
+
code = _ref4.code,
|
|
27084
|
+
data = _ref4.data;
|
|
27085
|
+
if (code === '000000') {
|
|
26585
27086
|
if (data) {
|
|
26586
27087
|
var businessType = data.businessType,
|
|
26587
27088
|
fieldGroup = data.code,
|
|
@@ -26600,17 +27101,17 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
26600
27101
|
useEffect(function () {
|
|
26601
27102
|
//明细表的配置数据
|
|
26602
27103
|
var axiosArr = detailTablesSetting.map(function (item) {
|
|
26603
|
-
return
|
|
27104
|
+
return requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
|
|
26604
27105
|
});
|
|
26605
|
-
Promise.all(axiosArr).then(function (
|
|
26606
|
-
var
|
|
26607
|
-
resArr =
|
|
27106
|
+
Promise.all(axiosArr).then(function (_ref5) {
|
|
27107
|
+
var _ref6 = _toArray(_ref5),
|
|
27108
|
+
resArr = _ref6.slice(0);
|
|
26608
27109
|
var configParams = {};
|
|
26609
27110
|
detailTablesSetting.map(function (item, index) {
|
|
26610
27111
|
var _resArr$index;
|
|
26611
|
-
var
|
|
26612
|
-
code =
|
|
26613
|
-
data =
|
|
27112
|
+
var _ref7 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
|
|
27113
|
+
code = _ref7.code,
|
|
27114
|
+
data = _ref7.data;
|
|
26614
27115
|
if (data) {
|
|
26615
27116
|
var businessType = data.businessType,
|
|
26616
27117
|
fieldGroup = data.code,
|
|
@@ -26931,7 +27432,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26931
27432
|
useEffect(function () {
|
|
26932
27433
|
if (value && onlyCode) {
|
|
26933
27434
|
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
26934
|
-
request$
|
|
27435
|
+
request$2({
|
|
26935
27436
|
url: "/basic/bscArea/getBscAreaList?qp-code-in=".concat(value),
|
|
26936
27437
|
method: 'get'
|
|
26937
27438
|
}).then(function (res) {
|
|
@@ -26969,7 +27470,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
26969
27470
|
var loadData = function loadData(selectedOptions) {
|
|
26970
27471
|
var targetOption = selectedOptions[selectedOptions.length - 1];
|
|
26971
27472
|
targetOption.loading = true;
|
|
26972
|
-
request$
|
|
27473
|
+
request$2({
|
|
26973
27474
|
url: "/basic/bscArea/getBscAreaList?qp-pid-eq=".concat(targetOption.id),
|
|
26974
27475
|
method: 'get',
|
|
26975
27476
|
converter: function converter(_ref3) {
|
|
@@ -27027,8 +27528,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
27027
27528
|
});
|
|
27028
27529
|
};
|
|
27029
27530
|
|
|
27030
|
-
var css_248z$
|
|
27031
|
-
styleInject(css_248z$
|
|
27531
|
+
var css_248z$s = ".base_rule p {\n margin: 0;\n}\n.base_rule .base_rule_content {\n min-height: 80px;\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title {\n position: relative;\n height: 40px;\n}\n.base_rule .base_rule_line_title .rule_title {\n height: 35px;\n padding: 0 10px;\n font-weight: bold;\n font-size: 16px;\n line-height: 35px;\n}\n.base_rule .base_rule_line_title .base_rule_btn_style {\n position: absolute;\n right: 0px;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link {\n color: #008fe0;\n font-weight: bold;\n border: 0px !important;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link:hover,\n.base_rule .base_rule_line_title :global .ant-btn-link:focus {\n color: #008fe0;\n background-color: transparent;\n border: 0px;\n border-color: #008fe0;\n}\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):hover,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):active,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):focus {\n color: #008fe0;\n}\n.base_rule .base_rule_line_content {\n display: flex;\n padding: 15px;\n overflow-x: auto;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn {\n margin-right: 10px;\n color: #89b9cf;\n font-size: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn:hover {\n cursor: pointer;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc_content {\n height: 45px;\n line-height: 45px;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc {\n margin-right: 15px;\n}\n.base_rule .base_rule_line_content .base_rule_item1 {\n align-items: center;\n width: 120px;\n color: #f8ab3c;\n font-size: 16px;\n}\n.base_rule .base_rule_line_content .base_rule_item2 {\n width: 1200px;\n}\n.base_rule .base_rule_line_content .base_rule_item3 {\n display: flex;\n align-items: center;\n justify-content: space-around;\n margin-top: -20px;\n padding-left: 20px;\n}\n.base_rule .base_rule_line_content .line_color_red {\n color: #ed869b;\n}\n.base_rule .base_rule_line_content .base_rule_item4 {\n width: 80px;\n}\n.base_rule .footer_line > span {\n color: #008fe0;\n font-weight: bold;\n font-size: 16px;\n}\n.rule_name_title {\n display: inline-block;\n height: 30px;\n margin-right: 10px;\n margin-bottom: 10px;\n padding-left: 10px;\n color: #f8ab3c;\n font-size: 16px;\n line-height: 30px;\n}\n.logical_operate_content {\n position: relative;\n}\n.logical_operate_content .top_line {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content .bottom_line {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content::before {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 998;\n width: 2px;\n height: 100%;\n overflow: hidden;\n background: #d6efe8;\n content: ' ';\n}\n.logical_item_btn {\n position: absolute !important;\n top: 50%;\n left: 50%;\n z-index: 999;\n display: flex !important;\n align-items: center;\n width: 50px;\n height: 30px !important;\n margin-top: -15px;\n margin-left: -25px;\n padding: 0px !important;\n color: #008fe0 !important;\n line-height: 30px !important;\n text-align: center !important;\n background-color: #ffffff !important;\n cursor: pointer !important;\n}\n.logical_item_btn1 {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-left: -15px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.rule_field_style {\n display: inline-block;\n}\n.icon_btn_style {\n margin-right: 10px;\n font-size: 20px;\n}\n.choose_logical_type {\n height: 25px;\n margin: 0px;\n padding: 0 10px;\n line-height: 25px;\n cursor: pointer;\n}\n.choose_logical_type:first-child {\n border-bottom: 1px solid #d9d9d9;\n}\n.choose_logical_type:hover {\n color: white;\n background-color: #008fe0;\n}\n.action_list_item {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n padding: 10px;\n border: 1px solid #e1e1f0;\n border-radius: 2px;\n cursor: pointer;\n}\n:global .ant-popover-inner-content {\n padding: 0px;\n}\n";
|
|
27532
|
+
styleInject(css_248z$s);
|
|
27032
27533
|
|
|
27033
27534
|
// 查询规则对象属性thresholdList
|
|
27034
27535
|
function getRegularThresholdRange(_x) {
|
|
@@ -27039,7 +27540,7 @@ function _getRegularThresholdRange() {
|
|
|
27039
27540
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
27040
27541
|
while (1) switch (_context.prev = _context.next) {
|
|
27041
27542
|
case 0:
|
|
27042
|
-
return _context.abrupt("return",
|
|
27543
|
+
return _context.abrupt("return", requestUtil({
|
|
27043
27544
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
27044
27545
|
method: 'POST',
|
|
27045
27546
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
@@ -27251,7 +27752,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
27251
27752
|
} else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
|
|
27252
27753
|
extraRequestUrl = "/basic/".concat(extraRequestUrl);
|
|
27253
27754
|
}
|
|
27254
|
-
request$
|
|
27755
|
+
request$2({
|
|
27255
27756
|
url: extraRequestUrl,
|
|
27256
27757
|
method: 'get',
|
|
27257
27758
|
converter: function converter(res) {
|
|
@@ -28136,7 +28637,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28136
28637
|
while (1) switch (_context2.prev = _context2.next) {
|
|
28137
28638
|
case 0:
|
|
28138
28639
|
_context2.next = 2;
|
|
28139
|
-
return request$
|
|
28640
|
+
return request$2({
|
|
28140
28641
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
28141
28642
|
method: 'get',
|
|
28142
28643
|
converter: function converter(_ref3) {
|
|
@@ -28185,7 +28686,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28185
28686
|
while (1) switch (_context3.prev = _context3.next) {
|
|
28186
28687
|
case 0:
|
|
28187
28688
|
_context3.next = 2;
|
|
28188
|
-
return request$
|
|
28689
|
+
return request$2({
|
|
28189
28690
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
28190
28691
|
method: 'get',
|
|
28191
28692
|
converter: function converter(_ref5) {
|
|
@@ -28236,7 +28737,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
28236
28737
|
while (1) switch (_context4.prev = _context4.next) {
|
|
28237
28738
|
case 0:
|
|
28238
28739
|
_context4.next = 2;
|
|
28239
|
-
return request$
|
|
28740
|
+
return request$2({
|
|
28240
28741
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
28241
28742
|
method: 'get',
|
|
28242
28743
|
converter: function converter(_ref7) {
|
|
@@ -29574,7 +30075,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
29574
30075
|
style: {
|
|
29575
30076
|
marginLeft: '10px'
|
|
29576
30077
|
},
|
|
29577
|
-
className: css_248z$
|
|
30078
|
+
className: css_248z$s.rule_field_style
|
|
29578
30079
|
}, this.renderConditionField());
|
|
29579
30080
|
}
|
|
29580
30081
|
}]);
|
|
@@ -30017,7 +30518,7 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
30017
30518
|
disabled = _this$props.disabled;
|
|
30018
30519
|
return /*#__PURE__*/React.createElement("div", null, ruleTypeData.map(function (i) {
|
|
30019
30520
|
return /*#__PURE__*/React.createElement("div", {
|
|
30020
|
-
className: css_248z$
|
|
30521
|
+
className: css_248z$s.action_list_item
|
|
30021
30522
|
}, /*#__PURE__*/React.createElement("div", {
|
|
30022
30523
|
onClick: function onClick() {
|
|
30023
30524
|
return handleOperatingAction(i.code, 'view');
|
|
@@ -30041,55 +30542,537 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
30041
30542
|
return RuleField;
|
|
30042
30543
|
}(Component);
|
|
30043
30544
|
|
|
30044
|
-
var
|
|
30045
|
-
|
|
30046
|
-
|
|
30047
|
-
|
|
30048
|
-
|
|
30049
|
-
|
|
30050
|
-
|
|
30051
|
-
|
|
30052
|
-
var
|
|
30545
|
+
var RangePicker$1 = DatePicker.RangePicker;
|
|
30546
|
+
function RenderCompItem(props) {
|
|
30547
|
+
var _showValue, _showValue2;
|
|
30548
|
+
var regularDataList = props.regularDataList,
|
|
30549
|
+
ites = props.ites,
|
|
30550
|
+
showValue = props.showValue,
|
|
30551
|
+
handleEdit = props.handleEdit,
|
|
30552
|
+
disabled = props.disabled;
|
|
30553
|
+
var fieldListGroup = regularDataList.map(function (item) {
|
|
30554
|
+
var Item = {
|
|
30555
|
+
id: item.id,
|
|
30556
|
+
code: item.code,
|
|
30557
|
+
name: item.name,
|
|
30558
|
+
value: item.code
|
|
30559
|
+
};
|
|
30560
|
+
if (item.propertyList) {
|
|
30561
|
+
// @ts-ignore
|
|
30562
|
+
Item.propertyList = item.propertyList.map(function (field) {
|
|
30563
|
+
return {
|
|
30564
|
+
id: field.id,
|
|
30565
|
+
code: field.code,
|
|
30566
|
+
name: field.name,
|
|
30567
|
+
value: "".concat(item.code, ".").concat(field.code),
|
|
30568
|
+
valueText: "".concat(item.name, ".").concat(field.name)
|
|
30569
|
+
};
|
|
30570
|
+
});
|
|
30571
|
+
}
|
|
30572
|
+
return Item;
|
|
30573
|
+
});
|
|
30574
|
+
console.log((ites === null || ites === void 0 ? void 0 : ites.dictionaryCode) && !getDictionarySource(ites.dictionaryCode));
|
|
30575
|
+
var _useState = useState(getDictionarySource(ites.dictionaryCode) || []),
|
|
30053
30576
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30054
|
-
|
|
30055
|
-
|
|
30056
|
-
|
|
30057
|
-
|
|
30058
|
-
|
|
30059
|
-
|
|
30060
|
-
|
|
30061
|
-
|
|
30062
|
-
|
|
30063
|
-
|
|
30064
|
-
|
|
30065
|
-
|
|
30066
|
-
|
|
30067
|
-
|
|
30068
|
-
|
|
30069
|
-
|
|
30070
|
-
|
|
30071
|
-
|
|
30577
|
+
dictData = _useState2[0],
|
|
30578
|
+
setDictData = _useState2[1];
|
|
30579
|
+
var getDictData = /*#__PURE__*/function () {
|
|
30580
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30581
|
+
var _data$map;
|
|
30582
|
+
var data;
|
|
30583
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30584
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30585
|
+
case 0:
|
|
30586
|
+
_context.next = 2;
|
|
30587
|
+
return request$2({
|
|
30588
|
+
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
30589
|
+
});
|
|
30590
|
+
case 2:
|
|
30591
|
+
data = _context.sent;
|
|
30592
|
+
setDictData(data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
30593
|
+
return {
|
|
30594
|
+
text: item.dictItemName,
|
|
30595
|
+
value: item.dictItemCode
|
|
30596
|
+
};
|
|
30597
|
+
}));
|
|
30598
|
+
case 4:
|
|
30599
|
+
case "end":
|
|
30600
|
+
return _context.stop();
|
|
30072
30601
|
}
|
|
30073
|
-
});
|
|
30602
|
+
}, _callee);
|
|
30603
|
+
}));
|
|
30604
|
+
return function getDictData() {
|
|
30605
|
+
return _ref.apply(this, arguments);
|
|
30606
|
+
};
|
|
30607
|
+
}();
|
|
30608
|
+
useEffect(function () {
|
|
30609
|
+
if ((ites === null || ites === void 0 ? void 0 : ites.dictionaryCode) && !getDictionarySource(ites.dictionaryCode)) {
|
|
30610
|
+
getDictData();
|
|
30074
30611
|
}
|
|
30075
|
-
}, [
|
|
30076
|
-
|
|
30077
|
-
|
|
30078
|
-
|
|
30612
|
+
}, []);
|
|
30613
|
+
if (!ites) return;
|
|
30614
|
+
var styleCommon = _objectSpread2({
|
|
30615
|
+
width: '200px'
|
|
30616
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.rightText) ? {
|
|
30617
|
+
marginLeft: 10
|
|
30618
|
+
} : {});
|
|
30619
|
+
var style2 = {
|
|
30620
|
+
width: '100px'
|
|
30621
|
+
};
|
|
30622
|
+
console.log('value');
|
|
30623
|
+
console.log(ites === null || ites === void 0 ? void 0 : ites.code);
|
|
30624
|
+
console.log(showValue(ites.code));
|
|
30625
|
+
console.log((_showValue = showValue(ites.code)) === null || _showValue === void 0 ? void 0 : _showValue.split(','));
|
|
30626
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React.createElement(Input, {
|
|
30627
|
+
disabled: disabled,
|
|
30628
|
+
allowClear: true,
|
|
30629
|
+
onClear: function onClear() {
|
|
30630
|
+
return handleEdit(ites.code, undefined);
|
|
30631
|
+
},
|
|
30632
|
+
defaultValue: showValue(ites.code, 'input'),
|
|
30633
|
+
style: styleCommon,
|
|
30634
|
+
onBlur: function onBlur(e) {
|
|
30635
|
+
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
30636
|
+
}
|
|
30637
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React.createElement(InputNumber, {
|
|
30638
|
+
disabled: disabled,
|
|
30639
|
+
max: Number.MAX_SAFE_INTEGER,
|
|
30640
|
+
min: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : Number.MIN_SAFE_INTEGER,
|
|
30641
|
+
precision: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : 2,
|
|
30642
|
+
defaultValue: ites.defaultValue,
|
|
30643
|
+
style: style2,
|
|
30644
|
+
value: showValue(ites.code),
|
|
30645
|
+
onChange: function onChange(value) {
|
|
30646
|
+
handleEdit(ites.code, value);
|
|
30647
|
+
}
|
|
30648
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 && ( /*#__PURE__*/React.createElement(DatePicker, {
|
|
30649
|
+
disabled: disabled,
|
|
30650
|
+
defaultValue: ites.defaultValue,
|
|
30651
|
+
style: style2,
|
|
30652
|
+
value: showValue(ites.code),
|
|
30653
|
+
onChange: function onChange(value) {
|
|
30654
|
+
handleEdit(ites.code, value);
|
|
30655
|
+
}
|
|
30656
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React.createElement(RangePicker$1, {
|
|
30657
|
+
showTime: true,
|
|
30658
|
+
disabled: disabled,
|
|
30659
|
+
defaultValue: ites.defaultValue,
|
|
30660
|
+
style: style2,
|
|
30661
|
+
value: showValue(ites.code),
|
|
30662
|
+
onChange: function onChange(value) {
|
|
30663
|
+
handleEdit(ites.code, value);
|
|
30664
|
+
}
|
|
30665
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React.createElement(Switch, {
|
|
30666
|
+
disabled: disabled,
|
|
30667
|
+
defaultChecked: !!ites.defaultValue,
|
|
30668
|
+
style: style2,
|
|
30669
|
+
checked: showValue(ites.code),
|
|
30670
|
+
onChange: function onChange(value) {
|
|
30671
|
+
handleEdit(ites.code, value);
|
|
30672
|
+
}
|
|
30673
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && ( /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
30674
|
+
disabled: disabled,
|
|
30675
|
+
allowClear: true,
|
|
30676
|
+
showArrow: true
|
|
30677
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30079
30678
|
mode: 'multiple'
|
|
30080
30679
|
} : {}), {}, {
|
|
30081
|
-
defaultValue: defaultValue,
|
|
30680
|
+
defaultValue: ites.defaultValue,
|
|
30082
30681
|
style: styleCommon,
|
|
30083
|
-
value:
|
|
30084
|
-
onChange: function onChange(
|
|
30085
|
-
|
|
30086
|
-
|
|
30087
|
-
|
|
30088
|
-
|
|
30089
|
-
|
|
30090
|
-
|
|
30682
|
+
value: showValue(ites.code),
|
|
30683
|
+
onChange: function onChange(value) {
|
|
30684
|
+
handleEdit(ites.code, value);
|
|
30685
|
+
}
|
|
30686
|
+
}), Object.keys(ites.enumeration).map(function (it) {
|
|
30687
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
30688
|
+
key: it,
|
|
30689
|
+
value: it
|
|
30690
|
+
}, ites.enumeration[it]);
|
|
30691
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
30692
|
+
disabled: disabled
|
|
30693
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30694
|
+
mode: 'multiple'
|
|
30695
|
+
} : {}), {}, {
|
|
30696
|
+
defaultValue: ites.defaultValue,
|
|
30697
|
+
style: styleCommon,
|
|
30698
|
+
value: (_showValue2 = showValue(ites.code)) === null || _showValue2 === void 0 ? void 0 : _showValue2.split(','),
|
|
30699
|
+
onChange: function onChange(value) {
|
|
30700
|
+
handleEdit(ites.code, value);
|
|
30701
|
+
},
|
|
30702
|
+
showSearch: true,
|
|
30703
|
+
optionFilterProp: "children",
|
|
30704
|
+
filterOption: function filterOption(input, option) {
|
|
30705
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
30706
|
+
}
|
|
30707
|
+
}), dictData === null || dictData === void 0 ? void 0 : dictData.map(function (it) {
|
|
30708
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
30709
|
+
key: it.value,
|
|
30710
|
+
value: it.value
|
|
30711
|
+
}, it.text);
|
|
30712
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30713
|
+
selectBusinessType: "physicalWarehouse",
|
|
30714
|
+
selectProps: _objectSpread2({
|
|
30715
|
+
style: styleCommon,
|
|
30716
|
+
placeholder: '请选择物理仓'
|
|
30717
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30718
|
+
mode: 'multiple',
|
|
30719
|
+
maxTagCount: 1
|
|
30720
|
+
} : {}),
|
|
30721
|
+
disabled: disabled,
|
|
30722
|
+
labelInValue: true,
|
|
30723
|
+
value: showValue(ites.code),
|
|
30724
|
+
requestConfig: {
|
|
30725
|
+
mappingValueField: 'physicalWarehouseCode',
|
|
30726
|
+
filterInit: 'qp-physicalWarehouseCode-in'
|
|
30727
|
+
},
|
|
30728
|
+
onChange: function onChange(value) {
|
|
30729
|
+
handleEdit(ites.code, value);
|
|
30730
|
+
},
|
|
30731
|
+
getPopupContainer: function getPopupContainer() {
|
|
30732
|
+
return document.body;
|
|
30733
|
+
}
|
|
30734
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30735
|
+
selectBusinessType: "realWarehouse",
|
|
30736
|
+
selectProps: _objectSpread2({
|
|
30737
|
+
style: styleCommon,
|
|
30738
|
+
placeholder: '请选择逻辑仓'
|
|
30739
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30740
|
+
mode: 'multiple',
|
|
30741
|
+
maxTagCount: 1
|
|
30742
|
+
} : {}),
|
|
30743
|
+
disabled: disabled,
|
|
30744
|
+
labelInValue: true,
|
|
30745
|
+
value: showValue(ites.code),
|
|
30746
|
+
requestConfig: {
|
|
30747
|
+
mappingValueField: 'realWarehouseCode',
|
|
30748
|
+
filterInit: 'qp-realWarehouseCode-in'
|
|
30749
|
+
},
|
|
30750
|
+
onChange: function onChange(value) {
|
|
30751
|
+
handleEdit(ites.code, value);
|
|
30752
|
+
},
|
|
30753
|
+
getPopupContainer: function getPopupContainer() {
|
|
30754
|
+
return document.body;
|
|
30755
|
+
}
|
|
30756
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30757
|
+
selectBusinessType: "virtualWarehouse",
|
|
30758
|
+
selectProps: _objectSpread2({
|
|
30759
|
+
style: styleCommon,
|
|
30760
|
+
placeholder: '请选择虚拟仓'
|
|
30761
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30762
|
+
mode: 'multiple',
|
|
30763
|
+
maxTagCount: 1
|
|
30764
|
+
} : {}),
|
|
30765
|
+
disabled: disabled,
|
|
30766
|
+
labelInValue: true,
|
|
30767
|
+
value: showValue(ites.code),
|
|
30768
|
+
requestConfig: {
|
|
30769
|
+
mappingValueField: 'virtualWarehouseCode',
|
|
30770
|
+
filterInit: 'qp-virtualWarehouseCode-in'
|
|
30771
|
+
},
|
|
30772
|
+
onChange: function onChange(value) {
|
|
30773
|
+
handleEdit(ites.code, value);
|
|
30774
|
+
},
|
|
30775
|
+
getPopupContainer: function getPopupContainer() {
|
|
30776
|
+
return document.body;
|
|
30777
|
+
}
|
|
30778
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30779
|
+
selectBusinessType: "channelWarehouse",
|
|
30780
|
+
selectProps: _objectSpread2({
|
|
30781
|
+
style: styleCommon,
|
|
30782
|
+
placeholder: '请选择渠道仓'
|
|
30783
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30784
|
+
mode: 'multiple',
|
|
30785
|
+
maxTagCount: 1
|
|
30786
|
+
} : {}),
|
|
30787
|
+
disabled: disabled,
|
|
30788
|
+
labelInValue: true,
|
|
30789
|
+
value: showValue(ites.code),
|
|
30790
|
+
requestConfig: {
|
|
30791
|
+
mappingValueField: 'channelWarehouseCode',
|
|
30792
|
+
filterInit: 'qp-channelWarehouseCode-in'
|
|
30793
|
+
},
|
|
30794
|
+
onChange: function onChange(value) {
|
|
30795
|
+
handleEdit(ites.code, value);
|
|
30796
|
+
},
|
|
30797
|
+
getPopupContainer: function getPopupContainer() {
|
|
30798
|
+
return document.body;
|
|
30799
|
+
}
|
|
30800
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30801
|
+
selectBusinessType: "spuCommodity",
|
|
30802
|
+
selectProps: _objectSpread2({
|
|
30803
|
+
style: styleCommon,
|
|
30804
|
+
placeholder: '请选择SPU'
|
|
30805
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30806
|
+
mode: 'multiple',
|
|
30807
|
+
maxTagCount: 1
|
|
30808
|
+
} : {}),
|
|
30809
|
+
disabled: disabled,
|
|
30810
|
+
labelInValue: true,
|
|
30811
|
+
value: showValue(ites.code),
|
|
30812
|
+
requestConfig: {
|
|
30813
|
+
filterInit: 'qp-itemCode-in'
|
|
30814
|
+
},
|
|
30815
|
+
onChange: function onChange(value) {
|
|
30816
|
+
handleEdit(ites.code, value);
|
|
30817
|
+
},
|
|
30818
|
+
getPopupContainer: function getPopupContainer() {
|
|
30819
|
+
return document.body;
|
|
30820
|
+
}
|
|
30821
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30822
|
+
selectBusinessType: "skuCommodity",
|
|
30823
|
+
selectProps: _objectSpread2({
|
|
30824
|
+
style: styleCommon,
|
|
30825
|
+
placeholder: '请选择商品'
|
|
30826
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30827
|
+
mode: 'multiple',
|
|
30828
|
+
maxTagCount: 1
|
|
30829
|
+
} : {}),
|
|
30830
|
+
disabled: disabled,
|
|
30831
|
+
labelInValue: true,
|
|
30832
|
+
value: showValue(ites.code),
|
|
30833
|
+
requestConfig: {
|
|
30834
|
+
filterInit: 'qp-skuCode-in'
|
|
30835
|
+
},
|
|
30836
|
+
onChange: function onChange(value) {
|
|
30837
|
+
handleEdit(ites.code, value);
|
|
30838
|
+
},
|
|
30839
|
+
getPopupContainer: function getPopupContainer() {
|
|
30840
|
+
return document.body;
|
|
30841
|
+
}
|
|
30842
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && ( /*#__PURE__*/React.createElement(BsCascader, {
|
|
30843
|
+
disabled: disabled,
|
|
30844
|
+
isAll: true,
|
|
30845
|
+
needNameAndCode: true,
|
|
30846
|
+
notChangeOnSelect: true,
|
|
30847
|
+
initRequestSource: function () {
|
|
30848
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
30849
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30850
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
30851
|
+
case 0:
|
|
30852
|
+
_context2.next = 2;
|
|
30853
|
+
return request$2({
|
|
30854
|
+
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30855
|
+
method: 'get',
|
|
30856
|
+
converter: function converter(_ref2) {
|
|
30857
|
+
var data = _ref2.data;
|
|
30858
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115629
|
|
30859
|
+
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
30860
|
+
return {
|
|
30861
|
+
text: item.name,
|
|
30862
|
+
value: item.id,
|
|
30863
|
+
level: item.level,
|
|
30864
|
+
id: item.id
|
|
30865
|
+
};
|
|
30866
|
+
}) : [];
|
|
30867
|
+
return handleData;
|
|
30868
|
+
}
|
|
30869
|
+
});
|
|
30870
|
+
case 2:
|
|
30871
|
+
return _context2.abrupt("return", _context2.sent);
|
|
30872
|
+
case 3:
|
|
30873
|
+
case "end":
|
|
30874
|
+
return _context2.stop();
|
|
30875
|
+
}
|
|
30876
|
+
}, _callee2);
|
|
30877
|
+
}));
|
|
30878
|
+
function initRequestSource() {
|
|
30879
|
+
return _initRequestSource.apply(this, arguments);
|
|
30880
|
+
}
|
|
30881
|
+
return initRequestSource;
|
|
30882
|
+
}(),
|
|
30883
|
+
value: showValue(ites.code),
|
|
30884
|
+
onChange: function onChange(value) {
|
|
30885
|
+
handleEdit(ites.code, value);
|
|
30886
|
+
},
|
|
30887
|
+
getPopupContainer: function getPopupContainer() {
|
|
30888
|
+
return document.body;
|
|
30889
|
+
}
|
|
30890
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
30891
|
+
disabled: disabled,
|
|
30892
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30893
|
+
businessType: "department",
|
|
30894
|
+
labelInValue: true,
|
|
30895
|
+
value: showValue(ites.code),
|
|
30896
|
+
style: styleCommon,
|
|
30897
|
+
onChange: function onChange(value) {
|
|
30898
|
+
handleEdit(ites.code, value);
|
|
30899
|
+
},
|
|
30900
|
+
getPopupContainer: function getPopupContainer() {
|
|
30901
|
+
return document.body;
|
|
30902
|
+
}
|
|
30903
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
30904
|
+
disabled: disabled,
|
|
30905
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30906
|
+
businessType: "purchase-organization",
|
|
30907
|
+
labelInValue: true,
|
|
30908
|
+
value: showValue(ites.code),
|
|
30909
|
+
style: styleCommon,
|
|
30910
|
+
onChange: function onChange(value) {
|
|
30911
|
+
handleEdit(ites.code, value);
|
|
30912
|
+
},
|
|
30913
|
+
getPopupContainer: function getPopupContainer() {
|
|
30914
|
+
return document.body;
|
|
30915
|
+
}
|
|
30916
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
30917
|
+
disabled: disabled,
|
|
30918
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
30919
|
+
businessType: "sales-organization",
|
|
30920
|
+
labelInValue: true,
|
|
30921
|
+
value: showValue(ites.code),
|
|
30922
|
+
style: styleCommon,
|
|
30923
|
+
onChange: function onChange(value) {
|
|
30924
|
+
handleEdit(ites.code, value);
|
|
30925
|
+
},
|
|
30926
|
+
getPopupContainer: function getPopupContainer() {
|
|
30927
|
+
return document.body;
|
|
30928
|
+
}
|
|
30929
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30930
|
+
selectBusinessType: "supplier2",
|
|
30931
|
+
selectProps: _objectSpread2({
|
|
30932
|
+
style: styleCommon,
|
|
30933
|
+
placeholder: '请选择供应商'
|
|
30934
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30935
|
+
mode: 'multiple',
|
|
30936
|
+
maxTagCount: 1
|
|
30937
|
+
} : {}),
|
|
30938
|
+
disabled: disabled,
|
|
30939
|
+
labelInValue: true,
|
|
30940
|
+
value: showValue(ites.code),
|
|
30941
|
+
requestConfig: {
|
|
30942
|
+
filterInit: 'qp-code-in'
|
|
30943
|
+
},
|
|
30944
|
+
onChange: function onChange(value) {
|
|
30945
|
+
handleEdit(ites.code, value);
|
|
30946
|
+
},
|
|
30947
|
+
getPopupContainer: function getPopupContainer() {
|
|
30948
|
+
return document.body;
|
|
30949
|
+
}
|
|
30950
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30951
|
+
selectBusinessType: "customer2",
|
|
30952
|
+
selectProps: _objectSpread2({
|
|
30953
|
+
style: styleCommon,
|
|
30954
|
+
placeholder: '请选择客户'
|
|
30955
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30956
|
+
mode: 'multiple',
|
|
30957
|
+
maxTagCount: 1
|
|
30958
|
+
} : {}),
|
|
30959
|
+
disabled: disabled,
|
|
30960
|
+
labelInValue: true,
|
|
30961
|
+
value: showValue(ites.code),
|
|
30962
|
+
requestConfig: {
|
|
30963
|
+
filterInit: 'qp-code-in'
|
|
30964
|
+
},
|
|
30965
|
+
onChange: function onChange(value) {
|
|
30966
|
+
handleEdit(ites.code, value);
|
|
30967
|
+
},
|
|
30968
|
+
getPopupContainer: function getPopupContainer() {
|
|
30969
|
+
return document.body;
|
|
30970
|
+
}
|
|
30971
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30972
|
+
selectBusinessType: "shopFile2",
|
|
30973
|
+
selectProps: _objectSpread2({
|
|
30974
|
+
style: styleCommon,
|
|
30975
|
+
placeholder: '请选择店铺'
|
|
30976
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30977
|
+
mode: 'multiple',
|
|
30978
|
+
maxTagCount: 1
|
|
30979
|
+
} : {}),
|
|
30980
|
+
disabled: disabled,
|
|
30981
|
+
labelInValue: true,
|
|
30982
|
+
value: showValue(ites.code),
|
|
30983
|
+
requestConfig: {
|
|
30984
|
+
filterInit: 'qp-code-in'
|
|
30985
|
+
},
|
|
30986
|
+
onChange: function onChange(value) {
|
|
30987
|
+
handleEdit(ites.code, value);
|
|
30988
|
+
},
|
|
30989
|
+
getPopupContainer: function getPopupContainer() {
|
|
30990
|
+
return document.body;
|
|
30991
|
+
}
|
|
30992
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30993
|
+
selectBusinessType: "employee2",
|
|
30994
|
+
selectProps: _objectSpread2({
|
|
30995
|
+
style: styleCommon,
|
|
30996
|
+
placeholder: '请选择员工'
|
|
30997
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30998
|
+
mode: 'multiple',
|
|
30999
|
+
maxTagCount: 1
|
|
31000
|
+
} : {}),
|
|
31001
|
+
disabled: disabled,
|
|
31002
|
+
labelInValue: true,
|
|
31003
|
+
value: showValue(ites.code),
|
|
31004
|
+
requestConfig: {
|
|
31005
|
+
filterInit: 'qp-id-in'
|
|
31006
|
+
},
|
|
31007
|
+
onChange: function onChange(value) {
|
|
31008
|
+
handleEdit(ites.code, value);
|
|
31009
|
+
},
|
|
31010
|
+
getPopupContainer: function getPopupContainer() {
|
|
31011
|
+
return document.body;
|
|
31012
|
+
}
|
|
31013
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31014
|
+
disabled: disabled,
|
|
31015
|
+
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31016
|
+
businessType: "stock-organization",
|
|
31017
|
+
labelInValue: true,
|
|
31018
|
+
value: showValue(ites.code),
|
|
31019
|
+
style: styleCommon,
|
|
31020
|
+
onChange: function onChange(value) {
|
|
31021
|
+
handleEdit(ites.code, value);
|
|
31022
|
+
},
|
|
31023
|
+
getPopupContainer: function getPopupContainer() {
|
|
31024
|
+
return document.body;
|
|
31025
|
+
}
|
|
31026
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31027
|
+
selectBusinessType: "deliveryMode",
|
|
31028
|
+
selectProps: _objectSpread2({
|
|
31029
|
+
style: styleCommon,
|
|
31030
|
+
placeholder: '请选择配送方式'
|
|
31031
|
+
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31032
|
+
mode: 'multiple',
|
|
31033
|
+
maxTagCount: 1
|
|
31034
|
+
} : {}),
|
|
31035
|
+
disabled: disabled,
|
|
31036
|
+
labelInValue: true,
|
|
31037
|
+
value: showValue(ites.code),
|
|
31038
|
+
requestConfig: {
|
|
31039
|
+
filterInit: 'qp-code-in'
|
|
31040
|
+
},
|
|
31041
|
+
onChange: function onChange(value) {
|
|
31042
|
+
handleEdit(ites.code, value);
|
|
31043
|
+
},
|
|
31044
|
+
getPopupContainer: function getPopupContainer() {
|
|
31045
|
+
return document.body;
|
|
31046
|
+
}
|
|
31047
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React.createElement("div", {
|
|
31048
|
+
style: {
|
|
31049
|
+
display: 'flex'
|
|
31050
|
+
}
|
|
31051
|
+
}, /*#__PURE__*/React.createElement(App$1, {
|
|
31052
|
+
disabled: disabled,
|
|
31053
|
+
key: showValue(ites.code),
|
|
31054
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115667
|
|
31055
|
+
setValue: function setValue(val, formulaName) {
|
|
31056
|
+
console.log(val, 'val');
|
|
31057
|
+
var value = val.map(function (item) {
|
|
31058
|
+
return item.value.replace(/[a-zA-Z_]+\.\w+/g, function (i) {
|
|
31059
|
+
return '{' + i + '}';
|
|
31060
|
+
});
|
|
31061
|
+
});
|
|
31062
|
+
handleEdit(ites.code, value.join(''));
|
|
31063
|
+
handleEdit({
|
|
31064
|
+
inputType: 40,
|
|
31065
|
+
formulaName: formulaName
|
|
31066
|
+
});
|
|
31067
|
+
},
|
|
31068
|
+
record: {
|
|
31069
|
+
expression: showValue(ites.code)
|
|
31070
|
+
},
|
|
31071
|
+
sourceData: fieldListGroup
|
|
31072
|
+
}))));
|
|
31073
|
+
}
|
|
30091
31074
|
|
|
30092
|
-
var RangePicker$
|
|
31075
|
+
var RangePicker$2 = DatePicker.RangePicker;
|
|
30093
31076
|
var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
30094
31077
|
_inherits(RuleObjectComponent, _Component);
|
|
30095
31078
|
var _super = _createSuper(RuleObjectComponent);
|
|
@@ -30158,6 +31141,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30158
31141
|
} else if (element.choiceType === 20) {
|
|
30159
31142
|
_this.dictCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = infoVo === null || infoVo === void 0 ? void 0 : infoVo.dictionaryCode;
|
|
30160
31143
|
} else if (element.choiceType === 10) {
|
|
31144
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115669
|
|
30161
31145
|
var _list = Object.keys(infoVo).length && infoVo.enumeration && Object.keys(infoVo.enumeration).map(function (i) {
|
|
30162
31146
|
return {
|
|
30163
31147
|
code: i,
|
|
@@ -30502,18 +31486,18 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30502
31486
|
onClick: function onClick() {
|
|
30503
31487
|
_this.handleLogicalTypeChange(itemDetail, 'or');
|
|
30504
31488
|
}
|
|
30505
|
-
}, "
|
|
31489
|
+
}, "OR"), /*#__PURE__*/React.createElement("p", {
|
|
30506
31490
|
className: 'choose_logical_type',
|
|
30507
31491
|
onClick: function onClick() {
|
|
30508
31492
|
_this.handleLogicalTypeChange(itemDetail, 'and');
|
|
30509
31493
|
}
|
|
30510
|
-
}, "
|
|
31494
|
+
}, "AND")),
|
|
30511
31495
|
trigger: "focus"
|
|
30512
31496
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
30513
31497
|
disabled: disabled,
|
|
30514
31498
|
type: "link",
|
|
30515
31499
|
className: 'logical_item_btn'
|
|
30516
|
-
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '
|
|
31500
|
+
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? 'OR' : 'AND', /*#__PURE__*/React.createElement(DownOutlined, {
|
|
30517
31501
|
style: {
|
|
30518
31502
|
marginLeft: '6px'
|
|
30519
31503
|
}
|
|
@@ -30608,7 +31592,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30608
31592
|
onChange: function onChange(value) {
|
|
30609
31593
|
var _systemVariableList$f;
|
|
30610
31594
|
var ruleClassData = _this.state.ruleClassData;
|
|
30611
|
-
console.log(itemDetail);
|
|
30612
31595
|
itemDetail.params = [value && "{".concat(value, "}") || ''];
|
|
30613
31596
|
var name = (_systemVariableList$f = systemVariableList.find(function (i) {
|
|
30614
31597
|
return i.code == value;
|
|
@@ -30743,503 +31726,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30743
31726
|
}
|
|
30744
31727
|
})) || null;
|
|
30745
31728
|
};
|
|
30746
|
-
_this.
|
|
30747
|
-
var regularDataList = _this.props.regularDataList;
|
|
30748
|
-
var fieldListGroup = regularDataList.map(function (item) {
|
|
30749
|
-
var Item = {
|
|
30750
|
-
id: item.id,
|
|
30751
|
-
code: item.code,
|
|
30752
|
-
name: item.name,
|
|
30753
|
-
value: item.code
|
|
30754
|
-
};
|
|
30755
|
-
if (item.propertyList) {
|
|
30756
|
-
Item.propertyList = item.propertyList.map(function (field) {
|
|
30757
|
-
return {
|
|
30758
|
-
id: field.id,
|
|
30759
|
-
code: field.code,
|
|
30760
|
-
name: field.name,
|
|
30761
|
-
value: "".concat(item.code, ".").concat(field.code),
|
|
30762
|
-
valueText: "".concat(item.name, ".").concat(field.name)
|
|
30763
|
-
};
|
|
30764
|
-
});
|
|
30765
|
-
}
|
|
30766
|
-
return Item;
|
|
30767
|
-
});
|
|
30768
|
-
if (!ites) return;
|
|
30769
|
-
var styleCommon = _objectSpread2({
|
|
30770
|
-
width: '200px'
|
|
30771
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.rightText) ? {
|
|
30772
|
-
marginLeft: 10
|
|
30773
|
-
} : {});
|
|
30774
|
-
var style2 = {
|
|
30775
|
-
width: '100px'
|
|
30776
|
-
};
|
|
30777
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && /*#__PURE__*/React.createElement(Input, {
|
|
30778
|
-
disabled: disabled,
|
|
30779
|
-
allowClear: true,
|
|
30780
|
-
onClear: function onClear() {
|
|
30781
|
-
handleEdit(ites.code, undefined);
|
|
30782
|
-
},
|
|
30783
|
-
defaultValue: showValue(ites.code, 'input'),
|
|
30784
|
-
style: styleCommon,
|
|
30785
|
-
onBlur: function onBlur(e) {
|
|
30786
|
-
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
30787
|
-
}
|
|
30788
|
-
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && /*#__PURE__*/React.createElement(InputNumber, {
|
|
30789
|
-
disabled: disabled,
|
|
30790
|
-
max: Number.MAX_SAFE_INTEGER,
|
|
30791
|
-
min: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : Number.MIN_SAFE_INTEGER,
|
|
30792
|
-
precision: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : 2,
|
|
30793
|
-
defaultValue: ites.defaultValue,
|
|
30794
|
-
style: style2,
|
|
30795
|
-
value: showValue(ites.code),
|
|
30796
|
-
onChange: function onChange(value) {
|
|
30797
|
-
handleEdit(ites.code, value);
|
|
30798
|
-
}
|
|
30799
|
-
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && /*#__PURE__*/React.createElement(DatePicker, {
|
|
30800
|
-
showTime: dataTypeCode == 32,
|
|
30801
|
-
format: dataTypeCode == 41 ? dateFormat : fullDateFormat,
|
|
30802
|
-
disabled: disabled,
|
|
30803
|
-
defaultValue: ites.defaultValue,
|
|
30804
|
-
style: style2,
|
|
30805
|
-
value: showValue(ites.code),
|
|
30806
|
-
onChange: function onChange(value) {
|
|
30807
|
-
handleEdit(ites.code, value);
|
|
30808
|
-
}
|
|
30809
|
-
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && /*#__PURE__*/React.createElement(RangePicker$1, {
|
|
30810
|
-
showTime: true,
|
|
30811
|
-
disabled: disabled,
|
|
30812
|
-
defaultValue: ites.defaultValue,
|
|
30813
|
-
style: style2,
|
|
30814
|
-
value: showValue(ites.code),
|
|
30815
|
-
onChange: function onChange(value) {
|
|
30816
|
-
handleEdit(ites.code, value);
|
|
30817
|
-
}
|
|
30818
|
-
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && /*#__PURE__*/React.createElement(Switch, {
|
|
30819
|
-
disabled: disabled,
|
|
30820
|
-
defaultChecked: !!ites.defaultValue,
|
|
30821
|
-
style: style2,
|
|
30822
|
-
checked: showValue(ites.code),
|
|
30823
|
-
onChange: function onChange(value) {
|
|
30824
|
-
handleEdit(ites.code, value);
|
|
30825
|
-
}
|
|
30826
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && /*#__PURE__*/React.createElement(Select, _extends({
|
|
30827
|
-
disabled: disabled,
|
|
30828
|
-
allowClear: true,
|
|
30829
|
-
showArrow: true
|
|
30830
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30831
|
-
mode: 'multiple'
|
|
30832
|
-
} : {}, {
|
|
30833
|
-
defaultValue: ites.defaultValue,
|
|
30834
|
-
style: styleCommon,
|
|
30835
|
-
value: showValue(ites.code),
|
|
30836
|
-
onChange: function onChange(value) {
|
|
30837
|
-
handleEdit(ites.code, value);
|
|
30838
|
-
}
|
|
30839
|
-
}), Object.keys(ites.enumeration).map(function (it) {
|
|
30840
|
-
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
30841
|
-
key: it,
|
|
30842
|
-
value: it
|
|
30843
|
-
}, ites.enumeration[it]);
|
|
30844
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && /*#__PURE__*/React.createElement(InnerSelect, {
|
|
30845
|
-
disabled: disabled,
|
|
30846
|
-
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
30847
|
-
defaultValue: ites.defaultValue,
|
|
30848
|
-
styleCommon: styleCommon,
|
|
30849
|
-
value: showValue(ites.code),
|
|
30850
|
-
onChange: function onChange(value) {
|
|
30851
|
-
handleEdit(ites.code, value);
|
|
30852
|
-
},
|
|
30853
|
-
dictionaryCode: ites.dictionaryCode
|
|
30854
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30855
|
-
selectBusinessType: "physicalWarehouse",
|
|
30856
|
-
selectProps: _objectSpread2({
|
|
30857
|
-
style: styleCommon,
|
|
30858
|
-
placeholder: '请选择物理仓'
|
|
30859
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30860
|
-
mode: 'multiple',
|
|
30861
|
-
maxTagCount: 1
|
|
30862
|
-
} : {}),
|
|
30863
|
-
disabled: disabled,
|
|
30864
|
-
labelInValue: true,
|
|
30865
|
-
value: showValue(ites.code),
|
|
30866
|
-
requestConfig: {
|
|
30867
|
-
mappingValueField: 'physicalWarehouseCode',
|
|
30868
|
-
filterInit: 'qp-physicalWarehouseCode-in'
|
|
30869
|
-
},
|
|
30870
|
-
onChange: function onChange(value) {
|
|
30871
|
-
handleEdit(ites.code, value);
|
|
30872
|
-
},
|
|
30873
|
-
getPopupContainer: function getPopupContainer() {
|
|
30874
|
-
return document.body;
|
|
30875
|
-
}
|
|
30876
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30877
|
-
selectBusinessType: "realWarehouse",
|
|
30878
|
-
selectProps: _objectSpread2({
|
|
30879
|
-
style: styleCommon,
|
|
30880
|
-
placeholder: '请选择逻辑仓'
|
|
30881
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30882
|
-
mode: 'multiple',
|
|
30883
|
-
maxTagCount: 1
|
|
30884
|
-
} : {}),
|
|
30885
|
-
disabled: disabled,
|
|
30886
|
-
labelInValue: true,
|
|
30887
|
-
value: showValue(ites.code),
|
|
30888
|
-
requestConfig: {
|
|
30889
|
-
mappingValueField: 'realWarehouseCode',
|
|
30890
|
-
filterInit: 'qp-realWarehouseCode-in'
|
|
30891
|
-
},
|
|
30892
|
-
onChange: function onChange(value) {
|
|
30893
|
-
handleEdit(ites.code, value);
|
|
30894
|
-
},
|
|
30895
|
-
getPopupContainer: function getPopupContainer() {
|
|
30896
|
-
return document.body;
|
|
30897
|
-
}
|
|
30898
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30899
|
-
selectBusinessType: "virtualWarehouse",
|
|
30900
|
-
selectProps: _objectSpread2({
|
|
30901
|
-
style: styleCommon,
|
|
30902
|
-
placeholder: '请选择虚拟仓'
|
|
30903
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30904
|
-
mode: 'multiple',
|
|
30905
|
-
maxTagCount: 1
|
|
30906
|
-
} : {}),
|
|
30907
|
-
disabled: disabled,
|
|
30908
|
-
labelInValue: true,
|
|
30909
|
-
value: showValue(ites.code),
|
|
30910
|
-
requestConfig: {
|
|
30911
|
-
mappingValueField: 'virtualWarehouseCode',
|
|
30912
|
-
filterInit: 'qp-virtualWarehouseCode-in'
|
|
30913
|
-
},
|
|
30914
|
-
onChange: function onChange(value) {
|
|
30915
|
-
handleEdit(ites.code, value);
|
|
30916
|
-
},
|
|
30917
|
-
getPopupContainer: function getPopupContainer() {
|
|
30918
|
-
return document.body;
|
|
30919
|
-
}
|
|
30920
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30921
|
-
selectBusinessType: "channelWarehouse",
|
|
30922
|
-
selectProps: _objectSpread2({
|
|
30923
|
-
style: styleCommon,
|
|
30924
|
-
placeholder: '请选择渠道仓'
|
|
30925
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30926
|
-
mode: 'multiple',
|
|
30927
|
-
maxTagCount: 1
|
|
30928
|
-
} : {}),
|
|
30929
|
-
disabled: disabled,
|
|
30930
|
-
labelInValue: true,
|
|
30931
|
-
value: showValue(ites.code),
|
|
30932
|
-
requestConfig: {
|
|
30933
|
-
mappingValueField: 'channelWarehouseCode',
|
|
30934
|
-
filterInit: 'qp-channelWarehouseCode-in'
|
|
30935
|
-
},
|
|
30936
|
-
onChange: function onChange(value) {
|
|
30937
|
-
handleEdit(ites.code, value);
|
|
30938
|
-
},
|
|
30939
|
-
getPopupContainer: function getPopupContainer() {
|
|
30940
|
-
return document.body;
|
|
30941
|
-
}
|
|
30942
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30943
|
-
selectBusinessType: "spuCommodity",
|
|
30944
|
-
selectProps: _objectSpread2({
|
|
30945
|
-
style: styleCommon,
|
|
30946
|
-
placeholder: '请选择SPU'
|
|
30947
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30948
|
-
mode: 'multiple',
|
|
30949
|
-
maxTagCount: 1
|
|
30950
|
-
} : {}),
|
|
30951
|
-
disabled: disabled,
|
|
30952
|
-
labelInValue: true,
|
|
30953
|
-
value: showValue(ites.code),
|
|
30954
|
-
requestConfig: {
|
|
30955
|
-
filterInit: 'qp-itemCode-in'
|
|
30956
|
-
},
|
|
30957
|
-
onChange: function onChange(value) {
|
|
30958
|
-
handleEdit(ites.code, value);
|
|
30959
|
-
},
|
|
30960
|
-
getPopupContainer: function getPopupContainer() {
|
|
30961
|
-
return document.body;
|
|
30962
|
-
}
|
|
30963
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
30964
|
-
selectBusinessType: "skuCommodity",
|
|
30965
|
-
selectProps: _objectSpread2({
|
|
30966
|
-
style: styleCommon,
|
|
30967
|
-
placeholder: '请选择商品'
|
|
30968
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
30969
|
-
mode: 'multiple',
|
|
30970
|
-
maxTagCount: 1
|
|
30971
|
-
} : {}),
|
|
30972
|
-
disabled: disabled,
|
|
30973
|
-
labelInValue: true,
|
|
30974
|
-
value: showValue(ites.code),
|
|
30975
|
-
requestConfig: {
|
|
30976
|
-
filterInit: 'qp-skuCode-in'
|
|
30977
|
-
},
|
|
30978
|
-
onChange: function onChange(value) {
|
|
30979
|
-
handleEdit(ites.code, value);
|
|
30980
|
-
},
|
|
30981
|
-
getPopupContainer: function getPopupContainer() {
|
|
30982
|
-
return document.body;
|
|
30983
|
-
}
|
|
30984
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && /*#__PURE__*/React.createElement(BsCascader, {
|
|
30985
|
-
disabled: disabled,
|
|
30986
|
-
isAll: true,
|
|
30987
|
-
needNameAndCode: true,
|
|
30988
|
-
notChangeOnSelect: true,
|
|
30989
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30990
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30991
|
-
while (1) switch (_context.prev = _context.next) {
|
|
30992
|
-
case 0:
|
|
30993
|
-
_context.next = 2;
|
|
30994
|
-
return request$1({
|
|
30995
|
-
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
30996
|
-
method: 'get',
|
|
30997
|
-
converter: function converter(_ref2) {
|
|
30998
|
-
var data = _ref2.data;
|
|
30999
|
-
var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
31000
|
-
return {
|
|
31001
|
-
text: item.name,
|
|
31002
|
-
value: item.id,
|
|
31003
|
-
level: item.level,
|
|
31004
|
-
id: item.id
|
|
31005
|
-
};
|
|
31006
|
-
}) : [];
|
|
31007
|
-
return handleData;
|
|
31008
|
-
}
|
|
31009
|
-
});
|
|
31010
|
-
case 2:
|
|
31011
|
-
return _context.abrupt("return", _context.sent);
|
|
31012
|
-
case 3:
|
|
31013
|
-
case "end":
|
|
31014
|
-
return _context.stop();
|
|
31015
|
-
}
|
|
31016
|
-
}, _callee);
|
|
31017
|
-
})),
|
|
31018
|
-
value: showValue(ites.code),
|
|
31019
|
-
onChange: function onChange(value) {
|
|
31020
|
-
handleEdit(ites.code, value);
|
|
31021
|
-
},
|
|
31022
|
-
getPopupContainer: function getPopupContainer() {
|
|
31023
|
-
return document.body;
|
|
31024
|
-
}
|
|
31025
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31026
|
-
disabled: disabled,
|
|
31027
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31028
|
-
businessType: "department",
|
|
31029
|
-
labelInValue: true,
|
|
31030
|
-
value: showValue(ites.code),
|
|
31031
|
-
style: styleCommon,
|
|
31032
|
-
onChange: function onChange(value) {
|
|
31033
|
-
handleEdit(ites.code, value);
|
|
31034
|
-
},
|
|
31035
|
-
getPopupContainer: function getPopupContainer() {
|
|
31036
|
-
return document.body;
|
|
31037
|
-
}
|
|
31038
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31039
|
-
disabled: disabled,
|
|
31040
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31041
|
-
businessType: "purchase-organization",
|
|
31042
|
-
labelInValue: true,
|
|
31043
|
-
value: showValue(ites.code),
|
|
31044
|
-
style: styleCommon,
|
|
31045
|
-
onChange: function onChange(value) {
|
|
31046
|
-
handleEdit(ites.code, value);
|
|
31047
|
-
},
|
|
31048
|
-
getPopupContainer: function getPopupContainer() {
|
|
31049
|
-
return document.body;
|
|
31050
|
-
}
|
|
31051
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31052
|
-
disabled: disabled,
|
|
31053
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31054
|
-
businessType: "sales-organization",
|
|
31055
|
-
labelInValue: true,
|
|
31056
|
-
value: showValue(ites.code),
|
|
31057
|
-
style: styleCommon,
|
|
31058
|
-
onChange: function onChange(value) {
|
|
31059
|
-
handleEdit(ites.code, value);
|
|
31060
|
-
},
|
|
31061
|
-
getPopupContainer: function getPopupContainer() {
|
|
31062
|
-
return document.body;
|
|
31063
|
-
}
|
|
31064
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31065
|
-
selectBusinessType: "supplier2",
|
|
31066
|
-
selectProps: _objectSpread2({
|
|
31067
|
-
style: styleCommon,
|
|
31068
|
-
placeholder: '请选择供应商'
|
|
31069
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31070
|
-
mode: 'multiple',
|
|
31071
|
-
maxTagCount: 1
|
|
31072
|
-
} : {}),
|
|
31073
|
-
disabled: disabled,
|
|
31074
|
-
labelInValue: true,
|
|
31075
|
-
value: showValue(ites.code),
|
|
31076
|
-
requestConfig: {
|
|
31077
|
-
filterInit: 'qp-code-in'
|
|
31078
|
-
},
|
|
31079
|
-
onChange: function onChange(value) {
|
|
31080
|
-
handleEdit(ites.code, value);
|
|
31081
|
-
},
|
|
31082
|
-
getPopupContainer: function getPopupContainer() {
|
|
31083
|
-
return document.body;
|
|
31084
|
-
}
|
|
31085
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31086
|
-
selectBusinessType: "customer2",
|
|
31087
|
-
selectProps: _objectSpread2({
|
|
31088
|
-
style: styleCommon,
|
|
31089
|
-
placeholder: '请选择客户'
|
|
31090
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31091
|
-
mode: 'multiple',
|
|
31092
|
-
maxTagCount: 1
|
|
31093
|
-
} : {}),
|
|
31094
|
-
disabled: disabled,
|
|
31095
|
-
labelInValue: true,
|
|
31096
|
-
value: showValue(ites.code),
|
|
31097
|
-
requestConfig: {
|
|
31098
|
-
filterInit: 'qp-code-in'
|
|
31099
|
-
},
|
|
31100
|
-
onChange: function onChange(value) {
|
|
31101
|
-
handleEdit(ites.code, value);
|
|
31102
|
-
},
|
|
31103
|
-
getPopupContainer: function getPopupContainer() {
|
|
31104
|
-
return document.body;
|
|
31105
|
-
}
|
|
31106
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31107
|
-
selectBusinessType: "shopFile2",
|
|
31108
|
-
selectProps: _objectSpread2({
|
|
31109
|
-
style: styleCommon,
|
|
31110
|
-
placeholder: '请选择店铺'
|
|
31111
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31112
|
-
mode: 'multiple',
|
|
31113
|
-
maxTagCount: 1
|
|
31114
|
-
} : {}),
|
|
31115
|
-
disabled: disabled,
|
|
31116
|
-
labelInValue: true,
|
|
31117
|
-
value: showValue(ites.code),
|
|
31118
|
-
requestConfig: {
|
|
31119
|
-
filterInit: 'qp-code-in'
|
|
31120
|
-
},
|
|
31121
|
-
onChange: function onChange(value) {
|
|
31122
|
-
handleEdit(ites.code, value);
|
|
31123
|
-
},
|
|
31124
|
-
getPopupContainer: function getPopupContainer() {
|
|
31125
|
-
return document.body;
|
|
31126
|
-
}
|
|
31127
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31128
|
-
selectBusinessType: "employee2",
|
|
31129
|
-
selectProps: _objectSpread2({
|
|
31130
|
-
style: styleCommon,
|
|
31131
|
-
placeholder: '请选择员工'
|
|
31132
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31133
|
-
mode: 'multiple',
|
|
31134
|
-
maxTagCount: 1
|
|
31135
|
-
} : {}),
|
|
31136
|
-
disabled: disabled,
|
|
31137
|
-
labelInValue: true,
|
|
31138
|
-
value: showValue(ites.code),
|
|
31139
|
-
requestConfig: {
|
|
31140
|
-
filterInit: 'qp-id-in'
|
|
31141
|
-
},
|
|
31142
|
-
onChange: function onChange(value) {
|
|
31143
|
-
handleEdit(ites.code, value);
|
|
31144
|
-
},
|
|
31145
|
-
getPopupContainer: function getPopupContainer() {
|
|
31146
|
-
return document.body;
|
|
31147
|
-
}
|
|
31148
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31149
|
-
disabled: disabled,
|
|
31150
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31151
|
-
businessType: "stock-organization",
|
|
31152
|
-
labelInValue: true,
|
|
31153
|
-
value: showValue(ites.code),
|
|
31154
|
-
style: styleCommon,
|
|
31155
|
-
onChange: function onChange(value) {
|
|
31156
|
-
handleEdit(ites.code, value);
|
|
31157
|
-
},
|
|
31158
|
-
getPopupContainer: function getPopupContainer() {
|
|
31159
|
-
return document.body;
|
|
31160
|
-
}
|
|
31161
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && /*#__PURE__*/React.createElement(BusinessTreeSearchSelect$1, {
|
|
31162
|
-
disabled: disabled,
|
|
31163
|
-
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
31164
|
-
businessType: "settle-organization",
|
|
31165
|
-
labelInValue: true,
|
|
31166
|
-
value: showValue(ites.code),
|
|
31167
|
-
style: styleCommon,
|
|
31168
|
-
onChange: function onChange(value) {
|
|
31169
|
-
handleEdit(ites.code, value);
|
|
31170
|
-
},
|
|
31171
|
-
getPopupContainer: function getPopupContainer() {
|
|
31172
|
-
return document.body;
|
|
31173
|
-
}
|
|
31174
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31175
|
-
selectBusinessType: "deliveryMode",
|
|
31176
|
-
selectProps: _objectSpread2({
|
|
31177
|
-
style: styleCommon,
|
|
31178
|
-
placeholder: '请选择配送方式'
|
|
31179
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31180
|
-
mode: 'multiple',
|
|
31181
|
-
maxTagCount: 1
|
|
31182
|
-
} : {}),
|
|
31183
|
-
disabled: disabled,
|
|
31184
|
-
labelInValue: true,
|
|
31185
|
-
value: showValue(ites.code),
|
|
31186
|
-
requestConfig: {
|
|
31187
|
-
filterInit: 'qp-code-in'
|
|
31188
|
-
},
|
|
31189
|
-
onChange: function onChange(value) {
|
|
31190
|
-
handleEdit(ites.code, value);
|
|
31191
|
-
},
|
|
31192
|
-
getPopupContainer: function getPopupContainer() {
|
|
31193
|
-
return document.body;
|
|
31194
|
-
}
|
|
31195
|
-
}) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
|
|
31196
|
-
selectBusinessType: "role",
|
|
31197
|
-
selectProps: _objectSpread2({
|
|
31198
|
-
style: styleCommon,
|
|
31199
|
-
placeholder: '请选择角色'
|
|
31200
|
-
}, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
|
|
31201
|
-
mode: 'multiple',
|
|
31202
|
-
maxTagCount: 1
|
|
31203
|
-
} : {}),
|
|
31204
|
-
disabled: disabled,
|
|
31205
|
-
labelInValue: true,
|
|
31206
|
-
value: showValue(ites.code),
|
|
31207
|
-
requestConfig: {
|
|
31208
|
-
filterInit: 'qp-code-in'
|
|
31209
|
-
},
|
|
31210
|
-
onChange: function onChange(value) {
|
|
31211
|
-
handleEdit(ites.code, value);
|
|
31212
|
-
},
|
|
31213
|
-
getPopupContainer: function getPopupContainer() {
|
|
31214
|
-
return document.body;
|
|
31215
|
-
}
|
|
31216
|
-
}) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && /*#__PURE__*/React.createElement("div", {
|
|
31217
|
-
style: {
|
|
31218
|
-
display: 'flex'
|
|
31219
|
-
}
|
|
31220
|
-
}, /*#__PURE__*/React.createElement(App$1, {
|
|
31221
|
-
disabled: disabled,
|
|
31222
|
-
key: showValue(ites.code),
|
|
31223
|
-
setValue: function setValue(val, formulaName) {
|
|
31224
|
-
console.log(val, 'val');
|
|
31225
|
-
var value = val.map(function (item) {
|
|
31226
|
-
return item.value.replace(/[a-zA-Z_]+\.\w+/g, function (i) {
|
|
31227
|
-
return '{' + i + '}';
|
|
31228
|
-
});
|
|
31229
|
-
});
|
|
31230
|
-
handleEdit(ites.code, value.join(''));
|
|
31231
|
-
handleEdit({
|
|
31232
|
-
inputType: 40,
|
|
31233
|
-
formulaName: formulaName
|
|
31234
|
-
});
|
|
31235
|
-
},
|
|
31236
|
-
record: {
|
|
31237
|
-
expression: showValue(ites.code)
|
|
31238
|
-
},
|
|
31239
|
-
sourceData: fieldListGroup
|
|
31240
|
-
})));
|
|
31241
|
-
};
|
|
31242
|
-
_this.renderFormCompItem = function (config, showValue, handleEdit, parentItem, boxStyle, disabled) {
|
|
31729
|
+
_this.renderFormCompItem = function (config, _showValue, _handleEdit, parentItem, boxStyle, disabled) {
|
|
31243
31730
|
if (!config) return;
|
|
31244
31731
|
return /*#__PURE__*/React.createElement("div", {
|
|
31245
31732
|
style: boxStyle
|
|
@@ -31257,15 +31744,21 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
31257
31744
|
}
|
|
31258
31745
|
}, /*#__PURE__*/React.createElement("span", {
|
|
31259
31746
|
className: "requiredMark"
|
|
31260
|
-
})) || null,
|
|
31261
|
-
|
|
31262
|
-
|
|
31263
|
-
|
|
31264
|
-
|
|
31265
|
-
|
|
31266
|
-
|
|
31267
|
-
|
|
31268
|
-
|
|
31747
|
+
})) || null, /*#__PURE__*/React.createElement(RenderCompItem, {
|
|
31748
|
+
regularDataList: _this.props.regularDataList,
|
|
31749
|
+
ites: config,
|
|
31750
|
+
showValue: function showValue(a, b) {
|
|
31751
|
+
var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
|
|
31752
|
+
var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
|
|
31753
|
+
return _showValue(a, b, c, d);
|
|
31754
|
+
},
|
|
31755
|
+
handleEdit: function handleEdit(a, b) {
|
|
31756
|
+
var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
|
|
31757
|
+
var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
|
|
31758
|
+
return _handleEdit(a, b, c, d);
|
|
31759
|
+
},
|
|
31760
|
+
disabled: disabled
|
|
31761
|
+
}), (config === null || config === void 0 ? void 0 : config.rightText) && /*#__PURE__*/React.createElement("div", {
|
|
31269
31762
|
style: {
|
|
31270
31763
|
flex: 'none',
|
|
31271
31764
|
marginLeft: 10
|