@kmkf-fe-packages/basic-components 1.19.6 → 1.19.8-beta.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/dist/index.esm.js +830 -390
- package/dist/index.js +829 -388
- package/dist/src/bs/component/GoodItem/bsE3ReissueGoodsColumns.d.ts +21 -0
- package/dist/src/bs/component/GoodItem/index.d.ts +4 -0
- package/dist/src/bs/component/model/BsE3GoodList.d.ts +4 -0
- package/dist/src/e3/Reissue/index.d.ts +3 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -4,369 +4,383 @@ import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } fro
|
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
6
|
import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, WdtSendData, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, BS_E3_ORDER_STATUS_MAP, BS_E3_BOOLEAN_STATUS_MAP, updateWdtGoodsHandle, updateBsE3GoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
-
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject } from 'lodash';
|
|
7
|
+
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty } from 'lodash';
|
|
8
8
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
9
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
11
11
|
import BigNumber from 'bignumber.js';
|
|
12
12
|
|
|
13
|
-
function _iterableToArrayLimit(
|
|
14
|
-
var
|
|
15
|
-
if (null !=
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
function _iterableToArrayLimit(r, l) {
|
|
14
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
15
|
+
if (null != t) {
|
|
16
|
+
var e,
|
|
17
|
+
n,
|
|
18
|
+
i,
|
|
19
|
+
u,
|
|
20
|
+
a = [],
|
|
21
|
+
f = !0,
|
|
22
|
+
o = !1;
|
|
23
23
|
try {
|
|
24
|
-
if (
|
|
25
|
-
if (Object(
|
|
26
|
-
|
|
27
|
-
} else for (; !(
|
|
28
|
-
} catch (
|
|
29
|
-
|
|
24
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
25
|
+
if (Object(t) !== t) return;
|
|
26
|
+
f = !1;
|
|
27
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
28
|
+
} catch (r) {
|
|
29
|
+
o = !0, n = r;
|
|
30
30
|
} finally {
|
|
31
31
|
try {
|
|
32
|
-
if (!
|
|
32
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
33
33
|
} finally {
|
|
34
|
-
if (
|
|
34
|
+
if (o) throw n;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return a;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function ownKeys(
|
|
41
|
-
var
|
|
40
|
+
function ownKeys(e, r) {
|
|
41
|
+
var t = Object.keys(e);
|
|
42
42
|
if (Object.getOwnPropertySymbols) {
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
return Object.getOwnPropertyDescriptor(
|
|
46
|
-
})),
|
|
43
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
44
|
+
r && (o = o.filter(function (r) {
|
|
45
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
46
|
+
})), t.push.apply(t, o);
|
|
47
47
|
}
|
|
48
|
-
return
|
|
49
|
-
}
|
|
50
|
-
function _objectSpread2(
|
|
51
|
-
for (var
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
_defineProperty(
|
|
55
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
56
|
-
Object.defineProperty(
|
|
48
|
+
return t;
|
|
49
|
+
}
|
|
50
|
+
function _objectSpread2(e) {
|
|
51
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
52
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
53
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
54
|
+
_defineProperty(e, r, t[r]);
|
|
55
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
56
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return e;
|
|
60
60
|
}
|
|
61
61
|
function _regeneratorRuntime() {
|
|
62
62
|
_regeneratorRuntime = function () {
|
|
63
|
-
return
|
|
64
|
-
};
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
return e;
|
|
64
|
+
};
|
|
65
|
+
var t,
|
|
66
|
+
e = {},
|
|
67
|
+
r = Object.prototype,
|
|
68
|
+
n = r.hasOwnProperty,
|
|
69
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
70
|
+
t[e] = r.value;
|
|
70
71
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
function define(
|
|
76
|
-
return Object.defineProperty(
|
|
77
|
-
value:
|
|
72
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
73
|
+
a = i.iterator || "@@iterator",
|
|
74
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
75
|
+
u = i.toStringTag || "@@toStringTag";
|
|
76
|
+
function define(t, e, r) {
|
|
77
|
+
return Object.defineProperty(t, e, {
|
|
78
|
+
value: r,
|
|
78
79
|
enumerable: !0,
|
|
79
80
|
configurable: !0,
|
|
80
81
|
writable: !0
|
|
81
|
-
}),
|
|
82
|
+
}), t[e];
|
|
82
83
|
}
|
|
83
84
|
try {
|
|
84
85
|
define({}, "");
|
|
85
|
-
} catch (
|
|
86
|
-
define = function (
|
|
87
|
-
return
|
|
86
|
+
} catch (t) {
|
|
87
|
+
define = function (t, e, r) {
|
|
88
|
+
return t[e] = r;
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
|
-
function wrap(
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return
|
|
95
|
-
value: makeInvokeMethod(
|
|
96
|
-
}),
|
|
91
|
+
function wrap(t, e, r, n) {
|
|
92
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
93
|
+
a = Object.create(i.prototype),
|
|
94
|
+
c = new Context(n || []);
|
|
95
|
+
return o(a, "_invoke", {
|
|
96
|
+
value: makeInvokeMethod(t, r, c)
|
|
97
|
+
}), a;
|
|
97
98
|
}
|
|
98
|
-
function tryCatch(
|
|
99
|
+
function tryCatch(t, e, r) {
|
|
99
100
|
try {
|
|
100
101
|
return {
|
|
101
102
|
type: "normal",
|
|
102
|
-
arg:
|
|
103
|
+
arg: t.call(e, r)
|
|
103
104
|
};
|
|
104
|
-
} catch (
|
|
105
|
+
} catch (t) {
|
|
105
106
|
return {
|
|
106
107
|
type: "throw",
|
|
107
|
-
arg:
|
|
108
|
+
arg: t
|
|
108
109
|
};
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
|
-
|
|
112
|
-
var
|
|
112
|
+
e.wrap = wrap;
|
|
113
|
+
var h = "suspendedStart",
|
|
114
|
+
l = "suspendedYield",
|
|
115
|
+
f = "executing",
|
|
116
|
+
s = "completed",
|
|
117
|
+
y = {};
|
|
113
118
|
function Generator() {}
|
|
114
119
|
function GeneratorFunction() {}
|
|
115
120
|
function GeneratorFunctionPrototype() {}
|
|
116
|
-
var
|
|
117
|
-
define(
|
|
121
|
+
var p = {};
|
|
122
|
+
define(p, a, function () {
|
|
118
123
|
return this;
|
|
119
124
|
});
|
|
120
|
-
var
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
var
|
|
124
|
-
function defineIteratorMethods(
|
|
125
|
-
["next", "throw", "return"].forEach(function (
|
|
126
|
-
define(
|
|
127
|
-
return this._invoke(
|
|
125
|
+
var d = Object.getPrototypeOf,
|
|
126
|
+
v = d && d(d(values([])));
|
|
127
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
128
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
129
|
+
function defineIteratorMethods(t) {
|
|
130
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
131
|
+
define(t, e, function (t) {
|
|
132
|
+
return this._invoke(e, t);
|
|
128
133
|
});
|
|
129
134
|
});
|
|
130
135
|
}
|
|
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",
|
|
136
|
+
function AsyncIterator(t, e) {
|
|
137
|
+
function invoke(r, o, i, a) {
|
|
138
|
+
var c = tryCatch(t[r], t, o);
|
|
139
|
+
if ("throw" !== c.type) {
|
|
140
|
+
var u = c.arg,
|
|
141
|
+
h = u.value;
|
|
142
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
143
|
+
invoke("next", t, i, a);
|
|
144
|
+
}, function (t) {
|
|
145
|
+
invoke("throw", t, i, a);
|
|
146
|
+
}) : e.resolve(h).then(function (t) {
|
|
147
|
+
u.value = t, i(u);
|
|
148
|
+
}, function (t) {
|
|
149
|
+
return invoke("throw", t, i, a);
|
|
145
150
|
});
|
|
146
151
|
}
|
|
147
|
-
|
|
152
|
+
a(c.arg);
|
|
148
153
|
}
|
|
149
|
-
var
|
|
150
|
-
|
|
151
|
-
value: function (
|
|
154
|
+
var r;
|
|
155
|
+
o(this, "_invoke", {
|
|
156
|
+
value: function (t, n) {
|
|
152
157
|
function callInvokeWithMethodAndArg() {
|
|
153
|
-
return new
|
|
154
|
-
invoke(
|
|
158
|
+
return new e(function (e, r) {
|
|
159
|
+
invoke(t, n, e, r);
|
|
155
160
|
});
|
|
156
161
|
}
|
|
157
|
-
return
|
|
162
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
158
163
|
}
|
|
159
164
|
});
|
|
160
165
|
}
|
|
161
|
-
function makeInvokeMethod(
|
|
162
|
-
var
|
|
163
|
-
return function (
|
|
164
|
-
if (
|
|
165
|
-
if (
|
|
166
|
-
if ("throw" ===
|
|
167
|
-
return
|
|
166
|
+
function makeInvokeMethod(e, r, n) {
|
|
167
|
+
var o = h;
|
|
168
|
+
return function (i, a) {
|
|
169
|
+
if (o === f) throw new Error("Generator is already running");
|
|
170
|
+
if (o === s) {
|
|
171
|
+
if ("throw" === i) throw a;
|
|
172
|
+
return {
|
|
173
|
+
value: t,
|
|
174
|
+
done: !0
|
|
175
|
+
};
|
|
168
176
|
}
|
|
169
|
-
for (
|
|
170
|
-
var
|
|
171
|
-
if (
|
|
172
|
-
var
|
|
173
|
-
if (
|
|
174
|
-
if (
|
|
175
|
-
return
|
|
177
|
+
for (n.method = i, n.arg = a;;) {
|
|
178
|
+
var c = n.delegate;
|
|
179
|
+
if (c) {
|
|
180
|
+
var u = maybeInvokeDelegate(c, n);
|
|
181
|
+
if (u) {
|
|
182
|
+
if (u === y) continue;
|
|
183
|
+
return u;
|
|
176
184
|
}
|
|
177
185
|
}
|
|
178
|
-
if ("next" ===
|
|
179
|
-
if (
|
|
180
|
-
|
|
181
|
-
} else "return" ===
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
if ("normal" ===
|
|
185
|
-
if (
|
|
186
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
187
|
+
if (o === h) throw o = s, n.arg;
|
|
188
|
+
n.dispatchException(n.arg);
|
|
189
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
190
|
+
o = f;
|
|
191
|
+
var p = tryCatch(e, r, n);
|
|
192
|
+
if ("normal" === p.type) {
|
|
193
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
186
194
|
return {
|
|
187
|
-
value:
|
|
188
|
-
done:
|
|
195
|
+
value: p.arg,
|
|
196
|
+
done: n.done
|
|
189
197
|
};
|
|
190
198
|
}
|
|
191
|
-
"throw" ===
|
|
199
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
192
200
|
}
|
|
193
201
|
};
|
|
194
202
|
}
|
|
195
|
-
function maybeInvokeDelegate(
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
if (
|
|
199
|
-
var
|
|
200
|
-
if ("throw" ===
|
|
201
|
-
var
|
|
202
|
-
return
|
|
203
|
+
function maybeInvokeDelegate(e, r) {
|
|
204
|
+
var n = r.method,
|
|
205
|
+
o = e.iterator[n];
|
|
206
|
+
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;
|
|
207
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
208
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
209
|
+
var a = i.arg;
|
|
210
|
+
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
211
|
}
|
|
204
|
-
function pushTryEntry(
|
|
205
|
-
var
|
|
206
|
-
tryLoc:
|
|
212
|
+
function pushTryEntry(t) {
|
|
213
|
+
var e = {
|
|
214
|
+
tryLoc: t[0]
|
|
207
215
|
};
|
|
208
|
-
1 in
|
|
216
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
209
217
|
}
|
|
210
|
-
function resetTryEntry(
|
|
211
|
-
var
|
|
212
|
-
|
|
218
|
+
function resetTryEntry(t) {
|
|
219
|
+
var e = t.completion || {};
|
|
220
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
213
221
|
}
|
|
214
|
-
function Context(
|
|
222
|
+
function Context(t) {
|
|
215
223
|
this.tryEntries = [{
|
|
216
224
|
tryLoc: "root"
|
|
217
|
-
}],
|
|
225
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
218
226
|
}
|
|
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 =
|
|
227
|
+
function values(e) {
|
|
228
|
+
if (e || "" === e) {
|
|
229
|
+
var r = e[a];
|
|
230
|
+
if (r) return r.call(e);
|
|
231
|
+
if ("function" == typeof e.next) return e;
|
|
232
|
+
if (!isNaN(e.length)) {
|
|
233
|
+
var o = -1,
|
|
234
|
+
i = function next() {
|
|
235
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
236
|
+
return next.value = t, next.done = !0, next;
|
|
229
237
|
};
|
|
230
|
-
return
|
|
238
|
+
return i.next = i;
|
|
231
239
|
}
|
|
232
240
|
}
|
|
233
|
-
|
|
234
|
-
next: doneResult
|
|
235
|
-
};
|
|
241
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
236
242
|
}
|
|
237
|
-
|
|
238
|
-
return {
|
|
239
|
-
value: undefined,
|
|
240
|
-
done: !0
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
243
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
244
244
|
value: GeneratorFunctionPrototype,
|
|
245
245
|
configurable: !0
|
|
246
|
-
}),
|
|
246
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
247
247
|
value: GeneratorFunction,
|
|
248
248
|
configurable: !0
|
|
249
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
250
|
-
var
|
|
251
|
-
return !!
|
|
252
|
-
},
|
|
253
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
254
|
-
},
|
|
249
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
250
|
+
var e = "function" == typeof t && t.constructor;
|
|
251
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
252
|
+
}, e.mark = function (t) {
|
|
253
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
254
|
+
}, e.awrap = function (t) {
|
|
255
255
|
return {
|
|
256
|
-
__await:
|
|
256
|
+
__await: t
|
|
257
257
|
};
|
|
258
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
258
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
259
259
|
return this;
|
|
260
|
-
}),
|
|
261
|
-
void 0 ===
|
|
262
|
-
var
|
|
263
|
-
return
|
|
264
|
-
return
|
|
260
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
261
|
+
void 0 === i && (i = Promise);
|
|
262
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
263
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
264
|
+
return t.done ? t.value : a.next();
|
|
265
265
|
});
|
|
266
|
-
}, defineIteratorMethods(
|
|
266
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
267
267
|
return this;
|
|
268
|
-
}), define(
|
|
268
|
+
}), define(g, "toString", function () {
|
|
269
269
|
return "[object Generator]";
|
|
270
|
-
}),
|
|
271
|
-
var
|
|
272
|
-
|
|
273
|
-
for (var
|
|
274
|
-
return
|
|
275
|
-
for (;
|
|
276
|
-
var
|
|
277
|
-
if (
|
|
270
|
+
}), e.keys = function (t) {
|
|
271
|
+
var e = Object(t),
|
|
272
|
+
r = [];
|
|
273
|
+
for (var n in e) r.push(n);
|
|
274
|
+
return r.reverse(), function next() {
|
|
275
|
+
for (; r.length;) {
|
|
276
|
+
var t = r.pop();
|
|
277
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
278
278
|
}
|
|
279
279
|
return next.done = !0, next;
|
|
280
280
|
};
|
|
281
|
-
},
|
|
281
|
+
}, e.values = values, Context.prototype = {
|
|
282
282
|
constructor: Context,
|
|
283
|
-
reset: function (
|
|
284
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
283
|
+
reset: function (e) {
|
|
284
|
+
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
285
|
},
|
|
286
286
|
stop: function () {
|
|
287
287
|
this.done = !0;
|
|
288
|
-
var
|
|
289
|
-
if ("throw" ===
|
|
288
|
+
var t = this.tryEntries[0].completion;
|
|
289
|
+
if ("throw" === t.type) throw t.arg;
|
|
290
290
|
return this.rval;
|
|
291
291
|
},
|
|
292
|
-
dispatchException: function (
|
|
293
|
-
if (this.done) throw
|
|
294
|
-
var
|
|
295
|
-
function handle(
|
|
296
|
-
return
|
|
292
|
+
dispatchException: function (e) {
|
|
293
|
+
if (this.done) throw e;
|
|
294
|
+
var r = this;
|
|
295
|
+
function handle(n, o) {
|
|
296
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
297
297
|
}
|
|
298
|
-
for (var
|
|
299
|
-
var
|
|
300
|
-
|
|
301
|
-
if ("root" ===
|
|
302
|
-
if (
|
|
303
|
-
var
|
|
304
|
-
|
|
305
|
-
if (
|
|
306
|
-
if (this.prev <
|
|
307
|
-
if (this.prev <
|
|
308
|
-
} else if (
|
|
309
|
-
if (this.prev <
|
|
298
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
299
|
+
var i = this.tryEntries[o],
|
|
300
|
+
a = i.completion;
|
|
301
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
302
|
+
if (i.tryLoc <= this.prev) {
|
|
303
|
+
var c = n.call(i, "catchLoc"),
|
|
304
|
+
u = n.call(i, "finallyLoc");
|
|
305
|
+
if (c && u) {
|
|
306
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
307
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
308
|
+
} else if (c) {
|
|
309
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
310
310
|
} else {
|
|
311
|
-
if (!
|
|
312
|
-
if (this.prev <
|
|
311
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
312
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
|
-
abrupt: function (
|
|
318
|
-
for (var
|
|
319
|
-
var
|
|
320
|
-
if (
|
|
321
|
-
var
|
|
317
|
+
abrupt: function (t, e) {
|
|
318
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
319
|
+
var o = this.tryEntries[r];
|
|
320
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
321
|
+
var i = o;
|
|
322
322
|
break;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
|
|
326
|
-
var
|
|
327
|
-
return
|
|
325
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
326
|
+
var a = i ? i.completion : {};
|
|
327
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
328
328
|
},
|
|
329
|
-
complete: function (
|
|
330
|
-
if ("throw" ===
|
|
331
|
-
return "break" ===
|
|
329
|
+
complete: function (t, e) {
|
|
330
|
+
if ("throw" === t.type) throw t.arg;
|
|
331
|
+
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
332
|
},
|
|
333
|
-
finish: function (
|
|
334
|
-
for (var
|
|
335
|
-
var
|
|
336
|
-
if (
|
|
333
|
+
finish: function (t) {
|
|
334
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
335
|
+
var r = this.tryEntries[e];
|
|
336
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
|
-
catch: function (
|
|
340
|
-
for (var
|
|
341
|
-
var
|
|
342
|
-
if (
|
|
343
|
-
var
|
|
344
|
-
if ("throw" ===
|
|
345
|
-
var
|
|
346
|
-
resetTryEntry(
|
|
339
|
+
catch: function (t) {
|
|
340
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
341
|
+
var r = this.tryEntries[e];
|
|
342
|
+
if (r.tryLoc === t) {
|
|
343
|
+
var n = r.completion;
|
|
344
|
+
if ("throw" === n.type) {
|
|
345
|
+
var o = n.arg;
|
|
346
|
+
resetTryEntry(r);
|
|
347
347
|
}
|
|
348
|
-
return
|
|
348
|
+
return o;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
throw new Error("illegal catch attempt");
|
|
352
352
|
},
|
|
353
|
-
delegateYield: function (
|
|
353
|
+
delegateYield: function (e, r, n) {
|
|
354
354
|
return this.delegate = {
|
|
355
|
-
iterator: values(
|
|
356
|
-
resultName:
|
|
357
|
-
nextLoc:
|
|
358
|
-
}, "next" === this.method && (this.arg =
|
|
359
|
-
}
|
|
360
|
-
},
|
|
355
|
+
iterator: values(e),
|
|
356
|
+
resultName: r,
|
|
357
|
+
nextLoc: n
|
|
358
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
359
|
+
}
|
|
360
|
+
}, e;
|
|
361
|
+
}
|
|
362
|
+
function _toPrimitive(t, r) {
|
|
363
|
+
if ("object" != typeof t || !t) return t;
|
|
364
|
+
var e = t[Symbol.toPrimitive];
|
|
365
|
+
if (void 0 !== e) {
|
|
366
|
+
var i = e.call(t, r || "default");
|
|
367
|
+
if ("object" != typeof i) return i;
|
|
368
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
369
|
+
}
|
|
370
|
+
return ("string" === r ? String : Number)(t);
|
|
371
|
+
}
|
|
372
|
+
function _toPropertyKey(t) {
|
|
373
|
+
var i = _toPrimitive(t, "string");
|
|
374
|
+
return "symbol" == typeof i ? i : String(i);
|
|
361
375
|
}
|
|
362
|
-
function _typeof(
|
|
376
|
+
function _typeof(o) {
|
|
363
377
|
"@babel/helpers - typeof";
|
|
364
378
|
|
|
365
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
366
|
-
return typeof
|
|
367
|
-
} : function (
|
|
368
|
-
return
|
|
369
|
-
}, _typeof(
|
|
379
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
380
|
+
return typeof o;
|
|
381
|
+
} : function (o) {
|
|
382
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
383
|
+
}, _typeof(o);
|
|
370
384
|
}
|
|
371
385
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
372
386
|
try {
|
|
@@ -473,20 +487,6 @@ function _nonIterableSpread() {
|
|
|
473
487
|
function _nonIterableRest() {
|
|
474
488
|
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
489
|
}
|
|
476
|
-
function _toPrimitive(input, hint) {
|
|
477
|
-
if (typeof input !== "object" || input === null) return input;
|
|
478
|
-
var prim = input[Symbol.toPrimitive];
|
|
479
|
-
if (prim !== undefined) {
|
|
480
|
-
var res = prim.call(input, hint || "default");
|
|
481
|
-
if (typeof res !== "object") return res;
|
|
482
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
483
|
-
}
|
|
484
|
-
return (hint === "string" ? String : Number)(input);
|
|
485
|
-
}
|
|
486
|
-
function _toPropertyKey(arg) {
|
|
487
|
-
var key = _toPrimitive(arg, "string");
|
|
488
|
-
return typeof key === "symbol" ? key : String(key);
|
|
489
|
-
}
|
|
490
490
|
|
|
491
491
|
function ApaasCascader(props) {
|
|
492
492
|
return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
|
|
@@ -12093,7 +12093,7 @@ var getTableData$1 = function getTableData(_ref, formData) {
|
|
|
12093
12093
|
data: _objectSpread2({
|
|
12094
12094
|
pageSize: pageSize,
|
|
12095
12095
|
pageNo: current,
|
|
12096
|
-
platform: '
|
|
12096
|
+
platform: 'BS_E3_ERP'
|
|
12097
12097
|
}, data)
|
|
12098
12098
|
}).then(function (res) {
|
|
12099
12099
|
var _res$data = res.data,
|
|
@@ -12124,125 +12124,85 @@ var columns$2 = [{
|
|
|
12124
12124
|
},
|
|
12125
12125
|
width: 100
|
|
12126
12126
|
}, {
|
|
12127
|
-
dataIndex: '
|
|
12127
|
+
dataIndex: 'specNo',
|
|
12128
12128
|
title: "SKU",
|
|
12129
12129
|
ellipsis: true,
|
|
12130
|
-
width:
|
|
12130
|
+
width: 150
|
|
12131
12131
|
}, {
|
|
12132
|
-
dataIndex: '
|
|
12132
|
+
dataIndex: 'specId',
|
|
12133
12133
|
title: "SKU ID",
|
|
12134
12134
|
ellipsis: true,
|
|
12135
|
-
width:
|
|
12135
|
+
width: 150
|
|
12136
12136
|
}, {
|
|
12137
|
-
dataIndex: '
|
|
12137
|
+
dataIndex: 'goodName',
|
|
12138
12138
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
12139
12139
|
ellipsis: true,
|
|
12140
|
-
width:
|
|
12140
|
+
width: 150
|
|
12141
12141
|
}, {
|
|
12142
|
-
dataIndex: '
|
|
12142
|
+
dataIndex: 'goodShortName',
|
|
12143
12143
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12144
12144
|
ellipsis: true,
|
|
12145
|
-
width:
|
|
12145
|
+
width: 150
|
|
12146
12146
|
}, {
|
|
12147
|
-
dataIndex: '
|
|
12147
|
+
dataIndex: 'goodPicUrl',
|
|
12148
12148
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
12149
12149
|
ellipsis: true,
|
|
12150
12150
|
width: 100,
|
|
12151
12151
|
render: function render(picUrl) {
|
|
12152
12152
|
return /*#__PURE__*/React.createElement("img", {
|
|
12153
12153
|
style: {
|
|
12154
|
-
width: '
|
|
12155
|
-
height: '
|
|
12154
|
+
width: '40px',
|
|
12155
|
+
height: '40px',
|
|
12156
12156
|
objectFit: 'contain'
|
|
12157
12157
|
},
|
|
12158
12158
|
src: picUrl
|
|
12159
12159
|
});
|
|
12160
12160
|
}
|
|
12161
12161
|
}, {
|
|
12162
|
-
dataIndex: '
|
|
12162
|
+
dataIndex: 'goodNo',
|
|
12163
12163
|
title: "\u8D27\u53F7",
|
|
12164
12164
|
ellipsis: true,
|
|
12165
|
-
width:
|
|
12165
|
+
width: 150
|
|
12166
12166
|
}, {
|
|
12167
|
-
dataIndex: '
|
|
12167
|
+
dataIndex: 'goodId',
|
|
12168
12168
|
title: "\u8D27\u53F7ID",
|
|
12169
12169
|
ellipsis: true,
|
|
12170
|
-
width:
|
|
12170
|
+
width: 150
|
|
12171
12171
|
}, {
|
|
12172
12172
|
dataIndex: 'colorName',
|
|
12173
12173
|
title: "\u989C\u8272\u540D\u79F0",
|
|
12174
12174
|
ellipsis: true,
|
|
12175
|
-
width:
|
|
12175
|
+
width: 100
|
|
12176
12176
|
}, {
|
|
12177
12177
|
dataIndex: 'colorCode',
|
|
12178
12178
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
12179
12179
|
ellipsis: true,
|
|
12180
|
-
width:
|
|
12180
|
+
width: 150
|
|
12181
12181
|
}, {
|
|
12182
12182
|
dataIndex: 'sizeName',
|
|
12183
12183
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12184
12184
|
ellipsis: true,
|
|
12185
|
-
width:
|
|
12185
|
+
width: 100
|
|
12186
12186
|
}, {
|
|
12187
12187
|
dataIndex: 'sizeCode',
|
|
12188
12188
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12189
12189
|
ellipsis: true,
|
|
12190
|
-
width:
|
|
12190
|
+
width: 150
|
|
12191
12191
|
}, {
|
|
12192
12192
|
dataIndex: 'brandName',
|
|
12193
12193
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
12194
12194
|
ellipsis: true,
|
|
12195
|
-
width:
|
|
12196
|
-
}, {
|
|
12197
|
-
dataIndex: 'goodsNumber',
|
|
12198
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
12199
|
-
ellipsis: true,
|
|
12200
|
-
width: 70
|
|
12201
|
-
}, {
|
|
12202
|
-
dataIndex: 'goodsPrice',
|
|
12203
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12204
|
-
ellipsis: true,
|
|
12205
|
-
width: 70
|
|
12195
|
+
width: 150
|
|
12206
12196
|
}, {
|
|
12207
|
-
dataIndex: '
|
|
12208
|
-
title: "\
|
|
12209
|
-
ellipsis: true,
|
|
12210
|
-
width: 70
|
|
12211
|
-
}, {
|
|
12212
|
-
dataIndex: 'sharePrice',
|
|
12213
|
-
title: "\u5206\u644A\u4EF7",
|
|
12214
|
-
ellipsis: true,
|
|
12215
|
-
width: 70
|
|
12216
|
-
}, {
|
|
12217
|
-
dataIndex: 'sharePayment',
|
|
12218
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
12219
|
-
ellipsis: true,
|
|
12220
|
-
width: 70
|
|
12221
|
-
}, {
|
|
12222
|
-
dataIndex: 'payment',
|
|
12223
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
12224
|
-
ellipsis: true,
|
|
12225
|
-
width: 70
|
|
12226
|
-
}, {
|
|
12227
|
-
dataIndex: 'tcSku',
|
|
12228
|
-
title: "\u5957\u9910SKU",
|
|
12229
|
-
ellipsis: true,
|
|
12230
|
-
width: 70
|
|
12231
|
-
}, {
|
|
12232
|
-
dataIndex: 'tcGoodsNumber',
|
|
12233
|
-
title: "\u5957\u9910\u5957\u6570",
|
|
12234
|
-
ellipsis: true,
|
|
12235
|
-
width: 70
|
|
12236
|
-
}, {
|
|
12237
|
-
dataIndex: 'taoCanSingleSl',
|
|
12238
|
-
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
12197
|
+
dataIndex: 'marketPrice',
|
|
12198
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12239
12199
|
ellipsis: true,
|
|
12240
|
-
width:
|
|
12200
|
+
width: 100
|
|
12241
12201
|
}, {
|
|
12242
|
-
dataIndex: '
|
|
12243
|
-
title: "\
|
|
12202
|
+
dataIndex: 'retailPrice',
|
|
12203
|
+
title: "\u552E\u4EF7",
|
|
12244
12204
|
ellipsis: true,
|
|
12245
|
-
width:
|
|
12205
|
+
width: 100
|
|
12246
12206
|
}];
|
|
12247
12207
|
var GoodList$1 = function GoodList(props, ref) {
|
|
12248
12208
|
var _useState = useState([]),
|
|
@@ -12276,7 +12236,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12276
12236
|
layout: "inline",
|
|
12277
12237
|
form: form
|
|
12278
12238
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
12279
|
-
name: "
|
|
12239
|
+
name: "goodNo",
|
|
12280
12240
|
style: {
|
|
12281
12241
|
marginBottom: '12px'
|
|
12282
12242
|
}
|
|
@@ -12287,7 +12247,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12287
12247
|
width: 150
|
|
12288
12248
|
}
|
|
12289
12249
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12290
|
-
name: "
|
|
12250
|
+
name: "goodName",
|
|
12291
12251
|
style: {
|
|
12292
12252
|
marginBottom: '12px'
|
|
12293
12253
|
}
|
|
@@ -12298,7 +12258,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12298
12258
|
width: 150
|
|
12299
12259
|
}
|
|
12300
12260
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12301
|
-
name: "
|
|
12261
|
+
name: "skuCode",
|
|
12302
12262
|
style: {
|
|
12303
12263
|
marginBottom: '12px'
|
|
12304
12264
|
}
|
|
@@ -12415,7 +12375,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12415
12375
|
}
|
|
12416
12376
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
12417
12377
|
rowSelection: rowSelection,
|
|
12418
|
-
rowKey: "
|
|
12378
|
+
rowKey: "specNo",
|
|
12419
12379
|
columns: columns$2,
|
|
12420
12380
|
scroll: {
|
|
12421
12381
|
x: '100%',
|
|
@@ -12475,15 +12435,191 @@ var GoodsModal$4 = function GoodsModal(props, ref) {
|
|
|
12475
12435
|
};
|
|
12476
12436
|
var BsE3GoodsModal = /*#__PURE__*/forwardRef(GoodsModal$4);
|
|
12477
12437
|
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12438
|
+
var columns$3 = [{
|
|
12439
|
+
dataIndex: 'sku',
|
|
12440
|
+
title: "SKU",
|
|
12441
|
+
width: 150
|
|
12442
|
+
}, {
|
|
12443
|
+
dataIndex: 'skuId',
|
|
12444
|
+
title: "SKU ID",
|
|
12445
|
+
width: 150
|
|
12446
|
+
}, {
|
|
12447
|
+
dataIndex: 'goodsName',
|
|
12448
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12449
|
+
width: 150
|
|
12450
|
+
}, {
|
|
12451
|
+
dataIndex: 'goodsShortName',
|
|
12452
|
+
title: "\u5546\u54C1\u7B80\u4ECB",
|
|
12453
|
+
width: 150
|
|
12454
|
+
}, {
|
|
12455
|
+
dataIndex: 'picPath',
|
|
12456
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
12457
|
+
width: 150
|
|
12458
|
+
}, {
|
|
12459
|
+
dataIndex: 'goodsSn',
|
|
12460
|
+
title: "\u8D27\u53F7",
|
|
12461
|
+
width: 150
|
|
12462
|
+
}, {
|
|
12463
|
+
dataIndex: 'goodsId',
|
|
12464
|
+
title: "\u8D27\u53F7ID",
|
|
12465
|
+
width: 150
|
|
12466
|
+
}, {
|
|
12467
|
+
dataIndex: 'colorName',
|
|
12468
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12469
|
+
width: 150
|
|
12470
|
+
}, {
|
|
12471
|
+
dataIndex: 'colorCode',
|
|
12472
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12473
|
+
width: 150
|
|
12474
|
+
}, {
|
|
12475
|
+
dataIndex: 'sizeName',
|
|
12476
|
+
title: "\u5C3A\u5BF8\u540D\u79F0",
|
|
12477
|
+
width: 150
|
|
12478
|
+
}, {
|
|
12479
|
+
dataIndex: 'sizeCode',
|
|
12480
|
+
title: "\u5C3A\u5BF8\u4EE3\u7801",
|
|
12481
|
+
width: 150
|
|
12482
|
+
}, {
|
|
12483
|
+
dataIndex: 'brandName',
|
|
12484
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12485
|
+
width: 150
|
|
12486
|
+
}, {
|
|
12487
|
+
dataIndex: 'shopPrice',
|
|
12488
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12489
|
+
width: 150
|
|
12490
|
+
}, {
|
|
12491
|
+
dataIndex: 'goodsNumber',
|
|
12492
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
12493
|
+
width: 150
|
|
12494
|
+
}, {
|
|
12495
|
+
dataIndex: 'goodsPrice',
|
|
12496
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12497
|
+
width: 150
|
|
12498
|
+
}, {
|
|
12499
|
+
dataIndex: 'isGift',
|
|
12500
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
12501
|
+
width: 150
|
|
12502
|
+
}];
|
|
12503
|
+
var renderFieldMap = {
|
|
12504
|
+
goodsNumber: function goodsNumber(_ref) {
|
|
12505
|
+
var disabled = _ref.disabled,
|
|
12506
|
+
updateHandle = _ref.updateHandle;
|
|
12507
|
+
return function (val, record, index) {
|
|
12508
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12509
|
+
style: {
|
|
12510
|
+
width: 70
|
|
12511
|
+
},
|
|
12512
|
+
value: val,
|
|
12513
|
+
min: 1,
|
|
12514
|
+
precision: 0,
|
|
12515
|
+
onChange: function onChange(num) {
|
|
12516
|
+
return updateHandle(num, index, 'goodsNumber');
|
|
12517
|
+
}
|
|
12518
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12519
|
+
};
|
|
12520
|
+
},
|
|
12521
|
+
goodsPrice: function goodsPrice(_ref2) {
|
|
12522
|
+
var disabled = _ref2.disabled,
|
|
12523
|
+
updateHandle = _ref2.updateHandle;
|
|
12524
|
+
return function (val, record, index) {
|
|
12525
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12526
|
+
style: {
|
|
12527
|
+
width: 70
|
|
12528
|
+
},
|
|
12529
|
+
value: val,
|
|
12530
|
+
min: 0,
|
|
12531
|
+
onChange: function onChange(value) {
|
|
12532
|
+
return updateHandle(value, index, 'goodsPrice');
|
|
12533
|
+
}
|
|
12534
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12535
|
+
};
|
|
12536
|
+
},
|
|
12537
|
+
isGift: function isGift(_ref3) {
|
|
12538
|
+
var disabled = _ref3.disabled,
|
|
12539
|
+
updateHandle = _ref3.updateHandle;
|
|
12540
|
+
return function (val, record, index) {
|
|
12541
|
+
var options = [{
|
|
12542
|
+
label: '是',
|
|
12543
|
+
value: '赠品'
|
|
12544
|
+
}, {
|
|
12545
|
+
label: '否',
|
|
12546
|
+
value: '非赠品'
|
|
12547
|
+
}];
|
|
12548
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
12549
|
+
style: {
|
|
12550
|
+
width: 70
|
|
12551
|
+
},
|
|
12552
|
+
options: options,
|
|
12553
|
+
value: val,
|
|
12554
|
+
onChange: function onChange(value) {
|
|
12555
|
+
return updateHandle(value, index, 'isGift');
|
|
12556
|
+
}
|
|
12557
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12558
|
+
};
|
|
12559
|
+
}
|
|
12560
|
+
};
|
|
12561
|
+
var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
12562
|
+
var disabled = _ref4.disabled,
|
|
12563
|
+
updateHandle = _ref4.updateHandle,
|
|
12564
|
+
operate = _ref4.operate;
|
|
12565
|
+
return columns$3.map(function (item) {
|
|
12566
|
+
var newItem = _objectSpread2({
|
|
12567
|
+
align: 'center',
|
|
12568
|
+
ellipsis: true
|
|
12569
|
+
}, item);
|
|
12570
|
+
if (operate && (renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex])) {
|
|
12571
|
+
return _objectSpread2(_objectSpread2({}, newItem), {}, {
|
|
12572
|
+
render: renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex]({
|
|
12573
|
+
disabled: disabled,
|
|
12574
|
+
updateHandle: updateHandle
|
|
12575
|
+
})
|
|
12576
|
+
});
|
|
12577
|
+
}
|
|
12578
|
+
return newItem;
|
|
12579
|
+
});
|
|
12580
|
+
};
|
|
12581
|
+
|
|
12582
|
+
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
12583
|
+
var columns = _ref.columns,
|
|
12584
|
+
dataSource = _ref.dataSource,
|
|
12585
|
+
selectedRowKeys = _ref.selectedRowKeys,
|
|
12586
|
+
onChangeSelectedKeys = _ref.onChangeSelectedKeys;
|
|
12587
|
+
var _useState = useState(false),
|
|
12588
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12589
|
+
tradeGoodsVisible = _useState2[0],
|
|
12590
|
+
setTradeGoodsVisible = _useState2[1];
|
|
12591
|
+
var openModal = function openModal() {
|
|
12592
|
+
return setTradeGoodsVisible(true);
|
|
12593
|
+
};
|
|
12594
|
+
var closeModal = function closeModal() {
|
|
12595
|
+
return setTradeGoodsVisible(false);
|
|
12596
|
+
};
|
|
12597
|
+
var rowSelection = {
|
|
12598
|
+
selectedRowKeys: selectedRowKeys,
|
|
12599
|
+
onChange: onChangeSelectedKeys
|
|
12600
|
+
};
|
|
12601
|
+
console.debug('选择订单商品-dataSource', dataSource, selectedRowKeys);
|
|
12602
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
12603
|
+
type: "link",
|
|
12604
|
+
onClick: openModal
|
|
12605
|
+
}, "\u9009\u62E9\u8BA2\u5355\u5546\u54C1"), /*#__PURE__*/React.createElement(Modal, {
|
|
12606
|
+
title: "\u8BA2\u5355\u5546\u54C1",
|
|
12607
|
+
visible: tradeGoodsVisible,
|
|
12608
|
+
footer: null,
|
|
12609
|
+
onCancel: closeModal
|
|
12610
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
12611
|
+
rowKey: "sku",
|
|
12612
|
+
rowSelection: rowSelection,
|
|
12613
|
+
columns: columns,
|
|
12614
|
+
dataSource: dataSource,
|
|
12615
|
+
pagination: false,
|
|
12616
|
+
scroll: {
|
|
12617
|
+
x: 500,
|
|
12618
|
+
y: 500
|
|
12619
|
+
}
|
|
12620
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u4EE5\u9009\u62E9(", selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length, "/", dataSource === null || dataSource === void 0 ? void 0 : dataSource.length, ")")));
|
|
12621
|
+
};
|
|
12485
12622
|
var GoodItem$1 = function GoodItem(props) {
|
|
12486
|
-
var _ref;
|
|
12487
12623
|
var _props$value = props.value,
|
|
12488
12624
|
value = _props$value === void 0 ? [] : _props$value,
|
|
12489
12625
|
type = props.type,
|
|
@@ -12517,8 +12653,10 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12517
12653
|
companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
|
|
12518
12654
|
onSelect = props.onSelect,
|
|
12519
12655
|
onDelete = props.onDelete,
|
|
12520
|
-
onModeChange = props.onModeChange
|
|
12656
|
+
onModeChange = props.onModeChange,
|
|
12657
|
+
tradeGoods = props.tradeGoods;
|
|
12521
12658
|
var refModal = useRef();
|
|
12659
|
+
console.debug('表格数据', value);
|
|
12522
12660
|
var handleDelete = function handleDelete(record, index) {
|
|
12523
12661
|
onDelete === null || onDelete === void 0 ? void 0 : onDelete(value[index]);
|
|
12524
12662
|
var newList = _toConsumableArray(value).filter(function (item, i) {
|
|
@@ -12526,13 +12664,19 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12526
12664
|
});
|
|
12527
12665
|
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(newList));
|
|
12528
12666
|
};
|
|
12529
|
-
var
|
|
12530
|
-
|
|
12531
|
-
selectedRowKeys =
|
|
12532
|
-
setSelectedRowKeys =
|
|
12667
|
+
var _useState3 = useState([]),
|
|
12668
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12669
|
+
selectedRowKeys = _useState4[0],
|
|
12670
|
+
setSelectedRowKeys = _useState4[1];
|
|
12533
12671
|
useEffect(function () {
|
|
12534
12672
|
setSelectedRowKeys([]);
|
|
12535
12673
|
}, [tableSelect, selectType]);
|
|
12674
|
+
// TODO: 商品订单中以选中商品
|
|
12675
|
+
var selectedGoods = useMemo(function () {
|
|
12676
|
+
return value === null || value === void 0 ? void 0 : value.map(function (v) {
|
|
12677
|
+
return v.sku;
|
|
12678
|
+
});
|
|
12679
|
+
}, [value]);
|
|
12536
12680
|
var updateHandle = function updateHandle(val, index, columnType) {
|
|
12537
12681
|
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
12538
12682
|
value[index][columnType] = val;
|
|
@@ -12566,6 +12710,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12566
12710
|
};
|
|
12567
12711
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
12568
12712
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
12713
|
+
var operate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
12569
12714
|
return function (type) {
|
|
12570
12715
|
var columns = [];
|
|
12571
12716
|
switch (type) {
|
|
@@ -13063,6 +13208,15 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13063
13208
|
}];
|
|
13064
13209
|
}
|
|
13065
13210
|
break;
|
|
13211
|
+
case 'BS_E3_REISSUE_GOODS':
|
|
13212
|
+
{
|
|
13213
|
+
columns = getBsE3ReissueGoodColumns({
|
|
13214
|
+
disabled: disabled,
|
|
13215
|
+
updateHandle: updateHandle,
|
|
13216
|
+
operate: operate
|
|
13217
|
+
});
|
|
13218
|
+
}
|
|
13219
|
+
break;
|
|
13066
13220
|
default:
|
|
13067
13221
|
columns = [{
|
|
13068
13222
|
dataIndex: 'mark',
|
|
@@ -13202,6 +13356,19 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13202
13356
|
}
|
|
13203
13357
|
return columnList;
|
|
13204
13358
|
}, [showHeader, value, disabled]);
|
|
13359
|
+
var orderColumns = useMemo(function () {
|
|
13360
|
+
var columns = COLUMNS_MAP('', false)(type);
|
|
13361
|
+
return [{
|
|
13362
|
+
dataIndex: '',
|
|
13363
|
+
title: '序号',
|
|
13364
|
+
align: 'center',
|
|
13365
|
+
ellipsis: true,
|
|
13366
|
+
width: 50,
|
|
13367
|
+
render: function render(val, record, index) {
|
|
13368
|
+
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
13369
|
+
}
|
|
13370
|
+
}].concat(_toConsumableArray(columns));
|
|
13371
|
+
}, []);
|
|
13205
13372
|
var onSubmit = function onSubmit(list) {
|
|
13206
13373
|
var newList = [];
|
|
13207
13374
|
if (['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -13220,12 +13387,36 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13220
13387
|
});
|
|
13221
13388
|
} else if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
13222
13389
|
newList = list.map(function (item) {
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13390
|
+
var specNo = item.specNo,
|
|
13391
|
+
specId = item.specId,
|
|
13392
|
+
goodName = item.goodName,
|
|
13393
|
+
goodShortName = item.goodShortName,
|
|
13394
|
+
goodPicUrl = item.goodPicUrl,
|
|
13395
|
+
goodNo = item.goodNo,
|
|
13396
|
+
goodId = item.goodId,
|
|
13397
|
+
retailPrice = item.retailPrice;
|
|
13398
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13399
|
+
sku: specNo,
|
|
13400
|
+
skuId: specId,
|
|
13401
|
+
goodsName: goodName,
|
|
13402
|
+
goodsShortName: goodShortName,
|
|
13403
|
+
picPath: goodPicUrl,
|
|
13404
|
+
goodsSn: goodNo,
|
|
13405
|
+
goodsId: goodId,
|
|
13406
|
+
goodsPrice: retailPrice,
|
|
13407
|
+
shopPrice: retailPrice,
|
|
13408
|
+
sharePayment: '',
|
|
13409
|
+
sharePrice: '',
|
|
13410
|
+
payment: '',
|
|
13411
|
+
tcSku: '',
|
|
13412
|
+
tcGoodsNumber: '',
|
|
13413
|
+
taoCanSingleSl: '',
|
|
13414
|
+
isGift: '',
|
|
13415
|
+
uuid: uuid(),
|
|
13416
|
+
canDelete: true,
|
|
13417
|
+
goodsNumber: 1,
|
|
13418
|
+
canUpdateNumber: canUpdateNumber
|
|
13419
|
+
});
|
|
13229
13420
|
});
|
|
13230
13421
|
} else {
|
|
13231
13422
|
newList = list.map(function (item) {
|
|
@@ -13286,7 +13477,12 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13286
13477
|
}, showModeBtn && /*#__PURE__*/React.createElement(Checkbox, {
|
|
13287
13478
|
checked: isStrict,
|
|
13288
13479
|
onChange: handleCheckboxChange
|
|
13289
|
-
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !(
|
|
13480
|
+
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && /*#__PURE__*/React.createElement(SelectTradeGoods, {
|
|
13481
|
+
columns: orderColumns,
|
|
13482
|
+
dataSource: tradeGoods.originDataSource,
|
|
13483
|
+
selectedRowKeys: selectedGoods,
|
|
13484
|
+
onChangeSelectedKeys: tradeGoods.selectedGoodsChange
|
|
13485
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
13290
13486
|
type: "link",
|
|
13291
13487
|
onClick: handleChangeGoods
|
|
13292
13488
|
}, "\u9009\u62E9\u5546\u54C1"), otherOperations), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
|
|
@@ -14859,11 +15055,12 @@ var typeMap$1 = {
|
|
|
14859
15055
|
formatDefaultField: {
|
|
14860
15056
|
money: 'orderPrice',
|
|
14861
15057
|
share: 'sharePrice'
|
|
14862
|
-
}
|
|
15058
|
+
},
|
|
15059
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
14863
15060
|
}
|
|
14864
15061
|
};
|
|
14865
15062
|
var wdtReissue = function wdtReissue(props) {
|
|
14866
|
-
var _value$wdtSystemOrder, _typeMap$type7, _typeMap$
|
|
15063
|
+
var _value$wdtSystemOrder, _typeMap$type7, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s5, _typeMap$type28, _typeMap$type29, _typeMap$type30;
|
|
14867
15064
|
var value = props.value,
|
|
14868
15065
|
onChange = props.onChange,
|
|
14869
15066
|
_props$reasonList = props.reasonList,
|
|
@@ -14885,7 +15082,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14885
15082
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$1[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$1[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|
|
14886
15083
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
14887
15084
|
getOrderFlag.current = true;
|
|
14888
|
-
|
|
15085
|
+
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$1[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
|
|
14889
15086
|
}
|
|
14890
15087
|
return;
|
|
14891
15088
|
}, [value]);
|
|
@@ -14903,13 +15100,30 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14903
15100
|
}
|
|
14904
15101
|
return;
|
|
14905
15102
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrderNo]]);
|
|
14906
|
-
|
|
15103
|
+
// const getWdtOrderList = async (orderNo: string) => {
|
|
15104
|
+
// wdtUtils.getWdtOrderListSingleton(orderNo).then(data => {
|
|
15105
|
+
// const orders = data?.trades || [];
|
|
15106
|
+
// const showOrderInfo = orders.map(({ billNo, billType, billTag }: any) => {
|
|
15107
|
+
// return { billNo, billType, billTag }
|
|
15108
|
+
// });
|
|
15109
|
+
// onChange({
|
|
15110
|
+
// ...value,
|
|
15111
|
+
// [typeMap[type]?.systemOrder]: {
|
|
15112
|
+
// ...value[typeMap[type]?.systemOrder],
|
|
15113
|
+
// showOrderInfo,
|
|
15114
|
+
// orders,
|
|
15115
|
+
// },
|
|
15116
|
+
// });
|
|
15117
|
+
// })
|
|
15118
|
+
// };
|
|
15119
|
+
var getOrderList = /*#__PURE__*/function () {
|
|
14907
15120
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
15121
|
+
var _typeMap$type8;
|
|
14908
15122
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14909
15123
|
while (1) switch (_context.prev = _context.next) {
|
|
14910
15124
|
case 0:
|
|
14911
|
-
|
|
14912
|
-
var _typeMap$
|
|
15125
|
+
(_typeMap$type8 = typeMap$1[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.getOrderList(orderNo).then(function (data) {
|
|
15126
|
+
var _typeMap$type9, _typeMap$type10;
|
|
14913
15127
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
14914
15128
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
14915
15129
|
var billNo = _ref2.billNo,
|
|
@@ -14921,7 +15135,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14921
15135
|
billTag: billTag
|
|
14922
15136
|
};
|
|
14923
15137
|
});
|
|
14924
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
15138
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type9 = typeMap$1[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type10 = typeMap$1[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.systemOrder]), {}, {
|
|
14925
15139
|
showOrderInfo: showOrderInfo,
|
|
14926
15140
|
orders: orders
|
|
14927
15141
|
}))));
|
|
@@ -14932,43 +15146,43 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14932
15146
|
}
|
|
14933
15147
|
}, _callee);
|
|
14934
15148
|
}));
|
|
14935
|
-
return function
|
|
15149
|
+
return function getOrderList(_x) {
|
|
14936
15150
|
return _ref.apply(this, arguments);
|
|
14937
15151
|
};
|
|
14938
15152
|
}();
|
|
14939
15153
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
14940
|
-
var _value$typeMap$type$t2, _typeMap$
|
|
15154
|
+
var _value$typeMap$type$t2, _typeMap$type11, _typeMap$type12;
|
|
14941
15155
|
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
14942
|
-
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
15156
|
+
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type11 = typeMap$1[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) return;
|
|
14943
15157
|
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
14944
15158
|
var newValue = _objectSpread2({}, value);
|
|
14945
|
-
newValue[(_typeMap$
|
|
15159
|
+
newValue[(_typeMap$type12 = typeMap$1[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.typeName] = val;
|
|
14946
15160
|
if (typeName === '1') {
|
|
14947
|
-
var _typeMap$
|
|
14948
|
-
newValue[(_typeMap$
|
|
15161
|
+
var _typeMap$type13;
|
|
15162
|
+
newValue[(_typeMap$type13 = typeMap$1[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = getGoodDetails({
|
|
14949
15163
|
mode: isStrict
|
|
14950
15164
|
});
|
|
14951
15165
|
} else if (typeName === '2') {
|
|
14952
|
-
var _typeMap$
|
|
15166
|
+
var _typeMap$type14;
|
|
14953
15167
|
// 切换到非原单,清空列表
|
|
14954
|
-
newValue[(_typeMap$
|
|
15168
|
+
newValue[(_typeMap$type14 = typeMap$1[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key] = [];
|
|
14955
15169
|
}
|
|
14956
15170
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
14957
15171
|
};
|
|
14958
15172
|
var handleModeChange = function handleModeChange(mode) {
|
|
14959
|
-
var _value$typeMap$type$t3, _typeMap$
|
|
14960
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
15173
|
+
var _value$typeMap$type$t3, _typeMap$type15, _typeMap$type16;
|
|
15174
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0]) === '1';
|
|
14961
15175
|
setIsStrict(mode);
|
|
14962
15176
|
if (!isOriginalOrder) return;
|
|
14963
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
15177
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.key, getGoodDetails({
|
|
14964
15178
|
mode: mode
|
|
14965
15179
|
}))));
|
|
14966
15180
|
};
|
|
14967
15181
|
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
14968
|
-
var _typeMap$
|
|
15182
|
+
var _typeMap$type17, _typeMap$type18, _order$goodDetails;
|
|
14969
15183
|
var mode = _ref3.mode;
|
|
14970
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
14971
|
-
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15184
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$1[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrder];
|
|
15185
|
+
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$1[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrderNo];
|
|
14972
15186
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
14973
15187
|
return order.tradeNo === systemOrderNo;
|
|
14974
15188
|
});
|
|
@@ -14979,31 +15193,31 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14979
15193
|
}) : goodDetails;
|
|
14980
15194
|
};
|
|
14981
15195
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
14982
|
-
var _typeMap$
|
|
15196
|
+
var _typeMap$type19;
|
|
14983
15197
|
var newValue = _objectSpread2({}, value);
|
|
14984
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
14985
|
-
var _typeMap$
|
|
14986
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
14987
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15198
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type19 = typeMap$1[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.key)] = (val || []).map(function (item) {
|
|
15199
|
+
var _typeMap$type20, _typeMap$type21;
|
|
15200
|
+
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type20 = typeMap$1[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.formatDefaultField.money)] = 0;
|
|
15201
|
+
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type21 = typeMap$1[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.formatDefaultField.share)] = 0;
|
|
14988
15202
|
return item;
|
|
14989
15203
|
});
|
|
14990
15204
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
14991
15205
|
};
|
|
14992
15206
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
14993
|
-
var _typeMap$
|
|
15207
|
+
var _typeMap$type22, _value$typeMap$type$t4, _typeMap$type23;
|
|
14994
15208
|
var newValue = _objectSpread2({}, value);
|
|
14995
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
14996
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$
|
|
14997
|
-
var _typeMap$
|
|
14998
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15209
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo)] = val;
|
|
15210
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
15211
|
+
var _typeMap$type24;
|
|
15212
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = [];
|
|
14999
15213
|
}
|
|
15000
15214
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15001
15215
|
};
|
|
15002
15216
|
//显示选择商品按钮 原单换不显示选择商品
|
|
15003
15217
|
var showChangeBtn = useMemo(function () {
|
|
15004
|
-
var _typeMap$
|
|
15005
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15006
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15218
|
+
var _typeMap$type25;
|
|
15219
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]);
|
|
15220
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo]]);
|
|
15007
15221
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
15008
15222
|
gutter: 8,
|
|
15009
15223
|
wrap: true
|
|
@@ -15021,12 +15235,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15021
15235
|
},
|
|
15022
15236
|
disabled: disabled,
|
|
15023
15237
|
allowClear: false,
|
|
15024
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15238
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo)],
|
|
15025
15239
|
onChange: function onChange(val) {
|
|
15026
15240
|
return changeSystemOrderHandle(val);
|
|
15027
15241
|
},
|
|
15028
15242
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
15029
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
15243
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
15030
15244
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
15031
15245
|
key: item.billNo,
|
|
15032
15246
|
value: item.billNo,
|
|
@@ -15047,7 +15261,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15047
15261
|
disabled: disabled,
|
|
15048
15262
|
allowClear: false,
|
|
15049
15263
|
options: reasonList,
|
|
15050
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15264
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type29 = typeMap$1[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.typeName)],
|
|
15051
15265
|
onChange: function onChange(val) {
|
|
15052
15266
|
return changeTypeHandle(val);
|
|
15053
15267
|
}
|
|
@@ -15059,7 +15273,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15059
15273
|
canUpdateNumber: showChangeBtn,
|
|
15060
15274
|
showChangeBtn: showChangeBtn,
|
|
15061
15275
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
15062
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15276
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type30 = typeMap$1[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.key)],
|
|
15063
15277
|
onChange: function onChange(val) {
|
|
15064
15278
|
return changeGoodHandle(val);
|
|
15065
15279
|
},
|
|
@@ -15839,4 +16053,230 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
15839
16053
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
15840
16054
|
};
|
|
15841
16055
|
|
|
15842
|
-
|
|
16056
|
+
var _excluded$k = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
16057
|
+
var typeMap$2 = {
|
|
16058
|
+
BS_E3_REISSUE_GOODS: {
|
|
16059
|
+
key: 'bsE3ReissueGoods',
|
|
16060
|
+
typeName: 'bsE3ReissueType',
|
|
16061
|
+
systemOrder: 'bsE3SystemOrder',
|
|
16062
|
+
systemOrderNo: 'bsE3SystemOrderNo',
|
|
16063
|
+
getOrderList: bsE3Utils.getBsE3OrderListSingleton
|
|
16064
|
+
}
|
|
16065
|
+
};
|
|
16066
|
+
var bsE3Reissue = function bsE3Reissue(props) {
|
|
16067
|
+
var _typeMap$type7, _typeMap$type23, _typeMap$type25, _typeMap$type26, _value$typeMap$type$s5, _typeMap$type27, _typeMap$type28, _typeMap$type29;
|
|
16068
|
+
var value = props.value,
|
|
16069
|
+
onChange = props.onChange,
|
|
16070
|
+
_props$reasonList = props.reasonList,
|
|
16071
|
+
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16072
|
+
disabled = props.disabled,
|
|
16073
|
+
type = props.type,
|
|
16074
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
16075
|
+
var getOrderFlag = useRef(false);
|
|
16076
|
+
var _useState = useState(false),
|
|
16077
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16078
|
+
isStrict = _useState2[0],
|
|
16079
|
+
setIsStrict = _useState2[1];
|
|
16080
|
+
console.debug('bsE3Reissue', value);
|
|
16081
|
+
useEffect(function () {
|
|
16082
|
+
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
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)) {
|
|
16084
|
+
var _value$typeMap$type$s4, _typeMap$type3;
|
|
16085
|
+
getOrderFlag.current = true;
|
|
16086
|
+
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$2[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
|
|
16087
|
+
}
|
|
16088
|
+
return;
|
|
16089
|
+
}, [value]);
|
|
16090
|
+
useEffect(function () {
|
|
16091
|
+
var _typeMap$type4;
|
|
16092
|
+
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.systemOrderNo];
|
|
16093
|
+
if (systemOrderNo) {
|
|
16094
|
+
var _value$typeMap$type$t, _typeMap$type5;
|
|
16095
|
+
if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0])) {
|
|
16096
|
+
var _typeMap$type6;
|
|
16097
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type6 = typeMap$2[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.key, getGoodDetails({
|
|
16098
|
+
mode: isStrict
|
|
16099
|
+
}))));
|
|
16100
|
+
}
|
|
16101
|
+
}
|
|
16102
|
+
return;
|
|
16103
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrderNo]]);
|
|
16104
|
+
var getOrderList = /*#__PURE__*/function () {
|
|
16105
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
16106
|
+
var _typeMap$type8;
|
|
16107
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16108
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16109
|
+
case 0:
|
|
16110
|
+
(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.getOrderList(orderNo).then(function (data) {
|
|
16111
|
+
var _typeMap$type9, _typeMap$type10;
|
|
16112
|
+
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
16113
|
+
var showOrderInfo = orders.map(function (_ref2) {
|
|
16114
|
+
var billNo = _ref2.billNo,
|
|
16115
|
+
billType = _ref2.billType,
|
|
16116
|
+
billTag = _ref2.billTag;
|
|
16117
|
+
return {
|
|
16118
|
+
billNo: billNo,
|
|
16119
|
+
billType: billType,
|
|
16120
|
+
billTag: billTag
|
|
16121
|
+
};
|
|
16122
|
+
});
|
|
16123
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type9 = typeMap$2[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.systemOrder]), {}, {
|
|
16124
|
+
showOrderInfo: showOrderInfo,
|
|
16125
|
+
orders: orders
|
|
16126
|
+
}))));
|
|
16127
|
+
});
|
|
16128
|
+
case 1:
|
|
16129
|
+
case "end":
|
|
16130
|
+
return _context.stop();
|
|
16131
|
+
}
|
|
16132
|
+
}, _callee);
|
|
16133
|
+
}));
|
|
16134
|
+
return function getOrderList(_x) {
|
|
16135
|
+
return _ref.apply(this, arguments);
|
|
16136
|
+
};
|
|
16137
|
+
}();
|
|
16138
|
+
var changeTypeHandle = function changeTypeHandle(val) {
|
|
16139
|
+
var _typeMap$type11;
|
|
16140
|
+
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
16141
|
+
// if (typeName === value?.[typeMap[type]?.typeName]?.[0]) return
|
|
16142
|
+
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
16143
|
+
var newValue = _objectSpread2({}, value);
|
|
16144
|
+
newValue[(_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName] = val;
|
|
16145
|
+
if (typeName === '1') {
|
|
16146
|
+
var _typeMap$type12;
|
|
16147
|
+
newValue[(_typeMap$type12 = typeMap$2[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key] = getGoodDetails({
|
|
16148
|
+
mode: isStrict
|
|
16149
|
+
});
|
|
16150
|
+
} else if (typeName === '2') {
|
|
16151
|
+
var _typeMap$type13;
|
|
16152
|
+
// 切换到非原单,清空列表
|
|
16153
|
+
newValue[(_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = [];
|
|
16154
|
+
}
|
|
16155
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16156
|
+
};
|
|
16157
|
+
var handleModeChange = function handleModeChange(mode) {
|
|
16158
|
+
var _value$typeMap$type$t2, _typeMap$type14, _typeMap$type15;
|
|
16159
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type14 = typeMap$2[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0]) === '1';
|
|
16160
|
+
setIsStrict(mode);
|
|
16161
|
+
if (!isOriginalOrder) return;
|
|
16162
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key, getGoodDetails({
|
|
16163
|
+
mode: mode
|
|
16164
|
+
}))));
|
|
16165
|
+
};
|
|
16166
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
16167
|
+
var _typeMap$type16, _typeMap$type17, _order$orderDetailGet;
|
|
16168
|
+
var mode = _ref3.mode;
|
|
16169
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.systemOrder];
|
|
16170
|
+
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrderNo];
|
|
16171
|
+
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
16172
|
+
return order.orderSn === systemOrderNo;
|
|
16173
|
+
});
|
|
16174
|
+
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$orderDetailGet = order.orderDetailGets) === null || _order$orderDetailGet === void 0 ? void 0 : _order$orderDetailGet.length) ? updateBsE3GoodsHandle([order]) : [];
|
|
16175
|
+
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
16176
|
+
return mode ? goodDetails.filter(function (goodItem) {
|
|
16177
|
+
return !orderNo || goodItem.originalOrderSn === orderNo;
|
|
16178
|
+
}) : goodDetails;
|
|
16179
|
+
};
|
|
16180
|
+
var changeGoodHandle = function changeGoodHandle(val) {
|
|
16181
|
+
var _typeMap$type18;
|
|
16182
|
+
var newValue = _objectSpread2({}, value);
|
|
16183
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key)] = val || [];
|
|
16184
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16185
|
+
};
|
|
16186
|
+
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
16187
|
+
var _typeMap$type19, _value$typeMap$type$t3, _typeMap$type20;
|
|
16188
|
+
var newValue = _objectSpread2({}, value);
|
|
16189
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo)] = val;
|
|
16190
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
16191
|
+
var _typeMap$type21;
|
|
16192
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key)] = [];
|
|
16193
|
+
}
|
|
16194
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16195
|
+
};
|
|
16196
|
+
//显示选择商品按钮 原单换不显示选择商品
|
|
16197
|
+
var showChangeBtn = useMemo(function () {
|
|
16198
|
+
var _typeMap$type22;
|
|
16199
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo]);
|
|
16200
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderNo]]);
|
|
16201
|
+
var selectedGoodsChange = useCallback(function (skuList) {
|
|
16202
|
+
var _typeMap$type24, _getGoodDetails;
|
|
16203
|
+
var newValue = _objectSpread2({}, value);
|
|
16204
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = (_getGoodDetails = getGoodDetails({
|
|
16205
|
+
mode: isStrict
|
|
16206
|
+
})) === null || _getGoodDetails === void 0 ? void 0 : _getGoodDetails.filter(function (item) {
|
|
16207
|
+
return skuList.includes(item.sku);
|
|
16208
|
+
});
|
|
16209
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16210
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)], isStrict]);
|
|
16211
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
16212
|
+
gutter: 8,
|
|
16213
|
+
wrap: true
|
|
16214
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
16215
|
+
className: "gutter-row",
|
|
16216
|
+
xs: {
|
|
16217
|
+
span: 11
|
|
16218
|
+
},
|
|
16219
|
+
sm: {
|
|
16220
|
+
span: 6
|
|
16221
|
+
}
|
|
16222
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
16223
|
+
style: {
|
|
16224
|
+
marginBottom: '8px'
|
|
16225
|
+
},
|
|
16226
|
+
disabled: disabled,
|
|
16227
|
+
allowClear: false,
|
|
16228
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)],
|
|
16229
|
+
onChange: function onChange(val) {
|
|
16230
|
+
return changeSystemOrderHandle(val);
|
|
16231
|
+
},
|
|
16232
|
+
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
16233
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
16234
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
16235
|
+
key: item.billNo,
|
|
16236
|
+
value: item.billNo,
|
|
16237
|
+
label: item.billNo
|
|
16238
|
+
}, item.billNo);
|
|
16239
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
16240
|
+
className: "gutter-row",
|
|
16241
|
+
xs: {
|
|
16242
|
+
span: 11
|
|
16243
|
+
},
|
|
16244
|
+
sm: {
|
|
16245
|
+
span: 6
|
|
16246
|
+
}
|
|
16247
|
+
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
16248
|
+
style: {
|
|
16249
|
+
marginBottom: '8px'
|
|
16250
|
+
},
|
|
16251
|
+
disabled: disabled,
|
|
16252
|
+
allowClear: false,
|
|
16253
|
+
options: reasonList,
|
|
16254
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName)],
|
|
16255
|
+
onChange: function onChange(val) {
|
|
16256
|
+
return changeTypeHandle(val);
|
|
16257
|
+
}
|
|
16258
|
+
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
16259
|
+
key: 'reissueGoods'
|
|
16260
|
+
}, other), {}, {
|
|
16261
|
+
type: type,
|
|
16262
|
+
disabled: disabled,
|
|
16263
|
+
canUpdateNumber: showChangeBtn,
|
|
16264
|
+
showChangeBtn: showChangeBtn,
|
|
16265
|
+
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
16266
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.key)],
|
|
16267
|
+
onChange: function onChange(val) {
|
|
16268
|
+
return changeGoodHandle(val);
|
|
16269
|
+
},
|
|
16270
|
+
onModeChange: handleModeChange,
|
|
16271
|
+
showModeBtn: false,
|
|
16272
|
+
isStrict: isStrict,
|
|
16273
|
+
tradeGoods: {
|
|
16274
|
+
originDataSource: getGoodDetails({
|
|
16275
|
+
mode: isStrict
|
|
16276
|
+
}),
|
|
16277
|
+
selectedGoodsChange: selectedGoodsChange
|
|
16278
|
+
}
|
|
16279
|
+
})));
|
|
16280
|
+
};
|
|
16281
|
+
|
|
16282
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };
|