@kmkf-fe-packages/basic-components 0.9.2 → 0.10.0-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/dist/index.esm.js
CHANGED
|
@@ -6853,7 +6853,7 @@ hooks.HTML5_FMT = {
|
|
|
6853
6853
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6854
6854
|
};
|
|
6855
6855
|
|
|
6856
|
-
var _excluded$7 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "canDownload", "actionUrl"];
|
|
6856
|
+
var _excluded$7 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "canDownload", "actionUrl", "platform"];
|
|
6857
6857
|
var Dragger = Upload.Dragger;
|
|
6858
6858
|
var fn$2 = function fn() {
|
|
6859
6859
|
return void 0;
|
|
@@ -6878,6 +6878,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
6878
6878
|
canDownload = _ref$canDownload === void 0 ? false : _ref$canDownload,
|
|
6879
6879
|
_ref$actionUrl = _ref.actionUrl,
|
|
6880
6880
|
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
6881
|
+
_ref$platform = _ref.platform,
|
|
6881
6882
|
resetProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
6882
6883
|
var inputRef = useRef(null);
|
|
6883
6884
|
var _useState = useState(false),
|
|
@@ -6896,6 +6897,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
6896
6897
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
6897
6898
|
fileName = _useState8[0],
|
|
6898
6899
|
setFileName = _useState8[1];
|
|
6900
|
+
// const [blackList, setBlackList] = useState<any>({});
|
|
6899
6901
|
var valueRef = useRef(value);
|
|
6900
6902
|
var _useState9 = useState(false),
|
|
6901
6903
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
@@ -6915,6 +6917,9 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
6915
6917
|
});
|
|
6916
6918
|
});
|
|
6917
6919
|
}, [value]);
|
|
6920
|
+
// useEffect(() => {
|
|
6921
|
+
// getVideoBlack();
|
|
6922
|
+
// }, []);
|
|
6918
6923
|
useEffect(function () {
|
|
6919
6924
|
valueRef.current = value;
|
|
6920
6925
|
}, [value]);
|
|
@@ -6934,6 +6939,20 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
6934
6939
|
});
|
|
6935
6940
|
};
|
|
6936
6941
|
}, [pasteDefaultStates]);
|
|
6942
|
+
//获取视频上传黑名单
|
|
6943
|
+
// const getVideoBlack = async () => {
|
|
6944
|
+
// request('/qy/diamond/getConfigInfo', {
|
|
6945
|
+
// method: 'get',
|
|
6946
|
+
// params: {
|
|
6947
|
+
// key: 'video-upload-code',
|
|
6948
|
+
// name: 'getConfigInfo',
|
|
6949
|
+
// },
|
|
6950
|
+
// }).then((res) => {
|
|
6951
|
+
// if (res.success && res.data) {
|
|
6952
|
+
// setBlackList(JSON.parse(res.data));
|
|
6953
|
+
// }
|
|
6954
|
+
// });
|
|
6955
|
+
// };
|
|
6937
6956
|
var asyncUpload = /*#__PURE__*/function () {
|
|
6938
6957
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
6939
6958
|
var formData, fileName, _yield$request, success, data;
|
|
@@ -6985,9 +7004,9 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
6985
7004
|
fetch(url).then(function (res) {
|
|
6986
7005
|
return res.blob();
|
|
6987
7006
|
}).then(function (blob) {
|
|
6988
|
-
var a = document.createElement(
|
|
7007
|
+
var a = document.createElement('a');
|
|
6989
7008
|
document.body.appendChild(a);
|
|
6990
|
-
a.style.display =
|
|
7009
|
+
a.style.display = 'none';
|
|
6991
7010
|
var url = window.URL.createObjectURL(blob);
|
|
6992
7011
|
a.href = url;
|
|
6993
7012
|
a.download = name;
|
|
@@ -7000,6 +7019,43 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
7000
7019
|
valueRef.current = list;
|
|
7001
7020
|
onChange(list);
|
|
7002
7021
|
};
|
|
7022
|
+
// const verificationFormat = async (file: any) => {
|
|
7023
|
+
// //飞鸽端不支持worker没有办法使用react-mediainfo插件
|
|
7024
|
+
// if (platform !== 'fxg') {
|
|
7025
|
+
// const { getInfo } = await require('react-mediainfo');
|
|
7026
|
+
// getInfo(file).then((res: any) => {
|
|
7027
|
+
// const {
|
|
7028
|
+
// media: { track },
|
|
7029
|
+
// } = res;
|
|
7030
|
+
// console.log(res);
|
|
7031
|
+
// const videoItem = track.find((item: any) => item['@type'] === 'Video');
|
|
7032
|
+
// const generalItem = track.find(
|
|
7033
|
+
// (item: any) => item['@type'] === 'General',
|
|
7034
|
+
// );
|
|
7035
|
+
// if (
|
|
7036
|
+
// videoItem &&
|
|
7037
|
+
// blackList[generalItem?.Format.toUpperCase()] &&
|
|
7038
|
+
// blackList[generalItem?.Format.toUpperCase()].includes(
|
|
7039
|
+
// videoItem?.Format.toUpperCase(),
|
|
7040
|
+
// )
|
|
7041
|
+
// ) {
|
|
7042
|
+
// Modal.confirm({
|
|
7043
|
+
// title: '提示',
|
|
7044
|
+
// content: '上传的视频可能无法播放,确认要上传吗?',
|
|
7045
|
+
// okText: '确定',
|
|
7046
|
+
// cancelText: '取消',
|
|
7047
|
+
// onOk: () => {
|
|
7048
|
+
// asyncUpload(file);
|
|
7049
|
+
// },
|
|
7050
|
+
// });
|
|
7051
|
+
// } else {
|
|
7052
|
+
// asyncUpload(file);
|
|
7053
|
+
// }
|
|
7054
|
+
// });
|
|
7055
|
+
// } else {
|
|
7056
|
+
// asyncUpload(file);
|
|
7057
|
+
// }
|
|
7058
|
+
// };
|
|
7003
7059
|
// 手动上传模式, 一直返回false
|
|
7004
7060
|
var beforeUpload = function beforeUpload(file) {
|
|
7005
7061
|
console.log('beforeUpload', file);
|
|
@@ -7012,6 +7068,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
7012
7068
|
message.error("\u6587\u4EF6\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
7013
7069
|
return Upload.LIST_IGNORE;
|
|
7014
7070
|
}
|
|
7071
|
+
// verificationFormat(file);
|
|
7015
7072
|
asyncUpload(file);
|
|
7016
7073
|
return Upload.LIST_IGNORE;
|
|
7017
7074
|
};
|
|
@@ -7083,6 +7140,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
7083
7140
|
fileName = blob.name;
|
|
7084
7141
|
file = dataURLtoFile(result, fileName);
|
|
7085
7142
|
asyncUpload(file);
|
|
7143
|
+
// verificationFormat(file);
|
|
7086
7144
|
case 4:
|
|
7087
7145
|
case "end":
|
|
7088
7146
|
return _context2.stop();
|
|
@@ -7153,7 +7211,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
7153
7211
|
}, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
7154
7212
|
text: fileUrl,
|
|
7155
7213
|
onCopy: function onCopy() {
|
|
7156
|
-
message.success(
|
|
7214
|
+
message.success('复制成功');
|
|
7157
7215
|
}
|
|
7158
7216
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
7159
7217
|
type: "link"
|
|
@@ -9437,7 +9495,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9437
9495
|
interceptReceiverName: undefined,
|
|
9438
9496
|
interceptReceiverMobile: undefined,
|
|
9439
9497
|
interceptLogisticsStatus: undefined,
|
|
9440
|
-
interceptLogisticsStatusOther: undefined
|
|
9498
|
+
interceptLogisticsStatusOther: undefined,
|
|
9499
|
+
interceptLogisticsSnapshot: undefined
|
|
9441
9500
|
});
|
|
9442
9501
|
}
|
|
9443
9502
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -10732,12 +10791,14 @@ var BsExchange = function BsExchange(props) {
|
|
|
10732
10791
|
}, []);
|
|
10733
10792
|
var getListHandle = function getListHandle(list, val) {
|
|
10734
10793
|
var _val$bsExchangeType, _val$bsExchangeType2;
|
|
10794
|
+
//固定的sku
|
|
10795
|
+
var FIXED_FIELD = ['Q0000002', '600123001', '10103003', 'Q0000003', 'Q0000004'];
|
|
10735
10796
|
//如果是原单换
|
|
10736
10797
|
if (['1', '3'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType = val.bsExchangeType) === null || _val$bsExchangeType === void 0 ? void 0 : _val$bsExchangeType[0])) {
|
|
10737
10798
|
return list.reduce(function (prv, next) {
|
|
10738
10799
|
next.canDelete = false;
|
|
10739
10800
|
//数量大于1 拆开
|
|
10740
|
-
if (next.number > 1) {
|
|
10801
|
+
if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
|
|
10741
10802
|
var newList = Array(next.number).fill({}).map(function () {
|
|
10742
10803
|
var newNext = _objectSpread2({}, next);
|
|
10743
10804
|
newNext.money = newNext.share;
|
|
@@ -10757,7 +10818,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
10757
10818
|
next.canDelete = true;
|
|
10758
10819
|
next.index = index;
|
|
10759
10820
|
//数量大于1 拆开
|
|
10760
|
-
if (next.number > 1) {
|
|
10821
|
+
if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
|
|
10761
10822
|
var newList = Array(next.number).fill({}).map(function () {
|
|
10762
10823
|
var newNext = _objectSpread2({}, next);
|
|
10763
10824
|
newNext.money = newNext.share;
|
|
@@ -11694,7 +11755,7 @@ function CommonStatus(props) {
|
|
|
11694
11755
|
}
|
|
11695
11756
|
|
|
11696
11757
|
var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
11697
|
-
var _value$changeIndex, _value$changeIndex2;
|
|
11758
|
+
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
11698
11759
|
var _props$value = props.value,
|
|
11699
11760
|
value = _props$value === void 0 ? [] : _props$value,
|
|
11700
11761
|
onChange = props.onChange,
|
|
@@ -11756,6 +11817,13 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
11756
11817
|
return changeInputHandle(e.target.value, 'returnGoodsTradeId');
|
|
11757
11818
|
},
|
|
11758
11819
|
value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.returnGoodsTradeId
|
|
11820
|
+
})) : null, type === 3 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
11821
|
+
disabled: true,
|
|
11822
|
+
placeholder: "\u8BF7\u8F93\u5165\u6362\u8D27\u5355id",
|
|
11823
|
+
onChange: function onChange(e) {
|
|
11824
|
+
return changeInputHandle(e.target.value, 'reissueTradeId');
|
|
11825
|
+
},
|
|
11826
|
+
value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reissueTradeId
|
|
11759
11827
|
})) : null) : null);
|
|
11760
11828
|
};
|
|
11761
11829
|
|
package/dist/index.js
CHANGED
|
@@ -6864,7 +6864,7 @@ hooks.HTML5_FMT = {
|
|
|
6864
6864
|
MONTH: 'YYYY-MM', // <input type="month" />
|
|
6865
6865
|
};
|
|
6866
6866
|
|
|
6867
|
-
var _excluded$7 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "canDownload", "actionUrl"];
|
|
6867
|
+
var _excluded$7 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "canDownload", "actionUrl", "platform"];
|
|
6868
6868
|
var Dragger = antd.Upload.Dragger;
|
|
6869
6869
|
var fn$2 = function fn() {
|
|
6870
6870
|
return void 0;
|
|
@@ -6889,6 +6889,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
6889
6889
|
canDownload = _ref$canDownload === void 0 ? false : _ref$canDownload,
|
|
6890
6890
|
_ref$actionUrl = _ref.actionUrl,
|
|
6891
6891
|
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
6892
|
+
_ref$platform = _ref.platform,
|
|
6892
6893
|
resetProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
6893
6894
|
var inputRef = React.useRef(null);
|
|
6894
6895
|
var _useState = React.useState(false),
|
|
@@ -6907,6 +6908,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
6907
6908
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
6908
6909
|
fileName = _useState8[0],
|
|
6909
6910
|
setFileName = _useState8[1];
|
|
6911
|
+
// const [blackList, setBlackList] = useState<any>({});
|
|
6910
6912
|
var valueRef = React.useRef(value);
|
|
6911
6913
|
var _useState9 = React.useState(false),
|
|
6912
6914
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
@@ -6926,6 +6928,9 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
6926
6928
|
});
|
|
6927
6929
|
});
|
|
6928
6930
|
}, [value]);
|
|
6931
|
+
// useEffect(() => {
|
|
6932
|
+
// getVideoBlack();
|
|
6933
|
+
// }, []);
|
|
6929
6934
|
React.useEffect(function () {
|
|
6930
6935
|
valueRef.current = value;
|
|
6931
6936
|
}, [value]);
|
|
@@ -6945,6 +6950,20 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
6945
6950
|
});
|
|
6946
6951
|
};
|
|
6947
6952
|
}, [pasteDefaultStates]);
|
|
6953
|
+
//获取视频上传黑名单
|
|
6954
|
+
// const getVideoBlack = async () => {
|
|
6955
|
+
// request('/qy/diamond/getConfigInfo', {
|
|
6956
|
+
// method: 'get',
|
|
6957
|
+
// params: {
|
|
6958
|
+
// key: 'video-upload-code',
|
|
6959
|
+
// name: 'getConfigInfo',
|
|
6960
|
+
// },
|
|
6961
|
+
// }).then((res) => {
|
|
6962
|
+
// if (res.success && res.data) {
|
|
6963
|
+
// setBlackList(JSON.parse(res.data));
|
|
6964
|
+
// }
|
|
6965
|
+
// });
|
|
6966
|
+
// };
|
|
6948
6967
|
var asyncUpload = /*#__PURE__*/function () {
|
|
6949
6968
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
6950
6969
|
var formData, fileName, _yield$request, success, data;
|
|
@@ -6996,9 +7015,9 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
6996
7015
|
fetch(url).then(function (res) {
|
|
6997
7016
|
return res.blob();
|
|
6998
7017
|
}).then(function (blob) {
|
|
6999
|
-
var a = document.createElement(
|
|
7018
|
+
var a = document.createElement('a');
|
|
7000
7019
|
document.body.appendChild(a);
|
|
7001
|
-
a.style.display =
|
|
7020
|
+
a.style.display = 'none';
|
|
7002
7021
|
var url = window.URL.createObjectURL(blob);
|
|
7003
7022
|
a.href = url;
|
|
7004
7023
|
a.download = name;
|
|
@@ -7011,6 +7030,43 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
7011
7030
|
valueRef.current = list;
|
|
7012
7031
|
onChange(list);
|
|
7013
7032
|
};
|
|
7033
|
+
// const verificationFormat = async (file: any) => {
|
|
7034
|
+
// //飞鸽端不支持worker没有办法使用react-mediainfo插件
|
|
7035
|
+
// if (platform !== 'fxg') {
|
|
7036
|
+
// const { getInfo } = await require('react-mediainfo');
|
|
7037
|
+
// getInfo(file).then((res: any) => {
|
|
7038
|
+
// const {
|
|
7039
|
+
// media: { track },
|
|
7040
|
+
// } = res;
|
|
7041
|
+
// console.log(res);
|
|
7042
|
+
// const videoItem = track.find((item: any) => item['@type'] === 'Video');
|
|
7043
|
+
// const generalItem = track.find(
|
|
7044
|
+
// (item: any) => item['@type'] === 'General',
|
|
7045
|
+
// );
|
|
7046
|
+
// if (
|
|
7047
|
+
// videoItem &&
|
|
7048
|
+
// blackList[generalItem?.Format.toUpperCase()] &&
|
|
7049
|
+
// blackList[generalItem?.Format.toUpperCase()].includes(
|
|
7050
|
+
// videoItem?.Format.toUpperCase(),
|
|
7051
|
+
// )
|
|
7052
|
+
// ) {
|
|
7053
|
+
// Modal.confirm({
|
|
7054
|
+
// title: '提示',
|
|
7055
|
+
// content: '上传的视频可能无法播放,确认要上传吗?',
|
|
7056
|
+
// okText: '确定',
|
|
7057
|
+
// cancelText: '取消',
|
|
7058
|
+
// onOk: () => {
|
|
7059
|
+
// asyncUpload(file);
|
|
7060
|
+
// },
|
|
7061
|
+
// });
|
|
7062
|
+
// } else {
|
|
7063
|
+
// asyncUpload(file);
|
|
7064
|
+
// }
|
|
7065
|
+
// });
|
|
7066
|
+
// } else {
|
|
7067
|
+
// asyncUpload(file);
|
|
7068
|
+
// }
|
|
7069
|
+
// };
|
|
7014
7070
|
// 手动上传模式, 一直返回false
|
|
7015
7071
|
var beforeUpload = function beforeUpload(file) {
|
|
7016
7072
|
console.log('beforeUpload', file);
|
|
@@ -7023,6 +7079,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
7023
7079
|
antd.message.error("\u6587\u4EF6\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
|
|
7024
7080
|
return antd.Upload.LIST_IGNORE;
|
|
7025
7081
|
}
|
|
7082
|
+
// verificationFormat(file);
|
|
7026
7083
|
asyncUpload(file);
|
|
7027
7084
|
return antd.Upload.LIST_IGNORE;
|
|
7028
7085
|
};
|
|
@@ -7094,6 +7151,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
7094
7151
|
fileName = blob.name;
|
|
7095
7152
|
file = dataURLtoFile(result, fileName);
|
|
7096
7153
|
asyncUpload(file);
|
|
7154
|
+
// verificationFormat(file);
|
|
7097
7155
|
case 4:
|
|
7098
7156
|
case "end":
|
|
7099
7157
|
return _context2.stop();
|
|
@@ -7164,7 +7222,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
|
|
|
7164
7222
|
}, "\u4E0B\u8F7D") : /*#__PURE__*/React__default['default'].createElement(reactCopyToClipboard.CopyToClipboard, {
|
|
7165
7223
|
text: fileUrl,
|
|
7166
7224
|
onCopy: function onCopy() {
|
|
7167
|
-
antd.message.success(
|
|
7225
|
+
antd.message.success('复制成功');
|
|
7168
7226
|
}
|
|
7169
7227
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
7170
7228
|
type: "link"
|
|
@@ -9448,7 +9506,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9448
9506
|
interceptReceiverName: undefined,
|
|
9449
9507
|
interceptReceiverMobile: undefined,
|
|
9450
9508
|
interceptLogisticsStatus: undefined,
|
|
9451
|
-
interceptLogisticsStatusOther: undefined
|
|
9509
|
+
interceptLogisticsStatusOther: undefined,
|
|
9510
|
+
interceptLogisticsSnapshot: undefined
|
|
9452
9511
|
});
|
|
9453
9512
|
}
|
|
9454
9513
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -10743,12 +10802,14 @@ var BsExchange = function BsExchange(props) {
|
|
|
10743
10802
|
}, []);
|
|
10744
10803
|
var getListHandle = function getListHandle(list, val) {
|
|
10745
10804
|
var _val$bsExchangeType, _val$bsExchangeType2;
|
|
10805
|
+
//固定的sku
|
|
10806
|
+
var FIXED_FIELD = ['Q0000002', '600123001', '10103003', 'Q0000003', 'Q0000004'];
|
|
10746
10807
|
//如果是原单换
|
|
10747
10808
|
if (['1', '3'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType = val.bsExchangeType) === null || _val$bsExchangeType === void 0 ? void 0 : _val$bsExchangeType[0])) {
|
|
10748
10809
|
return list.reduce(function (prv, next) {
|
|
10749
10810
|
next.canDelete = false;
|
|
10750
10811
|
//数量大于1 拆开
|
|
10751
|
-
if (next.number > 1) {
|
|
10812
|
+
if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
|
|
10752
10813
|
var newList = Array(next.number).fill({}).map(function () {
|
|
10753
10814
|
var newNext = _objectSpread2({}, next);
|
|
10754
10815
|
newNext.money = newNext.share;
|
|
@@ -10768,7 +10829,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
10768
10829
|
next.canDelete = true;
|
|
10769
10830
|
next.index = index;
|
|
10770
10831
|
//数量大于1 拆开
|
|
10771
|
-
if (next.number > 1) {
|
|
10832
|
+
if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
|
|
10772
10833
|
var newList = Array(next.number).fill({}).map(function () {
|
|
10773
10834
|
var newNext = _objectSpread2({}, next);
|
|
10774
10835
|
newNext.money = newNext.share;
|
|
@@ -11705,7 +11766,7 @@ function CommonStatus(props) {
|
|
|
11705
11766
|
}
|
|
11706
11767
|
|
|
11707
11768
|
var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
11708
|
-
var _value$changeIndex, _value$changeIndex2;
|
|
11769
|
+
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
11709
11770
|
var _props$value = props.value,
|
|
11710
11771
|
value = _props$value === void 0 ? [] : _props$value,
|
|
11711
11772
|
onChange = props.onChange,
|
|
@@ -11767,6 +11828,13 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
11767
11828
|
return changeInputHandle(e.target.value, 'returnGoodsTradeId');
|
|
11768
11829
|
},
|
|
11769
11830
|
value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.returnGoodsTradeId
|
|
11831
|
+
})) : null, type === 3 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11832
|
+
disabled: true,
|
|
11833
|
+
placeholder: "\u8BF7\u8F93\u5165\u6362\u8D27\u5355id",
|
|
11834
|
+
onChange: function onChange(e) {
|
|
11835
|
+
return changeInputHandle(e.target.value, 'reissueTradeId');
|
|
11836
|
+
},
|
|
11837
|
+
value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reissueTradeId
|
|
11770
11838
|
})) : null) : null);
|
|
11771
11839
|
};
|
|
11772
11840
|
|
|
@@ -15,7 +15,8 @@ export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'
|
|
|
15
15
|
uniqueKey?: string;
|
|
16
16
|
hostUrl?: string;
|
|
17
17
|
actionUrl?: string;
|
|
18
|
+
platform?: string;
|
|
18
19
|
canDownload?: boolean;
|
|
19
20
|
}
|
|
20
|
-
declare const ApaasUploadAsync: ({ maxCount, maxSize, onChange, value, accept, disabled, uniqueKey, hostUrl, canDownload, actionUrl, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
|
|
21
|
+
declare const ApaasUploadAsync: ({ maxCount, maxSize, onChange, value, accept, disabled, uniqueKey, hostUrl, canDownload, actionUrl, platform, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
|
|
21
22
|
export default ApaasUploadAsync;
|
|
@@ -10,6 +10,7 @@ interface LogisticsInterceptionValueType {
|
|
|
10
10
|
interceptReceiverMobile: string;
|
|
11
11
|
interceptLogisticsStatus: string | number;
|
|
12
12
|
interceptLogisticsStatusOther: string;
|
|
13
|
+
interceptLogisticsSnapshot: string;
|
|
13
14
|
}
|
|
14
15
|
interface LogisticsInterceptionProps {
|
|
15
16
|
value: Partial<LogisticsInterceptionValueType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-alpha.4",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,10 +20,11 @@
|
|
|
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.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.10.0-alpha.0",
|
|
24
24
|
"lodash": "^4.17.21",
|
|
25
25
|
"pubsub-js": "^1.9.4",
|
|
26
26
|
"react-copy-to-clipboard": "^5.1.0",
|
|
27
|
+
"react-mediainfo": "^0.0.42",
|
|
27
28
|
"umi-request": "^1.4.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
@@ -60,5 +61,5 @@
|
|
|
60
61
|
"publishConfig": {
|
|
61
62
|
"access": "public"
|
|
62
63
|
},
|
|
63
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d1b0f15627f25ddaa686dc679fc7b19720725cc6"
|
|
64
65
|
}
|