@kmkf-fe-packages/services-components 0.7.15-alpha.1 → 0.7.15-alpha.3

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.
Files changed (48) hide show
  1. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
  2. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +61 -31
  3. package/dist/esm/components/BS/BsExchange/index.d.ts +47 -0
  4. package/dist/esm/components/BS/BsExchange/index.js +143 -0
  5. package/dist/esm/components/BS/BsGoods/index.d.ts +31 -0
  6. package/dist/esm/components/{BsSendGood → BS/BsGoods}/index.js +53 -57
  7. package/dist/esm/components/{BsLogistics → BS/BsLogistics}/index.d.ts +3 -3
  8. package/dist/esm/components/{BsLogistics → BS/BsLogistics}/index.js +3 -3
  9. package/dist/esm/components/BS/BsReissue/index.d.ts +47 -0
  10. package/dist/esm/components/BS/BsReissue/index.js +115 -0
  11. package/dist/esm/components/BS/common/BsExchangeImage.d.ts +31 -0
  12. package/dist/esm/components/BS/common/BsExchangeImage.js +126 -0
  13. package/dist/esm/components/BS/common/BsGoodImage.d.ts +31 -0
  14. package/dist/esm/components/BS/common/BsGoodImage.js +88 -0
  15. package/dist/esm/components/{BsSendGood/index.d.ts → BS/common/BsMemo.d.ts} +9 -9
  16. package/dist/esm/components/BS/common/BsMemo.js +76 -0
  17. package/dist/esm/components/BS/common/BsType.d.ts +35 -0
  18. package/dist/esm/components/BS/common/BsType.js +89 -0
  19. package/dist/esm/components/Common/index.d.ts +11 -6
  20. package/dist/esm/components/Common/index.js +105 -50
  21. package/dist/esm/components/Common/index.module.less +8 -0
  22. package/dist/esm/components/File/index.d.ts +7 -8
  23. package/dist/esm/components/File/index.js +20 -49
  24. package/dist/esm/components/Input/index.js +4 -1
  25. package/dist/esm/components/{JstItemSelect → JST/JstItemSelect}/index.d.ts +4 -4
  26. package/dist/esm/components/{JstItemSelect → JST/JstItemSelect}/index.js +19 -19
  27. package/dist/esm/components/{JstLogistics → JST/JstLogistics}/index.d.ts +4 -4
  28. package/dist/esm/components/{JstLogistics → JST/JstLogistics}/index.js +17 -17
  29. package/dist/esm/components/{JstSendGood → JST/JstSendGood}/index.d.ts +3 -3
  30. package/dist/esm/components/{JstSendGood → JST/JstSendGood}/index.js +46 -29
  31. package/dist/esm/components/{JstSupply → JST/JstSupply}/index.d.ts +3 -3
  32. package/dist/esm/components/{JstSupply → JST/JstSupply}/index.js +20 -20
  33. package/dist/esm/components/LogisticsTrajectory/index.d.ts +53 -0
  34. package/dist/esm/components/LogisticsTrajectory/index.js +107 -0
  35. package/dist/esm/components/LogisticsTrajectory/trajectoryCode.d.ts +35 -0
  36. package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +103 -0
  37. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +39 -0
  38. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +91 -0
  39. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +32 -0
  40. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +80 -0
  41. package/dist/esm/components/PostIng/index.d.ts +26 -3
  42. package/dist/esm/components/PostIng/index.js +94 -25
  43. package/dist/esm/factory.d.ts +2 -2
  44. package/dist/esm/factory.js +12 -3
  45. package/dist/esm/index.d.ts +9 -6
  46. package/dist/esm/index.js +9 -6
  47. package/dist/esm/type.d.ts +2 -1
  48. package/package.json +4 -4
@@ -4,6 +4,6 @@ declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, inter
4
4
  modelWidth?: string | number | undefined;
5
5
  interceptCompany: string;
6
6
  interceptCode: string;
7
- interceptSenderMobile: string | number;
7
+ interceptSenderMobile?: string | number | undefined;
8
8
  }) => React.JSX.Element;
9
9
  export default QueryLogisticsTrack;
@@ -2,8 +2,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
2
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
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
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); }); }; }
5
- import React from "react";
6
- import { Modal, Timeline, message } from "antd";
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import React, { useState } from "react";
12
+ import { Modal, Timeline, message, Input } from "antd";
7
13
  import { request } from "@kmkf-fe-packages/kmkf-utils";
8
14
  var info = Modal.info;
9
15
  var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
@@ -14,6 +20,10 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
14
20
  interceptCompany = _ref.interceptCompany,
15
21
  interceptCode = _ref.interceptCode,
16
22
  interceptSenderMobile = _ref.interceptSenderMobile;
23
+ var _useState = useState(""),
24
+ _useState2 = _slicedToArray(_useState, 2),
25
+ inputVal = _useState2[0],
26
+ setInputVal = _useState2[1];
17
27
  var LogisticsList = function LogisticsList(list) {
18
28
  return /*#__PURE__*/React.createElement("div", {
19
29
  style: {
@@ -38,37 +48,23 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
38
48
  }
39
49
  return _context.abrupt("return", message.error("缺少物流公司或物流单号"));
40
50
  case 2:
41
- try {
42
- request({
43
- url: "/qy/logistics/logisticsTraceSearch",
44
- method: "post",
45
- data: {
46
- mailNo: interceptCode,
47
- cpCode: interceptCompany,
48
- mobile: interceptSenderMobile
49
- },
50
- handleError: function handleError(msg) {
51
- msg && message.error(msg);
52
- }
53
- }).then(function (res) {
54
- var result = res.result,
55
- success = res.success,
56
- data = res.data,
57
- message = res.message;
58
- if (result === 100 || success) {
59
- info({
60
- title: "物流轨迹",
61
- okText: "确定",
62
- icon: null,
63
- width: modelWidth,
64
- content: LogisticsList(data)
65
- });
66
- } else {
67
- message && message.error(message);
51
+ //如果是顺丰且没有手机号 要输入手机号
52
+ if (interceptCompany === "SF" && !interceptSenderMobile) {
53
+ Modal.confirm({
54
+ title: "输入手机号",
55
+ okText: "确定",
56
+ cancelText: "取消",
57
+ content: /*#__PURE__*/React.createElement(Input, {
58
+ onChange: function onChange(e) {
59
+ return setInputVal(e.target.value);
60
+ }
61
+ }),
62
+ onOk: function onOk() {
63
+ logisticsTraceSearch(inputVal);
68
64
  }
69
65
  });
70
- } catch (err) {
71
- (err === null || err === void 0 ? void 0 : err.message) && message.error(err === null || err === void 0 ? void 0 : err.message);
66
+ } else {
67
+ logisticsTraceSearch();
72
68
  }
73
69
  case 3:
74
70
  case "end":
@@ -80,6 +76,40 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
80
76
  return _ref2.apply(this, arguments);
81
77
  };
82
78
  }();
79
+ var logisticsTraceSearch = function logisticsTraceSearch(mobile) {
80
+ try {
81
+ request({
82
+ url: "/qy/logistics/logisticsTraceSearch",
83
+ method: "post",
84
+ data: {
85
+ mailNo: interceptCode,
86
+ cpCode: interceptCompany,
87
+ mobile: interceptSenderMobile || mobile
88
+ },
89
+ handleError: function handleError(msg) {
90
+ msg && message.error(msg);
91
+ }
92
+ }).then(function (res) {
93
+ var result = res.result,
94
+ success = res.success,
95
+ data = res.data,
96
+ message = res.message;
97
+ if (result === 100 || success) {
98
+ info({
99
+ title: "物流轨迹",
100
+ okText: "确定",
101
+ icon: null,
102
+ width: modelWidth,
103
+ content: LogisticsList(data)
104
+ });
105
+ } else {
106
+ message && message.error(message);
107
+ }
108
+ });
109
+ } catch (err) {
110
+ (err === null || err === void 0 ? void 0 : err.message) && message.error(err === null || err === void 0 ? void 0 : err.message);
111
+ }
112
+ };
83
113
  return /*#__PURE__*/React.createElement("span", {
84
114
  style: {
85
115
  margin: "0 8px",
@@ -0,0 +1,47 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ import BsExchangeImage from "../common/BsExchangeImage";
4
+ import BsType from "../common/BsType";
5
+ import BsMemo from "../common/BsMemo";
6
+ declare class BsExchange implements ComponentInterface {
7
+ name: string;
8
+ id: string;
9
+ sortField: string;
10
+ type: string;
11
+ rules: any[];
12
+ componentConfig: ComponentInterface["componentConfig"];
13
+ effects: ComponentInterface["effects"];
14
+ isCombinationComponent: boolean;
15
+ formField: string;
16
+ canSort: boolean;
17
+ children: ComponentInterface[];
18
+ dataType: ComponentInterface["dataType"];
19
+ goodImage: BsExchangeImage;
20
+ bsType: BsType;
21
+ bsMemo: BsMemo;
22
+ constructor(options: PickOption);
23
+ renderClient: (record: any) => React.JSX.Element | null;
24
+ renderPc: () => null;
25
+ renderLog: (r: Record) => null;
26
+ getComponentValue: (r: Record) => any;
27
+ renderExport: (value: any, record: any) => any;
28
+ editRender: (p: any) => React.JSX.Element;
29
+ filterConfig: (item: ColumnConfig) => ({
30
+ searchDefaultConditions: "eq";
31
+ type: string;
32
+ id: string;
33
+ name: string;
34
+ filterComponentType: "Cascader";
35
+ props: {
36
+ options: any[] | undefined;
37
+ };
38
+ filterFn: (value: string) => (i: Record) => boolean;
39
+ } | {
40
+ searchDefaultConditions: "like";
41
+ type: string;
42
+ id: string;
43
+ name: string;
44
+ filterComponentType: "Input";
45
+ })[];
46
+ }
47
+ export default BsExchange;
@@ -0,0 +1,143 @@
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
8
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
9
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
10
+ 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); }
11
+ 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); } }
12
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ import React from "react";
18
+ import GetFormItem from "../../GetFormItem";
19
+ import { GoodImage } from "../../Common";
20
+ import ItemView from "../../../commonComponents/ItemView";
21
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
22
+ import { BsExchange as Exchange } from "@kmkf-fe-packages/basic-components";
23
+ import BsExchangeImage from "../common/BsExchangeImage";
24
+ import BsType from "../common/BsType";
25
+ import BsMemo from "../common/BsMemo";
26
+ var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
27
+ var _this = this;
28
+ _classCallCheck(this, BsExchange);
29
+ _defineProperty(this, "name", void 0);
30
+ _defineProperty(this, "id", void 0);
31
+ _defineProperty(this, "sortField", void 0);
32
+ _defineProperty(this, "type", void 0);
33
+ _defineProperty(this, "rules", void 0);
34
+ _defineProperty(this, "componentConfig", void 0);
35
+ _defineProperty(this, "effects", void 0);
36
+ _defineProperty(this, "isCombinationComponent", void 0);
37
+ _defineProperty(this, "formField", void 0);
38
+ _defineProperty(this, "canSort", void 0);
39
+ _defineProperty(this, "children", void 0);
40
+ _defineProperty(this, "dataType", void 0);
41
+ _defineProperty(this, "goodImage", void 0);
42
+ _defineProperty(this, "bsType", void 0);
43
+ _defineProperty(this, "bsMemo", void 0);
44
+ _defineProperty(this, "renderClient", function (record) {
45
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
46
+ id: _this.id,
47
+ label: _this.name,
48
+ value: /*#__PURE__*/React.createElement(GoodImage, {
49
+ list: _this.getComponentValue(record),
50
+ type: "itemId"
51
+ })
52
+ }) : null;
53
+ });
54
+ _defineProperty(this, "renderPc", function () {
55
+ return null;
56
+ });
57
+ _defineProperty(this, "renderLog", function (r) {
58
+ return null;
59
+ });
60
+ _defineProperty(this, "getComponentValue", function (r) {
61
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")];
62
+ });
63
+ _defineProperty(this, "renderExport", function (value, record) {
64
+ var _ref;
65
+ return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsGoods")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (i) {
66
+ return i.numIid;
67
+ }).join("\n");
68
+ });
69
+ _defineProperty(this, "editRender", function (p) {
70
+ var _this$componentConfig, _this$effects, _this$effects2;
71
+ return /*#__PURE__*/React.createElement(GetFormItem, {
72
+ title: _this.name,
73
+ name: _this.id,
74
+ rules: _this.rules,
75
+ required: false,
76
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
77
+ component: /*#__PURE__*/React.createElement(Exchange, _extends({}, _this.componentConfig, {
78
+ maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
79
+ shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
80
+ shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
81
+ width: "90%"
82
+ }))
83
+ });
84
+ });
85
+ _defineProperty(this, "filterConfig", function (item) {
86
+ return [_this.bsType.filterConfig(item)].concat(_toConsumableArray(_this.goodImage.filterConfig(item)));
87
+ });
88
+ this.name = options.name;
89
+ this.id = options.id;
90
+ this.sortField = "".concat(options.id, "_bsGoods");
91
+ this.formField = "".concat(options.id, "_bsGoods");
92
+ this.type = options.type;
93
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
94
+ this.isCombinationComponent = false;
95
+ this.canSort = false;
96
+ this.goodImage = new BsExchangeImage(_objectSpread(_objectSpread({}, options), {}, {
97
+ id: "".concat(options.id),
98
+ name: "换货商品"
99
+ }));
100
+ this.bsType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
101
+ id: "".concat(options.id, "_bsReissueType"),
102
+ name: "换货类型"
103
+ }));
104
+ this.bsMemo = new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
105
+ id: "".concat(options.id, "_bsReissueType"),
106
+ name: "换货备注"
107
+ }));
108
+ this.children = [];
109
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
110
+ this.rules = [{
111
+ required: true,
112
+ validator: function validator(_, value) {
113
+ var _value$bsExchangeRetu;
114
+ if (!value || !(value !== null && value !== void 0 && (_value$bsExchangeRetu = value.bsExchangeReturnGoods) !== null && _value$bsExchangeRetu !== void 0 && _value$bsExchangeRetu.length)) {
115
+ return Promise.reject(new Error("请选择bs换货商品"));
116
+ }
117
+ return Promise.resolve();
118
+ }
119
+ }, {
120
+ validator: function validator(_, value) {
121
+ var _value$bsExchangeType;
122
+ if (value && ["2", "4"].includes(value === null || value === void 0 ? void 0 : (_value$bsExchangeType = value.bsExchangeType) === null || _value$bsExchangeType === void 0 ? void 0 : _value$bsExchangeType[0])) {
123
+ var hasMore = ((value === null || value === void 0 ? void 0 : value.bsExchangeReturnGoods) || []).some(function (item) {
124
+ var returnMoney = ((item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || []).reduce(function (prv, next) {
125
+ prv += Number(next.money || 0);
126
+ return prv;
127
+ }, 0);
128
+ var swapOutMoney = ((item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods) || []).reduce(function (prv, next) {
129
+ prv += Number(next.money || 0);
130
+ return prv;
131
+ }, 0);
132
+ return returnMoney < swapOutMoney;
133
+ });
134
+ if (hasMore) {
135
+ return Promise.reject(new Error("换货商品的金额不能大于退回商品的金额"));
136
+ }
137
+ }
138
+ return Promise.resolve();
139
+ }
140
+ }];
141
+ this.dataType = "object";
142
+ });
143
+ export default BsExchange;
@@ -0,0 +1,31 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class BsGoods implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ rules: any[];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
+ effects: ComponentInterface["effects"];
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ constructor(options: PickOption);
17
+ renderClient: (record: any) => any;
18
+ renderPc: (value: unknown, record: Record) => any;
19
+ renderLog: (r: Record) => any;
20
+ getComponentValue: (r: Record) => any;
21
+ renderExport: (value: any, record: any) => any;
22
+ editRender: (p: any) => React.JSX.Element;
23
+ filterConfig: (item: ColumnConfig) => {
24
+ searchDefaultConditions: "like";
25
+ type: string;
26
+ id: string;
27
+ name: string;
28
+ filterComponentType: "Input";
29
+ };
30
+ }
31
+ export default BsGoods;
@@ -7,110 +7,106 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
9
  import React from "react";
10
- import some from "lodash/some";
11
- import GetFormItem from "../GetFormItem";
12
- import { JstGoodImage } from "../Common";
13
- import { JstGoods } from "@kmkf-fe-packages/basic-components";
14
- import ItemView from "../../commonComponents/ItemView";
10
+ import GetFormItem from "../../GetFormItem";
11
+ import { BsGoodImage } from "../../Common";
15
12
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
16
- var BsSendGood = /*#__PURE__*/_createClass(function BsSendGood(options) {
13
+ import { BsGoods as Goods } from "@kmkf-fe-packages/basic-components";
14
+ import { SYMBOL } from "../../../constant";
15
+ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
17
16
  var _this = this,
18
- _this$componentConfig;
19
- _classCallCheck(this, BsSendGood);
17
+ _this$componentConfig2;
18
+ _classCallCheck(this, BsGoods);
20
19
  _defineProperty(this, "name", void 0);
21
20
  _defineProperty(this, "id", void 0);
22
21
  _defineProperty(this, "sortField", void 0);
23
22
  _defineProperty(this, "type", void 0);
24
23
  _defineProperty(this, "rules", void 0);
25
24
  _defineProperty(this, "componentConfig", void 0);
26
- _defineProperty(this, "align", void 0);
25
+ _defineProperty(this, "effects", void 0);
27
26
  _defineProperty(this, "isCombinationComponent", void 0);
28
27
  _defineProperty(this, "formField", void 0);
29
28
  _defineProperty(this, "canSort", void 0);
30
29
  _defineProperty(this, "children", void 0);
31
30
  _defineProperty(this, "dataType", void 0);
32
31
  _defineProperty(this, "renderClient", function (record) {
33
- var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
34
- return !isNull(item);
35
- }) : false;
36
- return isShow ? /*#__PURE__*/React.createElement(ItemView, {
37
- id: _this.id,
38
- label: _this.name,
39
- value: /*#__PURE__*/React.createElement(JstGoodImage, {
40
- list: record === null || record === void 0 ? void 0 : record[_this.id],
41
- type: 3
42
- })
32
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? record === null || record === void 0 ? void 0 : record["".concat(_this.id)].map(function (item, index) {
33
+ return /*#__PURE__*/React.createElement(BsGoodImage, {
34
+ item: item,
35
+ index: index
36
+ });
43
37
  }) : null;
44
38
  });
45
39
  _defineProperty(this, "renderPc", function (value, record) {
46
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsSendGood")];
40
+ if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsGoods")]) === undefined) {
41
+ return /*#__PURE__*/React.createElement("span", null, "--");
42
+ }
47
43
  //兼容多个商品
48
- return /*#__PURE__*/React.createElement(JstGoodImage, {
49
- list: list,
50
- type: 3
44
+ return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsGoods")].map(function (item, index) {
45
+ return /*#__PURE__*/React.createElement(BsGoodImage, {
46
+ item: item,
47
+ index: index
48
+ });
51
49
  });
52
50
  });
53
51
  _defineProperty(this, "renderLog", function (r) {
54
- var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsSendGood")];
55
- if (isNull(list)) return null;
52
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")])) return null;
56
53
  return _this.renderPc(undefined, r);
57
54
  });
58
55
  _defineProperty(this, "getComponentValue", function (r) {
59
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsSendGood")];
56
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")];
60
57
  });
61
58
  _defineProperty(this, "renderExport", function (value, record) {
62
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsSendGood")];
63
- return (list || []).map(function (item) {
64
- return [item === null || item === void 0 ? void 0 : item.sendId, item === null || item === void 0 ? void 0 : item.sendName].join("/");
65
- }).join(",");
59
+ var _ref;
60
+ return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsGoods")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (i) {
61
+ return i.numIid;
62
+ }).join("\n");
66
63
  });
67
64
  _defineProperty(this, "editRender", function (p) {
65
+ var _this$componentConfig, _this$effects, _this$effects2;
68
66
  return /*#__PURE__*/React.createElement(GetFormItem, {
69
67
  title: _this.name,
70
68
  name: _this.id,
71
69
  rules: _this.rules,
72
70
  required: false,
73
71
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
74
- component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
75
- type: 3
72
+ component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
73
+ maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
74
+ shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
75
+ shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
76
+ width: "90%"
76
77
  }))
77
78
  });
78
79
  });
79
80
  _defineProperty(this, "filterConfig", function (item) {
80
- return [];
81
+ return {
82
+ searchDefaultConditions: SYMBOL.like,
83
+ type: item.type,
84
+ id: "".concat(item.id, "_bsGoods"),
85
+ // 过滤组件id
86
+ name: item.name,
87
+ // 过滤组件名称
88
+ filterComponentType: "Input"
89
+ };
81
90
  });
82
91
  this.name = options.name;
83
92
  this.id = options.id;
84
- this.sortField = "".concat(options.id, "_bsSendGood");
85
- this.formField = "".concat(options.id, "_bsSendGood");
93
+ this.sortField = "".concat(options.id, "_bsGoods");
94
+ this.formField = "".concat(options.id, "_bsGoods");
86
95
  this.type = options.type;
87
- this.componentConfig = options.componentConfig;
88
- this.dataType = "object";
89
- this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
96
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
97
+ this.isCombinationComponent = false;
98
+ this.canSort = false;
99
+ this.children = [];
100
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
101
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
90
102
  required: true,
91
103
  validator: function validator(_, value) {
92
104
  if (!value || !value.length) {
93
- return Promise.reject(new Error("请选择宝贝"));
94
- }
95
- var hasNo = (value || []).some(function (item) {
96
- var _this$componentConfig2, _this$componentConfig3;
97
- if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showField) || "")) {
98
- return item.sendName;
99
- } else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "")) {
100
- return item.sendId;
101
- } else {
102
- return item.sendId && item.sendName;
103
- }
104
- });
105
- if (!hasNo) {
106
- return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684\u53D1\u8D27\u4ED3\u4FE1\u606F"));
105
+ return Promise.reject(new Error("请选择bs商品"));
107
106
  }
108
107
  return Promise.resolve();
109
108
  }
110
109
  }] : [];
111
- this.align = "left";
112
- this.isCombinationComponent = false;
113
- this.canSort = false;
114
- this.children = [];
110
+ this.dataType = "object";
115
111
  });
116
- export default BsSendGood;
112
+ export default BsGoods;
@@ -1,8 +1,8 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
2
  import React from "react";
3
3
  import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
- import Express from "../Express";
5
- import ExpressCode from "../ExpressCode";
4
+ import Express from "../../Express";
5
+ import ExpressCode from "../../ExpressCode";
6
6
  declare class BsLogistics implements ComponentInterface {
7
7
  name: string;
8
8
  id: string;
@@ -11,9 +11,9 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
11
11
  import React from "react";
12
12
  import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
13
13
  import { ExpressLogistics } from "@kmkf-fe-packages/basic-components";
14
- import Express from "../Express";
15
- import ExpressCode from "../ExpressCode";
16
- import GetFormItem from "../GetFormItem";
14
+ import Express from "../../Express";
15
+ import ExpressCode from "../../ExpressCode";
16
+ import GetFormItem from "../../GetFormItem";
17
17
  var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
18
18
  var _this = this,
19
19
  _this$componentConfig3;
@@ -0,0 +1,47 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ import BsGoodImage from "../common/BsGoodImage";
4
+ import BsType from "../common/BsType";
5
+ import BsMemo from "../common/BsMemo";
6
+ declare class BsReissue implements ComponentInterface {
7
+ name: string;
8
+ id: string;
9
+ sortField: string;
10
+ type: string;
11
+ rules: any[];
12
+ componentConfig: ComponentInterface["componentConfig"];
13
+ effects: ComponentInterface["effects"];
14
+ isCombinationComponent: boolean;
15
+ formField: string;
16
+ canSort: boolean;
17
+ children: ComponentInterface[];
18
+ dataType: ComponentInterface["dataType"];
19
+ goodImage: BsGoodImage;
20
+ bsType: BsType;
21
+ bsMemo: BsMemo;
22
+ constructor(options: PickOption);
23
+ renderClient: (record: any) => React.JSX.Element | null;
24
+ renderPc: (value: unknown, record: Record) => any;
25
+ renderLog: (r: Record) => any;
26
+ getComponentValue: (r: Record) => any;
27
+ renderExport: () => null;
28
+ editRender: (p: any) => React.JSX.Element;
29
+ filterConfig: (item: ColumnConfig) => ({
30
+ searchDefaultConditions: "eq";
31
+ type: string;
32
+ id: string;
33
+ name: string;
34
+ filterComponentType: "Cascader";
35
+ props: {
36
+ options: any[] | undefined;
37
+ };
38
+ filterFn: (value: string) => (i: Record) => boolean;
39
+ } | {
40
+ searchDefaultConditions: "like";
41
+ type: string;
42
+ id: string;
43
+ name: string;
44
+ filterComponentType: "Input";
45
+ })[];
46
+ }
47
+ export default BsReissue;