@kmkf-fe-packages/basic-components 1.19.7 → 1.19.8-beta.2
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/index.esm.js +832 -391
- package/dist/index.js +831 -389
- package/dist/src/bs/component/GoodItem/bsE3ReissueGoodsColumns.d.ts +21 -0
- package/dist/src/bs/component/GoodItem/index.d.ts +4 -0
- package/dist/src/bs/component/model/BsE3GoodList.d.ts +4 -0
- package/dist/src/e3/Reissue/index.d.ts +3 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -22,377 +22,363 @@ var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
|
|
|
22
22
|
var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
|
|
23
23
|
var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
|
|
24
24
|
|
|
25
|
-
function _iterableToArrayLimit(
|
|
26
|
-
var
|
|
27
|
-
if (null !=
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
function _iterableToArrayLimit(arr, i) {
|
|
26
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
27
|
+
if (null != _i) {
|
|
28
|
+
var _s,
|
|
29
|
+
_e,
|
|
30
|
+
_x,
|
|
31
|
+
_r,
|
|
32
|
+
_arr = [],
|
|
33
|
+
_n = !0,
|
|
34
|
+
_d = !1;
|
|
35
35
|
try {
|
|
36
|
-
if (
|
|
37
|
-
if (Object(
|
|
38
|
-
|
|
39
|
-
} else for (; !(
|
|
40
|
-
} catch (
|
|
41
|
-
|
|
36
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
37
|
+
if (Object(_i) !== _i) return;
|
|
38
|
+
_n = !1;
|
|
39
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
40
|
+
} catch (err) {
|
|
41
|
+
_d = !0, _e = err;
|
|
42
42
|
} finally {
|
|
43
43
|
try {
|
|
44
|
-
if (!
|
|
44
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
45
45
|
} finally {
|
|
46
|
-
if (
|
|
46
|
+
if (_d) throw _e;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return _arr;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function ownKeys(
|
|
53
|
-
var
|
|
52
|
+
function ownKeys(object, enumerableOnly) {
|
|
53
|
+
var keys = Object.keys(object);
|
|
54
54
|
if (Object.getOwnPropertySymbols) {
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
return Object.getOwnPropertyDescriptor(
|
|
58
|
-
})),
|
|
55
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
56
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
57
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
58
|
+
})), keys.push.apply(keys, symbols);
|
|
59
59
|
}
|
|
60
|
-
return
|
|
61
|
-
}
|
|
62
|
-
function _objectSpread2(
|
|
63
|
-
for (var
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
_defineProperty(
|
|
67
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
68
|
-
Object.defineProperty(
|
|
60
|
+
return keys;
|
|
61
|
+
}
|
|
62
|
+
function _objectSpread2(target) {
|
|
63
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
64
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
65
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
66
|
+
_defineProperty(target, key, source[key]);
|
|
67
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
68
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
return
|
|
71
|
+
return target;
|
|
72
72
|
}
|
|
73
73
|
function _regeneratorRuntime() {
|
|
74
74
|
_regeneratorRuntime = function () {
|
|
75
|
-
return
|
|
76
|
-
};
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
t[e] = r.value;
|
|
75
|
+
return exports;
|
|
76
|
+
};
|
|
77
|
+
var exports = {},
|
|
78
|
+
Op = Object.prototype,
|
|
79
|
+
hasOwn = Op.hasOwnProperty,
|
|
80
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
81
|
+
obj[key] = desc.value;
|
|
83
82
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
function define(
|
|
89
|
-
return Object.defineProperty(
|
|
90
|
-
value:
|
|
83
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
84
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
85
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
86
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
87
|
+
function define(obj, key, value) {
|
|
88
|
+
return Object.defineProperty(obj, key, {
|
|
89
|
+
value: value,
|
|
91
90
|
enumerable: !0,
|
|
92
91
|
configurable: !0,
|
|
93
92
|
writable: !0
|
|
94
|
-
}),
|
|
93
|
+
}), obj[key];
|
|
95
94
|
}
|
|
96
95
|
try {
|
|
97
96
|
define({}, "");
|
|
98
|
-
} catch (
|
|
99
|
-
define = function (
|
|
100
|
-
return
|
|
97
|
+
} catch (err) {
|
|
98
|
+
define = function (obj, key, value) {
|
|
99
|
+
return obj[key] = value;
|
|
101
100
|
};
|
|
102
101
|
}
|
|
103
|
-
function wrap(
|
|
104
|
-
var
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return
|
|
108
|
-
value: makeInvokeMethod(
|
|
109
|
-
}),
|
|
102
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
103
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
104
|
+
generator = Object.create(protoGenerator.prototype),
|
|
105
|
+
context = new Context(tryLocsList || []);
|
|
106
|
+
return defineProperty(generator, "_invoke", {
|
|
107
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
108
|
+
}), generator;
|
|
110
109
|
}
|
|
111
|
-
function tryCatch(
|
|
110
|
+
function tryCatch(fn, obj, arg) {
|
|
112
111
|
try {
|
|
113
112
|
return {
|
|
114
113
|
type: "normal",
|
|
115
|
-
arg:
|
|
114
|
+
arg: fn.call(obj, arg)
|
|
116
115
|
};
|
|
117
|
-
} catch (
|
|
116
|
+
} catch (err) {
|
|
118
117
|
return {
|
|
119
118
|
type: "throw",
|
|
120
|
-
arg:
|
|
119
|
+
arg: err
|
|
121
120
|
};
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
|
-
|
|
125
|
-
var
|
|
126
|
-
l = "suspendedYield",
|
|
127
|
-
f = "executing",
|
|
128
|
-
s = "completed",
|
|
129
|
-
y = {};
|
|
123
|
+
exports.wrap = wrap;
|
|
124
|
+
var ContinueSentinel = {};
|
|
130
125
|
function Generator() {}
|
|
131
126
|
function GeneratorFunction() {}
|
|
132
127
|
function GeneratorFunctionPrototype() {}
|
|
133
|
-
var
|
|
134
|
-
define(
|
|
128
|
+
var IteratorPrototype = {};
|
|
129
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
135
130
|
return this;
|
|
136
131
|
});
|
|
137
|
-
var
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
var
|
|
141
|
-
function defineIteratorMethods(
|
|
142
|
-
["next", "throw", "return"].forEach(function (
|
|
143
|
-
define(
|
|
144
|
-
return this._invoke(
|
|
132
|
+
var getProto = Object.getPrototypeOf,
|
|
133
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
134
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
135
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
136
|
+
function defineIteratorMethods(prototype) {
|
|
137
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
138
|
+
define(prototype, method, function (arg) {
|
|
139
|
+
return this._invoke(method, arg);
|
|
145
140
|
});
|
|
146
141
|
});
|
|
147
142
|
}
|
|
148
|
-
function AsyncIterator(
|
|
149
|
-
function invoke(
|
|
150
|
-
var
|
|
151
|
-
if ("throw" !==
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
return
|
|
155
|
-
invoke("next",
|
|
156
|
-
}, function (
|
|
157
|
-
invoke("throw",
|
|
158
|
-
}) :
|
|
159
|
-
|
|
160
|
-
}, function (
|
|
161
|
-
return invoke("throw",
|
|
143
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
144
|
+
function invoke(method, arg, resolve, reject) {
|
|
145
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
146
|
+
if ("throw" !== record.type) {
|
|
147
|
+
var result = record.arg,
|
|
148
|
+
value = result.value;
|
|
149
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
150
|
+
invoke("next", value, resolve, reject);
|
|
151
|
+
}, function (err) {
|
|
152
|
+
invoke("throw", err, resolve, reject);
|
|
153
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
154
|
+
result.value = unwrapped, resolve(result);
|
|
155
|
+
}, function (error) {
|
|
156
|
+
return invoke("throw", error, resolve, reject);
|
|
162
157
|
});
|
|
163
158
|
}
|
|
164
|
-
|
|
159
|
+
reject(record.arg);
|
|
165
160
|
}
|
|
166
|
-
var
|
|
167
|
-
|
|
168
|
-
value: function (
|
|
161
|
+
var previousPromise;
|
|
162
|
+
defineProperty(this, "_invoke", {
|
|
163
|
+
value: function (method, arg) {
|
|
169
164
|
function callInvokeWithMethodAndArg() {
|
|
170
|
-
return new
|
|
171
|
-
invoke(
|
|
165
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
166
|
+
invoke(method, arg, resolve, reject);
|
|
172
167
|
});
|
|
173
168
|
}
|
|
174
|
-
return
|
|
169
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
175
170
|
}
|
|
176
171
|
});
|
|
177
172
|
}
|
|
178
|
-
function makeInvokeMethod(
|
|
179
|
-
var
|
|
180
|
-
return function (
|
|
181
|
-
if (
|
|
182
|
-
if (
|
|
183
|
-
if ("throw" ===
|
|
184
|
-
return
|
|
185
|
-
value: t,
|
|
186
|
-
done: !0
|
|
187
|
-
};
|
|
173
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
174
|
+
var state = "suspendedStart";
|
|
175
|
+
return function (method, arg) {
|
|
176
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
177
|
+
if ("completed" === state) {
|
|
178
|
+
if ("throw" === method) throw arg;
|
|
179
|
+
return doneResult();
|
|
188
180
|
}
|
|
189
|
-
for (
|
|
190
|
-
var
|
|
191
|
-
if (
|
|
192
|
-
var
|
|
193
|
-
if (
|
|
194
|
-
if (
|
|
195
|
-
return
|
|
181
|
+
for (context.method = method, context.arg = arg;;) {
|
|
182
|
+
var delegate = context.delegate;
|
|
183
|
+
if (delegate) {
|
|
184
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
185
|
+
if (delegateResult) {
|
|
186
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
187
|
+
return delegateResult;
|
|
196
188
|
}
|
|
197
189
|
}
|
|
198
|
-
if ("next" ===
|
|
199
|
-
if (
|
|
200
|
-
|
|
201
|
-
} else "return" ===
|
|
202
|
-
|
|
203
|
-
var
|
|
204
|
-
if ("normal" ===
|
|
205
|
-
if (
|
|
190
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
191
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
192
|
+
context.dispatchException(context.arg);
|
|
193
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
194
|
+
state = "executing";
|
|
195
|
+
var record = tryCatch(innerFn, self, context);
|
|
196
|
+
if ("normal" === record.type) {
|
|
197
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
206
198
|
return {
|
|
207
|
-
value:
|
|
208
|
-
done:
|
|
199
|
+
value: record.arg,
|
|
200
|
+
done: context.done
|
|
209
201
|
};
|
|
210
202
|
}
|
|
211
|
-
"throw" ===
|
|
203
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
212
204
|
}
|
|
213
205
|
};
|
|
214
206
|
}
|
|
215
|
-
function maybeInvokeDelegate(
|
|
216
|
-
var
|
|
217
|
-
|
|
218
|
-
if (
|
|
219
|
-
var
|
|
220
|
-
if ("throw" ===
|
|
221
|
-
var
|
|
222
|
-
return
|
|
207
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
208
|
+
var methodName = context.method,
|
|
209
|
+
method = delegate.iterator[methodName];
|
|
210
|
+
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;
|
|
211
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
212
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
213
|
+
var info = record.arg;
|
|
214
|
+
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);
|
|
223
215
|
}
|
|
224
|
-
function pushTryEntry(
|
|
225
|
-
var
|
|
226
|
-
tryLoc:
|
|
216
|
+
function pushTryEntry(locs) {
|
|
217
|
+
var entry = {
|
|
218
|
+
tryLoc: locs[0]
|
|
227
219
|
};
|
|
228
|
-
1 in
|
|
220
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
229
221
|
}
|
|
230
|
-
function resetTryEntry(
|
|
231
|
-
var
|
|
232
|
-
|
|
222
|
+
function resetTryEntry(entry) {
|
|
223
|
+
var record = entry.completion || {};
|
|
224
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
233
225
|
}
|
|
234
|
-
function Context(
|
|
226
|
+
function Context(tryLocsList) {
|
|
235
227
|
this.tryEntries = [{
|
|
236
228
|
tryLoc: "root"
|
|
237
|
-
}],
|
|
229
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
238
230
|
}
|
|
239
|
-
function values(
|
|
240
|
-
if (
|
|
241
|
-
var
|
|
242
|
-
if (
|
|
243
|
-
if ("function" == typeof
|
|
244
|
-
if (!isNaN(
|
|
245
|
-
var
|
|
246
|
-
|
|
247
|
-
for (; ++
|
|
248
|
-
return next.value =
|
|
231
|
+
function values(iterable) {
|
|
232
|
+
if (iterable) {
|
|
233
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
234
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
235
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
236
|
+
if (!isNaN(iterable.length)) {
|
|
237
|
+
var i = -1,
|
|
238
|
+
next = function next() {
|
|
239
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
240
|
+
return next.value = undefined, next.done = !0, next;
|
|
249
241
|
};
|
|
250
|
-
return
|
|
242
|
+
return next.next = next;
|
|
251
243
|
}
|
|
252
244
|
}
|
|
253
|
-
|
|
245
|
+
return {
|
|
246
|
+
next: doneResult
|
|
247
|
+
};
|
|
254
248
|
}
|
|
255
|
-
|
|
249
|
+
function doneResult() {
|
|
250
|
+
return {
|
|
251
|
+
value: undefined,
|
|
252
|
+
done: !0
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
256
256
|
value: GeneratorFunctionPrototype,
|
|
257
257
|
configurable: !0
|
|
258
|
-
}),
|
|
258
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
259
259
|
value: GeneratorFunction,
|
|
260
260
|
configurable: !0
|
|
261
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
262
|
-
var
|
|
263
|
-
return !!
|
|
264
|
-
},
|
|
265
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
266
|
-
},
|
|
261
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
262
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
263
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
264
|
+
}, exports.mark = function (genFun) {
|
|
265
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
266
|
+
}, exports.awrap = function (arg) {
|
|
267
267
|
return {
|
|
268
|
-
__await:
|
|
268
|
+
__await: arg
|
|
269
269
|
};
|
|
270
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
270
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
271
271
|
return this;
|
|
272
|
-
}),
|
|
273
|
-
void 0 ===
|
|
274
|
-
var
|
|
275
|
-
return
|
|
276
|
-
return
|
|
272
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
273
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
274
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
275
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
276
|
+
return result.done ? result.value : iter.next();
|
|
277
277
|
});
|
|
278
|
-
}, defineIteratorMethods(
|
|
278
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
279
279
|
return this;
|
|
280
|
-
}), define(
|
|
280
|
+
}), define(Gp, "toString", function () {
|
|
281
281
|
return "[object Generator]";
|
|
282
|
-
}),
|
|
283
|
-
var
|
|
284
|
-
|
|
285
|
-
for (var
|
|
286
|
-
return
|
|
287
|
-
for (;
|
|
288
|
-
var
|
|
289
|
-
if (
|
|
282
|
+
}), exports.keys = function (val) {
|
|
283
|
+
var object = Object(val),
|
|
284
|
+
keys = [];
|
|
285
|
+
for (var key in object) keys.push(key);
|
|
286
|
+
return keys.reverse(), function next() {
|
|
287
|
+
for (; keys.length;) {
|
|
288
|
+
var key = keys.pop();
|
|
289
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
290
290
|
}
|
|
291
291
|
return next.done = !0, next;
|
|
292
292
|
};
|
|
293
|
-
},
|
|
293
|
+
}, exports.values = values, Context.prototype = {
|
|
294
294
|
constructor: Context,
|
|
295
|
-
reset: function (
|
|
296
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
295
|
+
reset: function (skipTempReset) {
|
|
296
|
+
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);
|
|
297
297
|
},
|
|
298
298
|
stop: function () {
|
|
299
299
|
this.done = !0;
|
|
300
|
-
var
|
|
301
|
-
if ("throw" ===
|
|
300
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
301
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
302
302
|
return this.rval;
|
|
303
303
|
},
|
|
304
|
-
dispatchException: function (
|
|
305
|
-
if (this.done) throw
|
|
306
|
-
var
|
|
307
|
-
function handle(
|
|
308
|
-
return
|
|
304
|
+
dispatchException: function (exception) {
|
|
305
|
+
if (this.done) throw exception;
|
|
306
|
+
var context = this;
|
|
307
|
+
function handle(loc, caught) {
|
|
308
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
309
309
|
}
|
|
310
|
-
for (var
|
|
311
|
-
var
|
|
312
|
-
|
|
313
|
-
if ("root" ===
|
|
314
|
-
if (
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
if (
|
|
318
|
-
if (this.prev <
|
|
319
|
-
if (this.prev <
|
|
320
|
-
} else if (
|
|
321
|
-
if (this.prev <
|
|
310
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
311
|
+
var entry = this.tryEntries[i],
|
|
312
|
+
record = entry.completion;
|
|
313
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
314
|
+
if (entry.tryLoc <= this.prev) {
|
|
315
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
316
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
317
|
+
if (hasCatch && hasFinally) {
|
|
318
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
319
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
320
|
+
} else if (hasCatch) {
|
|
321
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
322
322
|
} else {
|
|
323
|
-
if (!
|
|
324
|
-
if (this.prev <
|
|
323
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
324
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
|
-
abrupt: function (
|
|
330
|
-
for (var
|
|
331
|
-
var
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
329
|
+
abrupt: function (type, arg) {
|
|
330
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
331
|
+
var entry = this.tryEntries[i];
|
|
332
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
333
|
+
var finallyEntry = entry;
|
|
334
334
|
break;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
|
|
338
|
-
var
|
|
339
|
-
return
|
|
337
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
338
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
339
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
340
340
|
},
|
|
341
|
-
complete: function (
|
|
342
|
-
if ("throw" ===
|
|
343
|
-
return "break" ===
|
|
341
|
+
complete: function (record, afterLoc) {
|
|
342
|
+
if ("throw" === record.type) throw record.arg;
|
|
343
|
+
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;
|
|
344
344
|
},
|
|
345
|
-
finish: function (
|
|
346
|
-
for (var
|
|
347
|
-
var
|
|
348
|
-
if (
|
|
345
|
+
finish: function (finallyLoc) {
|
|
346
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
347
|
+
var entry = this.tryEntries[i];
|
|
348
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
349
349
|
}
|
|
350
350
|
},
|
|
351
|
-
catch: function (
|
|
352
|
-
for (var
|
|
353
|
-
var
|
|
354
|
-
if (
|
|
355
|
-
var
|
|
356
|
-
if ("throw" ===
|
|
357
|
-
var
|
|
358
|
-
resetTryEntry(
|
|
351
|
+
catch: function (tryLoc) {
|
|
352
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
353
|
+
var entry = this.tryEntries[i];
|
|
354
|
+
if (entry.tryLoc === tryLoc) {
|
|
355
|
+
var record = entry.completion;
|
|
356
|
+
if ("throw" === record.type) {
|
|
357
|
+
var thrown = record.arg;
|
|
358
|
+
resetTryEntry(entry);
|
|
359
359
|
}
|
|
360
|
-
return
|
|
360
|
+
return thrown;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
throw new Error("illegal catch attempt");
|
|
364
364
|
},
|
|
365
|
-
delegateYield: function (
|
|
365
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
366
366
|
return this.delegate = {
|
|
367
|
-
iterator: values(
|
|
368
|
-
resultName:
|
|
369
|
-
nextLoc:
|
|
370
|
-
}, "next" === this.method && (this.arg =
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
}
|
|
374
|
-
function _toPrimitive(t, r) {
|
|
375
|
-
if ("object" != typeof t || !t) return t;
|
|
376
|
-
var e = t[Symbol.toPrimitive];
|
|
377
|
-
if (void 0 !== e) {
|
|
378
|
-
var i = e.call(t, r || "default");
|
|
379
|
-
if ("object" != typeof i) return i;
|
|
380
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
381
|
-
}
|
|
382
|
-
return ("string" === r ? String : Number)(t);
|
|
383
|
-
}
|
|
384
|
-
function _toPropertyKey(t) {
|
|
385
|
-
var i = _toPrimitive(t, "string");
|
|
386
|
-
return "symbol" == typeof i ? i : String(i);
|
|
367
|
+
iterator: values(iterable),
|
|
368
|
+
resultName: resultName,
|
|
369
|
+
nextLoc: nextLoc
|
|
370
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
371
|
+
}
|
|
372
|
+
}, exports;
|
|
387
373
|
}
|
|
388
|
-
function _typeof(
|
|
374
|
+
function _typeof(obj) {
|
|
389
375
|
"@babel/helpers - typeof";
|
|
390
376
|
|
|
391
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
392
|
-
return typeof
|
|
393
|
-
} : function (
|
|
394
|
-
return
|
|
395
|
-
}, _typeof(
|
|
377
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
378
|
+
return typeof obj;
|
|
379
|
+
} : function (obj) {
|
|
380
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
381
|
+
}, _typeof(obj);
|
|
396
382
|
}
|
|
397
383
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
398
384
|
try {
|
|
@@ -499,6 +485,20 @@ function _nonIterableSpread() {
|
|
|
499
485
|
function _nonIterableRest() {
|
|
500
486
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
501
487
|
}
|
|
488
|
+
function _toPrimitive(input, hint) {
|
|
489
|
+
if (typeof input !== "object" || input === null) return input;
|
|
490
|
+
var prim = input[Symbol.toPrimitive];
|
|
491
|
+
if (prim !== undefined) {
|
|
492
|
+
var res = prim.call(input, hint || "default");
|
|
493
|
+
if (typeof res !== "object") return res;
|
|
494
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
495
|
+
}
|
|
496
|
+
return (hint === "string" ? String : Number)(input);
|
|
497
|
+
}
|
|
498
|
+
function _toPropertyKey(arg) {
|
|
499
|
+
var key = _toPrimitive(arg, "string");
|
|
500
|
+
return typeof key === "symbol" ? key : String(key);
|
|
501
|
+
}
|
|
502
502
|
|
|
503
503
|
function ApaasCascader(props) {
|
|
504
504
|
return /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2({
|
|
@@ -12105,7 +12105,7 @@ var getTableData$1 = function getTableData(_ref, formData) {
|
|
|
12105
12105
|
data: _objectSpread2({
|
|
12106
12106
|
pageSize: pageSize,
|
|
12107
12107
|
pageNo: current,
|
|
12108
|
-
platform: '
|
|
12108
|
+
platform: 'BS_E3_ERP'
|
|
12109
12109
|
}, data)
|
|
12110
12110
|
}).then(function (res) {
|
|
12111
12111
|
var _res$data = res.data,
|
|
@@ -12136,125 +12136,85 @@ var columns$2 = [{
|
|
|
12136
12136
|
},
|
|
12137
12137
|
width: 100
|
|
12138
12138
|
}, {
|
|
12139
|
-
dataIndex: '
|
|
12139
|
+
dataIndex: 'specNo',
|
|
12140
12140
|
title: "SKU",
|
|
12141
12141
|
ellipsis: true,
|
|
12142
|
-
width:
|
|
12142
|
+
width: 150
|
|
12143
12143
|
}, {
|
|
12144
|
-
dataIndex: '
|
|
12144
|
+
dataIndex: 'specId',
|
|
12145
12145
|
title: "SKU ID",
|
|
12146
12146
|
ellipsis: true,
|
|
12147
|
-
width:
|
|
12147
|
+
width: 150
|
|
12148
12148
|
}, {
|
|
12149
|
-
dataIndex: '
|
|
12149
|
+
dataIndex: 'goodName',
|
|
12150
12150
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
12151
12151
|
ellipsis: true,
|
|
12152
|
-
width:
|
|
12152
|
+
width: 150
|
|
12153
12153
|
}, {
|
|
12154
|
-
dataIndex: '
|
|
12154
|
+
dataIndex: 'goodShortName',
|
|
12155
12155
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12156
12156
|
ellipsis: true,
|
|
12157
|
-
width:
|
|
12157
|
+
width: 150
|
|
12158
12158
|
}, {
|
|
12159
|
-
dataIndex: '
|
|
12159
|
+
dataIndex: 'goodPicUrl',
|
|
12160
12160
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
12161
12161
|
ellipsis: true,
|
|
12162
12162
|
width: 100,
|
|
12163
12163
|
render: function render(picUrl) {
|
|
12164
12164
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12165
12165
|
style: {
|
|
12166
|
-
width: '
|
|
12167
|
-
height: '
|
|
12166
|
+
width: '40px',
|
|
12167
|
+
height: '40px',
|
|
12168
12168
|
objectFit: 'contain'
|
|
12169
12169
|
},
|
|
12170
12170
|
src: picUrl
|
|
12171
12171
|
});
|
|
12172
12172
|
}
|
|
12173
12173
|
}, {
|
|
12174
|
-
dataIndex: '
|
|
12174
|
+
dataIndex: 'goodNo',
|
|
12175
12175
|
title: "\u8D27\u53F7",
|
|
12176
12176
|
ellipsis: true,
|
|
12177
|
-
width:
|
|
12177
|
+
width: 150
|
|
12178
12178
|
}, {
|
|
12179
|
-
dataIndex: '
|
|
12179
|
+
dataIndex: 'goodId',
|
|
12180
12180
|
title: "\u8D27\u53F7ID",
|
|
12181
12181
|
ellipsis: true,
|
|
12182
|
-
width:
|
|
12182
|
+
width: 150
|
|
12183
12183
|
}, {
|
|
12184
12184
|
dataIndex: 'colorName',
|
|
12185
12185
|
title: "\u989C\u8272\u540D\u79F0",
|
|
12186
12186
|
ellipsis: true,
|
|
12187
|
-
width:
|
|
12187
|
+
width: 100
|
|
12188
12188
|
}, {
|
|
12189
12189
|
dataIndex: 'colorCode',
|
|
12190
12190
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
12191
12191
|
ellipsis: true,
|
|
12192
|
-
width:
|
|
12192
|
+
width: 150
|
|
12193
12193
|
}, {
|
|
12194
12194
|
dataIndex: 'sizeName',
|
|
12195
12195
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12196
12196
|
ellipsis: true,
|
|
12197
|
-
width:
|
|
12197
|
+
width: 100
|
|
12198
12198
|
}, {
|
|
12199
12199
|
dataIndex: 'sizeCode',
|
|
12200
12200
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12201
12201
|
ellipsis: true,
|
|
12202
|
-
width:
|
|
12202
|
+
width: 150
|
|
12203
12203
|
}, {
|
|
12204
12204
|
dataIndex: 'brandName',
|
|
12205
12205
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
12206
12206
|
ellipsis: true,
|
|
12207
|
-
width:
|
|
12208
|
-
}, {
|
|
12209
|
-
dataIndex: 'goodsNumber',
|
|
12210
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
12211
|
-
ellipsis: true,
|
|
12212
|
-
width: 70
|
|
12213
|
-
}, {
|
|
12214
|
-
dataIndex: 'goodsPrice',
|
|
12215
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12216
|
-
ellipsis: true,
|
|
12217
|
-
width: 70
|
|
12207
|
+
width: 150
|
|
12218
12208
|
}, {
|
|
12219
|
-
dataIndex: '
|
|
12220
|
-
title: "\
|
|
12221
|
-
ellipsis: true,
|
|
12222
|
-
width: 70
|
|
12223
|
-
}, {
|
|
12224
|
-
dataIndex: 'sharePrice',
|
|
12225
|
-
title: "\u5206\u644A\u4EF7",
|
|
12226
|
-
ellipsis: true,
|
|
12227
|
-
width: 70
|
|
12228
|
-
}, {
|
|
12229
|
-
dataIndex: 'sharePayment',
|
|
12230
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
12231
|
-
ellipsis: true,
|
|
12232
|
-
width: 70
|
|
12233
|
-
}, {
|
|
12234
|
-
dataIndex: 'payment',
|
|
12235
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
12236
|
-
ellipsis: true,
|
|
12237
|
-
width: 70
|
|
12238
|
-
}, {
|
|
12239
|
-
dataIndex: 'tcSku',
|
|
12240
|
-
title: "\u5957\u9910SKU",
|
|
12241
|
-
ellipsis: true,
|
|
12242
|
-
width: 70
|
|
12243
|
-
}, {
|
|
12244
|
-
dataIndex: 'tcGoodsNumber',
|
|
12245
|
-
title: "\u5957\u9910\u5957\u6570",
|
|
12246
|
-
ellipsis: true,
|
|
12247
|
-
width: 70
|
|
12248
|
-
}, {
|
|
12249
|
-
dataIndex: 'taoCanSingleSl',
|
|
12250
|
-
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
12209
|
+
dataIndex: 'marketPrice',
|
|
12210
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12251
12211
|
ellipsis: true,
|
|
12252
|
-
width:
|
|
12212
|
+
width: 100
|
|
12253
12213
|
}, {
|
|
12254
|
-
dataIndex: '
|
|
12255
|
-
title: "\
|
|
12214
|
+
dataIndex: 'retailPrice',
|
|
12215
|
+
title: "\u552E\u4EF7",
|
|
12256
12216
|
ellipsis: true,
|
|
12257
|
-
width:
|
|
12217
|
+
width: 100
|
|
12258
12218
|
}];
|
|
12259
12219
|
var GoodList$1 = function GoodList(props, ref) {
|
|
12260
12220
|
var _useState = React.useState([]),
|
|
@@ -12288,7 +12248,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12288
12248
|
layout: "inline",
|
|
12289
12249
|
form: form
|
|
12290
12250
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12291
|
-
name: "
|
|
12251
|
+
name: "goodNo",
|
|
12292
12252
|
style: {
|
|
12293
12253
|
marginBottom: '12px'
|
|
12294
12254
|
}
|
|
@@ -12299,7 +12259,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12299
12259
|
width: 150
|
|
12300
12260
|
}
|
|
12301
12261
|
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12302
|
-
name: "
|
|
12262
|
+
name: "goodName",
|
|
12303
12263
|
style: {
|
|
12304
12264
|
marginBottom: '12px'
|
|
12305
12265
|
}
|
|
@@ -12310,7 +12270,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12310
12270
|
width: 150
|
|
12311
12271
|
}
|
|
12312
12272
|
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12313
|
-
name: "
|
|
12273
|
+
name: "skuCode",
|
|
12314
12274
|
style: {
|
|
12315
12275
|
marginBottom: '12px'
|
|
12316
12276
|
}
|
|
@@ -12427,7 +12387,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12427
12387
|
}
|
|
12428
12388
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
12429
12389
|
rowSelection: rowSelection,
|
|
12430
|
-
rowKey: "
|
|
12390
|
+
rowKey: "specNo",
|
|
12431
12391
|
columns: columns$2,
|
|
12432
12392
|
scroll: {
|
|
12433
12393
|
x: '100%',
|
|
@@ -12487,15 +12447,191 @@ var GoodsModal$4 = function GoodsModal(props, ref) {
|
|
|
12487
12447
|
};
|
|
12488
12448
|
var BsE3GoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$4);
|
|
12489
12449
|
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12450
|
+
var columns$3 = [{
|
|
12451
|
+
dataIndex: 'sku',
|
|
12452
|
+
title: "SKU",
|
|
12453
|
+
width: 150
|
|
12454
|
+
}, {
|
|
12455
|
+
dataIndex: 'skuId',
|
|
12456
|
+
title: "SKU ID",
|
|
12457
|
+
width: 150
|
|
12458
|
+
}, {
|
|
12459
|
+
dataIndex: 'goodsName',
|
|
12460
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12461
|
+
width: 150
|
|
12462
|
+
}, {
|
|
12463
|
+
dataIndex: 'goodsShortName',
|
|
12464
|
+
title: "\u5546\u54C1\u7B80\u4ECB",
|
|
12465
|
+
width: 150
|
|
12466
|
+
}, {
|
|
12467
|
+
dataIndex: 'picPath',
|
|
12468
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
12469
|
+
width: 150
|
|
12470
|
+
}, {
|
|
12471
|
+
dataIndex: 'goodsSn',
|
|
12472
|
+
title: "\u8D27\u53F7",
|
|
12473
|
+
width: 150
|
|
12474
|
+
}, {
|
|
12475
|
+
dataIndex: 'goodsId',
|
|
12476
|
+
title: "\u8D27\u53F7ID",
|
|
12477
|
+
width: 150
|
|
12478
|
+
}, {
|
|
12479
|
+
dataIndex: 'colorName',
|
|
12480
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12481
|
+
width: 150
|
|
12482
|
+
}, {
|
|
12483
|
+
dataIndex: 'colorCode',
|
|
12484
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12485
|
+
width: 150
|
|
12486
|
+
}, {
|
|
12487
|
+
dataIndex: 'sizeName',
|
|
12488
|
+
title: "\u5C3A\u5BF8\u540D\u79F0",
|
|
12489
|
+
width: 150
|
|
12490
|
+
}, {
|
|
12491
|
+
dataIndex: 'sizeCode',
|
|
12492
|
+
title: "\u5C3A\u5BF8\u4EE3\u7801",
|
|
12493
|
+
width: 150
|
|
12494
|
+
}, {
|
|
12495
|
+
dataIndex: 'brandName',
|
|
12496
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12497
|
+
width: 150
|
|
12498
|
+
}, {
|
|
12499
|
+
dataIndex: 'shopPrice',
|
|
12500
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12501
|
+
width: 150
|
|
12502
|
+
}, {
|
|
12503
|
+
dataIndex: 'goodsNumber',
|
|
12504
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
12505
|
+
width: 150
|
|
12506
|
+
}, {
|
|
12507
|
+
dataIndex: 'goodsPrice',
|
|
12508
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12509
|
+
width: 150
|
|
12510
|
+
}, {
|
|
12511
|
+
dataIndex: 'isGift',
|
|
12512
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
12513
|
+
width: 150
|
|
12514
|
+
}];
|
|
12515
|
+
var renderFieldMap = {
|
|
12516
|
+
goodsNumber: function goodsNumber(_ref) {
|
|
12517
|
+
var disabled = _ref.disabled,
|
|
12518
|
+
updateHandle = _ref.updateHandle;
|
|
12519
|
+
return function (val, record, index) {
|
|
12520
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
12521
|
+
style: {
|
|
12522
|
+
width: 70
|
|
12523
|
+
},
|
|
12524
|
+
value: val,
|
|
12525
|
+
min: 1,
|
|
12526
|
+
precision: 0,
|
|
12527
|
+
onChange: function onChange(num) {
|
|
12528
|
+
return updateHandle(num, index, 'goodsNumber');
|
|
12529
|
+
}
|
|
12530
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12531
|
+
};
|
|
12532
|
+
},
|
|
12533
|
+
goodsPrice: function goodsPrice(_ref2) {
|
|
12534
|
+
var disabled = _ref2.disabled,
|
|
12535
|
+
updateHandle = _ref2.updateHandle;
|
|
12536
|
+
return function (val, record, index) {
|
|
12537
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
12538
|
+
style: {
|
|
12539
|
+
width: 70
|
|
12540
|
+
},
|
|
12541
|
+
value: val,
|
|
12542
|
+
min: 0,
|
|
12543
|
+
onChange: function onChange(value) {
|
|
12544
|
+
return updateHandle(value, index, 'goodsPrice');
|
|
12545
|
+
}
|
|
12546
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12547
|
+
};
|
|
12548
|
+
},
|
|
12549
|
+
isGift: function isGift(_ref3) {
|
|
12550
|
+
var disabled = _ref3.disabled,
|
|
12551
|
+
updateHandle = _ref3.updateHandle;
|
|
12552
|
+
return function (val, record, index) {
|
|
12553
|
+
var options = [{
|
|
12554
|
+
label: '是',
|
|
12555
|
+
value: '赠品'
|
|
12556
|
+
}, {
|
|
12557
|
+
label: '否',
|
|
12558
|
+
value: '非赠品'
|
|
12559
|
+
}];
|
|
12560
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
12561
|
+
style: {
|
|
12562
|
+
width: 70
|
|
12563
|
+
},
|
|
12564
|
+
options: options,
|
|
12565
|
+
value: val,
|
|
12566
|
+
onChange: function onChange(value) {
|
|
12567
|
+
return updateHandle(value, index, 'isGift');
|
|
12568
|
+
}
|
|
12569
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12570
|
+
};
|
|
12571
|
+
}
|
|
12572
|
+
};
|
|
12573
|
+
var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
12574
|
+
var disabled = _ref4.disabled,
|
|
12575
|
+
updateHandle = _ref4.updateHandle,
|
|
12576
|
+
operate = _ref4.operate;
|
|
12577
|
+
return columns$3.map(function (item) {
|
|
12578
|
+
var newItem = _objectSpread2({
|
|
12579
|
+
align: 'center',
|
|
12580
|
+
ellipsis: true
|
|
12581
|
+
}, item);
|
|
12582
|
+
if (operate && (renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex])) {
|
|
12583
|
+
return _objectSpread2(_objectSpread2({}, newItem), {}, {
|
|
12584
|
+
render: renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex]({
|
|
12585
|
+
disabled: disabled,
|
|
12586
|
+
updateHandle: updateHandle
|
|
12587
|
+
})
|
|
12588
|
+
});
|
|
12589
|
+
}
|
|
12590
|
+
return newItem;
|
|
12591
|
+
});
|
|
12592
|
+
};
|
|
12593
|
+
|
|
12594
|
+
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
12595
|
+
var columns = _ref.columns,
|
|
12596
|
+
dataSource = _ref.dataSource,
|
|
12597
|
+
selectedRowKeys = _ref.selectedRowKeys,
|
|
12598
|
+
onChangeSelectedKeys = _ref.onChangeSelectedKeys;
|
|
12599
|
+
var _useState = React.useState(false),
|
|
12600
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12601
|
+
tradeGoodsVisible = _useState2[0],
|
|
12602
|
+
setTradeGoodsVisible = _useState2[1];
|
|
12603
|
+
var openModal = function openModal() {
|
|
12604
|
+
return setTradeGoodsVisible(true);
|
|
12605
|
+
};
|
|
12606
|
+
var closeModal = function closeModal() {
|
|
12607
|
+
return setTradeGoodsVisible(false);
|
|
12608
|
+
};
|
|
12609
|
+
var rowSelection = {
|
|
12610
|
+
selectedRowKeys: selectedRowKeys,
|
|
12611
|
+
onChange: onChangeSelectedKeys
|
|
12612
|
+
};
|
|
12613
|
+
console.debug('选择订单商品-dataSource', dataSource, selectedRowKeys);
|
|
12614
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12615
|
+
type: "link",
|
|
12616
|
+
onClick: openModal
|
|
12617
|
+
}, "\u9009\u62E9\u8BA2\u5355\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
12618
|
+
title: "\u8BA2\u5355\u5546\u54C1",
|
|
12619
|
+
visible: tradeGoodsVisible,
|
|
12620
|
+
footer: null,
|
|
12621
|
+
onCancel: closeModal
|
|
12622
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
12623
|
+
rowKey: "sku",
|
|
12624
|
+
rowSelection: rowSelection,
|
|
12625
|
+
columns: columns,
|
|
12626
|
+
dataSource: dataSource,
|
|
12627
|
+
pagination: false,
|
|
12628
|
+
scroll: {
|
|
12629
|
+
x: 500,
|
|
12630
|
+
y: 500
|
|
12631
|
+
}
|
|
12632
|
+
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EE5\u9009\u62E9(", selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length, "/", dataSource === null || dataSource === void 0 ? void 0 : dataSource.length, ")")));
|
|
12633
|
+
};
|
|
12497
12634
|
var GoodItem$1 = function GoodItem(props) {
|
|
12498
|
-
var _ref;
|
|
12499
12635
|
var _props$value = props.value,
|
|
12500
12636
|
value = _props$value === void 0 ? [] : _props$value,
|
|
12501
12637
|
type = props.type,
|
|
@@ -12529,8 +12665,10 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12529
12665
|
companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
|
|
12530
12666
|
onSelect = props.onSelect,
|
|
12531
12667
|
onDelete = props.onDelete,
|
|
12532
|
-
onModeChange = props.onModeChange
|
|
12668
|
+
onModeChange = props.onModeChange,
|
|
12669
|
+
tradeGoods = props.tradeGoods;
|
|
12533
12670
|
var refModal = React.useRef();
|
|
12671
|
+
console.debug('表格数据', value);
|
|
12534
12672
|
var handleDelete = function handleDelete(record, index) {
|
|
12535
12673
|
onDelete === null || onDelete === void 0 ? void 0 : onDelete(value[index]);
|
|
12536
12674
|
var newList = _toConsumableArray(value).filter(function (item, i) {
|
|
@@ -12538,13 +12676,19 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12538
12676
|
});
|
|
12539
12677
|
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(newList));
|
|
12540
12678
|
};
|
|
12541
|
-
var
|
|
12542
|
-
|
|
12543
|
-
selectedRowKeys =
|
|
12544
|
-
setSelectedRowKeys =
|
|
12679
|
+
var _useState3 = React.useState([]),
|
|
12680
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12681
|
+
selectedRowKeys = _useState4[0],
|
|
12682
|
+
setSelectedRowKeys = _useState4[1];
|
|
12545
12683
|
React.useEffect(function () {
|
|
12546
12684
|
setSelectedRowKeys([]);
|
|
12547
12685
|
}, [tableSelect, selectType]);
|
|
12686
|
+
// TODO: 商品订单中以选中商品
|
|
12687
|
+
var selectedGoods = React.useMemo(function () {
|
|
12688
|
+
return value === null || value === void 0 ? void 0 : value.map(function (v) {
|
|
12689
|
+
return v.sku;
|
|
12690
|
+
});
|
|
12691
|
+
}, [value]);
|
|
12548
12692
|
var updateHandle = function updateHandle(val, index, columnType) {
|
|
12549
12693
|
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
12550
12694
|
value[index][columnType] = val;
|
|
@@ -12578,6 +12722,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12578
12722
|
};
|
|
12579
12723
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
12580
12724
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
12725
|
+
var operate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
12581
12726
|
return function (type) {
|
|
12582
12727
|
var columns = [];
|
|
12583
12728
|
switch (type) {
|
|
@@ -13075,6 +13220,15 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13075
13220
|
}];
|
|
13076
13221
|
}
|
|
13077
13222
|
break;
|
|
13223
|
+
case 'BS_E3_REISSUE_GOODS':
|
|
13224
|
+
{
|
|
13225
|
+
columns = getBsE3ReissueGoodColumns({
|
|
13226
|
+
disabled: disabled,
|
|
13227
|
+
updateHandle: updateHandle,
|
|
13228
|
+
operate: operate
|
|
13229
|
+
});
|
|
13230
|
+
}
|
|
13231
|
+
break;
|
|
13078
13232
|
default:
|
|
13079
13233
|
columns = [{
|
|
13080
13234
|
dataIndex: 'mark',
|
|
@@ -13214,6 +13368,19 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13214
13368
|
}
|
|
13215
13369
|
return columnList;
|
|
13216
13370
|
}, [showHeader, value, disabled]);
|
|
13371
|
+
var orderColumns = React.useMemo(function () {
|
|
13372
|
+
var columns = COLUMNS_MAP('', false)(type);
|
|
13373
|
+
return [{
|
|
13374
|
+
dataIndex: '',
|
|
13375
|
+
title: '序号',
|
|
13376
|
+
align: 'center',
|
|
13377
|
+
ellipsis: true,
|
|
13378
|
+
width: 50,
|
|
13379
|
+
render: function render(val, record, index) {
|
|
13380
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, index + 1);
|
|
13381
|
+
}
|
|
13382
|
+
}].concat(_toConsumableArray(columns));
|
|
13383
|
+
}, []);
|
|
13217
13384
|
var onSubmit = function onSubmit(list) {
|
|
13218
13385
|
var newList = [];
|
|
13219
13386
|
if (['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -13232,12 +13399,36 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13232
13399
|
});
|
|
13233
13400
|
} else if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
13234
13401
|
newList = list.map(function (item) {
|
|
13235
|
-
|
|
13236
|
-
|
|
13237
|
-
|
|
13238
|
-
|
|
13239
|
-
|
|
13240
|
-
|
|
13402
|
+
var specNo = item.specNo,
|
|
13403
|
+
specId = item.specId,
|
|
13404
|
+
goodName = item.goodName,
|
|
13405
|
+
goodShortName = item.goodShortName,
|
|
13406
|
+
goodPicUrl = item.goodPicUrl,
|
|
13407
|
+
goodNo = item.goodNo,
|
|
13408
|
+
goodId = item.goodId,
|
|
13409
|
+
retailPrice = item.retailPrice;
|
|
13410
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13411
|
+
sku: specNo,
|
|
13412
|
+
skuId: specId,
|
|
13413
|
+
goodsName: goodName,
|
|
13414
|
+
goodsShortName: goodShortName,
|
|
13415
|
+
picPath: goodPicUrl,
|
|
13416
|
+
goodsSn: goodNo,
|
|
13417
|
+
goodsId: goodId,
|
|
13418
|
+
goodsPrice: retailPrice,
|
|
13419
|
+
shopPrice: retailPrice,
|
|
13420
|
+
sharePayment: '',
|
|
13421
|
+
sharePrice: '',
|
|
13422
|
+
payment: '',
|
|
13423
|
+
tcSku: '',
|
|
13424
|
+
tcGoodsNumber: '',
|
|
13425
|
+
taoCanSingleSl: '',
|
|
13426
|
+
isGift: '',
|
|
13427
|
+
uuid: kmkfUtils.uuid(),
|
|
13428
|
+
canDelete: true,
|
|
13429
|
+
goodsNumber: 1,
|
|
13430
|
+
canUpdateNumber: canUpdateNumber
|
|
13431
|
+
});
|
|
13241
13432
|
});
|
|
13242
13433
|
} else {
|
|
13243
13434
|
newList = list.map(function (item) {
|
|
@@ -13298,7 +13489,12 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13298
13489
|
}, showModeBtn && /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
13299
13490
|
checked: isStrict,
|
|
13300
13491
|
onChange: handleCheckboxChange
|
|
13301
|
-
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !
|
|
13492
|
+
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !lodash.isEmpty(tradeGoods) && /*#__PURE__*/React__default['default'].createElement(SelectTradeGoods, {
|
|
13493
|
+
columns: orderColumns,
|
|
13494
|
+
dataSource: tradeGoods.originDataSource,
|
|
13495
|
+
selectedRowKeys: selectedGoods,
|
|
13496
|
+
onChangeSelectedKeys: tradeGoods.selectedGoodsChange
|
|
13497
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13302
13498
|
type: "link",
|
|
13303
13499
|
onClick: handleChangeGoods
|
|
13304
13500
|
}, "\u9009\u62E9\u5546\u54C1"), otherOperations), /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
|
|
@@ -14871,11 +15067,12 @@ var typeMap$1 = {
|
|
|
14871
15067
|
formatDefaultField: {
|
|
14872
15068
|
money: 'orderPrice',
|
|
14873
15069
|
share: 'sharePrice'
|
|
14874
|
-
}
|
|
15070
|
+
},
|
|
15071
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
14875
15072
|
}
|
|
14876
15073
|
};
|
|
14877
15074
|
var wdtReissue = function wdtReissue(props) {
|
|
14878
|
-
var _value$wdtSystemOrder, _typeMap$type7, _typeMap$
|
|
15075
|
+
var _value$wdtSystemOrder, _typeMap$type7, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s5, _typeMap$type28, _typeMap$type29, _typeMap$type30;
|
|
14879
15076
|
var value = props.value,
|
|
14880
15077
|
onChange = props.onChange,
|
|
14881
15078
|
_props$reasonList = props.reasonList,
|
|
@@ -14897,7 +15094,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14897
15094
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$1[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$1[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|
|
14898
15095
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
14899
15096
|
getOrderFlag.current = true;
|
|
14900
|
-
|
|
15097
|
+
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$1[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
|
|
14901
15098
|
}
|
|
14902
15099
|
return;
|
|
14903
15100
|
}, [value]);
|
|
@@ -14915,13 +15112,30 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14915
15112
|
}
|
|
14916
15113
|
return;
|
|
14917
15114
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrderNo]]);
|
|
14918
|
-
|
|
15115
|
+
// const getWdtOrderList = async (orderNo: string) => {
|
|
15116
|
+
// wdtUtils.getWdtOrderListSingleton(orderNo).then(data => {
|
|
15117
|
+
// const orders = data?.trades || [];
|
|
15118
|
+
// const showOrderInfo = orders.map(({ billNo, billType, billTag }: any) => {
|
|
15119
|
+
// return { billNo, billType, billTag }
|
|
15120
|
+
// });
|
|
15121
|
+
// onChange({
|
|
15122
|
+
// ...value,
|
|
15123
|
+
// [typeMap[type]?.systemOrder]: {
|
|
15124
|
+
// ...value[typeMap[type]?.systemOrder],
|
|
15125
|
+
// showOrderInfo,
|
|
15126
|
+
// orders,
|
|
15127
|
+
// },
|
|
15128
|
+
// });
|
|
15129
|
+
// })
|
|
15130
|
+
// };
|
|
15131
|
+
var getOrderList = /*#__PURE__*/function () {
|
|
14919
15132
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
15133
|
+
var _typeMap$type8;
|
|
14920
15134
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14921
15135
|
while (1) switch (_context.prev = _context.next) {
|
|
14922
15136
|
case 0:
|
|
14923
|
-
|
|
14924
|
-
var _typeMap$
|
|
15137
|
+
(_typeMap$type8 = typeMap$1[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.getOrderList(orderNo).then(function (data) {
|
|
15138
|
+
var _typeMap$type9, _typeMap$type10;
|
|
14925
15139
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
14926
15140
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
14927
15141
|
var billNo = _ref2.billNo,
|
|
@@ -14933,7 +15147,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14933
15147
|
billTag: billTag
|
|
14934
15148
|
};
|
|
14935
15149
|
});
|
|
14936
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
15150
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type9 = typeMap$1[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type10 = typeMap$1[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.systemOrder]), {}, {
|
|
14937
15151
|
showOrderInfo: showOrderInfo,
|
|
14938
15152
|
orders: orders
|
|
14939
15153
|
}))));
|
|
@@ -14944,43 +15158,43 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14944
15158
|
}
|
|
14945
15159
|
}, _callee);
|
|
14946
15160
|
}));
|
|
14947
|
-
return function
|
|
15161
|
+
return function getOrderList(_x) {
|
|
14948
15162
|
return _ref.apply(this, arguments);
|
|
14949
15163
|
};
|
|
14950
15164
|
}();
|
|
14951
15165
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
14952
|
-
var _value$typeMap$type$t2, _typeMap$
|
|
15166
|
+
var _value$typeMap$type$t2, _typeMap$type11, _typeMap$type12;
|
|
14953
15167
|
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
14954
|
-
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
15168
|
+
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type11 = typeMap$1[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) return;
|
|
14955
15169
|
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
14956
15170
|
var newValue = _objectSpread2({}, value);
|
|
14957
|
-
newValue[(_typeMap$
|
|
15171
|
+
newValue[(_typeMap$type12 = typeMap$1[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.typeName] = val;
|
|
14958
15172
|
if (typeName === '1') {
|
|
14959
|
-
var _typeMap$
|
|
14960
|
-
newValue[(_typeMap$
|
|
15173
|
+
var _typeMap$type13;
|
|
15174
|
+
newValue[(_typeMap$type13 = typeMap$1[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = getGoodDetails({
|
|
14961
15175
|
mode: isStrict
|
|
14962
15176
|
});
|
|
14963
15177
|
} else if (typeName === '2') {
|
|
14964
|
-
var _typeMap$
|
|
15178
|
+
var _typeMap$type14;
|
|
14965
15179
|
// 切换到非原单,清空列表
|
|
14966
|
-
newValue[(_typeMap$
|
|
15180
|
+
newValue[(_typeMap$type14 = typeMap$1[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key] = [];
|
|
14967
15181
|
}
|
|
14968
15182
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
14969
15183
|
};
|
|
14970
15184
|
var handleModeChange = function handleModeChange(mode) {
|
|
14971
|
-
var _value$typeMap$type$t3, _typeMap$
|
|
14972
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
15185
|
+
var _value$typeMap$type$t3, _typeMap$type15, _typeMap$type16;
|
|
15186
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0]) === '1';
|
|
14973
15187
|
setIsStrict(mode);
|
|
14974
15188
|
if (!isOriginalOrder) return;
|
|
14975
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
15189
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.key, getGoodDetails({
|
|
14976
15190
|
mode: mode
|
|
14977
15191
|
}))));
|
|
14978
15192
|
};
|
|
14979
15193
|
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
14980
|
-
var _typeMap$
|
|
15194
|
+
var _typeMap$type17, _typeMap$type18, _order$goodDetails;
|
|
14981
15195
|
var mode = _ref3.mode;
|
|
14982
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
14983
|
-
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15196
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$1[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrder];
|
|
15197
|
+
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$1[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrderNo];
|
|
14984
15198
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
14985
15199
|
return order.tradeNo === systemOrderNo;
|
|
14986
15200
|
});
|
|
@@ -14991,31 +15205,31 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14991
15205
|
}) : goodDetails;
|
|
14992
15206
|
};
|
|
14993
15207
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
14994
|
-
var _typeMap$
|
|
15208
|
+
var _typeMap$type19;
|
|
14995
15209
|
var newValue = _objectSpread2({}, value);
|
|
14996
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
14997
|
-
var _typeMap$
|
|
14998
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
14999
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15210
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type19 = typeMap$1[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.key)] = (val || []).map(function (item) {
|
|
15211
|
+
var _typeMap$type20, _typeMap$type21;
|
|
15212
|
+
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type20 = typeMap$1[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.formatDefaultField.money)] = 0;
|
|
15213
|
+
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type21 = typeMap$1[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.formatDefaultField.share)] = 0;
|
|
15000
15214
|
return item;
|
|
15001
15215
|
});
|
|
15002
15216
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15003
15217
|
};
|
|
15004
15218
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
15005
|
-
var _typeMap$
|
|
15219
|
+
var _typeMap$type22, _value$typeMap$type$t4, _typeMap$type23;
|
|
15006
15220
|
var newValue = _objectSpread2({}, value);
|
|
15007
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15008
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$
|
|
15009
|
-
var _typeMap$
|
|
15010
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15221
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo)] = val;
|
|
15222
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
15223
|
+
var _typeMap$type24;
|
|
15224
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = [];
|
|
15011
15225
|
}
|
|
15012
15226
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15013
15227
|
};
|
|
15014
15228
|
//显示选择商品按钮 原单换不显示选择商品
|
|
15015
15229
|
var showChangeBtn = React.useMemo(function () {
|
|
15016
|
-
var _typeMap$
|
|
15017
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15018
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15230
|
+
var _typeMap$type25;
|
|
15231
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]);
|
|
15232
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo]]);
|
|
15019
15233
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
15020
15234
|
gutter: 8,
|
|
15021
15235
|
wrap: true
|
|
@@ -15033,12 +15247,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15033
15247
|
},
|
|
15034
15248
|
disabled: disabled,
|
|
15035
15249
|
allowClear: false,
|
|
15036
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15250
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo)],
|
|
15037
15251
|
onChange: function onChange(val) {
|
|
15038
15252
|
return changeSystemOrderHandle(val);
|
|
15039
15253
|
},
|
|
15040
15254
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
15041
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
15255
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
15042
15256
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
15043
15257
|
key: item.billNo,
|
|
15044
15258
|
value: item.billNo,
|
|
@@ -15059,7 +15273,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15059
15273
|
disabled: disabled,
|
|
15060
15274
|
allowClear: false,
|
|
15061
15275
|
options: reasonList,
|
|
15062
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15276
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type29 = typeMap$1[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.typeName)],
|
|
15063
15277
|
onChange: function onChange(val) {
|
|
15064
15278
|
return changeTypeHandle(val);
|
|
15065
15279
|
}
|
|
@@ -15071,7 +15285,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15071
15285
|
canUpdateNumber: showChangeBtn,
|
|
15072
15286
|
showChangeBtn: showChangeBtn,
|
|
15073
15287
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
15074
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15288
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type30 = typeMap$1[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.key)],
|
|
15075
15289
|
onChange: function onChange(val) {
|
|
15076
15290
|
return changeGoodHandle(val);
|
|
15077
15291
|
},
|
|
@@ -15765,6 +15979,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
15765
15979
|
|
|
15766
15980
|
var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
|
|
15767
15981
|
var msgTypeCh = {
|
|
15982
|
+
pdd: '拼多多',
|
|
15768
15983
|
ding: '钉钉',
|
|
15769
15984
|
wechat: '微信',
|
|
15770
15985
|
qq: 'QQ',
|
|
@@ -15813,7 +16028,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
15813
16028
|
onClick: function onClick() {
|
|
15814
16029
|
return setChangeIndex(index);
|
|
15815
16030
|
}
|
|
15816
|
-
}, msgTypeCh[key], item.ruleName);
|
|
16031
|
+
}, msgTypeCh[key] || key, item.ruleName);
|
|
15817
16032
|
}))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
15818
16033
|
showSearch: true,
|
|
15819
16034
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -15851,6 +16066,232 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
15851
16066
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
15852
16067
|
};
|
|
15853
16068
|
|
|
16069
|
+
var _excluded$k = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
16070
|
+
var typeMap$2 = {
|
|
16071
|
+
BS_E3_REISSUE_GOODS: {
|
|
16072
|
+
key: 'bsE3ReissueGoods',
|
|
16073
|
+
typeName: 'bsE3ReissueType',
|
|
16074
|
+
systemOrder: 'bsE3SystemOrder',
|
|
16075
|
+
systemOrderNo: 'bsE3SystemOrderNo',
|
|
16076
|
+
getOrderList: bsE3Utils.getBsE3OrderListSingleton
|
|
16077
|
+
}
|
|
16078
|
+
};
|
|
16079
|
+
var bsE3Reissue = function bsE3Reissue(props) {
|
|
16080
|
+
var _typeMap$type7, _typeMap$type23, _typeMap$type25, _typeMap$type26, _value$typeMap$type$s5, _typeMap$type27, _typeMap$type28, _typeMap$type29;
|
|
16081
|
+
var value = props.value,
|
|
16082
|
+
onChange = props.onChange,
|
|
16083
|
+
_props$reasonList = props.reasonList,
|
|
16084
|
+
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16085
|
+
disabled = props.disabled,
|
|
16086
|
+
type = props.type,
|
|
16087
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
16088
|
+
var getOrderFlag = React.useRef(false);
|
|
16089
|
+
var _useState = React.useState(false),
|
|
16090
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16091
|
+
isStrict = _useState2[0],
|
|
16092
|
+
setIsStrict = _useState2[1];
|
|
16093
|
+
console.debug('bsE3Reissue', value);
|
|
16094
|
+
React.useEffect(function () {
|
|
16095
|
+
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
16096
|
+
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|
|
16097
|
+
var _value$typeMap$type$s4, _typeMap$type3;
|
|
16098
|
+
getOrderFlag.current = true;
|
|
16099
|
+
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$2[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
|
|
16100
|
+
}
|
|
16101
|
+
return;
|
|
16102
|
+
}, [value]);
|
|
16103
|
+
React.useEffect(function () {
|
|
16104
|
+
var _typeMap$type4;
|
|
16105
|
+
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.systemOrderNo];
|
|
16106
|
+
if (systemOrderNo) {
|
|
16107
|
+
var _value$typeMap$type$t, _typeMap$type5;
|
|
16108
|
+
if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0])) {
|
|
16109
|
+
var _typeMap$type6;
|
|
16110
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type6 = typeMap$2[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.key, getGoodDetails({
|
|
16111
|
+
mode: isStrict
|
|
16112
|
+
}))));
|
|
16113
|
+
}
|
|
16114
|
+
}
|
|
16115
|
+
return;
|
|
16116
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrderNo]]);
|
|
16117
|
+
var getOrderList = /*#__PURE__*/function () {
|
|
16118
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
16119
|
+
var _typeMap$type8;
|
|
16120
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16121
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16122
|
+
case 0:
|
|
16123
|
+
(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.getOrderList(orderNo).then(function (data) {
|
|
16124
|
+
var _typeMap$type9, _typeMap$type10;
|
|
16125
|
+
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
16126
|
+
var showOrderInfo = orders.map(function (_ref2) {
|
|
16127
|
+
var billNo = _ref2.billNo,
|
|
16128
|
+
billType = _ref2.billType,
|
|
16129
|
+
billTag = _ref2.billTag;
|
|
16130
|
+
return {
|
|
16131
|
+
billNo: billNo,
|
|
16132
|
+
billType: billType,
|
|
16133
|
+
billTag: billTag
|
|
16134
|
+
};
|
|
16135
|
+
});
|
|
16136
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type9 = typeMap$2[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.systemOrder]), {}, {
|
|
16137
|
+
showOrderInfo: showOrderInfo,
|
|
16138
|
+
orders: orders
|
|
16139
|
+
}))));
|
|
16140
|
+
});
|
|
16141
|
+
case 1:
|
|
16142
|
+
case "end":
|
|
16143
|
+
return _context.stop();
|
|
16144
|
+
}
|
|
16145
|
+
}, _callee);
|
|
16146
|
+
}));
|
|
16147
|
+
return function getOrderList(_x) {
|
|
16148
|
+
return _ref.apply(this, arguments);
|
|
16149
|
+
};
|
|
16150
|
+
}();
|
|
16151
|
+
var changeTypeHandle = function changeTypeHandle(val) {
|
|
16152
|
+
var _typeMap$type11;
|
|
16153
|
+
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
16154
|
+
// if (typeName === value?.[typeMap[type]?.typeName]?.[0]) return
|
|
16155
|
+
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
16156
|
+
var newValue = _objectSpread2({}, value);
|
|
16157
|
+
newValue[(_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName] = val;
|
|
16158
|
+
if (typeName === '1') {
|
|
16159
|
+
var _typeMap$type12;
|
|
16160
|
+
newValue[(_typeMap$type12 = typeMap$2[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key] = getGoodDetails({
|
|
16161
|
+
mode: isStrict
|
|
16162
|
+
});
|
|
16163
|
+
} else if (typeName === '2') {
|
|
16164
|
+
var _typeMap$type13;
|
|
16165
|
+
// 切换到非原单,清空列表
|
|
16166
|
+
newValue[(_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = [];
|
|
16167
|
+
}
|
|
16168
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16169
|
+
};
|
|
16170
|
+
var handleModeChange = function handleModeChange(mode) {
|
|
16171
|
+
var _value$typeMap$type$t2, _typeMap$type14, _typeMap$type15;
|
|
16172
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type14 = typeMap$2[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0]) === '1';
|
|
16173
|
+
setIsStrict(mode);
|
|
16174
|
+
if (!isOriginalOrder) return;
|
|
16175
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key, getGoodDetails({
|
|
16176
|
+
mode: mode
|
|
16177
|
+
}))));
|
|
16178
|
+
};
|
|
16179
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
16180
|
+
var _typeMap$type16, _typeMap$type17, _order$orderDetailGet;
|
|
16181
|
+
var mode = _ref3.mode;
|
|
16182
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.systemOrder];
|
|
16183
|
+
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrderNo];
|
|
16184
|
+
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
16185
|
+
return order.orderSn === systemOrderNo;
|
|
16186
|
+
});
|
|
16187
|
+
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$orderDetailGet = order.orderDetailGets) === null || _order$orderDetailGet === void 0 ? void 0 : _order$orderDetailGet.length) ? kmkfUtils.updateBsE3GoodsHandle([order]) : [];
|
|
16188
|
+
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
16189
|
+
return mode ? goodDetails.filter(function (goodItem) {
|
|
16190
|
+
return !orderNo || goodItem.originalOrderSn === orderNo;
|
|
16191
|
+
}) : goodDetails;
|
|
16192
|
+
};
|
|
16193
|
+
var changeGoodHandle = function changeGoodHandle(val) {
|
|
16194
|
+
var _typeMap$type18;
|
|
16195
|
+
var newValue = _objectSpread2({}, value);
|
|
16196
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key)] = val || [];
|
|
16197
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16198
|
+
};
|
|
16199
|
+
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
16200
|
+
var _typeMap$type19, _value$typeMap$type$t3, _typeMap$type20;
|
|
16201
|
+
var newValue = _objectSpread2({}, value);
|
|
16202
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo)] = val;
|
|
16203
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
16204
|
+
var _typeMap$type21;
|
|
16205
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key)] = [];
|
|
16206
|
+
}
|
|
16207
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16208
|
+
};
|
|
16209
|
+
//显示选择商品按钮 原单换不显示选择商品
|
|
16210
|
+
var showChangeBtn = React.useMemo(function () {
|
|
16211
|
+
var _typeMap$type22;
|
|
16212
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo]);
|
|
16213
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderNo]]);
|
|
16214
|
+
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
16215
|
+
var _typeMap$type24, _getGoodDetails;
|
|
16216
|
+
var newValue = _objectSpread2({}, value);
|
|
16217
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = (_getGoodDetails = getGoodDetails({
|
|
16218
|
+
mode: isStrict
|
|
16219
|
+
})) === null || _getGoodDetails === void 0 ? void 0 : _getGoodDetails.filter(function (item) {
|
|
16220
|
+
return skuList.includes(item.sku);
|
|
16221
|
+
});
|
|
16222
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16223
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)], isStrict]);
|
|
16224
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
16225
|
+
gutter: 8,
|
|
16226
|
+
wrap: true
|
|
16227
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
16228
|
+
className: "gutter-row",
|
|
16229
|
+
xs: {
|
|
16230
|
+
span: 11
|
|
16231
|
+
},
|
|
16232
|
+
sm: {
|
|
16233
|
+
span: 6
|
|
16234
|
+
}
|
|
16235
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
16236
|
+
style: {
|
|
16237
|
+
marginBottom: '8px'
|
|
16238
|
+
},
|
|
16239
|
+
disabled: disabled,
|
|
16240
|
+
allowClear: false,
|
|
16241
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)],
|
|
16242
|
+
onChange: function onChange(val) {
|
|
16243
|
+
return changeSystemOrderHandle(val);
|
|
16244
|
+
},
|
|
16245
|
+
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
16246
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
16247
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
16248
|
+
key: item.billNo,
|
|
16249
|
+
value: item.billNo,
|
|
16250
|
+
label: item.billNo
|
|
16251
|
+
}, item.billNo);
|
|
16252
|
+
}))), /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
16253
|
+
className: "gutter-row",
|
|
16254
|
+
xs: {
|
|
16255
|
+
span: 11
|
|
16256
|
+
},
|
|
16257
|
+
sm: {
|
|
16258
|
+
span: 6
|
|
16259
|
+
}
|
|
16260
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
16261
|
+
style: {
|
|
16262
|
+
marginBottom: '8px'
|
|
16263
|
+
},
|
|
16264
|
+
disabled: disabled,
|
|
16265
|
+
allowClear: false,
|
|
16266
|
+
options: reasonList,
|
|
16267
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName)],
|
|
16268
|
+
onChange: function onChange(val) {
|
|
16269
|
+
return changeTypeHandle(val);
|
|
16270
|
+
}
|
|
16271
|
+
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
16272
|
+
key: 'reissueGoods'
|
|
16273
|
+
}, other), {}, {
|
|
16274
|
+
type: type,
|
|
16275
|
+
disabled: disabled,
|
|
16276
|
+
canUpdateNumber: showChangeBtn,
|
|
16277
|
+
showChangeBtn: showChangeBtn,
|
|
16278
|
+
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
16279
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.key)],
|
|
16280
|
+
onChange: function onChange(val) {
|
|
16281
|
+
return changeGoodHandle(val);
|
|
16282
|
+
},
|
|
16283
|
+
onModeChange: handleModeChange,
|
|
16284
|
+
showModeBtn: false,
|
|
16285
|
+
isStrict: isStrict,
|
|
16286
|
+
tradeGoods: {
|
|
16287
|
+
originDataSource: getGoodDetails({
|
|
16288
|
+
mode: isStrict
|
|
16289
|
+
}),
|
|
16290
|
+
selectedGoodsChange: selectedGoodsChange
|
|
16291
|
+
}
|
|
16292
|
+
})));
|
|
16293
|
+
};
|
|
16294
|
+
|
|
15854
16295
|
exports.Address = ApaasAddress;
|
|
15855
16296
|
exports.AliPay = AliPay;
|
|
15856
16297
|
exports.ApaasAddress = Province;
|
|
@@ -15871,6 +16312,7 @@ exports.ApaasTextArea = ApaasTextArea;
|
|
|
15871
16312
|
exports.ApaasUpload = ApaasUpload;
|
|
15872
16313
|
exports.ApaasUploadAsync = index;
|
|
15873
16314
|
exports.ApaasUploadFile = ApaasUploadFile;
|
|
16315
|
+
exports.BsE3Reissue = bsE3Reissue;
|
|
15874
16316
|
exports.BsExchange = BsExchange;
|
|
15875
16317
|
exports.BsGoods = BsGoods;
|
|
15876
16318
|
exports.BsReissue = BsReissue;
|