@kmkf-fe-packages/basic-components 0.6.3-alpha.4 → 0.6.3-alpha.45
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/README.md +1 -1
- package/dist/apaas/ApaasAddress/index.d.ts +2 -1
- package/dist/apaas/ApaasCascader/index.d.ts +2 -1
- package/dist/apaas/ApaasCheckbox/index.d.ts +2 -1
- package/dist/apaas/ApaasDate/index.d.ts +2 -1
- package/dist/apaas/ApaasInput/index.d.ts +2 -1
- package/dist/apaas/ApaasInputNumber/index.d.ts +2 -1
- package/dist/apaas/ApaasMultipleSelect/index.d.ts +2 -1
- package/dist/apaas/ApaasSelect/index.d.ts +2 -1
- package/dist/apaas/ApaasTextArea/index.d.ts +2 -1
- package/dist/apaas/ApaasUpload/index.d.ts +2 -1
- package/dist/apaas/ApaasUploadAsync/index.d.ts +2 -1
- package/dist/apaas/hoc/withFormItem.d.ts +1 -1
- package/dist/basics/FormItem/index.d.ts +2 -1
- package/dist/business/AliPay/index.d.ts +2 -1
- package/dist/business/BuyerNick/index.d.ts +2 -1
- package/dist/business/ChooseBaby/index.d.ts +2 -1
- package/dist/business/ExpressLogistics/index.d.ts +2 -1
- package/dist/business/Invoice/index.d.ts +2 -1
- package/dist/business/LogisticsInterception/index.d.ts +5 -4
- package/dist/business/Payment/index.d.ts +2 -1
- package/dist/business/Remark/index.d.ts +2 -1
- package/dist/business/ShopName/index.d.ts +2 -1
- package/dist/business/Status/index.d.ts +10 -1
- package/dist/business/Supplier/index.d.ts +2 -1
- package/dist/business/TBGoodId/index.d.ts +2 -1
- package/dist/business/TBGoodSerial/index.d.ts +2 -1
- package/dist/business/TradeId/index.d.ts +2 -1
- package/dist/common/ExpressCompany/index.d.ts +2 -1
- package/dist/common/Goods/goodModel.d.ts +2 -1
- package/dist/common/Goods/index.d.ts +2 -1
- package/dist/common/GoodsTable/goodModel.d.ts +2 -1
- package/dist/common/Logistics/index.d.ts +2 -1
- package/dist/config/utils.d.ts +0 -1
- package/dist/index.esm.js +167 -198
- package/dist/index.js +167 -198
- package/dist/jst/Goods/index.d.ts +2 -1
- package/dist/jst/ItemList/index.d.ts +2 -1
- package/package.json +9 -4
package/dist/index.esm.js
CHANGED
|
@@ -2,6 +2,7 @@ import React, { useRef, useState, useEffect, useMemo, forwardRef, useImperativeH
|
|
|
2
2
|
import { Cascader, DatePicker, Input, InputNumber, Select, Upload, Image, message, Radio, Space, Spin, Checkbox, Row, Col, Slider, Rate, Form, Tabs, Modal, Button, ConfigProvider, Pagination, Popover } from 'antd';
|
|
3
3
|
import { EyeOutlined, DeleteOutlined } from '@ant-design/icons';
|
|
4
4
|
import request, { extend } from 'umi-request';
|
|
5
|
+
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
5
6
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
6
7
|
|
|
7
8
|
function _iterableToArrayLimit(arr, i) {
|
|
@@ -498,6 +499,7 @@ var ApaasDate = function ApaasDate(props) {
|
|
|
498
499
|
|
|
499
500
|
var _excluded$1 = ["isNumber", "replaceWarn"];
|
|
500
501
|
function ApaasInput(props) {
|
|
502
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
501
503
|
var isNumber = props.isNumber,
|
|
502
504
|
replaceWarn = props.replaceWarn,
|
|
503
505
|
other = _objectWithoutProperties(props, _excluded$1);
|
|
@@ -510,6 +512,7 @@ function ApaasInputNumber(props) {
|
|
|
510
512
|
|
|
511
513
|
var _excluded$2 = ["options", "basicMultSelect"];
|
|
512
514
|
function ApaasSelect(props) {
|
|
515
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
513
516
|
var _props$options = props.options,
|
|
514
517
|
options = _props$options === void 0 ? [] : _props$options,
|
|
515
518
|
basicMultSelect = props.basicMultSelect,
|
|
@@ -579,8 +582,8 @@ var styles = {"imageBox":"index-module_imageBox__3tOEt","inputImage":"index-modu
|
|
|
579
582
|
styleInject(css_248z);
|
|
580
583
|
|
|
581
584
|
var _excluded$4 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "canPreview", "disabled"];
|
|
582
|
-
var fn = function fn(
|
|
583
|
-
|
|
585
|
+
var fn = function fn() {
|
|
586
|
+
return void 0;
|
|
584
587
|
};
|
|
585
588
|
var getBase64 = function getBase64(file) {
|
|
586
589
|
return new Promise(function (resolve, reject) {
|
|
@@ -594,24 +597,24 @@ var getBase64 = function getBase64(file) {
|
|
|
594
597
|
};
|
|
595
598
|
});
|
|
596
599
|
};
|
|
597
|
-
var ApaasUpload = function ApaasUpload(
|
|
598
|
-
var
|
|
599
|
-
maxCount =
|
|
600
|
-
|
|
601
|
-
maxSize =
|
|
602
|
-
|
|
603
|
-
uploadText =
|
|
604
|
-
|
|
605
|
-
onChange =
|
|
606
|
-
|
|
607
|
-
value =
|
|
608
|
-
|
|
609
|
-
accept =
|
|
610
|
-
|
|
611
|
-
canPreview =
|
|
612
|
-
|
|
613
|
-
disabled =
|
|
614
|
-
resetProps = _objectWithoutProperties(
|
|
600
|
+
var ApaasUpload = function ApaasUpload(_ref) {
|
|
601
|
+
var _ref$maxCount = _ref.maxCount,
|
|
602
|
+
maxCount = _ref$maxCount === void 0 ? 10 : _ref$maxCount,
|
|
603
|
+
_ref$maxSize = _ref.maxSize,
|
|
604
|
+
maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
|
|
605
|
+
_ref$uploadText = _ref.uploadText,
|
|
606
|
+
uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
|
|
607
|
+
_ref$onChange = _ref.onChange,
|
|
608
|
+
onChange = _ref$onChange === void 0 ? fn : _ref$onChange,
|
|
609
|
+
_ref$value = _ref.value,
|
|
610
|
+
value = _ref$value === void 0 ? [] : _ref$value,
|
|
611
|
+
_ref$accept = _ref.accept,
|
|
612
|
+
accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
|
|
613
|
+
_ref$canPreview = _ref.canPreview,
|
|
614
|
+
canPreview = _ref$canPreview === void 0 ? false : _ref$canPreview,
|
|
615
|
+
_ref$disabled = _ref.disabled,
|
|
616
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
617
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
615
618
|
var inputRef = useRef(null);
|
|
616
619
|
var valueRef = useRef(value);
|
|
617
620
|
var _useState = useState(false),
|
|
@@ -652,8 +655,8 @@ var ApaasUpload = function ApaasUpload(_ref3) {
|
|
|
652
655
|
onChange(list);
|
|
653
656
|
};
|
|
654
657
|
var clipboardDataChange = function clipboardDataChange(e) {
|
|
655
|
-
var clipboardData = e.clipboardData || window.clipboardData
|
|
656
|
-
|
|
658
|
+
var clipboardData = e.clipboardData || window.clipboardData;
|
|
659
|
+
var i = 0,
|
|
657
660
|
items,
|
|
658
661
|
item,
|
|
659
662
|
types;
|
|
@@ -852,37 +855,6 @@ function ApaasRadio(props) {
|
|
|
852
855
|
}))));
|
|
853
856
|
}
|
|
854
857
|
|
|
855
|
-
/*
|
|
856
|
-
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
857
|
-
* @Date: 2022-09-20 14:29:14
|
|
858
|
-
* @LastEditors: litian
|
|
859
|
-
* @LastEditTime: 2022-09-27 13:49:32
|
|
860
|
-
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/config/utils.ts
|
|
861
|
-
* @Description:
|
|
862
|
-
*
|
|
863
|
-
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
864
|
-
*/
|
|
865
|
-
//组装地址
|
|
866
|
-
var toTree = function toTree() {
|
|
867
|
-
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
868
|
-
var parId = arguments.length > 1 ? arguments[1] : undefined;
|
|
869
|
-
var len = list === null || list === void 0 ? void 0 : list.length;
|
|
870
|
-
function loop(parId) {
|
|
871
|
-
var res = [];
|
|
872
|
-
for (var i = 0; i < len; i++) {
|
|
873
|
-
var item = list[i];
|
|
874
|
-
if (item.parentId === Number(parId)) {
|
|
875
|
-
item.children = loop(item.id);
|
|
876
|
-
res.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
877
|
-
label: item.name,
|
|
878
|
-
value: item.id
|
|
879
|
-
}));
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
return res;
|
|
883
|
-
}
|
|
884
|
-
return loop(parId);
|
|
885
|
-
};
|
|
886
858
|
var keepDecimals = function keepDecimals(value) {
|
|
887
859
|
value = value.replace(/[^\d.]/g, ''); //清除"数字"和"."以外的字符
|
|
888
860
|
value = value.replace(/^\./g, ''); //验证第一个字符是数字
|
|
@@ -911,32 +883,32 @@ var styles$1 = {"imageBox":"index-module_imageBox__8zj7A","inputImage":"index-mo
|
|
|
911
883
|
styleInject(css_248z$1);
|
|
912
884
|
|
|
913
885
|
var _excluded$6 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "canPreview", "disabled", "uniqueKey", "hostUrl", "actionUrl"];
|
|
914
|
-
var fn$1 = function fn(
|
|
915
|
-
|
|
886
|
+
var fn$1 = function fn() {
|
|
887
|
+
return void 0;
|
|
916
888
|
};
|
|
917
|
-
var ApaasUploadAsync = function ApaasUploadAsync(
|
|
918
|
-
var
|
|
919
|
-
maxCount =
|
|
920
|
-
|
|
921
|
-
maxSize =
|
|
922
|
-
|
|
923
|
-
uploadText =
|
|
924
|
-
|
|
925
|
-
onChange =
|
|
926
|
-
|
|
927
|
-
value =
|
|
928
|
-
|
|
929
|
-
accept =
|
|
930
|
-
|
|
931
|
-
canPreview =
|
|
932
|
-
|
|
933
|
-
disabled =
|
|
934
|
-
uniqueKey =
|
|
935
|
-
|
|
936
|
-
hostUrl =
|
|
937
|
-
|
|
938
|
-
actionUrl =
|
|
939
|
-
resetProps = _objectWithoutProperties(
|
|
889
|
+
var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
|
|
890
|
+
var _ref$maxCount = _ref.maxCount,
|
|
891
|
+
maxCount = _ref$maxCount === void 0 ? 10 : _ref$maxCount,
|
|
892
|
+
_ref$maxSize = _ref.maxSize,
|
|
893
|
+
maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
|
|
894
|
+
_ref$uploadText = _ref.uploadText,
|
|
895
|
+
uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
|
|
896
|
+
_ref$onChange = _ref.onChange,
|
|
897
|
+
onChange = _ref$onChange === void 0 ? fn$1 : _ref$onChange,
|
|
898
|
+
_ref$value = _ref.value,
|
|
899
|
+
value = _ref$value === void 0 ? [] : _ref$value,
|
|
900
|
+
_ref$accept = _ref.accept,
|
|
901
|
+
accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
|
|
902
|
+
_ref$canPreview = _ref.canPreview,
|
|
903
|
+
canPreview = _ref$canPreview === void 0 ? false : _ref$canPreview,
|
|
904
|
+
_ref$disabled = _ref.disabled,
|
|
905
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
906
|
+
uniqueKey = _ref.uniqueKey,
|
|
907
|
+
_ref$hostUrl = _ref.hostUrl,
|
|
908
|
+
hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
|
|
909
|
+
_ref$actionUrl = _ref.actionUrl,
|
|
910
|
+
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
911
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
940
912
|
var inputRef = useRef(null);
|
|
941
913
|
var valueRef = useRef(value);
|
|
942
914
|
var _useState = useState(false),
|
|
@@ -959,7 +931,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
|
|
|
959
931
|
valueRef.current = value;
|
|
960
932
|
}, [value]);
|
|
961
933
|
var asyncUpload = /*#__PURE__*/function () {
|
|
962
|
-
var
|
|
934
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
963
935
|
var _valueRef$current;
|
|
964
936
|
var formData, fileName, _yield$request, success, data;
|
|
965
937
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -1000,7 +972,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
|
|
|
1000
972
|
}, _callee, null, [[5, 14, 17, 20]]);
|
|
1001
973
|
}));
|
|
1002
974
|
return function asyncUpload(_x) {
|
|
1003
|
-
return
|
|
975
|
+
return _ref2.apply(this, arguments);
|
|
1004
976
|
};
|
|
1005
977
|
}();
|
|
1006
978
|
var imgReader = function imgReader(item) {
|
|
@@ -1015,7 +987,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
|
|
|
1015
987
|
return;
|
|
1016
988
|
}
|
|
1017
989
|
reader.onload = /*#__PURE__*/function () {
|
|
1018
|
-
var
|
|
990
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
1019
991
|
var _e$target, _valueRef$current2;
|
|
1020
992
|
var result, fileName, file;
|
|
1021
993
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -1032,7 +1004,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
|
|
|
1032
1004
|
}, _callee2);
|
|
1033
1005
|
}));
|
|
1034
1006
|
return function (_x2) {
|
|
1035
|
-
return
|
|
1007
|
+
return _ref3.apply(this, arguments);
|
|
1036
1008
|
};
|
|
1037
1009
|
}();
|
|
1038
1010
|
reader.readAsDataURL(blob);
|
|
@@ -1042,8 +1014,8 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
|
|
|
1042
1014
|
onChange(list);
|
|
1043
1015
|
};
|
|
1044
1016
|
var clipboardDataChange = function clipboardDataChange(e) {
|
|
1045
|
-
var clipboardData = e.clipboardData || window.clipboardData
|
|
1046
|
-
|
|
1017
|
+
var clipboardData = e.clipboardData || window.clipboardData;
|
|
1018
|
+
var i = 0,
|
|
1047
1019
|
items,
|
|
1048
1020
|
item,
|
|
1049
1021
|
types;
|
|
@@ -1188,7 +1160,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
|
|
|
1188
1160
|
})));
|
|
1189
1161
|
};
|
|
1190
1162
|
|
|
1191
|
-
var _excluded$7 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"
|
|
1163
|
+
var _excluded$7 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"];
|
|
1192
1164
|
function ApaasCheckbox(props) {
|
|
1193
1165
|
var showOther = props.showOther,
|
|
1194
1166
|
_props$horizontal = props.horizontal,
|
|
@@ -1199,7 +1171,6 @@ function ApaasCheckbox(props) {
|
|
|
1199
1171
|
value = _props$value === void 0 ? {} : _props$value,
|
|
1200
1172
|
onChange = props.onChange,
|
|
1201
1173
|
disabled = props.disabled,
|
|
1202
|
-
checkboxOther = props.checkboxOther,
|
|
1203
1174
|
otherProps = _objectWithoutProperties(props, _excluded$7);
|
|
1204
1175
|
var checkboxValue = value.value,
|
|
1205
1176
|
other = value.other;
|
|
@@ -1361,18 +1332,7 @@ function ApaasRate(props) {
|
|
|
1361
1332
|
}));
|
|
1362
1333
|
}
|
|
1363
1334
|
|
|
1364
|
-
|
|
1365
|
-
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
1366
|
-
* @Date: 2022-09-13 11:06:09
|
|
1367
|
-
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
|
1368
|
-
* @LastEditTime: 2022-11-04 15:55:10
|
|
1369
|
-
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/common/request.ts
|
|
1370
|
-
* @Description:
|
|
1371
|
-
*
|
|
1372
|
-
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
1373
|
-
*/
|
|
1374
|
-
var extendRequest = extend({});
|
|
1375
|
-
|
|
1335
|
+
var address = AddressData.getInstance();
|
|
1376
1336
|
var Province = function Province(props) {
|
|
1377
1337
|
var _useState = useState([]),
|
|
1378
1338
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1381,35 +1341,11 @@ var Province = function Province(props) {
|
|
|
1381
1341
|
var isFirst = useRef(false);
|
|
1382
1342
|
var initPageSource = /*#__PURE__*/function () {
|
|
1383
1343
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1384
|
-
var apaasAddress, apaasSaveTime, isExpire, _yield$request, list, arr;
|
|
1385
1344
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1386
1345
|
while (1) switch (_context.prev = _context.next) {
|
|
1387
1346
|
case 0:
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
isExpire = apaasSaveTime ? Number(apaasSaveTime) + 7 * 3600 * 24 * 1000 < new Date().getTime() : true;
|
|
1391
|
-
if (!(apaasAddress && !isExpire)) {
|
|
1392
|
-
_context.next = 6;
|
|
1393
|
-
break;
|
|
1394
|
-
}
|
|
1395
|
-
setOptions(JSON.parse(apaasAddress));
|
|
1396
|
-
return _context.abrupt("return");
|
|
1397
|
-
case 6:
|
|
1398
|
-
_context.next = 8;
|
|
1399
|
-
return extendRequest('/qy/gdfw/template/queryAreas', {
|
|
1400
|
-
method: 'get',
|
|
1401
|
-
params: {
|
|
1402
|
-
apiName: 'queryAreas'
|
|
1403
|
-
}
|
|
1404
|
-
});
|
|
1405
|
-
case 8:
|
|
1406
|
-
_yield$request = _context.sent;
|
|
1407
|
-
list = _yield$request.data;
|
|
1408
|
-
arr = toTree(list, 0);
|
|
1409
|
-
setOptions(arr[0].children);
|
|
1410
|
-
window.localStorage.setItem('apaasAddress', JSON.stringify(arr[0].children));
|
|
1411
|
-
window.localStorage.setItem('apaasSaveTime', new Date().getTime().toString());
|
|
1412
|
-
case 14:
|
|
1347
|
+
setOptions(address.addressOptions || []);
|
|
1348
|
+
case 1:
|
|
1413
1349
|
case "end":
|
|
1414
1350
|
return _context.stop();
|
|
1415
1351
|
}
|
|
@@ -1507,15 +1443,11 @@ var ShopNameSelect = function ShopNameSelect(props) {
|
|
|
1507
1443
|
disabled = props.disabled,
|
|
1508
1444
|
style = props.style;
|
|
1509
1445
|
var _useState = useState([]),
|
|
1510
|
-
_useState2 = _slicedToArray(_useState,
|
|
1511
|
-
options = _useState2[0]
|
|
1512
|
-
setOptions = _useState2[1];
|
|
1446
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
1447
|
+
options = _useState2[0];
|
|
1513
1448
|
var handleChange = function handleChange(value) {
|
|
1514
1449
|
onChange === null || onChange === void 0 ? void 0 : onChange(value);
|
|
1515
1450
|
};
|
|
1516
|
-
useEffect(function () {
|
|
1517
|
-
// initDataSource();
|
|
1518
|
-
}, []);
|
|
1519
1451
|
return /*#__PURE__*/React.createElement(Select, {
|
|
1520
1452
|
defaultValue: value,
|
|
1521
1453
|
disabled: disabled,
|
|
@@ -1540,7 +1472,7 @@ function ApaasAddress(props) {
|
|
|
1540
1472
|
var value = props.value,
|
|
1541
1473
|
onChange = props.onChange,
|
|
1542
1474
|
disabled = props.disabled;
|
|
1543
|
-
var changeCity = function changeCity(city
|
|
1475
|
+
var changeCity = function changeCity(city) {
|
|
1544
1476
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
1545
1477
|
address: city
|
|
1546
1478
|
}));
|
|
@@ -1690,7 +1622,6 @@ var AliPay = function AliPay(props) {
|
|
|
1690
1622
|
var changeValue = function changeValue(e, type) {
|
|
1691
1623
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value)));
|
|
1692
1624
|
};
|
|
1693
|
-
useEffect(function () {}, []);
|
|
1694
1625
|
return /*#__PURE__*/React.createElement("div", null, !isSingle ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
|
|
1695
1626
|
disabled: disabled,
|
|
1696
1627
|
placeholder: "\u8BF7\u8F93\u5165\u652F\u4ED8\u5B9D\u540D\u79F0",
|
|
@@ -1717,6 +1648,18 @@ var AliPay = function AliPay(props) {
|
|
|
1717
1648
|
})));
|
|
1718
1649
|
};
|
|
1719
1650
|
|
|
1651
|
+
/*
|
|
1652
|
+
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
1653
|
+
* @Date: 2022-09-13 11:06:09
|
|
1654
|
+
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
|
1655
|
+
* @LastEditTime: 2022-11-04 15:55:10
|
|
1656
|
+
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/common/request.ts
|
|
1657
|
+
* @Description:
|
|
1658
|
+
*
|
|
1659
|
+
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
1660
|
+
*/
|
|
1661
|
+
var extendRequest = extend({});
|
|
1662
|
+
|
|
1720
1663
|
var css_248z$4 = ".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";
|
|
1721
1664
|
styleInject(css_248z$4);
|
|
1722
1665
|
|
|
@@ -2232,8 +2175,7 @@ var Sku = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2232
2175
|
useImperativeHandle(ref, function () {
|
|
2233
2176
|
return {
|
|
2234
2177
|
open: function open(_ref) {
|
|
2235
|
-
var
|
|
2236
|
-
numIids = _ref.numIids,
|
|
2178
|
+
var numIids = _ref.numIids,
|
|
2237
2179
|
options = _ref.options;
|
|
2238
2180
|
setVisible(true);
|
|
2239
2181
|
setSku('');
|
|
@@ -2373,19 +2315,14 @@ var Goods = function Goods(props) {
|
|
|
2373
2315
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2374
2316
|
visible = _useState2[0],
|
|
2375
2317
|
setVisible = _useState2[1];
|
|
2376
|
-
var _useState3 = useState(
|
|
2318
|
+
var _useState3 = useState(0),
|
|
2377
2319
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
var _useState5 = useState(0),
|
|
2381
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
2382
|
-
uploadImageCount = _useState6[0],
|
|
2383
|
-
setUploadImageCount = _useState6[1];
|
|
2320
|
+
uploadImageCount = _useState4[0],
|
|
2321
|
+
setUploadImageCount = _useState4[1];
|
|
2384
2322
|
var skuRef = useRef();
|
|
2385
|
-
var
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
setEditVisible = _useState8[1];
|
|
2323
|
+
var _useState5 = useState(false),
|
|
2324
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
2325
|
+
setEditVisible = _useState6[1];
|
|
2389
2326
|
// onChange事件会修改imgList里的字段,所以保存初始化的imglist值
|
|
2390
2327
|
if (!imgListConstant.length) {
|
|
2391
2328
|
imgListConstant = JSON.parse(JSON.stringify(imgList));
|
|
@@ -2791,7 +2728,7 @@ var Invoice = function Invoice(props) {
|
|
|
2791
2728
|
*/
|
|
2792
2729
|
var handleChange = /*#__PURE__*/function () {
|
|
2793
2730
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ordinaryTaitou) {
|
|
2794
|
-
var data,
|
|
2731
|
+
var data, _list, newList, index, element, kpName, idx;
|
|
2795
2732
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2796
2733
|
while (1) switch (_context2.prev = _context2.next) {
|
|
2797
2734
|
case 0:
|
|
@@ -2812,16 +2749,16 @@ var Invoice = function Invoice(props) {
|
|
|
2812
2749
|
_context2.next = 16;
|
|
2813
2750
|
break;
|
|
2814
2751
|
}
|
|
2815
|
-
|
|
2816
|
-
if (
|
|
2752
|
+
_list = data.data ? data.data.info || [] : [];
|
|
2753
|
+
if (_list.length) {
|
|
2817
2754
|
_context2.next = 10;
|
|
2818
2755
|
break;
|
|
2819
2756
|
}
|
|
2820
2757
|
return _context2.abrupt("return");
|
|
2821
2758
|
case 10:
|
|
2822
2759
|
newList = [];
|
|
2823
|
-
for (index = 0; index <
|
|
2824
|
-
element =
|
|
2760
|
+
for (index = 0; index < _list.length; index++) {
|
|
2761
|
+
element = _list[index];
|
|
2825
2762
|
kpName = element.kpName;
|
|
2826
2763
|
idx = kpName.indexOf(ordinaryTaitou);
|
|
2827
2764
|
element.kpName1 = kpName.substring(0, idx);
|
|
@@ -3121,6 +3058,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3121
3058
|
value = _props$value === void 0 ? {} : _props$value,
|
|
3122
3059
|
_props$logisticsOptio = props.logisticsOptions,
|
|
3123
3060
|
logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
|
|
3061
|
+
_props$expressInterce = props.expressInterceptData,
|
|
3062
|
+
expressInterceptData = _props$expressInterce === void 0 ? [] : _props$expressInterce,
|
|
3124
3063
|
_props$required = props.required,
|
|
3125
3064
|
required = _props$required === void 0 ? false : _props$required,
|
|
3126
3065
|
onChange = props.onChange,
|
|
@@ -3128,41 +3067,61 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3128
3067
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
3129
3068
|
_props$isEditing = props.isEditing,
|
|
3130
3069
|
isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
|
|
3131
|
-
var _useState = useState(
|
|
3070
|
+
var _useState = useState(''),
|
|
3132
3071
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3133
|
-
|
|
3134
|
-
|
|
3072
|
+
initCompany = _useState2[0],
|
|
3073
|
+
setInitCompany = _useState2[1];
|
|
3135
3074
|
var _useState3 = useState([]),
|
|
3136
3075
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
var _useState5 = useState(
|
|
3076
|
+
typeOptions = _useState4[0],
|
|
3077
|
+
setTypeOptions = _useState4[1];
|
|
3078
|
+
var _useState5 = useState([]),
|
|
3140
3079
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
var
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
return item.value === (value === null || value === void 0 ? void 0 : value.interceptStatus) && (item === null || item === void 0 ? void 0 : item.showInterceptionBtn);
|
|
3149
|
-
});
|
|
3150
|
-
return isEditing && (value === null || value === void 0 ? void 0 : value.interceptStatus) ? INTERCEPTING && isEditing : true;
|
|
3151
|
-
}, [value, statusOptions, isInterface, isEditing]);
|
|
3080
|
+
statusOptions = _useState6[0],
|
|
3081
|
+
setStatusOptions = _useState6[1];
|
|
3082
|
+
var _useState7 = useState(false),
|
|
3083
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
3084
|
+
isInterface = _useState8[0],
|
|
3085
|
+
setIsInterface = _useState8[1];
|
|
3086
|
+
var firstIn = useRef(true);
|
|
3152
3087
|
useEffect(function () {
|
|
3088
|
+
//存入第一次的物流地址,防止非对接物流切换成对接物流后无法编辑
|
|
3089
|
+
if (firstIn.current && JSON.stringify(value) !== '{}') {
|
|
3090
|
+
setInitCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3091
|
+
firstIn.current = false;
|
|
3092
|
+
}
|
|
3153
3093
|
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
3154
3094
|
setTypeOptions([]);
|
|
3155
3095
|
setStatusOptions([]);
|
|
3156
3096
|
setIsInterface(false);
|
|
3157
3097
|
return;
|
|
3158
3098
|
}
|
|
3159
|
-
var interceptCompany =
|
|
3160
|
-
return item.
|
|
3099
|
+
var interceptCompany = expressInterceptData.find(function (item) {
|
|
3100
|
+
return item.value === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3161
3101
|
});
|
|
3162
3102
|
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3163
|
-
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.
|
|
3103
|
+
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.logisticsStatusList) || []);
|
|
3164
3104
|
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3165
3105
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3106
|
+
//拦截类型切换 需要清空新派送地
|
|
3107
|
+
useEffect(function () {
|
|
3108
|
+
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) return;
|
|
3109
|
+
var interceptCompany = expressInterceptData.find(function (item) {
|
|
3110
|
+
return item.value === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3111
|
+
});
|
|
3112
|
+
var showAddress = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).some(function (item) {
|
|
3113
|
+
var _item$config;
|
|
3114
|
+
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType) && (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.showAddress);
|
|
3115
|
+
});
|
|
3116
|
+
if (!showAddress) {
|
|
3117
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
3118
|
+
interceptAddress: [],
|
|
3119
|
+
interceptDetail: '',
|
|
3120
|
+
interceptReceiverName: '',
|
|
3121
|
+
interceptReceiverMobile: ''
|
|
3122
|
+
}));
|
|
3123
|
+
}
|
|
3124
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptType]);
|
|
3166
3125
|
//是否展示新地址
|
|
3167
3126
|
var showNewAddress = useMemo(function () {
|
|
3168
3127
|
var _find, _find$config;
|
|
@@ -3170,18 +3129,32 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3170
3129
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3171
3130
|
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3172
3131
|
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3132
|
+
//判断是否能修改物流信息
|
|
3133
|
+
var canEdit = useMemo(function () {
|
|
3134
|
+
var company = expressInterceptData.find(function (item) {
|
|
3135
|
+
return item.value === initCompany;
|
|
3136
|
+
});
|
|
3137
|
+
return isEditing && !!(company === null || company === void 0 ? void 0 : company.isInterface);
|
|
3138
|
+
}, [isEditing, initCompany]);
|
|
3173
3139
|
var changeHandle = function changeHandle(val, type) {
|
|
3174
3140
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
3175
3141
|
if (type === 'interceptCompany') {
|
|
3142
|
+
var interceptCompany = expressInterceptData.find(function (item) {
|
|
3143
|
+
return item.value === val;
|
|
3144
|
+
});
|
|
3145
|
+
var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
3146
|
+
var _item$config2;
|
|
3147
|
+
return item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : _item$config2.isDefault;
|
|
3148
|
+
});
|
|
3176
3149
|
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3177
3150
|
interceptCompany: val,
|
|
3178
|
-
interceptType:
|
|
3151
|
+
interceptType: returnValue === null || returnValue === void 0 ? void 0 : returnValue.value,
|
|
3179
3152
|
interceptAddress: [],
|
|
3180
|
-
interceptDetail:
|
|
3181
|
-
interceptReceiverName:
|
|
3182
|
-
interceptReceiverMobile:
|
|
3183
|
-
|
|
3184
|
-
|
|
3153
|
+
interceptDetail: undefined,
|
|
3154
|
+
interceptReceiverName: undefined,
|
|
3155
|
+
interceptReceiverMobile: undefined,
|
|
3156
|
+
interceptLogisticsStatus: undefined,
|
|
3157
|
+
interceptLogisticsStatusOther: undefined
|
|
3185
3158
|
});
|
|
3186
3159
|
}
|
|
3187
3160
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -3191,10 +3164,10 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3191
3164
|
required: required,
|
|
3192
3165
|
key: 'logistics'
|
|
3193
3166
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
|
|
3194
|
-
disabled: disabled ||
|
|
3167
|
+
disabled: disabled || canEdit,
|
|
3195
3168
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3196
3169
|
style: {
|
|
3197
|
-
width: '
|
|
3170
|
+
width: '150px'
|
|
3198
3171
|
},
|
|
3199
3172
|
onChange: function onChange(val) {
|
|
3200
3173
|
return changeHandle(val, 'interceptCompany');
|
|
@@ -3206,7 +3179,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3206
3179
|
return option.label.includes(input);
|
|
3207
3180
|
}
|
|
3208
3181
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3209
|
-
disabled: disabled ||
|
|
3182
|
+
disabled: disabled || canEdit,
|
|
3210
3183
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3211
3184
|
onChange: function onChange(e) {
|
|
3212
3185
|
return changeHandle(e.target.value, 'interceptCode');
|
|
@@ -3217,7 +3190,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3217
3190
|
required: required,
|
|
3218
3191
|
key: 'interceptType'
|
|
3219
3192
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
3220
|
-
disabled: disabled ||
|
|
3193
|
+
disabled: disabled || canEdit,
|
|
3221
3194
|
style: {
|
|
3222
3195
|
width: '200px'
|
|
3223
3196
|
},
|
|
@@ -3242,34 +3215,31 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3242
3215
|
return changeHandle(val, 'interceptAddress');
|
|
3243
3216
|
},
|
|
3244
3217
|
options: [],
|
|
3245
|
-
disabled: disabled ||
|
|
3218
|
+
disabled: disabled || canEdit
|
|
3246
3219
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3247
3220
|
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3248
|
-
disabled: disabled ||
|
|
3221
|
+
disabled: disabled || canEdit,
|
|
3249
3222
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3250
3223
|
onChange: function onChange(e) {
|
|
3251
3224
|
return changeHandle(e.target.value, 'interceptDetail');
|
|
3252
3225
|
}
|
|
3253
3226
|
})), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
3254
3227
|
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3255
|
-
disabled: disabled ||
|
|
3256
|
-
style: {
|
|
3257
|
-
width: '200px'
|
|
3258
|
-
},
|
|
3228
|
+
disabled: disabled || canEdit,
|
|
3259
3229
|
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3260
3230
|
onChange: function onChange(e) {
|
|
3261
3231
|
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3262
3232
|
}
|
|
3263
3233
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3264
3234
|
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3265
|
-
disabled: disabled ||
|
|
3235
|
+
disabled: disabled || canEdit,
|
|
3266
3236
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3267
3237
|
onChange: function onChange(e) {
|
|
3268
3238
|
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3269
3239
|
}
|
|
3270
3240
|
}))), /*#__PURE__*/React.createElement(Item, {
|
|
3271
|
-
label: '
|
|
3272
|
-
key: '
|
|
3241
|
+
label: '物流状态',
|
|
3242
|
+
key: 'interceptLogisticsStatus'
|
|
3273
3243
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
3274
3244
|
disabled: disabled || isInterface,
|
|
3275
3245
|
style: {
|
|
@@ -3277,22 +3247,22 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3277
3247
|
},
|
|
3278
3248
|
options: statusOptions,
|
|
3279
3249
|
onChange: function onChange(val) {
|
|
3280
|
-
return changeHandle(val, '
|
|
3250
|
+
return changeHandle(val, 'interceptLogisticsStatus');
|
|
3281
3251
|
},
|
|
3282
|
-
value: value === null || value === void 0 ? void 0 : value.
|
|
3283
|
-
placeholder: "\
|
|
3252
|
+
value: value === null || value === void 0 ? void 0 : value.interceptLogisticsStatus,
|
|
3253
|
+
placeholder: "\u7269\u6D41\u72B6\u6001",
|
|
3284
3254
|
showSearch: true,
|
|
3285
3255
|
filterOption: function filterOption(input, option) {
|
|
3286
3256
|
return option.label.includes(input);
|
|
3287
3257
|
}
|
|
3288
|
-
}), (value === null || value === void 0 ? void 0 : value.
|
|
3289
|
-
disabled: disabled || canEdit,
|
|
3258
|
+
}), (value === null || value === void 0 ? void 0 : value.interceptLogisticsStatus) === 'OTHER' && /*#__PURE__*/React.createElement(Input, {
|
|
3259
|
+
disabled: disabled || !canEdit,
|
|
3290
3260
|
style: {
|
|
3291
3261
|
width: '200px'
|
|
3292
3262
|
},
|
|
3293
3263
|
placeholder: "\u5176\u4ED6",
|
|
3294
3264
|
onChange: function onChange(e) {
|
|
3295
|
-
return changeHandle(e.target.value, '
|
|
3265
|
+
return changeHandle(e.target.value, 'interceptLogisticsStatusOther');
|
|
3296
3266
|
}
|
|
3297
3267
|
})));
|
|
3298
3268
|
};
|
|
@@ -3552,9 +3522,8 @@ var GoodsModal$1 = function GoodsModal(props) {
|
|
|
3552
3522
|
tab: '已选择',
|
|
3553
3523
|
key: 'all'
|
|
3554
3524
|
}]),
|
|
3555
|
-
_useState18 = _slicedToArray(_useState17,
|
|
3556
|
-
tabs = _useState18[0]
|
|
3557
|
-
setTabs = _useState18[1];
|
|
3525
|
+
_useState18 = _slicedToArray(_useState17, 1),
|
|
3526
|
+
tabs = _useState18[0];
|
|
3558
3527
|
var _useState19 = useState([{
|
|
3559
3528
|
name: '上架时间',
|
|
3560
3529
|
value: 'list_time'
|