@kmkf-fe-packages/services-components 0.27.1-test.0 → 0.27.1-test.12
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/commonComponents/CopyText/index.d.ts +7 -0
- package/dist/esm/commonComponents/CopyText/index.js +14 -0
- package/dist/esm/commonComponents/ErpContext/index.d.ts +16 -0
- package/dist/esm/commonComponents/ErpContext/index.js +68 -0
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +8 -5
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +1 -1
- package/dist/esm/commonComponents/PlatBuyer/index.js +4 -17
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +21 -15
- package/dist/esm/components/BS/BsLogistics/index.js +12 -7
- package/dist/esm/components/BS/BsReissue/index.js +7 -7
- 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.d.ts +26 -0
- package/dist/esm/components/BS/common/SystemOrderNo.js +94 -0
- package/dist/esm/components/BS/common/expressCompany.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +5 -2
- package/dist/esm/components/BS/common/index.d.ts +1 -0
- package/dist/esm/components/BS/common/index.js +2 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +9 -19
- package/dist/esm/components/Common/index.d.ts +3 -2
- package/dist/esm/components/Common/index.js +261 -171
- package/dist/esm/components/CommonHeaderGood/index.js +168 -0
- package/dist/esm/components/CommonInput/index.d.ts +34 -0
- package/dist/esm/components/CommonInput/index.js +105 -0
- package/dist/esm/components/CommonTradeId/index.d.ts +5 -6
- package/dist/esm/components/CommonTradeId/index.js +15 -26
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.d.ts +2 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +23 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.d.ts +4 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.js +169 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.less +30 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/noImage.png +0 -0
- package/dist/esm/components/ErpTradeId/index.MD +1 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -29
- package/dist/esm/components/ErpTradeId/index.js +41 -104
- package/dist/esm/components/ExpressCode/index.d.ts +2 -2
- package/dist/esm/components/ExpressCode/index.js +9 -5
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/FlowWorkOrderId/index.js +4 -18
- package/dist/esm/components/JST/JstLogistics/index.js +16 -11
- package/dist/esm/components/JST/JstSendGood/index.js +8 -5
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -13
- package/dist/esm/components/LogisticsMoreInterception/index.js +17 -14
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.d.ts → interceptCode.d.ts} +2 -2
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.js → interceptCode.js} +7 -4
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +57 -4
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.d.ts +30 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.js +80 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.d.ts +29 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.js +77 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.d.ts +32 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.js +96 -0
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +26 -4
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +32 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +93 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
- package/dist/esm/components/Payment/PaymentStatus.js +30 -30
- package/dist/esm/components/Payment/PaymentTid.d.ts +2 -2
- package/dist/esm/components/Payment/PaymentTid.js +14 -3
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +33 -0
- package/dist/esm/components/PaymentVoucherCode/index.js +108 -0
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/Select/index.js +22 -14
- package/dist/esm/components/TradeId/index.d.ts +0 -1
- package/dist/esm/components/TradeId/index.js +7 -19
- package/dist/esm/components/WDT/WdtExchange/index.d.ts +35 -0
- package/dist/esm/components/WDT/WdtExchange/index.js +181 -0
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +58 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +185 -0
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +54 -0
- package/dist/esm/components/WDT/WdtReturn/index.js +148 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/WorkOrderId/index.js +4 -18
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -3
- package/dist/esm/index.d.ts +10 -3
- package/dist/esm/index.js +10 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +36 -16
- package/dist/esm/type.d.ts +4 -2
- package/package.json +4 -4
|
@@ -6,18 +6,17 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
|
-
import React from
|
|
10
|
-
import { BuyerNick } from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { BuyerNick } from "@kmkf-fe-packages/basic-components";
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
14
|
-
import { isNull, filterFn as _filterFn } from
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
16
|
import wangImg from "../../commonComponents/Wangwang/img/wang.gif";
|
|
17
17
|
var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
18
18
|
var _this = this,
|
|
19
|
-
_this$componentConfig3
|
|
20
|
-
_this$componentConfig4;
|
|
19
|
+
_this$componentConfig3;
|
|
21
20
|
_classCallCheck(this, EBuyerNick);
|
|
22
21
|
_defineProperty(this, "name", void 0);
|
|
23
22
|
_defineProperty(this, "id", void 0);
|
|
@@ -36,7 +35,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
36
35
|
return /*#__PURE__*/React.createElement("span", {
|
|
37
36
|
onClick: function onClick() {
|
|
38
37
|
var _record$_this$id, _record$_this$id2;
|
|
39
|
-
typeof params.openWangWang ===
|
|
38
|
+
typeof params.openWangWang === "function" && params.openWangWang(record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.buyerNick, record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.buyerOpenUid);
|
|
40
39
|
}
|
|
41
40
|
}, /*#__PURE__*/React.createElement("img", {
|
|
42
41
|
alt: "\u8BF7\u70B9\u51FB\u76F4\u63A5\u8BBF\u95EE",
|
|
@@ -50,7 +49,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
50
49
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
51
50
|
id: _this.id,
|
|
52
51
|
label: _this.name,
|
|
53
|
-
value: (params === null || params === void 0 ? void 0 : params.platform) ===
|
|
52
|
+
value: (params === null || params === void 0 ? void 0 : params.platform) === "tb" ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.buyerNick
|
|
54
53
|
}) : null;
|
|
55
54
|
});
|
|
56
55
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -109,10 +108,10 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
109
108
|
// 过滤组件id
|
|
110
109
|
name: item.name,
|
|
111
110
|
// 过滤组件名称
|
|
112
|
-
filterComponentType:
|
|
111
|
+
filterComponentType: "Input",
|
|
113
112
|
filterFn: function filterFn(value) {
|
|
114
113
|
return function (i) {
|
|
115
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
114
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "buyerNick")).includes(value);
|
|
116
115
|
};
|
|
117
116
|
}
|
|
118
117
|
};
|
|
@@ -125,17 +124,8 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
125
124
|
this.isCombinationComponent = false;
|
|
126
125
|
this.canSort = true;
|
|
127
126
|
this.children = [];
|
|
128
|
-
this.dataType =
|
|
127
|
+
this.dataType = "string";
|
|
129
128
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
130
|
-
validator: function validator(_, value) {
|
|
131
|
-
if (!(value !== null && value !== void 0 && value.buyerNick)) {
|
|
132
|
-
return Promise.reject(new Error('请输入买家昵称'));
|
|
133
|
-
}
|
|
134
|
-
return Promise.resolve();
|
|
135
|
-
}
|
|
136
|
-
}] : [];
|
|
137
|
-
this.componentConfig = options.componentConfig;
|
|
138
|
-
this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
139
129
|
validator: function validator(_, value) {
|
|
140
130
|
if (!(value !== null && value !== void 0 && value.buyerNick)) {
|
|
141
131
|
return Promise.reject(new Error("请输入买家昵称"));
|
|
@@ -15,8 +15,8 @@ export declare const showImage: ({ item, type, index, showHeader, }: {
|
|
|
15
15
|
}) => React.JSX.Element;
|
|
16
16
|
export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: any) => React.JSX.Element;
|
|
17
17
|
export declare const GoodImage: ({ list, type, showHeader }: any) => React.JSX.Element | null;
|
|
18
|
-
export declare const JstGoodImage: ({ list, type }: any) => any;
|
|
19
|
-
export declare const BsExpressRender: ({ list, showField }: any) => any;
|
|
18
|
+
export declare const JstGoodImage: ({ list, type, platformType }: any) => any;
|
|
19
|
+
export declare const BsExpressRender: ({ list, showField, platformType }: any) => any;
|
|
20
20
|
export declare const CommonOrderContent: ({ list, valueKey, failValue, options, }: any) => any;
|
|
21
21
|
export declare const BsGoodImage: ({ item, index }: {
|
|
22
22
|
item: any;
|
|
@@ -33,4 +33,5 @@ export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
|
|
|
33
33
|
export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
34
34
|
export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
|
|
35
35
|
export declare const MsgContent: ({ horizontal, list, valueKey, failValue, options, }: any) => React.JSX.Element;
|
|
36
|
+
export declare const AlipayBill: (props: any) => React.JSX.Element;
|
|
36
37
|
export {};
|