@kmkf-fe-packages/services-components 2.0.12-beta.3 → 2.0.12-beta.30
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/components/BS/common/BsHeaderChild.d.ts +3 -2
- package/dist/esm/components/BS/common/BsHeaderChild.js +6 -2
- package/dist/esm/components/BS/common/BsMemo.js +2 -1
- package/dist/esm/components/BS/common/BsType.js +2 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +5 -2
- package/dist/esm/components/Common/index.js +1 -1
- package/dist/esm/components/CommonHeaderGood/index.js +180 -9
- package/dist/esm/components/CommonSystemOrder/index.js +3 -3
- package/dist/esm/components/CommonTradeId/index.js +2 -2
- package/dist/esm/components/JST/JstSendGood/index.js +4 -4
- package/dist/esm/components/Label/index.d.ts +0 -1
- package/dist/esm/components/Label/index.js +0 -9
- package/dist/esm/components/MsgStatus/index.js +2 -7
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentAmount.js +4 -0
- package/dist/esm/components/Public/Exchange/index.d.ts +42 -0
- package/dist/esm/components/Public/Exchange/index.js +173 -0
- package/dist/esm/components/Public/ReissueGoods/index.d.ts +3 -1
- package/dist/esm/components/Public/ReissueGoods/index.js +77 -32
- package/dist/esm/components/Public/SystemOrderType/index.d.ts +26 -0
- package/dist/esm/components/Public/SystemOrderType/index.js +95 -0
- package/dist/esm/components/Select/index.js +2 -5
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +6 -3
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
- package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
- package/dist/esm/components/Common/dist/index.js +0 -1019
|
@@ -13,8 +13,9 @@ declare class BsHeaderChild implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
parentName?: string;
|
|
17
|
+
transformValue: (val: any, record?: any, parentName?: string) => any;
|
|
18
|
+
export: (val: any, record?: any, parentName?: string) => any;
|
|
18
19
|
constructor(options: PickOption);
|
|
19
20
|
getParentId: () => string;
|
|
20
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -29,6 +29,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
29
29
|
_defineProperty(this, "canSort", void 0);
|
|
30
30
|
_defineProperty(this, "children", void 0);
|
|
31
31
|
_defineProperty(this, "dataType", void 0);
|
|
32
|
+
_defineProperty(this, "parentName", void 0);
|
|
32
33
|
_defineProperty(this, "transformValue", function (val) {
|
|
33
34
|
return val;
|
|
34
35
|
});
|
|
@@ -60,10 +61,10 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
60
61
|
return _this.renderPc(undefined, r);
|
|
61
62
|
});
|
|
62
63
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
63
|
-
return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id]);
|
|
64
|
+
return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
|
|
64
65
|
});
|
|
65
66
|
_defineProperty(this, "getComponentExport", function (r) {
|
|
66
|
-
return _this.export(r === null || r === void 0 ? void 0 : r[_this.id]);
|
|
67
|
+
return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
|
|
67
68
|
});
|
|
68
69
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
69
70
|
var _this$getComponentExp;
|
|
@@ -81,6 +82,9 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
81
82
|
this.sortField = options.id;
|
|
82
83
|
this.formField = options.id;
|
|
83
84
|
this.type = options.type;
|
|
85
|
+
if (options.parentName) {
|
|
86
|
+
this.parentName = options.parentName;
|
|
87
|
+
}
|
|
84
88
|
this.componentConfig = options.componentConfig;
|
|
85
89
|
this.align = "left";
|
|
86
90
|
this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
|
|
@@ -22,7 +22,8 @@ var componentType = {
|
|
|
22
22
|
WDT_RETURN_GOODS: "wdtReturnType",
|
|
23
23
|
BS_E3_REISSUE_GOODS: "bsE3ReissueType",
|
|
24
24
|
GY_REISSUE_GOODS: "gyReissueType",
|
|
25
|
-
JST_REISSUE_GOODS: "jstReissueType"
|
|
25
|
+
JST_REISSUE_GOODS: "jstReissueType",
|
|
26
|
+
JST_RETURN_GOODS: "jstReturnType"
|
|
26
27
|
};
|
|
27
28
|
var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
28
29
|
var _this = this;
|
|
@@ -23,7 +23,8 @@ var componentType = {
|
|
|
23
23
|
WDT_RETURN_GOODS: "wdtReturnType",
|
|
24
24
|
BS_E3_REISSUE_GOODS: "bsE3ReissueType",
|
|
25
25
|
GY_REISSUE_GOODS: "gyReissueType",
|
|
26
|
-
JST_REISSUE_GOODS: "jstReissueType"
|
|
26
|
+
JST_REISSUE_GOODS: "jstReissueType",
|
|
27
|
+
JST_RETURN_GOODS: "jstReturnType"
|
|
27
28
|
};
|
|
28
29
|
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
29
30
|
var _this = this;
|
|
@@ -18,7 +18,8 @@ var componentType = {
|
|
|
18
18
|
WDT_REISSUE_GOODS: "wdtSystemOrderNo",
|
|
19
19
|
BS_E3_REISSUE_GOODS: "bsE3SystemOrderNo",
|
|
20
20
|
GY_REISSUE_GOODS: "gySystemOrderNo",
|
|
21
|
-
JST_REISSUE_GOODS: "jstSystemOrderNo"
|
|
21
|
+
JST_REISSUE_GOODS: "jstSystemOrderNo",
|
|
22
|
+
JST_RETURN_GOODS: "jstSystemOrderNo"
|
|
22
23
|
};
|
|
23
24
|
var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
24
25
|
var _this = this;
|
|
@@ -9,16 +9,19 @@ import bs_e3 from "./bs_e3";
|
|
|
9
9
|
import bs from "./bs";
|
|
10
10
|
import wdt from "./wdt";
|
|
11
11
|
import gy from "./gy";
|
|
12
|
+
import { getJstColumns } from "@kmkf-fe-packages/basic-components";
|
|
12
13
|
import defaultColumns from "./defaultColumns";
|
|
13
14
|
export var getColumnsMap = function getColumnsMap(args) {
|
|
14
15
|
var _ref = args || {},
|
|
15
16
|
_ref$text = _ref.text,
|
|
16
17
|
text = _ref$text === void 0 ? "" : _ref$text;
|
|
17
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
|
|
18
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
|
|
18
19
|
text: text
|
|
19
20
|
})), bs_e3()), wdt({
|
|
20
21
|
text: text
|
|
21
|
-
})), gy()), {
|
|
22
|
+
})), gy()), getJstColumns({
|
|
23
|
+
disabled: true
|
|
24
|
+
})), {}, {
|
|
22
25
|
default: defaultColumns({
|
|
23
26
|
text: text
|
|
24
27
|
})["default"]
|
|
@@ -733,7 +733,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
733
733
|
var key = item.msgType || "ding";
|
|
734
734
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
735
735
|
key: index
|
|
736
|
-
}, msgTypeCh[key]
|
|
736
|
+
}, msgTypeCh[key], "-", item.ruleName ? "".concat(item.ruleName, "-") : "", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
737
737
|
return /*#__PURE__*/React.createElement("div", {
|
|
738
738
|
key: "wrap_".concat(index),
|
|
739
739
|
style: {
|
|
@@ -777,12 +777,46 @@ var GoodHeaderMap = {
|
|
|
777
777
|
name: '商品图片'
|
|
778
778
|
},
|
|
779
779
|
propertiesValue: "规格值",
|
|
780
|
-
saleBasePrice:
|
|
781
|
-
|
|
780
|
+
saleBasePrice: {
|
|
781
|
+
name: "原价",
|
|
782
|
+
transformValue: function transformValue(price) {
|
|
783
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
784
|
+
},
|
|
785
|
+
renderExport: function renderExport(price) {
|
|
786
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
salePrice: {
|
|
790
|
+
name: "单价",
|
|
791
|
+
transformValue: function transformValue(price) {
|
|
792
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
793
|
+
},
|
|
794
|
+
renderExport: function renderExport(price) {
|
|
795
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
796
|
+
}
|
|
797
|
+
},
|
|
782
798
|
qty: "数量",
|
|
783
|
-
saleAmount:
|
|
799
|
+
saleAmount: {
|
|
800
|
+
name: "总金额",
|
|
801
|
+
transformValue: function transformValue(val, record, parentName) {
|
|
802
|
+
if (!record) return '--';
|
|
803
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
804
|
+
},
|
|
805
|
+
renderExport: function renderExport(val, record, parentName) {
|
|
806
|
+
if (!record) return '--';
|
|
807
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
808
|
+
}
|
|
809
|
+
},
|
|
784
810
|
batchId: "批次号",
|
|
785
|
-
isGift:
|
|
811
|
+
isGift: {
|
|
812
|
+
name: "是否赠品",
|
|
813
|
+
transformValue: function transformValue(val) {
|
|
814
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
815
|
+
},
|
|
816
|
+
renderExport: function renderExport(val) {
|
|
817
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
818
|
+
}
|
|
819
|
+
},
|
|
786
820
|
outerOiId: "子订单号"
|
|
787
821
|
},
|
|
788
822
|
moneyKey: "salePrice"
|
|
@@ -797,10 +831,142 @@ var GoodHeaderMap = {
|
|
|
797
831
|
name: '商品图片'
|
|
798
832
|
},
|
|
799
833
|
propertiesValue: "规格值",
|
|
800
|
-
saleBasePrice:
|
|
801
|
-
|
|
834
|
+
saleBasePrice: {
|
|
835
|
+
name: "原价",
|
|
836
|
+
transformValue: function transformValue(price) {
|
|
837
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
838
|
+
},
|
|
839
|
+
renderExport: function renderExport(price) {
|
|
840
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
salePrice: {
|
|
844
|
+
name: "单价",
|
|
845
|
+
transformValue: function transformValue(price) {
|
|
846
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
847
|
+
},
|
|
848
|
+
renderExport: function renderExport(price) {
|
|
849
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
850
|
+
}
|
|
851
|
+
},
|
|
802
852
|
qty: "数量",
|
|
803
|
-
isGift:
|
|
853
|
+
isGift: {
|
|
854
|
+
name: "是否赠品",
|
|
855
|
+
transformValue: function transformValue(val) {
|
|
856
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
857
|
+
},
|
|
858
|
+
renderExport: function renderExport(val) {
|
|
859
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
remark: "备注"
|
|
863
|
+
},
|
|
864
|
+
moneyKey: "salePrice"
|
|
865
|
+
},
|
|
866
|
+
JST_RETURN_GOODS: {
|
|
867
|
+
headerMap: {
|
|
868
|
+
name: "商品名称",
|
|
869
|
+
skuId: "商品编码",
|
|
870
|
+
iId: "款式编码",
|
|
871
|
+
pic: {
|
|
872
|
+
component: BsHeaderPic,
|
|
873
|
+
name: '商品图片'
|
|
874
|
+
},
|
|
875
|
+
propertiesValue: "规格值",
|
|
876
|
+
saleBasePrice: {
|
|
877
|
+
name: "原价",
|
|
878
|
+
transformValue: function transformValue(price) {
|
|
879
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
880
|
+
},
|
|
881
|
+
renderExport: function renderExport(price) {
|
|
882
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
salePrice: {
|
|
886
|
+
name: "单价",
|
|
887
|
+
transformValue: function transformValue(price) {
|
|
888
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
889
|
+
},
|
|
890
|
+
renderExport: function renderExport(price) {
|
|
891
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
qty: "数量",
|
|
895
|
+
saleAmount: {
|
|
896
|
+
name: "总金额",
|
|
897
|
+
transformValue: function transformValue(val, record, parentName) {
|
|
898
|
+
if (!record) return '--';
|
|
899
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
900
|
+
},
|
|
901
|
+
renderExport: function renderExport(val, record, parentName) {
|
|
902
|
+
if (!record) return '--';
|
|
903
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
batchId: "批次号",
|
|
907
|
+
isGift: {
|
|
908
|
+
name: "是否赠品",
|
|
909
|
+
transformValue: function transformValue(val) {
|
|
910
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
911
|
+
},
|
|
912
|
+
renderExport: function renderExport(val) {
|
|
913
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
remark: "备注",
|
|
917
|
+
outerOiId: "子订单号"
|
|
918
|
+
},
|
|
919
|
+
moneyKey: "salePrice"
|
|
920
|
+
},
|
|
921
|
+
JST_EXCHANGE_GOODS: {
|
|
922
|
+
headerMap: {
|
|
923
|
+
name: "商品名称",
|
|
924
|
+
skuId: "商品编码",
|
|
925
|
+
iId: "款式编码",
|
|
926
|
+
pic: {
|
|
927
|
+
component: BsHeaderPic,
|
|
928
|
+
name: '商品图片'
|
|
929
|
+
},
|
|
930
|
+
propertiesValue: "规格值",
|
|
931
|
+
saleBasePrice: {
|
|
932
|
+
name: "原价",
|
|
933
|
+
transformValue: function transformValue(price) {
|
|
934
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
935
|
+
},
|
|
936
|
+
renderExport: function renderExport(price) {
|
|
937
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
salePrice: {
|
|
941
|
+
name: "单价",
|
|
942
|
+
transformValue: function transformValue(price) {
|
|
943
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
944
|
+
},
|
|
945
|
+
renderExport: function renderExport(price) {
|
|
946
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
qty: "数量",
|
|
950
|
+
saleAmount: {
|
|
951
|
+
name: "总金额",
|
|
952
|
+
transformValue: function transformValue(val, record, parentName) {
|
|
953
|
+
if (!record) return '--';
|
|
954
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
955
|
+
},
|
|
956
|
+
renderExport: function renderExport(val, record, parentName) {
|
|
957
|
+
if (!record) return '--';
|
|
958
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
isGift: {
|
|
962
|
+
name: "是否赠品",
|
|
963
|
+
transformValue: function transformValue(val) {
|
|
964
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
965
|
+
},
|
|
966
|
+
renderExport: function renderExport(val) {
|
|
967
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
968
|
+
}
|
|
969
|
+
},
|
|
804
970
|
remark: "备注"
|
|
805
971
|
},
|
|
806
972
|
moneyKey: "salePrice"
|
|
@@ -916,12 +1082,17 @@ var CommonHeaderGoods = /*#__PURE__*/function () {
|
|
|
916
1082
|
component: GoodHeaderMap[_this2.type].headerMap[key].component || BsHeaderChild,
|
|
917
1083
|
name: ((_this2$itemKey = _this2.itemKey) === null || _this2$itemKey === void 0 ? void 0 : _this2$itemKey[key]) || GoodHeaderMap[_this2.type].headerMap[key].name,
|
|
918
1084
|
key: GoodHeaderMap[_this2.type].headerMap[key].key || key,
|
|
919
|
-
width: GoodHeaderMap[_this2.type].headerMap[key].width || 80
|
|
1085
|
+
width: GoodHeaderMap[_this2.type].headerMap[key].width || 80,
|
|
1086
|
+
transformValue: GoodHeaderMap[_this2.type].headerMap[key].transformValue,
|
|
1087
|
+
renderExport: GoodHeaderMap[_this2.type].headerMap[key].renderExport
|
|
920
1088
|
};
|
|
921
1089
|
prv.push(new target.component(_objectSpread(_objectSpread({}, options), {}, {
|
|
922
1090
|
name: target.name,
|
|
923
1091
|
id: "".concat(options.id, "_").concat(target.key),
|
|
924
|
-
width: target.width
|
|
1092
|
+
width: target.width,
|
|
1093
|
+
parentName: options.id,
|
|
1094
|
+
transformValue: target.transformValue,
|
|
1095
|
+
renderExport: target.renderExport
|
|
925
1096
|
})));
|
|
926
1097
|
}
|
|
927
1098
|
return prv;
|
|
@@ -43,9 +43,9 @@ var typeMap = {
|
|
|
43
43
|
type: 4,
|
|
44
44
|
valueKey: "billNo"
|
|
45
45
|
},
|
|
46
|
-
|
|
47
|
-
key: "
|
|
48
|
-
code: "
|
|
46
|
+
ERP_AFTER_SALE_TRADE_ID: {
|
|
47
|
+
key: "erpAfterSaleTradeItemList",
|
|
48
|
+
code: "erpAfterSaleTradeIdList",
|
|
49
49
|
name: "售后单id",
|
|
50
50
|
type: 5,
|
|
51
51
|
valueKey: "billNo"
|
|
@@ -176,11 +176,11 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
176
176
|
});
|
|
177
177
|
_defineProperty(this, "filterConfig", function (item) {
|
|
178
178
|
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
|
|
179
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "
|
|
179
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
180
180
|
searchDefaultConditions: SYMBOL.in,
|
|
181
181
|
type: item.type,
|
|
182
182
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
183
|
-
name: "".concat(_this.name, "
|
|
183
|
+
name: "".concat(_this.name, "-\u540D\u79F0"),
|
|
184
184
|
filterComponentType: "MultipleSelect",
|
|
185
185
|
props: {
|
|
186
186
|
options: SendDataCenter.getInstance(item.type).getSendData()
|
|
@@ -199,7 +199,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
199
199
|
searchDefaultConditions: SYMBOL.like,
|
|
200
200
|
type: item.type,
|
|
201
201
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
|
|
202
|
-
name: "".concat(_this.name, "
|
|
202
|
+
name: "".concat(_this.name, "-\u540D\u79F0"),
|
|
203
203
|
filterComponentType: "Input",
|
|
204
204
|
filterFn: function filterFn(value) {
|
|
205
205
|
return function (i) {
|
|
@@ -215,7 +215,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
215
215
|
searchDefaultConditions: SYMBOL.like,
|
|
216
216
|
type: item.type,
|
|
217
217
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.sendId),
|
|
218
|
-
name: "".concat(_this.name, "
|
|
218
|
+
name: "".concat(_this.name, "-\u7F16\u7801"),
|
|
219
219
|
filterComponentType: "Input",
|
|
220
220
|
filterFn: function filterFn(value) {
|
|
221
221
|
return function (i) {
|
|
@@ -38,7 +38,6 @@ declare class Label implements ComponentInterface {
|
|
|
38
38
|
options: any;
|
|
39
39
|
};
|
|
40
40
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
41
|
-
formatFilterValue: (val: Array<string>) => string[] | undefined;
|
|
42
41
|
};
|
|
43
42
|
formDataTransform: (v: Array<{
|
|
44
43
|
labelShowName: string;
|
|
@@ -140,15 +140,6 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
|
|
|
140
140
|
return function (i) {
|
|
141
141
|
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, "label")).length > 0;
|
|
142
142
|
};
|
|
143
|
-
},
|
|
144
|
-
formatFilterValue: function formatFilterValue(val) {
|
|
145
|
-
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
146
|
-
return val.map(function (item) {
|
|
147
|
-
return JSON.stringify({
|
|
148
|
-
labelShowName: item
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
143
|
}
|
|
153
144
|
};
|
|
154
145
|
});
|
|
@@ -39,15 +39,10 @@ var typeMap = {
|
|
|
39
39
|
label: "等待执行",
|
|
40
40
|
color: "#e7780f"
|
|
41
41
|
}, {
|
|
42
|
-
oldValue: "
|
|
42
|
+
oldValue: "等待发送",
|
|
43
43
|
value: "不满足条件,无需执行",
|
|
44
44
|
label: "不满足条件,无需执行",
|
|
45
45
|
color: "#8A8A8A"
|
|
46
|
-
}, {
|
|
47
|
-
oldValue: "暂不满足条件,等待执行",
|
|
48
|
-
value: "暂不满足条件,等待执行",
|
|
49
|
-
label: "暂不满足条件,等待执行",
|
|
50
|
-
color: "#4D90F7"
|
|
51
46
|
}],
|
|
52
47
|
key: "msgStatusValues",
|
|
53
48
|
code: "msgStatus4Search",
|
|
@@ -130,7 +125,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
130
125
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
131
126
|
});
|
|
132
127
|
var key = item.msgType || "ding";
|
|
133
|
-
return "".concat(msgTypeCh[key]
|
|
128
|
+
return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
|
|
134
129
|
}).join(",");
|
|
135
130
|
});
|
|
136
131
|
_defineProperty(this, "editRender", function (p) {
|
|
@@ -36,5 +36,6 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
36
36
|
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
37
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
38
|
};
|
|
39
|
+
formDataTransform: (value: string) => string | number;
|
|
39
40
|
}
|
|
40
41
|
export default PaymentAmount;
|
|
@@ -132,6 +132,10 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
});
|
|
135
|
+
_defineProperty(this, "formDataTransform", function (value) {
|
|
136
|
+
var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
|
|
137
|
+
return isNumber.test(value) ? Number(value) : value;
|
|
138
|
+
});
|
|
135
139
|
this.name = '打款金额';
|
|
136
140
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
137
141
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
4
|
+
import { type FormInstance } from "antd";
|
|
5
|
+
declare type ConfigType = {
|
|
6
|
+
goodsKey: string;
|
|
7
|
+
validator: any;
|
|
8
|
+
};
|
|
9
|
+
declare class Exchange implements ComponentInterface {
|
|
10
|
+
name: string;
|
|
11
|
+
id: string;
|
|
12
|
+
sortField: string;
|
|
13
|
+
type: string;
|
|
14
|
+
rules: any[];
|
|
15
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
16
|
+
effects: ComponentInterface["effects"];
|
|
17
|
+
isCombinationComponent: boolean;
|
|
18
|
+
formField: string;
|
|
19
|
+
canSort: boolean;
|
|
20
|
+
children: ComponentInterface[];
|
|
21
|
+
dataType: ComponentInterface["dataType"];
|
|
22
|
+
returnGoods: CommonHeaderGoods;
|
|
23
|
+
config: ConfigType;
|
|
24
|
+
form?: FormInstance;
|
|
25
|
+
constructor(options: PickOption);
|
|
26
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
27
|
+
renderPc: () => null;
|
|
28
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
29
|
+
getComponentValue: (r: Record) => {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
};
|
|
32
|
+
renderExport: (value: any, record: any) => null;
|
|
33
|
+
editRender: (p: any) => React.JSX.Element;
|
|
34
|
+
filterConfig: (item: ColumnConfig) => {
|
|
35
|
+
searchDefaultConditions: "like";
|
|
36
|
+
type: string;
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
filterComponentType: "Input";
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
42
|
+
export default Exchange;
|