@kmkf-fe-packages/services-components 0.28.2-alpha.6 → 0.28.2-alpha.7

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
  }
@@ -132,7 +132,7 @@ var OrderNum = function OrderNum(_ref3) {
132
132
  if (!value) return;
133
133
  setGlobalLoading(true);
134
134
  queryOrderDetail(value);
135
- typeof onTradeIdBlur === 'function' && onTradeIdBlur();
135
+ typeof onTradeIdBlur === 'function' && onTradeIdBlur(value);
136
136
  };
137
137
  useEffect(function () {
138
138
  document.body.addEventListener('click', function () {
@@ -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;
@@ -29,9 +29,9 @@ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
29
29
  _this = _super.call.apply(_super, [this].concat(args));
30
30
  _defineProperty(_assertThisInitialized(_this), "editRender", function (p) {
31
31
  var _this$componentConfig, _this$componentConfig2;
32
- var onTradeIdBlur = function onTradeIdBlur(e) {
32
+ var onTradeIdBlur = function onTradeIdBlur(value) {
33
33
  var _p$onBlur;
34
- p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, 'tradeId');
34
+ p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, value, 'tradeId');
35
35
  };
36
36
  return /*#__PURE__*/React.createElement(GetFormItem, {
37
37
  title: _this.name,
@@ -16,7 +16,8 @@ declare class PaymentTid implements ComponentInterface {
16
16
  dataType: ComponentInterface['dataType'];
17
17
  constructor(options: PickOption);
18
18
  renderClient: (record: any) => React.JSX.Element | null;
19
- renderPc: (value: unknown, record: any) => React.JSX.Element;
19
+ copyHandle: (text: string) => void;
20
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
20
21
  renderLog: (r: Record) => React.JSX.Element | null;
21
22
  getComponentValue: (r: Record) => any;
22
23
  renderExport: (value: string) => string;
@@ -6,10 +6,13 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  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); }
8
8
  import React from 'react';
9
+ import { message } from 'antd';
9
10
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
11
+ import { CopyOutlined } from '@ant-design/icons';
10
12
  import GetFormItem from "../GetFormItem";
11
13
  import ItemView from "../../commonComponents/ItemView";
12
14
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
+ import copy from 'copy-to-clipboard';
13
16
  import { SYMBOL } from "../../constant";
14
17
  var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
15
18
  var _this = this;
@@ -34,9 +37,29 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
34
37
  value: record === null || record === void 0 ? void 0 : record[_this.id]
35
38
  }) : null;
36
39
  });
40
+ _defineProperty(this, "copyHandle", function (text) {
41
+ copy(text);
42
+ message.success('复制成功');
43
+ });
37
44
  _defineProperty(this, "renderPc", function (value, record) {
38
- var _record$_this$id;
39
- return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--');
45
+ if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
46
+ return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
47
+ }
48
+ return /*#__PURE__*/React.createElement("span", {
49
+ onClick: function onClick(e) {
50
+ return e.stopPropagation();
51
+ }
52
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
53
+ onClick: function onClick(e) {
54
+ _this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
55
+ e.stopPropagation();
56
+ }
57
+ }, /*#__PURE__*/React.createElement("span", {
58
+ style: {
59
+ paddingLeft: '4px',
60
+ cursor: 'pointer'
61
+ }
62
+ }, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
40
63
  });
41
64
  _defineProperty(this, "renderLog", function (r) {
42
65
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) 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, WdtGoods, CommonInput, PaymentVoucherCode } from "./index";
2
2
  import { PickOption } from "./type";
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 | WdtGoods | CommonInput | PaymentVoucherCode;
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 | WdtGoods | PaymentVoucherCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.28.2-alpha.6",
3
+ "version": "0.28.2-alpha.7",
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": "3c2a6738436fbfbc34829fa57032dd1a3c904718",
40
+ "gitHead": "cc4f2f7b671ba6db5d5606ac95be871f81f9f52a",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }