@kmkf-fe-packages/basic-components 0.8.9-alpha.0 → 0.8.9-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 +91 -31
- package/dist/index.js +91 -31
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -9763,7 +9763,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9763
9763
|
setSelect([]);
|
|
9764
9764
|
setSelectIds([]);
|
|
9765
9765
|
queryItems();
|
|
9766
|
-
|
|
9766
|
+
getShopList();
|
|
9767
9767
|
}
|
|
9768
9768
|
};
|
|
9769
9769
|
});
|
|
@@ -9811,14 +9811,10 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9811
9811
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
9812
9812
|
total = _useState20[0],
|
|
9813
9813
|
setTotal = _useState20[1];
|
|
9814
|
-
var _useState21 = useState(
|
|
9814
|
+
var _useState21 = useState(),
|
|
9815
9815
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
var _useState23 = useState({}),
|
|
9819
|
-
_useState24 = _slicedToArray(_useState23, 2),
|
|
9820
|
-
shopInfo = _useState24[0],
|
|
9821
|
-
setShopInfo = _useState24[1]; //店铺信息
|
|
9816
|
+
shopOptions = _useState22[0],
|
|
9817
|
+
setShopList = _useState22[1];
|
|
9822
9818
|
var _Form$useForm = Form.useForm(),
|
|
9823
9819
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
9824
9820
|
form = _Form$useForm2[0];
|
|
@@ -9835,17 +9831,20 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9835
9831
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9836
9832
|
while (1) switch (_context.prev = _context.next) {
|
|
9837
9833
|
case 0:
|
|
9838
|
-
|
|
9834
|
+
form.setFieldsValue({
|
|
9835
|
+
shopId: shopCode
|
|
9836
|
+
});
|
|
9837
|
+
_context.prev = 1;
|
|
9839
9838
|
setLoading(true);
|
|
9840
9839
|
params = {
|
|
9841
9840
|
shopCode: shopCode
|
|
9842
9841
|
};
|
|
9843
|
-
_context.next =
|
|
9842
|
+
_context.next = 6;
|
|
9844
9843
|
return extendRequest('/qy/gdfw/product/bsListProduct', {
|
|
9845
9844
|
method: 'post',
|
|
9846
9845
|
data: params
|
|
9847
9846
|
});
|
|
9848
|
-
case
|
|
9847
|
+
case 6:
|
|
9849
9848
|
res = _context.sent;
|
|
9850
9849
|
products = res.data.products;
|
|
9851
9850
|
newProducts = (products || []).map(function (item, index) {
|
|
@@ -9855,29 +9854,20 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9855
9854
|
});
|
|
9856
9855
|
setAllList(_toConsumableArray(newProducts));
|
|
9857
9856
|
initData(_toConsumableArray(newProducts));
|
|
9858
|
-
case
|
|
9859
|
-
_context.prev =
|
|
9857
|
+
case 11:
|
|
9858
|
+
_context.prev = 11;
|
|
9860
9859
|
setLoading(false);
|
|
9861
|
-
return _context.finish(
|
|
9862
|
-
case
|
|
9860
|
+
return _context.finish(11);
|
|
9861
|
+
case 14:
|
|
9863
9862
|
case "end":
|
|
9864
9863
|
return _context.stop();
|
|
9865
9864
|
}
|
|
9866
|
-
}, _callee, null, [[
|
|
9865
|
+
}, _callee, null, [[1,, 11, 14]]);
|
|
9867
9866
|
})), [shopCode]);
|
|
9868
|
-
useEffect(function () {
|
|
9869
|
-
var shopInfo = shopList.find(function (item) {
|
|
9870
|
-
return shopId === item.shopId || shopId === item.shopName;
|
|
9871
|
-
});
|
|
9872
|
-
setShopInfo(shopInfo);
|
|
9873
|
-
var platform = shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.shopSourceStr.toLowerCase();
|
|
9874
|
-
setPlatform(platform);
|
|
9875
|
-
}, [shopId]);
|
|
9876
9867
|
var rowSelection = {
|
|
9877
9868
|
selectedRowKeys: selectIds,
|
|
9878
9869
|
fixed: true,
|
|
9879
9870
|
onChange: function onChange(selectedRowKeys, selectedRows, info) {
|
|
9880
|
-
console.log(selectedRowKeys, selectedRows, info);
|
|
9881
9871
|
setSelectIds(selectedRowKeys);
|
|
9882
9872
|
setSelect(_toConsumableArray(selectedRows));
|
|
9883
9873
|
}
|
|
@@ -9889,6 +9879,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9889
9879
|
setPageNo(1);
|
|
9890
9880
|
};
|
|
9891
9881
|
var _onCancel = function onCancel() {
|
|
9882
|
+
onReset();
|
|
9892
9883
|
setVisible(false);
|
|
9893
9884
|
};
|
|
9894
9885
|
var onOk = function onOk() {
|
|
@@ -9903,8 +9894,9 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9903
9894
|
if (hasValue) {
|
|
9904
9895
|
Object.keys(value).forEach(function (key) {
|
|
9905
9896
|
if (value[key]) {
|
|
9897
|
+
var trimValue = value[key].trim();
|
|
9906
9898
|
newFilterList = allList.filter(function (item) {
|
|
9907
|
-
return item[key].indexOf(
|
|
9899
|
+
return item[key].indexOf(trimValue) > -1;
|
|
9908
9900
|
});
|
|
9909
9901
|
}
|
|
9910
9902
|
});
|
|
@@ -9915,7 +9907,50 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9915
9907
|
};
|
|
9916
9908
|
var onReset = function onReset() {
|
|
9917
9909
|
form.resetFields();
|
|
9918
|
-
initData(
|
|
9910
|
+
initData([]);
|
|
9911
|
+
};
|
|
9912
|
+
var getShopList = /*#__PURE__*/function () {
|
|
9913
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
9914
|
+
var _yield$request, success, data, _ref3, list;
|
|
9915
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
9916
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
9917
|
+
case 0:
|
|
9918
|
+
_context2.next = 2;
|
|
9919
|
+
return extendRequest('/qy/gdfw/product/bsListProduct', {
|
|
9920
|
+
method: 'post',
|
|
9921
|
+
data: {
|
|
9922
|
+
shopCode: 'DP007'
|
|
9923
|
+
}
|
|
9924
|
+
});
|
|
9925
|
+
case 2:
|
|
9926
|
+
_yield$request = _context2.sent;
|
|
9927
|
+
success = _yield$request.success;
|
|
9928
|
+
data = _yield$request.data;
|
|
9929
|
+
if (success) {
|
|
9930
|
+
list = (_ref3 = data.products || []) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (item, index) {
|
|
9931
|
+
return {
|
|
9932
|
+
label: "\u5E97\u94FA\u540D\u79F0".concat(index),
|
|
9933
|
+
value: index
|
|
9934
|
+
};
|
|
9935
|
+
});
|
|
9936
|
+
setShopList(list);
|
|
9937
|
+
}
|
|
9938
|
+
case 6:
|
|
9939
|
+
case "end":
|
|
9940
|
+
return _context2.stop();
|
|
9941
|
+
}
|
|
9942
|
+
}, _callee2);
|
|
9943
|
+
}));
|
|
9944
|
+
return function getShopList() {
|
|
9945
|
+
return _ref2.apply(this, arguments);
|
|
9946
|
+
};
|
|
9947
|
+
}();
|
|
9948
|
+
var onValuesChange = function onValuesChange(changedValues) {
|
|
9949
|
+
if (changedValues === null || changedValues === void 0 ? void 0 : changedValues['shopId']) {
|
|
9950
|
+
pubsub.publish('changeShopCode', {
|
|
9951
|
+
shopCode: changedValues.shopId
|
|
9952
|
+
});
|
|
9953
|
+
}
|
|
9919
9954
|
};
|
|
9920
9955
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
9921
9956
|
title: '选择商品',
|
|
@@ -9931,8 +9966,21 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9931
9966
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
9932
9967
|
layout: "inline",
|
|
9933
9968
|
form: form,
|
|
9934
|
-
onFinish: onFinish
|
|
9969
|
+
onFinish: onFinish,
|
|
9970
|
+
onValuesChange: onValuesChange
|
|
9935
9971
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
9972
|
+
name: "shopId"
|
|
9973
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
9974
|
+
placeholder: "\u5E97\u94FA",
|
|
9975
|
+
style: {
|
|
9976
|
+
width: 150
|
|
9977
|
+
},
|
|
9978
|
+
options: shopOptions || [],
|
|
9979
|
+
showSearch: true,
|
|
9980
|
+
filterOption: function filterOption(input, option) {
|
|
9981
|
+
return option.label.includes(input);
|
|
9982
|
+
}
|
|
9983
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
9936
9984
|
name: "skuName"
|
|
9937
9985
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
9938
9986
|
placeholder: "\u5546\u54C1sku\u540D\u79F0",
|
|
@@ -10284,7 +10332,6 @@ var BsGoods = function BsGoods(props) {
|
|
|
10284
10332
|
//补发
|
|
10285
10333
|
pubsub.subscribe('reissueType', function (type, data) {
|
|
10286
10334
|
if (disabled) return;
|
|
10287
|
-
console.log(type, data);
|
|
10288
10335
|
withInfo.current = {
|
|
10289
10336
|
type: type,
|
|
10290
10337
|
val: data.val,
|
|
@@ -10299,6 +10346,11 @@ var BsGoods = function BsGoods(props) {
|
|
|
10299
10346
|
});
|
|
10300
10347
|
}
|
|
10301
10348
|
});
|
|
10349
|
+
pubsub.subscribeOnce('changeShopCode', function (type, data) {
|
|
10350
|
+
onChange(_objectSpread2(_objectSpread2({}, valueRef === null || valueRef === void 0 ? void 0 : valueRef.current), {}, {
|
|
10351
|
+
shopCode: data.shopCode
|
|
10352
|
+
}));
|
|
10353
|
+
});
|
|
10302
10354
|
}, [disabled]);
|
|
10303
10355
|
var _onSelect = function onSelect(list) {
|
|
10304
10356
|
var _withInfo$current, _withInfo$current2;
|
|
@@ -10377,10 +10429,14 @@ var BsExchange = function BsExchange(props) {
|
|
|
10377
10429
|
onChange(newValue);
|
|
10378
10430
|
}
|
|
10379
10431
|
});
|
|
10432
|
+
pubsub.subscribeOnce('changeShopCode', function (type, data) {
|
|
10433
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10434
|
+
shopCode: data.shopCode
|
|
10435
|
+
}));
|
|
10436
|
+
});
|
|
10380
10437
|
}, [value]);
|
|
10381
10438
|
useEffect(function () {
|
|
10382
10439
|
pubsub.subscribe('selectList', function (_, data) {
|
|
10383
|
-
console.log('selectList', data, valueRef.current);
|
|
10384
10440
|
if (disabled) return;
|
|
10385
10441
|
var newDataList = cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
10386
10442
|
onChange(_objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
@@ -10390,7 +10446,6 @@ var BsExchange = function BsExchange(props) {
|
|
|
10390
10446
|
}, []);
|
|
10391
10447
|
useEffect(function () {
|
|
10392
10448
|
pubsub.subscribe('selectListReturn', function (_, data) {
|
|
10393
|
-
console.log('selectListReturn', data);
|
|
10394
10449
|
if (disabled) return;
|
|
10395
10450
|
var newValue = _objectSpread2({}, data.goodValue);
|
|
10396
10451
|
var newDataList = cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
@@ -10621,6 +10676,11 @@ var BsReissue = function BsReissue(props) {
|
|
|
10621
10676
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10622
10677
|
}
|
|
10623
10678
|
});
|
|
10679
|
+
pubsub.subscribeOnce('changeShopCode', function (type, data) {
|
|
10680
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10681
|
+
shopCode: data.shopCode
|
|
10682
|
+
}));
|
|
10683
|
+
});
|
|
10624
10684
|
}, [value, disabled]);
|
|
10625
10685
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
10626
10686
|
var newValue = _objectSpread2({}, value);
|
package/dist/index.js
CHANGED
|
@@ -9774,7 +9774,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9774
9774
|
setSelect([]);
|
|
9775
9775
|
setSelectIds([]);
|
|
9776
9776
|
queryItems();
|
|
9777
|
-
|
|
9777
|
+
getShopList();
|
|
9778
9778
|
}
|
|
9779
9779
|
};
|
|
9780
9780
|
});
|
|
@@ -9822,14 +9822,10 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9822
9822
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
9823
9823
|
total = _useState20[0],
|
|
9824
9824
|
setTotal = _useState20[1];
|
|
9825
|
-
var _useState21 = React.useState(
|
|
9825
|
+
var _useState21 = React.useState(),
|
|
9826
9826
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
var _useState23 = React.useState({}),
|
|
9830
|
-
_useState24 = _slicedToArray(_useState23, 2),
|
|
9831
|
-
shopInfo = _useState24[0],
|
|
9832
|
-
setShopInfo = _useState24[1]; //店铺信息
|
|
9827
|
+
shopOptions = _useState22[0],
|
|
9828
|
+
setShopList = _useState22[1];
|
|
9833
9829
|
var _Form$useForm = antd.Form.useForm(),
|
|
9834
9830
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
9835
9831
|
form = _Form$useForm2[0];
|
|
@@ -9846,17 +9842,20 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9846
9842
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9847
9843
|
while (1) switch (_context.prev = _context.next) {
|
|
9848
9844
|
case 0:
|
|
9849
|
-
|
|
9845
|
+
form.setFieldsValue({
|
|
9846
|
+
shopId: shopCode
|
|
9847
|
+
});
|
|
9848
|
+
_context.prev = 1;
|
|
9850
9849
|
setLoading(true);
|
|
9851
9850
|
params = {
|
|
9852
9851
|
shopCode: shopCode
|
|
9853
9852
|
};
|
|
9854
|
-
_context.next =
|
|
9853
|
+
_context.next = 6;
|
|
9855
9854
|
return extendRequest('/qy/gdfw/product/bsListProduct', {
|
|
9856
9855
|
method: 'post',
|
|
9857
9856
|
data: params
|
|
9858
9857
|
});
|
|
9859
|
-
case
|
|
9858
|
+
case 6:
|
|
9860
9859
|
res = _context.sent;
|
|
9861
9860
|
products = res.data.products;
|
|
9862
9861
|
newProducts = (products || []).map(function (item, index) {
|
|
@@ -9866,29 +9865,20 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9866
9865
|
});
|
|
9867
9866
|
setAllList(_toConsumableArray(newProducts));
|
|
9868
9867
|
initData(_toConsumableArray(newProducts));
|
|
9869
|
-
case
|
|
9870
|
-
_context.prev =
|
|
9868
|
+
case 11:
|
|
9869
|
+
_context.prev = 11;
|
|
9871
9870
|
setLoading(false);
|
|
9872
|
-
return _context.finish(
|
|
9873
|
-
case
|
|
9871
|
+
return _context.finish(11);
|
|
9872
|
+
case 14:
|
|
9874
9873
|
case "end":
|
|
9875
9874
|
return _context.stop();
|
|
9876
9875
|
}
|
|
9877
|
-
}, _callee, null, [[
|
|
9876
|
+
}, _callee, null, [[1,, 11, 14]]);
|
|
9878
9877
|
})), [shopCode]);
|
|
9879
|
-
React.useEffect(function () {
|
|
9880
|
-
var shopInfo = shopList.find(function (item) {
|
|
9881
|
-
return shopId === item.shopId || shopId === item.shopName;
|
|
9882
|
-
});
|
|
9883
|
-
setShopInfo(shopInfo);
|
|
9884
|
-
var platform = shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.shopSourceStr.toLowerCase();
|
|
9885
|
-
setPlatform(platform);
|
|
9886
|
-
}, [shopId]);
|
|
9887
9878
|
var rowSelection = {
|
|
9888
9879
|
selectedRowKeys: selectIds,
|
|
9889
9880
|
fixed: true,
|
|
9890
9881
|
onChange: function onChange(selectedRowKeys, selectedRows, info) {
|
|
9891
|
-
console.log(selectedRowKeys, selectedRows, info);
|
|
9892
9882
|
setSelectIds(selectedRowKeys);
|
|
9893
9883
|
setSelect(_toConsumableArray(selectedRows));
|
|
9894
9884
|
}
|
|
@@ -9900,6 +9890,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9900
9890
|
setPageNo(1);
|
|
9901
9891
|
};
|
|
9902
9892
|
var _onCancel = function onCancel() {
|
|
9893
|
+
onReset();
|
|
9903
9894
|
setVisible(false);
|
|
9904
9895
|
};
|
|
9905
9896
|
var onOk = function onOk() {
|
|
@@ -9914,8 +9905,9 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9914
9905
|
if (hasValue) {
|
|
9915
9906
|
Object.keys(value).forEach(function (key) {
|
|
9916
9907
|
if (value[key]) {
|
|
9908
|
+
var trimValue = value[key].trim();
|
|
9917
9909
|
newFilterList = allList.filter(function (item) {
|
|
9918
|
-
return item[key].indexOf(
|
|
9910
|
+
return item[key].indexOf(trimValue) > -1;
|
|
9919
9911
|
});
|
|
9920
9912
|
}
|
|
9921
9913
|
});
|
|
@@ -9926,7 +9918,50 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9926
9918
|
};
|
|
9927
9919
|
var onReset = function onReset() {
|
|
9928
9920
|
form.resetFields();
|
|
9929
|
-
initData(
|
|
9921
|
+
initData([]);
|
|
9922
|
+
};
|
|
9923
|
+
var getShopList = /*#__PURE__*/function () {
|
|
9924
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
9925
|
+
var _yield$request, success, data, _ref3, list;
|
|
9926
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
9927
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
9928
|
+
case 0:
|
|
9929
|
+
_context2.next = 2;
|
|
9930
|
+
return extendRequest('/qy/gdfw/product/bsListProduct', {
|
|
9931
|
+
method: 'post',
|
|
9932
|
+
data: {
|
|
9933
|
+
shopCode: 'DP007'
|
|
9934
|
+
}
|
|
9935
|
+
});
|
|
9936
|
+
case 2:
|
|
9937
|
+
_yield$request = _context2.sent;
|
|
9938
|
+
success = _yield$request.success;
|
|
9939
|
+
data = _yield$request.data;
|
|
9940
|
+
if (success) {
|
|
9941
|
+
list = (_ref3 = data.products || []) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (item, index) {
|
|
9942
|
+
return {
|
|
9943
|
+
label: "\u5E97\u94FA\u540D\u79F0".concat(index),
|
|
9944
|
+
value: index
|
|
9945
|
+
};
|
|
9946
|
+
});
|
|
9947
|
+
setShopList(list);
|
|
9948
|
+
}
|
|
9949
|
+
case 6:
|
|
9950
|
+
case "end":
|
|
9951
|
+
return _context2.stop();
|
|
9952
|
+
}
|
|
9953
|
+
}, _callee2);
|
|
9954
|
+
}));
|
|
9955
|
+
return function getShopList() {
|
|
9956
|
+
return _ref2.apply(this, arguments);
|
|
9957
|
+
};
|
|
9958
|
+
}();
|
|
9959
|
+
var onValuesChange = function onValuesChange(changedValues) {
|
|
9960
|
+
if (changedValues === null || changedValues === void 0 ? void 0 : changedValues['shopId']) {
|
|
9961
|
+
pubsub__default['default'].publish('changeShopCode', {
|
|
9962
|
+
shopCode: changedValues.shopId
|
|
9963
|
+
});
|
|
9964
|
+
}
|
|
9930
9965
|
};
|
|
9931
9966
|
return /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
9932
9967
|
title: '选择商品',
|
|
@@ -9942,8 +9977,21 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
9942
9977
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
9943
9978
|
layout: "inline",
|
|
9944
9979
|
form: form,
|
|
9945
|
-
onFinish: onFinish
|
|
9980
|
+
onFinish: onFinish,
|
|
9981
|
+
onValuesChange: onValuesChange
|
|
9946
9982
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
9983
|
+
name: "shopId"
|
|
9984
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
9985
|
+
placeholder: "\u5E97\u94FA",
|
|
9986
|
+
style: {
|
|
9987
|
+
width: 150
|
|
9988
|
+
},
|
|
9989
|
+
options: shopOptions || [],
|
|
9990
|
+
showSearch: true,
|
|
9991
|
+
filterOption: function filterOption(input, option) {
|
|
9992
|
+
return option.label.includes(input);
|
|
9993
|
+
}
|
|
9994
|
+
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
9947
9995
|
name: "skuName"
|
|
9948
9996
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
9949
9997
|
placeholder: "\u5546\u54C1sku\u540D\u79F0",
|
|
@@ -10295,7 +10343,6 @@ var BsGoods = function BsGoods(props) {
|
|
|
10295
10343
|
//补发
|
|
10296
10344
|
pubsub__default['default'].subscribe('reissueType', function (type, data) {
|
|
10297
10345
|
if (disabled) return;
|
|
10298
|
-
console.log(type, data);
|
|
10299
10346
|
withInfo.current = {
|
|
10300
10347
|
type: type,
|
|
10301
10348
|
val: data.val,
|
|
@@ -10310,6 +10357,11 @@ var BsGoods = function BsGoods(props) {
|
|
|
10310
10357
|
});
|
|
10311
10358
|
}
|
|
10312
10359
|
});
|
|
10360
|
+
pubsub__default['default'].subscribeOnce('changeShopCode', function (type, data) {
|
|
10361
|
+
onChange(_objectSpread2(_objectSpread2({}, valueRef === null || valueRef === void 0 ? void 0 : valueRef.current), {}, {
|
|
10362
|
+
shopCode: data.shopCode
|
|
10363
|
+
}));
|
|
10364
|
+
});
|
|
10313
10365
|
}, [disabled]);
|
|
10314
10366
|
var _onSelect = function onSelect(list) {
|
|
10315
10367
|
var _withInfo$current, _withInfo$current2;
|
|
@@ -10388,10 +10440,14 @@ var BsExchange = function BsExchange(props) {
|
|
|
10388
10440
|
onChange(newValue);
|
|
10389
10441
|
}
|
|
10390
10442
|
});
|
|
10443
|
+
pubsub__default['default'].subscribeOnce('changeShopCode', function (type, data) {
|
|
10444
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10445
|
+
shopCode: data.shopCode
|
|
10446
|
+
}));
|
|
10447
|
+
});
|
|
10391
10448
|
}, [value]);
|
|
10392
10449
|
React.useEffect(function () {
|
|
10393
10450
|
pubsub__default['default'].subscribe('selectList', function (_, data) {
|
|
10394
|
-
console.log('selectList', data, valueRef.current);
|
|
10395
10451
|
if (disabled) return;
|
|
10396
10452
|
var newDataList = lodash.cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
10397
10453
|
onChange(_objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
@@ -10401,7 +10457,6 @@ var BsExchange = function BsExchange(props) {
|
|
|
10401
10457
|
}, []);
|
|
10402
10458
|
React.useEffect(function () {
|
|
10403
10459
|
pubsub__default['default'].subscribe('selectListReturn', function (_, data) {
|
|
10404
|
-
console.log('selectListReturn', data);
|
|
10405
10460
|
if (disabled) return;
|
|
10406
10461
|
var newValue = _objectSpread2({}, data.goodValue);
|
|
10407
10462
|
var newDataList = lodash.cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
@@ -10632,6 +10687,11 @@ var BsReissue = function BsReissue(props) {
|
|
|
10632
10687
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10633
10688
|
}
|
|
10634
10689
|
});
|
|
10690
|
+
pubsub__default['default'].subscribeOnce('changeShopCode', function (type, data) {
|
|
10691
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10692
|
+
shopCode: data.shopCode
|
|
10693
|
+
}));
|
|
10694
|
+
});
|
|
10635
10695
|
}, [value, disabled]);
|
|
10636
10696
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
10637
10697
|
var newValue = _objectSpread2({}, value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.8.9-alpha.
|
|
3
|
+
"version": "0.8.9-alpha.1",
|
|
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": "ac4f58b96e2bde8340eefe7264e26a691078c729"
|
|
62
62
|
}
|