@kmkf-fe-packages/services-components 1.17.8-beta.25 → 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;
@@ -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 | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | KmErpSendGood | LogisticsMoreInterception | MsgStatus | SubForm | ThirdItemSelect | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | 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 | 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;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.17.8-beta.25",
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": "2f39a8602f4fd838ac09051a79a354e9c7a6013f",
44
+ "gitHead": "9de0e2e79d9f3aeacd388c9ed1319a11a0ca96f8",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }