@kmkf-fe-packages/services-components 0.25.3-alpha.2 → 0.25.3-beta.0
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/BsLogistics/index.js +10 -6
- package/dist/esm/components/BS/BsReissue/index.d.ts +9 -9
- package/dist/esm/components/BS/BsReissue/index.js +64 -34
- package/dist/esm/components/BS/BsSystemOrder/index.js +7 -0
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +16 -15
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +14 -13
- package/dist/esm/components/BS/common/expressCode.js +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +4 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +19 -9
- package/dist/esm/components/Common/index.d.ts +1 -8
- package/dist/esm/components/Common/index.js +303 -255
- package/dist/esm/components/CommonHeaderGood/index.d.ts +27 -0
- package/dist/esm/components/CommonHeaderGood/index.js +193 -0
- package/dist/esm/components/EItemEnCode/index.js +3 -2
- package/dist/esm/components/JST/JstSendGood/index.js +6 -0
- package/dist/esm/components/PostIng/index.js +7 -2
- package/dist/esm/components/{CommonInput → WDT/WdtGoods}/index.d.ts +9 -10
- package/dist/esm/components/WDT/WdtGoods/index.js +121 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -11
- package/dist/esm/index.d.ts +2 -3
- package/dist/esm/index.js +1 -2
- package/dist/esm/service/api.d.ts +0 -1
- package/dist/esm/service/api.js +0 -8
- package/package.json +4 -4
- package/dist/esm/components/CommonInput/index.js +0 -133
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +0 -33
- package/dist/esm/components/PaymentVoucherCode/index.js +0 -103
|
@@ -1,7 +1,3 @@
|
|
|
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); }); }; }
|
|
5
1
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6
2
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
3
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
@@ -12,10 +8,9 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
12
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
9
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
14
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
|
-
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message
|
|
11
|
+
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message } from "antd";
|
|
16
12
|
import React, { useState, useMemo } from "react";
|
|
17
13
|
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
-
import { getAlipayBillReceipt } from "../../service/api";
|
|
19
14
|
import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
20
15
|
import styles from "./index.module.less";
|
|
21
16
|
import defaultImg from "./img/default-img.png";
|
|
@@ -57,7 +52,7 @@ export var showImage = function showImage(_ref2) {
|
|
|
57
52
|
key: index
|
|
58
53
|
}, type === "itemCode" && !showHeader.includes("picUrl") ? null : (item === null || item === void 0 ? void 0 : item.platform) === "taobao" ? /*#__PURE__*/React.createElement("a", {
|
|
59
54
|
target: "_blank",
|
|
60
|
-
href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) :
|
|
55
|
+
href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) : 'javascript:void(0);'
|
|
61
56
|
}, /*#__PURE__*/React.createElement("img", {
|
|
62
57
|
style: {
|
|
63
58
|
width: "40px",
|
|
@@ -157,7 +152,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
157
152
|
},
|
|
158
153
|
key: index
|
|
159
154
|
}, type === "itemCode" && !showHeader.includes("picUrl") ? null : /*#__PURE__*/React.createElement("a", {
|
|
160
|
-
href: i.link || ((i === null || i === void 0 ? void 0 : i.platform) === "taobao" && i.numIid ? "https://item.taobao.com/item.htm?id=".concat(i.numIid) :
|
|
155
|
+
href: i.link || ((i === null || i === void 0 ? void 0 : i.platform) === "taobao" && i.numIid ? "https://item.taobao.com/item.htm?id=".concat(i.numIid) : 'javascript:void(0);'),
|
|
161
156
|
target: "__blank",
|
|
162
157
|
style: {
|
|
163
158
|
marginRight: "12px",
|
|
@@ -396,171 +391,276 @@ export var BsGoodPic = function BsGoodPic(list) {
|
|
|
396
391
|
});
|
|
397
392
|
});
|
|
398
393
|
};
|
|
399
|
-
var
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
394
|
+
export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
395
|
+
var list = _ref11.list,
|
|
396
|
+
showHeader = _ref11.showHeader,
|
|
397
|
+
_ref11$text = _ref11.text,
|
|
398
|
+
text = _ref11$text === void 0 ? '' : _ref11$text,
|
|
399
|
+
type = _ref11.type;
|
|
400
|
+
//商品信息
|
|
401
|
+
|
|
402
|
+
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
403
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
404
|
+
return function (type) {
|
|
405
|
+
var columns = [];
|
|
406
|
+
switch (type) {
|
|
407
|
+
case 'ITEM_ENCODE':
|
|
408
|
+
columns = [{
|
|
409
|
+
dataIndex: "title",
|
|
410
|
+
title: "商品名称",
|
|
411
|
+
align: "center",
|
|
412
|
+
ellipsis: true,
|
|
413
|
+
width: 200
|
|
414
|
+
}, {
|
|
415
|
+
dataIndex: "outerId",
|
|
416
|
+
title: "商品编码",
|
|
417
|
+
align: "center",
|
|
418
|
+
ellipsis: true,
|
|
419
|
+
width: 140
|
|
420
|
+
}, {
|
|
421
|
+
dataIndex: "picUrl",
|
|
422
|
+
title: "图片",
|
|
423
|
+
align: "center",
|
|
424
|
+
ellipsis: true,
|
|
425
|
+
width: 100,
|
|
426
|
+
render: function render(val) {
|
|
427
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
428
|
+
width: 60,
|
|
429
|
+
src: val
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
}, {
|
|
433
|
+
dataIndex: "numIid",
|
|
434
|
+
title: "商品id",
|
|
435
|
+
align: "center",
|
|
436
|
+
ellipsis: true,
|
|
437
|
+
width: 200
|
|
438
|
+
}, {
|
|
439
|
+
dataIndex: "skuId",
|
|
440
|
+
title: "SKU ID",
|
|
441
|
+
align: "center",
|
|
442
|
+
ellipsis: true,
|
|
443
|
+
width: 200
|
|
444
|
+
}, {
|
|
445
|
+
dataIndex: "outerSkuId",
|
|
446
|
+
title: "SKU 编码",
|
|
447
|
+
align: "center",
|
|
448
|
+
ellipsis: true,
|
|
449
|
+
width: 100
|
|
450
|
+
}, {
|
|
451
|
+
dataIndex: "propertiesName",
|
|
452
|
+
title: "SKU 信息",
|
|
453
|
+
align: "center",
|
|
454
|
+
ellipsis: true,
|
|
455
|
+
width: 200
|
|
456
|
+
}];
|
|
457
|
+
break;
|
|
458
|
+
case 'WDT_REISSUE_GOODS':
|
|
459
|
+
case 'WDT_GOODS':
|
|
460
|
+
columns = [{
|
|
461
|
+
dataIndex: 'goodId',
|
|
462
|
+
title: "SPUID",
|
|
463
|
+
align: 'center',
|
|
464
|
+
ellipsis: true,
|
|
465
|
+
width: 70
|
|
466
|
+
}, {
|
|
467
|
+
dataIndex: 'goodNo',
|
|
468
|
+
title: "\u5546\u54C1SPU\u7F16\u7801",
|
|
469
|
+
align: 'center',
|
|
470
|
+
ellipsis: true,
|
|
471
|
+
width: 180
|
|
472
|
+
}, {
|
|
473
|
+
dataIndex: 'goodName',
|
|
474
|
+
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
475
|
+
align: 'center',
|
|
476
|
+
ellipsis: true,
|
|
477
|
+
width: 250
|
|
478
|
+
}, {
|
|
479
|
+
dataIndex: 'specId',
|
|
480
|
+
title: "".concat(text, "SKUID"),
|
|
481
|
+
align: 'center',
|
|
482
|
+
ellipsis: true,
|
|
483
|
+
width: 100
|
|
484
|
+
}, {
|
|
485
|
+
dataIndex: 'specNo',
|
|
486
|
+
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
487
|
+
align: 'center',
|
|
488
|
+
ellipsis: true,
|
|
489
|
+
width: 180
|
|
490
|
+
}, {
|
|
491
|
+
dataIndex: 'specName',
|
|
492
|
+
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
493
|
+
align: 'center',
|
|
494
|
+
ellipsis: true,
|
|
495
|
+
width: 250
|
|
496
|
+
}, {
|
|
497
|
+
dataIndex: 'imgUrl',
|
|
498
|
+
title: "\u56FE\u7247",
|
|
499
|
+
align: 'center',
|
|
500
|
+
ellipsis: true,
|
|
501
|
+
width: 100,
|
|
502
|
+
render: function render(val) {
|
|
503
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
504
|
+
width: 60,
|
|
505
|
+
src: val
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
}, {
|
|
509
|
+
dataIndex: 'orderPrice',
|
|
510
|
+
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
511
|
+
align: 'center',
|
|
512
|
+
ellipsis: true,
|
|
513
|
+
width: 100
|
|
514
|
+
}, {
|
|
515
|
+
dataIndex: 'num',
|
|
516
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
517
|
+
align: 'center',
|
|
518
|
+
ellipsis: true,
|
|
519
|
+
width: 100
|
|
520
|
+
},
|
|
521
|
+
// {
|
|
522
|
+
// dataIndex: 'actualNum',
|
|
523
|
+
// title: `${text}实发数量`,
|
|
524
|
+
// align: 'center',
|
|
525
|
+
// ellipsis: true,
|
|
526
|
+
// width: 100,
|
|
527
|
+
// },
|
|
528
|
+
{
|
|
529
|
+
dataIndex: 'sharePrice',
|
|
530
|
+
title: "\u5206\u644A\u4EF7",
|
|
531
|
+
align: 'center',
|
|
532
|
+
ellipsis: true,
|
|
533
|
+
width: 70
|
|
534
|
+
}, {
|
|
535
|
+
dataIndex: 'giftType',
|
|
536
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
537
|
+
align: 'center',
|
|
538
|
+
ellipsis: true,
|
|
539
|
+
width: 100,
|
|
540
|
+
render: function render(val) {
|
|
541
|
+
var giftTypeMap = {
|
|
542
|
+
0: '非赠品',
|
|
543
|
+
1: '自动赠送',
|
|
544
|
+
2: '手工赠送',
|
|
545
|
+
3: '回购自动送赠品',
|
|
546
|
+
4: '前N有礼送赠品',
|
|
547
|
+
6: '天猫优仓赠品',
|
|
548
|
+
7: '淘宝CRM会员送赠'
|
|
549
|
+
};
|
|
550
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
551
|
+
}
|
|
552
|
+
}];
|
|
553
|
+
break;
|
|
554
|
+
default:
|
|
555
|
+
columns = [{
|
|
556
|
+
dataIndex: 'mark',
|
|
557
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
558
|
+
align: 'center',
|
|
559
|
+
ellipsis: true,
|
|
560
|
+
width: 100
|
|
561
|
+
}, {
|
|
562
|
+
dataIndex: 'skuName',
|
|
563
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
564
|
+
align: 'center',
|
|
565
|
+
ellipsis: true,
|
|
566
|
+
width: 200
|
|
567
|
+
}, {
|
|
568
|
+
dataIndex: 'sku',
|
|
569
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
570
|
+
align: 'center',
|
|
571
|
+
ellipsis: true,
|
|
572
|
+
width: 100
|
|
573
|
+
}, {
|
|
574
|
+
dataIndex: 'name',
|
|
575
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
576
|
+
align: 'center',
|
|
577
|
+
ellipsis: true,
|
|
578
|
+
width: 200
|
|
579
|
+
}, {
|
|
580
|
+
dataIndex: 'pic',
|
|
581
|
+
title: "\u56FE\u7247",
|
|
582
|
+
align: 'center',
|
|
583
|
+
ellipsis: true,
|
|
584
|
+
width: 100,
|
|
585
|
+
render: function render(val) {
|
|
586
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
587
|
+
width: 60,
|
|
588
|
+
src: val
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
}, {
|
|
592
|
+
dataIndex: 'code',
|
|
593
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
594
|
+
align: 'center',
|
|
595
|
+
ellipsis: true,
|
|
596
|
+
width: 100
|
|
597
|
+
}, {
|
|
598
|
+
dataIndex: 'money',
|
|
599
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
600
|
+
align: 'center',
|
|
601
|
+
ellipsis: true,
|
|
602
|
+
width: 100
|
|
603
|
+
}, {
|
|
604
|
+
dataIndex: 'number',
|
|
605
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
606
|
+
align: 'center',
|
|
607
|
+
ellipsis: true,
|
|
608
|
+
width: 100
|
|
609
|
+
}, {
|
|
610
|
+
dataIndex: 'share',
|
|
611
|
+
title: "\u5206\u644A\u4EF7",
|
|
612
|
+
align: 'center',
|
|
613
|
+
ellipsis: true,
|
|
614
|
+
width: 70
|
|
615
|
+
}, {
|
|
616
|
+
dataIndex: 'type',
|
|
617
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
618
|
+
align: 'center',
|
|
619
|
+
ellipsis: true,
|
|
620
|
+
width: 100
|
|
621
|
+
}];
|
|
431
622
|
}
|
|
432
|
-
|
|
623
|
+
return columns;
|
|
624
|
+
};
|
|
433
625
|
};
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
width: 60,
|
|
470
|
-
src: val
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
}, {
|
|
474
|
-
dataIndex: "code",
|
|
475
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
476
|
-
align: "center",
|
|
477
|
-
ellipsis: true,
|
|
478
|
-
width: 100
|
|
479
|
-
}, {
|
|
480
|
-
dataIndex: "money",
|
|
481
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
482
|
-
align: "center",
|
|
483
|
-
ellipsis: true,
|
|
484
|
-
width: 100
|
|
485
|
-
}, {
|
|
486
|
-
dataIndex: "number",
|
|
487
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
488
|
-
align: "center",
|
|
489
|
-
ellipsis: true,
|
|
490
|
-
width: 100
|
|
491
|
-
}, {
|
|
492
|
-
dataIndex: "share",
|
|
493
|
-
title: "\u5206\u644A\u4EF7",
|
|
494
|
-
align: "center",
|
|
495
|
-
ellipsis: true,
|
|
496
|
-
width: 70
|
|
497
|
-
}, {
|
|
498
|
-
dataIndex: "type",
|
|
499
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
500
|
-
align: "center",
|
|
501
|
-
ellipsis: true,
|
|
502
|
-
width: 100
|
|
503
|
-
}];
|
|
504
|
-
});
|
|
505
|
-
export var TBGoodTable = getTable(function () {
|
|
506
|
-
return [{
|
|
507
|
-
dataIndex: "title",
|
|
508
|
-
title: "商品名称",
|
|
509
|
-
align: "center",
|
|
510
|
-
ellipsis: true,
|
|
511
|
-
width: 200
|
|
512
|
-
}, {
|
|
513
|
-
dataIndex: "outerId",
|
|
514
|
-
title: "商品编码",
|
|
515
|
-
align: "center",
|
|
516
|
-
ellipsis: true,
|
|
517
|
-
width: 140
|
|
518
|
-
}, {
|
|
519
|
-
dataIndex: "picUrl",
|
|
520
|
-
title: "图片",
|
|
521
|
-
align: "center",
|
|
522
|
-
ellipsis: true,
|
|
523
|
-
width: 100,
|
|
524
|
-
render: function render(val) {
|
|
525
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
526
|
-
width: 60,
|
|
527
|
-
src: val
|
|
528
|
-
});
|
|
626
|
+
//商品信息
|
|
627
|
+
var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
|
|
628
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
629
|
+
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
630
|
+
return COLUMNS_INFO(type);
|
|
631
|
+
};
|
|
632
|
+
// const GOODS_INFO_COLUMNS = (text = '') => {
|
|
633
|
+
// return
|
|
634
|
+
// }
|
|
635
|
+
var newColumns = useMemo(function () {
|
|
636
|
+
var columnList = [{
|
|
637
|
+
dataIndex: '',
|
|
638
|
+
title: '序号',
|
|
639
|
+
align: 'center',
|
|
640
|
+
ellipsis: true,
|
|
641
|
+
width: 50,
|
|
642
|
+
render: function render(val, record, index) {
|
|
643
|
+
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
644
|
+
}
|
|
645
|
+
}].concat(_toConsumableArray(GOODS_INFO_COLUMNS(text).filter(function (t) {
|
|
646
|
+
return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
|
|
647
|
+
})));
|
|
648
|
+
return columnList;
|
|
649
|
+
}, [showHeader, list]);
|
|
650
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
651
|
+
columns: newColumns,
|
|
652
|
+
dataSource: list,
|
|
653
|
+
rowKey: 'uuid',
|
|
654
|
+
size: "small",
|
|
655
|
+
pagination: false,
|
|
656
|
+
scroll: {
|
|
657
|
+
x: '100%'
|
|
658
|
+
},
|
|
659
|
+
locale: {
|
|
660
|
+
emptyText: '暂无数据'
|
|
529
661
|
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
title: "商品id",
|
|
533
|
-
align: "center",
|
|
534
|
-
ellipsis: true,
|
|
535
|
-
width: 200
|
|
536
|
-
}, {
|
|
537
|
-
dataIndex: "skuId",
|
|
538
|
-
title: "SKU ID",
|
|
539
|
-
align: "center",
|
|
540
|
-
ellipsis: true,
|
|
541
|
-
width: 200
|
|
542
|
-
}, {
|
|
543
|
-
dataIndex: "outerSkuId",
|
|
544
|
-
title: "SKU 编码",
|
|
545
|
-
align: "center",
|
|
546
|
-
ellipsis: true,
|
|
547
|
-
width: 100
|
|
548
|
-
}, {
|
|
549
|
-
dataIndex: "propertiesName",
|
|
550
|
-
title: "SKU 信息",
|
|
551
|
-
align: "center",
|
|
552
|
-
ellipsis: true,
|
|
553
|
-
width: 200
|
|
554
|
-
}];
|
|
555
|
-
// title: '商品名称',
|
|
556
|
-
// outerId: '商品编码',
|
|
557
|
-
// picUrl: '图片',
|
|
558
|
-
// numIid: '商品id',
|
|
559
|
-
// skuId: 'SKU ID',
|
|
560
|
-
// outerSkuId: 'SKU 编码',
|
|
561
|
-
// propertiesName: 'SKU 信息',
|
|
562
|
-
});
|
|
563
|
-
|
|
662
|
+
});
|
|
663
|
+
};
|
|
564
664
|
export var FileRender = function FileRender(_ref12) {
|
|
565
665
|
var _ref12$fileList = _ref12.fileList,
|
|
566
666
|
fileList = _ref12$fileList === void 0 ? [] : _ref12$fileList,
|
|
@@ -678,25 +778,38 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
678
778
|
export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
679
779
|
var value = _ref13.value,
|
|
680
780
|
type = _ref13.type;
|
|
681
|
-
var
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
781
|
+
var columnMap = {
|
|
782
|
+
BS_SYSTEM_ORDER: [{
|
|
783
|
+
dataIndex: "billType",
|
|
784
|
+
title: "订单类型"
|
|
785
|
+
}, {
|
|
786
|
+
dataIndex: "billNo",
|
|
787
|
+
title: "系统订单号"
|
|
788
|
+
}, {
|
|
789
|
+
dataIndex: "billTag",
|
|
790
|
+
title: "标记"
|
|
791
|
+
}],
|
|
792
|
+
WLN_SYSTEM_ORDER: [{
|
|
793
|
+
dataIndex: "billType",
|
|
794
|
+
title: "单据类型"
|
|
795
|
+
}, {
|
|
796
|
+
dataIndex: "billNo",
|
|
797
|
+
title: "系统订单号"
|
|
798
|
+
}, {
|
|
799
|
+
dataIndex: "billTag",
|
|
800
|
+
title: "标签"
|
|
801
|
+
}],
|
|
802
|
+
WDT_SYSTEM_ORDER: [{
|
|
803
|
+
dataIndex: "billType",
|
|
804
|
+
title: "订单类型"
|
|
805
|
+
}, {
|
|
806
|
+
dataIndex: "billNo",
|
|
807
|
+
title: "系统订单号"
|
|
808
|
+
}, {
|
|
809
|
+
dataIndex: "billTag",
|
|
810
|
+
title: "订单标签"
|
|
811
|
+
}]
|
|
812
|
+
};
|
|
700
813
|
var rowSelection = {
|
|
701
814
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|
|
702
815
|
if (next.select) {
|
|
@@ -714,7 +827,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
714
827
|
};
|
|
715
828
|
return /*#__PURE__*/React.createElement(Table, {
|
|
716
829
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
717
|
-
columns:
|
|
830
|
+
columns: columnMap[type] || [],
|
|
718
831
|
rowSelection: rowSelection,
|
|
719
832
|
rowKey: "billNo",
|
|
720
833
|
size: "small",
|
|
@@ -780,69 +893,4 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
780
893
|
key: index
|
|
781
894
|
}, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "")));
|
|
782
895
|
}) : null);
|
|
783
|
-
};
|
|
784
|
-
//获取付款凭证
|
|
785
|
-
export var AlipayBill = function AlipayBill(props) {
|
|
786
|
-
var value = props.value,
|
|
787
|
-
platform = props.platform;
|
|
788
|
-
var _useState13 = useState(false),
|
|
789
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
790
|
-
visible = _useState14[0],
|
|
791
|
-
setVisible = _useState14[1];
|
|
792
|
-
var _useState15 = useState(""),
|
|
793
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
794
|
-
msg = _useState16[0],
|
|
795
|
-
setMsg = _useState16[1];
|
|
796
|
-
var voucherHandle = /*#__PURE__*/function () {
|
|
797
|
-
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
798
|
-
var params, res, data, msg;
|
|
799
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
800
|
-
while (1) switch (_context.prev = _context.next) {
|
|
801
|
-
case 0:
|
|
802
|
-
e.stopPropagation();
|
|
803
|
-
params = {
|
|
804
|
-
alipayBillReceiptDetailId: value
|
|
805
|
-
};
|
|
806
|
-
_context.next = 4;
|
|
807
|
-
return getAlipayBillReceipt(params);
|
|
808
|
-
case 4:
|
|
809
|
-
res = _context.sent;
|
|
810
|
-
data = res.data, msg = res.message;
|
|
811
|
-
if (data) {
|
|
812
|
-
if (["fxg"].includes(platform)) {
|
|
813
|
-
setMsg(data);
|
|
814
|
-
setVisible(true);
|
|
815
|
-
} else {
|
|
816
|
-
window.open(data);
|
|
817
|
-
}
|
|
818
|
-
} else {
|
|
819
|
-
setMsg(msg);
|
|
820
|
-
setVisible(true);
|
|
821
|
-
}
|
|
822
|
-
case 7:
|
|
823
|
-
case "end":
|
|
824
|
-
return _context.stop();
|
|
825
|
-
}
|
|
826
|
-
}, _callee);
|
|
827
|
-
}));
|
|
828
|
-
return function voucherHandle(_x2) {
|
|
829
|
-
return _ref15.apply(this, arguments);
|
|
830
|
-
};
|
|
831
|
-
}();
|
|
832
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
833
|
-
style: {
|
|
834
|
-
color: "#1890ff",
|
|
835
|
-
cursor: "pointer"
|
|
836
|
-
},
|
|
837
|
-
onClick: voucherHandle
|
|
838
|
-
}, value), /*#__PURE__*/React.createElement(Modal, {
|
|
839
|
-
title: "\u4ED8\u6B3E\u51ED\u8BC1",
|
|
840
|
-
visible: visible,
|
|
841
|
-
footer: false,
|
|
842
|
-
onCancel: function onCancel() {
|
|
843
|
-
return setVisible(false);
|
|
844
|
-
}
|
|
845
|
-
}, ["fxg"].includes(platform) ? /*#__PURE__*/React.createElement("div", null, "\u8BF7\u590D\u5236\u94FE\u63A5\u5728\u6D4F\u89C8\u5668\u4E0A\u6253\u5F00\uFF0C\u94FE\u63A5\uFF1A", /*#__PURE__*/React.createElement(Paragraph, {
|
|
846
|
-
copyable: true
|
|
847
|
-
}, msg)) : msg));
|
|
848
896
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class CommonHeaderGoods implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
+
align: ALignType;
|
|
10
|
+
width: number;
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
13
|
+
canSort: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
itemKey: any;
|
|
17
|
+
constructor(options: PickOption);
|
|
18
|
+
getParentId: () => string;
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
|
+
getComponentValue: (r: Record) => any;
|
|
23
|
+
renderExport: (value: string, record: Record) => any;
|
|
24
|
+
editRender: () => null;
|
|
25
|
+
filterConfig: () => never[];
|
|
26
|
+
}
|
|
27
|
+
export default CommonHeaderGoods;
|