@kmkf-fe-packages/services-components 2.2.22 → 2.2.24
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/commonComponents/GlobalContext/index.js +10 -3
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +4 -2
- package/dist/esm/components/BS/BsSystemOrder/index.js +17 -8
- package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
- package/dist/esm/components/Common/constants/bs.js +2 -2
- package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +11 -4
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +2 -2
- package/dist/esm/components/CommonHeaderGood/index.js +21 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
- package/dist/esm/components/ShopInput/index.d.ts +5 -5
- package/dist/esm/components/ShopInput/index.js +12 -9
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +6 -7
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +2 -0
- package/package.json +4 -4
|
@@ -1,12 +1,12 @@
|
|
|
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 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
6
|
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
7
|
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
8
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
9
|
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
10
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
11
|
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."); }
|
|
12
12
|
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); }
|
|
@@ -15,6 +15,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
15
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
16
|
import React, { useEffect, useState, useMemo } from "react";
|
|
17
17
|
import { Skeleton, Button, Alert, Space, message } from "antd";
|
|
18
|
+
import { cloneDeep } from "lodash";
|
|
18
19
|
import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryKMLogisticsCompany } from "../../service/api";
|
|
19
20
|
import { servers, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
20
21
|
import useGetErpLogisticsCompany from "./orderQuery/useGetErpLogisticsCompany";
|
|
@@ -48,6 +49,12 @@ var Global = function Global(_ref) {
|
|
|
48
49
|
try {
|
|
49
50
|
var _reduxData$main, _reduxData$workOrder, _reduxData$global;
|
|
50
51
|
var userInfo = (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : _reduxData$main.userInfo) || (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : _reduxData$workOrder.userInfo) || (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$global = reduxData.global) === null || _reduxData$global === void 0 ? void 0 : _reduxData$global.userInfo) || {};
|
|
52
|
+
var companyUserConfig = cloneDeep(userInfo.companyUserConfig);
|
|
53
|
+
if (companyUserConfig && typeof companyUserConfig === "string") {
|
|
54
|
+
userInfo = _objectSpread(_objectSpread({}, userInfo), {}, {
|
|
55
|
+
companyUserConfig: JSON.parse(companyUserConfig)
|
|
56
|
+
});
|
|
57
|
+
}
|
|
51
58
|
localStorage.setItem("reduxData_userInfo", JSON.stringify(userInfo));
|
|
52
59
|
} catch (e) {
|
|
53
60
|
console.error(e);
|
|
@@ -4,6 +4,7 @@ declare type OperationLogProps = {
|
|
|
4
4
|
operation: string;
|
|
5
5
|
componentDtoList: any[];
|
|
6
6
|
plat: any;
|
|
7
|
+
shopList: any[];
|
|
7
8
|
};
|
|
8
|
-
declare const OperationLog: ({ content, operation, componentDtoList, plat, }: OperationLogProps) => React.JSX.Element | null;
|
|
9
|
+
declare const OperationLog: ({ content, operation, componentDtoList, plat, shopList, }: OperationLogProps) => React.JSX.Element | null;
|
|
9
10
|
export default OperationLog;
|
|
@@ -11,7 +11,8 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
11
11
|
var content = _ref.content,
|
|
12
12
|
operation = _ref.operation,
|
|
13
13
|
componentDtoList = _ref.componentDtoList,
|
|
14
|
-
plat = _ref.plat
|
|
14
|
+
plat = _ref.plat,
|
|
15
|
+
shopList = _ref.shopList;
|
|
15
16
|
if (!content) return null;
|
|
16
17
|
try {
|
|
17
18
|
//todo过滤一些固定字段 展示不确定
|
|
@@ -80,7 +81,8 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
80
81
|
componentConfig: item.componentConfig,
|
|
81
82
|
type: item.workOrderComponentType,
|
|
82
83
|
effects: {
|
|
83
|
-
env: plat.platform
|
|
84
|
+
env: plat.platform,
|
|
85
|
+
shopList: shopList
|
|
84
86
|
}
|
|
85
87
|
});
|
|
86
88
|
if (operation !== null && operation !== void 0 && operation.startsWith("UPDATE")) {
|
|
@@ -16,6 +16,7 @@ import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components
|
|
|
16
16
|
import { BsSystemOrderTable } from "../../Common";
|
|
17
17
|
import { BsHeaderChild } from "../common/index";
|
|
18
18
|
import { SYMBOL, batchInput } from "../../../constant";
|
|
19
|
+
import { getSystemShowHead } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
20
|
var typeMap = {
|
|
20
21
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG,
|
|
21
22
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG,
|
|
@@ -28,9 +29,10 @@ var typeMap = {
|
|
|
28
29
|
};
|
|
29
30
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
30
31
|
var _this = this,
|
|
32
|
+
_getSystemShowHead,
|
|
31
33
|
_typeMap$options$type,
|
|
32
|
-
|
|
33
|
-
_this$
|
|
34
|
+
_options$componentCon,
|
|
35
|
+
_this$componentConfig5;
|
|
34
36
|
_classCallCheck(this, BsSystemOrder);
|
|
35
37
|
_defineProperty(this, "name", void 0);
|
|
36
38
|
_defineProperty(this, "id", void 0);
|
|
@@ -45,12 +47,14 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
45
47
|
_defineProperty(this, "dataType", void 0);
|
|
46
48
|
_defineProperty(this, "children", void 0);
|
|
47
49
|
_defineProperty(this, "renderClient", function (record) {
|
|
50
|
+
var _this$componentConfig;
|
|
48
51
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
49
52
|
id: _this.id,
|
|
50
53
|
label: _this.name,
|
|
51
54
|
value: /*#__PURE__*/React.createElement(BsSystemOrderTable, {
|
|
52
55
|
value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
|
|
53
|
-
type: _this.type
|
|
56
|
+
type: _this.type,
|
|
57
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
54
58
|
})
|
|
55
59
|
})) : null;
|
|
56
60
|
});
|
|
@@ -58,13 +62,15 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
58
62
|
return null;
|
|
59
63
|
});
|
|
60
64
|
_defineProperty(this, "renderLog", function (r) {
|
|
65
|
+
var _this$componentConfig2;
|
|
61
66
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)])) return null;
|
|
62
67
|
return /*#__PURE__*/React.createElement(BsSystemOrderTable, {
|
|
63
68
|
value: {
|
|
64
69
|
showOrderInfo: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)],
|
|
65
70
|
selectIds: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].selectId)]
|
|
66
71
|
},
|
|
67
|
-
type: _this.type
|
|
72
|
+
type: _this.type,
|
|
73
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
68
74
|
});
|
|
69
75
|
});
|
|
70
76
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
@@ -74,7 +80,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
74
80
|
return null;
|
|
75
81
|
});
|
|
76
82
|
_defineProperty(this, "editRender", function (p) {
|
|
77
|
-
var _this$
|
|
83
|
+
var _this$componentConfig3, _this$componentConfig4;
|
|
78
84
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
79
85
|
title: _this.name,
|
|
80
86
|
name: _this.id,
|
|
@@ -82,7 +88,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
82
88
|
required: false,
|
|
83
89
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
84
90
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
85
|
-
tooltip: (_this$
|
|
91
|
+
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 : "",
|
|
86
92
|
component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
|
|
87
93
|
onChange: p === null || p === void 0 ? void 0 : p.onChange,
|
|
88
94
|
type: _this.type
|
|
@@ -111,7 +117,10 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
111
117
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
112
118
|
this.isCombinationComponent = true;
|
|
113
119
|
this.canSort = false;
|
|
114
|
-
this.children = ((
|
|
120
|
+
this.children = ((_getSystemShowHead = getSystemShowHead({
|
|
121
|
+
columns: ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.columns) || [],
|
|
122
|
+
showHeader: (options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []
|
|
123
|
+
})) === null || _getSystemShowHead === void 0 ? void 0 : _getSystemShowHead.map(function (column) {
|
|
115
124
|
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
116
125
|
transformValue: column.render,
|
|
117
126
|
renderExport: column.renderExport,
|
|
@@ -121,7 +130,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
121
130
|
}));
|
|
122
131
|
})) || [];
|
|
123
132
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
124
|
-
this.rules = this !== null && this !== void 0 && (_this$
|
|
133
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
125
134
|
required: true,
|
|
126
135
|
validator: function validator(_, value) {
|
|
127
136
|
var _value$selectIds;
|
|
@@ -79,7 +79,7 @@ var HeaderMap = {
|
|
|
79
79
|
},
|
|
80
80
|
share: {
|
|
81
81
|
component: BsHeaderChild,
|
|
82
|
-
name: "
|
|
82
|
+
name: "均摊单价",
|
|
83
83
|
key: "share",
|
|
84
84
|
width: 120
|
|
85
85
|
},
|
|
@@ -231,7 +231,7 @@ var BsHeaderGods = /*#__PURE__*/function () {
|
|
|
231
231
|
skuName: "sku名称",
|
|
232
232
|
money: "实付金额",
|
|
233
233
|
number: "数量",
|
|
234
|
-
share: "
|
|
234
|
+
share: "均摊单价",
|
|
235
235
|
type: "赠品类型",
|
|
236
236
|
batch: "批次号",
|
|
237
237
|
expireDate: "有效期"
|
|
@@ -61,10 +61,10 @@ var getColumns = function getColumns(_ref) {
|
|
|
61
61
|
width: 100
|
|
62
62
|
}, {
|
|
63
63
|
dataIndex: "share",
|
|
64
|
-
title: "\
|
|
64
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
65
65
|
align: "center",
|
|
66
66
|
ellipsis: true,
|
|
67
|
-
width:
|
|
67
|
+
width: 120
|
|
68
68
|
}, {
|
|
69
69
|
dataIndex: "type",
|
|
70
70
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -60,10 +60,10 @@ var getColumns = function getColumns(_ref) {
|
|
|
60
60
|
width: 100
|
|
61
61
|
}, {
|
|
62
62
|
dataIndex: "share",
|
|
63
|
-
title: "\
|
|
63
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
64
64
|
align: "center",
|
|
65
65
|
ellipsis: true,
|
|
66
|
-
width:
|
|
66
|
+
width: 120
|
|
67
67
|
}, {
|
|
68
68
|
dataIndex: "type",
|
|
69
69
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -40,7 +40,7 @@ export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
|
|
|
40
40
|
}) => React.JSX.Element;
|
|
41
41
|
export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
42
42
|
export declare const KmVideoRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
43
|
-
export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
|
|
43
|
+
export declare const BsSystemOrderTable: ({ value, type, showHeader }: any) => React.JSX.Element;
|
|
44
44
|
export declare const MsgContent: ({ horizontal, list, valueKey, failValue, options, }: any) => React.JSX.Element;
|
|
45
45
|
export declare const AlipayBill: (props: any) => React.JSX.Element;
|
|
46
46
|
export declare const RenderPicturePro: (props: any) => React.JSX.Element;
|
|
@@ -15,7 +15,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
|
|
16
16
|
import { DownloadOutlined } from "@ant-design/icons";
|
|
17
17
|
import React, { useState, useMemo } from "react";
|
|
18
|
-
import { ExpressData, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
+
import { ExpressData, SendDataCenter, getSystemShowHead } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
19
|
import { getAlipayBillReceipt } from "../../service/api";
|
|
20
20
|
import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
21
21
|
import styles from "./index.module.less";
|
|
@@ -769,7 +769,9 @@ export var KmVideoRender = function KmVideoRender(_ref13) {
|
|
|
769
769
|
};
|
|
770
770
|
export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
771
771
|
var value = _ref14.value,
|
|
772
|
-
type = _ref14.type
|
|
772
|
+
type = _ref14.type,
|
|
773
|
+
_ref14$showHeader = _ref14.showHeader,
|
|
774
|
+
showHeader = _ref14$showHeader === void 0 ? [] : _ref14$showHeader;
|
|
773
775
|
var columnMap = {
|
|
774
776
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
775
777
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -805,15 +807,20 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
805
807
|
};
|
|
806
808
|
}
|
|
807
809
|
};
|
|
810
|
+
var columns = getSystemShowHead({
|
|
811
|
+
columns: columnMap[type] || [],
|
|
812
|
+
showHeader: showHeader
|
|
813
|
+
});
|
|
808
814
|
return /*#__PURE__*/React.createElement(Table, {
|
|
809
815
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
810
|
-
columns:
|
|
816
|
+
columns: columns || [],
|
|
811
817
|
rowSelection: rowSelection,
|
|
812
818
|
rowKey: rowKeyMap[type] || "billNo",
|
|
813
819
|
size: "small",
|
|
814
820
|
pagination: false,
|
|
815
821
|
scroll: {
|
|
816
|
-
x: "100%"
|
|
822
|
+
x: "100%",
|
|
823
|
+
y: 500
|
|
817
824
|
},
|
|
818
825
|
locale: {
|
|
819
826
|
emptyText: "暂无数据"
|
|
@@ -19,8 +19,8 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
19
19
|
constructor(options: PickOption);
|
|
20
20
|
getValues: (value: string) => string;
|
|
21
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
-
renderPc: (value: any, record: Record) =>
|
|
23
|
-
renderLog: (r: Record) =>
|
|
22
|
+
renderPc: (value: any, record: Record) => string;
|
|
23
|
+
renderLog: (r: Record) => string | null;
|
|
24
24
|
getComponentValue: (r: Record) => any;
|
|
25
25
|
renderExport: (value: any, record: Record) => string;
|
|
26
26
|
editRender: () => null;
|
|
@@ -40,8 +40,8 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
40
40
|
}) : null;
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
43
|
-
var
|
|
44
|
-
return
|
|
43
|
+
var time = record === null || record === void 0 ? void 0 : record["".concat(_this.id)];
|
|
44
|
+
return time ? moment(time).format("YYYY-MM-DD HH:mm:ss") : "--";
|
|
45
45
|
// if (record?.[`${this.id}`] === undefined) {
|
|
46
46
|
// return <span>--</span>;
|
|
47
47
|
// }
|
|
@@ -88,6 +88,12 @@ var GoodHeaderMap = {
|
|
|
88
88
|
key: "platformSpecId",
|
|
89
89
|
width: 140
|
|
90
90
|
},
|
|
91
|
+
brandName: {
|
|
92
|
+
component: BsHeaderChild,
|
|
93
|
+
name: "品牌名称",
|
|
94
|
+
key: "brandName",
|
|
95
|
+
width: 150
|
|
96
|
+
},
|
|
91
97
|
orderPrice: {
|
|
92
98
|
component: BsHeaderChild,
|
|
93
99
|
name: "成交总金额",
|
|
@@ -132,6 +138,7 @@ var GoodHeaderMap = {
|
|
|
132
138
|
specName: "商品SKU名称",
|
|
133
139
|
apiSpecName: "平台规格名称",
|
|
134
140
|
platformSpecId: "平台规格ID",
|
|
141
|
+
brandName: "品牌名称",
|
|
135
142
|
orderPrice: "成交总金额",
|
|
136
143
|
num: "数量",
|
|
137
144
|
sharePrice: "分摊价",
|
|
@@ -201,6 +208,12 @@ var GoodHeaderMap = {
|
|
|
201
208
|
key: "platformSpecId",
|
|
202
209
|
width: 140
|
|
203
210
|
},
|
|
211
|
+
brandName: {
|
|
212
|
+
component: BsHeaderChild,
|
|
213
|
+
name: "品牌名称",
|
|
214
|
+
key: "brandName",
|
|
215
|
+
width: 150
|
|
216
|
+
},
|
|
204
217
|
num: {
|
|
205
218
|
component: BsHeaderChild,
|
|
206
219
|
name: "退货数量",
|
|
@@ -250,6 +263,7 @@ var GoodHeaderMap = {
|
|
|
250
263
|
specName: "商品SKU名称",
|
|
251
264
|
apiSpecName: "平台规格名称",
|
|
252
265
|
platformSpecId: "平台规格ID",
|
|
266
|
+
brandName: "品牌名称",
|
|
253
267
|
num: "退货数量",
|
|
254
268
|
sharePrice: "分摊价",
|
|
255
269
|
returnPrice: "退款金额",
|
|
@@ -320,6 +334,12 @@ var GoodHeaderMap = {
|
|
|
320
334
|
key: "platformSpecId",
|
|
321
335
|
width: 140
|
|
322
336
|
},
|
|
337
|
+
brandName: {
|
|
338
|
+
component: BsHeaderChild,
|
|
339
|
+
name: "品牌名称",
|
|
340
|
+
key: "brandName",
|
|
341
|
+
width: 150
|
|
342
|
+
},
|
|
323
343
|
num: {
|
|
324
344
|
component: BsHeaderChild,
|
|
325
345
|
name: "换出数量",
|
|
@@ -369,6 +389,7 @@ var GoodHeaderMap = {
|
|
|
369
389
|
specName: "商品SKU名称",
|
|
370
390
|
apiSpecName: "平台规格名称",
|
|
371
391
|
platformSpecId: "平台规格ID",
|
|
392
|
+
brandName: "品牌名称",
|
|
372
393
|
num: "换出数量",
|
|
373
394
|
productPrice: "商品单价",
|
|
374
395
|
exchangePrice: "换出金额",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class FlowOverallStatusSelect 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
|
+
workOrderStatus: any;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface["dataType"];
|
|
17
|
+
options: ComponentInterface["options"];
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
+
getComponentValue: (r: Record) => any;
|
|
22
|
+
renderExport: (value: any, record: Record) => any;
|
|
23
|
+
renderClient: () => null;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
25
|
+
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
searchDefaultConditions: "in";
|
|
27
|
+
type: string;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
filterComponentType: "MultipleSelect";
|
|
31
|
+
props: {
|
|
32
|
+
options: {
|
|
33
|
+
label: any;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export default FlowOverallStatusSelect;
|
|
@@ -0,0 +1,180 @@
|
|
|
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 _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
|
+
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
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
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; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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
|
+
import React from "react";
|
|
10
|
+
import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
|
|
11
|
+
import { filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
+
import GetFormItem from "../GetFormItem";
|
|
13
|
+
import get from "lodash/get";
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
15
|
+
// 节点状态
|
|
16
|
+
var FlowOverallStatusSelect = /*#__PURE__*/_createClass(function FlowOverallStatusSelect(options) {
|
|
17
|
+
var _this = this,
|
|
18
|
+
_Object$keys2;
|
|
19
|
+
_classCallCheck(this, FlowOverallStatusSelect);
|
|
20
|
+
_defineProperty(this, "name", void 0);
|
|
21
|
+
_defineProperty(this, "id", void 0);
|
|
22
|
+
_defineProperty(this, "sortField", void 0);
|
|
23
|
+
_defineProperty(this, "type", void 0);
|
|
24
|
+
_defineProperty(this, "rules", void 0);
|
|
25
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
26
|
+
_defineProperty(this, "effects", void 0);
|
|
27
|
+
_defineProperty(this, "workOrderStatus", void 0);
|
|
28
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
31
|
+
_defineProperty(this, "children", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "options", void 0);
|
|
34
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
35
|
+
var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
36
|
+
return status ?
|
|
37
|
+
/*#__PURE__*/
|
|
38
|
+
// <Dropdown overlay={this.renderMenu(record)}>
|
|
39
|
+
React.createElement("span", {
|
|
40
|
+
style: {
|
|
41
|
+
color: status.color
|
|
42
|
+
}
|
|
43
|
+
}, status === null || status === void 0 ? void 0 : status.label) :
|
|
44
|
+
/*#__PURE__*/
|
|
45
|
+
// </Dropdown>
|
|
46
|
+
React.createElement("span", null, "--");
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
49
|
+
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
50
|
+
if (!status) return null;
|
|
51
|
+
return _this.renderPc(undefined, r);
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
54
|
+
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
55
|
+
return status;
|
|
56
|
+
});
|
|
57
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
58
|
+
var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
59
|
+
return status ? status === null || status === void 0 ? void 0 : status.label : "--";
|
|
60
|
+
});
|
|
61
|
+
_defineProperty(this, "renderClient", function () {
|
|
62
|
+
return null;
|
|
63
|
+
});
|
|
64
|
+
_defineProperty(this, "editRender", function (p) {
|
|
65
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
66
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
|
+
title: _this.name,
|
|
68
|
+
name: _this.id,
|
|
69
|
+
rules: _this.rules,
|
|
70
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
71
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
72
|
+
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
73
|
+
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 : "",
|
|
74
|
+
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
75
|
+
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
76
|
+
showSearch: true
|
|
77
|
+
}))
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
81
|
+
var _Object$keys, _Object$keys$filter;
|
|
82
|
+
return {
|
|
83
|
+
searchDefaultConditions: SYMBOL.in,
|
|
84
|
+
type: item.type,
|
|
85
|
+
id: item.id,
|
|
86
|
+
// 过滤组件id
|
|
87
|
+
name: item.name,
|
|
88
|
+
// 过滤组件名称
|
|
89
|
+
filterComponentType: "MultipleSelect",
|
|
90
|
+
props: {
|
|
91
|
+
options: (_Object$keys = Object.keys(_this.workOrderStatus)) === null || _Object$keys === void 0 ? void 0 : (_Object$keys$filter = _Object$keys.filter(function (key) {
|
|
92
|
+
return key !== "HANDLING";
|
|
93
|
+
})) === null || _Object$keys$filter === void 0 ? void 0 : _Object$keys$filter.map(function (item) {
|
|
94
|
+
return {
|
|
95
|
+
label: _this.workOrderStatus[item].label,
|
|
96
|
+
value: item
|
|
97
|
+
};
|
|
98
|
+
})
|
|
99
|
+
},
|
|
100
|
+
filterFn: function filterFn(value) {
|
|
101
|
+
return function (i) {
|
|
102
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ""));
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
this.name = options.name;
|
|
108
|
+
this.id = options.id;
|
|
109
|
+
this.sortField = options.id;
|
|
110
|
+
this.formField = options.id;
|
|
111
|
+
this.type = options.type;
|
|
112
|
+
this.componentConfig = options.componentConfig;
|
|
113
|
+
this.effects = options.effects;
|
|
114
|
+
this.rules = [];
|
|
115
|
+
this.isCombinationComponent = false;
|
|
116
|
+
this.canSort = true;
|
|
117
|
+
this.children = [];
|
|
118
|
+
this.workOrderStatus = {
|
|
119
|
+
PROCESSING: {
|
|
120
|
+
label: "处理中",
|
|
121
|
+
color: "#1890ff",
|
|
122
|
+
bgColor: "#1890ff"
|
|
123
|
+
},
|
|
124
|
+
STOPPING: {
|
|
125
|
+
label: "暂停中",
|
|
126
|
+
color: "#ff4d4f",
|
|
127
|
+
bgColor: "#ff4d4f"
|
|
128
|
+
},
|
|
129
|
+
COMPLETED: {
|
|
130
|
+
label: "已完成",
|
|
131
|
+
color: "#73d13d",
|
|
132
|
+
bgColor: "#73d13d"
|
|
133
|
+
},
|
|
134
|
+
CLOSED: {
|
|
135
|
+
label: "已关闭",
|
|
136
|
+
color: "rgba(0, 0, 0, 0.65)",
|
|
137
|
+
bgColor: "rgba(0, 0, 0, 0.04);"
|
|
138
|
+
},
|
|
139
|
+
FLOWING: {
|
|
140
|
+
label: "流转中",
|
|
141
|
+
color: "#1890ff",
|
|
142
|
+
bgColor: "#1890ff"
|
|
143
|
+
},
|
|
144
|
+
RETURNING: {
|
|
145
|
+
label: "回退中",
|
|
146
|
+
color: "#1890ff",
|
|
147
|
+
bgColor: "#1890ff"
|
|
148
|
+
},
|
|
149
|
+
BUSINESS_SUCCESS_BUT_FLOW_FAIL: {
|
|
150
|
+
label: "业务执行完毕但流转异常",
|
|
151
|
+
color: "#73d13d",
|
|
152
|
+
bgColor: "#73d13d"
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
this.dataType = "string";
|
|
156
|
+
this.options = (_Object$keys2 = Object.keys(this.workOrderStatus)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.map(function (item) {
|
|
157
|
+
return {
|
|
158
|
+
label: _this.workOrderStatus[item].label,
|
|
159
|
+
value: item
|
|
160
|
+
};
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
// renderMenu = (record: Record) => {
|
|
164
|
+
// const menu = (
|
|
165
|
+
// <Menu
|
|
166
|
+
// onClick={({ key }) => {
|
|
167
|
+
// typeof this?.effects?.handleChangeSingleWorkOrderStatus === 'function' && this?.effects?.handleChangeSingleWorkOrderStatus(key, record)
|
|
168
|
+
// }}
|
|
169
|
+
// >
|
|
170
|
+
// <Menu.Item key="HANDLING">处理中</Menu.Item>
|
|
171
|
+
// <Menu.Item key="STOPPING">暂停中</Menu.Item>
|
|
172
|
+
// <Menu.Item key="COMPLETED">已完成</Menu.Item>
|
|
173
|
+
// <Menu.Item key="WAITING">待处理</Menu.Item>
|
|
174
|
+
// </Menu>
|
|
175
|
+
// );
|
|
176
|
+
// return menu;
|
|
177
|
+
// };
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
export default FlowOverallStatusSelect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ComponentInterface, ColumnConfig, Record, PickOption } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentInterface, ColumnConfig, Record, PickOption } from "../../type";
|
|
3
3
|
declare class ShopInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -11,9 +11,9 @@ declare class ShopInput implements ComponentInterface {
|
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
15
|
-
options: ComponentInterface[
|
|
16
|
-
format: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
options: ComponentInterface["options"];
|
|
16
|
+
format: ComponentInterface["format"];
|
|
17
17
|
constructor(options: PickOption);
|
|
18
18
|
renderPc: (shopName: unknown, record: any) => React.JSX.Element;
|
|
19
19
|
renderLog: (record: Record) => any;
|
|
@@ -5,9 +5,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
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; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
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); }
|
|
8
|
-
import React from
|
|
8
|
+
import React from "react";
|
|
9
9
|
import PlatformAvatar from "../../commonComponents/PlatformAvatar";
|
|
10
|
-
import { filterFn as _filterFn } from
|
|
10
|
+
import { filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
11
|
import { SYMBOL } from "../../constant";
|
|
12
12
|
var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
13
13
|
var _this = this,
|
|
@@ -35,15 +35,18 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
35
35
|
}), record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
36
36
|
});
|
|
37
37
|
_defineProperty(this, "renderLog", function (record) {
|
|
38
|
+
var _this$options, _this$options$find;
|
|
38
39
|
if (!(record !== null && record !== void 0 && record[_this.id])) return null;
|
|
39
|
-
return
|
|
40
|
+
return (_this$options = _this.options) === null || _this$options === void 0 ? void 0 : (_this$options$find = _this$options.find(function (t) {
|
|
41
|
+
return (t === null || t === void 0 ? void 0 : t.uniqueKey) === (record === null || record === void 0 ? void 0 : record[_this.id]);
|
|
42
|
+
})) === null || _this$options$find === void 0 ? void 0 : _this$options$find.shopName;
|
|
40
43
|
});
|
|
41
44
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
42
45
|
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
43
46
|
});
|
|
44
47
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
45
48
|
var _record;
|
|
46
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record :
|
|
49
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
|
|
47
50
|
});
|
|
48
51
|
_defineProperty(this, "renderClient", function () {
|
|
49
52
|
return null;
|
|
@@ -60,10 +63,10 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
60
63
|
// 过滤组件id
|
|
61
64
|
name: item.name,
|
|
62
65
|
// 过滤组件名称
|
|
63
|
-
filterComponentType:
|
|
66
|
+
filterComponentType: "ShopList",
|
|
64
67
|
props: {
|
|
65
68
|
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || [],
|
|
66
|
-
mode:
|
|
69
|
+
mode: "multiple"
|
|
67
70
|
},
|
|
68
71
|
filterFn: function filterFn(value) {
|
|
69
72
|
return function (i) {
|
|
@@ -72,7 +75,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
72
75
|
return value === null || value === void 0 ? void 0 : value.includes(item.shopId);
|
|
73
76
|
})) === null || _this$effects2$shopLi2 === void 0 ? void 0 : (_this$effects2$shopLi3 = _this$effects2$shopLi2.map(function (item) {
|
|
74
77
|
return item.shopId;
|
|
75
|
-
})) === null || _this$effects2$shopLi3 === void 0 ? void 0 : _this$effects2$shopLi3.includes(_filterFn.filterTableListItemColumnValue(i,
|
|
78
|
+
})) === null || _this$effects2$shopLi3 === void 0 ? void 0 : _this$effects2$shopLi3.includes(_filterFn.filterTableListItemColumnValue(i, "shopId", ""));
|
|
76
79
|
};
|
|
77
80
|
},
|
|
78
81
|
formatFilterValue: function formatFilterValue(shopList) {
|
|
@@ -95,8 +98,8 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
95
98
|
this.isCombinationComponent = false;
|
|
96
99
|
this.canSort = true;
|
|
97
100
|
this.children = [];
|
|
98
|
-
this.dataType =
|
|
101
|
+
this.dataType = "string";
|
|
99
102
|
this.options = this === null || this === void 0 ? void 0 : (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList;
|
|
100
|
-
this.format =
|
|
103
|
+
this.format = "shopInput";
|
|
101
104
|
});
|
|
102
105
|
export default ShopInput;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, 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, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } from "./index";
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, 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, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsLogistics |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BasicFile | JstSendGood | MsgStatus | BasicPicture | BasicPicturePro | BasicSelect | ShopInput | WdtReissue | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelectOption | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | 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 | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, 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,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -122,10 +122,11 @@ export var factory = function factory(type, options) {
|
|
|
122
122
|
case "FLOW_TAG":
|
|
123
123
|
return new FlowTag(options);
|
|
124
124
|
case "COMPLETED_DATETIME":
|
|
125
|
-
return new CommonDataTime(options);
|
|
126
125
|
case "CREATED_DATETIME":
|
|
127
|
-
return new CommonDataTime(options);
|
|
128
126
|
case "UPDATE_DATETIME":
|
|
127
|
+
case "FLOW_CREATED_DATETIME":
|
|
128
|
+
case "FLOW_UPDATE_DATETIME":
|
|
129
|
+
case "FLOW_CREATE_TIME_DATETIME":
|
|
129
130
|
return new CommonDataTime(options);
|
|
130
131
|
case "TEMPLATE_ID_INPUT":
|
|
131
132
|
return new TemplateSelect(options);
|
|
@@ -255,10 +256,6 @@ export var factory = function factory(type, options) {
|
|
|
255
256
|
return new NodeInput(options);
|
|
256
257
|
case "FLOW_WORK_STATUS_SELECT":
|
|
257
258
|
return new FlowWorkOrderStatus(options);
|
|
258
|
-
case "FLOW_CREATED_DATETIME":
|
|
259
|
-
return new CommonDataTime(options);
|
|
260
|
-
case "FLOW_UPDATE_DATETIME":
|
|
261
|
-
return new CommonDataTime(options);
|
|
262
259
|
case "WDT_GOODS":
|
|
263
260
|
// 万里牛商品
|
|
264
261
|
return new WdtGoods(options);
|
|
@@ -299,6 +296,8 @@ export var factory = function factory(type, options) {
|
|
|
299
296
|
return new SkxGoods(options);
|
|
300
297
|
case "ORDER_SUBFORM":
|
|
301
298
|
return new OrderSubForm(options);
|
|
299
|
+
case "FLOW_OVERALL_STATUS_SELECT":
|
|
300
|
+
return new FlowOverallStatusSelect(options);
|
|
302
301
|
default:
|
|
303
302
|
return new BasicInput(options);
|
|
304
303
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ export { default as AsyncSelect } from "./components/Public/AsyncSelect";
|
|
|
101
101
|
export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
103
|
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
104
|
+
export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
|
|
104
105
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
105
106
|
export { factory } from "./factory";
|
|
106
107
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
package/dist/esm/index.js
CHANGED
|
@@ -101,6 +101,8 @@ export { default as AsyncSelect } from "./components/Public/AsyncSelect";
|
|
|
101
101
|
export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
103
|
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
104
|
+
export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
|
|
105
|
+
|
|
104
106
|
// TODO: ERP 打款工单使用
|
|
105
107
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
106
108
|
export { factory } from "./factory";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.24",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.2.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.24",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.24",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "35bc1e4833e1bcb1255c9c43cb3c807d2544e88c",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|