@kmkf-fe-packages/basic-components 2.0.19-beta.59 → 2.0.19-beta.60
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 +365 -79
- package/dist/index.js +366 -79
- package/dist/src/apaas/ApaasUploadProAsync/index.d.ts +21 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
|
|
2
2
|
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography } from 'antd';
|
|
3
|
-
import { EyeOutlined, DeleteOutlined, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, MinusCircleFilled } from '@ant-design/icons';
|
|
3
|
+
import { EyeOutlined, DeleteOutlined, CloseOutlined, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, MinusCircleFilled } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
6
|
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, servers, filterJstOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
|
|
@@ -1176,10 +1176,296 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1176
1176
|
};
|
|
1177
1177
|
var index = /*#__PURE__*/forwardRef(ApaasUploadAsync);
|
|
1178
1178
|
|
|
1179
|
-
var css_248z$2 = ".index-
|
|
1180
|
-
var styles$2 = {"
|
|
1179
|
+
var css_248z$2 = ".index-module_imageProBox__1u84Y {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageProBox__1u84Y .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageProBox__1u84Y .index-module_inputImage__nm5jb {\n width: 105px;\n height: 105px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageShow__1cG2j {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo {\n display: flex;\n width: 280px;\n height: 105px;\n padding: 8px;\n margin-bottom: 8px;\n margin-right: 8px;\n border-radius: 5px;\n background-color: rgba(240, 241, 242, 0.72);\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo:hover {\n background: transparent;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo:hover .index-module_mask__L3q8p:before {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProInfo__iHM0C {\n width: 80px;\n height: 80px;\n border-radius: 5px;\n margin-right: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProOperate__1hFcg {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_deleteIcon__2LWG9 {\n color: #1890ff;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p:hover .index-module_actions__3Wwry {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry .index-module_icon__3oJ-1 {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 {\n display: inline-block;\n margin-right: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 .index-module_fakeBox__3EXNG {\n width: 105px;\n height: 105px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n padding-top: 16px;\n}\n.index-module_imageProBox__1u84Y .index-module_imagePaste__1A8C5 .index-module_fakeBox__3EXNG .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_upload__2nwd8 .ant-upload {\n height: 105px;\n width: 105px;\n border: none;\n background-color: #F2F3F5;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_upload__2nwd8 .ant-upload .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_tips__z9Yjd {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
1180
|
+
var styles$2 = {"imageProBox":"index-module_imageProBox__1u84Y","inputImage":"index-module_inputImage__nm5jb","imageShow":"index-module_imageShow__1cG2j","imageProWrap":"index-module_imageProWrap__sx8lo","-webkit-mask":"index-module_mask__L3q8p","mask":"index-module_mask__L3q8p","imageProInfo":"index-module_imageProInfo__iHM0C","imageProOperate":"index-module_imageProOperate__1hFcg","deleteIcon":"index-module_deleteIcon__2LWG9","actions":"index-module_actions__3Wwry","icon":"index-module_icon__3oJ-1","imagePaste":"index-module_imagePaste__1A8C5","fakeBox":"index-module_fakeBox__3EXNG","addBtn":"index-module_addBtn__1Dv95","upload":"index-module_upload__2nwd8","tips":"index-module_tips__z9Yjd"};
|
|
1181
1181
|
styleInject(css_248z$2);
|
|
1182
1182
|
|
|
1183
|
+
var _excluded$7 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "canPreview", "disabled", "uniqueKey", "hostUrl", "actionUrl", "platform"];
|
|
1184
|
+
var TextArea = Input.TextArea;
|
|
1185
|
+
var fn$2 = function fn() {
|
|
1186
|
+
return void 0;
|
|
1187
|
+
};
|
|
1188
|
+
var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
1189
|
+
var _document;
|
|
1190
|
+
var _ref$maxCount = _ref.maxCount,
|
|
1191
|
+
maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
|
|
1192
|
+
_ref$maxSize = _ref.maxSize,
|
|
1193
|
+
maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
|
|
1194
|
+
_ref$uploadText = _ref.uploadText,
|
|
1195
|
+
uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
|
|
1196
|
+
_ref$onChange = _ref.onChange,
|
|
1197
|
+
onChange = _ref$onChange === void 0 ? fn$2 : _ref$onChange,
|
|
1198
|
+
_ref$value = _ref.value,
|
|
1199
|
+
value = _ref$value === void 0 ? [] : _ref$value,
|
|
1200
|
+
_ref$accept = _ref.accept,
|
|
1201
|
+
accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
|
|
1202
|
+
_ref$canPreview = _ref.canPreview,
|
|
1203
|
+
_ref$disabled = _ref.disabled,
|
|
1204
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1205
|
+
uniqueKey = _ref.uniqueKey,
|
|
1206
|
+
_ref$hostUrl = _ref.hostUrl,
|
|
1207
|
+
hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
|
|
1208
|
+
_ref$actionUrl = _ref.actionUrl,
|
|
1209
|
+
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
1210
|
+
_ref$platform = _ref.platform,
|
|
1211
|
+
platform = _ref$platform === void 0 ? '' : _ref$platform,
|
|
1212
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
1213
|
+
var inputRef = useRef(null);
|
|
1214
|
+
var valueRef = useRef(value);
|
|
1215
|
+
var _useState = useState(false),
|
|
1216
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1217
|
+
uploading = _useState2[0],
|
|
1218
|
+
setUploading = _useState2[1];
|
|
1219
|
+
var _useState3 = useState(true),
|
|
1220
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1221
|
+
pasteDefaultStates = _useState4[0],
|
|
1222
|
+
setPasteDefaultStates = _useState4[1];
|
|
1223
|
+
var preview = platform === 'ks' ? {
|
|
1224
|
+
getContainer: (_document = document) === null || _document === void 0 ? void 0 : _document.getElementById('root')
|
|
1225
|
+
} : true;
|
|
1226
|
+
useEffect(function () {
|
|
1227
|
+
valueRef.current = value;
|
|
1228
|
+
}, [value]);
|
|
1229
|
+
var asyncUpload = /*#__PURE__*/function () {
|
|
1230
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1231
|
+
var _valueRef$current;
|
|
1232
|
+
var formData, fileName, showName, _yield$request, success, data;
|
|
1233
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1234
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1235
|
+
case 0:
|
|
1236
|
+
setUploading(true);
|
|
1237
|
+
formData = new FormData();
|
|
1238
|
+
formData.append('file', file);
|
|
1239
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1240
|
+
formData.append('fileName', fileName);
|
|
1241
|
+
showName = file.name.substring(0, file.name.lastIndexOf('.'));
|
|
1242
|
+
_context.prev = 6;
|
|
1243
|
+
_context.next = 9;
|
|
1244
|
+
return request(actionUrl, {
|
|
1245
|
+
method: 'post',
|
|
1246
|
+
body: formData
|
|
1247
|
+
});
|
|
1248
|
+
case 9:
|
|
1249
|
+
_yield$request = _context.sent;
|
|
1250
|
+
success = _yield$request.success;
|
|
1251
|
+
data = _yield$request.data;
|
|
1252
|
+
if (success) {
|
|
1253
|
+
handleChange([].concat(_toConsumableArray(valueRef.current), [{
|
|
1254
|
+
url: data,
|
|
1255
|
+
name: showName
|
|
1256
|
+
}]));
|
|
1257
|
+
}
|
|
1258
|
+
_context.next = 18;
|
|
1259
|
+
break;
|
|
1260
|
+
case 15:
|
|
1261
|
+
_context.prev = 15;
|
|
1262
|
+
_context.t0 = _context["catch"](6);
|
|
1263
|
+
message.error('图片上传失败');
|
|
1264
|
+
case 18:
|
|
1265
|
+
_context.prev = 18;
|
|
1266
|
+
setUploading(false);
|
|
1267
|
+
return _context.finish(18);
|
|
1268
|
+
case 21:
|
|
1269
|
+
case "end":
|
|
1270
|
+
return _context.stop();
|
|
1271
|
+
}
|
|
1272
|
+
}, _callee, null, [[6, 15, 18, 21]]);
|
|
1273
|
+
}));
|
|
1274
|
+
return function asyncUpload(_x) {
|
|
1275
|
+
return _ref2.apply(this, arguments);
|
|
1276
|
+
};
|
|
1277
|
+
}();
|
|
1278
|
+
var imgReader = function imgReader(item) {
|
|
1279
|
+
var blob = item.getAsFile(),
|
|
1280
|
+
reader = new FileReader();
|
|
1281
|
+
if (blob.size > maxSize * 1024 * 1024) {
|
|
1282
|
+
message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
if (valueRef.current.length >= maxCount) {
|
|
1286
|
+
message.error("\u53EA\u80FD\u4E0A\u4F20".concat(maxCount, "\u5F20\u56FE\u7247"));
|
|
1287
|
+
return;
|
|
1288
|
+
}
|
|
1289
|
+
reader.onload = /*#__PURE__*/function () {
|
|
1290
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
1291
|
+
var _e$target, _valueRef$current2;
|
|
1292
|
+
var result, fileName, file;
|
|
1293
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1294
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1295
|
+
case 0:
|
|
1296
|
+
result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
|
|
1297
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1298
|
+
file = dataURLtoFile(result, fileName);
|
|
1299
|
+
asyncUpload(file);
|
|
1300
|
+
case 4:
|
|
1301
|
+
case "end":
|
|
1302
|
+
return _context2.stop();
|
|
1303
|
+
}
|
|
1304
|
+
}, _callee2);
|
|
1305
|
+
}));
|
|
1306
|
+
return function (_x2) {
|
|
1307
|
+
return _ref3.apply(this, arguments);
|
|
1308
|
+
};
|
|
1309
|
+
}();
|
|
1310
|
+
reader.readAsDataURL(blob);
|
|
1311
|
+
};
|
|
1312
|
+
var handleChange = function handleChange(list) {
|
|
1313
|
+
valueRef.current = list;
|
|
1314
|
+
onChange(list);
|
|
1315
|
+
};
|
|
1316
|
+
var clipboardDataChange = function clipboardDataChange(e) {
|
|
1317
|
+
var clipboardData = e.clipboardData || window.clipboardData;
|
|
1318
|
+
var i = 0,
|
|
1319
|
+
items,
|
|
1320
|
+
item,
|
|
1321
|
+
types;
|
|
1322
|
+
if (clipboardData) {
|
|
1323
|
+
items = clipboardData.items;
|
|
1324
|
+
if (!items) return;
|
|
1325
|
+
item = items[0];
|
|
1326
|
+
types = clipboardData.types || [];
|
|
1327
|
+
for (; i < types.length; i++) {
|
|
1328
|
+
if (types[i] === 'Files') {
|
|
1329
|
+
item = items[i];
|
|
1330
|
+
break;
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
if (item && item.kind === 'file' && item.type.match(/^image\//i)) {
|
|
1334
|
+
imgReader(item);
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
// 手动上传模式, 一直返回false
|
|
1339
|
+
var beforeUpload = function beforeUpload(file) {
|
|
1340
|
+
var size = file.size / 1024 / 1024 < maxSize;
|
|
1341
|
+
if (value.length > maxCount) {
|
|
1342
|
+
message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u5F20\u56FE\u7247\uFF01"));
|
|
1343
|
+
return Upload.LIST_IGNORE;
|
|
1344
|
+
}
|
|
1345
|
+
if (!size) {
|
|
1346
|
+
message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1347
|
+
return Upload.LIST_IGNORE;
|
|
1348
|
+
}
|
|
1349
|
+
asyncUpload(file);
|
|
1350
|
+
return Upload.LIST_IGNORE;
|
|
1351
|
+
};
|
|
1352
|
+
var handleDelete = function handleDelete(key) {
|
|
1353
|
+
return function () {
|
|
1354
|
+
if (disabled) return;
|
|
1355
|
+
handleChange(value.filter(function (_, index) {
|
|
1356
|
+
return key !== index;
|
|
1357
|
+
}));
|
|
1358
|
+
};
|
|
1359
|
+
};
|
|
1360
|
+
var renderImages = function renderImages(images) {
|
|
1361
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, {
|
|
1362
|
+
preview: preview
|
|
1363
|
+
}, images.map(function (image, index) {
|
|
1364
|
+
var finalImage = "".concat(/^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url, "?x-oss-process=image/resize,h_60,w_60");
|
|
1365
|
+
var showImage = /^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url;
|
|
1366
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1367
|
+
className: styles$2.imageProWrap,
|
|
1368
|
+
key: index
|
|
1369
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1370
|
+
className: styles$2.imageProInfo
|
|
1371
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
1372
|
+
src: finalImage,
|
|
1373
|
+
preview: {
|
|
1374
|
+
src: showImage
|
|
1375
|
+
},
|
|
1376
|
+
width: '100%',
|
|
1377
|
+
height: '100%'
|
|
1378
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea, {
|
|
1379
|
+
value: image.name,
|
|
1380
|
+
onChange: function onChange(e) {
|
|
1381
|
+
handleChange(value.map(function (item, i) {
|
|
1382
|
+
if (index === i) {
|
|
1383
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
1384
|
+
name: e.target.value
|
|
1385
|
+
});
|
|
1386
|
+
}
|
|
1387
|
+
return item;
|
|
1388
|
+
}));
|
|
1389
|
+
},
|
|
1390
|
+
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0",
|
|
1391
|
+
autoSize: {
|
|
1392
|
+
minRows: 2,
|
|
1393
|
+
maxRows: 2
|
|
1394
|
+
},
|
|
1395
|
+
maxLength: 1000
|
|
1396
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
1397
|
+
className: styles$2.imageProOperate
|
|
1398
|
+
}, /*#__PURE__*/React.createElement(CloseOutlined, {
|
|
1399
|
+
className: styles$2.deleteIcon,
|
|
1400
|
+
onClick: handleDelete(index)
|
|
1401
|
+
}))));
|
|
1402
|
+
}));
|
|
1403
|
+
};
|
|
1404
|
+
useEffect(function () {
|
|
1405
|
+
var _inputRef$current2;
|
|
1406
|
+
if (!pasteDefaultStates) {
|
|
1407
|
+
var _inputRef$current;
|
|
1408
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
1409
|
+
}
|
|
1410
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.addEventListener('paste', function (e) {
|
|
1411
|
+
return clipboardDataChange(e);
|
|
1412
|
+
});
|
|
1413
|
+
return function () {
|
|
1414
|
+
var _inputRef$current3;
|
|
1415
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.removeEventListener('paste', function (e) {
|
|
1416
|
+
return clipboardDataChange(e);
|
|
1417
|
+
});
|
|
1418
|
+
};
|
|
1419
|
+
}, [pasteDefaultStates]);
|
|
1420
|
+
useImperativeHandle(ref, function () {
|
|
1421
|
+
return {
|
|
1422
|
+
taskCompleted: !uploading
|
|
1423
|
+
};
|
|
1424
|
+
}, [uploading]);
|
|
1425
|
+
return /*#__PURE__*/React.createElement(Spin, {
|
|
1426
|
+
spinning: uploading
|
|
1427
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
1428
|
+
className: styles$2.tips
|
|
1429
|
+
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u5F20\u56FE\u7247"), /*#__PURE__*/React.createElement("div", {
|
|
1430
|
+
className: styles$2.imageProBox
|
|
1431
|
+
}, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
1432
|
+
className: styles$2.imagePaste
|
|
1433
|
+
}, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
|
|
1434
|
+
className: styles$2.fakeBox,
|
|
1435
|
+
onClick: function onClick() {
|
|
1436
|
+
setPasteDefaultStates(false);
|
|
1437
|
+
}
|
|
1438
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1439
|
+
className: styles$2.addBtn
|
|
1440
|
+
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
1441
|
+
className: styles$2.text
|
|
1442
|
+
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React.createElement("input", {
|
|
1443
|
+
ref: inputRef,
|
|
1444
|
+
className: styles$2.inputImage,
|
|
1445
|
+
type: "text",
|
|
1446
|
+
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
1447
|
+
onBlur: function onBlur() {
|
|
1448
|
+
setPasteDefaultStates(true);
|
|
1449
|
+
},
|
|
1450
|
+
value: ""
|
|
1451
|
+
})), /*#__PURE__*/React.createElement(Upload, _objectSpread2({
|
|
1452
|
+
disabled: disabled,
|
|
1453
|
+
accept: accept,
|
|
1454
|
+
name: "file",
|
|
1455
|
+
listType: "picture-card",
|
|
1456
|
+
maxCount: maxCount,
|
|
1457
|
+
className: styles$2.upload,
|
|
1458
|
+
beforeUpload: beforeUpload
|
|
1459
|
+
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
1460
|
+
className: "addBtn"
|
|
1461
|
+
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText))), renderImages(value)));
|
|
1462
|
+
};
|
|
1463
|
+
var index$1 = /*#__PURE__*/forwardRef(ApaasUploadProAsync);
|
|
1464
|
+
|
|
1465
|
+
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";
|
|
1466
|
+
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"};
|
|
1467
|
+
styleInject(css_248z$3);
|
|
1468
|
+
|
|
1183
1469
|
//! moment.js
|
|
1184
1470
|
//! version : 2.29.4
|
|
1185
1471
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -6856,9 +7142,9 @@ hooks.HTML5_FMT = {
|
|
|
6856
7142
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6857
7143
|
};
|
|
6858
7144
|
|
|
6859
|
-
var _excluded$
|
|
7145
|
+
var _excluded$8 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "hostUrl", "canDownload", "actionUrl", "platform"];
|
|
6860
7146
|
var Dragger = Upload.Dragger;
|
|
6861
|
-
var fn$
|
|
7147
|
+
var fn$3 = function fn() {
|
|
6862
7148
|
return void 0;
|
|
6863
7149
|
};
|
|
6864
7150
|
var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
@@ -6867,7 +7153,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6867
7153
|
_ref$maxSize = _ref.maxSize,
|
|
6868
7154
|
maxSize = _ref$maxSize === void 0 ? 100 : _ref$maxSize,
|
|
6869
7155
|
_ref$onChange = _ref.onChange,
|
|
6870
|
-
onChange = _ref$onChange === void 0 ? fn$
|
|
7156
|
+
onChange = _ref$onChange === void 0 ? fn$3 : _ref$onChange,
|
|
6871
7157
|
_ref$value = _ref.value,
|
|
6872
7158
|
value = _ref$value === void 0 ? [] : _ref$value,
|
|
6873
7159
|
_ref$accept = _ref.accept,
|
|
@@ -6881,7 +7167,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6881
7167
|
_ref$actionUrl = _ref.actionUrl,
|
|
6882
7168
|
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
6883
7169
|
_ref$platform = _ref.platform,
|
|
6884
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
7170
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
6885
7171
|
var inputRef = useRef(null);
|
|
6886
7172
|
var _useState = useState(false),
|
|
6887
7173
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7111,23 +7397,23 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7111
7397
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
7112
7398
|
spinning: uploading
|
|
7113
7399
|
}, /*#__PURE__*/React.createElement("p", {
|
|
7114
|
-
className: styles$
|
|
7400
|
+
className: styles$3.tips
|
|
7115
7401
|
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6"), /*#__PURE__*/React.createElement("div", {
|
|
7116
|
-
className: styles$
|
|
7402
|
+
className: styles$3.imageBox
|
|
7117
7403
|
}, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
7118
|
-
className: styles$
|
|
7404
|
+
className: styles$3.imagePaste
|
|
7119
7405
|
}, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
|
|
7120
|
-
className: styles$
|
|
7406
|
+
className: styles$3.fakeBox,
|
|
7121
7407
|
onClick: function onClick() {
|
|
7122
7408
|
setPasteDefaultStates(false);
|
|
7123
7409
|
}
|
|
7124
7410
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7125
|
-
className: styles$
|
|
7411
|
+
className: styles$3.addBtn
|
|
7126
7412
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
7127
|
-
className: styles$
|
|
7413
|
+
className: styles$3.text
|
|
7128
7414
|
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React.createElement("input", {
|
|
7129
7415
|
ref: inputRef,
|
|
7130
|
-
className: styles$
|
|
7416
|
+
className: styles$3.inputImage,
|
|
7131
7417
|
type: "text",
|
|
7132
7418
|
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
7133
7419
|
onBlur: function onBlur() {
|
|
@@ -7145,9 +7431,9 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7145
7431
|
fileList: fileList,
|
|
7146
7432
|
onRemove: onRemove
|
|
7147
7433
|
}, resetProps), /*#__PURE__*/React.createElement("span", {
|
|
7148
|
-
className: styles$
|
|
7434
|
+
className: styles$3.addBtn
|
|
7149
7435
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
7150
|
-
className: styles$
|
|
7436
|
+
className: styles$3.addBtn
|
|
7151
7437
|
}, "\u9009\u62E9\u6587\u4EF6")), /*#__PURE__*/React.createElement(Modal, {
|
|
7152
7438
|
visible: visible,
|
|
7153
7439
|
title: fileName,
|
|
@@ -7182,7 +7468,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7182
7468
|
}))));
|
|
7183
7469
|
};
|
|
7184
7470
|
|
|
7185
|
-
var _excluded$
|
|
7471
|
+
var _excluded$9 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"];
|
|
7186
7472
|
function ApaasCheckbox(props) {
|
|
7187
7473
|
var showOther = props.showOther,
|
|
7188
7474
|
_props$horizontal = props.horizontal,
|
|
@@ -7193,7 +7479,7 @@ function ApaasCheckbox(props) {
|
|
|
7193
7479
|
value = _props$value === void 0 ? {} : _props$value,
|
|
7194
7480
|
onChange = props.onChange,
|
|
7195
7481
|
disabled = props.disabled,
|
|
7196
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7482
|
+
otherProps = _objectWithoutProperties(props, _excluded$9);
|
|
7197
7483
|
var checkboxValue = value.value,
|
|
7198
7484
|
other = value.other;
|
|
7199
7485
|
var triggerChange = function triggerChange(changedValue) {
|
|
@@ -7279,11 +7565,11 @@ function ApaasSlider(props) {
|
|
|
7279
7565
|
})));
|
|
7280
7566
|
}
|
|
7281
7567
|
|
|
7282
|
-
var css_248z$
|
|
7283
|
-
var styles$
|
|
7284
|
-
styleInject(css_248z$
|
|
7568
|
+
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";
|
|
7569
|
+
var styles$4 = {"rateLabel":"index-module_rateLabel__3k-Xa","rateText":"index-module_rateText__A1GRy"};
|
|
7570
|
+
styleInject(css_248z$4);
|
|
7285
7571
|
|
|
7286
|
-
var _excluded$
|
|
7572
|
+
var _excluded$a = ["value", "onChange", "options", "textStyle"];
|
|
7287
7573
|
//状态文字映射
|
|
7288
7574
|
var RATE_MAP = {
|
|
7289
7575
|
0: '',
|
|
@@ -7305,7 +7591,7 @@ function ApaasRate(props) {
|
|
|
7305
7591
|
_props$options = props.options,
|
|
7306
7592
|
options = _props$options === void 0 ? [] : _props$options,
|
|
7307
7593
|
textStyle = props.textStyle,
|
|
7308
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7594
|
+
other = _objectWithoutProperties(props, _excluded$a);
|
|
7309
7595
|
var rateValues = useMemo(function () {
|
|
7310
7596
|
return (value || []).reduce(function (prv, next) {
|
|
7311
7597
|
prv[next.id || ''] = next.value;
|
|
@@ -7341,14 +7627,14 @@ function ApaasRate(props) {
|
|
|
7341
7627
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
7342
7628
|
span: 24
|
|
7343
7629
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7344
|
-
className: styles$
|
|
7630
|
+
className: styles$4.rateLabel
|
|
7345
7631
|
}, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React.createElement(Rate, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7346
7632
|
value: rateValues[item.id] || 0,
|
|
7347
7633
|
onChange: function onChange(val) {
|
|
7348
7634
|
return changeHandle(val, item.id);
|
|
7349
7635
|
}
|
|
7350
7636
|
})), /*#__PURE__*/React.createElement("span", {
|
|
7351
|
-
className: styles$
|
|
7637
|
+
className: styles$4.rateText,
|
|
7352
7638
|
style: textStyle
|
|
7353
7639
|
}, RATE_MAP[rateValues[item.id]])));
|
|
7354
7640
|
}));
|
|
@@ -7373,7 +7659,7 @@ var Province = function Province(props) {
|
|
|
7373
7659
|
})));
|
|
7374
7660
|
};
|
|
7375
7661
|
|
|
7376
|
-
var TextArea = Input.TextArea;
|
|
7662
|
+
var TextArea$1 = Input.TextArea;
|
|
7377
7663
|
var ParseLogistics = function ParseLogistics(props) {
|
|
7378
7664
|
var onChange = props.onChange,
|
|
7379
7665
|
_props$selfCalibratio = props.selfCalibration,
|
|
@@ -7422,7 +7708,7 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7422
7708
|
handleIdentify(val);
|
|
7423
7709
|
}
|
|
7424
7710
|
};
|
|
7425
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea, {
|
|
7711
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea$1, {
|
|
7426
7712
|
placeholder: "\u590D\u5236\u4FE1\u606F\uFF0C\u70B9\u51FB\u667A\u80FD\u8BC6\u522B",
|
|
7427
7713
|
rows: 3,
|
|
7428
7714
|
value: value,
|
|
@@ -7549,14 +7835,14 @@ function ApaasPosting(props) {
|
|
|
7549
7835
|
});
|
|
7550
7836
|
}
|
|
7551
7837
|
|
|
7552
|
-
var _excluded$
|
|
7838
|
+
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
7553
7839
|
function ApaasLogistics(props) {
|
|
7554
7840
|
var value = props.value,
|
|
7555
7841
|
onChange = props.onChange,
|
|
7556
7842
|
platformType = props.platformType,
|
|
7557
7843
|
_props$type = props.type,
|
|
7558
7844
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
7559
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7845
|
+
other = _objectWithoutProperties(props, _excluded$b);
|
|
7560
7846
|
var _useState = useState([]),
|
|
7561
7847
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7562
7848
|
option = _useState2[0],
|
|
@@ -7601,7 +7887,7 @@ function ApaasLogistics(props) {
|
|
|
7601
7887
|
}));
|
|
7602
7888
|
}
|
|
7603
7889
|
|
|
7604
|
-
var _excluded$
|
|
7890
|
+
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
7605
7891
|
function withFormItem(WrappedComponent) {
|
|
7606
7892
|
return function (props) {
|
|
7607
7893
|
var label = props.label,
|
|
@@ -7610,7 +7896,7 @@ function withFormItem(WrappedComponent) {
|
|
|
7610
7896
|
required = props.required,
|
|
7611
7897
|
rules = props.rules,
|
|
7612
7898
|
initialValue = props.initialValue,
|
|
7613
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7899
|
+
otherProps = _objectWithoutProperties(props, _excluded$c);
|
|
7614
7900
|
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({}, {
|
|
7615
7901
|
label: label,
|
|
7616
7902
|
name: name,
|
|
@@ -8188,7 +8474,7 @@ var trade4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVzn
|
|
|
8188
8474
|
|
|
8189
8475
|
var trade5 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0MUVBOUVCQjIzQUIxMUU0QUZCMkFCQ0QzMzVDM0ZDMCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0MUVBOUVCQzIzQUIxMUU0QUZCMkFCQ0QzMzVDM0ZDMCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjQxRUE5RUI5MjNBQjExRTRBRkIyQUJDRDMzNUMzRkMwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQxRUE5RUJBMjNBQjExRTRBRkIyQUJDRDMzNUMzRkMwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+xU6hIgAAAPdJREFUeNqM0M9KAlEUx/E7MoF/WoiIoCslCyIXIgS5alMgvoJvIPgCbXwWobYuJVqVgeCmVSAyxGgE1dJVicH1e/AMDSLqgQ935nJ+d+4Z57bofxljOjhEEwuM0VU+csg0vHzf5SGCGkZmVQcoqRt8SDMGuJbmHk7gwWooWOXAPOIo3x1PUhJ4RFRP/jb/ZUOk0jiXwLNuFkLXWq8gdCmBKV5R0WGlnA2k6hEm/9NrHWGGoQ7b1vneQ1/6cfXhAS38ymc5ZB50MGiS5RQxvDjWWtnM8vImv47mK7OlZAZD06ekcUE4vTOgdY8EqvsGnnQ92xZYCjAAxxw+q99X1uIAAAAASUVORK5CYII=";
|
|
8190
8476
|
|
|
8191
|
-
var TextArea$
|
|
8477
|
+
var TextArea$2 = Input.TextArea;
|
|
8192
8478
|
var imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
|
|
8193
8479
|
var RemarkInput = function RemarkInput(props) {
|
|
8194
8480
|
var isShowFlag = props.isShowFlag,
|
|
@@ -8207,7 +8493,7 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8207
8493
|
});
|
|
8208
8494
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
8209
8495
|
};
|
|
8210
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$
|
|
8496
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$2, {
|
|
8211
8497
|
disabled: disabled,
|
|
8212
8498
|
rows: 4,
|
|
8213
8499
|
value: value === null || value === void 0 ? void 0 : value.remark,
|
|
@@ -8231,8 +8517,8 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8231
8517
|
})));
|
|
8232
8518
|
};
|
|
8233
8519
|
|
|
8234
|
-
var css_248z$
|
|
8235
|
-
styleInject(css_248z$
|
|
8520
|
+
var css_248z$5 = ".mb8 {\n margin-bottom: 8px;\n}\n";
|
|
8521
|
+
styleInject(css_248z$5);
|
|
8236
8522
|
|
|
8237
8523
|
var Logistics = function Logistics(props) {
|
|
8238
8524
|
var options = props.options,
|
|
@@ -8286,7 +8572,7 @@ var Logistics = function Logistics(props) {
|
|
|
8286
8572
|
return /*#__PURE__*/React.createElement(Input, {
|
|
8287
8573
|
disabled: disabled,
|
|
8288
8574
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
8289
|
-
className: css_248z$
|
|
8575
|
+
className: css_248z$5.logisticsInput,
|
|
8290
8576
|
onChange: handleInputChange,
|
|
8291
8577
|
value: value === null || value === void 0 ? void 0 : value.order,
|
|
8292
8578
|
onBlur: function onBlur(e) {
|
|
@@ -8295,7 +8581,7 @@ var Logistics = function Logistics(props) {
|
|
|
8295
8581
|
});
|
|
8296
8582
|
};
|
|
8297
8583
|
return /*#__PURE__*/React.createElement("div", {
|
|
8298
|
-
className: css_248z$
|
|
8584
|
+
className: css_248z$5.logistics
|
|
8299
8585
|
}, isSingle ? showField === 'EXPRESS_COMPANY' ? LogisticsCompany() : null : LogisticsCompany(), isSingle ? showField === 'EXPRESS_WAYBILL_CODE' ? LogisticsCode() : null : LogisticsCode());
|
|
8300
8586
|
};
|
|
8301
8587
|
|
|
@@ -8332,8 +8618,8 @@ var AliPay = function AliPay(props) {
|
|
|
8332
8618
|
})));
|
|
8333
8619
|
};
|
|
8334
8620
|
|
|
8335
|
-
var css_248z$
|
|
8336
|
-
styleInject(css_248z$
|
|
8621
|
+
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";
|
|
8622
|
+
styleInject(css_248z$6);
|
|
8337
8623
|
|
|
8338
8624
|
var defaultImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAOKADAAQAAAABAAAAOAAAAAANV2hTAAACcklEQVRoBe1aa3OqMBBdlFatfVivnV7H29f//0md6XSc1hegKCCigE2c0YKtri7Rm3ayX0zCbjhnzyZEVBs53hx+seV+MbcFNUXwpyusFFQKSp4BVaKSC4TCUwqiKZLcQSkouUAoPKUgmiLJHZSCkguEwtNRjw0O8/kcTMuGWRhu8BAzfKLrUPtTAU3TSBOSCXqeD2bfJt1036BSqQjn5dK+YQt/8hoMo4h0Q0pQmKFKyAomgdZva1C5ukgOZW7bQwfaXTPzPEIIZkXBXnyBN/aBr7fq9SXkcuTC+gLlvxPkG5VhDVbAHHcMj/f1VT9rQ1yqiEj69jAVOQkC8CdBaixL5ygEB/YIhiM3C05y7EFLNGI7battgMvWF7d8Pv9lu69WrlIlWiwUoFQswHQ6I5NKBh6MIC+z93YPZrPPg0Cr04Onh8ZiM1mC4A/x09OT1CZDfagv50x+HoTgwHag2zNh/TeBKIoZaQMe/v1NnUzO2IP88qKcxCWsLXQNxnEMrY4BnW/ILRH7/mRVkvy4x/2fX5osxgLeF23CFAzYmnlv9SCYTlGMVn8IMVOTx4wZYW58IwrDCBr1m5S66GSIgxCCLjuXdg0L4nh3BQbspLJujutB8y2Cu8bt+iVyX0iJcmD7kNuGliv62mwD34FFmBAFRQBJzsHL3DDxUk/GbGoLUXDT5FnGdy/27XeRluB22LtfVQR3z5WcnmQFdXauPJbp7Hsi1ciRZfaOpFatHOWlU/msSOUHmvobCTl3cgSS16Ac8HEUiiCeI7k9lIJy64OjUwriOZLbQykotz44OqUgniO5PZSCcuuDo1MK4jmS2+MD4RXMNiaoge4AAAAASUVORK5CYII=";
|
|
8339
8625
|
|
|
@@ -9387,8 +9673,8 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
9387
9673
|
}));
|
|
9388
9674
|
};
|
|
9389
9675
|
|
|
9390
|
-
var css_248z$
|
|
9391
|
-
styleInject(css_248z$
|
|
9676
|
+
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";
|
|
9677
|
+
styleInject(css_248z$7);
|
|
9392
9678
|
|
|
9393
9679
|
var GoodItem = function GoodItem(props) {
|
|
9394
9680
|
var _props$isSingleRow = props.isSingleRow,
|
|
@@ -9826,8 +10112,8 @@ var Supplier = function Supplier(props) {
|
|
|
9826
10112
|
}));
|
|
9827
10113
|
};
|
|
9828
10114
|
|
|
9829
|
-
var css_248z$
|
|
9830
|
-
styleInject(css_248z$
|
|
10115
|
+
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";
|
|
10116
|
+
styleInject(css_248z$8);
|
|
9831
10117
|
|
|
9832
10118
|
var Invoice = function Invoice(props) {
|
|
9833
10119
|
var _props$value = props.value,
|
|
@@ -10258,8 +10544,8 @@ var Payment = function Payment(props) {
|
|
|
10258
10544
|
}));
|
|
10259
10545
|
};
|
|
10260
10546
|
|
|
10261
|
-
var css_248z$
|
|
10262
|
-
styleInject(css_248z$
|
|
10547
|
+
var css_248z$9 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
|
|
10548
|
+
styleInject(css_248z$9);
|
|
10263
10549
|
|
|
10264
10550
|
var Item = Form.Item;
|
|
10265
10551
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
@@ -10511,7 +10797,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10511
10797
|
}
|
|
10512
10798
|
};
|
|
10513
10799
|
return /*#__PURE__*/React.createElement("div", {
|
|
10514
|
-
className: css_248z$
|
|
10800
|
+
className: css_248z$9.interceptBox
|
|
10515
10801
|
}, /*#__PURE__*/React.createElement(Item, {
|
|
10516
10802
|
label: '物流信息',
|
|
10517
10803
|
required: required,
|
|
@@ -11327,8 +11613,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11327
11613
|
})) : null) : null);
|
|
11328
11614
|
};
|
|
11329
11615
|
|
|
11330
|
-
var css_248z$
|
|
11331
|
-
styleInject(css_248z$
|
|
11616
|
+
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";
|
|
11617
|
+
styleInject(css_248z$a);
|
|
11332
11618
|
|
|
11333
11619
|
var ItemList = function ItemList(props) {
|
|
11334
11620
|
var _props$value = props.value,
|
|
@@ -11401,7 +11687,7 @@ var ItemList = function ItemList(props) {
|
|
|
11401
11687
|
}, "\u6682\u4E0D\u652F\u6301\u6DFB\u52A0")) : null);
|
|
11402
11688
|
};
|
|
11403
11689
|
|
|
11404
|
-
var _excluded$
|
|
11690
|
+
var _excluded$d = ["shopId"];
|
|
11405
11691
|
var columns = [{
|
|
11406
11692
|
dataIndex: 'index',
|
|
11407
11693
|
title: 'NO',
|
|
@@ -11626,7 +11912,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11626
11912
|
};
|
|
11627
11913
|
var onFinish = function onFinish(val) {
|
|
11628
11914
|
var shopId = val.shopId,
|
|
11629
|
-
other = _objectWithoutProperties(val, _excluded$
|
|
11915
|
+
other = _objectWithoutProperties(val, _excluded$d);
|
|
11630
11916
|
var value = other;
|
|
11631
11917
|
var newFilterList = [];
|
|
11632
11918
|
var hasValue = Object.values(value).some(function (t) {
|
|
@@ -16129,7 +16415,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
16129
16415
|
}));
|
|
16130
16416
|
};
|
|
16131
16417
|
|
|
16132
|
-
var _excluded$
|
|
16418
|
+
var _excluded$e = ["value", "onChange", "reasonList", "disabled"];
|
|
16133
16419
|
var BsExchange = function BsExchange(props) {
|
|
16134
16420
|
var _value$bsExchangeType4, _value$bsExchangeType5, _value$bsExchangeType6;
|
|
16135
16421
|
var value = props.value,
|
|
@@ -16137,7 +16423,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16137
16423
|
_props$reasonList = props.reasonList,
|
|
16138
16424
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16139
16425
|
disabled = props.disabled,
|
|
16140
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16426
|
+
other = _objectWithoutProperties(props, _excluded$e);
|
|
16141
16427
|
var valueRef = useRef({});
|
|
16142
16428
|
useEffect(function () {
|
|
16143
16429
|
valueRef.current = value;
|
|
@@ -16364,7 +16650,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16364
16650
|
}))) : null);
|
|
16365
16651
|
};
|
|
16366
16652
|
|
|
16367
|
-
var _excluded$
|
|
16653
|
+
var _excluded$f = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
16368
16654
|
var typeMap = {
|
|
16369
16655
|
BS_REISSUE_GOODS: {
|
|
16370
16656
|
key: 'bsReissueGoods',
|
|
@@ -16389,7 +16675,7 @@ var BsReissue = function BsReissue(props) {
|
|
|
16389
16675
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16390
16676
|
disabled = props.disabled,
|
|
16391
16677
|
type = props.type,
|
|
16392
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16678
|
+
other = _objectWithoutProperties(props, _excluded$f);
|
|
16393
16679
|
var valueRef = useRef({});
|
|
16394
16680
|
useEffect(function () {
|
|
16395
16681
|
var _typeMap$type;
|
|
@@ -16505,14 +16791,14 @@ var BsReissue = function BsReissue(props) {
|
|
|
16505
16791
|
})));
|
|
16506
16792
|
};
|
|
16507
16793
|
|
|
16508
|
-
var _excluded$
|
|
16794
|
+
var _excluded$g = ["value", "onChange", "reasonList", "disabled"];
|
|
16509
16795
|
var BsReturnGoods = function BsReturnGoods(props) {
|
|
16510
16796
|
var value = props.value,
|
|
16511
16797
|
onChange = props.onChange,
|
|
16512
16798
|
_props$reasonList = props.reasonList,
|
|
16513
16799
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16514
16800
|
disabled = props.disabled,
|
|
16515
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16801
|
+
other = _objectWithoutProperties(props, _excluded$g);
|
|
16516
16802
|
var valueRef = useRef({});
|
|
16517
16803
|
useEffect(function () {
|
|
16518
16804
|
pubsub.subscribe('returnSelectList', function (_, data) {
|
|
@@ -16825,7 +17111,7 @@ var kmUtils = {
|
|
|
16825
17111
|
getOrderListSingleton: getOrderListSingleton
|
|
16826
17112
|
};
|
|
16827
17113
|
|
|
16828
|
-
var _excluded$
|
|
17114
|
+
var _excluded$h = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16829
17115
|
var columnsMap = {
|
|
16830
17116
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16831
17117
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16844,7 +17130,7 @@ var rowKeyMap = {
|
|
|
16844
17130
|
GY_SYSTEM_ORDER: 'billNo',
|
|
16845
17131
|
JST_SYSTEM_ORDER: 'oId'
|
|
16846
17132
|
};
|
|
16847
|
-
var index$
|
|
17133
|
+
var index$2 = (function (props) {
|
|
16848
17134
|
var value = props.value,
|
|
16849
17135
|
_onChange = props.onChange,
|
|
16850
17136
|
disabled = props.disabled,
|
|
@@ -17099,7 +17385,7 @@ var index$1 = (function (props) {
|
|
|
17099
17385
|
deliveryState = _ref10.deliveryState,
|
|
17100
17386
|
vipCode = _ref10.vipCode,
|
|
17101
17387
|
shopCode = _ref10.shopCode,
|
|
17102
|
-
rest = _objectWithoutProperties(_ref10, _excluded$
|
|
17388
|
+
rest = _objectWithoutProperties(_ref10, _excluded$h);
|
|
17103
17389
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
17104
17390
|
billNo: billNo,
|
|
17105
17391
|
billType: billType,
|
|
@@ -17806,7 +18092,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17806
18092
|
})));
|
|
17807
18093
|
};
|
|
17808
18094
|
|
|
17809
|
-
var _excluded$
|
|
18095
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17810
18096
|
var typeMap$1 = {
|
|
17811
18097
|
WDT_REISSUE_GOODS: {
|
|
17812
18098
|
key: 'wdtReissueGoods',
|
|
@@ -17834,7 +18120,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17834
18120
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17835
18121
|
disabled = props.disabled,
|
|
17836
18122
|
type = props.type,
|
|
17837
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18123
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17838
18124
|
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
18125
|
var _order$srcTid;
|
|
17840
18126
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -18074,7 +18360,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18074
18360
|
})));
|
|
18075
18361
|
};
|
|
18076
18362
|
|
|
18077
|
-
var _excluded$
|
|
18363
|
+
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18078
18364
|
var typeMap$2 = {
|
|
18079
18365
|
JST_REISSUE_GOODS: {
|
|
18080
18366
|
compType: '补发',
|
|
@@ -18122,7 +18408,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18122
18408
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18123
18409
|
disabled = props.disabled,
|
|
18124
18410
|
type = props.type,
|
|
18125
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18411
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
18126
18412
|
var getOrderFlag = useRef(false);
|
|
18127
18413
|
var _useState = useState(false),
|
|
18128
18414
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18375,8 +18661,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18375
18661
|
})));
|
|
18376
18662
|
};
|
|
18377
18663
|
|
|
18378
|
-
var css_248z$
|
|
18379
|
-
styleInject(css_248z$
|
|
18664
|
+
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";
|
|
18665
|
+
styleInject(css_248z$b);
|
|
18380
18666
|
|
|
18381
18667
|
var TabPane$1 = Tabs.TabPane;
|
|
18382
18668
|
var Option$2 = Select.Option;
|
|
@@ -18849,14 +19135,14 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18849
19135
|
userNick: userNick
|
|
18850
19136
|
}));
|
|
18851
19137
|
};
|
|
18852
|
-
var index$
|
|
19138
|
+
var index$3 = /*#__PURE__*/forwardRef(Goods$1);
|
|
18853
19139
|
|
|
18854
|
-
var _excluded$
|
|
19140
|
+
var _excluded$k = ["onChange", "value", "failValue"];
|
|
18855
19141
|
function CommonStatus(props) {
|
|
18856
19142
|
var onChange = props.onChange,
|
|
18857
19143
|
value = props.value,
|
|
18858
19144
|
failValue = props.failValue,
|
|
18859
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19145
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18860
19146
|
var changeHandle = function changeHandle(val) {
|
|
18861
19147
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18862
19148
|
status: val,
|
|
@@ -18993,7 +19279,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18993
19279
|
})) : null) : null);
|
|
18994
19280
|
};
|
|
18995
19281
|
|
|
18996
|
-
var _excluded$
|
|
19282
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18997
19283
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18998
19284
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18999
19285
|
var _props$value = props.value,
|
|
@@ -19003,7 +19289,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
19003
19289
|
failValue = props.failValue,
|
|
19004
19290
|
_props$type = props.type,
|
|
19005
19291
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
19006
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19292
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
19007
19293
|
var _useState = useState(0),
|
|
19008
19294
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19009
19295
|
changeIndex = _useState2[0],
|
|
@@ -19069,7 +19355,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
19069
19355
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
19070
19356
|
};
|
|
19071
19357
|
|
|
19072
|
-
var _excluded$
|
|
19358
|
+
var _excluded$m = ["value", "onChange", "disabled", "failValue", "type"];
|
|
19073
19359
|
var MsgStatus = function MsgStatus(props) {
|
|
19074
19360
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
19075
19361
|
var _props$value = props.value,
|
|
@@ -19079,7 +19365,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19079
19365
|
failValue = props.failValue,
|
|
19080
19366
|
_props$type = props.type,
|
|
19081
19367
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
19082
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19368
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
19083
19369
|
var _useState = useState(0),
|
|
19084
19370
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19085
19371
|
changeIndex = _useState2[0],
|
|
@@ -19148,7 +19434,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
19148
19434
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
19149
19435
|
};
|
|
19150
19436
|
|
|
19151
|
-
var _excluded$
|
|
19437
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19152
19438
|
var typeMap$3 = {
|
|
19153
19439
|
BS_E3_REISSUE_GOODS: {
|
|
19154
19440
|
key: 'bsE3ReissueGoods',
|
|
@@ -19166,7 +19452,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19166
19452
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19167
19453
|
disabled = props.disabled,
|
|
19168
19454
|
type = props.type,
|
|
19169
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19455
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
19170
19456
|
var getOrderFlag = useRef(false);
|
|
19171
19457
|
var valueRef = useRef(null);
|
|
19172
19458
|
var _useState = useState(false),
|
|
@@ -19384,7 +19670,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19384
19670
|
})));
|
|
19385
19671
|
};
|
|
19386
19672
|
|
|
19387
|
-
var _excluded$
|
|
19673
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19388
19674
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19389
19675
|
var typeMap$4 = {
|
|
19390
19676
|
GY_REISSUE_GOODS: {
|
|
@@ -19413,7 +19699,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19413
19699
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19414
19700
|
disabled = props.disabled,
|
|
19415
19701
|
type = props.type,
|
|
19416
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19702
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19417
19703
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19418
19704
|
// order?.platformCode?.includes(';'),
|
|
19419
19705
|
// );
|
|
@@ -19657,7 +19943,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19657
19943
|
})));
|
|
19658
19944
|
};
|
|
19659
19945
|
|
|
19660
|
-
var _excluded$
|
|
19946
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19661
19947
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19662
19948
|
var typeMap$5 = {
|
|
19663
19949
|
GY_RETURN_GOODS: {
|
|
@@ -19686,7 +19972,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19686
19972
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19687
19973
|
disabled = props.disabled,
|
|
19688
19974
|
type = props.type,
|
|
19689
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19975
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19690
19976
|
var valueRef = useRef({});
|
|
19691
19977
|
var getOrderFlag = useRef(false);
|
|
19692
19978
|
var _useState = useState(false),
|
|
@@ -19947,4 +20233,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19947
20233
|
})));
|
|
19948
20234
|
};
|
|
19949
20235
|
|
|
19950
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$
|
|
20236
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };
|