@kmkf-fe-packages/services-components 0.10.0-alpha.0 → 0.10.0-alpha.2

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.
@@ -16,7 +16,7 @@ declare class FlowMarkSelect implements ComponentInterface {
16
16
  dataType: ComponentInterface["dataType"];
17
17
  constructor(options: PickOption);
18
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
19
- renderLog: (r: Record) => React.JSX.Element | null;
19
+ renderLog: (r: Record) => any;
20
20
  getComponentValue: (r: Record) => any;
21
21
  renderExport: (value: any, record: Record) => any;
22
22
  renderClient: (record: any) => React.JSX.Element | null;
@@ -15,6 +15,12 @@ import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
15
15
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import GetFormItem from "../GetFormItem";
17
17
  import { SYMBOL } from "../../constant";
18
+ import xing from "../../commonComponents/SelectMark/img/xingxing.png";
19
+ import xingRed from "../../commonComponents/SelectMark/img/xingxing-red.png";
20
+ import xingYellow from "../../commonComponents/SelectMark/img/xingxing-yellow.png";
21
+ import xingBlue from "../../commonComponents/SelectMark/img/xingxing-blue.png";
22
+ import xingGreen from "../../commonComponents/SelectMark/img/xingxing-green.png";
23
+ import xingPurple from "../../commonComponents/SelectMark/img/xingxing-purple.png";
18
24
  var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options) {
19
25
  var _this = this;
20
26
  _classCallCheck(this, FlowMarkSelect);
@@ -46,13 +52,10 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
46
52
  return item.value === (r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
47
53
  });
48
54
  if (!mark) return null;
49
- return _this.renderPc(undefined, r);
55
+ return mark === null || mark === void 0 ? void 0 : mark.label;
50
56
  });
51
57
  _defineProperty(this, "getComponentValue", function (r) {
52
- var mark = _this.workOrderMark.find(function (item) {
53
- return item.value === (r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
54
- });
55
- return mark;
58
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
56
59
  });
57
60
  _defineProperty(this, "renderExport", function (value, record) {
58
61
  var MARK_MAP = {
@@ -69,11 +72,15 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
69
72
  return mark ? MARK_MAP[mark === null || mark === void 0 ? void 0 : mark.value] : "--";
70
73
  });
71
74
  _defineProperty(this, "renderClient", function (record) {
72
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
75
+ if (!isNull(record === null || record === void 0 ? void 0 : record[_this.id])) return null;
76
+ var mark = _this.workOrderMark.find(function (item) {
77
+ return item.value === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
78
+ });
79
+ return /*#__PURE__*/React.createElement(ItemView, {
73
80
  id: _this.id,
74
81
  label: _this.name,
75
- value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ""
76
- }) : null;
82
+ value: mark === null || mark === void 0 ? void 0 : mark.label
83
+ });
77
84
  });
78
85
  _defineProperty(this, "editRender", function (p) {
79
86
  var _this$componentConfig, _this$componentConfig2;
@@ -137,47 +144,50 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
137
144
  this.canSort = false;
138
145
  this.children = [];
139
146
  this.workOrderMark = [{
140
- label: /*#__PURE__*/React.createElement("span", {
141
- className: "iconfont icon-xingxing"
147
+ label: /*#__PURE__*/React.createElement("img", {
148
+ src: xing,
149
+ style: {
150
+ width: "16px"
151
+ }
142
152
  }),
143
153
  value: "1"
144
154
  }, {
145
- label: /*#__PURE__*/React.createElement("span", {
146
- className: "iconfont icon-xingxing1",
155
+ label: /*#__PURE__*/React.createElement("img", {
156
+ src: xingRed,
147
157
  style: {
148
- color: "#ff0000"
158
+ width: "16px"
149
159
  }
150
160
  }),
151
161
  value: "2"
152
162
  }, {
153
- label: /*#__PURE__*/React.createElement("span", {
154
- className: "iconfont icon-xingxing1",
163
+ label: /*#__PURE__*/React.createElement("img", {
164
+ src: xingYellow,
155
165
  style: {
156
- color: "#f6b343"
166
+ width: "16px"
157
167
  }
158
168
  }),
159
169
  value: "3"
160
170
  }, {
161
- label: /*#__PURE__*/React.createElement("span", {
162
- className: "iconfont icon-xingxing1",
171
+ label: /*#__PURE__*/React.createElement("img", {
172
+ src: xingBlue,
163
173
  style: {
164
- color: "#4d90f7"
174
+ width: "16px"
165
175
  }
166
176
  }),
167
177
  value: "4"
168
178
  }, {
169
- label: /*#__PURE__*/React.createElement("span", {
170
- className: "iconfont icon-xingxing1",
179
+ label: /*#__PURE__*/React.createElement("img", {
180
+ src: xingGreen,
171
181
  style: {
172
- color: "#6ed86c"
182
+ width: "16px"
173
183
  }
174
184
  }),
175
185
  value: "5"
176
186
  }, {
177
- label: /*#__PURE__*/React.createElement("span", {
178
- className: "iconfont icon-xingxing1",
187
+ label: /*#__PURE__*/React.createElement("img", {
188
+ src: xingPurple,
179
189
  style: {
180
- color: "#be4ed1"
190
+ width: "16px"
181
191
  }
182
192
  }),
183
193
  value: "6"
@@ -71,6 +71,20 @@ var selectTypeMap = {
71
71
  key: "createStatusValue",
72
72
  info: "createReason",
73
73
  failValue: "失败"
74
+ },
75
+ INVOICE_STATUS: {
76
+ options: [{
77
+ value: '成功',
78
+ label: '成功',
79
+ color: '#52c41a'
80
+ }, {
81
+ value: '失败',
82
+ label: '失败',
83
+ color: '#ff4d4f'
84
+ }],
85
+ key: 'invoiceStatusValue',
86
+ info: 'invoiceReason',
87
+ failValue: '失败'
74
88
  }
75
89
  };
76
90
  var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
@@ -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, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonMultiStatus | CommonSystemOrder | CommonTradeId | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowMarkSelect | FlowStatusSelect | FlowWorkOrderId | BasicGrade | Handler | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsTrajectory | BasicMultSelect | NodeDeadLine | NodeStayDuration | Ordinary | Payment | BasicPicture | PlatForm | BasicPosting | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | StatusSelect | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WorkOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => FlowMarkSelect | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | 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 | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration;
@@ -141,6 +141,7 @@ export var factory = function factory(type, options) {
141
141
  case "EXCHANGE_STATUS":
142
142
  case "ADJUST_WORK_ORDER_STATUS":
143
143
  case "CREATE_STATUS":
144
+ case "INVOICE_STATUS":
144
145
  return new StatusSelect(options);
145
146
  case "RETURN_GOODS_STATUS":
146
147
  return new CommonMultiStatus(options);
@@ -150,10 +151,13 @@ export var factory = function factory(type, options) {
150
151
  case "NUMERICAL_CALCULATION":
151
152
  return new Calculation(options);
152
153
  case "NODE_DEAD_LINE_INPUT":
154
+ // 工单时效
153
155
  return new NodeDeadLine(options);
154
156
  case "HANDLER_DEAD_LINE_INPUT":
157
+ // 处理人时效
155
158
  return new HandlerDeadLine(options);
156
159
  case "NODE_STAY_DURATION_INPUT":
160
+ // 工单停留时长
157
161
  return new NodeStayDuration(options);
158
162
  default:
159
163
  return new BasicInput(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.10.0-alpha.0",
3
+ "version": "0.10.0-alpha.2",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "7d9c668d6c0762e22076c64a714273a87f57d87d"
43
+ "gitHead": "ffccb9d6a1dcab6b94533309e7869e93b5d62f1b"
44
44
  }