@kmkf-fe-packages/services-components 1.17.5-beta.14 → 1.17.5-beta.18

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.
@@ -46,5 +46,8 @@ declare class JstSendGood implements ComponentInterface {
46
46
  filterFn: (value: string) => (i: Record) => any;
47
47
  props?: undefined;
48
48
  })[];
49
+ formDataTransform: (v: Array<{
50
+ sendName: string;
51
+ }>) => string[];
49
52
  }
50
53
  export default JstSendGood;
@@ -202,6 +202,14 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
202
202
  }
203
203
  }];
204
204
  });
205
+ _defineProperty(this, "formDataTransform", function (v) {
206
+ var _v$map;
207
+ return v === null || v === void 0 ? void 0 : (_v$map = v.map(function (item) {
208
+ return item.sendName;
209
+ })) === null || _v$map === void 0 ? void 0 : _v$map.filter(function (item) {
210
+ return !isNull(item);
211
+ });
212
+ });
205
213
  this.name = _options.name;
206
214
  this.id = _options.id;
207
215
  this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
@@ -209,7 +217,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
209
217
  this.componentConfig = _options.componentConfig;
210
218
  this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || '', _options, _options.type);
211
219
  this.type = _options.type;
212
- this.dataType = "object";
220
+ this.dataType = "array";
213
221
  this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
214
222
  required: true,
215
223
  validator: function validator(_, value) {
@@ -44,9 +44,7 @@ var InterceptApiStatus = /*#__PURE__*/_createClass(function InterceptApiStatus(o
44
44
  style: {
45
45
  color: statusColor
46
46
  }
47
- }, record === null || record === void 0 ? void 0 : (_record$interceptLogi3 = record.interceptLogisticsApiStatus) === null || _record$interceptLogi3 === void 0 ? void 0 : _record$interceptLogi3.status, record !== null && record !== void 0 && (_record$interceptLogi4 = record.interceptLogisticsApiStatus) !== null && _record$interceptLogi4 !== void 0 && _record$interceptLogi4.reason ? /*#__PURE__*/React.createElement("span", {
48
- className: "c-red"
49
- }, ",", (record === null || record === void 0 ? void 0 : (_record$interceptLogi5 = record.interceptLogisticsApiStatus) === null || _record$interceptLogi5 === void 0 ? void 0 : _record$interceptLogi5.reason) || "") : null))
47
+ }, record === null || record === void 0 ? void 0 : (_record$interceptLogi3 = record.interceptLogisticsApiStatus) === null || _record$interceptLogi3 === void 0 ? void 0 : _record$interceptLogi3.status, record !== null && record !== void 0 && (_record$interceptLogi4 = record.interceptLogisticsApiStatus) !== null && _record$interceptLogi4 !== void 0 && _record$interceptLogi4.reason ? /*#__PURE__*/React.createElement("span", null, ",", (record === null || record === void 0 ? void 0 : (_record$interceptLogi5 = record.interceptLogisticsApiStatus) === null || _record$interceptLogi5 === void 0 ? void 0 : _record$interceptLogi5.reason) || "") : null))
50
48
  }) : null;
51
49
  });
52
50
  _defineProperty(this, "renderPc", function (value, r) {
@@ -19,25 +19,29 @@ import { SYMBOL } from "../../constant";
19
19
  var typeMap = {
20
20
  MSG_STATUS: {
21
21
  options: [{
22
- value: '发送成功',
23
- label: '发送成功',
22
+ value: '执行成功',
23
+ label: '执行成功',
24
24
  color: '#52c41a'
25
25
  }, {
26
- value: '已发送',
27
- label: '已发送',
26
+ value: '执行中',
27
+ label: '执行中',
28
28
  color: '#52c41a'
29
29
  }, {
30
- value: '发送失败',
31
- label: '发送失败',
30
+ value: '执行失败',
31
+ label: '执行失败',
32
32
  color: '#ff4d4f'
33
33
  }, {
34
- value: '等待发送',
35
- label: '等待发送',
34
+ value: '等待执行',
35
+ label: '等待执行',
36
36
  color: '#e7780f'
37
+ }, {
38
+ value: '不满足条件,无需执行',
39
+ label: '不满足条件,无需执行',
40
+ color: '#8A8A8A'
37
41
  }],
38
42
  key: 'msgStatusValues',
39
43
  code: 'msgStatus4Search',
40
- name: '消息状态',
44
+ name: '任务状态',
41
45
  type: 1,
42
46
  valueKey: 'status',
43
47
  idKey: 'systemOrderId',
@@ -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) => ActualPayment | BasicAddress | AfterSalesOrderId | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonInput | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | BasicInput | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | FlowWorkOrderId | StatusSelect | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | PaymentVoucherCode | Label | KmErpSendGood;
3
+ export declare const factory: (type: string, options: PickOption) => BasicCascader | StatusSelect | TradeId | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | 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 | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | KmErpSendGood | AfterSalesOrderId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.17.5-beta.14",
3
+ "version": "1.17.5-beta.18",
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.17.5-beta.12",
25
- "@kmkf-fe-packages/kmkf-utils": "1.17.5-beta.12",
24
+ "@kmkf-fe-packages/basic-components": "1.17.5-beta.17",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.17.5-beta.16",
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": "7dc53a9d108de60f9ce37f4356fcf7d1897eccaa",
44
+ "gitHead": "b08ba90de19810cf3f488d8fbd02584b58d9f7ed",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }