@kmkf-fe-packages/services-components 2.4.0-rc.0 → 2.4.2-rc.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 +441 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -2
- package/dist/esm/commonComponents/GlobalContext/index.js +60 -20
- 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 +11 -9
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +4 -2
- 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/BsLogistics/index.d.ts +7 -2
- package/dist/esm/components/BS/BsLogistics/index.js +61 -8
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +56 -9
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +8 -8
- 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 +20 -10
- package/dist/esm/components/BS/common/BsMemo.js +4 -1
- package/dist/esm/components/BS/common/BsType.js +4 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +4 -1
- package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCode.js +16 -4
- package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
- package/dist/esm/components/BS/common/expressCompany.js +31 -5
- 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 +3 -3
- package/dist/esm/components/Common/index.js +49 -28
- 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 +1165 -18
- package/dist/esm/components/CommonInput/index.js +11 -3
- package/dist/esm/components/CommonMultiStatus/index.js +73 -36
- 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.js +17 -1
- 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 +20 -0
- package/dist/esm/components/LogisticsInterception/index.js +10 -5
- 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 +56 -0
- package/dist/esm/components/OrderSubForm/index.js +285 -0
- 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/index.d.ts +15 -6
- package/dist/esm/components/PicturePro/index.js +42 -25
- package/dist/esm/components/PostIng/index.d.ts +5 -0
- package/dist/esm/components/PostIng/index.js +42 -8
- package/dist/esm/components/Public/Goods/index.d.ts +10 -8
- package/dist/esm/components/Public/Goods/index.js +42 -2
- package/dist/esm/components/Public/ReissueGoods/index.js +62 -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 +41 -27
- 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/SKX/SkxGoods/index.js +4 -0
- package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +22 -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 +4 -0
- 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 +5 -5
- package/dist/esm/components/TradeId/index.js +17 -14
- package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +37 -7
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +7 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +34 -1
- package/dist/esm/type.d.ts +38 -0
- 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
|
@@ -17,7 +17,7 @@ import React from "react";
|
|
|
17
17
|
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { BsExpressRender } from "../../Common";
|
|
19
19
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
20
|
-
import {
|
|
20
|
+
import { SEARCH_OPTIONS, SYMBOL, batchInput } from "../../../constant";
|
|
21
21
|
var typeMap = {
|
|
22
22
|
BS_LOGISTICS: {
|
|
23
23
|
key: "bsLogisticsItem"
|
|
@@ -40,8 +40,17 @@ var typeMap = {
|
|
|
40
40
|
GY_LOGISTICS: {
|
|
41
41
|
key: "gyLogisticsItem"
|
|
42
42
|
},
|
|
43
|
+
JY_LOGISTICS: {
|
|
44
|
+
key: "jyLogisticsItem"
|
|
45
|
+
},
|
|
46
|
+
JKY_LOGISTICS: {
|
|
47
|
+
key: "jkyLogisticsItem"
|
|
48
|
+
},
|
|
43
49
|
SKX_LOGISTICS: {
|
|
44
50
|
key: "skxLogisticsItem"
|
|
51
|
+
},
|
|
52
|
+
SKX_RETURN_LOGISTICS: {
|
|
53
|
+
key: "skxReturnLogisticsItem"
|
|
45
54
|
}
|
|
46
55
|
};
|
|
47
56
|
var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
@@ -95,7 +104,20 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
95
104
|
});
|
|
96
105
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
97
106
|
var _this$expressDateInst, _this$expressDateInst2;
|
|
98
|
-
|
|
107
|
+
var name = (_this$expressDateInst = _this.expressDateInstance) === null || _this$expressDateInst === void 0 ? void 0 : (_this$expressDateInst2 = _this$expressDateInst.getExpressNameByCode) === null || _this$expressDateInst2 === void 0 ? void 0 : _this$expressDateInst2.call(_this$expressDateInst, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], false);
|
|
108
|
+
if (!name) {
|
|
109
|
+
var _typeMap$_this$type3, _items$find;
|
|
110
|
+
var _this$id$split3 = _this.id.split("_"),
|
|
111
|
+
_this$id$split4 = _slicedToArray(_this$id$split3, 3),
|
|
112
|
+
key = _this$id$split4[0],
|
|
113
|
+
parentKey = _this$id$split4[1],
|
|
114
|
+
childKey = _this$id$split4[2];
|
|
115
|
+
var items = record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
|
|
116
|
+
name = items === null || items === void 0 ? void 0 : (_items$find = items.find(function (item) {
|
|
117
|
+
return item.logisticsCompany === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
118
|
+
})) === null || _items$find === void 0 ? void 0 : _items$find.logisticsCompanyName;
|
|
119
|
+
}
|
|
120
|
+
return name || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || "--";
|
|
99
121
|
});
|
|
100
122
|
_defineProperty(this, "editRender", function () {
|
|
101
123
|
return null;
|
|
@@ -104,14 +126,17 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
104
126
|
var _this$expressDateInst3;
|
|
105
127
|
var subKey = item.subKey;
|
|
106
128
|
return _objectSpread({
|
|
107
|
-
searchDefaultConditions: SYMBOL.in,
|
|
108
129
|
type: item.type,
|
|
109
130
|
id: "".concat(item.id, "_").concat(subKey),
|
|
110
131
|
name: "".concat(_this.parentName, "-\u7269\u6D41\u516C\u53F8")
|
|
111
132
|
}, _this.logisticsCompanyFormType === "input" ? {
|
|
133
|
+
searchDefaultConditions: {
|
|
134
|
+
in: SYMBOL.in,
|
|
135
|
+
anylike: SYMBOL.anylike
|
|
136
|
+
},
|
|
112
137
|
filterComponentType: "SelectInput",
|
|
113
138
|
props: {
|
|
114
|
-
filterOptions:
|
|
139
|
+
filterOptions: SEARCH_OPTIONS
|
|
115
140
|
},
|
|
116
141
|
filterFn: function filterFn(value) {
|
|
117
142
|
return function (i) {
|
|
@@ -119,13 +144,14 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
119
144
|
};
|
|
120
145
|
},
|
|
121
146
|
formatFilterValue: function formatFilterValue(value) {
|
|
122
|
-
if (value.type
|
|
147
|
+
if (["in", "anylike"].includes(value.type)) {
|
|
123
148
|
return batchInput(value.keywords);
|
|
124
149
|
} else {
|
|
125
150
|
return value;
|
|
126
151
|
}
|
|
127
152
|
}
|
|
128
153
|
} : {
|
|
154
|
+
searchDefaultConditions: SYMBOL.in,
|
|
129
155
|
filterComponentType: "MultipleSelect",
|
|
130
156
|
props: {
|
|
131
157
|
options: ((_this$expressDateInst3 = _this.expressDateInstance) === null || _this$expressDateInst3 === void 0 ? void 0 : _this$expressDateInst3.getExpressData()) || []
|
|
@@ -178,11 +178,14 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
|
|
|
178
178
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
|
|
179
179
|
required: true,
|
|
180
180
|
validator: function validator(_, value) {
|
|
181
|
-
var _value, _typeMap$options$type6;
|
|
181
|
+
var _value, _typeMap$options$type6, _typeMap$options$type8;
|
|
182
182
|
if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.key)]) !== null && _value !== void 0 && _value.length)) {
|
|
183
183
|
var _typeMap$options$type7;
|
|
184
184
|
return Promise.reject(new Error("".concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.errMsg)));
|
|
185
185
|
}
|
|
186
|
+
if (!value || !(value !== null && value !== void 0 && value["".concat((_typeMap$options$type8 = typeMap[options.type]) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.systemOrderNo)])) {
|
|
187
|
+
return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"));
|
|
188
|
+
}
|
|
186
189
|
return Promise.resolve();
|
|
187
190
|
}
|
|
188
191
|
}] : [];
|
|
@@ -1,19 +1,21 @@
|
|
|
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 BasicCascader implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
15
|
-
format: ComponentInterface[
|
|
16
|
-
options: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
|
+
format: ComponentInterface['format'];
|
|
16
|
+
options: ComponentInterface['options'];
|
|
17
|
+
exampleValue?: string;
|
|
18
|
+
standardDateType: ComponentInterface['standardDateType'];
|
|
17
19
|
constructor(options: PickOption);
|
|
18
20
|
/**
|
|
19
21
|
* 通过值计算展示内容
|
|
@@ -6,13 +6,13 @@ 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 { Cascader } from
|
|
11
|
-
import intersection from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { Cascader } from 'antd';
|
|
11
|
+
import intersection from 'lodash/intersection';
|
|
12
12
|
import GetFormItem from "../GetFormItem";
|
|
13
|
-
import { findLabelBySelectValue, transMultSelectOptions, tree } from
|
|
13
|
+
import { findLabelBySelectValue, transMultSelectOptions, tree } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
17
|
var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
18
18
|
var _this = this,
|
|
@@ -31,11 +31,13 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
31
31
|
_defineProperty(this, "dataType", void 0);
|
|
32
32
|
_defineProperty(this, "format", void 0);
|
|
33
33
|
_defineProperty(this, "options", void 0);
|
|
34
|
+
_defineProperty(this, "exampleValue", void 0);
|
|
35
|
+
_defineProperty(this, "standardDateType", void 0);
|
|
34
36
|
_defineProperty(this, "getValues", function (value) {
|
|
35
37
|
var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
|
|
36
38
|
return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
|
|
37
39
|
return i.label;
|
|
38
|
-
})) === null || _findLabelBySelectVal2 === void 0 ? void 0 : _findLabelBySelectVal2.join(
|
|
40
|
+
})) === null || _findLabelBySelectVal2 === void 0 ? void 0 : _findLabelBySelectVal2.join(',');
|
|
39
41
|
});
|
|
40
42
|
_defineProperty(this, "renderClient", function (record) {
|
|
41
43
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -51,7 +53,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
51
53
|
}
|
|
52
54
|
return /*#__PURE__*/React.createElement("span", null, (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref === void 0 ? void 0 : (_ref$map = _ref.map(function (item) {
|
|
53
55
|
return item === null || item === void 0 ? void 0 : item.label;
|
|
54
|
-
})) === null || _ref$map === void 0 ? void 0 : _ref$map.join(
|
|
56
|
+
})) === null || _ref$map === void 0 ? void 0 : _ref$map.join(','));
|
|
55
57
|
// return (
|
|
56
58
|
// <span>
|
|
57
59
|
// {findLabelBySelectValue(
|
|
@@ -75,11 +77,11 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
75
77
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
78
|
var _ref2, _ref2$map;
|
|
77
79
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) === undefined) {
|
|
78
|
-
return
|
|
80
|
+
return '--';
|
|
79
81
|
}
|
|
80
82
|
return (_ref2 = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref2 === void 0 ? void 0 : (_ref2$map = _ref2.map(function (item) {
|
|
81
83
|
return item === null || item === void 0 ? void 0 : item.label;
|
|
82
|
-
})) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(
|
|
84
|
+
})) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(',');
|
|
83
85
|
// return findLabelBySelectValue(
|
|
84
86
|
// (record?.[`${this.id}_multSelect`] || [])?.map(
|
|
85
87
|
// (item: any) => item.actived
|
|
@@ -98,14 +100,14 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
98
100
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
99
101
|
required: (_this$componentConfig2 = (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required) !== null && _this$componentConfig2 !== void 0 ? _this$componentConfig2 : false,
|
|
100
102
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
101
|
-
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip :
|
|
103
|
+
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : '',
|
|
102
104
|
component: /*#__PURE__*/React.createElement(Cascader, _extends({}, _this.componentConfig, {
|
|
103
105
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
104
106
|
options: transMultSelectOptions(((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.options) || []),
|
|
105
107
|
fieldNames: {
|
|
106
|
-
label:
|
|
107
|
-
value:
|
|
108
|
-
children:
|
|
108
|
+
label: 'label',
|
|
109
|
+
value: 'actived',
|
|
110
|
+
children: 'children'
|
|
109
111
|
},
|
|
110
112
|
showSearch: true,
|
|
111
113
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
@@ -122,26 +124,26 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
122
124
|
// 过滤组件id
|
|
123
125
|
name: item.name,
|
|
124
126
|
// 过滤组件名称
|
|
125
|
-
filterComponentType:
|
|
127
|
+
filterComponentType: 'Cascader',
|
|
126
128
|
props: {
|
|
127
129
|
options: options,
|
|
128
130
|
multiple: true,
|
|
129
|
-
maxTagCount:
|
|
131
|
+
maxTagCount: 'responsive',
|
|
130
132
|
fieldNames: {
|
|
131
|
-
label:
|
|
132
|
-
value:
|
|
133
|
-
children:
|
|
133
|
+
label: 'label',
|
|
134
|
+
value: 'actived',
|
|
135
|
+
children: 'children'
|
|
134
136
|
}
|
|
135
137
|
},
|
|
136
138
|
filterFn: function filterFn(value) {
|
|
137
139
|
return function (i) {
|
|
138
|
-
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id,
|
|
140
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
139
141
|
};
|
|
140
142
|
},
|
|
141
143
|
formatFilterValue: function formatFilterValue(val) {
|
|
142
144
|
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
143
145
|
return val.map(function (item) {
|
|
144
|
-
var node = tree.findNodeByValue(options,
|
|
146
|
+
var node = tree.findNodeByValue(options, 'actived', item[item.length - 1]);
|
|
145
147
|
if (node) {
|
|
146
148
|
var label = node.label,
|
|
147
149
|
actived = node.actived;
|
|
@@ -165,9 +167,11 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
165
167
|
this.children = [];
|
|
166
168
|
this.isCombinationComponent = false;
|
|
167
169
|
this.canSort = true;
|
|
168
|
-
this.dataType =
|
|
169
|
-
this.format =
|
|
170
|
+
this.dataType = 'array';
|
|
171
|
+
this.format = 'cascader';
|
|
170
172
|
this.options = ((_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.options) || [];
|
|
173
|
+
this.standardDateType = 'Array';
|
|
174
|
+
this.exampleValue = '[{"label":"卖家补偿","actived":3},{"label":"麦基修改","actived":"3-1"}]';
|
|
171
175
|
}
|
|
172
176
|
|
|
173
177
|
/**
|
|
@@ -61,10 +61,10 @@ var getColumns = function getColumns(_ref) {
|
|
|
61
61
|
width: 100
|
|
62
62
|
}, {
|
|
63
63
|
dataIndex: "share",
|
|
64
|
-
title: "\
|
|
64
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
65
65
|
align: "center",
|
|
66
66
|
ellipsis: true,
|
|
67
|
-
width:
|
|
67
|
+
width: 120
|
|
68
68
|
}, {
|
|
69
69
|
dataIndex: "type",
|
|
70
70
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -7,13 +7,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
7
7
|
import system from "./system";
|
|
8
8
|
import bs_e3 from "./bs_e3";
|
|
9
9
|
import bs from "./bs";
|
|
10
|
-
import { getJstColumns, getWlnColumns, getGyColumns, getWdtColumns, getKmColumns, getSkxColumns } from "@kmkf-fe-packages/basic-components";
|
|
10
|
+
import { getJstColumns, getWlnColumns, getGyColumns, getWdtColumns, getKmColumns, getJyColumns, getSkxColumns, getJkyColumns } from "@kmkf-fe-packages/basic-components";
|
|
11
11
|
import defaultColumns from "./defaultColumns";
|
|
12
12
|
export var getColumnsMap = function getColumnsMap(args) {
|
|
13
13
|
var _ref = args || {},
|
|
14
14
|
_ref$text = _ref.text,
|
|
15
15
|
text = _ref$text === void 0 ? "" : _ref$text;
|
|
16
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
|
|
16
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
|
|
17
17
|
text: text
|
|
18
18
|
})), bs_e3()), getWdtColumns({
|
|
19
19
|
text: text,
|
|
@@ -26,6 +26,10 @@ export var getColumnsMap = function getColumnsMap(args) {
|
|
|
26
26
|
text: text
|
|
27
27
|
})), getKmColumns({
|
|
28
28
|
disabled: true
|
|
29
|
+
})), getJyColumns({
|
|
30
|
+
disabled: true
|
|
31
|
+
})), getJkyColumns({
|
|
32
|
+
disabled: true
|
|
29
33
|
})), getSkxColumns({})), {}, {
|
|
30
34
|
default: defaultColumns({
|
|
31
35
|
text: text
|
|
@@ -60,10 +60,10 @@ var getColumns = function getColumns(_ref) {
|
|
|
60
60
|
width: 100
|
|
61
61
|
}, {
|
|
62
62
|
dataIndex: "share",
|
|
63
|
-
title: "\
|
|
63
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
64
64
|
align: "center",
|
|
65
65
|
ellipsis: true,
|
|
66
|
-
width:
|
|
66
|
+
width: 120
|
|
67
67
|
}, {
|
|
68
68
|
dataIndex: "type",
|
|
69
69
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -299,6 +299,110 @@ var getColumns = function getColumns(_ref) {
|
|
|
299
299
|
};
|
|
300
300
|
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
301
301
|
}
|
|
302
|
+
}],
|
|
303
|
+
//旺店通售后商品信息
|
|
304
|
+
WDT_AFTERSALE_GOODS: [{
|
|
305
|
+
dataIndex: "oid",
|
|
306
|
+
title: "原始子单号",
|
|
307
|
+
align: "center",
|
|
308
|
+
ellipsis: true,
|
|
309
|
+
width: 300
|
|
310
|
+
}, {
|
|
311
|
+
dataIndex: "goodsName",
|
|
312
|
+
title: "货品名称",
|
|
313
|
+
align: "center",
|
|
314
|
+
ellipsis: true,
|
|
315
|
+
width: 150
|
|
316
|
+
}, {
|
|
317
|
+
dataIndex: "goodsNo",
|
|
318
|
+
title: "货品编码",
|
|
319
|
+
align: "center",
|
|
320
|
+
ellipsis: true,
|
|
321
|
+
width: 150
|
|
322
|
+
}, {
|
|
323
|
+
dataIndex: "specName",
|
|
324
|
+
title: "规格名称",
|
|
325
|
+
align: "center",
|
|
326
|
+
ellipsis: true,
|
|
327
|
+
width: 150
|
|
328
|
+
}, {
|
|
329
|
+
dataIndex: "specNo",
|
|
330
|
+
title: "商家编码",
|
|
331
|
+
align: "center",
|
|
332
|
+
ellipsis: true,
|
|
333
|
+
width: 150
|
|
334
|
+
}, {
|
|
335
|
+
dataIndex: "specCode",
|
|
336
|
+
title: "规格编号",
|
|
337
|
+
align: "center",
|
|
338
|
+
ellipsis: true,
|
|
339
|
+
width: 150
|
|
340
|
+
}, {
|
|
341
|
+
dataIndex: "barcode",
|
|
342
|
+
title: "条码",
|
|
343
|
+
align: "center",
|
|
344
|
+
ellipsis: true,
|
|
345
|
+
width: 150
|
|
346
|
+
}, {
|
|
347
|
+
dataIndex: "apiGoodsName",
|
|
348
|
+
title: "平台货品名称",
|
|
349
|
+
align: "center",
|
|
350
|
+
ellipsis: true,
|
|
351
|
+
width: 150
|
|
352
|
+
}, {
|
|
353
|
+
dataIndex: "apiSpecName",
|
|
354
|
+
title: "平台规格名称",
|
|
355
|
+
align: "center",
|
|
356
|
+
ellipsis: true,
|
|
357
|
+
width: 150
|
|
358
|
+
}, {
|
|
359
|
+
dataIndex: "suiteName",
|
|
360
|
+
title: "组合装名称",
|
|
361
|
+
align: "center",
|
|
362
|
+
ellipsis: true,
|
|
363
|
+
width: 250
|
|
364
|
+
}, {
|
|
365
|
+
dataIndex: "suiteNo",
|
|
366
|
+
title: "组合装编号",
|
|
367
|
+
align: "center",
|
|
368
|
+
ellipsis: true,
|
|
369
|
+
width: 150
|
|
370
|
+
}, {
|
|
371
|
+
dataIndex: "stockinNum",
|
|
372
|
+
title: "入库数量",
|
|
373
|
+
align: "center",
|
|
374
|
+
ellipsis: true,
|
|
375
|
+
width: 150
|
|
376
|
+
}, {
|
|
377
|
+
dataIndex: "refundNum",
|
|
378
|
+
title: "退款数量",
|
|
379
|
+
align: "center",
|
|
380
|
+
ellipsis: true,
|
|
381
|
+
width: 150
|
|
382
|
+
}, {
|
|
383
|
+
dataIndex: "totalAmount",
|
|
384
|
+
title: "退货总额",
|
|
385
|
+
align: "center",
|
|
386
|
+
ellipsis: true,
|
|
387
|
+
width: 150
|
|
388
|
+
}, {
|
|
389
|
+
dataIndex: "refundAmount",
|
|
390
|
+
title: "已退款金额",
|
|
391
|
+
align: "center",
|
|
392
|
+
ellipsis: true,
|
|
393
|
+
width: 150
|
|
394
|
+
}, {
|
|
395
|
+
dataIndex: "num",
|
|
396
|
+
title: "实际发出数量",
|
|
397
|
+
align: "center",
|
|
398
|
+
ellipsis: true,
|
|
399
|
+
width: 150
|
|
400
|
+
}, {
|
|
401
|
+
dataIndex: "giftTypeDesc",
|
|
402
|
+
title: "赠品方式",
|
|
403
|
+
align: "center",
|
|
404
|
+
ellipsis: true,
|
|
405
|
+
width: 150
|
|
302
406
|
}]
|
|
303
407
|
};
|
|
304
408
|
//旺店通补发商品信息
|
|
@@ -25,13 +25,13 @@ export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: {
|
|
|
25
25
|
export declare const GoodImage: ({ list, type, showHeader }: any) => React.JSX.Element | null;
|
|
26
26
|
export declare const JstGoodImage: ({ list, type, platformType, logisticsCompanyFormType, }: any) => any;
|
|
27
27
|
export declare const BsExpressRender: ({ list, showField, platformType, logisticsCompanyFormType, }: any) => any;
|
|
28
|
-
export declare const CommonOrderContent: ({ list, valueKey: initValueKey, failValue, options, isShowPopover, }: any) => any;
|
|
28
|
+
export declare const CommonOrderContent: ({ list, valueKey: initValueKey, failValue, options, isShowPopover, idKey, }: any) => any;
|
|
29
29
|
export declare const BsGoodImage: ({ item, index }: {
|
|
30
30
|
item: any;
|
|
31
31
|
index: number;
|
|
32
32
|
}) => React.JSX.Element;
|
|
33
33
|
export declare const BsExchangeList: ({ list, showHeader }: any) => React.JSX.Element;
|
|
34
|
-
export declare const BsGoodPic: (list: string[]) => React.JSX.Element
|
|
34
|
+
export declare const BsGoodPic: (list: string[]) => React.JSX.Element;
|
|
35
35
|
export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
|
|
36
36
|
list: any[];
|
|
37
37
|
showHeader: (string | ShowHeaderObjType)[];
|
|
@@ -40,7 +40,7 @@ export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
|
|
|
40
40
|
}) => React.JSX.Element;
|
|
41
41
|
export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
42
42
|
export declare const KmVideoRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
43
|
-
export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
|
|
43
|
+
export declare const BsSystemOrderTable: ({ value, type, showHeader }: any) => React.JSX.Element;
|
|
44
44
|
export declare const MsgContent: ({ horizontal, list, valueKey, failValue, options, }: any) => React.JSX.Element;
|
|
45
45
|
export declare const AlipayBill: (props: any) => React.JSX.Element;
|
|
46
46
|
export declare const RenderPicturePro: (props: any) => React.JSX.Element;
|
|
@@ -15,15 +15,16 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
|
|
16
16
|
import { DownloadOutlined } from "@ant-design/icons";
|
|
17
17
|
import React, { useState, useMemo } from "react";
|
|
18
|
-
import { ExpressData, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
+
import { ExpressData, SendDataCenter, getSystemShowHead } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
19
|
import { getAlipayBillReceipt } from "../../service/api";
|
|
20
20
|
import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
21
21
|
import styles from "./index.module.less";
|
|
22
22
|
import defaultImg from "./img/default-img.png";
|
|
23
23
|
import CopyText from "../../commonComponents/CopyText";
|
|
24
|
-
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
|
+
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
25
25
|
import { getColumnsMap } from "./constants/columnsBaseInfoMap";
|
|
26
26
|
import { VideoCameraTwoTone } from "@ant-design/icons";
|
|
27
|
+
import { ApaasImage } from "@kmkf-fe-packages/basic-components";
|
|
27
28
|
var Paragraph = Typography.Paragraph;
|
|
28
29
|
export var getFormItem = function getFormItem(_ref) {
|
|
29
30
|
var name = _ref.name,
|
|
@@ -65,17 +66,17 @@ export var showImage = function showImage(_ref2) {
|
|
|
65
66
|
}, type === "itemCode" && !showHeader.includes("picUrl") ? null : (item === null || item === void 0 ? void 0 : item.platform) === "taobao" ? /*#__PURE__*/React.createElement("a", {
|
|
66
67
|
target: "_blank",
|
|
67
68
|
href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) : "javascript:void(0);"
|
|
68
|
-
}, /*#__PURE__*/React.createElement(
|
|
69
|
+
}, /*#__PURE__*/React.createElement(ApaasImage, {
|
|
70
|
+
width: 40,
|
|
71
|
+
height: 40,
|
|
69
72
|
style: {
|
|
70
|
-
width: "40px",
|
|
71
|
-
height: "40px",
|
|
72
73
|
objectFit: "contain"
|
|
73
74
|
},
|
|
74
75
|
src: picUrl
|
|
75
|
-
})) : /*#__PURE__*/React.createElement(
|
|
76
|
+
})) : /*#__PURE__*/React.createElement(ApaasImage, {
|
|
77
|
+
width: 40,
|
|
78
|
+
height: 40,
|
|
76
79
|
style: {
|
|
77
|
-
width: "40px",
|
|
78
|
-
height: "40px",
|
|
79
80
|
objectFit: "contain"
|
|
80
81
|
},
|
|
81
82
|
src: picUrl
|
|
@@ -249,7 +250,7 @@ var content = function content(item, index) {
|
|
|
249
250
|
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F"), item.sid && /*#__PURE__*/React.createElement("span", null, "(\u7CFB\u7EDF\u5355\u53F7:", item.sid, ")")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
250
251
|
return /*#__PURE__*/React.createElement("div", {
|
|
251
252
|
key: index
|
|
252
|
-
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(
|
|
253
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(ApaasImage, {
|
|
253
254
|
width: 70,
|
|
254
255
|
src: t.picUrl,
|
|
255
256
|
preview: false
|
|
@@ -272,7 +273,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
272
273
|
var company = "";
|
|
273
274
|
if (logisticsCompanyFormType === "input") {
|
|
274
275
|
company = logisticsCompany;
|
|
275
|
-
} else if (
|
|
276
|
+
} else if (["gy", "jy"].includes(platformType)) {
|
|
276
277
|
// 管易为了兼容之前的补发物流信息,若不存在logisticsCompanyName值则去匹配物流映射列表展示物流公司名称
|
|
277
278
|
company = ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName;
|
|
278
279
|
} else {
|
|
@@ -293,7 +294,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
293
294
|
text: item.logisticsCode
|
|
294
295
|
})) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
|
|
295
296
|
text: item.logisticsCode
|
|
296
|
-
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join("/") : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, getSendName(item)].join("/") : item.sendId ? item.sendId : getSendName(item)) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || "") : null));
|
|
297
|
+
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join("/") : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, getSendName(item)].join("/") : item.sendId ? item.sendId : getSendName(item)) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || "") : null, type === 5 ? /*#__PURE__*/React.createElement("span", null, item.returnWarehouseName && item.returnWarehouseId ? [item.returnWarehouseId, item.returnWarehouseName].join("/") : item.returnWarehouseId ? item.returnWarehouseId : item.returnWarehouseName) : null));
|
|
297
298
|
}) : null;
|
|
298
299
|
};
|
|
299
300
|
export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
@@ -305,8 +306,9 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
305
306
|
platformType = _ref7$platformType === void 0 ? "default" : _ref7$platformType,
|
|
306
307
|
logisticsCompanyFormType = _ref7.logisticsCompanyFormType;
|
|
307
308
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
308
|
-
var logisticsCompany = item.logisticsCompany
|
|
309
|
-
|
|
309
|
+
var logisticsCompany = item.logisticsCompany,
|
|
310
|
+
logisticsCompanyName = item.logisticsCompanyName;
|
|
311
|
+
var company = logisticsCompanyFormType === "input" ? logisticsCompany : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany;
|
|
310
312
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
311
313
|
content: content(item, index),
|
|
312
314
|
overlayStyle: {
|
|
@@ -331,7 +333,8 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
331
333
|
_ref8$options = _ref8.options,
|
|
332
334
|
options = _ref8$options === void 0 ? [] : _ref8$options,
|
|
333
335
|
_ref8$isShowPopover = _ref8.isShowPopover,
|
|
334
|
-
isShowPopover = _ref8$isShowPopover === void 0 ? true : _ref8$isShowPopover
|
|
336
|
+
isShowPopover = _ref8$isShowPopover === void 0 ? true : _ref8$isShowPopover,
|
|
337
|
+
idKey = _ref8.idKey;
|
|
335
338
|
var getContentData = function getContentData(item, index) {
|
|
336
339
|
if (item.platformId) return {
|
|
337
340
|
text: "平台售后单号",
|
|
@@ -343,7 +346,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
343
346
|
};
|
|
344
347
|
return {
|
|
345
348
|
text: "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1),
|
|
346
|
-
id: item.systemOrderId || item.systemOrderNo
|
|
349
|
+
id: item.systemOrderId || item.systemOrderNo || (item === null || item === void 0 ? void 0 : item[idKey])
|
|
347
350
|
};
|
|
348
351
|
};
|
|
349
352
|
var orderContent = function orderContent(item, index) {
|
|
@@ -412,10 +415,10 @@ export var BsGoodImage = function BsGoodImage(_ref9) {
|
|
|
412
415
|
return /*#__PURE__*/React.createElement("div", {
|
|
413
416
|
className: styles.goodImgBox,
|
|
414
417
|
key: index
|
|
415
|
-
}, /*#__PURE__*/React.createElement(
|
|
418
|
+
}, /*#__PURE__*/React.createElement(ApaasImage, {
|
|
419
|
+
width: 40,
|
|
420
|
+
height: 40,
|
|
416
421
|
style: {
|
|
417
|
-
width: "40px",
|
|
418
|
-
height: "40px",
|
|
419
422
|
objectFit: "contain"
|
|
420
423
|
},
|
|
421
424
|
src: picUrl
|
|
@@ -448,12 +451,17 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
|
|
|
448
451
|
};
|
|
449
452
|
//bs图片展示
|
|
450
453
|
export var BsGoodPic = function BsGoodPic(list) {
|
|
451
|
-
return list.map(function (t) {
|
|
452
|
-
|
|
454
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, null, list.map(function (t) {
|
|
455
|
+
var finalSrc = t !== null && t !== void 0 && t.startsWith("http") ? t : "https://kefu.kuaimai.com/".concat(t);
|
|
456
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
457
|
+
onClick: function onClick(e) {
|
|
458
|
+
return e.stopPropagation();
|
|
459
|
+
}
|
|
460
|
+
}, /*#__PURE__*/React.createElement(ApaasImage, {
|
|
453
461
|
width: 60,
|
|
454
|
-
src:
|
|
455
|
-
});
|
|
456
|
-
});
|
|
462
|
+
src: finalSrc
|
|
463
|
+
}));
|
|
464
|
+
}));
|
|
457
465
|
};
|
|
458
466
|
export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
459
467
|
var list = _ref11.list,
|
|
@@ -763,7 +771,9 @@ export var KmVideoRender = function KmVideoRender(_ref13) {
|
|
|
763
771
|
};
|
|
764
772
|
export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
765
773
|
var value = _ref14.value,
|
|
766
|
-
type = _ref14.type
|
|
774
|
+
type = _ref14.type,
|
|
775
|
+
_ref14$showHeader = _ref14.showHeader,
|
|
776
|
+
showHeader = _ref14$showHeader === void 0 ? [] : _ref14$showHeader;
|
|
767
777
|
var columnMap = {
|
|
768
778
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
769
779
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -771,7 +781,10 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
771
781
|
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
772
782
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
773
783
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
774
|
-
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns
|
|
784
|
+
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
785
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
786
|
+
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
787
|
+
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
775
788
|
};
|
|
776
789
|
var rowKeyMap = {
|
|
777
790
|
BS_SYSTEM_ORDER: "billNo",
|
|
@@ -780,7 +793,10 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
780
793
|
WDT_SYSTEM_ORDER: "billNo",
|
|
781
794
|
BS_E3_SYSTEM_ORDER: "orderSn",
|
|
782
795
|
GY_SYSTEM_ORDER: "billNo",
|
|
783
|
-
JST_SYSTEM_ORDER: "oId"
|
|
796
|
+
JST_SYSTEM_ORDER: "oId",
|
|
797
|
+
JY_SYSTEM_ORDER: "tradeNo",
|
|
798
|
+
JKY_SYSTEM_ORDER: "tradeNo",
|
|
799
|
+
WDT_RETURN_BILL_NO: "refundNo"
|
|
784
800
|
};
|
|
785
801
|
var rowSelection = {
|
|
786
802
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|
|
@@ -797,15 +813,20 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
797
813
|
};
|
|
798
814
|
}
|
|
799
815
|
};
|
|
816
|
+
var columns = getSystemShowHead({
|
|
817
|
+
columns: columnMap[type] || [],
|
|
818
|
+
showHeader: showHeader
|
|
819
|
+
});
|
|
800
820
|
return /*#__PURE__*/React.createElement(Table, {
|
|
801
821
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
802
|
-
columns:
|
|
822
|
+
columns: columns || [],
|
|
803
823
|
rowSelection: rowSelection,
|
|
804
824
|
rowKey: rowKeyMap[type] || "billNo",
|
|
805
825
|
size: "small",
|
|
806
826
|
pagination: false,
|
|
807
827
|
scroll: {
|
|
808
|
-
x: "100%"
|
|
828
|
+
x: "100%",
|
|
829
|
+
y: 500
|
|
809
830
|
},
|
|
810
831
|
locale: {
|
|
811
832
|
emptyText: "暂无数据"
|
|
@@ -19,8 +19,8 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
19
19
|
constructor(options: PickOption);
|
|
20
20
|
getValues: (value: string) => string;
|
|
21
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
-
renderPc: (value: any, record: Record) =>
|
|
23
|
-
renderLog: (r: Record) =>
|
|
22
|
+
renderPc: (value: any, record: Record) => string;
|
|
23
|
+
renderLog: (r: Record) => string | null;
|
|
24
24
|
getComponentValue: (r: Record) => any;
|
|
25
25
|
renderExport: (value: any, record: Record) => string;
|
|
26
26
|
editRender: () => null;
|