@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.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,319 @@ 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 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";
|
|
1180
|
+
var styles$2 = {"imageProBox":"index-module_imageProBox__1u84Y","inputImage":"index-module_inputImage__nm5jb","imageShow":"index-module_imageShow__1cG2j","imageProWrap":"index-module_imageProWrap__sx8lo","-webkit-mask":"index-module_mask__L3q8p","mask":"index-module_mask__L3q8p","imageProInfo":"index-module_imageProInfo__iHM0C","imageProRight":"index-module_imageProRight__3rPiY","imageProOperate":"index-module_imageProOperate__1hFcg","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"};
|
|
1181
1181
|
styleInject(css_248z$2);
|
|
1182
1182
|
|
|
1183
|
+
var _excluded$7 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "actionUrl", "platform"];
|
|
1184
|
+
var TextArea = Input.TextArea;
|
|
1185
|
+
var fn$2 = function fn() {
|
|
1186
|
+
return void 0;
|
|
1187
|
+
};
|
|
1188
|
+
var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
1189
|
+
var _document;
|
|
1190
|
+
var _ref$maxCount = _ref.maxCount,
|
|
1191
|
+
maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
|
|
1192
|
+
_ref$maxSize = _ref.maxSize,
|
|
1193
|
+
maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
|
|
1194
|
+
_ref$uploadText = _ref.uploadText,
|
|
1195
|
+
uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
|
|
1196
|
+
_ref$onChange = _ref.onChange,
|
|
1197
|
+
onChange = _ref$onChange === void 0 ? fn$2 : _ref$onChange,
|
|
1198
|
+
_ref$value = _ref.value,
|
|
1199
|
+
value = _ref$value === void 0 ? [] : _ref$value,
|
|
1200
|
+
_ref$accept = _ref.accept,
|
|
1201
|
+
accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
|
|
1202
|
+
_ref$disabled = _ref.disabled,
|
|
1203
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1204
|
+
uniqueKey = _ref.uniqueKey,
|
|
1205
|
+
_ref$hostUrl = _ref.hostUrl,
|
|
1206
|
+
hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
|
|
1207
|
+
_ref$actionUrl = _ref.actionUrl,
|
|
1208
|
+
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
1209
|
+
_ref$platform = _ref.platform,
|
|
1210
|
+
platform = _ref$platform === void 0 ? '' : _ref$platform,
|
|
1211
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
1212
|
+
var inputRef = useRef(null);
|
|
1213
|
+
var valueRef = useRef(value);
|
|
1214
|
+
var _useState = useState(false),
|
|
1215
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1216
|
+
uploading = _useState2[0],
|
|
1217
|
+
setUploading = _useState2[1];
|
|
1218
|
+
var _useState3 = useState(true),
|
|
1219
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1220
|
+
pasteDefaultStates = _useState4[0],
|
|
1221
|
+
setPasteDefaultStates = _useState4[1];
|
|
1222
|
+
var preview = platform === 'ks' ? {
|
|
1223
|
+
getContainer: (_document = document) === null || _document === void 0 ? void 0 : _document.getElementById('root')
|
|
1224
|
+
} : true;
|
|
1225
|
+
useEffect(function () {
|
|
1226
|
+
valueRef.current = value;
|
|
1227
|
+
}, [value]);
|
|
1228
|
+
var asyncUpload = /*#__PURE__*/function () {
|
|
1229
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1230
|
+
var _valueRef$current;
|
|
1231
|
+
var formData, fileName, showName, _yield$request, success, data;
|
|
1232
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1233
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1234
|
+
case 0:
|
|
1235
|
+
setUploading(true);
|
|
1236
|
+
formData = new FormData();
|
|
1237
|
+
formData.append('file', file);
|
|
1238
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1239
|
+
formData.append('fileName', fileName);
|
|
1240
|
+
showName = file.name.substring(0, file.name.lastIndexOf('.'));
|
|
1241
|
+
_context.prev = 6;
|
|
1242
|
+
_context.next = 9;
|
|
1243
|
+
return request(actionUrl, {
|
|
1244
|
+
method: 'post',
|
|
1245
|
+
body: formData
|
|
1246
|
+
});
|
|
1247
|
+
case 9:
|
|
1248
|
+
_yield$request = _context.sent;
|
|
1249
|
+
success = _yield$request.success;
|
|
1250
|
+
data = _yield$request.data;
|
|
1251
|
+
if (!success) {
|
|
1252
|
+
_context.next = 16;
|
|
1253
|
+
break;
|
|
1254
|
+
}
|
|
1255
|
+
if (!(valueRef.current.length >= maxCount)) {
|
|
1256
|
+
_context.next = 15;
|
|
1257
|
+
break;
|
|
1258
|
+
}
|
|
1259
|
+
return _context.abrupt("return");
|
|
1260
|
+
case 15:
|
|
1261
|
+
handleChange([].concat(_toConsumableArray(valueRef.current), [{
|
|
1262
|
+
url: data,
|
|
1263
|
+
name: showName
|
|
1264
|
+
}]));
|
|
1265
|
+
case 16:
|
|
1266
|
+
_context.next = 21;
|
|
1267
|
+
break;
|
|
1268
|
+
case 18:
|
|
1269
|
+
_context.prev = 18;
|
|
1270
|
+
_context.t0 = _context["catch"](6);
|
|
1271
|
+
message.error('图片上传失败');
|
|
1272
|
+
case 21:
|
|
1273
|
+
_context.prev = 21;
|
|
1274
|
+
setUploading(false);
|
|
1275
|
+
return _context.finish(21);
|
|
1276
|
+
case 24:
|
|
1277
|
+
case "end":
|
|
1278
|
+
return _context.stop();
|
|
1279
|
+
}
|
|
1280
|
+
}, _callee, null, [[6, 18, 21, 24]]);
|
|
1281
|
+
}));
|
|
1282
|
+
return function asyncUpload(_x) {
|
|
1283
|
+
return _ref2.apply(this, arguments);
|
|
1284
|
+
};
|
|
1285
|
+
}();
|
|
1286
|
+
var imgReader = function imgReader(item) {
|
|
1287
|
+
var blob = item.getAsFile(),
|
|
1288
|
+
reader = new FileReader();
|
|
1289
|
+
if (blob.size > maxSize * 1024 * 1024) {
|
|
1290
|
+
message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1293
|
+
if (valueRef.current.length >= maxCount) {
|
|
1294
|
+
message.error("\u53EA\u80FD\u4E0A\u4F20".concat(maxCount, "\u5F20\u56FE\u7247"));
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1297
|
+
reader.onload = /*#__PURE__*/function () {
|
|
1298
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
1299
|
+
var _e$target, _valueRef$current2;
|
|
1300
|
+
var result, fileName, file;
|
|
1301
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1302
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1303
|
+
case 0:
|
|
1304
|
+
result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
|
|
1305
|
+
fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.length) + 1, "_").concat(new Date().getTime(), ".jpg");
|
|
1306
|
+
file = dataURLtoFile(result, fileName);
|
|
1307
|
+
asyncUpload(file);
|
|
1308
|
+
case 4:
|
|
1309
|
+
case "end":
|
|
1310
|
+
return _context2.stop();
|
|
1311
|
+
}
|
|
1312
|
+
}, _callee2);
|
|
1313
|
+
}));
|
|
1314
|
+
return function (_x2) {
|
|
1315
|
+
return _ref3.apply(this, arguments);
|
|
1316
|
+
};
|
|
1317
|
+
}();
|
|
1318
|
+
reader.readAsDataURL(blob);
|
|
1319
|
+
};
|
|
1320
|
+
var handleChange = function handleChange(list) {
|
|
1321
|
+
valueRef.current = list;
|
|
1322
|
+
onChange(list);
|
|
1323
|
+
};
|
|
1324
|
+
var clipboardDataChange = function clipboardDataChange(e) {
|
|
1325
|
+
var clipboardData = e.clipboardData || window.clipboardData;
|
|
1326
|
+
var i = 0,
|
|
1327
|
+
items,
|
|
1328
|
+
item,
|
|
1329
|
+
types;
|
|
1330
|
+
if (clipboardData) {
|
|
1331
|
+
items = clipboardData.items;
|
|
1332
|
+
if (!items) return;
|
|
1333
|
+
item = items[0];
|
|
1334
|
+
types = clipboardData.types || [];
|
|
1335
|
+
for (; i < types.length; i++) {
|
|
1336
|
+
if (types[i] === 'Files') {
|
|
1337
|
+
item = items[i];
|
|
1338
|
+
break;
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
if (item && item.kind === 'file' && item.type.match(/^image\//i)) {
|
|
1342
|
+
imgReader(item);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
// 手动上传模式, 一直返回false
|
|
1347
|
+
var beforeUpload = function beforeUpload(file) {
|
|
1348
|
+
var size = file.size / 1024 / 1024 < maxSize;
|
|
1349
|
+
if (value.length > maxCount) {
|
|
1350
|
+
message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u5F20\u56FE\u7247\uFF01"));
|
|
1351
|
+
return Upload.LIST_IGNORE;
|
|
1352
|
+
}
|
|
1353
|
+
if (!size) {
|
|
1354
|
+
message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
1355
|
+
return Upload.LIST_IGNORE;
|
|
1356
|
+
}
|
|
1357
|
+
asyncUpload(file);
|
|
1358
|
+
return Upload.LIST_IGNORE;
|
|
1359
|
+
};
|
|
1360
|
+
var handleDelete = function handleDelete(key) {
|
|
1361
|
+
return function () {
|
|
1362
|
+
if (disabled) return;
|
|
1363
|
+
handleChange(value.filter(function (_, index) {
|
|
1364
|
+
return key !== index;
|
|
1365
|
+
}));
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
var renderImages = function renderImages(images) {
|
|
1369
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, {
|
|
1370
|
+
preview: preview
|
|
1371
|
+
}, images.map(function (image, index) {
|
|
1372
|
+
var finalImage = "".concat(/^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url, "?x-oss-process=image/resize,h_60,w_60");
|
|
1373
|
+
var showImage = /^pic\/[\s\S]*$/.test(image.url) ? "".concat(hostUrl, "/").concat(image.url) : image.url;
|
|
1374
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1375
|
+
className: styles$2.imageProWrap,
|
|
1376
|
+
style: {
|
|
1377
|
+
padding: '8px',
|
|
1378
|
+
marginBottom: '8px',
|
|
1379
|
+
marginRight: '8px'
|
|
1380
|
+
},
|
|
1381
|
+
key: index
|
|
1382
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1383
|
+
className: styles$2.imageProInfo,
|
|
1384
|
+
style: {
|
|
1385
|
+
marginRight: '8px'
|
|
1386
|
+
}
|
|
1387
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
1388
|
+
src: finalImage,
|
|
1389
|
+
preview: {
|
|
1390
|
+
src: showImage
|
|
1391
|
+
},
|
|
1392
|
+
width: '100%',
|
|
1393
|
+
height: '100%'
|
|
1394
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
1395
|
+
className: styles$2.imageProRight
|
|
1396
|
+
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
1397
|
+
value: image.name,
|
|
1398
|
+
onChange: function onChange(e) {
|
|
1399
|
+
handleChange(value.map(function (item, i) {
|
|
1400
|
+
if (index === i) {
|
|
1401
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
1402
|
+
name: e.target.value
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
return item;
|
|
1406
|
+
}));
|
|
1407
|
+
},
|
|
1408
|
+
placeholder: "\u8BF7\u8F93\u5165\u56FE\u7247\u540D\u79F0",
|
|
1409
|
+
autoSize: {
|
|
1410
|
+
minRows: 2,
|
|
1411
|
+
maxRows: 2
|
|
1412
|
+
},
|
|
1413
|
+
maxLength: 1000
|
|
1414
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
1415
|
+
className: styles$2.imageProOperate
|
|
1416
|
+
}, /*#__PURE__*/React.createElement(CloseOutlined, {
|
|
1417
|
+
style: {
|
|
1418
|
+
color: '#1890ff'
|
|
1419
|
+
},
|
|
1420
|
+
onClick: handleDelete(index)
|
|
1421
|
+
}))));
|
|
1422
|
+
}));
|
|
1423
|
+
};
|
|
1424
|
+
useEffect(function () {
|
|
1425
|
+
var _inputRef$current2;
|
|
1426
|
+
if (!pasteDefaultStates) {
|
|
1427
|
+
var _inputRef$current;
|
|
1428
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
1429
|
+
}
|
|
1430
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.addEventListener('paste', function (e) {
|
|
1431
|
+
return clipboardDataChange(e);
|
|
1432
|
+
});
|
|
1433
|
+
return function () {
|
|
1434
|
+
var _inputRef$current3;
|
|
1435
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.removeEventListener('paste', function (e) {
|
|
1436
|
+
return clipboardDataChange(e);
|
|
1437
|
+
});
|
|
1438
|
+
};
|
|
1439
|
+
}, [pasteDefaultStates]);
|
|
1440
|
+
useImperativeHandle(ref, function () {
|
|
1441
|
+
return {
|
|
1442
|
+
taskCompleted: !uploading
|
|
1443
|
+
};
|
|
1444
|
+
}, [uploading]);
|
|
1445
|
+
return /*#__PURE__*/React.createElement(Spin, {
|
|
1446
|
+
spinning: uploading
|
|
1447
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
1448
|
+
className: styles$2.tips
|
|
1449
|
+
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u5F20\u56FE\u7247"), /*#__PURE__*/React.createElement("div", {
|
|
1450
|
+
className: styles$2.imageProBox
|
|
1451
|
+
}, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
1452
|
+
className: styles$2.imageProPaste
|
|
1453
|
+
}, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
|
|
1454
|
+
className: styles$2.fakeBox,
|
|
1455
|
+
style: {
|
|
1456
|
+
paddingTop: '16px'
|
|
1457
|
+
},
|
|
1458
|
+
onClick: function onClick() {
|
|
1459
|
+
setPasteDefaultStates(false);
|
|
1460
|
+
}
|
|
1461
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1462
|
+
className: styles$2.addBtn
|
|
1463
|
+
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
1464
|
+
className: styles$2.text
|
|
1465
|
+
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React.createElement("input", {
|
|
1466
|
+
ref: inputRef,
|
|
1467
|
+
className: styles$2.inputImage,
|
|
1468
|
+
type: "text",
|
|
1469
|
+
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
1470
|
+
onBlur: function onBlur() {
|
|
1471
|
+
setPasteDefaultStates(true);
|
|
1472
|
+
},
|
|
1473
|
+
value: ""
|
|
1474
|
+
})), /*#__PURE__*/React.createElement(Upload, _objectSpread2({
|
|
1475
|
+
disabled: disabled,
|
|
1476
|
+
accept: accept,
|
|
1477
|
+
name: "file",
|
|
1478
|
+
listType: "picture-card",
|
|
1479
|
+
maxCount: maxCount,
|
|
1480
|
+
className: styles$2.uploadPro,
|
|
1481
|
+
beforeUpload: beforeUpload
|
|
1482
|
+
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
1483
|
+
className: "addBtn"
|
|
1484
|
+
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText))), renderImages(value)));
|
|
1485
|
+
};
|
|
1486
|
+
var index$1 = /*#__PURE__*/forwardRef(ApaasUploadProAsync);
|
|
1487
|
+
|
|
1488
|
+
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";
|
|
1489
|
+
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"};
|
|
1490
|
+
styleInject(css_248z$3);
|
|
1491
|
+
|
|
1183
1492
|
//! moment.js
|
|
1184
1493
|
//! version : 2.29.4
|
|
1185
1494
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -6856,9 +7165,9 @@ hooks.HTML5_FMT = {
|
|
|
6856
7165
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6857
7166
|
};
|
|
6858
7167
|
|
|
6859
|
-
var _excluded$
|
|
7168
|
+
var _excluded$8 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "hostUrl", "canDownload", "actionUrl", "platform"];
|
|
6860
7169
|
var Dragger = Upload.Dragger;
|
|
6861
|
-
var fn$
|
|
7170
|
+
var fn$3 = function fn() {
|
|
6862
7171
|
return void 0;
|
|
6863
7172
|
};
|
|
6864
7173
|
var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
@@ -6867,7 +7176,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6867
7176
|
_ref$maxSize = _ref.maxSize,
|
|
6868
7177
|
maxSize = _ref$maxSize === void 0 ? 100 : _ref$maxSize,
|
|
6869
7178
|
_ref$onChange = _ref.onChange,
|
|
6870
|
-
onChange = _ref$onChange === void 0 ? fn$
|
|
7179
|
+
onChange = _ref$onChange === void 0 ? fn$3 : _ref$onChange,
|
|
6871
7180
|
_ref$value = _ref.value,
|
|
6872
7181
|
value = _ref$value === void 0 ? [] : _ref$value,
|
|
6873
7182
|
_ref$accept = _ref.accept,
|
|
@@ -6881,7 +7190,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
6881
7190
|
_ref$actionUrl = _ref.actionUrl,
|
|
6882
7191
|
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
6883
7192
|
_ref$platform = _ref.platform,
|
|
6884
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
7193
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
6885
7194
|
var inputRef = useRef(null);
|
|
6886
7195
|
var _useState = useState(false),
|
|
6887
7196
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7111,23 +7420,23 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7111
7420
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
7112
7421
|
spinning: uploading
|
|
7113
7422
|
}, /*#__PURE__*/React.createElement("p", {
|
|
7114
|
-
className: styles$
|
|
7423
|
+
className: styles$3.tips
|
|
7115
7424
|
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6"), /*#__PURE__*/React.createElement("div", {
|
|
7116
|
-
className: styles$
|
|
7425
|
+
className: styles$3.imageBox
|
|
7117
7426
|
}, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
7118
|
-
className: styles$
|
|
7427
|
+
className: styles$3.imagePaste
|
|
7119
7428
|
}, pasteDefaultStates ? /*#__PURE__*/React.createElement("div", {
|
|
7120
|
-
className: styles$
|
|
7429
|
+
className: styles$3.fakeBox,
|
|
7121
7430
|
onClick: function onClick() {
|
|
7122
7431
|
setPasteDefaultStates(false);
|
|
7123
7432
|
}
|
|
7124
7433
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7125
|
-
className: styles$
|
|
7434
|
+
className: styles$3.addBtn
|
|
7126
7435
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
7127
|
-
className: styles$
|
|
7436
|
+
className: styles$3.text
|
|
7128
7437
|
}, "\u590D\u5236\u7C98\u8D34")) : /*#__PURE__*/React.createElement("input", {
|
|
7129
7438
|
ref: inputRef,
|
|
7130
|
-
className: styles$
|
|
7439
|
+
className: styles$3.inputImage,
|
|
7131
7440
|
type: "text",
|
|
7132
7441
|
placeholder: "\u590D\u5236\u7C98\u8D34",
|
|
7133
7442
|
onBlur: function onBlur() {
|
|
@@ -7145,9 +7454,9 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7145
7454
|
fileList: fileList,
|
|
7146
7455
|
onRemove: onRemove
|
|
7147
7456
|
}, resetProps), /*#__PURE__*/React.createElement("span", {
|
|
7148
|
-
className: styles$
|
|
7457
|
+
className: styles$3.addBtn
|
|
7149
7458
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
7150
|
-
className: styles$
|
|
7459
|
+
className: styles$3.addBtn
|
|
7151
7460
|
}, "\u9009\u62E9\u6587\u4EF6")), /*#__PURE__*/React.createElement(Modal, {
|
|
7152
7461
|
visible: visible,
|
|
7153
7462
|
title: fileName,
|
|
@@ -7182,7 +7491,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7182
7491
|
}))));
|
|
7183
7492
|
};
|
|
7184
7493
|
|
|
7185
|
-
var _excluded$
|
|
7494
|
+
var _excluded$9 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"];
|
|
7186
7495
|
function ApaasCheckbox(props) {
|
|
7187
7496
|
var showOther = props.showOther,
|
|
7188
7497
|
_props$horizontal = props.horizontal,
|
|
@@ -7193,7 +7502,7 @@ function ApaasCheckbox(props) {
|
|
|
7193
7502
|
value = _props$value === void 0 ? {} : _props$value,
|
|
7194
7503
|
onChange = props.onChange,
|
|
7195
7504
|
disabled = props.disabled,
|
|
7196
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7505
|
+
otherProps = _objectWithoutProperties(props, _excluded$9);
|
|
7197
7506
|
var checkboxValue = value.value,
|
|
7198
7507
|
other = value.other;
|
|
7199
7508
|
var triggerChange = function triggerChange(changedValue) {
|
|
@@ -7279,11 +7588,11 @@ function ApaasSlider(props) {
|
|
|
7279
7588
|
})));
|
|
7280
7589
|
}
|
|
7281
7590
|
|
|
7282
|
-
var css_248z$
|
|
7283
|
-
var styles$
|
|
7284
|
-
styleInject(css_248z$
|
|
7591
|
+
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";
|
|
7592
|
+
var styles$4 = {"rateLabel":"index-module_rateLabel__3k-Xa","rateText":"index-module_rateText__A1GRy"};
|
|
7593
|
+
styleInject(css_248z$4);
|
|
7285
7594
|
|
|
7286
|
-
var _excluded$
|
|
7595
|
+
var _excluded$a = ["value", "onChange", "options", "textStyle"];
|
|
7287
7596
|
//状态文字映射
|
|
7288
7597
|
var RATE_MAP = {
|
|
7289
7598
|
0: '',
|
|
@@ -7305,7 +7614,7 @@ function ApaasRate(props) {
|
|
|
7305
7614
|
_props$options = props.options,
|
|
7306
7615
|
options = _props$options === void 0 ? [] : _props$options,
|
|
7307
7616
|
textStyle = props.textStyle,
|
|
7308
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7617
|
+
other = _objectWithoutProperties(props, _excluded$a);
|
|
7309
7618
|
var rateValues = useMemo(function () {
|
|
7310
7619
|
return (value || []).reduce(function (prv, next) {
|
|
7311
7620
|
prv[next.id || ''] = next.value;
|
|
@@ -7341,14 +7650,14 @@ function ApaasRate(props) {
|
|
|
7341
7650
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
7342
7651
|
span: 24
|
|
7343
7652
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7344
|
-
className: styles$
|
|
7653
|
+
className: styles$4.rateLabel
|
|
7345
7654
|
}, item === null || item === void 0 ? void 0 : item.name), /*#__PURE__*/React.createElement(Rate, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7346
7655
|
value: rateValues[item.id] || 0,
|
|
7347
7656
|
onChange: function onChange(val) {
|
|
7348
7657
|
return changeHandle(val, item.id);
|
|
7349
7658
|
}
|
|
7350
7659
|
})), /*#__PURE__*/React.createElement("span", {
|
|
7351
|
-
className: styles$
|
|
7660
|
+
className: styles$4.rateText,
|
|
7352
7661
|
style: textStyle
|
|
7353
7662
|
}, RATE_MAP[rateValues[item.id]])));
|
|
7354
7663
|
}));
|
|
@@ -7373,7 +7682,7 @@ var Province = function Province(props) {
|
|
|
7373
7682
|
})));
|
|
7374
7683
|
};
|
|
7375
7684
|
|
|
7376
|
-
var TextArea = Input.TextArea;
|
|
7685
|
+
var TextArea$1 = Input.TextArea;
|
|
7377
7686
|
var ParseLogistics = function ParseLogistics(props) {
|
|
7378
7687
|
var onChange = props.onChange,
|
|
7379
7688
|
_props$selfCalibratio = props.selfCalibration,
|
|
@@ -7422,7 +7731,7 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7422
7731
|
handleIdentify(val);
|
|
7423
7732
|
}
|
|
7424
7733
|
};
|
|
7425
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea, {
|
|
7734
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextArea$1, {
|
|
7426
7735
|
placeholder: "\u590D\u5236\u4FE1\u606F\uFF0C\u70B9\u51FB\u667A\u80FD\u8BC6\u522B",
|
|
7427
7736
|
rows: 3,
|
|
7428
7737
|
value: value,
|
|
@@ -7549,14 +7858,14 @@ function ApaasPosting(props) {
|
|
|
7549
7858
|
});
|
|
7550
7859
|
}
|
|
7551
7860
|
|
|
7552
|
-
var _excluded$
|
|
7861
|
+
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
7553
7862
|
function ApaasLogistics(props) {
|
|
7554
7863
|
var value = props.value,
|
|
7555
7864
|
onChange = props.onChange,
|
|
7556
7865
|
platformType = props.platformType,
|
|
7557
7866
|
_props$type = props.type,
|
|
7558
7867
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
7559
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
7868
|
+
other = _objectWithoutProperties(props, _excluded$b);
|
|
7560
7869
|
var _useState = useState([]),
|
|
7561
7870
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7562
7871
|
option = _useState2[0],
|
|
@@ -7601,7 +7910,7 @@ function ApaasLogistics(props) {
|
|
|
7601
7910
|
}));
|
|
7602
7911
|
}
|
|
7603
7912
|
|
|
7604
|
-
var _excluded$
|
|
7913
|
+
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
7605
7914
|
function withFormItem(WrappedComponent) {
|
|
7606
7915
|
return function (props) {
|
|
7607
7916
|
var label = props.label,
|
|
@@ -7610,7 +7919,7 @@ function withFormItem(WrappedComponent) {
|
|
|
7610
7919
|
required = props.required,
|
|
7611
7920
|
rules = props.rules,
|
|
7612
7921
|
initialValue = props.initialValue,
|
|
7613
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7922
|
+
otherProps = _objectWithoutProperties(props, _excluded$c);
|
|
7614
7923
|
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({}, {
|
|
7615
7924
|
label: label,
|
|
7616
7925
|
name: name,
|
|
@@ -8188,7 +8497,7 @@ var trade4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVzn
|
|
|
8188
8497
|
|
|
8189
8498
|
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
8499
|
|
|
8191
|
-
var TextArea$
|
|
8500
|
+
var TextArea$2 = Input.TextArea;
|
|
8192
8501
|
var imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
|
|
8193
8502
|
var RemarkInput = function RemarkInput(props) {
|
|
8194
8503
|
var isShowFlag = props.isShowFlag,
|
|
@@ -8207,7 +8516,7 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8207
8516
|
});
|
|
8208
8517
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
8209
8518
|
};
|
|
8210
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$
|
|
8519
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$2, {
|
|
8211
8520
|
disabled: disabled,
|
|
8212
8521
|
rows: 4,
|
|
8213
8522
|
value: value === null || value === void 0 ? void 0 : value.remark,
|
|
@@ -8231,8 +8540,8 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
8231
8540
|
})));
|
|
8232
8541
|
};
|
|
8233
8542
|
|
|
8234
|
-
var css_248z$
|
|
8235
|
-
styleInject(css_248z$
|
|
8543
|
+
var css_248z$5 = ".mb8 {\n margin-bottom: 8px;\n}\n";
|
|
8544
|
+
styleInject(css_248z$5);
|
|
8236
8545
|
|
|
8237
8546
|
var Logistics = function Logistics(props) {
|
|
8238
8547
|
var options = props.options,
|
|
@@ -8286,7 +8595,7 @@ var Logistics = function Logistics(props) {
|
|
|
8286
8595
|
return /*#__PURE__*/React.createElement(Input, {
|
|
8287
8596
|
disabled: disabled,
|
|
8288
8597
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
8289
|
-
className: css_248z$
|
|
8598
|
+
className: css_248z$5.logisticsInput,
|
|
8290
8599
|
onChange: handleInputChange,
|
|
8291
8600
|
value: value === null || value === void 0 ? void 0 : value.order,
|
|
8292
8601
|
onBlur: function onBlur(e) {
|
|
@@ -8295,7 +8604,7 @@ var Logistics = function Logistics(props) {
|
|
|
8295
8604
|
});
|
|
8296
8605
|
};
|
|
8297
8606
|
return /*#__PURE__*/React.createElement("div", {
|
|
8298
|
-
className: css_248z$
|
|
8607
|
+
className: css_248z$5.logistics
|
|
8299
8608
|
}, isSingle ? showField === 'EXPRESS_COMPANY' ? LogisticsCompany() : null : LogisticsCompany(), isSingle ? showField === 'EXPRESS_WAYBILL_CODE' ? LogisticsCode() : null : LogisticsCode());
|
|
8300
8609
|
};
|
|
8301
8610
|
|
|
@@ -8332,8 +8641,8 @@ var AliPay = function AliPay(props) {
|
|
|
8332
8641
|
})));
|
|
8333
8642
|
};
|
|
8334
8643
|
|
|
8335
|
-
var css_248z$
|
|
8336
|
-
styleInject(css_248z$
|
|
8644
|
+
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";
|
|
8645
|
+
styleInject(css_248z$6);
|
|
8337
8646
|
|
|
8338
8647
|
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
8648
|
|
|
@@ -9387,8 +9696,8 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
9387
9696
|
}));
|
|
9388
9697
|
};
|
|
9389
9698
|
|
|
9390
|
-
var css_248z$
|
|
9391
|
-
styleInject(css_248z$
|
|
9699
|
+
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";
|
|
9700
|
+
styleInject(css_248z$7);
|
|
9392
9701
|
|
|
9393
9702
|
var GoodItem = function GoodItem(props) {
|
|
9394
9703
|
var _props$isSingleRow = props.isSingleRow,
|
|
@@ -9826,8 +10135,8 @@ var Supplier = function Supplier(props) {
|
|
|
9826
10135
|
}));
|
|
9827
10136
|
};
|
|
9828
10137
|
|
|
9829
|
-
var css_248z$
|
|
9830
|
-
styleInject(css_248z$
|
|
10138
|
+
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";
|
|
10139
|
+
styleInject(css_248z$8);
|
|
9831
10140
|
|
|
9832
10141
|
var Invoice = function Invoice(props) {
|
|
9833
10142
|
var _props$value = props.value,
|
|
@@ -10258,8 +10567,8 @@ var Payment = function Payment(props) {
|
|
|
10258
10567
|
}));
|
|
10259
10568
|
};
|
|
10260
10569
|
|
|
10261
|
-
var css_248z$
|
|
10262
|
-
styleInject(css_248z$
|
|
10570
|
+
var css_248z$9 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
|
|
10571
|
+
styleInject(css_248z$9);
|
|
10263
10572
|
|
|
10264
10573
|
var Item = Form.Item;
|
|
10265
10574
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
@@ -10511,7 +10820,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10511
10820
|
}
|
|
10512
10821
|
};
|
|
10513
10822
|
return /*#__PURE__*/React.createElement("div", {
|
|
10514
|
-
className: css_248z$
|
|
10823
|
+
className: css_248z$9.interceptBox
|
|
10515
10824
|
}, /*#__PURE__*/React.createElement(Item, {
|
|
10516
10825
|
label: '物流信息',
|
|
10517
10826
|
required: required,
|
|
@@ -11327,8 +11636,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11327
11636
|
})) : null) : null);
|
|
11328
11637
|
};
|
|
11329
11638
|
|
|
11330
|
-
var css_248z$
|
|
11331
|
-
styleInject(css_248z$
|
|
11639
|
+
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";
|
|
11640
|
+
styleInject(css_248z$a);
|
|
11332
11641
|
|
|
11333
11642
|
var ItemList = function ItemList(props) {
|
|
11334
11643
|
var _props$value = props.value,
|
|
@@ -11401,7 +11710,7 @@ var ItemList = function ItemList(props) {
|
|
|
11401
11710
|
}, "\u6682\u4E0D\u652F\u6301\u6DFB\u52A0")) : null);
|
|
11402
11711
|
};
|
|
11403
11712
|
|
|
11404
|
-
var _excluded$
|
|
11713
|
+
var _excluded$d = ["shopId"];
|
|
11405
11714
|
var columns = [{
|
|
11406
11715
|
dataIndex: 'index',
|
|
11407
11716
|
title: 'NO',
|
|
@@ -11626,7 +11935,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
11626
11935
|
};
|
|
11627
11936
|
var onFinish = function onFinish(val) {
|
|
11628
11937
|
var shopId = val.shopId,
|
|
11629
|
-
other = _objectWithoutProperties(val, _excluded$
|
|
11938
|
+
other = _objectWithoutProperties(val, _excluded$d);
|
|
11630
11939
|
var value = other;
|
|
11631
11940
|
var newFilterList = [];
|
|
11632
11941
|
var hasValue = Object.values(value).some(function (t) {
|
|
@@ -16117,7 +16426,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
16117
16426
|
}));
|
|
16118
16427
|
};
|
|
16119
16428
|
|
|
16120
|
-
var _excluded$
|
|
16429
|
+
var _excluded$e = ["value", "onChange", "reasonList", "disabled"];
|
|
16121
16430
|
var BsExchange = function BsExchange(props) {
|
|
16122
16431
|
var _value$bsExchangeType4, _value$bsExchangeType5, _value$bsExchangeType6;
|
|
16123
16432
|
var value = props.value,
|
|
@@ -16125,7 +16434,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16125
16434
|
_props$reasonList = props.reasonList,
|
|
16126
16435
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16127
16436
|
disabled = props.disabled,
|
|
16128
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16437
|
+
other = _objectWithoutProperties(props, _excluded$e);
|
|
16129
16438
|
var valueRef = useRef({});
|
|
16130
16439
|
useEffect(function () {
|
|
16131
16440
|
valueRef.current = value;
|
|
@@ -16352,7 +16661,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
16352
16661
|
}))) : null);
|
|
16353
16662
|
};
|
|
16354
16663
|
|
|
16355
|
-
var _excluded$
|
|
16664
|
+
var _excluded$f = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
16356
16665
|
var typeMap = {
|
|
16357
16666
|
BS_REISSUE_GOODS: {
|
|
16358
16667
|
key: 'bsReissueGoods',
|
|
@@ -16377,7 +16686,7 @@ var BsReissue = function BsReissue(props) {
|
|
|
16377
16686
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16378
16687
|
disabled = props.disabled,
|
|
16379
16688
|
type = props.type,
|
|
16380
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16689
|
+
other = _objectWithoutProperties(props, _excluded$f);
|
|
16381
16690
|
var valueRef = useRef({});
|
|
16382
16691
|
useEffect(function () {
|
|
16383
16692
|
var _typeMap$type;
|
|
@@ -16493,14 +16802,14 @@ var BsReissue = function BsReissue(props) {
|
|
|
16493
16802
|
})));
|
|
16494
16803
|
};
|
|
16495
16804
|
|
|
16496
|
-
var _excluded$
|
|
16805
|
+
var _excluded$g = ["value", "onChange", "reasonList", "disabled"];
|
|
16497
16806
|
var BsReturnGoods = function BsReturnGoods(props) {
|
|
16498
16807
|
var value = props.value,
|
|
16499
16808
|
onChange = props.onChange,
|
|
16500
16809
|
_props$reasonList = props.reasonList,
|
|
16501
16810
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16502
16811
|
disabled = props.disabled,
|
|
16503
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
16812
|
+
other = _objectWithoutProperties(props, _excluded$g);
|
|
16504
16813
|
var valueRef = useRef({});
|
|
16505
16814
|
useEffect(function () {
|
|
16506
16815
|
pubsub.subscribe('returnSelectList', function (_, data) {
|
|
@@ -16813,7 +17122,7 @@ var kmUtils = {
|
|
|
16813
17122
|
getOrderListSingleton: getOrderListSingleton
|
|
16814
17123
|
};
|
|
16815
17124
|
|
|
16816
|
-
var _excluded$
|
|
17125
|
+
var _excluded$h = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16817
17126
|
var columnsMap = {
|
|
16818
17127
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16819
17128
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16832,7 +17141,7 @@ var rowKeyMap = {
|
|
|
16832
17141
|
GY_SYSTEM_ORDER: 'billNo',
|
|
16833
17142
|
JST_SYSTEM_ORDER: 'oId'
|
|
16834
17143
|
};
|
|
16835
|
-
var index$
|
|
17144
|
+
var index$2 = (function (props) {
|
|
16836
17145
|
var value = props.value,
|
|
16837
17146
|
_onChange = props.onChange,
|
|
16838
17147
|
disabled = props.disabled,
|
|
@@ -17087,7 +17396,7 @@ var index$1 = (function (props) {
|
|
|
17087
17396
|
deliveryState = _ref10.deliveryState,
|
|
17088
17397
|
vipCode = _ref10.vipCode,
|
|
17089
17398
|
shopCode = _ref10.shopCode,
|
|
17090
|
-
rest = _objectWithoutProperties(_ref10, _excluded$
|
|
17399
|
+
rest = _objectWithoutProperties(_ref10, _excluded$h);
|
|
17091
17400
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
17092
17401
|
billNo: billNo,
|
|
17093
17402
|
billType: billType,
|
|
@@ -17794,7 +18103,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17794
18103
|
})));
|
|
17795
18104
|
};
|
|
17796
18105
|
|
|
17797
|
-
var _excluded$
|
|
18106
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17798
18107
|
var typeMap$1 = {
|
|
17799
18108
|
WDT_REISSUE_GOODS: {
|
|
17800
18109
|
key: 'wdtReissueGoods',
|
|
@@ -17822,7 +18131,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17822
18131
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17823
18132
|
disabled = props.disabled,
|
|
17824
18133
|
type = props.type,
|
|
17825
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18134
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17826
18135
|
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
|
|
17827
18136
|
var _order$srcTid;
|
|
17828
18137
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -18062,7 +18371,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18062
18371
|
})));
|
|
18063
18372
|
};
|
|
18064
18373
|
|
|
18065
|
-
var _excluded$
|
|
18374
|
+
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18066
18375
|
var typeMap$2 = {
|
|
18067
18376
|
JST_REISSUE_GOODS: {
|
|
18068
18377
|
compType: '补发',
|
|
@@ -18110,7 +18419,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18110
18419
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18111
18420
|
disabled = props.disabled,
|
|
18112
18421
|
type = props.type,
|
|
18113
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18422
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
18114
18423
|
var getOrderFlag = useRef(false);
|
|
18115
18424
|
var _useState = useState(false),
|
|
18116
18425
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18363,8 +18672,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
18363
18672
|
})));
|
|
18364
18673
|
};
|
|
18365
18674
|
|
|
18366
|
-
var css_248z$
|
|
18367
|
-
styleInject(css_248z$
|
|
18675
|
+
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";
|
|
18676
|
+
styleInject(css_248z$b);
|
|
18368
18677
|
|
|
18369
18678
|
var TabPane$1 = Tabs.TabPane;
|
|
18370
18679
|
var Option$2 = Select.Option;
|
|
@@ -18837,14 +19146,14 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18837
19146
|
userNick: userNick
|
|
18838
19147
|
}));
|
|
18839
19148
|
};
|
|
18840
|
-
var index$
|
|
19149
|
+
var index$3 = /*#__PURE__*/forwardRef(Goods$1);
|
|
18841
19150
|
|
|
18842
|
-
var _excluded$
|
|
19151
|
+
var _excluded$k = ["onChange", "value", "failValue"];
|
|
18843
19152
|
function CommonStatus(props) {
|
|
18844
19153
|
var onChange = props.onChange,
|
|
18845
19154
|
value = props.value,
|
|
18846
19155
|
failValue = props.failValue,
|
|
18847
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19156
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18848
19157
|
var changeHandle = function changeHandle(val) {
|
|
18849
19158
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18850
19159
|
status: val,
|
|
@@ -18981,7 +19290,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18981
19290
|
})) : null) : null);
|
|
18982
19291
|
};
|
|
18983
19292
|
|
|
18984
|
-
var _excluded$
|
|
19293
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18985
19294
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18986
19295
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18987
19296
|
var _props$value = props.value,
|
|
@@ -18991,7 +19300,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18991
19300
|
failValue = props.failValue,
|
|
18992
19301
|
_props$type = props.type,
|
|
18993
19302
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18994
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19303
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
18995
19304
|
var _useState = useState(0),
|
|
18996
19305
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18997
19306
|
changeIndex = _useState2[0],
|
|
@@ -19057,7 +19366,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
19057
19366
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
19058
19367
|
};
|
|
19059
19368
|
|
|
19060
|
-
var _excluded$
|
|
19369
|
+
var _excluded$m = ["value", "onChange", "disabled", "failValue", "type"];
|
|
19061
19370
|
var MsgStatus = function MsgStatus(props) {
|
|
19062
19371
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
19063
19372
|
var _props$value = props.value,
|
|
@@ -19067,7 +19376,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19067
19376
|
failValue = props.failValue,
|
|
19068
19377
|
_props$type = props.type,
|
|
19069
19378
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
19070
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19379
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
19071
19380
|
var _useState = useState(0),
|
|
19072
19381
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19073
19382
|
changeIndex = _useState2[0],
|
|
@@ -19136,7 +19445,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
19136
19445
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
19137
19446
|
};
|
|
19138
19447
|
|
|
19139
|
-
var _excluded$
|
|
19448
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19140
19449
|
var typeMap$3 = {
|
|
19141
19450
|
BS_E3_REISSUE_GOODS: {
|
|
19142
19451
|
key: 'bsE3ReissueGoods',
|
|
@@ -19154,7 +19463,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19154
19463
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19155
19464
|
disabled = props.disabled,
|
|
19156
19465
|
type = props.type,
|
|
19157
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19466
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
19158
19467
|
var getOrderFlag = useRef(false);
|
|
19159
19468
|
var valueRef = useRef(null);
|
|
19160
19469
|
var _useState = useState(false),
|
|
@@ -19372,7 +19681,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19372
19681
|
})));
|
|
19373
19682
|
};
|
|
19374
19683
|
|
|
19375
|
-
var _excluded$
|
|
19684
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19376
19685
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19377
19686
|
var typeMap$4 = {
|
|
19378
19687
|
GY_REISSUE_GOODS: {
|
|
@@ -19401,7 +19710,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19401
19710
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19402
19711
|
disabled = props.disabled,
|
|
19403
19712
|
type = props.type,
|
|
19404
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19713
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19405
19714
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19406
19715
|
// order?.platformCode?.includes(';'),
|
|
19407
19716
|
// );
|
|
@@ -19645,7 +19954,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19645
19954
|
})));
|
|
19646
19955
|
};
|
|
19647
19956
|
|
|
19648
|
-
var _excluded$
|
|
19957
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19649
19958
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19650
19959
|
var typeMap$5 = {
|
|
19651
19960
|
GY_RETURN_GOODS: {
|
|
@@ -19674,7 +19983,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19674
19983
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19675
19984
|
disabled = props.disabled,
|
|
19676
19985
|
type = props.type,
|
|
19677
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19986
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19678
19987
|
var valueRef = useRef({});
|
|
19679
19988
|
var getOrderFlag = useRef(false);
|
|
19680
19989
|
var _useState = useState(false),
|
|
@@ -19935,4 +20244,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19935
20244
|
})));
|
|
19936
20245
|
};
|
|
19937
20246
|
|
|
19938
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$
|
|
20247
|
+
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 };
|