@kmkf-fe-packages/services-components 1.17.8-beta.24 → 1.17.8-beta.26

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.
@@ -1,7 +1,7 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
2
  import React from "react";
3
- import { BsHeaderGood } from "../../BS/common/index";
4
- declare class BsGoods implements ComponentInterface {
3
+ import CommonHeaderGoods from "../../CommonHeaderGood";
4
+ declare class BSE3Goods implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
7
  sortField: string;
@@ -14,7 +14,7 @@ declare class BsGoods implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
- bsGoods: BsHeaderGood;
17
+ bsE3Goods: CommonHeaderGoods;
18
18
  constructor(options: PickOption);
19
19
  renderClient: (record: any) => React.JSX.Element | null;
20
20
  renderPc: () => null;
@@ -30,4 +30,4 @@ declare class BsGoods implements ComponentInterface {
30
30
  filterComponentType: "Input";
31
31
  }[];
32
32
  }
33
- export default BsGoods;
33
+ export default BSE3Goods;
@@ -11,15 +11,15 @@ 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
- import { BsGoods as Goods } from "@kmkf-fe-packages/basic-components";
17
+ import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
- var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
19
+ var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
20
20
  var _this = this,
21
21
  _this$componentConfig6;
22
- _classCallCheck(this, BsGoods);
22
+ _classCallCheck(this, BSE3Goods);
23
23
  _defineProperty(this, "name", void 0);
24
24
  _defineProperty(this, "id", void 0);
25
25
  _defineProperty(this, "sortField", void 0);
@@ -32,14 +32,15 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
32
32
  _defineProperty(this, "canSort", void 0);
33
33
  _defineProperty(this, "children", void 0);
34
34
  _defineProperty(this, "dataType", void 0);
35
- _defineProperty(this, "bsGoods", void 0);
35
+ _defineProperty(this, "bsE3Goods", void 0);
36
36
  _defineProperty(this, "renderClient", function (record) {
37
37
  var _record, _this$componentConfig;
38
38
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
39
39
  id: _this.id,
40
40
  label: _this.name,
41
41
  value: /*#__PURE__*/React.createElement(BsGoodsTable, {
42
- list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.bsGoods) || [],
42
+ type: _this.type,
43
+ list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.bsE3Goods) || [],
43
44
  showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
44
45
  })
45
46
  })) : null;
@@ -51,6 +52,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
51
52
  var _this$componentConfig2;
52
53
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsE3Goods")])) return null;
53
54
  return /*#__PURE__*/React.createElement(BsGoodsTable, {
55
+ type: _this.type,
54
56
  list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsE3Goods")]) || [],
55
57
  showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
56
58
  });
@@ -76,6 +78,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
76
78
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
77
79
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
78
80
  companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
81
+ type: _this.type,
79
82
  width: "90%"
80
83
  }))
81
84
  });
@@ -99,22 +102,22 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
99
102
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
100
103
  this.isCombinationComponent = true;
101
104
  this.canSort = false;
102
- this.bsGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
105
+ this.bsE3Goods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
103
106
  id: "".concat(options.id, "_bsE3Goods"),
104
107
  name: "商品信息"
105
108
  }));
106
- this.children = [this.bsGoods];
109
+ this.children = [this.bsE3Goods];
107
110
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
108
111
  this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
109
112
  required: true,
110
113
  validator: function validator(_, value) {
111
- var _value$bsGoods;
112
- if (!value || !(value !== null && value !== void 0 && (_value$bsGoods = value.bsGoods) !== null && _value$bsGoods !== void 0 && _value$bsGoods.length)) {
113
- return Promise.reject(new Error("请选择bs商品"));
114
+ var _value$bsE3Goods;
115
+ if (!value || !(value !== null && value !== void 0 && (_value$bsE3Goods = value.bsE3Goods) !== null && _value$bsE3Goods !== void 0 && _value$bsE3Goods.length)) {
116
+ return Promise.reject(new Error("请选择百胜E3商品"));
114
117
  }
115
118
  return Promise.resolve();
116
119
  }
117
120
  }] : [];
118
121
  this.dataType = "object";
119
122
  });
120
- export default BsGoods;
123
+ export default BSE3Goods;
@@ -13,6 +13,7 @@ declare class MsgStatus implements ComponentInterface {
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface['dataType'];
16
+ options: ComponentInterface['options'];
16
17
  constructor(options: PickOption);
17
18
  renderClient: (record: any) => React.JSX.Element | null;
18
19
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -67,7 +67,8 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
67
67
  var _this = this,
68
68
  _typeMap$options$type,
69
69
  _typeMap$options$type2,
70
- _this$componentConfig5;
70
+ _this$componentConfig5,
71
+ _typeMap$options$type3;
71
72
  _classCallCheck(this, MsgStatus);
72
73
  _defineProperty(this, "name", void 0);
73
74
  _defineProperty(this, "id", void 0);
@@ -81,6 +82,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
81
82
  _defineProperty(this, "canSort", void 0);
82
83
  _defineProperty(this, "children", void 0);
83
84
  _defineProperty(this, "dataType", void 0);
85
+ _defineProperty(this, "options", void 0);
84
86
  _defineProperty(this, "renderClient", function (record) {
85
87
  var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
86
88
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
@@ -177,7 +179,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
177
179
  this.name = options.name;
178
180
  this.id = options.id;
179
181
  this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
180
- this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code);
182
+ this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
181
183
  this.type = options.type;
182
184
  this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
183
185
  options: typeMap[options.type].options
@@ -185,7 +187,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
185
187
  this.isCombinationComponent = false;
186
188
  this.canSort = false;
187
189
  this.children = [];
188
- this.dataType = 'arrayObject';
190
+ this.dataType = 'weakenArray';
189
191
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
190
192
  required: true,
191
193
  validator: function validator(_, value) {
@@ -201,5 +203,6 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
201
203
  }
202
204
  }] : [];
203
205
  this.align = 'left';
206
+ this.options = (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.options;
204
207
  });
205
208
  export default MsgStatus;
@@ -1,3 +1,3 @@
1
1
  import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId, BsE3Goods } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BsE3Goods | ItemEnCode | JstItemSelect | JstLogistics | JstSendGood | JstSupply | KmErpSendGood | ThirdItemSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | Payment | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BsE3Goods | ItemEnCode | JstItemSelect | JstLogistics | JstSendGood | JstSupply | KmErpSendGood | MsgStatus | ThirdItemSelect | BasicDataTime | TradeDateTime | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | Payment | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
@@ -47,7 +47,7 @@ export interface ComponentInterface {
47
47
  rules?: any[];
48
48
  width?: number;
49
49
  align?: ALignType;
50
- dataType: "string" | "number" | "boolean" | "array" | "range" | "object" | "arrayObject";
50
+ dataType: "string" | "number" | "boolean" | "array" | "range" | "object" | "weakenArray" | "arrayObject";
51
51
  format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup" | "object";
52
52
  options?: Array<any>;
53
53
  templateId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.17.8-beta.24",
3
+ "version": "1.17.8-beta.26",
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": "1.17.8-beta.24",
24
+ "@kmkf-fe-packages/basic-components": "1.17.8-beta.26",
25
25
  "@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.23",
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": "f9d1b5b48571318aee4758769afbf0f2ecf213ed",
44
+ "gitHead": "9de0e2e79d9f3aeacd388c9ed1319a11a0ca96f8",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }