@kmkf-fe-packages/services-components 0.27.0 → 0.27.1-test.11
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/CopyText/index.d.ts +7 -0
- package/dist/esm/commonComponents/CopyText/index.js +14 -0
- package/dist/esm/commonComponents/ErpContext/index.d.ts +16 -0
- package/dist/esm/commonComponents/ErpContext/index.js +68 -0
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +8 -5
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +1 -1
- package/dist/esm/commonComponents/PlatBuyer/index.js +4 -17
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +21 -15
- package/dist/esm/components/BS/BsLogistics/index.js +6 -3
- package/dist/esm/components/BS/BsReissue/index.js +7 -7
- package/dist/esm/components/BS/common/SystemOrderNo.d.ts +26 -0
- package/dist/esm/components/BS/common/SystemOrderNo.js +94 -0
- package/dist/esm/components/BS/common/expressCompany.js +3 -2
- package/dist/esm/components/BS/common/index.d.ts +1 -0
- package/dist/esm/components/BS/common/index.js +2 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +9 -19
- package/dist/esm/components/Common/index.d.ts +3 -2
- package/dist/esm/components/Common/index.js +261 -171
- package/dist/esm/components/CommonInput/index.d.ts +34 -0
- package/dist/esm/components/CommonInput/index.js +105 -0
- package/dist/esm/components/CommonTradeId/index.d.ts +5 -6
- package/dist/esm/components/CommonTradeId/index.js +15 -26
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.d.ts +2 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +23 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.d.ts +4 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.js +169 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.less +30 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/noImage.png +0 -0
- package/dist/esm/components/ErpTradeId/index.MD +1 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -29
- package/dist/esm/components/ErpTradeId/index.js +41 -104
- package/dist/esm/components/ExpressCode/index.d.ts +2 -2
- package/dist/esm/components/ExpressCode/index.js +9 -5
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/FlowWorkOrderId/index.js +4 -18
- package/dist/esm/components/JST/JstSendGood/index.js +8 -5
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -13
- package/dist/esm/components/LogisticsMoreInterception/index.js +17 -14
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.d.ts → interceptCode.d.ts} +2 -2
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.js → interceptCode.js} +7 -4
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +57 -4
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.d.ts +30 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.js +80 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.d.ts +29 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.js +77 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.d.ts +32 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.js +96 -0
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +26 -4
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +32 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +93 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
- package/dist/esm/components/Payment/PaymentStatus.js +30 -30
- package/dist/esm/components/Payment/PaymentTid.d.ts +2 -2
- package/dist/esm/components/Payment/PaymentTid.js +14 -3
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +33 -0
- package/dist/esm/components/PaymentVoucherCode/index.js +108 -0
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/Select/index.js +22 -14
- package/dist/esm/components/TradeId/index.d.ts +0 -1
- package/dist/esm/components/TradeId/index.js +7 -19
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +58 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +185 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/WorkOrderId/index.js +4 -18
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +9 -3
- package/dist/esm/index.d.ts +8 -3
- package/dist/esm/index.js +8 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +36 -16
- package/package.json +4 -4
|
@@ -1,3 +1,7 @@
|
|
|
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); }); }; }
|
|
1
5
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
6
|
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."); }
|
|
3
7
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
@@ -8,12 +12,15 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
12
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
13
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
10
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message } from "antd";
|
|
15
|
+
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
|
|
12
16
|
import React, { useState, useMemo } from "react";
|
|
13
|
-
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
-
import {
|
|
17
|
+
import { ExpressData, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
+
import { getAlipayBillReceipt } from "../../service/api";
|
|
19
|
+
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
15
20
|
import styles from "./index.module.less";
|
|
16
21
|
import defaultImg from "./img/default-img.png";
|
|
22
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
23
|
+
var Paragraph = Typography.Paragraph;
|
|
17
24
|
export var getFormItem = function getFormItem(_ref) {
|
|
18
25
|
var name = _ref.name,
|
|
19
26
|
title = _ref.title,
|
|
@@ -31,7 +38,7 @@ export var getFormItem = function getFormItem(_ref) {
|
|
|
31
38
|
return /*#__PURE__*/React.createElement("div", {
|
|
32
39
|
className: "form-item--wrap",
|
|
33
40
|
style: {
|
|
34
|
-
position:
|
|
41
|
+
position: 'relative'
|
|
35
42
|
}
|
|
36
43
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
37
44
|
name: name,
|
|
@@ -46,58 +53,58 @@ export var showImage = function showImage(_ref2) {
|
|
|
46
53
|
type = _ref2.type,
|
|
47
54
|
index = _ref2.index,
|
|
48
55
|
showHeader = _ref2.showHeader;
|
|
49
|
-
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !==
|
|
56
|
+
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== 'tabao' ? item.picUrl : item.picUrl + '_40x40.jpg' : defaultImg;
|
|
50
57
|
return /*#__PURE__*/React.createElement("div", {
|
|
51
58
|
className: styles.goodImgBox,
|
|
52
59
|
key: index
|
|
53
|
-
}, type ===
|
|
60
|
+
}, type === 'itemCode' && !showHeader.includes('picUrl') ? null : (item === null || item === void 0 ? void 0 : item.platform) === 'taobao' ? /*#__PURE__*/React.createElement("a", {
|
|
54
61
|
target: "_blank",
|
|
55
62
|
href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) : 'javascript:void(0);'
|
|
56
63
|
}, /*#__PURE__*/React.createElement("img", {
|
|
57
64
|
style: {
|
|
58
|
-
width:
|
|
59
|
-
height:
|
|
60
|
-
objectFit:
|
|
65
|
+
width: '40px',
|
|
66
|
+
height: '40px',
|
|
67
|
+
objectFit: 'contain'
|
|
61
68
|
},
|
|
62
69
|
src: picUrl
|
|
63
70
|
})) : /*#__PURE__*/React.createElement("img", {
|
|
64
71
|
style: {
|
|
65
|
-
width:
|
|
66
|
-
height:
|
|
67
|
-
objectFit:
|
|
72
|
+
width: '40px',
|
|
73
|
+
height: '40px',
|
|
74
|
+
objectFit: 'contain'
|
|
68
75
|
},
|
|
69
76
|
src: picUrl
|
|
70
77
|
}), /*#__PURE__*/React.createElement("div", {
|
|
71
78
|
className: styles.options
|
|
72
|
-
}, type ===
|
|
73
|
-
title:
|
|
79
|
+
}, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
|
|
80
|
+
title: '商品id',
|
|
74
81
|
text: item.numIid
|
|
75
|
-
}), type ===
|
|
76
|
-
title:
|
|
82
|
+
}), type === 'itemCode' && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.includes('title') && /*#__PURE__*/React.createElement(TextTool, {
|
|
83
|
+
title: '商品名称',
|
|
77
84
|
text: item.title
|
|
78
|
-
}), showHeader.includes(
|
|
79
|
-
title:
|
|
85
|
+
}), showHeader.includes('outerId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
86
|
+
title: '商品编码',
|
|
80
87
|
text: item.outerId
|
|
81
|
-
}), showHeader.includes(
|
|
82
|
-
title:
|
|
88
|
+
}), showHeader.includes('numIid') && /*#__PURE__*/React.createElement(TextTool, {
|
|
89
|
+
title: '商品id',
|
|
83
90
|
text: item.numIid
|
|
84
|
-
}), showHeader.includes(
|
|
85
|
-
title:
|
|
91
|
+
}), showHeader.includes('skuId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
92
|
+
title: 'SKU ID',
|
|
86
93
|
text: item.skuId
|
|
87
|
-
}), showHeader.includes(
|
|
88
|
-
title:
|
|
94
|
+
}), showHeader.includes('outerSkuId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
95
|
+
title: 'SKU 编码',
|
|
89
96
|
text: item.outerSkuId
|
|
90
|
-
}), showHeader.includes(
|
|
91
|
-
title:
|
|
97
|
+
}), showHeader.includes('propertiesName') && /*#__PURE__*/React.createElement(TextTool, {
|
|
98
|
+
title: 'SKU 信息',
|
|
92
99
|
text: item.propertiesName
|
|
93
|
-
})), (type ===
|
|
94
|
-
title:
|
|
100
|
+
})), (type === 'itemThird' || type === 'jstItemThird') && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
101
|
+
title: '供应商编码',
|
|
95
102
|
text: item.itemId || item.supplierItemOuterId
|
|
96
|
-
}), (type ===
|
|
97
|
-
title:
|
|
103
|
+
}), (type === 'itemThird' || type === 'jstItemThird') && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
|
|
104
|
+
title: '供应商名称',
|
|
98
105
|
text: item.supplierName
|
|
99
|
-
}), type !==
|
|
100
|
-
title:
|
|
106
|
+
}), type !== 'itemCode' && item.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
|
|
107
|
+
title: '规格',
|
|
101
108
|
text: item.propertiesName
|
|
102
109
|
})));
|
|
103
110
|
};
|
|
@@ -110,9 +117,9 @@ var TextTool = function TextTool(_ref3) {
|
|
|
110
117
|
title: text
|
|
111
118
|
}, /*#__PURE__*/React.createElement("div", {
|
|
112
119
|
style: {
|
|
113
|
-
overflow:
|
|
114
|
-
whiteSpace:
|
|
115
|
-
textOverflow:
|
|
120
|
+
overflow: 'hidden',
|
|
121
|
+
whiteSpace: 'nowrap',
|
|
122
|
+
textOverflow: 'ellipsis'
|
|
116
123
|
}
|
|
117
124
|
}, title, ":", text));
|
|
118
125
|
};
|
|
@@ -142,62 +149,62 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
142
149
|
title: "\u6240\u6709\u9009\u62E9\u5B9D\u8D1D"
|
|
143
150
|
}, /*#__PURE__*/React.createElement("div", {
|
|
144
151
|
style: {
|
|
145
|
-
display:
|
|
146
|
-
flexWrap:
|
|
152
|
+
display: 'flex',
|
|
153
|
+
flexWrap: 'wrap'
|
|
147
154
|
}
|
|
148
155
|
}, allImage.map(function (i, index) {
|
|
149
156
|
return /*#__PURE__*/React.createElement("div", {
|
|
150
157
|
style: {
|
|
151
|
-
width:
|
|
158
|
+
width: '50%'
|
|
152
159
|
},
|
|
153
160
|
key: index
|
|
154
|
-
}, type ===
|
|
155
|
-
href: i.link || ((i === null || i === void 0 ? void 0 : i.platform) ===
|
|
161
|
+
}, type === 'itemCode' && !showHeader.includes('picUrl') ? null : /*#__PURE__*/React.createElement("a", {
|
|
162
|
+
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);'),
|
|
156
163
|
target: "__blank",
|
|
157
164
|
style: {
|
|
158
|
-
marginRight:
|
|
159
|
-
marginTop:
|
|
160
|
-
padding:
|
|
161
|
-
border:
|
|
162
|
-
display:
|
|
165
|
+
marginRight: '12px',
|
|
166
|
+
marginTop: '8px',
|
|
167
|
+
padding: '2px',
|
|
168
|
+
border: '1px dashed #ccc',
|
|
169
|
+
display: 'inline-block'
|
|
163
170
|
}
|
|
164
171
|
}, /*#__PURE__*/React.createElement("img", {
|
|
165
172
|
alt: "",
|
|
166
173
|
src: i.picUrl || defaultImg,
|
|
167
174
|
style: {
|
|
168
|
-
width:
|
|
169
|
-
height:
|
|
170
|
-
objectFit:
|
|
175
|
+
width: '72px',
|
|
176
|
+
height: '72px',
|
|
177
|
+
objectFit: 'contain'
|
|
171
178
|
}
|
|
172
|
-
})), /*#__PURE__*/React.createElement("div", null, type ===
|
|
173
|
-
title:
|
|
179
|
+
})), /*#__PURE__*/React.createElement("div", null, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
|
|
180
|
+
title: '商品id',
|
|
174
181
|
text: i.numIid
|
|
175
|
-
}), type ===
|
|
176
|
-
title:
|
|
182
|
+
}), type === 'itemCode' && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.includes('title') && /*#__PURE__*/React.createElement(TextTool, {
|
|
183
|
+
title: '商品名称',
|
|
177
184
|
text: i.title
|
|
178
|
-
}), showHeader.includes(
|
|
179
|
-
title:
|
|
185
|
+
}), showHeader.includes('outerId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
186
|
+
title: '商品编码',
|
|
180
187
|
text: i.outerId
|
|
181
|
-
}), showHeader.includes(
|
|
182
|
-
title:
|
|
188
|
+
}), showHeader.includes('numIid') && /*#__PURE__*/React.createElement(TextTool, {
|
|
189
|
+
title: '商品id',
|
|
183
190
|
text: i.numIid
|
|
184
|
-
}), showHeader.includes(
|
|
185
|
-
title:
|
|
191
|
+
}), showHeader.includes('skuId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
192
|
+
title: 'SKU ID',
|
|
186
193
|
text: i.skuId
|
|
187
|
-
}), showHeader.includes(
|
|
188
|
-
title:
|
|
194
|
+
}), showHeader.includes('outerSkuId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
195
|
+
title: 'SKU 编码',
|
|
189
196
|
text: i.outerSkuId
|
|
190
|
-
}), showHeader.includes(
|
|
191
|
-
title:
|
|
197
|
+
}), showHeader.includes('propertiesName') && /*#__PURE__*/React.createElement(TextTool, {
|
|
198
|
+
title: 'SKU 信息',
|
|
192
199
|
text: i.propertiesName
|
|
193
|
-
})), (type ===
|
|
194
|
-
title:
|
|
200
|
+
})), (type === 'itemThird' || type === 'jstItemThird') && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
201
|
+
title: '供应商编码',
|
|
195
202
|
text: i.itemId || i.supplierItemOuterId
|
|
196
|
-
}), (type ===
|
|
197
|
-
title:
|
|
203
|
+
}), (type === 'itemThird' || type === 'jstItemThird') && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
|
|
204
|
+
title: '供应商名称',
|
|
198
205
|
text: i.supplierName
|
|
199
|
-
}), type !==
|
|
200
|
-
title:
|
|
206
|
+
}), type !== 'itemCode' && i.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
|
|
207
|
+
title: '规格',
|
|
201
208
|
text: i.propertiesName
|
|
202
209
|
})));
|
|
203
210
|
}))));
|
|
@@ -207,14 +214,14 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
207
214
|
var _list$slice;
|
|
208
215
|
var list = _ref5.list,
|
|
209
216
|
_ref5$type = _ref5.type,
|
|
210
|
-
type = _ref5$type === void 0 ?
|
|
217
|
+
type = _ref5$type === void 0 ? '' : _ref5$type,
|
|
211
218
|
_ref5$showHeader = _ref5.showHeader,
|
|
212
219
|
showHeader = _ref5$showHeader === void 0 ? [] : _ref5$showHeader;
|
|
213
220
|
var total = (list === null || list === void 0 ? void 0 : list.length) || 0;
|
|
214
221
|
var initShowTotal = 3;
|
|
215
222
|
return (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
216
223
|
style: {
|
|
217
|
-
display: type ===
|
|
224
|
+
display: type === 'itemSelect' ? 'flex' : 'block'
|
|
218
225
|
}
|
|
219
226
|
}, list === null || list === void 0 ? void 0 : (_list$slice = list.slice(0, initShowTotal)) === null || _list$slice === void 0 ? void 0 : _list$slice.map(function (item, index) {
|
|
220
227
|
return showImage({
|
|
@@ -233,7 +240,7 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
233
240
|
var content = function content(item, index) {
|
|
234
241
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
235
242
|
style: {
|
|
236
|
-
textAlign:
|
|
243
|
+
textAlign: 'center'
|
|
237
244
|
}
|
|
238
245
|
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
239
246
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -248,10 +255,12 @@ var content = function content(item, index) {
|
|
|
248
255
|
export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
249
256
|
var _ref6$list = _ref6.list,
|
|
250
257
|
list = _ref6$list === void 0 ? [] : _ref6$list,
|
|
251
|
-
type = _ref6.type
|
|
258
|
+
type = _ref6.type,
|
|
259
|
+
_ref6$componentType = _ref6.componentType,
|
|
260
|
+
componentType = _ref6$componentType === void 0 ? '' : _ref6$componentType;
|
|
252
261
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
253
262
|
var logisticsCompany = item.logisticsCompany;
|
|
254
|
-
var company = ExpressData.getInstance().getExpressNameByCode(logisticsCompany);
|
|
263
|
+
var company = ExpressData.getInstance(componentType === 'WDT_LOGISTICS' ? 'wdt' : 'default').getExpressNameByCode(logisticsCompany);
|
|
255
264
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
256
265
|
content: content(item, index),
|
|
257
266
|
overlayStyle: {
|
|
@@ -260,20 +269,26 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
260
269
|
}, /*#__PURE__*/React.createElement("span", {
|
|
261
270
|
key: index,
|
|
262
271
|
style: {
|
|
263
|
-
color:
|
|
264
|
-
cursor:
|
|
272
|
+
color: '#1890ff',
|
|
273
|
+
cursor: 'pointer'
|
|
265
274
|
}
|
|
266
|
-
}, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ?
|
|
275
|
+
}, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? /*#__PURE__*/React.createElement(React.Fragment, null, company, "/", /*#__PURE__*/React.createElement(CopyText, {
|
|
276
|
+
text: item.logisticsCode
|
|
277
|
+
})) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
|
|
278
|
+
text: item.logisticsCode
|
|
279
|
+
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join('/') : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, componentType === 'WDT_SEND_GOOD' ? WdtSendData.getInstance().getWdtSendNameByCode(item.sendName) : item.sendName].join("/") : item.sendId ? item.sendId : componentType === 'WDT_SEND_GOOD' ? WdtSendData.getInstance().getWdtSendNameByCode(item.sendName) : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
|
|
267
280
|
}) : null;
|
|
268
281
|
};
|
|
269
282
|
export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
270
283
|
var _ref7$list = _ref7.list,
|
|
271
284
|
list = _ref7$list === void 0 ? [] : _ref7$list,
|
|
272
285
|
_ref7$showField = _ref7.showField,
|
|
273
|
-
showField = _ref7$showField === void 0 ? "" : _ref7$showField
|
|
286
|
+
showField = _ref7$showField === void 0 ? "" : _ref7$showField,
|
|
287
|
+
_ref7$componentType = _ref7.componentType,
|
|
288
|
+
componentType = _ref7$componentType === void 0 ? "" : _ref7$componentType;
|
|
274
289
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
275
290
|
var logisticsCompany = item.logisticsCompany;
|
|
276
|
-
var company = ExpressData.getInstance().getExpressNameByCode(logisticsCompany);
|
|
291
|
+
var company = ExpressData.getInstance(componentType === 'WDT_LOGISTICS' ? 'wdt' : 'default').getExpressNameByCode(logisticsCompany);
|
|
277
292
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
278
293
|
content: content(item, index),
|
|
279
294
|
overlayStyle: {
|
|
@@ -282,10 +297,12 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
282
297
|
}, /*#__PURE__*/React.createElement("span", {
|
|
283
298
|
key: index,
|
|
284
299
|
style: {
|
|
285
|
-
color:
|
|
286
|
-
cursor:
|
|
300
|
+
color: '#1890ff',
|
|
301
|
+
cursor: 'pointer'
|
|
287
302
|
}
|
|
288
|
-
}, "\u5305\u88F9", ":")), showField ===
|
|
303
|
+
}, "\u5305\u88F9", ":")), showField === 'company' ? /*#__PURE__*/React.createElement("span", null, company ? company : null) : null, showField === 'code' ? /*#__PURE__*/React.createElement("span", null, item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
|
|
304
|
+
text: item.logisticsCode
|
|
305
|
+
}) : null) : null));
|
|
289
306
|
}) : null;
|
|
290
307
|
};
|
|
291
308
|
export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
@@ -298,7 +315,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
298
315
|
var orderContent = function orderContent(item, index) {
|
|
299
316
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
300
317
|
style: {
|
|
301
|
-
textAlign:
|
|
318
|
+
textAlign: 'center'
|
|
302
319
|
}
|
|
303
320
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId));
|
|
304
321
|
};
|
|
@@ -306,7 +323,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
306
323
|
var _options$find;
|
|
307
324
|
var color = ((_options$find = options.find(function (it) {
|
|
308
325
|
return item[valueKey] === it.value;
|
|
309
|
-
})) === null || _options$find === void 0 ? void 0 : _options$find.color) ||
|
|
326
|
+
})) === null || _options$find === void 0 ? void 0 : _options$find.color) || '#000';
|
|
310
327
|
var currentOption = options.find(function (option) {
|
|
311
328
|
return item[valueKey] === option.value;
|
|
312
329
|
});
|
|
@@ -318,14 +335,14 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
318
335
|
}, /*#__PURE__*/React.createElement("span", {
|
|
319
336
|
key: index,
|
|
320
337
|
style: {
|
|
321
|
-
color:
|
|
322
|
-
cursor:
|
|
338
|
+
color: '#1890ff',
|
|
339
|
+
cursor: 'pointer'
|
|
323
340
|
}
|
|
324
341
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")), /*#__PURE__*/React.createElement("span", {
|
|
325
342
|
style: {
|
|
326
343
|
color: color
|
|
327
344
|
}
|
|
328
|
-
}, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) ||
|
|
345
|
+
}, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')), item.reason && (item === null || item === void 0 ? void 0 : item[valueKey]) !== '成功' && /*#__PURE__*/React.createElement("div", {
|
|
329
346
|
className: "c-red"
|
|
330
347
|
}, item.reason));
|
|
331
348
|
}) : null;
|
|
@@ -337,22 +354,22 @@ export var BsGoodImage = function BsGoodImage(_ref9) {
|
|
|
337
354
|
index = _ref9.index;
|
|
338
355
|
var picUrl = item.picUrl || defaultImg;
|
|
339
356
|
var keyMap = {
|
|
340
|
-
name:
|
|
341
|
-
code:
|
|
342
|
-
skuId:
|
|
343
|
-
money:
|
|
344
|
-
number:
|
|
345
|
-
share:
|
|
346
|
-
type:
|
|
357
|
+
name: 'bs名称',
|
|
358
|
+
code: 'bs编码',
|
|
359
|
+
skuId: 'bssku编码',
|
|
360
|
+
money: 'bs实付金额',
|
|
361
|
+
number: 'bs数量',
|
|
362
|
+
share: 'bs分摊价',
|
|
363
|
+
type: 'bs赠品类型'
|
|
347
364
|
};
|
|
348
365
|
return /*#__PURE__*/React.createElement("div", {
|
|
349
366
|
className: styles.goodImgBox,
|
|
350
367
|
key: index
|
|
351
368
|
}, /*#__PURE__*/React.createElement("img", {
|
|
352
369
|
style: {
|
|
353
|
-
width:
|
|
354
|
-
height:
|
|
355
|
-
objectFit:
|
|
370
|
+
width: '40px',
|
|
371
|
+
height: '40px',
|
|
372
|
+
objectFit: 'contain'
|
|
356
373
|
},
|
|
357
374
|
src: picUrl
|
|
358
375
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -374,11 +391,11 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
|
|
|
374
391
|
return /*#__PURE__*/React.createElement(React.Fragment, null, BsGoodsTable({
|
|
375
392
|
list: (item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || [],
|
|
376
393
|
showHeader: showHeader,
|
|
377
|
-
text:
|
|
394
|
+
text: '退回'
|
|
378
395
|
}), BsGoodsTable({
|
|
379
396
|
list: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
|
|
380
397
|
showHeader: showHeader,
|
|
381
|
-
text:
|
|
398
|
+
text: '换出'
|
|
382
399
|
}));
|
|
383
400
|
}));
|
|
384
401
|
};
|
|
@@ -406,21 +423,21 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
406
423
|
switch (type) {
|
|
407
424
|
case 'ITEM_ENCODE':
|
|
408
425
|
columns = [{
|
|
409
|
-
dataIndex:
|
|
410
|
-
title:
|
|
411
|
-
align:
|
|
426
|
+
dataIndex: 'title',
|
|
427
|
+
title: '商品名称',
|
|
428
|
+
align: 'center',
|
|
412
429
|
ellipsis: true,
|
|
413
430
|
width: 200
|
|
414
431
|
}, {
|
|
415
|
-
dataIndex:
|
|
416
|
-
title:
|
|
417
|
-
align:
|
|
432
|
+
dataIndex: 'outerId',
|
|
433
|
+
title: '商品编码',
|
|
434
|
+
align: 'center',
|
|
418
435
|
ellipsis: true,
|
|
419
436
|
width: 140
|
|
420
437
|
}, {
|
|
421
|
-
dataIndex:
|
|
422
|
-
title:
|
|
423
|
-
align:
|
|
438
|
+
dataIndex: 'picUrl',
|
|
439
|
+
title: '图片',
|
|
440
|
+
align: 'center',
|
|
424
441
|
ellipsis: true,
|
|
425
442
|
width: 100,
|
|
426
443
|
render: function render(val) {
|
|
@@ -430,27 +447,27 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
430
447
|
});
|
|
431
448
|
}
|
|
432
449
|
}, {
|
|
433
|
-
dataIndex:
|
|
434
|
-
title:
|
|
435
|
-
align:
|
|
450
|
+
dataIndex: 'numIid',
|
|
451
|
+
title: '商品id',
|
|
452
|
+
align: 'center',
|
|
436
453
|
ellipsis: true,
|
|
437
454
|
width: 200
|
|
438
455
|
}, {
|
|
439
|
-
dataIndex:
|
|
440
|
-
title:
|
|
441
|
-
align:
|
|
456
|
+
dataIndex: 'skuId',
|
|
457
|
+
title: 'SKU ID',
|
|
458
|
+
align: 'center',
|
|
442
459
|
ellipsis: true,
|
|
443
460
|
width: 200
|
|
444
461
|
}, {
|
|
445
|
-
dataIndex:
|
|
446
|
-
title:
|
|
447
|
-
align:
|
|
462
|
+
dataIndex: 'outerSkuId',
|
|
463
|
+
title: 'SKU 编码',
|
|
464
|
+
align: 'center',
|
|
448
465
|
ellipsis: true,
|
|
449
466
|
width: 100
|
|
450
467
|
}, {
|
|
451
|
-
dataIndex:
|
|
452
|
-
title:
|
|
453
|
-
align:
|
|
468
|
+
dataIndex: 'propertiesName',
|
|
469
|
+
title: 'SKU 信息',
|
|
470
|
+
align: 'center',
|
|
454
471
|
ellipsis: true,
|
|
455
472
|
width: 200
|
|
456
473
|
}];
|
|
@@ -630,7 +647,7 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
630
647
|
return COLUMNS_INFO(type);
|
|
631
648
|
};
|
|
632
649
|
// const GOODS_INFO_COLUMNS = (text = '') => {
|
|
633
|
-
// return
|
|
650
|
+
// return
|
|
634
651
|
// }
|
|
635
652
|
var newColumns = useMemo(function () {
|
|
636
653
|
var columnList = [{
|
|
@@ -670,15 +687,15 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
670
687
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
671
688
|
visible = _useState4[0],
|
|
672
689
|
setVisible = _useState4[1];
|
|
673
|
-
var _useState5 = useState(
|
|
690
|
+
var _useState5 = useState(''),
|
|
674
691
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
675
692
|
fileUrl = _useState6[0],
|
|
676
693
|
setFileUrl = _useState6[1];
|
|
677
|
-
var _useState7 = useState(
|
|
694
|
+
var _useState7 = useState(''),
|
|
678
695
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
679
696
|
fileType = _useState8[0],
|
|
680
697
|
setFileType = _useState8[1];
|
|
681
|
-
var _useState9 = useState(
|
|
698
|
+
var _useState9 = useState(''),
|
|
682
699
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
683
700
|
fileName = _useState10[0],
|
|
684
701
|
setFileName = _useState10[1];
|
|
@@ -687,24 +704,24 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
687
704
|
downloading = _useState12[0],
|
|
688
705
|
setDownloading = _useState12[1];
|
|
689
706
|
var handleCancel = function handleCancel() {
|
|
690
|
-
setFileUrl(
|
|
691
|
-
setFileName(
|
|
707
|
+
setFileUrl('');
|
|
708
|
+
setFileName('');
|
|
692
709
|
setVisible(false);
|
|
693
710
|
setDownloading(false);
|
|
694
711
|
};
|
|
695
712
|
var onPreview = function onPreview(file) {
|
|
696
713
|
var _file$url;
|
|
697
|
-
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split(
|
|
714
|
+
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split('.');
|
|
698
715
|
var fileType = fileArr[fileArr.length - 1];
|
|
699
|
-
if ([
|
|
716
|
+
if (['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg'].includes(fileType.toLowerCase())) {
|
|
700
717
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
701
718
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
702
|
-
setFileType(
|
|
719
|
+
setFileType('pic');
|
|
703
720
|
setVisible(true);
|
|
704
|
-
} else if ([
|
|
721
|
+
} else if (['mp4', 'avi', 'mpeg', 'asf', 'mov', '3gp', 'wmv', 'rmvb'].includes(fileType.toLowerCase())) {
|
|
705
722
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
706
723
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
707
|
-
setFileType(
|
|
724
|
+
setFileType('video');
|
|
708
725
|
setVisible(true);
|
|
709
726
|
} else {
|
|
710
727
|
window.open(file === null || file === void 0 ? void 0 : file.url);
|
|
@@ -715,9 +732,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
715
732
|
fetch(url).then(function (res) {
|
|
716
733
|
return res.blob();
|
|
717
734
|
}).then(function (blob) {
|
|
718
|
-
var a = document.createElement(
|
|
735
|
+
var a = document.createElement('a');
|
|
719
736
|
document.body.appendChild(a);
|
|
720
|
-
a.style.display =
|
|
737
|
+
a.style.display = 'none';
|
|
721
738
|
var url = window.URL.createObjectURL(blob);
|
|
722
739
|
a.href = url;
|
|
723
740
|
a.download = name;
|
|
@@ -731,9 +748,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
731
748
|
return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
|
|
732
749
|
return /*#__PURE__*/React.createElement("a", {
|
|
733
750
|
style: {
|
|
734
|
-
color:
|
|
735
|
-
cursor:
|
|
736
|
-
display:
|
|
751
|
+
color: '#1890ff',
|
|
752
|
+
cursor: 'pointer',
|
|
753
|
+
display: 'block'
|
|
737
754
|
},
|
|
738
755
|
onClick: function onClick(e) {
|
|
739
756
|
e.preventDefault();
|
|
@@ -755,20 +772,20 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
755
772
|
}, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
756
773
|
text: fileUrl,
|
|
757
774
|
onCopy: function onCopy() {
|
|
758
|
-
message.success(
|
|
775
|
+
message.success('复制成功');
|
|
759
776
|
}
|
|
760
777
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
761
778
|
type: "link"
|
|
762
|
-
}, "\u4E0B\u8F7D\u5730\u5740")), fileType ===
|
|
779
|
+
}, "\u4E0B\u8F7D\u5730\u5740")), fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
|
|
763
780
|
alt: "example",
|
|
764
781
|
style: {
|
|
765
|
-
width:
|
|
782
|
+
width: '100%'
|
|
766
783
|
},
|
|
767
784
|
src: fileUrl
|
|
768
785
|
}) : /*#__PURE__*/React.createElement("video", {
|
|
769
786
|
style: {
|
|
770
|
-
width:
|
|
771
|
-
height:
|
|
787
|
+
width: '100%',
|
|
788
|
+
height: '100%'
|
|
772
789
|
},
|
|
773
790
|
autoPlay: true,
|
|
774
791
|
controls: true,
|
|
@@ -780,34 +797,34 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
780
797
|
type = _ref13.type;
|
|
781
798
|
var columnMap = {
|
|
782
799
|
BS_SYSTEM_ORDER: [{
|
|
783
|
-
dataIndex:
|
|
784
|
-
title:
|
|
800
|
+
dataIndex: 'billType',
|
|
801
|
+
title: '订单类型'
|
|
785
802
|
}, {
|
|
786
|
-
dataIndex:
|
|
787
|
-
title:
|
|
803
|
+
dataIndex: 'billNo',
|
|
804
|
+
title: '系统订单号'
|
|
788
805
|
}, {
|
|
789
|
-
dataIndex:
|
|
790
|
-
title:
|
|
806
|
+
dataIndex: 'billTag',
|
|
807
|
+
title: '标记'
|
|
791
808
|
}],
|
|
792
809
|
WLN_SYSTEM_ORDER: [{
|
|
793
|
-
dataIndex:
|
|
794
|
-
title:
|
|
810
|
+
dataIndex: 'billType',
|
|
811
|
+
title: '单据类型'
|
|
795
812
|
}, {
|
|
796
|
-
dataIndex:
|
|
797
|
-
title:
|
|
813
|
+
dataIndex: 'billNo',
|
|
814
|
+
title: '系统订单号'
|
|
798
815
|
}, {
|
|
799
|
-
dataIndex:
|
|
800
|
-
title:
|
|
816
|
+
dataIndex: 'billTag',
|
|
817
|
+
title: '标签'
|
|
801
818
|
}],
|
|
802
819
|
WDT_SYSTEM_ORDER: [{
|
|
803
|
-
dataIndex:
|
|
804
|
-
title:
|
|
820
|
+
dataIndex: 'billType',
|
|
821
|
+
title: '订单类型'
|
|
805
822
|
}, {
|
|
806
|
-
dataIndex:
|
|
807
|
-
title:
|
|
823
|
+
dataIndex: 'billNo',
|
|
824
|
+
title: '系统订单号'
|
|
808
825
|
}, {
|
|
809
|
-
dataIndex:
|
|
810
|
-
title:
|
|
826
|
+
dataIndex: 'billTag',
|
|
827
|
+
title: '订单标签'
|
|
811
828
|
}]
|
|
812
829
|
};
|
|
813
830
|
var rowSelection = {
|
|
@@ -829,14 +846,14 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
829
846
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
830
847
|
columns: columnMap[type] || [],
|
|
831
848
|
rowSelection: rowSelection,
|
|
832
|
-
rowKey:
|
|
849
|
+
rowKey: 'billNo',
|
|
833
850
|
size: "small",
|
|
834
851
|
pagination: false,
|
|
835
852
|
scroll: {
|
|
836
|
-
x:
|
|
853
|
+
x: '100%'
|
|
837
854
|
},
|
|
838
855
|
locale: {
|
|
839
|
-
emptyText:
|
|
856
|
+
emptyText: '暂无数据'
|
|
840
857
|
}
|
|
841
858
|
});
|
|
842
859
|
};
|
|
@@ -856,33 +873,33 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
856
873
|
_ref14$options = _ref14.options,
|
|
857
874
|
options = _ref14$options === void 0 ? [] : _ref14$options;
|
|
858
875
|
var msgTypeCh = {
|
|
859
|
-
ding:
|
|
860
|
-
wechat:
|
|
861
|
-
qq:
|
|
862
|
-
qywx:
|
|
876
|
+
ding: '钉钉',
|
|
877
|
+
wechat: '微信',
|
|
878
|
+
qq: 'QQ',
|
|
879
|
+
qywx: '企业微信'
|
|
863
880
|
};
|
|
864
881
|
var detailContent = function detailContent(item) {
|
|
865
882
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
866
883
|
style: {
|
|
867
|
-
textAlign:
|
|
884
|
+
textAlign: 'left'
|
|
868
885
|
}
|
|
869
886
|
}, /*#__PURE__*/React.createElement("div", null, item.ruleName)));
|
|
870
887
|
};
|
|
871
888
|
return /*#__PURE__*/React.createElement(Space, {
|
|
872
|
-
direction: !horizontal ?
|
|
889
|
+
direction: !horizontal ? 'vertical' : 'horizontal'
|
|
873
890
|
}, Array.isArray(list) ? (list || []).map(function (item, index) {
|
|
874
891
|
var _options$find2;
|
|
875
892
|
var color = ((_options$find2 = options.find(function (innerItem) {
|
|
876
893
|
return item[valueKey] === innerItem.label;
|
|
877
|
-
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) ||
|
|
894
|
+
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || '#000';
|
|
878
895
|
var currentOption = options.find(function (option) {
|
|
879
896
|
return item[valueKey] === option.value;
|
|
880
897
|
});
|
|
881
|
-
var key = item.msgType ||
|
|
898
|
+
var key = item.msgType || 'ding';
|
|
882
899
|
return /*#__PURE__*/React.createElement("div", {
|
|
883
900
|
style: {
|
|
884
901
|
color: color,
|
|
885
|
-
cursor:
|
|
902
|
+
cursor: 'pointer'
|
|
886
903
|
}
|
|
887
904
|
}, /*#__PURE__*/React.createElement(Popover, {
|
|
888
905
|
content: detailContent(item),
|
|
@@ -891,6 +908,79 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
891
908
|
}
|
|
892
909
|
}, /*#__PURE__*/React.createElement("span", {
|
|
893
910
|
key: index
|
|
894
|
-
}, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) ||
|
|
911
|
+
}, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')));
|
|
895
912
|
}) : null);
|
|
913
|
+
};
|
|
914
|
+
//获取付款凭证
|
|
915
|
+
export var AlipayBill = function AlipayBill(props) {
|
|
916
|
+
var value = props.value,
|
|
917
|
+
platform = props.platform;
|
|
918
|
+
var _useState13 = useState(false),
|
|
919
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
920
|
+
visible = _useState14[0],
|
|
921
|
+
setVisible = _useState14[1];
|
|
922
|
+
var _useState15 = useState(''),
|
|
923
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
924
|
+
msg = _useState16[0],
|
|
925
|
+
setMsg = _useState16[1];
|
|
926
|
+
var _useState17 = useState(false),
|
|
927
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
928
|
+
hasUrl = _useState18[0],
|
|
929
|
+
setHasUrl = _useState18[1];
|
|
930
|
+
var voucherHandle = /*#__PURE__*/function () {
|
|
931
|
+
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
932
|
+
var params, res, data, msg;
|
|
933
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
934
|
+
while (1) switch (_context.prev = _context.next) {
|
|
935
|
+
case 0:
|
|
936
|
+
e.stopPropagation();
|
|
937
|
+
params = {
|
|
938
|
+
alipayBillReceiptDetailId: value
|
|
939
|
+
};
|
|
940
|
+
_context.next = 4;
|
|
941
|
+
return getAlipayBillReceipt(params);
|
|
942
|
+
case 4:
|
|
943
|
+
res = _context.sent;
|
|
944
|
+
data = res.data, msg = res.message;
|
|
945
|
+
if (data) {
|
|
946
|
+
setHasUrl(true);
|
|
947
|
+
if (['fxg'].includes(platform)) {
|
|
948
|
+
setMsg(data);
|
|
949
|
+
setVisible(true);
|
|
950
|
+
} else {
|
|
951
|
+
window.open(data);
|
|
952
|
+
}
|
|
953
|
+
} else {
|
|
954
|
+
setHasUrl(false);
|
|
955
|
+
setMsg(msg);
|
|
956
|
+
setVisible(true);
|
|
957
|
+
}
|
|
958
|
+
case 7:
|
|
959
|
+
case "end":
|
|
960
|
+
return _context.stop();
|
|
961
|
+
}
|
|
962
|
+
}, _callee);
|
|
963
|
+
}));
|
|
964
|
+
return function voucherHandle(_x2) {
|
|
965
|
+
return _ref15.apply(this, arguments);
|
|
966
|
+
};
|
|
967
|
+
}();
|
|
968
|
+
var closeHandle = function closeHandle(e) {
|
|
969
|
+
e.stopPropagation();
|
|
970
|
+
setVisible(false);
|
|
971
|
+
};
|
|
972
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
973
|
+
style: {
|
|
974
|
+
color: '#1890ff',
|
|
975
|
+
cursor: 'pointer'
|
|
976
|
+
},
|
|
977
|
+
onClick: voucherHandle
|
|
978
|
+
}, value), /*#__PURE__*/React.createElement(Modal, {
|
|
979
|
+
title: "\u4ED8\u6B3E\u51ED\u8BC1",
|
|
980
|
+
visible: visible,
|
|
981
|
+
footer: false,
|
|
982
|
+
onCancel: closeHandle
|
|
983
|
+
}, ['fxg'].includes(platform) && hasUrl ? /*#__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, {
|
|
984
|
+
copyable: true
|
|
985
|
+
}, msg)) : msg));
|
|
896
986
|
};
|