@kmkf-fe-packages/basic-components 1.19.8-beta.2 → 1.19.8-beta.21
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 +352 -365
- package/dist/index.js +351 -364
- package/package.json +3 -3
- package/dist/src/basics/FormItem/index.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -22,363 +22,377 @@ 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(r, l) {
|
|
26
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
27
|
+
if (null != t) {
|
|
28
|
+
var e,
|
|
29
|
+
n,
|
|
30
|
+
i,
|
|
31
|
+
u,
|
|
32
|
+
a = [],
|
|
33
|
+
f = !0,
|
|
34
|
+
o = !1;
|
|
35
35
|
try {
|
|
36
|
-
if (
|
|
37
|
-
if (Object(
|
|
38
|
-
|
|
39
|
-
} else for (; !(
|
|
40
|
-
} catch (
|
|
41
|
-
|
|
36
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
37
|
+
if (Object(t) !== t) return;
|
|
38
|
+
f = !1;
|
|
39
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
40
|
+
} catch (r) {
|
|
41
|
+
o = !0, n = r;
|
|
42
42
|
} finally {
|
|
43
43
|
try {
|
|
44
|
-
if (!
|
|
44
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
45
45
|
} finally {
|
|
46
|
-
if (
|
|
46
|
+
if (o) throw n;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return a;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function ownKeys(
|
|
53
|
-
var
|
|
52
|
+
function ownKeys(e, r) {
|
|
53
|
+
var t = Object.keys(e);
|
|
54
54
|
if (Object.getOwnPropertySymbols) {
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
return Object.getOwnPropertyDescriptor(
|
|
58
|
-
})),
|
|
55
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
56
|
+
r && (o = o.filter(function (r) {
|
|
57
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
58
|
+
})), t.push.apply(t, o);
|
|
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 t;
|
|
61
|
+
}
|
|
62
|
+
function _objectSpread2(e) {
|
|
63
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
64
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
65
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
66
|
+
_defineProperty(e, r, t[r]);
|
|
67
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
68
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
return
|
|
71
|
+
return e;
|
|
72
72
|
}
|
|
73
73
|
function _regeneratorRuntime() {
|
|
74
74
|
_regeneratorRuntime = function () {
|
|
75
|
-
return
|
|
76
|
-
};
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
return e;
|
|
76
|
+
};
|
|
77
|
+
var t,
|
|
78
|
+
e = {},
|
|
79
|
+
r = Object.prototype,
|
|
80
|
+
n = r.hasOwnProperty,
|
|
81
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
82
|
+
t[e] = r.value;
|
|
82
83
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
function define(
|
|
88
|
-
return Object.defineProperty(
|
|
89
|
-
value:
|
|
84
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
85
|
+
a = i.iterator || "@@iterator",
|
|
86
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
87
|
+
u = i.toStringTag || "@@toStringTag";
|
|
88
|
+
function define(t, e, r) {
|
|
89
|
+
return Object.defineProperty(t, e, {
|
|
90
|
+
value: r,
|
|
90
91
|
enumerable: !0,
|
|
91
92
|
configurable: !0,
|
|
92
93
|
writable: !0
|
|
93
|
-
}),
|
|
94
|
+
}), t[e];
|
|
94
95
|
}
|
|
95
96
|
try {
|
|
96
97
|
define({}, "");
|
|
97
|
-
} catch (
|
|
98
|
-
define = function (
|
|
99
|
-
return
|
|
98
|
+
} catch (t) {
|
|
99
|
+
define = function (t, e, r) {
|
|
100
|
+
return t[e] = r;
|
|
100
101
|
};
|
|
101
102
|
}
|
|
102
|
-
function wrap(
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return
|
|
107
|
-
value: makeInvokeMethod(
|
|
108
|
-
}),
|
|
103
|
+
function wrap(t, e, r, n) {
|
|
104
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
105
|
+
a = Object.create(i.prototype),
|
|
106
|
+
c = new Context(n || []);
|
|
107
|
+
return o(a, "_invoke", {
|
|
108
|
+
value: makeInvokeMethod(t, r, c)
|
|
109
|
+
}), a;
|
|
109
110
|
}
|
|
110
|
-
function tryCatch(
|
|
111
|
+
function tryCatch(t, e, r) {
|
|
111
112
|
try {
|
|
112
113
|
return {
|
|
113
114
|
type: "normal",
|
|
114
|
-
arg:
|
|
115
|
+
arg: t.call(e, r)
|
|
115
116
|
};
|
|
116
|
-
} catch (
|
|
117
|
+
} catch (t) {
|
|
117
118
|
return {
|
|
118
119
|
type: "throw",
|
|
119
|
-
arg:
|
|
120
|
+
arg: t
|
|
120
121
|
};
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
|
-
|
|
124
|
-
var
|
|
124
|
+
e.wrap = wrap;
|
|
125
|
+
var h = "suspendedStart",
|
|
126
|
+
l = "suspendedYield",
|
|
127
|
+
f = "executing",
|
|
128
|
+
s = "completed",
|
|
129
|
+
y = {};
|
|
125
130
|
function Generator() {}
|
|
126
131
|
function GeneratorFunction() {}
|
|
127
132
|
function GeneratorFunctionPrototype() {}
|
|
128
|
-
var
|
|
129
|
-
define(
|
|
133
|
+
var p = {};
|
|
134
|
+
define(p, a, function () {
|
|
130
135
|
return this;
|
|
131
136
|
});
|
|
132
|
-
var
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
var
|
|
136
|
-
function defineIteratorMethods(
|
|
137
|
-
["next", "throw", "return"].forEach(function (
|
|
138
|
-
define(
|
|
139
|
-
return this._invoke(
|
|
137
|
+
var d = Object.getPrototypeOf,
|
|
138
|
+
v = d && d(d(values([])));
|
|
139
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
140
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
141
|
+
function defineIteratorMethods(t) {
|
|
142
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
143
|
+
define(t, e, function (t) {
|
|
144
|
+
return this._invoke(e, t);
|
|
140
145
|
});
|
|
141
146
|
});
|
|
142
147
|
}
|
|
143
|
-
function AsyncIterator(
|
|
144
|
-
function invoke(
|
|
145
|
-
var
|
|
146
|
-
if ("throw" !==
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
return
|
|
150
|
-
invoke("next",
|
|
151
|
-
}, function (
|
|
152
|
-
invoke("throw",
|
|
153
|
-
}) :
|
|
154
|
-
|
|
155
|
-
}, function (
|
|
156
|
-
return invoke("throw",
|
|
148
|
+
function AsyncIterator(t, e) {
|
|
149
|
+
function invoke(r, o, i, a) {
|
|
150
|
+
var c = tryCatch(t[r], t, o);
|
|
151
|
+
if ("throw" !== c.type) {
|
|
152
|
+
var u = c.arg,
|
|
153
|
+
h = u.value;
|
|
154
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
155
|
+
invoke("next", t, i, a);
|
|
156
|
+
}, function (t) {
|
|
157
|
+
invoke("throw", t, i, a);
|
|
158
|
+
}) : e.resolve(h).then(function (t) {
|
|
159
|
+
u.value = t, i(u);
|
|
160
|
+
}, function (t) {
|
|
161
|
+
return invoke("throw", t, i, a);
|
|
157
162
|
});
|
|
158
163
|
}
|
|
159
|
-
|
|
164
|
+
a(c.arg);
|
|
160
165
|
}
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
value: function (
|
|
166
|
+
var r;
|
|
167
|
+
o(this, "_invoke", {
|
|
168
|
+
value: function (t, n) {
|
|
164
169
|
function callInvokeWithMethodAndArg() {
|
|
165
|
-
return new
|
|
166
|
-
invoke(
|
|
170
|
+
return new e(function (e, r) {
|
|
171
|
+
invoke(t, n, e, r);
|
|
167
172
|
});
|
|
168
173
|
}
|
|
169
|
-
return
|
|
174
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
170
175
|
}
|
|
171
176
|
});
|
|
172
177
|
}
|
|
173
|
-
function makeInvokeMethod(
|
|
174
|
-
var
|
|
175
|
-
return function (
|
|
176
|
-
if (
|
|
177
|
-
if (
|
|
178
|
-
if ("throw" ===
|
|
179
|
-
return
|
|
178
|
+
function makeInvokeMethod(e, r, n) {
|
|
179
|
+
var o = h;
|
|
180
|
+
return function (i, a) {
|
|
181
|
+
if (o === f) throw new Error("Generator is already running");
|
|
182
|
+
if (o === s) {
|
|
183
|
+
if ("throw" === i) throw a;
|
|
184
|
+
return {
|
|
185
|
+
value: t,
|
|
186
|
+
done: !0
|
|
187
|
+
};
|
|
180
188
|
}
|
|
181
|
-
for (
|
|
182
|
-
var
|
|
183
|
-
if (
|
|
184
|
-
var
|
|
185
|
-
if (
|
|
186
|
-
if (
|
|
187
|
-
return
|
|
189
|
+
for (n.method = i, n.arg = a;;) {
|
|
190
|
+
var c = n.delegate;
|
|
191
|
+
if (c) {
|
|
192
|
+
var u = maybeInvokeDelegate(c, n);
|
|
193
|
+
if (u) {
|
|
194
|
+
if (u === y) continue;
|
|
195
|
+
return u;
|
|
188
196
|
}
|
|
189
197
|
}
|
|
190
|
-
if ("next" ===
|
|
191
|
-
if (
|
|
192
|
-
|
|
193
|
-
} else "return" ===
|
|
194
|
-
|
|
195
|
-
var
|
|
196
|
-
if ("normal" ===
|
|
197
|
-
if (
|
|
198
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
199
|
+
if (o === h) throw o = s, n.arg;
|
|
200
|
+
n.dispatchException(n.arg);
|
|
201
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
202
|
+
o = f;
|
|
203
|
+
var p = tryCatch(e, r, n);
|
|
204
|
+
if ("normal" === p.type) {
|
|
205
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
198
206
|
return {
|
|
199
|
-
value:
|
|
200
|
-
done:
|
|
207
|
+
value: p.arg,
|
|
208
|
+
done: n.done
|
|
201
209
|
};
|
|
202
210
|
}
|
|
203
|
-
"throw" ===
|
|
211
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
204
212
|
}
|
|
205
213
|
};
|
|
206
214
|
}
|
|
207
|
-
function maybeInvokeDelegate(
|
|
208
|
-
var
|
|
209
|
-
|
|
210
|
-
if (
|
|
211
|
-
var
|
|
212
|
-
if ("throw" ===
|
|
213
|
-
var
|
|
214
|
-
return
|
|
215
|
+
function maybeInvokeDelegate(e, r) {
|
|
216
|
+
var n = r.method,
|
|
217
|
+
o = e.iterator[n];
|
|
218
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
219
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
220
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
221
|
+
var a = i.arg;
|
|
222
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
215
223
|
}
|
|
216
|
-
function pushTryEntry(
|
|
217
|
-
var
|
|
218
|
-
tryLoc:
|
|
224
|
+
function pushTryEntry(t) {
|
|
225
|
+
var e = {
|
|
226
|
+
tryLoc: t[0]
|
|
219
227
|
};
|
|
220
|
-
1 in
|
|
228
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
221
229
|
}
|
|
222
|
-
function resetTryEntry(
|
|
223
|
-
var
|
|
224
|
-
|
|
230
|
+
function resetTryEntry(t) {
|
|
231
|
+
var e = t.completion || {};
|
|
232
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
225
233
|
}
|
|
226
|
-
function Context(
|
|
234
|
+
function Context(t) {
|
|
227
235
|
this.tryEntries = [{
|
|
228
236
|
tryLoc: "root"
|
|
229
|
-
}],
|
|
237
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
230
238
|
}
|
|
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 =
|
|
239
|
+
function values(e) {
|
|
240
|
+
if (e || "" === e) {
|
|
241
|
+
var r = e[a];
|
|
242
|
+
if (r) return r.call(e);
|
|
243
|
+
if ("function" == typeof e.next) return e;
|
|
244
|
+
if (!isNaN(e.length)) {
|
|
245
|
+
var o = -1,
|
|
246
|
+
i = function next() {
|
|
247
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
248
|
+
return next.value = t, next.done = !0, next;
|
|
241
249
|
};
|
|
242
|
-
return
|
|
250
|
+
return i.next = i;
|
|
243
251
|
}
|
|
244
252
|
}
|
|
245
|
-
|
|
246
|
-
next: doneResult
|
|
247
|
-
};
|
|
253
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
248
254
|
}
|
|
249
|
-
|
|
250
|
-
return {
|
|
251
|
-
value: undefined,
|
|
252
|
-
done: !0
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
255
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
256
256
|
value: GeneratorFunctionPrototype,
|
|
257
257
|
configurable: !0
|
|
258
|
-
}),
|
|
258
|
+
}), o(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, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
262
|
+
var e = "function" == typeof t && t.constructor;
|
|
263
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
264
|
+
}, e.mark = function (t) {
|
|
265
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
266
|
+
}, e.awrap = function (t) {
|
|
267
267
|
return {
|
|
268
|
-
__await:
|
|
268
|
+
__await: t
|
|
269
269
|
};
|
|
270
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
270
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
271
271
|
return this;
|
|
272
|
-
}),
|
|
273
|
-
void 0 ===
|
|
274
|
-
var
|
|
275
|
-
return
|
|
276
|
-
return
|
|
272
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
273
|
+
void 0 === i && (i = Promise);
|
|
274
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
275
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
276
|
+
return t.done ? t.value : a.next();
|
|
277
277
|
});
|
|
278
|
-
}, defineIteratorMethods(
|
|
278
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
279
279
|
return this;
|
|
280
|
-
}), define(
|
|
280
|
+
}), define(g, "toString", function () {
|
|
281
281
|
return "[object Generator]";
|
|
282
|
-
}),
|
|
283
|
-
var
|
|
284
|
-
|
|
285
|
-
for (var
|
|
286
|
-
return
|
|
287
|
-
for (;
|
|
288
|
-
var
|
|
289
|
-
if (
|
|
282
|
+
}), e.keys = function (t) {
|
|
283
|
+
var e = Object(t),
|
|
284
|
+
r = [];
|
|
285
|
+
for (var n in e) r.push(n);
|
|
286
|
+
return r.reverse(), function next() {
|
|
287
|
+
for (; r.length;) {
|
|
288
|
+
var t = r.pop();
|
|
289
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
290
290
|
}
|
|
291
291
|
return next.done = !0, next;
|
|
292
292
|
};
|
|
293
|
-
},
|
|
293
|
+
}, e.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 (e) {
|
|
296
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
297
297
|
},
|
|
298
298
|
stop: function () {
|
|
299
299
|
this.done = !0;
|
|
300
|
-
var
|
|
301
|
-
if ("throw" ===
|
|
300
|
+
var t = this.tryEntries[0].completion;
|
|
301
|
+
if ("throw" === t.type) throw t.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 (e) {
|
|
305
|
+
if (this.done) throw e;
|
|
306
|
+
var r = this;
|
|
307
|
+
function handle(n, o) {
|
|
308
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
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 o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
311
|
+
var i = this.tryEntries[o],
|
|
312
|
+
a = i.completion;
|
|
313
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
314
|
+
if (i.tryLoc <= this.prev) {
|
|
315
|
+
var c = n.call(i, "catchLoc"),
|
|
316
|
+
u = n.call(i, "finallyLoc");
|
|
317
|
+
if (c && u) {
|
|
318
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
319
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
320
|
+
} else if (c) {
|
|
321
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
322
322
|
} else {
|
|
323
|
-
if (!
|
|
324
|
-
if (this.prev <
|
|
323
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
324
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
|
-
abrupt: function (
|
|
330
|
-
for (var
|
|
331
|
-
var
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
329
|
+
abrupt: function (t, e) {
|
|
330
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
331
|
+
var o = this.tryEntries[r];
|
|
332
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
333
|
+
var i = o;
|
|
334
334
|
break;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
|
|
338
|
-
var
|
|
339
|
-
return
|
|
337
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
338
|
+
var a = i ? i.completion : {};
|
|
339
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
340
340
|
},
|
|
341
|
-
complete: function (
|
|
342
|
-
if ("throw" ===
|
|
343
|
-
return "break" ===
|
|
341
|
+
complete: function (t, e) {
|
|
342
|
+
if ("throw" === t.type) throw t.arg;
|
|
343
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
344
344
|
},
|
|
345
|
-
finish: function (
|
|
346
|
-
for (var
|
|
347
|
-
var
|
|
348
|
-
if (
|
|
345
|
+
finish: function (t) {
|
|
346
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
347
|
+
var r = this.tryEntries[e];
|
|
348
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
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 (t) {
|
|
352
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
353
|
+
var r = this.tryEntries[e];
|
|
354
|
+
if (r.tryLoc === t) {
|
|
355
|
+
var n = r.completion;
|
|
356
|
+
if ("throw" === n.type) {
|
|
357
|
+
var o = n.arg;
|
|
358
|
+
resetTryEntry(r);
|
|
359
359
|
}
|
|
360
|
-
return
|
|
360
|
+
return o;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
throw new Error("illegal catch attempt");
|
|
364
364
|
},
|
|
365
|
-
delegateYield: function (
|
|
365
|
+
delegateYield: function (e, r, n) {
|
|
366
366
|
return this.delegate = {
|
|
367
|
-
iterator: values(
|
|
368
|
-
resultName:
|
|
369
|
-
nextLoc:
|
|
370
|
-
}, "next" === this.method && (this.arg =
|
|
371
|
-
}
|
|
372
|
-
},
|
|
367
|
+
iterator: values(e),
|
|
368
|
+
resultName: r,
|
|
369
|
+
nextLoc: n
|
|
370
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
371
|
+
}
|
|
372
|
+
}, e;
|
|
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);
|
|
373
387
|
}
|
|
374
|
-
function _typeof(
|
|
388
|
+
function _typeof(o) {
|
|
375
389
|
"@babel/helpers - typeof";
|
|
376
390
|
|
|
377
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
378
|
-
return typeof
|
|
379
|
-
} : function (
|
|
380
|
-
return
|
|
381
|
-
}, _typeof(
|
|
391
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
392
|
+
return typeof o;
|
|
393
|
+
} : function (o) {
|
|
394
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
395
|
+
}, _typeof(o);
|
|
382
396
|
}
|
|
383
397
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
384
398
|
try {
|
|
@@ -485,20 +499,6 @@ function _nonIterableSpread() {
|
|
|
485
499
|
function _nonIterableRest() {
|
|
486
500
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
487
501
|
}
|
|
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({
|
|
@@ -965,18 +965,10 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
965
965
|
_useState2 = _slicedToArray(_useState, 2),
|
|
966
966
|
uploading = _useState2[0],
|
|
967
967
|
setUploading = _useState2[1];
|
|
968
|
-
var _useState3 = React.useState(
|
|
968
|
+
var _useState3 = React.useState(true),
|
|
969
969
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
var _useState5 = React.useState(''),
|
|
973
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
974
|
-
currentPreviewImg = _useState6[0],
|
|
975
|
-
setCurrentPreviewImg = _useState6[1];
|
|
976
|
-
var _useState7 = React.useState(true),
|
|
977
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
978
|
-
pasteDefaultStates = _useState8[0],
|
|
979
|
-
setPasteDefaultStates = _useState8[1];
|
|
970
|
+
pasteDefaultStates = _useState4[0],
|
|
971
|
+
setPasteDefaultStates = _useState4[1];
|
|
980
972
|
React.useEffect(function () {
|
|
981
973
|
valueRef.current = value;
|
|
982
974
|
}, [value]);
|
|
@@ -1184,21 +1176,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1184
1176
|
beforeUpload: beforeUpload
|
|
1185
1177
|
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
1186
1178
|
className: "addBtn"
|
|
1187
|
-
}, "+"), /*#__PURE__*/React__default['default'].createElement("div", null, uploadText)))
|
|
1188
|
-
width: 0,
|
|
1189
|
-
style: {
|
|
1190
|
-
display: visible ? '' : 'none'
|
|
1191
|
-
},
|
|
1192
|
-
src: currentPreviewImg,
|
|
1193
|
-
preview: {
|
|
1194
|
-
visible: visible,
|
|
1195
|
-
src: "".concat(currentPreviewImg),
|
|
1196
|
-
onVisibleChange: function onVisibleChange(value) {
|
|
1197
|
-
setCurrentPreviewImg('');
|
|
1198
|
-
setVisible(value);
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
})));
|
|
1179
|
+
}, "+"), /*#__PURE__*/React__default['default'].createElement("div", null, uploadText)))));
|
|
1202
1180
|
};
|
|
1203
1181
|
var index = /*#__PURE__*/React.forwardRef(ApaasUploadAsync);
|
|
1204
1182
|
|
|
@@ -10981,7 +10959,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10981
10959
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10982
10960
|
changeIndex = _useState2[0],
|
|
10983
10961
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
10984
|
-
var
|
|
10962
|
+
var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
|
|
10985
10963
|
React.useEffect(function () {
|
|
10986
10964
|
//没有值塞个默认值
|
|
10987
10965
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -11012,7 +10990,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11012
10990
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
11013
10991
|
changeOrderInfo[type] = val;
|
|
11014
10992
|
changeOrderInfo['sendId'] = option.value;
|
|
11015
|
-
if (platformType === 'wdt' && type === 'sendName') {
|
|
10993
|
+
if ((platformType === 'wdt' || platformType === 'bsE3') && type === 'sendName') {
|
|
11016
10994
|
changeOrderInfo['sendSnapshotName'] = option.label;
|
|
11017
10995
|
}
|
|
11018
10996
|
var newList = _toConsumableArray(value);
|
|
@@ -11095,7 +11073,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11095
11073
|
return changeInputHandle(e.target.value, 'sendId');
|
|
11096
11074
|
},
|
|
11097
11075
|
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
|
|
11098
|
-
}), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
11076
|
+
}), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' || platformType === 'bsE3' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
11099
11077
|
style: {
|
|
11100
11078
|
minWidth: '100px',
|
|
11101
11079
|
maxWidth: '180px'
|
|
@@ -11103,7 +11081,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11103
11081
|
disabled: disabled,
|
|
11104
11082
|
placeholder: "\u53D1\u8D27\u4ED3\u540D\u79F0",
|
|
11105
11083
|
showSearch: true,
|
|
11106
|
-
options:
|
|
11084
|
+
options: sendOptions,
|
|
11107
11085
|
filterOption: filterOption,
|
|
11108
11086
|
value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName) || null,
|
|
11109
11087
|
onChange: function onChange(value, option) {
|
|
@@ -12095,9 +12073,9 @@ var getTableData$1 = function getTableData(_ref, formData) {
|
|
|
12095
12073
|
var current = _ref.current,
|
|
12096
12074
|
pageSize = _ref.pageSize;
|
|
12097
12075
|
var data = {
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12076
|
+
goodNo: formData.goodNo || null,
|
|
12077
|
+
goodName: formData.goodName || null,
|
|
12078
|
+
skuCode: formData.skuCode || null,
|
|
12101
12079
|
skuId: formData.skuId || null
|
|
12102
12080
|
};
|
|
12103
12081
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
@@ -12134,43 +12112,47 @@ var columns$2 = [{
|
|
|
12134
12112
|
}
|
|
12135
12113
|
}, index + 1);
|
|
12136
12114
|
},
|
|
12137
|
-
width:
|
|
12115
|
+
width: 80
|
|
12138
12116
|
}, {
|
|
12139
12117
|
dataIndex: 'specNo',
|
|
12140
12118
|
title: "SKU",
|
|
12141
12119
|
ellipsis: true,
|
|
12142
|
-
width:
|
|
12120
|
+
width: 200
|
|
12143
12121
|
}, {
|
|
12144
12122
|
dataIndex: 'specId',
|
|
12145
12123
|
title: "SKU ID",
|
|
12146
12124
|
ellipsis: true,
|
|
12147
|
-
width:
|
|
12125
|
+
width: 80
|
|
12148
12126
|
}, {
|
|
12149
12127
|
dataIndex: 'goodName',
|
|
12150
12128
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
12151
12129
|
ellipsis: true,
|
|
12152
|
-
width:
|
|
12130
|
+
width: 250
|
|
12153
12131
|
}, {
|
|
12154
12132
|
dataIndex: 'goodShortName',
|
|
12155
12133
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12156
12134
|
ellipsis: true,
|
|
12157
|
-
width:
|
|
12158
|
-
},
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
|
|
12170
|
-
|
|
12171
|
-
|
|
12172
|
-
|
|
12173
|
-
|
|
12135
|
+
width: 250
|
|
12136
|
+
},
|
|
12137
|
+
// {
|
|
12138
|
+
// dataIndex: 'goodPicUrl',
|
|
12139
|
+
// title: `商品图片`,
|
|
12140
|
+
// ellipsis: true,
|
|
12141
|
+
// width: 100,
|
|
12142
|
+
// render: (picUrl: string) => {
|
|
12143
|
+
// return (
|
|
12144
|
+
// <img
|
|
12145
|
+
// style={{
|
|
12146
|
+
// width: '40px',
|
|
12147
|
+
// height: '40px',
|
|
12148
|
+
// objectFit: 'contain',
|
|
12149
|
+
// }}
|
|
12150
|
+
// src={picUrl}
|
|
12151
|
+
// ></img>
|
|
12152
|
+
// );
|
|
12153
|
+
// },
|
|
12154
|
+
// },
|
|
12155
|
+
{
|
|
12174
12156
|
dataIndex: 'goodNo',
|
|
12175
12157
|
title: "\u8D27\u53F7",
|
|
12176
12158
|
ellipsis: true,
|
|
@@ -12179,7 +12161,7 @@ var columns$2 = [{
|
|
|
12179
12161
|
dataIndex: 'goodId',
|
|
12180
12162
|
title: "\u8D27\u53F7ID",
|
|
12181
12163
|
ellipsis: true,
|
|
12182
|
-
width:
|
|
12164
|
+
width: 100
|
|
12183
12165
|
}, {
|
|
12184
12166
|
dataIndex: 'colorName',
|
|
12185
12167
|
title: "\u989C\u8272\u540D\u79F0",
|
|
@@ -12189,7 +12171,7 @@ var columns$2 = [{
|
|
|
12189
12171
|
dataIndex: 'colorCode',
|
|
12190
12172
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
12191
12173
|
ellipsis: true,
|
|
12192
|
-
width:
|
|
12174
|
+
width: 100
|
|
12193
12175
|
}, {
|
|
12194
12176
|
dataIndex: 'sizeName',
|
|
12195
12177
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
@@ -12199,12 +12181,12 @@ var columns$2 = [{
|
|
|
12199
12181
|
dataIndex: 'sizeCode',
|
|
12200
12182
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12201
12183
|
ellipsis: true,
|
|
12202
|
-
width:
|
|
12184
|
+
width: 100
|
|
12203
12185
|
}, {
|
|
12204
12186
|
dataIndex: 'brandName',
|
|
12205
12187
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
12206
12188
|
ellipsis: true,
|
|
12207
|
-
width:
|
|
12189
|
+
width: 100
|
|
12208
12190
|
}, {
|
|
12209
12191
|
dataIndex: 'marketPrice',
|
|
12210
12192
|
title: "\u5E02\u573A\u4EF7",
|
|
@@ -12461,7 +12443,7 @@ var columns$3 = [{
|
|
|
12461
12443
|
width: 150
|
|
12462
12444
|
}, {
|
|
12463
12445
|
dataIndex: 'goodsShortName',
|
|
12464
|
-
title: "\u5546\u54C1\u7B80\
|
|
12446
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12465
12447
|
width: 150
|
|
12466
12448
|
}, {
|
|
12467
12449
|
dataIndex: 'picPath',
|
|
@@ -12485,20 +12467,16 @@ var columns$3 = [{
|
|
|
12485
12467
|
width: 150
|
|
12486
12468
|
}, {
|
|
12487
12469
|
dataIndex: 'sizeName',
|
|
12488
|
-
title: "\u5C3A\
|
|
12470
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12489
12471
|
width: 150
|
|
12490
12472
|
}, {
|
|
12491
12473
|
dataIndex: 'sizeCode',
|
|
12492
|
-
title: "\u5C3A\
|
|
12474
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12493
12475
|
width: 150
|
|
12494
12476
|
}, {
|
|
12495
12477
|
dataIndex: 'brandName',
|
|
12496
12478
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
12497
12479
|
width: 150
|
|
12498
|
-
}, {
|
|
12499
|
-
dataIndex: 'shopPrice',
|
|
12500
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12501
|
-
width: 150
|
|
12502
12480
|
}, {
|
|
12503
12481
|
dataIndex: 'goodsNumber',
|
|
12504
12482
|
title: "\u5546\u54C1\u6570\u91CF",
|
|
@@ -12507,6 +12485,10 @@ var columns$3 = [{
|
|
|
12507
12485
|
dataIndex: 'goodsPrice',
|
|
12508
12486
|
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12509
12487
|
width: 150
|
|
12488
|
+
}, {
|
|
12489
|
+
dataIndex: 'shopPrice',
|
|
12490
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12491
|
+
width: 150
|
|
12510
12492
|
}, {
|
|
12511
12493
|
dataIndex: 'isGift',
|
|
12512
12494
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
@@ -12552,10 +12534,10 @@ var renderFieldMap = {
|
|
|
12552
12534
|
return function (val, record, index) {
|
|
12553
12535
|
var options = [{
|
|
12554
12536
|
label: '是',
|
|
12555
|
-
value:
|
|
12537
|
+
value: 1
|
|
12556
12538
|
}, {
|
|
12557
12539
|
label: '否',
|
|
12558
|
-
value:
|
|
12540
|
+
value: 0
|
|
12559
12541
|
}];
|
|
12560
12542
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
12561
12543
|
style: {
|
|
@@ -12566,7 +12548,7 @@ var renderFieldMap = {
|
|
|
12566
12548
|
onChange: function onChange(value) {
|
|
12567
12549
|
return updateHandle(value, index, 'isGift');
|
|
12568
12550
|
}
|
|
12569
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12551
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
12570
12552
|
};
|
|
12571
12553
|
}
|
|
12572
12554
|
};
|
|
@@ -12629,7 +12611,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
12629
12611
|
x: 500,
|
|
12630
12612
|
y: 500
|
|
12631
12613
|
}
|
|
12632
|
-
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\
|
|
12614
|
+
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9(", selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length, "/", dataSource === null || dataSource === void 0 ? void 0 : dataSource.length, ")")));
|
|
12633
12615
|
};
|
|
12634
12616
|
var GoodItem$1 = function GoodItem(props) {
|
|
12635
12617
|
var _props$value = props.value,
|
|
@@ -13216,7 +13198,10 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13216
13198
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
13217
13199
|
align: 'center',
|
|
13218
13200
|
ellipsis: true,
|
|
13219
|
-
width: 100
|
|
13201
|
+
width: 100,
|
|
13202
|
+
render: function render(val) {
|
|
13203
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
13204
|
+
}
|
|
13220
13205
|
}];
|
|
13221
13206
|
}
|
|
13222
13207
|
break;
|
|
@@ -13497,7 +13482,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13497
13482
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13498
13483
|
type: "link",
|
|
13499
13484
|
onClick: handleChangeGoods
|
|
13500
|
-
},
|
|
13485
|
+
}, ['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type) ? '选择百胜ERP商品' : '选择商品'), otherOperations), /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
|
|
13501
13486
|
columns: newColumns,
|
|
13502
13487
|
dataSource: value,
|
|
13503
13488
|
rowKey: 'uuid',
|
|
@@ -14206,25 +14191,7 @@ var getBsE3OrderListSingleton = function getBsE3OrderListSingleton(orderNo) {
|
|
|
14206
14191
|
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
14207
14192
|
var _data$data, _data$data$orderList;
|
|
14208
14193
|
if (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$orderList = _data$data.orderList) === null || _data$data$orderList === void 0 ? void 0 : _data$data$orderList.length) {
|
|
14209
|
-
|
|
14210
|
-
data.data.orderList = (_filterBsE3Orders = kmkfUtils.filterBsE3Orders(data === null || data === void 0 ? void 0 : data.data, orderNo)) === null || _filterBsE3Orders === void 0 ? void 0 : _filterBsE3Orders.map(function (item) {
|
|
14211
|
-
var isSplit = item.isSplit,
|
|
14212
|
-
isSplitNew = item.isSplitNew,
|
|
14213
|
-
isCopy = item.isCopy,
|
|
14214
|
-
isExchangeOrder = item.isExchangeOrder,
|
|
14215
|
-
isCombineNew = item.isCombineNew,
|
|
14216
|
-
isCombine = item.isCombine,
|
|
14217
|
-
orderStatus = item.orderStatus;
|
|
14218
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14219
|
-
orderStatus: kmkfUtils.BS_E3_ORDER_STATUS_MAP[orderStatus],
|
|
14220
|
-
isSplit: kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[isSplit],
|
|
14221
|
-
isSplitNew: kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[isSplitNew],
|
|
14222
|
-
isExchangeOrder: kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[isExchangeOrder],
|
|
14223
|
-
isCopy: kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[isCopy],
|
|
14224
|
-
isCombineNew: kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[isCombineNew],
|
|
14225
|
-
isCombine: kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[isCombine]
|
|
14226
|
-
});
|
|
14227
|
-
});
|
|
14194
|
+
data.data.orderList = kmkfUtils.filterBsE3Orders(data === null || data === void 0 ? void 0 : data.data, orderNo);
|
|
14228
14195
|
}
|
|
14229
14196
|
resolve(data.data);
|
|
14230
14197
|
} else {
|
|
@@ -14289,37 +14256,58 @@ var columnsMap = {
|
|
|
14289
14256
|
title: '订单状态',
|
|
14290
14257
|
dataIndex: 'orderStatus',
|
|
14291
14258
|
width: 100,
|
|
14292
|
-
ellipsis: true
|
|
14259
|
+
ellipsis: true,
|
|
14260
|
+
render: function render(val) {
|
|
14261
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_ORDER_STATUS_MAP[val] || val);
|
|
14262
|
+
}
|
|
14293
14263
|
}, {
|
|
14294
14264
|
title: '是否被拆分',
|
|
14295
14265
|
dataIndex: 'isSplit',
|
|
14296
|
-
width:
|
|
14297
|
-
ellipsis: true
|
|
14266
|
+
width: 100,
|
|
14267
|
+
ellipsis: true,
|
|
14268
|
+
render: function render(val) {
|
|
14269
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14270
|
+
}
|
|
14298
14271
|
}, {
|
|
14299
14272
|
title: '是否拆分子单',
|
|
14300
14273
|
dataIndex: 'isSplitNew',
|
|
14301
|
-
width:
|
|
14302
|
-
ellipsis: true
|
|
14274
|
+
width: 100,
|
|
14275
|
+
ellipsis: true,
|
|
14276
|
+
render: function render(val) {
|
|
14277
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14278
|
+
}
|
|
14303
14279
|
}, {
|
|
14304
14280
|
title: '是否被合并',
|
|
14305
14281
|
dataIndex: 'isCombine',
|
|
14306
|
-
width:
|
|
14307
|
-
ellipsis: true
|
|
14282
|
+
width: 100,
|
|
14283
|
+
ellipsis: true,
|
|
14284
|
+
render: function render(val) {
|
|
14285
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14286
|
+
}
|
|
14308
14287
|
}, {
|
|
14309
14288
|
title: '是否合并新单',
|
|
14310
14289
|
dataIndex: 'isCombineNew',
|
|
14311
|
-
width:
|
|
14312
|
-
ellipsis: true
|
|
14290
|
+
width: 100,
|
|
14291
|
+
ellipsis: true,
|
|
14292
|
+
render: function render(val) {
|
|
14293
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14294
|
+
}
|
|
14313
14295
|
}, {
|
|
14314
14296
|
title: '是否复制单',
|
|
14315
14297
|
dataIndex: 'isCopy',
|
|
14316
|
-
width:
|
|
14317
|
-
ellipsis: true
|
|
14298
|
+
width: 100,
|
|
14299
|
+
ellipsis: true,
|
|
14300
|
+
render: function render(val) {
|
|
14301
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14302
|
+
}
|
|
14318
14303
|
}, {
|
|
14319
14304
|
title: '是否换货单',
|
|
14320
14305
|
dataIndex: 'isExchangeOrder',
|
|
14321
|
-
width:
|
|
14322
|
-
ellipsis: true
|
|
14306
|
+
width: 100,
|
|
14307
|
+
ellipsis: true,
|
|
14308
|
+
render: function render(val) {
|
|
14309
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14310
|
+
}
|
|
14323
14311
|
}, {
|
|
14324
14312
|
title: '订单备注',
|
|
14325
14313
|
dataIndex: 'orderMsg',
|
|
@@ -14630,7 +14618,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
14630
14618
|
valueRef.current = value;
|
|
14631
14619
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo)) {
|
|
14632
14620
|
getOrderFlag.current = true;
|
|
14633
|
-
getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
14621
|
+
compType.indexOf('WDT') > -1 && getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
14634
14622
|
}
|
|
14635
14623
|
}, [value]);
|
|
14636
14624
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
@@ -16090,7 +16078,6 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16090
16078
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16091
16079
|
isStrict = _useState2[0],
|
|
16092
16080
|
setIsStrict = _useState2[1];
|
|
16093
|
-
console.debug('bsE3Reissue', value);
|
|
16094
16081
|
React.useEffect(function () {
|
|
16095
16082
|
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
16096
16083
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|