@kmkf-fe-packages/services-components 1.0.10-beta.3 → 1.0.10-beta.5

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.
@@ -154,7 +154,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
154
154
  validator: function () {
155
155
  var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
156
156
  var _this$componentConfig11;
157
- var _resultList$, params, _yield$replaceCheck, resultList;
157
+ var _resultList$, params, _yield$replaceCheck, resultList, _this$componentConfig12, _this$componentConfig13, _this$componentConfig14, messageMap;
158
158
  return _regeneratorRuntime().wrap(function _callee$(_context) {
159
159
  while (1) switch (_context.prev = _context.next) {
160
160
  case 0:
@@ -165,7 +165,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
165
165
  return _context.abrupt("return", Promise.resolve());
166
166
  case 2:
167
167
  if (!((_this$componentConfig11 = _this.componentConfig) !== null && _this$componentConfig11 !== void 0 && _this$componentConfig11.replaceWarn)) {
168
- _context.next = 10;
168
+ _context.next = 11;
169
169
  break;
170
170
  }
171
171
  params = {
@@ -183,11 +183,16 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
183
183
  _yield$replaceCheck = _context.sent;
184
184
  resultList = _yield$replaceCheck.data.resultList;
185
185
  if (!((resultList === null || resultList === void 0 ? void 0 : (_resultList$ = resultList[0]) === null || _resultList$ === void 0 ? void 0 : _resultList$.repeatCount) > 0)) {
186
- _context.next = 10;
186
+ _context.next = 11;
187
187
  break;
188
188
  }
189
- return _context.abrupt("return", Promise.reject(new Error("内容已存在,不能重复提交")));
190
- case 10:
189
+ messageMap = {
190
+ currWorkOrder: "数据已存在本模版同节点中,不能重复提交",
191
+ currFlow: "数据已存在本模版中,不能重复提交",
192
+ allWorkOrder: "数据已存在其他模版中,不能重复提交"
193
+ };
194
+ return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$componentConfig12 = (_this$componentConfig13 = _this.componentConfig) === null || _this$componentConfig13 === void 0 ? void 0 : (_this$componentConfig14 = _this$componentConfig13.repeatConfig) === null || _this$componentConfig14 === void 0 ? void 0 : _this$componentConfig14.repeatRange) !== null && _this$componentConfig12 !== void 0 ? _this$componentConfig12 : ""] || "内容已存在,不能重复提交")));
195
+ case 11:
191
196
  case "end":
192
197
  return _context.stop();
193
198
  }
@@ -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, 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) => AfterSalesOrderId | FlowMarkSelect | BasicInput | KmErpSendGood | MsgStatus | 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 | 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 | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label;
3
+ export declare const factory: (type: string, options: PickOption) => AfterSalesOrderId | CommonMultiStatus | CommonSystemOrder | FlowMarkSelect | KmErpSendGood | Label | MsgStatus | StatusSelect | WdtExchange | WdtReturn | 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 | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | CommonInput | PaymentVoucherCode;
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.0.10-beta.3",
3
+ "version": "1.0.10-beta.5",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "scripts": {
10
- "sync": "yarn build && yalc push",
11
10
  "build": "yarn run lint && father build",
12
11
  "lint": "eslint '**/*.{ts,tsx}'",
13
- "lint:fix": "eslint --fix '**/*.{ts,tsx}'"
12
+ "lint:fix": "eslint --fix '**/*.{ts,tsx}'",
13
+ "sync": "yarn build && yalc push"
14
14
  },
15
15
  "lint-staged": {
16
16
  "*.{js,jsx,less,md,json}": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "1.0.10-beta.3",
25
- "@kmkf-fe-packages/kmkf-utils": "1.0.10-beta.3"
24
+ "@kmkf-fe-packages/basic-components": "^1.0.10-beta.5",
25
+ "@kmkf-fe-packages/kmkf-utils": "^1.0.10-beta.5"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -38,7 +38,7 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "c1cf4dbc945dbe8ee9afdb05b1afa38e04e6f3e6",
41
+ "gitHead": "d5b9fadd8e1e46b282fb28270a58e58cb62a7747",
42
42
  "gitHooks": {
43
43
  "pre-commit": "lint-staged"
44
44
  }