@kmkf-fe-packages/services-components 0.25.3-alpha.2 → 0.25.3-beta.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/components/BS/BsLogistics/index.js +10 -6
- package/dist/esm/components/BS/BsReissue/index.d.ts +9 -9
- package/dist/esm/components/BS/BsReissue/index.js +64 -34
- package/dist/esm/components/BS/BsSystemOrder/index.js +7 -0
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +16 -15
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +14 -13
- package/dist/esm/components/BS/common/expressCode.js +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +4 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +19 -9
- package/dist/esm/components/Common/index.d.ts +1 -8
- package/dist/esm/components/Common/index.js +303 -255
- package/dist/esm/components/CommonHeaderGood/index.d.ts +27 -0
- package/dist/esm/components/CommonHeaderGood/index.js +193 -0
- package/dist/esm/components/EItemEnCode/index.js +3 -2
- package/dist/esm/components/JST/JstSendGood/index.js +6 -0
- package/dist/esm/components/PostIng/index.js +7 -2
- package/dist/esm/components/{CommonInput → WDT/WdtGoods}/index.d.ts +9 -10
- package/dist/esm/components/WDT/WdtGoods/index.js +121 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -11
- package/dist/esm/index.d.ts +2 -3
- package/dist/esm/index.js +1 -2
- package/dist/esm/service/api.d.ts +0 -1
- package/dist/esm/service/api.js +0 -8
- package/package.json +4 -4
- package/dist/esm/components/CommonInput/index.js +0 -133
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +0 -33
- package/dist/esm/components/PaymentVoucherCode/index.js +0 -103
|
@@ -6,17 +6,18 @@ 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
|
|
19
|
+
_this$componentConfig3,
|
|
20
|
+
_this$componentConfig4;
|
|
20
21
|
_classCallCheck(this, EBuyerNick);
|
|
21
22
|
_defineProperty(this, "name", void 0);
|
|
22
23
|
_defineProperty(this, "id", void 0);
|
|
@@ -35,7 +36,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
35
36
|
return /*#__PURE__*/React.createElement("span", {
|
|
36
37
|
onClick: function onClick() {
|
|
37
38
|
var _record$_this$id, _record$_this$id2;
|
|
38
|
-
typeof params.openWangWang ===
|
|
39
|
+
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);
|
|
39
40
|
}
|
|
40
41
|
}, /*#__PURE__*/React.createElement("img", {
|
|
41
42
|
alt: "\u8BF7\u70B9\u51FB\u76F4\u63A5\u8BBF\u95EE",
|
|
@@ -49,7 +50,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
49
50
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
50
51
|
id: _this.id,
|
|
51
52
|
label: _this.name,
|
|
52
|
-
value: (params === null || params === void 0 ? void 0 : params.platform) ===
|
|
53
|
+
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
|
|
53
54
|
}) : null;
|
|
54
55
|
});
|
|
55
56
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -107,10 +108,10 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
107
108
|
// 过滤组件id
|
|
108
109
|
name: item.name,
|
|
109
110
|
// 过滤组件名称
|
|
110
|
-
filterComponentType:
|
|
111
|
+
filterComponentType: 'Input',
|
|
111
112
|
filterFn: function filterFn(value) {
|
|
112
113
|
return function (i) {
|
|
113
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
114
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'buyerNick')).includes(value);
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
117
|
};
|
|
@@ -123,8 +124,17 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
123
124
|
this.isCombinationComponent = false;
|
|
124
125
|
this.canSort = true;
|
|
125
126
|
this.children = [];
|
|
126
|
-
this.dataType =
|
|
127
|
+
this.dataType = 'string';
|
|
127
128
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
129
|
+
validator: function validator(_, value) {
|
|
130
|
+
if (!(value !== null && value !== void 0 && value.buyerNick)) {
|
|
131
|
+
return Promise.reject(new Error('请输入买家昵称'));
|
|
132
|
+
}
|
|
133
|
+
return Promise.resolve();
|
|
134
|
+
}
|
|
135
|
+
}] : [];
|
|
136
|
+
this.componentConfig = options.componentConfig;
|
|
137
|
+
this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
128
138
|
validator: function validator(_, value) {
|
|
129
139
|
if (!(value !== null && value !== void 0 && value.buyerNick)) {
|
|
130
140
|
return Promise.reject(new Error("请输入买家昵称"));
|
|
@@ -24,13 +24,7 @@ export declare const BsGoodImage: ({ item, index }: {
|
|
|
24
24
|
}) => React.JSX.Element;
|
|
25
25
|
export declare const BsExchangeList: ({ list, showHeader }: any) => React.JSX.Element;
|
|
26
26
|
export declare const BsGoodPic: (list: string[]) => React.JSX.Element[];
|
|
27
|
-
export declare const BsGoodsTable: ({ list, showHeader, text, }: {
|
|
28
|
-
list: any[];
|
|
29
|
-
showHeader: string[];
|
|
30
|
-
text?: string | undefined;
|
|
31
|
-
type?: string | undefined;
|
|
32
|
-
}) => React.JSX.Element;
|
|
33
|
-
export declare const TBGoodTable: ({ list, showHeader, text, }: {
|
|
27
|
+
export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
|
|
34
28
|
list: any[];
|
|
35
29
|
showHeader: string[];
|
|
36
30
|
text?: string | undefined;
|
|
@@ -39,5 +33,4 @@ export declare const TBGoodTable: ({ list, showHeader, text, }: {
|
|
|
39
33
|
export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
40
34
|
export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
|
|
41
35
|
export declare const MsgContent: ({ horizontal, list, valueKey, failValue, options, }: any) => React.JSX.Element;
|
|
42
|
-
export declare const AlipayBill: (props: any) => React.JSX.Element;
|
|
43
36
|
export {};
|