@kmkf-fe-packages/services-components 0.3.1-alpha.8 → 0.4.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/commonComponents/PlatBuyer/index.d.ts +9 -0
- package/dist/esm/commonComponents/PlatBuyer/index.js +45 -0
- package/dist/esm/commonComponents/Wangwang/img/wang.gif +0 -0
- package/dist/esm/commonComponents/Wangwang/index.d.ts +7 -0
- package/dist/esm/commonComponents/Wangwang/index.js +31 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +1 -0
- package/dist/esm/components/AlipayAccount/index.js +2 -1
- package/dist/esm/components/AlipayName/index.d.ts +1 -0
- package/dist/esm/components/AlipayName/index.js +2 -1
- package/dist/esm/components/BuyerNick/index.js +7 -4
- package/dist/esm/components/Express/index.d.ts +1 -0
- package/dist/esm/components/Express/index.js +2 -1
- package/dist/esm/components/ExpressCode/index.d.ts +1 -0
- package/dist/esm/components/ExpressCode/index.js +2 -1
- package/dist/esm/components/JstItemSelect/index.d.ts +2 -2
- package/dist/esm/components/JstItemSelect/index.js +2 -2
- package/dist/esm/components/JstLogistics/index.d.ts +2 -2
- package/dist/esm/components/JstLogistics/index.js +2 -2
- package/dist/esm/components/JstSendGood/index.d.ts +2 -2
- package/dist/esm/components/JstSendGood/index.js +2 -2
- package/dist/esm/components/JstSupply/index.d.ts +2 -2
- package/dist/esm/components/JstSupply/index.js +2 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +2 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +2 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.js +2 -1
- package/dist/esm/components/Payment/AlipayNick.d.ts +1 -0
- package/dist/esm/components/Payment/AlipayNick.js +2 -1
- package/dist/esm/components/Payment/AlipayNo.d.ts +2 -1
- package/dist/esm/components/Payment/AlipayNo.js +2 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +2 -1
- package/dist/esm/components/Payment/AlipayTime.js +2 -1
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -1
- package/dist/esm/components/Payment/BuyerNick.js +8 -2
- package/dist/esm/components/Payment/PaymentAmount.d.ts +2 -1
- package/dist/esm/components/Payment/PaymentAmount.js +2 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +2 -1
- package/dist/esm/components/Payment/PaymentStatus.js +2 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +2 -1
- package/dist/esm/components/Payment/PaymentTid.js +2 -1
- package/dist/esm/components/Payment/index.d.ts +34 -2
- package/dist/esm/components/WorkOrderId/index.js +2 -2
- package/dist/esm/type.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type PlatBuyerProp = {
|
|
3
|
+
shopId: string;
|
|
4
|
+
buyerNick: string;
|
|
5
|
+
buyerOpenUid: string;
|
|
6
|
+
shopList: any[];
|
|
7
|
+
};
|
|
8
|
+
declare const PlatBuyer: ({ shopId, buyerNick, buyerOpenUid, shopList }: PlatBuyerProp) => JSX.Element;
|
|
9
|
+
export default PlatBuyer;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 _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; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
8
|
+
import { CopyOutlined } from '@ant-design/icons';
|
|
9
|
+
import { message } from 'antd';
|
|
10
|
+
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
11
|
+
import { PlatData } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import Wangwang from "../Wangwang";
|
|
13
|
+
var PlatBuyer = function PlatBuyer(_ref) {
|
|
14
|
+
var _platInfo$shopId;
|
|
15
|
+
var shopId = _ref.shopId,
|
|
16
|
+
buyerNick = _ref.buyerNick,
|
|
17
|
+
buyerOpenUid = _ref.buyerOpenUid,
|
|
18
|
+
shopList = _ref.shopList;
|
|
19
|
+
var platList = PlatData.getInstance().getPlatData();
|
|
20
|
+
var platInfo = useMemo(function () {
|
|
21
|
+
var info = {};
|
|
22
|
+
(shopList || []).forEach(function (item) {
|
|
23
|
+
var plat = platList.find(function (t) {
|
|
24
|
+
return +t.platformType === +item.shopSource;
|
|
25
|
+
});
|
|
26
|
+
plat && (info[item.shopId] = _objectSpread({}, plat));
|
|
27
|
+
});
|
|
28
|
+
return info;
|
|
29
|
+
}, [platList, shopList]);
|
|
30
|
+
return (platInfo === null || platInfo === void 0 ? void 0 : (_platInfo$shopId = platInfo[shopId]) === null || _platInfo$shopId === void 0 ? void 0 : _platInfo$shopId.platformTypeStr) === 'TAOBAO' ? /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Wangwang, {
|
|
31
|
+
nick: buyerNick,
|
|
32
|
+
buyerOpenUid: buyerOpenUid
|
|
33
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, buyerNick, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
34
|
+
text: buyerNick,
|
|
35
|
+
onCopy: function onCopy() {
|
|
36
|
+
message.success('复制成功');
|
|
37
|
+
}
|
|
38
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
39
|
+
style: {
|
|
40
|
+
paddingLeft: '4px',
|
|
41
|
+
cursor: 'pointer'
|
|
42
|
+
}
|
|
43
|
+
}, /*#__PURE__*/React.createElement(CopyOutlined, null))));
|
|
44
|
+
};
|
|
45
|
+
export default PlatBuyer;
|
|
Binary file
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Description:
|
|
3
|
+
* @Author: litian
|
|
4
|
+
* @Date: 2022-07-27 16:36:49
|
|
5
|
+
* @LastEditors: litian
|
|
6
|
+
* @LastEditTime: 2022-08-26 15:27:11
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import wangImg from "./img/wang.gif";
|
|
10
|
+
var Wangwang = function Wangwang(props) {
|
|
11
|
+
var nick = props.nick,
|
|
12
|
+
buyerOpenUid = props.buyerOpenUid;
|
|
13
|
+
var isOSX = function isOSX() {
|
|
14
|
+
return /Mac OS X/i.test(navigator.userAgent);
|
|
15
|
+
};
|
|
16
|
+
var openWangwang = function openWangwang() {
|
|
17
|
+
var url = isOSX() ? "//amos.alicdn.com/getcid.aw?v=2&uid=".concat(decodeURIComponent(nick), "&site=cntaobao&s=1&groupid=0&openAppkey=21819818&openUID=").concat(buyerOpenUid, "&charset=utf-8") : "aliim:sendmsg?&touid=cntaobao".concat(decodeURIComponent(nick), "&siteid=cntaobao&status=2&portalId=&gid=&itemsId=&scene=&toRole=&source=light&client=false&encryptUID=&bizDomain=taobao&openAppkey=21819818&openUID=").concat(buyerOpenUid);
|
|
18
|
+
window.open(url);
|
|
19
|
+
};
|
|
20
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
onClick: function onClick() {
|
|
22
|
+
openWangwang();
|
|
23
|
+
}
|
|
24
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
25
|
+
alt: "\u8BF7\u70B9\u51FB\u76F4\u63A5\u8BBF\u95EE",
|
|
26
|
+
src: wangImg
|
|
27
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
28
|
+
className: "fc_blue wangwangname"
|
|
29
|
+
}, nick));
|
|
30
|
+
};
|
|
31
|
+
export default Wangwang;
|
|
@@ -25,6 +25,7 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
25
25
|
title: string;
|
|
26
26
|
componentType: (value: any) => JSX.Element;
|
|
27
27
|
renderExport: (value?: string) => string;
|
|
28
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
export default EAlipayAccount;
|
|
@@ -68,7 +68,8 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
68
68
|
dataIndex: _this.id,
|
|
69
69
|
title: _this.name,
|
|
70
70
|
componentType: _this.editRender,
|
|
71
|
-
renderExport: _this.renderExport
|
|
71
|
+
renderExport: _this.renderExport,
|
|
72
|
+
render: _this.renderPc
|
|
72
73
|
});
|
|
73
74
|
});
|
|
74
75
|
this.name = '支付宝账号';
|
|
@@ -25,6 +25,7 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
25
25
|
title: string;
|
|
26
26
|
componentType: (value: any) => JSX.Element;
|
|
27
27
|
renderExport: (value?: string) => string;
|
|
28
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
export default EAlipayAccount;
|
|
@@ -68,7 +68,8 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
68
68
|
dataIndex: _this.id,
|
|
69
69
|
title: _this.name,
|
|
70
70
|
componentType: _this.editRender,
|
|
71
|
-
renderExport: _this.renderExport
|
|
71
|
+
renderExport: _this.renderExport,
|
|
72
|
+
render: _this.renderPc
|
|
72
73
|
});
|
|
73
74
|
});
|
|
74
75
|
this.name = '支付宝名称';
|
|
@@ -12,6 +12,7 @@ import React from 'react';
|
|
|
12
12
|
import { BuyerNick } from '@kmkf-fe-packages/basic-components';
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
+
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
15
16
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
17
|
var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
17
18
|
var _this = this,
|
|
@@ -40,6 +41,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
40
41
|
}) : null;
|
|
41
42
|
});
|
|
42
43
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
44
|
+
var _this$effects;
|
|
43
45
|
var buyerOpenUid = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerOpenUid")];
|
|
44
46
|
var buyerNick = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
|
|
45
47
|
if (buyerNick === undefined && buyerOpenUid === undefined) {
|
|
@@ -48,22 +50,23 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
48
50
|
return /*#__PURE__*/React.createElement("span", null, buyerNick && /*#__PURE__*/React.createElement(PlatBuyer, {
|
|
49
51
|
shopId: record === null || record === void 0 ? void 0 : record.shopId,
|
|
50
52
|
buyerNick: buyerNick,
|
|
51
|
-
buyerOpenUid: buyerOpenUid
|
|
53
|
+
buyerOpenUid: buyerOpenUid,
|
|
54
|
+
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
|
|
52
55
|
}));
|
|
53
56
|
});
|
|
54
57
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
55
58
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
|
|
56
59
|
});
|
|
57
60
|
_defineProperty(this, "editRender", function (value) {
|
|
58
|
-
var _this$componentConfig, _this$componentConfig2, _this$
|
|
61
|
+
var _this$componentConfig, _this$componentConfig2, _this$effects2, _this$effects3;
|
|
59
62
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
60
63
|
title: _this.name,
|
|
61
64
|
name: _this.id,
|
|
62
65
|
rules: _this.rules,
|
|
63
66
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
64
67
|
component: /*#__PURE__*/React.createElement(BuyerNick, _extends({}, _this.componentConfig, {
|
|
65
|
-
shopId: (_this$
|
|
66
|
-
shopList: (_this$
|
|
68
|
+
shopId: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopId,
|
|
69
|
+
shopList: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopList,
|
|
67
70
|
onBlur: value === null || value === void 0 ? void 0 : value.onBlur
|
|
68
71
|
}))
|
|
69
72
|
});
|
|
@@ -27,6 +27,7 @@ declare class Express implements ComponentInterface {
|
|
|
27
27
|
widget: JSX.Element;
|
|
28
28
|
groupFieldPath: string;
|
|
29
29
|
renderExport: (value: string, record: Record) => string | number;
|
|
30
|
+
render: (value: string, record: Record) => JSX.Element;
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
export default Express;
|
|
@@ -72,7 +72,8 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
72
72
|
options: _this.expressDateInstance.getExpressData()
|
|
73
73
|
}),
|
|
74
74
|
groupFieldPath: 'company',
|
|
75
|
-
renderExport: _this.renderExport
|
|
75
|
+
renderExport: _this.renderExport,
|
|
76
|
+
render: _this.renderPc
|
|
76
77
|
});
|
|
77
78
|
;
|
|
78
79
|
});
|
|
@@ -59,7 +59,8 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
59
59
|
dataIndex: _this.id,
|
|
60
60
|
title: _this.name,
|
|
61
61
|
groupFieldPath: 'order',
|
|
62
|
-
renderExport: _this.renderExport
|
|
62
|
+
renderExport: _this.renderExport,
|
|
63
|
+
render: _this.renderPc
|
|
63
64
|
});
|
|
64
65
|
;
|
|
65
66
|
});
|
|
@@ -18,12 +18,12 @@ declare class JstItemSelect implements ComponentInterface {
|
|
|
18
18
|
render: (value: any) => JSX.Element;
|
|
19
19
|
renderClient: (record: Record) => JSX.Element | null;
|
|
20
20
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
21
|
-
renderExport: (value: any, record:
|
|
21
|
+
renderExport: (value: any, record: any) => any;
|
|
22
22
|
editRender: () => JSX.Element;
|
|
23
23
|
getColumns: () => this & {
|
|
24
24
|
dataIndex: string;
|
|
25
25
|
title: string;
|
|
26
|
-
renderExport: (value: any, record:
|
|
26
|
+
renderExport: (value: any, record: any) => any;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
export default JstItemSelect;
|
|
@@ -56,8 +56,8 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
56
56
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
57
57
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
|
|
58
58
|
return (list || []).map(function (item) {
|
|
59
|
-
return
|
|
60
|
-
});
|
|
59
|
+
return [item === null || item === void 0 ? void 0 : item.itemId, item === null || item === void 0 ? void 0 : item.supplierName].join('/');
|
|
60
|
+
}).join(',');
|
|
61
61
|
});
|
|
62
62
|
_defineProperty(this, "editRender", function () {
|
|
63
63
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
@@ -18,12 +18,12 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
18
18
|
render: (value: any) => JSX.Element;
|
|
19
19
|
renderClient: (record: any) => JSX.Element | null;
|
|
20
20
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
21
|
-
renderExport: (value: any, record:
|
|
21
|
+
renderExport: (value: any, record: any) => any;
|
|
22
22
|
editRender: () => JSX.Element;
|
|
23
23
|
getColumns: () => this & {
|
|
24
24
|
dataIndex: string;
|
|
25
25
|
title: string;
|
|
26
|
-
renderExport: (value: any, record:
|
|
26
|
+
renderExport: (value: any, record: any) => any;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
export default JstLogistics;
|
|
@@ -56,8 +56,8 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
56
56
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
57
57
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
|
|
58
58
|
return (list || []).map(function (item) {
|
|
59
|
-
return
|
|
60
|
-
});
|
|
59
|
+
return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join('/');
|
|
60
|
+
}).join(',');
|
|
61
61
|
});
|
|
62
62
|
_defineProperty(this, "editRender", function () {
|
|
63
63
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -16,12 +16,12 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
16
16
|
render: (value: any) => JSX.Element;
|
|
17
17
|
renderClient: (record: Record) => JSX.Element | null;
|
|
18
18
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
19
|
-
renderExport: (value: any, record:
|
|
19
|
+
renderExport: (value: any, record: any) => any;
|
|
20
20
|
editRender: () => JSX.Element;
|
|
21
21
|
getColumns: () => this & {
|
|
22
22
|
dataIndex: string;
|
|
23
23
|
title: string;
|
|
24
|
-
renderExport: (value: any, record:
|
|
24
|
+
renderExport: (value: any, record: any) => any;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export default JstSendGood;
|
|
@@ -54,8 +54,8 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
|
|
|
54
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
55
55
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
|
|
56
56
|
return (list || []).map(function (item) {
|
|
57
|
-
return
|
|
58
|
-
});
|
|
57
|
+
return [item === null || item === void 0 ? void 0 : item.sendId, item === null || item === void 0 ? void 0 : item.sendName].join('/');
|
|
58
|
+
}).join(',');
|
|
59
59
|
});
|
|
60
60
|
_defineProperty(this, "editRender", function () {
|
|
61
61
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
@@ -16,12 +16,12 @@ declare class JstSupply implements ComponentInterface {
|
|
|
16
16
|
render: (value: any) => JSX.Element;
|
|
17
17
|
renderClient: (record: Record) => JSX.Element | null;
|
|
18
18
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
19
|
-
renderExport: (value: any, record:
|
|
19
|
+
renderExport: (value: any, record: any) => any;
|
|
20
20
|
editRender: () => JSX.Element;
|
|
21
21
|
getColumns: () => this & {
|
|
22
22
|
dataIndex: string;
|
|
23
23
|
title: string;
|
|
24
|
-
renderExport: (value: any, record:
|
|
24
|
+
renderExport: (value: any, record: any) => any;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export default JstSupply;
|
|
@@ -54,8 +54,8 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
54
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
55
55
|
var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")]) || [];
|
|
56
56
|
return list.map(function (item) {
|
|
57
|
-
return
|
|
58
|
-
});
|
|
57
|
+
return [item === null || item === void 0 ? void 0 : item.supplyId, item === null || item === void 0 ? void 0 : item.supplyName].join('/');
|
|
58
|
+
}).join(',');
|
|
59
59
|
});
|
|
60
60
|
_defineProperty(this, "editRender", function () {
|
|
61
61
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
@@ -29,7 +29,8 @@ declare class OrdinaryHeader implements ComponentInterface {
|
|
|
29
29
|
canFilter: boolean;
|
|
30
30
|
canGroup: boolean;
|
|
31
31
|
type: string;
|
|
32
|
-
render: (value:
|
|
32
|
+
render: (value: any) => any;
|
|
33
|
+
renderPc: (value: any) => any;
|
|
33
34
|
componentType: () => JSX.Element;
|
|
34
35
|
showContains: boolean;
|
|
35
36
|
renderExport: (value: any) => any;
|
|
@@ -69,7 +69,8 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
69
69
|
canFilter: _this.canFilter,
|
|
70
70
|
canGroup: _this.canGroup,
|
|
71
71
|
type: _this.type,
|
|
72
|
-
render: _this.
|
|
72
|
+
render: _this.renderPc,
|
|
73
|
+
renderPc: _this.renderPc,
|
|
73
74
|
componentType: _this.editRender,
|
|
74
75
|
showContains: _this.showContains,
|
|
75
76
|
renderExport: _this.renderExport,
|
|
@@ -29,7 +29,8 @@ declare class OrdinaryMoney implements ComponentInterface {
|
|
|
29
29
|
canFilter: boolean;
|
|
30
30
|
canGroup: boolean;
|
|
31
31
|
type: string;
|
|
32
|
-
render: (value:
|
|
32
|
+
render: (value: any) => any;
|
|
33
|
+
renderPc: (value: any) => any;
|
|
33
34
|
componentType: () => JSX.Element;
|
|
34
35
|
showContains: boolean;
|
|
35
36
|
renderExport: (value: any) => any;
|
|
@@ -62,7 +62,8 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
62
62
|
canFilter: _this.canFilter,
|
|
63
63
|
canGroup: _this.canGroup,
|
|
64
64
|
type: _this.type,
|
|
65
|
-
render: _this.
|
|
65
|
+
render: _this.renderPc,
|
|
66
|
+
renderPc: _this.renderPc,
|
|
66
67
|
componentType: _this.editRender,
|
|
67
68
|
showContains: _this.showContains,
|
|
68
69
|
renderExport: _this.renderExport,
|
|
@@ -29,7 +29,8 @@ declare class OrdinarySerial implements ComponentInterface {
|
|
|
29
29
|
canFilter: boolean;
|
|
30
30
|
canGroup: boolean;
|
|
31
31
|
type: string;
|
|
32
|
-
render: (value:
|
|
32
|
+
render: (value: any) => any;
|
|
33
|
+
renderPc: (value: any) => any;
|
|
33
34
|
componentType: () => JSX.Element;
|
|
34
35
|
showContains: boolean;
|
|
35
36
|
renderExport: (value: any) => any;
|
|
@@ -62,7 +62,8 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
62
62
|
canFilter: _this.canFilter,
|
|
63
63
|
canGroup: _this.canGroup,
|
|
64
64
|
type: _this.type,
|
|
65
|
-
render: _this.
|
|
65
|
+
render: _this.renderPc,
|
|
66
|
+
renderPc: _this.renderPc,
|
|
66
67
|
componentType: _this.editRender,
|
|
67
68
|
showContains: _this.showContains,
|
|
68
69
|
renderExport: _this.renderExport,
|
|
@@ -31,6 +31,7 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
31
31
|
type: string;
|
|
32
32
|
width: number;
|
|
33
33
|
render: (value: any, record: Record) => JSX.Element;
|
|
34
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
34
35
|
componentType: () => JSX.Element;
|
|
35
36
|
showContains: boolean;
|
|
36
37
|
renderExport: (value: any, record: Record) => any;
|
|
@@ -72,7 +72,8 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
72
72
|
canGroup: _this.canGroup,
|
|
73
73
|
type: _this.type,
|
|
74
74
|
width: _this.width,
|
|
75
|
-
render: _this.
|
|
75
|
+
render: _this.renderPc,
|
|
76
|
+
renderPc: _this.renderPc,
|
|
76
77
|
componentType: _this.editRender,
|
|
77
78
|
showContains: _this.showContains,
|
|
78
79
|
renderExport: _this.renderExport
|
|
@@ -30,7 +30,8 @@ declare class AlipayNo implements ComponentInterface {
|
|
|
30
30
|
canFilter: boolean;
|
|
31
31
|
canGroup: boolean;
|
|
32
32
|
type: string;
|
|
33
|
-
render: (value:
|
|
33
|
+
render: (value: any, record: any) => JSX.Element;
|
|
34
|
+
renderPc: (value: any, record: any) => JSX.Element;
|
|
34
35
|
componentType: () => JSX.Element;
|
|
35
36
|
showContains: boolean;
|
|
36
37
|
};
|
|
@@ -72,7 +72,8 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
72
72
|
canFilter: _this.canFilter,
|
|
73
73
|
canGroup: _this.canGroup,
|
|
74
74
|
type: _this.type,
|
|
75
|
-
render: _this.
|
|
75
|
+
render: _this.renderPc,
|
|
76
|
+
renderPc: _this.renderPc,
|
|
76
77
|
componentType: _this.editRender,
|
|
77
78
|
showContains: _this.showContains
|
|
78
79
|
};
|
|
@@ -29,7 +29,8 @@ declare class AlipayTime implements ComponentInterface {
|
|
|
29
29
|
canFilter: boolean;
|
|
30
30
|
canGroup: boolean;
|
|
31
31
|
type: string;
|
|
32
|
-
render: (value:
|
|
32
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
33
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
33
34
|
componentType: () => JSX.Element;
|
|
34
35
|
showContains: boolean;
|
|
35
36
|
renderExport: (value: string) => string | null;
|
|
@@ -70,7 +70,8 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
70
70
|
canFilter: _this.canFilter,
|
|
71
71
|
canGroup: _this.canGroup,
|
|
72
72
|
type: _this.type,
|
|
73
|
-
render: _this.
|
|
73
|
+
render: _this.renderPc,
|
|
74
|
+
renderPc: _this.renderPc,
|
|
74
75
|
componentType: _this.editRender,
|
|
75
76
|
showContains: _this.showContains,
|
|
76
77
|
renderExport: _this.renderExport,
|
|
@@ -11,6 +11,7 @@ declare class BuyerNick implements ComponentInterface {
|
|
|
11
11
|
dataType: DataType;
|
|
12
12
|
showContains: boolean;
|
|
13
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
|
+
effects: ComponentInterface["effects"];
|
|
14
15
|
align: ALignType;
|
|
15
16
|
width: number;
|
|
16
17
|
constructor(options: PickOption);
|
|
@@ -29,7 +30,8 @@ declare class BuyerNick implements ComponentInterface {
|
|
|
29
30
|
canFilter: boolean;
|
|
30
31
|
canGroup: boolean;
|
|
31
32
|
type: string;
|
|
32
|
-
render: (value:
|
|
33
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
34
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
33
35
|
componentType: () => JSX.Element;
|
|
34
36
|
showContains: boolean;
|
|
35
37
|
renderExport: (value: string) => string;
|
|
@@ -15,6 +15,7 @@ import React from 'react';
|
|
|
15
15
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
16
16
|
import GetFormItem from "../GetFormItem";
|
|
17
17
|
import ItemView from "../../commonComponents/ItemView";
|
|
18
|
+
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
18
19
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
19
20
|
var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
20
21
|
var _this = this;
|
|
@@ -29,6 +30,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
29
30
|
_defineProperty(this, "dataType", void 0);
|
|
30
31
|
_defineProperty(this, "showContains", void 0);
|
|
31
32
|
_defineProperty(this, "componentConfig", void 0);
|
|
33
|
+
_defineProperty(this, "effects", void 0);
|
|
32
34
|
_defineProperty(this, "align", void 0);
|
|
33
35
|
_defineProperty(this, "width", void 0);
|
|
34
36
|
_defineProperty(this, "render", function (value) {
|
|
@@ -52,6 +54,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
52
54
|
});
|
|
53
55
|
});
|
|
54
56
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
57
|
+
var _this$effects;
|
|
55
58
|
if (value === undefined) {
|
|
56
59
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
57
60
|
}
|
|
@@ -68,7 +71,8 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
68
71
|
return /*#__PURE__*/React.createElement("span", null, value && /*#__PURE__*/React.createElement(PlatBuyer, {
|
|
69
72
|
shopId: record === null || record === void 0 ? void 0 : record.shopId,
|
|
70
73
|
buyerNick: value,
|
|
71
|
-
buyerOpenUid: buyerOpenUid
|
|
74
|
+
buyerOpenUid: buyerOpenUid,
|
|
75
|
+
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
|
|
72
76
|
}));
|
|
73
77
|
});
|
|
74
78
|
_defineProperty(this, "renderExport", function (value) {
|
|
@@ -85,7 +89,8 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
85
89
|
canFilter: _this.canFilter,
|
|
86
90
|
canGroup: _this.canGroup,
|
|
87
91
|
type: _this.type,
|
|
88
|
-
render: _this.
|
|
92
|
+
render: _this.renderPc,
|
|
93
|
+
renderPc: _this.renderPc,
|
|
89
94
|
componentType: _this.editRender,
|
|
90
95
|
showContains: _this.showContains,
|
|
91
96
|
renderExport: _this.renderExport
|
|
@@ -100,6 +105,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
100
105
|
this.showContains = false;
|
|
101
106
|
this.dataType = 'string';
|
|
102
107
|
this.componentConfig = options.componentConfig;
|
|
108
|
+
this.effects = options.effects;
|
|
103
109
|
this.rules = [];
|
|
104
110
|
this.align = 'left';
|
|
105
111
|
this.width = 200;
|
|
@@ -29,7 +29,8 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
29
29
|
canFilter: boolean;
|
|
30
30
|
canGroup: boolean;
|
|
31
31
|
type: string;
|
|
32
|
-
render: (value:
|
|
32
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
33
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
33
34
|
componentType: () => JSX.Element;
|
|
34
35
|
showContains: boolean;
|
|
35
36
|
renderExport: (value: string) => string;
|
|
@@ -62,7 +62,8 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
62
62
|
canFilter: _this.canFilter,
|
|
63
63
|
canGroup: _this.canGroup,
|
|
64
64
|
type: _this.type,
|
|
65
|
-
render: _this.
|
|
65
|
+
render: _this.renderPc,
|
|
66
|
+
renderPc: _this.renderPc,
|
|
66
67
|
componentType: _this.editRender,
|
|
67
68
|
showContains: _this.showContains,
|
|
68
69
|
renderExport: _this.renderExport
|
|
@@ -32,7 +32,8 @@ declare class PaymentStatus implements ComponentInterface {
|
|
|
32
32
|
canGroup: boolean;
|
|
33
33
|
width: number;
|
|
34
34
|
type: string;
|
|
35
|
-
render: (value:
|
|
35
|
+
render: (value: any, record: any) => any;
|
|
36
|
+
renderPc: (value: any, record: any) => any;
|
|
36
37
|
componentType: (value: any) => null;
|
|
37
38
|
showContains: boolean;
|
|
38
39
|
renderExport: (value: any) => any;
|
|
@@ -54,7 +54,8 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
54
54
|
canGroup: _this.canGroup,
|
|
55
55
|
width: _this.width,
|
|
56
56
|
type: _this.type,
|
|
57
|
-
render: _this.
|
|
57
|
+
render: _this.renderPc,
|
|
58
|
+
renderPc: _this.renderPc,
|
|
58
59
|
componentType: _this.editRender,
|
|
59
60
|
showContains: _this.showContains,
|
|
60
61
|
renderExport: _this.renderExport,
|
|
@@ -29,7 +29,8 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
29
29
|
canGroup: boolean;
|
|
30
30
|
width: number;
|
|
31
31
|
type: string;
|
|
32
|
-
render: (value:
|
|
32
|
+
render: (value: any, record: any) => JSX.Element;
|
|
33
|
+
renderPc: (value: any, record: any) => JSX.Element;
|
|
33
34
|
componentType: () => JSX.Element;
|
|
34
35
|
showContains: boolean;
|
|
35
36
|
renderExport: (value: string) => string;
|
|
@@ -62,7 +62,8 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
62
62
|
canGroup: _this.canGroup,
|
|
63
63
|
width: _this.width,
|
|
64
64
|
type: _this.type,
|
|
65
|
-
render: _this.
|
|
65
|
+
render: _this.renderPc,
|
|
66
|
+
renderPc: _this.renderPc,
|
|
66
67
|
componentType: _this.editRender,
|
|
67
68
|
showContains: _this.showContains,
|
|
68
69
|
renderExport: _this.renderExport
|
|
@@ -41,8 +41,9 @@ declare class Logistics implements ComponentInterface {
|
|
|
41
41
|
canHidden: boolean;
|
|
42
42
|
canFilter: boolean;
|
|
43
43
|
canGroup: boolean;
|
|
44
|
+
width: number;
|
|
44
45
|
type: string;
|
|
45
|
-
render: (value:
|
|
46
|
+
render: (value: any, record: any) => any;
|
|
46
47
|
componentType: (value: any) => null;
|
|
47
48
|
showContains: boolean;
|
|
48
49
|
renderExport: (value: any) => any;
|
|
@@ -59,6 +60,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
59
60
|
title: string;
|
|
60
61
|
align: import("../../type").ALignType;
|
|
61
62
|
dataIndex: string;
|
|
63
|
+
width: number;
|
|
62
64
|
dataType: DataType;
|
|
63
65
|
canHidden: boolean;
|
|
64
66
|
canFilter: boolean;
|
|
@@ -67,19 +69,49 @@ declare class Logistics implements ComponentInterface {
|
|
|
67
69
|
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
68
70
|
componentType: () => JSX.Element;
|
|
69
71
|
showContains: boolean;
|
|
72
|
+
renderExport: (value: string) => string;
|
|
73
|
+
} | {
|
|
74
|
+
title: string;
|
|
75
|
+
align: import("../../type").ALignType;
|
|
76
|
+
dataIndex: string;
|
|
77
|
+
dataType: DataType;
|
|
78
|
+
canHidden: boolean;
|
|
79
|
+
canFilter: boolean;
|
|
80
|
+
canGroup: boolean;
|
|
81
|
+
type: string;
|
|
82
|
+
width: number;
|
|
83
|
+
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
84
|
+
componentType: () => JSX.Element;
|
|
85
|
+
showContains: boolean;
|
|
70
86
|
renderExport: (value: any, record: import("../../type").Record) => any;
|
|
71
87
|
} | {
|
|
72
88
|
title: string;
|
|
73
89
|
align: import("../../type").ALignType;
|
|
74
90
|
dataIndex: string;
|
|
91
|
+
width: number;
|
|
75
92
|
dataType: DataType;
|
|
76
93
|
canHidden: boolean;
|
|
77
94
|
canFilter: boolean;
|
|
78
95
|
canGroup: boolean;
|
|
79
96
|
type: string;
|
|
80
|
-
render: (value:
|
|
97
|
+
render: (value: any, record: any) => JSX.Element;
|
|
98
|
+
componentType: () => JSX.Element;
|
|
99
|
+
showContains: boolean;
|
|
100
|
+
} | {
|
|
101
|
+
title: string;
|
|
102
|
+
align: import("../../type").ALignType;
|
|
103
|
+
dataIndex: string;
|
|
104
|
+
width: number;
|
|
105
|
+
dataType: DataType;
|
|
106
|
+
canHidden: boolean;
|
|
107
|
+
canFilter: boolean;
|
|
108
|
+
canGroup: boolean;
|
|
109
|
+
type: string;
|
|
110
|
+
render: (value: any, record: import("../../type").Record) => JSX.Element;
|
|
81
111
|
componentType: () => JSX.Element;
|
|
82
112
|
showContains: boolean;
|
|
113
|
+
renderExport: (value: string) => string | null;
|
|
114
|
+
widget: null;
|
|
83
115
|
})[];
|
|
84
116
|
canHidden: boolean;
|
|
85
117
|
dataIndex: string;
|
|
@@ -41,7 +41,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
41
41
|
var _this$effects;
|
|
42
42
|
return _this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleOpenRepeatList(record === null || record === void 0 ? void 0 : record.repeatConfig);
|
|
43
43
|
}
|
|
44
|
-
}), (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--', (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) && /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
44
|
+
}), (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--', (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) && /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
45
45
|
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
|
|
46
46
|
onCopy: function onCopy() {
|
|
47
47
|
message.success('复制成功');
|
|
@@ -51,7 +51,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
51
51
|
paddingLeft: '4px',
|
|
52
52
|
cursor: 'pointer'
|
|
53
53
|
}
|
|
54
|
-
}, /*#__PURE__*/React.createElement(CopyOutlined, null))));
|
|
54
|
+
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
55
55
|
});
|
|
56
56
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
57
57
|
var _record2;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare interface ResultColumnsInterface {
|
|
|
17
17
|
editable?: boolean;
|
|
18
18
|
width?: number;
|
|
19
19
|
render?: (v: any, r: any) => JSX.Element | null;
|
|
20
|
+
renderPc?: (v: any, r: any) => JSX.Element | null;
|
|
20
21
|
componentType?: (v: any) => JSX.Element | null;
|
|
21
22
|
[prop: string]: any;
|
|
22
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"father": "^4.1.7"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "^0.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "^0.4.0",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.4.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"gitHooks": {
|
|
36
36
|
"pre-commit": "lint-staged"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "e3b9404a5ea8a0021630fcbee65b0ae13a4fef52"
|
|
39
39
|
}
|