@kmkf-fe-packages/basic-components 0.8.15-alpha.1 → 0.8.16-alpha.0
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 +94 -4
- package/dist/index.js +95 -4
- package/dist/src/bs/SystemOrder/index.d.ts +14 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -7401,11 +7401,10 @@ function ApaasPosting(props) {
|
|
|
7401
7401
|
});
|
|
7402
7402
|
}
|
|
7403
7403
|
|
|
7404
|
-
var _excluded$a = ["value", "
|
|
7404
|
+
var _excluded$a = ["value", "onChange"];
|
|
7405
7405
|
var express = ExpressData.getInstance();
|
|
7406
7406
|
function ApaasLogistics(props) {
|
|
7407
7407
|
var value = props.value,
|
|
7408
|
-
disabled = props.disabled,
|
|
7409
7408
|
onChange = props.onChange,
|
|
7410
7409
|
other = _objectWithoutProperties(props, _excluded$a);
|
|
7411
7410
|
var _useState = useState([]),
|
|
@@ -10828,6 +10827,97 @@ var BsReissue = function BsReissue(props) {
|
|
|
10828
10827
|
})));
|
|
10829
10828
|
};
|
|
10830
10829
|
|
|
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
|
+
|
|
10831
10921
|
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";
|
|
10832
10922
|
styleInject(css_248z$9);
|
|
10833
10923
|
|
|
@@ -11302,6 +11392,6 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
11302
11392
|
userNick: userNick
|
|
11303
11393
|
}));
|
|
11304
11394
|
};
|
|
11305
|
-
var index = /*#__PURE__*/forwardRef(Goods$1);
|
|
11395
|
+
var index$1 = /*#__PURE__*/forwardRef(Goods$1);
|
|
11306
11396
|
|
|
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 };
|
|
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, index as BsSystemOrder, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index$1 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,11 +7412,10 @@ function ApaasPosting(props) {
|
|
|
7412
7412
|
});
|
|
7413
7413
|
}
|
|
7414
7414
|
|
|
7415
|
-
var _excluded$a = ["value", "
|
|
7415
|
+
var _excluded$a = ["value", "onChange"];
|
|
7416
7416
|
var express = kmkfUtils.ExpressData.getInstance();
|
|
7417
7417
|
function ApaasLogistics(props) {
|
|
7418
7418
|
var value = props.value,
|
|
7419
|
-
disabled = props.disabled,
|
|
7420
7419
|
onChange = props.onChange,
|
|
7421
7420
|
other = _objectWithoutProperties(props, _excluded$a);
|
|
7422
7421
|
var _useState = React.useState([]),
|
|
@@ -10839,6 +10838,97 @@ var BsReissue = function BsReissue(props) {
|
|
|
10839
10838
|
})));
|
|
10840
10839
|
};
|
|
10841
10840
|
|
|
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
|
+
|
|
10842
10932
|
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";
|
|
10843
10933
|
styleInject(css_248z$9);
|
|
10844
10934
|
|
|
@@ -11313,7 +11403,7 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
11313
11403
|
userNick: userNick
|
|
11314
11404
|
}));
|
|
11315
11405
|
};
|
|
11316
|
-
var index = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
11406
|
+
var index$1 = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
11317
11407
|
|
|
11318
11408
|
exports.Address = ApaasAddress;
|
|
11319
11409
|
exports.AliPay = AliPay;
|
|
@@ -11338,11 +11428,12 @@ exports.ApaasUploadFile = ApaasUploadAsync$1;
|
|
|
11338
11428
|
exports.BsExchange = BsExchange;
|
|
11339
11429
|
exports.BsGoods = BsGoods;
|
|
11340
11430
|
exports.BsReissue = BsReissue;
|
|
11431
|
+
exports.BsSystemOrder = index;
|
|
11341
11432
|
exports.BuyerNick = BuyerNick;
|
|
11342
11433
|
exports.ChooseBaby = ChooseBaby;
|
|
11343
11434
|
exports.ExpressLogistics = ExpressLogistics;
|
|
11344
11435
|
exports.Goods = Goods;
|
|
11345
|
-
exports.GoodsTable = index;
|
|
11436
|
+
exports.GoodsTable = index$1;
|
|
11346
11437
|
exports.IdentifyAddress = IdentifyAddress;
|
|
11347
11438
|
exports.Invoice = Invoice;
|
|
11348
11439
|
exports.JstGoods = jstGoods;
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ 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';
|
|
42
43
|
export { default as GoodsTable } from './common/GoodsTable';
|
|
43
44
|
export { default as ParseLogistics } from './common/ParseLogistics';
|
|
44
45
|
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.
|
|
3
|
+
"version": "0.8.16-alpha.0",
|
|
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.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.8.16-alpha.0",
|
|
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": "8bd0b6f4781c505566aa77ac1d0170110bf04f2e"
|
|
64
64
|
}
|