@kmkf-fe-packages/services-components 2.0.12-beta.5 → 2.0.12-beta.8

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.
@@ -9,16 +9,19 @@ import bs_e3 from "./bs_e3";
9
9
  import bs from "./bs";
10
10
  import wdt from "./wdt";
11
11
  import gy from "./gy";
12
+ import { getJstColumns } from "@kmkf-fe-packages/basic-components";
12
13
  import defaultColumns from "./defaultColumns";
13
14
  export var getColumnsMap = function getColumnsMap(args) {
14
15
  var _ref = args || {},
15
16
  _ref$text = _ref.text,
16
17
  text = _ref$text === void 0 ? "" : _ref$text;
17
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
18
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
18
19
  text: text
19
20
  })), bs_e3()), wdt({
20
21
  text: text
21
- })), gy()), {}, {
22
+ })), gy()), getJstColumns({
23
+ disabled: true
24
+ })), {}, {
22
25
  default: defaultColumns({
23
26
  text: text
24
27
  })["default"]
@@ -782,7 +782,15 @@ var GoodHeaderMap = {
782
782
  qty: "数量",
783
783
  saleAmount: "总金额",
784
784
  batchId: "批次号",
785
- isGift: "是否赠品",
785
+ isGift: {
786
+ name: "是否赠品",
787
+ transformValue: function transformValue(val) {
788
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
789
+ },
790
+ renderExport: function renderExport(val) {
791
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
792
+ }
793
+ },
786
794
  outerOiId: "子订单号"
787
795
  },
788
796
  moneyKey: "salePrice"
@@ -800,7 +808,15 @@ var GoodHeaderMap = {
800
808
  saleBasePrice: "原价",
801
809
  salePrice: "单价",
802
810
  qty: "数量",
803
- isGift: "是否赠品",
811
+ isGift: {
812
+ name: "是否赠品",
813
+ transformValue: function transformValue(val) {
814
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
815
+ },
816
+ renderExport: function renderExport(val) {
817
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
818
+ }
819
+ },
804
820
  remark: "备注"
805
821
  },
806
822
  moneyKey: "salePrice"
@@ -916,12 +932,16 @@ var CommonHeaderGoods = /*#__PURE__*/function () {
916
932
  component: GoodHeaderMap[_this2.type].headerMap[key].component || BsHeaderChild,
917
933
  name: ((_this2$itemKey = _this2.itemKey) === null || _this2$itemKey === void 0 ? void 0 : _this2$itemKey[key]) || GoodHeaderMap[_this2.type].headerMap[key].name,
918
934
  key: GoodHeaderMap[_this2.type].headerMap[key].key || key,
919
- width: GoodHeaderMap[_this2.type].headerMap[key].width || 80
935
+ width: GoodHeaderMap[_this2.type].headerMap[key].width || 80,
936
+ transformValue: GoodHeaderMap[_this2.type].headerMap[key].transformValue,
937
+ renderExport: GoodHeaderMap[_this2.type].headerMap[key].renderExport
920
938
  };
921
939
  prv.push(new target.component(_objectSpread(_objectSpread({}, options), {}, {
922
940
  name: target.name,
923
941
  id: "".concat(options.id, "_").concat(target.key),
924
- width: target.width
942
+ width: target.width,
943
+ transformValue: target.transformValue,
944
+ renderExport: target.renderExport
925
945
  })));
926
946
  }
927
947
  return prv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.0.12-beta.5",
3
+ "version": "2.0.12-beta.8",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.0.12-beta.3",
25
- "@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.3",
24
+ "@kmkf-fe-packages/basic-components": "2.0.12-beta.8",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.8",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "a4919f416d1d4598e6ef6aa315b8232042f5ac3c",
44
+ "gitHead": "d01b0263e68ca83e234b8341573f9064f6aabe91",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }