@kmkf-fe-packages/basic-components 0.7.15-alpha.83 → 0.7.15-alpha.85
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 +77 -24
- package/dist/index.js +76 -22
- package/dist/src/apaas/ApaasLogistics/index.d.ts +8 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useRef, useState, useEffect, useMemo, forwardRef, useImperativeH
|
|
|
2
2
|
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Checkbox, Row, Col, Slider, Rate, Button, Form, Tabs, Modal, ConfigProvider, Pagination, Popover, Table } from 'antd';
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, InboxOutlined } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
|
-
import { AddressData, BsAddressData, request as request$1, LogisticsAddressData, uuid } from '@kmkf-fe-packages/kmkf-utils';
|
|
5
|
+
import { AddressData, BsAddressData, request as request$1, ExpressData, LogisticsAddressData, uuid } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
6
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
7
7
|
import pubsub from 'pubsub-js';
|
|
8
8
|
import { cloneDeep } from 'lodash';
|
|
@@ -7329,7 +7329,48 @@ function ApaasPosting(props) {
|
|
|
7329
7329
|
});
|
|
7330
7330
|
}
|
|
7331
7331
|
|
|
7332
|
-
var _excluded$a = ["
|
|
7332
|
+
var _excluded$a = ["value", "disabled", "onChange"];
|
|
7333
|
+
var express = ExpressData.getInstance();
|
|
7334
|
+
function ApaasLogistics(props) {
|
|
7335
|
+
var value = props.value,
|
|
7336
|
+
disabled = props.disabled,
|
|
7337
|
+
onChange = props.onChange,
|
|
7338
|
+
other = _objectWithoutProperties(props, _excluded$a);
|
|
7339
|
+
var _useState = useState([]),
|
|
7340
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
7341
|
+
option = _useState2[0],
|
|
7342
|
+
setOptions = _useState2[1];
|
|
7343
|
+
var isFirst = useRef(false);
|
|
7344
|
+
var initPageSource = /*#__PURE__*/function () {
|
|
7345
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
7346
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7347
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7348
|
+
case 0:
|
|
7349
|
+
setOptions(express.expressData || []);
|
|
7350
|
+
case 1:
|
|
7351
|
+
case "end":
|
|
7352
|
+
return _context.stop();
|
|
7353
|
+
}
|
|
7354
|
+
}, _callee);
|
|
7355
|
+
}));
|
|
7356
|
+
return function initPageSource() {
|
|
7357
|
+
return _ref.apply(this, arguments);
|
|
7358
|
+
};
|
|
7359
|
+
}();
|
|
7360
|
+
useEffect(function () {
|
|
7361
|
+
if (!isFirst.current) {
|
|
7362
|
+
initPageSource();
|
|
7363
|
+
isFirst.current = true;
|
|
7364
|
+
}
|
|
7365
|
+
}, []);
|
|
7366
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7367
|
+
value: value,
|
|
7368
|
+
onChange: onChange,
|
|
7369
|
+
options: option
|
|
7370
|
+
}));
|
|
7371
|
+
}
|
|
7372
|
+
|
|
7373
|
+
var _excluded$b = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
7333
7374
|
function withFormItem(WrappedComponent) {
|
|
7334
7375
|
return function (props) {
|
|
7335
7376
|
var label = props.label,
|
|
@@ -7338,7 +7379,7 @@ function withFormItem(WrappedComponent) {
|
|
|
7338
7379
|
required = props.required,
|
|
7339
7380
|
rules = props.rules,
|
|
7340
7381
|
initialValue = props.initialValue,
|
|
7341
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7382
|
+
otherProps = _objectWithoutProperties(props, _excluded$b);
|
|
7342
7383
|
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread2({}, {
|
|
7343
7384
|
label: label,
|
|
7344
7385
|
name: name,
|
|
@@ -7388,11 +7429,18 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
7388
7429
|
};
|
|
7389
7430
|
|
|
7390
7431
|
function TradeId(props) {
|
|
7432
|
+
var onChange = props.onChange;
|
|
7433
|
+
var changeHandle = function changeHandle(e) {
|
|
7434
|
+
var _e$target$value;
|
|
7435
|
+
onChange === null || onChange === void 0 ? void 0 : onChange((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim());
|
|
7436
|
+
};
|
|
7391
7437
|
return /*#__PURE__*/React.createElement("div", {
|
|
7392
7438
|
style: {
|
|
7393
7439
|
display: 'flex'
|
|
7394
7440
|
}
|
|
7395
|
-
}, /*#__PURE__*/React.createElement(Input, _objectSpread2({}, props)
|
|
7441
|
+
}, /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7442
|
+
onChange: changeHandle
|
|
7443
|
+
})));
|
|
7396
7444
|
}
|
|
7397
7445
|
|
|
7398
7446
|
var Option = Select.Option;
|
|
@@ -7535,12 +7583,11 @@ var Logistics = function Logistics(props) {
|
|
|
7535
7583
|
};
|
|
7536
7584
|
//物流公司
|
|
7537
7585
|
var LogisticsCompany = function LogisticsCompany() {
|
|
7538
|
-
return /*#__PURE__*/React.createElement(
|
|
7586
|
+
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
7539
7587
|
disabled: disabled,
|
|
7540
7588
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
7541
7589
|
onChange: handelSelectChange,
|
|
7542
7590
|
value: (value === null || value === void 0 ? void 0 : value.company) === '' ? undefined : value === null || value === void 0 ? void 0 : value.company,
|
|
7543
|
-
options: options,
|
|
7544
7591
|
showSearch: true,
|
|
7545
7592
|
style: {
|
|
7546
7593
|
width: '100%'
|
|
@@ -7548,7 +7595,18 @@ var Logistics = function Logistics(props) {
|
|
|
7548
7595
|
filterOption: function filterOption(input, option) {
|
|
7549
7596
|
return option.label.includes(input);
|
|
7550
7597
|
}
|
|
7551
|
-
})
|
|
7598
|
+
})
|
|
7599
|
+
// <Select
|
|
7600
|
+
// disabled={disabled}
|
|
7601
|
+
// placeholder="物流公司"
|
|
7602
|
+
// onChange={handelSelectChange}
|
|
7603
|
+
// value={value?.company === '' ? undefined : value?.company}
|
|
7604
|
+
// options={options}
|
|
7605
|
+
// showSearch
|
|
7606
|
+
// style={{ width: '100%' }}
|
|
7607
|
+
// filterOption={(input, option: any) => option.label.includes(input)}
|
|
7608
|
+
// />
|
|
7609
|
+
;
|
|
7552
7610
|
};
|
|
7553
7611
|
//物流单号
|
|
7554
7612
|
var LogisticsCode = function LogisticsCode() {
|
|
@@ -9027,7 +9085,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9027
9085
|
var _props$value = props.value,
|
|
9028
9086
|
value = _props$value === void 0 ? {} : _props$value,
|
|
9029
9087
|
_props$logisticsOptio = props.logisticsOptions,
|
|
9030
|
-
logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
|
|
9031
9088
|
_props$expressInterce = props.expressInterceptData,
|
|
9032
9089
|
expressInterceptData = _props$expressInterce === void 0 ? [] : _props$expressInterce,
|
|
9033
9090
|
_props$required = props.required,
|
|
@@ -9204,7 +9261,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9204
9261
|
label: '物流信息',
|
|
9205
9262
|
required: required,
|
|
9206
9263
|
key: 'logistics'
|
|
9207
|
-
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(
|
|
9264
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
9208
9265
|
disabled: disabled || isEdit,
|
|
9209
9266
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
9210
9267
|
style: {
|
|
@@ -9214,7 +9271,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9214
9271
|
return changeHandle(val, 'interceptCompany');
|
|
9215
9272
|
},
|
|
9216
9273
|
value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
|
|
9217
|
-
options: logisticsOptions,
|
|
9218
9274
|
showSearch: true,
|
|
9219
9275
|
filterOption: function filterOption(input, option) {
|
|
9220
9276
|
return option.label.includes(input);
|
|
@@ -9389,17 +9445,16 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
9389
9445
|
};
|
|
9390
9446
|
//物流公司
|
|
9391
9447
|
var LogisticsCompany = function LogisticsCompany() {
|
|
9392
|
-
return /*#__PURE__*/React.createElement(
|
|
9393
|
-
|
|
9394
|
-
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
9448
|
+
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
9449
|
+
value: !(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? undefined : value === null || value === void 0 ? void 0 : value.trajectoryCompany,
|
|
9395
9450
|
onChange: handelSelectChange,
|
|
9396
|
-
value: (value === null || value === void 0 ? void 0 : value.trajectoryCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.trajectoryCompany,
|
|
9397
|
-
options: options,
|
|
9398
|
-
showSearch: true,
|
|
9399
9451
|
style: {
|
|
9400
9452
|
width: '100%',
|
|
9401
9453
|
marginBottom: '8px'
|
|
9402
9454
|
},
|
|
9455
|
+
disabled: disabled,
|
|
9456
|
+
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
9457
|
+
showSearch: true,
|
|
9403
9458
|
filterOption: function filterOption(input, option) {
|
|
9404
9459
|
return option.label.includes(input);
|
|
9405
9460
|
}
|
|
@@ -9458,7 +9513,6 @@ var jstGoods = function jstGoods(props) {
|
|
|
9458
9513
|
var _props$value = props.value,
|
|
9459
9514
|
value = _props$value === void 0 ? [] : _props$value,
|
|
9460
9515
|
_props$options = props.options,
|
|
9461
|
-
options = _props$options === void 0 ? [] : _props$options,
|
|
9462
9516
|
onChange = props.onChange,
|
|
9463
9517
|
disabled = props.disabled,
|
|
9464
9518
|
_props$type = props.type,
|
|
@@ -9519,14 +9573,13 @@ var jstGoods = function jstGoods(props) {
|
|
|
9519
9573
|
return setChangeIndex(index);
|
|
9520
9574
|
}
|
|
9521
9575
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
9522
|
-
}))) : null, value.length ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(
|
|
9576
|
+
}))) : null, value.length ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
9523
9577
|
disabled: disabled,
|
|
9524
9578
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
9525
9579
|
onChange: function onChange(val) {
|
|
9526
9580
|
return changeInputHandle(val, 'logisticsCompany');
|
|
9527
9581
|
},
|
|
9528
9582
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.logisticsCompany,
|
|
9529
|
-
options: options,
|
|
9530
9583
|
showSearch: true,
|
|
9531
9584
|
filterOption: function filterOption(input, option) {
|
|
9532
9585
|
return option.label.includes(input);
|
|
@@ -10274,7 +10327,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
10274
10327
|
}));
|
|
10275
10328
|
};
|
|
10276
10329
|
|
|
10277
|
-
var _excluded$
|
|
10330
|
+
var _excluded$c = ["value", "onChange", "reasonList", "disabled"];
|
|
10278
10331
|
var BsExchange = function BsExchange(props) {
|
|
10279
10332
|
var _value$bsExchangeType4, _value$bsExchangeType5, _value$bsExchangeType6;
|
|
10280
10333
|
var value = props.value,
|
|
@@ -10282,7 +10335,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
10282
10335
|
_props$reasonList = props.reasonList,
|
|
10283
10336
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
10284
10337
|
disabled = props.disabled,
|
|
10285
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
10338
|
+
other = _objectWithoutProperties(props, _excluded$c);
|
|
10286
10339
|
var valueRef = useRef({});
|
|
10287
10340
|
useEffect(function () {
|
|
10288
10341
|
valueRef.current = value;
|
|
@@ -10501,14 +10554,14 @@ var BsExchange = function BsExchange(props) {
|
|
|
10501
10554
|
}))) : null);
|
|
10502
10555
|
};
|
|
10503
10556
|
|
|
10504
|
-
var _excluded$
|
|
10557
|
+
var _excluded$d = ["value", "onChange", "reasonList", "disabled"];
|
|
10505
10558
|
var BsReissue = function BsReissue(props) {
|
|
10506
10559
|
var value = props.value,
|
|
10507
10560
|
onChange = props.onChange,
|
|
10508
10561
|
_props$reasonList = props.reasonList,
|
|
10509
10562
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
10510
10563
|
disabled = props.disabled,
|
|
10511
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
10564
|
+
other = _objectWithoutProperties(props, _excluded$d);
|
|
10512
10565
|
var valueRef = useRef({});
|
|
10513
10566
|
useEffect(function () {
|
|
10514
10567
|
pubsub.subscribe('reissueSelectList', function (_, data) {
|
|
@@ -11079,4 +11132,4 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
11079
11132
|
};
|
|
11080
11133
|
var index = /*#__PURE__*/forwardRef(Goods$1);
|
|
11081
11134
|
|
|
11082
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync, ApaasUploadAsync$1 as ApaasUploadFile, BsExchange, BsGoods, BsReissue, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsTrajectory, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId };
|
|
11135
|
+
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, ApaasUploadAsync, ApaasUploadAsync$1 as ApaasUploadFile, BsExchange, BsGoods, BsReissue, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsTrajectory, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId };
|
package/dist/index.js
CHANGED
|
@@ -7340,7 +7340,48 @@ function ApaasPosting(props) {
|
|
|
7340
7340
|
});
|
|
7341
7341
|
}
|
|
7342
7342
|
|
|
7343
|
-
var _excluded$a = ["
|
|
7343
|
+
var _excluded$a = ["value", "disabled", "onChange"];
|
|
7344
|
+
var express = kmkfUtils.ExpressData.getInstance();
|
|
7345
|
+
function ApaasLogistics(props) {
|
|
7346
|
+
var value = props.value,
|
|
7347
|
+
disabled = props.disabled,
|
|
7348
|
+
onChange = props.onChange,
|
|
7349
|
+
other = _objectWithoutProperties(props, _excluded$a);
|
|
7350
|
+
var _useState = React.useState([]),
|
|
7351
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
7352
|
+
option = _useState2[0],
|
|
7353
|
+
setOptions = _useState2[1];
|
|
7354
|
+
var isFirst = React.useRef(false);
|
|
7355
|
+
var initPageSource = /*#__PURE__*/function () {
|
|
7356
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
7357
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7358
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7359
|
+
case 0:
|
|
7360
|
+
setOptions(express.expressData || []);
|
|
7361
|
+
case 1:
|
|
7362
|
+
case "end":
|
|
7363
|
+
return _context.stop();
|
|
7364
|
+
}
|
|
7365
|
+
}, _callee);
|
|
7366
|
+
}));
|
|
7367
|
+
return function initPageSource() {
|
|
7368
|
+
return _ref.apply(this, arguments);
|
|
7369
|
+
};
|
|
7370
|
+
}();
|
|
7371
|
+
React.useEffect(function () {
|
|
7372
|
+
if (!isFirst.current) {
|
|
7373
|
+
initPageSource();
|
|
7374
|
+
isFirst.current = true;
|
|
7375
|
+
}
|
|
7376
|
+
}, []);
|
|
7377
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7378
|
+
value: value,
|
|
7379
|
+
onChange: onChange,
|
|
7380
|
+
options: option
|
|
7381
|
+
}));
|
|
7382
|
+
}
|
|
7383
|
+
|
|
7384
|
+
var _excluded$b = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
7344
7385
|
function withFormItem(WrappedComponent) {
|
|
7345
7386
|
return function (props) {
|
|
7346
7387
|
var label = props.label,
|
|
@@ -7349,7 +7390,7 @@ function withFormItem(WrappedComponent) {
|
|
|
7349
7390
|
required = props.required,
|
|
7350
7391
|
rules = props.rules,
|
|
7351
7392
|
initialValue = props.initialValue,
|
|
7352
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
7393
|
+
otherProps = _objectWithoutProperties(props, _excluded$b);
|
|
7353
7394
|
return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({}, {
|
|
7354
7395
|
label: label,
|
|
7355
7396
|
name: name,
|
|
@@ -7399,11 +7440,18 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
7399
7440
|
};
|
|
7400
7441
|
|
|
7401
7442
|
function TradeId(props) {
|
|
7443
|
+
var onChange = props.onChange;
|
|
7444
|
+
var changeHandle = function changeHandle(e) {
|
|
7445
|
+
var _e$target$value;
|
|
7446
|
+
onChange === null || onChange === void 0 ? void 0 : onChange((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim());
|
|
7447
|
+
};
|
|
7402
7448
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7403
7449
|
style: {
|
|
7404
7450
|
display: 'flex'
|
|
7405
7451
|
}
|
|
7406
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({}, props)
|
|
7452
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7453
|
+
onChange: changeHandle
|
|
7454
|
+
})));
|
|
7407
7455
|
}
|
|
7408
7456
|
|
|
7409
7457
|
var Option = antd.Select.Option;
|
|
@@ -7546,12 +7594,11 @@ var Logistics = function Logistics(props) {
|
|
|
7546
7594
|
};
|
|
7547
7595
|
//物流公司
|
|
7548
7596
|
var LogisticsCompany = function LogisticsCompany() {
|
|
7549
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
7597
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
7550
7598
|
disabled: disabled,
|
|
7551
7599
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
7552
7600
|
onChange: handelSelectChange,
|
|
7553
7601
|
value: (value === null || value === void 0 ? void 0 : value.company) === '' ? undefined : value === null || value === void 0 ? void 0 : value.company,
|
|
7554
|
-
options: options,
|
|
7555
7602
|
showSearch: true,
|
|
7556
7603
|
style: {
|
|
7557
7604
|
width: '100%'
|
|
@@ -7559,7 +7606,18 @@ var Logistics = function Logistics(props) {
|
|
|
7559
7606
|
filterOption: function filterOption(input, option) {
|
|
7560
7607
|
return option.label.includes(input);
|
|
7561
7608
|
}
|
|
7562
|
-
})
|
|
7609
|
+
})
|
|
7610
|
+
// <Select
|
|
7611
|
+
// disabled={disabled}
|
|
7612
|
+
// placeholder="物流公司"
|
|
7613
|
+
// onChange={handelSelectChange}
|
|
7614
|
+
// value={value?.company === '' ? undefined : value?.company}
|
|
7615
|
+
// options={options}
|
|
7616
|
+
// showSearch
|
|
7617
|
+
// style={{ width: '100%' }}
|
|
7618
|
+
// filterOption={(input, option: any) => option.label.includes(input)}
|
|
7619
|
+
// />
|
|
7620
|
+
;
|
|
7563
7621
|
};
|
|
7564
7622
|
//物流单号
|
|
7565
7623
|
var LogisticsCode = function LogisticsCode() {
|
|
@@ -9038,7 +9096,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9038
9096
|
var _props$value = props.value,
|
|
9039
9097
|
value = _props$value === void 0 ? {} : _props$value,
|
|
9040
9098
|
_props$logisticsOptio = props.logisticsOptions,
|
|
9041
|
-
logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
|
|
9042
9099
|
_props$expressInterce = props.expressInterceptData,
|
|
9043
9100
|
expressInterceptData = _props$expressInterce === void 0 ? [] : _props$expressInterce,
|
|
9044
9101
|
_props$required = props.required,
|
|
@@ -9215,7 +9272,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9215
9272
|
label: '物流信息',
|
|
9216
9273
|
required: required,
|
|
9217
9274
|
key: 'logistics'
|
|
9218
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(
|
|
9275
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
9219
9276
|
disabled: disabled || isEdit,
|
|
9220
9277
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
9221
9278
|
style: {
|
|
@@ -9225,7 +9282,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9225
9282
|
return changeHandle(val, 'interceptCompany');
|
|
9226
9283
|
},
|
|
9227
9284
|
value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
|
|
9228
|
-
options: logisticsOptions,
|
|
9229
9285
|
showSearch: true,
|
|
9230
9286
|
filterOption: function filterOption(input, option) {
|
|
9231
9287
|
return option.label.includes(input);
|
|
@@ -9400,17 +9456,16 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
9400
9456
|
};
|
|
9401
9457
|
//物流公司
|
|
9402
9458
|
var LogisticsCompany = function LogisticsCompany() {
|
|
9403
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
9404
|
-
|
|
9405
|
-
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
9459
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
9460
|
+
value: !(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? undefined : value === null || value === void 0 ? void 0 : value.trajectoryCompany,
|
|
9406
9461
|
onChange: handelSelectChange,
|
|
9407
|
-
value: (value === null || value === void 0 ? void 0 : value.trajectoryCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.trajectoryCompany,
|
|
9408
|
-
options: options,
|
|
9409
|
-
showSearch: true,
|
|
9410
9462
|
style: {
|
|
9411
9463
|
width: '100%',
|
|
9412
9464
|
marginBottom: '8px'
|
|
9413
9465
|
},
|
|
9466
|
+
disabled: disabled,
|
|
9467
|
+
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
9468
|
+
showSearch: true,
|
|
9414
9469
|
filterOption: function filterOption(input, option) {
|
|
9415
9470
|
return option.label.includes(input);
|
|
9416
9471
|
}
|
|
@@ -9469,7 +9524,6 @@ var jstGoods = function jstGoods(props) {
|
|
|
9469
9524
|
var _props$value = props.value,
|
|
9470
9525
|
value = _props$value === void 0 ? [] : _props$value,
|
|
9471
9526
|
_props$options = props.options,
|
|
9472
|
-
options = _props$options === void 0 ? [] : _props$options,
|
|
9473
9527
|
onChange = props.onChange,
|
|
9474
9528
|
disabled = props.disabled,
|
|
9475
9529
|
_props$type = props.type,
|
|
@@ -9530,14 +9584,13 @@ var jstGoods = function jstGoods(props) {
|
|
|
9530
9584
|
return setChangeIndex(index);
|
|
9531
9585
|
}
|
|
9532
9586
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
9533
|
-
}))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(
|
|
9587
|
+
}))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
9534
9588
|
disabled: disabled,
|
|
9535
9589
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
9536
9590
|
onChange: function onChange(val) {
|
|
9537
9591
|
return changeInputHandle(val, 'logisticsCompany');
|
|
9538
9592
|
},
|
|
9539
9593
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.logisticsCompany,
|
|
9540
|
-
options: options,
|
|
9541
9594
|
showSearch: true,
|
|
9542
9595
|
filterOption: function filterOption(input, option) {
|
|
9543
9596
|
return option.label.includes(input);
|
|
@@ -10285,7 +10338,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
10285
10338
|
}));
|
|
10286
10339
|
};
|
|
10287
10340
|
|
|
10288
|
-
var _excluded$
|
|
10341
|
+
var _excluded$c = ["value", "onChange", "reasonList", "disabled"];
|
|
10289
10342
|
var BsExchange = function BsExchange(props) {
|
|
10290
10343
|
var _value$bsExchangeType4, _value$bsExchangeType5, _value$bsExchangeType6;
|
|
10291
10344
|
var value = props.value,
|
|
@@ -10293,7 +10346,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
10293
10346
|
_props$reasonList = props.reasonList,
|
|
10294
10347
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
10295
10348
|
disabled = props.disabled,
|
|
10296
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
10349
|
+
other = _objectWithoutProperties(props, _excluded$c);
|
|
10297
10350
|
var valueRef = React.useRef({});
|
|
10298
10351
|
React.useEffect(function () {
|
|
10299
10352
|
valueRef.current = value;
|
|
@@ -10512,14 +10565,14 @@ var BsExchange = function BsExchange(props) {
|
|
|
10512
10565
|
}))) : null);
|
|
10513
10566
|
};
|
|
10514
10567
|
|
|
10515
|
-
var _excluded$
|
|
10568
|
+
var _excluded$d = ["value", "onChange", "reasonList", "disabled"];
|
|
10516
10569
|
var BsReissue = function BsReissue(props) {
|
|
10517
10570
|
var value = props.value,
|
|
10518
10571
|
onChange = props.onChange,
|
|
10519
10572
|
_props$reasonList = props.reasonList,
|
|
10520
10573
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
10521
10574
|
disabled = props.disabled,
|
|
10522
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
10575
|
+
other = _objectWithoutProperties(props, _excluded$d);
|
|
10523
10576
|
var valueRef = React.useRef({});
|
|
10524
10577
|
React.useEffect(function () {
|
|
10525
10578
|
pubsub__default['default'].subscribe('reissueSelectList', function (_, data) {
|
|
@@ -11099,6 +11152,7 @@ exports.ApaasDate = ApaasDate;
|
|
|
11099
11152
|
exports.ApaasHoc = withFormItem;
|
|
11100
11153
|
exports.ApaasInput = ApaasInput;
|
|
11101
11154
|
exports.ApaasInputNumber = ApaasInputNumber;
|
|
11155
|
+
exports.ApaasLogistics = ApaasLogistics;
|
|
11102
11156
|
exports.ApaasMultipleSelect = ApaasMultipleSelect;
|
|
11103
11157
|
exports.ApaasPosting = ApaasPosting;
|
|
11104
11158
|
exports.ApaasRadio = ApaasRadio;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as ApaasSlider } from './apaas/ApaasSlider';
|
|
|
14
14
|
export { default as ApaasRate } from './apaas/ApaasRate';
|
|
15
15
|
export { default as ApaasAddress } from './apaas/ApaasAddress';
|
|
16
16
|
export { default as ApaasPosting } from './apaas/ApaasPosting';
|
|
17
|
+
export { default as ApaasLogistics } from './apaas/ApaasLogistics';
|
|
17
18
|
export { default as ApaasHoc } from './apaas/hoc/withFormItem';
|
|
18
19
|
export { default as BuyerNick } from './business/BuyerNick';
|
|
19
20
|
export { default as TradeId } from './business/TradeId';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.7.15-alpha.
|
|
3
|
+
"version": "0.7.15-alpha.85",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "6ca6c83ebce38b627ee175d6d9f6f89b155ee55c"
|
|
62
62
|
}
|