@kmkf-fe-packages/basic-components 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/index.esm.js +281 -841
- package/dist/index.js +280 -843
- package/dist/src/index.d.ts +0 -2
- package/package.json +3 -4
- package/dist/src/common/CommonExchangeGoods/index.d.ts +0 -3
- package/dist/src/common/CommonReturnGoods/index.d.ts +0 -3
package/dist/index.esm.js
CHANGED
|
@@ -8,365 +8,378 @@ import zhCN from 'antd/lib/locale/zh_CN';
|
|
|
8
8
|
import { cloneDeep, difference, differenceWith } from 'lodash';
|
|
9
9
|
import { useDebounceEffect } from 'ahooks';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
_d = !1;
|
|
11
|
+
|
|
12
|
+
function _iterableToArrayLimit(r, l) {
|
|
13
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
14
|
+
if (null != t) {
|
|
15
|
+
var e,
|
|
16
|
+
n,
|
|
17
|
+
i,
|
|
18
|
+
u,
|
|
19
|
+
a = [],
|
|
20
|
+
f = !0,
|
|
21
|
+
o = !1;
|
|
23
22
|
try {
|
|
24
|
-
if (
|
|
25
|
-
if (Object(
|
|
26
|
-
|
|
27
|
-
} else for (; !(
|
|
28
|
-
} catch (
|
|
29
|
-
|
|
23
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
24
|
+
if (Object(t) !== t) return;
|
|
25
|
+
f = !1;
|
|
26
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
27
|
+
} catch (r) {
|
|
28
|
+
o = !0, n = r;
|
|
30
29
|
} finally {
|
|
31
30
|
try {
|
|
32
|
-
if (!
|
|
31
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
33
32
|
} finally {
|
|
34
|
-
if (
|
|
33
|
+
if (o) throw n;
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
|
-
return
|
|
36
|
+
return a;
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
|
-
function ownKeys(
|
|
41
|
-
var
|
|
39
|
+
function ownKeys(e, r) {
|
|
40
|
+
var t = Object.keys(e);
|
|
42
41
|
if (Object.getOwnPropertySymbols) {
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
return Object.getOwnPropertyDescriptor(
|
|
46
|
-
})),
|
|
42
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
43
|
+
r && (o = o.filter(function (r) {
|
|
44
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
45
|
+
})), t.push.apply(t, o);
|
|
47
46
|
}
|
|
48
|
-
return
|
|
49
|
-
}
|
|
50
|
-
function _objectSpread2(
|
|
51
|
-
for (var
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
_defineProperty(
|
|
55
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
56
|
-
Object.defineProperty(
|
|
47
|
+
return t;
|
|
48
|
+
}
|
|
49
|
+
function _objectSpread2(e) {
|
|
50
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
51
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
52
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
53
|
+
_defineProperty(e, r, t[r]);
|
|
54
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
55
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
57
56
|
});
|
|
58
57
|
}
|
|
59
|
-
return
|
|
58
|
+
return e;
|
|
60
59
|
}
|
|
61
60
|
function _regeneratorRuntime() {
|
|
62
61
|
_regeneratorRuntime = function () {
|
|
63
|
-
return
|
|
64
|
-
};
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
return e;
|
|
63
|
+
};
|
|
64
|
+
var t,
|
|
65
|
+
e = {},
|
|
66
|
+
r = Object.prototype,
|
|
67
|
+
n = r.hasOwnProperty,
|
|
68
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
69
|
+
t[e] = r.value;
|
|
70
70
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
function define(
|
|
76
|
-
return Object.defineProperty(
|
|
77
|
-
value:
|
|
71
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
72
|
+
a = i.iterator || "@@iterator",
|
|
73
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
74
|
+
u = i.toStringTag || "@@toStringTag";
|
|
75
|
+
function define(t, e, r) {
|
|
76
|
+
return Object.defineProperty(t, e, {
|
|
77
|
+
value: r,
|
|
78
78
|
enumerable: !0,
|
|
79
79
|
configurable: !0,
|
|
80
80
|
writable: !0
|
|
81
|
-
}),
|
|
81
|
+
}), t[e];
|
|
82
82
|
}
|
|
83
83
|
try {
|
|
84
84
|
define({}, "");
|
|
85
|
-
} catch (
|
|
86
|
-
define = function (
|
|
87
|
-
return
|
|
85
|
+
} catch (t) {
|
|
86
|
+
define = function (t, e, r) {
|
|
87
|
+
return t[e] = r;
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
function wrap(
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return
|
|
95
|
-
value: makeInvokeMethod(
|
|
96
|
-
}),
|
|
90
|
+
function wrap(t, e, r, n) {
|
|
91
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
92
|
+
a = Object.create(i.prototype),
|
|
93
|
+
c = new Context(n || []);
|
|
94
|
+
return o(a, "_invoke", {
|
|
95
|
+
value: makeInvokeMethod(t, r, c)
|
|
96
|
+
}), a;
|
|
97
97
|
}
|
|
98
|
-
function tryCatch(
|
|
98
|
+
function tryCatch(t, e, r) {
|
|
99
99
|
try {
|
|
100
100
|
return {
|
|
101
101
|
type: "normal",
|
|
102
|
-
arg:
|
|
102
|
+
arg: t.call(e, r)
|
|
103
103
|
};
|
|
104
|
-
} catch (
|
|
104
|
+
} catch (t) {
|
|
105
105
|
return {
|
|
106
106
|
type: "throw",
|
|
107
|
-
arg:
|
|
107
|
+
arg: t
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
var
|
|
111
|
+
e.wrap = wrap;
|
|
112
|
+
var h = "suspendedStart",
|
|
113
|
+
l = "suspendedYield",
|
|
114
|
+
f = "executing",
|
|
115
|
+
s = "completed",
|
|
116
|
+
y = {};
|
|
113
117
|
function Generator() {}
|
|
114
118
|
function GeneratorFunction() {}
|
|
115
119
|
function GeneratorFunctionPrototype() {}
|
|
116
|
-
var
|
|
117
|
-
define(
|
|
120
|
+
var p = {};
|
|
121
|
+
define(p, a, function () {
|
|
118
122
|
return this;
|
|
119
123
|
});
|
|
120
|
-
var
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
var
|
|
124
|
-
function defineIteratorMethods(
|
|
125
|
-
["next", "throw", "return"].forEach(function (
|
|
126
|
-
define(
|
|
127
|
-
return this._invoke(
|
|
124
|
+
var d = Object.getPrototypeOf,
|
|
125
|
+
v = d && d(d(values([])));
|
|
126
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
127
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
128
|
+
function defineIteratorMethods(t) {
|
|
129
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
130
|
+
define(t, e, function (t) {
|
|
131
|
+
return this._invoke(e, t);
|
|
128
132
|
});
|
|
129
133
|
});
|
|
130
134
|
}
|
|
131
|
-
function AsyncIterator(
|
|
132
|
-
function invoke(
|
|
133
|
-
var
|
|
134
|
-
if ("throw" !==
|
|
135
|
-
var
|
|
136
|
-
|
|
137
|
-
return
|
|
138
|
-
invoke("next",
|
|
139
|
-
}, function (
|
|
140
|
-
invoke("throw",
|
|
141
|
-
}) :
|
|
142
|
-
|
|
143
|
-
}, function (
|
|
144
|
-
return invoke("throw",
|
|
135
|
+
function AsyncIterator(t, e) {
|
|
136
|
+
function invoke(r, o, i, a) {
|
|
137
|
+
var c = tryCatch(t[r], t, o);
|
|
138
|
+
if ("throw" !== c.type) {
|
|
139
|
+
var u = c.arg,
|
|
140
|
+
h = u.value;
|
|
141
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
142
|
+
invoke("next", t, i, a);
|
|
143
|
+
}, function (t) {
|
|
144
|
+
invoke("throw", t, i, a);
|
|
145
|
+
}) : e.resolve(h).then(function (t) {
|
|
146
|
+
u.value = t, i(u);
|
|
147
|
+
}, function (t) {
|
|
148
|
+
return invoke("throw", t, i, a);
|
|
145
149
|
});
|
|
146
150
|
}
|
|
147
|
-
|
|
151
|
+
a(c.arg);
|
|
148
152
|
}
|
|
149
|
-
var
|
|
150
|
-
|
|
151
|
-
value: function (
|
|
153
|
+
var r;
|
|
154
|
+
o(this, "_invoke", {
|
|
155
|
+
value: function (t, n) {
|
|
152
156
|
function callInvokeWithMethodAndArg() {
|
|
153
|
-
return new
|
|
154
|
-
invoke(
|
|
157
|
+
return new e(function (e, r) {
|
|
158
|
+
invoke(t, n, e, r);
|
|
155
159
|
});
|
|
156
160
|
}
|
|
157
|
-
return
|
|
161
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
158
162
|
}
|
|
159
163
|
});
|
|
160
164
|
}
|
|
161
|
-
function makeInvokeMethod(
|
|
162
|
-
var
|
|
163
|
-
return function (
|
|
164
|
-
if (
|
|
165
|
-
if (
|
|
166
|
-
if ("throw" ===
|
|
167
|
-
return
|
|
165
|
+
function makeInvokeMethod(e, r, n) {
|
|
166
|
+
var o = h;
|
|
167
|
+
return function (i, a) {
|
|
168
|
+
if (o === f) throw new Error("Generator is already running");
|
|
169
|
+
if (o === s) {
|
|
170
|
+
if ("throw" === i) throw a;
|
|
171
|
+
return {
|
|
172
|
+
value: t,
|
|
173
|
+
done: !0
|
|
174
|
+
};
|
|
168
175
|
}
|
|
169
|
-
for (
|
|
170
|
-
var
|
|
171
|
-
if (
|
|
172
|
-
var
|
|
173
|
-
if (
|
|
174
|
-
if (
|
|
175
|
-
return
|
|
176
|
+
for (n.method = i, n.arg = a;;) {
|
|
177
|
+
var c = n.delegate;
|
|
178
|
+
if (c) {
|
|
179
|
+
var u = maybeInvokeDelegate(c, n);
|
|
180
|
+
if (u) {
|
|
181
|
+
if (u === y) continue;
|
|
182
|
+
return u;
|
|
176
183
|
}
|
|
177
184
|
}
|
|
178
|
-
if ("next" ===
|
|
179
|
-
if (
|
|
180
|
-
|
|
181
|
-
} else "return" ===
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
if ("normal" ===
|
|
185
|
-
if (
|
|
185
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
186
|
+
if (o === h) throw o = s, n.arg;
|
|
187
|
+
n.dispatchException(n.arg);
|
|
188
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
189
|
+
o = f;
|
|
190
|
+
var p = tryCatch(e, r, n);
|
|
191
|
+
if ("normal" === p.type) {
|
|
192
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
186
193
|
return {
|
|
187
|
-
value:
|
|
188
|
-
done:
|
|
194
|
+
value: p.arg,
|
|
195
|
+
done: n.done
|
|
189
196
|
};
|
|
190
197
|
}
|
|
191
|
-
"throw" ===
|
|
198
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
192
199
|
}
|
|
193
200
|
};
|
|
194
201
|
}
|
|
195
|
-
function maybeInvokeDelegate(
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
if (
|
|
199
|
-
var
|
|
200
|
-
if ("throw" ===
|
|
201
|
-
var
|
|
202
|
-
return
|
|
202
|
+
function maybeInvokeDelegate(e, r) {
|
|
203
|
+
var n = r.method,
|
|
204
|
+
o = e.iterator[n];
|
|
205
|
+
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;
|
|
206
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
207
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
208
|
+
var a = i.arg;
|
|
209
|
+
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);
|
|
203
210
|
}
|
|
204
|
-
function pushTryEntry(
|
|
205
|
-
var
|
|
206
|
-
tryLoc:
|
|
211
|
+
function pushTryEntry(t) {
|
|
212
|
+
var e = {
|
|
213
|
+
tryLoc: t[0]
|
|
207
214
|
};
|
|
208
|
-
1 in
|
|
215
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
209
216
|
}
|
|
210
|
-
function resetTryEntry(
|
|
211
|
-
var
|
|
212
|
-
|
|
217
|
+
function resetTryEntry(t) {
|
|
218
|
+
var e = t.completion || {};
|
|
219
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
213
220
|
}
|
|
214
|
-
function Context(
|
|
221
|
+
function Context(t) {
|
|
215
222
|
this.tryEntries = [{
|
|
216
223
|
tryLoc: "root"
|
|
217
|
-
}],
|
|
224
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
218
225
|
}
|
|
219
|
-
function values(
|
|
220
|
-
if (
|
|
221
|
-
var
|
|
222
|
-
if (
|
|
223
|
-
if ("function" == typeof
|
|
224
|
-
if (!isNaN(
|
|
225
|
-
var
|
|
226
|
-
|
|
227
|
-
for (; ++
|
|
228
|
-
return next.value =
|
|
226
|
+
function values(e) {
|
|
227
|
+
if (e || "" === e) {
|
|
228
|
+
var r = e[a];
|
|
229
|
+
if (r) return r.call(e);
|
|
230
|
+
if ("function" == typeof e.next) return e;
|
|
231
|
+
if (!isNaN(e.length)) {
|
|
232
|
+
var o = -1,
|
|
233
|
+
i = function next() {
|
|
234
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
235
|
+
return next.value = t, next.done = !0, next;
|
|
229
236
|
};
|
|
230
|
-
return
|
|
237
|
+
return i.next = i;
|
|
231
238
|
}
|
|
232
239
|
}
|
|
233
|
-
|
|
234
|
-
next: doneResult
|
|
235
|
-
};
|
|
240
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
236
241
|
}
|
|
237
|
-
|
|
238
|
-
return {
|
|
239
|
-
value: undefined,
|
|
240
|
-
done: !0
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
242
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
244
243
|
value: GeneratorFunctionPrototype,
|
|
245
244
|
configurable: !0
|
|
246
|
-
}),
|
|
245
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
247
246
|
value: GeneratorFunction,
|
|
248
247
|
configurable: !0
|
|
249
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
250
|
-
var
|
|
251
|
-
return !!
|
|
252
|
-
},
|
|
253
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
254
|
-
},
|
|
248
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
249
|
+
var e = "function" == typeof t && t.constructor;
|
|
250
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
251
|
+
}, e.mark = function (t) {
|
|
252
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
253
|
+
}, e.awrap = function (t) {
|
|
255
254
|
return {
|
|
256
|
-
__await:
|
|
255
|
+
__await: t
|
|
257
256
|
};
|
|
258
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
257
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
259
258
|
return this;
|
|
260
|
-
}),
|
|
261
|
-
void 0 ===
|
|
262
|
-
var
|
|
263
|
-
return
|
|
264
|
-
return
|
|
259
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
260
|
+
void 0 === i && (i = Promise);
|
|
261
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
262
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
263
|
+
return t.done ? t.value : a.next();
|
|
265
264
|
});
|
|
266
|
-
}, defineIteratorMethods(
|
|
265
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
267
266
|
return this;
|
|
268
|
-
}), define(
|
|
267
|
+
}), define(g, "toString", function () {
|
|
269
268
|
return "[object Generator]";
|
|
270
|
-
}),
|
|
271
|
-
var
|
|
272
|
-
|
|
273
|
-
for (var
|
|
274
|
-
return
|
|
275
|
-
for (;
|
|
276
|
-
var
|
|
277
|
-
if (
|
|
269
|
+
}), e.keys = function (t) {
|
|
270
|
+
var e = Object(t),
|
|
271
|
+
r = [];
|
|
272
|
+
for (var n in e) r.push(n);
|
|
273
|
+
return r.reverse(), function next() {
|
|
274
|
+
for (; r.length;) {
|
|
275
|
+
var t = r.pop();
|
|
276
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
278
277
|
}
|
|
279
278
|
return next.done = !0, next;
|
|
280
279
|
};
|
|
281
|
-
},
|
|
280
|
+
}, e.values = values, Context.prototype = {
|
|
282
281
|
constructor: Context,
|
|
283
|
-
reset: function (
|
|
284
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
282
|
+
reset: function (e) {
|
|
283
|
+
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);
|
|
285
284
|
},
|
|
286
285
|
stop: function () {
|
|
287
286
|
this.done = !0;
|
|
288
|
-
var
|
|
289
|
-
if ("throw" ===
|
|
287
|
+
var t = this.tryEntries[0].completion;
|
|
288
|
+
if ("throw" === t.type) throw t.arg;
|
|
290
289
|
return this.rval;
|
|
291
290
|
},
|
|
292
|
-
dispatchException: function (
|
|
293
|
-
if (this.done) throw
|
|
294
|
-
var
|
|
295
|
-
function handle(
|
|
296
|
-
return
|
|
291
|
+
dispatchException: function (e) {
|
|
292
|
+
if (this.done) throw e;
|
|
293
|
+
var r = this;
|
|
294
|
+
function handle(n, o) {
|
|
295
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
297
296
|
}
|
|
298
|
-
for (var
|
|
299
|
-
var
|
|
300
|
-
|
|
301
|
-
if ("root" ===
|
|
302
|
-
if (
|
|
303
|
-
var
|
|
304
|
-
|
|
305
|
-
if (
|
|
306
|
-
if (this.prev <
|
|
307
|
-
if (this.prev <
|
|
308
|
-
} else if (
|
|
309
|
-
if (this.prev <
|
|
297
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
298
|
+
var i = this.tryEntries[o],
|
|
299
|
+
a = i.completion;
|
|
300
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
301
|
+
if (i.tryLoc <= this.prev) {
|
|
302
|
+
var c = n.call(i, "catchLoc"),
|
|
303
|
+
u = n.call(i, "finallyLoc");
|
|
304
|
+
if (c && u) {
|
|
305
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
306
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
307
|
+
} else if (c) {
|
|
308
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
310
309
|
} else {
|
|
311
|
-
if (!
|
|
312
|
-
if (this.prev <
|
|
310
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
311
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
313
312
|
}
|
|
314
313
|
}
|
|
315
314
|
}
|
|
316
315
|
},
|
|
317
|
-
abrupt: function (
|
|
318
|
-
for (var
|
|
319
|
-
var
|
|
320
|
-
if (
|
|
321
|
-
var
|
|
316
|
+
abrupt: function (t, e) {
|
|
317
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
318
|
+
var o = this.tryEntries[r];
|
|
319
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
320
|
+
var i = o;
|
|
322
321
|
break;
|
|
323
322
|
}
|
|
324
323
|
}
|
|
325
|
-
|
|
326
|
-
var
|
|
327
|
-
return
|
|
324
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
325
|
+
var a = i ? i.completion : {};
|
|
326
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
328
327
|
},
|
|
329
|
-
complete: function (
|
|
330
|
-
if ("throw" ===
|
|
331
|
-
return "break" ===
|
|
328
|
+
complete: function (t, e) {
|
|
329
|
+
if ("throw" === t.type) throw t.arg;
|
|
330
|
+
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;
|
|
332
331
|
},
|
|
333
|
-
finish: function (
|
|
334
|
-
for (var
|
|
335
|
-
var
|
|
336
|
-
if (
|
|
332
|
+
finish: function (t) {
|
|
333
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
334
|
+
var r = this.tryEntries[e];
|
|
335
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
337
336
|
}
|
|
338
337
|
},
|
|
339
|
-
catch: function (
|
|
340
|
-
for (var
|
|
341
|
-
var
|
|
342
|
-
if (
|
|
343
|
-
var
|
|
344
|
-
if ("throw" ===
|
|
345
|
-
var
|
|
346
|
-
resetTryEntry(
|
|
338
|
+
catch: function (t) {
|
|
339
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
340
|
+
var r = this.tryEntries[e];
|
|
341
|
+
if (r.tryLoc === t) {
|
|
342
|
+
var n = r.completion;
|
|
343
|
+
if ("throw" === n.type) {
|
|
344
|
+
var o = n.arg;
|
|
345
|
+
resetTryEntry(r);
|
|
347
346
|
}
|
|
348
|
-
return
|
|
347
|
+
return o;
|
|
349
348
|
}
|
|
350
349
|
}
|
|
351
350
|
throw new Error("illegal catch attempt");
|
|
352
351
|
},
|
|
353
|
-
delegateYield: function (
|
|
352
|
+
delegateYield: function (e, r, n) {
|
|
354
353
|
return this.delegate = {
|
|
355
|
-
iterator: values(
|
|
356
|
-
resultName:
|
|
357
|
-
nextLoc:
|
|
358
|
-
}, "next" === this.method && (this.arg =
|
|
359
|
-
}
|
|
360
|
-
},
|
|
354
|
+
iterator: values(e),
|
|
355
|
+
resultName: r,
|
|
356
|
+
nextLoc: n
|
|
357
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
358
|
+
}
|
|
359
|
+
}, e;
|
|
360
|
+
}
|
|
361
|
+
function _toPrimitive(t, r) {
|
|
362
|
+
if ("object" != typeof t || !t) return t;
|
|
363
|
+
var e = t[Symbol.toPrimitive];
|
|
364
|
+
if (void 0 !== e) {
|
|
365
|
+
var i = e.call(t, r || "default");
|
|
366
|
+
if ("object" != typeof i) return i;
|
|
367
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
368
|
+
}
|
|
369
|
+
return ("string" === r ? String : Number)(t);
|
|
361
370
|
}
|
|
362
|
-
function
|
|
371
|
+
function _toPropertyKey(t) {
|
|
372
|
+
var i = _toPrimitive(t, "string");
|
|
373
|
+
return "symbol" == typeof i ? i : String(i);
|
|
374
|
+
}
|
|
375
|
+
function _typeof(o) {
|
|
363
376
|
"@babel/helpers - typeof";
|
|
364
377
|
|
|
365
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
366
|
-
return typeof
|
|
367
|
-
} : function (
|
|
368
|
-
return
|
|
369
|
-
}, _typeof(
|
|
378
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
379
|
+
return typeof o;
|
|
380
|
+
} : function (o) {
|
|
381
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
382
|
+
}, _typeof(o);
|
|
370
383
|
}
|
|
371
384
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
372
385
|
try {
|
|
@@ -473,20 +486,6 @@ function _nonIterableSpread() {
|
|
|
473
486
|
function _nonIterableRest() {
|
|
474
487
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
475
488
|
}
|
|
476
|
-
function _toPrimitive(input, hint) {
|
|
477
|
-
if (typeof input !== "object" || input === null) return input;
|
|
478
|
-
var prim = input[Symbol.toPrimitive];
|
|
479
|
-
if (prim !== undefined) {
|
|
480
|
-
var res = prim.call(input, hint || "default");
|
|
481
|
-
if (typeof res !== "object") return res;
|
|
482
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
483
|
-
}
|
|
484
|
-
return (hint === "string" ? String : Number)(input);
|
|
485
|
-
}
|
|
486
|
-
function _toPropertyKey(arg) {
|
|
487
|
-
var key = _toPrimitive(arg, "string");
|
|
488
|
-
return typeof key === "symbol" ? key : String(key);
|
|
489
|
-
}
|
|
490
489
|
|
|
491
490
|
function ApaasCascader(props) {
|
|
492
491
|
return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
|
|
@@ -10443,7 +10442,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10443
10442
|
var wdtSendOptions = WdtSendData.getInstance().wdtSendData || [];
|
|
10444
10443
|
useEffect(function () {
|
|
10445
10444
|
//没有值塞个默认值
|
|
10446
|
-
if (!(value === null || value === void 0 ? void 0 : value.length)
|
|
10445
|
+
if (!(value === null || value === void 0 ? void 0 : value.length)) {
|
|
10447
10446
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
|
|
10448
10447
|
}
|
|
10449
10448
|
}, [value, type]);
|
|
@@ -10506,7 +10505,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10506
10505
|
return setChangeIndex(index);
|
|
10507
10506
|
}
|
|
10508
10507
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
10509
|
-
}))) : null, value.length
|
|
10508
|
+
}))) : null, value.length ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10510
10509
|
disabled: disabled,
|
|
10511
10510
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
10512
10511
|
onChange: function onChange(val) {
|
|
@@ -11663,34 +11662,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
11663
11662
|
useEffect(function () {
|
|
11664
11663
|
setSelectedRowKeys([]);
|
|
11665
11664
|
}, [tableSelect, selectType]);
|
|
11666
|
-
var updateHandle = function updateHandle(val, index,
|
|
11665
|
+
var updateHandle = function updateHandle(val, index, type) {
|
|
11667
11666
|
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
11668
|
-
value[index][
|
|
11669
|
-
if (type === 'WDT_RETURN_GOODS') {
|
|
11670
|
-
if (['sharePrice', 'num'].includes(columnType)) {
|
|
11671
|
-
var totalMoney = null;
|
|
11672
|
-
if (columnType === 'num') {
|
|
11673
|
-
totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].sharePrice));
|
|
11674
|
-
} else {
|
|
11675
|
-
totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].num));
|
|
11676
|
-
}
|
|
11677
|
-
if (totalMoney !== null) {
|
|
11678
|
-
value[index]['returnPrice'] = totalMoney.toString();
|
|
11679
|
-
}
|
|
11680
|
-
}
|
|
11681
|
-
} else if (type === 'WDT_EXCHANGE_GOODS') {
|
|
11682
|
-
if (['price', 'num'].includes(columnType)) {
|
|
11683
|
-
var _totalMoney = null;
|
|
11684
|
-
if (columnType === 'num') {
|
|
11685
|
-
_totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].price));
|
|
11686
|
-
} else {
|
|
11687
|
-
_totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].num));
|
|
11688
|
-
}
|
|
11689
|
-
if (_totalMoney !== null) {
|
|
11690
|
-
value[index]['exchangePrice'] = _totalMoney.toString();
|
|
11691
|
-
}
|
|
11692
|
-
}
|
|
11693
|
-
}
|
|
11667
|
+
value[index][type] = val;
|
|
11694
11668
|
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
|
|
11695
11669
|
}
|
|
11696
11670
|
};
|
|
@@ -11796,260 +11770,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
11796
11770
|
}
|
|
11797
11771
|
}];
|
|
11798
11772
|
break;
|
|
11799
|
-
case 'WDT_RETURN_GOODS':
|
|
11800
|
-
{
|
|
11801
|
-
columns = [{
|
|
11802
|
-
dataIndex: 'goodId',
|
|
11803
|
-
title: "SPUID",
|
|
11804
|
-
align: 'center',
|
|
11805
|
-
ellipsis: true,
|
|
11806
|
-
width: 70
|
|
11807
|
-
}, {
|
|
11808
|
-
dataIndex: 'goodNo',
|
|
11809
|
-
title: "\u5546\u54C1SPU\u7F16\u7801",
|
|
11810
|
-
align: 'center',
|
|
11811
|
-
ellipsis: true,
|
|
11812
|
-
width: 180
|
|
11813
|
-
}, {
|
|
11814
|
-
dataIndex: 'goodName',
|
|
11815
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
11816
|
-
align: 'center',
|
|
11817
|
-
ellipsis: true,
|
|
11818
|
-
width: 250
|
|
11819
|
-
}, {
|
|
11820
|
-
dataIndex: 'specId',
|
|
11821
|
-
title: "".concat(text, "SKUID"),
|
|
11822
|
-
align: 'center',
|
|
11823
|
-
ellipsis: true,
|
|
11824
|
-
width: 100
|
|
11825
|
-
}, {
|
|
11826
|
-
dataIndex: 'specNo',
|
|
11827
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
11828
|
-
align: 'center',
|
|
11829
|
-
ellipsis: true,
|
|
11830
|
-
width: 180
|
|
11831
|
-
}, {
|
|
11832
|
-
dataIndex: 'specName',
|
|
11833
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
11834
|
-
align: 'center',
|
|
11835
|
-
ellipsis: true,
|
|
11836
|
-
width: 250
|
|
11837
|
-
}, {
|
|
11838
|
-
dataIndex: 'num',
|
|
11839
|
-
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
11840
|
-
align: 'center',
|
|
11841
|
-
ellipsis: true,
|
|
11842
|
-
width: 100,
|
|
11843
|
-
render: function render(val, record, index) {
|
|
11844
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
11845
|
-
style: {
|
|
11846
|
-
width: 70
|
|
11847
|
-
},
|
|
11848
|
-
value: val,
|
|
11849
|
-
min: 1,
|
|
11850
|
-
precision: 0,
|
|
11851
|
-
onChange: function onChange(num) {
|
|
11852
|
-
return updateHandle(num, index, 'num');
|
|
11853
|
-
}
|
|
11854
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
11855
|
-
}
|
|
11856
|
-
}, {
|
|
11857
|
-
dataIndex: 'sharePrice',
|
|
11858
|
-
title: "\u5206\u644A\u4EF7",
|
|
11859
|
-
align: 'center',
|
|
11860
|
-
ellipsis: true,
|
|
11861
|
-
width: 80,
|
|
11862
|
-
render: function render(val, record, index) {
|
|
11863
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
11864
|
-
style: {
|
|
11865
|
-
width: 70
|
|
11866
|
-
},
|
|
11867
|
-
value: val,
|
|
11868
|
-
min: 0,
|
|
11869
|
-
onChange: function onChange(value) {
|
|
11870
|
-
return updateHandle(value, index, 'sharePrice');
|
|
11871
|
-
}
|
|
11872
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
11873
|
-
}
|
|
11874
|
-
}, {
|
|
11875
|
-
dataIndex: 'returnPrice',
|
|
11876
|
-
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
11877
|
-
align: 'center',
|
|
11878
|
-
ellipsis: true,
|
|
11879
|
-
width: 100
|
|
11880
|
-
}, {
|
|
11881
|
-
dataIndex: 'giftType',
|
|
11882
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
11883
|
-
align: 'center',
|
|
11884
|
-
ellipsis: true,
|
|
11885
|
-
width: 100,
|
|
11886
|
-
render: function render(val) {
|
|
11887
|
-
var giftTypeMap = {
|
|
11888
|
-
0: '非赠品',
|
|
11889
|
-
1: '自动赠送',
|
|
11890
|
-
2: '手工赠送',
|
|
11891
|
-
3: '回购自动送赠品',
|
|
11892
|
-
4: '前N有礼送赠品',
|
|
11893
|
-
6: '天猫优仓赠品',
|
|
11894
|
-
7: '淘宝CRM会员送赠'
|
|
11895
|
-
};
|
|
11896
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
11897
|
-
}
|
|
11898
|
-
}, {
|
|
11899
|
-
dataIndex: 'type',
|
|
11900
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
11901
|
-
align: 'center',
|
|
11902
|
-
ellipsis: true,
|
|
11903
|
-
width: 100,
|
|
11904
|
-
render: function render(val, record, index) {
|
|
11905
|
-
var options = [{
|
|
11906
|
-
label: '单品',
|
|
11907
|
-
value: '1'
|
|
11908
|
-
}, {
|
|
11909
|
-
label: '组合装',
|
|
11910
|
-
value: '2'
|
|
11911
|
-
}];
|
|
11912
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
11913
|
-
style: {
|
|
11914
|
-
width: 70
|
|
11915
|
-
},
|
|
11916
|
-
options: options,
|
|
11917
|
-
value: val,
|
|
11918
|
-
onChange: function onChange(value) {
|
|
11919
|
-
return updateHandle(value, index, 'type');
|
|
11920
|
-
}
|
|
11921
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
11922
|
-
}
|
|
11923
|
-
}];
|
|
11924
|
-
}
|
|
11925
|
-
break;
|
|
11926
|
-
case 'WDT_EXCHANGE_GOODS':
|
|
11927
|
-
{
|
|
11928
|
-
columns = [{
|
|
11929
|
-
dataIndex: 'goodId',
|
|
11930
|
-
title: "SPUID",
|
|
11931
|
-
align: 'center',
|
|
11932
|
-
ellipsis: true,
|
|
11933
|
-
width: 70
|
|
11934
|
-
}, {
|
|
11935
|
-
dataIndex: 'goodNo',
|
|
11936
|
-
title: "\u5546\u54C1SPU\u7F16\u7801",
|
|
11937
|
-
align: 'center',
|
|
11938
|
-
ellipsis: true,
|
|
11939
|
-
width: 180
|
|
11940
|
-
}, {
|
|
11941
|
-
dataIndex: 'goodName',
|
|
11942
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
11943
|
-
align: 'center',
|
|
11944
|
-
ellipsis: true,
|
|
11945
|
-
width: 250
|
|
11946
|
-
}, {
|
|
11947
|
-
dataIndex: 'specId',
|
|
11948
|
-
title: "".concat(text, "SKUID"),
|
|
11949
|
-
align: 'center',
|
|
11950
|
-
ellipsis: true,
|
|
11951
|
-
width: 100
|
|
11952
|
-
}, {
|
|
11953
|
-
dataIndex: 'specNo',
|
|
11954
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
11955
|
-
align: 'center',
|
|
11956
|
-
ellipsis: true,
|
|
11957
|
-
width: 180
|
|
11958
|
-
}, {
|
|
11959
|
-
dataIndex: 'specName',
|
|
11960
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
11961
|
-
align: 'center',
|
|
11962
|
-
ellipsis: true,
|
|
11963
|
-
width: 250
|
|
11964
|
-
}, {
|
|
11965
|
-
dataIndex: 'num',
|
|
11966
|
-
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
11967
|
-
align: 'center',
|
|
11968
|
-
ellipsis: true,
|
|
11969
|
-
width: 100,
|
|
11970
|
-
render: function render(val, record, index) {
|
|
11971
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
11972
|
-
style: {
|
|
11973
|
-
width: 70
|
|
11974
|
-
},
|
|
11975
|
-
value: val,
|
|
11976
|
-
min: 1,
|
|
11977
|
-
precision: 0,
|
|
11978
|
-
onChange: function onChange(num) {
|
|
11979
|
-
return updateHandle(num, index, 'num');
|
|
11980
|
-
}
|
|
11981
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
11982
|
-
}
|
|
11983
|
-
}, {
|
|
11984
|
-
dataIndex: 'price',
|
|
11985
|
-
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
11986
|
-
align: 'center',
|
|
11987
|
-
ellipsis: true,
|
|
11988
|
-
width: 100,
|
|
11989
|
-
render: function render(val, record, index) {
|
|
11990
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
11991
|
-
style: {
|
|
11992
|
-
width: 70
|
|
11993
|
-
},
|
|
11994
|
-
value: val,
|
|
11995
|
-
min: 0,
|
|
11996
|
-
onChange: function onChange(value) {
|
|
11997
|
-
return updateHandle(value, index, 'price');
|
|
11998
|
-
}
|
|
11999
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12000
|
-
}
|
|
12001
|
-
}, {
|
|
12002
|
-
dataIndex: 'exchangePrice',
|
|
12003
|
-
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
12004
|
-
align: 'center',
|
|
12005
|
-
ellipsis: true,
|
|
12006
|
-
width: 100
|
|
12007
|
-
}, {
|
|
12008
|
-
dataIndex: 'giftType',
|
|
12009
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12010
|
-
align: 'center',
|
|
12011
|
-
ellipsis: true,
|
|
12012
|
-
width: 100,
|
|
12013
|
-
render: function render(val) {
|
|
12014
|
-
var giftTypeMap = {
|
|
12015
|
-
0: '非赠品',
|
|
12016
|
-
1: '自动赠送',
|
|
12017
|
-
2: '手工赠送',
|
|
12018
|
-
3: '回购自动送赠品',
|
|
12019
|
-
4: '前N有礼送赠品',
|
|
12020
|
-
6: '天猫优仓赠品',
|
|
12021
|
-
7: '淘宝CRM会员送赠'
|
|
12022
|
-
};
|
|
12023
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
12024
|
-
}
|
|
12025
|
-
}, {
|
|
12026
|
-
dataIndex: 'type',
|
|
12027
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
12028
|
-
align: 'center',
|
|
12029
|
-
ellipsis: true,
|
|
12030
|
-
width: 100,
|
|
12031
|
-
render: function render(val, record, index) {
|
|
12032
|
-
var options = [{
|
|
12033
|
-
label: '单品',
|
|
12034
|
-
value: '1'
|
|
12035
|
-
}, {
|
|
12036
|
-
label: '组合装',
|
|
12037
|
-
value: '2'
|
|
12038
|
-
}];
|
|
12039
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
12040
|
-
style: {
|
|
12041
|
-
width: 70
|
|
12042
|
-
},
|
|
12043
|
-
options: options,
|
|
12044
|
-
value: val,
|
|
12045
|
-
onChange: function onChange(value) {
|
|
12046
|
-
return updateHandle(value, index, 'type');
|
|
12047
|
-
}
|
|
12048
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12049
|
-
}
|
|
12050
|
-
}];
|
|
12051
|
-
}
|
|
12052
|
-
break;
|
|
12053
11773
|
default:
|
|
12054
11774
|
columns = [{
|
|
12055
11775
|
dataIndex: 'mark',
|
|
@@ -12191,7 +11911,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12191
11911
|
}, [showHeader, value, disabled]);
|
|
12192
11912
|
var onSubmit = function onSubmit(list) {
|
|
12193
11913
|
var newList = [];
|
|
12194
|
-
if (['WDT_REISSUE_GOODS', 'WDT_GOODS'
|
|
11914
|
+
if (['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type)) {
|
|
12195
11915
|
newList = list.map(function (item) {
|
|
12196
11916
|
item.uuid = uuid();
|
|
12197
11917
|
item.canDelete = true;
|
|
@@ -12199,10 +11919,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12199
11919
|
item.orderPrice = 0;
|
|
12200
11920
|
item.sharePrice = 0;
|
|
12201
11921
|
item.canUpdateNumber = canUpdateNumber;
|
|
12202
|
-
if (type === 'WDT_EXCHANGE_GOODS') {
|
|
12203
|
-
item.price = item.retailPrice;
|
|
12204
|
-
item.type = '1';
|
|
12205
|
-
}
|
|
12206
11922
|
return item;
|
|
12207
11923
|
});
|
|
12208
11924
|
} else {
|
|
@@ -12273,7 +11989,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12273
11989
|
locale: {
|
|
12274
11990
|
emptyText: '暂无数据'
|
|
12275
11991
|
}
|
|
12276
|
-
})), ['WDT_REISSUE_GOODS', 'WDT_GOODS'
|
|
11992
|
+
})), ['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type) ? /*#__PURE__*/React.createElement(WdtGoodsModal, {
|
|
12277
11993
|
ref: refModal,
|
|
12278
11994
|
onSubmit: onSubmit,
|
|
12279
11995
|
width: width,
|
|
@@ -13030,7 +12746,7 @@ var index$1 = (function (props) {
|
|
|
13030
12746
|
}();
|
|
13031
12747
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
13032
12748
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(orderNo) {
|
|
13033
|
-
var _yield$request3, success, data
|
|
12749
|
+
var _yield$request3, success, data;
|
|
13034
12750
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
13035
12751
|
while (1) switch (_context3.prev = _context3.next) {
|
|
13036
12752
|
case 0:
|
|
@@ -13046,25 +12762,15 @@ var index$1 = (function (props) {
|
|
|
13046
12762
|
success = _yield$request3.success;
|
|
13047
12763
|
data = _yield$request3.data;
|
|
13048
12764
|
if (success) {
|
|
13049
|
-
trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
13050
|
-
return (item.srcTid || '').split(',').includes(orderNo);
|
|
13051
|
-
}).map(function (item) {
|
|
13052
|
-
if (Array.isArray(item.goodDetails)) {
|
|
13053
|
-
item.goodDetails = item.goodDetails.filter(function (good) {
|
|
13054
|
-
return good.srcTid === orderNo;
|
|
13055
|
-
});
|
|
13056
|
-
}
|
|
13057
|
-
return item;
|
|
13058
|
-
});
|
|
13059
12765
|
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13060
|
-
orders: trades.map(function (item) {
|
|
12766
|
+
orders: ((data === null || data === void 0 ? void 0 : data.trades) || []).map(function (item) {
|
|
13061
12767
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13062
12768
|
billNo: item.tradeNo,
|
|
13063
12769
|
billType: WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
13064
12770
|
billTag: item.tagName
|
|
13065
12771
|
});
|
|
13066
12772
|
}),
|
|
13067
|
-
showOrderInfo: trades.map(function (item) {
|
|
12773
|
+
showOrderInfo: data === null || data === void 0 ? void 0 : data.trades.map(function (item) {
|
|
13068
12774
|
return {
|
|
13069
12775
|
billNo: item.tradeNo,
|
|
13070
12776
|
billType: WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
@@ -13153,10 +12859,8 @@ var componentMap$1 = {
|
|
|
13153
12859
|
reissueType: 'wdtReissueType',
|
|
13154
12860
|
returnType: 'wdtReturnType',
|
|
13155
12861
|
returnSelectListReturn: 'wdtReturnSelectListReturn',
|
|
13156
|
-
returnSelectList: 'wdtReturnSelectList',
|
|
13157
12862
|
deleteGood: 'wdtDeleteGood',
|
|
13158
|
-
returnDeleteGood: 'wdtReturnDeleteGood'
|
|
13159
|
-
exchangeDeleteGood: 'wdtExchangeDeleteGood'
|
|
12863
|
+
returnDeleteGood: 'wdtReturnDeleteGood'
|
|
13160
12864
|
}
|
|
13161
12865
|
}
|
|
13162
12866
|
};
|
|
@@ -13223,7 +12927,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13223
12927
|
setTableSelect(['2', '4'].includes(data.val));
|
|
13224
12928
|
if (['1', '3'].includes(data.val)) {
|
|
13225
12929
|
var _valueRef$current5, _valueRef$current6;
|
|
13226
|
-
pubsub.publish(componentMap$1[
|
|
12930
|
+
pubsub.publish(componentMap$1[type].eventNameMap.returnSelectListReturn, {
|
|
13227
12931
|
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5[componentMap$1[compType].key]) || []),
|
|
13228
12932
|
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6.shopCode,
|
|
13229
12933
|
goodValue: data === null || data === void 0 ? void 0 : data.goodValue
|
|
@@ -13241,15 +12945,15 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13241
12945
|
};
|
|
13242
12946
|
}, [disabled]);
|
|
13243
12947
|
var _onSelect = function onSelect(list) {
|
|
13244
|
-
var
|
|
12948
|
+
var _withInfo$current, _withInfo$current2, _valueRef$current7;
|
|
13245
12949
|
if (disabled) return;
|
|
13246
12950
|
var newList = cloneDeep(list);
|
|
13247
|
-
var typeMap = (
|
|
12951
|
+
var typeMap = _defineProperty({
|
|
13248
12952
|
// type: componentMap[compType].eventNameMap.selectList,
|
|
13249
12953
|
// returnType: componentMap[compType].eventNameMap.returnSelectList,
|
|
13250
12954
|
// reissueType: componentMap[compType].eventNameMap.reissueSelectList,
|
|
13251
12955
|
type: componentMap$1[compType].eventNameMap.selectList
|
|
13252
|
-
},
|
|
12956
|
+
}, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList);
|
|
13253
12957
|
var type = typeMap[(_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type];
|
|
13254
12958
|
// console.log('onSelect', type, withInfo.current, newList);
|
|
13255
12959
|
pubsub.publish(type, {
|
|
@@ -13267,7 +12971,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13267
12971
|
pubsub.publish(componentMap$1[compType].eventNameMap.deleteGood, deleteId);
|
|
13268
12972
|
pubsub.publish(componentMap$1[compType].eventNameMap.reissueDeleteGood, deleteId);
|
|
13269
12973
|
pubsub.publish(componentMap$1[compType].eventNameMap.returnDeleteGood, deleteId);
|
|
13270
|
-
pubsub.publish(componentMap$1[compType].eventNameMap.exchangeDeleteGood, deleteId);
|
|
13271
12974
|
};
|
|
13272
12975
|
var changeHandle = function changeHandle(list) {
|
|
13273
12976
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, componentMap$1[compType].key, list)));
|
|
@@ -13292,263 +12995,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13292
12995
|
}));
|
|
13293
12996
|
};
|
|
13294
12997
|
|
|
13295
|
-
var componentMap$2 = {
|
|
13296
|
-
'WDT_RETURN_GOODS': {
|
|
13297
|
-
type: 'wdt',
|
|
13298
|
-
valueKey: 'wdtReturnGoods',
|
|
13299
|
-
returnTypeKey: 'wdtReturnType',
|
|
13300
|
-
name: '旺店通',
|
|
13301
|
-
eventNameMap: {
|
|
13302
|
-
changeShopCode: 'wdtChangeShopCode',
|
|
13303
|
-
returnType: 'wdtReturnType',
|
|
13304
|
-
returnSelectListReturn: 'wdtReturnSelectListReturn',
|
|
13305
|
-
returnDeleteGood: 'wdtReturnDeleteGood',
|
|
13306
|
-
returnSelectList: 'wdtReturnSelectList',
|
|
13307
|
-
exchangeCopyGood: 'wdtExchangeCopyGood',
|
|
13308
|
-
exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
|
|
13309
|
-
}
|
|
13310
|
-
}
|
|
13311
|
-
};
|
|
13312
|
-
var CommonReturnGoods = function CommonReturnGoods(props) {
|
|
13313
|
-
var value = props.value,
|
|
13314
|
-
onChange = props.onChange,
|
|
13315
|
-
_props$reasonList = props.reasonList,
|
|
13316
|
-
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
13317
|
-
disabled = props.disabled,
|
|
13318
|
-
compType = props.type;
|
|
13319
|
-
var valueRef = useRef({});
|
|
13320
|
-
useEffect(function () {
|
|
13321
|
-
var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
|
|
13322
|
-
var _valueRef$current, _valueRef$current2;
|
|
13323
|
-
pubsub.publish(componentMap$2[compType].eventNameMap.exchangeBackCopyGood, {
|
|
13324
|
-
list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current[componentMap$2[compType].valueKey]) || []),
|
|
13325
|
-
shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode
|
|
13326
|
-
});
|
|
13327
|
-
});
|
|
13328
|
-
return function () {
|
|
13329
|
-
pubsub.unsubscribe(subscription);
|
|
13330
|
-
};
|
|
13331
|
-
}, []);
|
|
13332
|
-
useEffect(function () {
|
|
13333
|
-
var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.returnSelectList, function (_, data) {
|
|
13334
|
-
if (disabled) return;
|
|
13335
|
-
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
13336
|
-
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
13337
|
-
});
|
|
13338
|
-
if (compType === 'WDT_RETURN_GOODS') {
|
|
13339
|
-
newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
13340
|
-
if (typeof item.type === 'undefined') {
|
|
13341
|
-
item.type = '1';
|
|
13342
|
-
}
|
|
13343
|
-
if (typeof item.returnPrice === 'undefined') {
|
|
13344
|
-
item.returnPrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.sharePrice)).toString();
|
|
13345
|
-
}
|
|
13346
|
-
if (item.srcOid) {
|
|
13347
|
-
item.oid = item.srcOid;
|
|
13348
|
-
}
|
|
13349
|
-
return item;
|
|
13350
|
-
});
|
|
13351
|
-
} else {
|
|
13352
|
-
newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
13353
|
-
}
|
|
13354
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13355
|
-
});
|
|
13356
|
-
return function () {
|
|
13357
|
-
pubsub.unsubscribe(subscription);
|
|
13358
|
-
};
|
|
13359
|
-
}, []);
|
|
13360
|
-
useEffect(function () {
|
|
13361
|
-
var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.returnSelectListReturn, function (_, data) {
|
|
13362
|
-
if (disabled) return;
|
|
13363
|
-
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
13364
|
-
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
13365
|
-
});
|
|
13366
|
-
if (compType === 'WDT_RETURN_GOODS') {
|
|
13367
|
-
newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
13368
|
-
if (typeof item.type === 'undefined') {
|
|
13369
|
-
item.type = '1';
|
|
13370
|
-
}
|
|
13371
|
-
if (typeof item.returnPrice === 'undefined') {
|
|
13372
|
-
item.returnPrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.sharePrice)).toString();
|
|
13373
|
-
}
|
|
13374
|
-
if (item.srcOid) {
|
|
13375
|
-
item.oid = item.srcOid;
|
|
13376
|
-
}
|
|
13377
|
-
return item;
|
|
13378
|
-
});
|
|
13379
|
-
} else {
|
|
13380
|
-
newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
13381
|
-
}
|
|
13382
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13383
|
-
});
|
|
13384
|
-
return function () {
|
|
13385
|
-
pubsub.unsubscribe(subscription);
|
|
13386
|
-
};
|
|
13387
|
-
}, []);
|
|
13388
|
-
useEffect(function () {
|
|
13389
|
-
valueRef.current = value;
|
|
13390
|
-
pubsub.subscribeOnce(componentMap$2[compType].eventNameMap.returnDeleteGood, function (_, data) {
|
|
13391
|
-
if (disabled) return;
|
|
13392
|
-
if (value) {
|
|
13393
|
-
var newValue = _objectSpread2({}, value);
|
|
13394
|
-
newValue[componentMap$2[compType].valueKey] = newValue[componentMap$2[compType].valueKey].filter(function (item) {
|
|
13395
|
-
return item.sku !== data;
|
|
13396
|
-
});
|
|
13397
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13398
|
-
}
|
|
13399
|
-
});
|
|
13400
|
-
pubsub.subscribeOnce(componentMap$2[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
13401
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13402
|
-
shopCode: data.shopCode
|
|
13403
|
-
}));
|
|
13404
|
-
});
|
|
13405
|
-
}, [value, disabled]);
|
|
13406
|
-
var changeTypeHandle = function changeTypeHandle(val) {
|
|
13407
|
-
var newValue = _objectSpread2({}, value);
|
|
13408
|
-
newValue[componentMap$2[compType].returnTypeKey] = val;
|
|
13409
|
-
newValue[componentMap$2[compType].valueKey] = [];
|
|
13410
|
-
if (['2'].includes(val[0])) {
|
|
13411
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13412
|
-
valueRef.current = newValue;
|
|
13413
|
-
}
|
|
13414
|
-
pubsub.publish(componentMap$2[compType].eventNameMap.returnType, {
|
|
13415
|
-
val: val[0],
|
|
13416
|
-
goodValue: newValue
|
|
13417
|
-
});
|
|
13418
|
-
};
|
|
13419
|
-
var changeGoodHandle = function changeGoodHandle(val) {
|
|
13420
|
-
var newValue = _objectSpread2({}, value);
|
|
13421
|
-
newValue[componentMap$2[compType].valueKey] = val;
|
|
13422
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13423
|
-
};
|
|
13424
|
-
//显示选择商品按钮 原单换不显示选择商品
|
|
13425
|
-
// const showChangeBtn = useMemo(() => {
|
|
13426
|
-
// return ['2'].includes(value?.[componentMap[compType].returnTypeKey]?.[0]);
|
|
13427
|
-
// }, [value?.[componentMap[compType].returnTypeKey]]);
|
|
13428
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, {
|
|
13429
|
-
style: {
|
|
13430
|
-
marginBottom: '8px'
|
|
13431
|
-
},
|
|
13432
|
-
disabled: disabled,
|
|
13433
|
-
allowClear: false,
|
|
13434
|
-
options: reasonList,
|
|
13435
|
-
value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
|
|
13436
|
-
onChange: function onChange(val) {
|
|
13437
|
-
return changeTypeHandle(val);
|
|
13438
|
-
}
|
|
13439
|
-
}), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
13440
|
-
key: componentMap$2[compType].type
|
|
13441
|
-
}, props), {}, {
|
|
13442
|
-
disabled: disabled,
|
|
13443
|
-
canUpdateNumber: true,
|
|
13444
|
-
showChangeBtn: false,
|
|
13445
|
-
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
13446
|
-
value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].valueKey],
|
|
13447
|
-
onChange: function onChange(val) {
|
|
13448
|
-
return changeGoodHandle(val);
|
|
13449
|
-
}
|
|
13450
|
-
})));
|
|
13451
|
-
};
|
|
13452
|
-
|
|
13453
|
-
var componentMap$3 = {
|
|
13454
|
-
'WDT_EXCHANGE_GOODS': {
|
|
13455
|
-
type: 'wdt',
|
|
13456
|
-
valueKey: 'wdtExchangeGoods',
|
|
13457
|
-
returnTypeKey: 'wdtExchangeType',
|
|
13458
|
-
name: '旺店通',
|
|
13459
|
-
eventNameMap: {
|
|
13460
|
-
changeShopCode: 'wdtChangeShopCode',
|
|
13461
|
-
exchangeDeleteGood: 'wdtExchangeDeleteGood',
|
|
13462
|
-
exchangeCopyGood: 'wdtExchangeCopyGood',
|
|
13463
|
-
exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
|
|
13464
|
-
}
|
|
13465
|
-
}
|
|
13466
|
-
};
|
|
13467
|
-
var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
13468
|
-
var value = props.value,
|
|
13469
|
-
onChange = props.onChange,
|
|
13470
|
-
disabled = props.disabled,
|
|
13471
|
-
compType = props.type;
|
|
13472
|
-
var valueRef = useRef({});
|
|
13473
|
-
useEffect(function () {
|
|
13474
|
-
var subscription = pubsub.subscribe(componentMap$3[compType].eventNameMap.exchangeBackCopyGood, function (_, data) {
|
|
13475
|
-
if (disabled) return;
|
|
13476
|
-
var newValue = {
|
|
13477
|
-
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
13478
|
-
};
|
|
13479
|
-
if (compType === 'WDT_EXCHANGE_GOODS') {
|
|
13480
|
-
newValue[componentMap$3[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
13481
|
-
if (typeof item.type === 'undefined') {
|
|
13482
|
-
item.type = '1';
|
|
13483
|
-
}
|
|
13484
|
-
item.price = item.sharePrice;
|
|
13485
|
-
if (typeof item.exchangePrice === 'undefined') {
|
|
13486
|
-
item.exchangePrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.price)).toString();
|
|
13487
|
-
}
|
|
13488
|
-
return item;
|
|
13489
|
-
});
|
|
13490
|
-
} else {
|
|
13491
|
-
newValue[componentMap$3[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
|
|
13492
|
-
}
|
|
13493
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13494
|
-
});
|
|
13495
|
-
return function () {
|
|
13496
|
-
pubsub.unsubscribe(subscription);
|
|
13497
|
-
};
|
|
13498
|
-
});
|
|
13499
|
-
useEffect(function () {
|
|
13500
|
-
valueRef.current = value;
|
|
13501
|
-
pubsub.subscribeOnce(componentMap$3[compType].eventNameMap.exchangeDeleteGood, function (_, data) {
|
|
13502
|
-
if (disabled) return;
|
|
13503
|
-
if (value) {
|
|
13504
|
-
var newValue = _objectSpread2({}, value);
|
|
13505
|
-
newValue[componentMap$3[compType].valueKey] = newValue[componentMap$3[compType].valueKey].filter(function (item) {
|
|
13506
|
-
return item.sku !== data;
|
|
13507
|
-
});
|
|
13508
|
-
onChange(newValue);
|
|
13509
|
-
}
|
|
13510
|
-
});
|
|
13511
|
-
pubsub.subscribeOnce(componentMap$3[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
13512
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13513
|
-
shopCode: data.shopCode
|
|
13514
|
-
}));
|
|
13515
|
-
});
|
|
13516
|
-
}, [value]);
|
|
13517
|
-
var changeGoodHandle = function changeGoodHandle(val) {
|
|
13518
|
-
var newValue = _objectSpread2({}, value);
|
|
13519
|
-
if (compType === 'WDT_EXCHANGE_GOODS') {
|
|
13520
|
-
val = val.map(function (item) {
|
|
13521
|
-
item.exchangePrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.price)).toString();
|
|
13522
|
-
return item;
|
|
13523
|
-
});
|
|
13524
|
-
}
|
|
13525
|
-
newValue[componentMap$3[compType].valueKey] = val;
|
|
13526
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13527
|
-
};
|
|
13528
|
-
var copyGoods = function copyGoods() {
|
|
13529
|
-
var copyHandle = function copyHandle() {
|
|
13530
|
-
pubsub.publish(componentMap$3[compType].eventNameMap.exchangeCopyGood, 'WDT_EXCHANGE_GOODS');
|
|
13531
|
-
};
|
|
13532
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
13533
|
-
type: "link",
|
|
13534
|
-
onClick: copyHandle
|
|
13535
|
-
}, "\u590D\u5236\u9000\u56DE\u5546\u54C1");
|
|
13536
|
-
};
|
|
13537
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
13538
|
-
key: componentMap$3[compType].type
|
|
13539
|
-
}, props), {}, {
|
|
13540
|
-
disabled: disabled,
|
|
13541
|
-
canUpdateNumber: true,
|
|
13542
|
-
showChangeBtn: true,
|
|
13543
|
-
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
13544
|
-
value: value === null || value === void 0 ? void 0 : value[componentMap$3[compType].valueKey],
|
|
13545
|
-
otherOperations: copyGoods(),
|
|
13546
|
-
onChange: function onChange(val) {
|
|
13547
|
-
return changeGoodHandle(val);
|
|
13548
|
-
}
|
|
13549
|
-
})));
|
|
13550
|
-
};
|
|
13551
|
-
|
|
13552
12998
|
var _excluded$g = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
13553
12999
|
var typeMap$1 = {
|
|
13554
13000
|
WDT_REISSUE_GOODS: {
|
|
@@ -14337,7 +13783,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14337
13783
|
changeIndex = _useState2[0],
|
|
14338
13784
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14339
13785
|
useEffect(function () {
|
|
14340
|
-
if (!(value === null || value === void 0 ? void 0 : value.length)
|
|
13786
|
+
if (!(value === null || value === void 0 ? void 0 : value.length)) {
|
|
14341
13787
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap$1[type].initValue);
|
|
14342
13788
|
}
|
|
14343
13789
|
}, [value, type]);
|
|
@@ -14376,7 +13822,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14376
13822
|
return setChangeIndex(index);
|
|
14377
13823
|
}
|
|
14378
13824
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
|
|
14379
|
-
}))) : null, value.length
|
|
13825
|
+
}))) : null, value.length ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
14380
13826
|
disabled: disabled,
|
|
14381
13827
|
placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
|
|
14382
13828
|
onChange: function onChange(e) {
|
|
@@ -14391,18 +13837,12 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
14391
13837
|
},
|
|
14392
13838
|
value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.returnGoodsTradeId
|
|
14393
13839
|
})) : null, type === 3 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
14394
|
-
disabled:
|
|
13840
|
+
disabled: true,
|
|
14395
13841
|
placeholder: "\u8BF7\u8F93\u5165\u8865\u53D1\u5355id",
|
|
14396
|
-
onChange: function onChange(e) {
|
|
14397
|
-
return changeInputHandle(e.target.value, 'billNo');
|
|
14398
|
-
},
|
|
14399
13842
|
value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.billNo
|
|
14400
13843
|
})) : null, type === 4 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
14401
|
-
disabled:
|
|
13844
|
+
disabled: true,
|
|
14402
13845
|
placeholder: "\u8BF7\u8F93\u5165\u6362\u8D27\u5355id",
|
|
14403
|
-
onChange: function onChange(e) {
|
|
14404
|
-
return changeInputHandle(e.target.value, 'billNo');
|
|
14405
|
-
},
|
|
14406
13846
|
value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.billNo
|
|
14407
13847
|
})) : null) : null);
|
|
14408
13848
|
};
|
|
@@ -14464,7 +13904,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
14464
13904
|
return setChangeIndex(index);
|
|
14465
13905
|
}
|
|
14466
13906
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
|
|
14467
|
-
}))) : null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
13907
|
+
}))) : null, value.length && type === 1 || type === 2 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
14468
13908
|
showSearch: true,
|
|
14469
13909
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
14470
13910
|
filterOption: function filterOption(input, option) {
|
|
@@ -14480,7 +13920,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
14480
13920
|
}
|
|
14481
13921
|
}))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React.createElement("div", {
|
|
14482
13922
|
className: "c-red"
|
|
14483
|
-
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
13923
|
+
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
|
|
14484
13924
|
};
|
|
14485
13925
|
|
|
14486
13926
|
var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
|
|
@@ -14568,4 +14008,4 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
14568
14008
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
14569
14009
|
};
|
|
14570
14010
|
|
|
14571
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby,
|
|
14011
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };
|