@kmkf-fe-packages/basic-components 2.0.50 → 2.0.52
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 +375 -79
- package/dist/index.js +376 -79
- package/dist/src/apaas/ApaasUploadProAsync/index.d.ts +20 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, MinusCircleFilled } 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
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';
|
|
@@ -1176,10 +1176,306 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1176
1176
|
};
|
|
1177
1177
|
var index = /*#__PURE__*/forwardRef(ApaasUploadAsync);
|
|
1178
1178
|
|
|
1179
|
-
var css_248z$2 = ".index-
|
|
1180
|
-
var styles$2 = {"
|
|
1179
|
+
var css_248z$2 = ".index-module_imageProBox__1u84Y {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageProBox__1u84Y .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageProBox__1u84Y .index-module_inputImage__nm5jb {\n width: 105px;\n height: 105px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageShow__1cG2j {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo {\n display: flex;\n width: 280px;\n height: 105px;\n padding: 8px;\n margin-bottom: 8px;\n margin-right: 8px;\n border-radius: 5px;\n background-color: rgba(240, 241, 242, 0.72);\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo textarea {\n max-width: 174px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo:hover .index-module_mask__L3q8p:before {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProInfo__iHM0C {\n width: 80px;\n height: 80px;\n border-radius: 5px;\n margin-right: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProRight__3rPiY {\n position: relative;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProOperate__1hFcg {\n position: absolute;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_deleteIcon__2LWG9 {\n color: #1890ff;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p:hover .index-module_actions__3Wwry {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry .index-module_icon__3oJ-1 {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 {\n display: inline-block;\n margin-right: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 .index-module_fakeBox__3EXNG {\n width: 105px;\n height: 105px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n padding-top: 16px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 .index-module_fakeBox__3EXNG .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_upload__2nwd8 .ant-upload {\n height: 105px;\n width: 105px;\n border: none;\n background-color: #F2F3F5;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_upload__2nwd8 .ant-upload .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_tips__z9Yjd {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
1180
|
+
var styles$2 = {"imageProBox":"index-module_imageProBox__1u84Y","inputImage":"index-module_inputImage__nm5jb","imageShow":"index-module_imageShow__1cG2j","imageProWrap":"index-module_imageProWrap__sx8lo","-webkit-mask":"index-module_mask__L3q8p","mask":"index-module_mask__L3q8p","imageProInfo":"index-module_imageProInfo__iHM0C","imageProRight":"index-module_imageProRight__3rPiY","imageProOperate":"index-module_imageProOperate__1hFcg","deleteIcon":"index-module_deleteIcon__2LWG9","actions":"index-module_actions__3Wwry","icon":"index-module_icon__3oJ-1","imagePaste":"index-module_imagePaste__1A8C5","fakeBox":"index-module_fakeBox__3EXNG","addBtn":"index-module_addBtn__1Dv95","upload":"index-module_upload__2nwd8","tips":"index-module_tips__z9Yjd"};
|
|
1181
1181
|
styleInject(css_248z$2);
|
|
1182
1182
|
|
|
1183
|
+
var _excluded$7 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "actionUrl", "platform"];
|
|
1184
|
+
var TextArea = Input.TextArea;
|
|
1185
|
+
var fn$2 = function fn() {
|
|
1186
|
+
return void 0;
|
|
1187
|
+
};
|
|
1188
|
+
var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
1189
|
+
var _document;
|
|
1190
|
+
var _ref$maxCount = _ref.maxCount,
|
|
1191
|
+
maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
|
|
1192
|
+
_ref$maxSize = _ref.maxSize,
|
|
1193
|
+
maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
|
|
1194
|
+
_ref$uploadText = _ref.uploadText,
|
|
1195
|
+
uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
|
|
1196
|
+
_ref$onChange = _ref.onChange,
|
|
1197
|
+
onChange = _ref$onChange === void 0 ? fn$2 : _ref$onChange,
|
|
1198
|
+
_ref$value = _ref.value,
|
|
1199
|
+
value = _ref$value === void 0 ? [] : _ref$value,
|
|
1200
|
+
_ref$accept = _ref.accept,
|
|
1201
|
+
accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
|
|
1202
|
+
_ref$disabled = _ref.disabled,
|
|
1203
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1204
|
+
uniqueKey = _ref.uniqueKey,
|
|
1205
|
+
_ref$hostUrl = _ref.hostUrl,
|
|
1206
|
+
hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
|
|
1207
|
+
_ref$actionUrl = _ref.actionUrl,
|
|
1208
|
+
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
1209
|
+
_ref$platform = _ref.platform,
|
|
1210
|
+
platform = _ref$platform === void 0 ? '' : _ref$platform,
|
|
1211
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
1212
|
+
var inputRef = useRef(null);
|
|
1213
|
+
var valueRef = useRef(value);
|
|
1214
|
+
var _useState = useState(false),
|
|
1215
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1216
|
+
uploading = _useState2[0],
|
|
1217
|
+
setUploading = _useState2[1];
|
|
1218
|
+
var _useState3 = useState(true),
|
|
1219
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1220
|
+
pasteDefaultStates = _useState4[0],
|
|
1221
|
+
setPasteDefaultStates = _useState4[1];
|
|
1222
|
+
var preview = platform === 'ks' ? {
|
|
1223
|
+
getContainer: (_document = document) === null || _document === void 0 ? void 0 : _document.getElementById('root')
|
|
1224
|
+
} : true;
|
|
1225
|
+
useEffect(function () {
|
|
1226
|
+
valueRef.current = value;
|
|
1227
|
+
}, [value]);
|
|
1228
|
+
var asyncUpload = /*#__PURE__*/function () {
|
|
1229
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1230
|
+
var _valueRef$current;
|
|
1231
|
+
var formData, fileName, showName, _yield$request, success, data;
|
|
1232
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1233
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1234
|
+
case 0:
|
|
1235
|
+
setUploading(true);
|
|
1236
|
+
formData = new FormData();
|
|
1237
|
+
formData.append('file', file);
|
|
1238
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1239
|
+
formData.append('fileName', fileName);
|
|
1240
|
+
showName = file.name.substring(0, file.name.lastIndexOf('.'));
|
|
1241
|
+
_context.prev = 6;
|
|
1242
|
+
_context.next = 9;
|
|
1243
|
+
return request(actionUrl, {
|
|
1244
|
+
method: 'post',
|
|
1245
|
+
body: formData
|
|
1246
|
+
});
|
|
1247
|
+
case 9:
|
|
1248
|
+
_yield$request = _context.sent;
|
|
1249
|
+
success = _yield$request.success;
|
|
1250
|
+
data = _yield$request.data;
|
|
1251
|
+
if (!success) {
|
|
1252
|
+
_context.next = 16;
|
|
1253
|
+
break;
|
|
1254
|
+
}
|
|
1255
|
+
if (!(valueRef.current.length >= maxCount)) {
|
|
1256
|
+
_context.next = 15;
|
|
1257
|
+
break;
|
|
1258
|
+
}
|
|
1259
|
+
return _context.abrupt("return");
|
|
1260
|
+
case 15:
|
|
1261
|
+
handleChange([].concat(_toConsumableArray(valueRef.current), [{
|
|
1262
|
+
url: data,
|
|
1263
|
+
name: showName
|
|
1264
|
+
}]));
|
|
1265
|
+
case 16:
|
|
1266
|
+
_context.next = 21;
|
|
1267
|
+
break;
|
|
1268
|
+
case 18:
|
|
1269
|
+
_context.prev = 18;
|
|
1270
|
+
_context.t0 = _context["catch"](6);
|
|
1271
|
+
message.error('图片上传失败');
|
|
1272
|
+
case 21:
|
|
1273
|
+
_context.prev = 21;
|
|
1274
|
+
setUploading(false);
|
|
1275
|
+
return _context.finish(21);
|
|
1276
|
+
case 24:
|
|
1277
|
+
case "end":
|
|
1278
|
+
return _context.stop();
|
|
1279
|
+
}
|
|
1280
|
+
}, _callee, null, [[6, 18, 21, 24]]);
|
|
1281
|
+
}));
|
|
1282
|
+
return function asyncUpload(_x) {
|
|
1283
|
+
return _ref2.apply(this, arguments);
|
|
1284
|
+
};
|
|
1285
|
+
}();
|
|
1286
|
+
var imgReader = function imgReader(item) {
|
|
1287
|
+
var blob = item.getAsFile(),
|
|
1288
|
+
reader = new FileReader();
|
|
1289
|
+
if (blob.size > maxSize * 1024 * 1024) {
|
|
1290
|
+
message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1293
|
+
if (valueRef.current.length >= maxCount) {
|
|
1294
|
+
message.error("\u53EA\u80FD\u4E0A\u4F20".concat(maxCount, "\u5F20\u56FE\u7247"));
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1297
|
+
reader.onload = /*#__PURE__*/function () {
|
|
1298
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
1299
|
+
var _e$target, _valueRef$current2;
|
|
1300
|
+
var result, fileName, file;
|
|
1301
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1302
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1303
|
+
case 0:
|
|
1304
|
+
result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
|
|
1305
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1306
|
+
file = dataURLtoFile(result, fileName);
|
|
1307
|
+
asyncUpload(file);
|
|
1308
|
+
case 4:
|
|
1309
|
+
case "end":
|
|
1310
|
+
return _context2.stop();
|
|
1311
|
+
}
|
|
1312
|
+
}, _callee2);
|
|
1313
|
+
}));
|
|
1314
|
+
return function (_x2) {
|
|
1315
|
+
return _ref3.apply(this, arguments);
|
|
1316
|
+
};
|
|
1317
|
+
}();
|
|
1318
|
+
reader.readAsDataURL(blob);
|
|
1319
|
+
};
|
|
1320
|
+
var handleChange = function handleChange(list) {
|
|
1321
|
+
valueRef.current = list;
|
|
1322
|
+
onChange(list);
|
|
1323
|
+
};
|
|
1324
|
+
var clipboardDataChange = function clipboardDataChange(e) {
|
|
1325
|
+
var clipboardData = e.clipboardData || window.clipboardData;
|
|
1326
|
+
var i = 0,
|
|
1327
|
+
items,
|
|
1328
|
+
item,
|
|
1329
|
+
types;
|
|
1330
|
+
if (clipboardData) {
|
|
1331
|
+
items = clipboardData.items;
|
|
1332
|
+
if (!items) return;
|
|
1333
|
+
item = items[0];
|
|
1334
|
+
types = clipboardData.types || [];
|
|
1335
|
+
for (; i < types.length; i++) {
|
|
1336
|
+
if (types[i] === 'Files') {
|
|
1337
|
+
item = items[i];
|
|
1338
|
+
break;
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
if (item && item.kind === 'file' && item.type.match(/^image\//i)) {
|
|
1342
|
+
imgReader(item);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
// 手动上传模式, 一直返回false
|
|
1347
|
+
var beforeUpload = function beforeUpload(file) {
|
|
1348
|
+
var size = file.size / 1024 / 1024 < maxSize;
|
|
1349
|
+
if (value.length > maxCount) {
|
|
1350
|
+
message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u5F20\u56FE\u7247\uFF01"));
|
|
1351
|
+
return Upload.LIST_IGNORE;
|
|
1352
|
+
}
|
|
1353
|
+
if (!size) {
|
|
1354
|
+
message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1355
|
+
return Upload.LIST_IGNORE;
|
|
1356
|
+
}
|
|
1357
|
+
asyncUpload(file);
|
|
1358
|
+
return Upload.LIST_IGNORE;
|
|
1359
|
+
};
|
|
1360
|
+
var handleDelete = function handleDelete(key) {
|
|
1361
|
+
return function () {
|
|
1362
|
+
if (disabled) return;
|
|
1363
|
+
handleChange(value.filter(function (_, index) {
|
|
1364
|
+
return key !== index;
|
|
1365
|
+
}));
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
var renderImages = function renderImages(images) {
|
|
1369
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, {
|
|
1370
|
+
preview: preview
|
|
1371
|
+
}, images.map(function (image, index) {
|
|
1372
|
+
var finalImage = "".concat(/^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url, "?x-oss-process=image/resize,h_60,w_60");
|
|
1373
|
+
var showImage = /^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url;
|
|
1374
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1375
|
+
className: styles$2.imageProWrap,
|
|
1376
|
+
key: index
|
|
1377
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1378
|
+
className: styles$2.imageProInfo
|
|
1379
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
1380
|
+
src: finalImage,
|
|
1381
|
+
preview: {
|
|
1382
|
+
src: showImage
|
|
1383
|
+
},
|
|
1384
|
+
width: '100%',
|
|
1385
|
+
height: '100%'
|
|
1386
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
1387
|
+
className: styles$2.imageProRight
|
|
1388
|
+
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
1389
|
+
value: image.name,
|
|
1390
|
+
onChange: function onChange(e) {
|
|
1391
|
+
handleChange(value.map(function (item, i) {
|
|
1392
|
+
if (index === i) {
|
|
1393
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
1394
|
+
name: e.target.value
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
return item;
|
|
1398
|
+
}));
|
|
1399
|
+
},
|
|
1400
|
+
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u540D\u79F0",
|
|
1401
|
+
autoSize: {
|
|
1402
|
+
minRows: 2,
|
|
1403
|
+
maxRows: 2
|
|
1404
|
+
},
|
|
1405
|
+
maxLength: 1000
|
|
1406
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
1407
|
+
className: styles$2.imageProOperate
|
|
1408
|
+
}, /*#__PURE__*/React.createElement(CloseOutlined, {
|
|
1409
|
+
className: styles$2.deleteIcon,
|
|
1410
|
+
onClick: handleDelete(index)
|
|
1411
|
+
}))));
|
|
1412
|
+
}));
|
|
1413
|
+
};
|
|
1414
|
+
useEffect(function () {
|
|
1415
|
+
var _inputRef$current2;
|
|
1416
|
+
if (!pasteDefaultStates) {
|
|
1417
|
+
var _inputRef$current;
|
|
1418
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
1419
|
+
}
|
|
1420
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.addEventListener('paste', function (e) {
|
|
1421
|
+
return clipboardDataChange(e);
|
|
1422
|
+
});
|
|
1423
|
+
return function () {
|
|
1424
|
+
var _inputRef$current3;
|
|
1425
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.removeEventListener('paste', function (e) {
|
|
1426
|
+
return clipboardDataChange(e);
|
|
1427
|
+
});
|
|
1428
|
+
};
|
|
1429
|
+
}, [pasteDefaultStates]);
|
|
1430
|
+
useImperativeHandle(ref, function () {
|
|
1431
|
+
return {
|
|
1432
|
+
taskCompleted: !uploading
|
|
1433
|
+
};
|
|
1434
|
+
}, [uploading]);
|
|
1435
|
+
return /*#__PURE__*/React.createElement(Spin, {
|
|
1436
|
+
spinning: uploading
|
|
1437
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
1438
|
+
className: styles$2.tips
|
|
1439
|
+
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u5F20\u56FE\u7247"), /*#__PURE__*/React.createElement("div", {
|
|
1440
|
+
className: styles$2.imageProBox
|
|
1441
|
+
}, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
1442
|
+
className: styles$2.imagePaste
|
|
1443
|
+
}, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
|
|
1444
|
+
className: styles$2.fakeBox,
|
|
1445
|
+
onClick: function onClick() {
|
|
1446
|
+
setPasteDefaultStates(false);
|
|
1447
|
+
}
|
|
1448
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1449
|
+
className: styles$2.addBtn
|
|
1450
|
+
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
1451
|
+
className: styles$2.text
|
|
1452
|
+
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React.createElement("input", {
|
|
1453
|
+
ref: inputRef,
|
|
1454
|
+
className: styles$2.inputImage,
|
|
1455
|
+
type: "text",
|
|
1456
|
+
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
1457
|
+
onBlur: function onBlur() {
|
|
1458
|
+
setPasteDefaultStates(true);
|
|
1459
|
+
},
|
|
1460
|
+
value: ""
|
|
1461
|
+
})), /*#__PURE__*/React.createElement(Upload, _objectSpread2({
|
|
1462
|
+
disabled: disabled,
|
|
1463
|
+
accept: accept,
|
|
1464
|
+
name: "file",
|
|
1465
|
+
listType: "picture-card",
|
|
1466
|
+
maxCount: maxCount,
|
|
1467
|
+
className: styles$2.upload,
|
|
1468
|
+
beforeUpload: beforeUpload
|
|
1469
|
+
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
1470
|
+
className: "addBtn"
|
|
1471
|
+
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText))), renderImages(value)));
|
|
1472
|
+
};
|
|
1473
|
+
var index$1 = /*#__PURE__*/forwardRef(ApaasUploadProAsync);
|
|
1474
|
+
|
|
1475
|
+
var css_248z$3 = ".index-module_imageBox__1rpoB {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageBox__1rpoB .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageBox__1rpoB .index-module_inputImage__MyiR1 {\n width: 80px;\n height: 80px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imageShow__3BNqT {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP {\n width: 100px;\n height: 80px;\n position: relative;\n border-radius: 2px;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP:hover {\n background: transparent;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP:hover .index-module_mask__uy8r2:before {\n opacity: 1;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP .index-module_delete__28zCp {\n position: absolute;\n right: 0px;\n top: 0px;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2:hover .index-module_actions__1-6f4 {\n opacity: 1;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 .index-module_actions__1-6f4 {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 .index-module_actions__1-6f4 .index-module_icon__3yEcS {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C {\n display: inline-block;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C .index-module_fakeBox__3W1d- {\n width: 80px;\n height: 80px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n padding-top: 16px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C .index-module_fakeBox__3W1d- .index-module_addBtn__3a1TQ {\n color: #86909C;\n}\n.index-module_imageBox__1rpoB .ant-upload {\n padding: 0;\n height: 80px;\n width: 80px;\n border: none;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n font-size: 14px;\n}\n.index-module_imageBox__1rpoB .ant-upload .index-module_addBtn__3a1TQ {\n color: #86909C;\n font-size: 14px;\n}\n.index-module_tips__168Vy {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
1476
|
+
var styles$3 = {"imageBox":"index-module_imageBox__1rpoB","inputImage":"index-module_inputImage__MyiR1","imageShow":"index-module_imageShow__3BNqT","imageWrap":"index-module_imageWrap__LyKfP","-webkit-mask":"index-module_mask__uy8r2","mask":"index-module_mask__uy8r2","delete":"index-module_delete__28zCp","actions":"index-module_actions__1-6f4","icon":"index-module_icon__3yEcS","imagePaste":"index-module_imagePaste__Ac77C","fakeBox":"index-module_fakeBox__3W1d-","addBtn":"index-module_addBtn__3a1TQ","tips":"index-module_tips__168Vy"};
|
|
1477
|
+
styleInject(css_248z$3);
|
|
1478
|
+
|
|
1183
1479
|
//! moment.js
|
|
1184
1480
|
//! version : 2.29.4
|
|
1185
1481
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -6856,9 +7152,9 @@ hooks.HTML5_FMT = {
|
|
|
6856
7152
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6857
7153
|
};
|
|
6858
7154
|
|
|
6859
|
-
var _excluded$
|
|
7155
|
+
var _excluded$8 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "hostUrl", "canDownload", "actionUrl", "platform"];
|
|
6860
7156
|
var Dragger = Upload.Dragger;
|
|
6861
|
-
var fn$
|
|
7157
|
+
var fn$3 = function fn() {
|
|
6862
7158
|
return void 0;
|
|
6863
7159
|
};
|
|
6864
7160
|
var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
@@ -6867,7 +7163,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6867
7163
|
_ref$maxSize = _ref.maxSize,
|
|
6868
7164
|
maxSize = _ref$maxSize === void 0 ? 100 : _ref$maxSize,
|
|
6869
7165
|
_ref$onChange = _ref.onChange,
|
|
6870
|
-
onChange = _ref$onChange === void 0 ? fn$
|
|
7166
|
+
onChange = _ref$onChange === void 0 ? fn$3 : _ref$onChange,
|
|
6871
7167
|
_ref$value = _ref.value,
|
|
6872
7168
|
value = _ref$value === void 0 ? [] : _ref$value,
|
|
6873
7169
|
_ref$accept = _ref.accept,
|
|
@@ -6881,7 +7177,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6881
7177
|
_ref$actionUrl = _ref.actionUrl,
|
|
6882
7178
|
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
6883
7179
|
_ref$platform = _ref.platform,
|
|
6884
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
7180
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
6885
7181
|
var inputRef = useRef(null);
|
|
6886
7182
|
var _useState = useState(false),
|
|
6887
7183
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7111,23 +7407,23 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7111
7407
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
7112
7408
|
spinning: uploading
|
|
7113
7409
|
}, /*#__PURE__*/React.createElement("p", {
|
|
7114
|
-
className: styles$
|
|
7410
|
+
className: styles$3.tips
|
|
7115
7411
|
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6"), /*#__PURE__*/React.createElement("div", {
|
|
7116
|
-
className: styles$
|
|
7412
|
+
className: styles$3.imageBox
|
|
7117
7413
|
}, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
7118
|
-
className: styles$
|
|
7414
|
+
className: styles$3.imagePaste
|
|
7119
7415
|
}, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
|
|
7120
|
-
className: styles$
|
|
7416
|
+
className: styles$3.fakeBox,
|
|
7121
7417
|
onClick: function onClick() {
|
|
7122
7418
|
setPasteDefaultStates(false);
|
|
7123
7419
|
}
|
|
7124
7420
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7125
|
-
className: styles$
|
|
7421
|
+
className: styles$3.addBtn
|
|
7126
7422
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
7127
|
-
className: styles$
|
|
7423
|
+
className: styles$3.text
|
|
7128
7424
|
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React.createElement("input", {
|
|
7129
7425
|
ref: inputRef,
|
|
7130
|
-
className: styles$
|
|
7426
|
+
className: styles$3.inputImage,
|
|
7131
7427
|
type: "text",
|
|
7132
7428
|
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
7133
7429
|
onBlur: function onBlur() {
|
|
@@ -7145,9 +7441,9 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7145
7441
|
fileList: fileList,
|
|
7146
7442
|
onRemove: onRemove
|
|
7147
7443
|
}, resetProps), /*#__PURE__*/React.createElement("span", {
|
|
7148
|
-
className: styles$
|
|
7444
|
+
className: styles$3.addBtn
|
|
7149
7445
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
7150
|
-
className: styles$
|
|
7446
|
+
className: styles$3.addBtn
|
|
7151
7447
|
}, "\u9009\u62E9\u6587\u4EF6")), /*#__PURE__*/React.createElement(Modal, {
|
|
7152
7448
|
visible: visible,
|
|
7153
7449
|
title: fileName,
|
|
@@ -7182,7 +7478,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7182
7478
|
}))));
|
|
7183
7479
|
};
|
|
7184
7480
|
|
|
7185
|
-
var _excluded$
|
|
7481
|
+
var _excluded$9 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"];
|
|
7186
7482
|
function ApaasCheckbox(props) {
|
|
7187
7483
|
var showOther = props.showOther,
|
|
7188
7484
|
_props$horizontal = props.horizontal,
|
|
@@ -7193,7 +7489,7 @@ function ApaasCheckbox(props) {
|
|
|
7193
7489
|
value = _props$value === void 0 ? {} : _props$value,
|
|
7194
7490
|
onChange = props.onChange,
|
|
7195
7491
|
disabled = props.disabled,
|
|
7196
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7492
|
+
otherProps = _objectWithoutProperties(props, _excluded$9);
|
|
7197
7493
|
var checkboxValue = value.value,
|
|
7198
7494
|
other = value.other;
|
|
7199
7495
|
var triggerChange = function triggerChange(changedValue) {
|
|
@@ -7279,11 +7575,11 @@ function ApaasSlider(props) {
|
|
|
7279
7575
|
})));
|
|
7280
7576
|
}
|
|
7281
7577
|
|
|
7282
|
-
var css_248z$
|
|
7283
|
-
var styles$
|
|
7284
|
-
styleInject(css_248z$
|
|
7578
|
+
var css_248z$4 = ".index-module_rateLabel__3k-Xa {\n margin-right: 8px;\n}\n.index-module_rateText__A1GRy {\n margin-left: 8px;\n}\n";
|
|
7579
|
+
var styles$4 = {"rateLabel":"index-module_rateLabel__3k-Xa","rateText":"index-module_rateText__A1GRy"};
|
|
7580
|
+
styleInject(css_248z$4);
|
|
7285
7581
|
|
|
7286
|
-
var _excluded$
|
|
7582
|
+
var _excluded$a = ["value", "onChange", "options", "textStyle"];
|
|
7287
7583
|
//状态文字映射
|
|
7288
7584
|
var RATE_MAP = {
|
|
7289
7585
|
0: '',
|
|
@@ -7305,7 +7601,7 @@ function ApaasRate(props) {
|
|
|
7305
7601
|
_props$options = props.options,
|
|
7306
7602
|
options = _props$options === void 0 ? [] : _props$options,
|
|
7307
7603
|
textStyle = props.textStyle,
|
|
7308
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7604
|
+
other = _objectWithoutProperties(props, _excluded$a);
|
|
7309
7605
|
var rateValues = useMemo(function () {
|
|
7310
7606
|
return (value || []).reduce(function (prv, next) {
|
|
7311
7607
|
prv[next.id || ''] = next.value;
|
|
@@ -7341,14 +7637,14 @@ function ApaasRate(props) {
|
|
|
7341
7637
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
7342
7638
|
span: 24
|
|
7343
7639
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7344
|
-
className: styles$
|
|
7640
|
+
className: styles$4.rateLabel
|
|
7345
7641
|
}, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React.createElement(Rate, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7346
7642
|
value: rateValues[item.id] || 0,
|
|
7347
7643
|
onChange: function onChange(val) {
|
|
7348
7644
|
return changeHandle(val, item.id);
|
|
7349
7645
|
}
|
|
7350
7646
|
})), /*#__PURE__*/React.createElement("span", {
|
|
7351
|
-
className: styles$
|
|
7647
|
+
className: styles$4.rateText,
|
|
7352
7648
|
style: textStyle
|
|
7353
7649
|
}, RATE_MAP[rateValues[item.id]])));
|
|
7354
7650
|
}));
|
|
@@ -7373,7 +7669,7 @@ var Province = function Province(props) {
|
|
|
7373
7669
|
})));
|
|
7374
7670
|
};
|
|
7375
7671
|
|
|
7376
|
-
var TextArea = Input.TextArea;
|
|
7672
|
+
var TextArea$1 = Input.TextArea;
|
|
7377
7673
|
var ParseLogistics = function ParseLogistics(props) {
|
|
7378
7674
|
var onChange = props.onChange,
|
|
7379
7675
|
_props$selfCalibratio = props.selfCalibration,
|
|
@@ -7422,7 +7718,7 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7422
7718
|
handleIdentify(val);
|
|
7423
7719
|
}
|
|
7424
7720
|
};
|
|
7425
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea, {
|
|
7721
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea$1, {
|
|
7426
7722
|
placeholder: "\u590D\u5236\u4FE1\u606F\uFF0C\u70B9\u51FB\u667A\u80FD\u8BC6\u522B",
|
|
7427
7723
|
rows: 3,
|
|
7428
7724
|
value: value,
|
|
@@ -7549,14 +7845,14 @@ function ApaasPosting(props) {
|
|
|
7549
7845
|
});
|
|
7550
7846
|
}
|
|
7551
7847
|
|
|
7552
|
-
var _excluded$
|
|
7848
|
+
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
7553
7849
|
function ApaasLogistics(props) {
|
|
7554
7850
|
var value = props.value,
|
|
7555
7851
|
onChange = props.onChange,
|
|
7556
7852
|
platformType = props.platformType,
|
|
7557
7853
|
_props$type = props.type,
|
|
7558
7854
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
7559
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7855
|
+
other = _objectWithoutProperties(props, _excluded$b);
|
|
7560
7856
|
var _useState = useState([]),
|
|
7561
7857
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7562
7858
|
option = _useState2[0],
|
|
@@ -7601,7 +7897,7 @@ function ApaasLogistics(props) {
|
|
|
7601
7897
|
}));
|
|
7602
7898
|
}
|
|
7603
7899
|
|
|
7604
|
-
var _excluded$
|
|
7900
|
+
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
7605
7901
|
function withFormItem(WrappedComponent) {
|
|
7606
7902
|
return function (props) {
|
|
7607
7903
|
var label = props.label,
|
|
@@ -7610,7 +7906,7 @@ function withFormItem(WrappedComponent) {
|
|
|
7610
7906
|
required = props.required,
|
|
7611
7907
|
rules = props.rules,
|
|
7612
7908
|
initialValue = props.initialValue,
|
|
7613
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7909
|
+
otherProps = _objectWithoutProperties(props, _excluded$c);
|
|
7614
7910
|
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({}, {
|
|
7615
7911
|
label: label,
|
|
7616
7912
|
name: name,
|
|
@@ -8188,7 +8484,7 @@ var trade4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVzn
|
|
|
8188
8484
|
|
|
8189
8485
|
var trade5 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0MUVBOUVCQjIzQUIxMUU0QUZCMkFCQ0QzMzVDM0ZDMCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0MUVBOUVCQzIzQUIxMUU0QUZCMkFCQ0QzMzVDM0ZDMCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjQxRUE5RUI5MjNBQjExRTRBRkIyQUJDRDMzNUMzRkMwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQxRUE5RUJBMjNBQjExRTRBRkIyQUJDRDMzNUMzRkMwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+xU6hIgAAAPdJREFUeNqM0M9KAlEUx/E7MoF/WoiIoCslCyIXIgS5alMgvoJvIPgCbXwWobYuJVqVgeCmVSAyxGgE1dJVicH1e/AMDSLqgQ935nJ+d+4Z57bofxljOjhEEwuM0VU+csg0vHzf5SGCGkZmVQcoqRt8SDMGuJbmHk7gwWooWOXAPOIo3x1PUhJ4RFRP/jb/ZUOk0jiXwLNuFkLXWq8gdCmBKV5R0WGlnA2k6hEm/9NrHWGGoQ7b1vneQ1/6cfXhAS38ymc5ZB50MGiS5RQxvDjWWtnM8vImv47mK7OlZAZD06ekcUE4vTOgdY8EqvsGnnQ92xZYCjAAxxw+q99X1uIAAAAASUVORK5CYII=";
|
|
8190
8486
|
|
|
8191
|
-
var TextArea$
|
|
8487
|
+
var TextArea$2 = Input.TextArea;
|
|
8192
8488
|
var imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
|
|
8193
8489
|
var RemarkInput = function RemarkInput(props) {
|
|
8194
8490
|
var isShowFlag = props.isShowFlag,
|
|
@@ -8207,7 +8503,7 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8207
8503
|
});
|
|
8208
8504
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
8209
8505
|
};
|
|
8210
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$
|
|
8506
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$2, {
|
|
8211
8507
|
disabled: disabled,
|
|
8212
8508
|
rows: 4,
|
|
8213
8509
|
value: value === null || value === void 0 ? void 0 : value.remark,
|
|
@@ -8231,8 +8527,8 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8231
8527
|
})));
|
|
8232
8528
|
};
|
|
8233
8529
|
|
|
8234
|
-
var css_248z$
|
|
8235
|
-
styleInject(css_248z$
|
|
8530
|
+
var css_248z$5 = ".mb8 {\n margin-bottom: 8px;\n}\n";
|
|
8531
|
+
styleInject(css_248z$5);
|
|
8236
8532
|
|
|
8237
8533
|
var Logistics = function Logistics(props) {
|
|
8238
8534
|
var options = props.options,
|
|
@@ -8286,7 +8582,7 @@ var Logistics = function Logistics(props) {
|
|
|
8286
8582
|
return /*#__PURE__*/React.createElement(Input, {
|
|
8287
8583
|
disabled: disabled,
|
|
8288
8584
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
8289
|
-
className: css_248z$
|
|
8585
|
+
className: css_248z$5.logisticsInput,
|
|
8290
8586
|
onChange: handleInputChange,
|
|
8291
8587
|
value: value === null || value === void 0 ? void 0 : value.order,
|
|
8292
8588
|
onBlur: function onBlur(e) {
|
|
@@ -8295,7 +8591,7 @@ var Logistics = function Logistics(props) {
|
|
|
8295
8591
|
});
|
|
8296
8592
|
};
|
|
8297
8593
|
return /*#__PURE__*/React.createElement("div", {
|
|
8298
|
-
className: css_248z$
|
|
8594
|
+
className: css_248z$5.logistics
|
|
8299
8595
|
}, isSingle ? showField === 'EXPRESS_COMPANY' ? LogisticsCompany() : null : LogisticsCompany(), isSingle ? showField === 'EXPRESS_WAYBILL_CODE' ? LogisticsCode() : null : LogisticsCode());
|
|
8300
8596
|
};
|
|
8301
8597
|
|
|
@@ -8332,8 +8628,8 @@ var AliPay = function AliPay(props) {
|
|
|
8332
8628
|
})));
|
|
8333
8629
|
};
|
|
8334
8630
|
|
|
8335
|
-
var css_248z$
|
|
8336
|
-
styleInject(css_248z$
|
|
8631
|
+
var css_248z$6 = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.goodsBox .right-context {\n font-size: 12px;\n}\n.goodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.goodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.goodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n.goods-imgBox .add-btn {\n color: #86909c;\n}\n.goods-imgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
|
|
8632
|
+
styleInject(css_248z$6);
|
|
8337
8633
|
|
|
8338
8634
|
var defaultImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAOKADAAQAAAABAAAAOAAAAAANV2hTAAACcklEQVRoBe1aa3OqMBBdlFatfVivnV7H29f//0md6XSc1hegKCCigE2c0YKtri7Rm3ayX0zCbjhnzyZEVBs53hx+seV+MbcFNUXwpyusFFQKSp4BVaKSC4TCUwqiKZLcQSkouUAoPKUgmiLJHZSCkguEwtNRjw0O8/kcTMuGWRhu8BAzfKLrUPtTAU3TSBOSCXqeD2bfJt1036BSqQjn5dK+YQt/8hoMo4h0Q0pQmKFKyAomgdZva1C5ukgOZW7bQwfaXTPzPEIIZkXBXnyBN/aBr7fq9SXkcuTC+gLlvxPkG5VhDVbAHHcMj/f1VT9rQ1yqiEj69jAVOQkC8CdBaixL5ygEB/YIhiM3C05y7EFLNGI7battgMvWF7d8Pv9lu69WrlIlWiwUoFQswHQ6I5NKBh6MIC+z93YPZrPPg0Cr04Onh8ZiM1mC4A/x09OT1CZDfagv50x+HoTgwHag2zNh/TeBKIoZaQMe/v1NnUzO2IP88qKcxCWsLXQNxnEMrY4BnW/ILRH7/mRVkvy4x/2fX5osxgLeF23CFAzYmnlv9SCYTlGMVn8IMVOTx4wZYW58IwrDCBr1m5S66GSIgxCCLjuXdg0L4nh3BQbspLJujutB8y2Cu8bt+iVyX0iJcmD7kNuGliv62mwD34FFmBAFRQBJzsHL3DDxUk/GbGoLUXDT5FnGdy/27XeRluB22LtfVQR3z5WcnmQFdXauPJbp7Hsi1ciRZfaOpFatHOWlU/msSOUHmvobCTl3cgSS16Ac8HEUiiCeI7k9lIJy64OjUwriOZLbQykotz44OqUgniO5PZSCcuuDo1MK4jmS2+MD4RXMNiaoge4AAAAASUVORK5CYII=";
|
|
8339
8635
|
|
|
@@ -9387,8 +9683,8 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
9387
9683
|
}));
|
|
9388
9684
|
};
|
|
9389
9685
|
|
|
9390
|
-
var css_248z$
|
|
9391
|
-
styleInject(css_248z$
|
|
9686
|
+
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
9687
|
+
styleInject(css_248z$7);
|
|
9392
9688
|
|
|
9393
9689
|
var GoodItem = function GoodItem(props) {
|
|
9394
9690
|
var _props$isSingleRow = props.isSingleRow,
|
|
@@ -9826,8 +10122,8 @@ var Supplier = function Supplier(props) {
|
|
|
9826
10122
|
}));
|
|
9827
10123
|
};
|
|
9828
10124
|
|
|
9829
|
-
var css_248z$
|
|
9830
|
-
styleInject(css_248z$
|
|
10125
|
+
var css_248z$8 = ".cardBox {\n position: absolute;\n z-index: 1;\n border: 1px solid #e6e6e6;\n background-color: #fff;\n color: #303133;\n border-radius: 4px;\n overflow: auto;\n height: 200px;\n cursor: pointer;\n}\n.cardBox .cardli {\n padding: 7px 13px;\n width: 332px;\n}\n.cardBox .cardli:hover {\n background-color: #f5f7fa;\n}\n.cardBox .cardText {\n font-size: 14px;\n color: #333;\n margin: 0;\n padding: 0;\n line-height: 26px;\n}\n.cardBox .c-f60 {\n color: #f60;\n}\n.btn-discern {\n margin-left: 10px;\n height: 24px;\n font-size: 12px;\n color: #1B5BF3;\n border-color: #1B5BF3;\n padding: 0;\n}\n";
|
|
10126
|
+
styleInject(css_248z$8);
|
|
9831
10127
|
|
|
9832
10128
|
var Invoice = function Invoice(props) {
|
|
9833
10129
|
var _props$value = props.value,
|
|
@@ -10258,8 +10554,8 @@ var Payment = function Payment(props) {
|
|
|
10258
10554
|
}));
|
|
10259
10555
|
};
|
|
10260
10556
|
|
|
10261
|
-
var css_248z$
|
|
10262
|
-
styleInject(css_248z$
|
|
10557
|
+
var css_248z$9 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
|
|
10558
|
+
styleInject(css_248z$9);
|
|
10263
10559
|
|
|
10264
10560
|
var Item = Form.Item;
|
|
10265
10561
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
@@ -10511,7 +10807,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10511
10807
|
}
|
|
10512
10808
|
};
|
|
10513
10809
|
return /*#__PURE__*/React.createElement("div", {
|
|
10514
|
-
className: css_248z$
|
|
10810
|
+
className: css_248z$9.interceptBox
|
|
10515
10811
|
}, /*#__PURE__*/React.createElement(Item, {
|
|
10516
10812
|
label: '物流信息',
|
|
10517
10813
|
required: required,
|
|
@@ -11327,8 +11623,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11327
11623
|
})) : null) : null);
|
|
11328
11624
|
};
|
|
11329
11625
|
|
|
11330
|
-
var css_248z$
|
|
11331
|
-
styleInject(css_248z$
|
|
11626
|
+
var css_248z$a = ".jstGoodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.jstGoodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.jstGoodsBox .right-context {\n font-size: 12px;\n}\n.jstGoodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.jstGoodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.jstGoodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.jstimgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n display: flex;\n justify-items: center;\n align-items: center;\n}\n.jstimgBox .add-btn {\n color: #86909c;\n}\n.jstimgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
|
|
11627
|
+
styleInject(css_248z$a);
|
|
11332
11628
|
|
|
11333
11629
|
var ItemList = function ItemList(props) {
|
|
11334
11630
|
var _props$value = props.value,
|
|
@@ -11401,7 +11697,7 @@ var ItemList = function ItemList(props) {
|
|
|
11401
11697
|
}, "\u6682\u4E0D\u652F\u6301\u6DFB\u52A0")) : null);
|
|
11402
11698
|
};
|
|
11403
11699
|
|
|
11404
|
-
var _excluded$
|
|
11700
|
+
var _excluded$d = ["shopId"];
|
|
11405
11701
|
var columns = [{
|
|
11406
11702
|
dataIndex: 'index',
|
|
11407
11703
|
title: 'NO',
|
|
@@ -11626,7 +11922,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11626
11922
|
};
|
|
11627
11923
|
var onFinish = function onFinish(val) {
|
|
11628
11924
|
var shopId = val.shopId,
|
|
11629
|
-
other = _objectWithoutProperties(val, _excluded$
|
|
11925
|
+
other = _objectWithoutProperties(val, _excluded$d);
|
|
11630
11926
|
var value = other;
|
|
11631
11927
|
var newFilterList = [];
|
|
11632
11928
|
var hasValue = Object.values(value).some(function (t) {
|
|
@@ -16117,7 +16413,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
16117
16413
|
}));
|
|
16118
16414
|
};
|
|
16119
16415
|
|
|
16120
|
-
var _excluded$
|
|
16416
|
+
var _excluded$e = ["value", "onChange", "reasonList", "disabled"];
|
|
16121
16417
|
var BsExchange = function BsExchange(props) {
|
|
16122
16418
|
var _value$bsExchangeType4, _value$bsExchangeType5, _value$bsExchangeType6;
|
|
16123
16419
|
var value = props.value,
|
|
@@ -16125,7 +16421,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16125
16421
|
_props$reasonList = props.reasonList,
|
|
16126
16422
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16127
16423
|
disabled = props.disabled,
|
|
16128
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16424
|
+
other = _objectWithoutProperties(props, _excluded$e);
|
|
16129
16425
|
var valueRef = useRef({});
|
|
16130
16426
|
useEffect(function () {
|
|
16131
16427
|
valueRef.current = value;
|
|
@@ -16352,7 +16648,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16352
16648
|
}))) : null);
|
|
16353
16649
|
};
|
|
16354
16650
|
|
|
16355
|
-
var _excluded$
|
|
16651
|
+
var _excluded$f = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
16356
16652
|
var typeMap = {
|
|
16357
16653
|
BS_REISSUE_GOODS: {
|
|
16358
16654
|
key: 'bsReissueGoods',
|
|
@@ -16377,7 +16673,7 @@ var BsReissue = function BsReissue(props) {
|
|
|
16377
16673
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16378
16674
|
disabled = props.disabled,
|
|
16379
16675
|
type = props.type,
|
|
16380
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16676
|
+
other = _objectWithoutProperties(props, _excluded$f);
|
|
16381
16677
|
var valueRef = useRef({});
|
|
16382
16678
|
useEffect(function () {
|
|
16383
16679
|
var _typeMap$type;
|
|
@@ -16493,14 +16789,14 @@ var BsReissue = function BsReissue(props) {
|
|
|
16493
16789
|
})));
|
|
16494
16790
|
};
|
|
16495
16791
|
|
|
16496
|
-
var _excluded$
|
|
16792
|
+
var _excluded$g = ["value", "onChange", "reasonList", "disabled"];
|
|
16497
16793
|
var BsReturnGoods = function BsReturnGoods(props) {
|
|
16498
16794
|
var value = props.value,
|
|
16499
16795
|
onChange = props.onChange,
|
|
16500
16796
|
_props$reasonList = props.reasonList,
|
|
16501
16797
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16502
16798
|
disabled = props.disabled,
|
|
16503
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16799
|
+
other = _objectWithoutProperties(props, _excluded$g);
|
|
16504
16800
|
var valueRef = useRef({});
|
|
16505
16801
|
useEffect(function () {
|
|
16506
16802
|
pubsub.subscribe('returnSelectList', function (_, data) {
|
|
@@ -16813,7 +17109,7 @@ var kmUtils = {
|
|
|
16813
17109
|
getOrderListSingleton: getOrderListSingleton
|
|
16814
17110
|
};
|
|
16815
17111
|
|
|
16816
|
-
var _excluded$
|
|
17112
|
+
var _excluded$h = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16817
17113
|
var columnsMap = {
|
|
16818
17114
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16819
17115
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16832,7 +17128,7 @@ var rowKeyMap = {
|
|
|
16832
17128
|
GY_SYSTEM_ORDER: 'billNo',
|
|
16833
17129
|
JST_SYSTEM_ORDER: 'oId'
|
|
16834
17130
|
};
|
|
16835
|
-
var index$
|
|
17131
|
+
var index$2 = (function (props) {
|
|
16836
17132
|
var value = props.value,
|
|
16837
17133
|
_onChange = props.onChange,
|
|
16838
17134
|
disabled = props.disabled,
|
|
@@ -17087,7 +17383,7 @@ var index$1 = (function (props) {
|
|
|
17087
17383
|
deliveryState = _ref10.deliveryState,
|
|
17088
17384
|
vipCode = _ref10.vipCode,
|
|
17089
17385
|
shopCode = _ref10.shopCode,
|
|
17090
|
-
rest = _objectWithoutProperties(_ref10, _excluded$
|
|
17386
|
+
rest = _objectWithoutProperties(_ref10, _excluded$h);
|
|
17091
17387
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
17092
17388
|
billNo: billNo,
|
|
17093
17389
|
billType: billType,
|
|
@@ -17794,7 +18090,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17794
18090
|
})));
|
|
17795
18091
|
};
|
|
17796
18092
|
|
|
17797
|
-
var _excluded$
|
|
18093
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17798
18094
|
var typeMap$1 = {
|
|
17799
18095
|
WDT_REISSUE_GOODS: {
|
|
17800
18096
|
key: 'wdtReissueGoods',
|
|
@@ -17822,7 +18118,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17822
18118
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17823
18119
|
disabled = props.disabled,
|
|
17824
18120
|
type = props.type,
|
|
17825
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18121
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17826
18122
|
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) {
|
|
17827
18123
|
var _order$srcTid;
|
|
17828
18124
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -18062,7 +18358,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18062
18358
|
})));
|
|
18063
18359
|
};
|
|
18064
18360
|
|
|
18065
|
-
var _excluded$
|
|
18361
|
+
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18066
18362
|
var typeMap$2 = {
|
|
18067
18363
|
JST_REISSUE_GOODS: {
|
|
18068
18364
|
compType: '补发',
|
|
@@ -18110,7 +18406,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18110
18406
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18111
18407
|
disabled = props.disabled,
|
|
18112
18408
|
type = props.type,
|
|
18113
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18409
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
18114
18410
|
var getOrderFlag = useRef(false);
|
|
18115
18411
|
var _useState = useState(false),
|
|
18116
18412
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18363,8 +18659,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18363
18659
|
})));
|
|
18364
18660
|
};
|
|
18365
18661
|
|
|
18366
|
-
var css_248z$
|
|
18367
|
-
styleInject(css_248z$
|
|
18662
|
+
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";
|
|
18663
|
+
styleInject(css_248z$b);
|
|
18368
18664
|
|
|
18369
18665
|
var TabPane$1 = Tabs.TabPane;
|
|
18370
18666
|
var Option$2 = Select.Option;
|
|
@@ -18837,14 +19133,14 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18837
19133
|
userNick: userNick
|
|
18838
19134
|
}));
|
|
18839
19135
|
};
|
|
18840
|
-
var index$
|
|
19136
|
+
var index$3 = /*#__PURE__*/forwardRef(Goods$1);
|
|
18841
19137
|
|
|
18842
|
-
var _excluded$
|
|
19138
|
+
var _excluded$k = ["onChange", "value", "failValue"];
|
|
18843
19139
|
function CommonStatus(props) {
|
|
18844
19140
|
var onChange = props.onChange,
|
|
18845
19141
|
value = props.value,
|
|
18846
19142
|
failValue = props.failValue,
|
|
18847
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19143
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18848
19144
|
var changeHandle = function changeHandle(val) {
|
|
18849
19145
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18850
19146
|
status: val,
|
|
@@ -18981,7 +19277,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18981
19277
|
})) : null) : null);
|
|
18982
19278
|
};
|
|
18983
19279
|
|
|
18984
|
-
var _excluded$
|
|
19280
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18985
19281
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18986
19282
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18987
19283
|
var _props$value = props.value,
|
|
@@ -18991,7 +19287,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18991
19287
|
failValue = props.failValue,
|
|
18992
19288
|
_props$type = props.type,
|
|
18993
19289
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18994
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19290
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
18995
19291
|
var _useState = useState(0),
|
|
18996
19292
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18997
19293
|
changeIndex = _useState2[0],
|
|
@@ -19057,7 +19353,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
19057
19353
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
19058
19354
|
};
|
|
19059
19355
|
|
|
19060
|
-
var _excluded$
|
|
19356
|
+
var _excluded$m = ["value", "onChange", "disabled", "failValue", "type"];
|
|
19061
19357
|
var MsgStatus = function MsgStatus(props) {
|
|
19062
19358
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
19063
19359
|
var _props$value = props.value,
|
|
@@ -19067,7 +19363,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19067
19363
|
failValue = props.failValue,
|
|
19068
19364
|
_props$type = props.type,
|
|
19069
19365
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
19070
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19366
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
19071
19367
|
var _useState = useState(0),
|
|
19072
19368
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19073
19369
|
changeIndex = _useState2[0],
|
|
@@ -19136,7 +19432,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
19136
19432
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
19137
19433
|
};
|
|
19138
19434
|
|
|
19139
|
-
var _excluded$
|
|
19435
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19140
19436
|
var typeMap$3 = {
|
|
19141
19437
|
BS_E3_REISSUE_GOODS: {
|
|
19142
19438
|
key: 'bsE3ReissueGoods',
|
|
@@ -19154,7 +19450,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19154
19450
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19155
19451
|
disabled = props.disabled,
|
|
19156
19452
|
type = props.type,
|
|
19157
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19453
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
19158
19454
|
var getOrderFlag = useRef(false);
|
|
19159
19455
|
var valueRef = useRef(null);
|
|
19160
19456
|
var _useState = useState(false),
|
|
@@ -19372,7 +19668,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19372
19668
|
})));
|
|
19373
19669
|
};
|
|
19374
19670
|
|
|
19375
|
-
var _excluded$
|
|
19671
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19376
19672
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19377
19673
|
var typeMap$4 = {
|
|
19378
19674
|
GY_REISSUE_GOODS: {
|
|
@@ -19401,7 +19697,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19401
19697
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19402
19698
|
disabled = props.disabled,
|
|
19403
19699
|
type = props.type,
|
|
19404
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19700
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19405
19701
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19406
19702
|
// order?.platformCode?.includes(';'),
|
|
19407
19703
|
// );
|
|
@@ -19645,7 +19941,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19645
19941
|
})));
|
|
19646
19942
|
};
|
|
19647
19943
|
|
|
19648
|
-
var _excluded$
|
|
19944
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19649
19945
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19650
19946
|
var typeMap$5 = {
|
|
19651
19947
|
GY_RETURN_GOODS: {
|
|
@@ -19674,7 +19970,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19674
19970
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19675
19971
|
disabled = props.disabled,
|
|
19676
19972
|
type = props.type,
|
|
19677
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19973
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19678
19974
|
var valueRef = useRef({});
|
|
19679
19975
|
var getOrderFlag = useRef(false);
|
|
19680
19976
|
var _useState = useState(false),
|
|
@@ -19935,4 +20231,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19935
20231
|
})));
|
|
19936
20232
|
};
|
|
19937
20233
|
|
|
19938
|
-
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$
|
|
20234
|
+
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 };
|