@kmkf-fe-packages/services-components 0.7.8 → 0.7.9
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 +11 -1
- package/dist/esm/components/ActualPayment/index.js +65 -2
- package/dist/esm/components/Address/index.d.ts +21 -3
- package/dist/esm/components/Address/index.js +35 -3
- package/dist/esm/components/Alipay/index.d.ts +3 -0
- package/dist/esm/components/Alipay/index.js +4 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +3 -0
- package/dist/esm/components/AlipayAccount/index.js +6 -0
- package/dist/esm/components/AlipayName/index.d.ts +3 -0
- package/dist/esm/components/AlipayName/index.js +6 -0
- package/dist/esm/components/BuyerNick/index.d.ts +3 -0
- package/dist/esm/components/BuyerNick/index.js +6 -0
- package/dist/esm/components/Cascader/index.d.ts +12 -1
- package/dist/esm/components/Cascader/index.js +35 -8
- package/dist/esm/components/Checkbox/index.d.ts +6 -1
- package/dist/esm/components/Checkbox/index.js +13 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +6 -2
- package/dist/esm/components/CommonDataTime/index.js +23 -4
- package/dist/esm/components/CompletedUser/index.d.ts +9 -4
- package/dist/esm/components/CompletedUser/index.js +9 -1
- package/dist/esm/components/DataTime/index.d.ts +3 -8
- package/dist/esm/components/DataTime/index.js +25 -4
- package/dist/esm/components/EItemEnCode/index.d.ts +3 -0
- package/dist/esm/components/EItemEnCode/index.js +7 -1
- package/dist/esm/components/EItemId/index.d.ts +3 -0
- package/dist/esm/components/EItemId/index.js +7 -1
- package/dist/esm/components/EItemSelect/index.d.ts +2 -0
- package/dist/esm/components/EItemSelect/index.js +4 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +4 -0
- package/dist/esm/components/ErpTradeId/index.js +10 -1
- package/dist/esm/components/Express/index.d.ts +6 -1
- package/dist/esm/components/Express/index.js +9 -1
- package/dist/esm/components/ExpressCode/index.d.ts +3 -0
- package/dist/esm/components/ExpressCode/index.js +6 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +9 -4
- package/dist/esm/components/FlowStatusSelect/index.js +14 -6
- package/dist/esm/components/Grade/index.d.ts +2 -0
- package/dist/esm/components/Grade/index.js +4 -0
- package/dist/esm/components/Handler/index.d.ts +9 -4
- package/dist/esm/components/Handler/index.js +9 -1
- package/dist/esm/components/Input/index.d.ts +3 -0
- package/dist/esm/components/Input/index.js +7 -1
- package/dist/esm/components/JstItemSelect/index.d.ts +3 -0
- package/dist/esm/components/JstItemSelect/index.js +23 -15
- package/dist/esm/components/JstLogistics/index.d.ts +8 -2
- package/dist/esm/components/JstLogistics/index.js +10 -1
- package/dist/esm/components/JstSendGood/index.d.ts +3 -0
- package/dist/esm/components/JstSendGood/index.js +7 -0
- package/dist/esm/components/JstSupply/index.d.ts +3 -0
- package/dist/esm/components/JstSupply/index.js +7 -0
- package/dist/esm/components/Logistics/index.d.ts +7 -1
- package/dist/esm/components/Logistics/index.js +4 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +3 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +4 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +11 -5
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +18 -4
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +11 -5
- package/dist/esm/components/LogisticsInterception/InterceptType.js +18 -4
- package/dist/esm/components/LogisticsInterception/index.d.ts +15 -5
- package/dist/esm/components/LogisticsInterception/index.js +4 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +2 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +4 -0
- package/dist/esm/components/MultSelect/index.d.ts +6 -1
- package/dist/esm/components/MultSelect/index.js +10 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +9 -3
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +67 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.js +6 -0
- package/dist/esm/components/Ordinary/index.d.ts +19 -2
- package/dist/esm/components/Ordinary/index.js +4 -0
- package/dist/esm/components/Payment/AlipayNick.d.ts +3 -0
- package/dist/esm/components/Payment/AlipayNick.js +6 -0
- package/dist/esm/components/Payment/AlipayNo.d.ts +3 -0
- package/dist/esm/components/Payment/AlipayNo.js +6 -0
- package/dist/esm/components/Payment/AlipayTime.d.ts +6 -2
- package/dist/esm/components/Payment/AlipayTime.js +23 -6
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -0
- package/dist/esm/components/Payment/BuyerNick.js +6 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -1
- package/dist/esm/components/Payment/PaymentAmount.js +64 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +9 -4
- package/dist/esm/components/Payment/PaymentStatus.js +9 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +4 -0
- package/dist/esm/components/Payment/PaymentTid.js +9 -0
- package/dist/esm/components/Payment/index.d.ts +41 -4
- package/dist/esm/components/Payment/index.js +4 -0
- package/dist/esm/components/Picture/index.d.ts +2 -0
- package/dist/esm/components/Picture/index.js +4 -0
- package/dist/esm/components/PlatForm/index.d.ts +4 -1
- package/dist/esm/components/PlatForm/index.js +6 -0
- package/dist/esm/components/Radio/index.d.ts +6 -1
- package/dist/esm/components/Radio/index.js +13 -5
- package/dist/esm/components/Rate/index.d.ts +2 -0
- package/dist/esm/components/Rate/index.js +4 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +3 -1
- package/dist/esm/components/ReceiverAddress/index.js +4 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -0
- package/dist/esm/components/ReceiverMobile/index.js +7 -1
- package/dist/esm/components/ReceiverName/index.d.ts +3 -0
- package/dist/esm/components/ReceiverName/index.js +7 -1
- package/dist/esm/components/Remark/index.d.ts +3 -0
- package/dist/esm/components/Remark/index.js +7 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +7 -1
- package/dist/esm/components/ReturnLogistics/index.js +4 -0
- package/dist/esm/components/Select/index.d.ts +6 -1
- package/dist/esm/components/Select/index.js +10 -2
- package/dist/esm/components/ShopInput/index.d.ts +8 -2
- package/dist/esm/components/ShopInput/index.js +19 -2
- package/dist/esm/components/ShopName/index.d.ts +3 -0
- package/dist/esm/components/ShopName/index.js +7 -1
- package/dist/esm/components/Submitter/index.d.ts +10 -4
- package/dist/esm/components/Submitter/index.js +17 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +4 -0
- package/dist/esm/components/SystemOrderNo/index.js +10 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +3 -0
- package/dist/esm/components/TemplateSelect/index.js +6 -0
- package/dist/esm/components/TextArea/index.d.ts +3 -0
- package/dist/esm/components/TextArea/index.js +7 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -0
- package/dist/esm/components/ThirdItemSelect/index.js +7 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +4 -0
- package/dist/esm/components/TradeDateTime/index.js +16 -2
- package/dist/esm/components/TradeId/index.d.ts +4 -0
- package/dist/esm/components/TradeId/index.js +10 -1
- package/dist/esm/components/WorkOrderId/index.d.ts +3 -0
- package/dist/esm/components/WorkOrderId/index.js +15 -3
- package/dist/esm/constant.d.ts +14 -0
- package/dist/esm/constant.js +14 -0
- package/dist/esm/type.d.ts +10 -2
- package/package.json +4 -4
|
@@ -3,9 +3,11 @@ 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;
|
|
10
|
+
canSort: boolean;
|
|
9
11
|
children: ComponentInterface[];
|
|
10
12
|
componentConfig: ComponentInterface["componentConfig"];
|
|
11
13
|
constructor(options: PickOption);
|
|
@@ -16,10 +18,18 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
16
18
|
renderExport: (value: unknown, record: Record) => any;
|
|
17
19
|
editRender: () => React.JSX.Element;
|
|
18
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
searchDefaultConditions: "between";
|
|
19
22
|
type: string;
|
|
20
23
|
id: string;
|
|
21
24
|
name: string;
|
|
22
|
-
filterComponentType: "
|
|
25
|
+
filterComponentType: "Rate";
|
|
26
|
+
rules: {
|
|
27
|
+
validator: (_: any, value: Array<number>) => Promise<void>;
|
|
28
|
+
}[];
|
|
29
|
+
props: {
|
|
30
|
+
placeholder: string[];
|
|
31
|
+
};
|
|
32
|
+
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
23
33
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
24
34
|
};
|
|
25
35
|
}
|
|
@@ -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; }
|
|
@@ -11,14 +14,17 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
11
14
|
import GetFormItem from "../GetFormItem";
|
|
12
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
16
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import { SYMBOL } from "../../constant";
|
|
14
18
|
var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
15
19
|
var _this = this;
|
|
16
20
|
_classCallCheck(this, ActualPayment);
|
|
17
21
|
_defineProperty(this, "name", void 0);
|
|
18
22
|
_defineProperty(this, "id", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
19
24
|
_defineProperty(this, "type", void 0);
|
|
20
25
|
_defineProperty(this, "rules", void 0);
|
|
21
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
22
28
|
_defineProperty(this, "children", void 0);
|
|
23
29
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
@@ -57,12 +63,67 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
57
63
|
});
|
|
58
64
|
_defineProperty(this, "filterConfig", function (item) {
|
|
59
65
|
return {
|
|
66
|
+
searchDefaultConditions: SYMBOL.between,
|
|
60
67
|
type: item.type,
|
|
61
|
-
id: item.id,
|
|
68
|
+
id: "".concat(item.id, "_actualPayment"),
|
|
62
69
|
// 过滤组件id
|
|
63
70
|
name: item.name,
|
|
64
71
|
// 过滤组件名称
|
|
65
|
-
filterComponentType: '
|
|
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
|
+
}],
|
|
116
|
+
props: {
|
|
117
|
+
placeholder: ['始-实付金额', '终-实付金额']
|
|
118
|
+
},
|
|
119
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
120
|
+
if (val !== null && val !== void 0 && val.some(function (v) {
|
|
121
|
+
return isNull(v);
|
|
122
|
+
})) {
|
|
123
|
+
return [];
|
|
124
|
+
}
|
|
125
|
+
return val;
|
|
126
|
+
},
|
|
66
127
|
filterFn: function filterFn(value) {
|
|
67
128
|
return function (i) {
|
|
68
129
|
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'actualPayment')).includes(value);
|
|
@@ -71,9 +132,11 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
71
132
|
};
|
|
72
133
|
});
|
|
73
134
|
this.id = options.id;
|
|
135
|
+
this.sortField = "".concat(options.id, "_actualPayment");
|
|
74
136
|
this.name = options.name;
|
|
75
137
|
this.type = options.type;
|
|
76
138
|
this.isCombinationComponent = false;
|
|
139
|
+
this.canSort = true;
|
|
77
140
|
this.children = [];
|
|
78
141
|
this.componentConfig = options.componentConfig;
|
|
79
142
|
this.rules = [{
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare type Value = (string | number)[] | undefined;
|
|
5
5
|
declare class Address implements ComponentInterface {
|
|
6
6
|
name: string;
|
|
7
7
|
id: string;
|
|
8
|
+
sortField: string;
|
|
8
9
|
type: string;
|
|
9
10
|
rules: any[];
|
|
10
11
|
isCombinationComponent: boolean;
|
|
12
|
+
canSort: boolean;
|
|
11
13
|
children: ComponentInterface[];
|
|
12
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
13
|
-
addressDateInstance: AddressData
|
|
15
|
+
addressDateInstance: InstanceType<typeof AddressData>;
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
/**
|
|
16
18
|
* 通过值计算展示内容
|
|
@@ -25,6 +27,22 @@ declare class Address implements ComponentInterface {
|
|
|
25
27
|
getComponentValue: (r: Record) => any[];
|
|
26
28
|
renderExport: (value: any, record: any) => string;
|
|
27
29
|
editRender: () => React.JSX.Element;
|
|
28
|
-
filterConfig: () =>
|
|
30
|
+
filterConfig: (item: ColumnConfig) => {
|
|
31
|
+
searchDefaultConditions: "eq";
|
|
32
|
+
type: string;
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
filterComponentType: "Cascader";
|
|
36
|
+
props: {
|
|
37
|
+
options: any;
|
|
38
|
+
fieldNames: {
|
|
39
|
+
label: string;
|
|
40
|
+
value: string;
|
|
41
|
+
children: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
45
|
+
formatFilterValue: (val: Array<number>) => number | undefined;
|
|
46
|
+
};
|
|
29
47
|
}
|
|
30
48
|
export default Address;
|
|
@@ -8,18 +8,22 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { ApaasAddress } from '@kmkf-fe-packages/basic-components';
|
|
10
10
|
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
|
+
import intersection from 'lodash/intersection';
|
|
11
12
|
import GetFormItem from "../GetFormItem";
|
|
12
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
15
|
import every from 'lodash/every';
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
15
17
|
var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
16
18
|
var _this = this;
|
|
17
19
|
_classCallCheck(this, Address);
|
|
18
20
|
_defineProperty(this, "name", void 0);
|
|
19
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
20
23
|
_defineProperty(this, "type", void 0);
|
|
21
24
|
_defineProperty(this, "rules", void 0);
|
|
22
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
23
27
|
_defineProperty(this, "children", void 0);
|
|
24
28
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
29
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
@@ -82,13 +86,41 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
82
86
|
component: /*#__PURE__*/React.createElement(ApaasAddress, _this.componentConfig)
|
|
83
87
|
});
|
|
84
88
|
});
|
|
85
|
-
_defineProperty(this, "filterConfig", function () {
|
|
86
|
-
return
|
|
89
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
90
|
+
return {
|
|
91
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
92
|
+
type: item.type,
|
|
93
|
+
id: "".concat(item.id, "_basicDistrict"),
|
|
94
|
+
// 过滤组件id
|
|
95
|
+
name: item.name,
|
|
96
|
+
// 过滤组件名称
|
|
97
|
+
filterComponentType: 'Cascader',
|
|
98
|
+
props: {
|
|
99
|
+
options: _this.addressDateInstance.addressOptions || [],
|
|
100
|
+
fieldNames: {
|
|
101
|
+
label: 'label',
|
|
102
|
+
value: 'value',
|
|
103
|
+
children: 'children'
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
filterFn: function filterFn(value) {
|
|
107
|
+
return function (i) {
|
|
108
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
112
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 2) {
|
|
113
|
+
return val === null || val === void 0 ? void 0 : val[2];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
};
|
|
87
117
|
});
|
|
88
118
|
this.name = options.name;
|
|
89
119
|
this.id = options.id;
|
|
120
|
+
this.sortField = "".concat(options.id, "_basicDistrict");
|
|
90
121
|
this.type = options.type;
|
|
91
122
|
this.isCombinationComponent = false;
|
|
123
|
+
this.canSort = true;
|
|
92
124
|
this.children = [];
|
|
93
125
|
this.rules = [];
|
|
94
126
|
this.componentConfig = options.componentConfig;
|
|
@@ -5,12 +5,14 @@ import EAlipayName from '../AlipayName';
|
|
|
5
5
|
declare class Alipay 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"];
|
|
11
12
|
alipayAccount: EAlipayAccount;
|
|
12
13
|
alipayName: EAlipayName;
|
|
13
14
|
isCombinationComponent: boolean;
|
|
15
|
+
canSort: boolean;
|
|
14
16
|
children: ComponentInterface[];
|
|
15
17
|
constructor(options: PickOption);
|
|
16
18
|
renderClient: (record: Record) => React.JSX.Element;
|
|
@@ -23,6 +25,7 @@ declare class Alipay implements ComponentInterface {
|
|
|
23
25
|
renderExport: () => null;
|
|
24
26
|
editRender: (value: any) => React.JSX.Element;
|
|
25
27
|
filterConfig: (item: ColumnConfig) => {
|
|
28
|
+
searchDefaultConditions: "eq";
|
|
26
29
|
type: string;
|
|
27
30
|
id: string;
|
|
28
31
|
name: string;
|
|
@@ -19,12 +19,14 @@ 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);
|
|
25
26
|
_defineProperty(this, "alipayAccount", void 0);
|
|
26
27
|
_defineProperty(this, "alipayName", void 0);
|
|
27
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
30
|
_defineProperty(this, "children", void 0);
|
|
29
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
32
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderClient(record), _this.alipayAccount.renderClient(record));
|
|
@@ -61,8 +63,10 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
61
63
|
});
|
|
62
64
|
this.name = options.name;
|
|
63
65
|
this.id = options.id;
|
|
66
|
+
this.sortField = options.id;
|
|
64
67
|
this.type = options.type;
|
|
65
68
|
this.isCombinationComponent = true;
|
|
69
|
+
this.canSort = false;
|
|
66
70
|
this.componentConfig = options.componentConfig;
|
|
67
71
|
this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
|
|
68
72
|
this.alipayName = new EAlipayName(_objectSpread({}, options));
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
declare class EAlipayAccount implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
sortField: string;
|
|
6
7
|
type: string;
|
|
7
8
|
rules: any[];
|
|
8
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
@@ -10,6 +11,7 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
10
11
|
align: ALignType;
|
|
11
12
|
width: number;
|
|
12
13
|
isCombinationComponent: boolean;
|
|
14
|
+
canSort: boolean;
|
|
13
15
|
children: ComponentInterface[];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -19,6 +21,7 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
19
21
|
renderExport: (value?: string) => string;
|
|
20
22
|
editRender: () => React.JSX.Element;
|
|
21
23
|
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "eq";
|
|
22
25
|
type: string;
|
|
23
26
|
id: string;
|
|
24
27
|
name: string;
|
|
@@ -10,6 +10,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
12
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { SYMBOL } from "../../constant";
|
|
13
14
|
var AlipayAccount = function AlipayAccount(props) {
|
|
14
15
|
return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
|
|
15
16
|
};
|
|
@@ -18,6 +19,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
18
19
|
_classCallCheck(this, EAlipayAccount);
|
|
19
20
|
_defineProperty(this, "name", void 0);
|
|
20
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
21
23
|
_defineProperty(this, "type", void 0);
|
|
22
24
|
_defineProperty(this, "rules", void 0);
|
|
23
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -25,6 +27,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
25
27
|
_defineProperty(this, "align", void 0);
|
|
26
28
|
_defineProperty(this, "width", void 0);
|
|
27
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
31
|
_defineProperty(this, "children", void 0);
|
|
29
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -65,6 +68,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
65
68
|
});
|
|
66
69
|
_defineProperty(this, "filterConfig", function (item) {
|
|
67
70
|
return {
|
|
71
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
68
72
|
type: item.type,
|
|
69
73
|
id: "".concat(item.id, "_alipayAccount"),
|
|
70
74
|
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
|
|
@@ -78,8 +82,10 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
78
82
|
});
|
|
79
83
|
this.name = '支付宝账号';
|
|
80
84
|
this.id = "".concat(options.id, "_alipayAccount");
|
|
85
|
+
this.sortField = "".concat(options.id, "_alipayAccount");
|
|
81
86
|
this.type = options.type;
|
|
82
87
|
this.isCombinationComponent = false;
|
|
88
|
+
this.canSort = true;
|
|
83
89
|
this.children = [];
|
|
84
90
|
this.align = 'left';
|
|
85
91
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
@@ -3,11 +3,13 @@ import React from 'react';
|
|
|
3
3
|
declare class EAlipayAccount implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
sortField: string;
|
|
6
7
|
type: string;
|
|
7
8
|
rules: any[];
|
|
8
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
10
|
effects: ComponentInterface["effects"];
|
|
10
11
|
isCombinationComponent: boolean;
|
|
12
|
+
canSort: boolean;
|
|
11
13
|
children: ComponentInterface[];
|
|
12
14
|
align: ALignType;
|
|
13
15
|
width: number;
|
|
@@ -19,6 +21,7 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
19
21
|
renderExport: (value?: string) => string;
|
|
20
22
|
editRender: () => React.JSX.Element;
|
|
21
23
|
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "eq";
|
|
22
25
|
type: string;
|
|
23
26
|
id: string;
|
|
24
27
|
name: string;
|
|
@@ -10,6 +10,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
12
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { SYMBOL } from "../../constant";
|
|
13
14
|
var AlipayName = function AlipayName(props) {
|
|
14
15
|
return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
|
|
15
16
|
};
|
|
@@ -18,11 +19,13 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
18
19
|
_classCallCheck(this, EAlipayAccount);
|
|
19
20
|
_defineProperty(this, "name", void 0);
|
|
20
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
21
23
|
_defineProperty(this, "type", void 0);
|
|
22
24
|
_defineProperty(this, "rules", void 0);
|
|
23
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
26
|
_defineProperty(this, "effects", void 0);
|
|
25
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "canSort", void 0);
|
|
26
29
|
_defineProperty(this, "children", void 0);
|
|
27
30
|
_defineProperty(this, "align", void 0);
|
|
28
31
|
_defineProperty(this, "width", void 0);
|
|
@@ -65,6 +68,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
65
68
|
});
|
|
66
69
|
_defineProperty(this, "filterConfig", function (item) {
|
|
67
70
|
return {
|
|
71
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
68
72
|
type: item.type,
|
|
69
73
|
id: "".concat(item.id, "_alipayName"),
|
|
70
74
|
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u540D\u79F0"),
|
|
@@ -78,8 +82,10 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
78
82
|
});
|
|
79
83
|
this.name = '支付宝名称';
|
|
80
84
|
this.id = "".concat(options.id, "_alipayName");
|
|
85
|
+
this.sortField = "".concat(options.id, "_alipayName");
|
|
81
86
|
this.type = options.type;
|
|
82
87
|
this.isCombinationComponent = false;
|
|
88
|
+
this.canSort = true;
|
|
83
89
|
this.children = [];
|
|
84
90
|
this.align = 'left';
|
|
85
91
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
@@ -3,11 +3,13 @@ import React from 'react';
|
|
|
3
3
|
declare class EBuyerNick implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
sortField: string;
|
|
6
7
|
type: string;
|
|
7
8
|
rules: any[];
|
|
8
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
10
|
effects: ComponentInterface["effects"];
|
|
10
11
|
isCombinationComponent: boolean;
|
|
12
|
+
canSort: boolean;
|
|
11
13
|
children: ComponentInterface[];
|
|
12
14
|
constructor(options: PickOption);
|
|
13
15
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -20,6 +22,7 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
20
22
|
renderExport: (value: any, record: any) => any;
|
|
21
23
|
editRender: (value: any) => React.JSX.Element;
|
|
22
24
|
filterConfig: (item: ColumnConfig) => {
|
|
25
|
+
searchDefaultConditions: "like";
|
|
23
26
|
type: string;
|
|
24
27
|
id: string;
|
|
25
28
|
name: string;
|
|
@@ -12,6 +12,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
14
14
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { SYMBOL } from "../../constant";
|
|
15
16
|
var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
16
17
|
var _this = this,
|
|
17
18
|
_this$componentConfig3,
|
|
@@ -19,11 +20,13 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
19
20
|
_classCallCheck(this, EBuyerNick);
|
|
20
21
|
_defineProperty(this, "name", void 0);
|
|
21
22
|
_defineProperty(this, "id", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
24
|
_defineProperty(this, "type", void 0);
|
|
23
25
|
_defineProperty(this, "rules", void 0);
|
|
24
26
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
27
|
_defineProperty(this, "effects", void 0);
|
|
26
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
30
|
_defineProperty(this, "children", void 0);
|
|
28
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
32
|
var _record$_this$id;
|
|
@@ -77,6 +80,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
77
80
|
});
|
|
78
81
|
_defineProperty(this, "filterConfig", function (item) {
|
|
79
82
|
return {
|
|
83
|
+
searchDefaultConditions: SYMBOL.like,
|
|
80
84
|
type: item.type,
|
|
81
85
|
id: "".concat(item.id, "_buyerNick"),
|
|
82
86
|
// 过滤组件id
|
|
@@ -93,7 +97,9 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
93
97
|
this.name = options.name;
|
|
94
98
|
this.id = options.id;
|
|
95
99
|
this.type = options.type;
|
|
100
|
+
this.sortField = "".concat(options.id, "_buyerNick");
|
|
96
101
|
this.isCombinationComponent = false;
|
|
102
|
+
this.canSort = true;
|
|
97
103
|
this.children = [];
|
|
98
104
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
99
105
|
validator: function validator(_, value) {
|
|
@@ -3,10 +3,12 @@ import React from 'react';
|
|
|
3
3
|
declare class BasicCascader implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
|
+
sortField: string;
|
|
6
7
|
type: string;
|
|
7
8
|
rules: any[];
|
|
8
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
10
12
|
children: ComponentInterface[];
|
|
11
13
|
constructor(options: PickOption);
|
|
12
14
|
/**
|
|
@@ -22,12 +24,21 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
22
24
|
renderExport: (value: any, record: Record) => string;
|
|
23
25
|
editRender: () => React.JSX.Element;
|
|
24
26
|
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
searchDefaultConditions: "eq";
|
|
25
28
|
type: string;
|
|
26
29
|
id: string;
|
|
27
30
|
name: string;
|
|
28
31
|
filterComponentType: "Cascader";
|
|
29
|
-
|
|
32
|
+
props: {
|
|
33
|
+
options: any;
|
|
34
|
+
fieldNames: {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
children: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
30
40
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
41
|
+
formatFilterValue: (val: Array<string>) => string | undefined;
|
|
31
42
|
};
|
|
32
43
|
}
|
|
33
44
|
export default BasicCascader;
|
|
@@ -10,18 +10,21 @@ 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(_options) {
|
|
17
18
|
var _this = this;
|
|
18
19
|
_classCallCheck(this, BasicCascader);
|
|
19
20
|
_defineProperty(this, "name", void 0);
|
|
20
21
|
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
21
23
|
_defineProperty(this, "type", void 0);
|
|
22
24
|
_defineProperty(this, "rules", void 0);
|
|
23
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
28
|
_defineProperty(this, "children", void 0);
|
|
26
29
|
_defineProperty(this, "getValue", function (value) {
|
|
27
30
|
var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
|
|
@@ -86,28 +89,52 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
86
89
|
});
|
|
87
90
|
_defineProperty(this, "filterConfig", function (item) {
|
|
88
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) || []);
|
|
89
93
|
return {
|
|
94
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
90
95
|
type: item.type,
|
|
91
|
-
id: item.id,
|
|
96
|
+
id: "".concat(item.id, "_multSelect"),
|
|
92
97
|
// 过滤组件id
|
|
93
98
|
name: item.name,
|
|
94
99
|
// 过滤组件名称
|
|
95
100
|
filterComponentType: 'Cascader',
|
|
96
|
-
|
|
101
|
+
props: {
|
|
102
|
+
options: options,
|
|
103
|
+
fieldNames: {
|
|
104
|
+
label: 'label',
|
|
105
|
+
value: 'actived',
|
|
106
|
+
children: 'children'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
97
109
|
filterFn: function filterFn(value) {
|
|
98
110
|
return function (i) {
|
|
99
111
|
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
100
112
|
};
|
|
113
|
+
},
|
|
114
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
115
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
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
|
+
}
|
|
125
|
+
}
|
|
101
126
|
}
|
|
102
127
|
};
|
|
103
128
|
});
|
|
104
|
-
this.name =
|
|
105
|
-
this.id =
|
|
106
|
-
this.
|
|
107
|
-
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;
|
|
108
134
|
this.rules = [];
|
|
109
135
|
this.children = [];
|
|
110
136
|
this.isCombinationComponent = false;
|
|
137
|
+
this.canSort = true;
|
|
111
138
|
}
|
|
112
139
|
|
|
113
140
|
/**
|