@kmkf-fe-packages/basic-components 0.8.16-alpha.0 → 0.8.16
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 +4 -94
- package/dist/index.js +4 -95
- package/dist/src/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/src/bs/SystemOrder/index.d.ts +0 -14
package/dist/index.esm.js
CHANGED
|
@@ -7401,10 +7401,11 @@ function ApaasPosting(props) {
|
|
|
7401
7401
|
});
|
|
7402
7402
|
}
|
|
7403
7403
|
|
|
7404
|
-
var _excluded$a = ["value", "onChange"];
|
|
7404
|
+
var _excluded$a = ["value", "disabled", "onChange"];
|
|
7405
7405
|
var express = ExpressData.getInstance();
|
|
7406
7406
|
function ApaasLogistics(props) {
|
|
7407
7407
|
var value = props.value,
|
|
7408
|
+
disabled = props.disabled,
|
|
7408
7409
|
onChange = props.onChange,
|
|
7409
7410
|
other = _objectWithoutProperties(props, _excluded$a);
|
|
7410
7411
|
var _useState = useState([]),
|
|
@@ -10827,97 +10828,6 @@ var BsReissue = function BsReissue(props) {
|
|
|
10827
10828
|
})));
|
|
10828
10829
|
};
|
|
10829
10830
|
|
|
10830
|
-
var columns$1 = [{
|
|
10831
|
-
dataIndex: 'billType',
|
|
10832
|
-
title: '单据类型'
|
|
10833
|
-
}, {
|
|
10834
|
-
dataIndex: 'billNo',
|
|
10835
|
-
title: '系统订单号'
|
|
10836
|
-
}, {
|
|
10837
|
-
dataIndex: 'billTag',
|
|
10838
|
-
title: '标签'
|
|
10839
|
-
}];
|
|
10840
|
-
var index = (function (props) {
|
|
10841
|
-
var value = props.value,
|
|
10842
|
-
_onChange = props.onChange,
|
|
10843
|
-
disabled = props.disabled;
|
|
10844
|
-
useEffect(function () {
|
|
10845
|
-
var _value$orders, _value$showOrderInfo;
|
|
10846
|
-
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)) {
|
|
10847
|
-
getOrderList(value.orderNo);
|
|
10848
|
-
}
|
|
10849
|
-
}, [value]);
|
|
10850
|
-
var getOrderList = /*#__PURE__*/function () {
|
|
10851
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
10852
|
-
var _yield$request, success, data;
|
|
10853
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10854
|
-
while (1) switch (_context.prev = _context.next) {
|
|
10855
|
-
case 0:
|
|
10856
|
-
_context.next = 2;
|
|
10857
|
-
return extendRequest('/qy/gdfw/order/bsOrderDetail', {
|
|
10858
|
-
method: 'post',
|
|
10859
|
-
data: {
|
|
10860
|
-
billNo: orderNo
|
|
10861
|
-
}
|
|
10862
|
-
});
|
|
10863
|
-
case 2:
|
|
10864
|
-
_yield$request = _context.sent;
|
|
10865
|
-
success = _yield$request.success;
|
|
10866
|
-
data = _yield$request.data;
|
|
10867
|
-
if (success) {
|
|
10868
|
-
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10869
|
-
orders: (data === null || data === void 0 ? void 0 : data.orders) || [],
|
|
10870
|
-
showOrderInfo: data === null || data === void 0 ? void 0 : data.orders.map(function (item) {
|
|
10871
|
-
return {
|
|
10872
|
-
billNo: item.billNo,
|
|
10873
|
-
billType: item.billType,
|
|
10874
|
-
billTag: item.billTag
|
|
10875
|
-
};
|
|
10876
|
-
})
|
|
10877
|
-
}));
|
|
10878
|
-
}
|
|
10879
|
-
case 6:
|
|
10880
|
-
case "end":
|
|
10881
|
-
return _context.stop();
|
|
10882
|
-
}
|
|
10883
|
-
}, _callee);
|
|
10884
|
-
}));
|
|
10885
|
-
return function getOrderList(_x) {
|
|
10886
|
-
return _ref.apply(this, arguments);
|
|
10887
|
-
};
|
|
10888
|
-
}();
|
|
10889
|
-
var rowSelection = {
|
|
10890
|
-
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
10891
|
-
fixed: true,
|
|
10892
|
-
onChange: function onChange(selectedRowKeys, selectedRows, info) {
|
|
10893
|
-
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10894
|
-
selectIds: selectedRowKeys,
|
|
10895
|
-
selectedRows: selectedRows
|
|
10896
|
-
}));
|
|
10897
|
-
},
|
|
10898
|
-
getCheckboxProps: function getCheckboxProps(record) {
|
|
10899
|
-
return {
|
|
10900
|
-
disabled: disabled,
|
|
10901
|
-
name: record.name
|
|
10902
|
-
};
|
|
10903
|
-
}
|
|
10904
|
-
};
|
|
10905
|
-
return /*#__PURE__*/React.createElement(Table, {
|
|
10906
|
-
dataSource: (value === null || value === void 0 ? void 0 : value.orders) || [],
|
|
10907
|
-
columns: columns$1,
|
|
10908
|
-
rowSelection: rowSelection,
|
|
10909
|
-
rowKey: 'billNo',
|
|
10910
|
-
size: "small",
|
|
10911
|
-
pagination: false,
|
|
10912
|
-
scroll: {
|
|
10913
|
-
x: '100%'
|
|
10914
|
-
},
|
|
10915
|
-
locale: {
|
|
10916
|
-
emptyText: '暂无数据'
|
|
10917
|
-
}
|
|
10918
|
-
});
|
|
10919
|
-
});
|
|
10920
|
-
|
|
10921
10831
|
var css_248z$9 = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
10922
10832
|
styleInject(css_248z$9);
|
|
10923
10833
|
|
|
@@ -11392,6 +11302,6 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
11392
11302
|
userNick: userNick
|
|
11393
11303
|
}));
|
|
11394
11304
|
};
|
|
11395
|
-
var index
|
|
11305
|
+
var index = /*#__PURE__*/forwardRef(Goods$1);
|
|
11396
11306
|
|
|
11397
|
-
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,
|
|
11307
|
+
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
|
@@ -7412,10 +7412,11 @@ function ApaasPosting(props) {
|
|
|
7412
7412
|
});
|
|
7413
7413
|
}
|
|
7414
7414
|
|
|
7415
|
-
var _excluded$a = ["value", "onChange"];
|
|
7415
|
+
var _excluded$a = ["value", "disabled", "onChange"];
|
|
7416
7416
|
var express = kmkfUtils.ExpressData.getInstance();
|
|
7417
7417
|
function ApaasLogistics(props) {
|
|
7418
7418
|
var value = props.value,
|
|
7419
|
+
disabled = props.disabled,
|
|
7419
7420
|
onChange = props.onChange,
|
|
7420
7421
|
other = _objectWithoutProperties(props, _excluded$a);
|
|
7421
7422
|
var _useState = React.useState([]),
|
|
@@ -10838,97 +10839,6 @@ var BsReissue = function BsReissue(props) {
|
|
|
10838
10839
|
})));
|
|
10839
10840
|
};
|
|
10840
10841
|
|
|
10841
|
-
var columns$1 = [{
|
|
10842
|
-
dataIndex: 'billType',
|
|
10843
|
-
title: '单据类型'
|
|
10844
|
-
}, {
|
|
10845
|
-
dataIndex: 'billNo',
|
|
10846
|
-
title: '系统订单号'
|
|
10847
|
-
}, {
|
|
10848
|
-
dataIndex: 'billTag',
|
|
10849
|
-
title: '标签'
|
|
10850
|
-
}];
|
|
10851
|
-
var index = (function (props) {
|
|
10852
|
-
var value = props.value,
|
|
10853
|
-
_onChange = props.onChange,
|
|
10854
|
-
disabled = props.disabled;
|
|
10855
|
-
React.useEffect(function () {
|
|
10856
|
-
var _value$orders, _value$showOrderInfo;
|
|
10857
|
-
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)) {
|
|
10858
|
-
getOrderList(value.orderNo);
|
|
10859
|
-
}
|
|
10860
|
-
}, [value]);
|
|
10861
|
-
var getOrderList = /*#__PURE__*/function () {
|
|
10862
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
10863
|
-
var _yield$request, success, data;
|
|
10864
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10865
|
-
while (1) switch (_context.prev = _context.next) {
|
|
10866
|
-
case 0:
|
|
10867
|
-
_context.next = 2;
|
|
10868
|
-
return extendRequest('/qy/gdfw/order/bsOrderDetail', {
|
|
10869
|
-
method: 'post',
|
|
10870
|
-
data: {
|
|
10871
|
-
billNo: orderNo
|
|
10872
|
-
}
|
|
10873
|
-
});
|
|
10874
|
-
case 2:
|
|
10875
|
-
_yield$request = _context.sent;
|
|
10876
|
-
success = _yield$request.success;
|
|
10877
|
-
data = _yield$request.data;
|
|
10878
|
-
if (success) {
|
|
10879
|
-
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10880
|
-
orders: (data === null || data === void 0 ? void 0 : data.orders) || [],
|
|
10881
|
-
showOrderInfo: data === null || data === void 0 ? void 0 : data.orders.map(function (item) {
|
|
10882
|
-
return {
|
|
10883
|
-
billNo: item.billNo,
|
|
10884
|
-
billType: item.billType,
|
|
10885
|
-
billTag: item.billTag
|
|
10886
|
-
};
|
|
10887
|
-
})
|
|
10888
|
-
}));
|
|
10889
|
-
}
|
|
10890
|
-
case 6:
|
|
10891
|
-
case "end":
|
|
10892
|
-
return _context.stop();
|
|
10893
|
-
}
|
|
10894
|
-
}, _callee);
|
|
10895
|
-
}));
|
|
10896
|
-
return function getOrderList(_x) {
|
|
10897
|
-
return _ref.apply(this, arguments);
|
|
10898
|
-
};
|
|
10899
|
-
}();
|
|
10900
|
-
var rowSelection = {
|
|
10901
|
-
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
10902
|
-
fixed: true,
|
|
10903
|
-
onChange: function onChange(selectedRowKeys, selectedRows, info) {
|
|
10904
|
-
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10905
|
-
selectIds: selectedRowKeys,
|
|
10906
|
-
selectedRows: selectedRows
|
|
10907
|
-
}));
|
|
10908
|
-
},
|
|
10909
|
-
getCheckboxProps: function getCheckboxProps(record) {
|
|
10910
|
-
return {
|
|
10911
|
-
disabled: disabled,
|
|
10912
|
-
name: record.name
|
|
10913
|
-
};
|
|
10914
|
-
}
|
|
10915
|
-
};
|
|
10916
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
10917
|
-
dataSource: (value === null || value === void 0 ? void 0 : value.orders) || [],
|
|
10918
|
-
columns: columns$1,
|
|
10919
|
-
rowSelection: rowSelection,
|
|
10920
|
-
rowKey: 'billNo',
|
|
10921
|
-
size: "small",
|
|
10922
|
-
pagination: false,
|
|
10923
|
-
scroll: {
|
|
10924
|
-
x: '100%'
|
|
10925
|
-
},
|
|
10926
|
-
locale: {
|
|
10927
|
-
emptyText: '暂无数据'
|
|
10928
|
-
}
|
|
10929
|
-
});
|
|
10930
|
-
});
|
|
10931
|
-
|
|
10932
10842
|
var css_248z$9 = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
10933
10843
|
styleInject(css_248z$9);
|
|
10934
10844
|
|
|
@@ -11403,7 +11313,7 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
11403
11313
|
userNick: userNick
|
|
11404
11314
|
}));
|
|
11405
11315
|
};
|
|
11406
|
-
var index
|
|
11316
|
+
var index = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
11407
11317
|
|
|
11408
11318
|
exports.Address = ApaasAddress;
|
|
11409
11319
|
exports.AliPay = AliPay;
|
|
@@ -11428,12 +11338,11 @@ exports.ApaasUploadFile = ApaasUploadAsync$1;
|
|
|
11428
11338
|
exports.BsExchange = BsExchange;
|
|
11429
11339
|
exports.BsGoods = BsGoods;
|
|
11430
11340
|
exports.BsReissue = BsReissue;
|
|
11431
|
-
exports.BsSystemOrder = index;
|
|
11432
11341
|
exports.BuyerNick = BuyerNick;
|
|
11433
11342
|
exports.ChooseBaby = ChooseBaby;
|
|
11434
11343
|
exports.ExpressLogistics = ExpressLogistics;
|
|
11435
11344
|
exports.Goods = Goods;
|
|
11436
|
-
exports.GoodsTable = index
|
|
11345
|
+
exports.GoodsTable = index;
|
|
11437
11346
|
exports.IdentifyAddress = IdentifyAddress;
|
|
11438
11347
|
exports.Invoice = Invoice;
|
|
11439
11348
|
exports.JstGoods = jstGoods;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ export { default as JstItemList } from './jst/ItemList';
|
|
|
39
39
|
export { default as BsGoods } from './bs/Goods';
|
|
40
40
|
export { default as BsExchange } from './bs/Exchange';
|
|
41
41
|
export { default as BsReissue } from './bs/Reissue';
|
|
42
|
-
export { default as BsSystemOrder } from './bs/SystemOrder';
|
|
43
42
|
export { default as GoodsTable } from './common/GoodsTable';
|
|
44
43
|
export { default as ParseLogistics } from './common/ParseLogistics';
|
|
45
44
|
export { default as IdentifyAddress } from './common/IdentifyAddress';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.8.16
|
|
3
|
+
"version": "0.8.16",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.8.16
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.8.16",
|
|
24
24
|
"lodash": "^4.17.21",
|
|
25
25
|
"pubsub-js": "^1.9.4",
|
|
26
26
|
"react-copy-to-clipboard": "^5.1.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "149b9c579c1e7f4319a9179fc556e9d524add34a"
|
|
64
64
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface BsSystemOrderProps {
|
|
3
|
-
value: {
|
|
4
|
-
orderNo: string;
|
|
5
|
-
orders: any[];
|
|
6
|
-
selectIds: string[];
|
|
7
|
-
showOrderInfo: any[];
|
|
8
|
-
};
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
onChange: (val: any) => void;
|
|
11
|
-
onChangeOrder?: (val: any) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: (props: BsSystemOrderProps) => React.JSX.Element;
|
|
14
|
-
export default _default;
|