@kmkf-fe-packages/basic-components 2.0.19-beta.7 → 2.0.19-beta.71
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/index.esm.js +1488 -970
- package/dist/index.js +1489 -967
- package/dist/src/apaas/ApaasUploadProAsync/index.d.ts +20 -0
- package/dist/src/apaas/CopyTextIcon/index.d.ts +5 -0
- package/dist/src/apaas/HoverTableRowDeleteIcon/index.d.ts +8 -0
- package/dist/src/bs/component/model/Columns/Erp/bse3.d.ts +7 -0
- package/dist/src/bs/component/model/Columns/Erp/gy.d.ts +15 -0
- package/dist/src/bs/component/model/Columns/Erp/jst.d.ts +21 -0
- package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +21 -0
- package/dist/src/bs/component/model/Columns/index.d.ts +5 -0
- package/dist/src/bs/component/model/Columns/useGetColumns.d.ts +11 -0
- package/dist/src/bs/component/model/JstGoodsModal/GoodsList.d.ts +1 -1
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +18 -0
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/index.d.ts +3 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
|
|
2
|
-
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography } from 'antd';
|
|
3
|
-
import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } from '@ant-design/icons';
|
|
2
|
+
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography, Skeleton } from 'antd';
|
|
3
|
+
import { EyeOutlined, DeleteOutlined, CloseOutlined, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, MinusCircleFilled } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, jstMergeIdenticalGoods, msgTypeCh } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
-
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, servers, filterJstOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
+
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, isEqual, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
|
|
8
8
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
9
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
@@ -1176,10 +1176,306 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1176
1176
|
};
|
|
1177
1177
|
var index = /*#__PURE__*/forwardRef(ApaasUploadAsync);
|
|
1178
1178
|
|
|
1179
|
-
var css_248z$2 = ".index-
|
|
1180
|
-
var styles$2 = {"
|
|
1179
|
+
var css_248z$2 = ".index-module_imageProBox__1u84Y {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageProBox__1u84Y .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageProBox__1u84Y .index-module_inputImage__nm5jb {\n width: 105px;\n height: 105px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageShow__1cG2j {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo {\n display: flex;\n width: 280px;\n height: 105px;\n padding: 8px;\n margin-bottom: 8px;\n margin-right: 8px;\n border-radius: 5px;\n background-color: rgba(240, 241, 242, 0.72);\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo textarea {\n max-width: 174px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo:hover .index-module_mask__L3q8p:before {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProInfo__iHM0C {\n width: 80px;\n height: 80px;\n border-radius: 5px;\n margin-right: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProRight__3rPiY {\n position: relative;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProOperate__1hFcg {\n position: absolute;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_deleteIcon__2LWG9 {\n color: #1890ff;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p:hover .index-module_actions__3Wwry {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry .index-module_icon__3oJ-1 {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 {\n display: inline-block;\n margin-right: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 .index-module_fakeBox__3EXNG {\n width: 105px;\n height: 105px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n padding-top: 16px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 .index-module_fakeBox__3EXNG .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_upload__2nwd8 .ant-upload {\n height: 105px;\n width: 105px;\n border: none;\n background-color: #F2F3F5;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_upload__2nwd8 .ant-upload .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_tips__z9Yjd {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
1180
|
+
var styles$2 = {"imageProBox":"index-module_imageProBox__1u84Y","inputImage":"index-module_inputImage__nm5jb","imageShow":"index-module_imageShow__1cG2j","imageProWrap":"index-module_imageProWrap__sx8lo","-webkit-mask":"index-module_mask__L3q8p","mask":"index-module_mask__L3q8p","imageProInfo":"index-module_imageProInfo__iHM0C","imageProRight":"index-module_imageProRight__3rPiY","imageProOperate":"index-module_imageProOperate__1hFcg","deleteIcon":"index-module_deleteIcon__2LWG9","actions":"index-module_actions__3Wwry","icon":"index-module_icon__3oJ-1","imagePaste":"index-module_imagePaste__1A8C5","fakeBox":"index-module_fakeBox__3EXNG","addBtn":"index-module_addBtn__1Dv95","upload":"index-module_upload__2nwd8","tips":"index-module_tips__z9Yjd"};
|
|
1181
1181
|
styleInject(css_248z$2);
|
|
1182
1182
|
|
|
1183
|
+
var _excluded$7 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "actionUrl", "platform"];
|
|
1184
|
+
var TextArea = Input.TextArea;
|
|
1185
|
+
var fn$2 = function fn() {
|
|
1186
|
+
return void 0;
|
|
1187
|
+
};
|
|
1188
|
+
var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
1189
|
+
var _document;
|
|
1190
|
+
var _ref$maxCount = _ref.maxCount,
|
|
1191
|
+
maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
|
|
1192
|
+
_ref$maxSize = _ref.maxSize,
|
|
1193
|
+
maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
|
|
1194
|
+
_ref$uploadText = _ref.uploadText,
|
|
1195
|
+
uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
|
|
1196
|
+
_ref$onChange = _ref.onChange,
|
|
1197
|
+
onChange = _ref$onChange === void 0 ? fn$2 : _ref$onChange,
|
|
1198
|
+
_ref$value = _ref.value,
|
|
1199
|
+
value = _ref$value === void 0 ? [] : _ref$value,
|
|
1200
|
+
_ref$accept = _ref.accept,
|
|
1201
|
+
accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
|
|
1202
|
+
_ref$disabled = _ref.disabled,
|
|
1203
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1204
|
+
uniqueKey = _ref.uniqueKey,
|
|
1205
|
+
_ref$hostUrl = _ref.hostUrl,
|
|
1206
|
+
hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
|
|
1207
|
+
_ref$actionUrl = _ref.actionUrl,
|
|
1208
|
+
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
1209
|
+
_ref$platform = _ref.platform,
|
|
1210
|
+
platform = _ref$platform === void 0 ? '' : _ref$platform,
|
|
1211
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
1212
|
+
var inputRef = useRef(null);
|
|
1213
|
+
var valueRef = useRef(value);
|
|
1214
|
+
var _useState = useState(false),
|
|
1215
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1216
|
+
uploading = _useState2[0],
|
|
1217
|
+
setUploading = _useState2[1];
|
|
1218
|
+
var _useState3 = useState(true),
|
|
1219
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1220
|
+
pasteDefaultStates = _useState4[0],
|
|
1221
|
+
setPasteDefaultStates = _useState4[1];
|
|
1222
|
+
var preview = platform === 'ks' ? {
|
|
1223
|
+
getContainer: (_document = document) === null || _document === void 0 ? void 0 : _document.getElementById('root')
|
|
1224
|
+
} : true;
|
|
1225
|
+
useEffect(function () {
|
|
1226
|
+
valueRef.current = value;
|
|
1227
|
+
}, [value]);
|
|
1228
|
+
var asyncUpload = /*#__PURE__*/function () {
|
|
1229
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1230
|
+
var _valueRef$current;
|
|
1231
|
+
var formData, fileName, showName, _yield$request, success, data;
|
|
1232
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1233
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1234
|
+
case 0:
|
|
1235
|
+
setUploading(true);
|
|
1236
|
+
formData = new FormData();
|
|
1237
|
+
formData.append('file', file);
|
|
1238
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1239
|
+
formData.append('fileName', fileName);
|
|
1240
|
+
showName = file.name.substring(0, file.name.lastIndexOf('.'));
|
|
1241
|
+
_context.prev = 6;
|
|
1242
|
+
_context.next = 9;
|
|
1243
|
+
return request(actionUrl, {
|
|
1244
|
+
method: 'post',
|
|
1245
|
+
body: formData
|
|
1246
|
+
});
|
|
1247
|
+
case 9:
|
|
1248
|
+
_yield$request = _context.sent;
|
|
1249
|
+
success = _yield$request.success;
|
|
1250
|
+
data = _yield$request.data;
|
|
1251
|
+
if (!success) {
|
|
1252
|
+
_context.next = 16;
|
|
1253
|
+
break;
|
|
1254
|
+
}
|
|
1255
|
+
if (!(valueRef.current.length >= maxCount)) {
|
|
1256
|
+
_context.next = 15;
|
|
1257
|
+
break;
|
|
1258
|
+
}
|
|
1259
|
+
return _context.abrupt("return");
|
|
1260
|
+
case 15:
|
|
1261
|
+
handleChange([].concat(_toConsumableArray(valueRef.current), [{
|
|
1262
|
+
url: data,
|
|
1263
|
+
name: showName
|
|
1264
|
+
}]));
|
|
1265
|
+
case 16:
|
|
1266
|
+
_context.next = 21;
|
|
1267
|
+
break;
|
|
1268
|
+
case 18:
|
|
1269
|
+
_context.prev = 18;
|
|
1270
|
+
_context.t0 = _context["catch"](6);
|
|
1271
|
+
message.error('图片上传失败');
|
|
1272
|
+
case 21:
|
|
1273
|
+
_context.prev = 21;
|
|
1274
|
+
setUploading(false);
|
|
1275
|
+
return _context.finish(21);
|
|
1276
|
+
case 24:
|
|
1277
|
+
case "end":
|
|
1278
|
+
return _context.stop();
|
|
1279
|
+
}
|
|
1280
|
+
}, _callee, null, [[6, 18, 21, 24]]);
|
|
1281
|
+
}));
|
|
1282
|
+
return function asyncUpload(_x) {
|
|
1283
|
+
return _ref2.apply(this, arguments);
|
|
1284
|
+
};
|
|
1285
|
+
}();
|
|
1286
|
+
var imgReader = function imgReader(item) {
|
|
1287
|
+
var blob = item.getAsFile(),
|
|
1288
|
+
reader = new FileReader();
|
|
1289
|
+
if (blob.size > maxSize * 1024 * 1024) {
|
|
1290
|
+
message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1293
|
+
if (valueRef.current.length >= maxCount) {
|
|
1294
|
+
message.error("\u53EA\u80FD\u4E0A\u4F20".concat(maxCount, "\u5F20\u56FE\u7247"));
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1297
|
+
reader.onload = /*#__PURE__*/function () {
|
|
1298
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
1299
|
+
var _e$target, _valueRef$current2;
|
|
1300
|
+
var result, fileName, file;
|
|
1301
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1302
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1303
|
+
case 0:
|
|
1304
|
+
result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
|
|
1305
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1306
|
+
file = dataURLtoFile(result, fileName);
|
|
1307
|
+
asyncUpload(file);
|
|
1308
|
+
case 4:
|
|
1309
|
+
case "end":
|
|
1310
|
+
return _context2.stop();
|
|
1311
|
+
}
|
|
1312
|
+
}, _callee2);
|
|
1313
|
+
}));
|
|
1314
|
+
return function (_x2) {
|
|
1315
|
+
return _ref3.apply(this, arguments);
|
|
1316
|
+
};
|
|
1317
|
+
}();
|
|
1318
|
+
reader.readAsDataURL(blob);
|
|
1319
|
+
};
|
|
1320
|
+
var handleChange = function handleChange(list) {
|
|
1321
|
+
valueRef.current = list;
|
|
1322
|
+
onChange(list);
|
|
1323
|
+
};
|
|
1324
|
+
var clipboardDataChange = function clipboardDataChange(e) {
|
|
1325
|
+
var clipboardData = e.clipboardData || window.clipboardData;
|
|
1326
|
+
var i = 0,
|
|
1327
|
+
items,
|
|
1328
|
+
item,
|
|
1329
|
+
types;
|
|
1330
|
+
if (clipboardData) {
|
|
1331
|
+
items = clipboardData.items;
|
|
1332
|
+
if (!items) return;
|
|
1333
|
+
item = items[0];
|
|
1334
|
+
types = clipboardData.types || [];
|
|
1335
|
+
for (; i < types.length; i++) {
|
|
1336
|
+
if (types[i] === 'Files') {
|
|
1337
|
+
item = items[i];
|
|
1338
|
+
break;
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
if (item && item.kind === 'file' && item.type.match(/^image\//i)) {
|
|
1342
|
+
imgReader(item);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
// 手动上传模式, 一直返回false
|
|
1347
|
+
var beforeUpload = function beforeUpload(file) {
|
|
1348
|
+
var size = file.size / 1024 / 1024 < maxSize;
|
|
1349
|
+
if (value.length > maxCount) {
|
|
1350
|
+
message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u5F20\u56FE\u7247\uFF01"));
|
|
1351
|
+
return Upload.LIST_IGNORE;
|
|
1352
|
+
}
|
|
1353
|
+
if (!size) {
|
|
1354
|
+
message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1355
|
+
return Upload.LIST_IGNORE;
|
|
1356
|
+
}
|
|
1357
|
+
asyncUpload(file);
|
|
1358
|
+
return Upload.LIST_IGNORE;
|
|
1359
|
+
};
|
|
1360
|
+
var handleDelete = function handleDelete(key) {
|
|
1361
|
+
return function () {
|
|
1362
|
+
if (disabled) return;
|
|
1363
|
+
handleChange(value.filter(function (_, index) {
|
|
1364
|
+
return key !== index;
|
|
1365
|
+
}));
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
var renderImages = function renderImages(images) {
|
|
1369
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, {
|
|
1370
|
+
preview: preview
|
|
1371
|
+
}, images.map(function (image, index) {
|
|
1372
|
+
var finalImage = "".concat(/^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url, "?x-oss-process=image/resize,h_60,w_60");
|
|
1373
|
+
var showImage = /^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url;
|
|
1374
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1375
|
+
className: styles$2.imageProWrap,
|
|
1376
|
+
key: index
|
|
1377
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1378
|
+
className: styles$2.imageProInfo
|
|
1379
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
1380
|
+
src: finalImage,
|
|
1381
|
+
preview: {
|
|
1382
|
+
src: showImage
|
|
1383
|
+
},
|
|
1384
|
+
width: '100%',
|
|
1385
|
+
height: '100%'
|
|
1386
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
1387
|
+
className: styles$2.imageProRight
|
|
1388
|
+
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
1389
|
+
value: image.name,
|
|
1390
|
+
onChange: function onChange(e) {
|
|
1391
|
+
handleChange(value.map(function (item, i) {
|
|
1392
|
+
if (index === i) {
|
|
1393
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
1394
|
+
name: e.target.value
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
return item;
|
|
1398
|
+
}));
|
|
1399
|
+
},
|
|
1400
|
+
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u540D\u79F0",
|
|
1401
|
+
autoSize: {
|
|
1402
|
+
minRows: 2,
|
|
1403
|
+
maxRows: 2
|
|
1404
|
+
},
|
|
1405
|
+
maxLength: 1000
|
|
1406
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
1407
|
+
className: styles$2.imageProOperate
|
|
1408
|
+
}, /*#__PURE__*/React.createElement(CloseOutlined, {
|
|
1409
|
+
className: styles$2.deleteIcon,
|
|
1410
|
+
onClick: handleDelete(index)
|
|
1411
|
+
}))));
|
|
1412
|
+
}));
|
|
1413
|
+
};
|
|
1414
|
+
useEffect(function () {
|
|
1415
|
+
var _inputRef$current2;
|
|
1416
|
+
if (!pasteDefaultStates) {
|
|
1417
|
+
var _inputRef$current;
|
|
1418
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
1419
|
+
}
|
|
1420
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.addEventListener('paste', function (e) {
|
|
1421
|
+
return clipboardDataChange(e);
|
|
1422
|
+
});
|
|
1423
|
+
return function () {
|
|
1424
|
+
var _inputRef$current3;
|
|
1425
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.removeEventListener('paste', function (e) {
|
|
1426
|
+
return clipboardDataChange(e);
|
|
1427
|
+
});
|
|
1428
|
+
};
|
|
1429
|
+
}, [pasteDefaultStates]);
|
|
1430
|
+
useImperativeHandle(ref, function () {
|
|
1431
|
+
return {
|
|
1432
|
+
taskCompleted: !uploading
|
|
1433
|
+
};
|
|
1434
|
+
}, [uploading]);
|
|
1435
|
+
return /*#__PURE__*/React.createElement(Spin, {
|
|
1436
|
+
spinning: uploading
|
|
1437
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
1438
|
+
className: styles$2.tips
|
|
1439
|
+
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u5F20\u56FE\u7247"), /*#__PURE__*/React.createElement("div", {
|
|
1440
|
+
className: styles$2.imageProBox
|
|
1441
|
+
}, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
1442
|
+
className: styles$2.imagePaste
|
|
1443
|
+
}, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
|
|
1444
|
+
className: styles$2.fakeBox,
|
|
1445
|
+
onClick: function onClick() {
|
|
1446
|
+
setPasteDefaultStates(false);
|
|
1447
|
+
}
|
|
1448
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1449
|
+
className: styles$2.addBtn
|
|
1450
|
+
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
1451
|
+
className: styles$2.text
|
|
1452
|
+
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React.createElement("input", {
|
|
1453
|
+
ref: inputRef,
|
|
1454
|
+
className: styles$2.inputImage,
|
|
1455
|
+
type: "text",
|
|
1456
|
+
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
1457
|
+
onBlur: function onBlur() {
|
|
1458
|
+
setPasteDefaultStates(true);
|
|
1459
|
+
},
|
|
1460
|
+
value: ""
|
|
1461
|
+
})), /*#__PURE__*/React.createElement(Upload, _objectSpread2({
|
|
1462
|
+
disabled: disabled,
|
|
1463
|
+
accept: accept,
|
|
1464
|
+
name: "file",
|
|
1465
|
+
listType: "picture-card",
|
|
1466
|
+
maxCount: maxCount,
|
|
1467
|
+
className: styles$2.upload,
|
|
1468
|
+
beforeUpload: beforeUpload
|
|
1469
|
+
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
1470
|
+
className: "addBtn"
|
|
1471
|
+
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText))), renderImages(value)));
|
|
1472
|
+
};
|
|
1473
|
+
var index$1 = /*#__PURE__*/forwardRef(ApaasUploadProAsync);
|
|
1474
|
+
|
|
1475
|
+
var css_248z$3 = ".index-module_imageBox__1rpoB {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageBox__1rpoB .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageBox__1rpoB .index-module_inputImage__MyiR1 {\n width: 80px;\n height: 80px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imageShow__3BNqT {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP {\n width: 100px;\n height: 80px;\n position: relative;\n border-radius: 2px;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP:hover {\n background: transparent;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP:hover .index-module_mask__uy8r2:before {\n opacity: 1;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP .index-module_delete__28zCp {\n position: absolute;\n right: 0px;\n top: 0px;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2:hover .index-module_actions__1-6f4 {\n opacity: 1;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 .index-module_actions__1-6f4 {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 .index-module_actions__1-6f4 .index-module_icon__3yEcS {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C {\n display: inline-block;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C .index-module_fakeBox__3W1d- {\n width: 80px;\n height: 80px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n padding-top: 16px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C .index-module_fakeBox__3W1d- .index-module_addBtn__3a1TQ {\n color: #86909C;\n}\n.index-module_imageBox__1rpoB .ant-upload {\n padding: 0;\n height: 80px;\n width: 80px;\n border: none;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n font-size: 14px;\n}\n.index-module_imageBox__1rpoB .ant-upload .index-module_addBtn__3a1TQ {\n color: #86909C;\n font-size: 14px;\n}\n.index-module_tips__168Vy {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
1476
|
+
var styles$3 = {"imageBox":"index-module_imageBox__1rpoB","inputImage":"index-module_inputImage__MyiR1","imageShow":"index-module_imageShow__3BNqT","imageWrap":"index-module_imageWrap__LyKfP","-webkit-mask":"index-module_mask__uy8r2","mask":"index-module_mask__uy8r2","delete":"index-module_delete__28zCp","actions":"index-module_actions__1-6f4","icon":"index-module_icon__3yEcS","imagePaste":"index-module_imagePaste__Ac77C","fakeBox":"index-module_fakeBox__3W1d-","addBtn":"index-module_addBtn__3a1TQ","tips":"index-module_tips__168Vy"};
|
|
1477
|
+
styleInject(css_248z$3);
|
|
1478
|
+
|
|
1183
1479
|
//! moment.js
|
|
1184
1480
|
//! version : 2.29.4
|
|
1185
1481
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -6856,9 +7152,9 @@ hooks.HTML5_FMT = {
|
|
|
6856
7152
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6857
7153
|
};
|
|
6858
7154
|
|
|
6859
|
-
var _excluded$
|
|
7155
|
+
var _excluded$8 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "hostUrl", "canDownload", "actionUrl", "platform"];
|
|
6860
7156
|
var Dragger = Upload.Dragger;
|
|
6861
|
-
var fn$
|
|
7157
|
+
var fn$3 = function fn() {
|
|
6862
7158
|
return void 0;
|
|
6863
7159
|
};
|
|
6864
7160
|
var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
@@ -6867,7 +7163,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6867
7163
|
_ref$maxSize = _ref.maxSize,
|
|
6868
7164
|
maxSize = _ref$maxSize === void 0 ? 100 : _ref$maxSize,
|
|
6869
7165
|
_ref$onChange = _ref.onChange,
|
|
6870
|
-
onChange = _ref$onChange === void 0 ? fn$
|
|
7166
|
+
onChange = _ref$onChange === void 0 ? fn$3 : _ref$onChange,
|
|
6871
7167
|
_ref$value = _ref.value,
|
|
6872
7168
|
value = _ref$value === void 0 ? [] : _ref$value,
|
|
6873
7169
|
_ref$accept = _ref.accept,
|
|
@@ -6881,7 +7177,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6881
7177
|
_ref$actionUrl = _ref.actionUrl,
|
|
6882
7178
|
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
6883
7179
|
_ref$platform = _ref.platform,
|
|
6884
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
7180
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
6885
7181
|
var inputRef = useRef(null);
|
|
6886
7182
|
var _useState = useState(false),
|
|
6887
7183
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7111,23 +7407,23 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7111
7407
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
7112
7408
|
spinning: uploading
|
|
7113
7409
|
}, /*#__PURE__*/React.createElement("p", {
|
|
7114
|
-
className: styles$
|
|
7410
|
+
className: styles$3.tips
|
|
7115
7411
|
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6"), /*#__PURE__*/React.createElement("div", {
|
|
7116
|
-
className: styles$
|
|
7412
|
+
className: styles$3.imageBox
|
|
7117
7413
|
}, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
7118
|
-
className: styles$
|
|
7414
|
+
className: styles$3.imagePaste
|
|
7119
7415
|
}, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
|
|
7120
|
-
className: styles$
|
|
7416
|
+
className: styles$3.fakeBox,
|
|
7121
7417
|
onClick: function onClick() {
|
|
7122
7418
|
setPasteDefaultStates(false);
|
|
7123
7419
|
}
|
|
7124
7420
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7125
|
-
className: styles$
|
|
7421
|
+
className: styles$3.addBtn
|
|
7126
7422
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
7127
|
-
className: styles$
|
|
7423
|
+
className: styles$3.text
|
|
7128
7424
|
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React.createElement("input", {
|
|
7129
7425
|
ref: inputRef,
|
|
7130
|
-
className: styles$
|
|
7426
|
+
className: styles$3.inputImage,
|
|
7131
7427
|
type: "text",
|
|
7132
7428
|
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
7133
7429
|
onBlur: function onBlur() {
|
|
@@ -7145,9 +7441,9 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7145
7441
|
fileList: fileList,
|
|
7146
7442
|
onRemove: onRemove
|
|
7147
7443
|
}, resetProps), /*#__PURE__*/React.createElement("span", {
|
|
7148
|
-
className: styles$
|
|
7444
|
+
className: styles$3.addBtn
|
|
7149
7445
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
7150
|
-
className: styles$
|
|
7446
|
+
className: styles$3.addBtn
|
|
7151
7447
|
}, "\u9009\u62E9\u6587\u4EF6")), /*#__PURE__*/React.createElement(Modal, {
|
|
7152
7448
|
visible: visible,
|
|
7153
7449
|
title: fileName,
|
|
@@ -7182,7 +7478,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7182
7478
|
}))));
|
|
7183
7479
|
};
|
|
7184
7480
|
|
|
7185
|
-
var _excluded$
|
|
7481
|
+
var _excluded$9 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"];
|
|
7186
7482
|
function ApaasCheckbox(props) {
|
|
7187
7483
|
var showOther = props.showOther,
|
|
7188
7484
|
_props$horizontal = props.horizontal,
|
|
@@ -7193,7 +7489,7 @@ function ApaasCheckbox(props) {
|
|
|
7193
7489
|
value = _props$value === void 0 ? {} : _props$value,
|
|
7194
7490
|
onChange = props.onChange,
|
|
7195
7491
|
disabled = props.disabled,
|
|
7196
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7492
|
+
otherProps = _objectWithoutProperties(props, _excluded$9);
|
|
7197
7493
|
var checkboxValue = value.value,
|
|
7198
7494
|
other = value.other;
|
|
7199
7495
|
var triggerChange = function triggerChange(changedValue) {
|
|
@@ -7279,11 +7575,11 @@ function ApaasSlider(props) {
|
|
|
7279
7575
|
})));
|
|
7280
7576
|
}
|
|
7281
7577
|
|
|
7282
|
-
var css_248z$
|
|
7283
|
-
var styles$
|
|
7284
|
-
styleInject(css_248z$
|
|
7578
|
+
var css_248z$4 = ".index-module_rateLabel__3k-Xa {\n margin-right: 8px;\n}\n.index-module_rateText__A1GRy {\n margin-left: 8px;\n}\n";
|
|
7579
|
+
var styles$4 = {"rateLabel":"index-module_rateLabel__3k-Xa","rateText":"index-module_rateText__A1GRy"};
|
|
7580
|
+
styleInject(css_248z$4);
|
|
7285
7581
|
|
|
7286
|
-
var _excluded$
|
|
7582
|
+
var _excluded$a = ["value", "onChange", "options", "textStyle"];
|
|
7287
7583
|
//状态文字映射
|
|
7288
7584
|
var RATE_MAP = {
|
|
7289
7585
|
0: '',
|
|
@@ -7305,7 +7601,7 @@ function ApaasRate(props) {
|
|
|
7305
7601
|
_props$options = props.options,
|
|
7306
7602
|
options = _props$options === void 0 ? [] : _props$options,
|
|
7307
7603
|
textStyle = props.textStyle,
|
|
7308
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7604
|
+
other = _objectWithoutProperties(props, _excluded$a);
|
|
7309
7605
|
var rateValues = useMemo(function () {
|
|
7310
7606
|
return (value || []).reduce(function (prv, next) {
|
|
7311
7607
|
prv[next.id || ''] = next.value;
|
|
@@ -7341,14 +7637,14 @@ function ApaasRate(props) {
|
|
|
7341
7637
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
7342
7638
|
span: 24
|
|
7343
7639
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7344
|
-
className: styles$
|
|
7640
|
+
className: styles$4.rateLabel
|
|
7345
7641
|
}, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React.createElement(Rate, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7346
7642
|
value: rateValues[item.id] || 0,
|
|
7347
7643
|
onChange: function onChange(val) {
|
|
7348
7644
|
return changeHandle(val, item.id);
|
|
7349
7645
|
}
|
|
7350
7646
|
})), /*#__PURE__*/React.createElement("span", {
|
|
7351
|
-
className: styles$
|
|
7647
|
+
className: styles$4.rateText,
|
|
7352
7648
|
style: textStyle
|
|
7353
7649
|
}, RATE_MAP[rateValues[item.id]])));
|
|
7354
7650
|
}));
|
|
@@ -7373,7 +7669,7 @@ var Province = function Province(props) {
|
|
|
7373
7669
|
})));
|
|
7374
7670
|
};
|
|
7375
7671
|
|
|
7376
|
-
var TextArea = Input.TextArea;
|
|
7672
|
+
var TextArea$1 = Input.TextArea;
|
|
7377
7673
|
var ParseLogistics = function ParseLogistics(props) {
|
|
7378
7674
|
var onChange = props.onChange,
|
|
7379
7675
|
_props$selfCalibratio = props.selfCalibration,
|
|
@@ -7422,7 +7718,7 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7422
7718
|
handleIdentify(val);
|
|
7423
7719
|
}
|
|
7424
7720
|
};
|
|
7425
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea, {
|
|
7721
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea$1, {
|
|
7426
7722
|
placeholder: "\u590D\u5236\u4FE1\u606F\uFF0C\u70B9\u51FB\u667A\u80FD\u8BC6\u522B",
|
|
7427
7723
|
rows: 3,
|
|
7428
7724
|
value: value,
|
|
@@ -7549,14 +7845,14 @@ function ApaasPosting(props) {
|
|
|
7549
7845
|
});
|
|
7550
7846
|
}
|
|
7551
7847
|
|
|
7552
|
-
var _excluded$
|
|
7848
|
+
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
7553
7849
|
function ApaasLogistics(props) {
|
|
7554
7850
|
var value = props.value,
|
|
7555
7851
|
onChange = props.onChange,
|
|
7556
7852
|
platformType = props.platformType,
|
|
7557
7853
|
_props$type = props.type,
|
|
7558
7854
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
7559
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7855
|
+
other = _objectWithoutProperties(props, _excluded$b);
|
|
7560
7856
|
var _useState = useState([]),
|
|
7561
7857
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7562
7858
|
option = _useState2[0],
|
|
@@ -7601,7 +7897,7 @@ function ApaasLogistics(props) {
|
|
|
7601
7897
|
}));
|
|
7602
7898
|
}
|
|
7603
7899
|
|
|
7604
|
-
var _excluded$
|
|
7900
|
+
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
7605
7901
|
function withFormItem(WrappedComponent) {
|
|
7606
7902
|
return function (props) {
|
|
7607
7903
|
var label = props.label,
|
|
@@ -7610,7 +7906,7 @@ function withFormItem(WrappedComponent) {
|
|
|
7610
7906
|
required = props.required,
|
|
7611
7907
|
rules = props.rules,
|
|
7612
7908
|
initialValue = props.initialValue,
|
|
7613
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7909
|
+
otherProps = _objectWithoutProperties(props, _excluded$c);
|
|
7614
7910
|
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({}, {
|
|
7615
7911
|
label: label,
|
|
7616
7912
|
name: name,
|
|
@@ -7960,6 +8256,9 @@ var SubForm = function SubForm(props) {
|
|
|
7960
8256
|
value: selectKey,
|
|
7961
8257
|
onChange: setSelectKey
|
|
7962
8258
|
}), /*#__PURE__*/React.createElement(Popover, {
|
|
8259
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
8260
|
+
return triggerNode.parentElement;
|
|
8261
|
+
},
|
|
7963
8262
|
content: /*#__PURE__*/React.createElement("div", {
|
|
7964
8263
|
ref: ref,
|
|
7965
8264
|
onScrollCapture: onScrollCapture,
|
|
@@ -8016,6 +8315,33 @@ var SubForm = function SubForm(props) {
|
|
|
8016
8315
|
}));
|
|
8017
8316
|
};
|
|
8018
8317
|
|
|
8318
|
+
function CopyTextIcon(_ref) {
|
|
8319
|
+
var val = _ref.val;
|
|
8320
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8321
|
+
style: {
|
|
8322
|
+
display: 'flex',
|
|
8323
|
+
alignItems: 'center',
|
|
8324
|
+
justifyContent: 'center'
|
|
8325
|
+
}
|
|
8326
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8327
|
+
style: {
|
|
8328
|
+
marginRight: 8,
|
|
8329
|
+
overflow: 'hidden',
|
|
8330
|
+
textOverflow: 'ellipsis',
|
|
8331
|
+
whiteSpace: 'nowrap'
|
|
8332
|
+
}
|
|
8333
|
+
}, val), /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
8334
|
+
text: val,
|
|
8335
|
+
onCopy: function onCopy() {
|
|
8336
|
+
message.success('复制成功');
|
|
8337
|
+
}
|
|
8338
|
+
}, /*#__PURE__*/React.createElement(CopyOutlined, {
|
|
8339
|
+
style: {
|
|
8340
|
+
color: '#1890ff'
|
|
8341
|
+
}
|
|
8342
|
+
})));
|
|
8343
|
+
}
|
|
8344
|
+
|
|
8019
8345
|
var BuyerNick = function BuyerNick(props) {
|
|
8020
8346
|
var _props$value = props.value,
|
|
8021
8347
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -8158,7 +8484,7 @@ var trade4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVzn
|
|
|
8158
8484
|
|
|
8159
8485
|
var trade5 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0MUVBOUVCQjIzQUIxMUU0QUZCMkFCQ0QzMzVDM0ZDMCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0MUVBOUVCQzIzQUIxMUU0QUZCMkFCQ0QzMzVDM0ZDMCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjQxRUE5RUI5MjNBQjExRTRBRkIyQUJDRDMzNUMzRkMwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQxRUE5RUJBMjNBQjExRTRBRkIyQUJDRDMzNUMzRkMwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+xU6hIgAAAPdJREFUeNqM0M9KAlEUx/E7MoF/WoiIoCslCyIXIgS5alMgvoJvIPgCbXwWobYuJVqVgeCmVSAyxGgE1dJVicH1e/AMDSLqgQ935nJ+d+4Z57bofxljOjhEEwuM0VU+csg0vHzf5SGCGkZmVQcoqRt8SDMGuJbmHk7gwWooWOXAPOIo3x1PUhJ4RFRP/jb/ZUOk0jiXwLNuFkLXWq8gdCmBKV5R0WGlnA2k6hEm/9NrHWGGoQ7b1vneQ1/6cfXhAS38ymc5ZB50MGiS5RQxvDjWWtnM8vImv47mK7OlZAZD06ekcUE4vTOgdY8EqvsGnnQ92xZYCjAAxxw+q99X1uIAAAAASUVORK5CYII=";
|
|
8160
8486
|
|
|
8161
|
-
var TextArea$
|
|
8487
|
+
var TextArea$2 = Input.TextArea;
|
|
8162
8488
|
var imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
|
|
8163
8489
|
var RemarkInput = function RemarkInput(props) {
|
|
8164
8490
|
var isShowFlag = props.isShowFlag,
|
|
@@ -8177,7 +8503,7 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8177
8503
|
});
|
|
8178
8504
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
8179
8505
|
};
|
|
8180
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$
|
|
8506
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$2, {
|
|
8181
8507
|
disabled: disabled,
|
|
8182
8508
|
rows: 4,
|
|
8183
8509
|
value: value === null || value === void 0 ? void 0 : value.remark,
|
|
@@ -8201,8 +8527,8 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8201
8527
|
})));
|
|
8202
8528
|
};
|
|
8203
8529
|
|
|
8204
|
-
var css_248z$
|
|
8205
|
-
styleInject(css_248z$
|
|
8530
|
+
var css_248z$5 = ".mb8 {\n margin-bottom: 8px;\n}\n";
|
|
8531
|
+
styleInject(css_248z$5);
|
|
8206
8532
|
|
|
8207
8533
|
var Logistics = function Logistics(props) {
|
|
8208
8534
|
var options = props.options,
|
|
@@ -8256,7 +8582,7 @@ var Logistics = function Logistics(props) {
|
|
|
8256
8582
|
return /*#__PURE__*/React.createElement(Input, {
|
|
8257
8583
|
disabled: disabled,
|
|
8258
8584
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
8259
|
-
className: css_248z$
|
|
8585
|
+
className: css_248z$5.logisticsInput,
|
|
8260
8586
|
onChange: handleInputChange,
|
|
8261
8587
|
value: value === null || value === void 0 ? void 0 : value.order,
|
|
8262
8588
|
onBlur: function onBlur(e) {
|
|
@@ -8265,7 +8591,7 @@ var Logistics = function Logistics(props) {
|
|
|
8265
8591
|
});
|
|
8266
8592
|
};
|
|
8267
8593
|
return /*#__PURE__*/React.createElement("div", {
|
|
8268
|
-
className: css_248z$
|
|
8594
|
+
className: css_248z$5.logistics
|
|
8269
8595
|
}, isSingle ? showField === 'EXPRESS_COMPANY' ? LogisticsCompany() : null : LogisticsCompany(), isSingle ? showField === 'EXPRESS_WAYBILL_CODE' ? LogisticsCode() : null : LogisticsCode());
|
|
8270
8596
|
};
|
|
8271
8597
|
|
|
@@ -8302,8 +8628,8 @@ var AliPay = function AliPay(props) {
|
|
|
8302
8628
|
})));
|
|
8303
8629
|
};
|
|
8304
8630
|
|
|
8305
|
-
var css_248z$
|
|
8306
|
-
styleInject(css_248z$
|
|
8631
|
+
var css_248z$6 = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.goodsBox .right-context {\n font-size: 12px;\n}\n.goodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.goodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.goodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n.goods-imgBox .add-btn {\n color: #86909c;\n}\n.goods-imgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
|
|
8632
|
+
styleInject(css_248z$6);
|
|
8307
8633
|
|
|
8308
8634
|
var defaultImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAOKADAAQAAAABAAAAOAAAAAANV2hTAAACcklEQVRoBe1aa3OqMBBdlFatfVivnV7H29f//0md6XSc1hegKCCigE2c0YKtri7Rm3ayX0zCbjhnzyZEVBs53hx+seV+MbcFNUXwpyusFFQKSp4BVaKSC4TCUwqiKZLcQSkouUAoPKUgmiLJHZSCkguEwtNRjw0O8/kcTMuGWRhu8BAzfKLrUPtTAU3TSBOSCXqeD2bfJt1036BSqQjn5dK+YQt/8hoMo4h0Q0pQmKFKyAomgdZva1C5ukgOZW7bQwfaXTPzPEIIZkXBXnyBN/aBr7fq9SXkcuTC+gLlvxPkG5VhDVbAHHcMj/f1VT9rQ1yqiEj69jAVOQkC8CdBaixL5ygEB/YIhiM3C05y7EFLNGI7battgMvWF7d8Pv9lu69WrlIlWiwUoFQswHQ6I5NKBh6MIC+z93YPZrPPg0Cr04Onh8ZiM1mC4A/x09OT1CZDfagv50x+HoTgwHag2zNh/TeBKIoZaQMe/v1NnUzO2IP88qKcxCWsLXQNxnEMrY4BnW/ILRH7/mRVkvy4x/2fX5osxgLeF23CFAzYmnlv9SCYTlGMVn8IMVOTx4wZYW58IwrDCBr1m5S66GSIgxCCLjuXdg0L4nh3BQbspLJujutB8y2Cu8bt+iVyX0iJcmD7kNuGliv62mwD34FFmBAFRQBJzsHL3DDxUk/GbGoLUXDT5FnGdy/27XeRluB22LtfVQR3z5WcnmQFdXauPJbp7Hsi1ciRZfaOpFatHOWlU/msSOUHmvobCTl3cgSS16Ac8HEUiiCeI7k9lIJy64OjUwriOZLbQykotz44OqUgniO5PZSCcuuDo1MK4jmS2+MD4RXMNiaoge4AAAAASUVORK5CYII=";
|
|
8309
8635
|
|
|
@@ -9357,8 +9683,8 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
9357
9683
|
}));
|
|
9358
9684
|
};
|
|
9359
9685
|
|
|
9360
|
-
var css_248z$
|
|
9361
|
-
styleInject(css_248z$
|
|
9686
|
+
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
9687
|
+
styleInject(css_248z$7);
|
|
9362
9688
|
|
|
9363
9689
|
var GoodItem = function GoodItem(props) {
|
|
9364
9690
|
var _props$isSingleRow = props.isSingleRow,
|
|
@@ -9796,8 +10122,8 @@ var Supplier = function Supplier(props) {
|
|
|
9796
10122
|
}));
|
|
9797
10123
|
};
|
|
9798
10124
|
|
|
9799
|
-
var css_248z$
|
|
9800
|
-
styleInject(css_248z$
|
|
10125
|
+
var css_248z$8 = ".cardBox {\n position: absolute;\n z-index: 1;\n border: 1px solid #e6e6e6;\n background-color: #fff;\n color: #303133;\n border-radius: 4px;\n overflow: auto;\n height: 200px;\n cursor: pointer;\n}\n.cardBox .cardli {\n padding: 7px 13px;\n width: 332px;\n}\n.cardBox .cardli:hover {\n background-color: #f5f7fa;\n}\n.cardBox .cardText {\n font-size: 14px;\n color: #333;\n margin: 0;\n padding: 0;\n line-height: 26px;\n}\n.cardBox .c-f60 {\n color: #f60;\n}\n.btn-discern {\n margin-left: 10px;\n height: 24px;\n font-size: 12px;\n color: #1B5BF3;\n border-color: #1B5BF3;\n padding: 0;\n}\n";
|
|
10126
|
+
styleInject(css_248z$8);
|
|
9801
10127
|
|
|
9802
10128
|
var Invoice = function Invoice(props) {
|
|
9803
10129
|
var _props$value = props.value,
|
|
@@ -10228,8 +10554,8 @@ var Payment = function Payment(props) {
|
|
|
10228
10554
|
}));
|
|
10229
10555
|
};
|
|
10230
10556
|
|
|
10231
|
-
var css_248z$
|
|
10232
|
-
styleInject(css_248z$
|
|
10557
|
+
var css_248z$9 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
|
|
10558
|
+
styleInject(css_248z$9);
|
|
10233
10559
|
|
|
10234
10560
|
var Item = Form.Item;
|
|
10235
10561
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
@@ -10341,8 +10667,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10341
10667
|
var showKcode = useMemo(function () {
|
|
10342
10668
|
var isShow = false;
|
|
10343
10669
|
if (value === null || value === void 0 ? void 0 : value.interceptCompany) {
|
|
10344
|
-
var _value$interceptCompa
|
|
10345
|
-
isShow = (value === null || value === void 0 ? void 0 : (_value$interceptCompa = value.interceptCompany) === null || _value$interceptCompa === void 0 ? void 0 : _value$interceptCompa.indexOf('
|
|
10670
|
+
var _value$interceptCompa;
|
|
10671
|
+
isShow = (value === null || value === void 0 ? void 0 : (_value$interceptCompa = value.interceptCompany) === null || _value$interceptCompa === void 0 ? void 0 : _value$interceptCompa.indexOf('YTO')) > -1;
|
|
10346
10672
|
}
|
|
10347
10673
|
return isShow;
|
|
10348
10674
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
@@ -10481,7 +10807,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10481
10807
|
}
|
|
10482
10808
|
};
|
|
10483
10809
|
return /*#__PURE__*/React.createElement("div", {
|
|
10484
|
-
className: css_248z$
|
|
10810
|
+
className: css_248z$9.interceptBox
|
|
10485
10811
|
}, /*#__PURE__*/React.createElement(Item, {
|
|
10486
10812
|
label: '物流信息',
|
|
10487
10813
|
required: required,
|
|
@@ -10538,11 +10864,14 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10538
10864
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
10539
10865
|
key: 'interceptLogisticsUserSecretKey',
|
|
10540
10866
|
hidden: !showKcode,
|
|
10541
|
-
|
|
10867
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
10868
|
+
style: {
|
|
10869
|
+
opacity: 0
|
|
10870
|
+
}
|
|
10871
|
+
}, "\u517C\u5BB9\u98DE\u9E3D\u6837\u5F0F")
|
|
10542
10872
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
10543
10873
|
style: {
|
|
10544
|
-
width: platform === 'pc' ? 200 :
|
|
10545
|
-
marginTop: '6px'
|
|
10874
|
+
width: platform === 'pc' ? 200 : 130
|
|
10546
10875
|
},
|
|
10547
10876
|
placeholder: "\u5BA2\u6237\u5BC6\u94A5",
|
|
10548
10877
|
disabled: true,
|
|
@@ -11294,8 +11623,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11294
11623
|
})) : null) : null);
|
|
11295
11624
|
};
|
|
11296
11625
|
|
|
11297
|
-
var css_248z$
|
|
11298
|
-
styleInject(css_248z$
|
|
11626
|
+
var css_248z$a = ".jstGoodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.jstGoodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.jstGoodsBox .right-context {\n font-size: 12px;\n}\n.jstGoodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.jstGoodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.jstGoodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.jstimgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n display: flex;\n justify-items: center;\n align-items: center;\n}\n.jstimgBox .add-btn {\n color: #86909c;\n}\n.jstimgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
|
|
11627
|
+
styleInject(css_248z$a);
|
|
11299
11628
|
|
|
11300
11629
|
var ItemList = function ItemList(props) {
|
|
11301
11630
|
var _props$value = props.value,
|
|
@@ -11368,7 +11697,7 @@ var ItemList = function ItemList(props) {
|
|
|
11368
11697
|
}, "\u6682\u4E0D\u652F\u6301\u6DFB\u52A0")) : null);
|
|
11369
11698
|
};
|
|
11370
11699
|
|
|
11371
|
-
var _excluded$
|
|
11700
|
+
var _excluded$d = ["shopId"];
|
|
11372
11701
|
var columns = [{
|
|
11373
11702
|
dataIndex: 'index',
|
|
11374
11703
|
title: 'NO',
|
|
@@ -11593,7 +11922,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11593
11922
|
};
|
|
11594
11923
|
var onFinish = function onFinish(val) {
|
|
11595
11924
|
var shopId = val.shopId,
|
|
11596
|
-
other = _objectWithoutProperties(val, _excluded$
|
|
11925
|
+
other = _objectWithoutProperties(val, _excluded$d);
|
|
11597
11926
|
var value = other;
|
|
11598
11927
|
var newFilterList = [];
|
|
11599
11928
|
var hasValue = Object.values(value).some(function (t) {
|
|
@@ -11849,53 +12178,145 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11849
12178
|
};
|
|
11850
12179
|
var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
|
|
11851
12180
|
|
|
11852
|
-
var
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
|
|
11883
|
-
list: newProducts
|
|
11884
|
-
};
|
|
11885
|
-
});
|
|
11886
|
-
};
|
|
11887
|
-
var columns$1 = [{
|
|
11888
|
-
dataIndex: 'index',
|
|
11889
|
-
title: 'NO',
|
|
11890
|
-
render: function render(val, record, index) {
|
|
11891
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
12181
|
+
var gyColumns = [{
|
|
12182
|
+
dataIndex: 'specName',
|
|
12183
|
+
title: 'SKU名称',
|
|
12184
|
+
width: 250,
|
|
12185
|
+
ellipsis: true
|
|
12186
|
+
}, {
|
|
12187
|
+
dataIndex: 'specNo',
|
|
12188
|
+
title: 'SKU编码',
|
|
12189
|
+
width: 200,
|
|
12190
|
+
ellipsis: true
|
|
12191
|
+
}, {
|
|
12192
|
+
dataIndex: 'goodName',
|
|
12193
|
+
title: '商品名称',
|
|
12194
|
+
width: 250,
|
|
12195
|
+
ellipsis: true
|
|
12196
|
+
}, {
|
|
12197
|
+
dataIndex: 'goodShortName',
|
|
12198
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12199
|
+
ellipsis: true,
|
|
12200
|
+
width: 250
|
|
12201
|
+
}, {
|
|
12202
|
+
dataIndex: 'goodNo',
|
|
12203
|
+
title: '商品编码',
|
|
12204
|
+
width: 200,
|
|
12205
|
+
ellipsis: true
|
|
12206
|
+
}, {
|
|
12207
|
+
dataIndex: 'goodPicUrl',
|
|
12208
|
+
title: '商品图片',
|
|
12209
|
+
width: 100,
|
|
12210
|
+
render: function render(picUrl) {
|
|
12211
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
11892
12212
|
style: {
|
|
11893
|
-
width:
|
|
11894
|
-
|
|
11895
|
-
|
|
11896
|
-
|
|
12213
|
+
width: '40px',
|
|
12214
|
+
height: '40px',
|
|
12215
|
+
objectFit: 'contain'
|
|
12216
|
+
},
|
|
12217
|
+
src: picUrl
|
|
12218
|
+
});
|
|
12219
|
+
}
|
|
12220
|
+
}, {
|
|
12221
|
+
dataIndex: 'brandName',
|
|
12222
|
+
title: '品牌名称',
|
|
12223
|
+
width: 200,
|
|
12224
|
+
ellipsis: true
|
|
12225
|
+
}, {
|
|
12226
|
+
dataIndex: 'retailPrice',
|
|
12227
|
+
title: "\u6807\u51C6\u552E\u4EF7",
|
|
12228
|
+
ellipsis: true,
|
|
12229
|
+
width: 100
|
|
12230
|
+
}, {
|
|
12231
|
+
dataIndex: 'costPrice',
|
|
12232
|
+
title: "\u6210\u672C\u4EF7",
|
|
12233
|
+
ellipsis: true,
|
|
11897
12234
|
width: 100
|
|
12235
|
+
}];
|
|
12236
|
+
|
|
12237
|
+
var jstColumns = [{
|
|
12238
|
+
dataIndex: 'goodName',
|
|
12239
|
+
title: '商品名称',
|
|
12240
|
+
width: 250,
|
|
12241
|
+
ellipsis: true
|
|
12242
|
+
}, {
|
|
12243
|
+
dataIndex: 'goodNo',
|
|
12244
|
+
title: '商品编码',
|
|
12245
|
+
width: 200,
|
|
12246
|
+
ellipsis: true
|
|
12247
|
+
}, {
|
|
12248
|
+
dataIndex: 'styleCode',
|
|
12249
|
+
title: '款式编码',
|
|
12250
|
+
width: 200,
|
|
12251
|
+
ellipsis: true
|
|
12252
|
+
}, {
|
|
12253
|
+
dataIndex: 'propertiesValue',
|
|
12254
|
+
title: '规格值',
|
|
12255
|
+
width: 200,
|
|
12256
|
+
ellipsis: true
|
|
12257
|
+
}, {
|
|
12258
|
+
dataIndex: 'goodPicUrl',
|
|
12259
|
+
title: '商品图片',
|
|
12260
|
+
width: 100,
|
|
12261
|
+
render: function render(picUrl) {
|
|
12262
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
12263
|
+
style: {
|
|
12264
|
+
width: '40px',
|
|
12265
|
+
height: '40px',
|
|
12266
|
+
objectFit: 'contain'
|
|
12267
|
+
},
|
|
12268
|
+
src: picUrl
|
|
12269
|
+
});
|
|
12270
|
+
}
|
|
12271
|
+
}, {
|
|
12272
|
+
dataIndex: 'goodShortName',
|
|
12273
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12274
|
+
ellipsis: true,
|
|
12275
|
+
width: 250
|
|
12276
|
+
}, {
|
|
12277
|
+
dataIndex: 'brandName',
|
|
12278
|
+
title: '品牌名称',
|
|
12279
|
+
width: 200,
|
|
12280
|
+
ellipsis: true
|
|
12281
|
+
}, {
|
|
12282
|
+
dataIndex: 'retailPrice',
|
|
12283
|
+
title: "\u9500\u552E\u4EF7\u683C",
|
|
12284
|
+
ellipsis: true,
|
|
12285
|
+
width: 100,
|
|
12286
|
+
render: function render(price) {
|
|
12287
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12288
|
+
}
|
|
11898
12289
|
}, {
|
|
12290
|
+
dataIndex: 'marketPrice',
|
|
12291
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12292
|
+
ellipsis: true,
|
|
12293
|
+
width: 100,
|
|
12294
|
+
render: function render(price) {
|
|
12295
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12296
|
+
}
|
|
12297
|
+
}, {
|
|
12298
|
+
dataIndex: 'costPrice',
|
|
12299
|
+
title: "\u6210\u672C\u4EF7",
|
|
12300
|
+
ellipsis: true,
|
|
12301
|
+
width: 100,
|
|
12302
|
+
render: function render(price) {
|
|
12303
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12304
|
+
}
|
|
12305
|
+
}, {
|
|
12306
|
+
dataIndex: 'skuType',
|
|
12307
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
12308
|
+
ellipsis: true,
|
|
12309
|
+
width: 100,
|
|
12310
|
+
render: function render() {
|
|
12311
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
|
|
12312
|
+
return {
|
|
12313
|
+
combine: '组合装商品',
|
|
12314
|
+
normal: '普通商品'
|
|
12315
|
+
}[type] || type;
|
|
12316
|
+
}
|
|
12317
|
+
}];
|
|
12318
|
+
|
|
12319
|
+
var wdtColumns = [{
|
|
11899
12320
|
dataIndex: 'specName',
|
|
11900
12321
|
title: 'SKU名称',
|
|
11901
12322
|
width: 250,
|
|
@@ -11966,43 +12387,365 @@ var columns$1 = [{
|
|
|
11966
12387
|
return Number(price).toFixed(2);
|
|
11967
12388
|
}
|
|
11968
12389
|
}];
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
|
|
11976
|
-
|
|
11977
|
-
|
|
11978
|
-
|
|
11979
|
-
|
|
11980
|
-
|
|
11981
|
-
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11988
|
-
|
|
11989
|
-
|
|
11990
|
-
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12390
|
+
|
|
12391
|
+
var bse3Columns = [{
|
|
12392
|
+
dataIndex: 'specNo',
|
|
12393
|
+
title: "SKU",
|
|
12394
|
+
ellipsis: true,
|
|
12395
|
+
width: 200
|
|
12396
|
+
}, {
|
|
12397
|
+
dataIndex: 'specId',
|
|
12398
|
+
title: "SKU ID",
|
|
12399
|
+
ellipsis: true,
|
|
12400
|
+
width: 80
|
|
12401
|
+
}, {
|
|
12402
|
+
dataIndex: 'goodName',
|
|
12403
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12404
|
+
ellipsis: true,
|
|
12405
|
+
width: 250
|
|
12406
|
+
}, {
|
|
12407
|
+
dataIndex: 'goodShortName',
|
|
12408
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12409
|
+
ellipsis: true,
|
|
12410
|
+
width: 250
|
|
12411
|
+
},
|
|
12412
|
+
// {
|
|
12413
|
+
// dataIndex: 'goodPicUrl',
|
|
12414
|
+
// title: `商品图片`,
|
|
12415
|
+
// ellipsis: true,
|
|
12416
|
+
// width: 100,
|
|
12417
|
+
// render: (picUrl: string) => {
|
|
12418
|
+
// return (
|
|
12419
|
+
// <img
|
|
12420
|
+
// style={{
|
|
12421
|
+
// width: '40px',
|
|
12422
|
+
// height: '40px',
|
|
12423
|
+
// objectFit: 'contain',
|
|
12424
|
+
// }}
|
|
12425
|
+
// src={picUrl}
|
|
12426
|
+
// ></img>
|
|
12427
|
+
// );
|
|
12428
|
+
// },
|
|
12429
|
+
// },
|
|
12430
|
+
{
|
|
12431
|
+
dataIndex: 'goodNo',
|
|
12432
|
+
title: "\u8D27\u53F7",
|
|
12433
|
+
ellipsis: true,
|
|
12434
|
+
width: 150
|
|
12435
|
+
}, {
|
|
12436
|
+
dataIndex: 'goodId',
|
|
12437
|
+
title: "\u8D27\u53F7ID",
|
|
12438
|
+
ellipsis: true,
|
|
12439
|
+
width: 100
|
|
12440
|
+
}, {
|
|
12441
|
+
dataIndex: 'colorName',
|
|
12442
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12443
|
+
ellipsis: true,
|
|
12444
|
+
width: 100
|
|
12445
|
+
}, {
|
|
12446
|
+
dataIndex: 'colorCode',
|
|
12447
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12448
|
+
ellipsis: true,
|
|
12449
|
+
width: 100
|
|
12450
|
+
}, {
|
|
12451
|
+
dataIndex: 'sizeName',
|
|
12452
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12453
|
+
ellipsis: true,
|
|
12454
|
+
width: 100
|
|
12455
|
+
}, {
|
|
12456
|
+
dataIndex: 'sizeCode',
|
|
12457
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12458
|
+
ellipsis: true,
|
|
12459
|
+
width: 100
|
|
12460
|
+
}, {
|
|
12461
|
+
dataIndex: 'brandName',
|
|
12462
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12463
|
+
ellipsis: true,
|
|
12464
|
+
width: 100
|
|
12465
|
+
}, {
|
|
12466
|
+
dataIndex: 'marketPrice',
|
|
12467
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12468
|
+
ellipsis: true,
|
|
12469
|
+
width: 100
|
|
12470
|
+
}, {
|
|
12471
|
+
dataIndex: 'retailPrice',
|
|
12472
|
+
title: "\u552E\u4EF7",
|
|
12473
|
+
ellipsis: true,
|
|
12474
|
+
width: 100
|
|
12475
|
+
}];
|
|
12476
|
+
|
|
12477
|
+
var getColumnsMap = function getColumnsMap() {
|
|
12478
|
+
return cloneDeep({
|
|
12479
|
+
gy: gyColumns,
|
|
12480
|
+
jst: jstColumns,
|
|
12481
|
+
wdt: wdtColumns,
|
|
12482
|
+
bse3: bse3Columns
|
|
12483
|
+
});
|
|
12484
|
+
};
|
|
12485
|
+
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
12486
|
+
var clone_columnsMap = cloneDeep(getColumnsMap());
|
|
12487
|
+
var newColumns = {};
|
|
12488
|
+
Object.keys(clone_columnsMap).forEach(function (key) {
|
|
12489
|
+
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
12490
|
+
return {
|
|
12491
|
+
title: col.title,
|
|
12492
|
+
dataIndex: col.dataIndex
|
|
12493
|
+
};
|
|
12494
|
+
});
|
|
12495
|
+
});
|
|
12496
|
+
return newColumns;
|
|
12497
|
+
};
|
|
12498
|
+
var index$2 = getColumnsBaseInfo();
|
|
12499
|
+
|
|
12500
|
+
var initNo = {
|
|
12501
|
+
dataIndex: 'index',
|
|
12502
|
+
title: 'NO',
|
|
12503
|
+
render: function render(val, record, index) {
|
|
12504
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12505
|
+
style: {
|
|
12506
|
+
width: 25
|
|
12507
|
+
}
|
|
12508
|
+
}, index + 1);
|
|
12509
|
+
},
|
|
12510
|
+
width: 80
|
|
12511
|
+
};
|
|
12512
|
+
var asyncGetData = function asyncGetData(type) {
|
|
12513
|
+
return extendRequest('/qy/condition/list', {
|
|
12514
|
+
method: 'get',
|
|
12515
|
+
params: {
|
|
12516
|
+
typeKey: "erp_select_modal_".concat(type),
|
|
12517
|
+
configScope: 'company' //按企业查询
|
|
12518
|
+
}
|
|
12519
|
+
}).then(function (res) {
|
|
12520
|
+
if (res && res.data && res.data[0] && res.data[0].queryInfo && res.data[0].queryInfo.length > 0) {
|
|
12521
|
+
return JSON.parse(res.data[0].queryInfo);
|
|
12522
|
+
} else {
|
|
12523
|
+
return getColumnsMap()[type];
|
|
12524
|
+
}
|
|
12525
|
+
});
|
|
12526
|
+
};
|
|
12527
|
+
var useGetColumns = (function (type) {
|
|
12528
|
+
var _useState = useState([]),
|
|
12529
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12530
|
+
columns = _useState2[0],
|
|
12531
|
+
setColumns = _useState2[1];
|
|
12532
|
+
var _useState3 = useState(false),
|
|
12533
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12534
|
+
loading = _useState4[0],
|
|
12535
|
+
setLoading = _useState4[1];
|
|
12536
|
+
var showColumnsDataIndexList = useMemo(function () {
|
|
12537
|
+
return columns.filter(function (item) {
|
|
12538
|
+
return Object.hasOwn(item, 'dataIndex');
|
|
12539
|
+
}).map(function (item) {
|
|
12540
|
+
return item.dataIndex;
|
|
12541
|
+
});
|
|
12542
|
+
}, [columns]);
|
|
12543
|
+
useEffect(function () {
|
|
12544
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12545
|
+
var initColumns, requestSortColumns, list, initDataIndexList;
|
|
12546
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12547
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12548
|
+
case 0:
|
|
12549
|
+
initColumns = getColumnsMap()[type];
|
|
12550
|
+
setLoading(true);
|
|
12551
|
+
_context.next = 4;
|
|
12552
|
+
return asyncGetData(type);
|
|
12553
|
+
case 4:
|
|
12554
|
+
requestSortColumns = _context.sent;
|
|
12555
|
+
setLoading(false);
|
|
12556
|
+
list = [initNo];
|
|
12557
|
+
if (requestSortColumns && requestSortColumns.length > 0) {
|
|
12558
|
+
initDataIndexList = initColumns.map(function (item) {
|
|
12559
|
+
return item.dataIndex;
|
|
12560
|
+
});
|
|
12561
|
+
requestSortColumns.forEach(function (item) {
|
|
12562
|
+
var dataIndex = item.dataIndex,
|
|
12563
|
+
show = item.show;
|
|
12564
|
+
if (show !== false && initDataIndexList.includes(dataIndex)) {
|
|
12565
|
+
list.push(initColumns.find(function (item) {
|
|
12566
|
+
return item.dataIndex === dataIndex;
|
|
12567
|
+
}));
|
|
12568
|
+
}
|
|
12569
|
+
});
|
|
12570
|
+
}
|
|
12571
|
+
setColumns(list);
|
|
12572
|
+
case 9:
|
|
12573
|
+
case "end":
|
|
12574
|
+
return _context.stop();
|
|
12575
|
+
}
|
|
12576
|
+
}, _callee);
|
|
12577
|
+
}))();
|
|
12578
|
+
}, []);
|
|
12579
|
+
return [columns, showColumnsDataIndexList, loading];
|
|
12580
|
+
});
|
|
12581
|
+
|
|
12582
|
+
function SearchForm(_ref) {
|
|
12583
|
+
var searchFormData = _ref.searchFormData,
|
|
12584
|
+
form = _ref.form,
|
|
12585
|
+
showColumnsDataIndexList = _ref.showColumnsDataIndexList,
|
|
12586
|
+
submit = _ref.submit,
|
|
12587
|
+
reset = _ref.reset;
|
|
12588
|
+
var _useState = useState({}),
|
|
12589
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12590
|
+
searchData = _useState2[0],
|
|
12591
|
+
setSearchData = _useState2[1];
|
|
12592
|
+
var submitForm = /*#__PURE__*/function () {
|
|
12593
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
|
|
12594
|
+
var values;
|
|
12595
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12596
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12597
|
+
case 0:
|
|
12598
|
+
_context.next = 2;
|
|
12599
|
+
return form.getFieldsValue();
|
|
12600
|
+
case 2:
|
|
12601
|
+
values = _context.sent;
|
|
12602
|
+
if (submitBtnClickFlag || !isEqual(values, searchData)) {
|
|
12603
|
+
setSearchData(values);
|
|
12604
|
+
submit();
|
|
12605
|
+
}
|
|
12606
|
+
case 4:
|
|
12607
|
+
case "end":
|
|
12608
|
+
return _context.stop();
|
|
12609
|
+
}
|
|
12610
|
+
}, _callee);
|
|
12611
|
+
}));
|
|
12612
|
+
return function submitForm(_x) {
|
|
12613
|
+
return _ref2.apply(this, arguments);
|
|
12614
|
+
};
|
|
12615
|
+
}();
|
|
12616
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
12617
|
+
layout: "inline",
|
|
12618
|
+
form: form
|
|
12619
|
+
}, searchFormData.map(function (item) {
|
|
12620
|
+
var label = item.label,
|
|
12621
|
+
name = item.name,
|
|
12622
|
+
dataIndex = item.dataIndex,
|
|
12623
|
+
type = item.type,
|
|
12624
|
+
_item$formItemProps = item.formItemProps,
|
|
12625
|
+
formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
|
|
12626
|
+
if (!showColumnsDataIndexList.includes(dataIndex || name)) return;
|
|
12627
|
+
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
12628
|
+
name: name,
|
|
12629
|
+
style: {
|
|
12630
|
+
marginBottom: '12px'
|
|
12631
|
+
}
|
|
12632
|
+
}, type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
12633
|
+
placeholder: label,
|
|
12634
|
+
showSearch: true,
|
|
12635
|
+
allowClear: true,
|
|
12636
|
+
style: {
|
|
12637
|
+
width: 150
|
|
12638
|
+
},
|
|
12639
|
+
onBlur: function onBlur() {
|
|
12640
|
+
return submitForm();
|
|
12641
|
+
}
|
|
12642
|
+
}, formItemProps)) : /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
12643
|
+
placeholder: label,
|
|
12644
|
+
allowClear: true,
|
|
12645
|
+
style: {
|
|
12646
|
+
width: 150
|
|
12647
|
+
},
|
|
12648
|
+
onPressEnter: function onPressEnter() {
|
|
12649
|
+
return submitForm();
|
|
12650
|
+
},
|
|
12651
|
+
onBlur: function onBlur() {
|
|
12652
|
+
return submitForm();
|
|
12653
|
+
}
|
|
12654
|
+
}, formItemProps)));
|
|
12655
|
+
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12656
|
+
style: {
|
|
12657
|
+
marginBottom: '12px'
|
|
12658
|
+
}
|
|
12659
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
12660
|
+
type: "primary",
|
|
12661
|
+
style: {
|
|
12662
|
+
marginRight: '8px'
|
|
12663
|
+
},
|
|
12664
|
+
onClick: function onClick() {
|
|
12665
|
+
return submitForm(true);
|
|
12666
|
+
}
|
|
12667
|
+
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
12668
|
+
onClick: reset
|
|
12669
|
+
}, "\u91CD\u7F6E")));
|
|
12670
|
+
}
|
|
12671
|
+
|
|
12672
|
+
var getTableData = function getTableData(_ref, formData) {
|
|
12673
|
+
var _formData$brandIds;
|
|
12674
|
+
var current = _ref.current,
|
|
12675
|
+
pageSize = _ref.pageSize;
|
|
12676
|
+
var data = {
|
|
12677
|
+
brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
|
|
12678
|
+
skuCode: formData.skuCode || null,
|
|
12679
|
+
skuName: formData.skuName || null,
|
|
12680
|
+
goodName: formData.goodName || null,
|
|
12681
|
+
goodNo: formData.goodNo || null
|
|
12682
|
+
};
|
|
12683
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12684
|
+
method: 'post',
|
|
12685
|
+
data: _objectSpread2({
|
|
12686
|
+
pageSize: pageSize,
|
|
12687
|
+
pageNo: current,
|
|
12688
|
+
platform: 'WDT_ERP'
|
|
12689
|
+
}, data)
|
|
12690
|
+
}).then(function (res) {
|
|
12691
|
+
var _res$data = res.data,
|
|
12692
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
12693
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
12694
|
+
_res$data$total = _res$data.total,
|
|
12695
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
12696
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
12697
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
12698
|
+
index: index + 1
|
|
12699
|
+
});
|
|
12700
|
+
});
|
|
12701
|
+
return {
|
|
12702
|
+
total: total,
|
|
12703
|
+
list: newProducts
|
|
12704
|
+
};
|
|
12705
|
+
});
|
|
12706
|
+
};
|
|
12707
|
+
var GoodList = function GoodList(props, ref) {
|
|
12708
|
+
var _useState = useState([]),
|
|
12709
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12710
|
+
selectList = _useState2[0],
|
|
12711
|
+
setSelect = _useState2[1];
|
|
12712
|
+
var _useState3 = useState([]),
|
|
12713
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12714
|
+
selectIds = _useState4[0],
|
|
12715
|
+
setSelectIds = _useState4[1];
|
|
12716
|
+
var _useState5 = useState([]),
|
|
12717
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
12718
|
+
brandList = _useState6[0],
|
|
12719
|
+
setBrandList = _useState6[1];
|
|
12720
|
+
var _useGetColumns = useGetColumns('wdt'),
|
|
12721
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
12722
|
+
columns = _useGetColumns2[0],
|
|
12723
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
12724
|
+
loading = _useGetColumns2[2];
|
|
12725
|
+
useImperativeHandle(ref, function () {
|
|
12726
|
+
return {
|
|
12727
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
12728
|
+
return selectList;
|
|
12729
|
+
}
|
|
12730
|
+
};
|
|
12731
|
+
});
|
|
12732
|
+
var _Form$useForm = Form.useForm(),
|
|
12733
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
12734
|
+
form = _Form$useForm2[0];
|
|
12735
|
+
var _useAntdTable = useAntdTable(getTableData, {
|
|
12736
|
+
defaultPageSize: 10,
|
|
12737
|
+
form: form
|
|
12738
|
+
}),
|
|
12739
|
+
tableProps = _useAntdTable.tableProps,
|
|
12740
|
+
search = _useAntdTable.search,
|
|
12741
|
+
params = _useAntdTable.params;
|
|
12742
|
+
var submit = search.submit,
|
|
12743
|
+
reset = search.reset;
|
|
12744
|
+
var setGoodBrandList = function setGoodBrandList() {
|
|
12745
|
+
var list = [];
|
|
12746
|
+
var pageNo = 0;
|
|
12747
|
+
var pageSize = 100;
|
|
12748
|
+
var getMore = function getMore() {
|
|
12006
12749
|
extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
|
|
12007
12750
|
method: 'post',
|
|
12008
12751
|
data: {
|
|
@@ -12030,92 +12773,42 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12030
12773
|
React.useEffect(function () {
|
|
12031
12774
|
setGoodBrandList();
|
|
12032
12775
|
}, []);
|
|
12033
|
-
var
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
|
|
12041
|
-
},
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12047
|
-
}
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
width: 150
|
|
12068
|
-
}
|
|
12069
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12070
|
-
name: "goodNo",
|
|
12071
|
-
style: {
|
|
12072
|
-
marginBottom: '12px'
|
|
12073
|
-
}
|
|
12074
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12075
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
12076
|
-
allowClear: true,
|
|
12077
|
-
style: {
|
|
12078
|
-
width: 150
|
|
12079
|
-
}
|
|
12080
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12081
|
-
name: "brandIds",
|
|
12082
|
-
style: {
|
|
12083
|
-
marginBottom: '12px'
|
|
12084
|
-
}
|
|
12085
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
12086
|
-
mode: "multiple",
|
|
12087
|
-
showSearch: true,
|
|
12088
|
-
allowClear: true,
|
|
12089
|
-
filterOption: function filterOption(input, option) {
|
|
12090
|
-
return option.label.includes(input);
|
|
12091
|
-
},
|
|
12092
|
-
style: {
|
|
12093
|
-
width: 150
|
|
12094
|
-
},
|
|
12095
|
-
placeholder: "\u54C1\u724C",
|
|
12096
|
-
options: brandList.filter(function (item) {
|
|
12097
|
-
return !item.isDisabled;
|
|
12098
|
-
}).map(function (_ref2) {
|
|
12099
|
-
var value = _ref2.brandId,
|
|
12100
|
-
label = _ref2.brandName;
|
|
12101
|
-
return {
|
|
12102
|
-
value: value,
|
|
12103
|
-
label: label
|
|
12104
|
-
};
|
|
12105
|
-
})
|
|
12106
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12107
|
-
style: {
|
|
12108
|
-
marginBottom: '12px'
|
|
12776
|
+
var searchFormData = [{
|
|
12777
|
+
label: 'SKU名称',
|
|
12778
|
+
name: 'skuName',
|
|
12779
|
+
dataIndex: 'specName'
|
|
12780
|
+
}, {
|
|
12781
|
+
label: 'SKU编码',
|
|
12782
|
+
name: 'skuCode',
|
|
12783
|
+
dataIndex: 'specNo'
|
|
12784
|
+
}, {
|
|
12785
|
+
label: '商品名称',
|
|
12786
|
+
name: 'goodName'
|
|
12787
|
+
}, {
|
|
12788
|
+
label: '商品编码',
|
|
12789
|
+
name: 'goodNo'
|
|
12790
|
+
}, {
|
|
12791
|
+
label: '品牌',
|
|
12792
|
+
name: 'brandIds',
|
|
12793
|
+
dataIndex: 'brandName',
|
|
12794
|
+
type: 'select',
|
|
12795
|
+
formItemProps: {
|
|
12796
|
+
mode: 'multiple',
|
|
12797
|
+
filterOption: function filterOption(input, option) {
|
|
12798
|
+
return option.label.includes(input);
|
|
12799
|
+
},
|
|
12800
|
+
options: brandList.filter(function (item) {
|
|
12801
|
+
return !item.isDisabled;
|
|
12802
|
+
}).map(function (_ref2) {
|
|
12803
|
+
var value = _ref2.brandId,
|
|
12804
|
+
label = _ref2.brandName;
|
|
12805
|
+
return {
|
|
12806
|
+
value: value,
|
|
12807
|
+
label: label
|
|
12808
|
+
};
|
|
12809
|
+
})
|
|
12109
12810
|
}
|
|
12110
|
-
}
|
|
12111
|
-
type: "primary",
|
|
12112
|
-
style: {
|
|
12113
|
-
marginRight: '8px'
|
|
12114
|
-
},
|
|
12115
|
-
onClick: submit
|
|
12116
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
12117
|
-
onClick: reset
|
|
12118
|
-
}, "\u91CD\u7F6E")));
|
|
12811
|
+
}];
|
|
12119
12812
|
var rowSelection = {
|
|
12120
12813
|
selectedRowKeys: selectIds,
|
|
12121
12814
|
fixed: true,
|
|
@@ -12171,7 +12864,7 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12171
12864
|
}
|
|
12172
12865
|
}, "\u5220\u9664");
|
|
12173
12866
|
}
|
|
12174
|
-
}].concat(takeRight(columns
|
|
12867
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
12175
12868
|
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
12176
12869
|
style: {
|
|
12177
12870
|
width: '100%',
|
|
@@ -12193,14 +12886,23 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12193
12886
|
}
|
|
12194
12887
|
})) : null;
|
|
12195
12888
|
};
|
|
12196
|
-
return /*#__PURE__*/React.createElement(
|
|
12889
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
12890
|
+
active: true,
|
|
12891
|
+
loading: loading
|
|
12892
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
12893
|
+
searchFormData: searchFormData,
|
|
12894
|
+
form: form,
|
|
12895
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
12896
|
+
submit: submit,
|
|
12897
|
+
reset: reset
|
|
12898
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
12197
12899
|
style: {
|
|
12198
12900
|
marginTop: '4px'
|
|
12199
12901
|
}
|
|
12200
12902
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
12201
12903
|
rowSelection: rowSelection,
|
|
12202
12904
|
rowKey: "specNo",
|
|
12203
|
-
columns: columns
|
|
12905
|
+
columns: columns,
|
|
12204
12906
|
scroll: {
|
|
12205
12907
|
x: '100%',
|
|
12206
12908
|
y: 250
|
|
@@ -12284,97 +12986,15 @@ var getTableData$1 = function getTableData(_ref, formData) {
|
|
|
12284
12986
|
};
|
|
12285
12987
|
});
|
|
12286
12988
|
};
|
|
12287
|
-
var
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
render: function render(val, record, index) {
|
|
12291
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
12292
|
-
style: {
|
|
12293
|
-
width: 25
|
|
12294
|
-
}
|
|
12295
|
-
}, index + 1);
|
|
12296
|
-
},
|
|
12297
|
-
width: 80
|
|
12298
|
-
}, {
|
|
12299
|
-
dataIndex: 'goodName',
|
|
12300
|
-
title: '商品名称',
|
|
12301
|
-
width: 250,
|
|
12302
|
-
ellipsis: true
|
|
12303
|
-
}, {
|
|
12304
|
-
dataIndex: 'goodNo',
|
|
12305
|
-
title: '商品编码',
|
|
12306
|
-
width: 200,
|
|
12307
|
-
ellipsis: true
|
|
12308
|
-
}, {
|
|
12309
|
-
dataIndex: 'styleCode',
|
|
12310
|
-
title: '款式编码',
|
|
12311
|
-
width: 200,
|
|
12312
|
-
ellipsis: true
|
|
12313
|
-
}, {
|
|
12314
|
-
dataIndex: 'propertiesValue',
|
|
12315
|
-
title: '规格值',
|
|
12316
|
-
width: 200,
|
|
12317
|
-
ellipsis: true
|
|
12318
|
-
}, {
|
|
12319
|
-
dataIndex: 'goodPicUrl',
|
|
12320
|
-
title: '商品图片',
|
|
12321
|
-
width: 100,
|
|
12322
|
-
render: function render(picUrl) {
|
|
12323
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
12324
|
-
style: {
|
|
12325
|
-
width: '40px',
|
|
12326
|
-
height: '40px',
|
|
12327
|
-
objectFit: 'contain'
|
|
12328
|
-
},
|
|
12329
|
-
src: picUrl
|
|
12330
|
-
});
|
|
12331
|
-
}
|
|
12332
|
-
}, {
|
|
12333
|
-
dataIndex: 'goodShortName',
|
|
12334
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12335
|
-
ellipsis: true,
|
|
12336
|
-
width: 250
|
|
12337
|
-
}, {
|
|
12338
|
-
dataIndex: 'brandName',
|
|
12339
|
-
title: '品牌名称',
|
|
12340
|
-
width: 200,
|
|
12341
|
-
ellipsis: true
|
|
12342
|
-
}, {
|
|
12343
|
-
dataIndex: 'retailPrice',
|
|
12344
|
-
title: "\u9500\u552E\u4EF7\u683C",
|
|
12345
|
-
ellipsis: true,
|
|
12346
|
-
width: 100,
|
|
12347
|
-
render: function render(price) {
|
|
12348
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12349
|
-
}
|
|
12350
|
-
}, {
|
|
12351
|
-
dataIndex: 'marketPrice',
|
|
12352
|
-
title: "\u5E02\u573A\u4EF7",
|
|
12353
|
-
ellipsis: true,
|
|
12354
|
-
width: 100,
|
|
12355
|
-
render: function render(price) {
|
|
12356
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12357
|
-
}
|
|
12989
|
+
var searchFormData = [{
|
|
12990
|
+
label: '商品名称',
|
|
12991
|
+
name: 'goodName'
|
|
12358
12992
|
}, {
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
ellipsis: true,
|
|
12362
|
-
width: 100,
|
|
12363
|
-
render: function render(price) {
|
|
12364
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12365
|
-
}
|
|
12993
|
+
label: '商品编码',
|
|
12994
|
+
name: 'goodNo'
|
|
12366
12995
|
}, {
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
ellipsis: true,
|
|
12370
|
-
width: 100,
|
|
12371
|
-
render: function render() {
|
|
12372
|
-
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
|
|
12373
|
-
return {
|
|
12374
|
-
'combine': '组合装商品',
|
|
12375
|
-
'normal': '普通商品'
|
|
12376
|
-
}[type] || type;
|
|
12377
|
-
}
|
|
12996
|
+
label: '款式编码',
|
|
12997
|
+
name: 'styleCode'
|
|
12378
12998
|
}];
|
|
12379
12999
|
var GoodList$1 = function GoodList(props, ref) {
|
|
12380
13000
|
var _useState = useState([]),
|
|
@@ -12385,6 +13005,11 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12385
13005
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
12386
13006
|
selectIds = _useState4[0],
|
|
12387
13007
|
setSelectIds = _useState4[1];
|
|
13008
|
+
var _useGetColumns = useGetColumns('jst'),
|
|
13009
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13010
|
+
columns = _useGetColumns2[0],
|
|
13011
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13012
|
+
loading = _useGetColumns2[2];
|
|
12388
13013
|
useImperativeHandle(ref, function () {
|
|
12389
13014
|
return {
|
|
12390
13015
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -12404,55 +13029,6 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12404
13029
|
params = _useAntdTable.params;
|
|
12405
13030
|
var submit = search.submit,
|
|
12406
13031
|
reset = search.reset;
|
|
12407
|
-
var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
|
|
12408
|
-
layout: "inline",
|
|
12409
|
-
form: form
|
|
12410
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
12411
|
-
name: "goodName",
|
|
12412
|
-
style: {
|
|
12413
|
-
marginBottom: '12px'
|
|
12414
|
-
}
|
|
12415
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12416
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
12417
|
-
allowClear: true,
|
|
12418
|
-
style: {
|
|
12419
|
-
width: 150
|
|
12420
|
-
}
|
|
12421
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12422
|
-
name: "goodNo",
|
|
12423
|
-
style: {
|
|
12424
|
-
marginBottom: '12px'
|
|
12425
|
-
}
|
|
12426
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12427
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
12428
|
-
allowClear: true,
|
|
12429
|
-
style: {
|
|
12430
|
-
width: 150
|
|
12431
|
-
}
|
|
12432
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12433
|
-
name: "styleCode",
|
|
12434
|
-
style: {
|
|
12435
|
-
marginBottom: '12px'
|
|
12436
|
-
}
|
|
12437
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12438
|
-
placeholder: "\u6B3E\u5F0F\u7F16\u7801",
|
|
12439
|
-
allowClear: true,
|
|
12440
|
-
style: {
|
|
12441
|
-
width: 150
|
|
12442
|
-
}
|
|
12443
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12444
|
-
style: {
|
|
12445
|
-
marginBottom: '12px'
|
|
12446
|
-
}
|
|
12447
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
12448
|
-
type: "primary",
|
|
12449
|
-
style: {
|
|
12450
|
-
marginRight: '8px'
|
|
12451
|
-
},
|
|
12452
|
-
onClick: submit
|
|
12453
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
12454
|
-
onClick: reset
|
|
12455
|
-
}, "\u91CD\u7F6E")));
|
|
12456
13032
|
var rowSelection = {
|
|
12457
13033
|
selectedRowKeys: selectIds,
|
|
12458
13034
|
fixed: true,
|
|
@@ -12517,7 +13093,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12517
13093
|
}
|
|
12518
13094
|
}, "\u5220\u9664");
|
|
12519
13095
|
}
|
|
12520
|
-
}].concat(takeRight(columns
|
|
13096
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
12521
13097
|
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
12522
13098
|
style: {
|
|
12523
13099
|
width: '100%',
|
|
@@ -12539,14 +13115,23 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12539
13115
|
}
|
|
12540
13116
|
})) : null;
|
|
12541
13117
|
};
|
|
12542
|
-
return /*#__PURE__*/React.createElement(
|
|
13118
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
13119
|
+
active: true,
|
|
13120
|
+
loading: loading
|
|
13121
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
13122
|
+
searchFormData: searchFormData,
|
|
13123
|
+
form: form,
|
|
13124
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13125
|
+
submit: submit,
|
|
13126
|
+
reset: reset
|
|
13127
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
12543
13128
|
style: {
|
|
12544
13129
|
marginTop: '4px'
|
|
12545
13130
|
}
|
|
12546
13131
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
12547
13132
|
rowSelection: rowSelection,
|
|
12548
13133
|
rowKey: "goodNo",
|
|
12549
|
-
columns: columns
|
|
13134
|
+
columns: columns,
|
|
12550
13135
|
scroll: {
|
|
12551
13136
|
x: '100%',
|
|
12552
13137
|
y: 250
|
|
@@ -12619,128 +13204,47 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
12619
13204
|
goodShortName: formData.goodShortName || null,
|
|
12620
13205
|
goodNo: formData.goodNo || null,
|
|
12621
13206
|
goodName: formData.goodName || null,
|
|
12622
|
-
skuCode: formData.skuCode || null,
|
|
12623
|
-
skuId: formData.skuId || null
|
|
12624
|
-
};
|
|
12625
|
-
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12626
|
-
method: 'post',
|
|
12627
|
-
data: _objectSpread2({
|
|
12628
|
-
pageSize: pageSize,
|
|
12629
|
-
pageNo: current,
|
|
12630
|
-
platform: 'BS_E3_ERP'
|
|
12631
|
-
}, data)
|
|
12632
|
-
}).then(function (res) {
|
|
12633
|
-
var _res$data = res.data,
|
|
12634
|
-
_res$data$productSkuL = _res$data.productSkuList,
|
|
12635
|
-
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
12636
|
-
_res$data$total = _res$data.total,
|
|
12637
|
-
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
12638
|
-
var newProducts = productSkuList.map(function (item, index) {
|
|
12639
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
12640
|
-
index: index + 1
|
|
12641
|
-
});
|
|
12642
|
-
});
|
|
12643
|
-
return {
|
|
12644
|
-
total: total,
|
|
12645
|
-
list: newProducts
|
|
12646
|
-
};
|
|
12647
|
-
});
|
|
12648
|
-
};
|
|
12649
|
-
var
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
render: function render(val, record, index) {
|
|
12653
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
12654
|
-
style: {
|
|
12655
|
-
width: 25
|
|
12656
|
-
}
|
|
12657
|
-
}, index + 1);
|
|
12658
|
-
},
|
|
12659
|
-
width: 80
|
|
12660
|
-
}, {
|
|
12661
|
-
dataIndex: 'specNo',
|
|
12662
|
-
title: "SKU",
|
|
12663
|
-
ellipsis: true,
|
|
12664
|
-
width: 200
|
|
12665
|
-
}, {
|
|
12666
|
-
dataIndex: 'specId',
|
|
12667
|
-
title: "SKU ID",
|
|
12668
|
-
ellipsis: true,
|
|
12669
|
-
width: 80
|
|
12670
|
-
}, {
|
|
12671
|
-
dataIndex: 'goodName',
|
|
12672
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
12673
|
-
ellipsis: true,
|
|
12674
|
-
width: 250
|
|
12675
|
-
}, {
|
|
12676
|
-
dataIndex: 'goodShortName',
|
|
12677
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12678
|
-
ellipsis: true,
|
|
12679
|
-
width: 250
|
|
12680
|
-
},
|
|
12681
|
-
// {
|
|
12682
|
-
// dataIndex: 'goodPicUrl',
|
|
12683
|
-
// title: `商品图片`,
|
|
12684
|
-
// ellipsis: true,
|
|
12685
|
-
// width: 100,
|
|
12686
|
-
// render: (picUrl: string) => {
|
|
12687
|
-
// return (
|
|
12688
|
-
// <img
|
|
12689
|
-
// style={{
|
|
12690
|
-
// width: '40px',
|
|
12691
|
-
// height: '40px',
|
|
12692
|
-
// objectFit: 'contain',
|
|
12693
|
-
// }}
|
|
12694
|
-
// src={picUrl}
|
|
12695
|
-
// ></img>
|
|
12696
|
-
// );
|
|
12697
|
-
// },
|
|
12698
|
-
// },
|
|
12699
|
-
{
|
|
12700
|
-
dataIndex: 'goodNo',
|
|
12701
|
-
title: "\u8D27\u53F7",
|
|
12702
|
-
ellipsis: true,
|
|
12703
|
-
width: 150
|
|
12704
|
-
}, {
|
|
12705
|
-
dataIndex: 'goodId',
|
|
12706
|
-
title: "\u8D27\u53F7ID",
|
|
12707
|
-
ellipsis: true,
|
|
12708
|
-
width: 100
|
|
12709
|
-
}, {
|
|
12710
|
-
dataIndex: 'colorName',
|
|
12711
|
-
title: "\u989C\u8272\u540D\u79F0",
|
|
12712
|
-
ellipsis: true,
|
|
12713
|
-
width: 100
|
|
12714
|
-
}, {
|
|
12715
|
-
dataIndex: 'colorCode',
|
|
12716
|
-
title: "\u989C\u8272\u4EE3\u7801",
|
|
12717
|
-
ellipsis: true,
|
|
12718
|
-
width: 100
|
|
12719
|
-
}, {
|
|
12720
|
-
dataIndex: 'sizeName',
|
|
12721
|
-
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12722
|
-
ellipsis: true,
|
|
12723
|
-
width: 100
|
|
12724
|
-
}, {
|
|
12725
|
-
dataIndex: 'sizeCode',
|
|
12726
|
-
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12727
|
-
ellipsis: true,
|
|
12728
|
-
width: 100
|
|
13207
|
+
skuCode: formData.skuCode || null,
|
|
13208
|
+
skuId: formData.skuId || null
|
|
13209
|
+
};
|
|
13210
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
13211
|
+
method: 'post',
|
|
13212
|
+
data: _objectSpread2({
|
|
13213
|
+
pageSize: pageSize,
|
|
13214
|
+
pageNo: current,
|
|
13215
|
+
platform: 'BS_E3_ERP'
|
|
13216
|
+
}, data)
|
|
13217
|
+
}).then(function (res) {
|
|
13218
|
+
var _res$data = res.data,
|
|
13219
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
13220
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
13221
|
+
_res$data$total = _res$data.total,
|
|
13222
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
13223
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
13224
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13225
|
+
index: index + 1
|
|
13226
|
+
});
|
|
13227
|
+
});
|
|
13228
|
+
return {
|
|
13229
|
+
total: total,
|
|
13230
|
+
list: newProducts
|
|
13231
|
+
};
|
|
13232
|
+
});
|
|
13233
|
+
};
|
|
13234
|
+
var searchFormData$1 = [{
|
|
13235
|
+
label: '商品货号',
|
|
13236
|
+
name: 'goodNo'
|
|
12729
13237
|
}, {
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
ellipsis: true,
|
|
12733
|
-
width: 100
|
|
13238
|
+
label: '商品名称',
|
|
13239
|
+
name: 'goodName'
|
|
12734
13240
|
}, {
|
|
12735
|
-
|
|
12736
|
-
|
|
12737
|
-
|
|
12738
|
-
width: 100
|
|
13241
|
+
label: 'SKU',
|
|
13242
|
+
name: 'skuCode',
|
|
13243
|
+
dataIndex: 'specNo'
|
|
12739
13244
|
}, {
|
|
12740
|
-
|
|
12741
|
-
|
|
12742
|
-
|
|
12743
|
-
width: 100
|
|
13245
|
+
label: 'SKU ID',
|
|
13246
|
+
name: 'skuId',
|
|
13247
|
+
dataIndex: 'specId'
|
|
12744
13248
|
}];
|
|
12745
13249
|
var GoodList$2 = function GoodList(props, ref) {
|
|
12746
13250
|
var _useState = useState([]),
|
|
@@ -12751,6 +13255,11 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
12751
13255
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
12752
13256
|
selectIds = _useState4[0],
|
|
12753
13257
|
setSelectIds = _useState4[1];
|
|
13258
|
+
var _useGetColumns = useGetColumns('bse3'),
|
|
13259
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13260
|
+
columns = _useGetColumns2[0],
|
|
13261
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13262
|
+
loading = _useGetColumns2[2];
|
|
12754
13263
|
useImperativeHandle(ref, function () {
|
|
12755
13264
|
return {
|
|
12756
13265
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -12770,77 +13279,6 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
12770
13279
|
params = _useAntdTable.params;
|
|
12771
13280
|
var submit = search.submit,
|
|
12772
13281
|
reset = search.reset;
|
|
12773
|
-
var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
|
|
12774
|
-
layout: "inline",
|
|
12775
|
-
form: form
|
|
12776
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
12777
|
-
name: "goodShortName",
|
|
12778
|
-
style: {
|
|
12779
|
-
marginBottom: '12px'
|
|
12780
|
-
}
|
|
12781
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12782
|
-
placeholder: "\u5546\u54C1\u7B80\u79F0",
|
|
12783
|
-
allowClear: true,
|
|
12784
|
-
style: {
|
|
12785
|
-
width: 150
|
|
12786
|
-
}
|
|
12787
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12788
|
-
name: "goodNo",
|
|
12789
|
-
style: {
|
|
12790
|
-
marginBottom: '12px'
|
|
12791
|
-
}
|
|
12792
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12793
|
-
placeholder: "\u5546\u54C1\u8D27\u53F7",
|
|
12794
|
-
allowClear: true,
|
|
12795
|
-
style: {
|
|
12796
|
-
width: 150
|
|
12797
|
-
}
|
|
12798
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12799
|
-
name: "goodName",
|
|
12800
|
-
style: {
|
|
12801
|
-
marginBottom: '12px'
|
|
12802
|
-
}
|
|
12803
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12804
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
12805
|
-
allowClear: true,
|
|
12806
|
-
style: {
|
|
12807
|
-
width: 150
|
|
12808
|
-
}
|
|
12809
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12810
|
-
name: "skuCode",
|
|
12811
|
-
style: {
|
|
12812
|
-
marginBottom: '12px'
|
|
12813
|
-
}
|
|
12814
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12815
|
-
placeholder: "SKU",
|
|
12816
|
-
allowClear: true,
|
|
12817
|
-
style: {
|
|
12818
|
-
width: 150
|
|
12819
|
-
}
|
|
12820
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12821
|
-
name: "skuId",
|
|
12822
|
-
style: {
|
|
12823
|
-
marginBottom: '12px'
|
|
12824
|
-
}
|
|
12825
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12826
|
-
placeholder: "SKU ID",
|
|
12827
|
-
allowClear: true,
|
|
12828
|
-
style: {
|
|
12829
|
-
width: 150
|
|
12830
|
-
}
|
|
12831
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12832
|
-
style: {
|
|
12833
|
-
marginBottom: '12px'
|
|
12834
|
-
}
|
|
12835
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
12836
|
-
type: "primary",
|
|
12837
|
-
style: {
|
|
12838
|
-
marginRight: '8px'
|
|
12839
|
-
},
|
|
12840
|
-
onClick: submit
|
|
12841
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
12842
|
-
onClick: reset
|
|
12843
|
-
}, "\u91CD\u7F6E")));
|
|
12844
13282
|
var rowSelection = {
|
|
12845
13283
|
selectedRowKeys: selectIds,
|
|
12846
13284
|
fixed: true,
|
|
@@ -12896,7 +13334,7 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
12896
13334
|
}
|
|
12897
13335
|
}, "\u5220\u9664");
|
|
12898
13336
|
}
|
|
12899
|
-
}].concat(takeRight(columns
|
|
13337
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
12900
13338
|
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
12901
13339
|
style: {
|
|
12902
13340
|
width: '100%',
|
|
@@ -12918,14 +13356,23 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
12918
13356
|
}
|
|
12919
13357
|
})) : null;
|
|
12920
13358
|
};
|
|
12921
|
-
return /*#__PURE__*/React.createElement(
|
|
13359
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
13360
|
+
active: true,
|
|
13361
|
+
loading: loading
|
|
13362
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
13363
|
+
searchFormData: searchFormData$1,
|
|
13364
|
+
form: form,
|
|
13365
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13366
|
+
submit: submit,
|
|
13367
|
+
reset: reset
|
|
13368
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
12922
13369
|
style: {
|
|
12923
13370
|
marginTop: '4px'
|
|
12924
13371
|
}
|
|
12925
13372
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
12926
13373
|
rowSelection: rowSelection,
|
|
12927
13374
|
rowKey: "specNo",
|
|
12928
|
-
columns: columns
|
|
13375
|
+
columns: columns,
|
|
12929
13376
|
scroll: {
|
|
12930
13377
|
x: '100%',
|
|
12931
13378
|
y: 250
|
|
@@ -13016,199 +13463,85 @@ var getTableData$3 = function getTableData(_ref, formData) {
|
|
|
13016
13463
|
};
|
|
13017
13464
|
});
|
|
13018
13465
|
};
|
|
13019
|
-
var
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
render: function render(val, record, index) {
|
|
13023
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
13024
|
-
style: {
|
|
13025
|
-
width: 25
|
|
13026
|
-
}
|
|
13027
|
-
}, index + 1);
|
|
13028
|
-
},
|
|
13029
|
-
width: 80
|
|
13030
|
-
}, {
|
|
13031
|
-
dataIndex: 'specName',
|
|
13032
|
-
title: 'SKU名称',
|
|
13033
|
-
width: 250,
|
|
13034
|
-
ellipsis: true
|
|
13035
|
-
}, {
|
|
13036
|
-
dataIndex: 'specNo',
|
|
13037
|
-
title: 'SKU编码',
|
|
13038
|
-
width: 200,
|
|
13039
|
-
ellipsis: true
|
|
13040
|
-
}, {
|
|
13041
|
-
dataIndex: 'goodName',
|
|
13042
|
-
title: '商品名称',
|
|
13043
|
-
width: 250,
|
|
13044
|
-
ellipsis: true
|
|
13045
|
-
}, {
|
|
13046
|
-
dataIndex: 'goodShortName',
|
|
13047
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
13048
|
-
ellipsis: true,
|
|
13049
|
-
width: 250
|
|
13050
|
-
}, {
|
|
13051
|
-
dataIndex: 'goodNo',
|
|
13052
|
-
title: '商品编码',
|
|
13053
|
-
width: 200,
|
|
13054
|
-
ellipsis: true
|
|
13055
|
-
}, {
|
|
13056
|
-
dataIndex: 'goodPicUrl',
|
|
13057
|
-
title: '商品图片',
|
|
13058
|
-
width: 100,
|
|
13059
|
-
render: function render(picUrl) {
|
|
13060
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
13061
|
-
style: {
|
|
13062
|
-
width: '40px',
|
|
13063
|
-
height: '40px',
|
|
13064
|
-
objectFit: 'contain'
|
|
13065
|
-
},
|
|
13066
|
-
src: picUrl
|
|
13067
|
-
});
|
|
13068
|
-
}
|
|
13069
|
-
}, {
|
|
13070
|
-
dataIndex: 'brandName',
|
|
13071
|
-
title: '品牌名称',
|
|
13072
|
-
width: 200,
|
|
13073
|
-
ellipsis: true
|
|
13074
|
-
}, {
|
|
13075
|
-
dataIndex: 'retailPrice',
|
|
13076
|
-
title: "\u6807\u51C6\u552E\u4EF7",
|
|
13077
|
-
ellipsis: true,
|
|
13078
|
-
width: 100
|
|
13466
|
+
var searchFormData$2 = [{
|
|
13467
|
+
label: '商品简称',
|
|
13468
|
+
name: 'goodShortName'
|
|
13079
13469
|
}, {
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
|
|
13092
|
-
|
|
13093
|
-
|
|
13094
|
-
|
|
13095
|
-
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13102
|
-
|
|
13103
|
-
|
|
13104
|
-
|
|
13105
|
-
|
|
13106
|
-
|
|
13107
|
-
|
|
13108
|
-
|
|
13109
|
-
|
|
13110
|
-
|
|
13111
|
-
|
|
13112
|
-
|
|
13113
|
-
|
|
13114
|
-
|
|
13115
|
-
|
|
13116
|
-
|
|
13117
|
-
|
|
13118
|
-
|
|
13119
|
-
|
|
13120
|
-
|
|
13121
|
-
|
|
13122
|
-
|
|
13123
|
-
|
|
13124
|
-
|
|
13125
|
-
|
|
13126
|
-
|
|
13127
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13128
|
-
name: "skuName",
|
|
13129
|
-
style: {
|
|
13130
|
-
marginBottom: '12px'
|
|
13131
|
-
}
|
|
13132
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13133
|
-
placeholder: "\u5546\u54C1sku\u540D\u79F0",
|
|
13134
|
-
allowClear: true,
|
|
13135
|
-
style: {
|
|
13136
|
-
width: 150
|
|
13137
|
-
}
|
|
13138
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13139
|
-
name: "skuCode",
|
|
13140
|
-
style: {
|
|
13141
|
-
marginBottom: '12px'
|
|
13142
|
-
}
|
|
13143
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13144
|
-
placeholder: "\u5546\u54C1sku\u7F16\u7801",
|
|
13145
|
-
allowClear: true,
|
|
13146
|
-
style: {
|
|
13147
|
-
width: 150
|
|
13148
|
-
}
|
|
13149
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13150
|
-
name: "goodName",
|
|
13151
|
-
style: {
|
|
13152
|
-
marginBottom: '12px'
|
|
13153
|
-
}
|
|
13154
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13155
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
13156
|
-
allowClear: true,
|
|
13157
|
-
style: {
|
|
13158
|
-
width: 150
|
|
13159
|
-
}
|
|
13160
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13161
|
-
name: "goodNo",
|
|
13162
|
-
style: {
|
|
13163
|
-
marginBottom: '12px'
|
|
13164
|
-
}
|
|
13165
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13166
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
13167
|
-
allowClear: true,
|
|
13168
|
-
style: {
|
|
13169
|
-
width: 150
|
|
13170
|
-
}
|
|
13171
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13172
|
-
style: {
|
|
13173
|
-
marginBottom: '12px'
|
|
13174
|
-
}
|
|
13175
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
13176
|
-
type: "primary",
|
|
13177
|
-
style: {
|
|
13178
|
-
marginRight: '8px'
|
|
13179
|
-
},
|
|
13180
|
-
onClick: submit
|
|
13181
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
13182
|
-
onClick: reset
|
|
13183
|
-
}, "\u91CD\u7F6E")));
|
|
13470
|
+
label: '商品简称',
|
|
13471
|
+
name: 'skuName',
|
|
13472
|
+
dataIndex: 'specName'
|
|
13473
|
+
}, {
|
|
13474
|
+
label: '商品sku编码',
|
|
13475
|
+
name: 'skuCode',
|
|
13476
|
+
dataIndex: 'specNo'
|
|
13477
|
+
}, {
|
|
13478
|
+
label: '商品名称',
|
|
13479
|
+
name: 'goodName'
|
|
13480
|
+
}, {
|
|
13481
|
+
label: '商品编码',
|
|
13482
|
+
name: 'goodNo'
|
|
13483
|
+
}];
|
|
13484
|
+
var GoodList$3 = function GoodList(props, ref) {
|
|
13485
|
+
var _useState = useState([]),
|
|
13486
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13487
|
+
selectList = _useState2[0],
|
|
13488
|
+
setSelect = _useState2[1];
|
|
13489
|
+
var _useState3 = useState([]),
|
|
13490
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
13491
|
+
selectIds = _useState4[0],
|
|
13492
|
+
setSelectIds = _useState4[1];
|
|
13493
|
+
var _useGetColumns = useGetColumns('gy'),
|
|
13494
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13495
|
+
columns = _useGetColumns2[0],
|
|
13496
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13497
|
+
loading = _useGetColumns2[2];
|
|
13498
|
+
useImperativeHandle(ref, function () {
|
|
13499
|
+
return {
|
|
13500
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
13501
|
+
return selectList;
|
|
13502
|
+
}
|
|
13503
|
+
};
|
|
13504
|
+
});
|
|
13505
|
+
var _Form$useForm = Form.useForm(),
|
|
13506
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
13507
|
+
form = _Form$useForm2[0];
|
|
13508
|
+
var _useAntdTable = useAntdTable(getTableData$3, {
|
|
13509
|
+
defaultPageSize: 10,
|
|
13510
|
+
form: form
|
|
13511
|
+
}),
|
|
13512
|
+
tableProps = _useAntdTable.tableProps,
|
|
13513
|
+
search = _useAntdTable.search,
|
|
13514
|
+
params = _useAntdTable.params;
|
|
13515
|
+
var submit = search.submit,
|
|
13516
|
+
reset = search.reset;
|
|
13184
13517
|
var rowSelection = {
|
|
13185
13518
|
selectedRowKeys: selectIds,
|
|
13186
13519
|
fixed: true,
|
|
13187
13520
|
onSelect: function onSelect(record, selected) {
|
|
13188
13521
|
if (selected) {
|
|
13189
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [record.
|
|
13522
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
13190
13523
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
13191
13524
|
} else {
|
|
13192
13525
|
setSelectIds(selectIds.filter(function (t) {
|
|
13193
|
-
return t !== record.
|
|
13526
|
+
return t !== record.id;
|
|
13194
13527
|
}));
|
|
13195
13528
|
setSelect(selectList.filter(function (t) {
|
|
13196
|
-
return t.
|
|
13529
|
+
return t.id !== record.id;
|
|
13197
13530
|
}));
|
|
13198
13531
|
}
|
|
13199
13532
|
},
|
|
13200
13533
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
13201
13534
|
if (selected) {
|
|
13202
13535
|
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
13203
|
-
return t.
|
|
13536
|
+
return t.id;
|
|
13204
13537
|
}))));
|
|
13205
13538
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
13206
13539
|
} else {
|
|
13207
13540
|
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
13208
|
-
return t.
|
|
13541
|
+
return t.id;
|
|
13209
13542
|
})));
|
|
13210
13543
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
13211
|
-
return arrVal.
|
|
13544
|
+
return arrVal.id !== othVal.id;
|
|
13212
13545
|
});
|
|
13213
13546
|
setSelect(list);
|
|
13214
13547
|
}
|
|
@@ -13217,10 +13550,10 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13217
13550
|
var showTable = function showTable() {
|
|
13218
13551
|
var handleDelete = function handleDelete(record) {
|
|
13219
13552
|
setSelectIds(selectIds.filter(function (t) {
|
|
13220
|
-
return t !== record.
|
|
13553
|
+
return t !== record.id;
|
|
13221
13554
|
}));
|
|
13222
13555
|
setSelect(selectList.filter(function (t) {
|
|
13223
|
-
return t.
|
|
13556
|
+
return t.id !== record.id;
|
|
13224
13557
|
}));
|
|
13225
13558
|
};
|
|
13226
13559
|
var showColumns = [{
|
|
@@ -13236,7 +13569,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13236
13569
|
}
|
|
13237
13570
|
}, "\u5220\u9664");
|
|
13238
13571
|
}
|
|
13239
|
-
}].concat(takeRight(columns
|
|
13572
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
13240
13573
|
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
13241
13574
|
style: {
|
|
13242
13575
|
width: '100%',
|
|
@@ -13244,7 +13577,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13244
13577
|
}
|
|
13245
13578
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
13246
13579
|
columns: showColumns,
|
|
13247
|
-
rowKey: '
|
|
13580
|
+
rowKey: 'id',
|
|
13248
13581
|
dataSource: selectList,
|
|
13249
13582
|
scroll: {
|
|
13250
13583
|
x: '100%',
|
|
@@ -13258,14 +13591,23 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13258
13591
|
}
|
|
13259
13592
|
})) : null;
|
|
13260
13593
|
};
|
|
13261
|
-
return /*#__PURE__*/React.createElement(
|
|
13594
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
13595
|
+
active: true,
|
|
13596
|
+
loading: loading
|
|
13597
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
13598
|
+
searchFormData: searchFormData$2,
|
|
13599
|
+
form: form,
|
|
13600
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13601
|
+
submit: submit,
|
|
13602
|
+
reset: reset
|
|
13603
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
13262
13604
|
style: {
|
|
13263
13605
|
marginTop: '4px'
|
|
13264
13606
|
}
|
|
13265
13607
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
13266
13608
|
rowSelection: rowSelection,
|
|
13267
|
-
rowKey: "
|
|
13268
|
-
columns: columns
|
|
13609
|
+
rowKey: "id",
|
|
13610
|
+
columns: columns,
|
|
13269
13611
|
scroll: {
|
|
13270
13612
|
x: '100%',
|
|
13271
13613
|
y: 250
|
|
@@ -13745,7 +14087,7 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
|
13745
14087
|
var disabled = _ref2.disabled,
|
|
13746
14088
|
updateHandle = _ref2.updateHandle,
|
|
13747
14089
|
operate = _ref2.operate;
|
|
13748
|
-
return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
14090
|
+
return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
13749
14091
|
var newItem = _objectSpread2({
|
|
13750
14092
|
align: 'center',
|
|
13751
14093
|
ellipsis: true
|
|
@@ -13780,7 +14122,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13780
14122
|
}, {
|
|
13781
14123
|
dataIndex: 'goodName',
|
|
13782
14124
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
13783
|
-
width: 200
|
|
14125
|
+
width: 200,
|
|
14126
|
+
render: function render(text) {
|
|
14127
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14128
|
+
val: text
|
|
14129
|
+
});
|
|
14130
|
+
}
|
|
13784
14131
|
}, {
|
|
13785
14132
|
dataIndex: 'specId',
|
|
13786
14133
|
title: "SKUID",
|
|
@@ -13792,10 +14139,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13792
14139
|
}, {
|
|
13793
14140
|
dataIndex: 'specName',
|
|
13794
14141
|
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
13795
|
-
width: 250
|
|
14142
|
+
width: 250,
|
|
14143
|
+
render: function render(text) {
|
|
14144
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14145
|
+
val: text
|
|
14146
|
+
});
|
|
14147
|
+
}
|
|
13796
14148
|
}, {
|
|
13797
14149
|
dataIndex: 'orderPrice',
|
|
13798
|
-
title: "\
|
|
14150
|
+
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
14151
|
+
render: function render(val, record) {
|
|
14152
|
+
return (record.num || record.num === 0) && (val || val === 0) ? Number(val * record.num).toFixed(2) : null;
|
|
14153
|
+
},
|
|
13799
14154
|
width: 200
|
|
13800
14155
|
}, {
|
|
13801
14156
|
dataIndex: 'num',
|
|
@@ -13828,8 +14183,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13828
14183
|
dataIndex: 'goodName',
|
|
13829
14184
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13830
14185
|
align: 'center',
|
|
13831
|
-
|
|
13832
|
-
|
|
14186
|
+
width: 250,
|
|
14187
|
+
render: function render(text) {
|
|
14188
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14189
|
+
val: text
|
|
14190
|
+
});
|
|
14191
|
+
}
|
|
13833
14192
|
}, {
|
|
13834
14193
|
dataIndex: 'specId',
|
|
13835
14194
|
title: "".concat(text, "SKUID"),
|
|
@@ -13846,14 +14205,21 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13846
14205
|
dataIndex: 'specName',
|
|
13847
14206
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13848
14207
|
align: 'center',
|
|
13849
|
-
|
|
13850
|
-
|
|
14208
|
+
width: 250,
|
|
14209
|
+
render: function render(text) {
|
|
14210
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14211
|
+
val: text
|
|
14212
|
+
});
|
|
14213
|
+
}
|
|
13851
14214
|
}, {
|
|
13852
14215
|
dataIndex: 'orderPrice',
|
|
13853
|
-
title: "\
|
|
14216
|
+
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
13854
14217
|
align: 'center',
|
|
13855
14218
|
ellipsis: true,
|
|
13856
|
-
width: 100
|
|
14219
|
+
width: 100,
|
|
14220
|
+
render: function render(val, record) {
|
|
14221
|
+
return (record.num || record.num === 0) && (val || val === 0) ? Number(val * record.num).toFixed(2) : null;
|
|
14222
|
+
}
|
|
13857
14223
|
}, {
|
|
13858
14224
|
dataIndex: 'num',
|
|
13859
14225
|
title: "".concat(text, "\u6570\u91CF"),
|
|
@@ -13915,8 +14281,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13915
14281
|
dataIndex: 'goodName',
|
|
13916
14282
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13917
14283
|
align: 'center',
|
|
13918
|
-
|
|
13919
|
-
|
|
14284
|
+
width: 250,
|
|
14285
|
+
render: function render(text) {
|
|
14286
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14287
|
+
val: text
|
|
14288
|
+
});
|
|
14289
|
+
}
|
|
13920
14290
|
}, {
|
|
13921
14291
|
dataIndex: 'specId',
|
|
13922
14292
|
title: "".concat(text, "SKUID"),
|
|
@@ -13933,8 +14303,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13933
14303
|
dataIndex: 'specName',
|
|
13934
14304
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13935
14305
|
align: 'center',
|
|
13936
|
-
|
|
13937
|
-
|
|
14306
|
+
width: 250,
|
|
14307
|
+
render: function render(text) {
|
|
14308
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14309
|
+
val: text
|
|
14310
|
+
});
|
|
14311
|
+
}
|
|
13938
14312
|
}, {
|
|
13939
14313
|
dataIndex: 'num',
|
|
13940
14314
|
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
@@ -14039,8 +14413,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14039
14413
|
dataIndex: 'goodName',
|
|
14040
14414
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
14041
14415
|
align: 'center',
|
|
14042
|
-
|
|
14043
|
-
|
|
14416
|
+
width: 250,
|
|
14417
|
+
render: function render(text) {
|
|
14418
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14419
|
+
val: text
|
|
14420
|
+
});
|
|
14421
|
+
}
|
|
14044
14422
|
}, {
|
|
14045
14423
|
dataIndex: 'specId',
|
|
14046
14424
|
title: "".concat(text, "SKUID"),
|
|
@@ -14057,8 +14435,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14057
14435
|
dataIndex: 'specName',
|
|
14058
14436
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
14059
14437
|
align: 'center',
|
|
14060
|
-
|
|
14061
|
-
|
|
14438
|
+
width: 250,
|
|
14439
|
+
render: function render(text) {
|
|
14440
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14441
|
+
val: text
|
|
14442
|
+
});
|
|
14443
|
+
}
|
|
14062
14444
|
}, {
|
|
14063
14445
|
dataIndex: 'num',
|
|
14064
14446
|
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
@@ -14149,6 +14531,10 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14149
14531
|
};
|
|
14150
14532
|
};
|
|
14151
14533
|
|
|
14534
|
+
var getYesOrNo = function getYesOrNo(val) {
|
|
14535
|
+
if (isNull(val)) return null;
|
|
14536
|
+
return val ? '是' : '否';
|
|
14537
|
+
};
|
|
14152
14538
|
var getColumns$3 = function getColumns(_ref) {
|
|
14153
14539
|
var _ref$text = _ref.text,
|
|
14154
14540
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -14157,26 +14543,50 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14157
14543
|
return {
|
|
14158
14544
|
//万里牛商品信息
|
|
14159
14545
|
WLN_GOODS: [{
|
|
14546
|
+
dataIndex: 'wlnItemName',
|
|
14547
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
14548
|
+
align: 'center',
|
|
14549
|
+
ellipsis: true,
|
|
14550
|
+
width: 250
|
|
14551
|
+
}, {
|
|
14552
|
+
dataIndex: 'goodsCode',
|
|
14553
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
14554
|
+
align: 'center',
|
|
14555
|
+
ellipsis: true,
|
|
14556
|
+
width: 250
|
|
14557
|
+
}, {
|
|
14558
|
+
dataIndex: 'skuCode',
|
|
14559
|
+
title: "sku\u7F16\u7801",
|
|
14560
|
+
align: 'center',
|
|
14561
|
+
ellipsis: true,
|
|
14562
|
+
width: 250
|
|
14563
|
+
}, {
|
|
14160
14564
|
dataIndex: 'skuName',
|
|
14161
|
-
title: "
|
|
14565
|
+
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
14162
14566
|
align: 'center',
|
|
14163
14567
|
ellipsis: true,
|
|
14164
14568
|
width: 250
|
|
14569
|
+
}, {
|
|
14570
|
+
dataIndex: 'olnSkuCode',
|
|
14571
|
+
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
14572
|
+
align: 'center',
|
|
14573
|
+
ellipsis: true,
|
|
14574
|
+
width: 150
|
|
14165
14575
|
}, {
|
|
14166
14576
|
dataIndex: 'sku',
|
|
14167
|
-
title: "
|
|
14577
|
+
title: "\u7EBF\u4E0Asku id",
|
|
14168
14578
|
align: 'center',
|
|
14169
14579
|
ellipsis: true,
|
|
14170
|
-
width:
|
|
14580
|
+
width: 150
|
|
14171
14581
|
}, {
|
|
14172
14582
|
dataIndex: 'name',
|
|
14173
|
-
title: "
|
|
14583
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
14174
14584
|
align: 'center',
|
|
14175
14585
|
ellipsis: true,
|
|
14176
14586
|
width: 250
|
|
14177
14587
|
}, {
|
|
14178
14588
|
dataIndex: 'pic',
|
|
14179
|
-
title: "\u56FE\u7247",
|
|
14589
|
+
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
14180
14590
|
align: 'center',
|
|
14181
14591
|
ellipsis: true,
|
|
14182
14592
|
width: 100,
|
|
@@ -14186,12 +14596,24 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14186
14596
|
src: val
|
|
14187
14597
|
});
|
|
14188
14598
|
}
|
|
14599
|
+
}, {
|
|
14600
|
+
dataIndex: 'olnItemCOde',
|
|
14601
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
14602
|
+
align: 'center',
|
|
14603
|
+
ellipsis: true,
|
|
14604
|
+
width: 150
|
|
14189
14605
|
}, {
|
|
14190
14606
|
dataIndex: 'code',
|
|
14191
|
-
title: "
|
|
14607
|
+
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
14192
14608
|
align: 'center',
|
|
14193
14609
|
ellipsis: true,
|
|
14194
|
-
width:
|
|
14610
|
+
width: 150
|
|
14611
|
+
}, {
|
|
14612
|
+
dataIndex: 'barCode',
|
|
14613
|
+
title: "\u5546\u54C1\u6761\u7801",
|
|
14614
|
+
align: 'center',
|
|
14615
|
+
ellipsis: true,
|
|
14616
|
+
width: 150
|
|
14195
14617
|
}, {
|
|
14196
14618
|
dataIndex: 'money',
|
|
14197
14619
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
@@ -14219,7 +14641,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14219
14641
|
}
|
|
14220
14642
|
}, {
|
|
14221
14643
|
dataIndex: 'share',
|
|
14222
|
-
title: "\
|
|
14644
|
+
title: "\u5E94\u6536\u6B3E",
|
|
14223
14645
|
align: 'center',
|
|
14224
14646
|
ellipsis: true,
|
|
14225
14647
|
width: 70
|
|
@@ -14229,6 +14651,27 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14229
14651
|
align: 'center',
|
|
14230
14652
|
ellipsis: true,
|
|
14231
14653
|
width: 100
|
|
14654
|
+
}, {
|
|
14655
|
+
dataIndex: 'isPackage',
|
|
14656
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
14657
|
+
align: 'center',
|
|
14658
|
+
ellipsis: true,
|
|
14659
|
+
render: function render(val, record, index) {
|
|
14660
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
14661
|
+
value: val,
|
|
14662
|
+
onChange: function onChange(value) {
|
|
14663
|
+
updateHandle(value, index, 'isGift');
|
|
14664
|
+
},
|
|
14665
|
+
options: [{
|
|
14666
|
+
label: '是',
|
|
14667
|
+
value: true
|
|
14668
|
+
}, {
|
|
14669
|
+
label: '否',
|
|
14670
|
+
value: false
|
|
14671
|
+
}]
|
|
14672
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14673
|
+
},
|
|
14674
|
+
width: 100
|
|
14232
14675
|
}]
|
|
14233
14676
|
};
|
|
14234
14677
|
};
|
|
@@ -14238,7 +14681,7 @@ var isNumberOrNumberString = function isNumberOrNumberString(value) {
|
|
|
14238
14681
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
14239
14682
|
return false;
|
|
14240
14683
|
};
|
|
14241
|
-
var getYesOrNo = function getYesOrNo(val) {
|
|
14684
|
+
var getYesOrNo$1 = function getYesOrNo(val) {
|
|
14242
14685
|
if (isNull(val)) return null;
|
|
14243
14686
|
return val ? '是' : '否';
|
|
14244
14687
|
};
|
|
@@ -14339,7 +14782,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14339
14782
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
14340
14783
|
width: 150,
|
|
14341
14784
|
render: function render(val) {
|
|
14342
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14785
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14343
14786
|
}
|
|
14344
14787
|
}, {
|
|
14345
14788
|
dataIndex: 'isGift',
|
|
@@ -14358,7 +14801,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14358
14801
|
label: '否',
|
|
14359
14802
|
value: 0
|
|
14360
14803
|
}]
|
|
14361
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14804
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14362
14805
|
}
|
|
14363
14806
|
}, {
|
|
14364
14807
|
dataIndex: 'skuNote',
|
|
@@ -14400,7 +14843,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14400
14843
|
title: "\u6570\u91CF",
|
|
14401
14844
|
width: 100,
|
|
14402
14845
|
render: function render(val, record, index) {
|
|
14403
|
-
return
|
|
14846
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14404
14847
|
style: {
|
|
14405
14848
|
width: 70
|
|
14406
14849
|
},
|
|
@@ -14421,7 +14864,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14421
14864
|
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
14422
14865
|
width: 150,
|
|
14423
14866
|
render: function render(val, record, index) {
|
|
14424
|
-
return
|
|
14867
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14425
14868
|
style: {
|
|
14426
14869
|
width: 130
|
|
14427
14870
|
},
|
|
@@ -14465,7 +14908,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14465
14908
|
label: '否',
|
|
14466
14909
|
value: 0
|
|
14467
14910
|
}]
|
|
14468
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14911
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14469
14912
|
}
|
|
14470
14913
|
}].map(function (item) {
|
|
14471
14914
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -14503,7 +14946,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14503
14946
|
title: "\u6570\u91CF",
|
|
14504
14947
|
width: 100,
|
|
14505
14948
|
render: function render(val, record, index) {
|
|
14506
|
-
return
|
|
14949
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14507
14950
|
style: {
|
|
14508
14951
|
width: 70
|
|
14509
14952
|
},
|
|
@@ -14524,7 +14967,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14524
14967
|
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
14525
14968
|
width: 150,
|
|
14526
14969
|
render: function render(val, record, index) {
|
|
14527
|
-
return
|
|
14970
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14528
14971
|
style: {
|
|
14529
14972
|
width: 130
|
|
14530
14973
|
},
|
|
@@ -14576,7 +15019,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14576
15019
|
label: '否',
|
|
14577
15020
|
value: 0
|
|
14578
15021
|
}]
|
|
14579
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
15022
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14580
15023
|
}
|
|
14581
15024
|
}].map(function (item) {
|
|
14582
15025
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -15167,7 +15610,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
15167
15610
|
};
|
|
15168
15611
|
};
|
|
15169
15612
|
|
|
15170
|
-
var getColumnsMap = function getColumnsMap(args) {
|
|
15613
|
+
var getColumnsMap$1 = function getColumnsMap(args) {
|
|
15171
15614
|
var _ref = args || {},
|
|
15172
15615
|
_ref$text = _ref.text,
|
|
15173
15616
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -15207,8 +15650,8 @@ var getColumnsMap = function getColumnsMap(args) {
|
|
|
15207
15650
|
})['default']
|
|
15208
15651
|
});
|
|
15209
15652
|
};
|
|
15210
|
-
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
15211
|
-
var clone_columnsMap = cloneDeep(getColumnsMap());
|
|
15653
|
+
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15654
|
+
var clone_columnsMap = cloneDeep(getColumnsMap$1());
|
|
15212
15655
|
var newColumns = {};
|
|
15213
15656
|
Object.keys(clone_columnsMap).forEach(function (key) {
|
|
15214
15657
|
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
@@ -15220,7 +15663,7 @@ var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
|
15220
15663
|
});
|
|
15221
15664
|
return newColumns;
|
|
15222
15665
|
};
|
|
15223
|
-
var columnsBaseInfoMap = getColumnsBaseInfo();
|
|
15666
|
+
var columnsBaseInfoMap = getColumnsBaseInfo$1();
|
|
15224
15667
|
|
|
15225
15668
|
var renderFieldMap$1 = {
|
|
15226
15669
|
goodsNumber: function goodsNumber(_ref) {
|
|
@@ -15287,7 +15730,7 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
|
15287
15730
|
var disabled = _ref4.disabled,
|
|
15288
15731
|
updateHandle = _ref4.updateHandle,
|
|
15289
15732
|
operate = _ref4.operate;
|
|
15290
|
-
return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
|
|
15733
|
+
return getColumnsMap$1()['BS_E3_REISSUE_GOODS'].map(function (item) {
|
|
15291
15734
|
var newItem = _objectSpread2({
|
|
15292
15735
|
align: 'center',
|
|
15293
15736
|
ellipsis: true
|
|
@@ -15304,6 +15747,29 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
|
15304
15747
|
});
|
|
15305
15748
|
};
|
|
15306
15749
|
|
|
15750
|
+
function HoverTableRowDeleteIcon(_ref) {
|
|
15751
|
+
var index = _ref.index,
|
|
15752
|
+
hoveredRowIndex = _ref.hoveredRowIndex,
|
|
15753
|
+
handleClick = _ref.handleClick;
|
|
15754
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
15755
|
+
style: {
|
|
15756
|
+
display: hoveredRowIndex === index ? 'none' : 'inline'
|
|
15757
|
+
}
|
|
15758
|
+
}, index + 1), /*#__PURE__*/React.createElement("span", {
|
|
15759
|
+
style: {
|
|
15760
|
+
cursor: 'pointer'
|
|
15761
|
+
},
|
|
15762
|
+
onClick: handleClick,
|
|
15763
|
+
title: "\u5220\u9664"
|
|
15764
|
+
}, /*#__PURE__*/React.createElement(MinusCircleFilled, {
|
|
15765
|
+
style: {
|
|
15766
|
+
fontSize: 18,
|
|
15767
|
+
color: '#1890ff',
|
|
15768
|
+
display: hoveredRowIndex === index ? 'inline' : 'none'
|
|
15769
|
+
}
|
|
15770
|
+
})));
|
|
15771
|
+
}
|
|
15772
|
+
|
|
15307
15773
|
var GoodsModalMap = {
|
|
15308
15774
|
WDT_REISSUE_GOODS: WdtGoodsModal,
|
|
15309
15775
|
WDT_GOODS: WdtGoodsModal,
|
|
@@ -15451,6 +15917,10 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15451
15917
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
15452
15918
|
selectedRowKeys = _useState4[0],
|
|
15453
15919
|
setSelectedRowKeys = _useState4[1];
|
|
15920
|
+
var _useState5 = useState(null),
|
|
15921
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
15922
|
+
hoveredRowIndex = _useState6[0],
|
|
15923
|
+
setHoveredRowIndex = _useState6[1];
|
|
15454
15924
|
useEffect(function () {
|
|
15455
15925
|
setSelectedRowKeys([]);
|
|
15456
15926
|
}, [tableSelect, selectType]);
|
|
@@ -15499,7 +15969,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15499
15969
|
};
|
|
15500
15970
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
15501
15971
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
15502
|
-
var columnsOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
15972
|
+
var columnsOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
15973
|
+
operate: true
|
|
15974
|
+
};
|
|
15503
15975
|
return function (type) {
|
|
15504
15976
|
var columns = [];
|
|
15505
15977
|
switch (type) {
|
|
@@ -15517,7 +15989,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15517
15989
|
case 'GY_REISSUE_GOODS':
|
|
15518
15990
|
case 'GY_RETURN_GOODS':
|
|
15519
15991
|
{
|
|
15520
|
-
columns = getColumnsMap({
|
|
15992
|
+
columns = getColumnsMap$1({
|
|
15521
15993
|
text: text,
|
|
15522
15994
|
disabled: disabled || columnsOptions.disabled,
|
|
15523
15995
|
updateHandle: updateHandle,
|
|
@@ -15544,7 +16016,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15544
16016
|
}
|
|
15545
16017
|
break;
|
|
15546
16018
|
default:
|
|
15547
|
-
columns = getColumnsMap({
|
|
16019
|
+
columns = getColumnsMap$1({
|
|
15548
16020
|
text: text,
|
|
15549
16021
|
disabled: disabled || columnsOptions.disabled,
|
|
15550
16022
|
updateHandle: updateHandle,
|
|
@@ -15586,7 +16058,13 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15586
16058
|
ellipsis: true,
|
|
15587
16059
|
width: 50,
|
|
15588
16060
|
render: function render(val, record, index) {
|
|
15589
|
-
return /*#__PURE__*/React.createElement(
|
|
16061
|
+
return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
16062
|
+
index: index,
|
|
16063
|
+
hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
|
|
16064
|
+
handleClick: function handleClick() {
|
|
16065
|
+
return handleDelete(record, index);
|
|
16066
|
+
}
|
|
16067
|
+
});
|
|
15590
16068
|
}
|
|
15591
16069
|
}].concat(_toConsumableArray(baseInfoColumns));
|
|
15592
16070
|
if (!disabled) {
|
|
@@ -15607,7 +16085,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15607
16085
|
});
|
|
15608
16086
|
}
|
|
15609
16087
|
return columnList;
|
|
15610
|
-
}, [showHeader, value, disabled]);
|
|
16088
|
+
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
15611
16089
|
var orderColumns = useMemo(function () {
|
|
15612
16090
|
var columns = COLUMNS_MAP('', {
|
|
15613
16091
|
operate: false,
|
|
@@ -15803,6 +16281,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15803
16281
|
},
|
|
15804
16282
|
locale: {
|
|
15805
16283
|
emptyText: '暂无数据'
|
|
16284
|
+
},
|
|
16285
|
+
onRow: function onRow(_, index) {
|
|
16286
|
+
return {
|
|
16287
|
+
onMouseEnter: function onMouseEnter() {
|
|
16288
|
+
return setHoveredRowIndex(index);
|
|
16289
|
+
},
|
|
16290
|
+
onMouseLeave: function onMouseLeave() {
|
|
16291
|
+
return setHoveredRowIndex(null);
|
|
16292
|
+
}
|
|
16293
|
+
};
|
|
15806
16294
|
}
|
|
15807
16295
|
})), /*#__PURE__*/React.createElement(TheGoodsModal, {
|
|
15808
16296
|
ref: refModal,
|
|
@@ -15826,11 +16314,12 @@ var BsGoods = function BsGoods(props) {
|
|
|
15826
16314
|
setTableSelect = _useState2[1];
|
|
15827
16315
|
var withInfo = useRef(null);
|
|
15828
16316
|
var valueRef = useRef(null);
|
|
16317
|
+
var tokens = useRef([]);
|
|
15829
16318
|
useEffect(function () {
|
|
15830
16319
|
valueRef.current = value;
|
|
15831
16320
|
}, [value]);
|
|
15832
16321
|
useEffect(function () {
|
|
15833
|
-
pubsub.subscribe('type', function (type, data) {
|
|
16322
|
+
tokens.current = [pubsub.subscribe('type', function (type, data) {
|
|
15834
16323
|
if (disabled) return;
|
|
15835
16324
|
// console.log(type, data);
|
|
15836
16325
|
withInfo.current = {
|
|
@@ -15847,9 +16336,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
15847
16336
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
15848
16337
|
});
|
|
15849
16338
|
}
|
|
15850
|
-
})
|
|
15851
|
-
//补发
|
|
15852
|
-
pubsub.subscribe('reissueType', function (type, data) {
|
|
16339
|
+
}), pubsub.subscribe('reissueType', function (type, data) {
|
|
15853
16340
|
if (disabled) return;
|
|
15854
16341
|
withInfo.current = {
|
|
15855
16342
|
type: type,
|
|
@@ -15869,9 +16356,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
15869
16356
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
15870
16357
|
});
|
|
15871
16358
|
}
|
|
15872
|
-
})
|
|
15873
|
-
//退货
|
|
15874
|
-
pubsub.subscribe('returnType', function (type, data) {
|
|
16359
|
+
}), pubsub.subscribe('returnType', function (type, data) {
|
|
15875
16360
|
if (disabled) return;
|
|
15876
16361
|
withInfo.current = {
|
|
15877
16362
|
type: type,
|
|
@@ -15887,15 +16372,18 @@ var BsGoods = function BsGoods(props) {
|
|
|
15887
16372
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
15888
16373
|
});
|
|
15889
16374
|
}
|
|
15890
|
-
})
|
|
15891
|
-
pubsub.subscribeOnce('changeShopCode', function (type, data) {
|
|
16375
|
+
}), pubsub.subscribeOnce('changeShopCode', function (type, data) {
|
|
15892
16376
|
// console.log(data);
|
|
15893
16377
|
onChange(_objectSpread2(_objectSpread2({}, valueRef === null || valueRef === void 0 ? void 0 : valueRef.current), {}, {
|
|
15894
16378
|
shopCode: data.shopCode
|
|
15895
16379
|
}));
|
|
15896
|
-
});
|
|
16380
|
+
})];
|
|
15897
16381
|
return function () {
|
|
15898
|
-
|
|
16382
|
+
// 清除当前组件所有订阅
|
|
16383
|
+
tokens.current.forEach(function (token) {
|
|
16384
|
+
return pubsub.unsubscribe(token);
|
|
16385
|
+
});
|
|
16386
|
+
tokens.current = [];
|
|
15899
16387
|
};
|
|
15900
16388
|
}, [disabled]);
|
|
15901
16389
|
var _onSelect = function onSelect(list) {
|
|
@@ -15950,7 +16438,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
15950
16438
|
}));
|
|
15951
16439
|
};
|
|
15952
16440
|
|
|
15953
|
-
var _excluded$
|
|
16441
|
+
var _excluded$e = ["value", "onChange", "reasonList", "disabled"];
|
|
15954
16442
|
var BsExchange = function BsExchange(props) {
|
|
15955
16443
|
var _value$bsExchangeType4, _value$bsExchangeType5, _value$bsExchangeType6;
|
|
15956
16444
|
var value = props.value,
|
|
@@ -15958,7 +16446,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
15958
16446
|
_props$reasonList = props.reasonList,
|
|
15959
16447
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
15960
16448
|
disabled = props.disabled,
|
|
15961
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16449
|
+
other = _objectWithoutProperties(props, _excluded$e);
|
|
15962
16450
|
var valueRef = useRef({});
|
|
15963
16451
|
useEffect(function () {
|
|
15964
16452
|
valueRef.current = value;
|
|
@@ -16185,7 +16673,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16185
16673
|
}))) : null);
|
|
16186
16674
|
};
|
|
16187
16675
|
|
|
16188
|
-
var _excluded$
|
|
16676
|
+
var _excluded$f = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
16189
16677
|
var typeMap = {
|
|
16190
16678
|
BS_REISSUE_GOODS: {
|
|
16191
16679
|
key: 'bsReissueGoods',
|
|
@@ -16210,7 +16698,7 @@ var BsReissue = function BsReissue(props) {
|
|
|
16210
16698
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16211
16699
|
disabled = props.disabled,
|
|
16212
16700
|
type = props.type,
|
|
16213
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16701
|
+
other = _objectWithoutProperties(props, _excluded$f);
|
|
16214
16702
|
var valueRef = useRef({});
|
|
16215
16703
|
useEffect(function () {
|
|
16216
16704
|
var _typeMap$type;
|
|
@@ -16326,14 +16814,14 @@ var BsReissue = function BsReissue(props) {
|
|
|
16326
16814
|
})));
|
|
16327
16815
|
};
|
|
16328
16816
|
|
|
16329
|
-
var _excluded$
|
|
16817
|
+
var _excluded$g = ["value", "onChange", "reasonList", "disabled"];
|
|
16330
16818
|
var BsReturnGoods = function BsReturnGoods(props) {
|
|
16331
16819
|
var value = props.value,
|
|
16332
16820
|
onChange = props.onChange,
|
|
16333
16821
|
_props$reasonList = props.reasonList,
|
|
16334
16822
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16335
16823
|
disabled = props.disabled,
|
|
16336
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16824
|
+
other = _objectWithoutProperties(props, _excluded$g);
|
|
16337
16825
|
var valueRef = useRef({});
|
|
16338
16826
|
useEffect(function () {
|
|
16339
16827
|
pubsub.subscribe('returnSelectList', function (_, data) {
|
|
@@ -16559,12 +17047,7 @@ var getJstOrderListSingleton = function getJstOrderListSingleton(orderNo) {
|
|
|
16559
17047
|
// singletonMap.delete(orderNo);
|
|
16560
17048
|
reject(err);
|
|
16561
17049
|
};
|
|
16562
|
-
|
|
16563
|
-
method: 'post',
|
|
16564
|
-
data: {
|
|
16565
|
-
soId: orderNo
|
|
16566
|
-
}
|
|
16567
|
-
}).then(function (data) {
|
|
17050
|
+
servers.JST.jstOrderDetailWrap(orderNo).then(function (data) {
|
|
16568
17051
|
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
16569
17052
|
data.data = filterJstOrders({
|
|
16570
17053
|
orderList: (data === null || data === void 0 ? void 0 : data.data) || []
|
|
@@ -16574,7 +17057,28 @@ var getJstOrderListSingleton = function getJstOrderListSingleton(orderNo) {
|
|
|
16574
17057
|
doReject(data);
|
|
16575
17058
|
}
|
|
16576
17059
|
}).catch(doReject);
|
|
17060
|
+
// request('/qy/gdfw/jst/erp/orderOut/list', {
|
|
17061
|
+
// method: 'post',
|
|
17062
|
+
// data: {
|
|
17063
|
+
// soId: orderNo,
|
|
17064
|
+
// },
|
|
17065
|
+
// })
|
|
17066
|
+
// .then((data) => {
|
|
17067
|
+
// if (data?.success) {
|
|
17068
|
+
// data.data = filterJstOrders(
|
|
17069
|
+
// {
|
|
17070
|
+
// orderList: data?.data || [],
|
|
17071
|
+
// },
|
|
17072
|
+
// orderNo,
|
|
17073
|
+
// );
|
|
17074
|
+
// resolve(data.data);
|
|
17075
|
+
// } else {
|
|
17076
|
+
// doReject(data);
|
|
17077
|
+
// }
|
|
17078
|
+
// })
|
|
17079
|
+
// .catch(doReject);
|
|
16577
17080
|
});
|
|
17081
|
+
|
|
16578
17082
|
singletonMap$3.set(orderNo, p);
|
|
16579
17083
|
}
|
|
16580
17084
|
return singletonMap$3.get(orderNo);
|
|
@@ -16630,7 +17134,7 @@ var kmUtils = {
|
|
|
16630
17134
|
getOrderListSingleton: getOrderListSingleton
|
|
16631
17135
|
};
|
|
16632
17136
|
|
|
16633
|
-
var _excluded$
|
|
17137
|
+
var _excluded$h = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16634
17138
|
var columnsMap = {
|
|
16635
17139
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16636
17140
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16649,14 +17153,16 @@ var rowKeyMap = {
|
|
|
16649
17153
|
GY_SYSTEM_ORDER: 'billNo',
|
|
16650
17154
|
JST_SYSTEM_ORDER: 'oId'
|
|
16651
17155
|
};
|
|
16652
|
-
var index$
|
|
17156
|
+
var index$3 = (function (props) {
|
|
16653
17157
|
var value = props.value,
|
|
16654
17158
|
_onChange = props.onChange,
|
|
16655
17159
|
disabled = props.disabled,
|
|
16656
17160
|
type = props.type;
|
|
16657
17161
|
var onceRef = useRef(false);
|
|
17162
|
+
var valueRef = useRef(null);
|
|
16658
17163
|
useEffect(function () {
|
|
16659
17164
|
var _value$orders, _value$showOrderInfo;
|
|
17165
|
+
valueRef.current = value;
|
|
16660
17166
|
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length) && !onceRef.current) {
|
|
16661
17167
|
onceRef.current = true;
|
|
16662
17168
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -16682,7 +17188,7 @@ var index$1 = (function (props) {
|
|
|
16682
17188
|
}, [type]);
|
|
16683
17189
|
var getOrderList = /*#__PURE__*/function () {
|
|
16684
17190
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
16685
|
-
var _yield$request, success, data;
|
|
17191
|
+
var _yield$request, success, data, _valueRef$current;
|
|
16686
17192
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16687
17193
|
while (1) switch (_context.prev = _context.next) {
|
|
16688
17194
|
case 0:
|
|
@@ -16698,7 +17204,7 @@ var index$1 = (function (props) {
|
|
|
16698
17204
|
success = _yield$request.success;
|
|
16699
17205
|
data = _yield$request.data;
|
|
16700
17206
|
if (success) {
|
|
16701
|
-
_onChange(_objectSpread2(_objectSpread2({},
|
|
17207
|
+
_onChange(_objectSpread2(_objectSpread2({}, (_valueRef$current = valueRef.current) !== null && _valueRef$current !== void 0 ? _valueRef$current : {}), {}, {
|
|
16702
17208
|
orders: (data === null || data === void 0 ? void 0 : data.orders) || [],
|
|
16703
17209
|
showOrderInfo: data === null || data === void 0 ? void 0 : data.orders.map(function (item) {
|
|
16704
17210
|
return {
|
|
@@ -16726,7 +17232,7 @@ var index$1 = (function (props) {
|
|
|
16726
17232
|
}();
|
|
16727
17233
|
var getWlnOrderList = /*#__PURE__*/function () {
|
|
16728
17234
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(orderNo) {
|
|
16729
|
-
var _yield$request2, success, data;
|
|
17235
|
+
var _yield$request2, success, data, _valueRef$current2;
|
|
16730
17236
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16731
17237
|
while (1) switch (_context2.prev = _context2.next) {
|
|
16732
17238
|
case 0:
|
|
@@ -16742,7 +17248,7 @@ var index$1 = (function (props) {
|
|
|
16742
17248
|
success = _yield$request2.success;
|
|
16743
17249
|
data = _yield$request2.data;
|
|
16744
17250
|
if (success) {
|
|
16745
|
-
_onChange(_objectSpread2(_objectSpread2({},
|
|
17251
|
+
_onChange(_objectSpread2(_objectSpread2({}, (_valueRef$current2 = valueRef.current) !== null && _valueRef$current2 !== void 0 ? _valueRef$current2 : {}), {}, {
|
|
16746
17252
|
orders: data === null || data === void 0 ? void 0 : data.orders.map(function (item) {
|
|
16747
17253
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16748
17254
|
billNo: item.tradeNo,
|
|
@@ -16779,7 +17285,7 @@ var index$1 = (function (props) {
|
|
|
16779
17285
|
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
16780
17286
|
return (item.srcTid || '').split(',').includes(orderNo);
|
|
16781
17287
|
});
|
|
16782
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({},
|
|
17288
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
16783
17289
|
orders: trades,
|
|
16784
17290
|
showOrderInfo: trades.map(function (_ref4) {
|
|
16785
17291
|
var billNo = _ref4.billNo,
|
|
@@ -16813,7 +17319,7 @@ var index$1 = (function (props) {
|
|
|
16813
17319
|
var trades = ((data === null || data === void 0 ? void 0 : data.orderList) || []).filter(function (item) {
|
|
16814
17320
|
return (item === null || item === void 0 ? void 0 : item.dealCode) === orderNo;
|
|
16815
17321
|
});
|
|
16816
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({},
|
|
17322
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
16817
17323
|
orders: trades,
|
|
16818
17324
|
showOrderInfo: trades
|
|
16819
17325
|
}));
|
|
@@ -16836,7 +17342,7 @@ var index$1 = (function (props) {
|
|
|
16836
17342
|
case 0:
|
|
16837
17343
|
jstUtils.getJstOrderListSingleton(orderNo).then(function (data) {
|
|
16838
17344
|
var trades = data || [];
|
|
16839
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({},
|
|
17345
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
16840
17346
|
orders: trades,
|
|
16841
17347
|
showOrderInfo: trades
|
|
16842
17348
|
}));
|
|
@@ -16858,7 +17364,7 @@ var index$1 = (function (props) {
|
|
|
16858
17364
|
while (1) switch (_context6.prev = _context6.next) {
|
|
16859
17365
|
case 0:
|
|
16860
17366
|
kmUtils.getOrderListSingleton(orderNo).then(function (trades) {
|
|
16861
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({},
|
|
17367
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
16862
17368
|
orders: trades,
|
|
16863
17369
|
showOrderInfo: trades.map(function (_ref8) {
|
|
16864
17370
|
var billNo = _ref8.billNo,
|
|
@@ -16892,7 +17398,7 @@ var index$1 = (function (props) {
|
|
|
16892
17398
|
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
16893
17399
|
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
16894
17400
|
});
|
|
16895
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({},
|
|
17401
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
16896
17402
|
orders: trades,
|
|
16897
17403
|
showOrderInfo: trades.map(function (_ref10) {
|
|
16898
17404
|
var billNo = _ref10.billNo,
|
|
@@ -16902,7 +17408,7 @@ var index$1 = (function (props) {
|
|
|
16902
17408
|
deliveryState = _ref10.deliveryState,
|
|
16903
17409
|
vipCode = _ref10.vipCode,
|
|
16904
17410
|
shopCode = _ref10.shopCode,
|
|
16905
|
-
rest = _objectWithoutProperties(_ref10, _excluded$
|
|
17411
|
+
rest = _objectWithoutProperties(_ref10, _excluded$h);
|
|
16906
17412
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
16907
17413
|
billNo: billNo,
|
|
16908
17414
|
billType: billType,
|
|
@@ -17119,6 +17625,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17119
17625
|
setTableSelect = _useState2[1];
|
|
17120
17626
|
var withInfo = useRef(null);
|
|
17121
17627
|
var valueRef = useRef(null);
|
|
17628
|
+
var tokens = useRef([]);
|
|
17122
17629
|
useEffect(function () {
|
|
17123
17630
|
var _value$orders;
|
|
17124
17631
|
valueRef.current = value;
|
|
@@ -17134,9 +17641,10 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17134
17641
|
case 0:
|
|
17135
17642
|
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
17136
17643
|
var orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (trade) {
|
|
17137
|
-
|
|
17644
|
+
var _valueRef$current;
|
|
17645
|
+
return (((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.selectIds) || []).includes(trade.tradeNo);
|
|
17138
17646
|
});
|
|
17139
|
-
onChange(_objectSpread2(_objectSpread2({},
|
|
17647
|
+
onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
17140
17648
|
orders: orders
|
|
17141
17649
|
}));
|
|
17142
17650
|
});
|
|
@@ -17151,7 +17659,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17151
17659
|
};
|
|
17152
17660
|
}();
|
|
17153
17661
|
useEffect(function () {
|
|
17154
|
-
pubsub.subscribe(componentMap$1[compType].eventNameMap.type, function (type, data) {
|
|
17662
|
+
tokens.current = [pubsub.subscribe(componentMap$1[compType].eventNameMap.type, function (type, data) {
|
|
17155
17663
|
if (disabled) return;
|
|
17156
17664
|
// console.log(type, data);
|
|
17157
17665
|
withInfo.current = {
|
|
@@ -17161,16 +17669,14 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17161
17669
|
};
|
|
17162
17670
|
setTableSelect(['2', '4'].includes(data.val));
|
|
17163
17671
|
if (['1', '3'].includes(data.val)) {
|
|
17164
|
-
var _valueRef$
|
|
17672
|
+
var _valueRef$current2, _valueRef$current3;
|
|
17165
17673
|
pubsub.publish(componentMap$1[compType].eventNameMap.selectListReturn, {
|
|
17166
|
-
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17167
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17674
|
+
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2[componentMap$1[compType].key]) || []),
|
|
17675
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3.shopCode,
|
|
17168
17676
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
17169
17677
|
});
|
|
17170
17678
|
}
|
|
17171
|
-
})
|
|
17172
|
-
//补发
|
|
17173
|
-
pubsub.subscribe(componentMap$1[compType].eventNameMap.reissueType, function (type, data) {
|
|
17679
|
+
}), pubsub.subscribe(componentMap$1[compType].eventNameMap.reissueType, function (type, data) {
|
|
17174
17680
|
if (disabled) return;
|
|
17175
17681
|
withInfo.current = {
|
|
17176
17682
|
type: type,
|
|
@@ -17179,16 +17685,14 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17179
17685
|
};
|
|
17180
17686
|
setTableSelect(['2', '4'].includes(data.val));
|
|
17181
17687
|
if (['1', '3'].includes(data.val)) {
|
|
17182
|
-
var _valueRef$
|
|
17688
|
+
var _valueRef$current4, _valueRef$current5;
|
|
17183
17689
|
pubsub.publish(componentMap$1[compType].eventNameMap.reissueSelectListReturn, {
|
|
17184
|
-
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17185
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17690
|
+
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current4 = valueRef.current) === null || _valueRef$current4 === void 0 ? void 0 : _valueRef$current4[componentMap$1[compType].key]) || []),
|
|
17691
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5.shopCode,
|
|
17186
17692
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
17187
17693
|
});
|
|
17188
17694
|
}
|
|
17189
|
-
})
|
|
17190
|
-
//退货
|
|
17191
|
-
pubsub.subscribe(componentMap$1[compType].eventNameMap.returnType, function (type, data) {
|
|
17695
|
+
}), pubsub.subscribe(componentMap$1[compType].eventNameMap.returnType, function (type, data) {
|
|
17192
17696
|
if (disabled) return;
|
|
17193
17697
|
withInfo.current = {
|
|
17194
17698
|
type: type,
|
|
@@ -17197,26 +17701,29 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17197
17701
|
};
|
|
17198
17702
|
setTableSelect(['2', '4'].includes(data.val));
|
|
17199
17703
|
if (['1', '3'].includes(data.val)) {
|
|
17200
|
-
var _valueRef$
|
|
17704
|
+
var _valueRef$current6, _valueRef$current7;
|
|
17201
17705
|
pubsub.publish(componentMap$1[compType].eventNameMap.returnSelectListReturn, {
|
|
17202
|
-
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17203
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17706
|
+
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6[componentMap$1[compType].key]) || []),
|
|
17707
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current7 = valueRef.current) === null || _valueRef$current7 === void 0 ? void 0 : _valueRef$current7.shopCode,
|
|
17204
17708
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
17205
17709
|
});
|
|
17206
17710
|
}
|
|
17207
|
-
})
|
|
17208
|
-
pubsub.subscribeOnce(componentMap$1[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
17711
|
+
}), pubsub.subscribeOnce(componentMap$1[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
17209
17712
|
// console.log(data);
|
|
17210
17713
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, valueRef === null || valueRef === void 0 ? void 0 : valueRef.current), {}, {
|
|
17211
17714
|
shopCode: data.shopCode
|
|
17212
17715
|
}));
|
|
17213
|
-
});
|
|
17716
|
+
})];
|
|
17214
17717
|
return function () {
|
|
17215
|
-
|
|
17718
|
+
// 清除当前组件所有订阅
|
|
17719
|
+
tokens.current.forEach(function (token) {
|
|
17720
|
+
return pubsub.unsubscribe(token);
|
|
17721
|
+
});
|
|
17722
|
+
tokens.current = [];
|
|
17216
17723
|
};
|
|
17217
17724
|
}, [disabled]);
|
|
17218
17725
|
var _onSelect = function onSelect(list) {
|
|
17219
|
-
var _typeMap, _withInfo$current, _withInfo$current2, _valueRef$
|
|
17726
|
+
var _typeMap, _withInfo$current, _withInfo$current2, _valueRef$current8;
|
|
17220
17727
|
if (disabled) return;
|
|
17221
17728
|
var newList = cloneDeep(list);
|
|
17222
17729
|
var typeMap = (_typeMap = {
|
|
@@ -17233,7 +17740,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17233
17740
|
item.canDelete = true;
|
|
17234
17741
|
return item;
|
|
17235
17742
|
}),
|
|
17236
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17743
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current8 = valueRef.current) === null || _valueRef$current8 === void 0 ? void 0 : _valueRef$current8.shopCode,
|
|
17237
17744
|
goodValue: withInfo.current.goodValue
|
|
17238
17745
|
});
|
|
17239
17746
|
};
|
|
@@ -17608,7 +18115,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17608
18115
|
})));
|
|
17609
18116
|
};
|
|
17610
18117
|
|
|
17611
|
-
var _excluded$
|
|
18118
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17612
18119
|
var typeMap$1 = {
|
|
17613
18120
|
WDT_REISSUE_GOODS: {
|
|
17614
18121
|
key: 'wdtReissueGoods',
|
|
@@ -17629,14 +18136,14 @@ var typeMap$1 = {
|
|
|
17629
18136
|
}
|
|
17630
18137
|
};
|
|
17631
18138
|
var wdtReissue = function wdtReissue(props) {
|
|
17632
|
-
var _value$wdtSystemOrder, _typeMap$
|
|
18139
|
+
var _value$wdtSystemOrder, _typeMap$type24, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s5, _typeMap$type28, _typeMap$type29, _typeMap$type30;
|
|
17633
18140
|
var value = props.value,
|
|
17634
18141
|
onChange = props.onChange,
|
|
17635
18142
|
_props$reasonList = props.reasonList,
|
|
17636
18143
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17637
18144
|
disabled = props.disabled,
|
|
17638
18145
|
type = props.type,
|
|
17639
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18146
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17640
18147
|
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
|
|
17641
18148
|
var _order$srcTid;
|
|
17642
18149
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -17646,8 +18153,10 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17646
18153
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17647
18154
|
isStrict = _useState2[0],
|
|
17648
18155
|
setIsStrict = _useState2[1];
|
|
18156
|
+
var valueRef = useRef(null);
|
|
17649
18157
|
useEffect(function () {
|
|
17650
18158
|
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
18159
|
+
valueRef.current = value;
|
|
17651
18160
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$1[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$1[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|
|
17652
18161
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
17653
18162
|
getOrderFlag.current = true;
|
|
@@ -17692,7 +18201,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17692
18201
|
while (1) switch (_context.prev = _context.next) {
|
|
17693
18202
|
case 0:
|
|
17694
18203
|
(_typeMap$type4 = typeMap$1[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
17695
|
-
var _typeMap$type5, _typeMap$type6;
|
|
18204
|
+
var _typeMap$type5, _ref3, _typeMap$type6;
|
|
17696
18205
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
17697
18206
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
17698
18207
|
var billNo = _ref2.billNo,
|
|
@@ -17704,7 +18213,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17704
18213
|
billTag: billTag
|
|
17705
18214
|
};
|
|
17706
18215
|
});
|
|
17707
|
-
onChange(_objectSpread2(_objectSpread2({},
|
|
18216
|
+
onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type5 = typeMap$1[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type6 = typeMap$1[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) || {}), {}, {
|
|
17708
18217
|
showOrderInfo: showOrderInfo,
|
|
17709
18218
|
orders: orders
|
|
17710
18219
|
}))));
|
|
@@ -17747,10 +18256,10 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17747
18256
|
mode: mode
|
|
17748
18257
|
}))));
|
|
17749
18258
|
};
|
|
17750
|
-
var getGoodDetails = function getGoodDetails(
|
|
18259
|
+
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
17751
18260
|
var _typeMap$type13, _typeMap$type14, _order$goodDetails;
|
|
17752
|
-
var mode =
|
|
17753
|
-
sysOrderNo =
|
|
18261
|
+
var mode = _ref4.mode,
|
|
18262
|
+
sysOrderNo = _ref4.sysOrderNo;
|
|
17754
18263
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type13 = typeMap$1[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrder];
|
|
17755
18264
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type14 = typeMap$1[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrderNo];
|
|
17756
18265
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -17764,25 +18273,19 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17764
18273
|
};
|
|
17765
18274
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
17766
18275
|
var _typeMap$type15;
|
|
17767
|
-
var newValue = _objectSpread2({}, value);
|
|
17768
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key)] = (val || []).map(function (item) {
|
|
17769
|
-
var _typeMap$type16, _typeMap$type17;
|
|
17770
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.formatDefaultField.money)] = 0;
|
|
17771
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type17 = typeMap$1[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.formatDefaultField.share)] = 0;
|
|
17772
|
-
return item;
|
|
17773
|
-
});
|
|
18276
|
+
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key, val || []));
|
|
17774
18277
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17775
18278
|
};
|
|
17776
18279
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
17777
|
-
var _typeMap$
|
|
18280
|
+
var _typeMap$type16, _value$typeMap$type$t3, _typeMap$type17, _value$typeMap$type$t4, _typeMap$type19;
|
|
17778
18281
|
var newValue = _objectSpread2({}, value);
|
|
17779
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17780
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
18282
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.systemOrderNo)] = val;
|
|
18283
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type17 = typeMap$1[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
18284
|
+
var _typeMap$type18;
|
|
18285
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type18 = typeMap$1[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key)] = [];
|
|
18286
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type19 = typeMap$1[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
17781
18287
|
var _typeMap$type20;
|
|
17782
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type20 = typeMap$1[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] =
|
|
17783
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type21 = typeMap$1[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
17784
|
-
var _typeMap$type22;
|
|
17785
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = getGoodDetails({
|
|
18288
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type20 = typeMap$1[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = getGoodDetails({
|
|
17786
18289
|
mode: isStrict,
|
|
17787
18290
|
sysOrderNo: val
|
|
17788
18291
|
});
|
|
@@ -17790,25 +18293,25 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17790
18293
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17791
18294
|
};
|
|
17792
18295
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
17793
|
-
var _typeMap$
|
|
18296
|
+
var _typeMap$type21, _typeMap$type22, _uniqBy, _typeMap$type23;
|
|
17794
18297
|
var newValue = _objectSpread2({}, value);
|
|
17795
18298
|
// 原订单商品
|
|
17796
18299
|
var originTradeGoodList = getGoodDetails({
|
|
17797
18300
|
mode: isStrict
|
|
17798
18301
|
}) || [];
|
|
17799
18302
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
17800
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17801
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18303
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type21 = typeMap$1[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key)]) || [];
|
|
18304
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
17802
18305
|
return skuList.includes(item.uuid);
|
|
17803
18306
|
});
|
|
17804
|
-
console.log('商品发生变化', newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18307
|
+
console.log('商品发生变化', newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)]);
|
|
17805
18308
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17806
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18309
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)], isStrict]);
|
|
17807
18310
|
//显示选择商品按钮 原单换不显示选择商品
|
|
17808
18311
|
var showChangeBtn = useMemo(function () {
|
|
17809
|
-
var _typeMap$
|
|
17810
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
17811
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
18312
|
+
var _typeMap$type25;
|
|
18313
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]);
|
|
18314
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo]]);
|
|
17812
18315
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
17813
18316
|
gutter: 8,
|
|
17814
18317
|
wrap: true
|
|
@@ -17826,12 +18329,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17826
18329
|
},
|
|
17827
18330
|
disabled: disabled,
|
|
17828
18331
|
allowClear: false,
|
|
17829
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18332
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo)],
|
|
17830
18333
|
onChange: function onChange(val) {
|
|
17831
18334
|
return changeSystemOrderHandle(val);
|
|
17832
18335
|
},
|
|
17833
18336
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
17834
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
18337
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
17835
18338
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
17836
18339
|
key: item.billNo,
|
|
17837
18340
|
value: item.billNo,
|
|
@@ -17852,7 +18355,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17852
18355
|
disabled: disabled,
|
|
17853
18356
|
allowClear: false,
|
|
17854
18357
|
options: reasonList,
|
|
17855
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18358
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type29 = typeMap$1[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.typeName)],
|
|
17856
18359
|
onChange: function onChange(val) {
|
|
17857
18360
|
return changeTypeHandle(val);
|
|
17858
18361
|
}
|
|
@@ -17864,7 +18367,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17864
18367
|
canUpdateNumber: showChangeBtn,
|
|
17865
18368
|
showChangeBtn: showChangeBtn,
|
|
17866
18369
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
17867
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18370
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type30 = typeMap$1[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.key)],
|
|
17868
18371
|
onChange: function onChange(val) {
|
|
17869
18372
|
return changeGoodHandle(val);
|
|
17870
18373
|
},
|
|
@@ -17880,7 +18383,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17880
18383
|
})));
|
|
17881
18384
|
};
|
|
17882
18385
|
|
|
17883
|
-
var _excluded$
|
|
18386
|
+
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17884
18387
|
var typeMap$2 = {
|
|
17885
18388
|
JST_REISSUE_GOODS: {
|
|
17886
18389
|
compType: '补发',
|
|
@@ -17906,12 +18409,11 @@ var typeMap$2 = {
|
|
|
17906
18409
|
systemOrderBillType: 'jstSystemOrderBillType',
|
|
17907
18410
|
getOrderList: jstUtils.getJstOrderListSingleton,
|
|
17908
18411
|
updateGoodsHandle: updateJstGoodsHandle,
|
|
17909
|
-
alwaysShowChooseErpGoodsBtn:
|
|
18412
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
17910
18413
|
orderTypeKey: 'orderType',
|
|
17911
18414
|
oIdKey: 'oId',
|
|
17912
18415
|
outerOiIdKey: '',
|
|
17913
18416
|
goodDetailsKey: 'items',
|
|
17914
|
-
showErpGoodsBtn: false,
|
|
17915
18417
|
eventNameMap: {
|
|
17916
18418
|
// pubsub 事件
|
|
17917
18419
|
exchangeCopyGood: 'jstExchangeCopyGood',
|
|
@@ -17929,7 +18431,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
17929
18431
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17930
18432
|
disabled = props.disabled,
|
|
17931
18433
|
type = props.type,
|
|
17932
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18434
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
17933
18435
|
var getOrderFlag = useRef(false);
|
|
17934
18436
|
var _useState = useState(false),
|
|
17935
18437
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17976,13 +18478,13 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
17976
18478
|
while (1) switch (_context.prev = _context.next) {
|
|
17977
18479
|
case 0:
|
|
17978
18480
|
(_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
17979
|
-
var _typeMap$type5, _typeMap$type6, _typeMap$type10, _typeMap$type11;
|
|
18481
|
+
var _valueRef$current3, _typeMap$type5, _typeMap$type6, _typeMap$type10, _ref3, _typeMap$type11;
|
|
17980
18482
|
var orders = data || [];
|
|
17981
18483
|
var showOrderInfo = orders.map(function (orderItem) {
|
|
17982
18484
|
return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
|
|
17983
18485
|
});
|
|
17984
18486
|
var typeObj = {};
|
|
17985
|
-
var systemOrderNo =
|
|
18487
|
+
var systemOrderNo = valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3[(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrderNo];
|
|
17986
18488
|
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type6 = typeMap$2[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrderBillType) {
|
|
17987
18489
|
var _typeMap$type8, _typeMap$type9;
|
|
17988
18490
|
var targetOrder = orders.find(function (oItem) {
|
|
@@ -17991,7 +18493,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
17991
18493
|
});
|
|
17992
18494
|
typeObj[(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type9 = typeMap$2[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.orderTypeKey];
|
|
17993
18495
|
}
|
|
17994
|
-
onChange(_objectSpread2(_objectSpread2(_objectSpread2({},
|
|
18496
|
+
onChange(_objectSpread2(_objectSpread2(_objectSpread2({}, valueRef.current || {}), typeObj), {}, _defineProperty({}, (_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.systemOrder]) || {}), {}, {
|
|
17995
18497
|
showOrderInfo: showOrderInfo,
|
|
17996
18498
|
orders: orders
|
|
17997
18499
|
}))));
|
|
@@ -18034,10 +18536,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18034
18536
|
mode: mode
|
|
18035
18537
|
}))));
|
|
18036
18538
|
};
|
|
18037
|
-
var getGoodDetails = function getGoodDetails(
|
|
18539
|
+
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
18038
18540
|
var _typeMap$type17, _typeMap$type18, _order$typeMap$type$g, _typeMap$type19;
|
|
18039
|
-
var mode =
|
|
18040
|
-
sysOrderNo =
|
|
18541
|
+
var mode = _ref4.mode,
|
|
18542
|
+
sysOrderNo = _ref4.sysOrderNo;
|
|
18041
18543
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrder];
|
|
18042
18544
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrderNo];
|
|
18043
18545
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -18182,8 +18684,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18182
18684
|
})));
|
|
18183
18685
|
};
|
|
18184
18686
|
|
|
18185
|
-
var css_248z$
|
|
18186
|
-
styleInject(css_248z$
|
|
18687
|
+
var css_248z$b = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
18688
|
+
styleInject(css_248z$b);
|
|
18187
18689
|
|
|
18188
18690
|
var TabPane$1 = Tabs.TabPane;
|
|
18189
18691
|
var Option$2 = Select.Option;
|
|
@@ -18656,14 +19158,14 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18656
19158
|
userNick: userNick
|
|
18657
19159
|
}));
|
|
18658
19160
|
};
|
|
18659
|
-
var index$
|
|
19161
|
+
var index$4 = /*#__PURE__*/forwardRef(Goods$1);
|
|
18660
19162
|
|
|
18661
|
-
var _excluded$
|
|
19163
|
+
var _excluded$k = ["onChange", "value", "failValue"];
|
|
18662
19164
|
function CommonStatus(props) {
|
|
18663
19165
|
var onChange = props.onChange,
|
|
18664
19166
|
value = props.value,
|
|
18665
19167
|
failValue = props.failValue,
|
|
18666
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19168
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18667
19169
|
var changeHandle = function changeHandle(val) {
|
|
18668
19170
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18669
19171
|
status: val,
|
|
@@ -18800,7 +19302,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18800
19302
|
})) : null) : null);
|
|
18801
19303
|
};
|
|
18802
19304
|
|
|
18803
|
-
var _excluded$
|
|
19305
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18804
19306
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18805
19307
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18806
19308
|
var _props$value = props.value,
|
|
@@ -18810,7 +19312,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18810
19312
|
failValue = props.failValue,
|
|
18811
19313
|
_props$type = props.type,
|
|
18812
19314
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18813
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19315
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
18814
19316
|
var _useState = useState(0),
|
|
18815
19317
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18816
19318
|
changeIndex = _useState2[0],
|
|
@@ -18876,7 +19378,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18876
19378
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
18877
19379
|
};
|
|
18878
19380
|
|
|
18879
|
-
var _excluded$
|
|
19381
|
+
var _excluded$m = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18880
19382
|
var MsgStatus = function MsgStatus(props) {
|
|
18881
19383
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18882
19384
|
var _props$value = props.value,
|
|
@@ -18886,7 +19388,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
18886
19388
|
failValue = props.failValue,
|
|
18887
19389
|
_props$type = props.type,
|
|
18888
19390
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18889
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19391
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
18890
19392
|
var _useState = useState(0),
|
|
18891
19393
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18892
19394
|
changeIndex = _useState2[0],
|
|
@@ -18955,7 +19457,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
18955
19457
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
18956
19458
|
};
|
|
18957
19459
|
|
|
18958
|
-
var _excluded$
|
|
19460
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18959
19461
|
var typeMap$3 = {
|
|
18960
19462
|
BS_E3_REISSUE_GOODS: {
|
|
18961
19463
|
key: 'bsE3ReissueGoods',
|
|
@@ -18973,8 +19475,9 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18973
19475
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18974
19476
|
disabled = props.disabled,
|
|
18975
19477
|
type = props.type,
|
|
18976
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19478
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
18977
19479
|
var getOrderFlag = useRef(false);
|
|
19480
|
+
var valueRef = useRef(null);
|
|
18978
19481
|
var _useState = useState(false),
|
|
18979
19482
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18980
19483
|
isStrict = _useState2[0],
|
|
@@ -18982,6 +19485,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18982
19485
|
// TODO: 在修改场景下手动获取一次订单详情中数据
|
|
18983
19486
|
useEffect(function () {
|
|
18984
19487
|
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
19488
|
+
valueRef.current = value;
|
|
18985
19489
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$3[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$3[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|
|
18986
19490
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
18987
19491
|
getOrderFlag.current = true;
|
|
@@ -19010,7 +19514,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19010
19514
|
while (1) switch (_context.prev = _context.next) {
|
|
19011
19515
|
case 0:
|
|
19012
19516
|
(_typeMap$type4 = typeMap$3[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
19013
|
-
var _typeMap$type5, _typeMap$type6;
|
|
19517
|
+
var _typeMap$type5, _ref3, _typeMap$type6;
|
|
19014
19518
|
var orders = (data === null || data === void 0 ? void 0 : data.orderList) || [];
|
|
19015
19519
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
19016
19520
|
var orderSn = _ref2.orderSn;
|
|
@@ -19018,7 +19522,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19018
19522
|
billNo: orderSn
|
|
19019
19523
|
};
|
|
19020
19524
|
});
|
|
19021
|
-
onChange(_objectSpread2(_objectSpread2({},
|
|
19525
|
+
onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type5 = typeMap$3[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type6 = typeMap$3[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) || {}), {}, {
|
|
19022
19526
|
showOrderInfo: showOrderInfo,
|
|
19023
19527
|
orders: orders
|
|
19024
19528
|
}))));
|
|
@@ -19061,10 +19565,10 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19061
19565
|
mode: mode
|
|
19062
19566
|
}))));
|
|
19063
19567
|
};
|
|
19064
|
-
var getGoodDetails = function getGoodDetails(
|
|
19568
|
+
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
19065
19569
|
var _typeMap$type12, _typeMap$type13, _order$orderDetailGet;
|
|
19066
|
-
var mode =
|
|
19067
|
-
sysOrderNo =
|
|
19570
|
+
var mode = _ref4.mode,
|
|
19571
|
+
sysOrderNo = _ref4.sysOrderNo;
|
|
19068
19572
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type12 = typeMap$3[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.systemOrder];
|
|
19069
19573
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type13 = typeMap$3[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrderNo];
|
|
19070
19574
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -19189,7 +19693,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19189
19693
|
})));
|
|
19190
19694
|
};
|
|
19191
19695
|
|
|
19192
|
-
var _excluded$
|
|
19696
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19193
19697
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19194
19698
|
var typeMap$4 = {
|
|
19195
19699
|
GY_REISSUE_GOODS: {
|
|
@@ -19211,25 +19715,26 @@ var typeMap$4 = {
|
|
|
19211
19715
|
}
|
|
19212
19716
|
};
|
|
19213
19717
|
var GyReissue = function GyReissue(props) {
|
|
19214
|
-
var
|
|
19718
|
+
var _typeMap$type28, _typeMap$type30, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
|
|
19215
19719
|
var value = props.value,
|
|
19216
19720
|
onChange = props.onChange,
|
|
19217
19721
|
_props$reasonList = props.reasonList,
|
|
19218
19722
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19219
19723
|
disabled = props.disabled,
|
|
19220
19724
|
type = props.type,
|
|
19221
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19222
|
-
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
});
|
|
19725
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19726
|
+
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19727
|
+
// order?.platformCode?.includes(';'),
|
|
19728
|
+
// );
|
|
19226
19729
|
var getOrderFlag = useRef(false);
|
|
19730
|
+
var valueRef = useRef(null);
|
|
19227
19731
|
var _useState = useState(false),
|
|
19228
19732
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19229
19733
|
isStrict = _useState2[0],
|
|
19230
19734
|
setIsStrict = _useState2[1];
|
|
19231
19735
|
useEffect(function () {
|
|
19232
19736
|
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
19737
|
+
valueRef.current = value;
|
|
19233
19738
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$4[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$4[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|
|
19234
19739
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
19235
19740
|
getOrderFlag.current = true;
|
|
@@ -19244,7 +19749,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19244
19749
|
while (1) switch (_context.prev = _context.next) {
|
|
19245
19750
|
case 0:
|
|
19246
19751
|
(_typeMap$type4 = typeMap$4[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
19247
|
-
var _typeMap$type5, _typeMap$type6;
|
|
19752
|
+
var _typeMap$type5, _ref3, _typeMap$type6, _typeMap$type7, _ref4, _typeMap$type8;
|
|
19248
19753
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
19249
19754
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
19250
19755
|
var billNo = _ref2.billNo,
|
|
@@ -19266,7 +19771,14 @@ var GyReissue = function GyReissue(props) {
|
|
|
19266
19771
|
shopCode: shopCode
|
|
19267
19772
|
});
|
|
19268
19773
|
});
|
|
19269
|
-
|
|
19774
|
+
pushGyLog('getOrderList', {
|
|
19775
|
+
before: valueRef.current,
|
|
19776
|
+
after: _objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type5 = typeMap$4[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type6 = typeMap$4[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) || {}), {}, {
|
|
19777
|
+
showOrderInfo: showOrderInfo,
|
|
19778
|
+
orders: orders
|
|
19779
|
+
})))
|
|
19780
|
+
});
|
|
19781
|
+
onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type7 = typeMap$4[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref4 = valueRef.current || {}) === null || _ref4 === void 0 ? void 0 : _ref4[(_typeMap$type8 = typeMap$4[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.systemOrder]) || {}), {}, {
|
|
19270
19782
|
showOrderInfo: showOrderInfo,
|
|
19271
19783
|
orders: orders
|
|
19272
19784
|
}))));
|
|
@@ -19282,39 +19794,41 @@ var GyReissue = function GyReissue(props) {
|
|
|
19282
19794
|
};
|
|
19283
19795
|
}();
|
|
19284
19796
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
19285
|
-
var
|
|
19797
|
+
var _ref5, _ref5$typeMap$type$ty, _typeMap$type9, _typeMap$type10;
|
|
19798
|
+
pushGyLog('beforeChangeType', valueRef.current || {});
|
|
19286
19799
|
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
19287
|
-
if (typeName === (
|
|
19800
|
+
if (typeName === ((_ref5 = valueRef.current || {}) === null || _ref5 === void 0 ? void 0 : (_ref5$typeMap$type$ty = _ref5[(_typeMap$type9 = typeMap$4[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.typeName]) === null || _ref5$typeMap$type$ty === void 0 ? void 0 : _ref5$typeMap$type$ty[0])) return;
|
|
19288
19801
|
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
19289
|
-
var newValue = _objectSpread2({},
|
|
19290
|
-
newValue[(_typeMap$
|
|
19802
|
+
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
19803
|
+
newValue[(_typeMap$type10 = typeMap$4[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.typeName] = val;
|
|
19291
19804
|
if (typeName === '1') {
|
|
19292
|
-
var _typeMap$
|
|
19293
|
-
newValue[(_typeMap$
|
|
19805
|
+
var _typeMap$type11;
|
|
19806
|
+
newValue[(_typeMap$type11 = typeMap$4[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.key] = getGoodDetails({
|
|
19294
19807
|
mode: isStrict
|
|
19295
19808
|
});
|
|
19296
19809
|
} else if (typeName === '2') {
|
|
19297
|
-
var _typeMap$
|
|
19810
|
+
var _typeMap$type12;
|
|
19298
19811
|
// 切换到非原单,清空列表
|
|
19299
|
-
newValue[(_typeMap$
|
|
19812
|
+
newValue[(_typeMap$type12 = typeMap$4[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key] = [];
|
|
19300
19813
|
}
|
|
19814
|
+
pushGyLog('afterChangeType', newValue);
|
|
19301
19815
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19302
19816
|
};
|
|
19303
19817
|
var handleModeChange = function handleModeChange(mode) {
|
|
19304
|
-
var
|
|
19305
|
-
var isOriginalOrder = (
|
|
19818
|
+
var _ref6, _ref6$typeMap$type$ty, _typeMap$type13, _typeMap$type14;
|
|
19819
|
+
var isOriginalOrder = ((_ref6 = valueRef.current || {}) === null || _ref6 === void 0 ? void 0 : (_ref6$typeMap$type$ty = _ref6[(_typeMap$type13 = typeMap$4[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.typeName]) === null || _ref6$typeMap$type$ty === void 0 ? void 0 : _ref6$typeMap$type$ty[0]) === '1';
|
|
19306
19820
|
setIsStrict(mode);
|
|
19307
19821
|
if (!isOriginalOrder) return;
|
|
19308
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({},
|
|
19822
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type14 = typeMap$4[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key, getGoodDetails({
|
|
19309
19823
|
mode: mode
|
|
19310
19824
|
}))));
|
|
19311
19825
|
};
|
|
19312
|
-
var getGoodDetails = function getGoodDetails(
|
|
19313
|
-
var _typeMap$
|
|
19314
|
-
var mode =
|
|
19315
|
-
sysOrderNo =
|
|
19316
|
-
var systemOrder =
|
|
19317
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo :
|
|
19826
|
+
var getGoodDetails = function getGoodDetails(_ref7) {
|
|
19827
|
+
var _ref8, _typeMap$type15, _ref9, _typeMap$type16, _order$details;
|
|
19828
|
+
var mode = _ref7.mode,
|
|
19829
|
+
sysOrderNo = _ref7.sysOrderNo;
|
|
19830
|
+
var systemOrder = (_ref8 = valueRef.current || {}) === null || _ref8 === void 0 ? void 0 : _ref8[(_typeMap$type15 = typeMap$4[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.systemOrder];
|
|
19831
|
+
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : (_ref9 = valueRef.current || {}) === null || _ref9 === void 0 ? void 0 : _ref9[(_typeMap$type16 = typeMap$4[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.systemOrderNo];
|
|
19318
19832
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
19319
19833
|
return order.code === systemOrderNo;
|
|
19320
19834
|
});
|
|
@@ -19325,52 +19839,58 @@ var GyReissue = function GyReissue(props) {
|
|
|
19325
19839
|
}) : goodDetails;
|
|
19326
19840
|
};
|
|
19327
19841
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
19328
|
-
var _typeMap$
|
|
19329
|
-
|
|
19330
|
-
newValue
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
item["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19842
|
+
var _typeMap$type17;
|
|
19843
|
+
pushGyLog('beforeChangeGood', valueRef.current || {});
|
|
19844
|
+
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
19845
|
+
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type17 = typeMap$4[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.key)] = (val || []).map(function (item) {
|
|
19846
|
+
var _typeMap$type18, _typeMap$type19;
|
|
19847
|
+
item["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type18 = typeMap$4[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.formatDefaultField.money)] = 0;
|
|
19848
|
+
item["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type19 = typeMap$4[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.formatDefaultField.share)] = 0;
|
|
19334
19849
|
return item;
|
|
19335
19850
|
});
|
|
19851
|
+
pushGyLog('afterChangeGood', newValue);
|
|
19336
19852
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19337
19853
|
};
|
|
19338
19854
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
19339
|
-
var _typeMap$
|
|
19340
|
-
|
|
19341
|
-
newValue
|
|
19342
|
-
|
|
19343
|
-
|
|
19344
|
-
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type20 = typeMap$4[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = [];
|
|
19345
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type21 = typeMap$4[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
19855
|
+
var _typeMap$type20, _ref10, _ref10$typeMap$type$t, _typeMap$type21, _ref11, _ref11$typeMap$type$t, _typeMap$type23;
|
|
19856
|
+
pushGyLog('beforeChangeSystemOrder', valueRef.current || {});
|
|
19857
|
+
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
19858
|
+
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type20 = typeMap$4[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo)] = val;
|
|
19859
|
+
if (['2'].includes((_ref10 = valueRef.current || {}) === null || _ref10 === void 0 ? void 0 : (_ref10$typeMap$type$t = _ref10[(_typeMap$type21 = typeMap$4[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.typeName]) === null || _ref10$typeMap$type$t === void 0 ? void 0 : _ref10$typeMap$type$t[0])) {
|
|
19346
19860
|
var _typeMap$type22;
|
|
19347
|
-
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type22 = typeMap$4[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] =
|
|
19861
|
+
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type22 = typeMap$4[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = [];
|
|
19862
|
+
} else if (['1'].includes((_ref11 = valueRef.current || {}) === null || _ref11 === void 0 ? void 0 : (_ref11$typeMap$type$t = _ref11[(_typeMap$type23 = typeMap$4[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.typeName]) === null || _ref11$typeMap$type$t === void 0 ? void 0 : _ref11$typeMap$type$t[0])) {
|
|
19863
|
+
var _typeMap$type24;
|
|
19864
|
+
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type24 = typeMap$4[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = getGoodDetails({
|
|
19348
19865
|
mode: isStrict,
|
|
19349
19866
|
sysOrderNo: val
|
|
19350
19867
|
});
|
|
19351
19868
|
}
|
|
19869
|
+
pushGyLog('afterChangeSystemOrder', newValue);
|
|
19352
19870
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19353
19871
|
};
|
|
19354
19872
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
19355
|
-
var _typeMap$
|
|
19356
|
-
|
|
19873
|
+
var _ref12, _typeMap$type25, _typeMap$type26, _uniqBy, _typeMap$type27;
|
|
19874
|
+
pushGyLog('beforeSelectedGoodsChange', valueRef.current || {});
|
|
19875
|
+
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
19357
19876
|
// 原订单商品
|
|
19358
19877
|
var originTradeGoodList = getGoodDetails({
|
|
19359
19878
|
mode: isStrict
|
|
19360
19879
|
}) || [];
|
|
19361
19880
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
19362
|
-
var currentSelectGoodList = (
|
|
19363
|
-
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19881
|
+
var currentSelectGoodList = ((_ref12 = valueRef.current || {}) === null || _ref12 === void 0 ? void 0 : _ref12["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type25 = typeMap$4[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)]) || [];
|
|
19882
|
+
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type26 = typeMap$4[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
19364
19883
|
return skuList.includes(item.uuid);
|
|
19365
19884
|
});
|
|
19366
|
-
console.log('商品发生变化', newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19885
|
+
console.log('商品发生变化', newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type27 = typeMap$4[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.key)]);
|
|
19367
19886
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19368
|
-
|
|
19887
|
+
pushGyLog('afterSelectedGoodsChange', newValue);
|
|
19888
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type28 = typeMap$4[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)], isStrict]);
|
|
19369
19889
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
19370
19890
|
var showChangeBtn = useMemo(function () {
|
|
19371
|
-
var _typeMap$
|
|
19372
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
19373
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
19891
|
+
var _typeMap$type29;
|
|
19892
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo]);
|
|
19893
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]]);
|
|
19374
19894
|
return /*#__PURE__*/React.createElement("div", {
|
|
19375
19895
|
id: "TEST_GY",
|
|
19376
19896
|
onClick: function onClick() {
|
|
@@ -19393,12 +19913,12 @@ var GyReissue = function GyReissue(props) {
|
|
|
19393
19913
|
},
|
|
19394
19914
|
disabled: disabled,
|
|
19395
19915
|
allowClear: false,
|
|
19396
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19916
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type31 = typeMap$4[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrderNo)],
|
|
19397
19917
|
onChange: function onChange(val) {
|
|
19398
19918
|
return changeSystemOrderHandle(val);
|
|
19399
19919
|
},
|
|
19400
19920
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
19401
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
19921
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type32 = typeMap$4[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
19402
19922
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
19403
19923
|
key: item.billNo,
|
|
19404
19924
|
value: item.billNo,
|
|
@@ -19419,7 +19939,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19419
19939
|
disabled: disabled,
|
|
19420
19940
|
allowClear: false,
|
|
19421
19941
|
options: reasonList,
|
|
19422
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19942
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type33 = typeMap$4[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.typeName)],
|
|
19423
19943
|
onChange: function onChange(val) {
|
|
19424
19944
|
return changeTypeHandle(val);
|
|
19425
19945
|
}
|
|
@@ -19431,12 +19951,11 @@ var GyReissue = function GyReissue(props) {
|
|
|
19431
19951
|
canUpdateNumber: showChangeBtn,
|
|
19432
19952
|
showChangeBtn: showChangeBtn,
|
|
19433
19953
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
19434
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19954
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type34 = typeMap$4[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)],
|
|
19435
19955
|
onChange: function onChange(val) {
|
|
19436
19956
|
return changeGoodHandle(val);
|
|
19437
19957
|
},
|
|
19438
19958
|
onModeChange: handleModeChange,
|
|
19439
|
-
showModeBtn: showModeBtn,
|
|
19440
19959
|
isStrict: isStrict,
|
|
19441
19960
|
tradeGoods: {
|
|
19442
19961
|
originDataSource: getGoodDetails({
|
|
@@ -19447,7 +19966,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19447
19966
|
})));
|
|
19448
19967
|
};
|
|
19449
19968
|
|
|
19450
|
-
var _excluded$
|
|
19969
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19451
19970
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19452
19971
|
var typeMap$5 = {
|
|
19453
19972
|
GY_RETURN_GOODS: {
|
|
@@ -19469,26 +19988,26 @@ var typeMap$5 = {
|
|
|
19469
19988
|
}
|
|
19470
19989
|
};
|
|
19471
19990
|
var GyReturnGoods = function GyReturnGoods(props) {
|
|
19472
|
-
var
|
|
19991
|
+
var _typeMap$type10, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
19473
19992
|
var value = props.value,
|
|
19474
19993
|
onChange = props.onChange,
|
|
19475
19994
|
_props$reasonList = props.reasonList,
|
|
19476
19995
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19477
19996
|
disabled = props.disabled,
|
|
19478
19997
|
type = props.type,
|
|
19479
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19998
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19480
19999
|
var valueRef = useRef({});
|
|
19481
20000
|
var getOrderFlag = useRef(false);
|
|
19482
20001
|
var _useState = useState(false),
|
|
19483
20002
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19484
20003
|
isStrict = _useState2[0],
|
|
19485
20004
|
setIsStrict = _useState2[1];
|
|
19486
|
-
|
|
19487
|
-
|
|
19488
|
-
|
|
19489
|
-
});
|
|
20005
|
+
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
20006
|
+
// order?.platformCode?.includes(';'),
|
|
20007
|
+
// );
|
|
19490
20008
|
useEffect(function () {
|
|
19491
20009
|
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
20010
|
+
valueRef.current = value;
|
|
19492
20011
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$5[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$5[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|
|
19493
20012
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
19494
20013
|
getOrderFlag.current = true;
|
|
@@ -19539,7 +20058,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19539
20058
|
while (1) switch (_context.prev = _context.next) {
|
|
19540
20059
|
case 0:
|
|
19541
20060
|
(_typeMap$type4 = typeMap$5[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
19542
|
-
var _typeMap$type5, _typeMap$type6;
|
|
20061
|
+
var _valueRef$current, _typeMap$type5, _typeMap$type$systemO, _ref3, _valueRef$current2, _typeMap$type6;
|
|
19543
20062
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
19544
20063
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
19545
20064
|
var billNo = _ref2.billNo,
|
|
@@ -19561,7 +20080,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19561
20080
|
shopCode: shopCode
|
|
19562
20081
|
});
|
|
19563
20082
|
});
|
|
19564
|
-
onChange(_objectSpread2(_objectSpread2({},
|
|
20083
|
+
onChange(_objectSpread2(_objectSpread2({}, (_valueRef$current = valueRef.current) !== null && _valueRef$current !== void 0 ? _valueRef$current : {}), {}, _defineProperty({}, (_typeMap$type5 = typeMap$5[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, (_typeMap$type$systemO = (_ref3 = (_valueRef$current2 = valueRef.current) !== null && _valueRef$current2 !== void 0 ? _valueRef$current2 : {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type6 = typeMap$5[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) !== null && _typeMap$type$systemO !== void 0 ? _typeMap$type$systemO : {}), {}, {
|
|
19565
20084
|
showOrderInfo: showOrderInfo,
|
|
19566
20085
|
orders: orders
|
|
19567
20086
|
}))));
|
|
@@ -19637,10 +20156,10 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19637
20156
|
}
|
|
19638
20157
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19639
20158
|
};
|
|
19640
|
-
var getGoodDetails = function getGoodDetails(
|
|
20159
|
+
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
19641
20160
|
var _typeMap$type23, _typeMap$type24, _order$details;
|
|
19642
|
-
var mode =
|
|
19643
|
-
sysOrderNo =
|
|
20161
|
+
var mode = _ref4.mode,
|
|
20162
|
+
sysOrderNo = _ref4.sysOrderNo;
|
|
19644
20163
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type23 = typeMap$5[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrder];
|
|
19645
20164
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type24 = typeMap$5[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderNo];
|
|
19646
20165
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -19726,7 +20245,6 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19726
20245
|
return changeGoodHandle(val);
|
|
19727
20246
|
},
|
|
19728
20247
|
onModeChange: handleModeChange,
|
|
19729
|
-
showModeBtn: showModeBtn,
|
|
19730
20248
|
isStrict: isStrict,
|
|
19731
20249
|
showErpGoodsBtn: false,
|
|
19732
20250
|
tradeGoods: {
|
|
@@ -19738,4 +20256,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19738
20256
|
})));
|
|
19739
20257
|
};
|
|
19740
20258
|
|
|
19741
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$
|
|
20259
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, index$2 as erpModalColumnsMap, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };
|