@kmkf-fe-packages/services-components 2.3.0-rc.0 → 2.3.0-rc.4
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/components/BS/BsLogistics/index.d.ts +7 -2
- package/dist/esm/components/BS/BsLogistics/index.js +34 -1
- 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/BsHeaderPic.js +4 -9
- package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCode.js +10 -4
- package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
- package/dist/esm/components/BS/common/expressCompany.js +11 -4
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +10 -5
- package/dist/esm/components/CommonHeaderGood/index.js +17 -1
- 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 -9
- package/dist/esm/components/GY/GyGoods/index.js +2 -0
- package/dist/esm/components/GY/GyReissue/index.js +2 -0
- package/dist/esm/components/GY/GyReturn/index.js +2 -0
- package/dist/esm/components/OrderSubForm/index.d.ts +49 -0
- package/dist/esm/components/OrderSubForm/index.js +271 -0
- 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.js +3 -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 +86 -6
- package/dist/esm/components/TradeId/index.d.ts +5 -5
- package/dist/esm/components/TradeId/index.js +17 -14
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +9 -1
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/type.d.ts +37 -0
- package/package.json +4 -4
|
@@ -26,7 +26,10 @@ declare class ExpressCode implements ComponentInterface {
|
|
|
26
26
|
renderExport: (value: string, record: Record) => any;
|
|
27
27
|
editRender: () => null;
|
|
28
28
|
filterConfig: (item: ColumnConfig) => {
|
|
29
|
-
searchDefaultConditions:
|
|
29
|
+
searchDefaultConditions: {
|
|
30
|
+
in: "in";
|
|
31
|
+
anylike: "anylike";
|
|
32
|
+
};
|
|
30
33
|
type: string;
|
|
31
34
|
id: string;
|
|
32
35
|
name: string;
|
|
@@ -14,7 +14,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
14
14
|
import React from "react";
|
|
15
15
|
import { BsExpressRender } from "../../Common";
|
|
16
16
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
-
import {
|
|
17
|
+
import { SEARCH_OPTIONS, SYMBOL, batchInput } from "../../../constant";
|
|
18
18
|
var typeMap = {
|
|
19
19
|
BS_LOGISTICS: {
|
|
20
20
|
key: "bsLogisticsItem"
|
|
@@ -39,6 +39,9 @@ var typeMap = {
|
|
|
39
39
|
},
|
|
40
40
|
SKX_LOGISTICS: {
|
|
41
41
|
key: "skxLogisticsItem"
|
|
42
|
+
},
|
|
43
|
+
SKX_RETURN_LOGISTICS: {
|
|
44
|
+
key: "skxReturnLogisticsItem"
|
|
42
45
|
}
|
|
43
46
|
};
|
|
44
47
|
var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
@@ -95,13 +98,16 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
95
98
|
_defineProperty(this, "filterConfig", function (item) {
|
|
96
99
|
var subKey = item.subKey;
|
|
97
100
|
return {
|
|
98
|
-
searchDefaultConditions:
|
|
101
|
+
searchDefaultConditions: {
|
|
102
|
+
in: SYMBOL.in,
|
|
103
|
+
anylike: SYMBOL.anylike
|
|
104
|
+
},
|
|
99
105
|
type: item.type,
|
|
100
106
|
id: "".concat(item.id, "_").concat(subKey),
|
|
101
107
|
name: "".concat(_this.parentName, "-\u7269\u6D41\u5355\u53F7"),
|
|
102
108
|
filterComponentType: "SelectInput",
|
|
103
109
|
props: {
|
|
104
|
-
filterOptions:
|
|
110
|
+
filterOptions: SEARCH_OPTIONS
|
|
105
111
|
},
|
|
106
112
|
filterFn: function filterFn(value) {
|
|
107
113
|
return function (i) {
|
|
@@ -109,7 +115,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
109
115
|
};
|
|
110
116
|
},
|
|
111
117
|
formatFilterValue: function formatFilterValue(value) {
|
|
112
|
-
if (value.type
|
|
118
|
+
if (["in", "anylike"].includes(value.type)) {
|
|
113
119
|
return batchInput(value.keywords);
|
|
114
120
|
} else {
|
|
115
121
|
return value;
|
|
@@ -31,6 +31,10 @@ declare class Express implements ComponentInterface {
|
|
|
31
31
|
renderExport: (value: string, record: Record) => any;
|
|
32
32
|
editRender: () => null;
|
|
33
33
|
filterConfig: (item: ColumnConfig) => {
|
|
34
|
+
searchDefaultConditions: {
|
|
35
|
+
in: "in";
|
|
36
|
+
anylike: "anylike";
|
|
37
|
+
};
|
|
34
38
|
filterComponentType: "SelectInput";
|
|
35
39
|
props: {
|
|
36
40
|
filterOptions: {
|
|
@@ -41,18 +45,17 @@ declare class Express implements ComponentInterface {
|
|
|
41
45
|
};
|
|
42
46
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
43
47
|
formatFilterValue: (value: any) => any;
|
|
44
|
-
searchDefaultConditions: "in";
|
|
45
48
|
type: string;
|
|
46
49
|
id: string;
|
|
47
50
|
name: string;
|
|
48
51
|
} | {
|
|
52
|
+
searchDefaultConditions: "in";
|
|
49
53
|
filterComponentType: "MultipleSelect";
|
|
50
54
|
props: {
|
|
51
55
|
options: any[];
|
|
52
56
|
filterOptions?: undefined;
|
|
53
57
|
};
|
|
54
58
|
filterFn: (value: string) => (i: Record) => any;
|
|
55
|
-
searchDefaultConditions: "in";
|
|
56
59
|
type: string;
|
|
57
60
|
id: string;
|
|
58
61
|
name: string;
|
|
@@ -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"
|
|
@@ -42,6 +42,9 @@ var typeMap = {
|
|
|
42
42
|
},
|
|
43
43
|
SKX_LOGISTICS: {
|
|
44
44
|
key: "skxLogisticsItem"
|
|
45
|
+
},
|
|
46
|
+
SKX_RETURN_LOGISTICS: {
|
|
47
|
+
key: "skxReturnLogisticsItem"
|
|
45
48
|
}
|
|
46
49
|
};
|
|
47
50
|
var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
@@ -104,14 +107,17 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
104
107
|
var _this$expressDateInst3;
|
|
105
108
|
var subKey = item.subKey;
|
|
106
109
|
return _objectSpread({
|
|
107
|
-
searchDefaultConditions: SYMBOL.in,
|
|
108
110
|
type: item.type,
|
|
109
111
|
id: "".concat(item.id, "_").concat(subKey),
|
|
110
112
|
name: "".concat(_this.parentName, "-\u7269\u6D41\u516C\u53F8")
|
|
111
113
|
}, _this.logisticsCompanyFormType === "input" ? {
|
|
114
|
+
searchDefaultConditions: {
|
|
115
|
+
in: SYMBOL.in,
|
|
116
|
+
anylike: SYMBOL.anylike
|
|
117
|
+
},
|
|
112
118
|
filterComponentType: "SelectInput",
|
|
113
119
|
props: {
|
|
114
|
-
filterOptions:
|
|
120
|
+
filterOptions: SEARCH_OPTIONS
|
|
115
121
|
},
|
|
116
122
|
filterFn: function filterFn(value) {
|
|
117
123
|
return function (i) {
|
|
@@ -119,13 +125,14 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
119
125
|
};
|
|
120
126
|
},
|
|
121
127
|
formatFilterValue: function formatFilterValue(value) {
|
|
122
|
-
if (value.type
|
|
128
|
+
if (["in", "anylike"].includes(value.type)) {
|
|
123
129
|
return batchInput(value.keywords);
|
|
124
130
|
} else {
|
|
125
131
|
return value;
|
|
126
132
|
}
|
|
127
133
|
}
|
|
128
134
|
} : {
|
|
135
|
+
searchDefaultConditions: SYMBOL.in,
|
|
129
136
|
filterComponentType: "MultipleSelect",
|
|
130
137
|
props: {
|
|
131
138
|
options: ((_this$expressDateInst3 = _this.expressDateInstance) === null || _this$expressDateInst3 === void 0 ? void 0 : _this$expressDateInst3.getExpressData()) || []
|
|
@@ -31,7 +31,7 @@ export declare const BsGoodImage: ({ item, index }: {
|
|
|
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)[];
|
|
@@ -448,12 +448,17 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
|
|
|
448
448
|
};
|
|
449
449
|
//bs图片展示
|
|
450
450
|
export var BsGoodPic = function BsGoodPic(list) {
|
|
451
|
-
return list.map(function (t) {
|
|
452
|
-
|
|
451
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, null, list.map(function (t) {
|
|
452
|
+
var finalSrc = t !== null && t !== void 0 && t.startsWith("http") ? t : "https://kefu.kuaimai.com/".concat(t);
|
|
453
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
454
|
+
onClick: function onClick(e) {
|
|
455
|
+
return e.stopPropagation();
|
|
456
|
+
}
|
|
457
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
453
458
|
width: 60,
|
|
454
|
-
src:
|
|
455
|
-
});
|
|
456
|
-
});
|
|
459
|
+
src: finalSrc
|
|
460
|
+
}));
|
|
461
|
+
}));
|
|
457
462
|
};
|
|
458
463
|
export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
459
464
|
var list = _ref11.list,
|
|
@@ -1357,7 +1357,7 @@ var GoodHeaderMap = {
|
|
|
1357
1357
|
headerMap: {
|
|
1358
1358
|
skuEcode: {
|
|
1359
1359
|
name: "[SKX]发货单明细-skuEcode",
|
|
1360
|
-
width:
|
|
1360
|
+
width: 250
|
|
1361
1361
|
},
|
|
1362
1362
|
subOrderId: {
|
|
1363
1363
|
name: "[SKX]发货单-子订单号",
|
|
@@ -1368,6 +1368,22 @@ var GoodHeaderMap = {
|
|
|
1368
1368
|
width: 200
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
|
+
},
|
|
1372
|
+
SKX_RETURN_GOODS: {
|
|
1373
|
+
headerMap: {
|
|
1374
|
+
returnSkuEcode: {
|
|
1375
|
+
name: "[SKX]退货单明细-returnSkuEcode",
|
|
1376
|
+
width: 300
|
|
1377
|
+
},
|
|
1378
|
+
returnSubOrderId: {
|
|
1379
|
+
name: "[SKX]退货单-子订单号",
|
|
1380
|
+
width: 300
|
|
1381
|
+
},
|
|
1382
|
+
returnBillNo: {
|
|
1383
|
+
name: "[SKX]TH退换货单号",
|
|
1384
|
+
width: 200
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1371
1387
|
}
|
|
1372
1388
|
};
|
|
1373
1389
|
GoodHeaderMap["WDT_REISSUE_GOODS"] = GoodHeaderMap["WDT_GOODS"];
|
|
@@ -13,7 +13,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
13
13
|
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; }
|
|
14
14
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
15
|
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); }
|
|
16
|
-
import React from
|
|
16
|
+
import React from "react";
|
|
17
17
|
import GetFormItem from "../GetFormItem";
|
|
18
18
|
import TradeId from "../TradeId";
|
|
19
19
|
import OrderNo from "./components/OrderNum";
|
|
@@ -30,8 +30,11 @@ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
|
|
|
30
30
|
_defineProperty(_assertThisInitialized(_this), "editRender", function (p) {
|
|
31
31
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
32
32
|
var onTradeIdBlur = function onTradeIdBlur(value) {
|
|
33
|
-
var _p$onBlur;
|
|
34
|
-
|
|
33
|
+
var _this$effects, _this$effects$form, _p$onBlur;
|
|
34
|
+
(_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : (_this$effects$form = _this$effects.form) === null || _this$effects$form === void 0 ? void 0 : _this$effects$form.setFieldsValue({
|
|
35
|
+
skx_return_billNo_blur_from: _this.id
|
|
36
|
+
});
|
|
37
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, value, "tradeId");
|
|
35
38
|
};
|
|
36
39
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
37
40
|
title: _this.name,
|
|
@@ -40,7 +43,7 @@ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
|
|
|
40
43
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
41
44
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
42
45
|
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,
|
|
43
|
-
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 :
|
|
46
|
+
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 : "",
|
|
44
47
|
component: /*#__PURE__*/React.createElement(OrderNo, _extends({}, _this.componentConfig, {
|
|
45
48
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
46
49
|
onTradeIdBlur: onTradeIdBlur
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class BasicFile implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -7,14 +7,14 @@ declare class BasicFile implements ComponentInterface {
|
|
|
7
7
|
formField: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
effects: ComponentInterface[
|
|
15
|
-
dataType: ComponentInterface[
|
|
14
|
+
effects: ComponentInterface['effects'];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
16
|
exampleValue?: string;
|
|
17
|
-
standardDateType: ComponentInterface[
|
|
17
|
+
standardDateType: ComponentInterface['standardDateType'];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderPc: (value: any, record: Record) => any;
|
|
20
20
|
renderLog: (r: Record) => any;
|
|
@@ -12,11 +12,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
12
12
|
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; }
|
|
13
13
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
14
|
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); }
|
|
15
|
-
import React from
|
|
16
|
-
import { ApaasUploadFile } from
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import { ApaasUploadFile } from '@kmkf-fe-packages/basic-components';
|
|
17
17
|
import GetFormItem from "../GetFormItem";
|
|
18
18
|
import ItemView from "../../commonComponents/ItemView";
|
|
19
|
-
import { isNull } from
|
|
19
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
20
20
|
import { FileRender } from "../Common";
|
|
21
21
|
import { PlatForm } from "../../type";
|
|
22
22
|
var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
@@ -46,7 +46,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
46
46
|
href: file.url,
|
|
47
47
|
target: "_blank",
|
|
48
48
|
style: {
|
|
49
|
-
display:
|
|
49
|
+
display: 'block'
|
|
50
50
|
}
|
|
51
51
|
}, file.name);
|
|
52
52
|
});
|
|
@@ -60,7 +60,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
60
60
|
});
|
|
61
61
|
_defineProperty(this, "renderClient", function (record) {
|
|
62
62
|
var _this$effects;
|
|
63
|
-
var _this$id$split = _this.id.split(
|
|
63
|
+
var _this$id$split = _this.id.split('_'),
|
|
64
64
|
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
65
65
|
id = _this$id$split2[0];
|
|
66
66
|
var canDownload = ![PlatForm.KS, PlatForm.FXG].includes((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env);
|
|
@@ -83,7 +83,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
83
83
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
84
84
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
85
85
|
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,
|
|
86
|
-
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 :
|
|
86
|
+
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 : '',
|
|
87
87
|
component: /*#__PURE__*/React.createElement(ApaasUploadFile, _extends({}, _this.componentConfig, {
|
|
88
88
|
uniqueKey: _this.id,
|
|
89
89
|
platform: p === null || p === void 0 ? void 0 : p.platform,
|
|
@@ -97,7 +97,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
97
97
|
prv.push(next.url);
|
|
98
98
|
return prv;
|
|
99
99
|
}, []);
|
|
100
|
-
return textArr === null || textArr === void 0 ? void 0 : textArr.join(
|
|
100
|
+
return textArr === null || textArr === void 0 ? void 0 : textArr.join(',');
|
|
101
101
|
});
|
|
102
102
|
_defineProperty(this, "filterConfig", function () {
|
|
103
103
|
return [];
|
|
@@ -112,9 +112,9 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
112
112
|
this.isCombinationComponent = false;
|
|
113
113
|
this.canSort = false;
|
|
114
114
|
this.children = [];
|
|
115
|
-
this.dataType =
|
|
115
|
+
this.dataType = 'array';
|
|
116
116
|
this.effects = options.effects;
|
|
117
117
|
this.exampleValue = '[{"name":"c.jpeg","url":"https://kefu.kuaimai.com/pic/c.jpeg"}]';
|
|
118
|
-
this.standardDateType =
|
|
118
|
+
this.standardDateType = 'Array';
|
|
119
119
|
});
|
|
120
120
|
export default BasicFile;
|
|
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
18
18
|
import { SYMBOL } from "../../../constant";
|
|
19
|
+
import { useGoodsSourceFormat } from "../../../Hooks";
|
|
19
20
|
var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig6;
|
|
@@ -74,6 +75,7 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
|
|
|
74
75
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
75
76
|
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 : "",
|
|
76
77
|
component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
|
|
78
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
77
79
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
78
80
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
79
81
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
|
|
|
17
17
|
import { BsGoodsTable } from "../../Common/index";
|
|
18
18
|
import { BsType, BsMemo, SystemOrderNo } from "../../BS/common/index";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { useGoodsSourceFormat } from "../../../Hooks";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
GY_REISSUE_GOODS: {
|
|
22
23
|
key: "gyReissueGoods",
|
|
@@ -105,6 +106,7 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
|
|
|
105
106
|
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 : "",
|
|
106
107
|
isGyReissue: true,
|
|
107
108
|
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
109
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
108
110
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
109
111
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
110
112
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
@@ -17,6 +17,7 @@ import { BsGoodsTable } from "../../Common";
|
|
|
17
17
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
18
18
|
import { GyReturn as Return, erpFormValidator } from "@kmkf-fe-packages/basic-components";
|
|
19
19
|
import { BsType, SystemOrderNo } from "../../BS/common/index";
|
|
20
|
+
import { useGoodsSourceFormat } from "../../../Hooks";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
GY_RETURN_GOODS: {
|
|
22
23
|
key: "gyReturnGoods",
|
|
@@ -101,6 +102,7 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
|
|
|
101
102
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
102
103
|
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 : "",
|
|
103
104
|
component: /*#__PURE__*/React.createElement(Return, _extends({}, _this.componentConfig, {
|
|
105
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
104
106
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
105
107
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
106
108
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
+
declare type subConfigType = {
|
|
5
|
+
isEdit: boolean;
|
|
6
|
+
isRequired: boolean;
|
|
7
|
+
isShow: boolean;
|
|
8
|
+
key: string;
|
|
9
|
+
name: string;
|
|
10
|
+
workOrderComponentType: string;
|
|
11
|
+
width: number;
|
|
12
|
+
dataIndex: string;
|
|
13
|
+
title: string;
|
|
14
|
+
widget: string;
|
|
15
|
+
settingName?: string;
|
|
16
|
+
};
|
|
17
|
+
declare class OrderSubForm implements ComponentInterface {
|
|
18
|
+
name: string;
|
|
19
|
+
id: string;
|
|
20
|
+
sortField: string;
|
|
21
|
+
type: string;
|
|
22
|
+
rules: any[];
|
|
23
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
24
|
+
effects: ComponentInterface["effects"];
|
|
25
|
+
isCombinationComponent: boolean;
|
|
26
|
+
formField: string;
|
|
27
|
+
canSort: boolean;
|
|
28
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
29
|
+
children: ComponentInterface[];
|
|
30
|
+
dataType: ComponentInterface["dataType"];
|
|
31
|
+
constructor(options: PickOption);
|
|
32
|
+
renderTransformItem: (item: subConfigType, val: any) => any;
|
|
33
|
+
getNewTableHeader: () => any;
|
|
34
|
+
renderTabel: (list: any) => React.JSX.Element;
|
|
35
|
+
renderPc: () => null;
|
|
36
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
37
|
+
getComponentValue: (r: Record) => any;
|
|
38
|
+
renderExport: () => null;
|
|
39
|
+
renderClient: (record: Record) => React.JSX.Element | null;
|
|
40
|
+
editRender: (p: any) => React.JSX.Element;
|
|
41
|
+
filterConfig: (item: ColumnConfig) => {
|
|
42
|
+
searchDefaultConditions: "like";
|
|
43
|
+
type: string;
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
filterComponentType: "Input";
|
|
47
|
+
}[];
|
|
48
|
+
}
|
|
49
|
+
export default OrderSubForm;
|