@kmkf-fe-packages/services-components 2.0.51 → 2.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +6 -2
- package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +8 -10
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +6 -6
- package/dist/esm/components/BS/common/BsHeaderPic.js +7 -16
- package/dist/esm/components/Common/dist/index.js +1019 -0
- package/dist/esm/components/Common/index.d.ts +3 -2
- package/dist/esm/components/Common/index.js +187 -143
- package/dist/esm/components/Common/index.module.less +1 -0
- package/dist/esm/components/Picture/index.d.ts +5 -5
- package/dist/esm/components/Picture/index.js +19 -19
- package/dist/esm/components/PicturePro/PictureName.d.ts +30 -0
- package/dist/esm/components/PicturePro/PictureName.js +132 -0
- package/dist/esm/components/PicturePro/PictureUrl.d.ts +26 -0
- package/dist/esm/components/PicturePro/PictureUrl.js +93 -0
- package/dist/esm/components/PicturePro/index.d.ts +40 -0
- package/dist/esm/components/PicturePro/index.js +180 -0
- package/dist/esm/components/PicturePro/index.less +63 -0
- package/dist/esm/components/StatusSelect/index.js +4 -0
- package/dist/esm/constant.d.ts +1 -0
- package/dist/esm/constant.js +14 -13
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +4 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/type.d.ts +14 -14
- package/package.json +4 -4
|
@@ -11,11 +11,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
11
|
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
|
-
import React from
|
|
15
|
-
import { Image } from
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { Image } from "antd";
|
|
16
16
|
import ItemView from "../../../commonComponents/ItemView";
|
|
17
|
-
import {
|
|
18
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
18
|
var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
20
19
|
var _this = this;
|
|
21
20
|
_classCallCheck(this, BsChildPic);
|
|
@@ -32,7 +31,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
32
31
|
_defineProperty(this, "children", void 0);
|
|
33
32
|
_defineProperty(this, "dataType", void 0);
|
|
34
33
|
_defineProperty(this, "getParentId", function () {
|
|
35
|
-
var _this$id$split = _this.id.split(
|
|
34
|
+
var _this$id$split = _this.id.split("_"),
|
|
36
35
|
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
37
36
|
key = _this$id$split2[0],
|
|
38
37
|
name = _this$id$split2[1],
|
|
@@ -47,7 +46,6 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
47
46
|
}) : null;
|
|
48
47
|
});
|
|
49
48
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
50
|
-
var _BsGoodPic;
|
|
51
49
|
return /*#__PURE__*/React.createElement("span", {
|
|
52
50
|
onClick: function onClick(e) {
|
|
53
51
|
return e.stopPropagation();
|
|
@@ -56,7 +54,6 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
56
54
|
width: 60,
|
|
57
55
|
src: _this.getComponentValue(record)
|
|
58
56
|
}));
|
|
59
|
-
return (_BsGoodPic = BsGoodPic(_this.getComponentValue(record))) !== null && _BsGoodPic !== void 0 ? _BsGoodPic : '--';
|
|
60
57
|
});
|
|
61
58
|
_defineProperty(this, "renderLog", function (r) {
|
|
62
59
|
var id = _this.getParentId();
|
|
@@ -65,16 +62,10 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
65
62
|
});
|
|
66
63
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
67
64
|
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
68
|
-
var id = _this.getParentId();
|
|
69
|
-
var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
|
|
70
|
-
next['pic'] && prv.push(next['pic']);
|
|
71
|
-
return prv;
|
|
72
|
-
}, []);
|
|
73
|
-
return list;
|
|
74
65
|
});
|
|
75
66
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
67
|
var _this$getComponentVal;
|
|
77
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
68
|
+
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
78
69
|
});
|
|
79
70
|
_defineProperty(this, "editRender", function () {
|
|
80
71
|
return null;
|
|
@@ -88,11 +79,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
88
79
|
this.formField = options.id;
|
|
89
80
|
this.type = options.type;
|
|
90
81
|
this.componentConfig = options.componentConfig;
|
|
91
|
-
this.align =
|
|
82
|
+
this.align = "left";
|
|
92
83
|
this.width = 100;
|
|
93
84
|
this.isCombinationComponent = false;
|
|
94
85
|
this.canSort = false;
|
|
95
|
-
this.dataType =
|
|
86
|
+
this.dataType = "string";
|
|
96
87
|
this.children = [];
|
|
97
88
|
});
|
|
98
89
|
export default BsChildPic;
|