@kmkf-fe-packages/services-components 0.6.3-alpha.4 → 0.6.3-alpha.6
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/Cascader/index.d.ts +2 -2
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CommonDataTime/index.d.ts +1 -1
- package/dist/esm/components/DataTime/index.d.ts +1 -1
- package/dist/esm/components/ErpTradeId/index.d.ts +1 -1
- package/dist/esm/components/Express/index.d.ts +1 -1
- package/dist/esm/components/ExpressCode/index.d.ts +1 -1
- package/dist/esm/components/JstLogistics/index.d.ts +1 -1
- package/dist/esm/components/Logistics/index.d.ts +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +5 -5
- package/dist/esm/components/LogisticsInterception/index.js +10 -7
- package/dist/esm/components/Payment/AlipayTime.d.ts +1 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +1 -1
- package/dist/esm/components/Payment/index.d.ts +2 -2
- package/dist/esm/components/PlatForm/index.d.ts +2 -5
- package/dist/esm/components/Radio/index.js +3 -7
- package/dist/esm/components/Rate/index.js +3 -5
- package/dist/esm/components/Remark/index.js +2 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +1 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +1 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +1 -1
- package/dist/esm/components/TradeId/index.d.ts +1 -1
- package/dist/esm/components/WorkOrderId/index.js +7 -4
- package/package.json +4 -4
|
@@ -14,11 +14,11 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
14
14
|
* @param value
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
getValue: (value: any) =>
|
|
17
|
+
getValue: (value: any) => any;
|
|
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: Record) =>
|
|
21
|
+
renderExport: (value: any, record: Record) => any;
|
|
22
22
|
editRender: (value: any) => JSX.Element;
|
|
23
23
|
filterConfig: (item: ColumnConfig) => {
|
|
24
24
|
id: string;
|
|
@@ -97,7 +97,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
97
97
|
validator: function validator(_, value) {
|
|
98
98
|
var _value$value4;
|
|
99
99
|
if (!(value !== null && value !== void 0 && (_value$value4 = value.value) !== null && _value$value4 !== void 0 && _value$value4.length)) {
|
|
100
|
-
return Promise.reject(new Error(
|
|
100
|
+
return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
|
|
101
101
|
}
|
|
102
102
|
return Promise.resolve();
|
|
103
103
|
}
|
|
@@ -22,7 +22,7 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
22
22
|
id: string;
|
|
23
23
|
name: string;
|
|
24
24
|
filterComponentType: "Date";
|
|
25
|
-
filterFn: (value: string[]) => (i: Record) =>
|
|
25
|
+
filterFn: (value: string[]) => (i: Record) => any;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
export default CommonDataTime;
|
|
@@ -22,7 +22,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
22
22
|
name: string;
|
|
23
23
|
filterComponentType: "Date";
|
|
24
24
|
options: any[];
|
|
25
|
-
filterFn: (value: string[]) => (i: Record) =>
|
|
25
|
+
filterFn: (value: string[]) => (i: Record) => any;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
export default BasicDataTime;
|
|
@@ -18,7 +18,7 @@ declare class ErpTradeId implements ComponentInterface {
|
|
|
18
18
|
id: string;
|
|
19
19
|
name: string;
|
|
20
20
|
filterComponentType: "Input";
|
|
21
|
-
filterFn: (value: string) => (i: Record) =>
|
|
21
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
export default ErpTradeId;
|
|
@@ -16,7 +16,7 @@ declare class Express implements ComponentInterface {
|
|
|
16
16
|
render: (value: string) => JSX.Element;
|
|
17
17
|
renderClient: (record: any) => JSX.Element | null;
|
|
18
18
|
renderPc: (value: string, record: Record) => JSX.Element;
|
|
19
|
-
renderExport: (value: string, record: Record) =>
|
|
19
|
+
renderExport: (value: string, record: Record) => any;
|
|
20
20
|
editRender: () => JSX.Element;
|
|
21
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
22
|
id: string;
|
|
@@ -20,7 +20,7 @@ declare class ExpressCode implements ComponentInterface {
|
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
22
|
filterComponentType: "Input";
|
|
23
|
-
filterFn: (value: string) => (i: Record) =>
|
|
23
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export default ExpressCode;
|
|
@@ -21,7 +21,7 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
23
23
|
filterComponentType: "Input";
|
|
24
|
-
filterFn: (value: string) => (i: Record) =>
|
|
24
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
25
25
|
options?: undefined;
|
|
26
26
|
} | {
|
|
27
27
|
id: string;
|
|
@@ -30,7 +30,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
30
30
|
id: string;
|
|
31
31
|
name: string;
|
|
32
32
|
filterComponentType: "Input";
|
|
33
|
-
filterFn: (value: string) => (i: Record) =>
|
|
33
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
34
34
|
})[];
|
|
35
35
|
}
|
|
36
36
|
export default Logistics;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ColumnConfig } from
|
|
3
|
-
import { ExpressData } from
|
|
4
|
-
import InterceptAddress from
|
|
5
|
-
import Express from
|
|
6
|
-
import ExpressCode from
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig } from "../../type";
|
|
3
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
+
import InterceptAddress from "./InterceptAddress";
|
|
5
|
+
import Express from "../Express";
|
|
6
|
+
import ExpressCode from "../ExpressCode";
|
|
7
7
|
declare class Logistics implements ComponentInterface {
|
|
8
8
|
name: string;
|
|
9
9
|
id: string;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
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
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
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); }
|
|
4
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); } }
|
|
5
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; }
|
|
6
7
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7
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; }
|
|
8
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
9
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); }
|
|
10
|
-
import React from
|
|
11
|
-
import { LogisticsInterception } from
|
|
12
|
-
import { ExpressData } from
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { LogisticsInterception } from "@kmkf-fe-packages/basic-components";
|
|
13
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
14
|
import GetFormItem from "../GetFormItem";
|
|
14
15
|
import InterceptAddress from "./InterceptAddress";
|
|
15
16
|
import Express from "../Express";
|
|
@@ -47,7 +48,9 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
47
48
|
name: _this.id,
|
|
48
49
|
rules: _this.rules,
|
|
49
50
|
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,
|
|
50
|
-
component: /*#__PURE__*/React.createElement(LogisticsInterception, _this.componentConfig
|
|
51
|
+
component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({}, _this.componentConfig, {
|
|
52
|
+
logisticsOptions: _this.expressDateInstance.getExpressData()
|
|
53
|
+
}))
|
|
51
54
|
});
|
|
52
55
|
});
|
|
53
56
|
_defineProperty(this, "filterConfig", function (item) {
|
|
@@ -73,15 +76,15 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
73
76
|
validator: function validator(_, value) {
|
|
74
77
|
var _this$componentConfig3, _this$componentConfig4, _value$interceptAddre;
|
|
75
78
|
if ((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required && (!(value !== null && value !== void 0 && value.interceptCompany) || !value.interceptCode)) {
|
|
76
|
-
return Promise.reject(new Error(
|
|
79
|
+
return Promise.reject(new Error("请填写物流信息"));
|
|
77
80
|
}
|
|
78
81
|
if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required && !(value !== null && value !== void 0 && value.interceptType)) {
|
|
79
|
-
return Promise.reject(new Error(
|
|
82
|
+
return Promise.reject(new Error("请选择拦截类型"));
|
|
80
83
|
}
|
|
81
84
|
var showAddress = _this.expressDateInstance.isShowNewAddress(value === null || value === void 0 ? void 0 : value.interceptCompany, value === null || value === void 0 ? void 0 : value.interceptType);
|
|
82
85
|
console.log(showAddress);
|
|
83
86
|
if (showAddress && (!(value !== null && value !== void 0 && (_value$interceptAddre = value.interceptAddress) !== null && _value$interceptAddre !== void 0 && _value$interceptAddre.length) || !(value !== null && value !== void 0 && value.interceptDetail) || !(value !== null && value !== void 0 && value.interceptReceiverName) || !(value !== null && value !== void 0 && value.interceptReceiverMobile))) {
|
|
84
|
-
return Promise.reject(new Error(
|
|
87
|
+
return Promise.reject(new Error("请填写新派送地"));
|
|
85
88
|
}
|
|
86
89
|
return Promise.resolve();
|
|
87
90
|
}
|
|
@@ -20,7 +20,7 @@ declare class AlipayTime implements ComponentInterface {
|
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
22
|
filterComponentType: "Input";
|
|
23
|
-
filterFn: (value: string[]) => (i: Record) =>
|
|
23
|
+
filterFn: (value: string[]) => (i: Record) => any;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export default AlipayTime;
|
|
@@ -20,7 +20,7 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
22
|
filterComponentType: "Input";
|
|
23
|
-
filterFn: (value: string) => (i: Record) =>
|
|
23
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export default PaymentTid;
|
|
@@ -32,7 +32,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
32
32
|
id: string;
|
|
33
33
|
name: string;
|
|
34
34
|
filterComponentType: "Input";
|
|
35
|
-
filterFn: (value: string) => (i: import("../../type").Record) =>
|
|
35
|
+
filterFn: (value: string) => (i: import("../../type").Record) => any;
|
|
36
36
|
} | {
|
|
37
37
|
id: string;
|
|
38
38
|
name: string;
|
|
@@ -46,7 +46,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
46
46
|
id: string;
|
|
47
47
|
name: string;
|
|
48
48
|
filterComponentType: "Input";
|
|
49
|
-
filterFn: (value: string[]) => (i: import("../../type").Record) =>
|
|
49
|
+
filterFn: (value: string[]) => (i: import("../../type").Record) => any;
|
|
50
50
|
})[];
|
|
51
51
|
}
|
|
52
52
|
export default Logistics;
|
|
@@ -11,7 +11,7 @@ declare class PlatForm implements ComponentInterface {
|
|
|
11
11
|
platInstance: PlatData;
|
|
12
12
|
constructor();
|
|
13
13
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
14
|
-
renderExport: (value: any, record: Record) =>
|
|
14
|
+
renderExport: (value: any, record: Record) => any;
|
|
15
15
|
render: () => null;
|
|
16
16
|
renderClient: () => null;
|
|
17
17
|
editRender: () => null;
|
|
@@ -20,10 +20,7 @@ declare class PlatForm implements ComponentInterface {
|
|
|
20
20
|
name: string;
|
|
21
21
|
filterComponentType: "MultipleSelect";
|
|
22
22
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
23
|
-
options:
|
|
24
|
-
label: string;
|
|
25
|
-
value: string;
|
|
26
|
-
}[];
|
|
23
|
+
options: any;
|
|
27
24
|
};
|
|
28
25
|
}
|
|
29
26
|
export default PlatForm;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
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 _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); }
|
|
3
2
|
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); } }
|
|
4
3
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -7,7 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
7
|
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
8
|
import React from 'react';
|
|
10
|
-
import {
|
|
9
|
+
import { ApaasRadio } from '@kmkf-fe-packages/basic-components';
|
|
11
10
|
import GetFormItem from "../GetFormItem";
|
|
12
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
12
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
@@ -53,10 +52,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
53
52
|
name: _this.id,
|
|
54
53
|
rules: _this.rules,
|
|
55
54
|
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,
|
|
56
|
-
component: /*#__PURE__*/React.createElement(
|
|
57
|
-
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
58
|
-
showSearch: true
|
|
59
|
-
}))
|
|
55
|
+
component: /*#__PURE__*/React.createElement(ApaasRadio, _this.componentConfig)
|
|
60
56
|
});
|
|
61
57
|
});
|
|
62
58
|
_defineProperty(this, "filterConfig", function (item) {
|
|
@@ -87,7 +83,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
87
83
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
88
84
|
validator: function validator(_, value) {
|
|
89
85
|
if (!(value !== null && value !== void 0 && value.value)) {
|
|
90
|
-
return Promise.reject(new Error(
|
|
86
|
+
return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
|
|
91
87
|
}
|
|
92
88
|
return Promise.resolve();
|
|
93
89
|
}
|
|
@@ -14,7 +14,7 @@ import ItemView from "../../commonComponents/ItemView";
|
|
|
14
14
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
16
16
|
var _this = this,
|
|
17
|
-
_this$
|
|
17
|
+
_this$componentConfig;
|
|
18
18
|
_classCallCheck(this, BasicRate);
|
|
19
19
|
_defineProperty(this, "name", void 0);
|
|
20
20
|
_defineProperty(this, "id", void 0);
|
|
@@ -93,12 +93,11 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
93
93
|
return textArr === null || textArr === void 0 ? void 0 : textArr.join(';');
|
|
94
94
|
});
|
|
95
95
|
_defineProperty(this, "editRender", function () {
|
|
96
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
97
96
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
98
97
|
title: _this.name,
|
|
99
98
|
name: _this.id,
|
|
100
99
|
rules: _this.rules,
|
|
101
|
-
required:
|
|
100
|
+
required: false,
|
|
102
101
|
component: /*#__PURE__*/React.createElement(ApaasRate, _extends({}, _this.componentConfig, {
|
|
103
102
|
allowClear: false,
|
|
104
103
|
style: {
|
|
@@ -119,8 +118,7 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
119
118
|
this.componentConfig = options.componentConfig;
|
|
120
119
|
this.isCombinationComponent = false;
|
|
121
120
|
this.children = [];
|
|
122
|
-
this.rules = (_this$
|
|
123
|
-
required: true,
|
|
121
|
+
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
124
122
|
validator: function validator(_, value) {
|
|
125
123
|
if (value && !value.length) {
|
|
126
124
|
return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
|
|
@@ -55,8 +55,8 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
55
55
|
style: {
|
|
56
56
|
display: 'inline-block'
|
|
57
57
|
}
|
|
58
|
-
}, get(record, "".concat(_this.id, "_flag"))
|
|
59
|
-
className: "dz-iconfont dz-beizhu_qizhi f-lt ft_12 mr_5 ".concat(_this.flagColors[get(record, "".concat(_this.id, "_flag"))])
|
|
58
|
+
}, !isNull(get(record, "".concat(_this.id, "_flag"))) ? /*#__PURE__*/React.createElement("i", {
|
|
59
|
+
className: "dz-iconfont dz-beizhu_qizhi f-lt ft_12 mr_5 ".concat(_this.flagColors[Number(get(record, "".concat(_this.id, "_flag")))])
|
|
60
60
|
}) : null, /*#__PURE__*/React.createElement("span", null, get(record, "".concat(_this.id, "_remark"))));
|
|
61
61
|
});
|
|
62
62
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
@@ -35,7 +35,7 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
35
35
|
id: string;
|
|
36
36
|
name: string;
|
|
37
37
|
filterComponentType: "Input";
|
|
38
|
-
filterFn: (value: string) => (i: import("../../type").Record) =>
|
|
38
|
+
filterFn: (value: string) => (i: import("../../type").Record) => any;
|
|
39
39
|
})[];
|
|
40
40
|
}
|
|
41
41
|
export default ReturnLogistics;
|
|
@@ -19,7 +19,7 @@ declare class SystemOrderNo implements ComponentInterface {
|
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
filterComponentType: "Input";
|
|
22
|
-
filterFn: (value: string) => (i: Record) =>
|
|
22
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
export default SystemOrderNo;
|
|
@@ -25,7 +25,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
25
25
|
id: string;
|
|
26
26
|
name: string;
|
|
27
27
|
filterComponentType: "Date";
|
|
28
|
-
filterFn: (value: string[]) => (i: Record) =>
|
|
28
|
+
filterFn: (value: string[]) => (i: Record) => any;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
export default BasicDataTime;
|
|
@@ -25,7 +25,7 @@ declare class ETradeId implements ComponentInterface {
|
|
|
25
25
|
id: string;
|
|
26
26
|
name: string;
|
|
27
27
|
filterComponentType: "Input";
|
|
28
|
-
filterFn: (value: string) => (i: Record) =>
|
|
28
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
export default ETradeId;
|
|
@@ -30,7 +30,10 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
30
30
|
message.success('复制成功');
|
|
31
31
|
});
|
|
32
32
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
33
|
-
var _record$repeatConfig
|
|
33
|
+
var _record$repeatConfig;
|
|
34
|
+
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
35
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
36
|
+
}
|
|
34
37
|
return /*#__PURE__*/React.createElement("span", null, (record === null || record === void 0 ? void 0 : (_record$repeatConfig = record.repeatConfig) === null || _record$repeatConfig === void 0 ? void 0 : _record$repeatConfig.show) && /*#__PURE__*/React.createElement("img", {
|
|
35
38
|
src: repeatPng,
|
|
36
39
|
style: {
|
|
@@ -41,7 +44,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
41
44
|
var _this$effects, _this$effects2;
|
|
42
45
|
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleOpenRepeatList) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleOpenRepeatList(record === null || record === void 0 ? void 0 : record.repeatConfig));
|
|
43
46
|
}
|
|
44
|
-
}),
|
|
47
|
+
}), /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
|
|
45
48
|
onClick: function onClick() {
|
|
46
49
|
return _this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
47
50
|
}
|
|
@@ -53,8 +56,8 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
53
56
|
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
54
57
|
});
|
|
55
58
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
56
|
-
var
|
|
57
|
-
return (
|
|
59
|
+
var _record;
|
|
60
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
|
|
58
61
|
});
|
|
59
62
|
_defineProperty(this, "render", function () {
|
|
60
63
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.6.3-alpha.
|
|
3
|
+
"version": "0.6.3-alpha.6",
|
|
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.6.3-alpha.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.6.3-alpha.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "^0.6.3-alpha.5",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.6.3-alpha.5"
|
|
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": "0740c35bdd865c2a64b5995f13076b0deed2e40b"
|
|
39
39
|
}
|