@kmkf-fe-packages/basic-components 2.2.13-beta.1 → 2.2.13-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +682 -653
- package/dist/index.js +682 -653
- package/dist/src/bs/component/model/Columns/Erp/jy.d.ts +7 -1
- package/dist/src/bs/component/model/JyGoodsModal/GoodsList.d.ts +14 -14
- package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/FilterSelectOption/Rate/index.d.ts +2 -1
- package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/SearchHeader/index.d.ts +2 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -14,377 +14,363 @@ import { internals, useTablePipeline, features, BaseTable } from 'ali-react-tabl
|
|
|
14
14
|
import zh_CN from 'antd/lib/locale-provider/zh_CN';
|
|
15
15
|
import BigNumber from 'bignumber.js';
|
|
16
16
|
|
|
17
|
-
function _iterableToArrayLimit(
|
|
18
|
-
var
|
|
19
|
-
if (null !=
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
function _iterableToArrayLimit(arr, i) {
|
|
18
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
19
|
+
if (null != _i) {
|
|
20
|
+
var _s,
|
|
21
|
+
_e,
|
|
22
|
+
_x,
|
|
23
|
+
_r,
|
|
24
|
+
_arr = [],
|
|
25
|
+
_n = !0,
|
|
26
|
+
_d = !1;
|
|
27
27
|
try {
|
|
28
|
-
if (
|
|
29
|
-
if (Object(
|
|
30
|
-
|
|
31
|
-
} else for (; !(
|
|
32
|
-
} catch (
|
|
33
|
-
|
|
28
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
29
|
+
if (Object(_i) !== _i) return;
|
|
30
|
+
_n = !1;
|
|
31
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
32
|
+
} catch (err) {
|
|
33
|
+
_d = !0, _e = err;
|
|
34
34
|
} finally {
|
|
35
35
|
try {
|
|
36
|
-
if (!
|
|
36
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
37
37
|
} finally {
|
|
38
|
-
if (
|
|
38
|
+
if (_d) throw _e;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
return
|
|
41
|
+
return _arr;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function ownKeys(
|
|
45
|
-
var
|
|
44
|
+
function ownKeys(object, enumerableOnly) {
|
|
45
|
+
var keys = Object.keys(object);
|
|
46
46
|
if (Object.getOwnPropertySymbols) {
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
return Object.getOwnPropertyDescriptor(
|
|
50
|
-
})),
|
|
47
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
48
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
49
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
50
|
+
})), keys.push.apply(keys, symbols);
|
|
51
51
|
}
|
|
52
|
-
return
|
|
53
|
-
}
|
|
54
|
-
function _objectSpread2(
|
|
55
|
-
for (var
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
_defineProperty(
|
|
59
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
60
|
-
Object.defineProperty(
|
|
52
|
+
return keys;
|
|
53
|
+
}
|
|
54
|
+
function _objectSpread2(target) {
|
|
55
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
56
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
57
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
58
|
+
_defineProperty(target, key, source[key]);
|
|
59
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
60
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
return
|
|
63
|
+
return target;
|
|
64
64
|
}
|
|
65
65
|
function _regeneratorRuntime() {
|
|
66
66
|
_regeneratorRuntime = function () {
|
|
67
|
-
return
|
|
68
|
-
};
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
t[e] = r.value;
|
|
67
|
+
return exports;
|
|
68
|
+
};
|
|
69
|
+
var exports = {},
|
|
70
|
+
Op = Object.prototype,
|
|
71
|
+
hasOwn = Op.hasOwnProperty,
|
|
72
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
73
|
+
obj[key] = desc.value;
|
|
75
74
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
function define(
|
|
81
|
-
return Object.defineProperty(
|
|
82
|
-
value:
|
|
75
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
76
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
77
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
78
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
79
|
+
function define(obj, key, value) {
|
|
80
|
+
return Object.defineProperty(obj, key, {
|
|
81
|
+
value: value,
|
|
83
82
|
enumerable: !0,
|
|
84
83
|
configurable: !0,
|
|
85
84
|
writable: !0
|
|
86
|
-
}),
|
|
85
|
+
}), obj[key];
|
|
87
86
|
}
|
|
88
87
|
try {
|
|
89
88
|
define({}, "");
|
|
90
|
-
} catch (
|
|
91
|
-
define = function (
|
|
92
|
-
return
|
|
89
|
+
} catch (err) {
|
|
90
|
+
define = function (obj, key, value) {
|
|
91
|
+
return obj[key] = value;
|
|
93
92
|
};
|
|
94
93
|
}
|
|
95
|
-
function wrap(
|
|
96
|
-
var
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
return
|
|
100
|
-
value: makeInvokeMethod(
|
|
101
|
-
}),
|
|
94
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
95
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
96
|
+
generator = Object.create(protoGenerator.prototype),
|
|
97
|
+
context = new Context(tryLocsList || []);
|
|
98
|
+
return defineProperty(generator, "_invoke", {
|
|
99
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
100
|
+
}), generator;
|
|
102
101
|
}
|
|
103
|
-
function tryCatch(
|
|
102
|
+
function tryCatch(fn, obj, arg) {
|
|
104
103
|
try {
|
|
105
104
|
return {
|
|
106
105
|
type: "normal",
|
|
107
|
-
arg:
|
|
106
|
+
arg: fn.call(obj, arg)
|
|
108
107
|
};
|
|
109
|
-
} catch (
|
|
108
|
+
} catch (err) {
|
|
110
109
|
return {
|
|
111
110
|
type: "throw",
|
|
112
|
-
arg:
|
|
111
|
+
arg: err
|
|
113
112
|
};
|
|
114
113
|
}
|
|
115
114
|
}
|
|
116
|
-
|
|
117
|
-
var
|
|
118
|
-
l = "suspendedYield",
|
|
119
|
-
f = "executing",
|
|
120
|
-
s = "completed",
|
|
121
|
-
y = {};
|
|
115
|
+
exports.wrap = wrap;
|
|
116
|
+
var ContinueSentinel = {};
|
|
122
117
|
function Generator() {}
|
|
123
118
|
function GeneratorFunction() {}
|
|
124
119
|
function GeneratorFunctionPrototype() {}
|
|
125
|
-
var
|
|
126
|
-
define(
|
|
120
|
+
var IteratorPrototype = {};
|
|
121
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
127
122
|
return this;
|
|
128
123
|
});
|
|
129
|
-
var
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
var
|
|
133
|
-
function defineIteratorMethods(
|
|
134
|
-
["next", "throw", "return"].forEach(function (
|
|
135
|
-
define(
|
|
136
|
-
return this._invoke(
|
|
124
|
+
var getProto = Object.getPrototypeOf,
|
|
125
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
126
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
127
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
128
|
+
function defineIteratorMethods(prototype) {
|
|
129
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
130
|
+
define(prototype, method, function (arg) {
|
|
131
|
+
return this._invoke(method, arg);
|
|
137
132
|
});
|
|
138
133
|
});
|
|
139
134
|
}
|
|
140
|
-
function AsyncIterator(
|
|
141
|
-
function invoke(
|
|
142
|
-
var
|
|
143
|
-
if ("throw" !==
|
|
144
|
-
var
|
|
145
|
-
|
|
146
|
-
return
|
|
147
|
-
invoke("next",
|
|
148
|
-
}, function (
|
|
149
|
-
invoke("throw",
|
|
150
|
-
}) :
|
|
151
|
-
|
|
152
|
-
}, function (
|
|
153
|
-
return invoke("throw",
|
|
135
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
136
|
+
function invoke(method, arg, resolve, reject) {
|
|
137
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
138
|
+
if ("throw" !== record.type) {
|
|
139
|
+
var result = record.arg,
|
|
140
|
+
value = result.value;
|
|
141
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
142
|
+
invoke("next", value, resolve, reject);
|
|
143
|
+
}, function (err) {
|
|
144
|
+
invoke("throw", err, resolve, reject);
|
|
145
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
146
|
+
result.value = unwrapped, resolve(result);
|
|
147
|
+
}, function (error) {
|
|
148
|
+
return invoke("throw", error, resolve, reject);
|
|
154
149
|
});
|
|
155
150
|
}
|
|
156
|
-
|
|
151
|
+
reject(record.arg);
|
|
157
152
|
}
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
value: function (
|
|
153
|
+
var previousPromise;
|
|
154
|
+
defineProperty(this, "_invoke", {
|
|
155
|
+
value: function (method, arg) {
|
|
161
156
|
function callInvokeWithMethodAndArg() {
|
|
162
|
-
return new
|
|
163
|
-
invoke(
|
|
157
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
158
|
+
invoke(method, arg, resolve, reject);
|
|
164
159
|
});
|
|
165
160
|
}
|
|
166
|
-
return
|
|
161
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
167
162
|
}
|
|
168
163
|
});
|
|
169
164
|
}
|
|
170
|
-
function makeInvokeMethod(
|
|
171
|
-
var
|
|
172
|
-
return function (
|
|
173
|
-
if (
|
|
174
|
-
if (
|
|
175
|
-
if ("throw" ===
|
|
176
|
-
return
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
if (u) {
|
|
186
|
-
if (u === y) continue;
|
|
187
|
-
return u;
|
|
165
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
166
|
+
var state = "suspendedStart";
|
|
167
|
+
return function (method, arg) {
|
|
168
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
169
|
+
if ("completed" === state) {
|
|
170
|
+
if ("throw" === method) throw arg;
|
|
171
|
+
return doneResult();
|
|
172
|
+
}
|
|
173
|
+
for (context.method = method, context.arg = arg;;) {
|
|
174
|
+
var delegate = context.delegate;
|
|
175
|
+
if (delegate) {
|
|
176
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
177
|
+
if (delegateResult) {
|
|
178
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
179
|
+
return delegateResult;
|
|
188
180
|
}
|
|
189
181
|
}
|
|
190
|
-
if ("next" ===
|
|
191
|
-
if (
|
|
192
|
-
|
|
193
|
-
} else "return" ===
|
|
194
|
-
|
|
195
|
-
var
|
|
196
|
-
if ("normal" ===
|
|
197
|
-
if (
|
|
182
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
183
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
184
|
+
context.dispatchException(context.arg);
|
|
185
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
186
|
+
state = "executing";
|
|
187
|
+
var record = tryCatch(innerFn, self, context);
|
|
188
|
+
if ("normal" === record.type) {
|
|
189
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
198
190
|
return {
|
|
199
|
-
value:
|
|
200
|
-
done:
|
|
191
|
+
value: record.arg,
|
|
192
|
+
done: context.done
|
|
201
193
|
};
|
|
202
194
|
}
|
|
203
|
-
"throw" ===
|
|
195
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
204
196
|
}
|
|
205
197
|
};
|
|
206
198
|
}
|
|
207
|
-
function maybeInvokeDelegate(
|
|
208
|
-
var
|
|
209
|
-
|
|
210
|
-
if (
|
|
211
|
-
var
|
|
212
|
-
if ("throw" ===
|
|
213
|
-
var
|
|
214
|
-
return
|
|
199
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
200
|
+
var methodName = context.method,
|
|
201
|
+
method = delegate.iterator[methodName];
|
|
202
|
+
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;
|
|
203
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
204
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
205
|
+
var info = record.arg;
|
|
206
|
+
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);
|
|
215
207
|
}
|
|
216
|
-
function pushTryEntry(
|
|
217
|
-
var
|
|
218
|
-
tryLoc:
|
|
208
|
+
function pushTryEntry(locs) {
|
|
209
|
+
var entry = {
|
|
210
|
+
tryLoc: locs[0]
|
|
219
211
|
};
|
|
220
|
-
1 in
|
|
212
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
221
213
|
}
|
|
222
|
-
function resetTryEntry(
|
|
223
|
-
var
|
|
224
|
-
|
|
214
|
+
function resetTryEntry(entry) {
|
|
215
|
+
var record = entry.completion || {};
|
|
216
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
225
217
|
}
|
|
226
|
-
function Context(
|
|
218
|
+
function Context(tryLocsList) {
|
|
227
219
|
this.tryEntries = [{
|
|
228
220
|
tryLoc: "root"
|
|
229
|
-
}],
|
|
221
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
230
222
|
}
|
|
231
|
-
function values(
|
|
232
|
-
if (
|
|
233
|
-
var
|
|
234
|
-
if (
|
|
235
|
-
if ("function" == typeof
|
|
236
|
-
if (!isNaN(
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
for (; ++
|
|
240
|
-
return next.value =
|
|
223
|
+
function values(iterable) {
|
|
224
|
+
if (iterable) {
|
|
225
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
226
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
227
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
228
|
+
if (!isNaN(iterable.length)) {
|
|
229
|
+
var i = -1,
|
|
230
|
+
next = function next() {
|
|
231
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
232
|
+
return next.value = undefined, next.done = !0, next;
|
|
241
233
|
};
|
|
242
|
-
return
|
|
234
|
+
return next.next = next;
|
|
243
235
|
}
|
|
244
236
|
}
|
|
245
|
-
|
|
237
|
+
return {
|
|
238
|
+
next: doneResult
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
function doneResult() {
|
|
242
|
+
return {
|
|
243
|
+
value: undefined,
|
|
244
|
+
done: !0
|
|
245
|
+
};
|
|
246
246
|
}
|
|
247
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
247
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
248
248
|
value: GeneratorFunctionPrototype,
|
|
249
249
|
configurable: !0
|
|
250
|
-
}),
|
|
250
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
251
251
|
value: GeneratorFunction,
|
|
252
252
|
configurable: !0
|
|
253
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
254
|
-
var
|
|
255
|
-
return !!
|
|
256
|
-
},
|
|
257
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
258
|
-
},
|
|
253
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
254
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
255
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
256
|
+
}, exports.mark = function (genFun) {
|
|
257
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
258
|
+
}, exports.awrap = function (arg) {
|
|
259
259
|
return {
|
|
260
|
-
__await:
|
|
260
|
+
__await: arg
|
|
261
261
|
};
|
|
262
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
262
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
263
263
|
return this;
|
|
264
|
-
}),
|
|
265
|
-
void 0 ===
|
|
266
|
-
var
|
|
267
|
-
return
|
|
268
|
-
return
|
|
264
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
265
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
266
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
267
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
268
|
+
return result.done ? result.value : iter.next();
|
|
269
269
|
});
|
|
270
|
-
}, defineIteratorMethods(
|
|
270
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
271
271
|
return this;
|
|
272
|
-
}), define(
|
|
272
|
+
}), define(Gp, "toString", function () {
|
|
273
273
|
return "[object Generator]";
|
|
274
|
-
}),
|
|
275
|
-
var
|
|
276
|
-
|
|
277
|
-
for (var
|
|
278
|
-
return
|
|
279
|
-
for (;
|
|
280
|
-
var
|
|
281
|
-
if (
|
|
274
|
+
}), exports.keys = function (val) {
|
|
275
|
+
var object = Object(val),
|
|
276
|
+
keys = [];
|
|
277
|
+
for (var key in object) keys.push(key);
|
|
278
|
+
return keys.reverse(), function next() {
|
|
279
|
+
for (; keys.length;) {
|
|
280
|
+
var key = keys.pop();
|
|
281
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
282
282
|
}
|
|
283
283
|
return next.done = !0, next;
|
|
284
284
|
};
|
|
285
|
-
},
|
|
285
|
+
}, exports.values = values, Context.prototype = {
|
|
286
286
|
constructor: Context,
|
|
287
|
-
reset: function (
|
|
288
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
287
|
+
reset: function (skipTempReset) {
|
|
288
|
+
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);
|
|
289
289
|
},
|
|
290
290
|
stop: function () {
|
|
291
291
|
this.done = !0;
|
|
292
|
-
var
|
|
293
|
-
if ("throw" ===
|
|
292
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
293
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
294
294
|
return this.rval;
|
|
295
295
|
},
|
|
296
|
-
dispatchException: function (
|
|
297
|
-
if (this.done) throw
|
|
298
|
-
var
|
|
299
|
-
function handle(
|
|
300
|
-
return
|
|
301
|
-
}
|
|
302
|
-
for (var
|
|
303
|
-
var
|
|
304
|
-
|
|
305
|
-
if ("root" ===
|
|
306
|
-
if (
|
|
307
|
-
var
|
|
308
|
-
|
|
309
|
-
if (
|
|
310
|
-
if (this.prev <
|
|
311
|
-
if (this.prev <
|
|
312
|
-
} else if (
|
|
313
|
-
if (this.prev <
|
|
296
|
+
dispatchException: function (exception) {
|
|
297
|
+
if (this.done) throw exception;
|
|
298
|
+
var context = this;
|
|
299
|
+
function handle(loc, caught) {
|
|
300
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
301
|
+
}
|
|
302
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
303
|
+
var entry = this.tryEntries[i],
|
|
304
|
+
record = entry.completion;
|
|
305
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
306
|
+
if (entry.tryLoc <= this.prev) {
|
|
307
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
308
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
309
|
+
if (hasCatch && hasFinally) {
|
|
310
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
311
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
312
|
+
} else if (hasCatch) {
|
|
313
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
314
314
|
} else {
|
|
315
|
-
if (!
|
|
316
|
-
if (this.prev <
|
|
315
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
316
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
},
|
|
321
|
-
abrupt: function (
|
|
322
|
-
for (var
|
|
323
|
-
var
|
|
324
|
-
if (
|
|
325
|
-
var
|
|
321
|
+
abrupt: function (type, arg) {
|
|
322
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
323
|
+
var entry = this.tryEntries[i];
|
|
324
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
325
|
+
var finallyEntry = entry;
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
|
|
330
|
-
var
|
|
331
|
-
return
|
|
329
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
330
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
331
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
332
332
|
},
|
|
333
|
-
complete: function (
|
|
334
|
-
if ("throw" ===
|
|
335
|
-
return "break" ===
|
|
333
|
+
complete: function (record, afterLoc) {
|
|
334
|
+
if ("throw" === record.type) throw record.arg;
|
|
335
|
+
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;
|
|
336
336
|
},
|
|
337
|
-
finish: function (
|
|
338
|
-
for (var
|
|
339
|
-
var
|
|
340
|
-
if (
|
|
337
|
+
finish: function (finallyLoc) {
|
|
338
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
339
|
+
var entry = this.tryEntries[i];
|
|
340
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
|
-
catch: function (
|
|
344
|
-
for (var
|
|
345
|
-
var
|
|
346
|
-
if (
|
|
347
|
-
var
|
|
348
|
-
if ("throw" ===
|
|
349
|
-
var
|
|
350
|
-
resetTryEntry(
|
|
343
|
+
catch: function (tryLoc) {
|
|
344
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
345
|
+
var entry = this.tryEntries[i];
|
|
346
|
+
if (entry.tryLoc === tryLoc) {
|
|
347
|
+
var record = entry.completion;
|
|
348
|
+
if ("throw" === record.type) {
|
|
349
|
+
var thrown = record.arg;
|
|
350
|
+
resetTryEntry(entry);
|
|
351
351
|
}
|
|
352
|
-
return
|
|
352
|
+
return thrown;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
throw new Error("illegal catch attempt");
|
|
356
356
|
},
|
|
357
|
-
delegateYield: function (
|
|
357
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
358
358
|
return this.delegate = {
|
|
359
|
-
iterator: values(
|
|
360
|
-
resultName:
|
|
361
|
-
nextLoc:
|
|
362
|
-
}, "next" === this.method && (this.arg =
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
}
|
|
366
|
-
function _toPrimitive(t, r) {
|
|
367
|
-
if ("object" != typeof t || !t) return t;
|
|
368
|
-
var e = t[Symbol.toPrimitive];
|
|
369
|
-
if (void 0 !== e) {
|
|
370
|
-
var i = e.call(t, r || "default");
|
|
371
|
-
if ("object" != typeof i) return i;
|
|
372
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
373
|
-
}
|
|
374
|
-
return ("string" === r ? String : Number)(t);
|
|
375
|
-
}
|
|
376
|
-
function _toPropertyKey(t) {
|
|
377
|
-
var i = _toPrimitive(t, "string");
|
|
378
|
-
return "symbol" == typeof i ? i : String(i);
|
|
359
|
+
iterator: values(iterable),
|
|
360
|
+
resultName: resultName,
|
|
361
|
+
nextLoc: nextLoc
|
|
362
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
363
|
+
}
|
|
364
|
+
}, exports;
|
|
379
365
|
}
|
|
380
|
-
function _typeof(
|
|
366
|
+
function _typeof(obj) {
|
|
381
367
|
"@babel/helpers - typeof";
|
|
382
368
|
|
|
383
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
384
|
-
return typeof
|
|
385
|
-
} : function (
|
|
386
|
-
return
|
|
387
|
-
}, _typeof(
|
|
369
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
370
|
+
return typeof obj;
|
|
371
|
+
} : function (obj) {
|
|
372
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
373
|
+
}, _typeof(obj);
|
|
388
374
|
}
|
|
389
375
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
390
376
|
try {
|
|
@@ -542,6 +528,20 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
542
528
|
}
|
|
543
529
|
};
|
|
544
530
|
}
|
|
531
|
+
function _toPrimitive(input, hint) {
|
|
532
|
+
if (typeof input !== "object" || input === null) return input;
|
|
533
|
+
var prim = input[Symbol.toPrimitive];
|
|
534
|
+
if (prim !== undefined) {
|
|
535
|
+
var res = prim.call(input, hint || "default");
|
|
536
|
+
if (typeof res !== "object") return res;
|
|
537
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
538
|
+
}
|
|
539
|
+
return (hint === "string" ? String : Number)(input);
|
|
540
|
+
}
|
|
541
|
+
function _toPropertyKey(arg) {
|
|
542
|
+
var key = _toPrimitive(arg, "string");
|
|
543
|
+
return typeof key === "symbol" ? key : String(key);
|
|
544
|
+
}
|
|
545
545
|
|
|
546
546
|
function ApaasCascader(props) {
|
|
547
547
|
return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
|
|
@@ -9559,7 +9559,7 @@ var renderMap = {
|
|
|
9559
9559
|
return /*#__PURE__*/React.createElement(FileRender, {
|
|
9560
9560
|
id: "fileRender",
|
|
9561
9561
|
fileList: value,
|
|
9562
|
-
canDownload: !['ks', 'fxg'].includes(platform || '')
|
|
9562
|
+
canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform || '')
|
|
9563
9563
|
});
|
|
9564
9564
|
},
|
|
9565
9565
|
CHECKBOX: function CHECKBOX(value) {
|
|
@@ -9662,7 +9662,7 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9662
9662
|
})), /*#__PURE__*/React.createElement(FileRender, {
|
|
9663
9663
|
id: "fileEdit",
|
|
9664
9664
|
fileList: val,
|
|
9665
|
-
canDownload: !['ks', 'fxg'].includes(platform)
|
|
9665
|
+
canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform)
|
|
9666
9666
|
}));
|
|
9667
9667
|
};
|
|
9668
9668
|
var EditRenderMap = {
|
|
@@ -14890,17 +14890,17 @@ var getYesOrNo$1 = function getYesOrNo(val) {
|
|
|
14890
14890
|
return val ? '是' : '否';
|
|
14891
14891
|
};
|
|
14892
14892
|
var jyColumns = [{
|
|
14893
|
-
dataIndex: '
|
|
14893
|
+
dataIndex: 'goodName',
|
|
14894
14894
|
title: '商品名称',
|
|
14895
14895
|
width: 250,
|
|
14896
14896
|
ellipsis: true
|
|
14897
14897
|
}, {
|
|
14898
|
-
dataIndex: '
|
|
14898
|
+
dataIndex: 'goodNo',
|
|
14899
14899
|
title: '商品编码',
|
|
14900
14900
|
width: 150,
|
|
14901
14901
|
ellipsis: true
|
|
14902
14902
|
}, {
|
|
14903
|
-
dataIndex: '
|
|
14903
|
+
dataIndex: 'goodId',
|
|
14904
14904
|
title: '商品ID',
|
|
14905
14905
|
width: 150,
|
|
14906
14906
|
ellipsis: true
|
|
@@ -14909,22 +14909,22 @@ var jyColumns = [{
|
|
|
14909
14909
|
title: '商品图片',
|
|
14910
14910
|
width: 100,
|
|
14911
14911
|
render: function render(picUrl) {
|
|
14912
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
14912
|
+
return picUrl ? /*#__PURE__*/React.createElement("img", {
|
|
14913
14913
|
style: {
|
|
14914
14914
|
width: '40px',
|
|
14915
14915
|
height: '40px',
|
|
14916
14916
|
objectFit: 'contain'
|
|
14917
14917
|
},
|
|
14918
14918
|
src: picUrl
|
|
14919
|
-
});
|
|
14919
|
+
}) : null;
|
|
14920
14920
|
}
|
|
14921
14921
|
}, {
|
|
14922
|
-
dataIndex: '
|
|
14922
|
+
dataIndex: 'goodShortName',
|
|
14923
14923
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
14924
14924
|
ellipsis: true,
|
|
14925
14925
|
width: 150
|
|
14926
14926
|
}, {
|
|
14927
|
-
dataIndex: '
|
|
14927
|
+
dataIndex: 'categoryName',
|
|
14928
14928
|
title: "\u5546\u54C1\u7EC4",
|
|
14929
14929
|
ellipsis: true,
|
|
14930
14930
|
width: 150
|
|
@@ -14934,56 +14934,56 @@ var jyColumns = [{
|
|
|
14934
14934
|
width: 200,
|
|
14935
14935
|
ellipsis: true
|
|
14936
14936
|
}, {
|
|
14937
|
-
dataIndex: '
|
|
14937
|
+
dataIndex: 'specName',
|
|
14938
14938
|
title: '规格名称',
|
|
14939
14939
|
width: 250,
|
|
14940
14940
|
ellipsis: true
|
|
14941
14941
|
}, {
|
|
14942
|
-
dataIndex: '
|
|
14942
|
+
dataIndex: 'specNo',
|
|
14943
14943
|
title: '规格编码',
|
|
14944
14944
|
width: 150,
|
|
14945
14945
|
ellipsis: true
|
|
14946
14946
|
}, {
|
|
14947
|
-
dataIndex: '
|
|
14947
|
+
dataIndex: 'specId',
|
|
14948
14948
|
title: '规格ID',
|
|
14949
14949
|
width: 250,
|
|
14950
14950
|
ellipsis: true
|
|
14951
14951
|
}, {
|
|
14952
|
-
dataIndex: '
|
|
14952
|
+
dataIndex: 'specBarcode',
|
|
14953
14953
|
title: '规格条码',
|
|
14954
14954
|
width: 150,
|
|
14955
14955
|
ellipsis: true
|
|
14956
14956
|
}, {
|
|
14957
|
-
dataIndex: '
|
|
14957
|
+
dataIndex: 'specImgUrl',
|
|
14958
14958
|
title: '规格图片',
|
|
14959
14959
|
width: 100,
|
|
14960
14960
|
render: function render(picUrl) {
|
|
14961
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
14961
|
+
return picUrl ? /*#__PURE__*/React.createElement("img", {
|
|
14962
14962
|
style: {
|
|
14963
14963
|
width: '40px',
|
|
14964
14964
|
height: '40px',
|
|
14965
14965
|
objectFit: 'contain'
|
|
14966
14966
|
},
|
|
14967
14967
|
src: picUrl
|
|
14968
|
-
});
|
|
14968
|
+
}) : null;
|
|
14969
14969
|
}
|
|
14970
14970
|
}, {
|
|
14971
|
-
dataIndex: '
|
|
14971
|
+
dataIndex: 'colorName',
|
|
14972
14972
|
title: "\u989C\u8272",
|
|
14973
14973
|
ellipsis: true,
|
|
14974
14974
|
width: 100
|
|
14975
14975
|
}, {
|
|
14976
|
-
dataIndex: '
|
|
14976
|
+
dataIndex: 'sizeName',
|
|
14977
14977
|
title: "\u5C3A\u7801",
|
|
14978
14978
|
ellipsis: true,
|
|
14979
14979
|
width: 100
|
|
14980
14980
|
}, {
|
|
14981
|
-
dataIndex: '
|
|
14981
|
+
dataIndex: 'marketPrice',
|
|
14982
14982
|
title: "\u5E02\u573A\u4EF7",
|
|
14983
14983
|
ellipsis: true,
|
|
14984
14984
|
width: 100
|
|
14985
14985
|
}, {
|
|
14986
|
-
dataIndex: '
|
|
14986
|
+
dataIndex: 'retailPrice',
|
|
14987
14987
|
title: "\u96F6\u552E\u4EF7",
|
|
14988
14988
|
ellipsis: true,
|
|
14989
14989
|
width: 100
|
|
@@ -14993,7 +14993,7 @@ var jyColumns = [{
|
|
|
14993
14993
|
ellipsis: true,
|
|
14994
14994
|
width: 100
|
|
14995
14995
|
}, {
|
|
14996
|
-
dataIndex: '
|
|
14996
|
+
dataIndex: 'isGift',
|
|
14997
14997
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
14998
14998
|
ellipsis: true,
|
|
14999
14999
|
width: 150,
|
|
@@ -15001,12 +15001,12 @@ var jyColumns = [{
|
|
|
15001
15001
|
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
15002
15002
|
}
|
|
15003
15003
|
}, {
|
|
15004
|
-
dataIndex: '
|
|
15004
|
+
dataIndex: 'skuType',
|
|
15005
15005
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15006
15006
|
ellipsis: true,
|
|
15007
15007
|
width: 150,
|
|
15008
15008
|
render: function render(val) {
|
|
15009
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
15009
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val === 'combine'));
|
|
15010
15010
|
}
|
|
15011
15011
|
}];
|
|
15012
15012
|
|
|
@@ -16757,7 +16757,8 @@ var Rate = function Rate(_ref) {
|
|
|
16757
16757
|
var value = _ref.value,
|
|
16758
16758
|
_onChange = _ref.onChange,
|
|
16759
16759
|
placeholder = _ref.placeholder,
|
|
16760
|
-
prefix = _ref.prefix
|
|
16760
|
+
prefix = _ref.prefix,
|
|
16761
|
+
onSubmit = _ref.onSubmit;
|
|
16761
16762
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(InputNumber, {
|
|
16762
16763
|
prefix: prefix,
|
|
16763
16764
|
style: {
|
|
@@ -16767,7 +16768,8 @@ var Rate = function Rate(_ref) {
|
|
|
16767
16768
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[0],
|
|
16768
16769
|
onChange: function onChange(val) {
|
|
16769
16770
|
_onChange([val ? Number(val) : val, value === null || value === void 0 ? void 0 : value[1]]);
|
|
16770
|
-
}
|
|
16771
|
+
},
|
|
16772
|
+
onBlur: onSubmit
|
|
16771
16773
|
}), /*#__PURE__*/React.createElement("span", {
|
|
16772
16774
|
style: {
|
|
16773
16775
|
padding: '0px 8px'
|
|
@@ -16781,7 +16783,8 @@ var Rate = function Rate(_ref) {
|
|
|
16781
16783
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[1],
|
|
16782
16784
|
onChange: function onChange(val) {
|
|
16783
16785
|
_onChange([value === null || value === void 0 ? void 0 : value[0], val ? Number(val) : val]);
|
|
16784
|
-
}
|
|
16786
|
+
},
|
|
16787
|
+
onBlur: onSubmit
|
|
16785
16788
|
}));
|
|
16786
16789
|
};
|
|
16787
16790
|
|
|
@@ -16865,6 +16868,7 @@ var _SelectInput = function SelectInput(props) {
|
|
|
16865
16868
|
newValue.keywords = '';
|
|
16866
16869
|
}
|
|
16867
16870
|
onChange(newValue);
|
|
16871
|
+
props.onSubmit();
|
|
16868
16872
|
};
|
|
16869
16873
|
var handleInputChange = function handleInputChange(e) {
|
|
16870
16874
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -16887,7 +16891,8 @@ var _SelectInput = function SelectInput(props) {
|
|
|
16887
16891
|
placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16888
16892
|
value: value.keywords,
|
|
16889
16893
|
allowClear: true,
|
|
16890
|
-
onChange: handleInputChange
|
|
16894
|
+
onChange: handleInputChange,
|
|
16895
|
+
onBlur: props.onSubmit
|
|
16891
16896
|
}) : null);
|
|
16892
16897
|
};
|
|
16893
16898
|
var _TradeInput = function TradeInput(props) {
|
|
@@ -16915,59 +16920,71 @@ var _TradeInput = function TradeInput(props) {
|
|
|
16915
16920
|
placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16916
16921
|
allowClear: true,
|
|
16917
16922
|
value: value.value,
|
|
16918
|
-
onChange: handleInputChange
|
|
16923
|
+
onChange: handleInputChange,
|
|
16924
|
+
onBlur: props.onSubmit
|
|
16919
16925
|
}), isRepeat ) : /*#__PURE__*/React.createElement("div", {
|
|
16920
16926
|
key: 'tradeInput'
|
|
16921
16927
|
}, /*#__PURE__*/React.createElement(TrimInput, {
|
|
16922
16928
|
placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16923
16929
|
allowClear: true,
|
|
16924
16930
|
value: value.value,
|
|
16925
|
-
onChange: handleInputChange
|
|
16931
|
+
onChange: handleInputChange,
|
|
16932
|
+
onBlur: props.onSubmit
|
|
16926
16933
|
}), isRepeat );
|
|
16927
16934
|
};
|
|
16928
16935
|
var componentMap$1 = {
|
|
16929
16936
|
Input: function Input(props) {
|
|
16930
16937
|
return "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
16931
16938
|
title: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name)
|
|
16932
|
-
}, /*#__PURE__*/React.createElement(TrimInput, _objectSpread2({
|
|
16939
|
+
}, /*#__PURE__*/React.createElement(TrimInput, _objectSpread2(_objectSpread2({
|
|
16933
16940
|
placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16934
16941
|
allowClear: true
|
|
16935
|
-
}, props)
|
|
16942
|
+
}, props), {}, {
|
|
16943
|
+
onBlur: props.handleBlur
|
|
16944
|
+
}))) : /*#__PURE__*/React.createElement(TrimInput, _objectSpread2(_objectSpread2({
|
|
16936
16945
|
placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16937
16946
|
allowClear: true
|
|
16938
|
-
}, props)
|
|
16947
|
+
}, props), {}, {
|
|
16948
|
+
onBlur: props.handleBlur
|
|
16949
|
+
}));
|
|
16939
16950
|
},
|
|
16940
16951
|
MultipleSelect: function MultipleSelect(props) {
|
|
16941
16952
|
return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
16942
16953
|
title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
|
|
16943
|
-
}, /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
16954
|
+
}, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
16944
16955
|
mode: "multiple",
|
|
16945
16956
|
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16946
16957
|
optionFilterProp: "label",
|
|
16947
16958
|
allowClear: true,
|
|
16948
16959
|
maxTagCount: "responsive"
|
|
16949
|
-
}, props)
|
|
16960
|
+
}, props), {}, {
|
|
16961
|
+
onChange: props.handleChange
|
|
16962
|
+
}))) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
16950
16963
|
mode: "multiple",
|
|
16951
16964
|
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16952
16965
|
optionFilterProp: "label",
|
|
16953
16966
|
allowClear: true,
|
|
16954
16967
|
maxTagCount: "responsive"
|
|
16955
|
-
}, props)
|
|
16968
|
+
}, props), {}, {
|
|
16969
|
+
onChange: props.handleChange
|
|
16970
|
+
}));
|
|
16956
16971
|
},
|
|
16957
16972
|
Date: function Date(props) {
|
|
16958
|
-
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2({
|
|
16973
|
+
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2(_objectSpread2({
|
|
16959
16974
|
placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
|
|
16960
16975
|
allowClear: true,
|
|
16961
16976
|
showTime: {
|
|
16962
16977
|
defaultValue: [hooks().startOf('day'), hooks().endOf('day')]
|
|
16963
16978
|
},
|
|
16964
16979
|
maxTagCount: "responsive"
|
|
16965
|
-
}, props)
|
|
16980
|
+
}, props), {}, {
|
|
16981
|
+
onChange: props.handleChange
|
|
16982
|
+
}));
|
|
16966
16983
|
},
|
|
16967
16984
|
Cascader: function Cascader$1(props) {
|
|
16968
16985
|
return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
16969
16986
|
title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
|
|
16970
|
-
}, /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
|
|
16987
|
+
}, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({
|
|
16971
16988
|
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16972
16989
|
allowClear: true,
|
|
16973
16990
|
showSearch: true,
|
|
@@ -16977,7 +16994,9 @@ var componentMap$1 = {
|
|
|
16977
16994
|
value: 'actived',
|
|
16978
16995
|
children: 'children'
|
|
16979
16996
|
}
|
|
16980
|
-
}, props)
|
|
16997
|
+
}, props), {}, {
|
|
16998
|
+
onChange: props.handleChange
|
|
16999
|
+
}))) : /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({
|
|
16981
17000
|
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16982
17001
|
allowClear: true,
|
|
16983
17002
|
showSearch: true,
|
|
@@ -16987,7 +17006,9 @@ var componentMap$1 = {
|
|
|
16987
17006
|
value: 'actived',
|
|
16988
17007
|
children: 'children'
|
|
16989
17008
|
}
|
|
16990
|
-
}, props)
|
|
17009
|
+
}, props), {}, {
|
|
17010
|
+
onChange: props.handleChange
|
|
17011
|
+
}));
|
|
16991
17012
|
},
|
|
16992
17013
|
// ShopList: (props: any) => (
|
|
16993
17014
|
// <ShopList
|
|
@@ -17010,9 +17031,11 @@ var componentMap$1 = {
|
|
|
17010
17031
|
return /*#__PURE__*/React.createElement(_TradeInput, _objectSpread2({}, props));
|
|
17011
17032
|
},
|
|
17012
17033
|
AsyncSelect: function AsyncSelect$1(props) {
|
|
17013
|
-
return /*#__PURE__*/React.createElement(AsyncSelect, _objectSpread2({
|
|
17034
|
+
return /*#__PURE__*/React.createElement(AsyncSelect, _objectSpread2(_objectSpread2({
|
|
17014
17035
|
placeholder: "\u8BF7\u9009\u62E9".concat((props === null || props === void 0 ? void 0 : props.name) || '')
|
|
17015
|
-
}, props)
|
|
17036
|
+
}, props), {}, {
|
|
17037
|
+
onChange: props.handleChange
|
|
17038
|
+
}));
|
|
17016
17039
|
}
|
|
17017
17040
|
};
|
|
17018
17041
|
var FilterSelectOption = function FilterSelectOption(props) {
|
|
@@ -17022,8 +17045,26 @@ var FilterSelectOption = function FilterSelectOption(props) {
|
|
|
17022
17045
|
componentProps = props.props,
|
|
17023
17046
|
ShopList = props.ShopList,
|
|
17024
17047
|
otherProps = _objectWithoutProperties(props, _excluded$g);
|
|
17048
|
+
var handleChange = function handleChange() {
|
|
17049
|
+
var _props$onChange, _props$onSubmit;
|
|
17050
|
+
for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
17051
|
+
params[_key] = arguments[_key];
|
|
17052
|
+
}
|
|
17053
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call.apply(_props$onChange, [props].concat(params));
|
|
17054
|
+
(_props$onSubmit = props.onSubmit) === null || _props$onSubmit === void 0 ? void 0 : _props$onSubmit.call(props);
|
|
17055
|
+
};
|
|
17056
|
+
var handleBlur = function handleBlur(props) {
|
|
17057
|
+
return function () {
|
|
17058
|
+
var _props$onBlur, _props$onSubmit2;
|
|
17059
|
+
for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
17060
|
+
params[_key2] = arguments[_key2];
|
|
17061
|
+
}
|
|
17062
|
+
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call.apply(_props$onBlur, [props].concat(params));
|
|
17063
|
+
(_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 ? void 0 : _props$onSubmit2.call(props);
|
|
17064
|
+
};
|
|
17065
|
+
};
|
|
17025
17066
|
var Comp = filterComponentType === 'ShopList' ? function (props) {
|
|
17026
|
-
return /*#__PURE__*/React.createElement(ShopList, _objectSpread2({
|
|
17067
|
+
return /*#__PURE__*/React.createElement(ShopList, _objectSpread2(_objectSpread2({
|
|
17027
17068
|
placeholder: "\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",
|
|
17028
17069
|
showSearch: true,
|
|
17029
17070
|
optionFilterProp: "label",
|
|
@@ -17033,7 +17074,9 @@ var FilterSelectOption = function FilterSelectOption(props) {
|
|
|
17033
17074
|
style: {
|
|
17034
17075
|
width: '190px'
|
|
17035
17076
|
}
|
|
17036
|
-
}, props)
|
|
17077
|
+
}, props), {}, {
|
|
17078
|
+
onChange: handleChange
|
|
17079
|
+
}));
|
|
17037
17080
|
} : componentMap$1[filterComponentType];
|
|
17038
17081
|
var newComponentProps = cloneDeep(componentProps);
|
|
17039
17082
|
if (hasAddNullComponent.includes(props.type)) {
|
|
@@ -17208,7 +17251,10 @@ var FilterSelectOption = function FilterSelectOption(props) {
|
|
|
17208
17251
|
})
|
|
17209
17252
|
});
|
|
17210
17253
|
}
|
|
17211
|
-
if (Comp) return /*#__PURE__*/React.createElement(Comp, _objectSpread2(_objectSpread2({}, newComponentProps), otherProps)
|
|
17254
|
+
if (Comp) return /*#__PURE__*/React.createElement(Comp, _objectSpread2(_objectSpread2(_objectSpread2({}, newComponentProps), otherProps), {}, {
|
|
17255
|
+
handleChange: handleChange,
|
|
17256
|
+
handleBlur: handleBlur
|
|
17257
|
+
}));
|
|
17212
17258
|
return null;
|
|
17213
17259
|
};
|
|
17214
17260
|
|
|
@@ -17245,7 +17291,8 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
17245
17291
|
_ref$isShowTime = _ref.isShowTime,
|
|
17246
17292
|
isShowTime = _ref$isShowTime === void 0 ? true : _ref$isShowTime,
|
|
17247
17293
|
timeOptions = _ref.timeOptions,
|
|
17248
|
-
ShopList = _ref.ShopList
|
|
17294
|
+
ShopList = _ref.ShopList,
|
|
17295
|
+
onSubmit = _ref.onSubmit;
|
|
17249
17296
|
// const fixedFieldsOptions = useMemo(() => {
|
|
17250
17297
|
// return allFields.filter(item => fixedFields?.includes(item.id));
|
|
17251
17298
|
// }, [fixedFields, allFields]);
|
|
@@ -17301,9 +17348,11 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
17301
17348
|
minWidth: '190px'
|
|
17302
17349
|
},
|
|
17303
17350
|
key: item.id
|
|
17304
|
-
}, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2({
|
|
17351
|
+
}, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2(_objectSpread2({
|
|
17305
17352
|
ShopList: ShopList
|
|
17306
|
-
}, item)
|
|
17353
|
+
}, item), {}, {
|
|
17354
|
+
onSubmit: onSubmit
|
|
17355
|
+
})));
|
|
17307
17356
|
}), /*#__PURE__*/React.createElement(Form.Item, null, layout === 'inner' && /*#__PURE__*/React.createElement(React.Fragment, null, children)))), layout === 'block' && /*#__PURE__*/React.createElement(React.Fragment, null, children));
|
|
17308
17357
|
};
|
|
17309
17358
|
|
|
@@ -17340,7 +17389,8 @@ var SearchForm$1 = function SearchForm(props) {
|
|
|
17340
17389
|
ShopList: props.ShopList,
|
|
17341
17390
|
fixedFields: filterItems || [],
|
|
17342
17391
|
allFields: filterItems || [],
|
|
17343
|
-
status: status === null || status === void 0 ? void 0 : status.open
|
|
17392
|
+
status: status === null || status === void 0 ? void 0 : status.open,
|
|
17393
|
+
onSubmit: submit
|
|
17344
17394
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
|
|
17345
17395
|
type: "primary",
|
|
17346
17396
|
onClick: submit
|
|
@@ -17774,7 +17824,7 @@ var searchFormData$4 = [{
|
|
|
17774
17824
|
name: 'specName'
|
|
17775
17825
|
}, {
|
|
17776
17826
|
label: '规格编码',
|
|
17777
|
-
name: '
|
|
17827
|
+
name: 'specNo'
|
|
17778
17828
|
}, {
|
|
17779
17829
|
label: '商品名称',
|
|
17780
17830
|
name: 'goodName'
|
|
@@ -20231,7 +20281,221 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20231
20281
|
updateDataHandle = _ref.updateDataHandle;
|
|
20232
20282
|
return {
|
|
20233
20283
|
//巨益商品信息
|
|
20234
|
-
JY_GOODS: [
|
|
20284
|
+
JY_GOODS: [
|
|
20285
|
+
// {
|
|
20286
|
+
// dataIndex: 'goodsName',
|
|
20287
|
+
// title: `货品名称`,
|
|
20288
|
+
// width: 250,
|
|
20289
|
+
// },
|
|
20290
|
+
// {
|
|
20291
|
+
// dataIndex: 'goodsCode',
|
|
20292
|
+
// title: `货品编号`,
|
|
20293
|
+
// width: 200,
|
|
20294
|
+
// },
|
|
20295
|
+
// {
|
|
20296
|
+
// dataIndex: 'goodsId',
|
|
20297
|
+
// title: `货品ID`,
|
|
20298
|
+
// width: 150,
|
|
20299
|
+
// },
|
|
20300
|
+
{
|
|
20301
|
+
dataIndex: 'goodsClass',
|
|
20302
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20303
|
+
width: 150
|
|
20304
|
+
}, {
|
|
20305
|
+
dataIndex: 'code',
|
|
20306
|
+
title: "\u6761\u7801",
|
|
20307
|
+
width: 150
|
|
20308
|
+
},
|
|
20309
|
+
// {
|
|
20310
|
+
// dataIndex: 'specName',
|
|
20311
|
+
// title: `规格名称`,
|
|
20312
|
+
// align: 'center',
|
|
20313
|
+
// ellipsis: true,
|
|
20314
|
+
// width: 200,
|
|
20315
|
+
// },
|
|
20316
|
+
// {
|
|
20317
|
+
// dataIndex: 'specCode',
|
|
20318
|
+
// title: `规格编号`,
|
|
20319
|
+
// align: 'center',
|
|
20320
|
+
// ellipsis: true,
|
|
20321
|
+
// width: 150,
|
|
20322
|
+
// },
|
|
20323
|
+
{
|
|
20324
|
+
dataIndex: 'specId',
|
|
20325
|
+
title: "\u89C4\u683CID",
|
|
20326
|
+
align: 'center',
|
|
20327
|
+
ellipsis: true,
|
|
20328
|
+
width: 150
|
|
20329
|
+
}, {
|
|
20330
|
+
dataIndex: 'productName',
|
|
20331
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20332
|
+
align: 'center',
|
|
20333
|
+
ellipsis: true,
|
|
20334
|
+
width: 150
|
|
20335
|
+
}, {
|
|
20336
|
+
dataIndex: 'productCode',
|
|
20337
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20338
|
+
align: 'center',
|
|
20339
|
+
ellipsis: true,
|
|
20340
|
+
width: 150
|
|
20341
|
+
}, {
|
|
20342
|
+
dataIndex: 'productId',
|
|
20343
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20344
|
+
align: 'center',
|
|
20345
|
+
ellipsis: true,
|
|
20346
|
+
width: 150
|
|
20347
|
+
}, {
|
|
20348
|
+
dataIndex: 'skuName',
|
|
20349
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20350
|
+
align: 'center',
|
|
20351
|
+
ellipsis: true,
|
|
20352
|
+
width: 150
|
|
20353
|
+
}, {
|
|
20354
|
+
dataIndex: 'skuCode',
|
|
20355
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20356
|
+
align: 'center',
|
|
20357
|
+
ellipsis: true,
|
|
20358
|
+
width: 150
|
|
20359
|
+
}, {
|
|
20360
|
+
dataIndex: 'mallProductName',
|
|
20361
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20362
|
+
align: 'center',
|
|
20363
|
+
ellipsis: true,
|
|
20364
|
+
width: 250
|
|
20365
|
+
}, {
|
|
20366
|
+
dataIndex: 'mallProductOutCode',
|
|
20367
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20368
|
+
align: 'center',
|
|
20369
|
+
ellipsis: true,
|
|
20370
|
+
width: 150
|
|
20371
|
+
}, {
|
|
20372
|
+
dataIndex: 'mallProductId',
|
|
20373
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20374
|
+
align: 'center',
|
|
20375
|
+
ellipsis: true,
|
|
20376
|
+
width: 250
|
|
20377
|
+
}, {
|
|
20378
|
+
dataIndex: 'mallSkuName',
|
|
20379
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20380
|
+
align: 'center',
|
|
20381
|
+
ellipsis: true,
|
|
20382
|
+
width: 250
|
|
20383
|
+
}, {
|
|
20384
|
+
dataIndex: 'mallSkuId',
|
|
20385
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
20386
|
+
align: 'center',
|
|
20387
|
+
ellipsis: true,
|
|
20388
|
+
width: 250
|
|
20389
|
+
}, {
|
|
20390
|
+
dataIndex: 'sellCount',
|
|
20391
|
+
title: "\u6570\u91CF",
|
|
20392
|
+
width: 100,
|
|
20393
|
+
render: function render(val, record, index) {
|
|
20394
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20395
|
+
style: {
|
|
20396
|
+
width: 70
|
|
20397
|
+
},
|
|
20398
|
+
value: val,
|
|
20399
|
+
min: 1,
|
|
20400
|
+
precision: 0,
|
|
20401
|
+
onChange: function onChange(num) {
|
|
20402
|
+
updateDataHandle({
|
|
20403
|
+
sellCount: num,
|
|
20404
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20405
|
+
}, index);
|
|
20406
|
+
}
|
|
20407
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20408
|
+
}
|
|
20409
|
+
}, {
|
|
20410
|
+
dataIndex: 'sellPrice',
|
|
20411
|
+
title: "\u5355\u4EF7",
|
|
20412
|
+
width: 150,
|
|
20413
|
+
render: function render(val, record, index) {
|
|
20414
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20415
|
+
style: {
|
|
20416
|
+
width: 130
|
|
20417
|
+
},
|
|
20418
|
+
value: val,
|
|
20419
|
+
min: 0,
|
|
20420
|
+
precision: 2,
|
|
20421
|
+
onChange: function onChange(num) {
|
|
20422
|
+
updateDataHandle({
|
|
20423
|
+
sellPrice: num,
|
|
20424
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20425
|
+
}, index);
|
|
20426
|
+
}
|
|
20427
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20428
|
+
}
|
|
20429
|
+
}, {
|
|
20430
|
+
dataIndex: 'mallSellingPrice',
|
|
20431
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
20432
|
+
width: 150
|
|
20433
|
+
}, {
|
|
20434
|
+
dataIndex: 'sellTotal',
|
|
20435
|
+
title: "\u91D1\u989D",
|
|
20436
|
+
width: 150
|
|
20437
|
+
}, {
|
|
20438
|
+
dataIndex: 'settlementPrice',
|
|
20439
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
20440
|
+
width: 150
|
|
20441
|
+
}, {
|
|
20442
|
+
dataIndex: 'divideOrderFee',
|
|
20443
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20444
|
+
width: 150
|
|
20445
|
+
}, {
|
|
20446
|
+
dataIndex: 'bfit',
|
|
20447
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
20448
|
+
width: 150,
|
|
20449
|
+
render: function render(val, record, index) {
|
|
20450
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20451
|
+
value: val,
|
|
20452
|
+
onChange: function onChange(value) {
|
|
20453
|
+
updateHandle(value, index, 'bfit');
|
|
20454
|
+
},
|
|
20455
|
+
options: [{
|
|
20456
|
+
label: '是',
|
|
20457
|
+
value: 'True'
|
|
20458
|
+
}, {
|
|
20459
|
+
label: '否',
|
|
20460
|
+
value: 'False'
|
|
20461
|
+
}]
|
|
20462
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
20463
|
+
}
|
|
20464
|
+
}, {
|
|
20465
|
+
dataIndex: 'combinationName',
|
|
20466
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20467
|
+
width: 150
|
|
20468
|
+
}, {
|
|
20469
|
+
dataIndex: 'combinationCode',
|
|
20470
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20471
|
+
width: 150
|
|
20472
|
+
}, {
|
|
20473
|
+
dataIndex: 'gift',
|
|
20474
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
20475
|
+
width: 150,
|
|
20476
|
+
render: function render(val, record, index) {
|
|
20477
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20478
|
+
value: val,
|
|
20479
|
+
onChange: function onChange(value) {
|
|
20480
|
+
updateHandle(value, index, 'gift');
|
|
20481
|
+
},
|
|
20482
|
+
options: [{
|
|
20483
|
+
label: '是',
|
|
20484
|
+
value: '1'
|
|
20485
|
+
}, {
|
|
20486
|
+
label: '否',
|
|
20487
|
+
value: '0'
|
|
20488
|
+
}]
|
|
20489
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
20490
|
+
}
|
|
20491
|
+
}].map(function (item) {
|
|
20492
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20493
|
+
align: 'center',
|
|
20494
|
+
ellipsis: true
|
|
20495
|
+
});
|
|
20496
|
+
}),
|
|
20497
|
+
// 巨益补发商品信息
|
|
20498
|
+
JY_REISSUE_GOODS: [{
|
|
20235
20499
|
dataIndex: 'goodsName',
|
|
20236
20500
|
title: "\u8D27\u54C1\u540D\u79F0",
|
|
20237
20501
|
width: 150
|
|
@@ -20245,7 +20509,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20245
20509
|
width: 150
|
|
20246
20510
|
}, {
|
|
20247
20511
|
dataIndex: 'goodsClass',
|
|
20248
|
-
title: "\u8D27\
|
|
20512
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20249
20513
|
width: 150
|
|
20250
20514
|
}, {
|
|
20251
20515
|
dataIndex: 'code',
|
|
@@ -20281,12 +20545,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20281
20545
|
align: 'center',
|
|
20282
20546
|
ellipsis: true,
|
|
20283
20547
|
width: 150
|
|
20284
|
-
}, {
|
|
20285
|
-
dataIndex: 'productCode',
|
|
20286
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20287
|
-
align: 'center',
|
|
20288
|
-
ellipsis: true,
|
|
20289
|
-
width: 150
|
|
20290
20548
|
}, {
|
|
20291
20549
|
dataIndex: 'productId',
|
|
20292
20550
|
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
@@ -20336,7 +20594,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20336
20594
|
ellipsis: true,
|
|
20337
20595
|
width: 150
|
|
20338
20596
|
}, {
|
|
20339
|
-
dataIndex: '
|
|
20597
|
+
dataIndex: 'sellCount',
|
|
20340
20598
|
title: "\u6570\u91CF",
|
|
20341
20599
|
width: 100,
|
|
20342
20600
|
render: function render(val, record, index) {
|
|
@@ -20384,14 +20642,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20384
20642
|
dataIndex: 'sellTotal',
|
|
20385
20643
|
title: "\u91D1\u989D",
|
|
20386
20644
|
width: 150
|
|
20387
|
-
}, {
|
|
20388
|
-
dataIndex: 'settlementPrice',
|
|
20389
|
-
title: "\u7ED3\u7B97\u4EF7",
|
|
20390
|
-
width: 150
|
|
20391
|
-
}, {
|
|
20392
|
-
dataIndex: 'divideOrderFee',
|
|
20393
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20394
|
-
width: 150
|
|
20395
20645
|
}, {
|
|
20396
20646
|
dataIndex: 'bfit',
|
|
20397
20647
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
@@ -20438,310 +20688,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20438
20688
|
}]
|
|
20439
20689
|
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20440
20690
|
}
|
|
20441
|
-
}, {
|
|
20442
|
-
dataIndex: 'skuNote',
|
|
20443
|
-
title: "\u5546\u54C1\u5907\u6CE8",
|
|
20444
|
-
width: 150
|
|
20445
20691
|
}].map(function (item) {
|
|
20446
20692
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20447
20693
|
align: 'center',
|
|
20448
20694
|
ellipsis: true
|
|
20449
20695
|
});
|
|
20450
20696
|
})
|
|
20451
|
-
//巨益补发商品信息
|
|
20452
|
-
// JY_REISSUE_GOODS: [
|
|
20453
|
-
// {
|
|
20454
|
-
// dataIndex: 'goodName',
|
|
20455
|
-
// title: `商品名称`,
|
|
20456
|
-
// width: 150,
|
|
20457
|
-
// },
|
|
20458
|
-
// {
|
|
20459
|
-
// dataIndex: 'goodShortName',
|
|
20460
|
-
// title: `商品简称`,
|
|
20461
|
-
// width: 150,
|
|
20462
|
-
// },
|
|
20463
|
-
// {
|
|
20464
|
-
// dataIndex: 'goodNo',
|
|
20465
|
-
// title: `商品编码`,
|
|
20466
|
-
// width: 200,
|
|
20467
|
-
// },
|
|
20468
|
-
// {
|
|
20469
|
-
// dataIndex: 'specName',
|
|
20470
|
-
// title: `SKU名称`,
|
|
20471
|
-
// align: 'center',
|
|
20472
|
-
// ellipsis: true,
|
|
20473
|
-
// width: 250,
|
|
20474
|
-
// },
|
|
20475
|
-
// {
|
|
20476
|
-
// dataIndex: 'specNo',
|
|
20477
|
-
// title: `SKU编码`,
|
|
20478
|
-
// align: 'center',
|
|
20479
|
-
// ellipsis: true,
|
|
20480
|
-
// width: 150,
|
|
20481
|
-
// },
|
|
20482
|
-
// {
|
|
20483
|
-
// dataIndex: 'qty',
|
|
20484
|
-
// title: `数量`,
|
|
20485
|
-
// width: 100,
|
|
20486
|
-
// validator: (_rule: any, value: any) => {
|
|
20487
|
-
// let goodsName = '';
|
|
20488
|
-
// if (
|
|
20489
|
-
// (value?.gyReissueGoods || []).some((goods: any) => {
|
|
20490
|
-
// const qty = toNum(goods?.qty);
|
|
20491
|
-
// const res = typeof qty === 'number' ? qty < 1 : true;
|
|
20492
|
-
// if (res) {
|
|
20493
|
-
// goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
|
|
20494
|
-
// }
|
|
20495
|
-
// return res;
|
|
20496
|
-
// })
|
|
20497
|
-
// ) {
|
|
20498
|
-
// return Promise.reject(`${goodsName}数量必须大于0`);
|
|
20499
|
-
// }
|
|
20500
|
-
// },
|
|
20501
|
-
// render: (val: any, record: any, index: number) =>
|
|
20502
|
-
// !disabled ? (
|
|
20503
|
-
// <InputNumber
|
|
20504
|
-
// style={{ width: 70 }}
|
|
20505
|
-
// value={val}
|
|
20506
|
-
// min={1}
|
|
20507
|
-
// precision={0}
|
|
20508
|
-
// onChange={(num) => {
|
|
20509
|
-
// updateDataHandle(
|
|
20510
|
-
// {
|
|
20511
|
-
// qty: num,
|
|
20512
|
-
// amount:
|
|
20513
|
-
// num && isNumberOrNumberString(record.price)
|
|
20514
|
-
// ? num * record.price
|
|
20515
|
-
// : null,
|
|
20516
|
-
// originAmount:
|
|
20517
|
-
// num && isNumberOrNumberString(record.originPrice)
|
|
20518
|
-
// ? num * record.originPrice
|
|
20519
|
-
// : null,
|
|
20520
|
-
// },
|
|
20521
|
-
// index,
|
|
20522
|
-
// );
|
|
20523
|
-
// }}
|
|
20524
|
-
// ></InputNumber>
|
|
20525
|
-
// ) : (
|
|
20526
|
-
// <span>{val}</span>
|
|
20527
|
-
// ),
|
|
20528
|
-
// },
|
|
20529
|
-
// {
|
|
20530
|
-
// dataIndex: 'price',
|
|
20531
|
-
// title: `实际单价`,
|
|
20532
|
-
// width: 150,
|
|
20533
|
-
// render: (val: any, record: any, index: number) =>
|
|
20534
|
-
// !disabled ? (
|
|
20535
|
-
// <InputNumber
|
|
20536
|
-
// style={{ width: 130 }}
|
|
20537
|
-
// value={val}
|
|
20538
|
-
// min={0}
|
|
20539
|
-
// precision={2}
|
|
20540
|
-
// onChange={(num) => {
|
|
20541
|
-
// updateDataHandle(
|
|
20542
|
-
// {
|
|
20543
|
-
// price: num,
|
|
20544
|
-
// amount:
|
|
20545
|
-
// num && isNumberOrNumberString(record.qty)
|
|
20546
|
-
// ? num * record.qty
|
|
20547
|
-
// : null,
|
|
20548
|
-
// },
|
|
20549
|
-
// index,
|
|
20550
|
-
// );
|
|
20551
|
-
// }}
|
|
20552
|
-
// ></InputNumber>
|
|
20553
|
-
// ) : (
|
|
20554
|
-
// <span>{val}</span>
|
|
20555
|
-
// ),
|
|
20556
|
-
// },
|
|
20557
|
-
// {
|
|
20558
|
-
// dataIndex: 'amount',
|
|
20559
|
-
// title: `实际金额`,
|
|
20560
|
-
// width: 150,
|
|
20561
|
-
// },
|
|
20562
|
-
// {
|
|
20563
|
-
// dataIndex: 'originPrice',
|
|
20564
|
-
// title: `标准单价`,
|
|
20565
|
-
// width: 150,
|
|
20566
|
-
// },
|
|
20567
|
-
// {
|
|
20568
|
-
// dataIndex: 'originAmount',
|
|
20569
|
-
// title: `标准金额`,
|
|
20570
|
-
// width: 150,
|
|
20571
|
-
// },
|
|
20572
|
-
// {
|
|
20573
|
-
// dataIndex: 'isGift',
|
|
20574
|
-
// title: `是否赠品`,
|
|
20575
|
-
// width: 150,
|
|
20576
|
-
// render: (val: number, record: any, index: number) =>
|
|
20577
|
-
// record.canEdit && !disabled ? (
|
|
20578
|
-
// <Select
|
|
20579
|
-
// value={val}
|
|
20580
|
-
// onChange={(value) => {
|
|
20581
|
-
// updateHandle(value, index, 'isGift');
|
|
20582
|
-
// }}
|
|
20583
|
-
// options={[
|
|
20584
|
-
// { label: '是', value: 1 },
|
|
20585
|
-
// { label: '否', value: 0 },
|
|
20586
|
-
// ]}
|
|
20587
|
-
// />
|
|
20588
|
-
// ) : (
|
|
20589
|
-
// <span>{getYesOrNo(val)}</span>
|
|
20590
|
-
// ),
|
|
20591
|
-
// },
|
|
20592
|
-
// ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
|
|
20593
|
-
// //巨益退货商品信息
|
|
20594
|
-
// JY_RETURN_GOODS: [
|
|
20595
|
-
// {
|
|
20596
|
-
// dataIndex: 'goodName',
|
|
20597
|
-
// title: `商品名称`,
|
|
20598
|
-
// width: 150,
|
|
20599
|
-
// },
|
|
20600
|
-
// {
|
|
20601
|
-
// dataIndex: 'goodShortName',
|
|
20602
|
-
// title: `商品简称`,
|
|
20603
|
-
// width: 150,
|
|
20604
|
-
// },
|
|
20605
|
-
// {
|
|
20606
|
-
// dataIndex: 'goodNo',
|
|
20607
|
-
// title: `商品编码`,
|
|
20608
|
-
// width: 200,
|
|
20609
|
-
// },
|
|
20610
|
-
// {
|
|
20611
|
-
// dataIndex: 'specName',
|
|
20612
|
-
// title: `SKU名称`,
|
|
20613
|
-
// align: 'center',
|
|
20614
|
-
// ellipsis: true,
|
|
20615
|
-
// width: 250,
|
|
20616
|
-
// },
|
|
20617
|
-
// {
|
|
20618
|
-
// dataIndex: 'specNo',
|
|
20619
|
-
// title: `SKU编码`,
|
|
20620
|
-
// align: 'center',
|
|
20621
|
-
// ellipsis: true,
|
|
20622
|
-
// width: 150,
|
|
20623
|
-
// },
|
|
20624
|
-
// {
|
|
20625
|
-
// dataIndex: 'qty',
|
|
20626
|
-
// title: `数量`,
|
|
20627
|
-
// width: 100,
|
|
20628
|
-
// validator: (_rule: any, value: any) => {
|
|
20629
|
-
// let goodsName = '';
|
|
20630
|
-
// if (
|
|
20631
|
-
// (value?.gyReturnGoods || []).some((goods: any) => {
|
|
20632
|
-
// const qty = toNum(goods?.qty);
|
|
20633
|
-
// const res = typeof qty === 'number' ? qty < 1 : true;
|
|
20634
|
-
// if (res) {
|
|
20635
|
-
// goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
|
|
20636
|
-
// }
|
|
20637
|
-
// return res;
|
|
20638
|
-
// })
|
|
20639
|
-
// ) {
|
|
20640
|
-
// return Promise.reject(`${goodsName}数量必须大于0`);
|
|
20641
|
-
// }
|
|
20642
|
-
// },
|
|
20643
|
-
// render: (val: any, record: any, index: number) =>
|
|
20644
|
-
// !disabled ? (
|
|
20645
|
-
// <InputNumber
|
|
20646
|
-
// style={{ width: 70 }}
|
|
20647
|
-
// value={val}
|
|
20648
|
-
// min={1}
|
|
20649
|
-
// precision={0}
|
|
20650
|
-
// onChange={(num) => {
|
|
20651
|
-
// updateDataHandle(
|
|
20652
|
-
// {
|
|
20653
|
-
// qty: num,
|
|
20654
|
-
// amount:
|
|
20655
|
-
// num && isNumberOrNumberString(record.price)
|
|
20656
|
-
// ? num * record.price
|
|
20657
|
-
// : null,
|
|
20658
|
-
// originAmount:
|
|
20659
|
-
// num && isNumberOrNumberString(record.originPrice)
|
|
20660
|
-
// ? num * record.originPrice
|
|
20661
|
-
// : null,
|
|
20662
|
-
// },
|
|
20663
|
-
// index,
|
|
20664
|
-
// );
|
|
20665
|
-
// }}
|
|
20666
|
-
// ></InputNumber>
|
|
20667
|
-
// ) : (
|
|
20668
|
-
// <span>{val}</span>
|
|
20669
|
-
// ),
|
|
20670
|
-
// },
|
|
20671
|
-
// {
|
|
20672
|
-
// dataIndex: 'price',
|
|
20673
|
-
// title: `实际单价`,
|
|
20674
|
-
// width: 150,
|
|
20675
|
-
// render: (val: any, record: any, index: number) =>
|
|
20676
|
-
// !disabled ? (
|
|
20677
|
-
// <InputNumber
|
|
20678
|
-
// style={{ width: 130 }}
|
|
20679
|
-
// value={val}
|
|
20680
|
-
// min={0}
|
|
20681
|
-
// precision={2}
|
|
20682
|
-
// onChange={(num) => {
|
|
20683
|
-
// updateDataHandle(
|
|
20684
|
-
// {
|
|
20685
|
-
// price: num,
|
|
20686
|
-
// amount:
|
|
20687
|
-
// num && isNumberOrNumberString(record.qty)
|
|
20688
|
-
// ? num * record.qty
|
|
20689
|
-
// : null,
|
|
20690
|
-
// },
|
|
20691
|
-
// index,
|
|
20692
|
-
// );
|
|
20693
|
-
// }}
|
|
20694
|
-
// ></InputNumber>
|
|
20695
|
-
// ) : (
|
|
20696
|
-
// <span>{val}</span>
|
|
20697
|
-
// ),
|
|
20698
|
-
// },
|
|
20699
|
-
// {
|
|
20700
|
-
// dataIndex: 'amount',
|
|
20701
|
-
// title: `实际金额`,
|
|
20702
|
-
// width: 150,
|
|
20703
|
-
// },
|
|
20704
|
-
// {
|
|
20705
|
-
// dataIndex: 'originPrice',
|
|
20706
|
-
// title: `标准单价`,
|
|
20707
|
-
// width: 150,
|
|
20708
|
-
// },
|
|
20709
|
-
// {
|
|
20710
|
-
// dataIndex: 'originAmount',
|
|
20711
|
-
// title: `标准金额`,
|
|
20712
|
-
// width: 150,
|
|
20713
|
-
// },
|
|
20714
|
-
// {
|
|
20715
|
-
// dataIndex: 'discountFee',
|
|
20716
|
-
// title: `让利金额`,
|
|
20717
|
-
// width: 150,
|
|
20718
|
-
// },
|
|
20719
|
-
// {
|
|
20720
|
-
// dataIndex: 'amountAfter',
|
|
20721
|
-
// title: `让利后金额`,
|
|
20722
|
-
// width: 150,
|
|
20723
|
-
// },
|
|
20724
|
-
// {
|
|
20725
|
-
// dataIndex: 'isGift',
|
|
20726
|
-
// title: `是否赠品`,
|
|
20727
|
-
// width: 150,
|
|
20728
|
-
// render: (val: number, record: any, index: number) =>
|
|
20729
|
-
// record.canEdit && !disabled ? (
|
|
20730
|
-
// <Select
|
|
20731
|
-
// value={val}
|
|
20732
|
-
// onChange={(value) => {
|
|
20733
|
-
// updateHandle(value, index, 'isGift');
|
|
20734
|
-
// }}
|
|
20735
|
-
// options={[
|
|
20736
|
-
// { label: '是', value: 1 },
|
|
20737
|
-
// { label: '否', value: 0 },
|
|
20738
|
-
// ]}
|
|
20739
|
-
// />
|
|
20740
|
-
// ) : (
|
|
20741
|
-
// <span>{getYesOrNo(val)}</span>
|
|
20742
|
-
// ),
|
|
20743
|
-
// },
|
|
20744
|
-
// ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
|
|
20745
20697
|
};
|
|
20746
20698
|
};
|
|
20747
20699
|
|
|
@@ -20932,7 +20884,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
20932
20884
|
})), getColumns$7({
|
|
20933
20885
|
text: text,
|
|
20934
20886
|
disabled: disabled,
|
|
20935
|
-
updateHandle: updateHandle
|
|
20887
|
+
updateHandle: updateHandle,
|
|
20888
|
+
updateDataHandle: updateDataHandle
|
|
20936
20889
|
})), getColumns$8({
|
|
20937
20890
|
text: text,
|
|
20938
20891
|
disabled: disabled,
|
|
@@ -21130,6 +21083,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
21130
21083
|
canUpdateNumber: canUpdateNumber,
|
|
21131
21084
|
source: source
|
|
21132
21085
|
});
|
|
21086
|
+
} else if (isErpType.isJy(type)) {
|
|
21087
|
+
newList = processJyGoods({
|
|
21088
|
+
list: list,
|
|
21089
|
+
type: type,
|
|
21090
|
+
canUpdateNumber: canUpdateNumber,
|
|
21091
|
+
source: source
|
|
21092
|
+
});
|
|
21133
21093
|
} else {
|
|
21134
21094
|
newList = processDefaultGoods({
|
|
21135
21095
|
list: list,
|
|
@@ -21140,11 +21100,49 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
21140
21100
|
}
|
|
21141
21101
|
return newList;
|
|
21142
21102
|
};
|
|
21143
|
-
|
|
21144
|
-
var processWdtGoods$1 = function processWdtGoods(_ref2) {
|
|
21103
|
+
var processJyGoods = function processJyGoods(_ref2) {
|
|
21145
21104
|
var list = _ref2.list,
|
|
21146
|
-
type = _ref2.type,
|
|
21147
21105
|
canUpdateNumber = _ref2.canUpdateNumber;
|
|
21106
|
+
return list.map(function (item) {
|
|
21107
|
+
var goodName = item.goodName,
|
|
21108
|
+
goodNo = item.goodNo,
|
|
21109
|
+
goodId = item.goodId,
|
|
21110
|
+
specName = item.specName,
|
|
21111
|
+
specNo = item.specNo,
|
|
21112
|
+
specBarcode = item.specBarcode,
|
|
21113
|
+
retailPrice = item.retailPrice,
|
|
21114
|
+
isGift = item.isGift,
|
|
21115
|
+
skuType = item.skuType;
|
|
21116
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21117
|
+
goodsName: goodName,
|
|
21118
|
+
goodsCode: goodNo,
|
|
21119
|
+
goodsId: goodId,
|
|
21120
|
+
code: specBarcode,
|
|
21121
|
+
specCode: specNo,
|
|
21122
|
+
productName: goodName,
|
|
21123
|
+
productCode: goodNo,
|
|
21124
|
+
productId: goodId,
|
|
21125
|
+
skuName: specName,
|
|
21126
|
+
skuCode: specNo,
|
|
21127
|
+
combinationName: goodName,
|
|
21128
|
+
combinationCode: goodNo,
|
|
21129
|
+
gift: isGift ? '1' : '0',
|
|
21130
|
+
bfit: skuType === 'combine' ? 'True' : 'False',
|
|
21131
|
+
uuid: uuid(),
|
|
21132
|
+
canDelete: true,
|
|
21133
|
+
sellCount: 1,
|
|
21134
|
+
sellPrice: retailPrice,
|
|
21135
|
+
sellTotal: retailPrice * 1,
|
|
21136
|
+
canEdit: true,
|
|
21137
|
+
canUpdateNumber: canUpdateNumber
|
|
21138
|
+
});
|
|
21139
|
+
});
|
|
21140
|
+
};
|
|
21141
|
+
// 处理不同类型的商品数据
|
|
21142
|
+
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
21143
|
+
var list = _ref3.list,
|
|
21144
|
+
type = _ref3.type,
|
|
21145
|
+
canUpdateNumber = _ref3.canUpdateNumber;
|
|
21148
21146
|
return list.map(function (item) {
|
|
21149
21147
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21150
21148
|
uuid: uuid(),
|
|
@@ -21162,9 +21160,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref2) {
|
|
|
21162
21160
|
return processedItem;
|
|
21163
21161
|
});
|
|
21164
21162
|
};
|
|
21165
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
21166
|
-
var list =
|
|
21167
|
-
canUpdateNumber =
|
|
21163
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
21164
|
+
var list = _ref4.list,
|
|
21165
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
21168
21166
|
return list.map(function (item) {
|
|
21169
21167
|
var specNo = item.specNo,
|
|
21170
21168
|
specId = item.specId,
|
|
@@ -21199,9 +21197,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
|
|
|
21199
21197
|
});
|
|
21200
21198
|
});
|
|
21201
21199
|
};
|
|
21202
|
-
var processGyGoods$1 = function processGyGoods(
|
|
21203
|
-
var list =
|
|
21204
|
-
source =
|
|
21200
|
+
var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
21201
|
+
var list = _ref5.list,
|
|
21202
|
+
source = _ref5.source;
|
|
21205
21203
|
var isFormWorkOrder = source === 'workOrder';
|
|
21206
21204
|
return list.map(function (item) {
|
|
21207
21205
|
var goodName = item.goodName,
|
|
@@ -21228,8 +21226,8 @@ var processGyGoods$1 = function processGyGoods(_ref4) {
|
|
|
21228
21226
|
});
|
|
21229
21227
|
});
|
|
21230
21228
|
};
|
|
21231
|
-
var processJstGoods$1 = function processJstGoods(
|
|
21232
|
-
var list =
|
|
21229
|
+
var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
21230
|
+
var list = _ref6.list;
|
|
21233
21231
|
return list.map(function (item) {
|
|
21234
21232
|
return {
|
|
21235
21233
|
name: item.goodName,
|
|
@@ -21247,9 +21245,9 @@ var processJstGoods$1 = function processJstGoods(_ref5) {
|
|
|
21247
21245
|
};
|
|
21248
21246
|
});
|
|
21249
21247
|
};
|
|
21250
|
-
var processKmGoods$1 = function processKmGoods(
|
|
21251
|
-
var list =
|
|
21252
|
-
type =
|
|
21248
|
+
var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
21249
|
+
var list = _ref7.list,
|
|
21250
|
+
type = _ref7.type;
|
|
21253
21251
|
var initParamsMap = {
|
|
21254
21252
|
KM_GOODS: {
|
|
21255
21253
|
num: 1
|
|
@@ -21279,9 +21277,9 @@ var processKmGoods$1 = function processKmGoods(_ref6) {
|
|
|
21279
21277
|
}, initParamsMap[type] || {});
|
|
21280
21278
|
});
|
|
21281
21279
|
};
|
|
21282
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
21283
|
-
var list =
|
|
21284
|
-
canUpdateNumber =
|
|
21280
|
+
var processDefaultGoods = function processDefaultGoods(_ref8) {
|
|
21281
|
+
var list = _ref8.list,
|
|
21282
|
+
canUpdateNumber = _ref8.canUpdateNumber;
|
|
21285
21283
|
return list.map(function (item) {
|
|
21286
21284
|
var goodsId = item.goodsId,
|
|
21287
21285
|
name = item.name,
|
|
@@ -21325,6 +21323,7 @@ var GoodsModalMap = {
|
|
|
21325
21323
|
KM_GOODS: KmGoodsModal,
|
|
21326
21324
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
21327
21325
|
JY_GOODS: JyGoodsModal$1,
|
|
21326
|
+
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
21328
21327
|
OTHER_GOODS: GoodsModal$2
|
|
21329
21328
|
};
|
|
21330
21329
|
var systemOrderNoMap = {
|
|
@@ -21609,6 +21608,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21609
21608
|
case 'KM_GOODS':
|
|
21610
21609
|
case 'KM_REISSUE_GOODS':
|
|
21611
21610
|
case 'JY_GOODS':
|
|
21611
|
+
case 'JY_REISSUE_GOODS':
|
|
21612
21612
|
case 'SKX_GOODS':
|
|
21613
21613
|
case 'SKX_RETURN_GOODS':
|
|
21614
21614
|
{
|
|
@@ -22714,16 +22714,17 @@ var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
|
|
|
22714
22714
|
singletonMap$6.delete(orderNo);
|
|
22715
22715
|
reject(err);
|
|
22716
22716
|
};
|
|
22717
|
-
extendRequest('/qy/gdfw/
|
|
22717
|
+
extendRequest('/qy/gdfw/order/jyOrderDetail', {
|
|
22718
22718
|
method: 'post',
|
|
22719
22719
|
data: {
|
|
22720
|
-
|
|
22720
|
+
billNo: orderNo
|
|
22721
22721
|
}
|
|
22722
22722
|
}).then(function (res) {
|
|
22723
22723
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
22724
|
-
var _res$data;
|
|
22725
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
22726
|
-
|
|
22724
|
+
var _res$data, _res$data$tradeOrderD;
|
|
22725
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$tradeOrderD = _res$data.tradeOrderDetails) === null || _res$data$tradeOrderD === void 0 ? void 0 : _res$data$tradeOrderD.length) {
|
|
22726
|
+
var _res$data2;
|
|
22727
|
+
res.data.trades = filterJyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo);
|
|
22727
22728
|
}
|
|
22728
22729
|
resolve(res.data);
|
|
22729
22730
|
// 延迟10秒清除,保证订单的时效性
|
|
@@ -24023,6 +24024,11 @@ var processAllOrders = function processAllOrders(_ref) {
|
|
|
24023
24024
|
newList = processWlnOrders({
|
|
24024
24025
|
data: data
|
|
24025
24026
|
});
|
|
24027
|
+
} else if (isErpType$1.isJy(type)) {
|
|
24028
|
+
newList = processJyOrders({
|
|
24029
|
+
data: data,
|
|
24030
|
+
orderNo: orderNo
|
|
24031
|
+
});
|
|
24026
24032
|
} else {
|
|
24027
24033
|
newList = processDefaultOrders({
|
|
24028
24034
|
data: data
|
|
@@ -24054,12 +24060,20 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
24054
24060
|
});
|
|
24055
24061
|
return trades;
|
|
24056
24062
|
};
|
|
24057
|
-
var
|
|
24058
|
-
var data = _ref5.data
|
|
24059
|
-
|
|
24063
|
+
var processJyOrders = function processJyOrders(_ref5) {
|
|
24064
|
+
var data = _ref5.data,
|
|
24065
|
+
orderNo = _ref5.orderNo;
|
|
24066
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
24067
|
+
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
24068
|
+
});
|
|
24069
|
+
return trades;
|
|
24060
24070
|
};
|
|
24061
|
-
var
|
|
24071
|
+
var processWlnOrders = function processWlnOrders(_ref6) {
|
|
24062
24072
|
var data = _ref6.data;
|
|
24073
|
+
return (data === null || data === void 0 ? void 0 : data.orders) || [];
|
|
24074
|
+
};
|
|
24075
|
+
var processDefaultOrders = function processDefaultOrders(_ref7) {
|
|
24076
|
+
var data = _ref7.data;
|
|
24063
24077
|
return data || [];
|
|
24064
24078
|
};
|
|
24065
24079
|
|
|
@@ -25177,6 +25191,21 @@ var typeMap$2 = {
|
|
|
25177
25191
|
outerOiIdKey: '',
|
|
25178
25192
|
goodDetailsKey: 'subOrders',
|
|
25179
25193
|
uniqueKey: 'id'
|
|
25194
|
+
},
|
|
25195
|
+
JY_REISSUE_GOODS: {
|
|
25196
|
+
compType: '补发',
|
|
25197
|
+
key: 'jyReissueGoods',
|
|
25198
|
+
typeName: 'jyReissueType',
|
|
25199
|
+
systemOrder: 'jySystemOrder',
|
|
25200
|
+
systemOrderNo: 'jySystemOrderNo',
|
|
25201
|
+
getOrderList: jyUtils.getJyOrderListSingleton,
|
|
25202
|
+
updateGoodsHandle: updateJyGoodsHandle,
|
|
25203
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
25204
|
+
orderTypeKey: 'orderType',
|
|
25205
|
+
oIdKey: 'tradeNo',
|
|
25206
|
+
outerOiIdKey: '',
|
|
25207
|
+
goodDetailsKey: 'subOrderDetails',
|
|
25208
|
+
uniqueKey: 'oid'
|
|
25180
25209
|
}
|
|
25181
25210
|
};
|
|
25182
25211
|
var PublicReissue = function PublicReissue(props) {
|