@kmkf-fe-packages/services-components 1.26.0 → 1.26.1

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.
@@ -20,42 +20,48 @@ var typeMap = {
20
20
  name: "jst",
21
21
  sendId: "sendId",
22
22
  sendName: "sendName",
23
- platformType: 'default'
23
+ platformType: 'default',
24
+ dataType: "arrayObject"
24
25
  },
25
26
  BS_SEND_GOOD: {
26
27
  key: "bsSendGood",
27
28
  name: "bs",
28
29
  sendId: "bsSendId",
29
30
  sendName: "bsSendName",
30
- platformType: 'default'
31
+ platformType: 'default',
32
+ dataType: "arrayObject"
31
33
  },
32
34
  BS_E3_SEND_GOOD: {
33
35
  key: "bsE3SendGood",
34
36
  name: "bsE3",
35
37
  sendId: "bsE3SendId",
36
38
  sendName: "bsE3SendName",
37
- platformType: 'bsE3'
39
+ platformType: 'bsE3',
40
+ dataType: "arrayObject"
38
41
  },
39
42
  WLN_SEND_GOOD: {
40
43
  key: "wlnSendGood",
41
44
  name: "wln",
42
45
  sendId: "wlnSendId",
43
46
  sendName: "wlnSendName",
44
- platformType: 'default'
47
+ platformType: 'default',
48
+ dataType: "arrayObject"
45
49
  },
46
50
  KM_SEND_GOOD: {
47
51
  key: "kmSendGood",
48
52
  name: "km",
49
53
  sendId: "kmSendId",
50
54
  sendName: "kmSendName",
51
- platformType: 'km'
55
+ platformType: 'km',
56
+ dataType: "weakenArray"
52
57
  },
53
58
  WDT_SEND_GOOD: {
54
59
  key: "wdtSendGood",
55
60
  name: "wdt",
56
61
  sendId: "wdtSendId",
57
62
  sendName: "wdtSendName",
58
- platformType: 'wdt'
63
+ platformType: 'wdt',
64
+ dataType: "weakenArray"
59
65
  }
60
66
  };
61
67
  var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
@@ -63,6 +69,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
63
69
  _typeMap$_options$typ,
64
70
  _typeMap$_options$typ2,
65
71
  _this$componentConfig3,
72
+ _typeMap$_options$typ3,
66
73
  _this$componentConfig4;
67
74
  _classCallCheck(this, JstSendGood);
68
75
  _defineProperty(this, "name", void 0);
@@ -80,17 +87,17 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
80
87
  _defineProperty(this, "dataType", void 0);
81
88
  _defineProperty(this, "format", void 0);
82
89
  _defineProperty(this, "getSortChildFields", function (type, options, fieldType) {
83
- var _typeMap$options$type, _typeMap$options$type2;
90
+ var _typeMap$options$type, _typeMap$options$type2, _typeMap$options$type3;
84
91
  var sendName = {
85
92
  name: "发货仓名称",
86
93
  key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.sendName),
87
- dataType: "arrayObject",
94
+ dataType: (_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.dataType,
88
95
  disabled: type === 'sendId'
89
96
  };
90
97
  var sendId = {
91
98
  name: "发货仓编码",
92
- key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.sendId),
93
- dataType: "arrayObject",
99
+ key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.sendId),
100
+ dataType: 'arrayObject',
94
101
  disabled: type === 'sendName'
95
102
  };
96
103
  sendName.options = fieldType && SendDataCenter.getInstance(fieldType).getSendData();
@@ -220,7 +227,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
220
227
  this.componentConfig = _options.componentConfig;
221
228
  this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || '', _options, _options.type);
222
229
  this.type = _options.type;
223
- this.dataType = "arrayObject";
230
+ this.dataType = (_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.dataType;
224
231
  this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
225
232
  required: true,
226
233
  validator: function validator(_, value) {
@@ -1,3 +1,3 @@
1
1
  import { ReissueLogistics, 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, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | JstSendGood | MsgStatus | ReissueLogistics | 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 | Payment | JstItemSelect | JstSupply | BsGoods | BsE3Goods | BsE3Reissue | 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 | MemberLevel | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsSystemOrder | JstSendGood | MsgStatus | BasicPosting | ReissueLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | 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 | MemberLevel | AfterSalesOrderId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
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": "1.26.0",
25
- "@kmkf-fe-packages/kmkf-utils": "1.26.0",
24
+ "@kmkf-fe-packages/basic-components": "1.26.1",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.26.1",
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": "adac4396452e1d31651bf5e712b78e96b6619954",
44
+ "gitHead": "e7853cbf5b2a779e8c785541968cf0b1e0fbb033",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }
@@ -1,113 +0,0 @@
1
- "use strict";
2
-
3
- var __assign = this && this.__assign || function () {
4
- __assign = Object.assign || function (t) {
5
- for (var s, i = 1, n = arguments.length; i < n; i++) {
6
- s = arguments[i];
7
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- exports.__esModule = true;
14
- var react_1 = require("react");
15
- var GetFormItem_1 = require("../../GetFormItem");
16
- var Common_1 = require("../../Common");
17
- var index_1 = require("../common/index");
18
- var ItemView_1 = require("../../../commonComponents/ItemView");
19
- var kmkf_utils_1 = require("@kmkf-fe-packages/kmkf-utils");
20
- var basic_components_1 = require("@kmkf-fe-packages/basic-components");
21
- var constant_1 = require("../../../constant");
22
- var BsGoods = /** @class */function () {
23
- function BsGoods(options) {
24
- var _this = this;
25
- var _a;
26
- this.renderClient = function (record) {
27
- var _a, _b;
28
- console.log("in renderclient");
29
- return !kmkf_utils_1.isNull(record === null || record === void 0 ? void 0 : record["" + _this.id]) ? react_1["default"].createElement(react_1["default"].Fragment, null, react_1["default"].createElement(ItemView_1["default"], {
30
- id: _this.id,
31
- label: _this.name,
32
- value: react_1["default"].createElement(Common_1.BsGoodsTable, {
33
- list: ((_a = record === null || record === void 0 ? void 0 : record["" + _this.id]) === null || _a === void 0 ? void 0 : _a.bsGoods) || [],
34
- showHeader: ((_b = _this.componentConfig) === null || _b === void 0 ? void 0 : _b.showHeader) || []
35
- })
36
- })) : null;
37
- };
38
- this.renderPc = function () {
39
- return null;
40
- };
41
- this.renderLog = function (r) {
42
- var _a;
43
- console.log("in renderclient");
44
- if (kmkf_utils_1.isNull(r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"])) return null;
45
- return react_1["default"].createElement(Common_1.BsGoodsTable, {
46
- list: (r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"]) || [],
47
- showHeader: ((_a = _this.componentConfig) === null || _a === void 0 ? void 0 : _a.showHeader) || []
48
- });
49
- };
50
- this.getComponentValue = function (r) {
51
- return r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"];
52
- };
53
- this.renderExport = function () {
54
- return null;
55
- };
56
- this.editRender = function (p) {
57
- var _a, _b, _c, _d, _e, _f;
58
- console.log("in renderclient");
59
- return react_1["default"].createElement(GetFormItem_1["default"], {
60
- title: _this.name,
61
- name: _this.id,
62
- rules: _this.rules,
63
- required: false,
64
- hidden: p === null || p === void 0 ? void 0 : p.hidden,
65
- display: p === null || p === void 0 ? void 0 : p.display,
66
- tooltip: ((_a = _this.componentConfig) === null || _a === void 0 ? void 0 : _a.showTooltip) ? (_b = _this.componentConfig) === null || _b === void 0 ? void 0 : _b.tooltip : "",
67
- component: react_1["default"].createElement(basic_components_1.BsGoods, __assign({}, _this.componentConfig, {
68
- maxLength: ((_c = _this.componentConfig) === null || _c === void 0 ? void 0 : _c.maxLength) || 20,
69
- shopId: (_d = _this.effects) === null || _d === void 0 ? void 0 : _d.shopId,
70
- shopList: ((_e = _this.effects) === null || _e === void 0 ? void 0 : _e.shopList) || [],
71
- companyKey: (_f = _this.effects) === null || _f === void 0 ? void 0 : _f.companyKey,
72
- width: "90%"
73
- }))
74
- });
75
- };
76
- this.filterConfig = function (item) {
77
- return [{
78
- searchDefaultConditions: constant_1.SYMBOL.like,
79
- type: item.type,
80
- id: item.id + "_bsGoods",
81
- name: item.name,
82
- filterComponentType: "Input"
83
- }];
84
- };
85
- this.name = options.name;
86
- this.id = options.id;
87
- this.sortField = options.id + "_bsGoods";
88
- this.formField = options.id + "_bsGoods";
89
- this.type = options.type;
90
- this.effects = options === null || options === void 0 ? void 0 : options.effects;
91
- this.isCombinationComponent = true;
92
- this.canSort = false;
93
- this.bsGoods = new index_1.BsHeaderGood(__assign(__assign({}, options), {
94
- id: options.id + "_bsGoods",
95
- name: "商品信息"
96
- }));
97
- this.children = [this.bsGoods];
98
- this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
99
- this.rules = ((_a = this === null || this === void 0 ? void 0 : this.componentConfig) === null || _a === void 0 ? void 0 : _a.required) ? [{
100
- required: true,
101
- validator: function validator(_, value) {
102
- var _a;
103
- if (!value || !((_a = value === null || value === void 0 ? void 0 : value.bsGoods) === null || _a === void 0 ? void 0 : _a.length)) {
104
- return Promise.reject(new Error("请选择bs商品"));
105
- }
106
- return Promise.resolve();
107
- }
108
- }] : [];
109
- this.dataType = "object";
110
- }
111
- return BsGoods;
112
- }();
113
- exports["default"] = BsGoods;