@kmkf-fe-packages/basic-components 2.14.6 → 2.14.8
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
|
@@ -8646,14 +8646,13 @@ var processLogisticsInterception = function processLogisticsInterception(getValu
|
|
|
8646
8646
|
address = every(address, function (item) {
|
|
8647
8647
|
return !item;
|
|
8648
8648
|
}) ? [] : address;
|
|
8649
|
-
var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey', 'interceptLogisticsCustomerCode'
|
|
8649
|
+
var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey', 'interceptLogisticsCustomerCode'];
|
|
8650
8650
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8651
8651
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8652
8652
|
}, {});
|
|
8653
8653
|
return _defineProperty({}, nex.uniqueKey, _objectSpread2(_objectSpread2({}, map), {}, {
|
|
8654
8654
|
interceptAddress: address,
|
|
8655
|
-
interceptLogisticsApiStatus: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_interceptLogisticsApiStatus")), {})
|
|
8656
|
-
trajectoryApiStatus: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {})
|
|
8655
|
+
interceptLogisticsApiStatus: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_interceptLogisticsApiStatus")), {})
|
|
8657
8656
|
}));
|
|
8658
8657
|
};
|
|
8659
8658
|
};
|
|
@@ -13564,25 +13563,9 @@ var Payment = function Payment(props) {
|
|
|
13564
13563
|
var css_248z$9 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
|
|
13565
13564
|
styleInject(css_248z$9);
|
|
13566
13565
|
|
|
13567
|
-
var getInterceptionTrajectoryQueryParams = function getInterceptionTrajectoryQueryParams(value, enabled, disabled) {
|
|
13568
|
-
if (!enabled || disabled) return null;
|
|
13569
|
-
var interceptCompany = value.interceptCompany,
|
|
13570
|
-
interceptCode = value.interceptCode,
|
|
13571
|
-
interceptSenderMobile = value.interceptSenderMobile;
|
|
13572
|
-
if (!interceptCompany || !interceptCode) return null;
|
|
13573
|
-
if (['SF', 'ZTO'].includes(interceptCompany) && !interceptSenderMobile) {
|
|
13574
|
-
return null;
|
|
13575
|
-
}
|
|
13576
|
-
return {
|
|
13577
|
-
mailNo: interceptCode,
|
|
13578
|
-
cpCode: interceptCompany,
|
|
13579
|
-
mobile: interceptSenderMobile
|
|
13580
|
-
};
|
|
13581
|
-
};
|
|
13582
|
-
|
|
13583
13566
|
var Item = Form.Item;
|
|
13584
13567
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
13585
|
-
var _value$interceptLogis3, _value$interceptLogis4, _value$interceptLogis5
|
|
13568
|
+
var _value$interceptLogis3, _value$interceptLogis4, _value$interceptLogis5;
|
|
13586
13569
|
var LogisticsAddress = LogisticsAddressData.getInstance();
|
|
13587
13570
|
var address = AddressData.getInstance();
|
|
13588
13571
|
var _props$value = props.value,
|
|
@@ -13603,9 +13586,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13603
13586
|
_props$showReason = props.showReason,
|
|
13604
13587
|
showReason = _props$showReason === void 0 ? false : _props$showReason,
|
|
13605
13588
|
_props$preCreateAndNo = props.preCreateAndNotModified,
|
|
13606
|
-
preCreateAndNotModified = _props$preCreateAndNo === void 0 ? false : _props$preCreateAndNo
|
|
13607
|
-
_props$trajectoryApiS = props.trajectoryApiStatus,
|
|
13608
|
-
trajectoryApiStatus = _props$trajectoryApiS === void 0 ? false : _props$trajectoryApiS;
|
|
13589
|
+
preCreateAndNotModified = _props$preCreateAndNo === void 0 ? false : _props$preCreateAndNo;
|
|
13609
13590
|
var _useState = useState(function () {
|
|
13610
13591
|
return (value === null || value === void 0 ? void 0 : value.interceptCompany) || undefined;
|
|
13611
13592
|
}),
|
|
@@ -13791,44 +13772,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13791
13772
|
});
|
|
13792
13773
|
return uk || undefined;
|
|
13793
13774
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany, value === null || value === void 0 ? void 0 : value.interceptAddress]);
|
|
13794
|
-
var searchTrajectory = function searchTrajectory(nextValue) {
|
|
13795
|
-
var params = getInterceptionTrajectoryQueryParams(nextValue, trajectoryApiStatus, disabled);
|
|
13796
|
-
if (!params) return;
|
|
13797
|
-
request$1({
|
|
13798
|
-
url: '/qy/logistics/logisticsTraceSearch',
|
|
13799
|
-
method: 'post',
|
|
13800
|
-
data: params
|
|
13801
|
-
}).then(function (res) {
|
|
13802
|
-
var result = res.result,
|
|
13803
|
-
success = res.success,
|
|
13804
|
-
data = res.data,
|
|
13805
|
-
msg = res.message;
|
|
13806
|
-
if (result === 100 || success) {
|
|
13807
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, nextValue), {}, {
|
|
13808
|
-
trajectoryApiStatus: (data === null || data === void 0 ? void 0 : data.apiStatusObject) || {
|
|
13809
|
-
status: '',
|
|
13810
|
-
reason: ''
|
|
13811
|
-
}
|
|
13812
|
-
}));
|
|
13813
|
-
return;
|
|
13814
|
-
}
|
|
13815
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, nextValue), {}, {
|
|
13816
|
-
trajectoryApiStatus: {
|
|
13817
|
-
status: '',
|
|
13818
|
-
reason: ''
|
|
13819
|
-
}
|
|
13820
|
-
}));
|
|
13821
|
-
msg && message.error(msg);
|
|
13822
|
-
}).catch(function (err) {
|
|
13823
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, nextValue), {}, {
|
|
13824
|
-
trajectoryApiStatus: {
|
|
13825
|
-
status: '',
|
|
13826
|
-
reason: ''
|
|
13827
|
-
}
|
|
13828
|
-
}));
|
|
13829
|
-
(err === null || err === void 0 ? void 0 : err.message) && message.error(err.message);
|
|
13830
|
-
});
|
|
13831
|
-
};
|
|
13832
13775
|
//选择回调
|
|
13833
13776
|
var changeHandle = function changeHandle(val, type) {
|
|
13834
13777
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
@@ -13890,13 +13833,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13890
13833
|
interceptLogisticsApiStatusReason: undefined,
|
|
13891
13834
|
interceptLogisticsUserKCode: undefined,
|
|
13892
13835
|
interceptLogisticsUserSecretKey: undefined,
|
|
13893
|
-
interceptLogisticsCustomerCode: undefined
|
|
13894
|
-
trajectoryApiStatus: {
|
|
13895
|
-
status: '',
|
|
13896
|
-
reason: ''
|
|
13897
|
-
},
|
|
13898
|
-
trajectoryLastUpdateTime: undefined,
|
|
13899
|
-
trajectoryLastLogisticsInfo: undefined
|
|
13836
|
+
interceptLogisticsCustomerCode: undefined
|
|
13900
13837
|
});
|
|
13901
13838
|
}
|
|
13902
13839
|
if (type === 'interceptLogisticsApiStatus') {
|
|
@@ -13920,9 +13857,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13920
13857
|
}
|
|
13921
13858
|
}
|
|
13922
13859
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
|
|
13923
|
-
if (type === 'interceptCompany') {
|
|
13924
|
-
searchTrajectory(newValue);
|
|
13925
|
-
}
|
|
13926
13860
|
};
|
|
13927
13861
|
//智能识别回调
|
|
13928
13862
|
var changeIdentify = function changeIdentify(val) {
|
|
@@ -13976,11 +13910,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13976
13910
|
},
|
|
13977
13911
|
onBlur: function onBlur(e) {
|
|
13978
13912
|
var _e$target$value2;
|
|
13979
|
-
|
|
13980
|
-
_onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(interceptCode, 'interceptCode');
|
|
13981
|
-
searchTrajectory(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13982
|
-
interceptCode: interceptCode
|
|
13983
|
-
}));
|
|
13913
|
+
return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptCode');
|
|
13984
13914
|
},
|
|
13985
13915
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
13986
13916
|
}))), /*#__PURE__*/React.createElement(Item, {
|
|
@@ -14091,12 +14021,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
14091
14021
|
onChange: function onChange(e) {
|
|
14092
14022
|
var _e$target$value3;
|
|
14093
14023
|
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptSenderMobile');
|
|
14094
|
-
},
|
|
14095
|
-
onBlur: function onBlur(e) {
|
|
14096
|
-
var _e$target$value4;
|
|
14097
|
-
return searchTrajectory(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
14098
|
-
interceptSenderMobile: (_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim()
|
|
14099
|
-
}));
|
|
14100
14024
|
}
|
|
14101
14025
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
14102
14026
|
label: '退回地址',
|
|
@@ -14155,8 +14079,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
14155
14079
|
},
|
|
14156
14080
|
placeholder: "\u5176\u4ED6",
|
|
14157
14081
|
onChange: function onChange(e) {
|
|
14158
|
-
var _e$target$
|
|
14159
|
-
return changeHandle((_e$target$
|
|
14082
|
+
var _e$target$value4;
|
|
14083
|
+
return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsStatusOther');
|
|
14160
14084
|
}
|
|
14161
14085
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
14162
14086
|
label: '拦截状态',
|
|
@@ -14179,7 +14103,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
14179
14103
|
value: '拦截失败'
|
|
14180
14104
|
}]
|
|
14181
14105
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
14182
|
-
label: '
|
|
14106
|
+
label: '接口状态',
|
|
14183
14107
|
key: 'interceptLogisticsApiStatus'
|
|
14184
14108
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
14185
14109
|
value: (value === null || value === void 0 ? void 0 : (_value$interceptLogis3 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis3 === void 0 ? void 0 : _value$interceptLogis3.status) || null,
|
|
@@ -14187,7 +14111,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
14187
14111
|
style: {
|
|
14188
14112
|
width: '200px'
|
|
14189
14113
|
},
|
|
14190
|
-
placeholder: "\
|
|
14114
|
+
placeholder: "\u63A5\u53E3\u72B6\u6001",
|
|
14191
14115
|
onChange: function onChange(val) {
|
|
14192
14116
|
return changeHandle(val, 'interceptLogisticsApiStatus');
|
|
14193
14117
|
},
|
|
@@ -14203,38 +14127,17 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
14203
14127
|
color: 'red'
|
|
14204
14128
|
}
|
|
14205
14129
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", value === null || value === void 0 ? void 0 : (_value$interceptLogis5 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis5 === void 0 ? void 0 : _value$interceptLogis5.reason) : null), showReason && /*#__PURE__*/React.createElement(Item, {
|
|
14206
|
-
label: '
|
|
14130
|
+
label: '接口状态原因',
|
|
14207
14131
|
key: 'interceptLogisticsApiStatusReason'
|
|
14208
14132
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
14209
14133
|
value: value === null || value === void 0 ? void 0 : value.interceptLogisticsApiStatusReason,
|
|
14210
14134
|
disabled: true,
|
|
14211
|
-
placeholder: "\
|
|
14135
|
+
placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
|
|
14212
14136
|
onChange: function onChange(e) {
|
|
14213
|
-
var _e$target$
|
|
14214
|
-
return changeHandle((_e$target$
|
|
14215
|
-
}
|
|
14216
|
-
})), trajectoryApiStatus && /*#__PURE__*/React.createElement(Item, {
|
|
14217
|
-
label: '物流轨迹接口状态',
|
|
14218
|
-
key: 'trajectoryApiStatus'
|
|
14219
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
14220
|
-
value: (value === null || value === void 0 ? void 0 : (_value$trajectoryApiS = value.trajectoryApiStatus) === null || _value$trajectoryApiS === void 0 ? void 0 : _value$trajectoryApiS.status) || null,
|
|
14221
|
-
disabled: true,
|
|
14222
|
-
style: {
|
|
14223
|
-
width: '200px'
|
|
14224
|
-
},
|
|
14225
|
-
placeholder: "\u7269\u6D41\u8F68\u8FF9\u63A5\u53E3\u72B6\u6001",
|
|
14226
|
-
options: [{
|
|
14227
|
-
label: '成功',
|
|
14228
|
-
value: '成功'
|
|
14229
|
-
}, {
|
|
14230
|
-
label: '失败',
|
|
14231
|
-
value: '失败'
|
|
14232
|
-
}]
|
|
14233
|
-
}), (value === null || value === void 0 ? void 0 : (_value$trajectoryApiS2 = value.trajectoryApiStatus) === null || _value$trajectoryApiS2 === void 0 ? void 0 : _value$trajectoryApiS2.reason) ? /*#__PURE__*/React.createElement("div", {
|
|
14234
|
-
style: {
|
|
14235
|
-
color: 'red'
|
|
14137
|
+
var _e$target$value5;
|
|
14138
|
+
return changeHandle((_e$target$value5 = e.target.value) === null || _e$target$value5 === void 0 ? void 0 : _e$target$value5.trim(), 'interceptLogisticsApiStatusReason');
|
|
14236
14139
|
}
|
|
14237
|
-
}
|
|
14140
|
+
})));
|
|
14238
14141
|
};
|
|
14239
14142
|
|
|
14240
14143
|
var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
@@ -20,12 +20,6 @@ interface LogisticsInterceptionValueType {
|
|
|
20
20
|
interceptLogisticsUserKCode: string;
|
|
21
21
|
interceptLogisticsUserSecretKey: string;
|
|
22
22
|
interceptLogisticsCustomerCode: string;
|
|
23
|
-
trajectoryApiStatus: {
|
|
24
|
-
status: string;
|
|
25
|
-
reason: string;
|
|
26
|
-
};
|
|
27
|
-
trajectoryLastUpdateTime: string;
|
|
28
|
-
trajectoryLastLogisticsInfo: string;
|
|
29
23
|
}
|
|
30
24
|
interface LogisticsInterceptionProps {
|
|
31
25
|
value: Partial<LogisticsInterceptionValueType>;
|
|
@@ -40,7 +34,6 @@ interface LogisticsInterceptionProps {
|
|
|
40
34
|
onJumpPage?: (val: any) => void;
|
|
41
35
|
preCreateAndNotModified?: boolean;
|
|
42
36
|
interceptTypeDefaults?: Record<string, string>;
|
|
43
|
-
trajectoryApiStatus?: boolean;
|
|
44
37
|
}
|
|
45
38
|
declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => React.JSX.Element;
|
|
46
39
|
export default LogisticsInterception;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.8",
|
|
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": "2.14.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.14.8",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "f6d755304a3b6533ad144bc8f1fc2d1d2def8ff7"
|
|
70
70
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface InterceptionTrajectoryValue {
|
|
2
|
-
interceptCompany?: string;
|
|
3
|
-
interceptCode?: string;
|
|
4
|
-
interceptSenderMobile?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const getInterceptionTrajectoryQueryParams: (value: InterceptionTrajectoryValue, enabled: boolean, disabled: boolean) => {
|
|
7
|
-
mailNo: string;
|
|
8
|
-
cpCode: string;
|
|
9
|
-
mobile: string | undefined;
|
|
10
|
-
} | null;
|