@kmkf-fe-packages/services-components 2.0.12-beta.11 → 2.0.12-beta.19
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/BS/common/BsHeaderChild.d.ts +2 -1
- package/dist/esm/components/BS/common/BsHeaderChild.js +5 -1
- package/dist/esm/components/CommonHeaderGood/index.js +46 -5
- package/dist/esm/components/GY/GyReissue/index.js +3 -2
- package/dist/esm/components/GetFormItem/index.d.ts +1 -2
- package/dist/esm/components/GetFormItem/index.js +10 -30
- package/dist/esm/components/JST/JstSendGood/index.js +3 -3
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/type.d.ts +1 -1
- package/package.json +2 -2
|
@@ -13,7 +13,8 @@ declare class BsHeaderChild implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
|
-
|
|
16
|
+
parentName?: string;
|
|
17
|
+
transformValue: (val: any, record?: any, parentName?: string) => any;
|
|
17
18
|
export: (val: any) => any;
|
|
18
19
|
constructor(options: PickOption);
|
|
19
20
|
getParentId: () => string;
|
|
@@ -29,6 +29,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
29
29
|
_defineProperty(this, "canSort", void 0);
|
|
30
30
|
_defineProperty(this, "children", void 0);
|
|
31
31
|
_defineProperty(this, "dataType", void 0);
|
|
32
|
+
_defineProperty(this, "parentName", void 0);
|
|
32
33
|
_defineProperty(this, "transformValue", function (val) {
|
|
33
34
|
return val;
|
|
34
35
|
});
|
|
@@ -60,7 +61,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
60
61
|
return _this.renderPc(undefined, r);
|
|
61
62
|
});
|
|
62
63
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
63
|
-
return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id]);
|
|
64
|
+
return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
|
|
64
65
|
});
|
|
65
66
|
_defineProperty(this, "getComponentExport", function (r) {
|
|
66
67
|
return _this.export(r === null || r === void 0 ? void 0 : r[_this.id]);
|
|
@@ -81,6 +82,9 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
81
82
|
this.sortField = options.id;
|
|
82
83
|
this.formField = options.id;
|
|
83
84
|
this.type = options.type;
|
|
85
|
+
if (options.parentName) {
|
|
86
|
+
this.parentName = options.parentName;
|
|
87
|
+
}
|
|
84
88
|
this.componentConfig = options.componentConfig;
|
|
85
89
|
this.align = "left";
|
|
86
90
|
this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
|
|
@@ -777,10 +777,34 @@ var GoodHeaderMap = {
|
|
|
777
777
|
name: '商品图片'
|
|
778
778
|
},
|
|
779
779
|
propertiesValue: "规格值",
|
|
780
|
-
saleBasePrice:
|
|
781
|
-
|
|
780
|
+
saleBasePrice: {
|
|
781
|
+
name: "原价",
|
|
782
|
+
transformValue: function transformValue(price) {
|
|
783
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
784
|
+
},
|
|
785
|
+
renderExport: function renderExport(price) {
|
|
786
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
salePrice: {
|
|
790
|
+
name: "单价",
|
|
791
|
+
transformValue: function transformValue(price) {
|
|
792
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
793
|
+
},
|
|
794
|
+
renderExport: function renderExport(price) {
|
|
795
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
796
|
+
}
|
|
797
|
+
},
|
|
782
798
|
qty: "数量",
|
|
783
|
-
saleAmount:
|
|
799
|
+
saleAmount: {
|
|
800
|
+
name: "总金额",
|
|
801
|
+
transformValue: function transformValue(val, record, parentName) {
|
|
802
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
803
|
+
},
|
|
804
|
+
renderExport: function renderExport(val, record, parentName) {
|
|
805
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
806
|
+
}
|
|
807
|
+
},
|
|
784
808
|
batchId: "批次号",
|
|
785
809
|
isGift: {
|
|
786
810
|
name: "是否赠品",
|
|
@@ -805,8 +829,24 @@ var GoodHeaderMap = {
|
|
|
805
829
|
name: '商品图片'
|
|
806
830
|
},
|
|
807
831
|
propertiesValue: "规格值",
|
|
808
|
-
saleBasePrice:
|
|
809
|
-
|
|
832
|
+
saleBasePrice: {
|
|
833
|
+
name: "原价",
|
|
834
|
+
transformValue: function transformValue(price) {
|
|
835
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
836
|
+
},
|
|
837
|
+
renderExport: function renderExport(price) {
|
|
838
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
salePrice: {
|
|
842
|
+
name: "单价",
|
|
843
|
+
transformValue: function transformValue(price) {
|
|
844
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
845
|
+
},
|
|
846
|
+
renderExport: function renderExport(price) {
|
|
847
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
848
|
+
}
|
|
849
|
+
},
|
|
810
850
|
qty: "数量",
|
|
811
851
|
isGift: {
|
|
812
852
|
name: "是否赠品",
|
|
@@ -940,6 +980,7 @@ var CommonHeaderGoods = /*#__PURE__*/function () {
|
|
|
940
980
|
name: target.name,
|
|
941
981
|
id: "".concat(options.id, "_").concat(target.key),
|
|
942
982
|
width: target.width,
|
|
983
|
+
parentName: options.id,
|
|
943
984
|
transformValue: target.transformValue,
|
|
944
985
|
renderExport: target.renderExport
|
|
945
986
|
})));
|
|
@@ -94,8 +94,9 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
|
|
|
94
94
|
required: false,
|
|
95
95
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
96
96
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
97
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : ""
|
|
98
|
-
isGyReissue
|
|
97
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : ""
|
|
98
|
+
// isGyReissue={true}
|
|
99
|
+
,
|
|
99
100
|
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
100
101
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
101
102
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
@@ -10,7 +10,6 @@ declare type GetFormItemProps = {
|
|
|
10
10
|
style?: CSSProperties | undefined;
|
|
11
11
|
[prop: string]: any;
|
|
12
12
|
tooltip?: string;
|
|
13
|
-
isGyReissue?: boolean;
|
|
14
13
|
};
|
|
15
|
-
declare const GetFormItem: ({ rules, required, title, component, name, hidden, display, style, validateTrigger, tooltip,
|
|
14
|
+
declare const GetFormItem: ({ rules, required, title, component, name, hidden, display, style, validateTrigger, tooltip, }: GetFormItemProps) => React.JSX.Element | null;
|
|
16
15
|
export default GetFormItem;
|
|
@@ -4,9 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
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; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
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); }
|
|
7
|
-
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; }
|
|
8
|
-
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); } }
|
|
9
|
-
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); }); }; }
|
|
10
7
|
import React from "react";
|
|
11
8
|
import { Form } from "antd";
|
|
12
9
|
var GetFormItem = function GetFormItem(_ref) {
|
|
@@ -22,8 +19,7 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
22
19
|
style = _ref.style,
|
|
23
20
|
validateTrigger = _ref.validateTrigger,
|
|
24
21
|
_ref$tooltip = _ref.tooltip,
|
|
25
|
-
tooltip = _ref$tooltip === void 0 ? "" : _ref$tooltip
|
|
26
|
-
isGyReissue = _ref.isGyReissue;
|
|
22
|
+
tooltip = _ref$tooltip === void 0 ? "" : _ref$tooltip;
|
|
27
23
|
var newRules = rules;
|
|
28
24
|
if (required) {
|
|
29
25
|
newRules = rules.concat({
|
|
@@ -31,31 +27,15 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
31
27
|
message: "\u8BF7\u8F93\u5165".concat(title)
|
|
32
28
|
});
|
|
33
29
|
}
|
|
34
|
-
if (isGyReissue) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
return _context.abrupt("return", Promise.reject(new Error("vipCode 是必填项,请联系管理员")));
|
|
46
|
-
case 2:
|
|
47
|
-
case "end":
|
|
48
|
-
return _context.stop();
|
|
49
|
-
}
|
|
50
|
-
}, _callee);
|
|
51
|
-
}));
|
|
52
|
-
function validator(_x, _x2) {
|
|
53
|
-
return _validator.apply(this, arguments);
|
|
54
|
-
}
|
|
55
|
-
return validator;
|
|
56
|
-
}()
|
|
57
|
-
});
|
|
58
|
-
}
|
|
30
|
+
// if (isGyReissue) {
|
|
31
|
+
// newRules.push({
|
|
32
|
+
// validator: async (_: any, value: any) => {
|
|
33
|
+
// if (!value || !value.vipCode) {
|
|
34
|
+
// return Promise.reject(new Error("vipCode 是必填项,请联系管理员"));
|
|
35
|
+
// }
|
|
36
|
+
// },
|
|
37
|
+
// });
|
|
38
|
+
// }
|
|
59
39
|
// 当隐藏时, 不在拥有该组件
|
|
60
40
|
if (hidden) return null;
|
|
61
41
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -180,7 +180,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
180
180
|
searchDefaultConditions: SYMBOL.in,
|
|
181
181
|
type: item.type,
|
|
182
182
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
183
|
-
name: "".concat(_this.name, "
|
|
183
|
+
name: "".concat(_this.name, "-\u540D\u79F0"),
|
|
184
184
|
filterComponentType: "MultipleSelect",
|
|
185
185
|
props: {
|
|
186
186
|
options: SendDataCenter.getInstance(item.type).getSendData()
|
|
@@ -199,7 +199,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
199
199
|
searchDefaultConditions: SYMBOL.like,
|
|
200
200
|
type: item.type,
|
|
201
201
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
|
|
202
|
-
name: "".concat(_this.name, "
|
|
202
|
+
name: "".concat(_this.name, "-\u540D\u79F0"),
|
|
203
203
|
filterComponentType: "Input",
|
|
204
204
|
filterFn: function filterFn(value) {
|
|
205
205
|
return function (i) {
|
|
@@ -215,7 +215,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
215
215
|
searchDefaultConditions: SYMBOL.like,
|
|
216
216
|
type: item.type,
|
|
217
217
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.sendId),
|
|
218
|
-
name: "".concat(_this.name, "
|
|
218
|
+
name: "".concat(_this.name, "-\u7F16\u7801"),
|
|
219
219
|
filterComponentType: "Input",
|
|
220
220
|
filterFn: function filterFn(value) {
|
|
221
221
|
return function (i) {
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => GyReissue | JstSendGood | Label | MsgStatus | BasicSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | MemberLevel | AfterSalesOrderId | GyGoods;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare type FilterConfigType = {
|
|
|
34
34
|
};
|
|
35
35
|
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput";
|
|
36
36
|
export interface ComponentInterface {
|
|
37
|
-
transformValue?: (val: any) => any;
|
|
37
|
+
transformValue?: (val: any, record?: any, parentName?: string) => any;
|
|
38
38
|
id: string;
|
|
39
39
|
sortField: string;
|
|
40
40
|
sortChildField?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.0.12-beta.
|
|
3
|
+
"version": "2.0.12-beta.19",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "f52049b52b2c6fcebdea3cfb5c8397ae7eb6978a",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|