@kmkf-fe-packages/services-components 0.28.2-rc.14 → 0.28.2-rc.16

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,3 +1,4 @@
1
1
  import React from 'react';
2
+ import './index.less';
2
3
  declare const OrderNum: ({ value, onChange, onTradeIdBlur, ...otherProp }: any) => React.JSX.Element;
3
4
  export default OrderNum;
@@ -30,21 +30,21 @@ import get from 'lodash/get';
30
30
  import { ErpScenes } from "../../../../index";
31
31
  import { queryOrderDetail, queryDouDianOpenId } from "./communication";
32
32
  import noImage from "./noImage.png";
33
- import styles from "./index.module.scss";
33
+ import "./index.less";
34
34
  var Card = function Card(_ref) {
35
35
  var tid = _ref.tid,
36
36
  sid = _ref.sid,
37
37
  itemList = _ref.itemList,
38
38
  sysStatusName = _ref.sysStatusName;
39
39
  return /*#__PURE__*/React.createElement("div", {
40
- className: styles.card
40
+ className: "erp-suborder-card"
41
41
  }, /*#__PURE__*/React.createElement("span", {
42
42
  style: {
43
43
  display: 'flex',
44
44
  alignItems: 'center'
45
45
  }
46
46
  }, sysStatusName && /*#__PURE__*/React.createElement("span", {
47
- className: styles.tag
47
+ className: "tag"
48
48
  }, sysStatusName), /*#__PURE__*/React.createElement("span", {
49
49
  style: {
50
50
  marginLeft: '8px',
@@ -53,7 +53,7 @@ var Card = function Card(_ref) {
53
53
  }
54
54
  }, /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u5355\u53F7: ", /*#__PURE__*/React.createElement("b", null, sid)), /*#__PURE__*/React.createElement("span", null, "\u5E73\u53F0\u5355\u53F7: ", /*#__PURE__*/React.createElement("b", null, tid)))), itemList.map(function (item) {
55
55
  return /*#__PURE__*/React.createElement("div", {
56
- className: styles.good
56
+ className: "good"
57
57
  }, item.picUrl ? /*#__PURE__*/React.createElement(Image, {
58
58
  width: 56,
59
59
  src: item.picUrl
@@ -65,9 +65,9 @@ var Card = function Card(_ref) {
65
65
  height: '56px'
66
66
  }
67
67
  }), /*#__PURE__*/React.createElement("div", {
68
- className: styles.content
68
+ className: "content"
69
69
  }, /*#__PURE__*/React.createElement("span", null, item.title), /*#__PURE__*/React.createElement("span", null, item.productCode)), /*#__PURE__*/React.createElement("div", {
70
- className: styles.price
70
+ className: "price"
71
71
  }, item.price && /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("b", {
72
72
  style: {
73
73
  color: '#ff7a45',
@@ -104,7 +104,7 @@ var SubOrderList = function SubOrderList(_ref2) {
104
104
  height: '300px',
105
105
  overflowY: 'auto'
106
106
  },
107
- className: styles.itemWrap,
107
+ className: "erp-suborder-itemWrap",
108
108
  onClick: function onClick(e) {
109
109
  return e.stopPropagation();
110
110
  }
@@ -1,7 +1,7 @@
1
- .itemWrap {
1
+ .erp-suborder-itemWrap {
2
2
  width: 420px;
3
3
  }
4
- .card {
4
+ .erp-suborder-card {
5
5
  margin-bottom: 16px;
6
6
  .tag {
7
7
  padding: 2px;
@@ -49,8 +49,11 @@ var TrajectoryLastLogisticsInfo = /*#__PURE__*/_createClass(function TrajectoryL
49
49
  return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).join();
50
50
  });
51
51
  _defineProperty(this, "renderExport", function (value, record) {
52
- var _this$getComponentVal;
53
- return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
52
+ var list = record === null || record === void 0 ? void 0 : record[_this.id];
53
+ if ((list === null || list === void 0 ? void 0 : list.length) === 0) return '--';
54
+ return list === null || list === void 0 ? void 0 : list.map(function (item, index) {
55
+ return "\u5305\u88F9".concat(index + 1, ": ").concat(item !== null && item !== void 0 ? item : '--');
56
+ });
54
57
  });
55
58
  _defineProperty(this, "editRender", function () {
56
59
  return null;
@@ -22,7 +22,6 @@ declare class TrajectoryLastUpdateTime implements ComponentInterface {
22
22
  renderClient: () => null;
23
23
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
24
24
  renderLog: (r: Record) => React.JSX.Element | null;
25
- getComponentValue: (r: Record) => any;
26
25
  renderExport: (value: string, record: Record) => any;
27
26
  editRender: () => null;
28
27
  filterConfig: (item: ColumnConfig) => never[];
@@ -45,12 +45,12 @@ var TrajectoryLastUpdateTime = /*#__PURE__*/_createClass(function TrajectoryLast
45
45
  if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
46
46
  return _this.renderPc(undefined, r);
47
47
  });
48
- _defineProperty(this, "getComponentValue", function (r) {
49
- return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).join();
50
- });
51
48
  _defineProperty(this, "renderExport", function (value, record) {
52
- var _this$getComponentVal;
53
- return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
49
+ var list = record === null || record === void 0 ? void 0 : record[_this.id];
50
+ if ((list === null || list === void 0 ? void 0 : list.length) === 0) return '--';
51
+ return list === null || list === void 0 ? void 0 : list.map(function (item, index) {
52
+ return "\u5305\u88F9".concat(index + 1, ": ").concat(item !== null && item !== void 0 ? item : '--');
53
+ });
54
54
  });
55
55
  _defineProperty(this, "editRender", function () {
56
56
  return null;
@@ -25,7 +25,6 @@ declare class trajectoryStatus implements ComponentInterface {
25
25
  renderClient: () => null;
26
26
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
27
27
  renderLog: (r: Record) => React.JSX.Element | null;
28
- getComponentValue: (r: Record) => any;
29
28
  renderExport: (value: string, record: Record) => any;
30
29
  editRender: () => null;
31
30
  filterConfig: (item: ColumnConfig) => never[];
@@ -62,12 +62,13 @@ var trajectoryStatus = /*#__PURE__*/_createClass(function trajectoryStatus(optio
62
62
  if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
63
63
  return _this.renderPc(undefined, r);
64
64
  });
65
- _defineProperty(this, "getComponentValue", function (r) {
66
- return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).join();
67
- });
68
65
  _defineProperty(this, "renderExport", function (value, record) {
69
- var _this$getComponentVal;
70
- return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
66
+ var list = record === null || record === void 0 ? void 0 : record[_this.id];
67
+ if ((list === null || list === void 0 ? void 0 : list.length) === 0) return '--';
68
+ return list === null || list === void 0 ? void 0 : list.map(function (item, index) {
69
+ var _this$expressIntercep2, _this$expressIntercep3;
70
+ return "\u5305\u88F9".concat(index + 1, ": ").concat((_this$expressIntercep2 = (_this$expressIntercep3 = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep3 === void 0 ? void 0 : _this$expressIntercep3[item]) !== null && _this$expressIntercep2 !== void 0 ? _this$expressIntercep2 : '--');
71
+ });
71
72
  });
72
73
  _defineProperty(this, "editRender", function () {
73
74
  return null;
@@ -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, 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, CommonInput, PaymentVoucherCode } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BuyerNick | CommonInput | CompletedUser | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | PaymentVoucherCode;
3
+ export declare const factory: (type: string, options: PickOption) => BasicInput | 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 | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | 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 | MsgStatus | CommonInput | PaymentVoucherCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.28.2-rc.14",
3
+ "version": "0.28.2-rc.16",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "67e4702764966e9b482d5d47b8baf7803b0462ca",
40
+ "gitHead": "133a5dd2b05abd4f5bbf8353708cc15361eee750",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }