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

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.
@@ -1208,11 +1208,11 @@ var GoodHeaderMap = {
1208
1208
  name: "总金额",
1209
1209
  transformValue: function transformValue(val, record, parentName) {
1210
1210
  if (!record) return "--";
1211
- return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1211
+ return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1212
1212
  },
1213
1213
  renderExport: function renderExport(val, record, parentName) {
1214
1214
  if (!record) return "--";
1215
- return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1215
+ return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1216
1216
  }
1217
1217
  },
1218
1218
  batchId: "批次号",
@@ -1320,11 +1320,11 @@ var GoodHeaderMap = {
1320
1320
  name: "总金额",
1321
1321
  transformValue: function transformValue(val, record, parentName) {
1322
1322
  if (!record) return "--";
1323
- return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1323
+ return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1324
1324
  },
1325
1325
  renderExport: function renderExport(val, record, parentName) {
1326
1326
  if (!record) return "--";
1327
- return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1327
+ return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1328
1328
  }
1329
1329
  },
1330
1330
  batchId: "批次号",
@@ -1500,14 +1500,6 @@ var GoodHeaderMap = {
1500
1500
  name: "系统规格ID",
1501
1501
  width: 150
1502
1502
  },
1503
- skuId: {
1504
- name: "平台规格ID",
1505
- width: 150
1506
- },
1507
- outerSkuId: {
1508
- name: "平台规格编码",
1509
- width: 150
1510
- },
1511
1503
  itemSysId: {
1512
1504
  name: "系统商品ID",
1513
1505
  width: 150
@@ -17,14 +17,6 @@ var INPUT_MAP = {
17
17
  key: "businessOrderNo",
18
18
  disabled: true,
19
19
  placeholder: "自动获取无需填写"
20
- },
21
- REPAIR_ORDER_SN: {
22
- key: "repairOrderSn",
23
- placeholder: "请输入维修单编号"
24
- },
25
- REPAIR_ORDER_ID: {
26
- key: "repairOrderId",
27
- placeholder: "请输入维修单id"
28
20
  }
29
21
  };
30
22
  var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
@@ -70,7 +62,7 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
70
62
  return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
71
63
  });
72
64
  _defineProperty(this, "editRender", function (p) {
73
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5;
65
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
74
66
  return /*#__PURE__*/React.createElement(GetFormItem, {
75
67
  title: _this.name,
76
68
  name: _this.id,
@@ -78,10 +70,10 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
78
70
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
79
71
  display: p === null || p === void 0 ? void 0 : p.display,
80
72
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
81
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
73
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
82
74
  component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
83
75
  placeholder: INPUT_MAP[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
84
- disabled: INPUT_MAP[_this.type].disabled || ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.disabled)
76
+ disabled: INPUT_MAP[_this.type].disabled
85
77
  }))
86
78
  });
87
79
  });
@@ -184,7 +184,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
184
184
  });
185
185
  _defineProperty(this, "filterConfig", function (item) {
186
186
  var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
187
- return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD"].includes(_this.type) ? {
187
+ return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD"].includes(_this.type) ? {
188
188
  searchDefaultConditions: SYMBOL.in,
189
189
  type: item.type,
190
190
  id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
@@ -39,15 +39,10 @@ var typeMap = {
39
39
  label: "等待执行",
40
40
  color: "#e7780f"
41
41
  }, {
42
- oldValue: "不满足条件,无需执行",
42
+ oldValue: "等待发送",
43
43
  value: "不满足条件,无需执行",
44
44
  label: "不满足条件,无需执行",
45
45
  color: "#8A8A8A"
46
- }, {
47
- oldValue: "暂不满足条件,等待执行",
48
- value: "暂不满足条件,等待执行",
49
- label: "暂不满足条件,等待执行",
50
- color: "#4D90F7"
51
46
  }],
52
47
  key: "msgStatusValues",
53
48
  code: "msgStatus4Search",
@@ -28,14 +28,7 @@ declare class OrderSubForm implements ComponentInterface {
28
28
  expressDateInstance: InstanceType<typeof ExpressData>;
29
29
  children: ComponentInterface[];
30
30
  dataType: ComponentInterface["dataType"];
31
- sortChildField: {
32
- name: string;
33
- key: string;
34
- dataType: string;
35
- [key: string]: any;
36
- }[];
37
31
  constructor(options: PickOption);
38
- getSortChildFields: () => any;
39
32
  renderTransformItem: (item: subConfigType, val: any) => any;
40
33
  getNewTableHeader: () => any;
41
34
  renderTabel: (list: any) => React.JSX.Element;
@@ -48,19 +48,6 @@ function OrderSubForm(options) {
48
48
  _defineProperty(this, "expressDateInstance", void 0);
49
49
  _defineProperty(this, "children", void 0);
50
50
  _defineProperty(this, "dataType", void 0);
51
- _defineProperty(this, "sortChildField", void 0);
52
- _defineProperty(this, "getSortChildFields", function () {
53
- var orderSubformColumns = getOrderSubformColumns();
54
- return orderSubformColumns.filter(function (item) {
55
- return !["picUrl"].includes(item.dataIndex);
56
- }).map(function (item) {
57
- return {
58
- name: item.title,
59
- key: "".concat(_this.id, "_").concat(item.dataIndex),
60
- dataType: "arrayObject"
61
- };
62
- });
63
- });
64
51
  _defineProperty(this, "renderTransformItem", function (item, val) {
65
52
  var _getSelectWidgetMap;
66
53
  var mapValue = (_getSelectWidgetMap = getSelectWidgetMap(_this.expressDateInstance)) === null || _getSelectWidgetMap === void 0 ? void 0 : _getSelectWidgetMap[item.dataIndex];
@@ -280,6 +267,5 @@ function OrderSubForm(options) {
280
267
  });
281
268
  this.dataType = "object";
282
269
  this.expressDateInstance = ExpressData.getInstance();
283
- this.sortChildField = this.getSortChildFields();
284
270
  });
285
271
  export default OrderSubForm;
@@ -36,5 +36,6 @@ declare class PaymentAmount implements ComponentInterface {
36
36
  formatFilterValue: (val: Array<number | null>) => (number | null)[];
37
37
  filterFn: (value: string) => (i: Record) => boolean;
38
38
  };
39
+ formDataTransform: (value: string) => string | number;
39
40
  }
40
41
  export default PaymentAmount;
@@ -132,6 +132,10 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
132
132
  }
133
133
  };
134
134
  });
135
+ _defineProperty(this, "formDataTransform", function (value) {
136
+ var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
137
+ return isNumber.test(value) ? Number(value) : value;
138
+ });
135
139
  this.name = '打款金额';
136
140
  this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
137
141
  this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
@@ -36,10 +36,6 @@ var selectTypeMap = {
36
36
  key: "agreeRefundStatusValue",
37
37
  info: "agreeRefundStatusReason"
38
38
  }),
39
- REPAIR_ORDER_STATUS: getSelectTypeAttribute({
40
- key: "repairOrderStatusValue",
41
- info: "repairOrderStatusReason"
42
- }),
43
39
  REJECT_REFUND_STATUS: getSelectTypeAttribute({
44
40
  key: "rejectRefundStatusValue",
45
41
  info: "rejectRefundStatusReason"
@@ -19,7 +19,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
19
19
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
20
  import React from "react";
21
21
  import { Table } from "antd";
22
- import { SubForm as SubFormComponent, renderMap, renderSplitMap } from "@kmkf-fe-packages/basic-components";
22
+ import { SubForm as SubFormComponent, renderMap } from "@kmkf-fe-packages/basic-components";
23
23
  import { BsHeaderChild } from "../BS/common";
24
24
  import HeaderChildFile from "./children/HeaderChildFile";
25
25
  import HeaderChildPic from "./children/HeaderChildPic";
@@ -40,7 +40,32 @@ var ChildrenMap = {
40
40
  },
41
41
  RADIO: {
42
42
  component: BsHeaderChild
43
+ // transformValue: (value: any) => {
44
+ // if (!value?.value) return null;
45
+ // return `${value?.value}
46
+ // ${
47
+ // value?.value &&
48
+ // typeof value.value === "string" &&
49
+ // value?.value?.indexOf("其他") > -1 &&
50
+ // value?.other
51
+ // ? `(${value?.other})`
52
+ // : ""
53
+ // }`;
54
+ // },
55
+ // renderExport: (value: any) => {
56
+ // if (!value?.value) return null;
57
+ // return `${value?.value}
58
+ // ${
59
+ // value?.value &&
60
+ // typeof value.value === "string" &&
61
+ // value?.value?.indexOf("其他") > -1 &&
62
+ // value?.other
63
+ // ? `(${value?.other})`
64
+ // : ""
65
+ // }`;
66
+ // },
43
67
  },
68
+
44
69
  CHECKBOX: {
45
70
  component: BsHeaderChild,
46
71
  transformValue: function transformValue(value) {
@@ -68,18 +93,6 @@ var ChildrenMap = {
68
93
  },
69
94
  FILE: {
70
95
  component: HeaderChildFile
71
- },
72
- jbCFrJV4m7_trajectoryCompany: {
73
- component: BsHeaderChild
74
- },
75
- jbCFrJV4m7_trajectoryCode: {
76
- component: BsHeaderChild
77
- },
78
- "0qFEv9GEyd_returnLogisticsCompany": {
79
- component: BsHeaderChild
80
- },
81
- "0qFEv9GEyd_returnLogisticsCode": {
82
- component: BsHeaderChild
83
96
  }
84
97
  };
85
98
  var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
@@ -139,23 +152,12 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
139
152
  ellipsis: true,
140
153
  width: item.width,
141
154
  render: function render(val) {
142
- if (renderMap[item.workOrderComponentType]) {
143
- return /*#__PURE__*/React.createElement("div", {
144
- style: {
145
- width: "100%",
146
- overflow: "auto"
147
- }
148
- }, renderMap[item.workOrderComponentType](val));
149
- } else if (renderSplitMap[item.key]) {
150
- return /*#__PURE__*/React.createElement("div", {
151
- style: {
152
- width: "100%",
153
- overflow: "auto"
154
- }
155
- }, renderSplitMap[item.key](val));
156
- } else {
157
- return /*#__PURE__*/React.createElement("span", null, val);
158
- }
155
+ return renderMap[item.workOrderComponentType] ? /*#__PURE__*/React.createElement("div", {
156
+ style: {
157
+ width: "100%",
158
+ overflow: "auto"
159
+ }
160
+ }, renderMap[item.workOrderComponentType](val)) : /*#__PURE__*/React.createElement("span", null, val);
159
161
  }
160
162
  };
161
163
  })) || []));
@@ -266,9 +268,9 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
266
268
  this.isCombinationComponent = true;
267
269
  this.canSort = false;
268
270
  this.children = (this.getNewTableHeader() || []).map(function (item) {
269
- var _ref2 = ChildrenMap[item.workOrderComponentType] || ChildrenMap[item.key],
270
- component = _ref2.component,
271
- other = _objectWithoutProperties(_ref2, _excluded);
271
+ var _ChildrenMap$item$wor = ChildrenMap[item.workOrderComponentType],
272
+ component = _ChildrenMap$item$wor.component,
273
+ other = _objectWithoutProperties(_ChildrenMap$item$wor, _excluded);
272
274
  return new component(_objectSpread(_objectSpread({}, options), {}, {
273
275
  name: item.name,
274
276
  id: "".concat(options.id, "_productList_").concat(item.key)
@@ -1,3 +1,3 @@
1
1
  import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, 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, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonInput | BasicInput | JstSendGood | MsgStatus | OrderSubForm | PublicGoods | StatusSelect | SubForm | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | CommonInput | BasicInput | JstSendGood | MsgStatus | OrderSubForm | StatusSelect | SubForm | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | FlowOverallStatusSelect;
@@ -228,7 +228,6 @@ export var factory = function factory(type, options) {
228
228
  case "AGREE_RETURN_GOODS_STATUS":
229
229
  case "REJECT_RETURN_GOODS_STATUS":
230
230
  case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
231
- case "REPAIR_ORDER_STATUS":
232
231
  return new StatusSelect(options);
233
232
  case "RETURN_GOODS_STATUS":
234
233
  case "EXCHANGE_STATUS":
@@ -265,8 +264,6 @@ export var factory = function factory(type, options) {
265
264
  // 万里牛商品
266
265
  return new WdtGoods(options);
267
266
  case "BUSINESS_ORDER_NO":
268
- case "REPAIR_ORDER_SN":
269
- case "REPAIR_ORDER_ID":
270
267
  return new CommonInput(options);
271
268
  case "PAYMENT_VOUCHER_CODE":
272
269
  return new PaymentVoucherCode(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.2.39-beta.8",
3
+ "version": "2.2.39",
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.2.39-beta.8",
25
- "@kmkf-fe-packages/kmkf-utils": "2.2.39-beta.7",
24
+ "@kmkf-fe-packages/basic-components": "2.2.39",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.2.39",
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": "2c7c7de0f9e5d64f6342c42338bb0e9a51f47f35",
44
+ "gitHead": "52895fe5fa612a713b710ecc5cff271eb4b4036b",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }