@kmkf-fe-packages/basic-components 2.0.51 → 2.0.53
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 +388 -79
- package/dist/index.js +389 -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,319 @@ 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 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}\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_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_imageProPaste__22O8e {\n display: inline-block;\n margin-right: 8px !important;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e .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}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e .index-module_fakeBox__3EXNG .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_uploadPro__3rAkl .ant-upload {\n height: 105px !important;\n width: 105px !important;\n border: none;\n background-color: #F2F3F5;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_uploadPro__3rAkl .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","actions":"index-module_actions__3Wwry","icon":"index-module_icon__3oJ-1","imageProPaste":"index-module_imageProPaste__22O8e","fakeBox":"index-module_fakeBox__3EXNG","addBtn":"index-module_addBtn__1Dv95","uploadPro":"index-module_uploadPro__3rAkl","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
|
+
style: {
|
|
1389
|
+
padding: '8px',
|
|
1390
|
+
marginBottom: '8px',
|
|
1391
|
+
marginRight: '8px'
|
|
1392
|
+
},
|
|
1393
|
+
key: index
|
|
1394
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1395
|
+
className: styles$2.imageProInfo,
|
|
1396
|
+
style: {
|
|
1397
|
+
marginRight: '8px'
|
|
1398
|
+
}
|
|
1399
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
1400
|
+
src: finalImage,
|
|
1401
|
+
preview: {
|
|
1402
|
+
src: showImage
|
|
1403
|
+
},
|
|
1404
|
+
width: '100%',
|
|
1405
|
+
height: '100%'
|
|
1406
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1407
|
+
className: styles$2.imageProRight
|
|
1408
|
+
}, /*#__PURE__*/React__default['default'].createElement(TextArea, {
|
|
1409
|
+
value: image.name,
|
|
1410
|
+
onChange: function onChange(e) {
|
|
1411
|
+
handleChange(value.map(function (item, i) {
|
|
1412
|
+
if (index === i) {
|
|
1413
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
1414
|
+
name: e.target.value
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
return item;
|
|
1418
|
+
}));
|
|
1419
|
+
},
|
|
1420
|
+
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u540D\u79F0",
|
|
1421
|
+
autoSize: {
|
|
1422
|
+
minRows: 2,
|
|
1423
|
+
maxRows: 2
|
|
1424
|
+
},
|
|
1425
|
+
maxLength: 1000
|
|
1426
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1427
|
+
className: styles$2.imageProOperate
|
|
1428
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.CloseOutlined, {
|
|
1429
|
+
style: {
|
|
1430
|
+
color: '#1890ff'
|
|
1431
|
+
},
|
|
1432
|
+
onClick: handleDelete(index)
|
|
1433
|
+
}))));
|
|
1434
|
+
}));
|
|
1435
|
+
};
|
|
1436
|
+
React.useEffect(function () {
|
|
1437
|
+
var _inputRef$current2;
|
|
1438
|
+
if (!pasteDefaultStates) {
|
|
1439
|
+
var _inputRef$current;
|
|
1440
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
1441
|
+
}
|
|
1442
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.addEventListener('paste', function (e) {
|
|
1443
|
+
return clipboardDataChange(e);
|
|
1444
|
+
});
|
|
1445
|
+
return function () {
|
|
1446
|
+
var _inputRef$current3;
|
|
1447
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.removeEventListener('paste', function (e) {
|
|
1448
|
+
return clipboardDataChange(e);
|
|
1449
|
+
});
|
|
1450
|
+
};
|
|
1451
|
+
}, [pasteDefaultStates]);
|
|
1452
|
+
React.useImperativeHandle(ref, function () {
|
|
1453
|
+
return {
|
|
1454
|
+
taskCompleted: !uploading
|
|
1455
|
+
};
|
|
1456
|
+
}, [uploading]);
|
|
1457
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
1458
|
+
spinning: uploading
|
|
1459
|
+
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
1460
|
+
className: styles$2.tips
|
|
1461
|
+
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u5F20\u56FE\u7247"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1462
|
+
className: styles$2.imageProBox
|
|
1463
|
+
}, !disabled && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1464
|
+
className: styles$2.imageProPaste
|
|
1465
|
+
}, pasteDefaultStates ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1466
|
+
className: styles$2.fakeBox,
|
|
1467
|
+
style: {
|
|
1468
|
+
paddingTop: '16px'
|
|
1469
|
+
},
|
|
1470
|
+
onClick: function onClick() {
|
|
1471
|
+
setPasteDefaultStates(false);
|
|
1472
|
+
}
|
|
1473
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
1474
|
+
className: styles$2.addBtn
|
|
1475
|
+
}, "+"), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
1476
|
+
className: styles$2.text
|
|
1477
|
+
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React__default['default'].createElement("input", {
|
|
1478
|
+
ref: inputRef,
|
|
1479
|
+
className: styles$2.inputImage,
|
|
1480
|
+
type: "text",
|
|
1481
|
+
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
1482
|
+
onBlur: function onBlur() {
|
|
1483
|
+
setPasteDefaultStates(true);
|
|
1484
|
+
},
|
|
1485
|
+
value: ""
|
|
1486
|
+
})), /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({
|
|
1487
|
+
disabled: disabled,
|
|
1488
|
+
accept: accept,
|
|
1489
|
+
name: "file",
|
|
1490
|
+
listType: "picture-card",
|
|
1491
|
+
maxCount: maxCount,
|
|
1492
|
+
className: styles$2.uploadPro,
|
|
1493
|
+
beforeUpload: beforeUpload
|
|
1494
|
+
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
1495
|
+
className: "addBtn"
|
|
1496
|
+
}, "+"), /*#__PURE__*/React__default['default'].createElement("div", null, uploadText))), renderImages(value)));
|
|
1497
|
+
};
|
|
1498
|
+
var index$1 = /*#__PURE__*/React.forwardRef(ApaasUploadProAsync);
|
|
1499
|
+
|
|
1500
|
+
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";
|
|
1501
|
+
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"};
|
|
1502
|
+
styleInject(css_248z$3);
|
|
1503
|
+
|
|
1195
1504
|
//! moment.js
|
|
1196
1505
|
//! version : 2.29.4
|
|
1197
1506
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -6868,9 +7177,9 @@ hooks.HTML5_FMT = {
|
|
|
6868
7177
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6869
7178
|
};
|
|
6870
7179
|
|
|
6871
|
-
var _excluded$
|
|
7180
|
+
var _excluded$8 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "hostUrl", "canDownload", "actionUrl", "platform"];
|
|
6872
7181
|
var Dragger = antd.Upload.Dragger;
|
|
6873
|
-
var fn$
|
|
7182
|
+
var fn$3 = function fn() {
|
|
6874
7183
|
return void 0;
|
|
6875
7184
|
};
|
|
6876
7185
|
var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
@@ -6879,7 +7188,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6879
7188
|
_ref$maxSize = _ref.maxSize,
|
|
6880
7189
|
maxSize = _ref$maxSize === void 0 ? 100 : _ref$maxSize,
|
|
6881
7190
|
_ref$onChange = _ref.onChange,
|
|
6882
|
-
onChange = _ref$onChange === void 0 ? fn$
|
|
7191
|
+
onChange = _ref$onChange === void 0 ? fn$3 : _ref$onChange,
|
|
6883
7192
|
_ref$value = _ref.value,
|
|
6884
7193
|
value = _ref$value === void 0 ? [] : _ref$value,
|
|
6885
7194
|
_ref$accept = _ref.accept,
|
|
@@ -6893,7 +7202,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6893
7202
|
_ref$actionUrl = _ref.actionUrl,
|
|
6894
7203
|
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
6895
7204
|
_ref$platform = _ref.platform,
|
|
6896
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
7205
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
6897
7206
|
var inputRef = React.useRef(null);
|
|
6898
7207
|
var _useState = React.useState(false),
|
|
6899
7208
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7123,23 +7432,23 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7123
7432
|
return /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
7124
7433
|
spinning: uploading
|
|
7125
7434
|
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
7126
|
-
className: styles$
|
|
7435
|
+
className: styles$3.tips
|
|
7127
7436
|
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7128
|
-
className: styles$
|
|
7437
|
+
className: styles$3.imageBox
|
|
7129
7438
|
}, !disabled && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7130
|
-
className: styles$
|
|
7439
|
+
className: styles$3.imagePaste
|
|
7131
7440
|
}, pasteDefaultStates ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7132
|
-
className: styles$
|
|
7441
|
+
className: styles$3.fakeBox,
|
|
7133
7442
|
onClick: function onClick() {
|
|
7134
7443
|
setPasteDefaultStates(false);
|
|
7135
7444
|
}
|
|
7136
7445
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7137
|
-
className: styles$
|
|
7446
|
+
className: styles$3.addBtn
|
|
7138
7447
|
}, "+"), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
7139
|
-
className: styles$
|
|
7448
|
+
className: styles$3.text
|
|
7140
7449
|
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React__default['default'].createElement("input", {
|
|
7141
7450
|
ref: inputRef,
|
|
7142
|
-
className: styles$
|
|
7451
|
+
className: styles$3.inputImage,
|
|
7143
7452
|
type: "text",
|
|
7144
7453
|
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
7145
7454
|
onBlur: function onBlur() {
|
|
@@ -7157,9 +7466,9 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7157
7466
|
fileList: fileList,
|
|
7158
7467
|
onRemove: onRemove
|
|
7159
7468
|
}, resetProps), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7160
|
-
className: styles$
|
|
7469
|
+
className: styles$3.addBtn
|
|
7161
7470
|
}, "+"), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
7162
|
-
className: styles$
|
|
7471
|
+
className: styles$3.addBtn
|
|
7163
7472
|
}, "\u9009\u62E9\u6587\u4EF6")), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7164
7473
|
visible: visible,
|
|
7165
7474
|
title: fileName,
|
|
@@ -7194,7 +7503,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7194
7503
|
}))));
|
|
7195
7504
|
};
|
|
7196
7505
|
|
|
7197
|
-
var _excluded$
|
|
7506
|
+
var _excluded$9 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"];
|
|
7198
7507
|
function ApaasCheckbox(props) {
|
|
7199
7508
|
var showOther = props.showOther,
|
|
7200
7509
|
_props$horizontal = props.horizontal,
|
|
@@ -7205,7 +7514,7 @@ function ApaasCheckbox(props) {
|
|
|
7205
7514
|
value = _props$value === void 0 ? {} : _props$value,
|
|
7206
7515
|
onChange = props.onChange,
|
|
7207
7516
|
disabled = props.disabled,
|
|
7208
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7517
|
+
otherProps = _objectWithoutProperties(props, _excluded$9);
|
|
7209
7518
|
var checkboxValue = value.value,
|
|
7210
7519
|
other = value.other;
|
|
7211
7520
|
var triggerChange = function triggerChange(changedValue) {
|
|
@@ -7291,11 +7600,11 @@ function ApaasSlider(props) {
|
|
|
7291
7600
|
})));
|
|
7292
7601
|
}
|
|
7293
7602
|
|
|
7294
|
-
var css_248z$
|
|
7295
|
-
var styles$
|
|
7296
|
-
styleInject(css_248z$
|
|
7603
|
+
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";
|
|
7604
|
+
var styles$4 = {"rateLabel":"index-module_rateLabel__3k-Xa","rateText":"index-module_rateText__A1GRy"};
|
|
7605
|
+
styleInject(css_248z$4);
|
|
7297
7606
|
|
|
7298
|
-
var _excluded$
|
|
7607
|
+
var _excluded$a = ["value", "onChange", "options", "textStyle"];
|
|
7299
7608
|
//状态文字映射
|
|
7300
7609
|
var RATE_MAP = {
|
|
7301
7610
|
0: '',
|
|
@@ -7317,7 +7626,7 @@ function ApaasRate(props) {
|
|
|
7317
7626
|
_props$options = props.options,
|
|
7318
7627
|
options = _props$options === void 0 ? [] : _props$options,
|
|
7319
7628
|
textStyle = props.textStyle,
|
|
7320
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7629
|
+
other = _objectWithoutProperties(props, _excluded$a);
|
|
7321
7630
|
var rateValues = React.useMemo(function () {
|
|
7322
7631
|
return (value || []).reduce(function (prv, next) {
|
|
7323
7632
|
prv[next.id || ''] = next.value;
|
|
@@ -7353,14 +7662,14 @@ function ApaasRate(props) {
|
|
|
7353
7662
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
7354
7663
|
span: 24
|
|
7355
7664
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7356
|
-
className: styles$
|
|
7665
|
+
className: styles$4.rateLabel
|
|
7357
7666
|
}, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React__default['default'].createElement(antd.Rate, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7358
7667
|
value: rateValues[item.id] || 0,
|
|
7359
7668
|
onChange: function onChange(val) {
|
|
7360
7669
|
return changeHandle(val, item.id);
|
|
7361
7670
|
}
|
|
7362
7671
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7363
|
-
className: styles$
|
|
7672
|
+
className: styles$4.rateText,
|
|
7364
7673
|
style: textStyle
|
|
7365
7674
|
}, RATE_MAP[rateValues[item.id]])));
|
|
7366
7675
|
}));
|
|
@@ -7385,7 +7694,7 @@ var Province = function Province(props) {
|
|
|
7385
7694
|
})));
|
|
7386
7695
|
};
|
|
7387
7696
|
|
|
7388
|
-
var TextArea = antd.Input.TextArea;
|
|
7697
|
+
var TextArea$1 = antd.Input.TextArea;
|
|
7389
7698
|
var ParseLogistics = function ParseLogistics(props) {
|
|
7390
7699
|
var onChange = props.onChange,
|
|
7391
7700
|
_props$selfCalibratio = props.selfCalibration,
|
|
@@ -7434,7 +7743,7 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7434
7743
|
handleIdentify(val);
|
|
7435
7744
|
}
|
|
7436
7745
|
};
|
|
7437
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(TextArea, {
|
|
7746
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(TextArea$1, {
|
|
7438
7747
|
placeholder: "\u590D\u5236\u4FE1\u606F\uFF0C\u70B9\u51FB\u667A\u80FD\u8BC6\u522B",
|
|
7439
7748
|
rows: 3,
|
|
7440
7749
|
value: value,
|
|
@@ -7561,14 +7870,14 @@ function ApaasPosting(props) {
|
|
|
7561
7870
|
});
|
|
7562
7871
|
}
|
|
7563
7872
|
|
|
7564
|
-
var _excluded$
|
|
7873
|
+
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
7565
7874
|
function ApaasLogistics(props) {
|
|
7566
7875
|
var value = props.value,
|
|
7567
7876
|
onChange = props.onChange,
|
|
7568
7877
|
platformType = props.platformType,
|
|
7569
7878
|
_props$type = props.type,
|
|
7570
7879
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
7571
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7880
|
+
other = _objectWithoutProperties(props, _excluded$b);
|
|
7572
7881
|
var _useState = React.useState([]),
|
|
7573
7882
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7574
7883
|
option = _useState2[0],
|
|
@@ -7613,7 +7922,7 @@ function ApaasLogistics(props) {
|
|
|
7613
7922
|
}));
|
|
7614
7923
|
}
|
|
7615
7924
|
|
|
7616
|
-
var _excluded$
|
|
7925
|
+
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
7617
7926
|
function withFormItem(WrappedComponent) {
|
|
7618
7927
|
return function (props) {
|
|
7619
7928
|
var label = props.label,
|
|
@@ -7622,7 +7931,7 @@ function withFormItem(WrappedComponent) {
|
|
|
7622
7931
|
required = props.required,
|
|
7623
7932
|
rules = props.rules,
|
|
7624
7933
|
initialValue = props.initialValue,
|
|
7625
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7934
|
+
otherProps = _objectWithoutProperties(props, _excluded$c);
|
|
7626
7935
|
return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({}, {
|
|
7627
7936
|
label: label,
|
|
7628
7937
|
name: name,
|
|
@@ -8200,7 +8509,7 @@ var trade4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVzn
|
|
|
8200
8509
|
|
|
8201
8510
|
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
8511
|
|
|
8203
|
-
var TextArea$
|
|
8512
|
+
var TextArea$2 = antd.Input.TextArea;
|
|
8204
8513
|
var imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
|
|
8205
8514
|
var RemarkInput = function RemarkInput(props) {
|
|
8206
8515
|
var isShowFlag = props.isShowFlag,
|
|
@@ -8219,7 +8528,7 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8219
8528
|
});
|
|
8220
8529
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
8221
8530
|
};
|
|
8222
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(TextArea$
|
|
8531
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(TextArea$2, {
|
|
8223
8532
|
disabled: disabled,
|
|
8224
8533
|
rows: 4,
|
|
8225
8534
|
value: value === null || value === void 0 ? void 0 : value.remark,
|
|
@@ -8243,8 +8552,8 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8243
8552
|
})));
|
|
8244
8553
|
};
|
|
8245
8554
|
|
|
8246
|
-
var css_248z$
|
|
8247
|
-
styleInject(css_248z$
|
|
8555
|
+
var css_248z$5 = ".mb8 {\n margin-bottom: 8px;\n}\n";
|
|
8556
|
+
styleInject(css_248z$5);
|
|
8248
8557
|
|
|
8249
8558
|
var Logistics = function Logistics(props) {
|
|
8250
8559
|
var options = props.options,
|
|
@@ -8298,7 +8607,7 @@ var Logistics = function Logistics(props) {
|
|
|
8298
8607
|
return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
8299
8608
|
disabled: disabled,
|
|
8300
8609
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
8301
|
-
className: css_248z$
|
|
8610
|
+
className: css_248z$5.logisticsInput,
|
|
8302
8611
|
onChange: handleInputChange,
|
|
8303
8612
|
value: value === null || value === void 0 ? void 0 : value.order,
|
|
8304
8613
|
onBlur: function onBlur(e) {
|
|
@@ -8307,7 +8616,7 @@ var Logistics = function Logistics(props) {
|
|
|
8307
8616
|
});
|
|
8308
8617
|
};
|
|
8309
8618
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
8310
|
-
className: css_248z$
|
|
8619
|
+
className: css_248z$5.logistics
|
|
8311
8620
|
}, isSingle ? showField === 'EXPRESS_COMPANY' ? LogisticsCompany() : null : LogisticsCompany(), isSingle ? showField === 'EXPRESS_WAYBILL_CODE' ? LogisticsCode() : null : LogisticsCode());
|
|
8312
8621
|
};
|
|
8313
8622
|
|
|
@@ -8344,8 +8653,8 @@ var AliPay = function AliPay(props) {
|
|
|
8344
8653
|
})));
|
|
8345
8654
|
};
|
|
8346
8655
|
|
|
8347
|
-
var css_248z$
|
|
8348
|
-
styleInject(css_248z$
|
|
8656
|
+
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";
|
|
8657
|
+
styleInject(css_248z$6);
|
|
8349
8658
|
|
|
8350
8659
|
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
8660
|
|
|
@@ -9399,8 +9708,8 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
9399
9708
|
}));
|
|
9400
9709
|
};
|
|
9401
9710
|
|
|
9402
|
-
var css_248z$
|
|
9403
|
-
styleInject(css_248z$
|
|
9711
|
+
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";
|
|
9712
|
+
styleInject(css_248z$7);
|
|
9404
9713
|
|
|
9405
9714
|
var GoodItem = function GoodItem(props) {
|
|
9406
9715
|
var _props$isSingleRow = props.isSingleRow,
|
|
@@ -9838,8 +10147,8 @@ var Supplier = function Supplier(props) {
|
|
|
9838
10147
|
}));
|
|
9839
10148
|
};
|
|
9840
10149
|
|
|
9841
|
-
var css_248z$
|
|
9842
|
-
styleInject(css_248z$
|
|
10150
|
+
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";
|
|
10151
|
+
styleInject(css_248z$8);
|
|
9843
10152
|
|
|
9844
10153
|
var Invoice = function Invoice(props) {
|
|
9845
10154
|
var _props$value = props.value,
|
|
@@ -10270,8 +10579,8 @@ var Payment = function Payment(props) {
|
|
|
10270
10579
|
}));
|
|
10271
10580
|
};
|
|
10272
10581
|
|
|
10273
|
-
var css_248z$
|
|
10274
|
-
styleInject(css_248z$
|
|
10582
|
+
var css_248z$9 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
|
|
10583
|
+
styleInject(css_248z$9);
|
|
10275
10584
|
|
|
10276
10585
|
var Item = antd.Form.Item;
|
|
10277
10586
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
@@ -10523,7 +10832,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10523
10832
|
}
|
|
10524
10833
|
};
|
|
10525
10834
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10526
|
-
className: css_248z$
|
|
10835
|
+
className: css_248z$9.interceptBox
|
|
10527
10836
|
}, /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
10528
10837
|
label: '物流信息',
|
|
10529
10838
|
required: required,
|
|
@@ -11339,8 +11648,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11339
11648
|
})) : null) : null);
|
|
11340
11649
|
};
|
|
11341
11650
|
|
|
11342
|
-
var css_248z$
|
|
11343
|
-
styleInject(css_248z$
|
|
11651
|
+
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";
|
|
11652
|
+
styleInject(css_248z$a);
|
|
11344
11653
|
|
|
11345
11654
|
var ItemList = function ItemList(props) {
|
|
11346
11655
|
var _props$value = props.value,
|
|
@@ -11413,7 +11722,7 @@ var ItemList = function ItemList(props) {
|
|
|
11413
11722
|
}, "\u6682\u4E0D\u652F\u6301\u6DFB\u52A0")) : null);
|
|
11414
11723
|
};
|
|
11415
11724
|
|
|
11416
|
-
var _excluded$
|
|
11725
|
+
var _excluded$d = ["shopId"];
|
|
11417
11726
|
var columns = [{
|
|
11418
11727
|
dataIndex: 'index',
|
|
11419
11728
|
title: 'NO',
|
|
@@ -11638,7 +11947,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11638
11947
|
};
|
|
11639
11948
|
var onFinish = function onFinish(val) {
|
|
11640
11949
|
var shopId = val.shopId,
|
|
11641
|
-
other = _objectWithoutProperties(val, _excluded$
|
|
11950
|
+
other = _objectWithoutProperties(val, _excluded$d);
|
|
11642
11951
|
var value = other;
|
|
11643
11952
|
var newFilterList = [];
|
|
11644
11953
|
var hasValue = Object.values(value).some(function (t) {
|
|
@@ -16129,7 +16438,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
16129
16438
|
}));
|
|
16130
16439
|
};
|
|
16131
16440
|
|
|
16132
|
-
var _excluded$
|
|
16441
|
+
var _excluded$e = ["value", "onChange", "reasonList", "disabled"];
|
|
16133
16442
|
var BsExchange = function BsExchange(props) {
|
|
16134
16443
|
var _value$bsExchangeType4, _value$bsExchangeType5, _value$bsExchangeType6;
|
|
16135
16444
|
var value = props.value,
|
|
@@ -16137,7 +16446,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16137
16446
|
_props$reasonList = props.reasonList,
|
|
16138
16447
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16139
16448
|
disabled = props.disabled,
|
|
16140
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16449
|
+
other = _objectWithoutProperties(props, _excluded$e);
|
|
16141
16450
|
var valueRef = React.useRef({});
|
|
16142
16451
|
React.useEffect(function () {
|
|
16143
16452
|
valueRef.current = value;
|
|
@@ -16364,7 +16673,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16364
16673
|
}))) : null);
|
|
16365
16674
|
};
|
|
16366
16675
|
|
|
16367
|
-
var _excluded$
|
|
16676
|
+
var _excluded$f = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
16368
16677
|
var typeMap = {
|
|
16369
16678
|
BS_REISSUE_GOODS: {
|
|
16370
16679
|
key: 'bsReissueGoods',
|
|
@@ -16389,7 +16698,7 @@ var BsReissue = function BsReissue(props) {
|
|
|
16389
16698
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16390
16699
|
disabled = props.disabled,
|
|
16391
16700
|
type = props.type,
|
|
16392
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16701
|
+
other = _objectWithoutProperties(props, _excluded$f);
|
|
16393
16702
|
var valueRef = React.useRef({});
|
|
16394
16703
|
React.useEffect(function () {
|
|
16395
16704
|
var _typeMap$type;
|
|
@@ -16505,14 +16814,14 @@ var BsReissue = function BsReissue(props) {
|
|
|
16505
16814
|
})));
|
|
16506
16815
|
};
|
|
16507
16816
|
|
|
16508
|
-
var _excluded$
|
|
16817
|
+
var _excluded$g = ["value", "onChange", "reasonList", "disabled"];
|
|
16509
16818
|
var BsReturnGoods = function BsReturnGoods(props) {
|
|
16510
16819
|
var value = props.value,
|
|
16511
16820
|
onChange = props.onChange,
|
|
16512
16821
|
_props$reasonList = props.reasonList,
|
|
16513
16822
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16514
16823
|
disabled = props.disabled,
|
|
16515
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16824
|
+
other = _objectWithoutProperties(props, _excluded$g);
|
|
16516
16825
|
var valueRef = React.useRef({});
|
|
16517
16826
|
React.useEffect(function () {
|
|
16518
16827
|
pubsub__default['default'].subscribe('returnSelectList', function (_, data) {
|
|
@@ -16825,7 +17134,7 @@ var kmUtils = {
|
|
|
16825
17134
|
getOrderListSingleton: getOrderListSingleton
|
|
16826
17135
|
};
|
|
16827
17136
|
|
|
16828
|
-
var _excluded$
|
|
17137
|
+
var _excluded$h = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16829
17138
|
var columnsMap = {
|
|
16830
17139
|
BS_SYSTEM_ORDER: kmkfUtils.BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16831
17140
|
KM_SYSTEM_ORDER: kmkfUtils.KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16844,7 +17153,7 @@ var rowKeyMap = {
|
|
|
16844
17153
|
GY_SYSTEM_ORDER: 'billNo',
|
|
16845
17154
|
JST_SYSTEM_ORDER: 'oId'
|
|
16846
17155
|
};
|
|
16847
|
-
var index$
|
|
17156
|
+
var index$2 = (function (props) {
|
|
16848
17157
|
var value = props.value,
|
|
16849
17158
|
_onChange = props.onChange,
|
|
16850
17159
|
disabled = props.disabled,
|
|
@@ -17099,7 +17408,7 @@ var index$1 = (function (props) {
|
|
|
17099
17408
|
deliveryState = _ref10.deliveryState,
|
|
17100
17409
|
vipCode = _ref10.vipCode,
|
|
17101
17410
|
shopCode = _ref10.shopCode,
|
|
17102
|
-
rest = _objectWithoutProperties(_ref10, _excluded$
|
|
17411
|
+
rest = _objectWithoutProperties(_ref10, _excluded$h);
|
|
17103
17412
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
17104
17413
|
billNo: billNo,
|
|
17105
17414
|
billType: billType,
|
|
@@ -17806,7 +18115,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17806
18115
|
})));
|
|
17807
18116
|
};
|
|
17808
18117
|
|
|
17809
|
-
var _excluded$
|
|
18118
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17810
18119
|
var typeMap$1 = {
|
|
17811
18120
|
WDT_REISSUE_GOODS: {
|
|
17812
18121
|
key: 'wdtReissueGoods',
|
|
@@ -17834,7 +18143,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17834
18143
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17835
18144
|
disabled = props.disabled,
|
|
17836
18145
|
type = props.type,
|
|
17837
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18146
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17838
18147
|
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
|
|
17839
18148
|
var _order$srcTid;
|
|
17840
18149
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -18074,7 +18383,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18074
18383
|
})));
|
|
18075
18384
|
};
|
|
18076
18385
|
|
|
18077
|
-
var _excluded$
|
|
18386
|
+
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18078
18387
|
var typeMap$2 = {
|
|
18079
18388
|
JST_REISSUE_GOODS: {
|
|
18080
18389
|
compType: '补发',
|
|
@@ -18122,7 +18431,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18122
18431
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18123
18432
|
disabled = props.disabled,
|
|
18124
18433
|
type = props.type,
|
|
18125
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18434
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
18126
18435
|
var getOrderFlag = React.useRef(false);
|
|
18127
18436
|
var _useState = React.useState(false),
|
|
18128
18437
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18375,8 +18684,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18375
18684
|
})));
|
|
18376
18685
|
};
|
|
18377
18686
|
|
|
18378
|
-
var css_248z$
|
|
18379
|
-
styleInject(css_248z$
|
|
18687
|
+
var css_248z$b = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
18688
|
+
styleInject(css_248z$b);
|
|
18380
18689
|
|
|
18381
18690
|
var TabPane$1 = antd.Tabs.TabPane;
|
|
18382
18691
|
var Option$2 = antd.Select.Option;
|
|
@@ -18849,14 +19158,14 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18849
19158
|
userNick: userNick
|
|
18850
19159
|
}));
|
|
18851
19160
|
};
|
|
18852
|
-
var index$
|
|
19161
|
+
var index$3 = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
18853
19162
|
|
|
18854
|
-
var _excluded$
|
|
19163
|
+
var _excluded$k = ["onChange", "value", "failValue"];
|
|
18855
19164
|
function CommonStatus(props) {
|
|
18856
19165
|
var onChange = props.onChange,
|
|
18857
19166
|
value = props.value,
|
|
18858
19167
|
failValue = props.failValue,
|
|
18859
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19168
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18860
19169
|
var changeHandle = function changeHandle(val) {
|
|
18861
19170
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18862
19171
|
status: val,
|
|
@@ -18993,7 +19302,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18993
19302
|
})) : null) : null);
|
|
18994
19303
|
};
|
|
18995
19304
|
|
|
18996
|
-
var _excluded$
|
|
19305
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18997
19306
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18998
19307
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18999
19308
|
var _props$value = props.value,
|
|
@@ -19003,7 +19312,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
19003
19312
|
failValue = props.failValue,
|
|
19004
19313
|
_props$type = props.type,
|
|
19005
19314
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
19006
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19315
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
19007
19316
|
var _useState = React.useState(0),
|
|
19008
19317
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19009
19318
|
changeIndex = _useState2[0],
|
|
@@ -19069,7 +19378,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
19069
19378
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
19070
19379
|
};
|
|
19071
19380
|
|
|
19072
|
-
var _excluded$
|
|
19381
|
+
var _excluded$m = ["value", "onChange", "disabled", "failValue", "type"];
|
|
19073
19382
|
var MsgStatus = function MsgStatus(props) {
|
|
19074
19383
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
19075
19384
|
var _props$value = props.value,
|
|
@@ -19079,7 +19388,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19079
19388
|
failValue = props.failValue,
|
|
19080
19389
|
_props$type = props.type,
|
|
19081
19390
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
19082
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19391
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
19083
19392
|
var _useState = React.useState(0),
|
|
19084
19393
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19085
19394
|
changeIndex = _useState2[0],
|
|
@@ -19148,7 +19457,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
19148
19457
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
19149
19458
|
};
|
|
19150
19459
|
|
|
19151
|
-
var _excluded$
|
|
19460
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19152
19461
|
var typeMap$3 = {
|
|
19153
19462
|
BS_E3_REISSUE_GOODS: {
|
|
19154
19463
|
key: 'bsE3ReissueGoods',
|
|
@@ -19166,7 +19475,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19166
19475
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19167
19476
|
disabled = props.disabled,
|
|
19168
19477
|
type = props.type,
|
|
19169
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19478
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
19170
19479
|
var getOrderFlag = React.useRef(false);
|
|
19171
19480
|
var valueRef = React.useRef(null);
|
|
19172
19481
|
var _useState = React.useState(false),
|
|
@@ -19384,7 +19693,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19384
19693
|
})));
|
|
19385
19694
|
};
|
|
19386
19695
|
|
|
19387
|
-
var _excluded$
|
|
19696
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19388
19697
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19389
19698
|
var typeMap$4 = {
|
|
19390
19699
|
GY_REISSUE_GOODS: {
|
|
@@ -19413,7 +19722,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19413
19722
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19414
19723
|
disabled = props.disabled,
|
|
19415
19724
|
type = props.type,
|
|
19416
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19725
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19417
19726
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19418
19727
|
// order?.platformCode?.includes(';'),
|
|
19419
19728
|
// );
|
|
@@ -19657,7 +19966,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19657
19966
|
})));
|
|
19658
19967
|
};
|
|
19659
19968
|
|
|
19660
|
-
var _excluded$
|
|
19969
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19661
19970
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19662
19971
|
var typeMap$5 = {
|
|
19663
19972
|
GY_RETURN_GOODS: {
|
|
@@ -19686,7 +19995,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19686
19995
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19687
19996
|
disabled = props.disabled,
|
|
19688
19997
|
type = props.type,
|
|
19689
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19998
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19690
19999
|
var valueRef = React.useRef({});
|
|
19691
20000
|
var getOrderFlag = React.useRef(false);
|
|
19692
20001
|
var _useState = React.useState(false),
|
|
@@ -19967,12 +20276,13 @@ exports.ApaasTextArea = ApaasTextArea;
|
|
|
19967
20276
|
exports.ApaasUpload = ApaasUpload;
|
|
19968
20277
|
exports.ApaasUploadAsync = index;
|
|
19969
20278
|
exports.ApaasUploadFile = ApaasUploadFile;
|
|
20279
|
+
exports.ApaasUploadProAsync = index$1;
|
|
19970
20280
|
exports.BsE3Reissue = bsE3Reissue;
|
|
19971
20281
|
exports.BsExchange = BsExchange;
|
|
19972
20282
|
exports.BsGoods = BsGoods;
|
|
19973
20283
|
exports.BsReissue = BsReissue;
|
|
19974
20284
|
exports.BsReturn = BsReturnGoods;
|
|
19975
|
-
exports.BsSystemOrder = index$
|
|
20285
|
+
exports.BsSystemOrder = index$2;
|
|
19976
20286
|
exports.BuyerNick = BuyerNick;
|
|
19977
20287
|
exports.CalculationInput = CalculationInput;
|
|
19978
20288
|
exports.ChooseBaby = ChooseBaby;
|
|
@@ -19985,7 +20295,7 @@ exports.CommonSystemOrder = CommonSystemOrder;
|
|
|
19985
20295
|
exports.CopyTextIcon = CopyTextIcon;
|
|
19986
20296
|
exports.ExpressLogistics = ExpressLogistics;
|
|
19987
20297
|
exports.Goods = Goods;
|
|
19988
|
-
exports.GoodsTable = index$
|
|
20298
|
+
exports.GoodsTable = index$3;
|
|
19989
20299
|
exports.GyReissue = GyReissue;
|
|
19990
20300
|
exports.GyReturn = GyReturnGoods;
|
|
19991
20301
|
exports.IdentifyAddress = IdentifyAddress;
|