@kmkf-fe-packages/services-components 2.0.19-beta.1 → 2.0.20
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/README.md +1 -1
- package/dist/esm/components/BS/common/BsMemo.js +0 -1
- package/dist/esm/components/BS/common/BsType.js +0 -1
- package/dist/esm/components/Common/constants/gy.js +0 -66
- package/dist/esm/components/Common/index.js +1 -1
- package/dist/esm/components/CommonHeaderGood/index.js +0 -98
- package/dist/esm/components/GY/GyReissue/index.js +3 -2
- package/dist/esm/components/GetFormItem/index.d.ts +1 -2
- package/dist/esm/components/GetFormItem/index.js +10 -30
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +0 -6
- package/dist/esm/components/LogisticsInterception/index.js +8 -19
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +0 -4
- package/dist/esm/components/LogisticsMoreInterception/index.js +3 -10
- package/dist/esm/components/MsgStatus/index.js +2 -7
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentAmount.js +4 -0
- package/dist/esm/components/Select/index.d.ts +1 -1
- package/dist/esm/components/Select/index.js +6 -9
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +1 -4
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/package.json +6 -6
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
- package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
- package/dist/esm/components/Common/dist/index.js +0 -1019
- package/dist/esm/components/GY/GyReturn/index.d.ts +0 -57
- package/dist/esm/components/GY/GyReturn/index.js +0 -181
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserKCode.d.ts +0 -43
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserKCode.js +0 -110
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserSecretKey.d.ts +0 -35
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserSecretKey.js +0 -84
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserKCode.d.ts +0 -44
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserKCode.js +0 -113
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserSecretKey.d.ts +0 -35
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserSecretKey.js +0 -83
package/README.md
CHANGED
|
@@ -146,72 +146,6 @@ var getColumns = function getColumns() {
|
|
|
146
146
|
align: "center",
|
|
147
147
|
ellipsis: true
|
|
148
148
|
});
|
|
149
|
-
}),
|
|
150
|
-
//管易退货商品信息
|
|
151
|
-
GY_RETURN_GOODS: [{
|
|
152
|
-
dataIndex: "goodName",
|
|
153
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
154
|
-
width: 150
|
|
155
|
-
}, {
|
|
156
|
-
dataIndex: "goodShortName",
|
|
157
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
158
|
-
width: 150
|
|
159
|
-
}, {
|
|
160
|
-
dataIndex: "goodNo",
|
|
161
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
162
|
-
width: 200
|
|
163
|
-
}, {
|
|
164
|
-
dataIndex: "specName",
|
|
165
|
-
title: "SKU\u540D\u79F0",
|
|
166
|
-
align: "center",
|
|
167
|
-
ellipsis: true,
|
|
168
|
-
width: 250
|
|
169
|
-
}, {
|
|
170
|
-
dataIndex: "specNo",
|
|
171
|
-
title: "SKU\u7F16\u7801",
|
|
172
|
-
align: "center",
|
|
173
|
-
ellipsis: true,
|
|
174
|
-
width: 150
|
|
175
|
-
}, {
|
|
176
|
-
dataIndex: "qty",
|
|
177
|
-
title: "\u6570\u91CF",
|
|
178
|
-
width: 100
|
|
179
|
-
}, {
|
|
180
|
-
dataIndex: "price",
|
|
181
|
-
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
182
|
-
width: 150
|
|
183
|
-
}, {
|
|
184
|
-
dataIndex: "amount",
|
|
185
|
-
title: "\u5B9E\u9645\u91D1\u989D",
|
|
186
|
-
width: 150
|
|
187
|
-
}, {
|
|
188
|
-
dataIndex: "originPrice",
|
|
189
|
-
title: "\u6807\u51C6\u5355\u4EF7",
|
|
190
|
-
width: 150
|
|
191
|
-
}, {
|
|
192
|
-
dataIndex: "originAmount",
|
|
193
|
-
title: "\u6807\u51C6\u91D1\u989D",
|
|
194
|
-
width: 150
|
|
195
|
-
}, {
|
|
196
|
-
dataIndex: "discountFee",
|
|
197
|
-
title: "\u8BA9\u5229\u91D1\u989D",
|
|
198
|
-
width: 150
|
|
199
|
-
}, {
|
|
200
|
-
dataIndex: "amountAfter",
|
|
201
|
-
title: "\u8BA9\u5229\u540E\u91D1\u989D",
|
|
202
|
-
width: 150
|
|
203
|
-
}, {
|
|
204
|
-
dataIndex: "isGift",
|
|
205
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
206
|
-
width: 150,
|
|
207
|
-
render: function render(val) {
|
|
208
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
209
|
-
}
|
|
210
|
-
}].map(function (item) {
|
|
211
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
212
|
-
align: "center",
|
|
213
|
-
ellipsis: true
|
|
214
|
-
});
|
|
215
149
|
})
|
|
216
150
|
};
|
|
217
151
|
return data;
|
|
@@ -733,7 +733,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
733
733
|
var key = item.msgType || "ding";
|
|
734
734
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
735
735
|
key: index
|
|
736
|
-
}, msgTypeCh[key]
|
|
736
|
+
}, msgTypeCh[key], "-", item.ruleName ? "".concat(item.ruleName, "-") : "", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
737
737
|
return /*#__PURE__*/React.createElement("div", {
|
|
738
738
|
key: "wrap_".concat(index),
|
|
739
739
|
style: {
|
|
@@ -648,104 +648,6 @@ var GoodHeaderMap = {
|
|
|
648
648
|
},
|
|
649
649
|
moneyKey: "amount"
|
|
650
650
|
},
|
|
651
|
-
GY_RETURN_GOODS: {
|
|
652
|
-
headerMap: {
|
|
653
|
-
goodName: {
|
|
654
|
-
component: BsHeaderChild,
|
|
655
|
-
name: "商品名称",
|
|
656
|
-
key: "goodName",
|
|
657
|
-
width: 100
|
|
658
|
-
},
|
|
659
|
-
goodShortName: {
|
|
660
|
-
component: BsHeaderChild,
|
|
661
|
-
name: "商品简称",
|
|
662
|
-
key: "goodShortName",
|
|
663
|
-
width: 70
|
|
664
|
-
},
|
|
665
|
-
goodNo: {
|
|
666
|
-
component: BsHeaderChild,
|
|
667
|
-
name: "商品编码",
|
|
668
|
-
key: "goodNo",
|
|
669
|
-
width: 70
|
|
670
|
-
},
|
|
671
|
-
specName: {
|
|
672
|
-
component: BsHeaderChild,
|
|
673
|
-
name: "SKU名称",
|
|
674
|
-
key: "specName",
|
|
675
|
-
width: 140
|
|
676
|
-
},
|
|
677
|
-
specNo: {
|
|
678
|
-
component: BsHeaderChild,
|
|
679
|
-
name: "SKU编码",
|
|
680
|
-
key: "specNo",
|
|
681
|
-
width: 140
|
|
682
|
-
},
|
|
683
|
-
qty: {
|
|
684
|
-
component: BsHeaderChild,
|
|
685
|
-
name: "数量",
|
|
686
|
-
key: "qty",
|
|
687
|
-
width: 140
|
|
688
|
-
},
|
|
689
|
-
price: {
|
|
690
|
-
component: BsHeaderChild,
|
|
691
|
-
name: "实际单价",
|
|
692
|
-
key: "price",
|
|
693
|
-
width: 140
|
|
694
|
-
},
|
|
695
|
-
amount: {
|
|
696
|
-
component: BsHeaderChild,
|
|
697
|
-
name: "实际金额",
|
|
698
|
-
key: "amount",
|
|
699
|
-
width: 140
|
|
700
|
-
},
|
|
701
|
-
originPrice: {
|
|
702
|
-
component: BsHeaderChild,
|
|
703
|
-
name: "标准单价",
|
|
704
|
-
key: "originPrice",
|
|
705
|
-
width: 140
|
|
706
|
-
},
|
|
707
|
-
originAmount: {
|
|
708
|
-
component: BsHeaderChild,
|
|
709
|
-
name: "标准金额",
|
|
710
|
-
key: "originAmount",
|
|
711
|
-
width: 140
|
|
712
|
-
},
|
|
713
|
-
discountFee: {
|
|
714
|
-
component: BsHeaderChild,
|
|
715
|
-
name: "让利金额",
|
|
716
|
-
key: "discountFee",
|
|
717
|
-
width: 140
|
|
718
|
-
},
|
|
719
|
-
amountAfter: {
|
|
720
|
-
component: BsHeaderChild,
|
|
721
|
-
name: "让利后金额",
|
|
722
|
-
key: "amountAfter",
|
|
723
|
-
width: 140
|
|
724
|
-
},
|
|
725
|
-
isGift: {
|
|
726
|
-
component: ReissueGift,
|
|
727
|
-
name: "是否赠品",
|
|
728
|
-
key: "isGift",
|
|
729
|
-
width: 150
|
|
730
|
-
}
|
|
731
|
-
},
|
|
732
|
-
itemKey: {
|
|
733
|
-
goodName: "商品名称",
|
|
734
|
-
goodShortName: "商品简称",
|
|
735
|
-
goodNo: "商品编码",
|
|
736
|
-
specName: "SKU名称",
|
|
737
|
-
specNo: "SKU编码",
|
|
738
|
-
qty: "数量",
|
|
739
|
-
price: "实际单价",
|
|
740
|
-
amount: "实际金额",
|
|
741
|
-
originPrice: "标准单价",
|
|
742
|
-
originAmount: "标准金额",
|
|
743
|
-
discountFee: "让利金额",
|
|
744
|
-
amountAfter: "让利后金额",
|
|
745
|
-
isGift: "是否赠品"
|
|
746
|
-
},
|
|
747
|
-
moneyKey: "amount"
|
|
748
|
-
},
|
|
749
651
|
BS_E3_REISSUE_GOODS: {
|
|
750
652
|
headerMap: {
|
|
751
653
|
sku: {
|
|
@@ -94,8 +94,9 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
|
|
|
94
94
|
required: false,
|
|
95
95
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
96
96
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
97
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : ""
|
|
98
|
-
isGyReissue
|
|
97
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : ""
|
|
98
|
+
// isGyReissue={true}
|
|
99
|
+
,
|
|
99
100
|
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
100
101
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
101
102
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
@@ -10,7 +10,6 @@ declare type GetFormItemProps = {
|
|
|
10
10
|
style?: CSSProperties | undefined;
|
|
11
11
|
[prop: string]: any;
|
|
12
12
|
tooltip?: string;
|
|
13
|
-
isGyReissue?: boolean;
|
|
14
13
|
};
|
|
15
|
-
declare const GetFormItem: ({ rules, required, title, component, name, hidden, display, style, validateTrigger, tooltip,
|
|
14
|
+
declare const GetFormItem: ({ rules, required, title, component, name, hidden, display, style, validateTrigger, tooltip, }: GetFormItemProps) => React.JSX.Element | null;
|
|
16
15
|
export default GetFormItem;
|
|
@@ -4,9 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
8
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
9
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
7
|
import React from "react";
|
|
11
8
|
import { Form } from "antd";
|
|
12
9
|
var GetFormItem = function GetFormItem(_ref) {
|
|
@@ -22,8 +19,7 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
22
19
|
style = _ref.style,
|
|
23
20
|
validateTrigger = _ref.validateTrigger,
|
|
24
21
|
_ref$tooltip = _ref.tooltip,
|
|
25
|
-
tooltip = _ref$tooltip === void 0 ? "" : _ref$tooltip
|
|
26
|
-
isGyReissue = _ref.isGyReissue;
|
|
22
|
+
tooltip = _ref$tooltip === void 0 ? "" : _ref$tooltip;
|
|
27
23
|
var newRules = rules;
|
|
28
24
|
if (required) {
|
|
29
25
|
newRules = rules.concat({
|
|
@@ -31,31 +27,15 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
31
27
|
message: "\u8BF7\u8F93\u5165".concat(title)
|
|
32
28
|
});
|
|
33
29
|
}
|
|
34
|
-
if (isGyReissue) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
return _context.abrupt("return", Promise.reject(new Error("vipCode 是必填项,请联系管理员")));
|
|
46
|
-
case 2:
|
|
47
|
-
case "end":
|
|
48
|
-
return _context.stop();
|
|
49
|
-
}
|
|
50
|
-
}, _callee);
|
|
51
|
-
}));
|
|
52
|
-
function validator(_x, _x2) {
|
|
53
|
-
return _validator.apply(this, arguments);
|
|
54
|
-
}
|
|
55
|
-
return validator;
|
|
56
|
-
}()
|
|
57
|
-
});
|
|
58
|
-
}
|
|
30
|
+
// if (isGyReissue) {
|
|
31
|
+
// newRules.push({
|
|
32
|
+
// validator: async (_: any, value: any) => {
|
|
33
|
+
// if (!value || !value.vipCode) {
|
|
34
|
+
// return Promise.reject(new Error("vipCode 是必填项,请联系管理员"));
|
|
35
|
+
// }
|
|
36
|
+
// },
|
|
37
|
+
// });
|
|
38
|
+
// }
|
|
59
39
|
// 当隐藏时, 不在拥有该组件
|
|
60
40
|
if (hidden) return null;
|
|
61
41
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -176,7 +176,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
176
176
|
});
|
|
177
177
|
_defineProperty(this, "filterConfig", function (item) {
|
|
178
178
|
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
|
|
179
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "
|
|
179
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
180
180
|
searchDefaultConditions: SYMBOL.in,
|
|
181
181
|
type: item.type,
|
|
182
182
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
@@ -10,8 +10,6 @@ import InterceptState from "./InterceptState";
|
|
|
10
10
|
import InterceptApiStatus from "./InterceptApiStatus";
|
|
11
11
|
import Express from "../Express";
|
|
12
12
|
import ExpressCode from "../ExpressCode";
|
|
13
|
-
import InterceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
|
|
14
|
-
import InterceptLogisticsUserSecretKey from "./interceptLogisticsUserSecretKey";
|
|
15
13
|
declare class Logistics implements ComponentInterface {
|
|
16
14
|
name: string;
|
|
17
15
|
columnHeader: string | JSX.Element;
|
|
@@ -25,8 +23,6 @@ declare class Logistics implements ComponentInterface {
|
|
|
25
23
|
interceptLogisticsStatus: InterceptStatus;
|
|
26
24
|
interceptApiStatus: InterceptApiStatus;
|
|
27
25
|
interceptSenderMobile: InterceptSenderMobile;
|
|
28
|
-
interceptLogisticsUserKCode: InterceptLogisticsUserKCode;
|
|
29
|
-
interceptLogisticsUserSecretKey: InterceptLogisticsUserSecretKey;
|
|
30
26
|
interceptSnapshot: InterceptSnapshot;
|
|
31
27
|
interceptState: InterceptState;
|
|
32
28
|
isCombinationComponent: boolean;
|
|
@@ -60,8 +56,6 @@ declare class Logistics implements ComponentInterface {
|
|
|
60
56
|
};
|
|
61
57
|
interceptSnapshot: any;
|
|
62
58
|
interceptState: any;
|
|
63
|
-
interceptLogisticsUserKCode: any;
|
|
64
|
-
interceptLogisticsUserSecretKey: any;
|
|
65
59
|
};
|
|
66
60
|
renderPc: () => null;
|
|
67
61
|
renderExport: () => null;
|
|
@@ -22,8 +22,6 @@ import InterceptApiStatus from "./InterceptApiStatus";
|
|
|
22
22
|
import Express from "../Express";
|
|
23
23
|
import ExpressCode from "../ExpressCode";
|
|
24
24
|
import ColumnHeader from "./columnHeader";
|
|
25
|
-
import InterceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
|
|
26
|
-
import InterceptLogisticsUserSecretKey from "./interceptLogisticsUserSecretKey";
|
|
27
25
|
var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
28
26
|
var _this = this;
|
|
29
27
|
_classCallCheck(this, Logistics);
|
|
@@ -39,8 +37,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
39
37
|
_defineProperty(this, "interceptLogisticsStatus", void 0);
|
|
40
38
|
_defineProperty(this, "interceptApiStatus", void 0);
|
|
41
39
|
_defineProperty(this, "interceptSenderMobile", void 0);
|
|
42
|
-
_defineProperty(this, "interceptLogisticsUserKCode", void 0);
|
|
43
|
-
_defineProperty(this, "interceptLogisticsUserSecretKey", void 0);
|
|
44
40
|
_defineProperty(this, "interceptSnapshot", void 0);
|
|
45
41
|
_defineProperty(this, "interceptState", void 0);
|
|
46
42
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
@@ -55,7 +51,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
55
51
|
_defineProperty(this, "effects", void 0);
|
|
56
52
|
_defineProperty(this, "dataType", void 0);
|
|
57
53
|
_defineProperty(this, "renderClient", function (record) {
|
|
58
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptApiStatus.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record)
|
|
54
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptApiStatus.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
|
|
59
55
|
});
|
|
60
56
|
_defineProperty(this, "renderLog", function (record) {
|
|
61
57
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptApiStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatus.name, ":", " ", _this.interceptApiStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptState.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptState.name, ":", " ", _this.interceptState.renderLog(record))));
|
|
@@ -70,9 +66,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
70
66
|
interceptApiStatus: _this.interceptApiStatus.getComponentValue(r),
|
|
71
67
|
interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
|
|
72
68
|
interceptSnapshot: _this.interceptSnapshot.getComponentValue(r),
|
|
73
|
-
interceptState: _this.interceptState.getComponentValue(r)
|
|
74
|
-
interceptLogisticsUserKCode: _this.interceptLogisticsUserKCode.getComponentValue(r),
|
|
75
|
-
interceptLogisticsUserSecretKey: _this.interceptLogisticsUserSecretKey.getComponentValue(r)
|
|
69
|
+
interceptState: _this.interceptState.getComponentValue(r)
|
|
76
70
|
};
|
|
77
71
|
});
|
|
78
72
|
_defineProperty(this, "renderPc", function () {
|
|
@@ -82,7 +76,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
82
76
|
return null;
|
|
83
77
|
});
|
|
84
78
|
_defineProperty(this, "editRender", function (p) {
|
|
85
|
-
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects
|
|
79
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects;
|
|
86
80
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
87
81
|
title: _this.name,
|
|
88
82
|
name: _this.id,
|
|
@@ -90,15 +84,12 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
90
84
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
91
85
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
92
86
|
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,
|
|
93
|
-
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 :
|
|
94
|
-
component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({
|
|
95
|
-
platform: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env,
|
|
96
|
-
onJumpPage: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.onJumpPage
|
|
97
|
-
}, _this.componentConfig, {
|
|
87
|
+
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 : '',
|
|
88
|
+
component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({}, _this.componentConfig, {
|
|
98
89
|
logisticsOptions: _this.expressDateInstance.getExpressData(),
|
|
99
90
|
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
100
91
|
logisticsAddressData: _this.logisticsAddressData.getAddressData(),
|
|
101
|
-
isEditing: (_this$
|
|
92
|
+
isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
|
|
102
93
|
}))
|
|
103
94
|
});
|
|
104
95
|
});
|
|
@@ -107,7 +98,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
107
98
|
subKey: "interceptCompany"
|
|
108
99
|
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
109
100
|
subKey: "interceptCode"
|
|
110
|
-
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)
|
|
101
|
+
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)];
|
|
111
102
|
});
|
|
112
103
|
this.name = options.name;
|
|
113
104
|
this.columnHeader = /*#__PURE__*/React.createElement(ColumnHeader, {
|
|
@@ -129,8 +120,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
129
120
|
this.interceptSenderMobile = new InterceptSenderMobile(options);
|
|
130
121
|
this.interceptSnapshot = new InterceptSnapshot(options);
|
|
131
122
|
this.interceptState = new InterceptState(options);
|
|
132
|
-
this.interceptLogisticsUserSecretKey = new InterceptLogisticsUserSecretKey(options);
|
|
133
|
-
this.interceptLogisticsUserKCode = new InterceptLogisticsUserKCode(options);
|
|
134
123
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
135
124
|
id: "".concat(options.id, "_interceptCompany"),
|
|
136
125
|
name: "物流信息"
|
|
@@ -142,7 +131,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
142
131
|
this.isCombinationComponent = true;
|
|
143
132
|
this.canSort = false;
|
|
144
133
|
this.dataType = "object";
|
|
145
|
-
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot, this.interceptState
|
|
134
|
+
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot, this.interceptState];
|
|
146
135
|
this.rules = [{
|
|
147
136
|
validator: function validator(_, value) {
|
|
148
137
|
var _this$componentConfig5, _this$componentConfig6, _value$interceptAddre, _value$interceptSende;
|
|
@@ -9,8 +9,6 @@ import InterceptStatus from "./InterceptStatus";
|
|
|
9
9
|
import InterceptCode from "./interceptCode";
|
|
10
10
|
import InterceptApiStatus from "./InterceptApiStatus";
|
|
11
11
|
import Express from "./interceptCompany";
|
|
12
|
-
import InterceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
|
|
13
|
-
import InterceptLogisticsUserSecretKey from "./interceptLogisticsUserSecretKey";
|
|
14
12
|
declare class Logistics implements ComponentInterface {
|
|
15
13
|
name: string;
|
|
16
14
|
columnHeader: string | JSX.Element;
|
|
@@ -25,8 +23,6 @@ declare class Logistics implements ComponentInterface {
|
|
|
25
23
|
interceptApiStatus: InterceptApiStatus;
|
|
26
24
|
interceptSenderMobile: InterceptSenderMobile;
|
|
27
25
|
interceptSnapshot: InterceptSnapshot;
|
|
28
|
-
interceptLogisticsUserKCode: InterceptLogisticsUserKCode;
|
|
29
|
-
interceptLogisticsUserSecretKey: InterceptLogisticsUserSecretKey;
|
|
30
26
|
isCombinationComponent: boolean;
|
|
31
27
|
formField: string;
|
|
32
28
|
canSort: boolean;
|
|
@@ -25,8 +25,6 @@ import Express from "./interceptCompany";
|
|
|
25
25
|
import ColumnHeader from "./columnHeader";
|
|
26
26
|
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
27
27
|
import CopyText from "../../commonComponents/CopyText";
|
|
28
|
-
import InterceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
|
|
29
|
-
import InterceptLogisticsUserSecretKey from "./interceptLogisticsUserSecretKey";
|
|
30
28
|
var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
31
29
|
var _this = this,
|
|
32
30
|
_this$componentConfig5,
|
|
@@ -45,8 +43,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
45
43
|
_defineProperty(this, "interceptApiStatus", void 0);
|
|
46
44
|
_defineProperty(this, "interceptSenderMobile", void 0);
|
|
47
45
|
_defineProperty(this, "interceptSnapshot", void 0);
|
|
48
|
-
_defineProperty(this, "interceptLogisticsUserKCode", void 0);
|
|
49
|
-
_defineProperty(this, "interceptLogisticsUserSecretKey", void 0);
|
|
50
46
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
51
47
|
_defineProperty(this, "formField", void 0);
|
|
52
48
|
_defineProperty(this, "canSort", void 0);
|
|
@@ -80,7 +76,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
80
76
|
style: {
|
|
81
77
|
color: "red"
|
|
82
78
|
}
|
|
83
|
-
}, (_item$interceptLogist2 = item.interceptLogisticsApiStatus) === null || _item$interceptLogist2 === void 0 ? void 0 : _item$interceptLogist2.status, " \u5931\u8D25\u539F\u56E0\uFF1A", item === null || item === void 0 ? void 0 : (_item$interceptLogist3 = item.interceptLogisticsApiStatus) === null || _item$interceptLogist3 === void 0 ? void 0 : _item$interceptLogist3.reason) : /*#__PURE__*/React.createElement("span", null, (_item$interceptLogist4 = item.interceptLogisticsApiStatus) === null || _item$interceptLogist4 === void 0 ? void 0 : _item$interceptLogist4.status)) : null, item.interceptLogisticsSnapshot ? /*#__PURE__*/React.createElement("div", null, "\u5FEB\u7167\uFF1A", item.interceptLogisticsSnapshot) : null
|
|
79
|
+
}, (_item$interceptLogist2 = item.interceptLogisticsApiStatus) === null || _item$interceptLogist2 === void 0 ? void 0 : _item$interceptLogist2.status, " \u5931\u8D25\u539F\u56E0\uFF1A", item === null || item === void 0 ? void 0 : (_item$interceptLogist3 = item.interceptLogisticsApiStatus) === null || _item$interceptLogist3 === void 0 ? void 0 : _item$interceptLogist3.reason) : /*#__PURE__*/React.createElement("span", null, (_item$interceptLogist4 = item.interceptLogisticsApiStatus) === null || _item$interceptLogist4 === void 0 ? void 0 : _item$interceptLogist4.status)) : null, item.interceptLogisticsSnapshot ? /*#__PURE__*/React.createElement("div", null, "\u5FEB\u7167\uFF1A", item.interceptLogisticsSnapshot) : null);
|
|
84
80
|
}));
|
|
85
81
|
});
|
|
86
82
|
_defineProperty(this, "renderClient", function (record) {
|
|
@@ -113,8 +109,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
113
109
|
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 : "",
|
|
114
110
|
component: /*#__PURE__*/React.createElement(LogisticsMoreInterception, _extends({}, _this.componentConfig, {
|
|
115
111
|
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
116
|
-
isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
|
|
117
|
-
effects: _this.effects
|
|
112
|
+
isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
|
|
118
113
|
}))
|
|
119
114
|
});
|
|
120
115
|
});
|
|
@@ -145,8 +140,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
145
140
|
this.interceptApiStatus = new InterceptApiStatus(options);
|
|
146
141
|
this.interceptSenderMobile = new InterceptSenderMobile(options);
|
|
147
142
|
this.interceptSnapshot = new InterceptSnapshot(options);
|
|
148
|
-
this.interceptLogisticsUserKCode = new InterceptLogisticsUserKCode(options);
|
|
149
|
-
this.interceptLogisticsUserSecretKey = new InterceptLogisticsUserSecretKey(options);
|
|
150
143
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
151
144
|
id: "".concat(options.id, "_logisticsInterceptCompanyList"),
|
|
152
145
|
name: "物流信息"
|
|
@@ -158,7 +151,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
158
151
|
this.isCombinationComponent = true;
|
|
159
152
|
this.canSort = false;
|
|
160
153
|
this.dataType = "object";
|
|
161
|
-
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot
|
|
154
|
+
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot];
|
|
162
155
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
163
156
|
required: (_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required,
|
|
164
157
|
validator: function validator(_, value) {
|
|
@@ -39,15 +39,10 @@ var typeMap = {
|
|
|
39
39
|
label: "等待执行",
|
|
40
40
|
color: "#e7780f"
|
|
41
41
|
}, {
|
|
42
|
-
oldValue: "
|
|
42
|
+
oldValue: "等待发送",
|
|
43
43
|
value: "不满足条件,无需执行",
|
|
44
44
|
label: "不满足条件,无需执行",
|
|
45
45
|
color: "#8A8A8A"
|
|
46
|
-
}, {
|
|
47
|
-
oldValue: "暂不满足条件,等待执行",
|
|
48
|
-
value: "暂不满足条件,等待执行",
|
|
49
|
-
label: "暂不满足条件,等待执行",
|
|
50
|
-
color: "#4D90F7"
|
|
51
46
|
}],
|
|
52
47
|
key: "msgStatusValues",
|
|
53
48
|
code: "msgStatus4Search",
|
|
@@ -130,7 +125,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
130
125
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
131
126
|
});
|
|
132
127
|
var key = item.msgType || "ding";
|
|
133
|
-
return "".concat(msgTypeCh[key]
|
|
128
|
+
return "".concat(msgTypeCh[key]).concat(item.ruleName ? "-".concat(item.ruleName) : "", ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
|
|
134
129
|
}).join(",");
|
|
135
130
|
});
|
|
136
131
|
_defineProperty(this, "editRender", function (p) {
|
|
@@ -36,5 +36,6 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
36
36
|
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
37
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
38
|
};
|
|
39
|
+
formDataTransform: (value: string) => string | number;
|
|
39
40
|
}
|
|
40
41
|
export default PaymentAmount;
|
|
@@ -132,6 +132,10 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
});
|
|
135
|
+
_defineProperty(this, "formDataTransform", function (value) {
|
|
136
|
+
var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
|
|
137
|
+
return isNumber.test(value) ? Number(value) : value;
|
|
138
|
+
});
|
|
135
139
|
this.name = '打款金额';
|
|
136
140
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
137
141
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
@@ -13,7 +13,7 @@ declare class BasicSelect implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
dataType: ComponentInterface["dataType"];
|
|
15
15
|
options: ComponentInterface["options"];
|
|
16
|
-
optionsMap: ComponentInterface[
|
|
16
|
+
optionsMap: ComponentInterface['optionsMap'];
|
|
17
17
|
constructor(options: PickOption);
|
|
18
18
|
getKeyByComponentType: (type: string) => any;
|
|
19
19
|
editRender: (p: any) => React.JSX.Element;
|