@kmkf-fe-packages/services-components 0.27.0-alpha.0 → 0.27.0-rc.1
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/README.md +1 -1
- package/dist/esm/commonComponents/SelectMark/index.js +6 -2
- 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 +76 -3
- package/dist/esm/components/CommonInput/index.d.ts +34 -0
- package/dist/esm/components/CommonInput/index.js +105 -0
- package/dist/esm/components/CompletedUser/index.js +1 -1
- package/dist/esm/components/FlowMarkSelect/index.js +3 -2
- package/dist/esm/components/FlowStatusSelect/index.js +1 -0
- package/dist/esm/components/FlowTag/index.js +1 -1
- package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +40 -0
- package/dist/esm/components/FlowWorkOrderStatus/index.js +143 -0
- package/dist/esm/components/Handler/index.js +1 -1
- package/dist/esm/components/HandlerDeadLine/index.js +0 -1
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +6 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +21 -3
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +25 -4
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +71 -0
- package/dist/esm/components/NodeDeadLine/index.js +0 -1
- package/dist/esm/components/NodeInput/index.d.ts +24 -0
- package/dist/esm/components/NodeInput/index.js +58 -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/components/PlatForm/index.js +1 -1
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/Select/index.js +28 -15
- package/dist/esm/components/ShopInput/index.js +1 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +22 -6
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/service/api.d.ts +1 -0
- package/dist/esm/service/api.js +8 -0
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
|
@@ -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;
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
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
|
+
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
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { ApaasInput } from "@kmkf-fe-packages/basic-components";
|
|
11
|
+
import GetFormItem from "../GetFormItem";
|
|
12
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
15
|
+
import { AlipayBill } from "../Common/index";
|
|
16
|
+
var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(options) {
|
|
17
|
+
var _this = this;
|
|
18
|
+
_classCallCheck(this, PaymentVoucherCode);
|
|
19
|
+
_defineProperty(this, "name", void 0);
|
|
20
|
+
_defineProperty(this, "id", void 0);
|
|
21
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
|
+
_defineProperty(this, "type", void 0);
|
|
23
|
+
_defineProperty(this, "rules", void 0);
|
|
24
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
|
+
_defineProperty(this, "templateId", void 0);
|
|
31
|
+
_defineProperty(this, "workOrderUniqueKey", void 0);
|
|
32
|
+
_defineProperty(this, "effects", void 0);
|
|
33
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
34
|
+
var _this$effects;
|
|
35
|
+
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")])) return "--";
|
|
36
|
+
return /*#__PURE__*/React.createElement(AlipayBill, {
|
|
37
|
+
value: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")],
|
|
38
|
+
platform: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
42
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_paymentVoucherCode")])) return null;
|
|
43
|
+
return _this.renderPc(undefined, r);
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
46
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_paymentVoucherCode")];
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
49
|
+
var _record;
|
|
50
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")]) !== null && _record !== void 0 ? _record : "--";
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
53
|
+
var _this$effects2;
|
|
54
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
55
|
+
id: _this.id,
|
|
56
|
+
label: _this.name,
|
|
57
|
+
value: /*#__PURE__*/React.createElement(AlipayBill, {
|
|
58
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
59
|
+
platform: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.env
|
|
60
|
+
})
|
|
61
|
+
}) : null;
|
|
62
|
+
});
|
|
63
|
+
_defineProperty(this, "editRender", function (p) {
|
|
64
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
65
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
66
|
+
title: _this.name,
|
|
67
|
+
name: _this.id,
|
|
68
|
+
rules: _this.rules,
|
|
69
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
70
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
71
|
+
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,
|
|
72
|
+
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
73
|
+
placeholder: "\u81EA\u52A8\u83B7\u53D6\u65E0\u9700\u586B\u5199",
|
|
74
|
+
disabled: true
|
|
75
|
+
}))
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
79
|
+
return {
|
|
80
|
+
searchDefaultConditions: SYMBOL.like,
|
|
81
|
+
type: item.type,
|
|
82
|
+
id: "".concat(item.id, "_paymentVoucherCode"),
|
|
83
|
+
// 过滤组件id
|
|
84
|
+
name: item.name,
|
|
85
|
+
// 过滤组件名称
|
|
86
|
+
filterComponentType: "Input"
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
this.name = options.name;
|
|
90
|
+
this.id = options.id;
|
|
91
|
+
this.sortField = "".concat(options.id, "_paymentVoucherCode");
|
|
92
|
+
this.formField = "".concat(options.id, "_paymentVoucherCode");
|
|
93
|
+
this.type = options.type;
|
|
94
|
+
this.templateId = options.templateId;
|
|
95
|
+
this.componentConfig = options.componentConfig;
|
|
96
|
+
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
97
|
+
this.rules = [];
|
|
98
|
+
this.isCombinationComponent = false;
|
|
99
|
+
this.canSort = false;
|
|
100
|
+
this.children = [];
|
|
101
|
+
this.dataType = "string";
|
|
102
|
+
this.effects = options.effects;
|
|
103
|
+
});
|
|
104
|
+
export default PaymentVoucherCode;
|
|
@@ -64,7 +64,7 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm(options) {
|
|
|
64
64
|
options: platData
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
|
-
this.name = "平台";
|
|
67
|
+
this.name = (options === null || options === void 0 ? void 0 : options.name) || "平台";
|
|
68
68
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "platform";
|
|
69
69
|
this.type = "PLATFORM_INPUT";
|
|
70
70
|
this.sortField = 'platform';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class BasicSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
15
|
-
options: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
options: ComponentInterface["options"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
getKeyByComponentType: (type: string) => any;
|
|
18
18
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -6,15 +6,26 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
-
import React from
|
|
10
|
-
import { ApaasSelect } from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull, filterFn as _filterFn } from
|
|
13
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var typeMap = {
|
|
16
|
-
BUYER_MESSAGE_NOTICE:
|
|
17
|
-
|
|
16
|
+
BUYER_MESSAGE_NOTICE: {
|
|
17
|
+
key: "buyerMessageNotice",
|
|
18
|
+
disabled: false
|
|
19
|
+
},
|
|
20
|
+
SELECT: {
|
|
21
|
+
key: "select",
|
|
22
|
+
disabled: false
|
|
23
|
+
},
|
|
24
|
+
NEW_PAYMENT_STATUS: {
|
|
25
|
+
key: "newPaymentStatus",
|
|
26
|
+
disabled: true,
|
|
27
|
+
placeholder: "自动获取无需填写"
|
|
28
|
+
}
|
|
18
29
|
};
|
|
19
30
|
var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
20
31
|
var _this = this,
|
|
@@ -33,7 +44,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
33
44
|
_defineProperty(this, "dataType", void 0);
|
|
34
45
|
_defineProperty(this, "options", void 0);
|
|
35
46
|
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
36
|
-
return typeMap[type] ||
|
|
47
|
+
return typeMap[type].key || "";
|
|
37
48
|
});
|
|
38
49
|
_defineProperty(this, "editRender", function (p) {
|
|
39
50
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -44,8 +55,10 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
44
55
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
45
56
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
46
57
|
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,
|
|
47
|
-
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({
|
|
48
|
-
|
|
58
|
+
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({
|
|
59
|
+
disabled: typeMap[_this.type].disabled
|
|
60
|
+
}, _this.componentConfig, {
|
|
61
|
+
placeholder: typeMap[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
49
62
|
showSearch: true,
|
|
50
63
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
51
64
|
}))
|
|
@@ -55,27 +68,27 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
55
68
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
56
69
|
id: _this.id,
|
|
57
70
|
label: _this.name,
|
|
58
|
-
value: (record === null || record === void 0 ? void 0 : record[_this.id]) ||
|
|
71
|
+
value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ""
|
|
59
72
|
}) : null;
|
|
60
73
|
});
|
|
61
74
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
62
75
|
var _record;
|
|
63
76
|
var type = _this.type;
|
|
64
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record !== void 0 ? _record :
|
|
77
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record !== void 0 ? _record : "--");
|
|
65
78
|
});
|
|
66
79
|
_defineProperty(this, "renderLog", function (r) {
|
|
67
80
|
var type = _this.type;
|
|
68
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])])) return null;
|
|
81
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)])) return null;
|
|
69
82
|
return _this.renderPc(undefined, r);
|
|
70
83
|
});
|
|
71
84
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
72
85
|
var type = _this.type;
|
|
73
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])];
|
|
86
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)];
|
|
74
87
|
});
|
|
75
88
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
89
|
var _record2;
|
|
77
90
|
var type = _this.type;
|
|
78
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 :
|
|
91
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record2 !== void 0 ? _record2 : "--";
|
|
79
92
|
});
|
|
80
93
|
_defineProperty(this, "filterConfig", function (item) {
|
|
81
94
|
var _item$config;
|
|
@@ -87,7 +100,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
87
100
|
// 过滤组件id
|
|
88
101
|
name: item.name,
|
|
89
102
|
// 过滤组件名称
|
|
90
|
-
filterComponentType:
|
|
103
|
+
filterComponentType: "MultipleSelect",
|
|
91
104
|
props: {
|
|
92
105
|
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
93
106
|
},
|
|
@@ -108,7 +121,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
108
121
|
this.isCombinationComponent = false;
|
|
109
122
|
this.canSort = true;
|
|
110
123
|
this.children = [];
|
|
111
|
-
this.dataType =
|
|
124
|
+
this.dataType = "string";
|
|
112
125
|
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
113
126
|
});
|
|
114
127
|
export default BasicSelect;
|
|
@@ -86,7 +86,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
});
|
|
89
|
-
this.name = "店铺名称";
|
|
89
|
+
this.name = (options === null || options === void 0 ? void 0 : options.name) || "店铺名称";
|
|
90
90
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "shopName";
|
|
91
91
|
this.type = "SHOP_INPUT";
|
|
92
92
|
this.sortField = "shopName";
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods } from "./index";
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BuyerNick |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BuyerNick | CommonInput | CompletedUser | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderStatus | Handler | HandlerDeadLine | LogisticsMoreInterception | LogisticsMoreTrajectory | LogisticsTrajectory | BasicMultSelect | NodeDeadLine | NodeInput | PaymentVoucherCode | PlatForm | BasicSelect | ShopInput | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | TemplateSelect | WorkOrderId | LogisticsInterception | Submitter | PrevSubmitter | FlowCreator | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeStayDuration | WlnGoods | BsPosting | MsgStatus | WdtGoods;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -30,6 +30,7 @@ export var factory = function factory(type, options) {
|
|
|
30
30
|
return new BasicDataTime(options);
|
|
31
31
|
case "SELECT":
|
|
32
32
|
case "BUYER_MESSAGE_NOTICE":
|
|
33
|
+
case "NEW_PAYMENT_STATUS":
|
|
33
34
|
return new BasicSelect(options);
|
|
34
35
|
case "PICTURE":
|
|
35
36
|
return new BasicPicture(options);
|
|
@@ -173,20 +174,35 @@ export var factory = function factory(type, options) {
|
|
|
173
174
|
// case "REISSUE_TRADE_ID":
|
|
174
175
|
// case 'EXCHANGE_TRADE_ID':
|
|
175
176
|
// return new CommonTradeId(options);
|
|
176
|
-
case
|
|
177
|
+
case "NUMERICAL_CALCULATION":
|
|
177
178
|
return new Calculation(options);
|
|
178
|
-
case
|
|
179
|
+
case "NODE_DEAD_LINE_INPUT":
|
|
179
180
|
// 工单时效
|
|
180
181
|
return new NodeDeadLine(options);
|
|
181
|
-
case
|
|
182
|
+
case "HANDLER_DEAD_LINE_INPUT":
|
|
182
183
|
// 处理人时效
|
|
183
184
|
return new HandlerDeadLine(options);
|
|
184
|
-
case
|
|
185
|
+
case "NODE_STAY_DURATION_INPUT":
|
|
185
186
|
// 工单停留时长
|
|
186
187
|
return new NodeStayDuration(options);
|
|
187
|
-
case
|
|
188
|
+
case "WLN_GOODS":
|
|
188
189
|
// 万里牛商品
|
|
189
190
|
return new WlnGoods(options);
|
|
191
|
+
case "WDT_GOODS":
|
|
192
|
+
// 万里牛商品
|
|
193
|
+
return new WdtGoods(options);
|
|
194
|
+
case "BUSINESS_ORDER_NO":
|
|
195
|
+
return new CommonInput(options);
|
|
196
|
+
case "PAYMENT_VOUCHER_CODE":
|
|
197
|
+
return new PaymentVoucherCode(options);
|
|
198
|
+
case "NODE_INPUT":
|
|
199
|
+
return new NodeInput(options);
|
|
200
|
+
case "FLOW_WORK_STATUS_SELECT":
|
|
201
|
+
return new FlowWorkOrderStatus(options);
|
|
202
|
+
case "FLOW_CREATED_DATETIME":
|
|
203
|
+
return new CommonDataTime(options);
|
|
204
|
+
case "FLOW_UPDATE_DATETIME":
|
|
205
|
+
return new CommonDataTime(options);
|
|
190
206
|
case 'WDT_GOODS':
|
|
191
207
|
// 万里牛商品
|
|
192
208
|
return new WdtGoods(options);
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -70,8 +70,12 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
70
70
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
71
71
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
72
72
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
73
|
+
export { default as NodeInput } from './components/NodeInput';
|
|
74
|
+
export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
|
|
73
75
|
export { default as MsgStatus } from './components/MsgStatus';
|
|
74
76
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
77
|
+
export { default as CommonInput } from "./components/CommonInput";
|
|
78
|
+
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
75
79
|
export { factory } from "./factory";
|
|
76
80
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
77
81
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
package/dist/esm/index.js
CHANGED
|
@@ -70,8 +70,12 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
70
70
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
71
71
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
72
72
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
73
|
+
export { default as NodeInput } from "./components/NodeInput";
|
|
74
|
+
export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
|
|
73
75
|
export { default as MsgStatus } from "./components/MsgStatus";
|
|
74
76
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
77
|
+
export { default as CommonInput } from "./components/CommonInput";
|
|
78
|
+
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
75
79
|
export { factory } from "./factory";
|
|
76
80
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
77
81
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const replaceCheck: (data: any) => Promise<any>;
|
|
2
|
+
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
|
2
3
|
export declare const queryAddressData: () => Promise<void>;
|
|
3
4
|
export declare const queryBsAddressData: () => Promise<void>;
|
|
4
5
|
export declare const queryWdtAddressData: () => Promise<void>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -21,6 +21,14 @@ export var replaceCheck = function replaceCheck(data) {
|
|
|
21
21
|
data: data
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
+
// 获取支付宝电子回单
|
|
25
|
+
export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
|
|
26
|
+
return request({
|
|
27
|
+
url: '/qy/payment/paymentOrder/getAlipayBillReceipt',
|
|
28
|
+
method: 'post',
|
|
29
|
+
data: data
|
|
30
|
+
});
|
|
31
|
+
};
|
|
24
32
|
export var queryAddressData = function queryAddressData() {
|
|
25
33
|
return request({
|
|
26
34
|
url: "/qy/gdfw/template/queryAreas/noLogin",
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -170,7 +170,7 @@ export interface ComponentInterface {
|
|
|
170
170
|
effects?: {
|
|
171
171
|
queryWorkOrderDetail?: (r: Record) => void;
|
|
172
172
|
handleOpenRepeatList?: (r: Record) => void;
|
|
173
|
-
handleChangeSingleWorkOrderMark?: (t: string, r: Record) => void;
|
|
173
|
+
handleChangeSingleWorkOrderMark?: (t: string, r: Record, id?: string) => void;
|
|
174
174
|
templateList?: any[];
|
|
175
175
|
isEditing?: boolean;
|
|
176
176
|
form?: FormInstance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.27.0-
|
|
3
|
+
"version": "0.27.0-rc.1",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/basic-components": "^0.27.0-
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.27.0-
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.27.0-rc.1",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.27.0-rc.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "aee9cf6ea0bc4de7f663d05d42cc25e4ab8f1627",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|