@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.js
CHANGED
|
@@ -1188,10 +1188,306 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1188
1188
|
};
|
|
1189
1189
|
var index = /*#__PURE__*/React.forwardRef(ApaasUploadAsync);
|
|
1190
1190
|
|
|
1191
|
-
var css_248z$2 = ".index-
|
|
1192
|
-
var styles$2 = {"
|
|
1191
|
+
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";
|
|
1192
|
+
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"};
|
|
1193
1193
|
styleInject(css_248z$2);
|
|
1194
1194
|
|
|
1195
|
+
var _excluded$7 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "actionUrl", "platform"];
|
|
1196
|
+
var TextArea = antd.Input.TextArea;
|
|
1197
|
+
var fn$2 = function fn() {
|
|
1198
|
+
return void 0;
|
|
1199
|
+
};
|
|
1200
|
+
var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
1201
|
+
var _document;
|
|
1202
|
+
var _ref$maxCount = _ref.maxCount,
|
|
1203
|
+
maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
|
|
1204
|
+
_ref$maxSize = _ref.maxSize,
|
|
1205
|
+
maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
|
|
1206
|
+
_ref$uploadText = _ref.uploadText,
|
|
1207
|
+
uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
|
|
1208
|
+
_ref$onChange = _ref.onChange,
|
|
1209
|
+
onChange = _ref$onChange === void 0 ? fn$2 : _ref$onChange,
|
|
1210
|
+
_ref$value = _ref.value,
|
|
1211
|
+
value = _ref$value === void 0 ? [] : _ref$value,
|
|
1212
|
+
_ref$accept = _ref.accept,
|
|
1213
|
+
accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
|
|
1214
|
+
_ref$disabled = _ref.disabled,
|
|
1215
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1216
|
+
uniqueKey = _ref.uniqueKey,
|
|
1217
|
+
_ref$hostUrl = _ref.hostUrl,
|
|
1218
|
+
hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
|
|
1219
|
+
_ref$actionUrl = _ref.actionUrl,
|
|
1220
|
+
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
1221
|
+
_ref$platform = _ref.platform,
|
|
1222
|
+
platform = _ref$platform === void 0 ? '' : _ref$platform,
|
|
1223
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
1224
|
+
var inputRef = React.useRef(null);
|
|
1225
|
+
var valueRef = React.useRef(value);
|
|
1226
|
+
var _useState = React.useState(false),
|
|
1227
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1228
|
+
uploading = _useState2[0],
|
|
1229
|
+
setUploading = _useState2[1];
|
|
1230
|
+
var _useState3 = React.useState(true),
|
|
1231
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1232
|
+
pasteDefaultStates = _useState4[0],
|
|
1233
|
+
setPasteDefaultStates = _useState4[1];
|
|
1234
|
+
var preview = platform === 'ks' ? {
|
|
1235
|
+
getContainer: (_document = document) === null || _document === void 0 ? void 0 : _document.getElementById('root')
|
|
1236
|
+
} : true;
|
|
1237
|
+
React.useEffect(function () {
|
|
1238
|
+
valueRef.current = value;
|
|
1239
|
+
}, [value]);
|
|
1240
|
+
var asyncUpload = /*#__PURE__*/function () {
|
|
1241
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1242
|
+
var _valueRef$current;
|
|
1243
|
+
var formData, fileName, showName, _yield$request, success, data;
|
|
1244
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1245
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1246
|
+
case 0:
|
|
1247
|
+
setUploading(true);
|
|
1248
|
+
formData = new FormData();
|
|
1249
|
+
formData.append('file', file);
|
|
1250
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1251
|
+
formData.append('fileName', fileName);
|
|
1252
|
+
showName = file.name.substring(0, file.name.lastIndexOf('.'));
|
|
1253
|
+
_context.prev = 6;
|
|
1254
|
+
_context.next = 9;
|
|
1255
|
+
return request__default['default'](actionUrl, {
|
|
1256
|
+
method: 'post',
|
|
1257
|
+
body: formData
|
|
1258
|
+
});
|
|
1259
|
+
case 9:
|
|
1260
|
+
_yield$request = _context.sent;
|
|
1261
|
+
success = _yield$request.success;
|
|
1262
|
+
data = _yield$request.data;
|
|
1263
|
+
if (!success) {
|
|
1264
|
+
_context.next = 16;
|
|
1265
|
+
break;
|
|
1266
|
+
}
|
|
1267
|
+
if (!(valueRef.current.length >= maxCount)) {
|
|
1268
|
+
_context.next = 15;
|
|
1269
|
+
break;
|
|
1270
|
+
}
|
|
1271
|
+
return _context.abrupt("return");
|
|
1272
|
+
case 15:
|
|
1273
|
+
handleChange([].concat(_toConsumableArray(valueRef.current), [{
|
|
1274
|
+
url: data,
|
|
1275
|
+
name: showName
|
|
1276
|
+
}]));
|
|
1277
|
+
case 16:
|
|
1278
|
+
_context.next = 21;
|
|
1279
|
+
break;
|
|
1280
|
+
case 18:
|
|
1281
|
+
_context.prev = 18;
|
|
1282
|
+
_context.t0 = _context["catch"](6);
|
|
1283
|
+
antd.message.error('图片上传失败');
|
|
1284
|
+
case 21:
|
|
1285
|
+
_context.prev = 21;
|
|
1286
|
+
setUploading(false);
|
|
1287
|
+
return _context.finish(21);
|
|
1288
|
+
case 24:
|
|
1289
|
+
case "end":
|
|
1290
|
+
return _context.stop();
|
|
1291
|
+
}
|
|
1292
|
+
}, _callee, null, [[6, 18, 21, 24]]);
|
|
1293
|
+
}));
|
|
1294
|
+
return function asyncUpload(_x) {
|
|
1295
|
+
return _ref2.apply(this, arguments);
|
|
1296
|
+
};
|
|
1297
|
+
}();
|
|
1298
|
+
var imgReader = function imgReader(item) {
|
|
1299
|
+
var blob = item.getAsFile(),
|
|
1300
|
+
reader = new FileReader();
|
|
1301
|
+
if (blob.size > maxSize * 1024 * 1024) {
|
|
1302
|
+
antd.message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1303
|
+
return;
|
|
1304
|
+
}
|
|
1305
|
+
if (valueRef.current.length >= maxCount) {
|
|
1306
|
+
antd.message.error("\u53EA\u80FD\u4E0A\u4F20".concat(maxCount, "\u5F20\u56FE\u7247"));
|
|
1307
|
+
return;
|
|
1308
|
+
}
|
|
1309
|
+
reader.onload = /*#__PURE__*/function () {
|
|
1310
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
1311
|
+
var _e$target, _valueRef$current2;
|
|
1312
|
+
var result, fileName, file;
|
|
1313
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1314
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1315
|
+
case 0:
|
|
1316
|
+
result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
|
|
1317
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1318
|
+
file = dataURLtoFile(result, fileName);
|
|
1319
|
+
asyncUpload(file);
|
|
1320
|
+
case 4:
|
|
1321
|
+
case "end":
|
|
1322
|
+
return _context2.stop();
|
|
1323
|
+
}
|
|
1324
|
+
}, _callee2);
|
|
1325
|
+
}));
|
|
1326
|
+
return function (_x2) {
|
|
1327
|
+
return _ref3.apply(this, arguments);
|
|
1328
|
+
};
|
|
1329
|
+
}();
|
|
1330
|
+
reader.readAsDataURL(blob);
|
|
1331
|
+
};
|
|
1332
|
+
var handleChange = function handleChange(list) {
|
|
1333
|
+
valueRef.current = list;
|
|
1334
|
+
onChange(list);
|
|
1335
|
+
};
|
|
1336
|
+
var clipboardDataChange = function clipboardDataChange(e) {
|
|
1337
|
+
var clipboardData = e.clipboardData || window.clipboardData;
|
|
1338
|
+
var i = 0,
|
|
1339
|
+
items,
|
|
1340
|
+
item,
|
|
1341
|
+
types;
|
|
1342
|
+
if (clipboardData) {
|
|
1343
|
+
items = clipboardData.items;
|
|
1344
|
+
if (!items) return;
|
|
1345
|
+
item = items[0];
|
|
1346
|
+
types = clipboardData.types || [];
|
|
1347
|
+
for (; i < types.length; i++) {
|
|
1348
|
+
if (types[i] === 'Files') {
|
|
1349
|
+
item = items[i];
|
|
1350
|
+
break;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
if (item && item.kind === 'file' && item.type.match(/^image\//i)) {
|
|
1354
|
+
imgReader(item);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
};
|
|
1358
|
+
// 手动上传模式, 一直返回false
|
|
1359
|
+
var beforeUpload = function beforeUpload(file) {
|
|
1360
|
+
var size = file.size / 1024 / 1024 < maxSize;
|
|
1361
|
+
if (value.length > maxCount) {
|
|
1362
|
+
antd.message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u5F20\u56FE\u7247\uFF01"));
|
|
1363
|
+
return antd.Upload.LIST_IGNORE;
|
|
1364
|
+
}
|
|
1365
|
+
if (!size) {
|
|
1366
|
+
antd.message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1367
|
+
return antd.Upload.LIST_IGNORE;
|
|
1368
|
+
}
|
|
1369
|
+
asyncUpload(file);
|
|
1370
|
+
return antd.Upload.LIST_IGNORE;
|
|
1371
|
+
};
|
|
1372
|
+
var handleDelete = function handleDelete(key) {
|
|
1373
|
+
return function () {
|
|
1374
|
+
if (disabled) return;
|
|
1375
|
+
handleChange(value.filter(function (_, index) {
|
|
1376
|
+
return key !== index;
|
|
1377
|
+
}));
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
var renderImages = function renderImages(images) {
|
|
1381
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image.PreviewGroup, {
|
|
1382
|
+
preview: preview
|
|
1383
|
+
}, images.map(function (image, index) {
|
|
1384
|
+
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");
|
|
1385
|
+
var showImage = /^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url;
|
|
1386
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1387
|
+
className: styles$2.imageProWrap,
|
|
1388
|
+
key: index
|
|
1389
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1390
|
+
className: styles$2.imageProInfo
|
|
1391
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
1392
|
+
src: finalImage,
|
|
1393
|
+
preview: {
|
|
1394
|
+
src: showImage
|
|
1395
|
+
},
|
|
1396
|
+
width: '100%',
|
|
1397
|
+
height: '100%'
|
|
1398
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1399
|
+
className: styles$2.imageProRight
|
|
1400
|
+
}, /*#__PURE__*/React__default['default'].createElement(TextArea, {
|
|
1401
|
+
value: image.name,
|
|
1402
|
+
onChange: function onChange(e) {
|
|
1403
|
+
handleChange(value.map(function (item, i) {
|
|
1404
|
+
if (index === i) {
|
|
1405
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
1406
|
+
name: e.target.value
|
|
1407
|
+
});
|
|
1408
|
+
}
|
|
1409
|
+
return item;
|
|
1410
|
+
}));
|
|
1411
|
+
},
|
|
1412
|
+
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u540D\u79F0",
|
|
1413
|
+
autoSize: {
|
|
1414
|
+
minRows: 2,
|
|
1415
|
+
maxRows: 2
|
|
1416
|
+
},
|
|
1417
|
+
maxLength: 1000
|
|
1418
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1419
|
+
className: styles$2.imageProOperate
|
|
1420
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.CloseOutlined, {
|
|
1421
|
+
className: styles$2.deleteIcon,
|
|
1422
|
+
onClick: handleDelete(index)
|
|
1423
|
+
}))));
|
|
1424
|
+
}));
|
|
1425
|
+
};
|
|
1426
|
+
React.useEffect(function () {
|
|
1427
|
+
var _inputRef$current2;
|
|
1428
|
+
if (!pasteDefaultStates) {
|
|
1429
|
+
var _inputRef$current;
|
|
1430
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
1431
|
+
}
|
|
1432
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.addEventListener('paste', function (e) {
|
|
1433
|
+
return clipboardDataChange(e);
|
|
1434
|
+
});
|
|
1435
|
+
return function () {
|
|
1436
|
+
var _inputRef$current3;
|
|
1437
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.removeEventListener('paste', function (e) {
|
|
1438
|
+
return clipboardDataChange(e);
|
|
1439
|
+
});
|
|
1440
|
+
};
|
|
1441
|
+
}, [pasteDefaultStates]);
|
|
1442
|
+
React.useImperativeHandle(ref, function () {
|
|
1443
|
+
return {
|
|
1444
|
+
taskCompleted: !uploading
|
|
1445
|
+
};
|
|
1446
|
+
}, [uploading]);
|
|
1447
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
1448
|
+
spinning: uploading
|
|
1449
|
+
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
1450
|
+
className: styles$2.tips
|
|
1451
|
+
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u5F20\u56FE\u7247"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1452
|
+
className: styles$2.imageProBox
|
|
1453
|
+
}, !disabled && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1454
|
+
className: styles$2.imagePaste
|
|
1455
|
+
}, pasteDefaultStates ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1456
|
+
className: styles$2.fakeBox,
|
|
1457
|
+
onClick: function onClick() {
|
|
1458
|
+
setPasteDefaultStates(false);
|
|
1459
|
+
}
|
|
1460
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
1461
|
+
className: styles$2.addBtn
|
|
1462
|
+
}, "+"), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
1463
|
+
className: styles$2.text
|
|
1464
|
+
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React__default['default'].createElement("input", {
|
|
1465
|
+
ref: inputRef,
|
|
1466
|
+
className: styles$2.inputImage,
|
|
1467
|
+
type: "text",
|
|
1468
|
+
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
1469
|
+
onBlur: function onBlur() {
|
|
1470
|
+
setPasteDefaultStates(true);
|
|
1471
|
+
},
|
|
1472
|
+
value: ""
|
|
1473
|
+
})), /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({
|
|
1474
|
+
disabled: disabled,
|
|
1475
|
+
accept: accept,
|
|
1476
|
+
name: "file",
|
|
1477
|
+
listType: "picture-card",
|
|
1478
|
+
maxCount: maxCount,
|
|
1479
|
+
className: styles$2.upload,
|
|
1480
|
+
beforeUpload: beforeUpload
|
|
1481
|
+
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
1482
|
+
className: "addBtn"
|
|
1483
|
+
}, "+"), /*#__PURE__*/React__default['default'].createElement("div", null, uploadText))), renderImages(value)));
|
|
1484
|
+
};
|
|
1485
|
+
var index$1 = /*#__PURE__*/React.forwardRef(ApaasUploadProAsync);
|
|
1486
|
+
|
|
1487
|
+
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";
|
|
1488
|
+
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"};
|
|
1489
|
+
styleInject(css_248z$3);
|
|
1490
|
+
|
|
1195
1491
|
//! moment.js
|
|
1196
1492
|
//! version : 2.29.4
|
|
1197
1493
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -6868,9 +7164,9 @@ hooks.HTML5_FMT = {
|
|
|
6868
7164
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6869
7165
|
};
|
|
6870
7166
|
|
|
6871
|
-
var _excluded$
|
|
7167
|
+
var _excluded$8 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "hostUrl", "canDownload", "actionUrl", "platform"];
|
|
6872
7168
|
var Dragger = antd.Upload.Dragger;
|
|
6873
|
-
var fn$
|
|
7169
|
+
var fn$3 = function fn() {
|
|
6874
7170
|
return void 0;
|
|
6875
7171
|
};
|
|
6876
7172
|
var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
@@ -6879,7 +7175,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6879
7175
|
_ref$maxSize = _ref.maxSize,
|
|
6880
7176
|
maxSize = _ref$maxSize === void 0 ? 100 : _ref$maxSize,
|
|
6881
7177
|
_ref$onChange = _ref.onChange,
|
|
6882
|
-
onChange = _ref$onChange === void 0 ? fn$
|
|
7178
|
+
onChange = _ref$onChange === void 0 ? fn$3 : _ref$onChange,
|
|
6883
7179
|
_ref$value = _ref.value,
|
|
6884
7180
|
value = _ref$value === void 0 ? [] : _ref$value,
|
|
6885
7181
|
_ref$accept = _ref.accept,
|
|
@@ -6893,7 +7189,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6893
7189
|
_ref$actionUrl = _ref.actionUrl,
|
|
6894
7190
|
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
6895
7191
|
_ref$platform = _ref.platform,
|
|
6896
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
7192
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
6897
7193
|
var inputRef = React.useRef(null);
|
|
6898
7194
|
var _useState = React.useState(false),
|
|
6899
7195
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7123,23 +7419,23 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7123
7419
|
return /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
7124
7420
|
spinning: uploading
|
|
7125
7421
|
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
7126
|
-
className: styles$
|
|
7422
|
+
className: styles$3.tips
|
|
7127
7423
|
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7128
|
-
className: styles$
|
|
7424
|
+
className: styles$3.imageBox
|
|
7129
7425
|
}, !disabled && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7130
|
-
className: styles$
|
|
7426
|
+
className: styles$3.imagePaste
|
|
7131
7427
|
}, pasteDefaultStates ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7132
|
-
className: styles$
|
|
7428
|
+
className: styles$3.fakeBox,
|
|
7133
7429
|
onClick: function onClick() {
|
|
7134
7430
|
setPasteDefaultStates(false);
|
|
7135
7431
|
}
|
|
7136
7432
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7137
|
-
className: styles$
|
|
7433
|
+
className: styles$3.addBtn
|
|
7138
7434
|
}, "+"), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
7139
|
-
className: styles$
|
|
7435
|
+
className: styles$3.text
|
|
7140
7436
|
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React__default['default'].createElement("input", {
|
|
7141
7437
|
ref: inputRef,
|
|
7142
|
-
className: styles$
|
|
7438
|
+
className: styles$3.inputImage,
|
|
7143
7439
|
type: "text",
|
|
7144
7440
|
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
7145
7441
|
onBlur: function onBlur() {
|
|
@@ -7157,9 +7453,9 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7157
7453
|
fileList: fileList,
|
|
7158
7454
|
onRemove: onRemove
|
|
7159
7455
|
}, resetProps), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7160
|
-
className: styles$
|
|
7456
|
+
className: styles$3.addBtn
|
|
7161
7457
|
}, "+"), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
7162
|
-
className: styles$
|
|
7458
|
+
className: styles$3.addBtn
|
|
7163
7459
|
}, "\u9009\u62E9\u6587\u4EF6")), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7164
7460
|
visible: visible,
|
|
7165
7461
|
title: fileName,
|
|
@@ -7194,7 +7490,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7194
7490
|
}))));
|
|
7195
7491
|
};
|
|
7196
7492
|
|
|
7197
|
-
var _excluded$
|
|
7493
|
+
var _excluded$9 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"];
|
|
7198
7494
|
function ApaasCheckbox(props) {
|
|
7199
7495
|
var showOther = props.showOther,
|
|
7200
7496
|
_props$horizontal = props.horizontal,
|
|
@@ -7205,7 +7501,7 @@ function ApaasCheckbox(props) {
|
|
|
7205
7501
|
value = _props$value === void 0 ? {} : _props$value,
|
|
7206
7502
|
onChange = props.onChange,
|
|
7207
7503
|
disabled = props.disabled,
|
|
7208
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7504
|
+
otherProps = _objectWithoutProperties(props, _excluded$9);
|
|
7209
7505
|
var checkboxValue = value.value,
|
|
7210
7506
|
other = value.other;
|
|
7211
7507
|
var triggerChange = function triggerChange(changedValue) {
|
|
@@ -7291,11 +7587,11 @@ function ApaasSlider(props) {
|
|
|
7291
7587
|
})));
|
|
7292
7588
|
}
|
|
7293
7589
|
|
|
7294
|
-
var css_248z$
|
|
7295
|
-
var styles$
|
|
7296
|
-
styleInject(css_248z$
|
|
7590
|
+
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";
|
|
7591
|
+
var styles$4 = {"rateLabel":"index-module_rateLabel__3k-Xa","rateText":"index-module_rateText__A1GRy"};
|
|
7592
|
+
styleInject(css_248z$4);
|
|
7297
7593
|
|
|
7298
|
-
var _excluded$
|
|
7594
|
+
var _excluded$a = ["value", "onChange", "options", "textStyle"];
|
|
7299
7595
|
//状态文字映射
|
|
7300
7596
|
var RATE_MAP = {
|
|
7301
7597
|
0: '',
|
|
@@ -7317,7 +7613,7 @@ function ApaasRate(props) {
|
|
|
7317
7613
|
_props$options = props.options,
|
|
7318
7614
|
options = _props$options === void 0 ? [] : _props$options,
|
|
7319
7615
|
textStyle = props.textStyle,
|
|
7320
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7616
|
+
other = _objectWithoutProperties(props, _excluded$a);
|
|
7321
7617
|
var rateValues = React.useMemo(function () {
|
|
7322
7618
|
return (value || []).reduce(function (prv, next) {
|
|
7323
7619
|
prv[next.id || ''] = next.value;
|
|
@@ -7353,14 +7649,14 @@ function ApaasRate(props) {
|
|
|
7353
7649
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
7354
7650
|
span: 24
|
|
7355
7651
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7356
|
-
className: styles$
|
|
7652
|
+
className: styles$4.rateLabel
|
|
7357
7653
|
}, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React__default['default'].createElement(antd.Rate, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7358
7654
|
value: rateValues[item.id] || 0,
|
|
7359
7655
|
onChange: function onChange(val) {
|
|
7360
7656
|
return changeHandle(val, item.id);
|
|
7361
7657
|
}
|
|
7362
7658
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7363
|
-
className: styles$
|
|
7659
|
+
className: styles$4.rateText,
|
|
7364
7660
|
style: textStyle
|
|
7365
7661
|
}, RATE_MAP[rateValues[item.id]])));
|
|
7366
7662
|
}));
|
|
@@ -7385,7 +7681,7 @@ var Province = function Province(props) {
|
|
|
7385
7681
|
})));
|
|
7386
7682
|
};
|
|
7387
7683
|
|
|
7388
|
-
var TextArea = antd.Input.TextArea;
|
|
7684
|
+
var TextArea$1 = antd.Input.TextArea;
|
|
7389
7685
|
var ParseLogistics = function ParseLogistics(props) {
|
|
7390
7686
|
var onChange = props.onChange,
|
|
7391
7687
|
_props$selfCalibratio = props.selfCalibration,
|
|
@@ -7434,7 +7730,7 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7434
7730
|
handleIdentify(val);
|
|
7435
7731
|
}
|
|
7436
7732
|
};
|
|
7437
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(TextArea, {
|
|
7733
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(TextArea$1, {
|
|
7438
7734
|
placeholder: "\u590D\u5236\u4FE1\u606F\uFF0C\u70B9\u51FB\u667A\u80FD\u8BC6\u522B",
|
|
7439
7735
|
rows: 3,
|
|
7440
7736
|
value: value,
|
|
@@ -7561,14 +7857,14 @@ function ApaasPosting(props) {
|
|
|
7561
7857
|
});
|
|
7562
7858
|
}
|
|
7563
7859
|
|
|
7564
|
-
var _excluded$
|
|
7860
|
+
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
7565
7861
|
function ApaasLogistics(props) {
|
|
7566
7862
|
var value = props.value,
|
|
7567
7863
|
onChange = props.onChange,
|
|
7568
7864
|
platformType = props.platformType,
|
|
7569
7865
|
_props$type = props.type,
|
|
7570
7866
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
7571
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7867
|
+
other = _objectWithoutProperties(props, _excluded$b);
|
|
7572
7868
|
var _useState = React.useState([]),
|
|
7573
7869
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7574
7870
|
option = _useState2[0],
|
|
@@ -7613,7 +7909,7 @@ function ApaasLogistics(props) {
|
|
|
7613
7909
|
}));
|
|
7614
7910
|
}
|
|
7615
7911
|
|
|
7616
|
-
var _excluded$
|
|
7912
|
+
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
7617
7913
|
function withFormItem(WrappedComponent) {
|
|
7618
7914
|
return function (props) {
|
|
7619
7915
|
var label = props.label,
|
|
@@ -7622,7 +7918,7 @@ function withFormItem(WrappedComponent) {
|
|
|
7622
7918
|
required = props.required,
|
|
7623
7919
|
rules = props.rules,
|
|
7624
7920
|
initialValue = props.initialValue,
|
|
7625
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7921
|
+
otherProps = _objectWithoutProperties(props, _excluded$c);
|
|
7626
7922
|
return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({}, {
|
|
7627
7923
|
label: label,
|
|
7628
7924
|
name: name,
|
|
@@ -8200,7 +8496,7 @@ var trade4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVzn
|
|
|
8200
8496
|
|
|
8201
8497
|
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=";
|
|
8202
8498
|
|
|
8203
|
-
var TextArea$
|
|
8499
|
+
var TextArea$2 = antd.Input.TextArea;
|
|
8204
8500
|
var imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
|
|
8205
8501
|
var RemarkInput = function RemarkInput(props) {
|
|
8206
8502
|
var isShowFlag = props.isShowFlag,
|
|
@@ -8219,7 +8515,7 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8219
8515
|
});
|
|
8220
8516
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
8221
8517
|
};
|
|
8222
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(TextArea$
|
|
8518
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(TextArea$2, {
|
|
8223
8519
|
disabled: disabled,
|
|
8224
8520
|
rows: 4,
|
|
8225
8521
|
value: value === null || value === void 0 ? void 0 : value.remark,
|
|
@@ -8243,8 +8539,8 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8243
8539
|
})));
|
|
8244
8540
|
};
|
|
8245
8541
|
|
|
8246
|
-
var css_248z$
|
|
8247
|
-
styleInject(css_248z$
|
|
8542
|
+
var css_248z$5 = ".mb8 {\n margin-bottom: 8px;\n}\n";
|
|
8543
|
+
styleInject(css_248z$5);
|
|
8248
8544
|
|
|
8249
8545
|
var Logistics = function Logistics(props) {
|
|
8250
8546
|
var options = props.options,
|
|
@@ -8298,7 +8594,7 @@ var Logistics = function Logistics(props) {
|
|
|
8298
8594
|
return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
8299
8595
|
disabled: disabled,
|
|
8300
8596
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
8301
|
-
className: css_248z$
|
|
8597
|
+
className: css_248z$5.logisticsInput,
|
|
8302
8598
|
onChange: handleInputChange,
|
|
8303
8599
|
value: value === null || value === void 0 ? void 0 : value.order,
|
|
8304
8600
|
onBlur: function onBlur(e) {
|
|
@@ -8307,7 +8603,7 @@ var Logistics = function Logistics(props) {
|
|
|
8307
8603
|
});
|
|
8308
8604
|
};
|
|
8309
8605
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
8310
|
-
className: css_248z$
|
|
8606
|
+
className: css_248z$5.logistics
|
|
8311
8607
|
}, isSingle ? showField === 'EXPRESS_COMPANY' ? LogisticsCompany() : null : LogisticsCompany(), isSingle ? showField === 'EXPRESS_WAYBILL_CODE' ? LogisticsCode() : null : LogisticsCode());
|
|
8312
8608
|
};
|
|
8313
8609
|
|
|
@@ -8344,8 +8640,8 @@ var AliPay = function AliPay(props) {
|
|
|
8344
8640
|
})));
|
|
8345
8641
|
};
|
|
8346
8642
|
|
|
8347
|
-
var css_248z$
|
|
8348
|
-
styleInject(css_248z$
|
|
8643
|
+
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";
|
|
8644
|
+
styleInject(css_248z$6);
|
|
8349
8645
|
|
|
8350
8646
|
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=";
|
|
8351
8647
|
|
|
@@ -9399,8 +9695,8 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
9399
9695
|
}));
|
|
9400
9696
|
};
|
|
9401
9697
|
|
|
9402
|
-
var css_248z$
|
|
9403
|
-
styleInject(css_248z$
|
|
9698
|
+
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";
|
|
9699
|
+
styleInject(css_248z$7);
|
|
9404
9700
|
|
|
9405
9701
|
var GoodItem = function GoodItem(props) {
|
|
9406
9702
|
var _props$isSingleRow = props.isSingleRow,
|
|
@@ -9838,8 +10134,8 @@ var Supplier = function Supplier(props) {
|
|
|
9838
10134
|
}));
|
|
9839
10135
|
};
|
|
9840
10136
|
|
|
9841
|
-
var css_248z$
|
|
9842
|
-
styleInject(css_248z$
|
|
10137
|
+
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";
|
|
10138
|
+
styleInject(css_248z$8);
|
|
9843
10139
|
|
|
9844
10140
|
var Invoice = function Invoice(props) {
|
|
9845
10141
|
var _props$value = props.value,
|
|
@@ -10270,8 +10566,8 @@ var Payment = function Payment(props) {
|
|
|
10270
10566
|
}));
|
|
10271
10567
|
};
|
|
10272
10568
|
|
|
10273
|
-
var css_248z$
|
|
10274
|
-
styleInject(css_248z$
|
|
10569
|
+
var css_248z$9 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
|
|
10570
|
+
styleInject(css_248z$9);
|
|
10275
10571
|
|
|
10276
10572
|
var Item = antd.Form.Item;
|
|
10277
10573
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
@@ -10523,7 +10819,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10523
10819
|
}
|
|
10524
10820
|
};
|
|
10525
10821
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10526
|
-
className: css_248z$
|
|
10822
|
+
className: css_248z$9.interceptBox
|
|
10527
10823
|
}, /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
10528
10824
|
label: '物流信息',
|
|
10529
10825
|
required: required,
|
|
@@ -11339,8 +11635,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11339
11635
|
})) : null) : null);
|
|
11340
11636
|
};
|
|
11341
11637
|
|
|
11342
|
-
var css_248z$
|
|
11343
|
-
styleInject(css_248z$
|
|
11638
|
+
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";
|
|
11639
|
+
styleInject(css_248z$a);
|
|
11344
11640
|
|
|
11345
11641
|
var ItemList = function ItemList(props) {
|
|
11346
11642
|
var _props$value = props.value,
|
|
@@ -11413,7 +11709,7 @@ var ItemList = function ItemList(props) {
|
|
|
11413
11709
|
}, "\u6682\u4E0D\u652F\u6301\u6DFB\u52A0")) : null);
|
|
11414
11710
|
};
|
|
11415
11711
|
|
|
11416
|
-
var _excluded$
|
|
11712
|
+
var _excluded$d = ["shopId"];
|
|
11417
11713
|
var columns = [{
|
|
11418
11714
|
dataIndex: 'index',
|
|
11419
11715
|
title: 'NO',
|
|
@@ -11638,7 +11934,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11638
11934
|
};
|
|
11639
11935
|
var onFinish = function onFinish(val) {
|
|
11640
11936
|
var shopId = val.shopId,
|
|
11641
|
-
other = _objectWithoutProperties(val, _excluded$
|
|
11937
|
+
other = _objectWithoutProperties(val, _excluded$d);
|
|
11642
11938
|
var value = other;
|
|
11643
11939
|
var newFilterList = [];
|
|
11644
11940
|
var hasValue = Object.values(value).some(function (t) {
|
|
@@ -16129,7 +16425,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
16129
16425
|
}));
|
|
16130
16426
|
};
|
|
16131
16427
|
|
|
16132
|
-
var _excluded$
|
|
16428
|
+
var _excluded$e = ["value", "onChange", "reasonList", "disabled"];
|
|
16133
16429
|
var BsExchange = function BsExchange(props) {
|
|
16134
16430
|
var _value$bsExchangeType4, _value$bsExchangeType5, _value$bsExchangeType6;
|
|
16135
16431
|
var value = props.value,
|
|
@@ -16137,7 +16433,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16137
16433
|
_props$reasonList = props.reasonList,
|
|
16138
16434
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16139
16435
|
disabled = props.disabled,
|
|
16140
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16436
|
+
other = _objectWithoutProperties(props, _excluded$e);
|
|
16141
16437
|
var valueRef = React.useRef({});
|
|
16142
16438
|
React.useEffect(function () {
|
|
16143
16439
|
valueRef.current = value;
|
|
@@ -16364,7 +16660,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16364
16660
|
}))) : null);
|
|
16365
16661
|
};
|
|
16366
16662
|
|
|
16367
|
-
var _excluded$
|
|
16663
|
+
var _excluded$f = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
16368
16664
|
var typeMap = {
|
|
16369
16665
|
BS_REISSUE_GOODS: {
|
|
16370
16666
|
key: 'bsReissueGoods',
|
|
@@ -16389,7 +16685,7 @@ var BsReissue = function BsReissue(props) {
|
|
|
16389
16685
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16390
16686
|
disabled = props.disabled,
|
|
16391
16687
|
type = props.type,
|
|
16392
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16688
|
+
other = _objectWithoutProperties(props, _excluded$f);
|
|
16393
16689
|
var valueRef = React.useRef({});
|
|
16394
16690
|
React.useEffect(function () {
|
|
16395
16691
|
var _typeMap$type;
|
|
@@ -16505,14 +16801,14 @@ var BsReissue = function BsReissue(props) {
|
|
|
16505
16801
|
})));
|
|
16506
16802
|
};
|
|
16507
16803
|
|
|
16508
|
-
var _excluded$
|
|
16804
|
+
var _excluded$g = ["value", "onChange", "reasonList", "disabled"];
|
|
16509
16805
|
var BsReturnGoods = function BsReturnGoods(props) {
|
|
16510
16806
|
var value = props.value,
|
|
16511
16807
|
onChange = props.onChange,
|
|
16512
16808
|
_props$reasonList = props.reasonList,
|
|
16513
16809
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16514
16810
|
disabled = props.disabled,
|
|
16515
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16811
|
+
other = _objectWithoutProperties(props, _excluded$g);
|
|
16516
16812
|
var valueRef = React.useRef({});
|
|
16517
16813
|
React.useEffect(function () {
|
|
16518
16814
|
pubsub__default['default'].subscribe('returnSelectList', function (_, data) {
|
|
@@ -16825,7 +17121,7 @@ var kmUtils = {
|
|
|
16825
17121
|
getOrderListSingleton: getOrderListSingleton
|
|
16826
17122
|
};
|
|
16827
17123
|
|
|
16828
|
-
var _excluded$
|
|
17124
|
+
var _excluded$h = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16829
17125
|
var columnsMap = {
|
|
16830
17126
|
BS_SYSTEM_ORDER: kmkfUtils.BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16831
17127
|
KM_SYSTEM_ORDER: kmkfUtils.KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16844,7 +17140,7 @@ var rowKeyMap = {
|
|
|
16844
17140
|
GY_SYSTEM_ORDER: 'billNo',
|
|
16845
17141
|
JST_SYSTEM_ORDER: 'oId'
|
|
16846
17142
|
};
|
|
16847
|
-
var index$
|
|
17143
|
+
var index$2 = (function (props) {
|
|
16848
17144
|
var value = props.value,
|
|
16849
17145
|
_onChange = props.onChange,
|
|
16850
17146
|
disabled = props.disabled,
|
|
@@ -17099,7 +17395,7 @@ var index$1 = (function (props) {
|
|
|
17099
17395
|
deliveryState = _ref10.deliveryState,
|
|
17100
17396
|
vipCode = _ref10.vipCode,
|
|
17101
17397
|
shopCode = _ref10.shopCode,
|
|
17102
|
-
rest = _objectWithoutProperties(_ref10, _excluded$
|
|
17398
|
+
rest = _objectWithoutProperties(_ref10, _excluded$h);
|
|
17103
17399
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
17104
17400
|
billNo: billNo,
|
|
17105
17401
|
billType: billType,
|
|
@@ -17806,7 +18102,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17806
18102
|
})));
|
|
17807
18103
|
};
|
|
17808
18104
|
|
|
17809
|
-
var _excluded$
|
|
18105
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17810
18106
|
var typeMap$1 = {
|
|
17811
18107
|
WDT_REISSUE_GOODS: {
|
|
17812
18108
|
key: 'wdtReissueGoods',
|
|
@@ -17834,7 +18130,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17834
18130
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17835
18131
|
disabled = props.disabled,
|
|
17836
18132
|
type = props.type,
|
|
17837
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18133
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17838
18134
|
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) {
|
|
17839
18135
|
var _order$srcTid;
|
|
17840
18136
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -18074,7 +18370,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18074
18370
|
})));
|
|
18075
18371
|
};
|
|
18076
18372
|
|
|
18077
|
-
var _excluded$
|
|
18373
|
+
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18078
18374
|
var typeMap$2 = {
|
|
18079
18375
|
JST_REISSUE_GOODS: {
|
|
18080
18376
|
compType: '补发',
|
|
@@ -18122,7 +18418,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18122
18418
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18123
18419
|
disabled = props.disabled,
|
|
18124
18420
|
type = props.type,
|
|
18125
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18421
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
18126
18422
|
var getOrderFlag = React.useRef(false);
|
|
18127
18423
|
var _useState = React.useState(false),
|
|
18128
18424
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18375,8 +18671,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18375
18671
|
})));
|
|
18376
18672
|
};
|
|
18377
18673
|
|
|
18378
|
-
var css_248z$
|
|
18379
|
-
styleInject(css_248z$
|
|
18674
|
+
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";
|
|
18675
|
+
styleInject(css_248z$b);
|
|
18380
18676
|
|
|
18381
18677
|
var TabPane$1 = antd.Tabs.TabPane;
|
|
18382
18678
|
var Option$2 = antd.Select.Option;
|
|
@@ -18849,14 +19145,14 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18849
19145
|
userNick: userNick
|
|
18850
19146
|
}));
|
|
18851
19147
|
};
|
|
18852
|
-
var index$
|
|
19148
|
+
var index$3 = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
18853
19149
|
|
|
18854
|
-
var _excluded$
|
|
19150
|
+
var _excluded$k = ["onChange", "value", "failValue"];
|
|
18855
19151
|
function CommonStatus(props) {
|
|
18856
19152
|
var onChange = props.onChange,
|
|
18857
19153
|
value = props.value,
|
|
18858
19154
|
failValue = props.failValue,
|
|
18859
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19155
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18860
19156
|
var changeHandle = function changeHandle(val) {
|
|
18861
19157
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18862
19158
|
status: val,
|
|
@@ -18993,7 +19289,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18993
19289
|
})) : null) : null);
|
|
18994
19290
|
};
|
|
18995
19291
|
|
|
18996
|
-
var _excluded$
|
|
19292
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18997
19293
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18998
19294
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18999
19295
|
var _props$value = props.value,
|
|
@@ -19003,7 +19299,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
19003
19299
|
failValue = props.failValue,
|
|
19004
19300
|
_props$type = props.type,
|
|
19005
19301
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
19006
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19302
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
19007
19303
|
var _useState = React.useState(0),
|
|
19008
19304
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19009
19305
|
changeIndex = _useState2[0],
|
|
@@ -19069,7 +19365,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
19069
19365
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
19070
19366
|
};
|
|
19071
19367
|
|
|
19072
|
-
var _excluded$
|
|
19368
|
+
var _excluded$m = ["value", "onChange", "disabled", "failValue", "type"];
|
|
19073
19369
|
var MsgStatus = function MsgStatus(props) {
|
|
19074
19370
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
19075
19371
|
var _props$value = props.value,
|
|
@@ -19079,7 +19375,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19079
19375
|
failValue = props.failValue,
|
|
19080
19376
|
_props$type = props.type,
|
|
19081
19377
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
19082
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19378
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
19083
19379
|
var _useState = React.useState(0),
|
|
19084
19380
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19085
19381
|
changeIndex = _useState2[0],
|
|
@@ -19148,7 +19444,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
19148
19444
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
19149
19445
|
};
|
|
19150
19446
|
|
|
19151
|
-
var _excluded$
|
|
19447
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19152
19448
|
var typeMap$3 = {
|
|
19153
19449
|
BS_E3_REISSUE_GOODS: {
|
|
19154
19450
|
key: 'bsE3ReissueGoods',
|
|
@@ -19166,7 +19462,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19166
19462
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19167
19463
|
disabled = props.disabled,
|
|
19168
19464
|
type = props.type,
|
|
19169
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19465
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
19170
19466
|
var getOrderFlag = React.useRef(false);
|
|
19171
19467
|
var valueRef = React.useRef(null);
|
|
19172
19468
|
var _useState = React.useState(false),
|
|
@@ -19384,7 +19680,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19384
19680
|
})));
|
|
19385
19681
|
};
|
|
19386
19682
|
|
|
19387
|
-
var _excluded$
|
|
19683
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19388
19684
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19389
19685
|
var typeMap$4 = {
|
|
19390
19686
|
GY_REISSUE_GOODS: {
|
|
@@ -19413,7 +19709,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19413
19709
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19414
19710
|
disabled = props.disabled,
|
|
19415
19711
|
type = props.type,
|
|
19416
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19712
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19417
19713
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19418
19714
|
// order?.platformCode?.includes(';'),
|
|
19419
19715
|
// );
|
|
@@ -19657,7 +19953,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19657
19953
|
})));
|
|
19658
19954
|
};
|
|
19659
19955
|
|
|
19660
|
-
var _excluded$
|
|
19956
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19661
19957
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19662
19958
|
var typeMap$5 = {
|
|
19663
19959
|
GY_RETURN_GOODS: {
|
|
@@ -19686,7 +19982,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19686
19982
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19687
19983
|
disabled = props.disabled,
|
|
19688
19984
|
type = props.type,
|
|
19689
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19985
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19690
19986
|
var valueRef = React.useRef({});
|
|
19691
19987
|
var getOrderFlag = React.useRef(false);
|
|
19692
19988
|
var _useState = React.useState(false),
|
|
@@ -19967,12 +20263,13 @@ exports.ApaasTextArea = ApaasTextArea;
|
|
|
19967
20263
|
exports.ApaasUpload = ApaasUpload;
|
|
19968
20264
|
exports.ApaasUploadAsync = index;
|
|
19969
20265
|
exports.ApaasUploadFile = ApaasUploadFile;
|
|
20266
|
+
exports.ApaasUploadProAsync = index$1;
|
|
19970
20267
|
exports.BsE3Reissue = bsE3Reissue;
|
|
19971
20268
|
exports.BsExchange = BsExchange;
|
|
19972
20269
|
exports.BsGoods = BsGoods;
|
|
19973
20270
|
exports.BsReissue = BsReissue;
|
|
19974
20271
|
exports.BsReturn = BsReturnGoods;
|
|
19975
|
-
exports.BsSystemOrder = index$
|
|
20272
|
+
exports.BsSystemOrder = index$2;
|
|
19976
20273
|
exports.BuyerNick = BuyerNick;
|
|
19977
20274
|
exports.CalculationInput = CalculationInput;
|
|
19978
20275
|
exports.ChooseBaby = ChooseBaby;
|
|
@@ -19985,7 +20282,7 @@ exports.CommonSystemOrder = CommonSystemOrder;
|
|
|
19985
20282
|
exports.CopyTextIcon = CopyTextIcon;
|
|
19986
20283
|
exports.ExpressLogistics = ExpressLogistics;
|
|
19987
20284
|
exports.Goods = Goods;
|
|
19988
|
-
exports.GoodsTable = index$
|
|
20285
|
+
exports.GoodsTable = index$3;
|
|
19989
20286
|
exports.GyReissue = GyReissue;
|
|
19990
20287
|
exports.GyReturn = GyReturnGoods;
|
|
19991
20288
|
exports.IdentifyAddress = IdentifyAddress;
|