@kmkf-fe-packages/basic-components 1.19.7 → 1.19.8-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +863 -441
- package/dist/index.js +862 -439
- 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/src/basics/FormItem/index.d.ts +0 -3
package/dist/index.esm.js
CHANGED
|
@@ -4,383 +4,369 @@ import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } fro
|
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
6
|
import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, WdtSendData, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, BS_E3_ORDER_STATUS_MAP, BS_E3_BOOLEAN_STATUS_MAP, updateWdtGoodsHandle, updateBsE3GoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
-
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject } from 'lodash';
|
|
7
|
+
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty } from 'lodash';
|
|
8
8
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
9
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
11
11
|
import BigNumber from 'bignumber.js';
|
|
12
12
|
|
|
13
|
-
function _iterableToArrayLimit(
|
|
14
|
-
var
|
|
15
|
-
if (null !=
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
function _iterableToArrayLimit(arr, i) {
|
|
14
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15
|
+
if (null != _i) {
|
|
16
|
+
var _s,
|
|
17
|
+
_e,
|
|
18
|
+
_x,
|
|
19
|
+
_r,
|
|
20
|
+
_arr = [],
|
|
21
|
+
_n = !0,
|
|
22
|
+
_d = !1;
|
|
23
23
|
try {
|
|
24
|
-
if (
|
|
25
|
-
if (Object(
|
|
26
|
-
|
|
27
|
-
} else for (; !(
|
|
28
|
-
} catch (
|
|
29
|
-
|
|
24
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
25
|
+
if (Object(_i) !== _i) return;
|
|
26
|
+
_n = !1;
|
|
27
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
28
|
+
} catch (err) {
|
|
29
|
+
_d = !0, _e = err;
|
|
30
30
|
} finally {
|
|
31
31
|
try {
|
|
32
|
-
if (!
|
|
32
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
33
33
|
} finally {
|
|
34
|
-
if (
|
|
34
|
+
if (_d) throw _e;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return _arr;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function ownKeys(
|
|
41
|
-
var
|
|
40
|
+
function ownKeys(object, enumerableOnly) {
|
|
41
|
+
var keys = Object.keys(object);
|
|
42
42
|
if (Object.getOwnPropertySymbols) {
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
return Object.getOwnPropertyDescriptor(
|
|
46
|
-
})),
|
|
43
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
44
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
45
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
46
|
+
})), keys.push.apply(keys, symbols);
|
|
47
47
|
}
|
|
48
|
-
return
|
|
49
|
-
}
|
|
50
|
-
function _objectSpread2(
|
|
51
|
-
for (var
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
_defineProperty(
|
|
55
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
56
|
-
Object.defineProperty(
|
|
48
|
+
return keys;
|
|
49
|
+
}
|
|
50
|
+
function _objectSpread2(target) {
|
|
51
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
52
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
53
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
54
|
+
_defineProperty(target, key, source[key]);
|
|
55
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
56
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return target;
|
|
60
60
|
}
|
|
61
61
|
function _regeneratorRuntime() {
|
|
62
62
|
_regeneratorRuntime = function () {
|
|
63
|
-
return
|
|
64
|
-
};
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
t[e] = r.value;
|
|
63
|
+
return exports;
|
|
64
|
+
};
|
|
65
|
+
var exports = {},
|
|
66
|
+
Op = Object.prototype,
|
|
67
|
+
hasOwn = Op.hasOwnProperty,
|
|
68
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
69
|
+
obj[key] = desc.value;
|
|
71
70
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
function define(
|
|
77
|
-
return Object.defineProperty(
|
|
78
|
-
value:
|
|
71
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
72
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
73
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
74
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
75
|
+
function define(obj, key, value) {
|
|
76
|
+
return Object.defineProperty(obj, key, {
|
|
77
|
+
value: value,
|
|
79
78
|
enumerable: !0,
|
|
80
79
|
configurable: !0,
|
|
81
80
|
writable: !0
|
|
82
|
-
}),
|
|
81
|
+
}), obj[key];
|
|
83
82
|
}
|
|
84
83
|
try {
|
|
85
84
|
define({}, "");
|
|
86
|
-
} catch (
|
|
87
|
-
define = function (
|
|
88
|
-
return
|
|
85
|
+
} catch (err) {
|
|
86
|
+
define = function (obj, key, value) {
|
|
87
|
+
return obj[key] = value;
|
|
89
88
|
};
|
|
90
89
|
}
|
|
91
|
-
function wrap(
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return
|
|
96
|
-
value: makeInvokeMethod(
|
|
97
|
-
}),
|
|
90
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
91
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
92
|
+
generator = Object.create(protoGenerator.prototype),
|
|
93
|
+
context = new Context(tryLocsList || []);
|
|
94
|
+
return defineProperty(generator, "_invoke", {
|
|
95
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
96
|
+
}), generator;
|
|
98
97
|
}
|
|
99
|
-
function tryCatch(
|
|
98
|
+
function tryCatch(fn, obj, arg) {
|
|
100
99
|
try {
|
|
101
100
|
return {
|
|
102
101
|
type: "normal",
|
|
103
|
-
arg:
|
|
102
|
+
arg: fn.call(obj, arg)
|
|
104
103
|
};
|
|
105
|
-
} catch (
|
|
104
|
+
} catch (err) {
|
|
106
105
|
return {
|
|
107
106
|
type: "throw",
|
|
108
|
-
arg:
|
|
107
|
+
arg: err
|
|
109
108
|
};
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
|
|
113
|
-
var
|
|
114
|
-
l = "suspendedYield",
|
|
115
|
-
f = "executing",
|
|
116
|
-
s = "completed",
|
|
117
|
-
y = {};
|
|
111
|
+
exports.wrap = wrap;
|
|
112
|
+
var ContinueSentinel = {};
|
|
118
113
|
function Generator() {}
|
|
119
114
|
function GeneratorFunction() {}
|
|
120
115
|
function GeneratorFunctionPrototype() {}
|
|
121
|
-
var
|
|
122
|
-
define(
|
|
116
|
+
var IteratorPrototype = {};
|
|
117
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
123
118
|
return this;
|
|
124
119
|
});
|
|
125
|
-
var
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
var
|
|
129
|
-
function defineIteratorMethods(
|
|
130
|
-
["next", "throw", "return"].forEach(function (
|
|
131
|
-
define(
|
|
132
|
-
return this._invoke(
|
|
120
|
+
var getProto = Object.getPrototypeOf,
|
|
121
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
122
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
123
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
124
|
+
function defineIteratorMethods(prototype) {
|
|
125
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
126
|
+
define(prototype, method, function (arg) {
|
|
127
|
+
return this._invoke(method, arg);
|
|
133
128
|
});
|
|
134
129
|
});
|
|
135
130
|
}
|
|
136
|
-
function AsyncIterator(
|
|
137
|
-
function invoke(
|
|
138
|
-
var
|
|
139
|
-
if ("throw" !==
|
|
140
|
-
var
|
|
141
|
-
|
|
142
|
-
return
|
|
143
|
-
invoke("next",
|
|
144
|
-
}, function (
|
|
145
|
-
invoke("throw",
|
|
146
|
-
}) :
|
|
147
|
-
|
|
148
|
-
}, function (
|
|
149
|
-
return invoke("throw",
|
|
131
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
132
|
+
function invoke(method, arg, resolve, reject) {
|
|
133
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
134
|
+
if ("throw" !== record.type) {
|
|
135
|
+
var result = record.arg,
|
|
136
|
+
value = result.value;
|
|
137
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
138
|
+
invoke("next", value, resolve, reject);
|
|
139
|
+
}, function (err) {
|
|
140
|
+
invoke("throw", err, resolve, reject);
|
|
141
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
142
|
+
result.value = unwrapped, resolve(result);
|
|
143
|
+
}, function (error) {
|
|
144
|
+
return invoke("throw", error, resolve, reject);
|
|
150
145
|
});
|
|
151
146
|
}
|
|
152
|
-
|
|
147
|
+
reject(record.arg);
|
|
153
148
|
}
|
|
154
|
-
var
|
|
155
|
-
|
|
156
|
-
value: function (
|
|
149
|
+
var previousPromise;
|
|
150
|
+
defineProperty(this, "_invoke", {
|
|
151
|
+
value: function (method, arg) {
|
|
157
152
|
function callInvokeWithMethodAndArg() {
|
|
158
|
-
return new
|
|
159
|
-
invoke(
|
|
153
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
154
|
+
invoke(method, arg, resolve, reject);
|
|
160
155
|
});
|
|
161
156
|
}
|
|
162
|
-
return
|
|
157
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
163
158
|
}
|
|
164
159
|
});
|
|
165
160
|
}
|
|
166
|
-
function makeInvokeMethod(
|
|
167
|
-
var
|
|
168
|
-
return function (
|
|
169
|
-
if (
|
|
170
|
-
if (
|
|
171
|
-
if ("throw" ===
|
|
172
|
-
return
|
|
173
|
-
value: t,
|
|
174
|
-
done: !0
|
|
175
|
-
};
|
|
161
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
162
|
+
var state = "suspendedStart";
|
|
163
|
+
return function (method, arg) {
|
|
164
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
165
|
+
if ("completed" === state) {
|
|
166
|
+
if ("throw" === method) throw arg;
|
|
167
|
+
return doneResult();
|
|
176
168
|
}
|
|
177
|
-
for (
|
|
178
|
-
var
|
|
179
|
-
if (
|
|
180
|
-
var
|
|
181
|
-
if (
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
169
|
+
for (context.method = method, context.arg = arg;;) {
|
|
170
|
+
var delegate = context.delegate;
|
|
171
|
+
if (delegate) {
|
|
172
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
173
|
+
if (delegateResult) {
|
|
174
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
175
|
+
return delegateResult;
|
|
184
176
|
}
|
|
185
177
|
}
|
|
186
|
-
if ("next" ===
|
|
187
|
-
if (
|
|
188
|
-
|
|
189
|
-
} else "return" ===
|
|
190
|
-
|
|
191
|
-
var
|
|
192
|
-
if ("normal" ===
|
|
193
|
-
if (
|
|
178
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
179
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
180
|
+
context.dispatchException(context.arg);
|
|
181
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
182
|
+
state = "executing";
|
|
183
|
+
var record = tryCatch(innerFn, self, context);
|
|
184
|
+
if ("normal" === record.type) {
|
|
185
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
194
186
|
return {
|
|
195
|
-
value:
|
|
196
|
-
done:
|
|
187
|
+
value: record.arg,
|
|
188
|
+
done: context.done
|
|
197
189
|
};
|
|
198
190
|
}
|
|
199
|
-
"throw" ===
|
|
191
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
200
192
|
}
|
|
201
193
|
};
|
|
202
194
|
}
|
|
203
|
-
function maybeInvokeDelegate(
|
|
204
|
-
var
|
|
205
|
-
|
|
206
|
-
if (
|
|
207
|
-
var
|
|
208
|
-
if ("throw" ===
|
|
209
|
-
var
|
|
210
|
-
return
|
|
195
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
196
|
+
var methodName = context.method,
|
|
197
|
+
method = delegate.iterator[methodName];
|
|
198
|
+
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;
|
|
199
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
200
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
201
|
+
var info = record.arg;
|
|
202
|
+
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);
|
|
211
203
|
}
|
|
212
|
-
function pushTryEntry(
|
|
213
|
-
var
|
|
214
|
-
tryLoc:
|
|
204
|
+
function pushTryEntry(locs) {
|
|
205
|
+
var entry = {
|
|
206
|
+
tryLoc: locs[0]
|
|
215
207
|
};
|
|
216
|
-
1 in
|
|
208
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
217
209
|
}
|
|
218
|
-
function resetTryEntry(
|
|
219
|
-
var
|
|
220
|
-
|
|
210
|
+
function resetTryEntry(entry) {
|
|
211
|
+
var record = entry.completion || {};
|
|
212
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
221
213
|
}
|
|
222
|
-
function Context(
|
|
214
|
+
function Context(tryLocsList) {
|
|
223
215
|
this.tryEntries = [{
|
|
224
216
|
tryLoc: "root"
|
|
225
|
-
}],
|
|
217
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
226
218
|
}
|
|
227
|
-
function values(
|
|
228
|
-
if (
|
|
229
|
-
var
|
|
230
|
-
if (
|
|
231
|
-
if ("function" == typeof
|
|
232
|
-
if (!isNaN(
|
|
233
|
-
var
|
|
234
|
-
|
|
235
|
-
for (; ++
|
|
236
|
-
return next.value =
|
|
219
|
+
function values(iterable) {
|
|
220
|
+
if (iterable) {
|
|
221
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
222
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
223
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
224
|
+
if (!isNaN(iterable.length)) {
|
|
225
|
+
var i = -1,
|
|
226
|
+
next = function next() {
|
|
227
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
228
|
+
return next.value = undefined, next.done = !0, next;
|
|
237
229
|
};
|
|
238
|
-
return
|
|
230
|
+
return next.next = next;
|
|
239
231
|
}
|
|
240
232
|
}
|
|
241
|
-
|
|
233
|
+
return {
|
|
234
|
+
next: doneResult
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function doneResult() {
|
|
238
|
+
return {
|
|
239
|
+
value: undefined,
|
|
240
|
+
done: !0
|
|
241
|
+
};
|
|
242
242
|
}
|
|
243
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
243
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
244
244
|
value: GeneratorFunctionPrototype,
|
|
245
245
|
configurable: !0
|
|
246
|
-
}),
|
|
246
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
247
247
|
value: GeneratorFunction,
|
|
248
248
|
configurable: !0
|
|
249
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
250
|
-
var
|
|
251
|
-
return !!
|
|
252
|
-
},
|
|
253
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
254
|
-
},
|
|
249
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
250
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
251
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
252
|
+
}, exports.mark = function (genFun) {
|
|
253
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
254
|
+
}, exports.awrap = function (arg) {
|
|
255
255
|
return {
|
|
256
|
-
__await:
|
|
256
|
+
__await: arg
|
|
257
257
|
};
|
|
258
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
258
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
259
259
|
return this;
|
|
260
|
-
}),
|
|
261
|
-
void 0 ===
|
|
262
|
-
var
|
|
263
|
-
return
|
|
264
|
-
return
|
|
260
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
261
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
262
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
263
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
264
|
+
return result.done ? result.value : iter.next();
|
|
265
265
|
});
|
|
266
|
-
}, defineIteratorMethods(
|
|
266
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
267
267
|
return this;
|
|
268
|
-
}), define(
|
|
268
|
+
}), define(Gp, "toString", function () {
|
|
269
269
|
return "[object Generator]";
|
|
270
|
-
}),
|
|
271
|
-
var
|
|
272
|
-
|
|
273
|
-
for (var
|
|
274
|
-
return
|
|
275
|
-
for (;
|
|
276
|
-
var
|
|
277
|
-
if (
|
|
270
|
+
}), exports.keys = function (val) {
|
|
271
|
+
var object = Object(val),
|
|
272
|
+
keys = [];
|
|
273
|
+
for (var key in object) keys.push(key);
|
|
274
|
+
return keys.reverse(), function next() {
|
|
275
|
+
for (; keys.length;) {
|
|
276
|
+
var key = keys.pop();
|
|
277
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
278
278
|
}
|
|
279
279
|
return next.done = !0, next;
|
|
280
280
|
};
|
|
281
|
-
},
|
|
281
|
+
}, exports.values = values, Context.prototype = {
|
|
282
282
|
constructor: Context,
|
|
283
|
-
reset: function (
|
|
284
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
283
|
+
reset: function (skipTempReset) {
|
|
284
|
+
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);
|
|
285
285
|
},
|
|
286
286
|
stop: function () {
|
|
287
287
|
this.done = !0;
|
|
288
|
-
var
|
|
289
|
-
if ("throw" ===
|
|
288
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
289
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
290
290
|
return this.rval;
|
|
291
291
|
},
|
|
292
|
-
dispatchException: function (
|
|
293
|
-
if (this.done) throw
|
|
294
|
-
var
|
|
295
|
-
function handle(
|
|
296
|
-
return
|
|
292
|
+
dispatchException: function (exception) {
|
|
293
|
+
if (this.done) throw exception;
|
|
294
|
+
var context = this;
|
|
295
|
+
function handle(loc, caught) {
|
|
296
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
297
297
|
}
|
|
298
|
-
for (var
|
|
299
|
-
var
|
|
300
|
-
|
|
301
|
-
if ("root" ===
|
|
302
|
-
if (
|
|
303
|
-
var
|
|
304
|
-
|
|
305
|
-
if (
|
|
306
|
-
if (this.prev <
|
|
307
|
-
if (this.prev <
|
|
308
|
-
} else if (
|
|
309
|
-
if (this.prev <
|
|
298
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
299
|
+
var entry = this.tryEntries[i],
|
|
300
|
+
record = entry.completion;
|
|
301
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
302
|
+
if (entry.tryLoc <= this.prev) {
|
|
303
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
304
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
305
|
+
if (hasCatch && hasFinally) {
|
|
306
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
307
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
308
|
+
} else if (hasCatch) {
|
|
309
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
310
310
|
} else {
|
|
311
|
-
if (!
|
|
312
|
-
if (this.prev <
|
|
311
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
312
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
|
-
abrupt: function (
|
|
318
|
-
for (var
|
|
319
|
-
var
|
|
320
|
-
if (
|
|
321
|
-
var
|
|
317
|
+
abrupt: function (type, arg) {
|
|
318
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
319
|
+
var entry = this.tryEntries[i];
|
|
320
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
321
|
+
var finallyEntry = entry;
|
|
322
322
|
break;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
|
|
326
|
-
var
|
|
327
|
-
return
|
|
325
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
326
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
327
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
328
328
|
},
|
|
329
|
-
complete: function (
|
|
330
|
-
if ("throw" ===
|
|
331
|
-
return "break" ===
|
|
329
|
+
complete: function (record, afterLoc) {
|
|
330
|
+
if ("throw" === record.type) throw record.arg;
|
|
331
|
+
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;
|
|
332
332
|
},
|
|
333
|
-
finish: function (
|
|
334
|
-
for (var
|
|
335
|
-
var
|
|
336
|
-
if (
|
|
333
|
+
finish: function (finallyLoc) {
|
|
334
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
335
|
+
var entry = this.tryEntries[i];
|
|
336
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
|
-
catch: function (
|
|
340
|
-
for (var
|
|
341
|
-
var
|
|
342
|
-
if (
|
|
343
|
-
var
|
|
344
|
-
if ("throw" ===
|
|
345
|
-
var
|
|
346
|
-
resetTryEntry(
|
|
339
|
+
catch: function (tryLoc) {
|
|
340
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
341
|
+
var entry = this.tryEntries[i];
|
|
342
|
+
if (entry.tryLoc === tryLoc) {
|
|
343
|
+
var record = entry.completion;
|
|
344
|
+
if ("throw" === record.type) {
|
|
345
|
+
var thrown = record.arg;
|
|
346
|
+
resetTryEntry(entry);
|
|
347
347
|
}
|
|
348
|
-
return
|
|
348
|
+
return thrown;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
throw new Error("illegal catch attempt");
|
|
352
352
|
},
|
|
353
|
-
delegateYield: function (
|
|
353
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
354
354
|
return this.delegate = {
|
|
355
|
-
iterator: values(
|
|
356
|
-
resultName:
|
|
357
|
-
nextLoc:
|
|
358
|
-
}, "next" === this.method && (this.arg =
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
}
|
|
362
|
-
function _toPrimitive(t, r) {
|
|
363
|
-
if ("object" != typeof t || !t) return t;
|
|
364
|
-
var e = t[Symbol.toPrimitive];
|
|
365
|
-
if (void 0 !== e) {
|
|
366
|
-
var i = e.call(t, r || "default");
|
|
367
|
-
if ("object" != typeof i) return i;
|
|
368
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
369
|
-
}
|
|
370
|
-
return ("string" === r ? String : Number)(t);
|
|
371
|
-
}
|
|
372
|
-
function _toPropertyKey(t) {
|
|
373
|
-
var i = _toPrimitive(t, "string");
|
|
374
|
-
return "symbol" == typeof i ? i : String(i);
|
|
355
|
+
iterator: values(iterable),
|
|
356
|
+
resultName: resultName,
|
|
357
|
+
nextLoc: nextLoc
|
|
358
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
359
|
+
}
|
|
360
|
+
}, exports;
|
|
375
361
|
}
|
|
376
|
-
function _typeof(
|
|
362
|
+
function _typeof(obj) {
|
|
377
363
|
"@babel/helpers - typeof";
|
|
378
364
|
|
|
379
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
380
|
-
return typeof
|
|
381
|
-
} : function (
|
|
382
|
-
return
|
|
383
|
-
}, _typeof(
|
|
365
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
366
|
+
return typeof obj;
|
|
367
|
+
} : function (obj) {
|
|
368
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
369
|
+
}, _typeof(obj);
|
|
384
370
|
}
|
|
385
371
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
386
372
|
try {
|
|
@@ -487,6 +473,20 @@ function _nonIterableSpread() {
|
|
|
487
473
|
function _nonIterableRest() {
|
|
488
474
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
489
475
|
}
|
|
476
|
+
function _toPrimitive(input, hint) {
|
|
477
|
+
if (typeof input !== "object" || input === null) return input;
|
|
478
|
+
var prim = input[Symbol.toPrimitive];
|
|
479
|
+
if (prim !== undefined) {
|
|
480
|
+
var res = prim.call(input, hint || "default");
|
|
481
|
+
if (typeof res !== "object") return res;
|
|
482
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
483
|
+
}
|
|
484
|
+
return (hint === "string" ? String : Number)(input);
|
|
485
|
+
}
|
|
486
|
+
function _toPropertyKey(arg) {
|
|
487
|
+
var key = _toPrimitive(arg, "string");
|
|
488
|
+
return typeof key === "symbol" ? key : String(key);
|
|
489
|
+
}
|
|
490
490
|
|
|
491
491
|
function ApaasCascader(props) {
|
|
492
492
|
return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
|
|
@@ -953,18 +953,10 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
953
953
|
_useState2 = _slicedToArray(_useState, 2),
|
|
954
954
|
uploading = _useState2[0],
|
|
955
955
|
setUploading = _useState2[1];
|
|
956
|
-
var _useState3 = useState(
|
|
956
|
+
var _useState3 = useState(true),
|
|
957
957
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
var _useState5 = useState(''),
|
|
961
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
962
|
-
currentPreviewImg = _useState6[0],
|
|
963
|
-
setCurrentPreviewImg = _useState6[1];
|
|
964
|
-
var _useState7 = useState(true),
|
|
965
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
966
|
-
pasteDefaultStates = _useState8[0],
|
|
967
|
-
setPasteDefaultStates = _useState8[1];
|
|
958
|
+
pasteDefaultStates = _useState4[0],
|
|
959
|
+
setPasteDefaultStates = _useState4[1];
|
|
968
960
|
useEffect(function () {
|
|
969
961
|
valueRef.current = value;
|
|
970
962
|
}, [value]);
|
|
@@ -1172,21 +1164,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1172
1164
|
beforeUpload: beforeUpload
|
|
1173
1165
|
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
1174
1166
|
className: "addBtn"
|
|
1175
|
-
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText)))
|
|
1176
|
-
width: 0,
|
|
1177
|
-
style: {
|
|
1178
|
-
display: visible ? '' : 'none'
|
|
1179
|
-
},
|
|
1180
|
-
src: currentPreviewImg,
|
|
1181
|
-
preview: {
|
|
1182
|
-
visible: visible,
|
|
1183
|
-
src: "".concat(currentPreviewImg),
|
|
1184
|
-
onVisibleChange: function onVisibleChange(value) {
|
|
1185
|
-
setCurrentPreviewImg('');
|
|
1186
|
-
setVisible(value);
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
})));
|
|
1167
|
+
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText)))));
|
|
1190
1168
|
};
|
|
1191
1169
|
var index = /*#__PURE__*/forwardRef(ApaasUploadAsync);
|
|
1192
1170
|
|
|
@@ -12083,9 +12061,9 @@ var getTableData$1 = function getTableData(_ref, formData) {
|
|
|
12083
12061
|
var current = _ref.current,
|
|
12084
12062
|
pageSize = _ref.pageSize;
|
|
12085
12063
|
var data = {
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12064
|
+
goodNo: formData.goodNo || null,
|
|
12065
|
+
goodName: formData.goodName || null,
|
|
12066
|
+
skuCode: formData.skuCode || null,
|
|
12089
12067
|
skuId: formData.skuId || null
|
|
12090
12068
|
};
|
|
12091
12069
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
@@ -12093,7 +12071,7 @@ var getTableData$1 = function getTableData(_ref, formData) {
|
|
|
12093
12071
|
data: _objectSpread2({
|
|
12094
12072
|
pageSize: pageSize,
|
|
12095
12073
|
pageNo: current,
|
|
12096
|
-
platform: '
|
|
12074
|
+
platform: 'BS_E3_ERP'
|
|
12097
12075
|
}, data)
|
|
12098
12076
|
}).then(function (res) {
|
|
12099
12077
|
var _res$data = res.data,
|
|
@@ -12124,125 +12102,89 @@ var columns$2 = [{
|
|
|
12124
12102
|
},
|
|
12125
12103
|
width: 100
|
|
12126
12104
|
}, {
|
|
12127
|
-
dataIndex: '
|
|
12105
|
+
dataIndex: 'specNo',
|
|
12128
12106
|
title: "SKU",
|
|
12129
12107
|
ellipsis: true,
|
|
12130
|
-
width:
|
|
12108
|
+
width: 200
|
|
12131
12109
|
}, {
|
|
12132
|
-
dataIndex: '
|
|
12110
|
+
dataIndex: 'specId',
|
|
12133
12111
|
title: "SKU ID",
|
|
12134
12112
|
ellipsis: true,
|
|
12135
|
-
width:
|
|
12113
|
+
width: 150
|
|
12136
12114
|
}, {
|
|
12137
|
-
dataIndex: '
|
|
12115
|
+
dataIndex: 'goodName',
|
|
12138
12116
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
12139
12117
|
ellipsis: true,
|
|
12140
|
-
width:
|
|
12118
|
+
width: 200
|
|
12141
12119
|
}, {
|
|
12142
|
-
dataIndex: '
|
|
12120
|
+
dataIndex: 'goodShortName',
|
|
12143
12121
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12144
12122
|
ellipsis: true,
|
|
12145
|
-
width:
|
|
12146
|
-
},
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12123
|
+
width: 150
|
|
12124
|
+
},
|
|
12125
|
+
// {
|
|
12126
|
+
// dataIndex: 'goodPicUrl',
|
|
12127
|
+
// title: `商品图片`,
|
|
12128
|
+
// ellipsis: true,
|
|
12129
|
+
// width: 100,
|
|
12130
|
+
// render: (picUrl: string) => {
|
|
12131
|
+
// return (
|
|
12132
|
+
// <img
|
|
12133
|
+
// style={{
|
|
12134
|
+
// width: '40px',
|
|
12135
|
+
// height: '40px',
|
|
12136
|
+
// objectFit: 'contain',
|
|
12137
|
+
// }}
|
|
12138
|
+
// src={picUrl}
|
|
12139
|
+
// ></img>
|
|
12140
|
+
// );
|
|
12141
|
+
// },
|
|
12142
|
+
// },
|
|
12143
|
+
{
|
|
12144
|
+
dataIndex: 'goodNo',
|
|
12163
12145
|
title: "\u8D27\u53F7",
|
|
12164
12146
|
ellipsis: true,
|
|
12165
|
-
width:
|
|
12147
|
+
width: 150
|
|
12166
12148
|
}, {
|
|
12167
|
-
dataIndex: '
|
|
12149
|
+
dataIndex: 'goodId',
|
|
12168
12150
|
title: "\u8D27\u53F7ID",
|
|
12169
12151
|
ellipsis: true,
|
|
12170
|
-
width:
|
|
12152
|
+
width: 150
|
|
12171
12153
|
}, {
|
|
12172
12154
|
dataIndex: 'colorName',
|
|
12173
12155
|
title: "\u989C\u8272\u540D\u79F0",
|
|
12174
12156
|
ellipsis: true,
|
|
12175
|
-
width:
|
|
12157
|
+
width: 100
|
|
12176
12158
|
}, {
|
|
12177
12159
|
dataIndex: 'colorCode',
|
|
12178
12160
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
12179
12161
|
ellipsis: true,
|
|
12180
|
-
width:
|
|
12162
|
+
width: 150
|
|
12181
12163
|
}, {
|
|
12182
12164
|
dataIndex: 'sizeName',
|
|
12183
12165
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12184
12166
|
ellipsis: true,
|
|
12185
|
-
width:
|
|
12167
|
+
width: 100
|
|
12186
12168
|
}, {
|
|
12187
12169
|
dataIndex: 'sizeCode',
|
|
12188
12170
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12189
12171
|
ellipsis: true,
|
|
12190
|
-
width:
|
|
12172
|
+
width: 150
|
|
12191
12173
|
}, {
|
|
12192
12174
|
dataIndex: 'brandName',
|
|
12193
12175
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
12194
12176
|
ellipsis: true,
|
|
12195
|
-
width:
|
|
12177
|
+
width: 150
|
|
12196
12178
|
}, {
|
|
12197
|
-
dataIndex: '
|
|
12198
|
-
title: "\
|
|
12199
|
-
ellipsis: true,
|
|
12200
|
-
width: 70
|
|
12201
|
-
}, {
|
|
12202
|
-
dataIndex: 'goodsPrice',
|
|
12203
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12204
|
-
ellipsis: true,
|
|
12205
|
-
width: 70
|
|
12206
|
-
}, {
|
|
12207
|
-
dataIndex: 'shopPrice',
|
|
12208
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12209
|
-
ellipsis: true,
|
|
12210
|
-
width: 70
|
|
12211
|
-
}, {
|
|
12212
|
-
dataIndex: 'sharePrice',
|
|
12213
|
-
title: "\u5206\u644A\u4EF7",
|
|
12214
|
-
ellipsis: true,
|
|
12215
|
-
width: 70
|
|
12216
|
-
}, {
|
|
12217
|
-
dataIndex: 'sharePayment',
|
|
12218
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
12219
|
-
ellipsis: true,
|
|
12220
|
-
width: 70
|
|
12221
|
-
}, {
|
|
12222
|
-
dataIndex: 'payment',
|
|
12223
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
12224
|
-
ellipsis: true,
|
|
12225
|
-
width: 70
|
|
12226
|
-
}, {
|
|
12227
|
-
dataIndex: 'tcSku',
|
|
12228
|
-
title: "\u5957\u9910SKU",
|
|
12229
|
-
ellipsis: true,
|
|
12230
|
-
width: 70
|
|
12231
|
-
}, {
|
|
12232
|
-
dataIndex: 'tcGoodsNumber',
|
|
12233
|
-
title: "\u5957\u9910\u5957\u6570",
|
|
12234
|
-
ellipsis: true,
|
|
12235
|
-
width: 70
|
|
12236
|
-
}, {
|
|
12237
|
-
dataIndex: 'taoCanSingleSl',
|
|
12238
|
-
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
12179
|
+
dataIndex: 'marketPrice',
|
|
12180
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12239
12181
|
ellipsis: true,
|
|
12240
|
-
width:
|
|
12182
|
+
width: 100
|
|
12241
12183
|
}, {
|
|
12242
|
-
dataIndex: '
|
|
12243
|
-
title: "\
|
|
12184
|
+
dataIndex: 'retailPrice',
|
|
12185
|
+
title: "\u552E\u4EF7",
|
|
12244
12186
|
ellipsis: true,
|
|
12245
|
-
width:
|
|
12187
|
+
width: 100
|
|
12246
12188
|
}];
|
|
12247
12189
|
var GoodList$1 = function GoodList(props, ref) {
|
|
12248
12190
|
var _useState = useState([]),
|
|
@@ -12276,7 +12218,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12276
12218
|
layout: "inline",
|
|
12277
12219
|
form: form
|
|
12278
12220
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
12279
|
-
name: "
|
|
12221
|
+
name: "goodNo",
|
|
12280
12222
|
style: {
|
|
12281
12223
|
marginBottom: '12px'
|
|
12282
12224
|
}
|
|
@@ -12287,7 +12229,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12287
12229
|
width: 150
|
|
12288
12230
|
}
|
|
12289
12231
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12290
|
-
name: "
|
|
12232
|
+
name: "goodName",
|
|
12291
12233
|
style: {
|
|
12292
12234
|
marginBottom: '12px'
|
|
12293
12235
|
}
|
|
@@ -12298,7 +12240,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12298
12240
|
width: 150
|
|
12299
12241
|
}
|
|
12300
12242
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12301
|
-
name: "
|
|
12243
|
+
name: "skuCode",
|
|
12302
12244
|
style: {
|
|
12303
12245
|
marginBottom: '12px'
|
|
12304
12246
|
}
|
|
@@ -12415,7 +12357,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12415
12357
|
}
|
|
12416
12358
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
12417
12359
|
rowSelection: rowSelection,
|
|
12418
|
-
rowKey: "
|
|
12360
|
+
rowKey: "specNo",
|
|
12419
12361
|
columns: columns$2,
|
|
12420
12362
|
scroll: {
|
|
12421
12363
|
x: '100%',
|
|
@@ -12475,15 +12417,191 @@ var GoodsModal$4 = function GoodsModal(props, ref) {
|
|
|
12475
12417
|
};
|
|
12476
12418
|
var BsE3GoodsModal = /*#__PURE__*/forwardRef(GoodsModal$4);
|
|
12477
12419
|
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12420
|
+
var columns$3 = [{
|
|
12421
|
+
dataIndex: 'sku',
|
|
12422
|
+
title: "SKU",
|
|
12423
|
+
width: 150
|
|
12424
|
+
}, {
|
|
12425
|
+
dataIndex: 'skuId',
|
|
12426
|
+
title: "SKU ID",
|
|
12427
|
+
width: 150
|
|
12428
|
+
}, {
|
|
12429
|
+
dataIndex: 'goodsName',
|
|
12430
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12431
|
+
width: 150
|
|
12432
|
+
}, {
|
|
12433
|
+
dataIndex: 'goodsShortName',
|
|
12434
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12435
|
+
width: 150
|
|
12436
|
+
}, {
|
|
12437
|
+
dataIndex: 'picPath',
|
|
12438
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
12439
|
+
width: 150
|
|
12440
|
+
}, {
|
|
12441
|
+
dataIndex: 'goodsSn',
|
|
12442
|
+
title: "\u8D27\u53F7",
|
|
12443
|
+
width: 150
|
|
12444
|
+
}, {
|
|
12445
|
+
dataIndex: 'goodsId',
|
|
12446
|
+
title: "\u8D27\u53F7ID",
|
|
12447
|
+
width: 150
|
|
12448
|
+
}, {
|
|
12449
|
+
dataIndex: 'colorName',
|
|
12450
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12451
|
+
width: 150
|
|
12452
|
+
}, {
|
|
12453
|
+
dataIndex: 'colorCode',
|
|
12454
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12455
|
+
width: 150
|
|
12456
|
+
}, {
|
|
12457
|
+
dataIndex: 'sizeName',
|
|
12458
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12459
|
+
width: 150
|
|
12460
|
+
}, {
|
|
12461
|
+
dataIndex: 'sizeCode',
|
|
12462
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12463
|
+
width: 150
|
|
12464
|
+
}, {
|
|
12465
|
+
dataIndex: 'brandName',
|
|
12466
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12467
|
+
width: 150
|
|
12468
|
+
}, {
|
|
12469
|
+
dataIndex: 'goodsNumber',
|
|
12470
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
12471
|
+
width: 150
|
|
12472
|
+
}, {
|
|
12473
|
+
dataIndex: 'goodsPrice',
|
|
12474
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12475
|
+
width: 150
|
|
12476
|
+
}, {
|
|
12477
|
+
dataIndex: 'shopPrice',
|
|
12478
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12479
|
+
width: 150
|
|
12480
|
+
}, {
|
|
12481
|
+
dataIndex: 'isGift',
|
|
12482
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
12483
|
+
width: 150
|
|
12484
|
+
}];
|
|
12485
|
+
var renderFieldMap = {
|
|
12486
|
+
goodsNumber: function goodsNumber(_ref) {
|
|
12487
|
+
var disabled = _ref.disabled,
|
|
12488
|
+
updateHandle = _ref.updateHandle;
|
|
12489
|
+
return function (val, record, index) {
|
|
12490
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12491
|
+
style: {
|
|
12492
|
+
width: 70
|
|
12493
|
+
},
|
|
12494
|
+
value: val,
|
|
12495
|
+
min: 1,
|
|
12496
|
+
precision: 0,
|
|
12497
|
+
onChange: function onChange(num) {
|
|
12498
|
+
return updateHandle(num, index, 'goodsNumber');
|
|
12499
|
+
}
|
|
12500
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12501
|
+
};
|
|
12502
|
+
},
|
|
12503
|
+
goodsPrice: function goodsPrice(_ref2) {
|
|
12504
|
+
var disabled = _ref2.disabled,
|
|
12505
|
+
updateHandle = _ref2.updateHandle;
|
|
12506
|
+
return function (val, record, index) {
|
|
12507
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12508
|
+
style: {
|
|
12509
|
+
width: 70
|
|
12510
|
+
},
|
|
12511
|
+
value: val,
|
|
12512
|
+
min: 0,
|
|
12513
|
+
onChange: function onChange(value) {
|
|
12514
|
+
return updateHandle(value, index, 'goodsPrice');
|
|
12515
|
+
}
|
|
12516
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12517
|
+
};
|
|
12518
|
+
},
|
|
12519
|
+
isGift: function isGift(_ref3) {
|
|
12520
|
+
var disabled = _ref3.disabled,
|
|
12521
|
+
updateHandle = _ref3.updateHandle;
|
|
12522
|
+
return function (val, record, index) {
|
|
12523
|
+
var options = [{
|
|
12524
|
+
label: '是',
|
|
12525
|
+
value: '赠品'
|
|
12526
|
+
}, {
|
|
12527
|
+
label: '否',
|
|
12528
|
+
value: '非赠品'
|
|
12529
|
+
}];
|
|
12530
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
12531
|
+
style: {
|
|
12532
|
+
width: 70
|
|
12533
|
+
},
|
|
12534
|
+
options: options,
|
|
12535
|
+
value: val,
|
|
12536
|
+
onChange: function onChange(value) {
|
|
12537
|
+
return updateHandle(value, index, 'isGift');
|
|
12538
|
+
}
|
|
12539
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12540
|
+
};
|
|
12541
|
+
}
|
|
12542
|
+
};
|
|
12543
|
+
var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
12544
|
+
var disabled = _ref4.disabled,
|
|
12545
|
+
updateHandle = _ref4.updateHandle,
|
|
12546
|
+
operate = _ref4.operate;
|
|
12547
|
+
return columns$3.map(function (item) {
|
|
12548
|
+
var newItem = _objectSpread2({
|
|
12549
|
+
align: 'center',
|
|
12550
|
+
ellipsis: true
|
|
12551
|
+
}, item);
|
|
12552
|
+
if (operate && (renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex])) {
|
|
12553
|
+
return _objectSpread2(_objectSpread2({}, newItem), {}, {
|
|
12554
|
+
render: renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex]({
|
|
12555
|
+
disabled: disabled,
|
|
12556
|
+
updateHandle: updateHandle
|
|
12557
|
+
})
|
|
12558
|
+
});
|
|
12559
|
+
}
|
|
12560
|
+
return newItem;
|
|
12561
|
+
});
|
|
12562
|
+
};
|
|
12563
|
+
|
|
12564
|
+
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
12565
|
+
var columns = _ref.columns,
|
|
12566
|
+
dataSource = _ref.dataSource,
|
|
12567
|
+
selectedRowKeys = _ref.selectedRowKeys,
|
|
12568
|
+
onChangeSelectedKeys = _ref.onChangeSelectedKeys;
|
|
12569
|
+
var _useState = useState(false),
|
|
12570
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12571
|
+
tradeGoodsVisible = _useState2[0],
|
|
12572
|
+
setTradeGoodsVisible = _useState2[1];
|
|
12573
|
+
var openModal = function openModal() {
|
|
12574
|
+
return setTradeGoodsVisible(true);
|
|
12575
|
+
};
|
|
12576
|
+
var closeModal = function closeModal() {
|
|
12577
|
+
return setTradeGoodsVisible(false);
|
|
12578
|
+
};
|
|
12579
|
+
var rowSelection = {
|
|
12580
|
+
selectedRowKeys: selectedRowKeys,
|
|
12581
|
+
onChange: onChangeSelectedKeys
|
|
12582
|
+
};
|
|
12583
|
+
console.debug('选择订单商品-dataSource', dataSource, selectedRowKeys);
|
|
12584
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
12585
|
+
type: "link",
|
|
12586
|
+
onClick: openModal
|
|
12587
|
+
}, "\u9009\u62E9\u8BA2\u5355\u5546\u54C1"), /*#__PURE__*/React.createElement(Modal, {
|
|
12588
|
+
title: "\u8BA2\u5355\u5546\u54C1",
|
|
12589
|
+
visible: tradeGoodsVisible,
|
|
12590
|
+
footer: null,
|
|
12591
|
+
onCancel: closeModal
|
|
12592
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
12593
|
+
rowKey: "sku",
|
|
12594
|
+
rowSelection: rowSelection,
|
|
12595
|
+
columns: columns,
|
|
12596
|
+
dataSource: dataSource,
|
|
12597
|
+
pagination: false,
|
|
12598
|
+
scroll: {
|
|
12599
|
+
x: 500,
|
|
12600
|
+
y: 500
|
|
12601
|
+
}
|
|
12602
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length, "/", dataSource === null || dataSource === void 0 ? void 0 : dataSource.length, ")")));
|
|
12603
|
+
};
|
|
12485
12604
|
var GoodItem$1 = function GoodItem(props) {
|
|
12486
|
-
var _ref;
|
|
12487
12605
|
var _props$value = props.value,
|
|
12488
12606
|
value = _props$value === void 0 ? [] : _props$value,
|
|
12489
12607
|
type = props.type,
|
|
@@ -12517,8 +12635,10 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12517
12635
|
companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
|
|
12518
12636
|
onSelect = props.onSelect,
|
|
12519
12637
|
onDelete = props.onDelete,
|
|
12520
|
-
onModeChange = props.onModeChange
|
|
12638
|
+
onModeChange = props.onModeChange,
|
|
12639
|
+
tradeGoods = props.tradeGoods;
|
|
12521
12640
|
var refModal = useRef();
|
|
12641
|
+
console.debug('表格数据', value);
|
|
12522
12642
|
var handleDelete = function handleDelete(record, index) {
|
|
12523
12643
|
onDelete === null || onDelete === void 0 ? void 0 : onDelete(value[index]);
|
|
12524
12644
|
var newList = _toConsumableArray(value).filter(function (item, i) {
|
|
@@ -12526,13 +12646,19 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12526
12646
|
});
|
|
12527
12647
|
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(newList));
|
|
12528
12648
|
};
|
|
12529
|
-
var
|
|
12530
|
-
|
|
12531
|
-
selectedRowKeys =
|
|
12532
|
-
setSelectedRowKeys =
|
|
12649
|
+
var _useState3 = useState([]),
|
|
12650
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12651
|
+
selectedRowKeys = _useState4[0],
|
|
12652
|
+
setSelectedRowKeys = _useState4[1];
|
|
12533
12653
|
useEffect(function () {
|
|
12534
12654
|
setSelectedRowKeys([]);
|
|
12535
12655
|
}, [tableSelect, selectType]);
|
|
12656
|
+
// TODO: 商品订单中以选中商品
|
|
12657
|
+
var selectedGoods = useMemo(function () {
|
|
12658
|
+
return value === null || value === void 0 ? void 0 : value.map(function (v) {
|
|
12659
|
+
return v.sku;
|
|
12660
|
+
});
|
|
12661
|
+
}, [value]);
|
|
12536
12662
|
var updateHandle = function updateHandle(val, index, columnType) {
|
|
12537
12663
|
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
12538
12664
|
value[index][columnType] = val;
|
|
@@ -12566,6 +12692,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12566
12692
|
};
|
|
12567
12693
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
12568
12694
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
12695
|
+
var operate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
12569
12696
|
return function (type) {
|
|
12570
12697
|
var columns = [];
|
|
12571
12698
|
switch (type) {
|
|
@@ -13063,6 +13190,15 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13063
13190
|
}];
|
|
13064
13191
|
}
|
|
13065
13192
|
break;
|
|
13193
|
+
case 'BS_E3_REISSUE_GOODS':
|
|
13194
|
+
{
|
|
13195
|
+
columns = getBsE3ReissueGoodColumns({
|
|
13196
|
+
disabled: disabled,
|
|
13197
|
+
updateHandle: updateHandle,
|
|
13198
|
+
operate: operate
|
|
13199
|
+
});
|
|
13200
|
+
}
|
|
13201
|
+
break;
|
|
13066
13202
|
default:
|
|
13067
13203
|
columns = [{
|
|
13068
13204
|
dataIndex: 'mark',
|
|
@@ -13202,6 +13338,19 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13202
13338
|
}
|
|
13203
13339
|
return columnList;
|
|
13204
13340
|
}, [showHeader, value, disabled]);
|
|
13341
|
+
var orderColumns = useMemo(function () {
|
|
13342
|
+
var columns = COLUMNS_MAP('', false)(type);
|
|
13343
|
+
return [{
|
|
13344
|
+
dataIndex: '',
|
|
13345
|
+
title: '序号',
|
|
13346
|
+
align: 'center',
|
|
13347
|
+
ellipsis: true,
|
|
13348
|
+
width: 50,
|
|
13349
|
+
render: function render(val, record, index) {
|
|
13350
|
+
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
13351
|
+
}
|
|
13352
|
+
}].concat(_toConsumableArray(columns));
|
|
13353
|
+
}, []);
|
|
13205
13354
|
var onSubmit = function onSubmit(list) {
|
|
13206
13355
|
var newList = [];
|
|
13207
13356
|
if (['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -13220,12 +13369,36 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13220
13369
|
});
|
|
13221
13370
|
} else if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
13222
13371
|
newList = list.map(function (item) {
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13372
|
+
var specNo = item.specNo,
|
|
13373
|
+
specId = item.specId,
|
|
13374
|
+
goodName = item.goodName,
|
|
13375
|
+
goodShortName = item.goodShortName,
|
|
13376
|
+
goodPicUrl = item.goodPicUrl,
|
|
13377
|
+
goodNo = item.goodNo,
|
|
13378
|
+
goodId = item.goodId,
|
|
13379
|
+
retailPrice = item.retailPrice;
|
|
13380
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13381
|
+
sku: specNo,
|
|
13382
|
+
skuId: specId,
|
|
13383
|
+
goodsName: goodName,
|
|
13384
|
+
goodsShortName: goodShortName,
|
|
13385
|
+
picPath: goodPicUrl,
|
|
13386
|
+
goodsSn: goodNo,
|
|
13387
|
+
goodsId: goodId,
|
|
13388
|
+
goodsPrice: retailPrice,
|
|
13389
|
+
shopPrice: retailPrice,
|
|
13390
|
+
sharePayment: '',
|
|
13391
|
+
sharePrice: '',
|
|
13392
|
+
payment: '',
|
|
13393
|
+
tcSku: '',
|
|
13394
|
+
tcGoodsNumber: '',
|
|
13395
|
+
taoCanSingleSl: '',
|
|
13396
|
+
isGift: '',
|
|
13397
|
+
uuid: uuid(),
|
|
13398
|
+
canDelete: true,
|
|
13399
|
+
goodsNumber: 1,
|
|
13400
|
+
canUpdateNumber: canUpdateNumber
|
|
13401
|
+
});
|
|
13229
13402
|
});
|
|
13230
13403
|
} else {
|
|
13231
13404
|
newList = list.map(function (item) {
|
|
@@ -13286,10 +13459,15 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13286
13459
|
}, showModeBtn && /*#__PURE__*/React.createElement(Checkbox, {
|
|
13287
13460
|
checked: isStrict,
|
|
13288
13461
|
onChange: handleCheckboxChange
|
|
13289
|
-
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !(
|
|
13462
|
+
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && /*#__PURE__*/React.createElement(SelectTradeGoods, {
|
|
13463
|
+
columns: orderColumns,
|
|
13464
|
+
dataSource: tradeGoods.originDataSource,
|
|
13465
|
+
selectedRowKeys: selectedGoods,
|
|
13466
|
+
onChangeSelectedKeys: tradeGoods.selectedGoodsChange
|
|
13467
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
13290
13468
|
type: "link",
|
|
13291
13469
|
onClick: handleChangeGoods
|
|
13292
|
-
},
|
|
13470
|
+
}, ['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type) ? '选择百胜ERP商品' : '选择商品'), otherOperations), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
|
|
13293
13471
|
columns: newColumns,
|
|
13294
13472
|
dataSource: value,
|
|
13295
13473
|
rowKey: 'uuid',
|
|
@@ -14085,32 +14263,32 @@ var columnsMap = {
|
|
|
14085
14263
|
}, {
|
|
14086
14264
|
title: '是否被拆分',
|
|
14087
14265
|
dataIndex: 'isSplit',
|
|
14088
|
-
width:
|
|
14266
|
+
width: 100,
|
|
14089
14267
|
ellipsis: true
|
|
14090
14268
|
}, {
|
|
14091
14269
|
title: '是否拆分子单',
|
|
14092
14270
|
dataIndex: 'isSplitNew',
|
|
14093
|
-
width:
|
|
14271
|
+
width: 100,
|
|
14094
14272
|
ellipsis: true
|
|
14095
14273
|
}, {
|
|
14096
14274
|
title: '是否被合并',
|
|
14097
14275
|
dataIndex: 'isCombine',
|
|
14098
|
-
width:
|
|
14276
|
+
width: 100,
|
|
14099
14277
|
ellipsis: true
|
|
14100
14278
|
}, {
|
|
14101
14279
|
title: '是否合并新单',
|
|
14102
14280
|
dataIndex: 'isCombineNew',
|
|
14103
|
-
width:
|
|
14281
|
+
width: 100,
|
|
14104
14282
|
ellipsis: true
|
|
14105
14283
|
}, {
|
|
14106
14284
|
title: '是否复制单',
|
|
14107
14285
|
dataIndex: 'isCopy',
|
|
14108
|
-
width:
|
|
14286
|
+
width: 100,
|
|
14109
14287
|
ellipsis: true
|
|
14110
14288
|
}, {
|
|
14111
14289
|
title: '是否换货单',
|
|
14112
14290
|
dataIndex: 'isExchangeOrder',
|
|
14113
|
-
width:
|
|
14291
|
+
width: 100,
|
|
14114
14292
|
ellipsis: true
|
|
14115
14293
|
}, {
|
|
14116
14294
|
title: '订单备注',
|
|
@@ -14422,7 +14600,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
14422
14600
|
valueRef.current = value;
|
|
14423
14601
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo)) {
|
|
14424
14602
|
getOrderFlag.current = true;
|
|
14425
|
-
getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
14603
|
+
compType.indexOf('WDT') > -1 && getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
14426
14604
|
}
|
|
14427
14605
|
}, [value]);
|
|
14428
14606
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
@@ -14859,11 +15037,12 @@ var typeMap$1 = {
|
|
|
14859
15037
|
formatDefaultField: {
|
|
14860
15038
|
money: 'orderPrice',
|
|
14861
15039
|
share: 'sharePrice'
|
|
14862
|
-
}
|
|
15040
|
+
},
|
|
15041
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
14863
15042
|
}
|
|
14864
15043
|
};
|
|
14865
15044
|
var wdtReissue = function wdtReissue(props) {
|
|
14866
|
-
var _value$wdtSystemOrder, _typeMap$type7, _typeMap$
|
|
15045
|
+
var _value$wdtSystemOrder, _typeMap$type7, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s5, _typeMap$type28, _typeMap$type29, _typeMap$type30;
|
|
14867
15046
|
var value = props.value,
|
|
14868
15047
|
onChange = props.onChange,
|
|
14869
15048
|
_props$reasonList = props.reasonList,
|
|
@@ -14885,7 +15064,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14885
15064
|
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)) {
|
|
14886
15065
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
14887
15066
|
getOrderFlag.current = true;
|
|
14888
|
-
|
|
15067
|
+
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);
|
|
14889
15068
|
}
|
|
14890
15069
|
return;
|
|
14891
15070
|
}, [value]);
|
|
@@ -14903,13 +15082,30 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14903
15082
|
}
|
|
14904
15083
|
return;
|
|
14905
15084
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrderNo]]);
|
|
14906
|
-
|
|
15085
|
+
// const getWdtOrderList = async (orderNo: string) => {
|
|
15086
|
+
// wdtUtils.getWdtOrderListSingleton(orderNo).then(data => {
|
|
15087
|
+
// const orders = data?.trades || [];
|
|
15088
|
+
// const showOrderInfo = orders.map(({ billNo, billType, billTag }: any) => {
|
|
15089
|
+
// return { billNo, billType, billTag }
|
|
15090
|
+
// });
|
|
15091
|
+
// onChange({
|
|
15092
|
+
// ...value,
|
|
15093
|
+
// [typeMap[type]?.systemOrder]: {
|
|
15094
|
+
// ...value[typeMap[type]?.systemOrder],
|
|
15095
|
+
// showOrderInfo,
|
|
15096
|
+
// orders,
|
|
15097
|
+
// },
|
|
15098
|
+
// });
|
|
15099
|
+
// })
|
|
15100
|
+
// };
|
|
15101
|
+
var getOrderList = /*#__PURE__*/function () {
|
|
14907
15102
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
15103
|
+
var _typeMap$type8;
|
|
14908
15104
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14909
15105
|
while (1) switch (_context.prev = _context.next) {
|
|
14910
15106
|
case 0:
|
|
14911
|
-
|
|
14912
|
-
var _typeMap$
|
|
15107
|
+
(_typeMap$type8 = typeMap$1[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.getOrderList(orderNo).then(function (data) {
|
|
15108
|
+
var _typeMap$type9, _typeMap$type10;
|
|
14913
15109
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
14914
15110
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
14915
15111
|
var billNo = _ref2.billNo,
|
|
@@ -14921,7 +15117,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14921
15117
|
billTag: billTag
|
|
14922
15118
|
};
|
|
14923
15119
|
});
|
|
14924
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
15120
|
+
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]), {}, {
|
|
14925
15121
|
showOrderInfo: showOrderInfo,
|
|
14926
15122
|
orders: orders
|
|
14927
15123
|
}))));
|
|
@@ -14932,43 +15128,43 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14932
15128
|
}
|
|
14933
15129
|
}, _callee);
|
|
14934
15130
|
}));
|
|
14935
|
-
return function
|
|
15131
|
+
return function getOrderList(_x) {
|
|
14936
15132
|
return _ref.apply(this, arguments);
|
|
14937
15133
|
};
|
|
14938
15134
|
}();
|
|
14939
15135
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
14940
|
-
var _value$typeMap$type$t2, _typeMap$
|
|
15136
|
+
var _value$typeMap$type$t2, _typeMap$type11, _typeMap$type12;
|
|
14941
15137
|
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
14942
|
-
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
15138
|
+
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;
|
|
14943
15139
|
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
14944
15140
|
var newValue = _objectSpread2({}, value);
|
|
14945
|
-
newValue[(_typeMap$
|
|
15141
|
+
newValue[(_typeMap$type12 = typeMap$1[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.typeName] = val;
|
|
14946
15142
|
if (typeName === '1') {
|
|
14947
|
-
var _typeMap$
|
|
14948
|
-
newValue[(_typeMap$
|
|
15143
|
+
var _typeMap$type13;
|
|
15144
|
+
newValue[(_typeMap$type13 = typeMap$1[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = getGoodDetails({
|
|
14949
15145
|
mode: isStrict
|
|
14950
15146
|
});
|
|
14951
15147
|
} else if (typeName === '2') {
|
|
14952
|
-
var _typeMap$
|
|
15148
|
+
var _typeMap$type14;
|
|
14953
15149
|
// 切换到非原单,清空列表
|
|
14954
|
-
newValue[(_typeMap$
|
|
15150
|
+
newValue[(_typeMap$type14 = typeMap$1[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key] = [];
|
|
14955
15151
|
}
|
|
14956
15152
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
14957
15153
|
};
|
|
14958
15154
|
var handleModeChange = function handleModeChange(mode) {
|
|
14959
|
-
var _value$typeMap$type$t3, _typeMap$
|
|
14960
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
15155
|
+
var _value$typeMap$type$t3, _typeMap$type15, _typeMap$type16;
|
|
15156
|
+
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';
|
|
14961
15157
|
setIsStrict(mode);
|
|
14962
15158
|
if (!isOriginalOrder) return;
|
|
14963
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
15159
|
+
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({
|
|
14964
15160
|
mode: mode
|
|
14965
15161
|
}))));
|
|
14966
15162
|
};
|
|
14967
15163
|
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
14968
|
-
var _typeMap$
|
|
15164
|
+
var _typeMap$type17, _typeMap$type18, _order$goodDetails;
|
|
14969
15165
|
var mode = _ref3.mode;
|
|
14970
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
14971
|
-
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15166
|
+
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];
|
|
15167
|
+
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];
|
|
14972
15168
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
14973
15169
|
return order.tradeNo === systemOrderNo;
|
|
14974
15170
|
});
|
|
@@ -14979,31 +15175,31 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14979
15175
|
}) : goodDetails;
|
|
14980
15176
|
};
|
|
14981
15177
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
14982
|
-
var _typeMap$
|
|
15178
|
+
var _typeMap$type19;
|
|
14983
15179
|
var newValue = _objectSpread2({}, value);
|
|
14984
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
14985
|
-
var _typeMap$
|
|
14986
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
14987
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15180
|
+
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) {
|
|
15181
|
+
var _typeMap$type20, _typeMap$type21;
|
|
15182
|
+
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;
|
|
15183
|
+
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;
|
|
14988
15184
|
return item;
|
|
14989
15185
|
});
|
|
14990
15186
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
14991
15187
|
};
|
|
14992
15188
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
14993
|
-
var _typeMap$
|
|
15189
|
+
var _typeMap$type22, _value$typeMap$type$t4, _typeMap$type23;
|
|
14994
15190
|
var newValue = _objectSpread2({}, value);
|
|
14995
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
14996
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$
|
|
14997
|
-
var _typeMap$
|
|
14998
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15191
|
+
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;
|
|
15192
|
+
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])) {
|
|
15193
|
+
var _typeMap$type24;
|
|
15194
|
+
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)] = [];
|
|
14999
15195
|
}
|
|
15000
15196
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15001
15197
|
};
|
|
15002
15198
|
//显示选择商品按钮 原单换不显示选择商品
|
|
15003
15199
|
var showChangeBtn = useMemo(function () {
|
|
15004
|
-
var _typeMap$
|
|
15005
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15006
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15200
|
+
var _typeMap$type25;
|
|
15201
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]);
|
|
15202
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo]]);
|
|
15007
15203
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
15008
15204
|
gutter: 8,
|
|
15009
15205
|
wrap: true
|
|
@@ -15021,12 +15217,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15021
15217
|
},
|
|
15022
15218
|
disabled: disabled,
|
|
15023
15219
|
allowClear: false,
|
|
15024
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15220
|
+
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)],
|
|
15025
15221
|
onChange: function onChange(val) {
|
|
15026
15222
|
return changeSystemOrderHandle(val);
|
|
15027
15223
|
},
|
|
15028
15224
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
15029
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
15225
|
+
}, ((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) {
|
|
15030
15226
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
15031
15227
|
key: item.billNo,
|
|
15032
15228
|
value: item.billNo,
|
|
@@ -15047,7 +15243,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15047
15243
|
disabled: disabled,
|
|
15048
15244
|
allowClear: false,
|
|
15049
15245
|
options: reasonList,
|
|
15050
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15246
|
+
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)],
|
|
15051
15247
|
onChange: function onChange(val) {
|
|
15052
15248
|
return changeTypeHandle(val);
|
|
15053
15249
|
}
|
|
@@ -15059,7 +15255,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15059
15255
|
canUpdateNumber: showChangeBtn,
|
|
15060
15256
|
showChangeBtn: showChangeBtn,
|
|
15061
15257
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
15062
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15258
|
+
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)],
|
|
15063
15259
|
onChange: function onChange(val) {
|
|
15064
15260
|
return changeGoodHandle(val);
|
|
15065
15261
|
},
|
|
@@ -15753,6 +15949,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
15753
15949
|
|
|
15754
15950
|
var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
|
|
15755
15951
|
var msgTypeCh = {
|
|
15952
|
+
pdd: '拼多多',
|
|
15756
15953
|
ding: '钉钉',
|
|
15757
15954
|
wechat: '微信',
|
|
15758
15955
|
qq: 'QQ',
|
|
@@ -15801,7 +15998,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
15801
15998
|
onClick: function onClick() {
|
|
15802
15999
|
return setChangeIndex(index);
|
|
15803
16000
|
}
|
|
15804
|
-
}, msgTypeCh[key], item.ruleName);
|
|
16001
|
+
}, msgTypeCh[key] || key, item.ruleName);
|
|
15805
16002
|
}))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
15806
16003
|
showSearch: true,
|
|
15807
16004
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -15839,4 +16036,229 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
15839
16036
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
15840
16037
|
};
|
|
15841
16038
|
|
|
15842
|
-
|
|
16039
|
+
var _excluded$k = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
16040
|
+
var typeMap$2 = {
|
|
16041
|
+
BS_E3_REISSUE_GOODS: {
|
|
16042
|
+
key: 'bsE3ReissueGoods',
|
|
16043
|
+
typeName: 'bsE3ReissueType',
|
|
16044
|
+
systemOrder: 'bsE3SystemOrder',
|
|
16045
|
+
systemOrderNo: 'bsE3SystemOrderNo',
|
|
16046
|
+
getOrderList: bsE3Utils.getBsE3OrderListSingleton
|
|
16047
|
+
}
|
|
16048
|
+
};
|
|
16049
|
+
var bsE3Reissue = function bsE3Reissue(props) {
|
|
16050
|
+
var _typeMap$type7, _typeMap$type23, _typeMap$type25, _typeMap$type26, _value$typeMap$type$s5, _typeMap$type27, _typeMap$type28, _typeMap$type29;
|
|
16051
|
+
var value = props.value,
|
|
16052
|
+
onChange = props.onChange,
|
|
16053
|
+
_props$reasonList = props.reasonList,
|
|
16054
|
+
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16055
|
+
disabled = props.disabled,
|
|
16056
|
+
type = props.type,
|
|
16057
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
16058
|
+
var getOrderFlag = useRef(false);
|
|
16059
|
+
var _useState = useState(false),
|
|
16060
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16061
|
+
isStrict = _useState2[0],
|
|
16062
|
+
setIsStrict = _useState2[1];
|
|
16063
|
+
useEffect(function () {
|
|
16064
|
+
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
16065
|
+
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)) {
|
|
16066
|
+
var _value$typeMap$type$s4, _typeMap$type3;
|
|
16067
|
+
getOrderFlag.current = true;
|
|
16068
|
+
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);
|
|
16069
|
+
}
|
|
16070
|
+
return;
|
|
16071
|
+
}, [value]);
|
|
16072
|
+
useEffect(function () {
|
|
16073
|
+
var _typeMap$type4;
|
|
16074
|
+
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];
|
|
16075
|
+
if (systemOrderNo) {
|
|
16076
|
+
var _value$typeMap$type$t, _typeMap$type5;
|
|
16077
|
+
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])) {
|
|
16078
|
+
var _typeMap$type6;
|
|
16079
|
+
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({
|
|
16080
|
+
mode: isStrict
|
|
16081
|
+
}))));
|
|
16082
|
+
}
|
|
16083
|
+
}
|
|
16084
|
+
return;
|
|
16085
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrderNo]]);
|
|
16086
|
+
var getOrderList = /*#__PURE__*/function () {
|
|
16087
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
16088
|
+
var _typeMap$type8;
|
|
16089
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16090
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16091
|
+
case 0:
|
|
16092
|
+
(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.getOrderList(orderNo).then(function (data) {
|
|
16093
|
+
var _typeMap$type9, _typeMap$type10;
|
|
16094
|
+
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
16095
|
+
var showOrderInfo = orders.map(function (_ref2) {
|
|
16096
|
+
var billNo = _ref2.billNo,
|
|
16097
|
+
billType = _ref2.billType,
|
|
16098
|
+
billTag = _ref2.billTag;
|
|
16099
|
+
return {
|
|
16100
|
+
billNo: billNo,
|
|
16101
|
+
billType: billType,
|
|
16102
|
+
billTag: billTag
|
|
16103
|
+
};
|
|
16104
|
+
});
|
|
16105
|
+
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]), {}, {
|
|
16106
|
+
showOrderInfo: showOrderInfo,
|
|
16107
|
+
orders: orders
|
|
16108
|
+
}))));
|
|
16109
|
+
});
|
|
16110
|
+
case 1:
|
|
16111
|
+
case "end":
|
|
16112
|
+
return _context.stop();
|
|
16113
|
+
}
|
|
16114
|
+
}, _callee);
|
|
16115
|
+
}));
|
|
16116
|
+
return function getOrderList(_x) {
|
|
16117
|
+
return _ref.apply(this, arguments);
|
|
16118
|
+
};
|
|
16119
|
+
}();
|
|
16120
|
+
var changeTypeHandle = function changeTypeHandle(val) {
|
|
16121
|
+
var _typeMap$type11;
|
|
16122
|
+
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
16123
|
+
// if (typeName === value?.[typeMap[type]?.typeName]?.[0]) return
|
|
16124
|
+
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
16125
|
+
var newValue = _objectSpread2({}, value);
|
|
16126
|
+
newValue[(_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName] = val;
|
|
16127
|
+
if (typeName === '1') {
|
|
16128
|
+
var _typeMap$type12;
|
|
16129
|
+
newValue[(_typeMap$type12 = typeMap$2[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key] = getGoodDetails({
|
|
16130
|
+
mode: isStrict
|
|
16131
|
+
});
|
|
16132
|
+
} else if (typeName === '2') {
|
|
16133
|
+
var _typeMap$type13;
|
|
16134
|
+
// 切换到非原单,清空列表
|
|
16135
|
+
newValue[(_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = [];
|
|
16136
|
+
}
|
|
16137
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16138
|
+
};
|
|
16139
|
+
var handleModeChange = function handleModeChange(mode) {
|
|
16140
|
+
var _value$typeMap$type$t2, _typeMap$type14, _typeMap$type15;
|
|
16141
|
+
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';
|
|
16142
|
+
setIsStrict(mode);
|
|
16143
|
+
if (!isOriginalOrder) return;
|
|
16144
|
+
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({
|
|
16145
|
+
mode: mode
|
|
16146
|
+
}))));
|
|
16147
|
+
};
|
|
16148
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
16149
|
+
var _typeMap$type16, _typeMap$type17, _order$orderDetailGet;
|
|
16150
|
+
var mode = _ref3.mode;
|
|
16151
|
+
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];
|
|
16152
|
+
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];
|
|
16153
|
+
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
16154
|
+
return order.orderSn === systemOrderNo;
|
|
16155
|
+
});
|
|
16156
|
+
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$orderDetailGet = order.orderDetailGets) === null || _order$orderDetailGet === void 0 ? void 0 : _order$orderDetailGet.length) ? updateBsE3GoodsHandle([order]) : [];
|
|
16157
|
+
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
16158
|
+
return mode ? goodDetails.filter(function (goodItem) {
|
|
16159
|
+
return !orderNo || goodItem.originalOrderSn === orderNo;
|
|
16160
|
+
}) : goodDetails;
|
|
16161
|
+
};
|
|
16162
|
+
var changeGoodHandle = function changeGoodHandle(val) {
|
|
16163
|
+
var _typeMap$type18;
|
|
16164
|
+
var newValue = _objectSpread2({}, value);
|
|
16165
|
+
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 || [];
|
|
16166
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16167
|
+
};
|
|
16168
|
+
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
16169
|
+
var _typeMap$type19, _value$typeMap$type$t3, _typeMap$type20;
|
|
16170
|
+
var newValue = _objectSpread2({}, value);
|
|
16171
|
+
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;
|
|
16172
|
+
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])) {
|
|
16173
|
+
var _typeMap$type21;
|
|
16174
|
+
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)] = [];
|
|
16175
|
+
}
|
|
16176
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16177
|
+
};
|
|
16178
|
+
//显示选择商品按钮 原单换不显示选择商品
|
|
16179
|
+
var showChangeBtn = useMemo(function () {
|
|
16180
|
+
var _typeMap$type22;
|
|
16181
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo]);
|
|
16182
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderNo]]);
|
|
16183
|
+
var selectedGoodsChange = useCallback(function (skuList) {
|
|
16184
|
+
var _typeMap$type24, _getGoodDetails;
|
|
16185
|
+
var newValue = _objectSpread2({}, value);
|
|
16186
|
+
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({
|
|
16187
|
+
mode: isStrict
|
|
16188
|
+
})) === null || _getGoodDetails === void 0 ? void 0 : _getGoodDetails.filter(function (item) {
|
|
16189
|
+
return skuList.includes(item.sku);
|
|
16190
|
+
});
|
|
16191
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16192
|
+
}, [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]);
|
|
16193
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
16194
|
+
gutter: 8,
|
|
16195
|
+
wrap: true
|
|
16196
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
16197
|
+
className: "gutter-row",
|
|
16198
|
+
xs: {
|
|
16199
|
+
span: 11
|
|
16200
|
+
},
|
|
16201
|
+
sm: {
|
|
16202
|
+
span: 6
|
|
16203
|
+
}
|
|
16204
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
16205
|
+
style: {
|
|
16206
|
+
marginBottom: '8px'
|
|
16207
|
+
},
|
|
16208
|
+
disabled: disabled,
|
|
16209
|
+
allowClear: false,
|
|
16210
|
+
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)],
|
|
16211
|
+
onChange: function onChange(val) {
|
|
16212
|
+
return changeSystemOrderHandle(val);
|
|
16213
|
+
},
|
|
16214
|
+
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
16215
|
+
}, ((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) {
|
|
16216
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
16217
|
+
key: item.billNo,
|
|
16218
|
+
value: item.billNo,
|
|
16219
|
+
label: item.billNo
|
|
16220
|
+
}, item.billNo);
|
|
16221
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
16222
|
+
className: "gutter-row",
|
|
16223
|
+
xs: {
|
|
16224
|
+
span: 11
|
|
16225
|
+
},
|
|
16226
|
+
sm: {
|
|
16227
|
+
span: 6
|
|
16228
|
+
}
|
|
16229
|
+
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
16230
|
+
style: {
|
|
16231
|
+
marginBottom: '8px'
|
|
16232
|
+
},
|
|
16233
|
+
disabled: disabled,
|
|
16234
|
+
allowClear: false,
|
|
16235
|
+
options: reasonList,
|
|
16236
|
+
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)],
|
|
16237
|
+
onChange: function onChange(val) {
|
|
16238
|
+
return changeTypeHandle(val);
|
|
16239
|
+
}
|
|
16240
|
+
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
16241
|
+
key: 'reissueGoods'
|
|
16242
|
+
}, other), {}, {
|
|
16243
|
+
type: type,
|
|
16244
|
+
disabled: disabled,
|
|
16245
|
+
canUpdateNumber: showChangeBtn,
|
|
16246
|
+
showChangeBtn: showChangeBtn,
|
|
16247
|
+
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
16248
|
+
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)],
|
|
16249
|
+
onChange: function onChange(val) {
|
|
16250
|
+
return changeGoodHandle(val);
|
|
16251
|
+
},
|
|
16252
|
+
onModeChange: handleModeChange,
|
|
16253
|
+
showModeBtn: false,
|
|
16254
|
+
isStrict: isStrict,
|
|
16255
|
+
tradeGoods: {
|
|
16256
|
+
originDataSource: getGoodDetails({
|
|
16257
|
+
mode: isStrict
|
|
16258
|
+
}),
|
|
16259
|
+
selectedGoodsChange: selectedGoodsChange
|
|
16260
|
+
}
|
|
16261
|
+
})));
|
|
16262
|
+
};
|
|
16263
|
+
|
|
16264
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };
|