@kmkf-fe-packages/basic-components 2.0.19-beta.6 → 2.0.19-beta.61
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 +803 -294
- package/dist/index.js +805 -293
- package/dist/src/apaas/ApaasUploadProAsync/index.d.ts +21 -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/GoodItem/index.d.ts +1 -0
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
|
|
2
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';
|
|
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';
|
|
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
7
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, 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';
|
|
@@ -1176,10 +1176,298 @@ 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 {\n background: transparent;\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", "canPreview", "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$canPreview = _ref.canPreview,
|
|
1203
|
+
_ref$disabled = _ref.disabled,
|
|
1204
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1205
|
+
uniqueKey = _ref.uniqueKey,
|
|
1206
|
+
_ref$hostUrl = _ref.hostUrl,
|
|
1207
|
+
hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
|
|
1208
|
+
_ref$actionUrl = _ref.actionUrl,
|
|
1209
|
+
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
1210
|
+
_ref$platform = _ref.platform,
|
|
1211
|
+
platform = _ref$platform === void 0 ? '' : _ref$platform,
|
|
1212
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
1213
|
+
var inputRef = useRef(null);
|
|
1214
|
+
var valueRef = useRef(value);
|
|
1215
|
+
var _useState = useState(false),
|
|
1216
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1217
|
+
uploading = _useState2[0],
|
|
1218
|
+
setUploading = _useState2[1];
|
|
1219
|
+
var _useState3 = useState(true),
|
|
1220
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1221
|
+
pasteDefaultStates = _useState4[0],
|
|
1222
|
+
setPasteDefaultStates = _useState4[1];
|
|
1223
|
+
var preview = platform === 'ks' ? {
|
|
1224
|
+
getContainer: (_document = document) === null || _document === void 0 ? void 0 : _document.getElementById('root')
|
|
1225
|
+
} : true;
|
|
1226
|
+
useEffect(function () {
|
|
1227
|
+
valueRef.current = value;
|
|
1228
|
+
}, [value]);
|
|
1229
|
+
var asyncUpload = /*#__PURE__*/function () {
|
|
1230
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1231
|
+
var _valueRef$current;
|
|
1232
|
+
var formData, fileName, showName, _yield$request, success, data;
|
|
1233
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1234
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1235
|
+
case 0:
|
|
1236
|
+
setUploading(true);
|
|
1237
|
+
formData = new FormData();
|
|
1238
|
+
formData.append('file', file);
|
|
1239
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1240
|
+
formData.append('fileName', fileName);
|
|
1241
|
+
showName = file.name.substring(0, file.name.lastIndexOf('.'));
|
|
1242
|
+
_context.prev = 6;
|
|
1243
|
+
_context.next = 9;
|
|
1244
|
+
return request(actionUrl, {
|
|
1245
|
+
method: 'post',
|
|
1246
|
+
body: formData
|
|
1247
|
+
});
|
|
1248
|
+
case 9:
|
|
1249
|
+
_yield$request = _context.sent;
|
|
1250
|
+
success = _yield$request.success;
|
|
1251
|
+
data = _yield$request.data;
|
|
1252
|
+
if (success) {
|
|
1253
|
+
handleChange([].concat(_toConsumableArray(valueRef.current), [{
|
|
1254
|
+
url: data,
|
|
1255
|
+
name: showName
|
|
1256
|
+
}]));
|
|
1257
|
+
}
|
|
1258
|
+
_context.next = 18;
|
|
1259
|
+
break;
|
|
1260
|
+
case 15:
|
|
1261
|
+
_context.prev = 15;
|
|
1262
|
+
_context.t0 = _context["catch"](6);
|
|
1263
|
+
message.error('图片上传失败');
|
|
1264
|
+
case 18:
|
|
1265
|
+
_context.prev = 18;
|
|
1266
|
+
setUploading(false);
|
|
1267
|
+
return _context.finish(18);
|
|
1268
|
+
case 21:
|
|
1269
|
+
case "end":
|
|
1270
|
+
return _context.stop();
|
|
1271
|
+
}
|
|
1272
|
+
}, _callee, null, [[6, 15, 18, 21]]);
|
|
1273
|
+
}));
|
|
1274
|
+
return function asyncUpload(_x) {
|
|
1275
|
+
return _ref2.apply(this, arguments);
|
|
1276
|
+
};
|
|
1277
|
+
}();
|
|
1278
|
+
var imgReader = function imgReader(item) {
|
|
1279
|
+
var blob = item.getAsFile(),
|
|
1280
|
+
reader = new FileReader();
|
|
1281
|
+
if (blob.size > maxSize * 1024 * 1024) {
|
|
1282
|
+
message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
if (valueRef.current.length >= maxCount) {
|
|
1286
|
+
message.error("\u53EA\u80FD\u4E0A\u4F20".concat(maxCount, "\u5F20\u56FE\u7247"));
|
|
1287
|
+
return;
|
|
1288
|
+
}
|
|
1289
|
+
reader.onload = /*#__PURE__*/function () {
|
|
1290
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
1291
|
+
var _e$target, _valueRef$current2;
|
|
1292
|
+
var result, fileName, file;
|
|
1293
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1294
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1295
|
+
case 0:
|
|
1296
|
+
result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
|
|
1297
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1298
|
+
file = dataURLtoFile(result, fileName);
|
|
1299
|
+
asyncUpload(file);
|
|
1300
|
+
case 4:
|
|
1301
|
+
case "end":
|
|
1302
|
+
return _context2.stop();
|
|
1303
|
+
}
|
|
1304
|
+
}, _callee2);
|
|
1305
|
+
}));
|
|
1306
|
+
return function (_x2) {
|
|
1307
|
+
return _ref3.apply(this, arguments);
|
|
1308
|
+
};
|
|
1309
|
+
}();
|
|
1310
|
+
reader.readAsDataURL(blob);
|
|
1311
|
+
};
|
|
1312
|
+
var handleChange = function handleChange(list) {
|
|
1313
|
+
valueRef.current = list;
|
|
1314
|
+
onChange(list);
|
|
1315
|
+
};
|
|
1316
|
+
var clipboardDataChange = function clipboardDataChange(e) {
|
|
1317
|
+
var clipboardData = e.clipboardData || window.clipboardData;
|
|
1318
|
+
var i = 0,
|
|
1319
|
+
items,
|
|
1320
|
+
item,
|
|
1321
|
+
types;
|
|
1322
|
+
if (clipboardData) {
|
|
1323
|
+
items = clipboardData.items;
|
|
1324
|
+
if (!items) return;
|
|
1325
|
+
item = items[0];
|
|
1326
|
+
types = clipboardData.types || [];
|
|
1327
|
+
for (; i < types.length; i++) {
|
|
1328
|
+
if (types[i] === 'Files') {
|
|
1329
|
+
item = items[i];
|
|
1330
|
+
break;
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
if (item && item.kind === 'file' && item.type.match(/^image\//i)) {
|
|
1334
|
+
imgReader(item);
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
// 手动上传模式, 一直返回false
|
|
1339
|
+
var beforeUpload = function beforeUpload(file) {
|
|
1340
|
+
var size = file.size / 1024 / 1024 < maxSize;
|
|
1341
|
+
if (value.length > maxCount) {
|
|
1342
|
+
message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u5F20\u56FE\u7247\uFF01"));
|
|
1343
|
+
return Upload.LIST_IGNORE;
|
|
1344
|
+
}
|
|
1345
|
+
if (!size) {
|
|
1346
|
+
message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1347
|
+
return Upload.LIST_IGNORE;
|
|
1348
|
+
}
|
|
1349
|
+
asyncUpload(file);
|
|
1350
|
+
return Upload.LIST_IGNORE;
|
|
1351
|
+
};
|
|
1352
|
+
var handleDelete = function handleDelete(key) {
|
|
1353
|
+
return function () {
|
|
1354
|
+
if (disabled) return;
|
|
1355
|
+
handleChange(value.filter(function (_, index) {
|
|
1356
|
+
return key !== index;
|
|
1357
|
+
}));
|
|
1358
|
+
};
|
|
1359
|
+
};
|
|
1360
|
+
var renderImages = function renderImages(images) {
|
|
1361
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, {
|
|
1362
|
+
preview: preview
|
|
1363
|
+
}, images.map(function (image, index) {
|
|
1364
|
+
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");
|
|
1365
|
+
var showImage = /^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url;
|
|
1366
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1367
|
+
className: styles$2.imageProWrap,
|
|
1368
|
+
key: index
|
|
1369
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1370
|
+
className: styles$2.imageProInfo
|
|
1371
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
1372
|
+
src: finalImage,
|
|
1373
|
+
preview: {
|
|
1374
|
+
src: showImage
|
|
1375
|
+
},
|
|
1376
|
+
width: '100%',
|
|
1377
|
+
height: '100%'
|
|
1378
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
1379
|
+
className: styles$2.imageProRight
|
|
1380
|
+
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
1381
|
+
value: image.name,
|
|
1382
|
+
onChange: function onChange(e) {
|
|
1383
|
+
handleChange(value.map(function (item, i) {
|
|
1384
|
+
if (index === i) {
|
|
1385
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
1386
|
+
name: e.target.value
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
return item;
|
|
1390
|
+
}));
|
|
1391
|
+
},
|
|
1392
|
+
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0",
|
|
1393
|
+
autoSize: {
|
|
1394
|
+
minRows: 2,
|
|
1395
|
+
maxRows: 2
|
|
1396
|
+
},
|
|
1397
|
+
maxLength: 1000
|
|
1398
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
1399
|
+
className: styles$2.imageProOperate
|
|
1400
|
+
}, /*#__PURE__*/React.createElement(CloseOutlined, {
|
|
1401
|
+
className: styles$2.deleteIcon,
|
|
1402
|
+
onClick: handleDelete(index)
|
|
1403
|
+
}))));
|
|
1404
|
+
}));
|
|
1405
|
+
};
|
|
1406
|
+
useEffect(function () {
|
|
1407
|
+
var _inputRef$current2;
|
|
1408
|
+
if (!pasteDefaultStates) {
|
|
1409
|
+
var _inputRef$current;
|
|
1410
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
1411
|
+
}
|
|
1412
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.addEventListener('paste', function (e) {
|
|
1413
|
+
return clipboardDataChange(e);
|
|
1414
|
+
});
|
|
1415
|
+
return function () {
|
|
1416
|
+
var _inputRef$current3;
|
|
1417
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.removeEventListener('paste', function (e) {
|
|
1418
|
+
return clipboardDataChange(e);
|
|
1419
|
+
});
|
|
1420
|
+
};
|
|
1421
|
+
}, [pasteDefaultStates]);
|
|
1422
|
+
useImperativeHandle(ref, function () {
|
|
1423
|
+
return {
|
|
1424
|
+
taskCompleted: !uploading
|
|
1425
|
+
};
|
|
1426
|
+
}, [uploading]);
|
|
1427
|
+
return /*#__PURE__*/React.createElement(Spin, {
|
|
1428
|
+
spinning: uploading
|
|
1429
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
1430
|
+
className: styles$2.tips
|
|
1431
|
+
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u5F20\u56FE\u7247"), /*#__PURE__*/React.createElement("div", {
|
|
1432
|
+
className: styles$2.imageProBox
|
|
1433
|
+
}, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
1434
|
+
className: styles$2.imagePaste
|
|
1435
|
+
}, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
|
|
1436
|
+
className: styles$2.fakeBox,
|
|
1437
|
+
onClick: function onClick() {
|
|
1438
|
+
setPasteDefaultStates(false);
|
|
1439
|
+
}
|
|
1440
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1441
|
+
className: styles$2.addBtn
|
|
1442
|
+
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
1443
|
+
className: styles$2.text
|
|
1444
|
+
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React.createElement("input", {
|
|
1445
|
+
ref: inputRef,
|
|
1446
|
+
className: styles$2.inputImage,
|
|
1447
|
+
type: "text",
|
|
1448
|
+
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
1449
|
+
onBlur: function onBlur() {
|
|
1450
|
+
setPasteDefaultStates(true);
|
|
1451
|
+
},
|
|
1452
|
+
value: ""
|
|
1453
|
+
})), /*#__PURE__*/React.createElement(Upload, _objectSpread2({
|
|
1454
|
+
disabled: disabled,
|
|
1455
|
+
accept: accept,
|
|
1456
|
+
name: "file",
|
|
1457
|
+
listType: "picture-card",
|
|
1458
|
+
maxCount: maxCount,
|
|
1459
|
+
className: styles$2.upload,
|
|
1460
|
+
beforeUpload: beforeUpload
|
|
1461
|
+
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
1462
|
+
className: "addBtn"
|
|
1463
|
+
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText))), renderImages(value)));
|
|
1464
|
+
};
|
|
1465
|
+
var index$1 = /*#__PURE__*/forwardRef(ApaasUploadProAsync);
|
|
1466
|
+
|
|
1467
|
+
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";
|
|
1468
|
+
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"};
|
|
1469
|
+
styleInject(css_248z$3);
|
|
1470
|
+
|
|
1183
1471
|
//! moment.js
|
|
1184
1472
|
//! version : 2.29.4
|
|
1185
1473
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -6856,9 +7144,9 @@ hooks.HTML5_FMT = {
|
|
|
6856
7144
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6857
7145
|
};
|
|
6858
7146
|
|
|
6859
|
-
var _excluded$
|
|
7147
|
+
var _excluded$8 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "hostUrl", "canDownload", "actionUrl", "platform"];
|
|
6860
7148
|
var Dragger = Upload.Dragger;
|
|
6861
|
-
var fn$
|
|
7149
|
+
var fn$3 = function fn() {
|
|
6862
7150
|
return void 0;
|
|
6863
7151
|
};
|
|
6864
7152
|
var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
@@ -6867,7 +7155,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6867
7155
|
_ref$maxSize = _ref.maxSize,
|
|
6868
7156
|
maxSize = _ref$maxSize === void 0 ? 100 : _ref$maxSize,
|
|
6869
7157
|
_ref$onChange = _ref.onChange,
|
|
6870
|
-
onChange = _ref$onChange === void 0 ? fn$
|
|
7158
|
+
onChange = _ref$onChange === void 0 ? fn$3 : _ref$onChange,
|
|
6871
7159
|
_ref$value = _ref.value,
|
|
6872
7160
|
value = _ref$value === void 0 ? [] : _ref$value,
|
|
6873
7161
|
_ref$accept = _ref.accept,
|
|
@@ -6881,7 +7169,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6881
7169
|
_ref$actionUrl = _ref.actionUrl,
|
|
6882
7170
|
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
6883
7171
|
_ref$platform = _ref.platform,
|
|
6884
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
7172
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
6885
7173
|
var inputRef = useRef(null);
|
|
6886
7174
|
var _useState = useState(false),
|
|
6887
7175
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7111,23 +7399,23 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7111
7399
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
7112
7400
|
spinning: uploading
|
|
7113
7401
|
}, /*#__PURE__*/React.createElement("p", {
|
|
7114
|
-
className: styles$
|
|
7402
|
+
className: styles$3.tips
|
|
7115
7403
|
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6"), /*#__PURE__*/React.createElement("div", {
|
|
7116
|
-
className: styles$
|
|
7404
|
+
className: styles$3.imageBox
|
|
7117
7405
|
}, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
7118
|
-
className: styles$
|
|
7406
|
+
className: styles$3.imagePaste
|
|
7119
7407
|
}, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
|
|
7120
|
-
className: styles$
|
|
7408
|
+
className: styles$3.fakeBox,
|
|
7121
7409
|
onClick: function onClick() {
|
|
7122
7410
|
setPasteDefaultStates(false);
|
|
7123
7411
|
}
|
|
7124
7412
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7125
|
-
className: styles$
|
|
7413
|
+
className: styles$3.addBtn
|
|
7126
7414
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
7127
|
-
className: styles$
|
|
7415
|
+
className: styles$3.text
|
|
7128
7416
|
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React.createElement("input", {
|
|
7129
7417
|
ref: inputRef,
|
|
7130
|
-
className: styles$
|
|
7418
|
+
className: styles$3.inputImage,
|
|
7131
7419
|
type: "text",
|
|
7132
7420
|
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
7133
7421
|
onBlur: function onBlur() {
|
|
@@ -7145,9 +7433,9 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7145
7433
|
fileList: fileList,
|
|
7146
7434
|
onRemove: onRemove
|
|
7147
7435
|
}, resetProps), /*#__PURE__*/React.createElement("span", {
|
|
7148
|
-
className: styles$
|
|
7436
|
+
className: styles$3.addBtn
|
|
7149
7437
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
7150
|
-
className: styles$
|
|
7438
|
+
className: styles$3.addBtn
|
|
7151
7439
|
}, "\u9009\u62E9\u6587\u4EF6")), /*#__PURE__*/React.createElement(Modal, {
|
|
7152
7440
|
visible: visible,
|
|
7153
7441
|
title: fileName,
|
|
@@ -7182,7 +7470,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7182
7470
|
}))));
|
|
7183
7471
|
};
|
|
7184
7472
|
|
|
7185
|
-
var _excluded$
|
|
7473
|
+
var _excluded$9 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"];
|
|
7186
7474
|
function ApaasCheckbox(props) {
|
|
7187
7475
|
var showOther = props.showOther,
|
|
7188
7476
|
_props$horizontal = props.horizontal,
|
|
@@ -7193,7 +7481,7 @@ function ApaasCheckbox(props) {
|
|
|
7193
7481
|
value = _props$value === void 0 ? {} : _props$value,
|
|
7194
7482
|
onChange = props.onChange,
|
|
7195
7483
|
disabled = props.disabled,
|
|
7196
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7484
|
+
otherProps = _objectWithoutProperties(props, _excluded$9);
|
|
7197
7485
|
var checkboxValue = value.value,
|
|
7198
7486
|
other = value.other;
|
|
7199
7487
|
var triggerChange = function triggerChange(changedValue) {
|
|
@@ -7279,11 +7567,11 @@ function ApaasSlider(props) {
|
|
|
7279
7567
|
})));
|
|
7280
7568
|
}
|
|
7281
7569
|
|
|
7282
|
-
var css_248z$
|
|
7283
|
-
var styles$
|
|
7284
|
-
styleInject(css_248z$
|
|
7570
|
+
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";
|
|
7571
|
+
var styles$4 = {"rateLabel":"index-module_rateLabel__3k-Xa","rateText":"index-module_rateText__A1GRy"};
|
|
7572
|
+
styleInject(css_248z$4);
|
|
7285
7573
|
|
|
7286
|
-
var _excluded$
|
|
7574
|
+
var _excluded$a = ["value", "onChange", "options", "textStyle"];
|
|
7287
7575
|
//状态文字映射
|
|
7288
7576
|
var RATE_MAP = {
|
|
7289
7577
|
0: '',
|
|
@@ -7305,7 +7593,7 @@ function ApaasRate(props) {
|
|
|
7305
7593
|
_props$options = props.options,
|
|
7306
7594
|
options = _props$options === void 0 ? [] : _props$options,
|
|
7307
7595
|
textStyle = props.textStyle,
|
|
7308
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7596
|
+
other = _objectWithoutProperties(props, _excluded$a);
|
|
7309
7597
|
var rateValues = useMemo(function () {
|
|
7310
7598
|
return (value || []).reduce(function (prv, next) {
|
|
7311
7599
|
prv[next.id || ''] = next.value;
|
|
@@ -7341,14 +7629,14 @@ function ApaasRate(props) {
|
|
|
7341
7629
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
7342
7630
|
span: 24
|
|
7343
7631
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7344
|
-
className: styles$
|
|
7632
|
+
className: styles$4.rateLabel
|
|
7345
7633
|
}, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React.createElement(Rate, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7346
7634
|
value: rateValues[item.id] || 0,
|
|
7347
7635
|
onChange: function onChange(val) {
|
|
7348
7636
|
return changeHandle(val, item.id);
|
|
7349
7637
|
}
|
|
7350
7638
|
})), /*#__PURE__*/React.createElement("span", {
|
|
7351
|
-
className: styles$
|
|
7639
|
+
className: styles$4.rateText,
|
|
7352
7640
|
style: textStyle
|
|
7353
7641
|
}, RATE_MAP[rateValues[item.id]])));
|
|
7354
7642
|
}));
|
|
@@ -7373,7 +7661,7 @@ var Province = function Province(props) {
|
|
|
7373
7661
|
})));
|
|
7374
7662
|
};
|
|
7375
7663
|
|
|
7376
|
-
var TextArea = Input.TextArea;
|
|
7664
|
+
var TextArea$1 = Input.TextArea;
|
|
7377
7665
|
var ParseLogistics = function ParseLogistics(props) {
|
|
7378
7666
|
var onChange = props.onChange,
|
|
7379
7667
|
_props$selfCalibratio = props.selfCalibration,
|
|
@@ -7422,7 +7710,7 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7422
7710
|
handleIdentify(val);
|
|
7423
7711
|
}
|
|
7424
7712
|
};
|
|
7425
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea, {
|
|
7713
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea$1, {
|
|
7426
7714
|
placeholder: "\u590D\u5236\u4FE1\u606F\uFF0C\u70B9\u51FB\u667A\u80FD\u8BC6\u522B",
|
|
7427
7715
|
rows: 3,
|
|
7428
7716
|
value: value,
|
|
@@ -7549,14 +7837,14 @@ function ApaasPosting(props) {
|
|
|
7549
7837
|
});
|
|
7550
7838
|
}
|
|
7551
7839
|
|
|
7552
|
-
var _excluded$
|
|
7840
|
+
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
7553
7841
|
function ApaasLogistics(props) {
|
|
7554
7842
|
var value = props.value,
|
|
7555
7843
|
onChange = props.onChange,
|
|
7556
7844
|
platformType = props.platformType,
|
|
7557
7845
|
_props$type = props.type,
|
|
7558
7846
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
7559
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7847
|
+
other = _objectWithoutProperties(props, _excluded$b);
|
|
7560
7848
|
var _useState = useState([]),
|
|
7561
7849
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7562
7850
|
option = _useState2[0],
|
|
@@ -7601,7 +7889,7 @@ function ApaasLogistics(props) {
|
|
|
7601
7889
|
}));
|
|
7602
7890
|
}
|
|
7603
7891
|
|
|
7604
|
-
var _excluded$
|
|
7892
|
+
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
7605
7893
|
function withFormItem(WrappedComponent) {
|
|
7606
7894
|
return function (props) {
|
|
7607
7895
|
var label = props.label,
|
|
@@ -7610,7 +7898,7 @@ function withFormItem(WrappedComponent) {
|
|
|
7610
7898
|
required = props.required,
|
|
7611
7899
|
rules = props.rules,
|
|
7612
7900
|
initialValue = props.initialValue,
|
|
7613
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7901
|
+
otherProps = _objectWithoutProperties(props, _excluded$c);
|
|
7614
7902
|
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({}, {
|
|
7615
7903
|
label: label,
|
|
7616
7904
|
name: name,
|
|
@@ -7960,6 +8248,9 @@ var SubForm = function SubForm(props) {
|
|
|
7960
8248
|
value: selectKey,
|
|
7961
8249
|
onChange: setSelectKey
|
|
7962
8250
|
}), /*#__PURE__*/React.createElement(Popover, {
|
|
8251
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
8252
|
+
return triggerNode.parentElement;
|
|
8253
|
+
},
|
|
7963
8254
|
content: /*#__PURE__*/React.createElement("div", {
|
|
7964
8255
|
ref: ref,
|
|
7965
8256
|
onScrollCapture: onScrollCapture,
|
|
@@ -8016,6 +8307,33 @@ var SubForm = function SubForm(props) {
|
|
|
8016
8307
|
}));
|
|
8017
8308
|
};
|
|
8018
8309
|
|
|
8310
|
+
function CopyTextIcon(_ref) {
|
|
8311
|
+
var val = _ref.val;
|
|
8312
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8313
|
+
style: {
|
|
8314
|
+
display: 'flex',
|
|
8315
|
+
alignItems: 'center',
|
|
8316
|
+
justifyContent: 'center'
|
|
8317
|
+
}
|
|
8318
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8319
|
+
style: {
|
|
8320
|
+
marginRight: 8,
|
|
8321
|
+
overflow: 'hidden',
|
|
8322
|
+
textOverflow: 'ellipsis',
|
|
8323
|
+
whiteSpace: 'nowrap'
|
|
8324
|
+
}
|
|
8325
|
+
}, val), /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
8326
|
+
text: val,
|
|
8327
|
+
onCopy: function onCopy() {
|
|
8328
|
+
message.success('复制成功');
|
|
8329
|
+
}
|
|
8330
|
+
}, /*#__PURE__*/React.createElement(CopyOutlined, {
|
|
8331
|
+
style: {
|
|
8332
|
+
color: '#1890ff'
|
|
8333
|
+
}
|
|
8334
|
+
})));
|
|
8335
|
+
}
|
|
8336
|
+
|
|
8019
8337
|
var BuyerNick = function BuyerNick(props) {
|
|
8020
8338
|
var _props$value = props.value,
|
|
8021
8339
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -8158,7 +8476,7 @@ var trade4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVzn
|
|
|
8158
8476
|
|
|
8159
8477
|
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
8478
|
|
|
8161
|
-
var TextArea$
|
|
8479
|
+
var TextArea$2 = Input.TextArea;
|
|
8162
8480
|
var imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
|
|
8163
8481
|
var RemarkInput = function RemarkInput(props) {
|
|
8164
8482
|
var isShowFlag = props.isShowFlag,
|
|
@@ -8177,7 +8495,7 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8177
8495
|
});
|
|
8178
8496
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
8179
8497
|
};
|
|
8180
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$
|
|
8498
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$2, {
|
|
8181
8499
|
disabled: disabled,
|
|
8182
8500
|
rows: 4,
|
|
8183
8501
|
value: value === null || value === void 0 ? void 0 : value.remark,
|
|
@@ -8201,8 +8519,8 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8201
8519
|
})));
|
|
8202
8520
|
};
|
|
8203
8521
|
|
|
8204
|
-
var css_248z$
|
|
8205
|
-
styleInject(css_248z$
|
|
8522
|
+
var css_248z$5 = ".mb8 {\n margin-bottom: 8px;\n}\n";
|
|
8523
|
+
styleInject(css_248z$5);
|
|
8206
8524
|
|
|
8207
8525
|
var Logistics = function Logistics(props) {
|
|
8208
8526
|
var options = props.options,
|
|
@@ -8256,7 +8574,7 @@ var Logistics = function Logistics(props) {
|
|
|
8256
8574
|
return /*#__PURE__*/React.createElement(Input, {
|
|
8257
8575
|
disabled: disabled,
|
|
8258
8576
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
8259
|
-
className: css_248z$
|
|
8577
|
+
className: css_248z$5.logisticsInput,
|
|
8260
8578
|
onChange: handleInputChange,
|
|
8261
8579
|
value: value === null || value === void 0 ? void 0 : value.order,
|
|
8262
8580
|
onBlur: function onBlur(e) {
|
|
@@ -8265,7 +8583,7 @@ var Logistics = function Logistics(props) {
|
|
|
8265
8583
|
});
|
|
8266
8584
|
};
|
|
8267
8585
|
return /*#__PURE__*/React.createElement("div", {
|
|
8268
|
-
className: css_248z$
|
|
8586
|
+
className: css_248z$5.logistics
|
|
8269
8587
|
}, isSingle ? showField === 'EXPRESS_COMPANY' ? LogisticsCompany() : null : LogisticsCompany(), isSingle ? showField === 'EXPRESS_WAYBILL_CODE' ? LogisticsCode() : null : LogisticsCode());
|
|
8270
8588
|
};
|
|
8271
8589
|
|
|
@@ -8302,8 +8620,8 @@ var AliPay = function AliPay(props) {
|
|
|
8302
8620
|
})));
|
|
8303
8621
|
};
|
|
8304
8622
|
|
|
8305
|
-
var css_248z$
|
|
8306
|
-
styleInject(css_248z$
|
|
8623
|
+
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";
|
|
8624
|
+
styleInject(css_248z$6);
|
|
8307
8625
|
|
|
8308
8626
|
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
8627
|
|
|
@@ -9357,8 +9675,8 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
9357
9675
|
}));
|
|
9358
9676
|
};
|
|
9359
9677
|
|
|
9360
|
-
var css_248z$
|
|
9361
|
-
styleInject(css_248z$
|
|
9678
|
+
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";
|
|
9679
|
+
styleInject(css_248z$7);
|
|
9362
9680
|
|
|
9363
9681
|
var GoodItem = function GoodItem(props) {
|
|
9364
9682
|
var _props$isSingleRow = props.isSingleRow,
|
|
@@ -9796,8 +10114,8 @@ var Supplier = function Supplier(props) {
|
|
|
9796
10114
|
}));
|
|
9797
10115
|
};
|
|
9798
10116
|
|
|
9799
|
-
var css_248z$
|
|
9800
|
-
styleInject(css_248z$
|
|
10117
|
+
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";
|
|
10118
|
+
styleInject(css_248z$8);
|
|
9801
10119
|
|
|
9802
10120
|
var Invoice = function Invoice(props) {
|
|
9803
10121
|
var _props$value = props.value,
|
|
@@ -10228,8 +10546,8 @@ var Payment = function Payment(props) {
|
|
|
10228
10546
|
}));
|
|
10229
10547
|
};
|
|
10230
10548
|
|
|
10231
|
-
var css_248z$
|
|
10232
|
-
styleInject(css_248z$
|
|
10549
|
+
var css_248z$9 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
|
|
10550
|
+
styleInject(css_248z$9);
|
|
10233
10551
|
|
|
10234
10552
|
var Item = Form.Item;
|
|
10235
10553
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
@@ -10341,8 +10659,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10341
10659
|
var showKcode = useMemo(function () {
|
|
10342
10660
|
var isShow = false;
|
|
10343
10661
|
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('
|
|
10662
|
+
var _value$interceptCompa;
|
|
10663
|
+
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
10664
|
}
|
|
10347
10665
|
return isShow;
|
|
10348
10666
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
@@ -10481,7 +10799,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10481
10799
|
}
|
|
10482
10800
|
};
|
|
10483
10801
|
return /*#__PURE__*/React.createElement("div", {
|
|
10484
|
-
className: css_248z$
|
|
10802
|
+
className: css_248z$9.interceptBox
|
|
10485
10803
|
}, /*#__PURE__*/React.createElement(Item, {
|
|
10486
10804
|
label: '物流信息',
|
|
10487
10805
|
required: required,
|
|
@@ -10538,11 +10856,14 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10538
10856
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
10539
10857
|
key: 'interceptLogisticsUserSecretKey',
|
|
10540
10858
|
hidden: !showKcode,
|
|
10541
|
-
|
|
10859
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
10860
|
+
style: {
|
|
10861
|
+
opacity: 0
|
|
10862
|
+
}
|
|
10863
|
+
}, "\u517C\u5BB9\u98DE\u9E3D\u6837\u5F0F")
|
|
10542
10864
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
10543
10865
|
style: {
|
|
10544
|
-
width: platform === 'pc' ? 200 :
|
|
10545
|
-
marginTop: '6px'
|
|
10866
|
+
width: platform === 'pc' ? 200 : 130
|
|
10546
10867
|
},
|
|
10547
10868
|
placeholder: "\u5BA2\u6237\u5BC6\u94A5",
|
|
10548
10869
|
disabled: true,
|
|
@@ -11294,8 +11615,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11294
11615
|
})) : null) : null);
|
|
11295
11616
|
};
|
|
11296
11617
|
|
|
11297
|
-
var css_248z$
|
|
11298
|
-
styleInject(css_248z$
|
|
11618
|
+
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";
|
|
11619
|
+
styleInject(css_248z$a);
|
|
11299
11620
|
|
|
11300
11621
|
var ItemList = function ItemList(props) {
|
|
11301
11622
|
var _props$value = props.value,
|
|
@@ -11368,7 +11689,7 @@ var ItemList = function ItemList(props) {
|
|
|
11368
11689
|
}, "\u6682\u4E0D\u652F\u6301\u6DFB\u52A0")) : null);
|
|
11369
11690
|
};
|
|
11370
11691
|
|
|
11371
|
-
var _excluded$
|
|
11692
|
+
var _excluded$d = ["shopId"];
|
|
11372
11693
|
var columns = [{
|
|
11373
11694
|
dataIndex: 'index',
|
|
11374
11695
|
title: 'NO',
|
|
@@ -11593,7 +11914,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11593
11914
|
};
|
|
11594
11915
|
var onFinish = function onFinish(val) {
|
|
11595
11916
|
var shopId = val.shopId,
|
|
11596
|
-
other = _objectWithoutProperties(val, _excluded$
|
|
11917
|
+
other = _objectWithoutProperties(val, _excluded$d);
|
|
11597
11918
|
var value = other;
|
|
11598
11919
|
var newFilterList = [];
|
|
11599
11920
|
var hasValue = Object.values(value).some(function (t) {
|
|
@@ -13186,29 +13507,29 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13186
13507
|
fixed: true,
|
|
13187
13508
|
onSelect: function onSelect(record, selected) {
|
|
13188
13509
|
if (selected) {
|
|
13189
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [record.
|
|
13510
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
13190
13511
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
13191
13512
|
} else {
|
|
13192
13513
|
setSelectIds(selectIds.filter(function (t) {
|
|
13193
|
-
return t !== record.
|
|
13514
|
+
return t !== record.id;
|
|
13194
13515
|
}));
|
|
13195
13516
|
setSelect(selectList.filter(function (t) {
|
|
13196
|
-
return t.
|
|
13517
|
+
return t.id !== record.id;
|
|
13197
13518
|
}));
|
|
13198
13519
|
}
|
|
13199
13520
|
},
|
|
13200
13521
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
13201
13522
|
if (selected) {
|
|
13202
13523
|
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
13203
|
-
return t.
|
|
13524
|
+
return t.id;
|
|
13204
13525
|
}))));
|
|
13205
13526
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
13206
13527
|
} else {
|
|
13207
13528
|
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
13208
|
-
return t.
|
|
13529
|
+
return t.id;
|
|
13209
13530
|
})));
|
|
13210
13531
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
13211
|
-
return arrVal.
|
|
13532
|
+
return arrVal.id !== othVal.id;
|
|
13212
13533
|
});
|
|
13213
13534
|
setSelect(list);
|
|
13214
13535
|
}
|
|
@@ -13217,10 +13538,10 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13217
13538
|
var showTable = function showTable() {
|
|
13218
13539
|
var handleDelete = function handleDelete(record) {
|
|
13219
13540
|
setSelectIds(selectIds.filter(function (t) {
|
|
13220
|
-
return t !== record.
|
|
13541
|
+
return t !== record.id;
|
|
13221
13542
|
}));
|
|
13222
13543
|
setSelect(selectList.filter(function (t) {
|
|
13223
|
-
return t.
|
|
13544
|
+
return t.id !== record.id;
|
|
13224
13545
|
}));
|
|
13225
13546
|
};
|
|
13226
13547
|
var showColumns = [{
|
|
@@ -13244,7 +13565,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13244
13565
|
}
|
|
13245
13566
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
13246
13567
|
columns: showColumns,
|
|
13247
|
-
rowKey: '
|
|
13568
|
+
rowKey: 'id',
|
|
13248
13569
|
dataSource: selectList,
|
|
13249
13570
|
scroll: {
|
|
13250
13571
|
x: '100%',
|
|
@@ -13264,7 +13585,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13264
13585
|
}
|
|
13265
13586
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
13266
13587
|
rowSelection: rowSelection,
|
|
13267
|
-
rowKey: "
|
|
13588
|
+
rowKey: "id",
|
|
13268
13589
|
columns: columns$4,
|
|
13269
13590
|
scroll: {
|
|
13270
13591
|
x: '100%',
|
|
@@ -13780,7 +14101,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13780
14101
|
}, {
|
|
13781
14102
|
dataIndex: 'goodName',
|
|
13782
14103
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
13783
|
-
width: 200
|
|
14104
|
+
width: 200,
|
|
14105
|
+
render: function render(text) {
|
|
14106
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14107
|
+
val: text
|
|
14108
|
+
});
|
|
14109
|
+
}
|
|
13784
14110
|
}, {
|
|
13785
14111
|
dataIndex: 'specId',
|
|
13786
14112
|
title: "SKUID",
|
|
@@ -13792,10 +14118,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13792
14118
|
}, {
|
|
13793
14119
|
dataIndex: 'specName',
|
|
13794
14120
|
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
13795
|
-
width: 250
|
|
14121
|
+
width: 250,
|
|
14122
|
+
render: function render(text) {
|
|
14123
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14124
|
+
val: text
|
|
14125
|
+
});
|
|
14126
|
+
}
|
|
13796
14127
|
}, {
|
|
13797
14128
|
dataIndex: 'orderPrice',
|
|
13798
|
-
title: "\
|
|
14129
|
+
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
14130
|
+
render: function render(val, record) {
|
|
14131
|
+
return (record.num || record.num === 0) && (val || val === 0) ? Number(val * record.num).toFixed(2) : null;
|
|
14132
|
+
},
|
|
13799
14133
|
width: 200
|
|
13800
14134
|
}, {
|
|
13801
14135
|
dataIndex: 'num',
|
|
@@ -13828,8 +14162,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13828
14162
|
dataIndex: 'goodName',
|
|
13829
14163
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13830
14164
|
align: 'center',
|
|
13831
|
-
|
|
13832
|
-
|
|
14165
|
+
width: 250,
|
|
14166
|
+
render: function render(text) {
|
|
14167
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14168
|
+
val: text
|
|
14169
|
+
});
|
|
14170
|
+
}
|
|
13833
14171
|
}, {
|
|
13834
14172
|
dataIndex: 'specId',
|
|
13835
14173
|
title: "".concat(text, "SKUID"),
|
|
@@ -13846,14 +14184,21 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13846
14184
|
dataIndex: 'specName',
|
|
13847
14185
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13848
14186
|
align: 'center',
|
|
13849
|
-
|
|
13850
|
-
|
|
14187
|
+
width: 250,
|
|
14188
|
+
render: function render(text) {
|
|
14189
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14190
|
+
val: text
|
|
14191
|
+
});
|
|
14192
|
+
}
|
|
13851
14193
|
}, {
|
|
13852
14194
|
dataIndex: 'orderPrice',
|
|
13853
|
-
title: "\
|
|
14195
|
+
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
13854
14196
|
align: 'center',
|
|
13855
14197
|
ellipsis: true,
|
|
13856
|
-
width: 100
|
|
14198
|
+
width: 100,
|
|
14199
|
+
render: function render(val, record) {
|
|
14200
|
+
return (record.num || record.num === 0) && (val || val === 0) ? Number(val * record.num).toFixed(2) : null;
|
|
14201
|
+
}
|
|
13857
14202
|
}, {
|
|
13858
14203
|
dataIndex: 'num',
|
|
13859
14204
|
title: "".concat(text, "\u6570\u91CF"),
|
|
@@ -13915,8 +14260,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13915
14260
|
dataIndex: 'goodName',
|
|
13916
14261
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13917
14262
|
align: 'center',
|
|
13918
|
-
|
|
13919
|
-
|
|
14263
|
+
width: 250,
|
|
14264
|
+
render: function render(text) {
|
|
14265
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14266
|
+
val: text
|
|
14267
|
+
});
|
|
14268
|
+
}
|
|
13920
14269
|
}, {
|
|
13921
14270
|
dataIndex: 'specId',
|
|
13922
14271
|
title: "".concat(text, "SKUID"),
|
|
@@ -13933,8 +14282,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13933
14282
|
dataIndex: 'specName',
|
|
13934
14283
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13935
14284
|
align: 'center',
|
|
13936
|
-
|
|
13937
|
-
|
|
14285
|
+
width: 250,
|
|
14286
|
+
render: function render(text) {
|
|
14287
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14288
|
+
val: text
|
|
14289
|
+
});
|
|
14290
|
+
}
|
|
13938
14291
|
}, {
|
|
13939
14292
|
dataIndex: 'num',
|
|
13940
14293
|
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
@@ -14039,8 +14392,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14039
14392
|
dataIndex: 'goodName',
|
|
14040
14393
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
14041
14394
|
align: 'center',
|
|
14042
|
-
|
|
14043
|
-
|
|
14395
|
+
width: 250,
|
|
14396
|
+
render: function render(text) {
|
|
14397
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14398
|
+
val: text
|
|
14399
|
+
});
|
|
14400
|
+
}
|
|
14044
14401
|
}, {
|
|
14045
14402
|
dataIndex: 'specId',
|
|
14046
14403
|
title: "".concat(text, "SKUID"),
|
|
@@ -14057,8 +14414,12 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14057
14414
|
dataIndex: 'specName',
|
|
14058
14415
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
14059
14416
|
align: 'center',
|
|
14060
|
-
|
|
14061
|
-
|
|
14417
|
+
width: 250,
|
|
14418
|
+
render: function render(text) {
|
|
14419
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14420
|
+
val: text
|
|
14421
|
+
});
|
|
14422
|
+
}
|
|
14062
14423
|
}, {
|
|
14063
14424
|
dataIndex: 'num',
|
|
14064
14425
|
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
@@ -14149,6 +14510,10 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14149
14510
|
};
|
|
14150
14511
|
};
|
|
14151
14512
|
|
|
14513
|
+
var getYesOrNo = function getYesOrNo(val) {
|
|
14514
|
+
if (isNull(val)) return null;
|
|
14515
|
+
return val ? '是' : '否';
|
|
14516
|
+
};
|
|
14152
14517
|
var getColumns$3 = function getColumns(_ref) {
|
|
14153
14518
|
var _ref$text = _ref.text,
|
|
14154
14519
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -14157,26 +14522,50 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14157
14522
|
return {
|
|
14158
14523
|
//万里牛商品信息
|
|
14159
14524
|
WLN_GOODS: [{
|
|
14525
|
+
dataIndex: 'wlnItemName',
|
|
14526
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
14527
|
+
align: 'center',
|
|
14528
|
+
ellipsis: true,
|
|
14529
|
+
width: 250
|
|
14530
|
+
}, {
|
|
14531
|
+
dataIndex: 'goodsCode',
|
|
14532
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
14533
|
+
align: 'center',
|
|
14534
|
+
ellipsis: true,
|
|
14535
|
+
width: 250
|
|
14536
|
+
}, {
|
|
14537
|
+
dataIndex: 'skuCode',
|
|
14538
|
+
title: "sku\u7F16\u7801",
|
|
14539
|
+
align: 'center',
|
|
14540
|
+
ellipsis: true,
|
|
14541
|
+
width: 250
|
|
14542
|
+
}, {
|
|
14160
14543
|
dataIndex: 'skuName',
|
|
14161
|
-
title: "
|
|
14544
|
+
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
14162
14545
|
align: 'center',
|
|
14163
14546
|
ellipsis: true,
|
|
14164
14547
|
width: 250
|
|
14548
|
+
}, {
|
|
14549
|
+
dataIndex: 'olnSkuCode',
|
|
14550
|
+
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
14551
|
+
align: 'center',
|
|
14552
|
+
ellipsis: true,
|
|
14553
|
+
width: 150
|
|
14165
14554
|
}, {
|
|
14166
14555
|
dataIndex: 'sku',
|
|
14167
|
-
title: "
|
|
14556
|
+
title: "\u7EBF\u4E0Asku id",
|
|
14168
14557
|
align: 'center',
|
|
14169
14558
|
ellipsis: true,
|
|
14170
|
-
width:
|
|
14559
|
+
width: 150
|
|
14171
14560
|
}, {
|
|
14172
14561
|
dataIndex: 'name',
|
|
14173
|
-
title: "
|
|
14562
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
14174
14563
|
align: 'center',
|
|
14175
14564
|
ellipsis: true,
|
|
14176
14565
|
width: 250
|
|
14177
14566
|
}, {
|
|
14178
14567
|
dataIndex: 'pic',
|
|
14179
|
-
title: "\u56FE\u7247",
|
|
14568
|
+
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
14180
14569
|
align: 'center',
|
|
14181
14570
|
ellipsis: true,
|
|
14182
14571
|
width: 100,
|
|
@@ -14186,12 +14575,24 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14186
14575
|
src: val
|
|
14187
14576
|
});
|
|
14188
14577
|
}
|
|
14578
|
+
}, {
|
|
14579
|
+
dataIndex: 'olnItemCOde',
|
|
14580
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
14581
|
+
align: 'center',
|
|
14582
|
+
ellipsis: true,
|
|
14583
|
+
width: 150
|
|
14189
14584
|
}, {
|
|
14190
14585
|
dataIndex: 'code',
|
|
14191
|
-
title: "
|
|
14586
|
+
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
14192
14587
|
align: 'center',
|
|
14193
14588
|
ellipsis: true,
|
|
14194
|
-
width:
|
|
14589
|
+
width: 150
|
|
14590
|
+
}, {
|
|
14591
|
+
dataIndex: 'barCode',
|
|
14592
|
+
title: "\u5546\u54C1\u6761\u7801",
|
|
14593
|
+
align: 'center',
|
|
14594
|
+
ellipsis: true,
|
|
14595
|
+
width: 150
|
|
14195
14596
|
}, {
|
|
14196
14597
|
dataIndex: 'money',
|
|
14197
14598
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
@@ -14219,7 +14620,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14219
14620
|
}
|
|
14220
14621
|
}, {
|
|
14221
14622
|
dataIndex: 'share',
|
|
14222
|
-
title: "\
|
|
14623
|
+
title: "\u5E94\u6536\u6B3E",
|
|
14223
14624
|
align: 'center',
|
|
14224
14625
|
ellipsis: true,
|
|
14225
14626
|
width: 70
|
|
@@ -14229,6 +14630,27 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14229
14630
|
align: 'center',
|
|
14230
14631
|
ellipsis: true,
|
|
14231
14632
|
width: 100
|
|
14633
|
+
}, {
|
|
14634
|
+
dataIndex: 'isPackage',
|
|
14635
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
14636
|
+
align: 'center',
|
|
14637
|
+
ellipsis: true,
|
|
14638
|
+
render: function render(val, record, index) {
|
|
14639
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
14640
|
+
value: val,
|
|
14641
|
+
onChange: function onChange(value) {
|
|
14642
|
+
updateHandle(value, index, 'isGift');
|
|
14643
|
+
},
|
|
14644
|
+
options: [{
|
|
14645
|
+
label: '是',
|
|
14646
|
+
value: true
|
|
14647
|
+
}, {
|
|
14648
|
+
label: '否',
|
|
14649
|
+
value: false
|
|
14650
|
+
}]
|
|
14651
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14652
|
+
},
|
|
14653
|
+
width: 100
|
|
14232
14654
|
}]
|
|
14233
14655
|
};
|
|
14234
14656
|
};
|
|
@@ -14238,7 +14660,7 @@ var isNumberOrNumberString = function isNumberOrNumberString(value) {
|
|
|
14238
14660
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
14239
14661
|
return false;
|
|
14240
14662
|
};
|
|
14241
|
-
var getYesOrNo = function getYesOrNo(val) {
|
|
14663
|
+
var getYesOrNo$1 = function getYesOrNo(val) {
|
|
14242
14664
|
if (isNull(val)) return null;
|
|
14243
14665
|
return val ? '是' : '否';
|
|
14244
14666
|
};
|
|
@@ -14339,7 +14761,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14339
14761
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
14340
14762
|
width: 150,
|
|
14341
14763
|
render: function render(val) {
|
|
14342
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14764
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14343
14765
|
}
|
|
14344
14766
|
}, {
|
|
14345
14767
|
dataIndex: 'isGift',
|
|
@@ -14358,7 +14780,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14358
14780
|
label: '否',
|
|
14359
14781
|
value: 0
|
|
14360
14782
|
}]
|
|
14361
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14783
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14362
14784
|
}
|
|
14363
14785
|
}, {
|
|
14364
14786
|
dataIndex: 'skuNote',
|
|
@@ -14400,7 +14822,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14400
14822
|
title: "\u6570\u91CF",
|
|
14401
14823
|
width: 100,
|
|
14402
14824
|
render: function render(val, record, index) {
|
|
14403
|
-
return
|
|
14825
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14404
14826
|
style: {
|
|
14405
14827
|
width: 70
|
|
14406
14828
|
},
|
|
@@ -14421,7 +14843,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14421
14843
|
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
14422
14844
|
width: 150,
|
|
14423
14845
|
render: function render(val, record, index) {
|
|
14424
|
-
return
|
|
14846
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14425
14847
|
style: {
|
|
14426
14848
|
width: 130
|
|
14427
14849
|
},
|
|
@@ -14465,7 +14887,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14465
14887
|
label: '否',
|
|
14466
14888
|
value: 0
|
|
14467
14889
|
}]
|
|
14468
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14890
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14469
14891
|
}
|
|
14470
14892
|
}].map(function (item) {
|
|
14471
14893
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -14503,7 +14925,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14503
14925
|
title: "\u6570\u91CF",
|
|
14504
14926
|
width: 100,
|
|
14505
14927
|
render: function render(val, record, index) {
|
|
14506
|
-
return
|
|
14928
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14507
14929
|
style: {
|
|
14508
14930
|
width: 70
|
|
14509
14931
|
},
|
|
@@ -14524,7 +14946,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14524
14946
|
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
14525
14947
|
width: 150,
|
|
14526
14948
|
render: function render(val, record, index) {
|
|
14527
|
-
return
|
|
14949
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14528
14950
|
style: {
|
|
14529
14951
|
width: 130
|
|
14530
14952
|
},
|
|
@@ -14576,7 +14998,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14576
14998
|
label: '否',
|
|
14577
14999
|
value: 0
|
|
14578
15000
|
}]
|
|
14579
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
15001
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14580
15002
|
}
|
|
14581
15003
|
}].map(function (item) {
|
|
14582
15004
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -15304,6 +15726,29 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
|
15304
15726
|
});
|
|
15305
15727
|
};
|
|
15306
15728
|
|
|
15729
|
+
function HoverTableRowDeleteIcon(_ref) {
|
|
15730
|
+
var index = _ref.index,
|
|
15731
|
+
hoveredRowIndex = _ref.hoveredRowIndex,
|
|
15732
|
+
handleClick = _ref.handleClick;
|
|
15733
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
15734
|
+
style: {
|
|
15735
|
+
display: hoveredRowIndex === index ? 'none' : 'inline'
|
|
15736
|
+
}
|
|
15737
|
+
}, index + 1), /*#__PURE__*/React.createElement("span", {
|
|
15738
|
+
style: {
|
|
15739
|
+
cursor: 'pointer'
|
|
15740
|
+
},
|
|
15741
|
+
onClick: handleClick,
|
|
15742
|
+
title: "\u5220\u9664"
|
|
15743
|
+
}, /*#__PURE__*/React.createElement(MinusCircleFilled, {
|
|
15744
|
+
style: {
|
|
15745
|
+
fontSize: 18,
|
|
15746
|
+
color: '#1890ff',
|
|
15747
|
+
display: hoveredRowIndex === index ? 'inline' : 'none'
|
|
15748
|
+
}
|
|
15749
|
+
})));
|
|
15750
|
+
}
|
|
15751
|
+
|
|
15307
15752
|
var GoodsModalMap = {
|
|
15308
15753
|
WDT_REISSUE_GOODS: WdtGoodsModal,
|
|
15309
15754
|
WDT_GOODS: WdtGoodsModal,
|
|
@@ -15414,6 +15859,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15414
15859
|
showErpGoodsBtn = _props$showErpGoodsBt === void 0 ? true : _props$showErpGoodsBt,
|
|
15415
15860
|
_props$showModeBtn = props.showModeBtn,
|
|
15416
15861
|
showModeBtn = _props$showModeBtn === void 0 ? false : _props$showModeBtn,
|
|
15862
|
+
_props$alwaysShowChoo = props.alwaysShowChooseErpGoodsBtn,
|
|
15863
|
+
alwaysShowChooseErpGoodsBtn = _props$alwaysShowChoo === void 0 ? false : _props$alwaysShowChoo,
|
|
15417
15864
|
_props$isStrict = props.isStrict,
|
|
15418
15865
|
isStrict = _props$isStrict === void 0 ? false : _props$isStrict,
|
|
15419
15866
|
_props$tableSelect = props.tableSelect,
|
|
@@ -15449,6 +15896,10 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15449
15896
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
15450
15897
|
selectedRowKeys = _useState4[0],
|
|
15451
15898
|
setSelectedRowKeys = _useState4[1];
|
|
15899
|
+
var _useState5 = useState(null),
|
|
15900
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
15901
|
+
hoveredRowIndex = _useState6[0],
|
|
15902
|
+
setHoveredRowIndex = _useState6[1];
|
|
15452
15903
|
useEffect(function () {
|
|
15453
15904
|
setSelectedRowKeys([]);
|
|
15454
15905
|
}, [tableSelect, selectType]);
|
|
@@ -15497,7 +15948,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15497
15948
|
};
|
|
15498
15949
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
15499
15950
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
15500
|
-
var columnsOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
15951
|
+
var columnsOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
15952
|
+
operate: true
|
|
15953
|
+
};
|
|
15501
15954
|
return function (type) {
|
|
15502
15955
|
var columns = [];
|
|
15503
15956
|
switch (type) {
|
|
@@ -15584,7 +16037,13 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15584
16037
|
ellipsis: true,
|
|
15585
16038
|
width: 50,
|
|
15586
16039
|
render: function render(val, record, index) {
|
|
15587
|
-
return /*#__PURE__*/React.createElement(
|
|
16040
|
+
return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
16041
|
+
index: index,
|
|
16042
|
+
hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
|
|
16043
|
+
handleClick: function handleClick() {
|
|
16044
|
+
return handleDelete(record, index);
|
|
16045
|
+
}
|
|
16046
|
+
});
|
|
15588
16047
|
}
|
|
15589
16048
|
}].concat(_toConsumableArray(baseInfoColumns));
|
|
15590
16049
|
if (!disabled) {
|
|
@@ -15605,7 +16064,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15605
16064
|
});
|
|
15606
16065
|
}
|
|
15607
16066
|
return columnList;
|
|
15608
|
-
}, [showHeader, value, disabled]);
|
|
16067
|
+
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
15609
16068
|
var orderColumns = useMemo(function () {
|
|
15610
16069
|
var columns = COLUMNS_MAP('', {
|
|
15611
16070
|
operate: false,
|
|
@@ -15766,7 +16225,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15766
16225
|
return params;
|
|
15767
16226
|
}, [tableSelect, selectedRowKeys]);
|
|
15768
16227
|
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
|
|
15769
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && showChangeBtn
|
|
16228
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && (showChangeBtn ? /*#__PURE__*/React.createElement("div", {
|
|
15770
16229
|
style: {
|
|
15771
16230
|
float: 'right'
|
|
15772
16231
|
}
|
|
@@ -15783,7 +16242,14 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15783
16242
|
}), showErpGoodsBtn && /*#__PURE__*/React.createElement(Button, {
|
|
15784
16243
|
type: "link",
|
|
15785
16244
|
onClick: handleChangeGoods
|
|
15786
|
-
}, getButtonText(type)), otherOperations)
|
|
16245
|
+
}, getButtonText(type)), otherOperations) : showErpGoodsBtn && alwaysShowChooseErpGoodsBtn && /*#__PURE__*/React.createElement("div", {
|
|
16246
|
+
style: {
|
|
16247
|
+
float: 'right'
|
|
16248
|
+
}
|
|
16249
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
16250
|
+
type: "link",
|
|
16251
|
+
onClick: handleChangeGoods
|
|
16252
|
+
}, getButtonText(type)))), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
|
|
15787
16253
|
columns: newColumns,
|
|
15788
16254
|
dataSource: value,
|
|
15789
16255
|
rowKey: uniqueKey,
|
|
@@ -15794,6 +16260,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15794
16260
|
},
|
|
15795
16261
|
locale: {
|
|
15796
16262
|
emptyText: '暂无数据'
|
|
16263
|
+
},
|
|
16264
|
+
onRow: function onRow(_, index) {
|
|
16265
|
+
return {
|
|
16266
|
+
onMouseEnter: function onMouseEnter() {
|
|
16267
|
+
return setHoveredRowIndex(index);
|
|
16268
|
+
},
|
|
16269
|
+
onMouseLeave: function onMouseLeave() {
|
|
16270
|
+
return setHoveredRowIndex(null);
|
|
16271
|
+
}
|
|
16272
|
+
};
|
|
15797
16273
|
}
|
|
15798
16274
|
})), /*#__PURE__*/React.createElement(TheGoodsModal, {
|
|
15799
16275
|
ref: refModal,
|
|
@@ -15817,11 +16293,12 @@ var BsGoods = function BsGoods(props) {
|
|
|
15817
16293
|
setTableSelect = _useState2[1];
|
|
15818
16294
|
var withInfo = useRef(null);
|
|
15819
16295
|
var valueRef = useRef(null);
|
|
16296
|
+
var tokens = useRef([]);
|
|
15820
16297
|
useEffect(function () {
|
|
15821
16298
|
valueRef.current = value;
|
|
15822
16299
|
}, [value]);
|
|
15823
16300
|
useEffect(function () {
|
|
15824
|
-
pubsub.subscribe('type', function (type, data) {
|
|
16301
|
+
tokens.current = [pubsub.subscribe('type', function (type, data) {
|
|
15825
16302
|
if (disabled) return;
|
|
15826
16303
|
// console.log(type, data);
|
|
15827
16304
|
withInfo.current = {
|
|
@@ -15838,9 +16315,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
15838
16315
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
15839
16316
|
});
|
|
15840
16317
|
}
|
|
15841
|
-
})
|
|
15842
|
-
//补发
|
|
15843
|
-
pubsub.subscribe('reissueType', function (type, data) {
|
|
16318
|
+
}), pubsub.subscribe('reissueType', function (type, data) {
|
|
15844
16319
|
if (disabled) return;
|
|
15845
16320
|
withInfo.current = {
|
|
15846
16321
|
type: type,
|
|
@@ -15860,9 +16335,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
15860
16335
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
15861
16336
|
});
|
|
15862
16337
|
}
|
|
15863
|
-
})
|
|
15864
|
-
//退货
|
|
15865
|
-
pubsub.subscribe('returnType', function (type, data) {
|
|
16338
|
+
}), pubsub.subscribe('returnType', function (type, data) {
|
|
15866
16339
|
if (disabled) return;
|
|
15867
16340
|
withInfo.current = {
|
|
15868
16341
|
type: type,
|
|
@@ -15878,15 +16351,18 @@ var BsGoods = function BsGoods(props) {
|
|
|
15878
16351
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
15879
16352
|
});
|
|
15880
16353
|
}
|
|
15881
|
-
})
|
|
15882
|
-
pubsub.subscribeOnce('changeShopCode', function (type, data) {
|
|
16354
|
+
}), pubsub.subscribeOnce('changeShopCode', function (type, data) {
|
|
15883
16355
|
// console.log(data);
|
|
15884
16356
|
onChange(_objectSpread2(_objectSpread2({}, valueRef === null || valueRef === void 0 ? void 0 : valueRef.current), {}, {
|
|
15885
16357
|
shopCode: data.shopCode
|
|
15886
16358
|
}));
|
|
15887
|
-
});
|
|
16359
|
+
})];
|
|
15888
16360
|
return function () {
|
|
15889
|
-
|
|
16361
|
+
// 清除当前组件所有订阅
|
|
16362
|
+
tokens.current.forEach(function (token) {
|
|
16363
|
+
return pubsub.unsubscribe(token);
|
|
16364
|
+
});
|
|
16365
|
+
tokens.current = [];
|
|
15890
16366
|
};
|
|
15891
16367
|
}, [disabled]);
|
|
15892
16368
|
var _onSelect = function onSelect(list) {
|
|
@@ -15941,7 +16417,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
15941
16417
|
}));
|
|
15942
16418
|
};
|
|
15943
16419
|
|
|
15944
|
-
var _excluded$
|
|
16420
|
+
var _excluded$e = ["value", "onChange", "reasonList", "disabled"];
|
|
15945
16421
|
var BsExchange = function BsExchange(props) {
|
|
15946
16422
|
var _value$bsExchangeType4, _value$bsExchangeType5, _value$bsExchangeType6;
|
|
15947
16423
|
var value = props.value,
|
|
@@ -15949,7 +16425,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
15949
16425
|
_props$reasonList = props.reasonList,
|
|
15950
16426
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
15951
16427
|
disabled = props.disabled,
|
|
15952
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16428
|
+
other = _objectWithoutProperties(props, _excluded$e);
|
|
15953
16429
|
var valueRef = useRef({});
|
|
15954
16430
|
useEffect(function () {
|
|
15955
16431
|
valueRef.current = value;
|
|
@@ -16176,7 +16652,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16176
16652
|
}))) : null);
|
|
16177
16653
|
};
|
|
16178
16654
|
|
|
16179
|
-
var _excluded$
|
|
16655
|
+
var _excluded$f = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
16180
16656
|
var typeMap = {
|
|
16181
16657
|
BS_REISSUE_GOODS: {
|
|
16182
16658
|
key: 'bsReissueGoods',
|
|
@@ -16201,7 +16677,7 @@ var BsReissue = function BsReissue(props) {
|
|
|
16201
16677
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16202
16678
|
disabled = props.disabled,
|
|
16203
16679
|
type = props.type,
|
|
16204
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16680
|
+
other = _objectWithoutProperties(props, _excluded$f);
|
|
16205
16681
|
var valueRef = useRef({});
|
|
16206
16682
|
useEffect(function () {
|
|
16207
16683
|
var _typeMap$type;
|
|
@@ -16317,14 +16793,14 @@ var BsReissue = function BsReissue(props) {
|
|
|
16317
16793
|
})));
|
|
16318
16794
|
};
|
|
16319
16795
|
|
|
16320
|
-
var _excluded$
|
|
16796
|
+
var _excluded$g = ["value", "onChange", "reasonList", "disabled"];
|
|
16321
16797
|
var BsReturnGoods = function BsReturnGoods(props) {
|
|
16322
16798
|
var value = props.value,
|
|
16323
16799
|
onChange = props.onChange,
|
|
16324
16800
|
_props$reasonList = props.reasonList,
|
|
16325
16801
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16326
16802
|
disabled = props.disabled,
|
|
16327
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16803
|
+
other = _objectWithoutProperties(props, _excluded$g);
|
|
16328
16804
|
var valueRef = useRef({});
|
|
16329
16805
|
useEffect(function () {
|
|
16330
16806
|
pubsub.subscribe('returnSelectList', function (_, data) {
|
|
@@ -16550,12 +17026,7 @@ var getJstOrderListSingleton = function getJstOrderListSingleton(orderNo) {
|
|
|
16550
17026
|
// singletonMap.delete(orderNo);
|
|
16551
17027
|
reject(err);
|
|
16552
17028
|
};
|
|
16553
|
-
|
|
16554
|
-
method: 'post',
|
|
16555
|
-
data: {
|
|
16556
|
-
soId: orderNo
|
|
16557
|
-
}
|
|
16558
|
-
}).then(function (data) {
|
|
17029
|
+
servers.JST.jstOrderDetailWrap(orderNo).then(function (data) {
|
|
16559
17030
|
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
16560
17031
|
data.data = filterJstOrders({
|
|
16561
17032
|
orderList: (data === null || data === void 0 ? void 0 : data.data) || []
|
|
@@ -16565,7 +17036,28 @@ var getJstOrderListSingleton = function getJstOrderListSingleton(orderNo) {
|
|
|
16565
17036
|
doReject(data);
|
|
16566
17037
|
}
|
|
16567
17038
|
}).catch(doReject);
|
|
17039
|
+
// request('/qy/gdfw/jst/erp/orderOut/list', {
|
|
17040
|
+
// method: 'post',
|
|
17041
|
+
// data: {
|
|
17042
|
+
// soId: orderNo,
|
|
17043
|
+
// },
|
|
17044
|
+
// })
|
|
17045
|
+
// .then((data) => {
|
|
17046
|
+
// if (data?.success) {
|
|
17047
|
+
// data.data = filterJstOrders(
|
|
17048
|
+
// {
|
|
17049
|
+
// orderList: data?.data || [],
|
|
17050
|
+
// },
|
|
17051
|
+
// orderNo,
|
|
17052
|
+
// );
|
|
17053
|
+
// resolve(data.data);
|
|
17054
|
+
// } else {
|
|
17055
|
+
// doReject(data);
|
|
17056
|
+
// }
|
|
17057
|
+
// })
|
|
17058
|
+
// .catch(doReject);
|
|
16568
17059
|
});
|
|
17060
|
+
|
|
16569
17061
|
singletonMap$3.set(orderNo, p);
|
|
16570
17062
|
}
|
|
16571
17063
|
return singletonMap$3.get(orderNo);
|
|
@@ -16621,7 +17113,7 @@ var kmUtils = {
|
|
|
16621
17113
|
getOrderListSingleton: getOrderListSingleton
|
|
16622
17114
|
};
|
|
16623
17115
|
|
|
16624
|
-
var _excluded$
|
|
17116
|
+
var _excluded$h = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16625
17117
|
var columnsMap = {
|
|
16626
17118
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16627
17119
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16640,14 +17132,16 @@ var rowKeyMap = {
|
|
|
16640
17132
|
GY_SYSTEM_ORDER: 'billNo',
|
|
16641
17133
|
JST_SYSTEM_ORDER: 'oId'
|
|
16642
17134
|
};
|
|
16643
|
-
var index$
|
|
17135
|
+
var index$2 = (function (props) {
|
|
16644
17136
|
var value = props.value,
|
|
16645
17137
|
_onChange = props.onChange,
|
|
16646
17138
|
disabled = props.disabled,
|
|
16647
17139
|
type = props.type;
|
|
16648
17140
|
var onceRef = useRef(false);
|
|
17141
|
+
var valueRef = useRef(null);
|
|
16649
17142
|
useEffect(function () {
|
|
16650
17143
|
var _value$orders, _value$showOrderInfo;
|
|
17144
|
+
valueRef.current = value;
|
|
16651
17145
|
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) {
|
|
16652
17146
|
onceRef.current = true;
|
|
16653
17147
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -16673,7 +17167,7 @@ var index$1 = (function (props) {
|
|
|
16673
17167
|
}, [type]);
|
|
16674
17168
|
var getOrderList = /*#__PURE__*/function () {
|
|
16675
17169
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
16676
|
-
var _yield$request, success, data;
|
|
17170
|
+
var _yield$request, success, data, _valueRef$current;
|
|
16677
17171
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16678
17172
|
while (1) switch (_context.prev = _context.next) {
|
|
16679
17173
|
case 0:
|
|
@@ -16689,7 +17183,7 @@ var index$1 = (function (props) {
|
|
|
16689
17183
|
success = _yield$request.success;
|
|
16690
17184
|
data = _yield$request.data;
|
|
16691
17185
|
if (success) {
|
|
16692
|
-
_onChange(_objectSpread2(_objectSpread2({},
|
|
17186
|
+
_onChange(_objectSpread2(_objectSpread2({}, (_valueRef$current = valueRef.current) !== null && _valueRef$current !== void 0 ? _valueRef$current : {}), {}, {
|
|
16693
17187
|
orders: (data === null || data === void 0 ? void 0 : data.orders) || [],
|
|
16694
17188
|
showOrderInfo: data === null || data === void 0 ? void 0 : data.orders.map(function (item) {
|
|
16695
17189
|
return {
|
|
@@ -16717,7 +17211,7 @@ var index$1 = (function (props) {
|
|
|
16717
17211
|
}();
|
|
16718
17212
|
var getWlnOrderList = /*#__PURE__*/function () {
|
|
16719
17213
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(orderNo) {
|
|
16720
|
-
var _yield$request2, success, data;
|
|
17214
|
+
var _yield$request2, success, data, _valueRef$current2;
|
|
16721
17215
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
16722
17216
|
while (1) switch (_context2.prev = _context2.next) {
|
|
16723
17217
|
case 0:
|
|
@@ -16733,7 +17227,7 @@ var index$1 = (function (props) {
|
|
|
16733
17227
|
success = _yield$request2.success;
|
|
16734
17228
|
data = _yield$request2.data;
|
|
16735
17229
|
if (success) {
|
|
16736
|
-
_onChange(_objectSpread2(_objectSpread2({},
|
|
17230
|
+
_onChange(_objectSpread2(_objectSpread2({}, (_valueRef$current2 = valueRef.current) !== null && _valueRef$current2 !== void 0 ? _valueRef$current2 : {}), {}, {
|
|
16737
17231
|
orders: data === null || data === void 0 ? void 0 : data.orders.map(function (item) {
|
|
16738
17232
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16739
17233
|
billNo: item.tradeNo,
|
|
@@ -16770,7 +17264,7 @@ var index$1 = (function (props) {
|
|
|
16770
17264
|
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
16771
17265
|
return (item.srcTid || '').split(',').includes(orderNo);
|
|
16772
17266
|
});
|
|
16773
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({},
|
|
17267
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
16774
17268
|
orders: trades,
|
|
16775
17269
|
showOrderInfo: trades.map(function (_ref4) {
|
|
16776
17270
|
var billNo = _ref4.billNo,
|
|
@@ -16804,7 +17298,7 @@ var index$1 = (function (props) {
|
|
|
16804
17298
|
var trades = ((data === null || data === void 0 ? void 0 : data.orderList) || []).filter(function (item) {
|
|
16805
17299
|
return (item === null || item === void 0 ? void 0 : item.dealCode) === orderNo;
|
|
16806
17300
|
});
|
|
16807
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({},
|
|
17301
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
16808
17302
|
orders: trades,
|
|
16809
17303
|
showOrderInfo: trades
|
|
16810
17304
|
}));
|
|
@@ -16827,7 +17321,7 @@ var index$1 = (function (props) {
|
|
|
16827
17321
|
case 0:
|
|
16828
17322
|
jstUtils.getJstOrderListSingleton(orderNo).then(function (data) {
|
|
16829
17323
|
var trades = data || [];
|
|
16830
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({},
|
|
17324
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
16831
17325
|
orders: trades,
|
|
16832
17326
|
showOrderInfo: trades
|
|
16833
17327
|
}));
|
|
@@ -16849,7 +17343,7 @@ var index$1 = (function (props) {
|
|
|
16849
17343
|
while (1) switch (_context6.prev = _context6.next) {
|
|
16850
17344
|
case 0:
|
|
16851
17345
|
kmUtils.getOrderListSingleton(orderNo).then(function (trades) {
|
|
16852
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({},
|
|
17346
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
16853
17347
|
orders: trades,
|
|
16854
17348
|
showOrderInfo: trades.map(function (_ref8) {
|
|
16855
17349
|
var billNo = _ref8.billNo,
|
|
@@ -16883,7 +17377,7 @@ var index$1 = (function (props) {
|
|
|
16883
17377
|
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
16884
17378
|
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
16885
17379
|
});
|
|
16886
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({},
|
|
17380
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
16887
17381
|
orders: trades,
|
|
16888
17382
|
showOrderInfo: trades.map(function (_ref10) {
|
|
16889
17383
|
var billNo = _ref10.billNo,
|
|
@@ -16893,7 +17387,7 @@ var index$1 = (function (props) {
|
|
|
16893
17387
|
deliveryState = _ref10.deliveryState,
|
|
16894
17388
|
vipCode = _ref10.vipCode,
|
|
16895
17389
|
shopCode = _ref10.shopCode,
|
|
16896
|
-
rest = _objectWithoutProperties(_ref10, _excluded$
|
|
17390
|
+
rest = _objectWithoutProperties(_ref10, _excluded$h);
|
|
16897
17391
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
16898
17392
|
billNo: billNo,
|
|
16899
17393
|
billType: billType,
|
|
@@ -17110,6 +17604,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17110
17604
|
setTableSelect = _useState2[1];
|
|
17111
17605
|
var withInfo = useRef(null);
|
|
17112
17606
|
var valueRef = useRef(null);
|
|
17607
|
+
var tokens = useRef([]);
|
|
17113
17608
|
useEffect(function () {
|
|
17114
17609
|
var _value$orders;
|
|
17115
17610
|
valueRef.current = value;
|
|
@@ -17125,9 +17620,10 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17125
17620
|
case 0:
|
|
17126
17621
|
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
17127
17622
|
var orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (trade) {
|
|
17128
|
-
|
|
17623
|
+
var _valueRef$current;
|
|
17624
|
+
return (((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.selectIds) || []).includes(trade.tradeNo);
|
|
17129
17625
|
});
|
|
17130
|
-
onChange(_objectSpread2(_objectSpread2({},
|
|
17626
|
+
onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
17131
17627
|
orders: orders
|
|
17132
17628
|
}));
|
|
17133
17629
|
});
|
|
@@ -17142,7 +17638,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17142
17638
|
};
|
|
17143
17639
|
}();
|
|
17144
17640
|
useEffect(function () {
|
|
17145
|
-
pubsub.subscribe(componentMap$1[compType].eventNameMap.type, function (type, data) {
|
|
17641
|
+
tokens.current = [pubsub.subscribe(componentMap$1[compType].eventNameMap.type, function (type, data) {
|
|
17146
17642
|
if (disabled) return;
|
|
17147
17643
|
// console.log(type, data);
|
|
17148
17644
|
withInfo.current = {
|
|
@@ -17152,16 +17648,14 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17152
17648
|
};
|
|
17153
17649
|
setTableSelect(['2', '4'].includes(data.val));
|
|
17154
17650
|
if (['1', '3'].includes(data.val)) {
|
|
17155
|
-
var _valueRef$
|
|
17651
|
+
var _valueRef$current2, _valueRef$current3;
|
|
17156
17652
|
pubsub.publish(componentMap$1[compType].eventNameMap.selectListReturn, {
|
|
17157
|
-
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17158
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17653
|
+
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]) || []),
|
|
17654
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3.shopCode,
|
|
17159
17655
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
17160
17656
|
});
|
|
17161
17657
|
}
|
|
17162
|
-
})
|
|
17163
|
-
//补发
|
|
17164
|
-
pubsub.subscribe(componentMap$1[compType].eventNameMap.reissueType, function (type, data) {
|
|
17658
|
+
}), pubsub.subscribe(componentMap$1[compType].eventNameMap.reissueType, function (type, data) {
|
|
17165
17659
|
if (disabled) return;
|
|
17166
17660
|
withInfo.current = {
|
|
17167
17661
|
type: type,
|
|
@@ -17170,16 +17664,14 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17170
17664
|
};
|
|
17171
17665
|
setTableSelect(['2', '4'].includes(data.val));
|
|
17172
17666
|
if (['1', '3'].includes(data.val)) {
|
|
17173
|
-
var _valueRef$
|
|
17667
|
+
var _valueRef$current4, _valueRef$current5;
|
|
17174
17668
|
pubsub.publish(componentMap$1[compType].eventNameMap.reissueSelectListReturn, {
|
|
17175
|
-
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17176
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17669
|
+
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]) || []),
|
|
17670
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5.shopCode,
|
|
17177
17671
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
17178
17672
|
});
|
|
17179
17673
|
}
|
|
17180
|
-
})
|
|
17181
|
-
//退货
|
|
17182
|
-
pubsub.subscribe(componentMap$1[compType].eventNameMap.returnType, function (type, data) {
|
|
17674
|
+
}), pubsub.subscribe(componentMap$1[compType].eventNameMap.returnType, function (type, data) {
|
|
17183
17675
|
if (disabled) return;
|
|
17184
17676
|
withInfo.current = {
|
|
17185
17677
|
type: type,
|
|
@@ -17188,26 +17680,29 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17188
17680
|
};
|
|
17189
17681
|
setTableSelect(['2', '4'].includes(data.val));
|
|
17190
17682
|
if (['1', '3'].includes(data.val)) {
|
|
17191
|
-
var _valueRef$
|
|
17683
|
+
var _valueRef$current6, _valueRef$current7;
|
|
17192
17684
|
pubsub.publish(componentMap$1[compType].eventNameMap.returnSelectListReturn, {
|
|
17193
|
-
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17194
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17685
|
+
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]) || []),
|
|
17686
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current7 = valueRef.current) === null || _valueRef$current7 === void 0 ? void 0 : _valueRef$current7.shopCode,
|
|
17195
17687
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
17196
17688
|
});
|
|
17197
17689
|
}
|
|
17198
|
-
})
|
|
17199
|
-
pubsub.subscribeOnce(componentMap$1[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
17690
|
+
}), pubsub.subscribeOnce(componentMap$1[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
17200
17691
|
// console.log(data);
|
|
17201
17692
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, valueRef === null || valueRef === void 0 ? void 0 : valueRef.current), {}, {
|
|
17202
17693
|
shopCode: data.shopCode
|
|
17203
17694
|
}));
|
|
17204
|
-
});
|
|
17695
|
+
})];
|
|
17205
17696
|
return function () {
|
|
17206
|
-
|
|
17697
|
+
// 清除当前组件所有订阅
|
|
17698
|
+
tokens.current.forEach(function (token) {
|
|
17699
|
+
return pubsub.unsubscribe(token);
|
|
17700
|
+
});
|
|
17701
|
+
tokens.current = [];
|
|
17207
17702
|
};
|
|
17208
17703
|
}, [disabled]);
|
|
17209
17704
|
var _onSelect = function onSelect(list) {
|
|
17210
|
-
var _typeMap, _withInfo$current, _withInfo$current2, _valueRef$
|
|
17705
|
+
var _typeMap, _withInfo$current, _withInfo$current2, _valueRef$current8;
|
|
17211
17706
|
if (disabled) return;
|
|
17212
17707
|
var newList = cloneDeep(list);
|
|
17213
17708
|
var typeMap = (_typeMap = {
|
|
@@ -17224,7 +17719,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17224
17719
|
item.canDelete = true;
|
|
17225
17720
|
return item;
|
|
17226
17721
|
}),
|
|
17227
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
17722
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current8 = valueRef.current) === null || _valueRef$current8 === void 0 ? void 0 : _valueRef$current8.shopCode,
|
|
17228
17723
|
goodValue: withInfo.current.goodValue
|
|
17229
17724
|
});
|
|
17230
17725
|
};
|
|
@@ -17599,7 +18094,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17599
18094
|
})));
|
|
17600
18095
|
};
|
|
17601
18096
|
|
|
17602
|
-
var _excluded$
|
|
18097
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17603
18098
|
var typeMap$1 = {
|
|
17604
18099
|
WDT_REISSUE_GOODS: {
|
|
17605
18100
|
key: 'wdtReissueGoods',
|
|
@@ -17620,14 +18115,14 @@ var typeMap$1 = {
|
|
|
17620
18115
|
}
|
|
17621
18116
|
};
|
|
17622
18117
|
var wdtReissue = function wdtReissue(props) {
|
|
17623
|
-
var _value$wdtSystemOrder, _typeMap$
|
|
18118
|
+
var _value$wdtSystemOrder, _typeMap$type24, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s5, _typeMap$type28, _typeMap$type29, _typeMap$type30;
|
|
17624
18119
|
var value = props.value,
|
|
17625
18120
|
onChange = props.onChange,
|
|
17626
18121
|
_props$reasonList = props.reasonList,
|
|
17627
18122
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17628
18123
|
disabled = props.disabled,
|
|
17629
18124
|
type = props.type,
|
|
17630
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18125
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17631
18126
|
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) {
|
|
17632
18127
|
var _order$srcTid;
|
|
17633
18128
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -17637,8 +18132,10 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17637
18132
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17638
18133
|
isStrict = _useState2[0],
|
|
17639
18134
|
setIsStrict = _useState2[1];
|
|
18135
|
+
var valueRef = useRef(null);
|
|
17640
18136
|
useEffect(function () {
|
|
17641
18137
|
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
18138
|
+
valueRef.current = value;
|
|
17642
18139
|
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)) {
|
|
17643
18140
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
17644
18141
|
getOrderFlag.current = true;
|
|
@@ -17683,7 +18180,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17683
18180
|
while (1) switch (_context.prev = _context.next) {
|
|
17684
18181
|
case 0:
|
|
17685
18182
|
(_typeMap$type4 = typeMap$1[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
17686
|
-
var _typeMap$type5, _typeMap$type6;
|
|
18183
|
+
var _typeMap$type5, _ref3, _typeMap$type6;
|
|
17687
18184
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
17688
18185
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
17689
18186
|
var billNo = _ref2.billNo,
|
|
@@ -17695,7 +18192,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17695
18192
|
billTag: billTag
|
|
17696
18193
|
};
|
|
17697
18194
|
});
|
|
17698
|
-
onChange(_objectSpread2(_objectSpread2({},
|
|
18195
|
+
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]) || {}), {}, {
|
|
17699
18196
|
showOrderInfo: showOrderInfo,
|
|
17700
18197
|
orders: orders
|
|
17701
18198
|
}))));
|
|
@@ -17738,10 +18235,10 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17738
18235
|
mode: mode
|
|
17739
18236
|
}))));
|
|
17740
18237
|
};
|
|
17741
|
-
var getGoodDetails = function getGoodDetails(
|
|
18238
|
+
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
17742
18239
|
var _typeMap$type13, _typeMap$type14, _order$goodDetails;
|
|
17743
|
-
var mode =
|
|
17744
|
-
sysOrderNo =
|
|
18240
|
+
var mode = _ref4.mode,
|
|
18241
|
+
sysOrderNo = _ref4.sysOrderNo;
|
|
17745
18242
|
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];
|
|
17746
18243
|
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];
|
|
17747
18244
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -17755,25 +18252,19 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17755
18252
|
};
|
|
17756
18253
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
17757
18254
|
var _typeMap$type15;
|
|
17758
|
-
var newValue = _objectSpread2({}, value);
|
|
17759
|
-
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) {
|
|
17760
|
-
var _typeMap$type16, _typeMap$type17;
|
|
17761
|
-
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;
|
|
17762
|
-
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;
|
|
17763
|
-
return item;
|
|
17764
|
-
});
|
|
18255
|
+
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 || []));
|
|
17765
18256
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17766
18257
|
};
|
|
17767
18258
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
17768
|
-
var _typeMap$
|
|
18259
|
+
var _typeMap$type16, _value$typeMap$type$t3, _typeMap$type17, _value$typeMap$type$t4, _typeMap$type19;
|
|
17769
18260
|
var newValue = _objectSpread2({}, value);
|
|
17770
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17771
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
18261
|
+
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;
|
|
18262
|
+
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])) {
|
|
18263
|
+
var _typeMap$type18;
|
|
18264
|
+
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)] = [];
|
|
18265
|
+
} 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])) {
|
|
17772
18266
|
var _typeMap$type20;
|
|
17773
|
-
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)] =
|
|
17774
|
-
} 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])) {
|
|
17775
|
-
var _typeMap$type22;
|
|
17776
|
-
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({
|
|
18267
|
+
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({
|
|
17777
18268
|
mode: isStrict,
|
|
17778
18269
|
sysOrderNo: val
|
|
17779
18270
|
});
|
|
@@ -17781,25 +18272,25 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17781
18272
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17782
18273
|
};
|
|
17783
18274
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
17784
|
-
var _typeMap$
|
|
18275
|
+
var _typeMap$type21, _typeMap$type22, _uniqBy, _typeMap$type23;
|
|
17785
18276
|
var newValue = _objectSpread2({}, value);
|
|
17786
18277
|
// 原订单商品
|
|
17787
18278
|
var originTradeGoodList = getGoodDetails({
|
|
17788
18279
|
mode: isStrict
|
|
17789
18280
|
}) || [];
|
|
17790
18281
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
17791
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17792
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18282
|
+
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)]) || [];
|
|
18283
|
+
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) {
|
|
17793
18284
|
return skuList.includes(item.uuid);
|
|
17794
18285
|
});
|
|
17795
|
-
console.log('商品发生变化', newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18286
|
+
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)]);
|
|
17796
18287
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17797
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18288
|
+
}, [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]);
|
|
17798
18289
|
//显示选择商品按钮 原单换不显示选择商品
|
|
17799
18290
|
var showChangeBtn = useMemo(function () {
|
|
17800
|
-
var _typeMap$
|
|
17801
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
17802
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
18291
|
+
var _typeMap$type25;
|
|
18292
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]);
|
|
18293
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo]]);
|
|
17803
18294
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
17804
18295
|
gutter: 8,
|
|
17805
18296
|
wrap: true
|
|
@@ -17817,12 +18308,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17817
18308
|
},
|
|
17818
18309
|
disabled: disabled,
|
|
17819
18310
|
allowClear: false,
|
|
17820
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18311
|
+
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)],
|
|
17821
18312
|
onChange: function onChange(val) {
|
|
17822
18313
|
return changeSystemOrderHandle(val);
|
|
17823
18314
|
},
|
|
17824
18315
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
17825
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
18316
|
+
}, ((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) {
|
|
17826
18317
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
17827
18318
|
key: item.billNo,
|
|
17828
18319
|
value: item.billNo,
|
|
@@ -17843,7 +18334,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17843
18334
|
disabled: disabled,
|
|
17844
18335
|
allowClear: false,
|
|
17845
18336
|
options: reasonList,
|
|
17846
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18337
|
+
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)],
|
|
17847
18338
|
onChange: function onChange(val) {
|
|
17848
18339
|
return changeTypeHandle(val);
|
|
17849
18340
|
}
|
|
@@ -17855,7 +18346,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17855
18346
|
canUpdateNumber: showChangeBtn,
|
|
17856
18347
|
showChangeBtn: showChangeBtn,
|
|
17857
18348
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
17858
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18349
|
+
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)],
|
|
17859
18350
|
onChange: function onChange(val) {
|
|
17860
18351
|
return changeGoodHandle(val);
|
|
17861
18352
|
},
|
|
@@ -17871,7 +18362,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17871
18362
|
})));
|
|
17872
18363
|
};
|
|
17873
18364
|
|
|
17874
|
-
var _excluded$
|
|
18365
|
+
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17875
18366
|
var typeMap$2 = {
|
|
17876
18367
|
JST_REISSUE_GOODS: {
|
|
17877
18368
|
compType: '补发',
|
|
@@ -17882,6 +18373,7 @@ var typeMap$2 = {
|
|
|
17882
18373
|
systemOrderBillType: 'jstSystemOrderBillType',
|
|
17883
18374
|
getOrderList: jstUtils.getJstOrderListSingleton,
|
|
17884
18375
|
updateGoodsHandle: updateJstGoodsHandle,
|
|
18376
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
17885
18377
|
orderTypeKey: 'orderType',
|
|
17886
18378
|
oIdKey: 'oId',
|
|
17887
18379
|
outerOiIdKey: '',
|
|
@@ -17896,11 +18388,11 @@ var typeMap$2 = {
|
|
|
17896
18388
|
systemOrderBillType: 'jstSystemOrderBillType',
|
|
17897
18389
|
getOrderList: jstUtils.getJstOrderListSingleton,
|
|
17898
18390
|
updateGoodsHandle: updateJstGoodsHandle,
|
|
18391
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
17899
18392
|
orderTypeKey: 'orderType',
|
|
17900
18393
|
oIdKey: 'oId',
|
|
17901
18394
|
outerOiIdKey: '',
|
|
17902
18395
|
goodDetailsKey: 'items',
|
|
17903
|
-
showErpGoodsBtn: false,
|
|
17904
18396
|
eventNameMap: {
|
|
17905
18397
|
// pubsub 事件
|
|
17906
18398
|
exchangeCopyGood: 'jstExchangeCopyGood',
|
|
@@ -17911,14 +18403,14 @@ var typeMap$2 = {
|
|
|
17911
18403
|
}
|
|
17912
18404
|
};
|
|
17913
18405
|
var PublicReissue = function PublicReissue(props) {
|
|
17914
|
-
var _typeMap$type31, _typeMap$type34, _typeMap$type35, _typeMap$type36, _typeMap$type37, _value$typeMap$type$s6, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43;
|
|
18406
|
+
var _typeMap$type31, _typeMap$type34, _typeMap$type35, _typeMap$type36, _typeMap$type37, _value$typeMap$type$s6, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44;
|
|
17915
18407
|
var value = props.value,
|
|
17916
18408
|
onChange = props.onChange,
|
|
17917
18409
|
_props$reasonList = props.reasonList,
|
|
17918
18410
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17919
18411
|
disabled = props.disabled,
|
|
17920
18412
|
type = props.type,
|
|
17921
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18413
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
17922
18414
|
var getOrderFlag = useRef(false);
|
|
17923
18415
|
var _useState = useState(false),
|
|
17924
18416
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17965,13 +18457,13 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
17965
18457
|
while (1) switch (_context.prev = _context.next) {
|
|
17966
18458
|
case 0:
|
|
17967
18459
|
(_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
17968
|
-
var _typeMap$type5, _typeMap$type6, _typeMap$type10, _typeMap$type11;
|
|
18460
|
+
var _valueRef$current3, _typeMap$type5, _typeMap$type6, _typeMap$type10, _ref3, _typeMap$type11;
|
|
17969
18461
|
var orders = data || [];
|
|
17970
18462
|
var showOrderInfo = orders.map(function (orderItem) {
|
|
17971
18463
|
return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
|
|
17972
18464
|
});
|
|
17973
18465
|
var typeObj = {};
|
|
17974
|
-
var systemOrderNo =
|
|
18466
|
+
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];
|
|
17975
18467
|
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) {
|
|
17976
18468
|
var _typeMap$type8, _typeMap$type9;
|
|
17977
18469
|
var targetOrder = orders.find(function (oItem) {
|
|
@@ -17980,7 +18472,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
17980
18472
|
});
|
|
17981
18473
|
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];
|
|
17982
18474
|
}
|
|
17983
|
-
onChange(_objectSpread2(_objectSpread2(_objectSpread2({},
|
|
18475
|
+
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]) || {}), {}, {
|
|
17984
18476
|
showOrderInfo: showOrderInfo,
|
|
17985
18477
|
orders: orders
|
|
17986
18478
|
}))));
|
|
@@ -18023,10 +18515,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18023
18515
|
mode: mode
|
|
18024
18516
|
}))));
|
|
18025
18517
|
};
|
|
18026
|
-
var getGoodDetails = function getGoodDetails(
|
|
18518
|
+
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
18027
18519
|
var _typeMap$type17, _typeMap$type18, _order$typeMap$type$g, _typeMap$type19;
|
|
18028
|
-
var mode =
|
|
18029
|
-
sysOrderNo =
|
|
18520
|
+
var mode = _ref4.mode,
|
|
18521
|
+
sysOrderNo = _ref4.sysOrderNo;
|
|
18030
18522
|
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];
|
|
18031
18523
|
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];
|
|
18032
18524
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -18152,9 +18644,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18152
18644
|
disabled: disabled,
|
|
18153
18645
|
canUpdateNumber: showChangeBtn,
|
|
18154
18646
|
showChangeBtn: showChangeBtn,
|
|
18155
|
-
|
|
18647
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.alwaysShowChooseErpGoodsBtn,
|
|
18648
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.showErpGoodsBtn,
|
|
18156
18649
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
18157
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
18650
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.key)],
|
|
18158
18651
|
onChange: function onChange(val) {
|
|
18159
18652
|
return changeGoodHandle(val);
|
|
18160
18653
|
},
|
|
@@ -18170,8 +18663,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18170
18663
|
})));
|
|
18171
18664
|
};
|
|
18172
18665
|
|
|
18173
|
-
var css_248z$
|
|
18174
|
-
styleInject(css_248z$
|
|
18666
|
+
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";
|
|
18667
|
+
styleInject(css_248z$b);
|
|
18175
18668
|
|
|
18176
18669
|
var TabPane$1 = Tabs.TabPane;
|
|
18177
18670
|
var Option$2 = Select.Option;
|
|
@@ -18644,14 +19137,14 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18644
19137
|
userNick: userNick
|
|
18645
19138
|
}));
|
|
18646
19139
|
};
|
|
18647
|
-
var index$
|
|
19140
|
+
var index$3 = /*#__PURE__*/forwardRef(Goods$1);
|
|
18648
19141
|
|
|
18649
|
-
var _excluded$
|
|
19142
|
+
var _excluded$k = ["onChange", "value", "failValue"];
|
|
18650
19143
|
function CommonStatus(props) {
|
|
18651
19144
|
var onChange = props.onChange,
|
|
18652
19145
|
value = props.value,
|
|
18653
19146
|
failValue = props.failValue,
|
|
18654
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19147
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18655
19148
|
var changeHandle = function changeHandle(val) {
|
|
18656
19149
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18657
19150
|
status: val,
|
|
@@ -18788,7 +19281,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18788
19281
|
})) : null) : null);
|
|
18789
19282
|
};
|
|
18790
19283
|
|
|
18791
|
-
var _excluded$
|
|
19284
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18792
19285
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18793
19286
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18794
19287
|
var _props$value = props.value,
|
|
@@ -18798,7 +19291,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18798
19291
|
failValue = props.failValue,
|
|
18799
19292
|
_props$type = props.type,
|
|
18800
19293
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18801
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19294
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
18802
19295
|
var _useState = useState(0),
|
|
18803
19296
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18804
19297
|
changeIndex = _useState2[0],
|
|
@@ -18864,7 +19357,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18864
19357
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
18865
19358
|
};
|
|
18866
19359
|
|
|
18867
|
-
var _excluded$
|
|
19360
|
+
var _excluded$m = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18868
19361
|
var MsgStatus = function MsgStatus(props) {
|
|
18869
19362
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18870
19363
|
var _props$value = props.value,
|
|
@@ -18874,7 +19367,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
18874
19367
|
failValue = props.failValue,
|
|
18875
19368
|
_props$type = props.type,
|
|
18876
19369
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18877
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19370
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
18878
19371
|
var _useState = useState(0),
|
|
18879
19372
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18880
19373
|
changeIndex = _useState2[0],
|
|
@@ -18943,7 +19436,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
18943
19436
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
18944
19437
|
};
|
|
18945
19438
|
|
|
18946
|
-
var _excluded$
|
|
19439
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18947
19440
|
var typeMap$3 = {
|
|
18948
19441
|
BS_E3_REISSUE_GOODS: {
|
|
18949
19442
|
key: 'bsE3ReissueGoods',
|
|
@@ -18961,8 +19454,9 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18961
19454
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18962
19455
|
disabled = props.disabled,
|
|
18963
19456
|
type = props.type,
|
|
18964
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19457
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
18965
19458
|
var getOrderFlag = useRef(false);
|
|
19459
|
+
var valueRef = useRef(null);
|
|
18966
19460
|
var _useState = useState(false),
|
|
18967
19461
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18968
19462
|
isStrict = _useState2[0],
|
|
@@ -18970,6 +19464,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18970
19464
|
// TODO: 在修改场景下手动获取一次订单详情中数据
|
|
18971
19465
|
useEffect(function () {
|
|
18972
19466
|
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
19467
|
+
valueRef.current = value;
|
|
18973
19468
|
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)) {
|
|
18974
19469
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
18975
19470
|
getOrderFlag.current = true;
|
|
@@ -18998,7 +19493,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18998
19493
|
while (1) switch (_context.prev = _context.next) {
|
|
18999
19494
|
case 0:
|
|
19000
19495
|
(_typeMap$type4 = typeMap$3[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
19001
|
-
var _typeMap$type5, _typeMap$type6;
|
|
19496
|
+
var _typeMap$type5, _ref3, _typeMap$type6;
|
|
19002
19497
|
var orders = (data === null || data === void 0 ? void 0 : data.orderList) || [];
|
|
19003
19498
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
19004
19499
|
var orderSn = _ref2.orderSn;
|
|
@@ -19006,7 +19501,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19006
19501
|
billNo: orderSn
|
|
19007
19502
|
};
|
|
19008
19503
|
});
|
|
19009
|
-
onChange(_objectSpread2(_objectSpread2({},
|
|
19504
|
+
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]) || {}), {}, {
|
|
19010
19505
|
showOrderInfo: showOrderInfo,
|
|
19011
19506
|
orders: orders
|
|
19012
19507
|
}))));
|
|
@@ -19049,10 +19544,10 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19049
19544
|
mode: mode
|
|
19050
19545
|
}))));
|
|
19051
19546
|
};
|
|
19052
|
-
var getGoodDetails = function getGoodDetails(
|
|
19547
|
+
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
19053
19548
|
var _typeMap$type12, _typeMap$type13, _order$orderDetailGet;
|
|
19054
|
-
var mode =
|
|
19055
|
-
sysOrderNo =
|
|
19549
|
+
var mode = _ref4.mode,
|
|
19550
|
+
sysOrderNo = _ref4.sysOrderNo;
|
|
19056
19551
|
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];
|
|
19057
19552
|
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];
|
|
19058
19553
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -19177,7 +19672,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19177
19672
|
})));
|
|
19178
19673
|
};
|
|
19179
19674
|
|
|
19180
|
-
var _excluded$
|
|
19675
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19181
19676
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19182
19677
|
var typeMap$4 = {
|
|
19183
19678
|
GY_REISSUE_GOODS: {
|
|
@@ -19199,25 +19694,26 @@ var typeMap$4 = {
|
|
|
19199
19694
|
}
|
|
19200
19695
|
};
|
|
19201
19696
|
var GyReissue = function GyReissue(props) {
|
|
19202
|
-
var
|
|
19697
|
+
var _typeMap$type28, _typeMap$type30, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
|
|
19203
19698
|
var value = props.value,
|
|
19204
19699
|
onChange = props.onChange,
|
|
19205
19700
|
_props$reasonList = props.reasonList,
|
|
19206
19701
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19207
19702
|
disabled = props.disabled,
|
|
19208
19703
|
type = props.type,
|
|
19209
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19210
|
-
|
|
19211
|
-
|
|
19212
|
-
|
|
19213
|
-
});
|
|
19704
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19705
|
+
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19706
|
+
// order?.platformCode?.includes(';'),
|
|
19707
|
+
// );
|
|
19214
19708
|
var getOrderFlag = useRef(false);
|
|
19709
|
+
var valueRef = useRef(null);
|
|
19215
19710
|
var _useState = useState(false),
|
|
19216
19711
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19217
19712
|
isStrict = _useState2[0],
|
|
19218
19713
|
setIsStrict = _useState2[1];
|
|
19219
19714
|
useEffect(function () {
|
|
19220
19715
|
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
19716
|
+
valueRef.current = value;
|
|
19221
19717
|
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)) {
|
|
19222
19718
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
19223
19719
|
getOrderFlag.current = true;
|
|
@@ -19232,7 +19728,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19232
19728
|
while (1) switch (_context.prev = _context.next) {
|
|
19233
19729
|
case 0:
|
|
19234
19730
|
(_typeMap$type4 = typeMap$4[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
19235
|
-
var _typeMap$type5, _typeMap$type6;
|
|
19731
|
+
var _typeMap$type5, _ref3, _typeMap$type6, _typeMap$type7, _ref4, _typeMap$type8;
|
|
19236
19732
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
19237
19733
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
19238
19734
|
var billNo = _ref2.billNo,
|
|
@@ -19254,7 +19750,14 @@ var GyReissue = function GyReissue(props) {
|
|
|
19254
19750
|
shopCode: shopCode
|
|
19255
19751
|
});
|
|
19256
19752
|
});
|
|
19257
|
-
|
|
19753
|
+
pushGyLog('getOrderList', {
|
|
19754
|
+
before: valueRef.current,
|
|
19755
|
+
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]) || {}), {}, {
|
|
19756
|
+
showOrderInfo: showOrderInfo,
|
|
19757
|
+
orders: orders
|
|
19758
|
+
})))
|
|
19759
|
+
});
|
|
19760
|
+
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]) || {}), {}, {
|
|
19258
19761
|
showOrderInfo: showOrderInfo,
|
|
19259
19762
|
orders: orders
|
|
19260
19763
|
}))));
|
|
@@ -19270,39 +19773,41 @@ var GyReissue = function GyReissue(props) {
|
|
|
19270
19773
|
};
|
|
19271
19774
|
}();
|
|
19272
19775
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
19273
|
-
var
|
|
19776
|
+
var _ref5, _ref5$typeMap$type$ty, _typeMap$type9, _typeMap$type10;
|
|
19777
|
+
pushGyLog('beforeChangeType', valueRef.current || {});
|
|
19274
19778
|
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
19275
|
-
if (typeName === (
|
|
19779
|
+
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;
|
|
19276
19780
|
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
19277
|
-
var newValue = _objectSpread2({},
|
|
19278
|
-
newValue[(_typeMap$
|
|
19781
|
+
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
19782
|
+
newValue[(_typeMap$type10 = typeMap$4[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.typeName] = val;
|
|
19279
19783
|
if (typeName === '1') {
|
|
19280
|
-
var _typeMap$
|
|
19281
|
-
newValue[(_typeMap$
|
|
19784
|
+
var _typeMap$type11;
|
|
19785
|
+
newValue[(_typeMap$type11 = typeMap$4[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.key] = getGoodDetails({
|
|
19282
19786
|
mode: isStrict
|
|
19283
19787
|
});
|
|
19284
19788
|
} else if (typeName === '2') {
|
|
19285
|
-
var _typeMap$
|
|
19789
|
+
var _typeMap$type12;
|
|
19286
19790
|
// 切换到非原单,清空列表
|
|
19287
|
-
newValue[(_typeMap$
|
|
19791
|
+
newValue[(_typeMap$type12 = typeMap$4[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key] = [];
|
|
19288
19792
|
}
|
|
19793
|
+
pushGyLog('afterChangeType', newValue);
|
|
19289
19794
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19290
19795
|
};
|
|
19291
19796
|
var handleModeChange = function handleModeChange(mode) {
|
|
19292
|
-
var
|
|
19293
|
-
var isOriginalOrder = (
|
|
19797
|
+
var _ref6, _ref6$typeMap$type$ty, _typeMap$type13, _typeMap$type14;
|
|
19798
|
+
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';
|
|
19294
19799
|
setIsStrict(mode);
|
|
19295
19800
|
if (!isOriginalOrder) return;
|
|
19296
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({},
|
|
19801
|
+
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({
|
|
19297
19802
|
mode: mode
|
|
19298
19803
|
}))));
|
|
19299
19804
|
};
|
|
19300
|
-
var getGoodDetails = function getGoodDetails(
|
|
19301
|
-
var _typeMap$
|
|
19302
|
-
var mode =
|
|
19303
|
-
sysOrderNo =
|
|
19304
|
-
var systemOrder =
|
|
19305
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo :
|
|
19805
|
+
var getGoodDetails = function getGoodDetails(_ref7) {
|
|
19806
|
+
var _ref8, _typeMap$type15, _ref9, _typeMap$type16, _order$details;
|
|
19807
|
+
var mode = _ref7.mode,
|
|
19808
|
+
sysOrderNo = _ref7.sysOrderNo;
|
|
19809
|
+
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];
|
|
19810
|
+
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];
|
|
19306
19811
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
19307
19812
|
return order.code === systemOrderNo;
|
|
19308
19813
|
});
|
|
@@ -19313,52 +19818,58 @@ var GyReissue = function GyReissue(props) {
|
|
|
19313
19818
|
}) : goodDetails;
|
|
19314
19819
|
};
|
|
19315
19820
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
19316
|
-
var _typeMap$
|
|
19317
|
-
|
|
19318
|
-
newValue
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
item["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19821
|
+
var _typeMap$type17;
|
|
19822
|
+
pushGyLog('beforeChangeGood', valueRef.current || {});
|
|
19823
|
+
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
19824
|
+
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) {
|
|
19825
|
+
var _typeMap$type18, _typeMap$type19;
|
|
19826
|
+
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;
|
|
19827
|
+
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;
|
|
19322
19828
|
return item;
|
|
19323
19829
|
});
|
|
19830
|
+
pushGyLog('afterChangeGood', newValue);
|
|
19324
19831
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19325
19832
|
};
|
|
19326
19833
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
19327
|
-
var _typeMap$
|
|
19328
|
-
|
|
19329
|
-
newValue
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
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)] = [];
|
|
19333
|
-
} 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])) {
|
|
19834
|
+
var _typeMap$type20, _ref10, _ref10$typeMap$type$t, _typeMap$type21, _ref11, _ref11$typeMap$type$t, _typeMap$type23;
|
|
19835
|
+
pushGyLog('beforeChangeSystemOrder', valueRef.current || {});
|
|
19836
|
+
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
19837
|
+
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;
|
|
19838
|
+
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])) {
|
|
19334
19839
|
var _typeMap$type22;
|
|
19335
|
-
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)] =
|
|
19840
|
+
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)] = [];
|
|
19841
|
+
} 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])) {
|
|
19842
|
+
var _typeMap$type24;
|
|
19843
|
+
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({
|
|
19336
19844
|
mode: isStrict,
|
|
19337
19845
|
sysOrderNo: val
|
|
19338
19846
|
});
|
|
19339
19847
|
}
|
|
19848
|
+
pushGyLog('afterChangeSystemOrder', newValue);
|
|
19340
19849
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19341
19850
|
};
|
|
19342
19851
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
19343
|
-
var _typeMap$
|
|
19344
|
-
|
|
19852
|
+
var _ref12, _typeMap$type25, _typeMap$type26, _uniqBy, _typeMap$type27;
|
|
19853
|
+
pushGyLog('beforeSelectedGoodsChange', valueRef.current || {});
|
|
19854
|
+
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
19345
19855
|
// 原订单商品
|
|
19346
19856
|
var originTradeGoodList = getGoodDetails({
|
|
19347
19857
|
mode: isStrict
|
|
19348
19858
|
}) || [];
|
|
19349
19859
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
19350
|
-
var currentSelectGoodList = (
|
|
19351
|
-
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19860
|
+
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)]) || [];
|
|
19861
|
+
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) {
|
|
19352
19862
|
return skuList.includes(item.uuid);
|
|
19353
19863
|
});
|
|
19354
|
-
console.log('商品发生变化', newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19864
|
+
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)]);
|
|
19355
19865
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19356
|
-
|
|
19866
|
+
pushGyLog('afterSelectedGoodsChange', newValue);
|
|
19867
|
+
}, [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]);
|
|
19357
19868
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
19358
19869
|
var showChangeBtn = useMemo(function () {
|
|
19359
|
-
var _typeMap$
|
|
19360
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
19361
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
19870
|
+
var _typeMap$type29;
|
|
19871
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo]);
|
|
19872
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]]);
|
|
19362
19873
|
return /*#__PURE__*/React.createElement("div", {
|
|
19363
19874
|
id: "TEST_GY",
|
|
19364
19875
|
onClick: function onClick() {
|
|
@@ -19381,12 +19892,12 @@ var GyReissue = function GyReissue(props) {
|
|
|
19381
19892
|
},
|
|
19382
19893
|
disabled: disabled,
|
|
19383
19894
|
allowClear: false,
|
|
19384
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19895
|
+
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)],
|
|
19385
19896
|
onChange: function onChange(val) {
|
|
19386
19897
|
return changeSystemOrderHandle(val);
|
|
19387
19898
|
},
|
|
19388
19899
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
19389
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
19900
|
+
}, ((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) {
|
|
19390
19901
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
19391
19902
|
key: item.billNo,
|
|
19392
19903
|
value: item.billNo,
|
|
@@ -19407,7 +19918,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19407
19918
|
disabled: disabled,
|
|
19408
19919
|
allowClear: false,
|
|
19409
19920
|
options: reasonList,
|
|
19410
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19921
|
+
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)],
|
|
19411
19922
|
onChange: function onChange(val) {
|
|
19412
19923
|
return changeTypeHandle(val);
|
|
19413
19924
|
}
|
|
@@ -19419,12 +19930,11 @@ var GyReissue = function GyReissue(props) {
|
|
|
19419
19930
|
canUpdateNumber: showChangeBtn,
|
|
19420
19931
|
showChangeBtn: showChangeBtn,
|
|
19421
19932
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
19422
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
19933
|
+
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)],
|
|
19423
19934
|
onChange: function onChange(val) {
|
|
19424
19935
|
return changeGoodHandle(val);
|
|
19425
19936
|
},
|
|
19426
19937
|
onModeChange: handleModeChange,
|
|
19427
|
-
showModeBtn: showModeBtn,
|
|
19428
19938
|
isStrict: isStrict,
|
|
19429
19939
|
tradeGoods: {
|
|
19430
19940
|
originDataSource: getGoodDetails({
|
|
@@ -19435,7 +19945,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19435
19945
|
})));
|
|
19436
19946
|
};
|
|
19437
19947
|
|
|
19438
|
-
var _excluded$
|
|
19948
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19439
19949
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19440
19950
|
var typeMap$5 = {
|
|
19441
19951
|
GY_RETURN_GOODS: {
|
|
@@ -19457,26 +19967,26 @@ var typeMap$5 = {
|
|
|
19457
19967
|
}
|
|
19458
19968
|
};
|
|
19459
19969
|
var GyReturnGoods = function GyReturnGoods(props) {
|
|
19460
|
-
var
|
|
19970
|
+
var _typeMap$type10, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
19461
19971
|
var value = props.value,
|
|
19462
19972
|
onChange = props.onChange,
|
|
19463
19973
|
_props$reasonList = props.reasonList,
|
|
19464
19974
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19465
19975
|
disabled = props.disabled,
|
|
19466
19976
|
type = props.type,
|
|
19467
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19977
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19468
19978
|
var valueRef = useRef({});
|
|
19469
19979
|
var getOrderFlag = useRef(false);
|
|
19470
19980
|
var _useState = useState(false),
|
|
19471
19981
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19472
19982
|
isStrict = _useState2[0],
|
|
19473
19983
|
setIsStrict = _useState2[1];
|
|
19474
|
-
|
|
19475
|
-
|
|
19476
|
-
|
|
19477
|
-
});
|
|
19984
|
+
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19985
|
+
// order?.platformCode?.includes(';'),
|
|
19986
|
+
// );
|
|
19478
19987
|
useEffect(function () {
|
|
19479
19988
|
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
19989
|
+
valueRef.current = value;
|
|
19480
19990
|
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)) {
|
|
19481
19991
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
19482
19992
|
getOrderFlag.current = true;
|
|
@@ -19527,7 +20037,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19527
20037
|
while (1) switch (_context.prev = _context.next) {
|
|
19528
20038
|
case 0:
|
|
19529
20039
|
(_typeMap$type4 = typeMap$5[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
19530
|
-
var _typeMap$type5, _typeMap$type6;
|
|
20040
|
+
var _valueRef$current, _typeMap$type5, _typeMap$type$systemO, _ref3, _valueRef$current2, _typeMap$type6;
|
|
19531
20041
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
19532
20042
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
19533
20043
|
var billNo = _ref2.billNo,
|
|
@@ -19549,7 +20059,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19549
20059
|
shopCode: shopCode
|
|
19550
20060
|
});
|
|
19551
20061
|
});
|
|
19552
|
-
onChange(_objectSpread2(_objectSpread2({},
|
|
20062
|
+
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 : {}), {}, {
|
|
19553
20063
|
showOrderInfo: showOrderInfo,
|
|
19554
20064
|
orders: orders
|
|
19555
20065
|
}))));
|
|
@@ -19625,10 +20135,10 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19625
20135
|
}
|
|
19626
20136
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19627
20137
|
};
|
|
19628
|
-
var getGoodDetails = function getGoodDetails(
|
|
20138
|
+
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
19629
20139
|
var _typeMap$type23, _typeMap$type24, _order$details;
|
|
19630
|
-
var mode =
|
|
19631
|
-
sysOrderNo =
|
|
20140
|
+
var mode = _ref4.mode,
|
|
20141
|
+
sysOrderNo = _ref4.sysOrderNo;
|
|
19632
20142
|
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];
|
|
19633
20143
|
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];
|
|
19634
20144
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -19714,7 +20224,6 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19714
20224
|
return changeGoodHandle(val);
|
|
19715
20225
|
},
|
|
19716
20226
|
onModeChange: handleModeChange,
|
|
19717
|
-
showModeBtn: showModeBtn,
|
|
19718
20227
|
isStrict: isStrict,
|
|
19719
20228
|
showErpGoodsBtn: false,
|
|
19720
20229
|
tradeGoods: {
|
|
@@ -19726,4 +20235,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19726
20235
|
})));
|
|
19727
20236
|
};
|
|
19728
20237
|
|
|
19729
|
-
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$
|
|
20238
|
+
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$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 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, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };
|