@kmkf-fe-packages/services-components 0.7.15-alpha.7 → 0.7.15-alpha.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -21
- package/dist/esm/commonComponents/ShopList/index.d.ts +1 -1
- package/dist/esm/commonComponents/ShopList/index.js +4 -2
- package/dist/esm/components/ActualPayment/index.d.ts +5 -4
- package/dist/esm/components/ActualPayment/index.js +25 -21
- package/dist/esm/components/AlipayAccount/index.js +2 -1
- package/dist/esm/components/BS/BsExchange/index.d.ts +12 -6
- package/dist/esm/components/BS/BsExchange/index.js +233 -111
- package/dist/esm/components/BS/BsGoods/index.d.ts +11 -9
- package/dist/esm/components/BS/BsGoods/index.js +93 -60
- package/dist/esm/components/BS/BsReissue/index.d.ts +17 -6
- package/dist/esm/components/BS/BsReissue/index.js +110 -54
- package/dist/esm/components/BS/common/{BsChildNumber.d.ts → BsHeaderCode.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildNumber.js → BsHeaderCode.js} +28 -11
- package/dist/esm/components/BS/common/BsHeaderGood.d.ts +27 -0
- package/dist/esm/components/BS/common/BsHeaderGood.js +156 -0
- package/dist/esm/components/BS/common/{BsChildMoney.d.ts → BsHeaderMoney.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildMoney.js → BsHeaderMoney.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildName.d.ts → BsHeaderName.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildName.js → BsHeaderName.js} +29 -11
- package/dist/esm/components/BS/common/{BsChildCode.d.ts → BsHeaderNumber.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildCode.js → BsHeaderNumber.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildPic.d.ts → BsHeaderPic.d.ts} +7 -6
- package/dist/esm/components/BS/common/{BsChildPic.js → BsHeaderPic.js} +36 -10
- package/dist/esm/components/BS/common/{BsChildShare.d.ts → BsHeaderShare.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildShare.js → BsHeaderShare.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildSku.d.ts → BsHeaderSku.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildSku.js → BsHeaderSku.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildType.d.ts → BsHeaderType.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildType.js → BsHeaderType.js} +28 -11
- package/dist/esm/components/BS/common/BsMemo.d.ts +8 -7
- package/dist/esm/components/BS/common/BsMemo.js +55 -21
- package/dist/esm/components/BS/common/BsType.d.ts +8 -6
- package/dist/esm/components/BS/common/BsType.js +53 -17
- package/dist/esm/components/BS/common/index.d.ts +9 -8
- package/dist/esm/components/BS/common/index.js +9 -8
- package/dist/esm/components/BuyerNick/index.js +5 -1
- package/dist/esm/components/Cascader/index.d.ts +1 -0
- package/dist/esm/components/Cascader/index.js +3 -1
- package/dist/esm/components/Common/index.d.ts +6 -1
- package/dist/esm/components/Common/index.js +115 -20
- package/dist/esm/components/EItemEnCode/index.js +6 -2
- package/dist/esm/components/EItemId/index.d.ts +3 -3
- package/dist/esm/components/EItemId/index.js +14 -10
- package/dist/esm/components/EItemSelect/index.js +6 -2
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -1
- package/dist/esm/components/ErpTradeId/index.js +27 -4
- package/dist/esm/components/ExpressCode/index.d.ts +1 -1
- package/dist/esm/components/ExpressCode/index.js +2 -2
- package/dist/esm/components/File/index.d.ts +1 -1
- package/dist/esm/components/File/index.js +26 -5
- package/dist/esm/components/FlowStatusSelect/index.d.ts +0 -1
- package/dist/esm/components/FlowStatusSelect/index.js +30 -24
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +33 -0
- package/dist/esm/components/FlowWorkOrderId/index.js +112 -0
- package/dist/esm/components/JST/JstItemSelect/index.js +6 -2
- package/dist/esm/components/JST/JstLogistics/index.d.ts +19 -13
- package/dist/esm/components/JST/JstLogistics/index.js +71 -33
- package/dist/esm/components/JST/JstSendGood/index.d.ts +6 -0
- package/dist/esm/components/JST/JstSendGood/index.js +33 -13
- package/dist/esm/components/JST/JstSupply/index.js +6 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +5 -1
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +8 -9
- package/dist/esm/components/LogisticsTrajectory/index.js +12 -10
- package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +11 -6
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +6 -6
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +8 -8
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +4 -10
- package/dist/esm/components/Payment/AlipayNick.js +2 -1
- package/dist/esm/components/Payment/AlipayNo.js +2 -1
- package/dist/esm/components/Payment/BuyerNick.js +6 -3
- package/dist/esm/components/Payment/index.d.ts +1 -0
- package/dist/esm/components/Payment/index.js +9 -6
- package/dist/esm/components/Picture/index.js +3 -0
- package/dist/esm/components/PostIng/index.d.ts +1 -24
- package/dist/esm/components/PostIng/index.js +53 -52
- package/dist/esm/components/Rate/index.js +5 -1
- package/dist/esm/components/ReceiverAddress/index.js +2 -1
- package/dist/esm/components/ReceiverMobile/index.js +2 -1
- package/dist/esm/components/ReceiverName/index.js +2 -1
- package/dist/esm/components/ThirdItemSelect/index.js +6 -2
- package/dist/esm/components/TradeDateTime/index.d.ts +6 -14
- package/dist/esm/components/TradeDateTime/index.js +30 -25
- package/dist/esm/components/TradeId/index.d.ts +1 -0
- package/dist/esm/components/TradeId/index.js +27 -4
- package/dist/esm/components/WorkOrderId/index.js +5 -3
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +6 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/type.d.ts +10 -2
- package/package.json +4 -4
- package/dist/esm/components/BS/BsLogistics/index.d.ts +0 -50
- package/dist/esm/components/BS/BsLogistics/index.js +0 -115
- package/dist/esm/components/BS/common/BsExchangeImage.d.ts +0 -31
- package/dist/esm/components/BS/common/BsExchangeImage.js +0 -126
- package/dist/esm/components/BS/common/BsGoodImage.d.ts +0 -31
- package/dist/esm/components/BS/common/BsGoodImage.js +0 -88
|
@@ -1,5 +1,11 @@
|
|
|
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 _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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3
9
|
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
10
|
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
11
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -32,7 +38,10 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
32
38
|
}
|
|
33
39
|
return fileList === null || fileList === void 0 ? void 0 : fileList.map(function (file) {
|
|
34
40
|
return /*#__PURE__*/React.createElement("a", {
|
|
35
|
-
href: file.url
|
|
41
|
+
href: file.url,
|
|
42
|
+
style: {
|
|
43
|
+
display: "block"
|
|
44
|
+
}
|
|
36
45
|
}, file.name);
|
|
37
46
|
});
|
|
38
47
|
});
|
|
@@ -44,18 +53,30 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
44
53
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_file")];
|
|
45
54
|
});
|
|
46
55
|
_defineProperty(this, "renderClient", function (record) {
|
|
47
|
-
|
|
56
|
+
var _record$id;
|
|
57
|
+
var _this$id$split = _this.id.split("_"),
|
|
58
|
+
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
59
|
+
id = _this$id$split2[0];
|
|
60
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
48
61
|
id: _this.id,
|
|
49
62
|
label: _this.name,
|
|
50
|
-
value:
|
|
63
|
+
value: record === null || record === void 0 ? void 0 : (_record$id = record[id]) === null || _record$id === void 0 ? void 0 : _record$id.map(function (file) {
|
|
64
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
65
|
+
href: file.url,
|
|
66
|
+
style: {
|
|
67
|
+
display: "block"
|
|
68
|
+
}
|
|
69
|
+
}, file.name);
|
|
70
|
+
})
|
|
51
71
|
}) : null;
|
|
52
72
|
});
|
|
53
|
-
_defineProperty(this, "editRender", function () {
|
|
73
|
+
_defineProperty(this, "editRender", function (p) {
|
|
54
74
|
var _this$componentConfig, _this$componentConfig2;
|
|
55
75
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
56
76
|
title: _this.name,
|
|
57
77
|
name: _this.id,
|
|
58
78
|
rules: _this.rules,
|
|
79
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
59
80
|
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,
|
|
60
81
|
component: /*#__PURE__*/React.createElement(ApaasUploadFile, _extends({}, _this.componentConfig, {
|
|
61
82
|
uniqueKey: _this.id,
|
|
@@ -64,7 +85,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
64
85
|
});
|
|
65
86
|
});
|
|
66
87
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
67
|
-
var textArr = ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "
|
|
88
|
+
var textArr = ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_file")]) || []).reduce(function (prv, next) {
|
|
68
89
|
prv.push(next.url);
|
|
69
90
|
return prv;
|
|
70
91
|
}, []);
|
|
@@ -16,7 +16,6 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
16
16
|
dataType: ComponentInterface['dataType'];
|
|
17
17
|
options: ComponentInterface['options'];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
|
-
renderMenu: (record: Record) => React.JSX.Element;
|
|
20
19
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
21
20
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
21
|
getComponentValue: (r: Record) => any;
|
|
@@ -7,7 +7,6 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
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
9
|
import React from 'react';
|
|
10
|
-
import { Dropdown, Menu } from 'antd';
|
|
11
10
|
import { ApaasSelect } from '@kmkf-fe-packages/basic-components';
|
|
12
11
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
12
|
import GetFormItem from "../GetFormItem";
|
|
@@ -31,33 +30,18 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
31
30
|
_defineProperty(this, "children", void 0);
|
|
32
31
|
_defineProperty(this, "dataType", void 0);
|
|
33
32
|
_defineProperty(this, "options", void 0);
|
|
34
|
-
_defineProperty(this, "renderMenu", function (record) {
|
|
35
|
-
var menu = /*#__PURE__*/React.createElement(Menu, {
|
|
36
|
-
onClick: function onClick(_ref) {
|
|
37
|
-
var _this$effects, _this$effects2;
|
|
38
|
-
var key = _ref.key;
|
|
39
|
-
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleChangeSingleWorkOrderStatus) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleChangeSingleWorkOrderStatus(key, record));
|
|
40
|
-
}
|
|
41
|
-
}, /*#__PURE__*/React.createElement(Menu.Item, {
|
|
42
|
-
key: "HANDLING"
|
|
43
|
-
}, "\u5904\u7406\u4E2D"), /*#__PURE__*/React.createElement(Menu.Item, {
|
|
44
|
-
key: "STOPPING"
|
|
45
|
-
}, "\u6682\u505C\u4E2D"), /*#__PURE__*/React.createElement(Menu.Item, {
|
|
46
|
-
key: "COMPLETED"
|
|
47
|
-
}, "\u5DF2\u5B8C\u6210"), /*#__PURE__*/React.createElement(Menu.Item, {
|
|
48
|
-
key: "WAITING"
|
|
49
|
-
}, "\u5F85\u5904\u7406"));
|
|
50
|
-
return menu;
|
|
51
|
-
});
|
|
52
33
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
53
34
|
var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
54
|
-
return status ?
|
|
55
|
-
|
|
56
|
-
|
|
35
|
+
return status ?
|
|
36
|
+
/*#__PURE__*/
|
|
37
|
+
// <Dropdown overlay={this.renderMenu(record)}>
|
|
38
|
+
React.createElement("span", {
|
|
57
39
|
style: {
|
|
58
40
|
color: status.color
|
|
59
41
|
}
|
|
60
|
-
}, status === null || status === void 0 ? void 0 : status.label)
|
|
42
|
+
}, status === null || status === void 0 ? void 0 : status.label)
|
|
43
|
+
// </Dropdown>
|
|
44
|
+
: /*#__PURE__*/React.createElement("span", null, "--");
|
|
61
45
|
});
|
|
62
46
|
_defineProperty(this, "renderLog", function (r) {
|
|
63
47
|
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
@@ -145,6 +129,11 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
145
129
|
label: '已完成',
|
|
146
130
|
color: '#73d13d',
|
|
147
131
|
bgColor: '#73d13d'
|
|
132
|
+
},
|
|
133
|
+
"CLOSED": {
|
|
134
|
+
label: '已关闭',
|
|
135
|
+
color: 'rgba(0, 0, 0, 0.65)',
|
|
136
|
+
bgColor: 'rgba(0, 0, 0, 0.04);'
|
|
148
137
|
}
|
|
149
138
|
};
|
|
150
139
|
this.dataType = 'string';
|
|
@@ -154,5 +143,22 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
154
143
|
value: item
|
|
155
144
|
};
|
|
156
145
|
});
|
|
157
|
-
}
|
|
146
|
+
}
|
|
147
|
+
// renderMenu = (record: Record) => {
|
|
148
|
+
// const menu = (
|
|
149
|
+
// <Menu
|
|
150
|
+
// onClick={({ key }) => {
|
|
151
|
+
// typeof this?.effects?.handleChangeSingleWorkOrderStatus === 'function' && this?.effects?.handleChangeSingleWorkOrderStatus(key, record)
|
|
152
|
+
// }}
|
|
153
|
+
// >
|
|
154
|
+
// <Menu.Item key="HANDLING">处理中</Menu.Item>
|
|
155
|
+
// <Menu.Item key="STOPPING">暂停中</Menu.Item>
|
|
156
|
+
// <Menu.Item key="COMPLETED">已完成</Menu.Item>
|
|
157
|
+
// <Menu.Item key="WAITING">待处理</Menu.Item>
|
|
158
|
+
// </Menu>
|
|
159
|
+
// );
|
|
160
|
+
// return menu;
|
|
161
|
+
// };
|
|
162
|
+
);
|
|
163
|
+
|
|
158
164
|
export default WorkOrderId;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare class FlowWorkOrderId implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
effects: ComponentInterface["effects"];
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
13
|
+
canSort: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
copyHandle: (text: string) => void;
|
|
18
|
+
renderPc: (value: any, record: any) => React.JSX.Element;
|
|
19
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderExport: (value: any, record: any) => any;
|
|
22
|
+
renderClient: () => null;
|
|
23
|
+
editRender: (p: any) => React.JSX.Element;
|
|
24
|
+
filterConfig: (item: ColumnConfig) => {
|
|
25
|
+
searchDefaultConditions: "like";
|
|
26
|
+
type: string;
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
filterComponentType: "Input";
|
|
30
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export default FlowWorkOrderId;
|
|
@@ -0,0 +1,112 @@
|
|
|
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 { message } from 'antd';
|
|
11
|
+
import { CopyOutlined } from '@ant-design/icons';
|
|
12
|
+
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
13
|
+
import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import GetFormItem from "../GetFormItem";
|
|
15
|
+
import copy from 'copy-to-clipboard';
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
17
|
+
var FlowWorkOrderId = /*#__PURE__*/_createClass(function FlowWorkOrderId(options) {
|
|
18
|
+
var _this = this;
|
|
19
|
+
_classCallCheck(this, FlowWorkOrderId);
|
|
20
|
+
_defineProperty(this, "name", void 0);
|
|
21
|
+
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
23
|
+
_defineProperty(this, "type", void 0);
|
|
24
|
+
_defineProperty(this, "rules", void 0);
|
|
25
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
26
|
+
_defineProperty(this, "effects", void 0);
|
|
27
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "formField", void 0);
|
|
29
|
+
_defineProperty(this, "canSort", void 0);
|
|
30
|
+
_defineProperty(this, "children", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
32
|
+
_defineProperty(this, "copyHandle", function (text) {
|
|
33
|
+
copy(text);
|
|
34
|
+
message.success('复制成功');
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
+
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
38
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
39
|
+
}
|
|
40
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
41
|
+
onClick: function onClick(e) {
|
|
42
|
+
return e.stopPropagation();
|
|
43
|
+
}
|
|
44
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
|
|
45
|
+
onClick: function onClick(e) {
|
|
46
|
+
_this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
47
|
+
e.stopPropagation();
|
|
48
|
+
}
|
|
49
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
50
|
+
style: {
|
|
51
|
+
paddingLeft: '4px',
|
|
52
|
+
cursor: 'pointer'
|
|
53
|
+
}
|
|
54
|
+
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
57
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
58
|
+
return _this.renderPc(undefined, r);
|
|
59
|
+
});
|
|
60
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
61
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
62
|
+
});
|
|
63
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
64
|
+
var _record;
|
|
65
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
|
|
66
|
+
});
|
|
67
|
+
_defineProperty(this, "renderClient", function () {
|
|
68
|
+
return null;
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "editRender", function (p) {
|
|
71
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
72
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
73
|
+
title: _this.name,
|
|
74
|
+
name: _this.id,
|
|
75
|
+
rules: _this.rules,
|
|
76
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
77
|
+
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,
|
|
78
|
+
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
79
|
+
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
80
|
+
}))
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
84
|
+
return {
|
|
85
|
+
searchDefaultConditions: SYMBOL.like,
|
|
86
|
+
type: item.type,
|
|
87
|
+
id: item.id,
|
|
88
|
+
// 过滤组件id
|
|
89
|
+
name: item.name,
|
|
90
|
+
// 过滤组件名称
|
|
91
|
+
filterComponentType: 'Input',
|
|
92
|
+
filterFn: function filterFn(value) {
|
|
93
|
+
return function (i) {
|
|
94
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, '')).includes(value);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
this.name = options.name;
|
|
100
|
+
this.id = options.id;
|
|
101
|
+
this.sortField = options.id;
|
|
102
|
+
this.formField = options.id;
|
|
103
|
+
this.type = options.type;
|
|
104
|
+
this.componentConfig = options.componentConfig;
|
|
105
|
+
this.effects = options.effects;
|
|
106
|
+
this.dataType = 'string';
|
|
107
|
+
this.rules = [];
|
|
108
|
+
this.isCombinationComponent = false;
|
|
109
|
+
this.canSort = true;
|
|
110
|
+
this.children = [];
|
|
111
|
+
});
|
|
112
|
+
export default FlowWorkOrderId;
|
|
@@ -44,10 +44,14 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
44
44
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
45
45
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
|
|
46
46
|
//兼容多个商品
|
|
47
|
-
return /*#__PURE__*/React.createElement(
|
|
47
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
48
|
+
onClick: function onClick(e) {
|
|
49
|
+
return e.stopPropagation();
|
|
50
|
+
}
|
|
51
|
+
}, /*#__PURE__*/React.createElement(GoodImage, {
|
|
48
52
|
list: list,
|
|
49
53
|
type: "jstItemThird"
|
|
50
|
-
});
|
|
54
|
+
}));
|
|
51
55
|
});
|
|
52
56
|
_defineProperty(this, "renderLog", function (r) {
|
|
53
57
|
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { ExpressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class JstLogistics implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
sortField: string;
|
|
8
|
+
sortChildField: {
|
|
9
|
+
name: string;
|
|
10
|
+
key: string;
|
|
11
|
+
dataType: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}[];
|
|
8
14
|
type: string;
|
|
9
15
|
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface[
|
|
16
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
11
17
|
align: ALignType;
|
|
12
18
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
19
|
isCombinationComponent: boolean;
|
|
14
20
|
formField: string;
|
|
15
21
|
canSort: boolean;
|
|
16
22
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface[
|
|
23
|
+
dataType: ComponentInterface['dataType'];
|
|
18
24
|
constructor(options: PickOption);
|
|
19
25
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
26
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -23,14 +29,6 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
23
29
|
renderExport: (value: any, record: any) => any;
|
|
24
30
|
editRender: (p: any) => React.JSX.Element;
|
|
25
31
|
filterConfig: (item: ColumnConfig) => ({
|
|
26
|
-
searchDefaultConditions: "like";
|
|
27
|
-
type: string;
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
filterComponentType: "Input";
|
|
31
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
32
|
-
props?: undefined;
|
|
33
|
-
} | {
|
|
34
32
|
searchDefaultConditions: "in";
|
|
35
33
|
type: string;
|
|
36
34
|
id: string;
|
|
@@ -40,6 +38,14 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
40
38
|
options: any[];
|
|
41
39
|
};
|
|
42
40
|
filterFn: (value: string) => (i: Record) => any;
|
|
41
|
+
} | {
|
|
42
|
+
searchDefaultConditions: "like";
|
|
43
|
+
type: string;
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
filterComponentType: "Input";
|
|
47
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
48
|
+
props?: undefined;
|
|
43
49
|
})[];
|
|
44
50
|
}
|
|
45
51
|
export default JstLogistics;
|
|
@@ -6,22 +6,41 @@ 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 { ExpressData } from
|
|
11
|
-
import some from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
|
+
import some from 'lodash/some';
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import { JstGoodImage } from "../../Common";
|
|
14
|
-
import { JstGoods } from
|
|
14
|
+
import { JstGoods } from '@kmkf-fe-packages/basic-components';
|
|
15
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
17
|
import { SYMBOL } from "../../../constant";
|
|
18
|
+
var typeMap = {
|
|
19
|
+
JST_LOGISTICS: {
|
|
20
|
+
key: 'jstItemList',
|
|
21
|
+
name: 'jst',
|
|
22
|
+
company: 'logisticsCompany',
|
|
23
|
+
code: 'logisticsCode'
|
|
24
|
+
},
|
|
25
|
+
BS_LOGISTICS: {
|
|
26
|
+
key: 'bsLogisticsList',
|
|
27
|
+
name: 'bs',
|
|
28
|
+
company: 'bsLogisticsCompany',
|
|
29
|
+
code: 'bsLogisticsCode'
|
|
30
|
+
}
|
|
31
|
+
};
|
|
18
32
|
var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
19
33
|
var _this = this,
|
|
20
|
-
|
|
34
|
+
_typeMap$options$type,
|
|
35
|
+
_typeMap$options$type2,
|
|
36
|
+
_this$componentConfig3,
|
|
37
|
+
_typeMap$options$type3,
|
|
38
|
+
_typeMap$options$type4;
|
|
21
39
|
_classCallCheck(this, JstLogistics);
|
|
22
40
|
_defineProperty(this, "name", void 0);
|
|
23
41
|
_defineProperty(this, "id", void 0);
|
|
24
42
|
_defineProperty(this, "sortField", void 0);
|
|
43
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
25
44
|
_defineProperty(this, "type", void 0);
|
|
26
45
|
_defineProperty(this, "rules", void 0);
|
|
27
46
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -46,26 +65,34 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
46
65
|
}) : null;
|
|
47
66
|
});
|
|
48
67
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
49
|
-
var
|
|
68
|
+
var _typeMap$_this$type;
|
|
69
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
|
|
50
70
|
//兼容多个商品
|
|
51
|
-
return /*#__PURE__*/React.createElement(
|
|
71
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
72
|
+
onClick: function onClick(e) {
|
|
73
|
+
return e.stopPropagation();
|
|
74
|
+
}
|
|
75
|
+
}, /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
52
76
|
list: list,
|
|
53
77
|
type: 1
|
|
54
|
-
});
|
|
78
|
+
}));
|
|
55
79
|
});
|
|
56
80
|
_defineProperty(this, "renderLog", function (r) {
|
|
57
|
-
var
|
|
81
|
+
var _typeMap$_this$type2;
|
|
82
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
|
|
58
83
|
if (isNull(list)) return null;
|
|
59
84
|
return _this.renderPc(undefined, r);
|
|
60
85
|
});
|
|
61
86
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
62
|
-
|
|
87
|
+
var _typeMap$_this$type3;
|
|
88
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
|
|
63
89
|
});
|
|
64
90
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
65
|
-
var
|
|
91
|
+
var _typeMap$_this$type4;
|
|
92
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
|
|
66
93
|
return (list || []).map(function (item) {
|
|
67
|
-
return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join(
|
|
68
|
-
}).join(
|
|
94
|
+
return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join('/');
|
|
95
|
+
}).join(',');
|
|
69
96
|
});
|
|
70
97
|
_defineProperty(this, "editRender", function (p) {
|
|
71
98
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -82,48 +109,49 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
82
109
|
});
|
|
83
110
|
});
|
|
84
111
|
_defineProperty(this, "filterConfig", function (item) {
|
|
112
|
+
var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8;
|
|
85
113
|
return [{
|
|
86
|
-
searchDefaultConditions: SYMBOL.like,
|
|
87
|
-
type: item.type,
|
|
88
|
-
id: "".concat(item.id, "_logisticsCode"),
|
|
89
|
-
name: "jst\u7269\u6D41\u5355\u53F7",
|
|
90
|
-
filterComponentType: "Input",
|
|
91
|
-
filterFn: function filterFn(value) {
|
|
92
|
-
return function (i) {
|
|
93
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCode"), value);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
}, {
|
|
97
114
|
searchDefaultConditions: SYMBOL.in,
|
|
98
115
|
type: item.type,
|
|
99
|
-
id: "".concat(item.id, "
|
|
100
|
-
name: "
|
|
101
|
-
filterComponentType:
|
|
116
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.company),
|
|
117
|
+
name: "".concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.name, "\u7269\u6D41\u516C\u53F8"),
|
|
118
|
+
filterComponentType: 'MultipleSelect',
|
|
102
119
|
props: {
|
|
103
120
|
options: _this.expressDateInstance.getExpressData() || []
|
|
104
121
|
},
|
|
105
122
|
filterFn: function filterFn(value) {
|
|
106
123
|
return function (i) {
|
|
107
124
|
var _ref;
|
|
108
|
-
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id,
|
|
125
|
+
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCompany').split(',') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
109
126
|
var _String;
|
|
110
127
|
var logisticsCompany = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
111
128
|
return logisticsCompany;
|
|
112
129
|
});
|
|
113
130
|
};
|
|
114
131
|
}
|
|
132
|
+
}, {
|
|
133
|
+
searchDefaultConditions: SYMBOL.like,
|
|
134
|
+
type: item.type,
|
|
135
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.code),
|
|
136
|
+
name: "".concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.name, "\u7269\u6D41\u5355\u53F7"),
|
|
137
|
+
filterComponentType: 'Input',
|
|
138
|
+
filterFn: function filterFn(value) {
|
|
139
|
+
return function (i) {
|
|
140
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCode'), value);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
115
143
|
}];
|
|
116
144
|
});
|
|
117
145
|
this.name = options.name;
|
|
118
146
|
this.id = options.id;
|
|
119
|
-
this.sortField = "".concat(options.id, "
|
|
120
|
-
this.formField = "".concat(options.id, "
|
|
147
|
+
this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
|
|
148
|
+
this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
|
|
121
149
|
this.type = options.type;
|
|
122
150
|
this.componentConfig = options.componentConfig;
|
|
123
151
|
this.isCombinationComponent = false;
|
|
124
152
|
this.canSort = false;
|
|
125
153
|
this.children = [];
|
|
126
|
-
this.dataType =
|
|
154
|
+
this.dataType = 'object';
|
|
127
155
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
128
156
|
required: true,
|
|
129
157
|
validator: function validator(_, value) {
|
|
@@ -136,7 +164,17 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
136
164
|
return Promise.resolve();
|
|
137
165
|
}
|
|
138
166
|
}] : [];
|
|
139
|
-
this.align =
|
|
167
|
+
this.align = 'left';
|
|
140
168
|
this.expressDateInstance = ExpressData.getInstance();
|
|
169
|
+
this.sortChildField = [{
|
|
170
|
+
name: '物流公司',
|
|
171
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.company),
|
|
172
|
+
options: this.expressDateInstance.getExpressData(),
|
|
173
|
+
dataType: 'string'
|
|
174
|
+
}, {
|
|
175
|
+
name: '物流单号',
|
|
176
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.code),
|
|
177
|
+
dataType: 'string'
|
|
178
|
+
}];
|
|
141
179
|
});
|
|
142
180
|
export default JstLogistics;
|
|
@@ -4,6 +4,12 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
|
+
sortChildField: {
|
|
8
|
+
name: string;
|
|
9
|
+
key: string;
|
|
10
|
+
dataType: string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}[];
|
|
7
13
|
type: string;
|
|
8
14
|
rules: any[];
|
|
9
15
|
componentConfig: ComponentInterface["componentConfig"];
|