@kmkf-fe-packages/basic-components 0.6.3-alpha.39 → 0.6.3-alpha.44
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/business/LogisticsInterception/index.d.ts +2 -3
- package/dist/config/utils.d.ts +0 -1
- package/dist/index.esm.js +38 -101
- package/dist/index.js +38 -101
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@ interface LogisticsInterceptionValueType {
|
|
|
7
7
|
interceptDetail: string;
|
|
8
8
|
interceptReceiverName: string;
|
|
9
9
|
interceptReceiverMobile: string;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
interceptLogisticsStatus: string | number;
|
|
11
|
+
interceptLogisticsStatusOther: string;
|
|
12
12
|
}
|
|
13
13
|
interface LogisticsInterceptionProps {
|
|
14
14
|
value: Partial<LogisticsInterceptionValueType>;
|
|
@@ -17,7 +17,6 @@ interface LogisticsInterceptionProps {
|
|
|
17
17
|
required: boolean;
|
|
18
18
|
disabled: boolean;
|
|
19
19
|
isEditing: boolean;
|
|
20
|
-
logisticsInterceptHandleStatus: string;
|
|
21
20
|
onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
|
|
22
21
|
}
|
|
23
22
|
declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => React.JSX.Element;
|
package/dist/config/utils.d.ts
CHANGED
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) {
|
|
@@ -854,37 +855,6 @@ function ApaasRadio(props) {
|
|
|
854
855
|
}))));
|
|
855
856
|
}
|
|
856
857
|
|
|
857
|
-
/*
|
|
858
|
-
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
859
|
-
* @Date: 2022-09-20 14:29:14
|
|
860
|
-
* @LastEditors: litian
|
|
861
|
-
* @LastEditTime: 2022-09-27 13:49:32
|
|
862
|
-
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/config/utils.ts
|
|
863
|
-
* @Description:
|
|
864
|
-
*
|
|
865
|
-
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
866
|
-
*/
|
|
867
|
-
//组装地址
|
|
868
|
-
var toTree = function toTree() {
|
|
869
|
-
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
870
|
-
var parId = arguments.length > 1 ? arguments[1] : undefined;
|
|
871
|
-
var len = list === null || list === void 0 ? void 0 : list.length;
|
|
872
|
-
function loop(parId) {
|
|
873
|
-
var res = [];
|
|
874
|
-
for (var i = 0; i < len; i++) {
|
|
875
|
-
var item = list[i];
|
|
876
|
-
if (item.parentId === Number(parId)) {
|
|
877
|
-
item.children = loop(item.id);
|
|
878
|
-
res.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
879
|
-
label: item.name,
|
|
880
|
-
value: item.id
|
|
881
|
-
}));
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
return res;
|
|
885
|
-
}
|
|
886
|
-
return loop(parId);
|
|
887
|
-
};
|
|
888
858
|
var keepDecimals = function keepDecimals(value) {
|
|
889
859
|
value = value.replace(/[^\d.]/g, ''); //清除"数字"和"."以外的字符
|
|
890
860
|
value = value.replace(/^\./g, ''); //验证第一个字符是数字
|
|
@@ -1362,18 +1332,7 @@ function ApaasRate(props) {
|
|
|
1362
1332
|
}));
|
|
1363
1333
|
}
|
|
1364
1334
|
|
|
1365
|
-
|
|
1366
|
-
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
1367
|
-
* @Date: 2022-09-13 11:06:09
|
|
1368
|
-
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
|
1369
|
-
* @LastEditTime: 2022-11-04 15:55:10
|
|
1370
|
-
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/common/request.ts
|
|
1371
|
-
* @Description:
|
|
1372
|
-
*
|
|
1373
|
-
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
1374
|
-
*/
|
|
1375
|
-
var extendRequest = extend({});
|
|
1376
|
-
|
|
1335
|
+
var address = AddressData.getInstance();
|
|
1377
1336
|
var Province = function Province(props) {
|
|
1378
1337
|
var _useState = useState([]),
|
|
1379
1338
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1382,35 +1341,11 @@ var Province = function Province(props) {
|
|
|
1382
1341
|
var isFirst = useRef(false);
|
|
1383
1342
|
var initPageSource = /*#__PURE__*/function () {
|
|
1384
1343
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1385
|
-
var apaasAddress, apaasSaveTime, isExpire, _yield$request, list, arr;
|
|
1386
1344
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1387
1345
|
while (1) switch (_context.prev = _context.next) {
|
|
1388
1346
|
case 0:
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
isExpire = apaasSaveTime ? Number(apaasSaveTime) + 7 * 3600 * 24 * 1000 < new Date().getTime() : true;
|
|
1392
|
-
if (!(apaasAddress && !isExpire)) {
|
|
1393
|
-
_context.next = 6;
|
|
1394
|
-
break;
|
|
1395
|
-
}
|
|
1396
|
-
setOptions(JSON.parse(apaasAddress));
|
|
1397
|
-
return _context.abrupt("return");
|
|
1398
|
-
case 6:
|
|
1399
|
-
_context.next = 8;
|
|
1400
|
-
return extendRequest('/qy/gdfw/template/queryAreas', {
|
|
1401
|
-
method: 'get',
|
|
1402
|
-
params: {
|
|
1403
|
-
apiName: 'queryAreas'
|
|
1404
|
-
}
|
|
1405
|
-
});
|
|
1406
|
-
case 8:
|
|
1407
|
-
_yield$request = _context.sent;
|
|
1408
|
-
list = _yield$request.data;
|
|
1409
|
-
arr = toTree(list, 0);
|
|
1410
|
-
setOptions(arr[0].children);
|
|
1411
|
-
window.localStorage.setItem('apaasAddress', JSON.stringify(arr[0].children));
|
|
1412
|
-
window.localStorage.setItem('apaasSaveTime', new Date().getTime().toString());
|
|
1413
|
-
case 14:
|
|
1347
|
+
setOptions(address.addressOptions || []);
|
|
1348
|
+
case 1:
|
|
1414
1349
|
case "end":
|
|
1415
1350
|
return _context.stop();
|
|
1416
1351
|
}
|
|
@@ -1713,6 +1648,18 @@ var AliPay = function AliPay(props) {
|
|
|
1713
1648
|
})));
|
|
1714
1649
|
};
|
|
1715
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
|
+
|
|
1716
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";
|
|
1717
1664
|
styleInject(css_248z$4);
|
|
1718
1665
|
|
|
@@ -3119,8 +3066,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3119
3066
|
_props$disabled = props.disabled,
|
|
3120
3067
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
3121
3068
|
_props$isEditing = props.isEditing,
|
|
3122
|
-
isEditing = _props$isEditing === void 0 ? false : _props$isEditing
|
|
3123
|
-
logisticsInterceptHandleStatus = props.logisticsInterceptHandleStatus;
|
|
3069
|
+
isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
|
|
3124
3070
|
var _useState = useState(''),
|
|
3125
3071
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3126
3072
|
initCompany = _useState2[0],
|
|
@@ -3140,7 +3086,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3140
3086
|
var firstIn = useRef(true);
|
|
3141
3087
|
useEffect(function () {
|
|
3142
3088
|
//存入第一次的物流地址,防止非对接物流切换成对接物流后无法编辑
|
|
3143
|
-
if (firstIn.current && (value
|
|
3089
|
+
if (firstIn.current && JSON.stringify(value) !== '{}') {
|
|
3144
3090
|
setInitCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3145
3091
|
firstIn.current = false;
|
|
3146
3092
|
}
|
|
@@ -3154,7 +3100,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3154
3100
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3155
3101
|
});
|
|
3156
3102
|
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3157
|
-
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.
|
|
3103
|
+
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.logisticsStatusList) || []);
|
|
3158
3104
|
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3159
3105
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3160
3106
|
//拦截类型切换 需要清空新派送地
|
|
@@ -3183,18 +3129,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3183
3129
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3184
3130
|
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3185
3131
|
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3186
|
-
//判断是否能修改信息
|
|
3187
|
-
var canEdit = useMemo(function () {
|
|
3188
|
-
// 已对接公司如果拦截状态为【拦截中】,可以修改物流拦截组件信息,否则该组件不能修改;
|
|
3189
|
-
// 非对接公司可以修改组件
|
|
3190
|
-
// 修改后把工单信息重新提交给快递公司,清空拦截状态的值
|
|
3191
|
-
if (!isInterface) return true;
|
|
3192
|
-
//已对接公司在拦截中可以修改
|
|
3193
|
-
var INTERCEPTING = !logisticsInterceptHandleStatus || logisticsInterceptHandleStatus === 'INTERCEPTING';
|
|
3194
|
-
return isEditing ? INTERCEPTING : true;
|
|
3195
|
-
}, [value === null || value === void 0 ? void 0 : value.interceptCompany, statusOptions, isInterface, isEditing]);
|
|
3196
3132
|
//判断是否能修改物流信息
|
|
3197
|
-
var
|
|
3133
|
+
var canEdit = useMemo(function () {
|
|
3198
3134
|
var company = expressInterceptData.find(function (item) {
|
|
3199
3135
|
return item.value === initCompany;
|
|
3200
3136
|
});
|
|
@@ -3207,7 +3143,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3207
3143
|
return item.value === val;
|
|
3208
3144
|
});
|
|
3209
3145
|
var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
3210
|
-
|
|
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;
|
|
3211
3148
|
});
|
|
3212
3149
|
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3213
3150
|
interceptCompany: val,
|
|
@@ -3216,8 +3153,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3216
3153
|
interceptDetail: undefined,
|
|
3217
3154
|
interceptReceiverName: undefined,
|
|
3218
3155
|
interceptReceiverMobile: undefined,
|
|
3219
|
-
|
|
3220
|
-
|
|
3156
|
+
interceptLogisticsStatus: undefined,
|
|
3157
|
+
interceptLogisticsStatusOther: undefined
|
|
3221
3158
|
});
|
|
3222
3159
|
}
|
|
3223
3160
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -3227,7 +3164,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3227
3164
|
required: required,
|
|
3228
3165
|
key: 'logistics'
|
|
3229
3166
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
|
|
3230
|
-
disabled: disabled ||
|
|
3167
|
+
disabled: disabled || canEdit,
|
|
3231
3168
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3232
3169
|
style: {
|
|
3233
3170
|
width: '150px'
|
|
@@ -3242,7 +3179,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3242
3179
|
return option.label.includes(input);
|
|
3243
3180
|
}
|
|
3244
3181
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3245
|
-
disabled: disabled ||
|
|
3182
|
+
disabled: disabled || canEdit,
|
|
3246
3183
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3247
3184
|
onChange: function onChange(e) {
|
|
3248
3185
|
return changeHandle(e.target.value, 'interceptCode');
|
|
@@ -3253,7 +3190,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3253
3190
|
required: required,
|
|
3254
3191
|
key: 'interceptType'
|
|
3255
3192
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
3256
|
-
disabled: disabled ||
|
|
3193
|
+
disabled: disabled || canEdit,
|
|
3257
3194
|
style: {
|
|
3258
3195
|
width: '200px'
|
|
3259
3196
|
},
|
|
@@ -3278,31 +3215,31 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3278
3215
|
return changeHandle(val, 'interceptAddress');
|
|
3279
3216
|
},
|
|
3280
3217
|
options: [],
|
|
3281
|
-
disabled: disabled ||
|
|
3218
|
+
disabled: disabled || canEdit
|
|
3282
3219
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3283
3220
|
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3284
|
-
disabled: disabled ||
|
|
3221
|
+
disabled: disabled || canEdit,
|
|
3285
3222
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3286
3223
|
onChange: function onChange(e) {
|
|
3287
3224
|
return changeHandle(e.target.value, 'interceptDetail');
|
|
3288
3225
|
}
|
|
3289
3226
|
})), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
3290
3227
|
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3291
|
-
disabled: disabled ||
|
|
3228
|
+
disabled: disabled || canEdit,
|
|
3292
3229
|
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3293
3230
|
onChange: function onChange(e) {
|
|
3294
3231
|
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3295
3232
|
}
|
|
3296
3233
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3297
3234
|
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3298
|
-
disabled: disabled ||
|
|
3235
|
+
disabled: disabled || canEdit,
|
|
3299
3236
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3300
3237
|
onChange: function onChange(e) {
|
|
3301
3238
|
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3302
3239
|
}
|
|
3303
3240
|
}))), /*#__PURE__*/React.createElement(Item, {
|
|
3304
|
-
label: '
|
|
3305
|
-
key: '
|
|
3241
|
+
label: '物流状态',
|
|
3242
|
+
key: 'interceptLogisticsStatus'
|
|
3306
3243
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
3307
3244
|
disabled: disabled || isInterface,
|
|
3308
3245
|
style: {
|
|
@@ -3310,22 +3247,22 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3310
3247
|
},
|
|
3311
3248
|
options: statusOptions,
|
|
3312
3249
|
onChange: function onChange(val) {
|
|
3313
|
-
return changeHandle(val, '
|
|
3250
|
+
return changeHandle(val, 'interceptLogisticsStatus');
|
|
3314
3251
|
},
|
|
3315
|
-
value: value === null || value === void 0 ? void 0 : value.
|
|
3316
|
-
placeholder: "\
|
|
3252
|
+
value: value === null || value === void 0 ? void 0 : value.interceptLogisticsStatus,
|
|
3253
|
+
placeholder: "\u7269\u6D41\u72B6\u6001",
|
|
3317
3254
|
showSearch: true,
|
|
3318
3255
|
filterOption: function filterOption(input, option) {
|
|
3319
3256
|
return option.label.includes(input);
|
|
3320
3257
|
}
|
|
3321
|
-
}), (value === null || value === void 0 ? void 0 : value.
|
|
3258
|
+
}), (value === null || value === void 0 ? void 0 : value.interceptLogisticsStatus) === 'OTHER' && /*#__PURE__*/React.createElement(Input, {
|
|
3322
3259
|
disabled: disabled || !canEdit,
|
|
3323
3260
|
style: {
|
|
3324
3261
|
width: '200px'
|
|
3325
3262
|
},
|
|
3326
3263
|
placeholder: "\u5176\u4ED6",
|
|
3327
3264
|
onChange: function onChange(e) {
|
|
3328
|
-
return changeHandle(e.target.value, '
|
|
3265
|
+
return changeHandle(e.target.value, 'interceptLogisticsStatusOther');
|
|
3329
3266
|
}
|
|
3330
3267
|
})));
|
|
3331
3268
|
};
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var antd = require('antd');
|
|
7
7
|
var icons = require('@ant-design/icons');
|
|
8
8
|
var request = require('umi-request');
|
|
9
|
+
var kmkfUtils = require('@kmkf-fe-packages/kmkf-utils');
|
|
9
10
|
var zhCN = require('antd/lib/locale/zh_CN');
|
|
10
11
|
|
|
11
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -864,37 +865,6 @@ function ApaasRadio(props) {
|
|
|
864
865
|
}))));
|
|
865
866
|
}
|
|
866
867
|
|
|
867
|
-
/*
|
|
868
|
-
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
869
|
-
* @Date: 2022-09-20 14:29:14
|
|
870
|
-
* @LastEditors: litian
|
|
871
|
-
* @LastEditTime: 2022-09-27 13:49:32
|
|
872
|
-
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/config/utils.ts
|
|
873
|
-
* @Description:
|
|
874
|
-
*
|
|
875
|
-
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
876
|
-
*/
|
|
877
|
-
//组装地址
|
|
878
|
-
var toTree = function toTree() {
|
|
879
|
-
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
880
|
-
var parId = arguments.length > 1 ? arguments[1] : undefined;
|
|
881
|
-
var len = list === null || list === void 0 ? void 0 : list.length;
|
|
882
|
-
function loop(parId) {
|
|
883
|
-
var res = [];
|
|
884
|
-
for (var i = 0; i < len; i++) {
|
|
885
|
-
var item = list[i];
|
|
886
|
-
if (item.parentId === Number(parId)) {
|
|
887
|
-
item.children = loop(item.id);
|
|
888
|
-
res.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
889
|
-
label: item.name,
|
|
890
|
-
value: item.id
|
|
891
|
-
}));
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
return res;
|
|
895
|
-
}
|
|
896
|
-
return loop(parId);
|
|
897
|
-
};
|
|
898
868
|
var keepDecimals = function keepDecimals(value) {
|
|
899
869
|
value = value.replace(/[^\d.]/g, ''); //清除"数字"和"."以外的字符
|
|
900
870
|
value = value.replace(/^\./g, ''); //验证第一个字符是数字
|
|
@@ -1372,18 +1342,7 @@ function ApaasRate(props) {
|
|
|
1372
1342
|
}));
|
|
1373
1343
|
}
|
|
1374
1344
|
|
|
1375
|
-
|
|
1376
|
-
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
1377
|
-
* @Date: 2022-09-13 11:06:09
|
|
1378
|
-
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
|
1379
|
-
* @LastEditTime: 2022-11-04 15:55:10
|
|
1380
|
-
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/common/request.ts
|
|
1381
|
-
* @Description:
|
|
1382
|
-
*
|
|
1383
|
-
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
1384
|
-
*/
|
|
1385
|
-
var extendRequest = request.extend({});
|
|
1386
|
-
|
|
1345
|
+
var address = kmkfUtils.AddressData.getInstance();
|
|
1387
1346
|
var Province = function Province(props) {
|
|
1388
1347
|
var _useState = React.useState([]),
|
|
1389
1348
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1392,35 +1351,11 @@ var Province = function Province(props) {
|
|
|
1392
1351
|
var isFirst = React.useRef(false);
|
|
1393
1352
|
var initPageSource = /*#__PURE__*/function () {
|
|
1394
1353
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1395
|
-
var apaasAddress, apaasSaveTime, isExpire, _yield$request, list, arr;
|
|
1396
1354
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1397
1355
|
while (1) switch (_context.prev = _context.next) {
|
|
1398
1356
|
case 0:
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
isExpire = apaasSaveTime ? Number(apaasSaveTime) + 7 * 3600 * 24 * 1000 < new Date().getTime() : true;
|
|
1402
|
-
if (!(apaasAddress && !isExpire)) {
|
|
1403
|
-
_context.next = 6;
|
|
1404
|
-
break;
|
|
1405
|
-
}
|
|
1406
|
-
setOptions(JSON.parse(apaasAddress));
|
|
1407
|
-
return _context.abrupt("return");
|
|
1408
|
-
case 6:
|
|
1409
|
-
_context.next = 8;
|
|
1410
|
-
return extendRequest('/qy/gdfw/template/queryAreas', {
|
|
1411
|
-
method: 'get',
|
|
1412
|
-
params: {
|
|
1413
|
-
apiName: 'queryAreas'
|
|
1414
|
-
}
|
|
1415
|
-
});
|
|
1416
|
-
case 8:
|
|
1417
|
-
_yield$request = _context.sent;
|
|
1418
|
-
list = _yield$request.data;
|
|
1419
|
-
arr = toTree(list, 0);
|
|
1420
|
-
setOptions(arr[0].children);
|
|
1421
|
-
window.localStorage.setItem('apaasAddress', JSON.stringify(arr[0].children));
|
|
1422
|
-
window.localStorage.setItem('apaasSaveTime', new Date().getTime().toString());
|
|
1423
|
-
case 14:
|
|
1357
|
+
setOptions(address.addressOptions || []);
|
|
1358
|
+
case 1:
|
|
1424
1359
|
case "end":
|
|
1425
1360
|
return _context.stop();
|
|
1426
1361
|
}
|
|
@@ -1723,6 +1658,18 @@ var AliPay = function AliPay(props) {
|
|
|
1723
1658
|
})));
|
|
1724
1659
|
};
|
|
1725
1660
|
|
|
1661
|
+
/*
|
|
1662
|
+
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
|
1663
|
+
* @Date: 2022-09-13 11:06:09
|
|
1664
|
+
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
|
1665
|
+
* @LastEditTime: 2022-11-04 15:55:10
|
|
1666
|
+
* @FilePath: /raycloud-apaas-fe-setup/packages/apaas-react-basics-widgets/src/common/request.ts
|
|
1667
|
+
* @Description:
|
|
1668
|
+
*
|
|
1669
|
+
* Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
|
|
1670
|
+
*/
|
|
1671
|
+
var extendRequest = request.extend({});
|
|
1672
|
+
|
|
1726
1673
|
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";
|
|
1727
1674
|
styleInject(css_248z$4);
|
|
1728
1675
|
|
|
@@ -3129,8 +3076,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3129
3076
|
_props$disabled = props.disabled,
|
|
3130
3077
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
3131
3078
|
_props$isEditing = props.isEditing,
|
|
3132
|
-
isEditing = _props$isEditing === void 0 ? false : _props$isEditing
|
|
3133
|
-
logisticsInterceptHandleStatus = props.logisticsInterceptHandleStatus;
|
|
3079
|
+
isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
|
|
3134
3080
|
var _useState = React.useState(''),
|
|
3135
3081
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3136
3082
|
initCompany = _useState2[0],
|
|
@@ -3150,7 +3096,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3150
3096
|
var firstIn = React.useRef(true);
|
|
3151
3097
|
React.useEffect(function () {
|
|
3152
3098
|
//存入第一次的物流地址,防止非对接物流切换成对接物流后无法编辑
|
|
3153
|
-
if (firstIn.current && (value
|
|
3099
|
+
if (firstIn.current && JSON.stringify(value) !== '{}') {
|
|
3154
3100
|
setInitCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3155
3101
|
firstIn.current = false;
|
|
3156
3102
|
}
|
|
@@ -3164,7 +3110,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3164
3110
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3165
3111
|
});
|
|
3166
3112
|
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3167
|
-
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.
|
|
3113
|
+
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.logisticsStatusList) || []);
|
|
3168
3114
|
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3169
3115
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3170
3116
|
//拦截类型切换 需要清空新派送地
|
|
@@ -3193,18 +3139,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3193
3139
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3194
3140
|
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3195
3141
|
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3196
|
-
//判断是否能修改信息
|
|
3197
|
-
var canEdit = React.useMemo(function () {
|
|
3198
|
-
// 已对接公司如果拦截状态为【拦截中】,可以修改物流拦截组件信息,否则该组件不能修改;
|
|
3199
|
-
// 非对接公司可以修改组件
|
|
3200
|
-
// 修改后把工单信息重新提交给快递公司,清空拦截状态的值
|
|
3201
|
-
if (!isInterface) return true;
|
|
3202
|
-
//已对接公司在拦截中可以修改
|
|
3203
|
-
var INTERCEPTING = !logisticsInterceptHandleStatus || logisticsInterceptHandleStatus === 'INTERCEPTING';
|
|
3204
|
-
return isEditing ? INTERCEPTING : true;
|
|
3205
|
-
}, [value === null || value === void 0 ? void 0 : value.interceptCompany, statusOptions, isInterface, isEditing]);
|
|
3206
3142
|
//判断是否能修改物流信息
|
|
3207
|
-
var
|
|
3143
|
+
var canEdit = React.useMemo(function () {
|
|
3208
3144
|
var company = expressInterceptData.find(function (item) {
|
|
3209
3145
|
return item.value === initCompany;
|
|
3210
3146
|
});
|
|
@@ -3217,7 +3153,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3217
3153
|
return item.value === val;
|
|
3218
3154
|
});
|
|
3219
3155
|
var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
3220
|
-
|
|
3156
|
+
var _item$config2;
|
|
3157
|
+
return item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : _item$config2.isDefault;
|
|
3221
3158
|
});
|
|
3222
3159
|
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3223
3160
|
interceptCompany: val,
|
|
@@ -3226,8 +3163,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3226
3163
|
interceptDetail: undefined,
|
|
3227
3164
|
interceptReceiverName: undefined,
|
|
3228
3165
|
interceptReceiverMobile: undefined,
|
|
3229
|
-
|
|
3230
|
-
|
|
3166
|
+
interceptLogisticsStatus: undefined,
|
|
3167
|
+
interceptLogisticsStatusOther: undefined
|
|
3231
3168
|
});
|
|
3232
3169
|
}
|
|
3233
3170
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -3237,7 +3174,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3237
3174
|
required: required,
|
|
3238
3175
|
key: 'logistics'
|
|
3239
3176
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3240
|
-
disabled: disabled ||
|
|
3177
|
+
disabled: disabled || canEdit,
|
|
3241
3178
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3242
3179
|
style: {
|
|
3243
3180
|
width: '150px'
|
|
@@ -3252,7 +3189,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3252
3189
|
return option.label.includes(input);
|
|
3253
3190
|
}
|
|
3254
3191
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3255
|
-
disabled: disabled ||
|
|
3192
|
+
disabled: disabled || canEdit,
|
|
3256
3193
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3257
3194
|
onChange: function onChange(e) {
|
|
3258
3195
|
return changeHandle(e.target.value, 'interceptCode');
|
|
@@ -3263,7 +3200,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3263
3200
|
required: required,
|
|
3264
3201
|
key: 'interceptType'
|
|
3265
3202
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3266
|
-
disabled: disabled ||
|
|
3203
|
+
disabled: disabled || canEdit,
|
|
3267
3204
|
style: {
|
|
3268
3205
|
width: '200px'
|
|
3269
3206
|
},
|
|
@@ -3288,31 +3225,31 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3288
3225
|
return changeHandle(val, 'interceptAddress');
|
|
3289
3226
|
},
|
|
3290
3227
|
options: [],
|
|
3291
|
-
disabled: disabled ||
|
|
3228
|
+
disabled: disabled || canEdit
|
|
3292
3229
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3293
3230
|
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3294
|
-
disabled: disabled ||
|
|
3231
|
+
disabled: disabled || canEdit,
|
|
3295
3232
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3296
3233
|
onChange: function onChange(e) {
|
|
3297
3234
|
return changeHandle(e.target.value, 'interceptDetail');
|
|
3298
3235
|
}
|
|
3299
3236
|
})), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3300
3237
|
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3301
|
-
disabled: disabled ||
|
|
3238
|
+
disabled: disabled || canEdit,
|
|
3302
3239
|
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3303
3240
|
onChange: function onChange(e) {
|
|
3304
3241
|
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3305
3242
|
}
|
|
3306
3243
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3307
3244
|
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3308
|
-
disabled: disabled ||
|
|
3245
|
+
disabled: disabled || canEdit,
|
|
3309
3246
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3310
3247
|
onChange: function onChange(e) {
|
|
3311
3248
|
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3312
3249
|
}
|
|
3313
3250
|
}))), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3314
|
-
label: '
|
|
3315
|
-
key: '
|
|
3251
|
+
label: '物流状态',
|
|
3252
|
+
key: 'interceptLogisticsStatus'
|
|
3316
3253
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3317
3254
|
disabled: disabled || isInterface,
|
|
3318
3255
|
style: {
|
|
@@ -3320,22 +3257,22 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3320
3257
|
},
|
|
3321
3258
|
options: statusOptions,
|
|
3322
3259
|
onChange: function onChange(val) {
|
|
3323
|
-
return changeHandle(val, '
|
|
3260
|
+
return changeHandle(val, 'interceptLogisticsStatus');
|
|
3324
3261
|
},
|
|
3325
|
-
value: value === null || value === void 0 ? void 0 : value.
|
|
3326
|
-
placeholder: "\
|
|
3262
|
+
value: value === null || value === void 0 ? void 0 : value.interceptLogisticsStatus,
|
|
3263
|
+
placeholder: "\u7269\u6D41\u72B6\u6001",
|
|
3327
3264
|
showSearch: true,
|
|
3328
3265
|
filterOption: function filterOption(input, option) {
|
|
3329
3266
|
return option.label.includes(input);
|
|
3330
3267
|
}
|
|
3331
|
-
}), (value === null || value === void 0 ? void 0 : value.
|
|
3268
|
+
}), (value === null || value === void 0 ? void 0 : value.interceptLogisticsStatus) === 'OTHER' && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3332
3269
|
disabled: disabled || !canEdit,
|
|
3333
3270
|
style: {
|
|
3334
3271
|
width: '200px'
|
|
3335
3272
|
},
|
|
3336
3273
|
placeholder: "\u5176\u4ED6",
|
|
3337
3274
|
onChange: function onChange(e) {
|
|
3338
|
-
return changeHandle(e.target.value, '
|
|
3275
|
+
return changeHandle(e.target.value, 'interceptLogisticsStatusOther');
|
|
3339
3276
|
}
|
|
3340
3277
|
})));
|
|
3341
3278
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.6.3-alpha.
|
|
3
|
+
"version": "0.6.3-alpha.44",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.6.3-alpha.44",
|
|
22
23
|
"umi-request": "^1.4.0"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
@@ -41,5 +42,5 @@
|
|
|
41
42
|
"publishConfig": {
|
|
42
43
|
"access": "public"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "cbdb203dd7951559af410da4c7a1d2339bd45878"
|
|
45
46
|
}
|