@kmkf-fe-packages/basic-components 0.21.6-alpha.3 → 0.21.6-alpha.4
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/README.md +1 -2
- package/dist/index.esm.js +50 -23
- package/dist/index.js +50 -23
- package/dist/src/business/Payment/index.d.ts +3 -0
- package/package.json +3 -3
package/README.md
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -9230,7 +9230,9 @@ var Payment = function Payment(props) {
|
|
|
9230
9230
|
shopList = props.shopList,
|
|
9231
9231
|
onChange = props.onChange,
|
|
9232
9232
|
onSearch = props.onSearch,
|
|
9233
|
-
_onBlur = props.onBlur
|
|
9233
|
+
_onBlur = props.onBlur,
|
|
9234
|
+
_props$replaceValueCh = props.replaceValueCh,
|
|
9235
|
+
replaceValueCh = _props$replaceValueCh === void 0 ? {} : _props$replaceValueCh;
|
|
9234
9236
|
useEffect(function () {
|
|
9235
9237
|
var platformList = ['TAOBAO', 'FXG'];
|
|
9236
9238
|
var showBuyerId = (shopList || []).some(function (item) {
|
|
@@ -9307,7 +9309,11 @@ var Payment = function Payment(props) {
|
|
|
9307
9309
|
onBlur: function onBlur(e) {
|
|
9308
9310
|
return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e.target.value, item.name);
|
|
9309
9311
|
}
|
|
9310
|
-
}))
|
|
9312
|
+
}), (replaceValueCh === null || replaceValueCh === void 0 ? void 0 : replaceValueCh[item.name]) && /*#__PURE__*/React.createElement("p", {
|
|
9313
|
+
style: {
|
|
9314
|
+
color: '#e99d42'
|
|
9315
|
+
}
|
|
9316
|
+
}, replaceValueCh === null || replaceValueCh === void 0 ? void 0 : replaceValueCh[item.name]));
|
|
9311
9317
|
}));
|
|
9312
9318
|
};
|
|
9313
9319
|
|
|
@@ -9784,11 +9790,12 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9784
9790
|
});
|
|
9785
9791
|
var initHandle = /*#__PURE__*/function () {
|
|
9786
9792
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
9787
|
-
var initValue, value, initList, valueList, changeList, initSnapshotList, valueSnapshotList, hasValue, listValue, requestList, requestValues;
|
|
9793
|
+
var initValue, value, hasSnapshot, initList, valueList, changeList, initSnapshotList, valueSnapshotList, hasValue, listValue, requestList, requestValues;
|
|
9788
9794
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9789
9795
|
while (1) switch (_context.prev = _context.next) {
|
|
9790
9796
|
case 0:
|
|
9791
9797
|
initValue = _ref.initValue, value = _ref.value;
|
|
9798
|
+
hasSnapshot = showField && showField.includes('snapshot');
|
|
9792
9799
|
initList = initValue.map(function (item) {
|
|
9793
9800
|
if (item.trajectoryCompany === 'SF') {
|
|
9794
9801
|
return {
|
|
@@ -9841,7 +9848,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9841
9848
|
// JSON.stringify(changeList) !== JSON.stringify(valueList),
|
|
9842
9849
|
// );
|
|
9843
9850
|
if (!(JSON.stringify(initList) === JSON.stringify(valueList))) {
|
|
9844
|
-
_context.next =
|
|
9851
|
+
_context.next = 12;
|
|
9845
9852
|
break;
|
|
9846
9853
|
}
|
|
9847
9854
|
initSnapshotList = initValue.reduce(function (prv, next) {
|
|
@@ -9860,11 +9867,13 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9860
9867
|
setNewValue(initValue);
|
|
9861
9868
|
onChange(initValue);
|
|
9862
9869
|
}
|
|
9863
|
-
_context.next =
|
|
9870
|
+
_context.next = 28;
|
|
9864
9871
|
break;
|
|
9865
|
-
case
|
|
9866
|
-
if (!(
|
|
9867
|
-
|
|
9872
|
+
case 12:
|
|
9873
|
+
if (!(
|
|
9874
|
+
//开启了物流快照才会获取快照信息
|
|
9875
|
+
hasSnapshot && JSON.stringify(initList) !== JSON.stringify(valueList) && JSON.stringify(changeList) !== JSON.stringify(valueList))) {
|
|
9876
|
+
_context.next = 27;
|
|
9868
9877
|
break;
|
|
9869
9878
|
}
|
|
9870
9879
|
hasSave.current = false;
|
|
@@ -9873,7 +9882,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9873
9882
|
});
|
|
9874
9883
|
listValue = cloneDeep(value);
|
|
9875
9884
|
if (!hasValue) {
|
|
9876
|
-
_context.next =
|
|
9885
|
+
_context.next = 22;
|
|
9877
9886
|
break;
|
|
9878
9887
|
}
|
|
9879
9888
|
requestList = valueList.map(function (item) {
|
|
@@ -9886,9 +9895,9 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9886
9895
|
}
|
|
9887
9896
|
});
|
|
9888
9897
|
});
|
|
9889
|
-
_context.next =
|
|
9898
|
+
_context.next = 20;
|
|
9890
9899
|
return Promise.allSettled(requestList);
|
|
9891
|
-
case
|
|
9900
|
+
case 20:
|
|
9892
9901
|
requestValues = _context.sent;
|
|
9893
9902
|
listValue = cloneDeep(value).map(function (item, index) {
|
|
9894
9903
|
var _requestValues$index, _requestValues$index$, _requestValues$index$2;
|
|
@@ -9896,11 +9905,15 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9896
9905
|
trajectorySnapshot: (_requestValues$index = requestValues[index]) === null || _requestValues$index === void 0 ? void 0 : (_requestValues$index$ = _requestValues$index.value) === null || _requestValues$index$ === void 0 ? void 0 : (_requestValues$index$2 = _requestValues$index$.data) === null || _requestValues$index$2 === void 0 ? void 0 : _requestValues$index$2.logisticsStatusDesc
|
|
9897
9906
|
});
|
|
9898
9907
|
});
|
|
9899
|
-
case
|
|
9908
|
+
case 22:
|
|
9900
9909
|
setChangeValue(listValue);
|
|
9901
9910
|
setNewValue(listValue);
|
|
9902
9911
|
onChange(listValue);
|
|
9903
|
-
|
|
9912
|
+
_context.next = 28;
|
|
9913
|
+
break;
|
|
9914
|
+
case 27:
|
|
9915
|
+
setNewValue(value);
|
|
9916
|
+
case 28:
|
|
9904
9917
|
case "end":
|
|
9905
9918
|
return _context.stop();
|
|
9906
9919
|
}
|
|
@@ -10810,9 +10823,10 @@ var BsGoods = function BsGoods(props) {
|
|
|
10810
10823
|
};
|
|
10811
10824
|
setTableSelect(['2', '4'].includes(data.val));
|
|
10812
10825
|
if (['1', '3'].includes(data.val)) {
|
|
10813
|
-
var _valueRef$current;
|
|
10826
|
+
var _valueRef$current, _valueRef$current2;
|
|
10814
10827
|
pubsub.publish('selectListReturn', {
|
|
10815
10828
|
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.bsGoods) || []),
|
|
10829
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode,
|
|
10816
10830
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
10817
10831
|
});
|
|
10818
10832
|
}
|
|
@@ -10827,13 +10841,14 @@ var BsGoods = function BsGoods(props) {
|
|
|
10827
10841
|
};
|
|
10828
10842
|
setTableSelect(['2', '4'].includes(data.val));
|
|
10829
10843
|
if (['1', '3'].includes(data.val)) {
|
|
10830
|
-
var _valueRef$
|
|
10844
|
+
var _valueRef$current3, _valueRef$current4;
|
|
10831
10845
|
// console.log(
|
|
10832
10846
|
// 'goods-reissueSelectListReturn',
|
|
10833
10847
|
// valueRef?.current?.bsGoods,
|
|
10834
10848
|
// );
|
|
10835
10849
|
pubsub.publish('reissueSelectListReturn', {
|
|
10836
|
-
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
10850
|
+
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3.bsGoods) || []),
|
|
10851
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current4 = valueRef.current) === null || _valueRef$current4 === void 0 ? void 0 : _valueRef$current4.shopCode,
|
|
10837
10852
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
10838
10853
|
});
|
|
10839
10854
|
}
|
|
@@ -10848,9 +10863,10 @@ var BsGoods = function BsGoods(props) {
|
|
|
10848
10863
|
};
|
|
10849
10864
|
setTableSelect(['2', '4'].includes(data.val));
|
|
10850
10865
|
if (['1', '3'].includes(data.val)) {
|
|
10851
|
-
var _valueRef$
|
|
10866
|
+
var _valueRef$current5, _valueRef$current6;
|
|
10852
10867
|
pubsub.publish('returnSelectListReturn', {
|
|
10853
|
-
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
10868
|
+
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5.bsGoods) || []),
|
|
10869
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6.shopCode,
|
|
10854
10870
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
10855
10871
|
});
|
|
10856
10872
|
}
|
|
@@ -10866,7 +10882,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
10866
10882
|
};
|
|
10867
10883
|
}, [disabled]);
|
|
10868
10884
|
var _onSelect = function onSelect(list) {
|
|
10869
|
-
var _withInfo$current, _withInfo$current2;
|
|
10885
|
+
var _withInfo$current, _withInfo$current2, _valueRef$current7;
|
|
10870
10886
|
if (disabled) return;
|
|
10871
10887
|
var newList = cloneDeep(list);
|
|
10872
10888
|
var typeMap = {
|
|
@@ -10882,6 +10898,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
10882
10898
|
item.canDelete = true;
|
|
10883
10899
|
return item;
|
|
10884
10900
|
}),
|
|
10901
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current7 = valueRef.current) === null || _valueRef$current7 === void 0 ? void 0 : _valueRef$current7.shopCode,
|
|
10885
10902
|
goodValue: withInfo.current.goodValue
|
|
10886
10903
|
});
|
|
10887
10904
|
};
|
|
@@ -10959,6 +10976,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
10959
10976
|
if (disabled) return;
|
|
10960
10977
|
var newDataList = cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
10961
10978
|
onChange(_objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
10979
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode,
|
|
10962
10980
|
bsExchangeReturnGoods: getListHandle(newDataList, valueRef.current)
|
|
10963
10981
|
}));
|
|
10964
10982
|
});
|
|
@@ -10969,6 +10987,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
10969
10987
|
var newValue = _objectSpread2({}, data.goodValue);
|
|
10970
10988
|
var newDataList = cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
10971
10989
|
onChange(_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
10990
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode,
|
|
10972
10991
|
bsExchangeReturnGoods: getListHandle(newDataList, newValue)
|
|
10973
10992
|
}));
|
|
10974
10993
|
});
|
|
@@ -11162,7 +11181,9 @@ var BsReissue = function BsReissue(props) {
|
|
|
11162
11181
|
pubsub.subscribe('reissueSelectList', function (_, data) {
|
|
11163
11182
|
// console.log('reissueSelectList', data);
|
|
11164
11183
|
if (disabled) return;
|
|
11165
|
-
var newValue = _objectSpread2({}, data.goodValue)
|
|
11184
|
+
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
11185
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
11186
|
+
});
|
|
11166
11187
|
newValue.bsReissueGoods = data === null || data === void 0 ? void 0 : data.list.map(function (item) {
|
|
11167
11188
|
item.money = 0;
|
|
11168
11189
|
item.share = 0;
|
|
@@ -11176,7 +11197,9 @@ var BsReissue = function BsReissue(props) {
|
|
|
11176
11197
|
pubsub.subscribe('reissueSelectListReturn', function (_, data) {
|
|
11177
11198
|
// console.log('reissueSelectListReturn', data);
|
|
11178
11199
|
if (disabled) return;
|
|
11179
|
-
var newValue = _objectSpread2({}, data.goodValue)
|
|
11200
|
+
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
11201
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
11202
|
+
});
|
|
11180
11203
|
newValue.bsReissueGoods = data === null || data === void 0 ? void 0 : data.list.map(function (item) {
|
|
11181
11204
|
item.money = 0;
|
|
11182
11205
|
item.share = 0;
|
|
@@ -11269,7 +11292,9 @@ var BsReturnGoods = function BsReturnGoods(props) {
|
|
|
11269
11292
|
pubsub.subscribe('returnSelectList', function (_, data) {
|
|
11270
11293
|
// console.log('returnSelectList', data);
|
|
11271
11294
|
if (disabled) return;
|
|
11272
|
-
var newValue = _objectSpread2({}, data.goodValue)
|
|
11295
|
+
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
11296
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
11297
|
+
});
|
|
11273
11298
|
newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
11274
11299
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
11275
11300
|
});
|
|
@@ -11278,7 +11303,9 @@ var BsReturnGoods = function BsReturnGoods(props) {
|
|
|
11278
11303
|
pubsub.subscribe('returnSelectListReturn', function (_, data) {
|
|
11279
11304
|
// console.log('returnSelectListReturn', data);
|
|
11280
11305
|
if (disabled) return;
|
|
11281
|
-
var newValue = _objectSpread2({}, data.goodValue)
|
|
11306
|
+
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
11307
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
11308
|
+
});
|
|
11282
11309
|
newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
11283
11310
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
11284
11311
|
});
|
package/dist/index.js
CHANGED
|
@@ -9241,7 +9241,9 @@ var Payment = function Payment(props) {
|
|
|
9241
9241
|
shopList = props.shopList,
|
|
9242
9242
|
onChange = props.onChange,
|
|
9243
9243
|
onSearch = props.onSearch,
|
|
9244
|
-
_onBlur = props.onBlur
|
|
9244
|
+
_onBlur = props.onBlur,
|
|
9245
|
+
_props$replaceValueCh = props.replaceValueCh,
|
|
9246
|
+
replaceValueCh = _props$replaceValueCh === void 0 ? {} : _props$replaceValueCh;
|
|
9245
9247
|
React.useEffect(function () {
|
|
9246
9248
|
var platformList = ['TAOBAO', 'FXG'];
|
|
9247
9249
|
var showBuyerId = (shopList || []).some(function (item) {
|
|
@@ -9318,7 +9320,11 @@ var Payment = function Payment(props) {
|
|
|
9318
9320
|
onBlur: function onBlur(e) {
|
|
9319
9321
|
return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e.target.value, item.name);
|
|
9320
9322
|
}
|
|
9321
|
-
}))
|
|
9323
|
+
}), (replaceValueCh === null || replaceValueCh === void 0 ? void 0 : replaceValueCh[item.name]) && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
9324
|
+
style: {
|
|
9325
|
+
color: '#e99d42'
|
|
9326
|
+
}
|
|
9327
|
+
}, replaceValueCh === null || replaceValueCh === void 0 ? void 0 : replaceValueCh[item.name]));
|
|
9322
9328
|
}));
|
|
9323
9329
|
};
|
|
9324
9330
|
|
|
@@ -9795,11 +9801,12 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9795
9801
|
});
|
|
9796
9802
|
var initHandle = /*#__PURE__*/function () {
|
|
9797
9803
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
9798
|
-
var initValue, value, initList, valueList, changeList, initSnapshotList, valueSnapshotList, hasValue, listValue, requestList, requestValues;
|
|
9804
|
+
var initValue, value, hasSnapshot, initList, valueList, changeList, initSnapshotList, valueSnapshotList, hasValue, listValue, requestList, requestValues;
|
|
9799
9805
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9800
9806
|
while (1) switch (_context.prev = _context.next) {
|
|
9801
9807
|
case 0:
|
|
9802
9808
|
initValue = _ref.initValue, value = _ref.value;
|
|
9809
|
+
hasSnapshot = showField && showField.includes('snapshot');
|
|
9803
9810
|
initList = initValue.map(function (item) {
|
|
9804
9811
|
if (item.trajectoryCompany === 'SF') {
|
|
9805
9812
|
return {
|
|
@@ -9852,7 +9859,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9852
9859
|
// JSON.stringify(changeList) !== JSON.stringify(valueList),
|
|
9853
9860
|
// );
|
|
9854
9861
|
if (!(JSON.stringify(initList) === JSON.stringify(valueList))) {
|
|
9855
|
-
_context.next =
|
|
9862
|
+
_context.next = 12;
|
|
9856
9863
|
break;
|
|
9857
9864
|
}
|
|
9858
9865
|
initSnapshotList = initValue.reduce(function (prv, next) {
|
|
@@ -9871,11 +9878,13 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9871
9878
|
setNewValue(initValue);
|
|
9872
9879
|
onChange(initValue);
|
|
9873
9880
|
}
|
|
9874
|
-
_context.next =
|
|
9881
|
+
_context.next = 28;
|
|
9875
9882
|
break;
|
|
9876
|
-
case
|
|
9877
|
-
if (!(
|
|
9878
|
-
|
|
9883
|
+
case 12:
|
|
9884
|
+
if (!(
|
|
9885
|
+
//开启了物流快照才会获取快照信息
|
|
9886
|
+
hasSnapshot && JSON.stringify(initList) !== JSON.stringify(valueList) && JSON.stringify(changeList) !== JSON.stringify(valueList))) {
|
|
9887
|
+
_context.next = 27;
|
|
9879
9888
|
break;
|
|
9880
9889
|
}
|
|
9881
9890
|
hasSave.current = false;
|
|
@@ -9884,7 +9893,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9884
9893
|
});
|
|
9885
9894
|
listValue = lodash.cloneDeep(value);
|
|
9886
9895
|
if (!hasValue) {
|
|
9887
|
-
_context.next =
|
|
9896
|
+
_context.next = 22;
|
|
9888
9897
|
break;
|
|
9889
9898
|
}
|
|
9890
9899
|
requestList = valueList.map(function (item) {
|
|
@@ -9897,9 +9906,9 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9897
9906
|
}
|
|
9898
9907
|
});
|
|
9899
9908
|
});
|
|
9900
|
-
_context.next =
|
|
9909
|
+
_context.next = 20;
|
|
9901
9910
|
return Promise.allSettled(requestList);
|
|
9902
|
-
case
|
|
9911
|
+
case 20:
|
|
9903
9912
|
requestValues = _context.sent;
|
|
9904
9913
|
listValue = lodash.cloneDeep(value).map(function (item, index) {
|
|
9905
9914
|
var _requestValues$index, _requestValues$index$, _requestValues$index$2;
|
|
@@ -9907,11 +9916,15 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
9907
9916
|
trajectorySnapshot: (_requestValues$index = requestValues[index]) === null || _requestValues$index === void 0 ? void 0 : (_requestValues$index$ = _requestValues$index.value) === null || _requestValues$index$ === void 0 ? void 0 : (_requestValues$index$2 = _requestValues$index$.data) === null || _requestValues$index$2 === void 0 ? void 0 : _requestValues$index$2.logisticsStatusDesc
|
|
9908
9917
|
});
|
|
9909
9918
|
});
|
|
9910
|
-
case
|
|
9919
|
+
case 22:
|
|
9911
9920
|
setChangeValue(listValue);
|
|
9912
9921
|
setNewValue(listValue);
|
|
9913
9922
|
onChange(listValue);
|
|
9914
|
-
|
|
9923
|
+
_context.next = 28;
|
|
9924
|
+
break;
|
|
9925
|
+
case 27:
|
|
9926
|
+
setNewValue(value);
|
|
9927
|
+
case 28:
|
|
9915
9928
|
case "end":
|
|
9916
9929
|
return _context.stop();
|
|
9917
9930
|
}
|
|
@@ -10821,9 +10834,10 @@ var BsGoods = function BsGoods(props) {
|
|
|
10821
10834
|
};
|
|
10822
10835
|
setTableSelect(['2', '4'].includes(data.val));
|
|
10823
10836
|
if (['1', '3'].includes(data.val)) {
|
|
10824
|
-
var _valueRef$current;
|
|
10837
|
+
var _valueRef$current, _valueRef$current2;
|
|
10825
10838
|
pubsub__default['default'].publish('selectListReturn', {
|
|
10826
10839
|
list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.bsGoods) || []),
|
|
10840
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode,
|
|
10827
10841
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
10828
10842
|
});
|
|
10829
10843
|
}
|
|
@@ -10838,13 +10852,14 @@ var BsGoods = function BsGoods(props) {
|
|
|
10838
10852
|
};
|
|
10839
10853
|
setTableSelect(['2', '4'].includes(data.val));
|
|
10840
10854
|
if (['1', '3'].includes(data.val)) {
|
|
10841
|
-
var _valueRef$
|
|
10855
|
+
var _valueRef$current3, _valueRef$current4;
|
|
10842
10856
|
// console.log(
|
|
10843
10857
|
// 'goods-reissueSelectListReturn',
|
|
10844
10858
|
// valueRef?.current?.bsGoods,
|
|
10845
10859
|
// );
|
|
10846
10860
|
pubsub__default['default'].publish('reissueSelectListReturn', {
|
|
10847
|
-
list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
10861
|
+
list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3.bsGoods) || []),
|
|
10862
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current4 = valueRef.current) === null || _valueRef$current4 === void 0 ? void 0 : _valueRef$current4.shopCode,
|
|
10848
10863
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
10849
10864
|
});
|
|
10850
10865
|
}
|
|
@@ -10859,9 +10874,10 @@ var BsGoods = function BsGoods(props) {
|
|
|
10859
10874
|
};
|
|
10860
10875
|
setTableSelect(['2', '4'].includes(data.val));
|
|
10861
10876
|
if (['1', '3'].includes(data.val)) {
|
|
10862
|
-
var _valueRef$
|
|
10877
|
+
var _valueRef$current5, _valueRef$current6;
|
|
10863
10878
|
pubsub__default['default'].publish('returnSelectListReturn', {
|
|
10864
|
-
list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$
|
|
10879
|
+
list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5.bsGoods) || []),
|
|
10880
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6.shopCode,
|
|
10865
10881
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
10866
10882
|
});
|
|
10867
10883
|
}
|
|
@@ -10877,7 +10893,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
10877
10893
|
};
|
|
10878
10894
|
}, [disabled]);
|
|
10879
10895
|
var _onSelect = function onSelect(list) {
|
|
10880
|
-
var _withInfo$current, _withInfo$current2;
|
|
10896
|
+
var _withInfo$current, _withInfo$current2, _valueRef$current7;
|
|
10881
10897
|
if (disabled) return;
|
|
10882
10898
|
var newList = lodash.cloneDeep(list);
|
|
10883
10899
|
var typeMap = {
|
|
@@ -10893,6 +10909,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
10893
10909
|
item.canDelete = true;
|
|
10894
10910
|
return item;
|
|
10895
10911
|
}),
|
|
10912
|
+
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current7 = valueRef.current) === null || _valueRef$current7 === void 0 ? void 0 : _valueRef$current7.shopCode,
|
|
10896
10913
|
goodValue: withInfo.current.goodValue
|
|
10897
10914
|
});
|
|
10898
10915
|
};
|
|
@@ -10970,6 +10987,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
10970
10987
|
if (disabled) return;
|
|
10971
10988
|
var newDataList = lodash.cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
10972
10989
|
onChange(_objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
10990
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode,
|
|
10973
10991
|
bsExchangeReturnGoods: getListHandle(newDataList, valueRef.current)
|
|
10974
10992
|
}));
|
|
10975
10993
|
});
|
|
@@ -10980,6 +10998,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
10980
10998
|
var newValue = _objectSpread2({}, data.goodValue);
|
|
10981
10999
|
var newDataList = lodash.cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
10982
11000
|
onChange(_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
11001
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode,
|
|
10983
11002
|
bsExchangeReturnGoods: getListHandle(newDataList, newValue)
|
|
10984
11003
|
}));
|
|
10985
11004
|
});
|
|
@@ -11173,7 +11192,9 @@ var BsReissue = function BsReissue(props) {
|
|
|
11173
11192
|
pubsub__default['default'].subscribe('reissueSelectList', function (_, data) {
|
|
11174
11193
|
// console.log('reissueSelectList', data);
|
|
11175
11194
|
if (disabled) return;
|
|
11176
|
-
var newValue = _objectSpread2({}, data.goodValue)
|
|
11195
|
+
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
11196
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
11197
|
+
});
|
|
11177
11198
|
newValue.bsReissueGoods = data === null || data === void 0 ? void 0 : data.list.map(function (item) {
|
|
11178
11199
|
item.money = 0;
|
|
11179
11200
|
item.share = 0;
|
|
@@ -11187,7 +11208,9 @@ var BsReissue = function BsReissue(props) {
|
|
|
11187
11208
|
pubsub__default['default'].subscribe('reissueSelectListReturn', function (_, data) {
|
|
11188
11209
|
// console.log('reissueSelectListReturn', data);
|
|
11189
11210
|
if (disabled) return;
|
|
11190
|
-
var newValue = _objectSpread2({}, data.goodValue)
|
|
11211
|
+
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
11212
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
11213
|
+
});
|
|
11191
11214
|
newValue.bsReissueGoods = data === null || data === void 0 ? void 0 : data.list.map(function (item) {
|
|
11192
11215
|
item.money = 0;
|
|
11193
11216
|
item.share = 0;
|
|
@@ -11280,7 +11303,9 @@ var BsReturnGoods = function BsReturnGoods(props) {
|
|
|
11280
11303
|
pubsub__default['default'].subscribe('returnSelectList', function (_, data) {
|
|
11281
11304
|
// console.log('returnSelectList', data);
|
|
11282
11305
|
if (disabled) return;
|
|
11283
|
-
var newValue = _objectSpread2({}, data.goodValue)
|
|
11306
|
+
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
11307
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
11308
|
+
});
|
|
11284
11309
|
newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
11285
11310
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
11286
11311
|
});
|
|
@@ -11289,7 +11314,9 @@ var BsReturnGoods = function BsReturnGoods(props) {
|
|
|
11289
11314
|
pubsub__default['default'].subscribe('returnSelectListReturn', function (_, data) {
|
|
11290
11315
|
// console.log('returnSelectListReturn', data);
|
|
11291
11316
|
if (disabled) return;
|
|
11292
|
-
var newValue = _objectSpread2({}, data.goodValue)
|
|
11317
|
+
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
11318
|
+
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
11319
|
+
});
|
|
11293
11320
|
newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
11294
11321
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
11295
11322
|
});
|
|
@@ -10,6 +10,9 @@ export interface PaymentProps {
|
|
|
10
10
|
onChange: (value: any) => void;
|
|
11
11
|
onSearch: (value: any) => void;
|
|
12
12
|
onBlur: (value: any, type: string) => void;
|
|
13
|
+
replaceValueCh?: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
13
16
|
}
|
|
14
17
|
declare const Payment: (props: Partial<PaymentProps>) => React.JSX.Element;
|
|
15
18
|
export default Payment;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.21.6-alpha.
|
|
3
|
+
"version": "0.21.6-alpha.4",
|
|
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.21.6-alpha.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.21.6-alpha.4",
|
|
24
24
|
"ahooks": "^3.7.8",
|
|
25
25
|
"lodash": "^4.17.21",
|
|
26
26
|
"pubsub-js": "^1.9.4",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "6e8607051c7505581ca51a0146ed1de51a94dd42"
|
|
66
66
|
}
|