@kmkf-fe-packages/services-components 0.26.0-alpha.8 → 0.26.1-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/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +9 -19
- package/dist/esm/components/Common/index.d.ts +1 -0
- package/dist/esm/components/Common/index.js +74 -3
- package/dist/esm/components/CommonInput/index.d.ts +44 -0
- package/dist/esm/components/CommonInput/index.js +146 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.d.ts +31 -0
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +87 -0
- package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.d.ts +46 -0
- package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.js +109 -0
- package/dist/esm/components/LogisticsMoreInterception/InterceptType.d.ts +44 -0
- package/dist/esm/components/LogisticsMoreInterception/InterceptType.js +96 -0
- package/dist/esm/components/LogisticsMoreInterception/columnHeader.d.ts +5 -0
- package/dist/esm/components/LogisticsMoreInterception/columnHeader.js +55 -0
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +69 -0
- package/dist/esm/components/LogisticsMoreInterception/index.js +184 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptCompany.d.ts +39 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptCompany.js +88 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptItem.d.ts +34 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptItem.js +81 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +35 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +82 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.d.ts +34 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.js +81 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
- package/dist/esm/components/Payment/PaymentStatus.js +30 -30
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +33 -0
- package/dist/esm/components/PaymentVoucherCode/index.js +104 -0
- package/dist/esm/constant.js +12 -13
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +15 -8
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/service/api.d.ts +1 -0
- package/dist/esm/service/api.js +8 -0
- package/package.json +4 -4
|
@@ -0,0 +1,88 @@
|
|
|
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 _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); } }
|
|
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; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
|
+
import { SYMBOL } from "../../constant";
|
|
12
|
+
var InterceptionCompany = /*#__PURE__*/_createClass(function InterceptionCompany(options) {
|
|
13
|
+
var _this = this;
|
|
14
|
+
_classCallCheck(this, InterceptionCompany);
|
|
15
|
+
_defineProperty(this, "name", void 0);
|
|
16
|
+
_defineProperty(this, "id", void 0);
|
|
17
|
+
_defineProperty(this, "sortField", void 0);
|
|
18
|
+
_defineProperty(this, "type", void 0);
|
|
19
|
+
_defineProperty(this, "rules", void 0);
|
|
20
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
+
_defineProperty(this, "align", void 0);
|
|
22
|
+
_defineProperty(this, "expressDateInstance", void 0);
|
|
23
|
+
_defineProperty(this, "width", void 0);
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "formField", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
|
+
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
|
+
_defineProperty(this, "options", void 0);
|
|
30
|
+
_defineProperty(this, "renderCompany", function (record) {
|
|
31
|
+
var list = record[_this.id] || [];
|
|
32
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, list.map(function (item, index) {
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), _this.expressDateInstance.getExpressNameByCode(item) || item);
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "renderClient", function () {
|
|
37
|
+
return null;
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
|
+
if (isNull(record === null || record === void 0 ? void 0 : record[_this.id])) {
|
|
41
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
42
|
+
}
|
|
43
|
+
return _this.renderCompany(record);
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "renderLog", function () {
|
|
46
|
+
return null;
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
49
|
+
return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).map(function (t) {
|
|
50
|
+
return _this.expressDateInstance.getExpressNameByCode(t);
|
|
51
|
+
}).join(',');
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
|
+
return _this.getComponentValue(record) || '--';
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "editRender", function () {
|
|
57
|
+
return null;
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
60
|
+
var subKey = item.subKey;
|
|
61
|
+
return {
|
|
62
|
+
searchDefaultConditions: SYMBOL.in,
|
|
63
|
+
type: item.type,
|
|
64
|
+
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
65
|
+
name: "".concat(item.name, "-\u7269\u6D41\u4FE1\u606F"),
|
|
66
|
+
filterComponentType: 'MultipleSelect',
|
|
67
|
+
props: {
|
|
68
|
+
options: _this.expressDateInstance.getExpressData() || []
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
this.name = options.name;
|
|
73
|
+
this.id = options.id;
|
|
74
|
+
this.sortField = options.id;
|
|
75
|
+
this.formField = options.id;
|
|
76
|
+
this.type = options.type;
|
|
77
|
+
this.componentConfig = options.componentConfig;
|
|
78
|
+
this.rules = [];
|
|
79
|
+
this.align = 'left';
|
|
80
|
+
this.expressDateInstance = ExpressData.getInstance();
|
|
81
|
+
this.width = 200;
|
|
82
|
+
this.isCombinationComponent = false;
|
|
83
|
+
this.canSort = false;
|
|
84
|
+
this.children = [];
|
|
85
|
+
this.dataType = 'object';
|
|
86
|
+
this.options = this.expressDateInstance.getExpressData() || [];
|
|
87
|
+
});
|
|
88
|
+
export default InterceptionCompany;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare class InterceptItem implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
align: ALignType;
|
|
11
|
+
width: number;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
constructor(options: PickOption);
|
|
18
|
+
renderItem: (record: any) => React.JSX.Element | "--";
|
|
19
|
+
renderClient: () => null;
|
|
20
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element | "--";
|
|
21
|
+
renderLog: () => null;
|
|
22
|
+
getComponentValue: (r: Record) => any;
|
|
23
|
+
renderExport: (value: string, record: Record) => any;
|
|
24
|
+
editRender: () => null;
|
|
25
|
+
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
searchDefaultConditions: "in";
|
|
27
|
+
type: string;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
filterComponentType: "Input";
|
|
31
|
+
formatFilterValue: (input: string) => string | string[];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export default InterceptItem;
|
|
@@ -0,0 +1,81 @@
|
|
|
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 _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); } }
|
|
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; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { SYMBOL, batchInput } from "../../constant";
|
|
11
|
+
var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, InterceptItem);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "sortField", void 0);
|
|
17
|
+
_defineProperty(this, "type", void 0);
|
|
18
|
+
_defineProperty(this, "rules", void 0);
|
|
19
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
+
_defineProperty(this, "align", void 0);
|
|
21
|
+
_defineProperty(this, "width", void 0);
|
|
22
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "formField", void 0);
|
|
24
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
26
|
+
_defineProperty(this, "dataType", void 0);
|
|
27
|
+
_defineProperty(this, "renderItem", function (record) {
|
|
28
|
+
var list = record[_this.id] || [];
|
|
29
|
+
if (isNull(list)) return '--';
|
|
30
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, list.map(function (item, index) {
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
|
|
32
|
+
}));
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "renderClient", function () {
|
|
35
|
+
return null;
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
38
|
+
return _this.renderItem(record);
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "renderLog", function () {
|
|
41
|
+
return null;
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
+
var _r$_this$id;
|
|
45
|
+
return r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.join(',');
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
48
|
+
var _this$getComponentVal;
|
|
49
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "editRender", function () {
|
|
52
|
+
return null;
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
55
|
+
var subKey = item.subKey;
|
|
56
|
+
return {
|
|
57
|
+
searchDefaultConditions: SYMBOL.in,
|
|
58
|
+
type: item.type,
|
|
59
|
+
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
60
|
+
name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
|
|
61
|
+
filterComponentType: 'Input',
|
|
62
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
63
|
+
return batchInput(input);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
this.name = options.name;
|
|
68
|
+
this.id = options.id;
|
|
69
|
+
this.sortField = options.id;
|
|
70
|
+
this.formField = options.id;
|
|
71
|
+
this.type = options.type;
|
|
72
|
+
this.componentConfig = options.componentConfig;
|
|
73
|
+
this.rules = [];
|
|
74
|
+
this.align = 'left';
|
|
75
|
+
this.width = 200;
|
|
76
|
+
this.isCombinationComponent = false;
|
|
77
|
+
this.canSort = false;
|
|
78
|
+
this.dataType = 'object';
|
|
79
|
+
this.children = [];
|
|
80
|
+
});
|
|
81
|
+
export default InterceptItem;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare class InterceptSenderMobile implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
companyId: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
effects: ComponentInterface['effects'];
|
|
11
|
+
align: ALignType;
|
|
12
|
+
width: number;
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
sortField: string;
|
|
15
|
+
formField: string;
|
|
16
|
+
canSort: boolean;
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
|
+
children: ComponentInterface[];
|
|
19
|
+
constructor(options: PickOption);
|
|
20
|
+
renderMobile: (record: any) => React.JSX.Element;
|
|
21
|
+
getComponentValue: (r: Record) => any;
|
|
22
|
+
renderClient: () => null;
|
|
23
|
+
renderPc: (value: any, record: Record) => React.JSX.Element | null;
|
|
24
|
+
renderLog: () => null;
|
|
25
|
+
renderExport: (value: any, record: Record) => any;
|
|
26
|
+
editRender: () => null;
|
|
27
|
+
filterConfig: (item: ColumnConfig) => {
|
|
28
|
+
searchDefaultConditions: "like";
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
filterComponentType: "Input";
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export default InterceptSenderMobile;
|
|
@@ -0,0 +1,82 @@
|
|
|
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 _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); } }
|
|
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; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { SYMBOL } from "../../constant";
|
|
11
|
+
var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMobile(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, InterceptSenderMobile);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "companyId", void 0);
|
|
17
|
+
_defineProperty(this, "type", void 0);
|
|
18
|
+
_defineProperty(this, "rules", void 0);
|
|
19
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
+
_defineProperty(this, "effects", void 0);
|
|
21
|
+
_defineProperty(this, "align", void 0);
|
|
22
|
+
_defineProperty(this, "width", void 0);
|
|
23
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "sortField", void 0);
|
|
25
|
+
_defineProperty(this, "formField", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "renderMobile", function (record) {
|
|
30
|
+
var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")] || [];
|
|
31
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptList.map(function (item, index) {
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item.interceptSenderMobile);
|
|
33
|
+
}));
|
|
34
|
+
});
|
|
35
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
36
|
+
return ((r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) || []).map(function (t) {
|
|
37
|
+
return t.interceptSenderMobile;
|
|
38
|
+
}).join(',');
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "renderClient", function () {
|
|
41
|
+
return null;
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
44
|
+
var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")];
|
|
45
|
+
return !isNull(logisticsInterceptList) ? _this.renderMobile(record) : null;
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "renderLog", function () {
|
|
48
|
+
return null;
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
|
+
var _this$getComponentVal;
|
|
52
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "editRender", function () {
|
|
55
|
+
return null;
|
|
56
|
+
});
|
|
57
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
58
|
+
return {
|
|
59
|
+
searchDefaultConditions: SYMBOL.like,
|
|
60
|
+
type: item.type,
|
|
61
|
+
id: "".concat(item.id, "_logisticsInterceptList"),
|
|
62
|
+
name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
|
|
63
|
+
filterComponentType: 'Input'
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
this.name = '发件人手机号';
|
|
67
|
+
this.id = "".concat(options.id, "_interceptMobileList");
|
|
68
|
+
this.companyId = "".concat(options.id);
|
|
69
|
+
this.formField = "".concat(options.id);
|
|
70
|
+
this.sortField = "".concat(options.id);
|
|
71
|
+
this.dataType = 'string';
|
|
72
|
+
this.type = options.type;
|
|
73
|
+
this.componentConfig = options.componentConfig;
|
|
74
|
+
this.rules = [];
|
|
75
|
+
this.align = 'left';
|
|
76
|
+
this.width = 200;
|
|
77
|
+
this.isCombinationComponent = false;
|
|
78
|
+
this.canSort = false;
|
|
79
|
+
this.children = [];
|
|
80
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
81
|
+
});
|
|
82
|
+
export default InterceptSenderMobile;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class InterceptSnapshot implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
rules: any[];
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
effects: ComponentInterface["effects"];
|
|
10
|
+
align: ALignType;
|
|
11
|
+
width: number;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
sortField: string;
|
|
14
|
+
formField: string;
|
|
15
|
+
canSort: boolean;
|
|
16
|
+
dataType: ComponentInterface["dataType"];
|
|
17
|
+
children: ComponentInterface[];
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderSnapshot: (record: any) => React.JSX.Element;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderClient: () => null;
|
|
22
|
+
renderPc: (value: any, record: Record) => React.JSX.Element | "--";
|
|
23
|
+
renderLog: () => null;
|
|
24
|
+
renderExport: (value: any, record: Record) => any;
|
|
25
|
+
editRender: () => null;
|
|
26
|
+
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
searchDefaultConditions: "like";
|
|
28
|
+
type: string;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
filterComponentType: "Input";
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export default InterceptSnapshot;
|
|
@@ -0,0 +1,81 @@
|
|
|
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 _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); } }
|
|
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; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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); }
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
+
import { SYMBOL } from "../../constant";
|
|
11
|
+
var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(options) {
|
|
12
|
+
var _this = this;
|
|
13
|
+
_classCallCheck(this, InterceptSnapshot);
|
|
14
|
+
_defineProperty(this, "name", void 0);
|
|
15
|
+
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "type", void 0);
|
|
17
|
+
_defineProperty(this, "rules", void 0);
|
|
18
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
19
|
+
_defineProperty(this, "effects", void 0);
|
|
20
|
+
_defineProperty(this, "align", void 0);
|
|
21
|
+
_defineProperty(this, "width", void 0);
|
|
22
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
24
|
+
_defineProperty(this, "formField", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
26
|
+
_defineProperty(this, "dataType", void 0);
|
|
27
|
+
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "renderSnapshot", function (record) {
|
|
29
|
+
var snapshotList = record[_this.id] || [];
|
|
30
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, snapshotList.map(function (item, index) {
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
|
|
32
|
+
}));
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
35
|
+
var _r$_this$id;
|
|
36
|
+
return r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.join(",");
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "renderClient", function () {
|
|
39
|
+
return null;
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
42
|
+
return !isNull(record[_this.id]) ? _this.renderSnapshot(record) : "--";
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "renderLog", function () {
|
|
45
|
+
return null;
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
48
|
+
var _this$getComponentVal;
|
|
49
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "editRender", function () {
|
|
52
|
+
return null;
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
55
|
+
return {
|
|
56
|
+
searchDefaultConditions: SYMBOL.like,
|
|
57
|
+
type: item.type,
|
|
58
|
+
id: "".concat(item.id, "_logisticsInterceptSnapshotList"),
|
|
59
|
+
name: "".concat(item.name, "-\u5FEB\u7167"),
|
|
60
|
+
filterComponentType: "Input"
|
|
61
|
+
// formatFilterValue: (input: string) => {
|
|
62
|
+
// return batchInput(input);
|
|
63
|
+
// },
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
this.name = "快照";
|
|
67
|
+
this.id = "".concat(options.id, "_logisticsInterceptSnapshotList");
|
|
68
|
+
this.formField = "".concat(options.id, "_logisticsInterceptSnapshotList");
|
|
69
|
+
this.sortField = "".concat(options.id, "_logisticsInterceptSnapshotList");
|
|
70
|
+
this.dataType = "object";
|
|
71
|
+
this.type = options.type;
|
|
72
|
+
this.componentConfig = options.componentConfig;
|
|
73
|
+
this.rules = [];
|
|
74
|
+
this.align = "left";
|
|
75
|
+
this.width = 200;
|
|
76
|
+
this.isCombinationComponent = false;
|
|
77
|
+
this.canSort = false;
|
|
78
|
+
this.children = [];
|
|
79
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
80
|
+
});
|
|
81
|
+
export default InterceptSnapshot;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class PaymentStatus implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -20,8 +20,8 @@ declare class PaymentStatus implements ComponentInterface {
|
|
|
20
20
|
formField: string;
|
|
21
21
|
canSort: boolean;
|
|
22
22
|
children: ComponentInterface[];
|
|
23
|
-
dataType: ComponentInterface[
|
|
24
|
-
options: ComponentInterface[
|
|
23
|
+
dataType: ComponentInterface["dataType"];
|
|
24
|
+
options: ComponentInterface["options"];
|
|
25
25
|
constructor(options: PickOption);
|
|
26
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
27
27
|
renderPc: (value: unknown, record: any) => any;
|
|
@@ -5,9 +5,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
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; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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); }
|
|
8
|
-
import React from
|
|
8
|
+
import React from "react";
|
|
9
9
|
import ItemView from "../../commonComponents/ItemView";
|
|
10
|
-
import { isNull, filterFn as _filterFn } from
|
|
10
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
11
|
import { SYMBOL } from "../../constant";
|
|
12
12
|
var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
13
13
|
var _this = this;
|
|
@@ -37,7 +37,7 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
37
37
|
});
|
|
38
38
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
39
39
|
var _record$_this$id;
|
|
40
|
-
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id :
|
|
40
|
+
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "renderLog", function (r) {
|
|
43
43
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
@@ -47,7 +47,7 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
47
47
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
48
48
|
});
|
|
49
49
|
_defineProperty(this, "renderExport", function (value) {
|
|
50
|
-
return value !== null && value !== void 0 ? value :
|
|
50
|
+
return value !== null && value !== void 0 ? value : "--";
|
|
51
51
|
});
|
|
52
52
|
_defineProperty(this, "editRender", function () {
|
|
53
53
|
return null;
|
|
@@ -58,57 +58,57 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
58
58
|
type: item.type,
|
|
59
59
|
id: "".concat(item.id, "_enterprisePaymentStatus"),
|
|
60
60
|
name: "".concat(item.name, "-\u6253\u6B3E\u72B6\u6001"),
|
|
61
|
-
filterComponentType:
|
|
61
|
+
filterComponentType: "MultipleSelect",
|
|
62
62
|
props: {
|
|
63
63
|
options: _this.paymentStatusOptions
|
|
64
64
|
},
|
|
65
65
|
filterFn: function filterFn(value) {
|
|
66
66
|
return function (i) {
|
|
67
|
-
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
67
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "enterprisePaymentStatus"));
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
});
|
|
72
|
-
this.name =
|
|
72
|
+
this.name = "打款状态";
|
|
73
73
|
this.id = "".concat(options.id, "_enterprisePaymentStatus");
|
|
74
74
|
this.sortField = "".concat(options.id, "_enterprisePaymentStatus");
|
|
75
75
|
this.formField = "".concat(options.id, "_enterprisePaymentStatus");
|
|
76
76
|
this.type = options.type;
|
|
77
77
|
this.componentConfig = options.componentConfig;
|
|
78
78
|
this.rules = [];
|
|
79
|
-
this.align =
|
|
79
|
+
this.align = "left";
|
|
80
80
|
this.width = 200;
|
|
81
|
-
this.dataType =
|
|
81
|
+
this.dataType = "string";
|
|
82
82
|
this.paymentStatus = {
|
|
83
|
-
WAITING_EXAMINE:
|
|
84
|
-
EXAMINED:
|
|
85
|
-
FLAG_PAID:
|
|
86
|
-
ALI_PAY_WAITING:
|
|
87
|
-
ALI_PAY_SUCCESS:
|
|
88
|
-
ALI_PAY_FAIL:
|
|
89
|
-
ALI_PAY_CLOSE:
|
|
83
|
+
WAITING_EXAMINE: "未打款",
|
|
84
|
+
EXAMINED: "审核通过",
|
|
85
|
+
FLAG_PAID: "标记已打款",
|
|
86
|
+
ALI_PAY_WAITING: "支付宝待付款",
|
|
87
|
+
ALI_PAY_SUCCESS: "支付宝打款成功",
|
|
88
|
+
ALI_PAY_FAIL: "支付宝打款失败",
|
|
89
|
+
ALI_PAY_CLOSE: "支付宝打款关闭"
|
|
90
90
|
};
|
|
91
91
|
this.paymentStatusOptions = [{
|
|
92
|
-
label:
|
|
93
|
-
value:
|
|
92
|
+
label: "未打款",
|
|
93
|
+
value: "未打款"
|
|
94
94
|
}, {
|
|
95
|
-
label:
|
|
96
|
-
value:
|
|
95
|
+
label: "审核通过",
|
|
96
|
+
value: "审核通过"
|
|
97
97
|
}, {
|
|
98
|
-
label:
|
|
99
|
-
value:
|
|
98
|
+
label: "标记已打款",
|
|
99
|
+
value: "标记已打款"
|
|
100
100
|
}, {
|
|
101
|
-
label:
|
|
102
|
-
value:
|
|
101
|
+
label: "支付宝待付款",
|
|
102
|
+
value: "支付宝待付款"
|
|
103
103
|
}, {
|
|
104
|
-
label:
|
|
105
|
-
value:
|
|
104
|
+
label: "支付宝打款成功",
|
|
105
|
+
value: "支付宝打款成功"
|
|
106
106
|
}, {
|
|
107
|
-
label:
|
|
108
|
-
value:
|
|
107
|
+
label: "支付宝打款失败",
|
|
108
|
+
value: "支付宝打款失败"
|
|
109
109
|
}, {
|
|
110
|
-
label:
|
|
111
|
-
value:
|
|
110
|
+
label: "支付宝打款关闭",
|
|
111
|
+
value: "支付宝打款关闭"
|
|
112
112
|
}];
|
|
113
113
|
this.options = this.paymentStatusOptions;
|
|
114
114
|
this.isCombinationComponent = false;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class PaymentVoucherCode implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
12
|
+
canSort: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
templateId?: string;
|
|
16
|
+
workOrderUniqueKey?: string;
|
|
17
|
+
effects: ComponentInterface["effects"];
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderPc: (value: any, record: Record) => React.JSX.Element | "--";
|
|
20
|
+
renderLog: (r: Record) => React.JSX.Element | "--" | null;
|
|
21
|
+
getComponentValue: (r: Record) => any;
|
|
22
|
+
renderExport: (value: any, record: Record) => any;
|
|
23
|
+
renderClient: (record: Record) => React.JSX.Element | null;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
25
|
+
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
searchDefaultConditions: "like";
|
|
27
|
+
type: string;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
filterComponentType: "Input";
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export default PaymentVoucherCode;
|