@kmkf-fe-packages/services-components 0.7.5-alpha.0 → 0.7.5-alpha.10
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.
- package/dist/esm/components/ActualPayment/index.d.ts +4 -0
- package/dist/esm/components/ActualPayment/index.js +48 -0
- package/dist/esm/components/Address/index.d.ts +1 -0
- package/dist/esm/components/Address/index.js +2 -0
- package/dist/esm/components/Alipay/index.d.ts +1 -0
- package/dist/esm/components/Alipay/index.js +2 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +1 -0
- package/dist/esm/components/AlipayAccount/index.js +2 -0
- package/dist/esm/components/AlipayName/index.d.ts +1 -0
- package/dist/esm/components/AlipayName/index.js +2 -0
- package/dist/esm/components/BuyerNick/index.d.ts +1 -0
- package/dist/esm/components/BuyerNick/index.js +2 -0
- package/dist/esm/components/Cascader/index.d.ts +1 -0
- package/dist/esm/components/Cascader/index.js +19 -8
- package/dist/esm/components/Checkbox/index.d.ts +1 -0
- package/dist/esm/components/Checkbox/index.js +2 -0
- package/dist/esm/components/CommonDataTime/index.d.ts +1 -0
- package/dist/esm/components/CommonDataTime/index.js +2 -0
- package/dist/esm/components/CompletedUser/index.d.ts +1 -0
- package/dist/esm/components/CompletedUser/index.js +2 -0
- package/dist/esm/components/DataTime/index.d.ts +2 -12
- package/dist/esm/components/DataTime/index.js +17 -10
- package/dist/esm/components/EItemEnCode/index.d.ts +1 -0
- package/dist/esm/components/EItemEnCode/index.js +2 -0
- package/dist/esm/components/EItemId/index.d.ts +1 -0
- package/dist/esm/components/EItemId/index.js +2 -0
- package/dist/esm/components/EItemSelect/index.d.ts +1 -0
- package/dist/esm/components/EItemSelect/index.js +2 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +1 -0
- package/dist/esm/components/ErpTradeId/index.js +2 -0
- package/dist/esm/components/Express/index.d.ts +1 -0
- package/dist/esm/components/Express/index.js +2 -0
- package/dist/esm/components/ExpressCode/index.d.ts +1 -0
- package/dist/esm/components/ExpressCode/index.js +2 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +1 -0
- package/dist/esm/components/FlowStatusSelect/index.js +2 -0
- package/dist/esm/components/Grade/index.d.ts +1 -0
- package/dist/esm/components/Grade/index.js +2 -0
- package/dist/esm/components/Handler/index.d.ts +1 -0
- package/dist/esm/components/Handler/index.js +2 -0
- package/dist/esm/components/Input/index.d.ts +1 -0
- package/dist/esm/components/Input/index.js +2 -0
- package/dist/esm/components/JstItemSelect/index.d.ts +1 -0
- package/dist/esm/components/JstItemSelect/index.js +2 -0
- package/dist/esm/components/JstLogistics/index.d.ts +1 -0
- package/dist/esm/components/JstLogistics/index.js +2 -0
- package/dist/esm/components/JstSendGood/index.d.ts +1 -0
- package/dist/esm/components/JstSendGood/index.js +2 -0
- package/dist/esm/components/JstSupply/index.d.ts +1 -0
- package/dist/esm/components/JstSupply/index.js +2 -0
- package/dist/esm/components/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +2 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/index.js +2 -0
- package/dist/esm/components/MultSelect/index.d.ts +1 -0
- package/dist/esm/components/MultSelect/index.js +2 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +1 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +2 -0
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +4 -0
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +48 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +1 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.js +2 -0
- package/dist/esm/components/Ordinary/index.d.ts +4 -0
- package/dist/esm/components/Ordinary/index.js +2 -0
- package/dist/esm/components/Payment/AlipayNick.d.ts +1 -0
- package/dist/esm/components/Payment/AlipayNick.js +2 -0
- package/dist/esm/components/Payment/AlipayNo.d.ts +1 -0
- package/dist/esm/components/Payment/AlipayNo.js +2 -0
- package/dist/esm/components/Payment/AlipayTime.d.ts +1 -0
- package/dist/esm/components/Payment/AlipayTime.js +2 -0
- package/dist/esm/components/Payment/BuyerNick.d.ts +1 -0
- package/dist/esm/components/Payment/BuyerNick.js +2 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +4 -0
- package/dist/esm/components/Payment/PaymentAmount.js +48 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentStatus.js +2 -0
- package/dist/esm/components/Payment/PaymentTid.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentTid.js +2 -0
- package/dist/esm/components/Payment/index.d.ts +4 -0
- package/dist/esm/components/Payment/index.js +2 -0
- package/dist/esm/components/Picture/index.d.ts +1 -0
- package/dist/esm/components/Picture/index.js +2 -0
- package/dist/esm/components/PlatForm/index.d.ts +1 -0
- package/dist/esm/components/PlatForm/index.js +2 -0
- package/dist/esm/components/Radio/index.d.ts +1 -0
- package/dist/esm/components/Radio/index.js +2 -0
- package/dist/esm/components/Rate/index.d.ts +1 -0
- package/dist/esm/components/Rate/index.js +2 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +1 -0
- package/dist/esm/components/ReceiverAddress/index.js +3 -1
- package/dist/esm/components/ReceiverMobile/index.d.ts +1 -0
- package/dist/esm/components/ReceiverMobile/index.js +2 -0
- package/dist/esm/components/ReceiverName/index.d.ts +1 -0
- package/dist/esm/components/ReceiverName/index.js +2 -0
- package/dist/esm/components/Remark/index.d.ts +1 -0
- package/dist/esm/components/Remark/index.js +2 -0
- package/dist/esm/components/ReturnLogistics/index.d.ts +1 -0
- package/dist/esm/components/ReturnLogistics/index.js +2 -0
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +2 -0
- package/dist/esm/components/ShopInput/index.d.ts +1 -0
- package/dist/esm/components/ShopInput/index.js +2 -0
- package/dist/esm/components/ShopName/index.d.ts +1 -0
- package/dist/esm/components/ShopName/index.js +2 -0
- package/dist/esm/components/Submitter/index.d.ts +1 -0
- package/dist/esm/components/Submitter/index.js +2 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +1 -0
- package/dist/esm/components/SystemOrderNo/index.js +2 -0
- package/dist/esm/components/TemplateSelect/index.d.ts +1 -0
- package/dist/esm/components/TemplateSelect/index.js +2 -0
- package/dist/esm/components/TextArea/index.d.ts +1 -0
- package/dist/esm/components/TextArea/index.js +2 -0
- package/dist/esm/components/ThirdItemSelect/index.d.ts +1 -0
- package/dist/esm/components/ThirdItemSelect/index.js +2 -0
- package/dist/esm/components/TradeDateTime/index.d.ts +1 -0
- package/dist/esm/components/TradeDateTime/index.js +2 -0
- package/dist/esm/components/TradeId/index.d.ts +1 -0
- package/dist/esm/components/TradeId/index.js +2 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +1 -0
- package/dist/esm/components/WorkOrderId/index.js +4 -2
- package/dist/esm/type.d.ts +2 -0
- package/package.json +4 -4
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
declare class ActualPayment implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
sortField: string;
|
|
6
7
|
type: string;
|
|
7
8
|
rules: any[];
|
|
8
9
|
isCombinationComponent: boolean;
|
|
@@ -22,6 +23,9 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
22
23
|
id: string;
|
|
23
24
|
name: string;
|
|
24
25
|
filterComponentType: "Rate";
|
|
26
|
+
rules: {
|
|
27
|
+
validator: (_: any, value: Array<number>) => Promise<void>;
|
|
28
|
+
}[];
|
|
25
29
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
30
|
};
|
|
27
31
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
2
5
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
6
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
7
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -17,6 +20,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
17
20
|
_classCallCheck(this, ActualPayment);
|
|
18
21
|
_defineProperty(this, "name", void 0);
|
|
19
22
|
_defineProperty(this, "id", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
20
24
|
_defineProperty(this, "type", void 0);
|
|
21
25
|
_defineProperty(this, "rules", void 0);
|
|
22
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
@@ -66,6 +70,49 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
66
70
|
name: item.name,
|
|
67
71
|
// 过滤组件名称
|
|
68
72
|
filterComponentType: 'Rate',
|
|
73
|
+
rules: [{
|
|
74
|
+
validator: function () {
|
|
75
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
76
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
77
|
+
while (1) switch (_context.prev = _context.next) {
|
|
78
|
+
case 0:
|
|
79
|
+
if (!((value === null || value === void 0 ? void 0 : value.length) > 0)) {
|
|
80
|
+
_context.next = 7;
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
if (!(value !== null && value !== void 0 && value.every(function (v) {
|
|
84
|
+
return isNull(v);
|
|
85
|
+
}))) {
|
|
86
|
+
_context.next = 3;
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
return _context.abrupt("return", Promise.resolve());
|
|
90
|
+
case 3:
|
|
91
|
+
if (!(value !== null && value !== void 0 && value.some(function (v) {
|
|
92
|
+
return isNull(v);
|
|
93
|
+
}))) {
|
|
94
|
+
_context.next = 5;
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
return _context.abrupt("return", Promise.reject(new Error('请输入正确的金额区间范围')));
|
|
98
|
+
case 5:
|
|
99
|
+
if (!(value[0] > value[1])) {
|
|
100
|
+
_context.next = 7;
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
return _context.abrupt("return", Promise.reject(new Error('开始金额必须小于结束金额')));
|
|
104
|
+
case 7:
|
|
105
|
+
case "end":
|
|
106
|
+
return _context.stop();
|
|
107
|
+
}
|
|
108
|
+
}, _callee);
|
|
109
|
+
}));
|
|
110
|
+
function validator(_x, _x2) {
|
|
111
|
+
return _validator.apply(this, arguments);
|
|
112
|
+
}
|
|
113
|
+
return validator;
|
|
114
|
+
}()
|
|
115
|
+
}],
|
|
69
116
|
filterFn: function filterFn(value) {
|
|
70
117
|
return function (i) {
|
|
71
118
|
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'actualPayment')).includes(value);
|
|
@@ -74,6 +121,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
74
121
|
};
|
|
75
122
|
});
|
|
76
123
|
this.id = options.id;
|
|
124
|
+
this.sortField = "".concat(options.id, "_actualPayment");
|
|
77
125
|
this.name = options.name;
|
|
78
126
|
this.type = options.type;
|
|
79
127
|
this.isCombinationComponent = false;
|
|
@@ -19,6 +19,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
19
19
|
_classCallCheck(this, Address);
|
|
20
20
|
_defineProperty(this, "name", void 0);
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
23
|
_defineProperty(this, "type", void 0);
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
@@ -116,6 +117,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
116
117
|
});
|
|
117
118
|
this.name = options.name;
|
|
118
119
|
this.id = options.id;
|
|
120
|
+
this.sortField = "".concat(options.id, "_basicDistrict");
|
|
119
121
|
this.type = options.type;
|
|
120
122
|
this.isCombinationComponent = false;
|
|
121
123
|
this.canSort = true;
|
|
@@ -19,6 +19,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
19
19
|
_classCallCheck(this, Alipay);
|
|
20
20
|
_defineProperty(this, "name", void 0);
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
23
|
_defineProperty(this, "type", void 0);
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -62,6 +63,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
62
63
|
});
|
|
63
64
|
this.name = options.name;
|
|
64
65
|
this.id = options.id;
|
|
66
|
+
this.sortField = options.id;
|
|
65
67
|
this.type = options.type;
|
|
66
68
|
this.isCombinationComponent = true;
|
|
67
69
|
this.canSort = false;
|
|
@@ -19,6 +19,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
19
19
|
_classCallCheck(this, EAlipayAccount);
|
|
20
20
|
_defineProperty(this, "name", void 0);
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
23
|
_defineProperty(this, "type", void 0);
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -81,6 +82,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
81
82
|
});
|
|
82
83
|
this.name = '支付宝账号';
|
|
83
84
|
this.id = "".concat(options.id, "_alipayAccount");
|
|
85
|
+
this.sortField = "".concat(options.id, "_alipayAccount");
|
|
84
86
|
this.type = options.type;
|
|
85
87
|
this.isCombinationComponent = false;
|
|
86
88
|
this.canSort = true;
|
|
@@ -19,6 +19,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
19
19
|
_classCallCheck(this, EAlipayAccount);
|
|
20
20
|
_defineProperty(this, "name", void 0);
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
23
|
_defineProperty(this, "type", void 0);
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -81,6 +82,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
81
82
|
});
|
|
82
83
|
this.name = '支付宝名称';
|
|
83
84
|
this.id = "".concat(options.id, "_alipayName");
|
|
85
|
+
this.sortField = "".concat(options.id, "_alipayName");
|
|
84
86
|
this.type = options.type;
|
|
85
87
|
this.isCombinationComponent = false;
|
|
86
88
|
this.canSort = true;
|
|
@@ -20,6 +20,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
20
20
|
_classCallCheck(this, EBuyerNick);
|
|
21
21
|
_defineProperty(this, "name", void 0);
|
|
22
22
|
_defineProperty(this, "id", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
23
24
|
_defineProperty(this, "type", void 0);
|
|
24
25
|
_defineProperty(this, "rules", void 0);
|
|
25
26
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -95,6 +96,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
95
96
|
this.name = options.name;
|
|
96
97
|
this.id = options.id;
|
|
97
98
|
this.type = options.type;
|
|
99
|
+
this.sortField = "".concat(options.id, "_buyerNick");
|
|
98
100
|
this.isCombinationComponent = false;
|
|
99
101
|
this.canSort = true;
|
|
100
102
|
this.children = [];
|
|
@@ -10,15 +10,16 @@ import React from 'react';
|
|
|
10
10
|
import { Cascader } from 'antd';
|
|
11
11
|
import intersection from 'lodash/intersection';
|
|
12
12
|
import GetFormItem from "../GetFormItem";
|
|
13
|
-
import { findLabelBySelectValue, transMultSelectOptions } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { findLabelBySelectValue, transMultSelectOptions, tree } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
15
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
|
-
var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(
|
|
17
|
+
var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
18
18
|
var _this = this;
|
|
19
19
|
_classCallCheck(this, BasicCascader);
|
|
20
20
|
_defineProperty(this, "name", void 0);
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
23
|
_defineProperty(this, "type", void 0);
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -88,6 +89,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
88
89
|
});
|
|
89
90
|
_defineProperty(this, "filterConfig", function (item) {
|
|
90
91
|
var _item$config;
|
|
92
|
+
var options = transMultSelectOptions((item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []);
|
|
91
93
|
return {
|
|
92
94
|
searchDefaultConditions: SYMBOL.eq,
|
|
93
95
|
type: item.type,
|
|
@@ -97,7 +99,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
97
99
|
// 过滤组件名称
|
|
98
100
|
filterComponentType: 'Cascader',
|
|
99
101
|
props: {
|
|
100
|
-
options:
|
|
102
|
+
options: options,
|
|
101
103
|
fieldNames: {
|
|
102
104
|
label: 'label',
|
|
103
105
|
value: 'actived',
|
|
@@ -111,15 +113,24 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
111
113
|
},
|
|
112
114
|
formatFilterValue: function formatFilterValue(val) {
|
|
113
115
|
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
114
|
-
|
|
116
|
+
var node = tree.findNodeByValue(options, 'actived', val[val.length - 1]);
|
|
117
|
+
if (node) {
|
|
118
|
+
var label = node.label,
|
|
119
|
+
actived = node.actived;
|
|
120
|
+
return JSON.stringify({
|
|
121
|
+
label: label,
|
|
122
|
+
actived: actived
|
|
123
|
+
});
|
|
124
|
+
}
|
|
115
125
|
}
|
|
116
126
|
}
|
|
117
127
|
};
|
|
118
128
|
});
|
|
119
|
-
this.name =
|
|
120
|
-
this.id =
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
129
|
+
this.name = _options.name;
|
|
130
|
+
this.id = _options.id;
|
|
131
|
+
this.sortField = "".concat(_options.id, "_multSelect");
|
|
132
|
+
this.type = _options.type;
|
|
133
|
+
this.componentConfig = _options.componentConfig;
|
|
123
134
|
this.rules = [];
|
|
124
135
|
this.children = [];
|
|
125
136
|
this.isCombinationComponent = false;
|
|
@@ -18,6 +18,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
18
18
|
_classCallCheck(this, BasicCheckbox);
|
|
19
19
|
_defineProperty(this, "name", void 0);
|
|
20
20
|
_defineProperty(this, "id", void 0);
|
|
21
|
+
_defineProperty(this, "sortField", void 0);
|
|
21
22
|
_defineProperty(this, "type", void 0);
|
|
22
23
|
_defineProperty(this, "rules", void 0);
|
|
23
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -109,6 +110,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
109
110
|
});
|
|
110
111
|
this.name = options.name;
|
|
111
112
|
this.id = options.id;
|
|
113
|
+
this.sortField = "".concat(options.id, "_checkbox");
|
|
112
114
|
this.type = options.type;
|
|
113
115
|
this.isCombinationComponent = false;
|
|
114
116
|
this.canSort = true;
|
|
@@ -19,6 +19,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
19
19
|
_classCallCheck(this, CommonDataTime);
|
|
20
20
|
_defineProperty(this, "name", void 0);
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
23
|
_defineProperty(this, "type", void 0);
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -83,6 +84,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
83
84
|
});
|
|
84
85
|
this.name = options.name;
|
|
85
86
|
this.id = options.id;
|
|
87
|
+
this.sortField = options.id;
|
|
86
88
|
this.type = options.type;
|
|
87
89
|
this.componentConfig = options.componentConfig;
|
|
88
90
|
this.rules = [];
|
|
@@ -3,6 +3,7 @@ import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type
|
|
|
3
3
|
declare class CompletedUser implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
sortField: string;
|
|
6
7
|
type: string;
|
|
7
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
8
9
|
effects: ComponentInterface["effects"];
|
|
@@ -13,6 +13,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
13
13
|
_classCallCheck(this, CompletedUser);
|
|
14
14
|
_defineProperty(this, "name", void 0);
|
|
15
15
|
_defineProperty(this, "id", void 0);
|
|
16
|
+
_defineProperty(this, "sortField", void 0);
|
|
16
17
|
_defineProperty(this, "type", void 0);
|
|
17
18
|
_defineProperty(this, "componentConfig", void 0);
|
|
18
19
|
_defineProperty(this, "effects", void 0);
|
|
@@ -61,6 +62,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
61
62
|
});
|
|
62
63
|
this.name = "完成人";
|
|
63
64
|
this.id = "completedUserName";
|
|
65
|
+
this.sortField = "completedUserName";
|
|
64
66
|
this.type = "COMPLETED_USER_INPUT";
|
|
65
67
|
this.effects = options.effects;
|
|
66
68
|
this.isCombinationComponent = false;
|
|
@@ -5,6 +5,7 @@ export declare const DateTime: ({ value, onChange, ...otherProps }: any) => Reac
|
|
|
5
5
|
declare class BasicDataTime implements ComponentInterface {
|
|
6
6
|
name: string;
|
|
7
7
|
id: string;
|
|
8
|
+
sortField: string;
|
|
8
9
|
type: string;
|
|
9
10
|
rules: any[];
|
|
10
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
@@ -19,17 +20,6 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
19
20
|
getComponentValue: (r: Record) => any;
|
|
20
21
|
renderExport: (value: any, record: Record) => any;
|
|
21
22
|
editRender: () => React.JSX.Element;
|
|
22
|
-
filterConfig: (item: ColumnConfig) =>
|
|
23
|
-
searchDefaultConditions: "between";
|
|
24
|
-
type: string;
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
filterComponentType: "Date";
|
|
28
|
-
props: {
|
|
29
|
-
options: any[];
|
|
30
|
-
};
|
|
31
|
-
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
32
|
-
formatFilterValue: (val: Array<any>) => number[] | undefined;
|
|
33
|
-
};
|
|
23
|
+
filterConfig: (item: ColumnConfig) => any;
|
|
34
24
|
}
|
|
35
25
|
export default BasicDataTime;
|
|
@@ -35,6 +35,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
35
35
|
_classCallCheck(this, BasicDataTime);
|
|
36
36
|
_defineProperty(this, "name", void 0);
|
|
37
37
|
_defineProperty(this, "id", void 0);
|
|
38
|
+
_defineProperty(this, "sortField", void 0);
|
|
38
39
|
_defineProperty(this, "type", void 0);
|
|
39
40
|
_defineProperty(this, "rules", void 0);
|
|
40
41
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -81,8 +82,9 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
81
82
|
});
|
|
82
83
|
});
|
|
83
84
|
_defineProperty(this, "filterConfig", function (item) {
|
|
84
|
-
var _item$config;
|
|
85
|
-
|
|
85
|
+
var _item$config, _item$config2;
|
|
86
|
+
var dateType = item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.dateType;
|
|
87
|
+
var obj = {
|
|
86
88
|
searchDefaultConditions: SYMBOL.between,
|
|
87
89
|
type: item.type,
|
|
88
90
|
id: "".concat(item.id, "_dateTime"),
|
|
@@ -91,25 +93,30 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
91
93
|
// 过滤组件名称
|
|
92
94
|
filterComponentType: 'Date',
|
|
93
95
|
props: {
|
|
94
|
-
options: (item === null || item === void 0 ? void 0 : (_item$
|
|
96
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : _item$config2.options) || []
|
|
95
97
|
},
|
|
96
98
|
filterFn: function filterFn(value) {
|
|
97
99
|
return function (i) {
|
|
98
100
|
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'dateTime');
|
|
99
101
|
return _filterFn.filterDateFn(value, recordDateTime);
|
|
100
102
|
};
|
|
101
|
-
},
|
|
102
|
-
formatFilterValue: function formatFilterValue(val) {
|
|
103
|
-
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
104
|
-
return val === null || val === void 0 ? void 0 : val.map(function (v) {
|
|
105
|
-
return moment(v).valueOf();
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
103
|
}
|
|
104
|
+
// TODO: 自定义时间类型特殊,不需要转换,直接使用 YYYY-MM-DD HH:mm:ss格式查询
|
|
105
|
+
// formatFilterValue: (val: Array<any>) => {
|
|
106
|
+
// if (val?.length > 0) {
|
|
107
|
+
// return val?.map(v => moment(v).valueOf())
|
|
108
|
+
// }
|
|
109
|
+
// }
|
|
109
110
|
};
|
|
111
|
+
|
|
112
|
+
if (dateType !== null && dateType !== void 0 && dateType.includes('RANGE')) {
|
|
113
|
+
obj.componentDataType = 'dateArray';
|
|
114
|
+
}
|
|
115
|
+
return obj;
|
|
110
116
|
});
|
|
111
117
|
this.name = options.name;
|
|
112
118
|
this.id = options.id;
|
|
119
|
+
this.sortField = "".concat(options.id, "_dateTime");
|
|
113
120
|
this.type = options.type;
|
|
114
121
|
this.componentConfig = options.componentConfig;
|
|
115
122
|
this.rules = [];
|
|
@@ -19,6 +19,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
19
19
|
_classCallCheck(this, EItemEncode);
|
|
20
20
|
_defineProperty(this, "name", void 0);
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
23
|
_defineProperty(this, "type", void 0);
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -95,6 +96,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
95
96
|
});
|
|
96
97
|
this.name = options.name;
|
|
97
98
|
this.id = options.id;
|
|
99
|
+
this.sortField = "".concat(options.id, "_itemList");
|
|
98
100
|
this.type = options.type;
|
|
99
101
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
100
102
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
@@ -19,6 +19,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
19
19
|
_classCallCheck(this, EItemId);
|
|
20
20
|
_defineProperty(this, "name", void 0);
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
23
|
_defineProperty(this, "type", void 0);
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -96,6 +97,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
96
97
|
});
|
|
97
98
|
this.name = options.name;
|
|
98
99
|
this.id = options.id;
|
|
100
|
+
this.sortField = "".concat(options.id, "_itemList");
|
|
99
101
|
this.type = options.type;
|
|
100
102
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
101
103
|
this.isCombinationComponent = false;
|
|
@@ -17,6 +17,7 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
17
17
|
_classCallCheck(this, EItemSelect);
|
|
18
18
|
_defineProperty(this, "name", void 0);
|
|
19
19
|
_defineProperty(this, "id", void 0);
|
|
20
|
+
_defineProperty(this, "sortField", void 0);
|
|
20
21
|
_defineProperty(this, "type", void 0);
|
|
21
22
|
_defineProperty(this, "rules", void 0);
|
|
22
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -74,6 +75,7 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
74
75
|
});
|
|
75
76
|
this.name = options.name;
|
|
76
77
|
this.id = options.id;
|
|
78
|
+
this.sortField = "".concat(options.id, "_itemList");
|
|
77
79
|
this.type = options.type;
|
|
78
80
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
79
81
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
@@ -16,6 +16,7 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
16
16
|
_classCallCheck(this, ErpTradeId);
|
|
17
17
|
_defineProperty(this, "name", void 0);
|
|
18
18
|
_defineProperty(this, "id", void 0);
|
|
19
|
+
_defineProperty(this, "sortField", void 0);
|
|
19
20
|
_defineProperty(this, "type", void 0);
|
|
20
21
|
_defineProperty(this, "rules", void 0);
|
|
21
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -75,6 +76,7 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
75
76
|
});
|
|
76
77
|
this.name = options.name;
|
|
77
78
|
this.id = options.id;
|
|
79
|
+
this.sortField = "".concat(options.id, "_tradeId");
|
|
78
80
|
this.type = options.type;
|
|
79
81
|
this.componentConfig = options.componentConfig;
|
|
80
82
|
this.rules = [];
|
|
@@ -17,6 +17,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
17
17
|
_classCallCheck(this, Express);
|
|
18
18
|
_defineProperty(this, "name", void 0);
|
|
19
19
|
_defineProperty(this, "id", void 0);
|
|
20
|
+
_defineProperty(this, "sortField", void 0);
|
|
20
21
|
_defineProperty(this, "type", void 0);
|
|
21
22
|
_defineProperty(this, "rules", void 0);
|
|
22
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -81,6 +82,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
81
82
|
});
|
|
82
83
|
this.name = options.name;
|
|
83
84
|
this.id = options.id;
|
|
85
|
+
this.sortField = options.id;
|
|
84
86
|
this.type = options.type;
|
|
85
87
|
this.componentConfig = options.componentConfig;
|
|
86
88
|
this.rules = [];
|
|
@@ -17,6 +17,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
17
17
|
_classCallCheck(this, ExpressCode);
|
|
18
18
|
_defineProperty(this, "name", void 0);
|
|
19
19
|
_defineProperty(this, "id", void 0);
|
|
20
|
+
_defineProperty(this, "sortField", void 0);
|
|
20
21
|
_defineProperty(this, "type", void 0);
|
|
21
22
|
_defineProperty(this, "rules", void 0);
|
|
22
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -74,6 +75,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
74
75
|
});
|
|
75
76
|
this.name = options.name;
|
|
76
77
|
this.id = options.id;
|
|
78
|
+
this.sortField = options.id;
|
|
77
79
|
this.type = options.type;
|
|
78
80
|
this.componentConfig = options.componentConfig;
|
|
79
81
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|