@kmkf-fe-packages/services-components 2.9.0-rc.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/Hooks/index.d.ts +2 -0
- package/dist/esm/Hooks/index.js +2 -0
- package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
- package/dist/esm/Hooks/useColumnsConfig.js +243 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.js +437 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -3
- package/dist/esm/commonComponents/GlobalContext/index.js +61 -23
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +12 -9
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +4 -4
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
- package/dist/esm/commonComponents/ShopList/index.js +3 -1
- package/dist/esm/components/BS/BsGoods/index.js +0 -1
- package/dist/esm/components/BS/BsLogistics/index.d.ts +2 -0
- package/dist/esm/components/BS/BsLogistics/index.js +50 -9
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +62 -9
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +9 -8
- package/dist/esm/components/BS/common/BsHeaderChild.js +16 -12
- package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
- package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
- package/dist/esm/components/BS/common/BsMemo.js +5 -1
- package/dist/esm/components/BS/common/BsType.js +5 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +5 -1
- package/dist/esm/components/BS/common/expressCode.js +6 -0
- package/dist/esm/components/BS/common/expressCompany.js +20 -1
- package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
- package/dist/esm/components/Cascader/index.d.ts +8 -6
- package/dist/esm/components/Cascader/index.js +26 -22
- package/dist/esm/components/Common/constants/bs.js +2 -2
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
- package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
- package/dist/esm/components/Common/constants/wdt.js +104 -0
- package/dist/esm/components/Common/index.d.ts +2 -2
- package/dist/esm/components/Common/index.js +45 -24
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +2 -2
- package/dist/esm/components/CommonHeaderGood/index.js +1417 -110
- package/dist/esm/components/CommonInput/index.js +11 -3
- package/dist/esm/components/CommonMultiStatus/index.js +96 -36
- package/dist/esm/components/CommonSystemOrder/index.js +7 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
- package/dist/esm/components/ErpTradeId/index.js +7 -4
- package/dist/esm/components/File/index.d.ts +6 -6
- package/dist/esm/components/File/index.js +9 -10
- package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
- package/dist/esm/components/GY/GyGoods/index.js +5 -1
- package/dist/esm/components/GY/GyReissue/index.js +5 -1
- package/dist/esm/components/GY/GyReturn/index.js +5 -1
- package/dist/esm/components/Input/index.d.ts +4 -4
- package/dist/esm/components/Input/index.js +35 -31
- package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -0
- package/dist/esm/components/JST/JstSendGood/index.js +66 -18
- package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
- package/dist/esm/components/KM/KmExchange/index.js +136 -0
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.js +10 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +21 -0
- package/dist/esm/components/LogisticsInterception/index.js +30 -7
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
- package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
- package/dist/esm/components/OrderSubForm/index.js +18 -1
- package/dist/esm/components/Payment/index.d.ts +13 -12
- package/dist/esm/components/Payment/index.js +31 -11
- package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
- package/dist/esm/components/Picture/index.d.ts +5 -5
- package/dist/esm/components/Picture/index.js +20 -20
- package/dist/esm/components/PicturePro/PictureName.js +1 -3
- package/dist/esm/components/PicturePro/index.d.ts +15 -6
- package/dist/esm/components/PicturePro/index.js +43 -28
- package/dist/esm/components/PostIng/index.d.ts +5 -0
- package/dist/esm/components/PostIng/index.js +42 -8
- package/dist/esm/components/Public/AsyncSelect/index.js +4 -7
- package/dist/esm/components/Public/Goods/index.d.ts +10 -8
- package/dist/esm/components/Public/Goods/index.js +46 -2
- package/dist/esm/components/Public/ReissueGoods/index.js +80 -4
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
- package/dist/esm/components/ReceiverAddress/index.js +43 -30
- package/dist/esm/components/Reissue/Logistics/index.js +2 -2
- package/dist/esm/components/Remark/index.d.ts +18 -2
- package/dist/esm/components/Remark/index.js +37 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
- package/dist/esm/components/ReturnLogistics/index.js +34 -17
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +18 -11
- package/dist/esm/components/ShopInput/index.d.ts +5 -5
- package/dist/esm/components/ShopInput/index.js +12 -9
- package/dist/esm/components/StatusSelect/index.js +22 -2
- package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
- package/dist/esm/components/SubForm/index.js +78 -6
- package/dist/esm/components/TradeId/index.d.ts +6 -5
- package/dist/esm/components/TradeId/index.js +31 -15
- package/dist/esm/components/WDT/WdtGoods/index.js +2 -1
- package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +40 -10
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +6 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +41 -14
- package/dist/esm/service/request.js +1 -4
- package/dist/esm/type.d.ts +43 -3
- package/package.json +4 -4
- package/dist/esm/components/Common/constants/gy.d.ts +0 -3
- package/dist/esm/components/Common/constants/gy.js +0 -219
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
4
|
+
declare class KmExchange implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface["dataType"];
|
|
17
|
+
returnGoods: CommonHeaderGoods;
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
renderPc: () => null;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
22
|
+
getComponentValue: (r: Record) => {
|
|
23
|
+
kmExchangeGoods: any;
|
|
24
|
+
};
|
|
25
|
+
renderExport: (value: any, record: any) => null;
|
|
26
|
+
editRender: (p: any) => React.JSX.Element;
|
|
27
|
+
filterConfig: (item: ColumnConfig) => {
|
|
28
|
+
searchDefaultConditions: "like";
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
filterComponentType: "Input";
|
|
33
|
+
}[];
|
|
34
|
+
}
|
|
35
|
+
export default KmExchange;
|
|
@@ -0,0 +1,136 @@
|
|
|
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import GetFormItem from "../../GetFormItem";
|
|
13
|
+
import { BsGoodsTable } from "../../Common";
|
|
14
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
15
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
+
import { SYMBOL } from "../../../constant";
|
|
17
|
+
// import { BsType, BsMemo } from "../../Bs/common";
|
|
18
|
+
import { CommonExchangeGoods, erpFormValidator } from "@kmkf-fe-packages/basic-components";
|
|
19
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
|
|
21
|
+
var _this = this,
|
|
22
|
+
_this$componentConfig6,
|
|
23
|
+
_this$componentConfig8;
|
|
24
|
+
_classCallCheck(this, KmExchange);
|
|
25
|
+
_defineProperty(this, "name", void 0);
|
|
26
|
+
_defineProperty(this, "id", void 0);
|
|
27
|
+
_defineProperty(this, "sortField", void 0);
|
|
28
|
+
_defineProperty(this, "type", void 0);
|
|
29
|
+
_defineProperty(this, "rules", void 0);
|
|
30
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
31
|
+
_defineProperty(this, "effects", void 0);
|
|
32
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
33
|
+
_defineProperty(this, "formField", void 0);
|
|
34
|
+
_defineProperty(this, "canSort", void 0);
|
|
35
|
+
_defineProperty(this, "children", void 0);
|
|
36
|
+
_defineProperty(this, "dataType", void 0);
|
|
37
|
+
_defineProperty(this, "returnGoods", void 0);
|
|
38
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
39
|
+
var _this$componentConfig;
|
|
40
|
+
var kmExchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_kmExchangeGoods")]) || "[]");
|
|
41
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
42
|
+
id: "".concat(_this.id, "-out"),
|
|
43
|
+
label: "".concat(_this.name, "-\u6362\u51FA"),
|
|
44
|
+
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
45
|
+
type: _this.type,
|
|
46
|
+
list: kmExchangeGoods || [],
|
|
47
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
48
|
+
})
|
|
49
|
+
})) : null;
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "renderPc", function () {
|
|
52
|
+
return null;
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
55
|
+
var _r, _this$componentConfig2;
|
|
56
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_kmExchangeGoods")]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement("div", null, "\u6362\u51FA\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
57
|
+
type: _this.type,
|
|
58
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_kmExchangeGoods")]) || [],
|
|
59
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
60
|
+
})) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_shopCode")] ? /*#__PURE__*/React.createElement("div", null, "\u5E97\u94FAid:", r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_shopCode")]) : null);
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
63
|
+
return {
|
|
64
|
+
kmExchangeGoods: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_kmExchangeGoods")]
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
68
|
+
return null;
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "editRender", function (p) {
|
|
71
|
+
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3, _this$effects4;
|
|
72
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
73
|
+
title: _this.name,
|
|
74
|
+
name: _this.id,
|
|
75
|
+
rules: _this.rules,
|
|
76
|
+
required: false,
|
|
77
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
78
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
79
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
80
|
+
component: /*#__PURE__*/React.createElement(CommonExchangeGoods, _extends({}, _this.componentConfig, {
|
|
81
|
+
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
82
|
+
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
83
|
+
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
84
|
+
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
85
|
+
form: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.form,
|
|
86
|
+
width: "90%",
|
|
87
|
+
type: "KM_EXCHANGE_GOODS"
|
|
88
|
+
}))
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
92
|
+
return [{
|
|
93
|
+
searchDefaultConditions: SYMBOL.like,
|
|
94
|
+
type: item.type,
|
|
95
|
+
id: "".concat(item.id, "_kmExchangeGoods"),
|
|
96
|
+
name: "".concat(_this.name, "-\u6362\u51FA"),
|
|
97
|
+
filterComponentType: "Input"
|
|
98
|
+
}];
|
|
99
|
+
});
|
|
100
|
+
this.name = options.name;
|
|
101
|
+
this.id = options.id;
|
|
102
|
+
this.sortField = "".concat(options.id);
|
|
103
|
+
this.formField = "".concat(options.id);
|
|
104
|
+
this.type = options.type;
|
|
105
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
106
|
+
this.isCombinationComponent = true;
|
|
107
|
+
this.canSort = false;
|
|
108
|
+
this.returnGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
|
|
109
|
+
id: "".concat(options.id, "_kmExchangeGoods"),
|
|
110
|
+
name: "商品信息"
|
|
111
|
+
}));
|
|
112
|
+
this.children = [this.returnGoods];
|
|
113
|
+
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
114
|
+
this.rules = [{
|
|
115
|
+
required: (_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required,
|
|
116
|
+
validator: function validator(_, value) {
|
|
117
|
+
var _this$componentConfig7, _value$kmExchangeGood;
|
|
118
|
+
if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required && !(value !== null && value !== void 0 && (_value$kmExchangeGood = value.kmExchangeGoods) !== null && _value$kmExchangeGood !== void 0 && _value$kmExchangeGood.length)) {
|
|
119
|
+
return Promise.reject(new Error("请选择快麦换货商品"));
|
|
120
|
+
}
|
|
121
|
+
return Promise.resolve();
|
|
122
|
+
}
|
|
123
|
+
}, {
|
|
124
|
+
required: (_this$componentConfig8 = this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.required,
|
|
125
|
+
validator: function validator(_rule, value) {
|
|
126
|
+
if (!_rule.required) return Promise.resolve();
|
|
127
|
+
var validatorFlag = erpFormValidator(_rule, value, "KM_EXCHANGE_GOODS", _this.componentConfig);
|
|
128
|
+
if (validatorFlag) {
|
|
129
|
+
return validatorFlag;
|
|
130
|
+
}
|
|
131
|
+
return Promise.resolve();
|
|
132
|
+
}
|
|
133
|
+
}];
|
|
134
|
+
this.dataType = "object";
|
|
135
|
+
});
|
|
136
|
+
export default KmExchange;
|
|
@@ -106,7 +106,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
_defineProperty(this, "filterConfig", function (item) {
|
|
109
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
109
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
|
|
110
110
|
searchDefaultConditions: SYMBOL.in,
|
|
111
111
|
type: item.type,
|
|
112
112
|
id: "".concat(item.id, "_").concat(_this.suffixSendName),
|
|
@@ -19,6 +19,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
19
19
|
children: ComponentInterface[];
|
|
20
20
|
dataType: ComponentInterface["dataType"];
|
|
21
21
|
isChange: boolean;
|
|
22
|
+
compoundConfig: ComponentInterface["compoundConfig"];
|
|
22
23
|
constructor(options: PickOption);
|
|
23
24
|
editRender: (p: any) => React.JSX.Element;
|
|
24
25
|
renderClient: (record: Record) => React.JSX.Element;
|
|
@@ -33,6 +33,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
33
33
|
_defineProperty(this, "children", void 0);
|
|
34
34
|
_defineProperty(this, "dataType", void 0);
|
|
35
35
|
_defineProperty(this, "isChange", void 0);
|
|
36
|
+
_defineProperty(this, "compoundConfig", void 0);
|
|
36
37
|
_defineProperty(this, "editRender", function (p) {
|
|
37
38
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
38
39
|
var onExpressLogisticsCodeBlur = function onExpressLogisticsCodeBlur(val) {
|
|
@@ -130,5 +131,14 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
130
131
|
}
|
|
131
132
|
}] : [];
|
|
132
133
|
this.isChange = false;
|
|
134
|
+
this.compoundConfig = [{
|
|
135
|
+
name: "快递物流公司",
|
|
136
|
+
id: "".concat(options.id, "_expressLogisticsCompany"),
|
|
137
|
+
standardDateType: "String"
|
|
138
|
+
}, {
|
|
139
|
+
name: "快递物流单号",
|
|
140
|
+
id: "".concat(options.id, "_expressLogisticsCode"),
|
|
141
|
+
standardDateType: "String"
|
|
142
|
+
}];
|
|
133
143
|
});
|
|
134
144
|
export default Logistics;
|
|
@@ -30,7 +30,7 @@ var ColumnHeader = function ColumnHeader(_ref) {
|
|
|
30
30
|
return setVisible(false);
|
|
31
31
|
},
|
|
32
32
|
footer: null
|
|
33
|
-
}, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u4FEE\u6539\u7684\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
|
|
33
|
+
}, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u4FEE\u6539\u7684\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u4E2D\u901A\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
|
|
34
34
|
style: {
|
|
35
35
|
color: "#ff4d4f"
|
|
36
36
|
}
|
|
@@ -2,6 +2,7 @@ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ExpressData, ExpressInterceptData, LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
import InterceptSenderMobile from "./interceptSenderMobile";
|
|
5
|
+
import InterceptApiStatusReason from "./interceptApiStatusReason";
|
|
5
6
|
import InterceptSnapshot from "./interceptSnapshot";
|
|
6
7
|
import InterceptAddress from "./InterceptAddress";
|
|
7
8
|
import InterceptType from "./InterceptType";
|
|
@@ -23,6 +24,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
23
24
|
interceptLogisticsStatus: InterceptStatus;
|
|
24
25
|
interceptApiStatus: InterceptApiStatus;
|
|
25
26
|
interceptSenderMobile: InterceptSenderMobile;
|
|
27
|
+
interceptApiStatusReason: InterceptApiStatusReason;
|
|
26
28
|
interceptSnapshot: InterceptSnapshot;
|
|
27
29
|
interceptState: InterceptState;
|
|
28
30
|
isCombinationComponent: boolean;
|
|
@@ -36,6 +38,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
36
38
|
logisticsAddressData: InstanceType<typeof LogisticsAddressData>;
|
|
37
39
|
effects: ComponentInterface["effects"];
|
|
38
40
|
dataType: ComponentInterface["dataType"];
|
|
41
|
+
isChange: boolean;
|
|
39
42
|
constructor(options: PickOption);
|
|
40
43
|
renderClient: (record: any) => React.JSX.Element;
|
|
41
44
|
renderLog: (record: any) => React.JSX.Element;
|
|
@@ -56,6 +59,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
56
59
|
};
|
|
57
60
|
interceptSnapshot: any;
|
|
58
61
|
interceptState: any;
|
|
62
|
+
interceptApiStatusReason: any;
|
|
59
63
|
};
|
|
60
64
|
renderPc: () => null;
|
|
61
65
|
renderExport: () => null;
|
|
@@ -67,6 +71,23 @@ declare class Logistics implements ComponentInterface {
|
|
|
67
71
|
name: string;
|
|
68
72
|
filterComponentType: "Input";
|
|
69
73
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
74
|
+
} | {
|
|
75
|
+
searchDefaultConditions: {
|
|
76
|
+
in: "in";
|
|
77
|
+
anylike: "anylike";
|
|
78
|
+
};
|
|
79
|
+
type: string;
|
|
80
|
+
id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
filterComponentType: "SelectInput";
|
|
83
|
+
props: {
|
|
84
|
+
filterOptions: {
|
|
85
|
+
label: string;
|
|
86
|
+
value: string;
|
|
87
|
+
}[];
|
|
88
|
+
};
|
|
89
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
90
|
+
formatFilterValue: (value: any) => any;
|
|
70
91
|
} | {
|
|
71
92
|
searchDefaultConditions: "in";
|
|
72
93
|
type: string;
|
|
@@ -13,6 +13,7 @@ import { LogisticsInterception } from "@kmkf-fe-packages/basic-components";
|
|
|
13
13
|
import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import InterceptSenderMobile from "./interceptSenderMobile";
|
|
16
|
+
import InterceptApiStatusReason from "./interceptApiStatusReason";
|
|
16
17
|
import InterceptSnapshot from "./interceptSnapshot";
|
|
17
18
|
import InterceptAddress from "./InterceptAddress";
|
|
18
19
|
import InterceptType from "./InterceptType";
|
|
@@ -44,6 +45,7 @@ function Logistics(options) {
|
|
|
44
45
|
_defineProperty(this, "interceptLogisticsStatus", void 0);
|
|
45
46
|
_defineProperty(this, "interceptApiStatus", void 0);
|
|
46
47
|
_defineProperty(this, "interceptSenderMobile", void 0);
|
|
48
|
+
_defineProperty(this, "interceptApiStatusReason", void 0);
|
|
47
49
|
_defineProperty(this, "interceptSnapshot", void 0);
|
|
48
50
|
_defineProperty(this, "interceptState", void 0);
|
|
49
51
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
@@ -57,11 +59,12 @@ function Logistics(options) {
|
|
|
57
59
|
_defineProperty(this, "logisticsAddressData", void 0);
|
|
58
60
|
_defineProperty(this, "effects", void 0);
|
|
59
61
|
_defineProperty(this, "dataType", void 0);
|
|
62
|
+
_defineProperty(this, "isChange", void 0);
|
|
60
63
|
_defineProperty(this, "renderClient", function (record) {
|
|
61
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptApiStatus.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
|
|
64
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptApiStatus.renderClient(record), _this.interceptApiStatusReason.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
|
|
62
65
|
});
|
|
63
66
|
_defineProperty(this, "renderLog", function (record) {
|
|
64
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptApiStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatus.name, ":", " ", _this.interceptApiStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptState.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptState.name, ":", " ", _this.interceptState.renderLog(record))));
|
|
67
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptApiStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatus.name, ":", " ", _this.interceptApiStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptApiStatusReason.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatusReason.name, ":", " ", _this.interceptApiStatusReason.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptState.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptState.name, ":", " ", _this.interceptState.renderLog(record))));
|
|
65
68
|
});
|
|
66
69
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
67
70
|
return {
|
|
@@ -73,7 +76,8 @@ function Logistics(options) {
|
|
|
73
76
|
interceptApiStatus: _this.interceptApiStatus.getComponentValue(r),
|
|
74
77
|
interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
|
|
75
78
|
interceptSnapshot: _this.interceptSnapshot.getComponentValue(r),
|
|
76
|
-
interceptState: _this.interceptState.getComponentValue(r)
|
|
79
|
+
interceptState: _this.interceptState.getComponentValue(r),
|
|
80
|
+
interceptApiStatusReason: _this.interceptApiStatusReason.getComponentValue(r)
|
|
77
81
|
// interceptLogisticsUserKCode:
|
|
78
82
|
// this.interceptLogisticsUserKCode.getComponentValue(r),
|
|
79
83
|
// interceptLogisticsUserSecretKey:
|
|
@@ -87,7 +91,20 @@ function Logistics(options) {
|
|
|
87
91
|
return null;
|
|
88
92
|
});
|
|
89
93
|
_defineProperty(this, "editRender", function (p) {
|
|
90
|
-
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2, _this$effects3;
|
|
94
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2, _this$effects3, _this$effects4, _this$effects4$workOr;
|
|
95
|
+
var onInterceptCodeBlur = function onInterceptCodeBlur(val) {
|
|
96
|
+
if (_this.isChange) {
|
|
97
|
+
var _p$onBlur;
|
|
98
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, val, "interceptCode");
|
|
99
|
+
_this.isChange = false;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var onInterceptChange = function onInterceptChange(value, type) {
|
|
103
|
+
if (type === "interceptCode") {
|
|
104
|
+
_this.isChange = true;
|
|
105
|
+
}
|
|
106
|
+
p === null || p === void 0 ? void 0 : p.onChange(value);
|
|
107
|
+
};
|
|
91
108
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
92
109
|
title: _this.name,
|
|
93
110
|
name: _this.id,
|
|
@@ -100,10 +117,14 @@ function Logistics(options) {
|
|
|
100
117
|
platform: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env,
|
|
101
118
|
onJumpPage: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.onJumpPage
|
|
102
119
|
}, _this.componentConfig, {
|
|
120
|
+
showReason: true,
|
|
121
|
+
onBlur: onInterceptCodeBlur,
|
|
122
|
+
onChange: onInterceptChange,
|
|
103
123
|
logisticsOptions: _this.expressDateInstance.getExpressData(),
|
|
104
124
|
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
105
125
|
logisticsAddressData: _this.logisticsAddressData.getAddressData(),
|
|
106
|
-
isEditing: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.isEditing
|
|
126
|
+
isEditing: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.isEditing,
|
|
127
|
+
preCreateAndNotModified: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : (_this$effects4$workOr = _this$effects4.workOrderDetail) === null || _this$effects4$workOr === void 0 ? void 0 : _this$effects4$workOr.preCreateAndNotModified
|
|
107
128
|
}))
|
|
108
129
|
});
|
|
109
130
|
});
|
|
@@ -112,7 +133,7 @@ function Logistics(options) {
|
|
|
112
133
|
subKey: "interceptCompany"
|
|
113
134
|
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
114
135
|
subKey: "interceptCode"
|
|
115
|
-
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)
|
|
136
|
+
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptApiStatusReason.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)
|
|
116
137
|
// this.interceptLogisticsUserKCode.filterConfig(item),
|
|
117
138
|
// this.interceptLogisticsUserSecretKey.filterConfig(item),
|
|
118
139
|
];
|
|
@@ -137,6 +158,7 @@ function Logistics(options) {
|
|
|
137
158
|
this.interceptSenderMobile = new InterceptSenderMobile(options);
|
|
138
159
|
this.interceptSnapshot = new InterceptSnapshot(options);
|
|
139
160
|
this.interceptState = new InterceptState(options);
|
|
161
|
+
this.interceptApiStatusReason = new InterceptApiStatusReason(options);
|
|
140
162
|
// this.interceptLogisticsUserSecretKey = new InterceptLogisticsUserSecretKey(
|
|
141
163
|
// options,
|
|
142
164
|
// );
|
|
@@ -152,7 +174,8 @@ function Logistics(options) {
|
|
|
152
174
|
this.isCombinationComponent = true;
|
|
153
175
|
this.canSort = false;
|
|
154
176
|
this.dataType = "object";
|
|
155
|
-
this.
|
|
177
|
+
this.isChange = false;
|
|
178
|
+
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptApiStatusReason, this.interceptSnapshot, this.interceptState
|
|
156
179
|
// this.interceptLogisticsUserKCode,
|
|
157
180
|
// this.interceptLogisticsUserSecretKey,
|
|
158
181
|
];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class InterceptApiStatusReason implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
companyId: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
effects: ComponentInterface["effects"];
|
|
11
|
+
align: ALignType;
|
|
12
|
+
width: number;
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
sortField: string;
|
|
15
|
+
formField: string;
|
|
16
|
+
canSort: boolean;
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
|
+
children: ComponentInterface[];
|
|
19
|
+
constructor(options: PickOption);
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
+
renderPc: (value: any, record: Record) => any;
|
|
23
|
+
renderLog: (r: Record) => any;
|
|
24
|
+
renderExport: (value: any, record: Record) => any;
|
|
25
|
+
editRender: () => null;
|
|
26
|
+
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
searchDefaultConditions: {
|
|
28
|
+
in: "in";
|
|
29
|
+
anylike: "anylike";
|
|
30
|
+
};
|
|
31
|
+
type: string;
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
filterComponentType: "SelectInput";
|
|
35
|
+
props: {
|
|
36
|
+
filterOptions: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
42
|
+
formatFilterValue: (value: any) => any;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export default InterceptApiStatusReason;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
import React from "react";
|
|
9
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
10
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
import { SYMBOL, batchInput, SEARCH_OPTIONS } from "../../constant";
|
|
12
|
+
var InterceptApiStatusReason = /*#__PURE__*/_createClass(function InterceptApiStatusReason(options) {
|
|
13
|
+
var _this = this;
|
|
14
|
+
_classCallCheck(this, InterceptApiStatusReason);
|
|
15
|
+
_defineProperty(this, "name", void 0);
|
|
16
|
+
_defineProperty(this, "id", void 0);
|
|
17
|
+
_defineProperty(this, "companyId", void 0);
|
|
18
|
+
_defineProperty(this, "type", void 0);
|
|
19
|
+
_defineProperty(this, "rules", void 0);
|
|
20
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
+
_defineProperty(this, "effects", void 0);
|
|
22
|
+
_defineProperty(this, "align", void 0);
|
|
23
|
+
_defineProperty(this, "width", void 0);
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "sortField", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
|
+
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
31
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
32
|
+
});
|
|
33
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
34
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
|
+
id: _this.id,
|
|
36
|
+
label: _this.name,
|
|
37
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
38
|
+
}) : null;
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
41
|
+
return record === null || record === void 0 ? void 0 : record[_this.id];
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
44
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
45
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
48
|
+
var _record;
|
|
49
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "editRender", function () {
|
|
52
|
+
return null;
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
55
|
+
return {
|
|
56
|
+
searchDefaultConditions: {
|
|
57
|
+
in: SYMBOL.in,
|
|
58
|
+
anylike: SYMBOL.anylike
|
|
59
|
+
},
|
|
60
|
+
type: _this.type,
|
|
61
|
+
id: "".concat(item.id, "_interceptLogisticsApiStatusReason"),
|
|
62
|
+
name: "".concat(item.name, "-\u63A5\u53E3\u72B6\u6001\u539F\u56E0"),
|
|
63
|
+
filterComponentType: "SelectInput",
|
|
64
|
+
props: {
|
|
65
|
+
filterOptions: SEARCH_OPTIONS
|
|
66
|
+
},
|
|
67
|
+
filterFn: function filterFn(value) {
|
|
68
|
+
return function (i) {
|
|
69
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'interceptLogisticsApiStatusReason')).includes(value);
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
formatFilterValue: function formatFilterValue(value) {
|
|
73
|
+
if (['in', 'anylike'].includes(value.type)) {
|
|
74
|
+
return batchInput(value.keywords);
|
|
75
|
+
} else {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
this.name = "接口状态原因";
|
|
82
|
+
this.id = "".concat(options.id, "_interceptLogisticsApiStatusReason");
|
|
83
|
+
this.companyId = "".concat(options.id, "_interceptCompany");
|
|
84
|
+
this.formField = "".concat(options.id, "_interceptLogisticsApiStatusReason");
|
|
85
|
+
this.sortField = "".concat(options.id, "_interceptLogisticsApiStatusReason");
|
|
86
|
+
this.dataType = "string";
|
|
87
|
+
this.type = options.type + '_API_STATUS_REASON';
|
|
88
|
+
this.componentConfig = options.componentConfig;
|
|
89
|
+
this.rules = [];
|
|
90
|
+
this.align = "left";
|
|
91
|
+
this.width = 200;
|
|
92
|
+
this.isCombinationComponent = false;
|
|
93
|
+
this.canSort = true;
|
|
94
|
+
this.children = [];
|
|
95
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
96
|
+
});
|
|
97
|
+
export default InterceptApiStatusReason;
|
|
@@ -31,9 +31,10 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
31
31
|
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
32
32
|
});
|
|
33
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
|
+
var name = (record === null || record === void 0 ? void 0 : record[_this.companyId]) === "ZTO" ? "发件人/收件人手机号" : _this.name;
|
|
34
35
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
36
|
id: _this.id,
|
|
36
|
-
label:
|
|
37
|
+
label: name,
|
|
37
38
|
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
38
39
|
}) : null;
|
|
39
40
|
});
|
|
@@ -56,7 +57,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
56
57
|
searchDefaultConditions: SYMBOL.like,
|
|
57
58
|
type: item.type,
|
|
58
59
|
id: "".concat(item.id, "_interceptSenderMobile"),
|
|
59
|
-
name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
|
|
60
|
+
name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7"),
|
|
60
61
|
filterComponentType: "Input",
|
|
61
62
|
filterFn: function filterFn(value) {
|
|
62
63
|
return function (i) {
|
|
@@ -8,6 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
10
|
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
import { isEmpty } from "lodash";
|
|
11
12
|
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
12
13
|
var _this = this;
|
|
13
14
|
_classCallCheck(this, PaymentTid);
|
|
@@ -52,9 +53,10 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
52
53
|
});
|
|
53
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
55
|
var logisticsInterceptList = record["".concat(_this.originId, "_logisticsInterceptList")] || [];
|
|
55
|
-
|
|
56
|
-
return logisticsInterceptList.reduce(function (prv, item) {
|
|
56
|
+
return logisticsInterceptList === null || logisticsInterceptList === void 0 ? void 0 : logisticsInterceptList.reduce(function (prv, item) {
|
|
57
57
|
var _item$interceptAddres2;
|
|
58
|
+
// item 若为空对象,则跳过
|
|
59
|
+
if (isEmpty(item)) return prv;
|
|
58
60
|
var addressText = (_item$interceptAddres2 = item.interceptAddress) === null || _item$interceptAddres2 === void 0 ? void 0 : _item$interceptAddres2.map(function (suffix) {
|
|
59
61
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
60
62
|
}).join("");
|
|
@@ -30,7 +30,7 @@ var InterceptApiStatus = /*#__PURE__*/_createClass(function InterceptApiStatus(o
|
|
|
30
30
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
31
31
|
var _ref;
|
|
32
32
|
return (_ref = (r === null || r === void 0 ? void 0 : r[_this.id]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
|
|
33
|
-
return "".concat(item === null || item === void 0 ? void 0 : item.status).concat(item !== null && item !== void 0 && item.reason ? ",".concat(item === null || item === void 0 ? void 0 : item.reason) : "");
|
|
33
|
+
return "".concat((item === null || item === void 0 ? void 0 : item.status) || "").concat(item !== null && item !== void 0 && item.reason ? ",".concat(item === null || item === void 0 ? void 0 : item.reason) : "");
|
|
34
34
|
}).join(";");
|
|
35
35
|
});
|
|
36
36
|
_defineProperty(this, "renderStatus", function (record) {
|
|
@@ -113,6 +113,7 @@ function Logistics(options) {
|
|
|
113
113
|
name: _this.id,
|
|
114
114
|
rules: _this.rules,
|
|
115
115
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
116
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
116
117
|
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,
|
|
117
118
|
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
118
119
|
component: /*#__PURE__*/React.createElement(LogisticsMoreInterception, _extends({}, _this.componentConfig, {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class InterceptSenderMobile implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
companyId: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
10
|
-
effects: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
effects: ComponentInterface["effects"];
|
|
11
11
|
align: ALignType;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
sortField: string;
|
|
15
15
|
formField: string;
|
|
16
16
|
canSort: boolean;
|
|
17
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
18
|
children: ComponentInterface[];
|
|
19
19
|
constructor(options: PickOption);
|
|
20
20
|
renderMobile: (record: any) => React.JSX.Element;
|