@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
|
@@ -9,7 +9,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
9
9
|
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; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import React, { useState } from "react";
|
|
12
|
-
import { Modal, Timeline, message
|
|
12
|
+
import { Modal, Timeline, message } from "antd";
|
|
13
13
|
import { request } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
var info = Modal.info;
|
|
15
15
|
var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
@@ -48,24 +48,26 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
48
48
|
}
|
|
49
49
|
return _context.abrupt("return", message.error("缺少物流公司或物流单号"));
|
|
50
50
|
case 2:
|
|
51
|
+
logisticsTraceSearch();
|
|
51
52
|
//如果是顺丰且没有手机号 要输入手机号
|
|
52
|
-
if (interceptCompany === "SF" && !interceptSenderMobile) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
53
|
+
// if (interceptCompany === "SF" && !interceptSenderMobile) {
|
|
54
|
+
// Modal.confirm({
|
|
55
|
+
// title: "查询物流轨迹",
|
|
56
|
+
// okText: "查询",
|
|
57
|
+
// cancelText: "取消",
|
|
58
|
+
// content: (
|
|
59
|
+
// <div>
|
|
60
|
+
// 发件人手机号
|
|
61
|
+
// <Input onChange={(e) => setInputVal(e.target.value)}></Input>
|
|
62
|
+
// </div>
|
|
63
|
+
// ),
|
|
64
|
+
// onOk: () => {
|
|
65
|
+
// logisticsTraceSearch(inputVal);
|
|
66
|
+
// },
|
|
67
|
+
// });
|
|
68
|
+
// } else {
|
|
69
|
+
// logisticsTraceSearch();
|
|
70
|
+
// }
|
|
69
71
|
case 3:
|
|
70
72
|
case "end":
|
|
71
73
|
return _context.stop();
|
|
@@ -93,17 +95,17 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
93
95
|
var result = res.result,
|
|
94
96
|
success = res.success,
|
|
95
97
|
data = res.data,
|
|
96
|
-
|
|
98
|
+
msg = res.message;
|
|
97
99
|
if (result === 100 || success) {
|
|
98
100
|
info({
|
|
99
101
|
title: "物流轨迹",
|
|
100
102
|
okText: "确定",
|
|
101
103
|
icon: null,
|
|
102
104
|
width: modelWidth,
|
|
103
|
-
content: LogisticsList(data)
|
|
105
|
+
content: LogisticsList(data === null || data === void 0 ? void 0 : data.traceDetailList)
|
|
104
106
|
});
|
|
105
107
|
} else {
|
|
106
|
-
|
|
108
|
+
msg && message.error(msg);
|
|
107
109
|
}
|
|
108
110
|
});
|
|
109
111
|
} catch (err) {
|
|
@@ -9,5 +9,5 @@ declare type ShopListProps = {
|
|
|
9
9
|
shopList: Shop[];
|
|
10
10
|
[prop: string]: any;
|
|
11
11
|
};
|
|
12
|
-
declare const ShopList: ({ shopList, onChange, setShopId, ...prop }: ShopListProps) => React.JSX.Element;
|
|
12
|
+
declare const ShopList: ({ shopList, valueMapping, onChange, setShopId, ...prop }: ShopListProps) => React.JSX.Element;
|
|
13
13
|
export default ShopList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["shopList", "onChange", "setShopId"];
|
|
1
|
+
var _excluded = ["shopList", "valueMapping", "onChange", "setShopId"];
|
|
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
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -8,6 +8,8 @@ import PlatformAvatar from "../PlatformAvatar";
|
|
|
8
8
|
var ShopList = function ShopList(_ref) {
|
|
9
9
|
var _shopList$filter;
|
|
10
10
|
var shopList = _ref.shopList,
|
|
11
|
+
_ref$valueMapping = _ref.valueMapping,
|
|
12
|
+
valueMapping = _ref$valueMapping === void 0 ? "shopId" : _ref$valueMapping,
|
|
11
13
|
onChange = _ref.onChange,
|
|
12
14
|
setShopId = _ref.setShopId,
|
|
13
15
|
prop = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -21,7 +23,7 @@ var ShopList = function ShopList(_ref) {
|
|
|
21
23
|
return (item === null || item === void 0 ? void 0 : item.auditStatus) === 1;
|
|
22
24
|
})) === null || _shopList$filter === void 0 ? void 0 : _shopList$filter.map(function (item) {
|
|
23
25
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
24
|
-
value: item
|
|
26
|
+
value: item === null || item === void 0 ? void 0 : item[valueMapping],
|
|
25
27
|
label: item.shopName
|
|
26
28
|
}, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
27
29
|
styles: {
|
|
@@ -1,5 +1,5 @@
|
|
|
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 ActualPayment implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,8 +10,8 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
10
10
|
formField: string;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
componentConfig: ComponentInterface[
|
|
14
|
-
dataType: ComponentInterface[
|
|
13
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
15
|
dataMap: Record;
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
getKeyByComponentType: (type: string) => any;
|
|
@@ -32,6 +32,7 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
32
32
|
}[];
|
|
33
33
|
props: {
|
|
34
34
|
placeholder: string[];
|
|
35
|
+
prefix: string;
|
|
35
36
|
};
|
|
36
37
|
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
37
38
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
@@ -9,17 +9,17 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
9
9
|
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; }
|
|
10
10
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
11
11
|
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); }
|
|
12
|
-
import React from
|
|
13
|
-
import { ApaasInput } from
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
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
18
|
var typeMap = {
|
|
19
|
-
ACTUAL_PAYMENT:
|
|
20
|
-
BS_NET_RECEIPTS:
|
|
21
|
-
BS_DEPOSIT:
|
|
22
|
-
BS_PACKAGE_WEIGHT:
|
|
19
|
+
ACTUAL_PAYMENT: 'actualPayment',
|
|
20
|
+
BS_NET_RECEIPTS: 'bsNetReceipts',
|
|
21
|
+
BS_DEPOSIT: 'bsDeposit',
|
|
22
|
+
BS_PACKAGE_WEIGHT: 'bsPackageWeight'
|
|
23
23
|
};
|
|
24
24
|
var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
25
25
|
var _this = this;
|
|
@@ -37,7 +37,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
37
37
|
_defineProperty(this, "dataType", void 0);
|
|
38
38
|
_defineProperty(this, "dataMap", void 0);
|
|
39
39
|
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
40
|
-
return typeMap[type] ||
|
|
40
|
+
return typeMap[type] || '';
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "renderClient", function (record) {
|
|
43
43
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -49,7 +49,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
49
49
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
50
50
|
var _record;
|
|
51
51
|
var type = _this.type;
|
|
52
|
-
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 :
|
|
52
|
+
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 : '--');
|
|
53
53
|
});
|
|
54
54
|
_defineProperty(this, "renderLog", function (r) {
|
|
55
55
|
var type = _this.type;
|
|
@@ -63,7 +63,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
63
63
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
64
64
|
var _record2;
|
|
65
65
|
var type = _this.type;
|
|
66
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 :
|
|
66
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
67
67
|
});
|
|
68
68
|
_defineProperty(this, "editRender", function (p) {
|
|
69
69
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -87,7 +87,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
87
87
|
// 过滤组件id
|
|
88
88
|
name: item.name,
|
|
89
89
|
// 过滤组件名称
|
|
90
|
-
filterComponentType:
|
|
90
|
+
filterComponentType: 'Rate',
|
|
91
91
|
rules: [{
|
|
92
92
|
validator: function () {
|
|
93
93
|
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
@@ -112,13 +112,13 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
112
112
|
_context.next = 5;
|
|
113
113
|
break;
|
|
114
114
|
}
|
|
115
|
-
return _context.abrupt("return", Promise.reject(new Error(
|
|
115
|
+
return _context.abrupt("return", Promise.reject(new Error('请输入正确的金额区间范围')));
|
|
116
116
|
case 5:
|
|
117
117
|
if (!(value[0] > value[1])) {
|
|
118
118
|
_context.next = 7;
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
|
-
return _context.abrupt("return", Promise.reject(new Error(
|
|
121
|
+
return _context.abrupt("return", Promise.reject(new Error('开始金额必须小于结束金额')));
|
|
122
122
|
case 7:
|
|
123
123
|
case "end":
|
|
124
124
|
return _context.stop();
|
|
@@ -132,7 +132,8 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
132
132
|
}()
|
|
133
133
|
}],
|
|
134
134
|
props: {
|
|
135
|
-
placeholder: ["
|
|
135
|
+
placeholder: ["\u59CB-".concat(item.name), "\u7EC8-".concat(item.name)],
|
|
136
|
+
prefix: typeMap[_this.type] === 'bsPackageWeight' ? '' : '¥'
|
|
136
137
|
},
|
|
137
138
|
formatFilterValue: function formatFilterValue(val) {
|
|
138
139
|
if (val !== null && val !== void 0 && val.some(function (v) {
|
|
@@ -154,20 +155,23 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
154
155
|
this.formField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
|
|
155
156
|
this.name = options.name;
|
|
156
157
|
this.type = options.type;
|
|
157
|
-
this.dataType =
|
|
158
|
+
this.dataType = 'number';
|
|
158
159
|
this.isCombinationComponent = false;
|
|
159
160
|
this.canSort = true;
|
|
160
161
|
this.children = [];
|
|
161
162
|
this.componentConfig = options.componentConfig;
|
|
162
|
-
this.rules = [{
|
|
163
|
+
this.rules = options.type === 'ACTUAL_PAYMENT' ? [{
|
|
163
164
|
pattern: /^\d+(\.\d{1,2})?$/,
|
|
164
|
-
message:
|
|
165
|
+
message: '字段为正数或最多两位小数'
|
|
166
|
+
}] : [{
|
|
167
|
+
pattern: /^(([0-9]*(\.[0-9]{1,})$)|([0-9]+$))/,
|
|
168
|
+
message: '请输入数字'
|
|
165
169
|
}];
|
|
166
170
|
this.dataMap = {
|
|
167
|
-
ACTUAL_PAYMENT:
|
|
168
|
-
BS_NET_RECEIPTS:
|
|
169
|
-
BS_DEPOSIT:
|
|
170
|
-
BS_PACKAGE_WEIGHT:
|
|
171
|
+
ACTUAL_PAYMENT: 'actualPayment',
|
|
172
|
+
BS_NET_RECEIPTS: 'bsNetReceipts',
|
|
173
|
+
BS_DEPOSIT: 'bsDeposit',
|
|
174
|
+
BS_PACKAGE_WEIGHT: 'bsPackageWeight'
|
|
171
175
|
};
|
|
172
176
|
});
|
|
173
177
|
export default ActualPayment;
|
|
@@ -42,9 +42,10 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
42
42
|
var _record;
|
|
43
43
|
return /*#__PURE__*/React.createElement("span", {
|
|
44
44
|
className: "pointer",
|
|
45
|
-
onClick: function onClick() {
|
|
45
|
+
onClick: function onClick(e) {
|
|
46
46
|
var _this$effects, _this$effects2;
|
|
47
47
|
typeof ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
48
|
+
e.stopPropagation();
|
|
48
49
|
}
|
|
49
50
|
}, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
50
51
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import
|
|
4
|
-
import { BsType, BsMemo } from "../common/index";
|
|
3
|
+
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
5
4
|
declare class BsExchange implements ComponentInterface {
|
|
6
5
|
name: string;
|
|
7
6
|
id: string;
|
|
@@ -15,9 +14,11 @@ declare class BsExchange implements ComponentInterface {
|
|
|
15
14
|
canSort: boolean;
|
|
16
15
|
children: ComponentInterface[];
|
|
17
16
|
dataType: ComponentInterface["dataType"];
|
|
18
|
-
goodImage: BsExchangeImage;
|
|
19
17
|
bsType: BsType;
|
|
20
18
|
bsMemo: BsMemo;
|
|
19
|
+
returnGoods: BsHeaderGood;
|
|
20
|
+
swapOutGoods: BsHeaderGood;
|
|
21
|
+
giftGoods: BsHeaderGood;
|
|
21
22
|
constructor(options: PickOption);
|
|
22
23
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
23
24
|
renderPc: () => null;
|
|
@@ -26,15 +27,20 @@ declare class BsExchange implements ComponentInterface {
|
|
|
26
27
|
renderExport: (value: any, record: any) => null;
|
|
27
28
|
editRender: (p: any) => React.JSX.Element;
|
|
28
29
|
filterConfig: (item: ColumnConfig) => ({
|
|
29
|
-
searchDefaultConditions: "
|
|
30
|
+
searchDefaultConditions: "in";
|
|
30
31
|
type: string;
|
|
31
32
|
id: string;
|
|
32
33
|
name: string;
|
|
33
34
|
filterComponentType: "Cascader";
|
|
34
35
|
props: {
|
|
35
36
|
options: any[] | undefined;
|
|
37
|
+
fieldNames: {
|
|
38
|
+
label: string;
|
|
39
|
+
value: string;
|
|
40
|
+
children: string;
|
|
41
|
+
};
|
|
36
42
|
};
|
|
37
|
-
|
|
43
|
+
formatFilterValue: (val: Array<string>) => string[] | undefined;
|
|
38
44
|
} | {
|
|
39
45
|
searchDefaultConditions: "like";
|
|
40
46
|
type: string;
|
|
@@ -42,7 +48,7 @@ declare class BsExchange implements ComponentInterface {
|
|
|
42
48
|
name: string;
|
|
43
49
|
filterComponentType: "Input";
|
|
44
50
|
props?: undefined;
|
|
45
|
-
|
|
51
|
+
formatFilterValue?: undefined;
|
|
46
52
|
})[];
|
|
47
53
|
}
|
|
48
54
|
export default BsExchange;
|