@kmkf-fe-packages/services-components 1.0.10-beta.3 → 1.0.10-beta.4
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 =
|
|
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 =
|
|
186
|
+
_context.next = 11;
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
|
-
|
|
190
|
-
|
|
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
|
}
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -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 |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => AfterSalesOrderId | AliPay | BasicCascader | CommonMultiStatus | CommonSystemOrder | FlowMarkSelect | BasicInput | KmErpSendGood | Label | MsgStatus | StatusSelect | WdtExchange | WdtReturn | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.0.10-beta.
|
|
3
|
+
"version": "1.0.10-beta.4",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "2aa2bf77b2fabcb377477c4108a8dc8fefde122f",
|
|
42
42
|
"gitHooks": {
|
|
43
43
|
"pre-commit": "lint-staged"
|
|
44
44
|
}
|