@kmkf-fe-packages/basic-components 1.19.8-beta.2 → 1.19.8-beta.23
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
CHANGED
|
@@ -3,370 +3,384 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData,
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, BS_E3_ORDER_STATUS_MAP, updateWdtGoodsHandle, updateBsE3GoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
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
|
-
};
|
|
236
|
-
}
|
|
237
|
-
function doneResult() {
|
|
238
|
-
return {
|
|
239
|
-
value: undefined,
|
|
240
|
-
done: !0
|
|
241
|
-
};
|
|
241
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
242
242
|
}
|
|
243
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
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);
|
|
361
371
|
}
|
|
362
|
-
function
|
|
372
|
+
function _toPropertyKey(t) {
|
|
373
|
+
var i = _toPrimitive(t, "string");
|
|
374
|
+
return "symbol" == typeof i ? i : String(i);
|
|
375
|
+
}
|
|
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({
|
|
@@ -953,18 +953,10 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
953
953
|
_useState2 = _slicedToArray(_useState, 2),
|
|
954
954
|
uploading = _useState2[0],
|
|
955
955
|
setUploading = _useState2[1];
|
|
956
|
-
var _useState3 = useState(
|
|
956
|
+
var _useState3 = useState(true),
|
|
957
957
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
var _useState5 = useState(''),
|
|
961
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
962
|
-
currentPreviewImg = _useState6[0],
|
|
963
|
-
setCurrentPreviewImg = _useState6[1];
|
|
964
|
-
var _useState7 = useState(true),
|
|
965
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
966
|
-
pasteDefaultStates = _useState8[0],
|
|
967
|
-
setPasteDefaultStates = _useState8[1];
|
|
958
|
+
pasteDefaultStates = _useState4[0],
|
|
959
|
+
setPasteDefaultStates = _useState4[1];
|
|
968
960
|
useEffect(function () {
|
|
969
961
|
valueRef.current = value;
|
|
970
962
|
}, [value]);
|
|
@@ -1172,21 +1164,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1172
1164
|
beforeUpload: beforeUpload
|
|
1173
1165
|
}, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
1174
1166
|
className: "addBtn"
|
|
1175
|
-
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText)))
|
|
1176
|
-
width: 0,
|
|
1177
|
-
style: {
|
|
1178
|
-
display: visible ? '' : 'none'
|
|
1179
|
-
},
|
|
1180
|
-
src: currentPreviewImg,
|
|
1181
|
-
preview: {
|
|
1182
|
-
visible: visible,
|
|
1183
|
-
src: "".concat(currentPreviewImg),
|
|
1184
|
-
onVisibleChange: function onVisibleChange(value) {
|
|
1185
|
-
setCurrentPreviewImg('');
|
|
1186
|
-
setVisible(value);
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
})));
|
|
1167
|
+
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText)))));
|
|
1190
1168
|
};
|
|
1191
1169
|
var index = /*#__PURE__*/forwardRef(ApaasUploadAsync);
|
|
1192
1170
|
|
|
@@ -10969,7 +10947,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10969
10947
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10970
10948
|
changeIndex = _useState2[0],
|
|
10971
10949
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
10972
|
-
var
|
|
10950
|
+
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
10973
10951
|
useEffect(function () {
|
|
10974
10952
|
//没有值塞个默认值
|
|
10975
10953
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -11000,7 +10978,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11000
10978
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
11001
10979
|
changeOrderInfo[type] = val;
|
|
11002
10980
|
changeOrderInfo['sendId'] = option.value;
|
|
11003
|
-
if (platformType === 'wdt' && type === 'sendName') {
|
|
10981
|
+
if ((platformType === 'wdt' || platformType === 'bsE3') && type === 'sendName') {
|
|
11004
10982
|
changeOrderInfo['sendSnapshotName'] = option.label;
|
|
11005
10983
|
}
|
|
11006
10984
|
var newList = _toConsumableArray(value);
|
|
@@ -11083,7 +11061,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11083
11061
|
return changeInputHandle(e.target.value, 'sendId');
|
|
11084
11062
|
},
|
|
11085
11063
|
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
|
|
11086
|
-
}), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' ? /*#__PURE__*/React.createElement(Select, {
|
|
11064
|
+
}), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' || platformType === 'bsE3' ? /*#__PURE__*/React.createElement(Select, {
|
|
11087
11065
|
style: {
|
|
11088
11066
|
minWidth: '100px',
|
|
11089
11067
|
maxWidth: '180px'
|
|
@@ -11091,7 +11069,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11091
11069
|
disabled: disabled,
|
|
11092
11070
|
placeholder: "\u53D1\u8D27\u4ED3\u540D\u79F0",
|
|
11093
11071
|
showSearch: true,
|
|
11094
|
-
options:
|
|
11072
|
+
options: sendOptions,
|
|
11095
11073
|
filterOption: filterOption,
|
|
11096
11074
|
value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName) || null,
|
|
11097
11075
|
onChange: function onChange(value, option) {
|
|
@@ -12083,9 +12061,9 @@ var getTableData$1 = function getTableData(_ref, formData) {
|
|
|
12083
12061
|
var current = _ref.current,
|
|
12084
12062
|
pageSize = _ref.pageSize;
|
|
12085
12063
|
var data = {
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12064
|
+
goodNo: formData.goodNo || null,
|
|
12065
|
+
goodName: formData.goodName || null,
|
|
12066
|
+
skuCode: formData.skuCode || null,
|
|
12089
12067
|
skuId: formData.skuId || null
|
|
12090
12068
|
};
|
|
12091
12069
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
@@ -12122,43 +12100,47 @@ var columns$2 = [{
|
|
|
12122
12100
|
}
|
|
12123
12101
|
}, index + 1);
|
|
12124
12102
|
},
|
|
12125
|
-
width:
|
|
12103
|
+
width: 80
|
|
12126
12104
|
}, {
|
|
12127
12105
|
dataIndex: 'specNo',
|
|
12128
12106
|
title: "SKU",
|
|
12129
12107
|
ellipsis: true,
|
|
12130
|
-
width:
|
|
12108
|
+
width: 200
|
|
12131
12109
|
}, {
|
|
12132
12110
|
dataIndex: 'specId',
|
|
12133
12111
|
title: "SKU ID",
|
|
12134
12112
|
ellipsis: true,
|
|
12135
|
-
width:
|
|
12113
|
+
width: 80
|
|
12136
12114
|
}, {
|
|
12137
12115
|
dataIndex: 'goodName',
|
|
12138
12116
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
12139
12117
|
ellipsis: true,
|
|
12140
|
-
width:
|
|
12118
|
+
width: 250
|
|
12141
12119
|
}, {
|
|
12142
12120
|
dataIndex: 'goodShortName',
|
|
12143
12121
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12144
12122
|
ellipsis: true,
|
|
12145
|
-
width:
|
|
12146
|
-
},
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
12123
|
+
width: 250
|
|
12124
|
+
},
|
|
12125
|
+
// {
|
|
12126
|
+
// dataIndex: 'goodPicUrl',
|
|
12127
|
+
// title: `商品图片`,
|
|
12128
|
+
// ellipsis: true,
|
|
12129
|
+
// width: 100,
|
|
12130
|
+
// render: (picUrl: string) => {
|
|
12131
|
+
// return (
|
|
12132
|
+
// <img
|
|
12133
|
+
// style={{
|
|
12134
|
+
// width: '40px',
|
|
12135
|
+
// height: '40px',
|
|
12136
|
+
// objectFit: 'contain',
|
|
12137
|
+
// }}
|
|
12138
|
+
// src={picUrl}
|
|
12139
|
+
// ></img>
|
|
12140
|
+
// );
|
|
12141
|
+
// },
|
|
12142
|
+
// },
|
|
12143
|
+
{
|
|
12162
12144
|
dataIndex: 'goodNo',
|
|
12163
12145
|
title: "\u8D27\u53F7",
|
|
12164
12146
|
ellipsis: true,
|
|
@@ -12167,7 +12149,7 @@ var columns$2 = [{
|
|
|
12167
12149
|
dataIndex: 'goodId',
|
|
12168
12150
|
title: "\u8D27\u53F7ID",
|
|
12169
12151
|
ellipsis: true,
|
|
12170
|
-
width:
|
|
12152
|
+
width: 100
|
|
12171
12153
|
}, {
|
|
12172
12154
|
dataIndex: 'colorName',
|
|
12173
12155
|
title: "\u989C\u8272\u540D\u79F0",
|
|
@@ -12177,7 +12159,7 @@ var columns$2 = [{
|
|
|
12177
12159
|
dataIndex: 'colorCode',
|
|
12178
12160
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
12179
12161
|
ellipsis: true,
|
|
12180
|
-
width:
|
|
12162
|
+
width: 100
|
|
12181
12163
|
}, {
|
|
12182
12164
|
dataIndex: 'sizeName',
|
|
12183
12165
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
@@ -12187,12 +12169,12 @@ var columns$2 = [{
|
|
|
12187
12169
|
dataIndex: 'sizeCode',
|
|
12188
12170
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12189
12171
|
ellipsis: true,
|
|
12190
|
-
width:
|
|
12172
|
+
width: 100
|
|
12191
12173
|
}, {
|
|
12192
12174
|
dataIndex: 'brandName',
|
|
12193
12175
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
12194
12176
|
ellipsis: true,
|
|
12195
|
-
width:
|
|
12177
|
+
width: 100
|
|
12196
12178
|
}, {
|
|
12197
12179
|
dataIndex: 'marketPrice',
|
|
12198
12180
|
title: "\u5E02\u573A\u4EF7",
|
|
@@ -12449,7 +12431,7 @@ var columns$3 = [{
|
|
|
12449
12431
|
width: 150
|
|
12450
12432
|
}, {
|
|
12451
12433
|
dataIndex: 'goodsShortName',
|
|
12452
|
-
title: "\u5546\u54C1\u7B80\
|
|
12434
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12453
12435
|
width: 150
|
|
12454
12436
|
}, {
|
|
12455
12437
|
dataIndex: 'picPath',
|
|
@@ -12473,20 +12455,16 @@ var columns$3 = [{
|
|
|
12473
12455
|
width: 150
|
|
12474
12456
|
}, {
|
|
12475
12457
|
dataIndex: 'sizeName',
|
|
12476
|
-
title: "\u5C3A\
|
|
12458
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12477
12459
|
width: 150
|
|
12478
12460
|
}, {
|
|
12479
12461
|
dataIndex: 'sizeCode',
|
|
12480
|
-
title: "\u5C3A\
|
|
12462
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12481
12463
|
width: 150
|
|
12482
12464
|
}, {
|
|
12483
12465
|
dataIndex: 'brandName',
|
|
12484
12466
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
12485
12467
|
width: 150
|
|
12486
|
-
}, {
|
|
12487
|
-
dataIndex: 'shopPrice',
|
|
12488
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12489
|
-
width: 150
|
|
12490
12468
|
}, {
|
|
12491
12469
|
dataIndex: 'goodsNumber',
|
|
12492
12470
|
title: "\u5546\u54C1\u6570\u91CF",
|
|
@@ -12495,10 +12473,17 @@ var columns$3 = [{
|
|
|
12495
12473
|
dataIndex: 'goodsPrice',
|
|
12496
12474
|
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12497
12475
|
width: 150
|
|
12476
|
+
}, {
|
|
12477
|
+
dataIndex: 'shopPrice',
|
|
12478
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12479
|
+
width: 150
|
|
12498
12480
|
}, {
|
|
12499
12481
|
dataIndex: 'isGift',
|
|
12500
12482
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
12501
|
-
width: 150
|
|
12483
|
+
width: 150,
|
|
12484
|
+
render: function render(val) {
|
|
12485
|
+
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
12486
|
+
}
|
|
12502
12487
|
}];
|
|
12503
12488
|
var renderFieldMap = {
|
|
12504
12489
|
goodsNumber: function goodsNumber(_ref) {
|
|
@@ -12540,10 +12525,10 @@ var renderFieldMap = {
|
|
|
12540
12525
|
return function (val, record, index) {
|
|
12541
12526
|
var options = [{
|
|
12542
12527
|
label: '是',
|
|
12543
|
-
value:
|
|
12528
|
+
value: 1
|
|
12544
12529
|
}, {
|
|
12545
12530
|
label: '否',
|
|
12546
|
-
value:
|
|
12531
|
+
value: 0
|
|
12547
12532
|
}];
|
|
12548
12533
|
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
12549
12534
|
style: {
|
|
@@ -12553,8 +12538,11 @@ var renderFieldMap = {
|
|
|
12553
12538
|
value: val,
|
|
12554
12539
|
onChange: function onChange(value) {
|
|
12555
12540
|
return updateHandle(value, index, 'isGift');
|
|
12541
|
+
},
|
|
12542
|
+
getPopupContainer: function getPopupContainer() {
|
|
12543
|
+
return document.getElementById('bsE3ReissueGoods');
|
|
12556
12544
|
}
|
|
12557
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12545
|
+
}) : /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
12558
12546
|
};
|
|
12559
12547
|
}
|
|
12560
12548
|
};
|
|
@@ -12617,7 +12605,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
12617
12605
|
x: 500,
|
|
12618
12606
|
y: 500
|
|
12619
12607
|
}
|
|
12620
|
-
}), /*#__PURE__*/React.createElement("span", null, "\
|
|
12608
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length, "/", dataSource === null || dataSource === void 0 ? void 0 : dataSource.length, ")")));
|
|
12621
12609
|
};
|
|
12622
12610
|
var GoodItem$1 = function GoodItem(props) {
|
|
12623
12611
|
var _props$value = props.value,
|
|
@@ -13204,7 +13192,10 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13204
13192
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
13205
13193
|
align: 'center',
|
|
13206
13194
|
ellipsis: true,
|
|
13207
|
-
width: 100
|
|
13195
|
+
width: 100,
|
|
13196
|
+
render: function render(val) {
|
|
13197
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
13198
|
+
}
|
|
13208
13199
|
}];
|
|
13209
13200
|
}
|
|
13210
13201
|
break;
|
|
@@ -13485,7 +13476,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13485
13476
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
13486
13477
|
type: "link",
|
|
13487
13478
|
onClick: handleChangeGoods
|
|
13488
|
-
},
|
|
13479
|
+
}, ['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type) ? '选择百胜ERP商品' : '选择商品'), otherOperations), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
|
|
13489
13480
|
columns: newColumns,
|
|
13490
13481
|
dataSource: value,
|
|
13491
13482
|
rowKey: 'uuid',
|
|
@@ -14194,25 +14185,7 @@ var getBsE3OrderListSingleton = function getBsE3OrderListSingleton(orderNo) {
|
|
|
14194
14185
|
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
14195
14186
|
var _data$data, _data$data$orderList;
|
|
14196
14187
|
if (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$orderList = _data$data.orderList) === null || _data$data$orderList === void 0 ? void 0 : _data$data$orderList.length) {
|
|
14197
|
-
|
|
14198
|
-
data.data.orderList = (_filterBsE3Orders = filterBsE3Orders(data === null || data === void 0 ? void 0 : data.data, orderNo)) === null || _filterBsE3Orders === void 0 ? void 0 : _filterBsE3Orders.map(function (item) {
|
|
14199
|
-
var isSplit = item.isSplit,
|
|
14200
|
-
isSplitNew = item.isSplitNew,
|
|
14201
|
-
isCopy = item.isCopy,
|
|
14202
|
-
isExchangeOrder = item.isExchangeOrder,
|
|
14203
|
-
isCombineNew = item.isCombineNew,
|
|
14204
|
-
isCombine = item.isCombine,
|
|
14205
|
-
orderStatus = item.orderStatus;
|
|
14206
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14207
|
-
orderStatus: BS_E3_ORDER_STATUS_MAP[orderStatus],
|
|
14208
|
-
isSplit: BS_E3_BOOLEAN_STATUS_MAP[isSplit],
|
|
14209
|
-
isSplitNew: BS_E3_BOOLEAN_STATUS_MAP[isSplitNew],
|
|
14210
|
-
isExchangeOrder: BS_E3_BOOLEAN_STATUS_MAP[isExchangeOrder],
|
|
14211
|
-
isCopy: BS_E3_BOOLEAN_STATUS_MAP[isCopy],
|
|
14212
|
-
isCombineNew: BS_E3_BOOLEAN_STATUS_MAP[isCombineNew],
|
|
14213
|
-
isCombine: BS_E3_BOOLEAN_STATUS_MAP[isCombine]
|
|
14214
|
-
});
|
|
14215
|
-
});
|
|
14188
|
+
data.data.orderList = filterBsE3Orders(data === null || data === void 0 ? void 0 : data.data, orderNo);
|
|
14216
14189
|
}
|
|
14217
14190
|
resolve(data.data);
|
|
14218
14191
|
} else {
|
|
@@ -14277,37 +14250,58 @@ var columnsMap = {
|
|
|
14277
14250
|
title: '订单状态',
|
|
14278
14251
|
dataIndex: 'orderStatus',
|
|
14279
14252
|
width: 100,
|
|
14280
|
-
ellipsis: true
|
|
14253
|
+
ellipsis: true,
|
|
14254
|
+
render: function render(val) {
|
|
14255
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
|
|
14256
|
+
}
|
|
14281
14257
|
}, {
|
|
14282
14258
|
title: '是否被拆分',
|
|
14283
14259
|
dataIndex: 'isSplit',
|
|
14284
|
-
width:
|
|
14285
|
-
ellipsis: true
|
|
14260
|
+
width: 100,
|
|
14261
|
+
ellipsis: true,
|
|
14262
|
+
render: function render(val) {
|
|
14263
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14264
|
+
}
|
|
14286
14265
|
}, {
|
|
14287
14266
|
title: '是否拆分子单',
|
|
14288
14267
|
dataIndex: 'isSplitNew',
|
|
14289
|
-
width:
|
|
14290
|
-
ellipsis: true
|
|
14268
|
+
width: 100,
|
|
14269
|
+
ellipsis: true,
|
|
14270
|
+
render: function render(val) {
|
|
14271
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14272
|
+
}
|
|
14291
14273
|
}, {
|
|
14292
14274
|
title: '是否被合并',
|
|
14293
14275
|
dataIndex: 'isCombine',
|
|
14294
|
-
width:
|
|
14295
|
-
ellipsis: true
|
|
14276
|
+
width: 100,
|
|
14277
|
+
ellipsis: true,
|
|
14278
|
+
render: function render(val) {
|
|
14279
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14280
|
+
}
|
|
14296
14281
|
}, {
|
|
14297
14282
|
title: '是否合并新单',
|
|
14298
14283
|
dataIndex: 'isCombineNew',
|
|
14299
|
-
width:
|
|
14300
|
-
ellipsis: true
|
|
14284
|
+
width: 100,
|
|
14285
|
+
ellipsis: true,
|
|
14286
|
+
render: function render(val) {
|
|
14287
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14288
|
+
}
|
|
14301
14289
|
}, {
|
|
14302
14290
|
title: '是否复制单',
|
|
14303
14291
|
dataIndex: 'isCopy',
|
|
14304
|
-
width:
|
|
14305
|
-
ellipsis: true
|
|
14292
|
+
width: 100,
|
|
14293
|
+
ellipsis: true,
|
|
14294
|
+
render: function render(val) {
|
|
14295
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14296
|
+
}
|
|
14306
14297
|
}, {
|
|
14307
14298
|
title: '是否换货单',
|
|
14308
14299
|
dataIndex: 'isExchangeOrder',
|
|
14309
|
-
width:
|
|
14310
|
-
ellipsis: true
|
|
14300
|
+
width: 100,
|
|
14301
|
+
ellipsis: true,
|
|
14302
|
+
render: function render(val) {
|
|
14303
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
14304
|
+
}
|
|
14311
14305
|
}, {
|
|
14312
14306
|
title: '订单备注',
|
|
14313
14307
|
dataIndex: 'orderMsg',
|
|
@@ -14618,7 +14612,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
14618
14612
|
valueRef.current = value;
|
|
14619
14613
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo)) {
|
|
14620
14614
|
getOrderFlag.current = true;
|
|
14621
|
-
getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
14615
|
+
compType.indexOf('WDT') > -1 && getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
14622
14616
|
}
|
|
14623
14617
|
}, [value]);
|
|
14624
14618
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
@@ -16078,7 +16072,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16078
16072
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16079
16073
|
isStrict = _useState2[0],
|
|
16080
16074
|
setIsStrict = _useState2[1];
|
|
16081
|
-
|
|
16075
|
+
// TODO: 在修改场景下手动获取一次订单详情中数据
|
|
16082
16076
|
useEffect(function () {
|
|
16083
16077
|
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
16084
16078
|
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)) {
|
|
@@ -16110,15 +16104,11 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16110
16104
|
case 0:
|
|
16111
16105
|
(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.getOrderList(orderNo).then(function (data) {
|
|
16112
16106
|
var _typeMap$type9, _typeMap$type10;
|
|
16113
|
-
var orders = (data === null || data === void 0 ? void 0 : data.
|
|
16107
|
+
var orders = (data === null || data === void 0 ? void 0 : data.orderList) || [];
|
|
16114
16108
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
16115
|
-
var
|
|
16116
|
-
billType = _ref2.billType,
|
|
16117
|
-
billTag = _ref2.billTag;
|
|
16109
|
+
var orderSn = _ref2.orderSn;
|
|
16118
16110
|
return {
|
|
16119
|
-
billNo:
|
|
16120
|
-
billType: billType,
|
|
16121
|
-
billTag: billTag
|
|
16111
|
+
billNo: orderSn
|
|
16122
16112
|
};
|
|
16123
16113
|
});
|
|
16124
16114
|
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]), {}, {
|
|
@@ -16211,7 +16201,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16211
16201
|
}, [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]);
|
|
16212
16202
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
16213
16203
|
gutter: 8,
|
|
16214
|
-
wrap: true
|
|
16204
|
+
wrap: true,
|
|
16205
|
+
id: "bsE3ReissueGoods"
|
|
16215
16206
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
16216
16207
|
className: "gutter-row",
|
|
16217
16208
|
xs: {
|