@kmkf-fe-packages/services-components 1.19.2 → 2.0.0-rc.0

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.
@@ -131,6 +131,16 @@ var FlowWorkOrderStatus = /*#__PURE__*/_createClass(function FlowWorkOrderStatus
131
131
  label: '已关闭',
132
132
  color: 'rgba(0, 0, 0, 0.65)',
133
133
  bgColor: 'rgba(0, 0, 0, 0.04);'
134
+ },
135
+ "FLOWING": {
136
+ label: '流转中',
137
+ color: '#faad14',
138
+ bgColor: '#faad14'
139
+ },
140
+ "RETURNING": {
141
+ label: '回退中',
142
+ color: '#faad14',
143
+ bgColor: '#faad14'
134
144
  }
135
145
  };
136
146
  this.dataType = 'string';
@@ -13,6 +13,7 @@ declare class MsgStatus implements ComponentInterface {
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface['dataType'];
16
+ options: ComponentInterface['options'];
16
17
  constructor(options: PickOption);
17
18
  renderClient: (record: any) => React.JSX.Element | null;
18
19
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -67,7 +67,8 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
67
67
  var _this = this,
68
68
  _typeMap$options$type,
69
69
  _typeMap$options$type2,
70
- _this$componentConfig5;
70
+ _this$componentConfig5,
71
+ _typeMap$options$type3;
71
72
  _classCallCheck(this, MsgStatus);
72
73
  _defineProperty(this, "name", void 0);
73
74
  _defineProperty(this, "id", void 0);
@@ -81,6 +82,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
81
82
  _defineProperty(this, "canSort", void 0);
82
83
  _defineProperty(this, "children", void 0);
83
84
  _defineProperty(this, "dataType", void 0);
85
+ _defineProperty(this, "options", void 0);
84
86
  _defineProperty(this, "renderClient", function (record) {
85
87
  var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
86
88
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
@@ -177,7 +179,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
177
179
  this.name = options.name;
178
180
  this.id = options.id;
179
181
  this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
180
- this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code);
182
+ this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
181
183
  this.type = options.type;
182
184
  this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
183
185
  options: typeMap[options.type].options
@@ -185,7 +187,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
185
187
  this.isCombinationComponent = false;
186
188
  this.canSort = false;
187
189
  this.children = [];
188
- this.dataType = 'arrayObject';
190
+ this.dataType = 'weakenArray';
189
191
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
190
192
  required: true,
191
193
  validator: function validator(_, value) {
@@ -201,5 +203,6 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
201
203
  }
202
204
  }] : [];
203
205
  this.align = 'left';
206
+ this.options = (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.options;
204
207
  });
205
208
  export default MsgStatus;
@@ -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, 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, KmErpSendGood, AfterSalesOrderId } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | ItemEnCode | FlowWorkOrderStatus | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | KmErpSendGood | LogisticsMoreInterception | MsgStatus | SubForm | ThirdItemSelect | BasicDataTime | TradeDateTime | BasicAddress | BasicCascader | BasicCheckbox | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | Payment | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsSystemOrder | FlowWorkOrderStatus | 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 | JstLogistics | JstItemSelect | JstSendGood | JstSupply | 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 | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | KmErpSendGood | AfterSalesOrderId;
@@ -47,7 +47,7 @@ export interface ComponentInterface {
47
47
  rules?: any[];
48
48
  width?: number;
49
49
  align?: ALignType;
50
- dataType: "string" | "number" | "boolean" | "array" | "range" | "object" | "arrayObject";
50
+ dataType: "string" | "number" | "boolean" | "array" | "range" | "object" | "weakenArray" | "arrayObject";
51
51
  format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup" | "object";
52
52
  options?: Array<any>;
53
53
  templateId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.19.2",
3
+ "version": "2.0.0-rc.0",
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.19.2",
25
- "@kmkf-fe-packages/kmkf-utils": "1.19.2",
24
+ "@kmkf-fe-packages/basic-components": "2.0.0-rc.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.0.0-rc.0",
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": "2e2f27ba765c9dfa3ee60dbbc3fa4cf37c9ef689",
44
+ "gitHead": "5770273c5177f0dc9eb9c1ee91eb9ba6e98d54f0",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }