@kmkf-fe-packages/services-components 2.6.0-rc.0 → 2.6.0
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/esm/Hooks/index.d.ts +2 -0
- package/dist/esm/Hooks/index.js +2 -0
- package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
- package/dist/esm/Hooks/useColumnsConfig.js +243 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -2
- package/dist/esm/commonComponents/GlobalContext/index.js +60 -20
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +11 -9
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +4 -2
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
- package/dist/esm/commonComponents/ShopList/index.js +3 -1
- package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -2
- package/dist/esm/components/BS/BsLogistics/index.js +61 -8
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +56 -9
- package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
- package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
- package/dist/esm/components/BS/common/BsMemo.js +4 -1
- package/dist/esm/components/BS/common/BsType.js +4 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +4 -1
- package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCode.js +16 -4
- package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
- package/dist/esm/components/BS/common/expressCompany.js +31 -5
- package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
- package/dist/esm/components/Cascader/index.d.ts +8 -6
- package/dist/esm/components/Cascader/index.js +26 -22
- package/dist/esm/components/Common/constants/bs.js +2 -2
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
- package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
- package/dist/esm/components/Common/constants/wdt.js +104 -0
- package/dist/esm/components/Common/index.d.ts +2 -2
- package/dist/esm/components/Common/index.js +40 -24
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +2 -2
- package/dist/esm/components/CommonHeaderGood/index.js +1201 -40
- package/dist/esm/components/CommonInput/index.js +11 -3
- package/dist/esm/components/CommonMultiStatus/index.js +73 -36
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
- package/dist/esm/components/ErpTradeId/index.js +7 -4
- package/dist/esm/components/File/index.d.ts +6 -6
- package/dist/esm/components/File/index.js +9 -10
- package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
- package/dist/esm/components/GY/GyGoods/index.js +5 -1
- package/dist/esm/components/GY/GyReissue/index.js +5 -1
- package/dist/esm/components/GY/GyReturn/index.js +5 -1
- package/dist/esm/components/Input/index.d.ts +4 -4
- package/dist/esm/components/Input/index.js +35 -31
- package/dist/esm/components/JST/JstSendGood/index.js +17 -1
- package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
- package/dist/esm/components/KM/KmExchange/index.js +136 -0
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.js +10 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +20 -0
- package/dist/esm/components/LogisticsInterception/index.js +10 -5
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
- package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
- package/dist/esm/components/OrderSubForm/index.js +19 -2
- package/dist/esm/components/Payment/index.d.ts +13 -12
- package/dist/esm/components/Payment/index.js +31 -11
- package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
- package/dist/esm/components/Picture/index.d.ts +5 -5
- package/dist/esm/components/Picture/index.js +20 -20
- package/dist/esm/components/PicturePro/index.d.ts +15 -6
- package/dist/esm/components/PicturePro/index.js +42 -25
- package/dist/esm/components/PostIng/index.d.ts +5 -0
- package/dist/esm/components/PostIng/index.js +42 -8
- package/dist/esm/components/Public/Goods/index.d.ts +10 -8
- package/dist/esm/components/Public/Goods/index.js +42 -2
- package/dist/esm/components/Public/ReissueGoods/index.js +62 -4
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
- package/dist/esm/components/ReceiverAddress/index.js +41 -27
- package/dist/esm/components/Reissue/Logistics/index.js +2 -2
- package/dist/esm/components/Remark/index.d.ts +18 -2
- package/dist/esm/components/Remark/index.js +37 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
- package/dist/esm/components/ReturnLogistics/index.js +34 -17
- package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
- package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +19 -11
- package/dist/esm/components/ShopInput/index.d.ts +5 -5
- package/dist/esm/components/ShopInput/index.js +12 -9
- package/dist/esm/components/StatusSelect/index.js +4 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
- package/dist/esm/components/SubForm/index.js +78 -6
- package/dist/esm/components/TradeId/index.d.ts +5 -5
- package/dist/esm/components/TradeId/index.js +17 -14
- package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +34 -7
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +6 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +34 -1
- package/dist/esm/type.d.ts +38 -0
- package/package.json +4 -4
- package/dist/esm/components/Common/constants/gy.d.ts +0 -3
- package/dist/esm/components/Common/constants/gy.js +0 -219
|
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
|
|
|
17
17
|
import { BsGoodsTable } from "../../Common/index";
|
|
18
18
|
import { BsType, BsMemo, SystemOrderNo } from "../../BS/common/index";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { useGoodsSourceFormat } from "../../../Hooks";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
GY_REISSUE_GOODS: {
|
|
22
23
|
key: "gyReissueGoods",
|
|
@@ -94,7 +95,7 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
|
|
|
94
95
|
return null;
|
|
95
96
|
});
|
|
96
97
|
_defineProperty(this, "editRender", function (p) {
|
|
97
|
-
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
|
|
98
|
+
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3, _this$effects4, _this$effects5;
|
|
98
99
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
99
100
|
title: _this.name,
|
|
100
101
|
name: _this.id,
|
|
@@ -105,10 +106,13 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
|
|
|
105
106
|
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
106
107
|
isGyReissue: true,
|
|
107
108
|
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
109
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
108
110
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
109
111
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
110
112
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
111
113
|
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
114
|
+
form: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.form,
|
|
115
|
+
templateDetail: (_this$effects5 = _this.effects) === null || _this$effects5 === void 0 ? void 0 : _this$effects5.templateDetail,
|
|
112
116
|
width: "90%",
|
|
113
117
|
type: _this.type
|
|
114
118
|
}))
|
|
@@ -17,6 +17,7 @@ import { BsGoodsTable } from "../../Common";
|
|
|
17
17
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
18
18
|
import { GyReturn as Return, erpFormValidator } from "@kmkf-fe-packages/basic-components";
|
|
19
19
|
import { BsType, SystemOrderNo } from "../../BS/common/index";
|
|
20
|
+
import { useGoodsSourceFormat } from "../../../Hooks";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
GY_RETURN_GOODS: {
|
|
22
23
|
key: "gyReturnGoods",
|
|
@@ -91,7 +92,7 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
|
|
|
91
92
|
return null;
|
|
92
93
|
});
|
|
93
94
|
_defineProperty(this, "editRender", function (p) {
|
|
94
|
-
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
|
|
95
|
+
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3, _this$effects4, _this$effects5;
|
|
95
96
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
96
97
|
title: _this.name,
|
|
97
98
|
name: _this.id,
|
|
@@ -101,10 +102,13 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
|
|
|
101
102
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
102
103
|
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
103
104
|
component: /*#__PURE__*/React.createElement(Return, _extends({}, _this.componentConfig, {
|
|
105
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
104
106
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
105
107
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
106
108
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
107
109
|
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
110
|
+
form: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.form,
|
|
111
|
+
templateDetail: (_this$effects5 = _this.effects) === null || _this$effects5 === void 0 ? void 0 : _this$effects5.templateDetail,
|
|
108
112
|
width: "90%",
|
|
109
113
|
type: _this.type
|
|
110
114
|
}))
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class BasicInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
15
|
templateId?: string;
|
|
16
16
|
flowTemplateKey?: string;
|
|
17
17
|
workOrderUniqueKey?: string;
|
|
@@ -9,11 +9,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
9
9
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
10
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
11
11
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12
|
-
import React from
|
|
13
|
-
import { ApaasInput } from
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { ApaasInput } from "@kmkf-fe-packages/basic-components";
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { SYMBOL, batchInput, SEARCH_OPTIONS } from "../../constant";
|
|
18
18
|
import { replaceCheck } from "../../service/api";
|
|
19
19
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
@@ -36,7 +36,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
36
36
|
_defineProperty(this, "workOrderUniqueKey", void 0);
|
|
37
37
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
38
38
|
var _record;
|
|
39
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record :
|
|
39
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record : "--");
|
|
40
40
|
});
|
|
41
41
|
_defineProperty(this, "renderLog", function (r) {
|
|
42
42
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_input")])) return null;
|
|
@@ -48,7 +48,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
48
48
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
49
49
|
var _this$componentConfig;
|
|
50
50
|
if (!(record !== null && record !== void 0 && record["".concat(_this.id, "_input")])) {
|
|
51
|
-
return
|
|
51
|
+
return "--";
|
|
52
52
|
}
|
|
53
53
|
return (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.isNumber ? Number(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) : record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")];
|
|
54
54
|
});
|
|
@@ -67,14 +67,18 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
67
67
|
rules: _this.rules,
|
|
68
68
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
69
69
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
70
|
-
validateTrigger: [
|
|
70
|
+
validateTrigger: ["onBlur", "onChange"],
|
|
71
71
|
required: (_this$componentConfig2 = (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required) !== null && _this$componentConfig2 !== void 0 ? _this$componentConfig2 : false,
|
|
72
|
-
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip :
|
|
72
|
+
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : "",
|
|
73
73
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
74
74
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
75
75
|
onChange: function onChange(e) {
|
|
76
76
|
var _this$componentConfig6, _e$target;
|
|
77
77
|
return p === null || p === void 0 ? void 0 : p.onChange((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.isNumber ? e : e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
|
|
78
|
+
},
|
|
79
|
+
onBlur: function onBlur(e) {
|
|
80
|
+
var _this$componentConfig7, _e$target2;
|
|
81
|
+
return p === null || p === void 0 ? void 0 : p.onBlur((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.isNumber ? e : e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value, "input");
|
|
78
82
|
}
|
|
79
83
|
}))
|
|
80
84
|
});
|
|
@@ -90,17 +94,17 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
90
94
|
// 过滤组件id
|
|
91
95
|
name: item.name,
|
|
92
96
|
// 过滤组件名称
|
|
93
|
-
filterComponentType:
|
|
97
|
+
filterComponentType: "SelectInput",
|
|
94
98
|
props: {
|
|
95
99
|
filterOptions: SEARCH_OPTIONS
|
|
96
100
|
},
|
|
97
101
|
filterFn: function filterFn(value) {
|
|
98
102
|
return function (i) {
|
|
99
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
103
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "input")).includes(value);
|
|
100
104
|
};
|
|
101
105
|
},
|
|
102
106
|
formatFilterValue: function formatFilterValue(value) {
|
|
103
|
-
if ([
|
|
107
|
+
if (["in", "anylike"].includes(value.type)) {
|
|
104
108
|
return batchInput(value.keywords);
|
|
105
109
|
} else {
|
|
106
110
|
return value;
|
|
@@ -119,7 +123,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
119
123
|
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
120
124
|
this.rules = [{
|
|
121
125
|
validator: function validator(_, value) {
|
|
122
|
-
var _this$
|
|
126
|
+
var _this$componentConfig8, _this$componentConfig9, _this$componentConfig10, _this$componentConfig11, _this$componentConfig12, _this$componentConfig13;
|
|
123
127
|
if (!value) {
|
|
124
128
|
return Promise.resolve();
|
|
125
129
|
}
|
|
@@ -127,23 +131,23 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
127
131
|
var mail = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9]+(\.[a-zA-Z0-9-]+)*\.([a-zA-Z]{2,})$/;
|
|
128
132
|
var phone = /^1\d{10}$/;
|
|
129
133
|
var testList = [];
|
|
130
|
-
((_this$
|
|
131
|
-
((_this$
|
|
132
|
-
((_this$
|
|
134
|
+
((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.isNumber) && testList.push(number);
|
|
135
|
+
((_this$componentConfig9 = _this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.isMail) && testList.push(mail);
|
|
136
|
+
((_this$componentConfig10 = _this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.isPhone) && testList.push(phone);
|
|
133
137
|
var isTest = testList.some(function (item) {
|
|
134
138
|
return item.test(value);
|
|
135
139
|
});
|
|
136
140
|
if (testList.length && !isTest) {
|
|
137
|
-
return Promise.reject(new Error(
|
|
141
|
+
return Promise.reject(new Error("请填写正确的格式"));
|
|
138
142
|
}
|
|
139
|
-
if ((_this$
|
|
140
|
-
return Promise.reject(new Error(
|
|
143
|
+
if ((_this$componentConfig11 = _this.componentConfig) !== null && _this$componentConfig11 !== void 0 && _this$componentConfig11.isNumber && value > Number.MAX_SAFE_INTEGER) {
|
|
144
|
+
return Promise.reject(new Error("输入数值超出最大数字上限,请使用文本框替代当前数字输入框组件"));
|
|
141
145
|
}
|
|
142
|
-
if ((_this$
|
|
143
|
-
var _this$
|
|
144
|
-
var rulesList = (_this$
|
|
145
|
-
var _this$
|
|
146
|
-
return (((_this$
|
|
146
|
+
if ((_this$componentConfig12 = _this.componentConfig) !== null && _this$componentConfig12 !== void 0 && (_this$componentConfig13 = _this$componentConfig12.rulesOptions) !== null && _this$componentConfig13 !== void 0 && _this$componentConfig13.length) {
|
|
147
|
+
var _this$componentConfig14;
|
|
148
|
+
var rulesList = (_this$componentConfig14 = _this.componentConfig) === null || _this$componentConfig14 === void 0 ? void 0 : _this$componentConfig14.rulesOptions.filter(function (item) {
|
|
149
|
+
var _this$componentConfig15;
|
|
150
|
+
return (((_this$componentConfig15 = _this.componentConfig) === null || _this$componentConfig15 === void 0 ? void 0 : _this$componentConfig15.selectRules) || []).includes(item.id);
|
|
147
151
|
});
|
|
148
152
|
if (!rulesList.length) {
|
|
149
153
|
return Promise.resolve();
|
|
@@ -163,11 +167,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
163
167
|
return Promise.resolve();
|
|
164
168
|
}
|
|
165
169
|
}, {
|
|
166
|
-
validateTrigger:
|
|
170
|
+
validateTrigger: "onBlur",
|
|
167
171
|
validator: function () {
|
|
168
172
|
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
169
|
-
var _this$
|
|
170
|
-
var _resultList$, params, _yield$replaceCheck, resultList, _this$
|
|
173
|
+
var _this$componentConfig16;
|
|
174
|
+
var _resultList$, params, _yield$replaceCheck, resultList, _this$componentConfig17, _this$componentConfig18, _this$componentConfig19, messageMap;
|
|
171
175
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
172
176
|
while (1) switch (_context.prev = _context.next) {
|
|
173
177
|
case 0:
|
|
@@ -177,7 +181,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
177
181
|
}
|
|
178
182
|
return _context.abrupt("return", Promise.resolve());
|
|
179
183
|
case 2:
|
|
180
|
-
if (!((_this$
|
|
184
|
+
if (!((_this$componentConfig16 = _this.componentConfig) !== null && _this$componentConfig16 !== void 0 && _this$componentConfig16.replaceWarn)) {
|
|
181
185
|
_context.next = 11;
|
|
182
186
|
break;
|
|
183
187
|
}
|
|
@@ -200,11 +204,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
200
204
|
break;
|
|
201
205
|
}
|
|
202
206
|
messageMap = {
|
|
203
|
-
currWorkOrder:
|
|
204
|
-
currFlow:
|
|
205
|
-
allWorkOrder:
|
|
207
|
+
currWorkOrder: "数据已存在本模版同节点中,不能重复提交",
|
|
208
|
+
currFlow: "数据已存在本模版中,不能重复提交",
|
|
209
|
+
allWorkOrder: "数据已存在其他模版中,不能重复提交"
|
|
206
210
|
};
|
|
207
|
-
return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$
|
|
211
|
+
return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$componentConfig17 = (_this$componentConfig18 = _this.componentConfig) === null || _this$componentConfig18 === void 0 ? void 0 : (_this$componentConfig19 = _this$componentConfig18.repeatConfig) === null || _this$componentConfig19 === void 0 ? void 0 : _this$componentConfig19.repeatRange) !== null && _this$componentConfig17 !== void 0 ? _this$componentConfig17 : ""] || "内容已存在,不能重复提交")));
|
|
208
212
|
case 11:
|
|
209
213
|
case "end":
|
|
210
214
|
return _context.stop();
|
|
@@ -220,6 +224,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
220
224
|
this.isCombinationComponent = false;
|
|
221
225
|
this.canSort = true;
|
|
222
226
|
this.children = [];
|
|
223
|
-
this.dataType = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ?
|
|
227
|
+
this.dataType = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ? "number" : "string";
|
|
224
228
|
});
|
|
225
229
|
export default BasicInput;
|
|
@@ -70,6 +70,22 @@ var typeMap = {
|
|
|
70
70
|
sendName: "gySendName",
|
|
71
71
|
platformType: "gy",
|
|
72
72
|
dataType: "weakenArray"
|
|
73
|
+
},
|
|
74
|
+
JY_SEND_GOOD: {
|
|
75
|
+
key: "jySendGood",
|
|
76
|
+
name: "jy",
|
|
77
|
+
sendId: "jySendId",
|
|
78
|
+
sendName: "jySendName",
|
|
79
|
+
platformType: "jy",
|
|
80
|
+
dataType: "weakenArray"
|
|
81
|
+
},
|
|
82
|
+
JKY_SEND_GOOD: {
|
|
83
|
+
key: "jkySendGood",
|
|
84
|
+
name: "jky",
|
|
85
|
+
sendId: "jkySendId",
|
|
86
|
+
sendName: "jkySendName",
|
|
87
|
+
platformType: "jky",
|
|
88
|
+
dataType: "weakenArray"
|
|
73
89
|
}
|
|
74
90
|
};
|
|
75
91
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
@@ -176,7 +192,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
176
192
|
});
|
|
177
193
|
_defineProperty(this, "filterConfig", function (item) {
|
|
178
194
|
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
|
|
179
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
195
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
|
|
180
196
|
searchDefaultConditions: SYMBOL.in,
|
|
181
197
|
type: item.type,
|
|
182
198
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
4
|
+
declare class KmExchange implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface["dataType"];
|
|
17
|
+
returnGoods: CommonHeaderGoods;
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
renderPc: () => null;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
22
|
+
getComponentValue: (r: Record) => {
|
|
23
|
+
kmExchangeGoods: any;
|
|
24
|
+
};
|
|
25
|
+
renderExport: (value: any, record: any) => null;
|
|
26
|
+
editRender: (p: any) => React.JSX.Element;
|
|
27
|
+
filterConfig: (item: ColumnConfig) => {
|
|
28
|
+
searchDefaultConditions: "like";
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
filterComponentType: "Input";
|
|
33
|
+
}[];
|
|
34
|
+
}
|
|
35
|
+
export default KmExchange;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import GetFormItem from "../../GetFormItem";
|
|
13
|
+
import { BsGoodsTable } from "../../Common";
|
|
14
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
15
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
+
import { SYMBOL } from "../../../constant";
|
|
17
|
+
// import { BsType, BsMemo } from "../../Bs/common";
|
|
18
|
+
import { CommonExchangeGoods, erpFormValidator } from "@kmkf-fe-packages/basic-components";
|
|
19
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
|
|
21
|
+
var _this = this,
|
|
22
|
+
_this$componentConfig6,
|
|
23
|
+
_this$componentConfig8;
|
|
24
|
+
_classCallCheck(this, KmExchange);
|
|
25
|
+
_defineProperty(this, "name", void 0);
|
|
26
|
+
_defineProperty(this, "id", void 0);
|
|
27
|
+
_defineProperty(this, "sortField", void 0);
|
|
28
|
+
_defineProperty(this, "type", void 0);
|
|
29
|
+
_defineProperty(this, "rules", void 0);
|
|
30
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
31
|
+
_defineProperty(this, "effects", void 0);
|
|
32
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
33
|
+
_defineProperty(this, "formField", void 0);
|
|
34
|
+
_defineProperty(this, "canSort", void 0);
|
|
35
|
+
_defineProperty(this, "children", void 0);
|
|
36
|
+
_defineProperty(this, "dataType", void 0);
|
|
37
|
+
_defineProperty(this, "returnGoods", void 0);
|
|
38
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
39
|
+
var _this$componentConfig;
|
|
40
|
+
var kmExchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_kmExchangeGoods")]) || "[]");
|
|
41
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
42
|
+
id: "".concat(_this.id, "-out"),
|
|
43
|
+
label: "".concat(_this.name, "-\u6362\u51FA"),
|
|
44
|
+
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
45
|
+
type: _this.type,
|
|
46
|
+
list: kmExchangeGoods || [],
|
|
47
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
48
|
+
})
|
|
49
|
+
})) : null;
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "renderPc", function () {
|
|
52
|
+
return null;
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
55
|
+
var _r, _this$componentConfig2;
|
|
56
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_kmExchangeGoods")]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement("div", null, "\u6362\u51FA\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
57
|
+
type: _this.type,
|
|
58
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_kmExchangeGoods")]) || [],
|
|
59
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
60
|
+
})) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_shopCode")] ? /*#__PURE__*/React.createElement("div", null, "\u5E97\u94FAid:", r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_shopCode")]) : null);
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
63
|
+
return {
|
|
64
|
+
kmExchangeGoods: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_kmExchangeGoods")]
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
68
|
+
return null;
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "editRender", function (p) {
|
|
71
|
+
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3, _this$effects4;
|
|
72
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
73
|
+
title: _this.name,
|
|
74
|
+
name: _this.id,
|
|
75
|
+
rules: _this.rules,
|
|
76
|
+
required: false,
|
|
77
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
78
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
79
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
80
|
+
component: /*#__PURE__*/React.createElement(CommonExchangeGoods, _extends({}, _this.componentConfig, {
|
|
81
|
+
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
82
|
+
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
83
|
+
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
84
|
+
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
85
|
+
form: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.form,
|
|
86
|
+
width: "90%",
|
|
87
|
+
type: "KM_EXCHANGE_GOODS"
|
|
88
|
+
}))
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
92
|
+
return [{
|
|
93
|
+
searchDefaultConditions: SYMBOL.like,
|
|
94
|
+
type: item.type,
|
|
95
|
+
id: "".concat(item.id, "_kmExchangeGoods"),
|
|
96
|
+
name: "".concat(_this.name, "-\u6362\u51FA"),
|
|
97
|
+
filterComponentType: "Input"
|
|
98
|
+
}];
|
|
99
|
+
});
|
|
100
|
+
this.name = options.name;
|
|
101
|
+
this.id = options.id;
|
|
102
|
+
this.sortField = "".concat(options.id);
|
|
103
|
+
this.formField = "".concat(options.id);
|
|
104
|
+
this.type = options.type;
|
|
105
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
106
|
+
this.isCombinationComponent = true;
|
|
107
|
+
this.canSort = false;
|
|
108
|
+
this.returnGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
|
|
109
|
+
id: "".concat(options.id, "_kmExchangeGoods"),
|
|
110
|
+
name: "商品信息"
|
|
111
|
+
}));
|
|
112
|
+
this.children = [this.returnGoods];
|
|
113
|
+
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
114
|
+
this.rules = [{
|
|
115
|
+
required: (_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required,
|
|
116
|
+
validator: function validator(_, value) {
|
|
117
|
+
var _this$componentConfig7, _value$kmExchangeGood;
|
|
118
|
+
if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required && !(value !== null && value !== void 0 && (_value$kmExchangeGood = value.kmExchangeGoods) !== null && _value$kmExchangeGood !== void 0 && _value$kmExchangeGood.length)) {
|
|
119
|
+
return Promise.reject(new Error("请选择快麦换货商品"));
|
|
120
|
+
}
|
|
121
|
+
return Promise.resolve();
|
|
122
|
+
}
|
|
123
|
+
}, {
|
|
124
|
+
required: (_this$componentConfig8 = this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.required,
|
|
125
|
+
validator: function validator(_rule, value) {
|
|
126
|
+
if (!_rule.required) return Promise.resolve();
|
|
127
|
+
var validatorFlag = erpFormValidator(_rule, value, "KM_EXCHANGE_GOODS", _this.componentConfig);
|
|
128
|
+
if (validatorFlag) {
|
|
129
|
+
return validatorFlag;
|
|
130
|
+
}
|
|
131
|
+
return Promise.resolve();
|
|
132
|
+
}
|
|
133
|
+
}];
|
|
134
|
+
this.dataType = "object";
|
|
135
|
+
});
|
|
136
|
+
export default KmExchange;
|
|
@@ -106,7 +106,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
_defineProperty(this, "filterConfig", function (item) {
|
|
109
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
109
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
|
|
110
110
|
searchDefaultConditions: SYMBOL.in,
|
|
111
111
|
type: item.type,
|
|
112
112
|
id: "".concat(item.id, "_").concat(_this.suffixSendName),
|
|
@@ -19,6 +19,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
19
19
|
children: ComponentInterface[];
|
|
20
20
|
dataType: ComponentInterface["dataType"];
|
|
21
21
|
isChange: boolean;
|
|
22
|
+
compoundConfig: ComponentInterface["compoundConfig"];
|
|
22
23
|
constructor(options: PickOption);
|
|
23
24
|
editRender: (p: any) => React.JSX.Element;
|
|
24
25
|
renderClient: (record: Record) => React.JSX.Element;
|
|
@@ -33,6 +33,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
33
33
|
_defineProperty(this, "children", void 0);
|
|
34
34
|
_defineProperty(this, "dataType", void 0);
|
|
35
35
|
_defineProperty(this, "isChange", void 0);
|
|
36
|
+
_defineProperty(this, "compoundConfig", void 0);
|
|
36
37
|
_defineProperty(this, "editRender", function (p) {
|
|
37
38
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
38
39
|
var onExpressLogisticsCodeBlur = function onExpressLogisticsCodeBlur(val) {
|
|
@@ -130,5 +131,14 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
130
131
|
}
|
|
131
132
|
}] : [];
|
|
132
133
|
this.isChange = false;
|
|
134
|
+
this.compoundConfig = [{
|
|
135
|
+
name: "快递物流公司",
|
|
136
|
+
id: "".concat(options.id, "_expressLogisticsCompany"),
|
|
137
|
+
standardDateType: "String"
|
|
138
|
+
}, {
|
|
139
|
+
name: "快递物流单号",
|
|
140
|
+
id: "".concat(options.id, "_expressLogisticsCode"),
|
|
141
|
+
standardDateType: "String"
|
|
142
|
+
}];
|
|
133
143
|
});
|
|
134
144
|
export default Logistics;
|
|
@@ -30,7 +30,7 @@ var ColumnHeader = function ColumnHeader(_ref) {
|
|
|
30
30
|
return setVisible(false);
|
|
31
31
|
},
|
|
32
32
|
footer: null
|
|
33
|
-
}, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u4FEE\u6539\u7684\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
|
|
33
|
+
}, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u4FEE\u6539\u7684\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u4E2D\u901A\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
|
|
34
34
|
style: {
|
|
35
35
|
color: "#ff4d4f"
|
|
36
36
|
}
|
|
@@ -2,6 +2,7 @@ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ExpressData, ExpressInterceptData, LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
import InterceptSenderMobile from "./interceptSenderMobile";
|
|
5
|
+
import InterceptApiStatusReason from "./interceptApiStatusReason";
|
|
5
6
|
import InterceptSnapshot from "./interceptSnapshot";
|
|
6
7
|
import InterceptAddress from "./InterceptAddress";
|
|
7
8
|
import InterceptType from "./InterceptType";
|
|
@@ -23,6 +24,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
23
24
|
interceptLogisticsStatus: InterceptStatus;
|
|
24
25
|
interceptApiStatus: InterceptApiStatus;
|
|
25
26
|
interceptSenderMobile: InterceptSenderMobile;
|
|
27
|
+
interceptApiStatusReason: InterceptApiStatusReason;
|
|
26
28
|
interceptSnapshot: InterceptSnapshot;
|
|
27
29
|
interceptState: InterceptState;
|
|
28
30
|
isCombinationComponent: boolean;
|
|
@@ -56,6 +58,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
56
58
|
};
|
|
57
59
|
interceptSnapshot: any;
|
|
58
60
|
interceptState: any;
|
|
61
|
+
interceptApiStatusReason: any;
|
|
59
62
|
};
|
|
60
63
|
renderPc: () => null;
|
|
61
64
|
renderExport: () => null;
|
|
@@ -67,6 +70,23 @@ declare class Logistics implements ComponentInterface {
|
|
|
67
70
|
name: string;
|
|
68
71
|
filterComponentType: "Input";
|
|
69
72
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
73
|
+
} | {
|
|
74
|
+
searchDefaultConditions: {
|
|
75
|
+
in: "in";
|
|
76
|
+
anylike: "anylike";
|
|
77
|
+
};
|
|
78
|
+
type: string;
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
filterComponentType: "SelectInput";
|
|
82
|
+
props: {
|
|
83
|
+
filterOptions: {
|
|
84
|
+
label: string;
|
|
85
|
+
value: string;
|
|
86
|
+
}[];
|
|
87
|
+
};
|
|
88
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
89
|
+
formatFilterValue: (value: any) => any;
|
|
70
90
|
} | {
|
|
71
91
|
searchDefaultConditions: "in";
|
|
72
92
|
type: string;
|