@kmkf-fe-packages/basic-components 0.8.14-alpha.2 → 0.8.15-alpha.1
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 -95
- package/dist/index.js +4 -96
- 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,98 +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;
|
|
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)) {
|
|
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
|
-
console.log('systemOrder', selectedRowKeys, selectedRows);
|
|
10894
|
-
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10895
|
-
selectIds: selectedRowKeys,
|
|
10896
|
-
selectedRows: selectedRows
|
|
10897
|
-
}));
|
|
10898
|
-
},
|
|
10899
|
-
getCheckboxProps: function getCheckboxProps(record) {
|
|
10900
|
-
return {
|
|
10901
|
-
disabled: disabled,
|
|
10902
|
-
name: record.name
|
|
10903
|
-
};
|
|
10904
|
-
}
|
|
10905
|
-
};
|
|
10906
|
-
return /*#__PURE__*/React.createElement(Table, {
|
|
10907
|
-
dataSource: (value === null || value === void 0 ? void 0 : value.orders) || [],
|
|
10908
|
-
columns: columns$1,
|
|
10909
|
-
rowSelection: rowSelection,
|
|
10910
|
-
rowKey: 'billNo',
|
|
10911
|
-
size: "small",
|
|
10912
|
-
pagination: false,
|
|
10913
|
-
scroll: {
|
|
10914
|
-
x: '100%'
|
|
10915
|
-
},
|
|
10916
|
-
locale: {
|
|
10917
|
-
emptyText: '暂无数据'
|
|
10918
|
-
}
|
|
10919
|
-
});
|
|
10920
|
-
});
|
|
10921
|
-
|
|
10922
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";
|
|
10923
10832
|
styleInject(css_248z$9);
|
|
10924
10833
|
|
|
@@ -11393,6 +11302,6 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
11393
11302
|
userNick: userNick
|
|
11394
11303
|
}));
|
|
11395
11304
|
};
|
|
11396
|
-
var index
|
|
11305
|
+
var index = /*#__PURE__*/forwardRef(Goods$1);
|
|
11397
11306
|
|
|
11398
|
-
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,98 +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;
|
|
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)) {
|
|
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
|
-
console.log('systemOrder', selectedRowKeys, selectedRows);
|
|
10905
|
-
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10906
|
-
selectIds: selectedRowKeys,
|
|
10907
|
-
selectedRows: selectedRows
|
|
10908
|
-
}));
|
|
10909
|
-
},
|
|
10910
|
-
getCheckboxProps: function getCheckboxProps(record) {
|
|
10911
|
-
return {
|
|
10912
|
-
disabled: disabled,
|
|
10913
|
-
name: record.name
|
|
10914
|
-
};
|
|
10915
|
-
}
|
|
10916
|
-
};
|
|
10917
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
10918
|
-
dataSource: (value === null || value === void 0 ? void 0 : value.orders) || [],
|
|
10919
|
-
columns: columns$1,
|
|
10920
|
-
rowSelection: rowSelection,
|
|
10921
|
-
rowKey: 'billNo',
|
|
10922
|
-
size: "small",
|
|
10923
|
-
pagination: false,
|
|
10924
|
-
scroll: {
|
|
10925
|
-
x: '100%'
|
|
10926
|
-
},
|
|
10927
|
-
locale: {
|
|
10928
|
-
emptyText: '暂无数据'
|
|
10929
|
-
}
|
|
10930
|
-
});
|
|
10931
|
-
});
|
|
10932
|
-
|
|
10933
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";
|
|
10934
10843
|
styleInject(css_248z$9);
|
|
10935
10844
|
|
|
@@ -11404,7 +11313,7 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
11404
11313
|
userNick: userNick
|
|
11405
11314
|
}));
|
|
11406
11315
|
};
|
|
11407
|
-
var index
|
|
11316
|
+
var index = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
11408
11317
|
|
|
11409
11318
|
exports.Address = ApaasAddress;
|
|
11410
11319
|
exports.AliPay = AliPay;
|
|
@@ -11429,12 +11338,11 @@ exports.ApaasUploadFile = ApaasUploadAsync$1;
|
|
|
11429
11338
|
exports.BsExchange = BsExchange;
|
|
11430
11339
|
exports.BsGoods = BsGoods;
|
|
11431
11340
|
exports.BsReissue = BsReissue;
|
|
11432
|
-
exports.BsSystemOrder = index;
|
|
11433
11341
|
exports.BuyerNick = BuyerNick;
|
|
11434
11342
|
exports.ChooseBaby = ChooseBaby;
|
|
11435
11343
|
exports.ExpressLogistics = ExpressLogistics;
|
|
11436
11344
|
exports.Goods = Goods;
|
|
11437
|
-
exports.GoodsTable = index
|
|
11345
|
+
exports.GoodsTable = index;
|
|
11438
11346
|
exports.IdentifyAddress = IdentifyAddress;
|
|
11439
11347
|
exports.Invoice = Invoice;
|
|
11440
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.
|
|
3
|
+
"version": "0.8.15-alpha.1",
|
|
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.15-alpha.1",
|
|
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": "7dfa5c1a4e86ef9ab482cd3dd611eb41e7ac2400"
|
|
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;
|