@kmkf-fe-packages/basic-components 1.22.1-beta.7 → 1.22.1-beta.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/index.esm.js +2589 -1278
- package/dist/index.js +2589 -1276
- package/dist/src/apaas/ApaasLogistics/index.d.ts +1 -0
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +7 -0
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +9 -0
- package/dist/src/bs/component/GoodItem/index.d.ts +5 -1
- package/dist/src/bs/component/model/GyGoodsList.d.ts +36 -0
- package/dist/src/bs/component/model/GyGoodsModal.d.ts +12 -0
- package/dist/src/common/Goods/RichItem.d.ts +6 -1
- package/dist/src/constants/bs.d.ts +3 -0
- package/dist/src/constants/bs_e3.d.ts +3 -0
- package/dist/src/constants/columnsBaseInfoMap.d.ts +7 -0
- package/dist/src/constants/defaultColumns.d.ts +3 -0
- package/dist/src/constants/gy.d.ts +3 -0
- package/dist/src/constants/wdt.d.ts +3 -0
- package/dist/src/constants/wln.d.ts +3 -0
- package/dist/src/gy/Reissue/index.d.ts +3 -0
- package/dist/src/gy/common/index.d.ts +3 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/jst/Goods/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/src/bs/component/GoodItem/bsE3ReissueGoodsColumns.d.ts +0 -29
- package/dist/src/bs/component/GoodItem/wdtReissueGoodsColumns.d.ts +0 -21
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
|
|
75
|
+
return exports;
|
|
76
76
|
};
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
t[e] = r.value;
|
|
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
|
+
};
|
|
248
|
+
}
|
|
249
|
+
function doneResult() {
|
|
250
|
+
return {
|
|
251
|
+
value: undefined,
|
|
252
|
+
done: !0
|
|
253
|
+
};
|
|
254
254
|
}
|
|
255
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
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({
|
|
@@ -940,7 +940,7 @@ var fn$1 = function fn() {
|
|
|
940
940
|
var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
941
941
|
var _document;
|
|
942
942
|
var _ref$maxCount = _ref.maxCount,
|
|
943
|
-
maxCount = _ref$maxCount === void 0 ?
|
|
943
|
+
maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
|
|
944
944
|
_ref$maxSize = _ref.maxSize,
|
|
945
945
|
maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
|
|
946
946
|
_ref$uploadText = _ref.uploadText,
|
|
@@ -6875,7 +6875,7 @@ var fn$2 = function fn() {
|
|
|
6875
6875
|
};
|
|
6876
6876
|
var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
6877
6877
|
var _ref$maxCount = _ref.maxCount,
|
|
6878
|
-
maxCount = _ref$maxCount === void 0 ?
|
|
6878
|
+
maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
|
|
6879
6879
|
_ref$maxSize = _ref.maxSize,
|
|
6880
6880
|
maxSize = _ref$maxSize === void 0 ? 100 : _ref$maxSize,
|
|
6881
6881
|
_ref$onChange = _ref.onChange,
|
|
@@ -7373,7 +7373,8 @@ var Province = function Province(props) {
|
|
|
7373
7373
|
var mapping = {
|
|
7374
7374
|
workOrder: kmkfUtils.AddressData.getInstance(),
|
|
7375
7375
|
bs: kmkfUtils.BsAddressData.getInstance(),
|
|
7376
|
-
wdt: kmkfUtils.WdtAddressData.getInstance()
|
|
7376
|
+
wdt: kmkfUtils.WdtAddressData.getInstance(),
|
|
7377
|
+
gy: kmkfUtils.GyAddressData.getInstance()
|
|
7377
7378
|
};
|
|
7378
7379
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7379
7380
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
@@ -7478,10 +7479,16 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7478
7479
|
var addressData = (type && {
|
|
7479
7480
|
bs: kmkfUtils.BsAddressData,
|
|
7480
7481
|
wdt: kmkfUtils.WdtAddressData,
|
|
7482
|
+
gy: kmkfUtils.GyAddressData,
|
|
7481
7483
|
workOrder: kmkfUtils.AddressData
|
|
7482
7484
|
}[type] || kmkfUtils.AddressData).getInstance();
|
|
7483
7485
|
if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
|
|
7484
|
-
params.address = [
|
|
7486
|
+
// params.address = [
|
|
7487
|
+
// addressData.getProCodeByName(val?.province),
|
|
7488
|
+
// addressData.getProCodeByName(val?.city),
|
|
7489
|
+
// addressData.getProCodeByName(val?.district),
|
|
7490
|
+
// ];
|
|
7491
|
+
params.address = addressData.getCodesByNames([val === null || val === void 0 ? void 0 : val.province, val === null || val === void 0 ? void 0 : val.city, val === null || val === void 0 ? void 0 : val.district]);
|
|
7485
7492
|
}
|
|
7486
7493
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, params));
|
|
7487
7494
|
};
|
|
@@ -7554,11 +7561,13 @@ function ApaasPosting(props) {
|
|
|
7554
7561
|
});
|
|
7555
7562
|
}
|
|
7556
7563
|
|
|
7557
|
-
var _excluded$a = ["value", "onChange", "platformType"];
|
|
7564
|
+
var _excluded$a = ["value", "onChange", "platformType", "type"];
|
|
7558
7565
|
function ApaasLogistics(props) {
|
|
7559
7566
|
var value = props.value,
|
|
7560
7567
|
onChange = props.onChange,
|
|
7561
7568
|
platformType = props.platformType,
|
|
7569
|
+
_props$type = props.type,
|
|
7570
|
+
type = _props$type === void 0 ? 'select' : _props$type,
|
|
7562
7571
|
other = _objectWithoutProperties(props, _excluded$a);
|
|
7563
7572
|
var _useState = React.useState([]),
|
|
7564
7573
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7589,10 +7598,18 @@ function ApaasLogistics(props) {
|
|
|
7589
7598
|
isFirst.current = true;
|
|
7590
7599
|
}
|
|
7591
7600
|
}, []);
|
|
7592
|
-
|
|
7601
|
+
var handleInputChange = function handleInputChange(e) {
|
|
7602
|
+
var val = e.target.value;
|
|
7603
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(val);
|
|
7604
|
+
};
|
|
7605
|
+
return type === 'input' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7606
|
+
value: value,
|
|
7607
|
+
onChange: handleInputChange
|
|
7608
|
+
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7593
7609
|
value: value,
|
|
7594
7610
|
onChange: onChange,
|
|
7595
|
-
options: option
|
|
7611
|
+
options: option,
|
|
7612
|
+
virtual: true
|
|
7596
7613
|
}));
|
|
7597
7614
|
}
|
|
7598
7615
|
|
|
@@ -8122,7 +8139,7 @@ function ApaasAddress(props) {
|
|
|
8122
8139
|
};
|
|
8123
8140
|
var addressData = type === 'bs' ? kmkfUtils.BsAddressData.getInstance() : kmkfUtils.AddressData.getInstance();
|
|
8124
8141
|
if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
|
|
8125
|
-
params.address =
|
|
8142
|
+
params.address = addressData.getCodesByNames([val === null || val === void 0 ? void 0 : val.province, val === null || val === void 0 ? void 0 : val.city, val === null || val === void 0 ? void 0 : val.district]);
|
|
8126
8143
|
}
|
|
8127
8144
|
onChange === null || onChange === void 0 ? void 0 : onChange(params);
|
|
8128
8145
|
};
|
|
@@ -9486,7 +9503,8 @@ var GoodItem = function GoodItem(props) {
|
|
|
9486
9503
|
picUrl: item.picUrl,
|
|
9487
9504
|
numIid: item.numIid,
|
|
9488
9505
|
skuId: item.skuId,
|
|
9489
|
-
outerSkuId: item.outerSkuId
|
|
9506
|
+
outerSkuId: item.outerSkuId,
|
|
9507
|
+
num: 1 //手动选择商品默认数量
|
|
9490
9508
|
};
|
|
9491
9509
|
// if (type === 1) {
|
|
9492
9510
|
// params.outerId = item.outerId; //编码
|
|
@@ -9575,16 +9593,34 @@ var GoodItem = function GoodItem(props) {
|
|
|
9575
9593
|
return _ref5.apply(this, arguments);
|
|
9576
9594
|
};
|
|
9577
9595
|
}();
|
|
9578
|
-
var headerList =
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9596
|
+
var headerList = React.useMemo(function () {
|
|
9597
|
+
if (!Array.isArray(showHeader)) return kmkfUtils.columnsGoodsList.map(function (item) {
|
|
9598
|
+
return item.dataIndex;
|
|
9599
|
+
});
|
|
9600
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
9601
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
9602
|
+
var dataIndexList = [];
|
|
9603
|
+
if (isStringArray) {
|
|
9604
|
+
dataIndexList = showHeader;
|
|
9605
|
+
} else if (isObjectArray) {
|
|
9606
|
+
dataIndexList = showHeader.filter(function (item) {
|
|
9607
|
+
return item.show !== false;
|
|
9608
|
+
}).map(function (item) {
|
|
9609
|
+
return item.dataIndex;
|
|
9610
|
+
});
|
|
9611
|
+
}
|
|
9612
|
+
return dataIndexList || {
|
|
9613
|
+
1: kmkfUtils.columnsGoodsList.map(function (item) {
|
|
9614
|
+
return item.dataIndex;
|
|
9615
|
+
})
|
|
9616
|
+
}[type] || [];
|
|
9617
|
+
}, [showHeader]);
|
|
9582
9618
|
//修改参数
|
|
9583
|
-
var handleChangeValue = function handleChangeValue(key, index) {
|
|
9619
|
+
var handleChangeValue = function handleChangeValue(key, index, replaceFn) {
|
|
9584
9620
|
return function (e) {
|
|
9585
|
-
var _e$target;
|
|
9621
|
+
var _e$target, _e$target2;
|
|
9586
9622
|
var newImgList = _toConsumableArray(imgList);
|
|
9587
|
-
newImgList[index][key] = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
9623
|
+
newImgList[index][key] = replaceFn ? replaceFn(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) : e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value;
|
|
9588
9624
|
var newValue = {
|
|
9589
9625
|
shopId: shopId,
|
|
9590
9626
|
imgList: newImgList
|
|
@@ -9593,35 +9629,67 @@ var GoodItem = function GoodItem(props) {
|
|
|
9593
9629
|
};
|
|
9594
9630
|
};
|
|
9595
9631
|
// TODO: 目前只做了type 1的处理,其他的还是走老的文件 ./index.tsx
|
|
9596
|
-
var goodItemAttrs =
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9632
|
+
var goodItemAttrs = React.useMemo(function () {
|
|
9633
|
+
var initList = [{
|
|
9634
|
+
isShow: headerList.includes('title'),
|
|
9635
|
+
key: 'title',
|
|
9636
|
+
label: '商品名称'
|
|
9637
|
+
}, {
|
|
9638
|
+
isShow: headerList.includes('outerId'),
|
|
9639
|
+
key: 'outerId',
|
|
9640
|
+
label: '商品编码'
|
|
9641
|
+
},
|
|
9642
|
+
// { isShow: headerList.includes('picUrl'), key: 'picUrl', label: '图片' },
|
|
9643
|
+
{
|
|
9644
|
+
isShow: headerList.includes('numIid'),
|
|
9645
|
+
key: 'numIid',
|
|
9646
|
+
label: '商品id'
|
|
9647
|
+
}, {
|
|
9648
|
+
isShow: headerList.includes('num'),
|
|
9649
|
+
key: 'num',
|
|
9650
|
+
label: '商品数量',
|
|
9651
|
+
replaceFn: function replaceFn(value) {
|
|
9652
|
+
// 使用正则表达式匹配所有数字字符
|
|
9653
|
+
var numbers = String(value || '').match(/\d+/g);
|
|
9654
|
+
// 如果没有匹配到任何数字字符,返回null
|
|
9655
|
+
if (!numbers) {
|
|
9656
|
+
return null;
|
|
9657
|
+
}
|
|
9658
|
+
// 将匹配到的数字字符拼接成一个新的数字
|
|
9659
|
+
return Number(numbers.join('')) ? Number(numbers.join('')) : null;
|
|
9660
|
+
}
|
|
9661
|
+
}, {
|
|
9662
|
+
isShow: changeSku && headerList.includes('skuId'),
|
|
9663
|
+
key: 'skuId',
|
|
9664
|
+
label: 'SKU ID'
|
|
9665
|
+
}, {
|
|
9666
|
+
isShow: changeSku && headerList.includes('outerSkuId'),
|
|
9667
|
+
key: 'outerSkuId',
|
|
9668
|
+
label: 'SKU 编码'
|
|
9669
|
+
}, {
|
|
9670
|
+
isShow: changeSku && headerList.includes('propertiesName'),
|
|
9671
|
+
key: 'propertiesName',
|
|
9672
|
+
label: 'SKU 信息'
|
|
9673
|
+
}];
|
|
9674
|
+
if (!Array.isArray(showHeader)) return initList;
|
|
9675
|
+
var newList = [];
|
|
9676
|
+
headerList.forEach(function (dataIndex) {
|
|
9677
|
+
if (initList.find(function (item) {
|
|
9678
|
+
return item.key === dataIndex;
|
|
9679
|
+
})) {
|
|
9680
|
+
newList.push(initList.find(function (item) {
|
|
9681
|
+
return item.key === dataIndex;
|
|
9682
|
+
}));
|
|
9683
|
+
}
|
|
9684
|
+
});
|
|
9685
|
+
return newList;
|
|
9686
|
+
}, [headerList, showHeader]);
|
|
9687
|
+
var hasPic = React.useMemo(function () {
|
|
9688
|
+
return headerList.includes('picUrl');
|
|
9689
|
+
}, [headerList]);
|
|
9690
|
+
var hasAttr = React.useMemo(function () {
|
|
9691
|
+
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
9692
|
+
}, [hasPic, headerList]);
|
|
9625
9693
|
return /*#__PURE__*/React__default['default'].createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React__default['default'].createElement("p", {
|
|
9626
9694
|
className: "goods-title"
|
|
9627
9695
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React__default['default'].createElement("p", {
|
|
@@ -9679,7 +9747,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
9679
9747
|
title: String(img[item.key] || ''),
|
|
9680
9748
|
value: img[item.key],
|
|
9681
9749
|
disabled: item.disabled || disabled,
|
|
9682
|
-
onChange: handleChangeValue(item.key, index)
|
|
9750
|
+
onChange: handleChangeValue(item.key, index, item.replaceFn)
|
|
9683
9751
|
}));
|
|
9684
9752
|
}), !disabled && !hasPic && type !== 4 && changeSku ? /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
9685
9753
|
style: {
|
|
@@ -10962,19 +11030,26 @@ var jstGoods = function jstGoods(props) {
|
|
|
10962
11030
|
_props$showField = props.showField,
|
|
10963
11031
|
showField = _props$showField === void 0 ? '' : _props$showField,
|
|
10964
11032
|
_props$platformType = props.platformType,
|
|
10965
|
-
platformType = _props$platformType === void 0 ? 'default' : _props$platformType
|
|
11033
|
+
platformType = _props$platformType === void 0 ? 'default' : _props$platformType,
|
|
11034
|
+
onlyShowFieldSelect = props.onlyShowFieldSelect;
|
|
10966
11035
|
var _useState = React.useState(0),
|
|
10967
11036
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10968
11037
|
changeIndex = _useState2[0],
|
|
10969
11038
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
10970
11039
|
var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
|
|
10971
|
-
var isSelectName = ['wdt', 'bsE3', 'km'].includes(platformType);
|
|
11040
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy'].includes(platformType);
|
|
11041
|
+
var logisticsType = type === 1 && platformType === 'gy' ? 'input' : 'select';
|
|
10972
11042
|
React.useEffect(function () {
|
|
10973
11043
|
//没有值塞个默认值
|
|
10974
11044
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
10975
11045
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
|
|
10976
11046
|
}
|
|
10977
11047
|
}, [value, type]);
|
|
11048
|
+
React.useEffect(function () {
|
|
11049
|
+
if (changeIndex > (value === null || value === void 0 ? void 0 : value.length) - 1) {
|
|
11050
|
+
setChangeIndex(0);
|
|
11051
|
+
}
|
|
11052
|
+
}, value);
|
|
10978
11053
|
var content = function content(item, index) {
|
|
10979
11054
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10980
11055
|
style: {
|
|
@@ -10985,7 +11060,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10985
11060
|
style: {
|
|
10986
11061
|
textAlign: 'center'
|
|
10987
11062
|
}
|
|
10988
|
-
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
11063
|
+
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F"), item.sid && /*#__PURE__*/React__default['default'].createElement("span", null, "(\u7CFB\u7EDF\u5355\u53F7:", item.sid, ")")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
10989
11064
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10990
11065
|
key: index
|
|
10991
11066
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
@@ -10995,10 +11070,12 @@ var jstGoods = function jstGoods(props) {
|
|
|
10995
11070
|
}), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", null, t.title), /*#__PURE__*/React__default['default'].createElement("div", null, "\u7F16\u7801\uFF1A", t.skuId))));
|
|
10996
11071
|
}));
|
|
10997
11072
|
};
|
|
10998
|
-
var handleSelected = function handleSelected(val, type, option) {
|
|
11073
|
+
var handleSelected = function handleSelected(val, type, option, onlyShowFieldSelect) {
|
|
10999
11074
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
11000
11075
|
changeOrderInfo[type] = val;
|
|
11001
|
-
|
|
11076
|
+
if (!onlyShowFieldSelect) {
|
|
11077
|
+
changeOrderInfo['sendId'] = option.value;
|
|
11078
|
+
}
|
|
11002
11079
|
if (isSelectName && type === 'sendName') {
|
|
11003
11080
|
changeOrderInfo['sendSnapshotName'] = option.label;
|
|
11004
11081
|
}
|
|
@@ -11037,24 +11114,32 @@ var jstGoods = function jstGoods(props) {
|
|
|
11037
11114
|
return setChangeIndex(index);
|
|
11038
11115
|
}
|
|
11039
11116
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
11040
|
-
}))) : null, value.length || type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
11117
|
+
}))) : null, value.length || type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, _objectSpread2(_objectSpread2({
|
|
11118
|
+
type: logisticsType,
|
|
11041
11119
|
disabled: disabled,
|
|
11042
11120
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
11043
11121
|
onChange: function onChange(val) {
|
|
11044
|
-
|
|
11122
|
+
if (logisticsType === 'input') {
|
|
11123
|
+
changeInputHandle(null, 'logisticsCompany');
|
|
11124
|
+
changeInputHandle(val, 'logisticsCompanyName');
|
|
11125
|
+
} else {
|
|
11126
|
+
changeInputHandle(val, 'logisticsCompany');
|
|
11127
|
+
}
|
|
11045
11128
|
},
|
|
11046
|
-
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex
|
|
11129
|
+
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex[logisticsType === 'input' ? 'logisticsCompanyName' : 'logisticsCompany']
|
|
11130
|
+
}, logisticsType === 'input' ? {} : {
|
|
11047
11131
|
showSearch: true,
|
|
11132
|
+
dropdownMatchSelectWidth: false,
|
|
11048
11133
|
filterOption: function filterOption(input, option) {
|
|
11049
11134
|
return option.label.includes(input);
|
|
11050
|
-
}
|
|
11051
|
-
|
|
11135
|
+
}
|
|
11136
|
+
}), {}, {
|
|
11052
11137
|
style: {
|
|
11053
11138
|
minWidth: '100px',
|
|
11054
11139
|
maxWidth: '180px'
|
|
11055
11140
|
},
|
|
11056
11141
|
platformType: platformType
|
|
11057
|
-
}) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11142
|
+
})) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11058
11143
|
disabled: disabled,
|
|
11059
11144
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
11060
11145
|
onChange: function onChange(e) {
|
|
@@ -11094,7 +11179,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11094
11179
|
filterOption: filterOption,
|
|
11095
11180
|
value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName) || null,
|
|
11096
11181
|
onChange: function onChange(value, option) {
|
|
11097
|
-
return handleSelected(value, 'sendName', option);
|
|
11182
|
+
return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
|
|
11098
11183
|
}
|
|
11099
11184
|
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11100
11185
|
disabled: disabled,
|
|
@@ -12438,199 +12523,1645 @@ var GoodsModal$4 = function GoodsModal(props, ref) {
|
|
|
12438
12523
|
};
|
|
12439
12524
|
var BsE3GoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$4);
|
|
12440
12525
|
|
|
12526
|
+
var getTableData$2 = function getTableData(_ref, formData) {
|
|
12527
|
+
var current = _ref.current,
|
|
12528
|
+
pageSize = _ref.pageSize;
|
|
12529
|
+
var data = {
|
|
12530
|
+
skuName: formData.skuName || null,
|
|
12531
|
+
skuCode: formData.skuCode || null,
|
|
12532
|
+
goodName: formData.goodName || null,
|
|
12533
|
+
goodNo: formData.goodNo || null
|
|
12534
|
+
};
|
|
12535
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12536
|
+
method: 'post',
|
|
12537
|
+
data: _objectSpread2({
|
|
12538
|
+
pageSize: pageSize,
|
|
12539
|
+
pageNo: current,
|
|
12540
|
+
platform: 'GY_ERP'
|
|
12541
|
+
}, data)
|
|
12542
|
+
}).then(function (res) {
|
|
12543
|
+
var _res$data = res.data,
|
|
12544
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
12545
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
12546
|
+
_res$data$total = _res$data.total,
|
|
12547
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
12548
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
12549
|
+
return _objectSpread2({}, item);
|
|
12550
|
+
});
|
|
12551
|
+
return {
|
|
12552
|
+
total: total,
|
|
12553
|
+
list: newProducts
|
|
12554
|
+
};
|
|
12555
|
+
});
|
|
12556
|
+
};
|
|
12441
12557
|
var columns$3 = [{
|
|
12442
|
-
dataIndex: '
|
|
12443
|
-
title:
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
},
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
width: 150
|
|
12453
|
-
}, {
|
|
12454
|
-
dataIndex: 'goodsShortName',
|
|
12455
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12456
|
-
width: 150
|
|
12457
|
-
}, {
|
|
12458
|
-
dataIndex: 'picPath',
|
|
12459
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
12460
|
-
width: 150
|
|
12558
|
+
dataIndex: 'index',
|
|
12559
|
+
title: 'NO',
|
|
12560
|
+
render: function render(val, record, index) {
|
|
12561
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12562
|
+
style: {
|
|
12563
|
+
width: 25
|
|
12564
|
+
}
|
|
12565
|
+
}, index + 1);
|
|
12566
|
+
},
|
|
12567
|
+
width: 80
|
|
12461
12568
|
}, {
|
|
12462
|
-
dataIndex: '
|
|
12463
|
-
title:
|
|
12464
|
-
width:
|
|
12569
|
+
dataIndex: 'specName',
|
|
12570
|
+
title: 'SKU名称',
|
|
12571
|
+
width: 250,
|
|
12572
|
+
ellipsis: true
|
|
12465
12573
|
}, {
|
|
12466
|
-
dataIndex: '
|
|
12467
|
-
title:
|
|
12468
|
-
width:
|
|
12574
|
+
dataIndex: 'specNo',
|
|
12575
|
+
title: 'SKU编码',
|
|
12576
|
+
width: 200,
|
|
12577
|
+
ellipsis: true
|
|
12469
12578
|
}, {
|
|
12470
|
-
dataIndex: '
|
|
12471
|
-
title:
|
|
12472
|
-
width:
|
|
12579
|
+
dataIndex: 'goodName',
|
|
12580
|
+
title: '商品名称',
|
|
12581
|
+
width: 250,
|
|
12582
|
+
ellipsis: true
|
|
12473
12583
|
}, {
|
|
12474
|
-
dataIndex: '
|
|
12475
|
-
title: "\
|
|
12476
|
-
|
|
12584
|
+
dataIndex: 'goodShortName',
|
|
12585
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12586
|
+
ellipsis: true,
|
|
12587
|
+
width: 250
|
|
12477
12588
|
}, {
|
|
12478
|
-
dataIndex: '
|
|
12479
|
-
title:
|
|
12480
|
-
width:
|
|
12589
|
+
dataIndex: 'goodNo',
|
|
12590
|
+
title: '商品编码',
|
|
12591
|
+
width: 200,
|
|
12592
|
+
ellipsis: true
|
|
12481
12593
|
}, {
|
|
12482
|
-
dataIndex: '
|
|
12483
|
-
title:
|
|
12484
|
-
width:
|
|
12594
|
+
dataIndex: 'goodPicUrl',
|
|
12595
|
+
title: '商品图片',
|
|
12596
|
+
width: 100,
|
|
12597
|
+
render: function render(picUrl) {
|
|
12598
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12599
|
+
style: {
|
|
12600
|
+
width: '40px',
|
|
12601
|
+
height: '40px',
|
|
12602
|
+
objectFit: 'contain'
|
|
12603
|
+
},
|
|
12604
|
+
src: picUrl
|
|
12605
|
+
});
|
|
12606
|
+
}
|
|
12485
12607
|
}, {
|
|
12486
12608
|
dataIndex: 'brandName',
|
|
12487
|
-
title:
|
|
12488
|
-
width:
|
|
12489
|
-
|
|
12490
|
-
dataIndex: 'goodsNumber',
|
|
12491
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
12492
|
-
width: 150
|
|
12493
|
-
}, {
|
|
12494
|
-
dataIndex: 'goodsPrice',
|
|
12495
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12496
|
-
width: 150
|
|
12609
|
+
title: '品牌名称',
|
|
12610
|
+
width: 200,
|
|
12611
|
+
ellipsis: true
|
|
12497
12612
|
}, {
|
|
12498
|
-
dataIndex: '
|
|
12499
|
-
title: "\
|
|
12500
|
-
|
|
12613
|
+
dataIndex: 'retailPrice',
|
|
12614
|
+
title: "\u6807\u51C6\u552E\u4EF7",
|
|
12615
|
+
ellipsis: true,
|
|
12616
|
+
width: 100
|
|
12501
12617
|
}, {
|
|
12502
|
-
dataIndex: '
|
|
12503
|
-
title: "\
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
12507
|
-
}
|
|
12618
|
+
dataIndex: 'costPrice',
|
|
12619
|
+
title: "\u6210\u672C\u4EF7",
|
|
12620
|
+
ellipsis: true,
|
|
12621
|
+
width: 100
|
|
12508
12622
|
}];
|
|
12509
|
-
var
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
}
|
|
12524
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12525
|
-
};
|
|
12526
|
-
},
|
|
12527
|
-
goodsPrice: function goodsPrice(_ref2) {
|
|
12528
|
-
var disabled = _ref2.disabled,
|
|
12529
|
-
updateHandle = _ref2.updateHandle;
|
|
12530
|
-
return function (val, record, index) {
|
|
12531
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
12532
|
-
style: {
|
|
12533
|
-
width: 70
|
|
12534
|
-
},
|
|
12535
|
-
value: val,
|
|
12536
|
-
min: 0,
|
|
12537
|
-
onChange: function onChange(value) {
|
|
12538
|
-
return updateHandle(value, index, 'goodsPrice');
|
|
12539
|
-
}
|
|
12540
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12541
|
-
};
|
|
12542
|
-
},
|
|
12543
|
-
isGift: function isGift(_ref3) {
|
|
12544
|
-
var disabled = _ref3.disabled,
|
|
12545
|
-
updateHandle = _ref3.updateHandle;
|
|
12546
|
-
return function (val, record, index) {
|
|
12547
|
-
var options = [{
|
|
12548
|
-
label: '是',
|
|
12549
|
-
value: 1
|
|
12550
|
-
}, {
|
|
12551
|
-
label: '否',
|
|
12552
|
-
value: 0
|
|
12553
|
-
}];
|
|
12554
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
12555
|
-
style: {
|
|
12556
|
-
width: 70
|
|
12557
|
-
},
|
|
12558
|
-
options: options,
|
|
12559
|
-
value: val,
|
|
12560
|
-
onChange: function onChange(value) {
|
|
12561
|
-
return updateHandle(value, index, 'isGift');
|
|
12562
|
-
},
|
|
12563
|
-
getPopupContainer: function getPopupContainer() {
|
|
12564
|
-
return document.getElementById('bsE3ReissueGoods');
|
|
12565
|
-
}
|
|
12566
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
12623
|
+
var GoodList$2 = function GoodList(props, ref) {
|
|
12624
|
+
var _useState = React.useState([]),
|
|
12625
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12626
|
+
selectList = _useState2[0],
|
|
12627
|
+
setSelect = _useState2[1];
|
|
12628
|
+
var _useState3 = React.useState([]),
|
|
12629
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12630
|
+
selectIds = _useState4[0],
|
|
12631
|
+
setSelectIds = _useState4[1];
|
|
12632
|
+
React.useImperativeHandle(ref, function () {
|
|
12633
|
+
return {
|
|
12634
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
12635
|
+
return selectList;
|
|
12636
|
+
}
|
|
12567
12637
|
};
|
|
12568
|
-
}
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12638
|
+
});
|
|
12639
|
+
var _Form$useForm = antd.Form.useForm(),
|
|
12640
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
12641
|
+
form = _Form$useForm2[0];
|
|
12642
|
+
var _useAntdTable = ahooks.useAntdTable(getTableData$2, {
|
|
12643
|
+
defaultPageSize: 10,
|
|
12644
|
+
form: form
|
|
12645
|
+
}),
|
|
12646
|
+
tableProps = _useAntdTable.tableProps,
|
|
12647
|
+
search = _useAntdTable.search,
|
|
12648
|
+
params = _useAntdTable.params;
|
|
12649
|
+
var submit = search.submit,
|
|
12650
|
+
reset = search.reset;
|
|
12651
|
+
var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
12652
|
+
layout: "inline",
|
|
12653
|
+
form: form
|
|
12654
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12655
|
+
name: "skuName",
|
|
12656
|
+
style: {
|
|
12657
|
+
marginBottom: '12px'
|
|
12658
|
+
}
|
|
12659
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12660
|
+
placeholder: "\u5546\u54C1sku\u540D\u79F0",
|
|
12661
|
+
allowClear: true,
|
|
12662
|
+
style: {
|
|
12663
|
+
width: 150
|
|
12664
|
+
}
|
|
12665
|
+
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12666
|
+
name: "skuCode",
|
|
12667
|
+
style: {
|
|
12668
|
+
marginBottom: '12px'
|
|
12669
|
+
}
|
|
12670
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12671
|
+
placeholder: "\u5546\u54C1sku\u7F16\u7801",
|
|
12672
|
+
allowClear: true,
|
|
12673
|
+
style: {
|
|
12674
|
+
width: 150
|
|
12675
|
+
}
|
|
12676
|
+
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12677
|
+
name: "goodName",
|
|
12678
|
+
style: {
|
|
12679
|
+
marginBottom: '12px'
|
|
12680
|
+
}
|
|
12681
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12682
|
+
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
12683
|
+
allowClear: true,
|
|
12684
|
+
style: {
|
|
12685
|
+
width: 150
|
|
12686
|
+
}
|
|
12687
|
+
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12688
|
+
name: "goodNo",
|
|
12689
|
+
style: {
|
|
12690
|
+
marginBottom: '12px'
|
|
12691
|
+
}
|
|
12692
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12693
|
+
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
12694
|
+
allowClear: true,
|
|
12695
|
+
style: {
|
|
12696
|
+
width: 150
|
|
12697
|
+
}
|
|
12698
|
+
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12699
|
+
style: {
|
|
12700
|
+
marginBottom: '12px'
|
|
12701
|
+
}
|
|
12702
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12703
|
+
type: "primary",
|
|
12704
|
+
style: {
|
|
12705
|
+
marginRight: '8px'
|
|
12706
|
+
},
|
|
12707
|
+
onClick: submit
|
|
12708
|
+
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12709
|
+
onClick: reset
|
|
12710
|
+
}, "\u91CD\u7F6E")));
|
|
12711
|
+
var rowSelection = {
|
|
12712
|
+
selectedRowKeys: selectIds,
|
|
12713
|
+
fixed: true,
|
|
12714
|
+
onSelect: function onSelect(record, selected) {
|
|
12715
|
+
if (selected) {
|
|
12716
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.specNo]));
|
|
12717
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
12718
|
+
} else {
|
|
12719
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
12720
|
+
return t !== record.specNo;
|
|
12721
|
+
}));
|
|
12722
|
+
setSelect(selectList.filter(function (t) {
|
|
12723
|
+
return t.specNo !== record.specNo;
|
|
12724
|
+
}));
|
|
12725
|
+
}
|
|
12726
|
+
},
|
|
12727
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
12728
|
+
if (selected) {
|
|
12729
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
12730
|
+
return t.specNo;
|
|
12731
|
+
}))));
|
|
12732
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
12733
|
+
} else {
|
|
12734
|
+
setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
|
|
12735
|
+
return t.specNo;
|
|
12736
|
+
})));
|
|
12737
|
+
var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
12738
|
+
return arrVal.specNo !== othVal.specNo;
|
|
12739
|
+
});
|
|
12740
|
+
setSelect(list);
|
|
12741
|
+
}
|
|
12742
|
+
}
|
|
12743
|
+
};
|
|
12744
|
+
var showTable = function showTable() {
|
|
12745
|
+
var handleDelete = function handleDelete(record) {
|
|
12746
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
12747
|
+
return t !== record.specNo;
|
|
12748
|
+
}));
|
|
12749
|
+
setSelect(selectList.filter(function (t) {
|
|
12750
|
+
return t.specNo !== record.specNo;
|
|
12751
|
+
}));
|
|
12752
|
+
};
|
|
12753
|
+
var showColumns = [{
|
|
12754
|
+
dataIndex: '',
|
|
12755
|
+
title: "\u64CD\u4F5C",
|
|
12756
|
+
ellipsis: true,
|
|
12757
|
+
width: 100,
|
|
12758
|
+
render: function render(val, record) {
|
|
12759
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12760
|
+
type: "link",
|
|
12761
|
+
onClick: function onClick() {
|
|
12762
|
+
return handleDelete(record);
|
|
12763
|
+
}
|
|
12764
|
+
}, "\u5220\u9664");
|
|
12765
|
+
}
|
|
12766
|
+
}].concat(lodash.takeRight(columns$3, columns$3.length - 1));
|
|
12767
|
+
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12768
|
+
style: {
|
|
12769
|
+
width: '100%',
|
|
12770
|
+
maxWidth: '387px'
|
|
12771
|
+
}
|
|
12772
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
12773
|
+
columns: showColumns,
|
|
12774
|
+
rowKey: 'specNo',
|
|
12775
|
+
dataSource: selectList,
|
|
12776
|
+
scroll: {
|
|
12777
|
+
x: '100%',
|
|
12778
|
+
y: 250
|
|
12779
|
+
},
|
|
12780
|
+
pagination: {
|
|
12781
|
+
size: 'small',
|
|
12782
|
+
total: selectIds.length,
|
|
12783
|
+
pageSize: 10,
|
|
12784
|
+
showSizeChanger: false
|
|
12785
|
+
}
|
|
12786
|
+
})) : null;
|
|
12787
|
+
};
|
|
12788
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, advanceSearchForm, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12789
|
+
style: {
|
|
12790
|
+
marginTop: '4px'
|
|
12791
|
+
}
|
|
12792
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
12793
|
+
rowSelection: rowSelection,
|
|
12794
|
+
rowKey: "specNo",
|
|
12795
|
+
columns: columns$3,
|
|
12796
|
+
scroll: {
|
|
12797
|
+
x: '100%',
|
|
12798
|
+
y: 250
|
|
12799
|
+
}
|
|
12800
|
+
}, tableProps))), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
12801
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
12802
|
+
return triggerNode.parentElement;
|
|
12803
|
+
},
|
|
12804
|
+
content: showTable(),
|
|
12805
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
12806
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12807
|
+
danger: true,
|
|
12808
|
+
type: "text"
|
|
12809
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null))));
|
|
12810
|
+
};
|
|
12811
|
+
var GyGoodsList = /*#__PURE__*/React.forwardRef(GoodList$2);
|
|
12812
|
+
|
|
12813
|
+
var GyGoodsModal = function GyGoodsModal(props, ref) {
|
|
12814
|
+
React.useImperativeHandle(ref, function () {
|
|
12815
|
+
return {
|
|
12816
|
+
open: function open() {
|
|
12817
|
+
setVisible(true);
|
|
12818
|
+
}
|
|
12819
|
+
};
|
|
12820
|
+
});
|
|
12821
|
+
var onSubmit = props.onSubmit,
|
|
12822
|
+
width = props.width;
|
|
12823
|
+
var _useState = React.useState(false),
|
|
12824
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12825
|
+
visible = _useState2[0],
|
|
12826
|
+
setVisible = _useState2[1];
|
|
12827
|
+
var gyGoodsListRef = React.useRef(null);
|
|
12828
|
+
var _onCancel = function onCancel() {
|
|
12829
|
+
setVisible(false);
|
|
12830
|
+
};
|
|
12831
|
+
var onOk = function onOk() {
|
|
12832
|
+
var _gyGoodsListRef$curre;
|
|
12833
|
+
var selectedList = ((_gyGoodsListRef$curre = gyGoodsListRef.current) === null || _gyGoodsListRef$curre === void 0 ? void 0 : _gyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
12834
|
+
onSubmit(selectedList);
|
|
12835
|
+
_onCancel();
|
|
12836
|
+
};
|
|
12837
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
12838
|
+
title: '选择商品',
|
|
12839
|
+
okText: '确认',
|
|
12840
|
+
cancelText: '取消',
|
|
12841
|
+
visible: visible,
|
|
12842
|
+
width: width || 850,
|
|
12843
|
+
onCancel: function onCancel() {
|
|
12844
|
+
_onCancel();
|
|
12845
|
+
},
|
|
12846
|
+
onOk: onOk,
|
|
12847
|
+
wrapClassName: "goodModal"
|
|
12848
|
+
}, /*#__PURE__*/React__default['default'].createElement(GyGoodsList, {
|
|
12849
|
+
ref: gyGoodsListRef
|
|
12850
|
+
})));
|
|
12851
|
+
};
|
|
12852
|
+
var GyGoodsModal$1 = /*#__PURE__*/React.forwardRef(GyGoodsModal);
|
|
12853
|
+
|
|
12854
|
+
var getColumns = function getColumns(_ref) {
|
|
12855
|
+
var _ref$text = _ref.text,
|
|
12856
|
+
disabled = _ref.disabled,
|
|
12857
|
+
updateHandle = _ref.updateHandle;
|
|
12858
|
+
return {
|
|
12859
|
+
//百胜E3补发商品
|
|
12860
|
+
BS_E3_REISSUE_GOODS: [{
|
|
12861
|
+
dataIndex: 'sku',
|
|
12862
|
+
title: "SKU",
|
|
12863
|
+
width: 150
|
|
12864
|
+
}, {
|
|
12865
|
+
dataIndex: 'skuId',
|
|
12866
|
+
title: "SKU ID",
|
|
12867
|
+
width: 150
|
|
12868
|
+
}, {
|
|
12869
|
+
dataIndex: 'goodsName',
|
|
12870
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12871
|
+
width: 150
|
|
12872
|
+
}, {
|
|
12873
|
+
dataIndex: 'goodsShortName',
|
|
12874
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12875
|
+
width: 150
|
|
12876
|
+
}, {
|
|
12877
|
+
dataIndex: 'picPath',
|
|
12878
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
12879
|
+
width: 150,
|
|
12880
|
+
render: function render(val) {
|
|
12881
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
12882
|
+
width: 60,
|
|
12883
|
+
src: val
|
|
12884
|
+
});
|
|
12885
|
+
}
|
|
12886
|
+
}, {
|
|
12887
|
+
dataIndex: 'goodsSn',
|
|
12888
|
+
title: "\u8D27\u53F7",
|
|
12889
|
+
width: 150
|
|
12890
|
+
}, {
|
|
12891
|
+
dataIndex: 'goodsId',
|
|
12892
|
+
title: "\u8D27\u53F7ID",
|
|
12893
|
+
width: 150
|
|
12894
|
+
}, {
|
|
12895
|
+
dataIndex: 'colorName',
|
|
12896
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12897
|
+
width: 150
|
|
12898
|
+
}, {
|
|
12899
|
+
dataIndex: 'colorCode',
|
|
12900
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12901
|
+
width: 150
|
|
12902
|
+
}, {
|
|
12903
|
+
dataIndex: 'sizeName',
|
|
12904
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12905
|
+
width: 150
|
|
12906
|
+
}, {
|
|
12907
|
+
dataIndex: 'sizeCode',
|
|
12908
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12909
|
+
width: 150
|
|
12910
|
+
}, {
|
|
12911
|
+
dataIndex: 'brandName',
|
|
12912
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12913
|
+
width: 150
|
|
12914
|
+
}, {
|
|
12915
|
+
dataIndex: 'goodsNumber',
|
|
12916
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
12917
|
+
width: 150
|
|
12918
|
+
}, {
|
|
12919
|
+
dataIndex: 'goodsPrice',
|
|
12920
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12921
|
+
width: 150
|
|
12922
|
+
}, {
|
|
12923
|
+
dataIndex: 'shopPrice',
|
|
12924
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12925
|
+
width: 150
|
|
12926
|
+
}, {
|
|
12927
|
+
dataIndex: 'isGift',
|
|
12928
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
12929
|
+
width: 150,
|
|
12930
|
+
render: function render(val) {
|
|
12931
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
12932
|
+
}
|
|
12933
|
+
}],
|
|
12934
|
+
//百胜E3商品信息
|
|
12935
|
+
BS_E3_GOODS: [{
|
|
12936
|
+
dataIndex: 'sku',
|
|
12937
|
+
title: "SKU",
|
|
12938
|
+
align: 'center',
|
|
12939
|
+
ellipsis: true,
|
|
12940
|
+
width: 150
|
|
12941
|
+
}, {
|
|
12942
|
+
dataIndex: 'skuId',
|
|
12943
|
+
title: "SKU ID",
|
|
12944
|
+
align: 'center',
|
|
12945
|
+
ellipsis: true,
|
|
12946
|
+
width: 150
|
|
12947
|
+
}, {
|
|
12948
|
+
dataIndex: 'goodsName',
|
|
12949
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12950
|
+
align: 'center',
|
|
12951
|
+
ellipsis: true,
|
|
12952
|
+
width: 150
|
|
12953
|
+
}, {
|
|
12954
|
+
dataIndex: 'goodsShortName',
|
|
12955
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12956
|
+
align: 'center',
|
|
12957
|
+
ellipsis: true,
|
|
12958
|
+
width: 100
|
|
12959
|
+
}, {
|
|
12960
|
+
dataIndex: 'picPath',
|
|
12961
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
12962
|
+
align: 'center',
|
|
12963
|
+
ellipsis: true,
|
|
12964
|
+
width: 100,
|
|
12965
|
+
render: function render(val) {
|
|
12966
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
12967
|
+
width: 60,
|
|
12968
|
+
src: val
|
|
12969
|
+
});
|
|
12970
|
+
}
|
|
12971
|
+
}, {
|
|
12972
|
+
dataIndex: 'goodsSn',
|
|
12973
|
+
title: "\u8D27\u53F7",
|
|
12974
|
+
align: 'center',
|
|
12975
|
+
ellipsis: true,
|
|
12976
|
+
width: 150
|
|
12977
|
+
}, {
|
|
12978
|
+
dataIndex: 'goodsId',
|
|
12979
|
+
title: "\u8D27\u53F7ID",
|
|
12980
|
+
align: 'center',
|
|
12981
|
+
ellipsis: true,
|
|
12982
|
+
width: 150
|
|
12983
|
+
}, {
|
|
12984
|
+
dataIndex: 'colorName',
|
|
12985
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12986
|
+
align: 'center',
|
|
12987
|
+
ellipsis: true,
|
|
12988
|
+
width: 100
|
|
12989
|
+
}, {
|
|
12990
|
+
dataIndex: 'colorCode',
|
|
12991
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12992
|
+
align: 'center',
|
|
12993
|
+
ellipsis: true,
|
|
12994
|
+
width: 150
|
|
12995
|
+
}, {
|
|
12996
|
+
dataIndex: 'sizeName',
|
|
12997
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12998
|
+
align: 'center',
|
|
12999
|
+
ellipsis: true,
|
|
13000
|
+
width: 100
|
|
13001
|
+
}, {
|
|
13002
|
+
dataIndex: 'sizeCode',
|
|
13003
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
13004
|
+
align: 'center',
|
|
13005
|
+
ellipsis: true,
|
|
13006
|
+
width: 100
|
|
13007
|
+
}, {
|
|
13008
|
+
dataIndex: 'brandName',
|
|
13009
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
13010
|
+
align: 'center',
|
|
13011
|
+
ellipsis: true,
|
|
13012
|
+
width: 150
|
|
13013
|
+
}, {
|
|
13014
|
+
dataIndex: 'goodsNumber',
|
|
13015
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
13016
|
+
align: 'center',
|
|
13017
|
+
ellipsis: true,
|
|
13018
|
+
width: 100,
|
|
13019
|
+
render: function render(val, record, index) {
|
|
13020
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13021
|
+
style: {
|
|
13022
|
+
width: 70
|
|
13023
|
+
},
|
|
13024
|
+
value: val,
|
|
13025
|
+
min: 1,
|
|
13026
|
+
precision: 0,
|
|
13027
|
+
onChange: function onChange(num) {
|
|
13028
|
+
return updateHandle(num, index, 'goodsNumber');
|
|
13029
|
+
}
|
|
13030
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13031
|
+
}
|
|
13032
|
+
}, {
|
|
13033
|
+
dataIndex: 'goodsPrice',
|
|
13034
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
13035
|
+
align: 'center',
|
|
13036
|
+
ellipsis: true,
|
|
13037
|
+
width: 120,
|
|
13038
|
+
render: function render(val, record, index) {
|
|
13039
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13040
|
+
style: {
|
|
13041
|
+
width: 70
|
|
13042
|
+
},
|
|
13043
|
+
value: val,
|
|
13044
|
+
min: 0,
|
|
13045
|
+
precision: 2,
|
|
13046
|
+
onChange: function onChange(num) {
|
|
13047
|
+
return updateHandle(num, index, 'goodsPrice');
|
|
13048
|
+
}
|
|
13049
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13050
|
+
}
|
|
13051
|
+
}, {
|
|
13052
|
+
dataIndex: 'shopPrice',
|
|
13053
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
13054
|
+
align: 'center',
|
|
13055
|
+
ellipsis: true,
|
|
13056
|
+
width: 120
|
|
13057
|
+
}, {
|
|
13058
|
+
dataIndex: 'sharePrice',
|
|
13059
|
+
title: "\u5206\u644A\u4EF7",
|
|
13060
|
+
align: 'center',
|
|
13061
|
+
ellipsis: true,
|
|
13062
|
+
width: 120
|
|
13063
|
+
}, {
|
|
13064
|
+
dataIndex: 'sharePayment',
|
|
13065
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
13066
|
+
align: 'center',
|
|
13067
|
+
ellipsis: true,
|
|
13068
|
+
width: 120
|
|
13069
|
+
}, {
|
|
13070
|
+
dataIndex: 'payment',
|
|
13071
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13072
|
+
align: 'center',
|
|
13073
|
+
ellipsis: true,
|
|
13074
|
+
width: 120,
|
|
13075
|
+
render: function render(val, record, index) {
|
|
13076
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13077
|
+
style: {
|
|
13078
|
+
width: 70
|
|
13079
|
+
},
|
|
13080
|
+
value: val,
|
|
13081
|
+
min: 0,
|
|
13082
|
+
precision: 2,
|
|
13083
|
+
onChange: function onChange(num) {
|
|
13084
|
+
return updateHandle(num, index, 'payment');
|
|
13085
|
+
}
|
|
13086
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13087
|
+
}
|
|
13088
|
+
}, {
|
|
13089
|
+
dataIndex: 'tcSku',
|
|
13090
|
+
title: "\u5957\u9910SKU",
|
|
13091
|
+
align: 'center',
|
|
13092
|
+
ellipsis: true,
|
|
13093
|
+
width: 150
|
|
13094
|
+
}, {
|
|
13095
|
+
dataIndex: 'tcGoodsNumber',
|
|
13096
|
+
title: "\u5957\u9910\u5957\u6570",
|
|
13097
|
+
align: 'center',
|
|
13098
|
+
ellipsis: true,
|
|
13099
|
+
width: 100
|
|
13100
|
+
}, {
|
|
13101
|
+
dataIndex: 'taoCanSingleSl',
|
|
13102
|
+
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
13103
|
+
align: 'center',
|
|
13104
|
+
ellipsis: true,
|
|
13105
|
+
width: 100
|
|
13106
|
+
}, {
|
|
13107
|
+
dataIndex: 'isGift',
|
|
13108
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
13109
|
+
align: 'center',
|
|
13110
|
+
ellipsis: true,
|
|
13111
|
+
width: 100,
|
|
13112
|
+
render: function render(val) {
|
|
13113
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
13114
|
+
}
|
|
13115
|
+
}]
|
|
13116
|
+
};
|
|
13117
|
+
};
|
|
13118
|
+
|
|
13119
|
+
var getColumns$1 = function getColumns(_ref) {
|
|
13120
|
+
var _ref$text = _ref.text,
|
|
13121
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
13122
|
+
disabled = _ref.disabled,
|
|
13123
|
+
updateHandle = _ref.updateHandle;
|
|
13124
|
+
return {
|
|
13125
|
+
//bs商品信息
|
|
13126
|
+
BS_GOODS: [{
|
|
13127
|
+
dataIndex: 'mark',
|
|
13128
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
13129
|
+
align: 'center',
|
|
13130
|
+
ellipsis: true,
|
|
13131
|
+
width: 70,
|
|
13132
|
+
render: function render(val, record, index) {
|
|
13133
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
13134
|
+
options: [{
|
|
13135
|
+
label: '是',
|
|
13136
|
+
value: '是'
|
|
13137
|
+
}, {
|
|
13138
|
+
label: '否',
|
|
13139
|
+
value: '否'
|
|
13140
|
+
}],
|
|
13141
|
+
disabled: disabled,
|
|
13142
|
+
value: val,
|
|
13143
|
+
onChange: function onChange(val) {
|
|
13144
|
+
return updateHandle(val, index, 'mark');
|
|
13145
|
+
}
|
|
13146
|
+
});
|
|
13147
|
+
}
|
|
13148
|
+
}, {
|
|
13149
|
+
dataIndex: 'skuName',
|
|
13150
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
13151
|
+
align: 'center',
|
|
13152
|
+
ellipsis: true,
|
|
13153
|
+
width: 250
|
|
13154
|
+
}, {
|
|
13155
|
+
dataIndex: 'sku',
|
|
13156
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
13157
|
+
align: 'center',
|
|
13158
|
+
ellipsis: true,
|
|
13159
|
+
width: 100
|
|
13160
|
+
}, {
|
|
13161
|
+
dataIndex: 'name',
|
|
13162
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
13163
|
+
align: 'center',
|
|
13164
|
+
ellipsis: true,
|
|
13165
|
+
width: 250
|
|
13166
|
+
}, {
|
|
13167
|
+
dataIndex: 'pic',
|
|
13168
|
+
title: "\u56FE\u7247",
|
|
13169
|
+
align: 'center',
|
|
13170
|
+
ellipsis: true,
|
|
13171
|
+
width: 100,
|
|
13172
|
+
render: function render(val) {
|
|
13173
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
13174
|
+
width: 60,
|
|
13175
|
+
src: val
|
|
13176
|
+
});
|
|
13177
|
+
}
|
|
13178
|
+
}, {
|
|
13179
|
+
dataIndex: 'code',
|
|
13180
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
13181
|
+
align: 'center',
|
|
13182
|
+
ellipsis: true,
|
|
13183
|
+
width: 100
|
|
13184
|
+
}, {
|
|
13185
|
+
dataIndex: 'money',
|
|
13186
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13187
|
+
align: 'center',
|
|
13188
|
+
ellipsis: true,
|
|
13189
|
+
width: 100
|
|
13190
|
+
}, {
|
|
13191
|
+
dataIndex: 'number',
|
|
13192
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
13193
|
+
align: 'center',
|
|
13194
|
+
ellipsis: true,
|
|
13195
|
+
width: 100,
|
|
13196
|
+
render: function render(val, record, index) {
|
|
13197
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13198
|
+
style: {
|
|
13199
|
+
width: 70
|
|
13200
|
+
},
|
|
13201
|
+
value: val,
|
|
13202
|
+
min: 1,
|
|
13203
|
+
precision: 0,
|
|
13204
|
+
onChange: function onChange(num) {
|
|
13205
|
+
return updateHandle(num, index, 'number');
|
|
13206
|
+
}
|
|
13207
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13208
|
+
}
|
|
13209
|
+
}, {
|
|
13210
|
+
dataIndex: 'share',
|
|
13211
|
+
title: "\u5206\u644A\u4EF7",
|
|
13212
|
+
align: 'center',
|
|
13213
|
+
ellipsis: true,
|
|
13214
|
+
width: 70
|
|
13215
|
+
}, {
|
|
13216
|
+
dataIndex: 'type',
|
|
13217
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
13218
|
+
align: 'center',
|
|
13219
|
+
ellipsis: true,
|
|
13220
|
+
width: 100
|
|
13221
|
+
}, {
|
|
13222
|
+
dataIndex: 'batch',
|
|
13223
|
+
title: "\u6279\u6B21\u53F7",
|
|
13224
|
+
align: 'center',
|
|
13225
|
+
ellipsis: true,
|
|
13226
|
+
width: 100
|
|
13227
|
+
}, {
|
|
13228
|
+
dataIndex: 'expireDate',
|
|
13229
|
+
title: "\u6709\u6548\u671F",
|
|
13230
|
+
align: 'center',
|
|
13231
|
+
ellipsis: true,
|
|
13232
|
+
width: 100
|
|
13233
|
+
}]
|
|
13234
|
+
};
|
|
13235
|
+
};
|
|
13236
|
+
|
|
13237
|
+
var renderGiftType = function renderGiftType(val) {
|
|
13238
|
+
var giftTypeMap = {
|
|
13239
|
+
0: '非赠品',
|
|
13240
|
+
1: '自动赠送',
|
|
13241
|
+
2: '手工赠送',
|
|
13242
|
+
3: '回购自动送赠品',
|
|
13243
|
+
4: '前N有礼送赠品',
|
|
13244
|
+
6: '天猫优仓赠品',
|
|
13245
|
+
7: '淘宝CRM会员送赠'
|
|
13246
|
+
};
|
|
13247
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
13248
|
+
};
|
|
13249
|
+
var renderFieldMap = {
|
|
13250
|
+
num: function num(_ref) {
|
|
13251
|
+
var disabled = _ref.disabled,
|
|
13252
|
+
updateHandle = _ref.updateHandle;
|
|
13253
|
+
return function (val, record, index) {
|
|
13254
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13255
|
+
style: {
|
|
13256
|
+
width: 70
|
|
13257
|
+
},
|
|
13258
|
+
value: val,
|
|
13259
|
+
min: 1,
|
|
13260
|
+
precision: 0,
|
|
13261
|
+
onChange: function onChange(num) {
|
|
13262
|
+
return updateHandle(num, index, 'num');
|
|
13263
|
+
}
|
|
13264
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13265
|
+
};
|
|
13266
|
+
},
|
|
13267
|
+
giftType: function giftType() {
|
|
13268
|
+
return renderGiftType;
|
|
13269
|
+
}
|
|
13270
|
+
};
|
|
13271
|
+
var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
13272
|
+
var disabled = _ref2.disabled,
|
|
13273
|
+
updateHandle = _ref2.updateHandle,
|
|
13274
|
+
operate = _ref2.operate;
|
|
13275
|
+
return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
12575
13276
|
var newItem = _objectSpread2({
|
|
12576
13277
|
align: 'center',
|
|
12577
|
-
ellipsis: true
|
|
12578
|
-
}, item);
|
|
12579
|
-
if (operate && (renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex])) {
|
|
12580
|
-
return _objectSpread2(_objectSpread2({}, newItem), {}, {
|
|
12581
|
-
render: renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex]({
|
|
12582
|
-
disabled: disabled,
|
|
12583
|
-
updateHandle: updateHandle
|
|
12584
|
-
})
|
|
12585
|
-
});
|
|
12586
|
-
}
|
|
12587
|
-
return newItem;
|
|
13278
|
+
ellipsis: true
|
|
13279
|
+
}, item);
|
|
13280
|
+
if (operate && (renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex])) {
|
|
13281
|
+
return _objectSpread2(_objectSpread2({}, newItem), {}, {
|
|
13282
|
+
render: renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex]({
|
|
13283
|
+
disabled: disabled,
|
|
13284
|
+
updateHandle: updateHandle
|
|
13285
|
+
})
|
|
13286
|
+
});
|
|
13287
|
+
}
|
|
13288
|
+
return newItem;
|
|
13289
|
+
});
|
|
13290
|
+
};
|
|
13291
|
+
|
|
13292
|
+
var getColumns$2 = function getColumns(_ref) {
|
|
13293
|
+
var _ref$text = _ref.text,
|
|
13294
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
13295
|
+
disabled = _ref.disabled,
|
|
13296
|
+
updateHandle = _ref.updateHandle;
|
|
13297
|
+
return {
|
|
13298
|
+
//旺店通补发商品信息
|
|
13299
|
+
WDT_REISSUE_GOODS: [{
|
|
13300
|
+
dataIndex: 'goodId',
|
|
13301
|
+
title: "\u5546\u54C1ID",
|
|
13302
|
+
width: 120
|
|
13303
|
+
}, {
|
|
13304
|
+
dataIndex: 'goodNo',
|
|
13305
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
13306
|
+
width: 200
|
|
13307
|
+
}, {
|
|
13308
|
+
dataIndex: 'goodName',
|
|
13309
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
13310
|
+
width: 200
|
|
13311
|
+
}, {
|
|
13312
|
+
dataIndex: 'specId',
|
|
13313
|
+
title: "SKUID",
|
|
13314
|
+
width: 150
|
|
13315
|
+
}, {
|
|
13316
|
+
dataIndex: 'specNo',
|
|
13317
|
+
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
13318
|
+
width: 200
|
|
13319
|
+
}, {
|
|
13320
|
+
dataIndex: 'specName',
|
|
13321
|
+
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
13322
|
+
width: 250
|
|
13323
|
+
}, {
|
|
13324
|
+
dataIndex: 'orderPrice',
|
|
13325
|
+
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
13326
|
+
width: 200
|
|
13327
|
+
}, {
|
|
13328
|
+
dataIndex: 'num',
|
|
13329
|
+
title: "\u6570\u91CF",
|
|
13330
|
+
width: 100
|
|
13331
|
+
}, {
|
|
13332
|
+
dataIndex: 'sharePrice',
|
|
13333
|
+
title: "\u5206\u644A\u4EF7",
|
|
13334
|
+
width: 150
|
|
13335
|
+
}, {
|
|
13336
|
+
dataIndex: 'giftType',
|
|
13337
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13338
|
+
width: 100,
|
|
13339
|
+
render: renderGiftType
|
|
13340
|
+
}],
|
|
13341
|
+
//旺店通商品信息
|
|
13342
|
+
WDT_GOODS: [{
|
|
13343
|
+
dataIndex: 'goodId',
|
|
13344
|
+
title: "\u5546\u54C1ID",
|
|
13345
|
+
align: 'center',
|
|
13346
|
+
ellipsis: true,
|
|
13347
|
+
width: 70
|
|
13348
|
+
}, {
|
|
13349
|
+
dataIndex: 'goodNo',
|
|
13350
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
13351
|
+
align: 'center',
|
|
13352
|
+
ellipsis: true,
|
|
13353
|
+
width: 180
|
|
13354
|
+
}, {
|
|
13355
|
+
dataIndex: 'goodName',
|
|
13356
|
+
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13357
|
+
align: 'center',
|
|
13358
|
+
ellipsis: true,
|
|
13359
|
+
width: 250
|
|
13360
|
+
}, {
|
|
13361
|
+
dataIndex: 'specId',
|
|
13362
|
+
title: "".concat(text, "SKUID"),
|
|
13363
|
+
align: 'center',
|
|
13364
|
+
ellipsis: true,
|
|
13365
|
+
width: 100
|
|
13366
|
+
}, {
|
|
13367
|
+
dataIndex: 'specNo',
|
|
13368
|
+
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
13369
|
+
align: 'center',
|
|
13370
|
+
ellipsis: true,
|
|
13371
|
+
width: 180
|
|
13372
|
+
}, {
|
|
13373
|
+
dataIndex: 'specName',
|
|
13374
|
+
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13375
|
+
align: 'center',
|
|
13376
|
+
ellipsis: true,
|
|
13377
|
+
width: 250
|
|
13378
|
+
}, {
|
|
13379
|
+
dataIndex: 'orderPrice',
|
|
13380
|
+
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
13381
|
+
align: 'center',
|
|
13382
|
+
ellipsis: true,
|
|
13383
|
+
width: 100
|
|
13384
|
+
}, {
|
|
13385
|
+
dataIndex: 'num',
|
|
13386
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
13387
|
+
align: 'center',
|
|
13388
|
+
ellipsis: true,
|
|
13389
|
+
width: 100,
|
|
13390
|
+
render: function render(val, record, index) {
|
|
13391
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13392
|
+
style: {
|
|
13393
|
+
width: 70
|
|
13394
|
+
},
|
|
13395
|
+
value: val,
|
|
13396
|
+
min: 1,
|
|
13397
|
+
precision: 0,
|
|
13398
|
+
onChange: function onChange(num) {
|
|
13399
|
+
return updateHandle(num, index, 'num');
|
|
13400
|
+
}
|
|
13401
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13402
|
+
}
|
|
13403
|
+
}, {
|
|
13404
|
+
dataIndex: 'sharePrice',
|
|
13405
|
+
title: "\u5206\u644A\u4EF7",
|
|
13406
|
+
align: 'center',
|
|
13407
|
+
ellipsis: true,
|
|
13408
|
+
width: 70
|
|
13409
|
+
}, {
|
|
13410
|
+
dataIndex: 'giftType',
|
|
13411
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13412
|
+
align: 'center',
|
|
13413
|
+
ellipsis: true,
|
|
13414
|
+
width: 100,
|
|
13415
|
+
render: function render(val) {
|
|
13416
|
+
var giftTypeMap = {
|
|
13417
|
+
0: '非赠品',
|
|
13418
|
+
1: '自动赠送',
|
|
13419
|
+
2: '手工赠送',
|
|
13420
|
+
3: '回购自动送赠品',
|
|
13421
|
+
4: '前N有礼送赠品',
|
|
13422
|
+
6: '天猫优仓赠品',
|
|
13423
|
+
7: '淘宝CRM会员送赠'
|
|
13424
|
+
};
|
|
13425
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
13426
|
+
}
|
|
13427
|
+
}],
|
|
13428
|
+
//旺店通退货商品信息
|
|
13429
|
+
WDT_RETURN_GOODS: [{
|
|
13430
|
+
dataIndex: 'goodId',
|
|
13431
|
+
title: "\u5546\u54C1ID",
|
|
13432
|
+
align: 'center',
|
|
13433
|
+
ellipsis: true,
|
|
13434
|
+
width: 70
|
|
13435
|
+
}, {
|
|
13436
|
+
dataIndex: 'goodNo',
|
|
13437
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
13438
|
+
align: 'center',
|
|
13439
|
+
ellipsis: true,
|
|
13440
|
+
width: 180
|
|
13441
|
+
}, {
|
|
13442
|
+
dataIndex: 'goodName',
|
|
13443
|
+
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13444
|
+
align: 'center',
|
|
13445
|
+
ellipsis: true,
|
|
13446
|
+
width: 250
|
|
13447
|
+
}, {
|
|
13448
|
+
dataIndex: 'specId',
|
|
13449
|
+
title: "".concat(text, "SKUID"),
|
|
13450
|
+
align: 'center',
|
|
13451
|
+
ellipsis: true,
|
|
13452
|
+
width: 100
|
|
13453
|
+
}, {
|
|
13454
|
+
dataIndex: 'specNo',
|
|
13455
|
+
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
13456
|
+
align: 'center',
|
|
13457
|
+
ellipsis: true,
|
|
13458
|
+
width: 180
|
|
13459
|
+
}, {
|
|
13460
|
+
dataIndex: 'specName',
|
|
13461
|
+
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13462
|
+
align: 'center',
|
|
13463
|
+
ellipsis: true,
|
|
13464
|
+
width: 250
|
|
13465
|
+
}, {
|
|
13466
|
+
dataIndex: 'num',
|
|
13467
|
+
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
13468
|
+
align: 'center',
|
|
13469
|
+
ellipsis: true,
|
|
13470
|
+
width: 100,
|
|
13471
|
+
render: function render(val, record, index) {
|
|
13472
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13473
|
+
style: {
|
|
13474
|
+
width: 70
|
|
13475
|
+
},
|
|
13476
|
+
value: val,
|
|
13477
|
+
min: 1,
|
|
13478
|
+
precision: 0,
|
|
13479
|
+
onChange: function onChange(num) {
|
|
13480
|
+
return updateHandle(num, index, 'num');
|
|
13481
|
+
}
|
|
13482
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13483
|
+
}
|
|
13484
|
+
}, {
|
|
13485
|
+
dataIndex: 'sharePrice',
|
|
13486
|
+
title: "\u5206\u644A\u4EF7",
|
|
13487
|
+
align: 'center',
|
|
13488
|
+
ellipsis: true,
|
|
13489
|
+
width: 80,
|
|
13490
|
+
render: function render(val, record, index) {
|
|
13491
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13492
|
+
style: {
|
|
13493
|
+
width: 70
|
|
13494
|
+
},
|
|
13495
|
+
value: val,
|
|
13496
|
+
min: 0,
|
|
13497
|
+
onChange: function onChange(value) {
|
|
13498
|
+
return updateHandle(value, index, 'sharePrice');
|
|
13499
|
+
}
|
|
13500
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13501
|
+
}
|
|
13502
|
+
}, {
|
|
13503
|
+
dataIndex: 'returnPrice',
|
|
13504
|
+
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
13505
|
+
align: 'center',
|
|
13506
|
+
ellipsis: true,
|
|
13507
|
+
width: 100
|
|
13508
|
+
}, {
|
|
13509
|
+
dataIndex: 'giftType',
|
|
13510
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13511
|
+
align: 'center',
|
|
13512
|
+
ellipsis: true,
|
|
13513
|
+
width: 100,
|
|
13514
|
+
render: function render(val) {
|
|
13515
|
+
var giftTypeMap = {
|
|
13516
|
+
0: '非赠品',
|
|
13517
|
+
1: '自动赠送',
|
|
13518
|
+
2: '手工赠送',
|
|
13519
|
+
3: '回购自动送赠品',
|
|
13520
|
+
4: '前N有礼送赠品',
|
|
13521
|
+
6: '天猫优仓赠品',
|
|
13522
|
+
7: '淘宝CRM会员送赠'
|
|
13523
|
+
};
|
|
13524
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
13525
|
+
}
|
|
13526
|
+
}, {
|
|
13527
|
+
dataIndex: 'type',
|
|
13528
|
+
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
13529
|
+
align: 'center',
|
|
13530
|
+
ellipsis: true,
|
|
13531
|
+
width: 100,
|
|
13532
|
+
render: function render(val, record, index) {
|
|
13533
|
+
var options = [{
|
|
13534
|
+
label: '单品',
|
|
13535
|
+
value: '1'
|
|
13536
|
+
}, {
|
|
13537
|
+
label: '组合装',
|
|
13538
|
+
value: '2'
|
|
13539
|
+
}];
|
|
13540
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
13541
|
+
style: {
|
|
13542
|
+
width: 70
|
|
13543
|
+
},
|
|
13544
|
+
options: options,
|
|
13545
|
+
value: val,
|
|
13546
|
+
onChange: function onChange(value) {
|
|
13547
|
+
return updateHandle(value, index, 'type');
|
|
13548
|
+
}
|
|
13549
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13550
|
+
}
|
|
13551
|
+
}],
|
|
13552
|
+
//旺店通换出商品信息
|
|
13553
|
+
WDT_EXCHANGE_GOODS: [{
|
|
13554
|
+
dataIndex: 'goodId',
|
|
13555
|
+
title: "\u5546\u54C1ID",
|
|
13556
|
+
align: 'center',
|
|
13557
|
+
ellipsis: true,
|
|
13558
|
+
width: 70
|
|
13559
|
+
}, {
|
|
13560
|
+
dataIndex: 'goodNo',
|
|
13561
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
13562
|
+
align: 'center',
|
|
13563
|
+
ellipsis: true,
|
|
13564
|
+
width: 180
|
|
13565
|
+
}, {
|
|
13566
|
+
dataIndex: 'goodName',
|
|
13567
|
+
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13568
|
+
align: 'center',
|
|
13569
|
+
ellipsis: true,
|
|
13570
|
+
width: 250
|
|
13571
|
+
}, {
|
|
13572
|
+
dataIndex: 'specId',
|
|
13573
|
+
title: "".concat(text, "SKUID"),
|
|
13574
|
+
align: 'center',
|
|
13575
|
+
ellipsis: true,
|
|
13576
|
+
width: 100
|
|
13577
|
+
}, {
|
|
13578
|
+
dataIndex: 'specNo',
|
|
13579
|
+
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
13580
|
+
align: 'center',
|
|
13581
|
+
ellipsis: true,
|
|
13582
|
+
width: 180
|
|
13583
|
+
}, {
|
|
13584
|
+
dataIndex: 'specName',
|
|
13585
|
+
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13586
|
+
align: 'center',
|
|
13587
|
+
ellipsis: true,
|
|
13588
|
+
width: 250
|
|
13589
|
+
}, {
|
|
13590
|
+
dataIndex: 'num',
|
|
13591
|
+
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
13592
|
+
align: 'center',
|
|
13593
|
+
ellipsis: true,
|
|
13594
|
+
width: 100,
|
|
13595
|
+
render: function render(val, record, index) {
|
|
13596
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13597
|
+
style: {
|
|
13598
|
+
width: 70
|
|
13599
|
+
},
|
|
13600
|
+
value: val,
|
|
13601
|
+
min: 1,
|
|
13602
|
+
precision: 0,
|
|
13603
|
+
onChange: function onChange(num) {
|
|
13604
|
+
return updateHandle(num, index, 'num');
|
|
13605
|
+
}
|
|
13606
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13607
|
+
}
|
|
13608
|
+
}, {
|
|
13609
|
+
dataIndex: 'price',
|
|
13610
|
+
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
13611
|
+
align: 'center',
|
|
13612
|
+
ellipsis: true,
|
|
13613
|
+
width: 100,
|
|
13614
|
+
render: function render(val, record, index) {
|
|
13615
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13616
|
+
style: {
|
|
13617
|
+
width: 70
|
|
13618
|
+
},
|
|
13619
|
+
value: val,
|
|
13620
|
+
min: 0,
|
|
13621
|
+
onChange: function onChange(value) {
|
|
13622
|
+
return updateHandle(value, index, 'price');
|
|
13623
|
+
}
|
|
13624
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13625
|
+
}
|
|
13626
|
+
}, {
|
|
13627
|
+
dataIndex: 'exchangePrice',
|
|
13628
|
+
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
13629
|
+
align: 'center',
|
|
13630
|
+
ellipsis: true,
|
|
13631
|
+
width: 100
|
|
13632
|
+
}, {
|
|
13633
|
+
dataIndex: 'giftType',
|
|
13634
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13635
|
+
align: 'center',
|
|
13636
|
+
ellipsis: true,
|
|
13637
|
+
width: 100,
|
|
13638
|
+
render: function render(val) {
|
|
13639
|
+
var giftTypeMap = {
|
|
13640
|
+
0: '非赠品',
|
|
13641
|
+
1: '自动赠送',
|
|
13642
|
+
2: '手工赠送',
|
|
13643
|
+
3: '回购自动送赠品',
|
|
13644
|
+
4: '前N有礼送赠品',
|
|
13645
|
+
6: '天猫优仓赠品',
|
|
13646
|
+
7: '淘宝CRM会员送赠'
|
|
13647
|
+
};
|
|
13648
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
13649
|
+
}
|
|
13650
|
+
}, {
|
|
13651
|
+
dataIndex: 'type',
|
|
13652
|
+
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
13653
|
+
align: 'center',
|
|
13654
|
+
ellipsis: true,
|
|
13655
|
+
width: 100,
|
|
13656
|
+
render: function render(val, record, index) {
|
|
13657
|
+
var options = [{
|
|
13658
|
+
label: '单品',
|
|
13659
|
+
value: '1'
|
|
13660
|
+
}, {
|
|
13661
|
+
label: '组合装',
|
|
13662
|
+
value: '2'
|
|
13663
|
+
}];
|
|
13664
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
13665
|
+
style: {
|
|
13666
|
+
width: 70
|
|
13667
|
+
},
|
|
13668
|
+
options: options,
|
|
13669
|
+
value: val,
|
|
13670
|
+
onChange: function onChange(value) {
|
|
13671
|
+
return updateHandle(value, index, 'type');
|
|
13672
|
+
}
|
|
13673
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13674
|
+
}
|
|
13675
|
+
}]
|
|
13676
|
+
};
|
|
13677
|
+
};
|
|
13678
|
+
|
|
13679
|
+
var getColumns$3 = function getColumns(_ref) {
|
|
13680
|
+
var _ref$text = _ref.text,
|
|
13681
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
13682
|
+
disabled = _ref.disabled,
|
|
13683
|
+
updateHandle = _ref.updateHandle;
|
|
13684
|
+
return {
|
|
13685
|
+
//万里牛商品信息
|
|
13686
|
+
WLN_GOODS: [{
|
|
13687
|
+
dataIndex: 'skuName',
|
|
13688
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
13689
|
+
align: 'center',
|
|
13690
|
+
ellipsis: true,
|
|
13691
|
+
width: 250
|
|
13692
|
+
}, {
|
|
13693
|
+
dataIndex: 'sku',
|
|
13694
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
13695
|
+
align: 'center',
|
|
13696
|
+
ellipsis: true,
|
|
13697
|
+
width: 100
|
|
13698
|
+
}, {
|
|
13699
|
+
dataIndex: 'name',
|
|
13700
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
13701
|
+
align: 'center',
|
|
13702
|
+
ellipsis: true,
|
|
13703
|
+
width: 250
|
|
13704
|
+
}, {
|
|
13705
|
+
dataIndex: 'pic',
|
|
13706
|
+
title: "\u56FE\u7247",
|
|
13707
|
+
align: 'center',
|
|
13708
|
+
ellipsis: true,
|
|
13709
|
+
width: 100,
|
|
13710
|
+
render: function render(val) {
|
|
13711
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
13712
|
+
width: 60,
|
|
13713
|
+
src: val
|
|
13714
|
+
});
|
|
13715
|
+
}
|
|
13716
|
+
}, {
|
|
13717
|
+
dataIndex: 'code',
|
|
13718
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
13719
|
+
align: 'center',
|
|
13720
|
+
ellipsis: true,
|
|
13721
|
+
width: 100
|
|
13722
|
+
}, {
|
|
13723
|
+
dataIndex: 'money',
|
|
13724
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13725
|
+
align: 'center',
|
|
13726
|
+
ellipsis: true,
|
|
13727
|
+
width: 100
|
|
13728
|
+
}, {
|
|
13729
|
+
dataIndex: 'number',
|
|
13730
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
13731
|
+
align: 'center',
|
|
13732
|
+
ellipsis: true,
|
|
13733
|
+
width: 100,
|
|
13734
|
+
render: function render(val, record, index) {
|
|
13735
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13736
|
+
style: {
|
|
13737
|
+
width: 70
|
|
13738
|
+
},
|
|
13739
|
+
value: val,
|
|
13740
|
+
min: 1,
|
|
13741
|
+
precision: 0,
|
|
13742
|
+
onChange: function onChange(num) {
|
|
13743
|
+
return updateHandle(num, index, 'number');
|
|
13744
|
+
}
|
|
13745
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13746
|
+
}
|
|
13747
|
+
}, {
|
|
13748
|
+
dataIndex: 'share',
|
|
13749
|
+
title: "\u5206\u644A\u4EF7",
|
|
13750
|
+
align: 'center',
|
|
13751
|
+
ellipsis: true,
|
|
13752
|
+
width: 70
|
|
13753
|
+
}, {
|
|
13754
|
+
dataIndex: 'type',
|
|
13755
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
13756
|
+
align: 'center',
|
|
13757
|
+
ellipsis: true,
|
|
13758
|
+
width: 100
|
|
13759
|
+
}]
|
|
13760
|
+
};
|
|
13761
|
+
};
|
|
13762
|
+
|
|
13763
|
+
var isNumberOrNumberString = function isNumberOrNumberString(value) {
|
|
13764
|
+
if (typeof value === 'number') return true;
|
|
13765
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
13766
|
+
return false;
|
|
13767
|
+
};
|
|
13768
|
+
var getYesOrNo = function getYesOrNo(val) {
|
|
13769
|
+
if (kmkfUtils.isNull(val)) return null;
|
|
13770
|
+
return val ? '是' : '否';
|
|
13771
|
+
};
|
|
13772
|
+
var getColumns$4 = function getColumns(_ref) {
|
|
13773
|
+
var _ref$text = _ref.text,
|
|
13774
|
+
disabled = _ref.disabled,
|
|
13775
|
+
updateHandle = _ref.updateHandle,
|
|
13776
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
13777
|
+
return {
|
|
13778
|
+
//管易商品信息
|
|
13779
|
+
GY_GOODS: [{
|
|
13780
|
+
dataIndex: 'goodName',
|
|
13781
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
13782
|
+
width: 150
|
|
13783
|
+
}, {
|
|
13784
|
+
dataIndex: 'goodShortName',
|
|
13785
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
13786
|
+
width: 150
|
|
13787
|
+
}, {
|
|
13788
|
+
dataIndex: 'goodNo',
|
|
13789
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
13790
|
+
width: 200
|
|
13791
|
+
}, {
|
|
13792
|
+
dataIndex: 'specName',
|
|
13793
|
+
title: "SKU\u540D\u79F0",
|
|
13794
|
+
align: 'center',
|
|
13795
|
+
ellipsis: true,
|
|
13796
|
+
width: 250
|
|
13797
|
+
}, {
|
|
13798
|
+
dataIndex: 'specNo',
|
|
13799
|
+
title: "SKU\u7F16\u7801",
|
|
13800
|
+
align: 'center',
|
|
13801
|
+
ellipsis: true,
|
|
13802
|
+
width: 150
|
|
13803
|
+
}, {
|
|
13804
|
+
dataIndex: 'qty',
|
|
13805
|
+
title: "\u6570\u91CF",
|
|
13806
|
+
width: 100,
|
|
13807
|
+
render: function render(val, record, index) {
|
|
13808
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13809
|
+
style: {
|
|
13810
|
+
width: 70
|
|
13811
|
+
},
|
|
13812
|
+
value: val,
|
|
13813
|
+
min: 1,
|
|
13814
|
+
precision: 0,
|
|
13815
|
+
onChange: function onChange(num) {
|
|
13816
|
+
updateDataHandle({
|
|
13817
|
+
qty: num,
|
|
13818
|
+
amount: num && isNumberOrNumberString(record.price) ? num * record.price : null,
|
|
13819
|
+
originAmount: num && isNumberOrNumberString(record.originPrice) ? num * record.originPrice : null
|
|
13820
|
+
}, index);
|
|
13821
|
+
}
|
|
13822
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13823
|
+
}
|
|
13824
|
+
}, {
|
|
13825
|
+
dataIndex: 'price',
|
|
13826
|
+
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
13827
|
+
width: 150,
|
|
13828
|
+
render: function render(val, record, index) {
|
|
13829
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13830
|
+
style: {
|
|
13831
|
+
width: 130
|
|
13832
|
+
},
|
|
13833
|
+
value: val,
|
|
13834
|
+
min: 0,
|
|
13835
|
+
precision: 2,
|
|
13836
|
+
onChange: function onChange(num) {
|
|
13837
|
+
updateDataHandle({
|
|
13838
|
+
price: num,
|
|
13839
|
+
amount: num && isNumberOrNumberString(record.qty) ? num * record.qty : null
|
|
13840
|
+
}, index);
|
|
13841
|
+
}
|
|
13842
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13843
|
+
}
|
|
13844
|
+
}, {
|
|
13845
|
+
dataIndex: 'amount',
|
|
13846
|
+
title: "\u5B9E\u9645\u91D1\u989D",
|
|
13847
|
+
width: 150
|
|
13848
|
+
}, {
|
|
13849
|
+
dataIndex: 'originPrice',
|
|
13850
|
+
title: "\u6807\u51C6\u5355\u4EF7",
|
|
13851
|
+
width: 150
|
|
13852
|
+
}, {
|
|
13853
|
+
dataIndex: 'originAmount',
|
|
13854
|
+
title: "\u6807\u51C6\u91D1\u989D",
|
|
13855
|
+
width: 150
|
|
13856
|
+
}, {
|
|
13857
|
+
dataIndex: 'discountFee',
|
|
13858
|
+
title: "\u8BA9\u5229\u91D1\u989D",
|
|
13859
|
+
width: 150
|
|
13860
|
+
}, {
|
|
13861
|
+
dataIndex: 'amountAfter',
|
|
13862
|
+
title: "\u8BA9\u5229\u540E\u91D1\u989D",
|
|
13863
|
+
width: 150
|
|
13864
|
+
}, {
|
|
13865
|
+
dataIndex: 'cancel',
|
|
13866
|
+
title: "\u662F\u5426\u53D6\u6D88",
|
|
13867
|
+
width: 150,
|
|
13868
|
+
render: function render(val) {
|
|
13869
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
|
|
13870
|
+
}
|
|
13871
|
+
}, {
|
|
13872
|
+
dataIndex: 'isGift',
|
|
13873
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
13874
|
+
width: 150,
|
|
13875
|
+
render: function render(val, record, index) {
|
|
13876
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
13877
|
+
value: val,
|
|
13878
|
+
onChange: function onChange(value) {
|
|
13879
|
+
updateHandle(value, index, 'isGift');
|
|
13880
|
+
},
|
|
13881
|
+
options: [{
|
|
13882
|
+
label: '是',
|
|
13883
|
+
value: 1
|
|
13884
|
+
}, {
|
|
13885
|
+
label: '否',
|
|
13886
|
+
value: 0
|
|
13887
|
+
}]
|
|
13888
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
|
|
13889
|
+
}
|
|
13890
|
+
}, {
|
|
13891
|
+
dataIndex: 'skuNote',
|
|
13892
|
+
title: "\u5546\u54C1\u5907\u6CE8",
|
|
13893
|
+
width: 150
|
|
13894
|
+
}].map(function (item) {
|
|
13895
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13896
|
+
align: 'center',
|
|
13897
|
+
ellipsis: true
|
|
13898
|
+
});
|
|
13899
|
+
}),
|
|
13900
|
+
//管易补发商品信息
|
|
13901
|
+
GY_REISSUE_GOODS: [{
|
|
13902
|
+
dataIndex: 'goodName',
|
|
13903
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
13904
|
+
width: 150
|
|
13905
|
+
}, {
|
|
13906
|
+
dataIndex: 'goodShortName',
|
|
13907
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
13908
|
+
width: 150
|
|
13909
|
+
}, {
|
|
13910
|
+
dataIndex: 'goodNo',
|
|
13911
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
13912
|
+
width: 200
|
|
13913
|
+
}, {
|
|
13914
|
+
dataIndex: 'specName',
|
|
13915
|
+
title: "SKU\u540D\u79F0",
|
|
13916
|
+
align: 'center',
|
|
13917
|
+
ellipsis: true,
|
|
13918
|
+
width: 250
|
|
13919
|
+
}, {
|
|
13920
|
+
dataIndex: 'specNo',
|
|
13921
|
+
title: "SKU\u7F16\u7801",
|
|
13922
|
+
align: 'center',
|
|
13923
|
+
ellipsis: true,
|
|
13924
|
+
width: 150
|
|
13925
|
+
}, {
|
|
13926
|
+
dataIndex: 'qty',
|
|
13927
|
+
title: "\u6570\u91CF",
|
|
13928
|
+
width: 100,
|
|
13929
|
+
render: function render(val, record, index) {
|
|
13930
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13931
|
+
style: {
|
|
13932
|
+
width: 70
|
|
13933
|
+
},
|
|
13934
|
+
value: val,
|
|
13935
|
+
min: 1,
|
|
13936
|
+
precision: 0,
|
|
13937
|
+
onChange: function onChange(num) {
|
|
13938
|
+
updateDataHandle({
|
|
13939
|
+
qty: num,
|
|
13940
|
+
amount: num && isNumberOrNumberString(record.price) ? num * record.price : null,
|
|
13941
|
+
originAmount: num && isNumberOrNumberString(record.originPrice) ? num * record.originPrice : null
|
|
13942
|
+
}, index);
|
|
13943
|
+
}
|
|
13944
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13945
|
+
}
|
|
13946
|
+
}, {
|
|
13947
|
+
dataIndex: 'price',
|
|
13948
|
+
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
13949
|
+
width: 150,
|
|
13950
|
+
render: function render(val, record, index) {
|
|
13951
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13952
|
+
style: {
|
|
13953
|
+
width: 130
|
|
13954
|
+
},
|
|
13955
|
+
value: val,
|
|
13956
|
+
min: 0,
|
|
13957
|
+
precision: 2,
|
|
13958
|
+
onChange: function onChange(num) {
|
|
13959
|
+
updateDataHandle({
|
|
13960
|
+
price: num,
|
|
13961
|
+
amount: num && isNumberOrNumberString(record.qty) ? num * record.qty : null
|
|
13962
|
+
}, index);
|
|
13963
|
+
}
|
|
13964
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13965
|
+
}
|
|
13966
|
+
}, {
|
|
13967
|
+
dataIndex: 'amount',
|
|
13968
|
+
title: "\u5B9E\u9645\u91D1\u989D",
|
|
13969
|
+
width: 150
|
|
13970
|
+
}, {
|
|
13971
|
+
dataIndex: 'originPrice',
|
|
13972
|
+
title: "\u6807\u51C6\u5355\u4EF7",
|
|
13973
|
+
width: 150
|
|
13974
|
+
}, {
|
|
13975
|
+
dataIndex: 'originAmount',
|
|
13976
|
+
title: "\u6807\u51C6\u91D1\u989D",
|
|
13977
|
+
width: 150
|
|
13978
|
+
}, {
|
|
13979
|
+
dataIndex: 'isGift',
|
|
13980
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
13981
|
+
width: 150,
|
|
13982
|
+
render: function render(val, record, index) {
|
|
13983
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
13984
|
+
value: val,
|
|
13985
|
+
onChange: function onChange(value) {
|
|
13986
|
+
updateHandle(value, index, 'isGift');
|
|
13987
|
+
},
|
|
13988
|
+
options: [{
|
|
13989
|
+
label: '是',
|
|
13990
|
+
value: 1
|
|
13991
|
+
}, {
|
|
13992
|
+
label: '否',
|
|
13993
|
+
value: 0
|
|
13994
|
+
}]
|
|
13995
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
|
|
13996
|
+
}
|
|
13997
|
+
}].map(function (item) {
|
|
13998
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13999
|
+
align: 'center',
|
|
14000
|
+
ellipsis: true
|
|
14001
|
+
});
|
|
14002
|
+
})
|
|
14003
|
+
};
|
|
14004
|
+
};
|
|
14005
|
+
|
|
14006
|
+
var getColumns$5 = function getColumns(_ref) {
|
|
14007
|
+
var _ref$text = _ref.text,
|
|
14008
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
14009
|
+
disabled = _ref.disabled,
|
|
14010
|
+
updateHandle = _ref.updateHandle;
|
|
14011
|
+
return {
|
|
14012
|
+
//bs商品信息
|
|
14013
|
+
default: [{
|
|
14014
|
+
dataIndex: 'mark',
|
|
14015
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
14016
|
+
align: 'center',
|
|
14017
|
+
ellipsis: true,
|
|
14018
|
+
width: 70,
|
|
14019
|
+
render: function render(val, record, index) {
|
|
14020
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
14021
|
+
options: [{
|
|
14022
|
+
label: '是',
|
|
14023
|
+
value: '是'
|
|
14024
|
+
}, {
|
|
14025
|
+
label: '否',
|
|
14026
|
+
value: '否'
|
|
14027
|
+
}],
|
|
14028
|
+
disabled: disabled,
|
|
14029
|
+
value: val,
|
|
14030
|
+
onChange: function onChange(val) {
|
|
14031
|
+
return updateHandle(val, index, 'mark');
|
|
14032
|
+
}
|
|
14033
|
+
});
|
|
14034
|
+
}
|
|
14035
|
+
}, {
|
|
14036
|
+
dataIndex: 'skuName',
|
|
14037
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
14038
|
+
align: 'center',
|
|
14039
|
+
ellipsis: true,
|
|
14040
|
+
width: 250
|
|
14041
|
+
}, {
|
|
14042
|
+
dataIndex: 'sku',
|
|
14043
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
14044
|
+
align: 'center',
|
|
14045
|
+
ellipsis: true,
|
|
14046
|
+
width: 100
|
|
14047
|
+
}, {
|
|
14048
|
+
dataIndex: 'name',
|
|
14049
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
14050
|
+
align: 'center',
|
|
14051
|
+
ellipsis: true,
|
|
14052
|
+
width: 250
|
|
14053
|
+
}, {
|
|
14054
|
+
dataIndex: 'pic',
|
|
14055
|
+
title: "\u56FE\u7247",
|
|
14056
|
+
align: 'center',
|
|
14057
|
+
ellipsis: true,
|
|
14058
|
+
width: 100,
|
|
14059
|
+
render: function render(val) {
|
|
14060
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
14061
|
+
width: 60,
|
|
14062
|
+
src: val
|
|
14063
|
+
});
|
|
14064
|
+
}
|
|
14065
|
+
}, {
|
|
14066
|
+
dataIndex: 'code',
|
|
14067
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
14068
|
+
align: 'center',
|
|
14069
|
+
ellipsis: true,
|
|
14070
|
+
width: 100
|
|
14071
|
+
}, {
|
|
14072
|
+
dataIndex: 'money',
|
|
14073
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
14074
|
+
align: 'center',
|
|
14075
|
+
ellipsis: true,
|
|
14076
|
+
width: 100
|
|
14077
|
+
}, {
|
|
14078
|
+
dataIndex: 'number',
|
|
14079
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
14080
|
+
align: 'center',
|
|
14081
|
+
ellipsis: true,
|
|
14082
|
+
width: 100,
|
|
14083
|
+
render: function render(val, record, index) {
|
|
14084
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
14085
|
+
style: {
|
|
14086
|
+
width: 70
|
|
14087
|
+
},
|
|
14088
|
+
value: val,
|
|
14089
|
+
min: 1,
|
|
14090
|
+
precision: 0,
|
|
14091
|
+
onChange: function onChange(num) {
|
|
14092
|
+
return updateHandle(num, index, 'number');
|
|
14093
|
+
}
|
|
14094
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14095
|
+
}
|
|
14096
|
+
}, {
|
|
14097
|
+
dataIndex: 'share',
|
|
14098
|
+
title: "\u5206\u644A\u4EF7",
|
|
14099
|
+
align: 'center',
|
|
14100
|
+
ellipsis: true,
|
|
14101
|
+
width: 70
|
|
14102
|
+
}, {
|
|
14103
|
+
dataIndex: 'type',
|
|
14104
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
14105
|
+
align: 'center',
|
|
14106
|
+
ellipsis: true,
|
|
14107
|
+
width: 100
|
|
14108
|
+
}]
|
|
14109
|
+
};
|
|
14110
|
+
};
|
|
14111
|
+
|
|
14112
|
+
var getColumnsMap = function getColumnsMap(args) {
|
|
14113
|
+
var _ref = args || {},
|
|
14114
|
+
_ref$text = _ref.text,
|
|
14115
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
14116
|
+
disabled = _ref.disabled,
|
|
14117
|
+
updateHandle = _ref.updateHandle,
|
|
14118
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
14119
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
14120
|
+
text: text,
|
|
14121
|
+
disabled: disabled,
|
|
14122
|
+
updateHandle: updateHandle
|
|
14123
|
+
})), getColumns({
|
|
14124
|
+
text: text,
|
|
14125
|
+
disabled: disabled,
|
|
14126
|
+
updateHandle: updateHandle
|
|
14127
|
+
})), getColumns$2({
|
|
14128
|
+
text: text,
|
|
14129
|
+
disabled: disabled,
|
|
14130
|
+
updateHandle: updateHandle
|
|
14131
|
+
})), getColumns$3({
|
|
14132
|
+
text: text,
|
|
14133
|
+
disabled: disabled,
|
|
14134
|
+
updateHandle: updateHandle
|
|
14135
|
+
})), getColumns$4({
|
|
14136
|
+
text: text,
|
|
14137
|
+
disabled: disabled,
|
|
14138
|
+
updateHandle: updateHandle,
|
|
14139
|
+
updateDataHandle: updateDataHandle
|
|
14140
|
+
})), {}, {
|
|
14141
|
+
default: getColumns$5({
|
|
14142
|
+
text: text,
|
|
14143
|
+
disabled: disabled,
|
|
14144
|
+
updateHandle: updateHandle
|
|
14145
|
+
})['default']
|
|
14146
|
+
});
|
|
14147
|
+
};
|
|
14148
|
+
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
14149
|
+
var clone_columnsMap = lodash.cloneDeep(getColumnsMap());
|
|
14150
|
+
var newColumns = {};
|
|
14151
|
+
Object.keys(clone_columnsMap).forEach(function (key) {
|
|
14152
|
+
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
14153
|
+
return {
|
|
14154
|
+
title: col.title,
|
|
14155
|
+
dataIndex: col.dataIndex
|
|
14156
|
+
};
|
|
14157
|
+
});
|
|
12588
14158
|
});
|
|
14159
|
+
return newColumns;
|
|
12589
14160
|
};
|
|
14161
|
+
var columnsBaseInfoMap = getColumnsBaseInfo();
|
|
12590
14162
|
|
|
12591
|
-
var columns$4 = [{
|
|
12592
|
-
dataIndex: 'goodId',
|
|
12593
|
-
title: "\u5546\u54C1ID",
|
|
12594
|
-
width: 70
|
|
12595
|
-
}, {
|
|
12596
|
-
dataIndex: 'goodNo',
|
|
12597
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
12598
|
-
width: 180
|
|
12599
|
-
}, {
|
|
12600
|
-
dataIndex: 'goodName',
|
|
12601
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
12602
|
-
width: 250
|
|
12603
|
-
}, {
|
|
12604
|
-
dataIndex: 'specId',
|
|
12605
|
-
title: "SKUID",
|
|
12606
|
-
width: 100
|
|
12607
|
-
}, {
|
|
12608
|
-
dataIndex: 'specNo',
|
|
12609
|
-
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
12610
|
-
width: 180
|
|
12611
|
-
}, {
|
|
12612
|
-
dataIndex: 'specName',
|
|
12613
|
-
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
12614
|
-
width: 250
|
|
12615
|
-
}, {
|
|
12616
|
-
dataIndex: 'orderPrice',
|
|
12617
|
-
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
12618
|
-
width: 100
|
|
12619
|
-
}, {
|
|
12620
|
-
dataIndex: 'num',
|
|
12621
|
-
title: "\u6570\u91CF",
|
|
12622
|
-
width: 100
|
|
12623
|
-
}, {
|
|
12624
|
-
dataIndex: 'sharePrice',
|
|
12625
|
-
title: "\u5206\u644A\u4EF7",
|
|
12626
|
-
width: 70
|
|
12627
|
-
}, {
|
|
12628
|
-
dataIndex: 'giftType',
|
|
12629
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12630
|
-
width: 100
|
|
12631
|
-
}];
|
|
12632
14163
|
var renderFieldMap$1 = {
|
|
12633
|
-
|
|
14164
|
+
goodsNumber: function goodsNumber(_ref) {
|
|
12634
14165
|
var disabled = _ref.disabled,
|
|
12635
14166
|
updateHandle = _ref.updateHandle;
|
|
12636
14167
|
return function (val, record, index) {
|
|
@@ -12642,33 +14173,59 @@ var renderFieldMap$1 = {
|
|
|
12642
14173
|
min: 1,
|
|
12643
14174
|
precision: 0,
|
|
12644
14175
|
onChange: function onChange(num) {
|
|
12645
|
-
return updateHandle(num, index, '
|
|
14176
|
+
return updateHandle(num, index, 'goodsNumber');
|
|
12646
14177
|
}
|
|
12647
14178
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12648
14179
|
};
|
|
12649
14180
|
},
|
|
12650
|
-
|
|
14181
|
+
goodsPrice: function goodsPrice(_ref2) {
|
|
12651
14182
|
var disabled = _ref2.disabled,
|
|
12652
14183
|
updateHandle = _ref2.updateHandle;
|
|
12653
|
-
return function (val) {
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12661
|
-
|
|
12662
|
-
|
|
12663
|
-
|
|
14184
|
+
return function (val, record, index) {
|
|
14185
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
14186
|
+
style: {
|
|
14187
|
+
width: 70
|
|
14188
|
+
},
|
|
14189
|
+
value: val,
|
|
14190
|
+
min: 0,
|
|
14191
|
+
onChange: function onChange(value) {
|
|
14192
|
+
return updateHandle(value, index, 'goodsPrice');
|
|
14193
|
+
}
|
|
14194
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14195
|
+
};
|
|
14196
|
+
},
|
|
14197
|
+
isGift: function isGift(_ref3) {
|
|
14198
|
+
var disabled = _ref3.disabled,
|
|
14199
|
+
updateHandle = _ref3.updateHandle;
|
|
14200
|
+
return function (val, record, index) {
|
|
14201
|
+
var options = [{
|
|
14202
|
+
label: '是',
|
|
14203
|
+
value: 1
|
|
14204
|
+
}, {
|
|
14205
|
+
label: '否',
|
|
14206
|
+
value: 0
|
|
14207
|
+
}];
|
|
14208
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
14209
|
+
style: {
|
|
14210
|
+
width: 70
|
|
14211
|
+
},
|
|
14212
|
+
options: options,
|
|
14213
|
+
value: val,
|
|
14214
|
+
onChange: function onChange(value) {
|
|
14215
|
+
return updateHandle(value, index, 'isGift');
|
|
14216
|
+
},
|
|
14217
|
+
getPopupContainer: function getPopupContainer() {
|
|
14218
|
+
return document.getElementById('bsE3ReissueGoods');
|
|
14219
|
+
}
|
|
14220
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
12664
14221
|
};
|
|
12665
14222
|
}
|
|
12666
14223
|
};
|
|
12667
|
-
var
|
|
12668
|
-
var disabled =
|
|
12669
|
-
updateHandle =
|
|
12670
|
-
operate =
|
|
12671
|
-
return
|
|
14224
|
+
var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
14225
|
+
var disabled = _ref4.disabled,
|
|
14226
|
+
updateHandle = _ref4.updateHandle,
|
|
14227
|
+
operate = _ref4.operate;
|
|
14228
|
+
return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
|
|
12672
14229
|
var newItem = _objectSpread2({
|
|
12673
14230
|
align: 'center',
|
|
12674
14231
|
ellipsis: true
|
|
@@ -12685,7 +14242,7 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref3) {
|
|
|
12685
14242
|
});
|
|
12686
14243
|
};
|
|
12687
14244
|
|
|
12688
|
-
var MAIN_FIELD = '
|
|
14245
|
+
var MAIN_FIELD = 'uuid';
|
|
12689
14246
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
12690
14247
|
var columns = _ref.columns,
|
|
12691
14248
|
dataSource = _ref.dataSource,
|
|
@@ -12743,6 +14300,9 @@ var getButtonText = function getButtonText() {
|
|
|
12743
14300
|
if (['WDT_REISSUE_GOODS'].includes(type)) {
|
|
12744
14301
|
return '选择旺店通商品';
|
|
12745
14302
|
}
|
|
14303
|
+
if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
|
|
14304
|
+
return '选择管易ERP商品';
|
|
14305
|
+
}
|
|
12746
14306
|
return '选择商品';
|
|
12747
14307
|
};
|
|
12748
14308
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -12834,515 +14394,42 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12834
14394
|
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
|
|
12835
14395
|
}
|
|
12836
14396
|
};
|
|
14397
|
+
var updateDataHandle = function updateDataHandle(data, index) {
|
|
14398
|
+
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
14399
|
+
value[index] = _objectSpread2(_objectSpread2({}, value[index]), data);
|
|
14400
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
|
|
14401
|
+
}
|
|
14402
|
+
};
|
|
12837
14403
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
12838
14404
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
12839
14405
|
var operate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
12840
14406
|
return function (type) {
|
|
12841
14407
|
var columns = [];
|
|
12842
14408
|
switch (type) {
|
|
12843
|
-
case 'WDT_REISSUE_GOODS':
|
|
12844
|
-
{
|
|
12845
|
-
columns = getWdtReissueGoodColumns({
|
|
12846
|
-
disabled: disabled,
|
|
12847
|
-
updateHandle: updateHandle,
|
|
12848
|
-
operate: operate
|
|
12849
|
-
});
|
|
12850
|
-
}
|
|
12851
|
-
break;
|
|
12852
14409
|
case 'WDT_GOODS':
|
|
12853
|
-
columns = [{
|
|
12854
|
-
dataIndex: 'goodId',
|
|
12855
|
-
title: "\u5546\u54C1ID",
|
|
12856
|
-
align: 'center',
|
|
12857
|
-
ellipsis: true,
|
|
12858
|
-
width: 70
|
|
12859
|
-
}, {
|
|
12860
|
-
dataIndex: 'goodNo',
|
|
12861
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
12862
|
-
align: 'center',
|
|
12863
|
-
ellipsis: true,
|
|
12864
|
-
width: 180
|
|
12865
|
-
}, {
|
|
12866
|
-
dataIndex: 'goodName',
|
|
12867
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
12868
|
-
align: 'center',
|
|
12869
|
-
ellipsis: true,
|
|
12870
|
-
width: 250
|
|
12871
|
-
}, {
|
|
12872
|
-
dataIndex: 'specId',
|
|
12873
|
-
title: "".concat(text, "SKUID"),
|
|
12874
|
-
align: 'center',
|
|
12875
|
-
ellipsis: true,
|
|
12876
|
-
width: 100
|
|
12877
|
-
}, {
|
|
12878
|
-
dataIndex: 'specNo',
|
|
12879
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
12880
|
-
align: 'center',
|
|
12881
|
-
ellipsis: true,
|
|
12882
|
-
width: 180
|
|
12883
|
-
}, {
|
|
12884
|
-
dataIndex: 'specName',
|
|
12885
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
12886
|
-
align: 'center',
|
|
12887
|
-
ellipsis: true,
|
|
12888
|
-
width: 250
|
|
12889
|
-
}, {
|
|
12890
|
-
dataIndex: 'orderPrice',
|
|
12891
|
-
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
12892
|
-
align: 'center',
|
|
12893
|
-
ellipsis: true,
|
|
12894
|
-
width: 100
|
|
12895
|
-
}, {
|
|
12896
|
-
dataIndex: 'num',
|
|
12897
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
12898
|
-
align: 'center',
|
|
12899
|
-
ellipsis: true,
|
|
12900
|
-
width: 100,
|
|
12901
|
-
render: function render(val, record, index) {
|
|
12902
|
-
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
12903
|
-
style: {
|
|
12904
|
-
width: 70
|
|
12905
|
-
},
|
|
12906
|
-
value: val,
|
|
12907
|
-
min: 1,
|
|
12908
|
-
precision: 0,
|
|
12909
|
-
onChange: function onChange(num) {
|
|
12910
|
-
return updateHandle(num, index, 'num');
|
|
12911
|
-
}
|
|
12912
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12913
|
-
}
|
|
12914
|
-
},
|
|
12915
|
-
// {
|
|
12916
|
-
// dataIndex: 'actualNum',
|
|
12917
|
-
// title: `${text}实发数量`,
|
|
12918
|
-
// align: 'center',
|
|
12919
|
-
// ellipsis: true,
|
|
12920
|
-
// width: 100,
|
|
12921
|
-
// },
|
|
12922
|
-
{
|
|
12923
|
-
dataIndex: 'sharePrice',
|
|
12924
|
-
title: "\u5206\u644A\u4EF7",
|
|
12925
|
-
align: 'center',
|
|
12926
|
-
ellipsis: true,
|
|
12927
|
-
width: 70
|
|
12928
|
-
}, {
|
|
12929
|
-
dataIndex: 'giftType',
|
|
12930
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12931
|
-
align: 'center',
|
|
12932
|
-
ellipsis: true,
|
|
12933
|
-
width: 100,
|
|
12934
|
-
render: function render(val) {
|
|
12935
|
-
var giftTypeMap = {
|
|
12936
|
-
0: '非赠品',
|
|
12937
|
-
1: '自动赠送',
|
|
12938
|
-
2: '手工赠送',
|
|
12939
|
-
3: '回购自动送赠品',
|
|
12940
|
-
4: '前N有礼送赠品',
|
|
12941
|
-
6: '天猫优仓赠品',
|
|
12942
|
-
7: '淘宝CRM会员送赠'
|
|
12943
|
-
};
|
|
12944
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
12945
|
-
}
|
|
12946
|
-
}];
|
|
12947
|
-
break;
|
|
12948
14410
|
case 'WDT_RETURN_GOODS':
|
|
12949
|
-
{
|
|
12950
|
-
columns = [{
|
|
12951
|
-
dataIndex: 'goodId',
|
|
12952
|
-
title: "\u5546\u54C1ID",
|
|
12953
|
-
align: 'center',
|
|
12954
|
-
ellipsis: true,
|
|
12955
|
-
width: 70
|
|
12956
|
-
}, {
|
|
12957
|
-
dataIndex: 'goodNo',
|
|
12958
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
12959
|
-
align: 'center',
|
|
12960
|
-
ellipsis: true,
|
|
12961
|
-
width: 180
|
|
12962
|
-
}, {
|
|
12963
|
-
dataIndex: 'goodName',
|
|
12964
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
12965
|
-
align: 'center',
|
|
12966
|
-
ellipsis: true,
|
|
12967
|
-
width: 250
|
|
12968
|
-
}, {
|
|
12969
|
-
dataIndex: 'specId',
|
|
12970
|
-
title: "".concat(text, "SKUID"),
|
|
12971
|
-
align: 'center',
|
|
12972
|
-
ellipsis: true,
|
|
12973
|
-
width: 100
|
|
12974
|
-
}, {
|
|
12975
|
-
dataIndex: 'specNo',
|
|
12976
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
12977
|
-
align: 'center',
|
|
12978
|
-
ellipsis: true,
|
|
12979
|
-
width: 180
|
|
12980
|
-
}, {
|
|
12981
|
-
dataIndex: 'specName',
|
|
12982
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
12983
|
-
align: 'center',
|
|
12984
|
-
ellipsis: true,
|
|
12985
|
-
width: 250
|
|
12986
|
-
}, {
|
|
12987
|
-
dataIndex: 'num',
|
|
12988
|
-
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
12989
|
-
align: 'center',
|
|
12990
|
-
ellipsis: true,
|
|
12991
|
-
width: 100,
|
|
12992
|
-
render: function render(val, record, index) {
|
|
12993
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
12994
|
-
style: {
|
|
12995
|
-
width: 70
|
|
12996
|
-
},
|
|
12997
|
-
value: val,
|
|
12998
|
-
min: 1,
|
|
12999
|
-
precision: 0,
|
|
13000
|
-
onChange: function onChange(num) {
|
|
13001
|
-
return updateHandle(num, index, 'num');
|
|
13002
|
-
}
|
|
13003
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13004
|
-
}
|
|
13005
|
-
}, {
|
|
13006
|
-
dataIndex: 'sharePrice',
|
|
13007
|
-
title: "\u5206\u644A\u4EF7",
|
|
13008
|
-
align: 'center',
|
|
13009
|
-
ellipsis: true,
|
|
13010
|
-
width: 80,
|
|
13011
|
-
render: function render(val, record, index) {
|
|
13012
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13013
|
-
style: {
|
|
13014
|
-
width: 70
|
|
13015
|
-
},
|
|
13016
|
-
value: val,
|
|
13017
|
-
min: 0,
|
|
13018
|
-
onChange: function onChange(value) {
|
|
13019
|
-
return updateHandle(value, index, 'sharePrice');
|
|
13020
|
-
}
|
|
13021
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13022
|
-
}
|
|
13023
|
-
}, {
|
|
13024
|
-
dataIndex: 'returnPrice',
|
|
13025
|
-
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
13026
|
-
align: 'center',
|
|
13027
|
-
ellipsis: true,
|
|
13028
|
-
width: 100
|
|
13029
|
-
}, {
|
|
13030
|
-
dataIndex: 'giftType',
|
|
13031
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13032
|
-
align: 'center',
|
|
13033
|
-
ellipsis: true,
|
|
13034
|
-
width: 100,
|
|
13035
|
-
render: function render(val) {
|
|
13036
|
-
var giftTypeMap = {
|
|
13037
|
-
0: '非赠品',
|
|
13038
|
-
1: '自动赠送',
|
|
13039
|
-
2: '手工赠送',
|
|
13040
|
-
3: '回购自动送赠品',
|
|
13041
|
-
4: '前N有礼送赠品',
|
|
13042
|
-
6: '天猫优仓赠品',
|
|
13043
|
-
7: '淘宝CRM会员送赠'
|
|
13044
|
-
};
|
|
13045
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
13046
|
-
}
|
|
13047
|
-
}, {
|
|
13048
|
-
dataIndex: 'type',
|
|
13049
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
13050
|
-
align: 'center',
|
|
13051
|
-
ellipsis: true,
|
|
13052
|
-
width: 100,
|
|
13053
|
-
render: function render(val, record, index) {
|
|
13054
|
-
var options = [{
|
|
13055
|
-
label: '单品',
|
|
13056
|
-
value: '1'
|
|
13057
|
-
}, {
|
|
13058
|
-
label: '组合装',
|
|
13059
|
-
value: '2'
|
|
13060
|
-
}];
|
|
13061
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
13062
|
-
style: {
|
|
13063
|
-
width: 70
|
|
13064
|
-
},
|
|
13065
|
-
options: options,
|
|
13066
|
-
value: val,
|
|
13067
|
-
onChange: function onChange(value) {
|
|
13068
|
-
return updateHandle(value, index, 'type');
|
|
13069
|
-
}
|
|
13070
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13071
|
-
}
|
|
13072
|
-
}];
|
|
13073
|
-
}
|
|
13074
|
-
break;
|
|
13075
14411
|
case 'WDT_EXCHANGE_GOODS':
|
|
14412
|
+
case 'BS_E3_GOODS':
|
|
14413
|
+
case 'BS_GOODS':
|
|
14414
|
+
case 'WLN_GOODS':
|
|
14415
|
+
case 'GY_GOODS':
|
|
14416
|
+
case 'GY_REISSUE_GOODS':
|
|
13076
14417
|
{
|
|
13077
|
-
columns =
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
}, {
|
|
13084
|
-
dataIndex: 'goodNo',
|
|
13085
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
13086
|
-
align: 'center',
|
|
13087
|
-
ellipsis: true,
|
|
13088
|
-
width: 180
|
|
13089
|
-
}, {
|
|
13090
|
-
dataIndex: 'goodName',
|
|
13091
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13092
|
-
align: 'center',
|
|
13093
|
-
ellipsis: true,
|
|
13094
|
-
width: 250
|
|
13095
|
-
}, {
|
|
13096
|
-
dataIndex: 'specId',
|
|
13097
|
-
title: "".concat(text, "SKUID"),
|
|
13098
|
-
align: 'center',
|
|
13099
|
-
ellipsis: true,
|
|
13100
|
-
width: 100
|
|
13101
|
-
}, {
|
|
13102
|
-
dataIndex: 'specNo',
|
|
13103
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
13104
|
-
align: 'center',
|
|
13105
|
-
ellipsis: true,
|
|
13106
|
-
width: 180
|
|
13107
|
-
}, {
|
|
13108
|
-
dataIndex: 'specName',
|
|
13109
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13110
|
-
align: 'center',
|
|
13111
|
-
ellipsis: true,
|
|
13112
|
-
width: 250
|
|
13113
|
-
}, {
|
|
13114
|
-
dataIndex: 'num',
|
|
13115
|
-
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
13116
|
-
align: 'center',
|
|
13117
|
-
ellipsis: true,
|
|
13118
|
-
width: 100,
|
|
13119
|
-
render: function render(val, record, index) {
|
|
13120
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13121
|
-
style: {
|
|
13122
|
-
width: 70
|
|
13123
|
-
},
|
|
13124
|
-
value: val,
|
|
13125
|
-
min: 1,
|
|
13126
|
-
precision: 0,
|
|
13127
|
-
onChange: function onChange(num) {
|
|
13128
|
-
return updateHandle(num, index, 'num');
|
|
13129
|
-
}
|
|
13130
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13131
|
-
}
|
|
13132
|
-
}, {
|
|
13133
|
-
dataIndex: 'price',
|
|
13134
|
-
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
13135
|
-
align: 'center',
|
|
13136
|
-
ellipsis: true,
|
|
13137
|
-
width: 100,
|
|
13138
|
-
render: function render(val, record, index) {
|
|
13139
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13140
|
-
style: {
|
|
13141
|
-
width: 70
|
|
13142
|
-
},
|
|
13143
|
-
value: val,
|
|
13144
|
-
min: 0,
|
|
13145
|
-
onChange: function onChange(value) {
|
|
13146
|
-
return updateHandle(value, index, 'price');
|
|
13147
|
-
}
|
|
13148
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13149
|
-
}
|
|
13150
|
-
}, {
|
|
13151
|
-
dataIndex: 'exchangePrice',
|
|
13152
|
-
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
13153
|
-
align: 'center',
|
|
13154
|
-
ellipsis: true,
|
|
13155
|
-
width: 100
|
|
13156
|
-
}, {
|
|
13157
|
-
dataIndex: 'giftType',
|
|
13158
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13159
|
-
align: 'center',
|
|
13160
|
-
ellipsis: true,
|
|
13161
|
-
width: 100,
|
|
13162
|
-
render: function render(val) {
|
|
13163
|
-
var giftTypeMap = {
|
|
13164
|
-
0: '非赠品',
|
|
13165
|
-
1: '自动赠送',
|
|
13166
|
-
2: '手工赠送',
|
|
13167
|
-
3: '回购自动送赠品',
|
|
13168
|
-
4: '前N有礼送赠品',
|
|
13169
|
-
6: '天猫优仓赠品',
|
|
13170
|
-
7: '淘宝CRM会员送赠'
|
|
13171
|
-
};
|
|
13172
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
13173
|
-
}
|
|
13174
|
-
}, {
|
|
13175
|
-
dataIndex: 'type',
|
|
13176
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
13177
|
-
align: 'center',
|
|
13178
|
-
ellipsis: true,
|
|
13179
|
-
width: 100,
|
|
13180
|
-
render: function render(val, record, index) {
|
|
13181
|
-
var options = [{
|
|
13182
|
-
label: '单品',
|
|
13183
|
-
value: '1'
|
|
13184
|
-
}, {
|
|
13185
|
-
label: '组合装',
|
|
13186
|
-
value: '2'
|
|
13187
|
-
}];
|
|
13188
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
13189
|
-
style: {
|
|
13190
|
-
width: 70
|
|
13191
|
-
},
|
|
13192
|
-
options: options,
|
|
13193
|
-
value: val,
|
|
13194
|
-
onChange: function onChange(value) {
|
|
13195
|
-
return updateHandle(value, index, 'type');
|
|
13196
|
-
}
|
|
13197
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13198
|
-
}
|
|
13199
|
-
}];
|
|
14418
|
+
columns = getColumnsMap({
|
|
14419
|
+
text: text,
|
|
14420
|
+
disabled: disabled,
|
|
14421
|
+
updateHandle: updateHandle,
|
|
14422
|
+
updateDataHandle: updateDataHandle
|
|
14423
|
+
})[type];
|
|
13200
14424
|
}
|
|
13201
14425
|
break;
|
|
13202
|
-
case '
|
|
14426
|
+
case 'WDT_REISSUE_GOODS':
|
|
13203
14427
|
{
|
|
13204
|
-
columns =
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
width: 150
|
|
13210
|
-
}, {
|
|
13211
|
-
dataIndex: 'skuId',
|
|
13212
|
-
title: "SKU ID",
|
|
13213
|
-
align: 'center',
|
|
13214
|
-
ellipsis: true,
|
|
13215
|
-
width: 150
|
|
13216
|
-
}, {
|
|
13217
|
-
dataIndex: 'goodsName',
|
|
13218
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
13219
|
-
align: 'center',
|
|
13220
|
-
ellipsis: true,
|
|
13221
|
-
width: 150
|
|
13222
|
-
}, {
|
|
13223
|
-
dataIndex: 'goodsShortName',
|
|
13224
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
13225
|
-
align: 'center',
|
|
13226
|
-
ellipsis: true,
|
|
13227
|
-
width: 100
|
|
13228
|
-
}, {
|
|
13229
|
-
dataIndex: 'picPath',
|
|
13230
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
13231
|
-
align: 'center',
|
|
13232
|
-
ellipsis: true,
|
|
13233
|
-
width: 100,
|
|
13234
|
-
render: function render(val) {
|
|
13235
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
13236
|
-
width: 60,
|
|
13237
|
-
src: val
|
|
13238
|
-
});
|
|
13239
|
-
}
|
|
13240
|
-
}, {
|
|
13241
|
-
dataIndex: 'goodsSn',
|
|
13242
|
-
title: "\u8D27\u53F7",
|
|
13243
|
-
align: 'center',
|
|
13244
|
-
ellipsis: true,
|
|
13245
|
-
width: 150
|
|
13246
|
-
}, {
|
|
13247
|
-
dataIndex: 'goodsId',
|
|
13248
|
-
title: "\u8D27\u53F7ID",
|
|
13249
|
-
align: 'center',
|
|
13250
|
-
ellipsis: true,
|
|
13251
|
-
width: 150
|
|
13252
|
-
}, {
|
|
13253
|
-
dataIndex: 'colorName',
|
|
13254
|
-
title: "\u989C\u8272\u540D\u79F0",
|
|
13255
|
-
align: 'center',
|
|
13256
|
-
ellipsis: true,
|
|
13257
|
-
width: 100
|
|
13258
|
-
}, {
|
|
13259
|
-
dataIndex: 'colorCode',
|
|
13260
|
-
title: "\u989C\u8272\u4EE3\u7801",
|
|
13261
|
-
align: 'center',
|
|
13262
|
-
ellipsis: true,
|
|
13263
|
-
width: 150
|
|
13264
|
-
}, {
|
|
13265
|
-
dataIndex: 'sizeName',
|
|
13266
|
-
title: "\u5C3A\u7801\u540D\u79F0",
|
|
13267
|
-
align: 'center',
|
|
13268
|
-
ellipsis: true,
|
|
13269
|
-
width: 100
|
|
13270
|
-
}, {
|
|
13271
|
-
dataIndex: 'sizeCode',
|
|
13272
|
-
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
13273
|
-
align: 'center',
|
|
13274
|
-
ellipsis: true,
|
|
13275
|
-
width: 100
|
|
13276
|
-
}, {
|
|
13277
|
-
dataIndex: 'brandName',
|
|
13278
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
13279
|
-
align: 'center',
|
|
13280
|
-
ellipsis: true,
|
|
13281
|
-
width: 150
|
|
13282
|
-
}, {
|
|
13283
|
-
dataIndex: 'goodsNumber',
|
|
13284
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
13285
|
-
align: 'center',
|
|
13286
|
-
ellipsis: true,
|
|
13287
|
-
width: 100
|
|
13288
|
-
}, {
|
|
13289
|
-
dataIndex: 'goodsPrice',
|
|
13290
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
13291
|
-
align: 'center',
|
|
13292
|
-
ellipsis: true,
|
|
13293
|
-
width: 120
|
|
13294
|
-
}, {
|
|
13295
|
-
dataIndex: 'shopPrice',
|
|
13296
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
13297
|
-
align: 'center',
|
|
13298
|
-
ellipsis: true,
|
|
13299
|
-
width: 120
|
|
13300
|
-
}, {
|
|
13301
|
-
dataIndex: 'sharePrice',
|
|
13302
|
-
title: "\u5206\u644A\u4EF7",
|
|
13303
|
-
align: 'center',
|
|
13304
|
-
ellipsis: true,
|
|
13305
|
-
width: 120
|
|
13306
|
-
}, {
|
|
13307
|
-
dataIndex: 'sharePayment',
|
|
13308
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
13309
|
-
align: 'center',
|
|
13310
|
-
ellipsis: true,
|
|
13311
|
-
width: 120
|
|
13312
|
-
}, {
|
|
13313
|
-
dataIndex: 'payment',
|
|
13314
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13315
|
-
align: 'center',
|
|
13316
|
-
ellipsis: true,
|
|
13317
|
-
width: 120
|
|
13318
|
-
}, {
|
|
13319
|
-
dataIndex: 'tcSku',
|
|
13320
|
-
title: "\u5957\u9910SKU",
|
|
13321
|
-
align: 'center',
|
|
13322
|
-
ellipsis: true,
|
|
13323
|
-
width: 150
|
|
13324
|
-
}, {
|
|
13325
|
-
dataIndex: 'tcGoodsNumber',
|
|
13326
|
-
title: "\u5957\u9910\u5957\u6570",
|
|
13327
|
-
align: 'center',
|
|
13328
|
-
ellipsis: true,
|
|
13329
|
-
width: 100
|
|
13330
|
-
}, {
|
|
13331
|
-
dataIndex: 'taoCanSingleSl',
|
|
13332
|
-
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
13333
|
-
align: 'center',
|
|
13334
|
-
ellipsis: true,
|
|
13335
|
-
width: 100
|
|
13336
|
-
}, {
|
|
13337
|
-
dataIndex: 'isGift',
|
|
13338
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
13339
|
-
align: 'center',
|
|
13340
|
-
ellipsis: true,
|
|
13341
|
-
width: 100,
|
|
13342
|
-
render: function render(val) {
|
|
13343
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
13344
|
-
}
|
|
13345
|
-
}];
|
|
14428
|
+
columns = getWdtReissueGoodColumns({
|
|
14429
|
+
disabled: disabled,
|
|
14430
|
+
updateHandle: updateHandle,
|
|
14431
|
+
operate: operate
|
|
14432
|
+
});
|
|
13346
14433
|
}
|
|
13347
14434
|
break;
|
|
13348
14435
|
case 'BS_E3_REISSUE_GOODS':
|
|
@@ -13355,102 +14442,12 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13355
14442
|
}
|
|
13356
14443
|
break;
|
|
13357
14444
|
default:
|
|
13358
|
-
columns =
|
|
13359
|
-
|
|
13360
|
-
|
|
13361
|
-
|
|
13362
|
-
|
|
13363
|
-
|
|
13364
|
-
render: function render(val, record, index) {
|
|
13365
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
13366
|
-
options: [{
|
|
13367
|
-
label: '是',
|
|
13368
|
-
value: '是'
|
|
13369
|
-
}, {
|
|
13370
|
-
label: '否',
|
|
13371
|
-
value: '否'
|
|
13372
|
-
}],
|
|
13373
|
-
disabled: disabled,
|
|
13374
|
-
value: val,
|
|
13375
|
-
onChange: function onChange(val) {
|
|
13376
|
-
return updateHandle(val, index, 'mark');
|
|
13377
|
-
}
|
|
13378
|
-
});
|
|
13379
|
-
}
|
|
13380
|
-
}, {
|
|
13381
|
-
dataIndex: 'skuName',
|
|
13382
|
-
title: "".concat(text, "sku\u540D\u79F0"),
|
|
13383
|
-
align: 'center',
|
|
13384
|
-
ellipsis: true,
|
|
13385
|
-
width: 250
|
|
13386
|
-
}, {
|
|
13387
|
-
dataIndex: 'sku',
|
|
13388
|
-
title: "".concat(text, "sku\u7F16\u7801"),
|
|
13389
|
-
align: 'center',
|
|
13390
|
-
ellipsis: true,
|
|
13391
|
-
width: 100
|
|
13392
|
-
}, {
|
|
13393
|
-
dataIndex: 'name',
|
|
13394
|
-
title: "".concat(text, "\u540D\u79F0"),
|
|
13395
|
-
align: 'center',
|
|
13396
|
-
ellipsis: true,
|
|
13397
|
-
width: 250
|
|
13398
|
-
}, {
|
|
13399
|
-
dataIndex: 'pic',
|
|
13400
|
-
title: "\u56FE\u7247",
|
|
13401
|
-
align: 'center',
|
|
13402
|
-
ellipsis: true,
|
|
13403
|
-
width: 100,
|
|
13404
|
-
render: function render(val) {
|
|
13405
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
13406
|
-
width: 60,
|
|
13407
|
-
src: val
|
|
13408
|
-
});
|
|
13409
|
-
}
|
|
13410
|
-
}, {
|
|
13411
|
-
dataIndex: 'code',
|
|
13412
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
13413
|
-
align: 'center',
|
|
13414
|
-
ellipsis: true,
|
|
13415
|
-
width: 100
|
|
13416
|
-
}, {
|
|
13417
|
-
dataIndex: 'money',
|
|
13418
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13419
|
-
align: 'center',
|
|
13420
|
-
ellipsis: true,
|
|
13421
|
-
width: 100
|
|
13422
|
-
}, {
|
|
13423
|
-
dataIndex: 'number',
|
|
13424
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
13425
|
-
align: 'center',
|
|
13426
|
-
ellipsis: true,
|
|
13427
|
-
width: 100,
|
|
13428
|
-
render: function render(val, record, index) {
|
|
13429
|
-
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13430
|
-
style: {
|
|
13431
|
-
width: 70
|
|
13432
|
-
},
|
|
13433
|
-
value: val,
|
|
13434
|
-
min: 1,
|
|
13435
|
-
precision: 0,
|
|
13436
|
-
onChange: function onChange(num) {
|
|
13437
|
-
return updateHandle(num, index, 'number');
|
|
13438
|
-
}
|
|
13439
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13440
|
-
}
|
|
13441
|
-
}, {
|
|
13442
|
-
dataIndex: 'share',
|
|
13443
|
-
title: "\u5206\u644A\u4EF7",
|
|
13444
|
-
align: 'center',
|
|
13445
|
-
ellipsis: true,
|
|
13446
|
-
width: 70
|
|
13447
|
-
}, {
|
|
13448
|
-
dataIndex: 'type',
|
|
13449
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
13450
|
-
align: 'center',
|
|
13451
|
-
ellipsis: true,
|
|
13452
|
-
width: 100
|
|
13453
|
-
}];
|
|
14445
|
+
columns = getColumnsMap({
|
|
14446
|
+
text: text,
|
|
14447
|
+
disabled: disabled,
|
|
14448
|
+
updateHandle: updateHandle,
|
|
14449
|
+
updateDataHandle: updateDataHandle
|
|
14450
|
+
})['default'];
|
|
13454
14451
|
}
|
|
13455
14452
|
return columns;
|
|
13456
14453
|
};
|
|
@@ -13462,6 +14459,24 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13462
14459
|
return COLUMNS_INFO(type);
|
|
13463
14460
|
};
|
|
13464
14461
|
var newColumns = React.useMemo(function () {
|
|
14462
|
+
var initBaseInfoColumns = GOODS_INFO_COLUMNS();
|
|
14463
|
+
var baseInfoColumns = [];
|
|
14464
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
14465
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
14466
|
+
if (isStringArray) {
|
|
14467
|
+
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
14468
|
+
return showHeader.includes(col.dataIndex);
|
|
14469
|
+
});
|
|
14470
|
+
} else if (isObjectArray) {
|
|
14471
|
+
baseInfoColumns = showHeader.filter(function (col) {
|
|
14472
|
+
return col.show !== false;
|
|
14473
|
+
}).map(function (col) {
|
|
14474
|
+
var currentCol = initBaseInfoColumns.find(function (item) {
|
|
14475
|
+
return item.dataIndex === col.dataIndex;
|
|
14476
|
+
});
|
|
14477
|
+
return currentCol ? currentCol : undefined;
|
|
14478
|
+
}).filter(Boolean);
|
|
14479
|
+
}
|
|
13465
14480
|
var columnList = [{
|
|
13466
14481
|
dataIndex: '',
|
|
13467
14482
|
title: '序号',
|
|
@@ -13471,9 +14486,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13471
14486
|
render: function render(val, record, index) {
|
|
13472
14487
|
return /*#__PURE__*/React__default['default'].createElement("span", null, index + 1);
|
|
13473
14488
|
}
|
|
13474
|
-
}].concat(_toConsumableArray(
|
|
13475
|
-
return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
|
|
13476
|
-
})));
|
|
14489
|
+
}].concat(_toConsumableArray(baseInfoColumns));
|
|
13477
14490
|
if (!disabled) {
|
|
13478
14491
|
columnList.push({
|
|
13479
14492
|
dataIndex: '',
|
|
@@ -13551,10 +14564,33 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13551
14564
|
isGift: '',
|
|
13552
14565
|
uuid: kmkfUtils.uuid(),
|
|
13553
14566
|
canDelete: true,
|
|
14567
|
+
canEdit: true,
|
|
13554
14568
|
goodsNumber: 1,
|
|
13555
14569
|
canUpdateNumber: canUpdateNumber
|
|
13556
14570
|
});
|
|
13557
14571
|
});
|
|
14572
|
+
} else if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
|
|
14573
|
+
newList = list.map(function (item) {
|
|
14574
|
+
var goodName = item.goodName,
|
|
14575
|
+
goodShortName = item.goodShortName,
|
|
14576
|
+
goodNo = item.goodNo,
|
|
14577
|
+
specName = item.specName,
|
|
14578
|
+
specNo = item.specNo,
|
|
14579
|
+
retailPrice = item.retailPrice;
|
|
14580
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14581
|
+
uuid: kmkfUtils.uuid(),
|
|
14582
|
+
canDelete: true,
|
|
14583
|
+
canEdit: true,
|
|
14584
|
+
qty: 1,
|
|
14585
|
+
goodName: goodName,
|
|
14586
|
+
goodShortName: goodShortName,
|
|
14587
|
+
goodNo: goodNo,
|
|
14588
|
+
specName: specName,
|
|
14589
|
+
specNo: specNo,
|
|
14590
|
+
originPrice: !kmkfUtils.isNull(retailPrice) ? Number(retailPrice) : null,
|
|
14591
|
+
originAmount: !kmkfUtils.isNull(retailPrice) ? Number(retailPrice) : null
|
|
14592
|
+
});
|
|
14593
|
+
});
|
|
13558
14594
|
} else {
|
|
13559
14595
|
newList = list.map(function (item) {
|
|
13560
14596
|
var goodsId = item.goodsId,
|
|
@@ -13650,6 +14686,14 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13650
14686
|
shopId: shopId,
|
|
13651
14687
|
maxLength: maxLength,
|
|
13652
14688
|
companyKey: companyKey
|
|
14689
|
+
}) : ['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type) ? /*#__PURE__*/React__default['default'].createElement(GyGoodsModal$1, {
|
|
14690
|
+
ref: refModal,
|
|
14691
|
+
onSubmit: onSubmit,
|
|
14692
|
+
width: width,
|
|
14693
|
+
shopList: shopList,
|
|
14694
|
+
shopId: shopId,
|
|
14695
|
+
maxLength: maxLength,
|
|
14696
|
+
companyKey: companyKey
|
|
13653
14697
|
}) : /*#__PURE__*/React__default['default'].createElement(GoodsModal$2, {
|
|
13654
14698
|
ref: refModal,
|
|
13655
14699
|
onSubmit: onSubmit,
|
|
@@ -14335,25 +15379,72 @@ var getBsE3OrderListSingleton = function getBsE3OrderListSingleton(orderNo) {
|
|
|
14335
15379
|
}
|
|
14336
15380
|
resolve(data.data);
|
|
14337
15381
|
} else {
|
|
14338
|
-
doReject(data);
|
|
15382
|
+
doReject(data);
|
|
15383
|
+
}
|
|
15384
|
+
}).catch(doReject);
|
|
15385
|
+
});
|
|
15386
|
+
singletonMap$1.set(orderNo, p);
|
|
15387
|
+
}
|
|
15388
|
+
return singletonMap$1.get(orderNo);
|
|
15389
|
+
};
|
|
15390
|
+
var bsE3Utils = {
|
|
15391
|
+
getBsE3OrderListSingleton: getBsE3OrderListSingleton
|
|
15392
|
+
};
|
|
15393
|
+
|
|
15394
|
+
var singletonMap$2 = new Map();
|
|
15395
|
+
var getGyOrderListSingleton = function getGyOrderListSingleton(orderNo) {
|
|
15396
|
+
if (!singletonMap$2.has(orderNo)) {
|
|
15397
|
+
var p = new Promise(function (resolve, reject) {
|
|
15398
|
+
var doReject = function doReject(err) {
|
|
15399
|
+
// 清空掉错误的请求记录
|
|
15400
|
+
singletonMap$2.delete(orderNo);
|
|
15401
|
+
reject(err);
|
|
15402
|
+
};
|
|
15403
|
+
extendRequest('/qy/gdfw/oms/gyOrderDetail', {
|
|
15404
|
+
method: 'post',
|
|
15405
|
+
data: {
|
|
15406
|
+
tid: orderNo
|
|
15407
|
+
}
|
|
15408
|
+
}).then(function (res) {
|
|
15409
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
15410
|
+
var _res$data;
|
|
15411
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
15412
|
+
res.data.trades = kmkfUtils.filterGyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo).map(function (item) {
|
|
15413
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
15414
|
+
billNo: item.code,
|
|
15415
|
+
billType: item.orderTypeName,
|
|
15416
|
+
billTag: item.tagName,
|
|
15417
|
+
tradeTagName: item.tradeTagName,
|
|
15418
|
+
deliveryState: item.deliveryState,
|
|
15419
|
+
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[item.deliveryState]
|
|
15420
|
+
});
|
|
15421
|
+
});
|
|
15422
|
+
}
|
|
15423
|
+
resolve(res.data);
|
|
15424
|
+
// 延迟10秒清除,保证订单的时效性
|
|
15425
|
+
setTimeout(function () {
|
|
15426
|
+
singletonMap$2.delete(orderNo);
|
|
15427
|
+
}, 1000 * 10);
|
|
15428
|
+
} else {
|
|
15429
|
+
doReject(res);
|
|
14339
15430
|
}
|
|
14340
15431
|
}).catch(doReject);
|
|
14341
15432
|
});
|
|
14342
|
-
singletonMap$
|
|
15433
|
+
singletonMap$2.set(orderNo, p);
|
|
14343
15434
|
}
|
|
14344
|
-
return singletonMap$
|
|
15435
|
+
return singletonMap$2.get(orderNo);
|
|
14345
15436
|
};
|
|
14346
|
-
var
|
|
14347
|
-
|
|
15437
|
+
var gyUtils = {
|
|
15438
|
+
getGyOrderListSingleton: getGyOrderListSingleton
|
|
14348
15439
|
};
|
|
14349
15440
|
|
|
14350
|
-
var singletonMap$
|
|
15441
|
+
var singletonMap$3 = new Map();
|
|
14351
15442
|
var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
14352
|
-
if (!singletonMap$
|
|
15443
|
+
if (!singletonMap$3.has(orderNo)) {
|
|
14353
15444
|
var p = new Promise(function (resolve, reject) {
|
|
14354
15445
|
var doReject = function doReject(err) {
|
|
14355
15446
|
// 清空掉错误的请求记录
|
|
14356
|
-
singletonMap$
|
|
15447
|
+
singletonMap$3.delete(orderNo);
|
|
14357
15448
|
reject(err);
|
|
14358
15449
|
};
|
|
14359
15450
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
@@ -14379,151 +15470,36 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
|
14379
15470
|
}
|
|
14380
15471
|
// 延迟10秒清除,保证订单的时效性
|
|
14381
15472
|
setTimeout(function () {
|
|
14382
|
-
singletonMap$
|
|
15473
|
+
singletonMap$3.delete(orderNo);
|
|
14383
15474
|
}, 1000 * 10);
|
|
14384
15475
|
} else {
|
|
14385
15476
|
doReject(data);
|
|
14386
15477
|
}
|
|
14387
15478
|
}).catch(doReject);
|
|
14388
15479
|
});
|
|
14389
|
-
singletonMap$
|
|
15480
|
+
singletonMap$3.set(orderNo, p);
|
|
14390
15481
|
}
|
|
14391
|
-
return singletonMap$
|
|
15482
|
+
return singletonMap$3.get(orderNo);
|
|
14392
15483
|
};
|
|
14393
15484
|
var kmUtils = {
|
|
14394
15485
|
getOrderListSingleton: getOrderListSingleton
|
|
14395
15486
|
};
|
|
14396
15487
|
|
|
14397
15488
|
var columnsMap = {
|
|
14398
|
-
BS_SYSTEM_ORDER:
|
|
14399
|
-
title: '单据类型',
|
|
14400
|
-
dataIndex: 'billType',
|
|
14401
|
-
width: 150
|
|
14402
|
-
}, {
|
|
14403
|
-
title: '系统订单号',
|
|
14404
|
-
dataIndex: 'billNo',
|
|
14405
|
-
width: 150
|
|
14406
|
-
}, {
|
|
14407
|
-
title: '标签',
|
|
14408
|
-
dataIndex: 'billTag',
|
|
14409
|
-
width: 150
|
|
14410
|
-
}, {
|
|
14411
|
-
title: '主播名称',
|
|
14412
|
-
dataIndex: 'authorName',
|
|
14413
|
-
width: 150
|
|
14414
|
-
}, {
|
|
14415
|
-
title: '主播ID',
|
|
14416
|
-
dataIndex: 'authorId',
|
|
14417
|
-
width: 150
|
|
14418
|
-
}
|
|
14419
|
-
// {
|
|
14420
|
-
// title: '直播活动',
|
|
14421
|
-
// dataIndex: 'liveActivites',
|
|
14422
|
-
// width: 150,
|
|
14423
|
-
// },
|
|
14424
|
-
],
|
|
14425
|
-
|
|
15489
|
+
BS_SYSTEM_ORDER: kmkfUtils.BS_SYSTEM_ORDER_CONFIG.columns,
|
|
14426
15490
|
KM_SYSTEM_ORDER: kmkfUtils.KM_SYSTEM_ORDER_CONFIG.columns,
|
|
14427
|
-
WLN_SYSTEM_ORDER:
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
|
|
14431
|
-
}, {
|
|
14432
|
-
title: '系统订单号',
|
|
14433
|
-
dataIndex: 'billNo',
|
|
14434
|
-
width: 150
|
|
14435
|
-
}, {
|
|
14436
|
-
title: '标记',
|
|
14437
|
-
dataIndex: 'billTag',
|
|
14438
|
-
width: 150
|
|
14439
|
-
}],
|
|
14440
|
-
WDT_SYSTEM_ORDER: [{
|
|
14441
|
-
title: '订单类型',
|
|
14442
|
-
dataIndex: 'billType',
|
|
14443
|
-
width: 150
|
|
14444
|
-
}, {
|
|
14445
|
-
title: '系统订单号',
|
|
14446
|
-
dataIndex: 'billNo',
|
|
14447
|
-
width: 150
|
|
14448
|
-
}, {
|
|
14449
|
-
title: '订单标签',
|
|
14450
|
-
dataIndex: 'billTag',
|
|
14451
|
-
width: 150
|
|
14452
|
-
}],
|
|
14453
|
-
BS_E3_SYSTEM_ORDER: [{
|
|
14454
|
-
title: '系统订单号',
|
|
14455
|
-
dataIndex: 'orderSn',
|
|
14456
|
-
width: 150,
|
|
14457
|
-
ellipsis: true
|
|
14458
|
-
}, {
|
|
14459
|
-
title: '订单状态',
|
|
14460
|
-
dataIndex: 'orderStatus',
|
|
14461
|
-
width: 100,
|
|
14462
|
-
ellipsis: true,
|
|
14463
|
-
render: function render(val) {
|
|
14464
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_ORDER_STATUS_MAP[val] || val);
|
|
14465
|
-
}
|
|
14466
|
-
}, {
|
|
14467
|
-
title: '是否被拆分',
|
|
14468
|
-
dataIndex: 'isSplit',
|
|
14469
|
-
width: 100,
|
|
14470
|
-
ellipsis: true,
|
|
14471
|
-
render: function render(val) {
|
|
14472
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14473
|
-
}
|
|
14474
|
-
}, {
|
|
14475
|
-
title: '是否拆分子单',
|
|
14476
|
-
dataIndex: 'isSplitNew',
|
|
14477
|
-
width: 100,
|
|
14478
|
-
ellipsis: true,
|
|
14479
|
-
render: function render(val) {
|
|
14480
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14481
|
-
}
|
|
14482
|
-
}, {
|
|
14483
|
-
title: '是否被合并',
|
|
14484
|
-
dataIndex: 'isCombine',
|
|
14485
|
-
width: 100,
|
|
14486
|
-
ellipsis: true,
|
|
14487
|
-
render: function render(val) {
|
|
14488
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14489
|
-
}
|
|
14490
|
-
}, {
|
|
14491
|
-
title: '是否合并新单',
|
|
14492
|
-
dataIndex: 'isCombineNew',
|
|
14493
|
-
width: 100,
|
|
14494
|
-
ellipsis: true,
|
|
14495
|
-
render: function render(val) {
|
|
14496
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14497
|
-
}
|
|
14498
|
-
}, {
|
|
14499
|
-
title: '是否复制单',
|
|
14500
|
-
dataIndex: 'isCopy',
|
|
14501
|
-
width: 100,
|
|
14502
|
-
ellipsis: true,
|
|
14503
|
-
render: function render(val) {
|
|
14504
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14505
|
-
}
|
|
14506
|
-
}, {
|
|
14507
|
-
title: '是否换货单',
|
|
14508
|
-
dataIndex: 'isExchangeOrder',
|
|
14509
|
-
width: 100,
|
|
14510
|
-
ellipsis: true,
|
|
14511
|
-
render: function render(val) {
|
|
14512
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14513
|
-
}
|
|
14514
|
-
}, {
|
|
14515
|
-
title: '订单备注',
|
|
14516
|
-
dataIndex: 'orderMsg',
|
|
14517
|
-
width: 150,
|
|
14518
|
-
ellipsis: true
|
|
14519
|
-
}]
|
|
15491
|
+
WLN_SYSTEM_ORDER: kmkfUtils.WLN_SYSTEM_ORDER_CONFIG.columns,
|
|
15492
|
+
WDT_SYSTEM_ORDER: kmkfUtils.WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
15493
|
+
BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
15494
|
+
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns
|
|
14520
15495
|
};
|
|
14521
15496
|
var rowKeyMap = {
|
|
14522
15497
|
BS_SYSTEM_ORDER: 'billNo',
|
|
14523
15498
|
KM_SYSTEM_ORDER: 'billNo',
|
|
14524
15499
|
WLN_SYSTEM_ORDER: 'billNo',
|
|
14525
15500
|
WDT_SYSTEM_ORDER: 'billNo',
|
|
14526
|
-
BS_E3_SYSTEM_ORDER: 'orderSn'
|
|
15501
|
+
BS_E3_SYSTEM_ORDER: 'orderSn',
|
|
15502
|
+
GY_SYSTEM_ORDER: 'billNo'
|
|
14527
15503
|
};
|
|
14528
15504
|
var index$1 = (function (props) {
|
|
14529
15505
|
var value = props.value,
|
|
@@ -14545,6 +15521,9 @@ var index$1 = (function (props) {
|
|
|
14545
15521
|
getWdtOrderList(value.orderNo);
|
|
14546
15522
|
} else if (type === 'BS_E3_SYSTEM_ORDER') {
|
|
14547
15523
|
getBsE3OrderList(value.orderNo);
|
|
15524
|
+
} else if (type === 'GY_SYSTEM_ORDER') {
|
|
15525
|
+
console.log('触发gy--getGyOrderList--1');
|
|
15526
|
+
getGyOrderList(value.orderNo);
|
|
14548
15527
|
}
|
|
14549
15528
|
}
|
|
14550
15529
|
}, [value, type]);
|
|
@@ -14731,6 +15710,45 @@ var index$1 = (function (props) {
|
|
|
14731
15710
|
return _ref6.apply(this, arguments);
|
|
14732
15711
|
};
|
|
14733
15712
|
}();
|
|
15713
|
+
var getGyOrderList = /*#__PURE__*/function () {
|
|
15714
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(orderNo) {
|
|
15715
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
15716
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
15717
|
+
case 0:
|
|
15718
|
+
gyUtils.getGyOrderListSingleton(orderNo).then(function (data) {
|
|
15719
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
15720
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
15721
|
+
});
|
|
15722
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
15723
|
+
orders: trades,
|
|
15724
|
+
showOrderInfo: trades.map(function (_ref9) {
|
|
15725
|
+
var billNo = _ref9.billNo,
|
|
15726
|
+
billType = _ref9.billType,
|
|
15727
|
+
billTag = _ref9.billTag,
|
|
15728
|
+
tradeTagName = _ref9.tradeTagName,
|
|
15729
|
+
deliveryState = _ref9.deliveryState;
|
|
15730
|
+
return {
|
|
15731
|
+
billNo: billNo,
|
|
15732
|
+
billType: billType,
|
|
15733
|
+
billTag: billTag,
|
|
15734
|
+
tradeTagName: tradeTagName,
|
|
15735
|
+
deliveryState: deliveryState,
|
|
15736
|
+
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState]
|
|
15737
|
+
};
|
|
15738
|
+
})
|
|
15739
|
+
}));
|
|
15740
|
+
});
|
|
15741
|
+
onceRef.current = false;
|
|
15742
|
+
case 2:
|
|
15743
|
+
case "end":
|
|
15744
|
+
return _context6.stop();
|
|
15745
|
+
}
|
|
15746
|
+
}, _callee6);
|
|
15747
|
+
}));
|
|
15748
|
+
return function getGyOrderList(_x6) {
|
|
15749
|
+
return _ref8.apply(this, arguments);
|
|
15750
|
+
};
|
|
15751
|
+
}();
|
|
14734
15752
|
var rowSelection = {
|
|
14735
15753
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
14736
15754
|
fixed: true,
|
|
@@ -14747,7 +15765,24 @@ var index$1 = (function (props) {
|
|
|
14747
15765
|
};
|
|
14748
15766
|
}
|
|
14749
15767
|
};
|
|
14750
|
-
|
|
15768
|
+
// useEffect(() => {
|
|
15769
|
+
// const dom = document.querySelector(
|
|
15770
|
+
// `.${type}_SYSTEM_ORDER_COMPONENT .ant-table-content`,
|
|
15771
|
+
// );
|
|
15772
|
+
// //解决列表出现横向滚动条时选择数据造成行内闪烁问题
|
|
15773
|
+
// if (
|
|
15774
|
+
// (value?.selectIds || []).length > 0 &&
|
|
15775
|
+
// dom &&
|
|
15776
|
+
// dom.scrollWidth > dom.clientWidth &&
|
|
15777
|
+
// dom.scrollLeft === 0
|
|
15778
|
+
// ) {
|
|
15779
|
+
// console.log(dom.scrollWidth > dom.clientWidth, dom.scrollLeft === 0);
|
|
15780
|
+
// dom.scrollLeft = 1;
|
|
15781
|
+
// }
|
|
15782
|
+
// }, [JSON.stringify(value?.selectIds || [])]);
|
|
15783
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15784
|
+
className: "".concat(type, "_SYSTEM_ORDER_COMPONENT")
|
|
15785
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
14751
15786
|
dataSource: (value === null || value === void 0 ? void 0 : value.orders) || [],
|
|
14752
15787
|
columns: columns,
|
|
14753
15788
|
rowSelection: rowSelection,
|
|
@@ -14755,12 +15790,12 @@ var index$1 = (function (props) {
|
|
|
14755
15790
|
size: "small",
|
|
14756
15791
|
pagination: false,
|
|
14757
15792
|
scroll: {
|
|
14758
|
-
x: '
|
|
15793
|
+
x: 'max-content'
|
|
14759
15794
|
},
|
|
14760
15795
|
locale: {
|
|
14761
15796
|
emptyText: '暂无数据'
|
|
14762
15797
|
}
|
|
14763
|
-
});
|
|
15798
|
+
}));
|
|
14764
15799
|
});
|
|
14765
15800
|
|
|
14766
15801
|
var WlnGoods = function WlnGoods(props) {
|
|
@@ -14786,13 +15821,14 @@ var WlnGoods = function WlnGoods(props) {
|
|
|
14786
15821
|
};
|
|
14787
15822
|
|
|
14788
15823
|
var componentMap$1 = {
|
|
14789
|
-
|
|
15824
|
+
WDT_GOODS: {
|
|
14790
15825
|
type: 'wdt',
|
|
14791
15826
|
key: 'wdtGoods',
|
|
14792
15827
|
name: '旺店通',
|
|
14793
15828
|
orderNo: 'srcTid',
|
|
14794
15829
|
goodDetailOrderNo: 'srcTid',
|
|
14795
15830
|
eventNameMap: {
|
|
15831
|
+
// pubsub 事件
|
|
14796
15832
|
type: 'wdtType',
|
|
14797
15833
|
updateGoodsHandle: kmkfUtils.updateWdtGoodsHandle,
|
|
14798
15834
|
selectListReturn: 'wdtSelectListReturn',
|
|
@@ -14810,13 +15846,14 @@ var componentMap$1 = {
|
|
|
14810
15846
|
exchangeDeleteGood: 'wdtExchangeDeleteGood'
|
|
14811
15847
|
}
|
|
14812
15848
|
},
|
|
14813
|
-
|
|
15849
|
+
BS_E3_GOODS: {
|
|
14814
15850
|
type: 'e3',
|
|
14815
15851
|
key: 'bsE3Goods',
|
|
14816
15852
|
name: '百胜E3',
|
|
14817
15853
|
orderNo: 'dealCode',
|
|
14818
15854
|
goodDetailOrderNo: 'originalDealCode',
|
|
14819
15855
|
eventNameMap: {
|
|
15856
|
+
// pubsub 事件
|
|
14820
15857
|
type: 'bsE3Type',
|
|
14821
15858
|
updateGoodsHandle: kmkfUtils.updateBsE3GoodsHandle,
|
|
14822
15859
|
selectListReturn: 'bsE3SelectListReturn',
|
|
@@ -14833,6 +15870,31 @@ var componentMap$1 = {
|
|
|
14833
15870
|
returnDeleteGood: 'bsE3ReturnDeleteGood',
|
|
14834
15871
|
exchangeDeleteGood: 'bsE3ExchangeDeleteGood'
|
|
14835
15872
|
}
|
|
15873
|
+
},
|
|
15874
|
+
GY_GOODS: {
|
|
15875
|
+
type: 'gy',
|
|
15876
|
+
key: 'gyGoods',
|
|
15877
|
+
name: '管易',
|
|
15878
|
+
orderNo: 'dealCode',
|
|
15879
|
+
goodDetailOrderNo: 'originalDealCode',
|
|
15880
|
+
eventNameMap: {
|
|
15881
|
+
// pubsub 事件
|
|
15882
|
+
type: 'gyType',
|
|
15883
|
+
updateGoodsHandle: kmkfUtils.updateGyGoodsHandle,
|
|
15884
|
+
selectListReturn: 'gySelectListReturn',
|
|
15885
|
+
selectList: 'gySelectList',
|
|
15886
|
+
reissueSelectList: 'gyReissueSelectList',
|
|
15887
|
+
reissueSelectListReturn: 'gyReissueSelectListReturn',
|
|
15888
|
+
reissueDeleteGood: 'gyReissueDeleteGood',
|
|
15889
|
+
changeShopCode: 'gyChangeShopCode',
|
|
15890
|
+
reissueType: 'gyReissueType',
|
|
15891
|
+
returnType: 'gyReturnType',
|
|
15892
|
+
returnSelectListReturn: 'gyReturnSelectListReturn',
|
|
15893
|
+
returnSelectList: 'gyReturnSelectList',
|
|
15894
|
+
deleteGood: 'gyDeleteGood',
|
|
15895
|
+
returnDeleteGood: 'gyReturnDeleteGood',
|
|
15896
|
+
exchangeDeleteGood: 'gyExchangeDeleteGood'
|
|
15897
|
+
}
|
|
14836
15898
|
}
|
|
14837
15899
|
};
|
|
14838
15900
|
var CommonGoods = function CommonGoods(props) {
|
|
@@ -15301,7 +16363,7 @@ var typeMap$1 = {
|
|
|
15301
16363
|
}
|
|
15302
16364
|
};
|
|
15303
16365
|
var wdtReissue = function wdtReissue(props) {
|
|
15304
|
-
var _value$wdtSystemOrder, _typeMap$
|
|
16366
|
+
var _value$wdtSystemOrder, _typeMap$type26, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
15305
16367
|
var value = props.value,
|
|
15306
16368
|
onChange = props.onChange,
|
|
15307
16369
|
_props$reasonList = props.reasonList,
|
|
@@ -15462,19 +16524,25 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15462
16524
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15463
16525
|
};
|
|
15464
16526
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
15465
|
-
var _typeMap$type23,
|
|
16527
|
+
var _typeMap$type23, _typeMap$type24, _uniqBy, _typeMap$type25;
|
|
15466
16528
|
var newValue = _objectSpread2({}, value);
|
|
15467
|
-
|
|
15468
|
-
|
|
16529
|
+
// 原订单商品
|
|
16530
|
+
var originTradeGoodList = getGoodDetails({
|
|
16531
|
+
mode: isStrict
|
|
16532
|
+
}) || [];
|
|
16533
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
16534
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)]) || [];
|
|
16535
|
+
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)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
16536
|
+
return skuList.includes(item.uuid);
|
|
15469
16537
|
});
|
|
15470
|
-
console.log('
|
|
16538
|
+
console.log('商品发生变化', newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)]);
|
|
15471
16539
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15472
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
16540
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)], isStrict]);
|
|
15473
16541
|
//显示选择商品按钮 原单换不显示选择商品
|
|
15474
16542
|
var showChangeBtn = React.useMemo(function () {
|
|
15475
|
-
var _typeMap$
|
|
15476
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15477
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
16543
|
+
var _typeMap$type27;
|
|
16544
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
|
|
16545
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
|
|
15478
16546
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
15479
16547
|
gutter: 8,
|
|
15480
16548
|
wrap: true
|
|
@@ -15492,12 +16560,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15492
16560
|
},
|
|
15493
16561
|
disabled: disabled,
|
|
15494
16562
|
allowClear: false,
|
|
15495
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
16563
|
+
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.systemOrderNo)],
|
|
15496
16564
|
onChange: function onChange(val) {
|
|
15497
16565
|
return changeSystemOrderHandle(val);
|
|
15498
16566
|
},
|
|
15499
16567
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
15500
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
16568
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type30 = typeMap$1[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
15501
16569
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
15502
16570
|
key: item.billNo,
|
|
15503
16571
|
value: item.billNo,
|
|
@@ -15518,7 +16586,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15518
16586
|
disabled: disabled,
|
|
15519
16587
|
allowClear: false,
|
|
15520
16588
|
options: reasonList,
|
|
15521
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
16589
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type31 = typeMap$1[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName)],
|
|
15522
16590
|
onChange: function onChange(val) {
|
|
15523
16591
|
return changeTypeHandle(val);
|
|
15524
16592
|
}
|
|
@@ -15530,7 +16598,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15530
16598
|
canUpdateNumber: showChangeBtn,
|
|
15531
16599
|
showChangeBtn: showChangeBtn,
|
|
15532
16600
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
15533
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
16601
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type32 = typeMap$1[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)],
|
|
15534
16602
|
onChange: function onChange(val) {
|
|
15535
16603
|
return changeGoodHandle(val);
|
|
15536
16604
|
},
|
|
@@ -16229,16 +17297,6 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
16229
17297
|
};
|
|
16230
17298
|
|
|
16231
17299
|
var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
|
|
16232
|
-
var msgTypeCh = {
|
|
16233
|
-
pdd: '拼多多',
|
|
16234
|
-
ding: '钉钉',
|
|
16235
|
-
wechat: '微信',
|
|
16236
|
-
qq: 'QQ',
|
|
16237
|
-
qywx: '企业微信',
|
|
16238
|
-
YZDKH: '邮政拦截',
|
|
16239
|
-
YT: '圆通拦截',
|
|
16240
|
-
feishu: '飞书'
|
|
16241
|
-
};
|
|
16242
17300
|
var MsgStatus = function MsgStatus(props) {
|
|
16243
17301
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
16244
17302
|
var _props$value = props.value,
|
|
@@ -16279,7 +17337,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
16279
17337
|
onClick: function onClick() {
|
|
16280
17338
|
return setChangeIndex(index);
|
|
16281
17339
|
}
|
|
16282
|
-
}, msgTypeCh[key] || key, item.ruleName);
|
|
17340
|
+
}, kmkfUtils.msgTypeCh[key] || key, item.ruleName);
|
|
16283
17341
|
}))) : 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), {}, {
|
|
16284
17342
|
showSearch: true,
|
|
16285
17343
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -16328,7 +17386,7 @@ var typeMap$2 = {
|
|
|
16328
17386
|
}
|
|
16329
17387
|
};
|
|
16330
17388
|
var bsE3Reissue = function bsE3Reissue(props) {
|
|
16331
|
-
var _typeMap$type21, _typeMap$
|
|
17389
|
+
var _typeMap$type21, _typeMap$type24, _typeMap$type25, _value$typeMap$type$s5, _typeMap$type26, _typeMap$type27, _typeMap$type28;
|
|
16332
17390
|
var value = props.value,
|
|
16333
17391
|
onChange = props.onChange,
|
|
16334
17392
|
_props$reasonList = props.reasonList,
|
|
@@ -16466,15 +17524,19 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16466
17524
|
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo]);
|
|
16467
17525
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrderNo]]);
|
|
16468
17526
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
16469
|
-
var _typeMap$type22,
|
|
17527
|
+
var _typeMap$type22, _typeMap$type23, _uniqBy;
|
|
16470
17528
|
var newValue = _objectSpread2({}, value);
|
|
16471
|
-
|
|
17529
|
+
// 原订单商品
|
|
17530
|
+
var originTradeGoodList = getGoodDetails({
|
|
16472
17531
|
mode: isStrict
|
|
16473
|
-
})
|
|
16474
|
-
|
|
17532
|
+
}) || [];
|
|
17533
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
17534
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)]) || [];
|
|
17535
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
17536
|
+
return skuList.includes(item.uuid);
|
|
16475
17537
|
});
|
|
16476
17538
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16477
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
17539
|
+
}, [value === null || value === void 0 ? void 0 : value["".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)], isStrict]);
|
|
16478
17540
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
16479
17541
|
gutter: 8,
|
|
16480
17542
|
wrap: true,
|
|
@@ -16493,12 +17555,12 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16493
17555
|
},
|
|
16494
17556
|
disabled: disabled,
|
|
16495
17557
|
allowClear: false,
|
|
16496
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
17558
|
+
value: 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.systemOrderNo)],
|
|
16497
17559
|
onChange: function onChange(val) {
|
|
16498
17560
|
return changeSystemOrderHandle(val);
|
|
16499
17561
|
},
|
|
16500
17562
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
16501
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
17563
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
16502
17564
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
16503
17565
|
key: item.billNo,
|
|
16504
17566
|
value: item.billNo,
|
|
@@ -16519,7 +17581,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16519
17581
|
disabled: disabled,
|
|
16520
17582
|
allowClear: false,
|
|
16521
17583
|
options: reasonList,
|
|
16522
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
17584
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.typeName)],
|
|
16523
17585
|
onChange: function onChange(val) {
|
|
16524
17586
|
return changeTypeHandle(val);
|
|
16525
17587
|
}
|
|
@@ -16531,7 +17593,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16531
17593
|
canUpdateNumber: showChangeBtn,
|
|
16532
17594
|
showChangeBtn: showChangeBtn,
|
|
16533
17595
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
16534
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
17596
|
+
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.key)],
|
|
16535
17597
|
onChange: function onChange(val) {
|
|
16536
17598
|
return changeGoodHandle(val);
|
|
16537
17599
|
},
|
|
@@ -16547,6 +17609,255 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16547
17609
|
})));
|
|
16548
17610
|
};
|
|
16549
17611
|
|
|
17612
|
+
var _excluded$l = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
17613
|
+
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState"];
|
|
17614
|
+
var typeMap$3 = {
|
|
17615
|
+
GY_REISSUE_GOODS: {
|
|
17616
|
+
key: 'gyReissueGoods',
|
|
17617
|
+
name: '管易',
|
|
17618
|
+
typeName: 'gyReissueType',
|
|
17619
|
+
systemOrder: 'gySystemOrder',
|
|
17620
|
+
systemOrderNo: 'gySystemOrderNo',
|
|
17621
|
+
reissueSelectList: 'gyReissueSelectList',
|
|
17622
|
+
reissueSelectListReturn: 'gyReissueSelectListReturn',
|
|
17623
|
+
reissueDeleteGood: 'gyReissueDeleteGood',
|
|
17624
|
+
changeShopCode: 'gyChangeShopCode',
|
|
17625
|
+
reissueType: 'gyReissueType',
|
|
17626
|
+
formatDefaultField: {
|
|
17627
|
+
money: 'orderPrice',
|
|
17628
|
+
share: 'sharePrice'
|
|
17629
|
+
},
|
|
17630
|
+
getOrderList: gyUtils.getGyOrderListSingleton
|
|
17631
|
+
}
|
|
17632
|
+
};
|
|
17633
|
+
var GyReissue = function GyReissue(props) {
|
|
17634
|
+
var _value$gySystemOrder, _typeMap$type26, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
17635
|
+
var value = props.value,
|
|
17636
|
+
onChange = props.onChange,
|
|
17637
|
+
_props$reasonList = props.reasonList,
|
|
17638
|
+
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17639
|
+
disabled = props.disabled,
|
|
17640
|
+
type = props.type,
|
|
17641
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
17642
|
+
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$gySystemOrder = value.gySystemOrder) === null || _value$gySystemOrder === void 0 ? void 0 : _value$gySystemOrder.orders) || []).some(function (order) {
|
|
17643
|
+
var _order$platformCode;
|
|
17644
|
+
return order === null || order === void 0 ? void 0 : (_order$platformCode = order.platformCode) === null || _order$platformCode === void 0 ? void 0 : _order$platformCode.includes(';');
|
|
17645
|
+
});
|
|
17646
|
+
var getOrderFlag = React.useRef(false);
|
|
17647
|
+
var _useState = React.useState(false),
|
|
17648
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
17649
|
+
isStrict = _useState2[0],
|
|
17650
|
+
setIsStrict = _useState2[1];
|
|
17651
|
+
React.useEffect(function () {
|
|
17652
|
+
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
17653
|
+
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$3[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$3[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)) {
|
|
17654
|
+
var _value$typeMap$type$s4, _typeMap$type3;
|
|
17655
|
+
getOrderFlag.current = true;
|
|
17656
|
+
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$3[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);
|
|
17657
|
+
}
|
|
17658
|
+
return;
|
|
17659
|
+
}, [value]);
|
|
17660
|
+
var getOrderList = /*#__PURE__*/function () {
|
|
17661
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
17662
|
+
var _typeMap$type4;
|
|
17663
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17664
|
+
while (1) switch (_context.prev = _context.next) {
|
|
17665
|
+
case 0:
|
|
17666
|
+
(_typeMap$type4 = typeMap$3[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
|
|
17667
|
+
var _typeMap$type5, _typeMap$type6;
|
|
17668
|
+
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
17669
|
+
var showOrderInfo = orders.map(function (_ref2) {
|
|
17670
|
+
var billNo = _ref2.billNo,
|
|
17671
|
+
billType = _ref2.billType,
|
|
17672
|
+
billTag = _ref2.billTag,
|
|
17673
|
+
tradeTagName = _ref2.tradeTagName,
|
|
17674
|
+
deliveryState = _ref2.deliveryState,
|
|
17675
|
+
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
17676
|
+
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
17677
|
+
billNo: billNo,
|
|
17678
|
+
billType: billType,
|
|
17679
|
+
billTag: billTag,
|
|
17680
|
+
tradeTagName: tradeTagName,
|
|
17681
|
+
deliveryState: deliveryState,
|
|
17682
|
+
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState]
|
|
17683
|
+
});
|
|
17684
|
+
});
|
|
17685
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type5 = typeMap$3[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type6 = typeMap$3[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]), {}, {
|
|
17686
|
+
showOrderInfo: showOrderInfo,
|
|
17687
|
+
orders: orders
|
|
17688
|
+
}))));
|
|
17689
|
+
});
|
|
17690
|
+
case 1:
|
|
17691
|
+
case "end":
|
|
17692
|
+
return _context.stop();
|
|
17693
|
+
}
|
|
17694
|
+
}, _callee);
|
|
17695
|
+
}));
|
|
17696
|
+
return function getOrderList(_x) {
|
|
17697
|
+
return _ref.apply(this, arguments);
|
|
17698
|
+
};
|
|
17699
|
+
}();
|
|
17700
|
+
var changeTypeHandle = function changeTypeHandle(val) {
|
|
17701
|
+
var _value$typeMap$type$t, _typeMap$type7, _typeMap$type8;
|
|
17702
|
+
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
17703
|
+
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type7 = typeMap$3[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0])) return;
|
|
17704
|
+
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
17705
|
+
var newValue = _objectSpread2({}, value);
|
|
17706
|
+
newValue[(_typeMap$type8 = typeMap$3[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.typeName] = val;
|
|
17707
|
+
if (typeName === '1') {
|
|
17708
|
+
var _typeMap$type9;
|
|
17709
|
+
newValue[(_typeMap$type9 = typeMap$3[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.key] = getGoodDetails({
|
|
17710
|
+
mode: isStrict
|
|
17711
|
+
});
|
|
17712
|
+
} else if (typeName === '2') {
|
|
17713
|
+
var _typeMap$type10;
|
|
17714
|
+
// 切换到非原单,清空列表
|
|
17715
|
+
newValue[(_typeMap$type10 = typeMap$3[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.key] = [];
|
|
17716
|
+
}
|
|
17717
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17718
|
+
};
|
|
17719
|
+
var handleModeChange = function handleModeChange(mode) {
|
|
17720
|
+
var _value$typeMap$type$t2, _typeMap$type11, _typeMap$type12;
|
|
17721
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type11 = typeMap$3[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]) === '1';
|
|
17722
|
+
setIsStrict(mode);
|
|
17723
|
+
if (!isOriginalOrder) return;
|
|
17724
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type12 = typeMap$3[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key, getGoodDetails({
|
|
17725
|
+
mode: mode
|
|
17726
|
+
}))));
|
|
17727
|
+
};
|
|
17728
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
17729
|
+
var _typeMap$type13, _typeMap$type14, _order$details;
|
|
17730
|
+
var mode = _ref3.mode,
|
|
17731
|
+
sysOrderNo = _ref3.sysOrderNo;
|
|
17732
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type13 = typeMap$3[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrder];
|
|
17733
|
+
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type14 = typeMap$3[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrderNo];
|
|
17734
|
+
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
17735
|
+
return order.code === systemOrderNo;
|
|
17736
|
+
});
|
|
17737
|
+
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$details = order.details) === null || _order$details === void 0 ? void 0 : _order$details.length) ? kmkfUtils.updateGyGoodsHandle([order]) : [];
|
|
17738
|
+
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
17739
|
+
return mode ? goodDetails.filter(function (goodItem) {
|
|
17740
|
+
return !orderNo || (orderNo || '').includes(goodItem.oid);
|
|
17741
|
+
}) : goodDetails;
|
|
17742
|
+
};
|
|
17743
|
+
var changeGoodHandle = function changeGoodHandle(val) {
|
|
17744
|
+
var _typeMap$type15;
|
|
17745
|
+
var newValue = _objectSpread2({}, value);
|
|
17746
|
+
newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type15 = typeMap$3[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key)] = (val || []).map(function (item) {
|
|
17747
|
+
var _typeMap$type16, _typeMap$type17;
|
|
17748
|
+
item["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type16 = typeMap$3[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.formatDefaultField.money)] = 0;
|
|
17749
|
+
item["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type17 = typeMap$3[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.formatDefaultField.share)] = 0;
|
|
17750
|
+
return item;
|
|
17751
|
+
});
|
|
17752
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17753
|
+
};
|
|
17754
|
+
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
17755
|
+
var _typeMap$type18, _value$typeMap$type$t3, _typeMap$type19, _value$typeMap$type$t4, _typeMap$type21;
|
|
17756
|
+
var newValue = _objectSpread2({}, value);
|
|
17757
|
+
newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type18 = typeMap$3[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrderNo)] = val;
|
|
17758
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type19 = typeMap$3[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
17759
|
+
var _typeMap$type20;
|
|
17760
|
+
newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type20 = typeMap$3[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = [];
|
|
17761
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type21 = typeMap$3[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
17762
|
+
var _typeMap$type22;
|
|
17763
|
+
newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type22 = typeMap$3[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = getGoodDetails({
|
|
17764
|
+
mode: isStrict,
|
|
17765
|
+
sysOrderNo: val
|
|
17766
|
+
});
|
|
17767
|
+
}
|
|
17768
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17769
|
+
};
|
|
17770
|
+
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
17771
|
+
var _typeMap$type23, _typeMap$type24, _uniqBy, _typeMap$type25;
|
|
17772
|
+
var newValue = _objectSpread2({}, value);
|
|
17773
|
+
// 原订单商品
|
|
17774
|
+
var originTradeGoodList = getGoodDetails({
|
|
17775
|
+
mode: isStrict
|
|
17776
|
+
}) || [];
|
|
17777
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
17778
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type23 = typeMap$3[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)]) || [];
|
|
17779
|
+
newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type24 = typeMap$3[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
17780
|
+
return skuList.includes(item.uuid);
|
|
17781
|
+
});
|
|
17782
|
+
console.log('商品发生变化', newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type25 = typeMap$3[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)]);
|
|
17783
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17784
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type26 = typeMap$3[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)], isStrict]);
|
|
17785
|
+
//显示选择商品按钮 原单换不显示选择商品
|
|
17786
|
+
var showChangeBtn = React.useMemo(function () {
|
|
17787
|
+
var _typeMap$type27;
|
|
17788
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$3[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
|
|
17789
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$3[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
|
|
17790
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
17791
|
+
gutter: 8,
|
|
17792
|
+
wrap: true
|
|
17793
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
17794
|
+
className: "gutter-row",
|
|
17795
|
+
xs: {
|
|
17796
|
+
span: 11
|
|
17797
|
+
},
|
|
17798
|
+
sm: {
|
|
17799
|
+
span: 6
|
|
17800
|
+
}
|
|
17801
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
17802
|
+
style: {
|
|
17803
|
+
marginBottom: '8px'
|
|
17804
|
+
},
|
|
17805
|
+
disabled: disabled,
|
|
17806
|
+
allowClear: false,
|
|
17807
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type29 = typeMap$3[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo)],
|
|
17808
|
+
onChange: function onChange(val) {
|
|
17809
|
+
return changeSystemOrderHandle(val);
|
|
17810
|
+
},
|
|
17811
|
+
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
17812
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type30 = typeMap$3[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
17813
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
17814
|
+
key: item.billNo,
|
|
17815
|
+
value: item.billNo,
|
|
17816
|
+
label: item.billNo
|
|
17817
|
+
}, item.billNo);
|
|
17818
|
+
}))), /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
17819
|
+
className: "gutter-row",
|
|
17820
|
+
xs: {
|
|
17821
|
+
span: 11
|
|
17822
|
+
},
|
|
17823
|
+
sm: {
|
|
17824
|
+
span: 6
|
|
17825
|
+
}
|
|
17826
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
17827
|
+
style: {
|
|
17828
|
+
marginBottom: '8px'
|
|
17829
|
+
},
|
|
17830
|
+
disabled: disabled,
|
|
17831
|
+
allowClear: false,
|
|
17832
|
+
options: reasonList,
|
|
17833
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type31 = typeMap$3[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName)],
|
|
17834
|
+
onChange: function onChange(val) {
|
|
17835
|
+
return changeTypeHandle(val);
|
|
17836
|
+
}
|
|
17837
|
+
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
17838
|
+
key: 'reissueGoods'
|
|
17839
|
+
}, other), {}, {
|
|
17840
|
+
type: type,
|
|
17841
|
+
disabled: disabled,
|
|
17842
|
+
canUpdateNumber: showChangeBtn,
|
|
17843
|
+
showChangeBtn: showChangeBtn,
|
|
17844
|
+
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
17845
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type32 = typeMap$3[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)],
|
|
17846
|
+
onChange: function onChange(val) {
|
|
17847
|
+
return changeGoodHandle(val);
|
|
17848
|
+
},
|
|
17849
|
+
onModeChange: handleModeChange,
|
|
17850
|
+
showModeBtn: showModeBtn,
|
|
17851
|
+
isStrict: isStrict,
|
|
17852
|
+
tradeGoods: {
|
|
17853
|
+
originDataSource: getGoodDetails({
|
|
17854
|
+
mode: isStrict
|
|
17855
|
+
}),
|
|
17856
|
+
selectedGoodsChange: selectedGoodsChange
|
|
17857
|
+
}
|
|
17858
|
+
})));
|
|
17859
|
+
};
|
|
17860
|
+
|
|
16550
17861
|
exports.Address = ApaasAddress;
|
|
16551
17862
|
exports.AliPay = AliPay;
|
|
16552
17863
|
exports.ApaasAddress = Province;
|
|
@@ -16585,6 +17896,7 @@ exports.CommonSystemOrder = CommonSystemOrder;
|
|
|
16585
17896
|
exports.ExpressLogistics = ExpressLogistics;
|
|
16586
17897
|
exports.Goods = Goods;
|
|
16587
17898
|
exports.GoodsTable = index$2;
|
|
17899
|
+
exports.GyReissue = GyReissue;
|
|
16588
17900
|
exports.IdentifyAddress = IdentifyAddress;
|
|
16589
17901
|
exports.Invoice = Invoice;
|
|
16590
17902
|
exports.JstGoods = jstGoods;
|
|
@@ -16608,3 +17920,4 @@ exports.TradeId = TradeId;
|
|
|
16608
17920
|
exports.WdtGoodList = WdtGoodList;
|
|
16609
17921
|
exports.WdtReissue = wdtReissue;
|
|
16610
17922
|
exports.WlnGoods = WlnGoods;
|
|
17923
|
+
exports.columnsBaseInfoMap = columnsBaseInfoMap;
|