@kmkf-fe-packages/services-components 2.0.19-beta.39 → 2.0.19-beta.40

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,18 +9,20 @@ 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
+ import { getJstColumns, getWlnColumns } from "@kmkf-fe-packages/basic-components";
13
13
  import defaultColumns from "./defaultColumns";
14
14
  export var getColumnsMap = function getColumnsMap(args) {
15
15
  var _ref = args || {},
16
16
  _ref$text = _ref.text,
17
17
  text = _ref$text === void 0 ? "" : _ref$text;
18
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
18
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
19
19
  text: text
20
20
  })), bs_e3()), wdt({
21
21
  text: text
22
22
  })), gy()), getJstColumns({
23
23
  disabled: true
24
+ })), getWlnColumns({
25
+ text: text
24
26
  })), {}, {
25
27
  default: defaultColumns({
26
28
  text: text
@@ -55,10 +55,13 @@ var getColumns = function getColumns(_ref) {
55
55
  }
56
56
  }, {
57
57
  dataIndex: "orderPrice",
58
- title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
58
+ title: "\u6210\u4EA4\u603B\u91D1\u989D",
59
59
  align: "center",
60
60
  ellipsis: true,
61
- width: 100
61
+ width: 100,
62
+ render: function render(val, record) {
63
+ return (record.num || record.num === 0) && (val || val === 0) ? val * record.num : null;
64
+ }
62
65
  }, {
63
66
  dataIndex: "num",
64
67
  title: "".concat(text, "\u6570\u91CF"),
@@ -69,9 +69,17 @@ var GoodHeaderMap = {
69
69
  },
70
70
  orderPrice: {
71
71
  component: BsHeaderChild,
72
- name: "实付总金额",
72
+ name: "成交总金额",
73
73
  key: "orderPrice",
74
- width: 100
74
+ width: 100,
75
+ transformValue: function transformValue(val, record, parentName) {
76
+ var num = record["".concat(parentName, "_num")];
77
+ return (num || num === 0) && (val || val === 0) ? val * num : null;
78
+ },
79
+ renderExport: function renderExport(val, record, parentName) {
80
+ var num = record["".concat(parentName, "_num")];
81
+ return (num || num === 0) && (val || val === 0) ? val * num : null;
82
+ }
75
83
  },
76
84
  num: {
77
85
  component: BsHeaderChild,
@@ -99,7 +107,7 @@ var GoodHeaderMap = {
99
107
  specId: "SKUID",
100
108
  specNo: "商品SKU编码",
101
109
  specName: "商品SKU名称",
102
- orderPrice: "实付总金额",
110
+ orderPrice: "成交总金额",
103
111
  num: "数量",
104
112
  sharePrice: "分摊价",
105
113
  giftType: "赠品方式"
@@ -1068,6 +1076,81 @@ var GoodHeaderMap = {
1068
1076
  remark: "备注"
1069
1077
  },
1070
1078
  moneyKey: "salePrice"
1079
+ },
1080
+ WLN_GOODS: {
1081
+ headerMap: {
1082
+ wlnItemName: {
1083
+ name: '商品名称',
1084
+ width: 250
1085
+ },
1086
+ goodsCode: {
1087
+ name: '商品编码',
1088
+ width: 250
1089
+ },
1090
+ skuCode: {
1091
+ name: 'sku编码',
1092
+ width: 250
1093
+ },
1094
+ skuName: {
1095
+ name: '线上sku名称',
1096
+ width: 250
1097
+ },
1098
+ olnSkuCode: {
1099
+ name: '线上sku编码',
1100
+ width: 150
1101
+ },
1102
+ sku: {
1103
+ name: '线上sku id',
1104
+ width: 150
1105
+ },
1106
+ name: {
1107
+ name: '线上商品名称',
1108
+ width: 250
1109
+ },
1110
+ pic: {
1111
+ name: '线上图片',
1112
+ width: 100,
1113
+ component: BsHeaderPic
1114
+ },
1115
+ olnItemCOde: {
1116
+ name: '线上商品编码',
1117
+ width: 150
1118
+ },
1119
+ code: {
1120
+ name: '线上商品id',
1121
+ width: 150
1122
+ },
1123
+ barCode: {
1124
+ name: '商品条码',
1125
+ width: 150
1126
+ },
1127
+ money: {
1128
+ name: '实付金额',
1129
+ width: 100
1130
+ },
1131
+ number: {
1132
+ name: '数量',
1133
+ width: 100
1134
+ },
1135
+ share: '应收款',
1136
+ type: {
1137
+ name: '赠品类型',
1138
+ width: 100
1139
+ },
1140
+ isPackage: {
1141
+ width: 100,
1142
+ name: "是否组合商品",
1143
+ transformValue: function transformValue(val) {
1144
+ if (isNull(val)) return '--';
1145
+ return val ? '是' : '否';
1146
+ },
1147
+ renderExport: function renderExport(val) {
1148
+ if (isNull(val)) return '--';
1149
+ return val ? '是' : '否';
1150
+ }
1151
+ }
1152
+ },
1153
+ moneyKey: "money"
1071
1154
  }
1072
1155
  };
1073
1156
  GoodHeaderMap["WDT_REISSUE_GOODS"] = GoodHeaderMap["WDT_GOODS"];
@@ -1,6 +1,6 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
2
  import React from "react";
3
- import { BsHeaderGood } from "../../BS/common/index";
3
+ import CommonHeaderGoods from "../../CommonHeaderGood";
4
4
  declare class WlnGoods implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
@@ -14,7 +14,7 @@ declare class WlnGoods implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
- wlnGoods: BsHeaderGood;
17
+ wlnGoods: CommonHeaderGoods;
18
18
  constructor(options: PickOption);
19
19
  renderClient: (record: any) => React.JSX.Element | null;
20
20
  renderPc: () => null;
@@ -11,7 +11,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
11
11
  import React from "react";
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import { BsGoodsTable } from "../../Common";
14
- import { BsHeaderGood } from "../../BS/common/index";
14
+ import CommonHeaderGoods from "../../CommonHeaderGood";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { WlnGoods as Goods } from "@kmkf-fe-packages/basic-components";
@@ -102,7 +102,7 @@ var WlnGoods = /*#__PURE__*/_createClass(function WlnGoods(options) {
102
102
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
103
103
  this.isCombinationComponent = true;
104
104
  this.canSort = false;
105
- this.wlnGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
105
+ this.wlnGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
106
106
  id: "".concat(options.id, "_wlnGoods"),
107
107
  name: "商品信息"
108
108
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.0.19-beta.39",
3
+ "version": "2.0.19-beta.40",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.0.19-beta.39",
24
+ "@kmkf-fe-packages/basic-components": "2.0.19-beta.40",
25
25
  "@kmkf-fe-packages/kmkf-utils": "2.0.19-beta.39",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "4f75174b75bae6b588f989301fcc7556a75fca73",
44
+ "gitHead": "ece6d4949ec9a05a80bfd43f219791bca2a86b03",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }