@kmkf-fe-packages/basic-components 1.19.4 → 1.19.7
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 +1044 -321
- package/dist/index.js +1043 -320
- package/dist/src/bs/component/model/BsE3GoodList.d.ts +32 -0
- package/dist/src/bs/component/model/BsE3GoodsModal.d.ts +12 -0
- package/dist/src/e3/common/index.d.ts +3 -0
- package/package.json +3 -3
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, WdtSendData, filterWdtOrders, WDT_ORDER_TYPE_MAP, updateWdtGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
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
7
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject } 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({
|
|
@@ -917,8 +917,8 @@ function dataURLtoFile(dataurl, filename) {
|
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
|
|
920
|
-
var css_248z$1 = ".index-module_imageBox__8zj7A {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageBox__8zj7A .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageBox__8zj7A .index-module_inputImage__3VrvC {\n width: 80px;\n height: 80px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageBox__8zj7A .index-module_imageShow__3wD4d {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageBox__8zj7A .index-module_imageWrap__JkMJo {\n width: 80px;\n height: 80px;\n position: relative;\n border-radius: 2px;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__8zj7A .index-module_imageWrap__JkMJo:hover {\n background: transparent;\n}\n.index-module_imageBox__8zj7A .index-module_imageWrap__JkMJo:hover .index-module_mask__3LUIn:before {\n opacity: 1;\n}\n.index-module_imageBox__8zj7A .index-module_imageWrap__JkMJo img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageBox__8zj7A .index-module_imageWrap__JkMJo .index-
|
|
921
|
-
var styles$1 = {"imageBox":"index-module_imageBox__8zj7A","inputImage":"index-module_inputImage__3VrvC","imageShow":"index-module_imageShow__3wD4d","imageWrap":"index-module_imageWrap__JkMJo","-webkit-mask":"index-module_mask__3LUIn","mask":"index-module_mask__3LUIn","
|
|
920
|
+
var css_248z$1 = ".index-module_imageBox__8zj7A {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageBox__8zj7A .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageBox__8zj7A .index-module_inputImage__3VrvC {\n width: 80px;\n height: 80px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageBox__8zj7A .index-module_imageShow__3wD4d {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageBox__8zj7A .index-module_imageWrap__JkMJo {\n width: 80px;\n height: 80px;\n position: relative;\n border-radius: 2px;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__8zj7A .index-module_imageWrap__JkMJo:hover {\n background: transparent;\n}\n.index-module_imageBox__8zj7A .index-module_imageWrap__JkMJo:hover .index-module_mask__3LUIn:before {\n opacity: 1;\n}\n.index-module_imageBox__8zj7A .index-module_imageWrap__JkMJo img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageBox__8zj7A .index-module_imageWrap__JkMJo .index-module_deleteIcon__20Wzd {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n.index-module_imageBox__8zj7A .index-module_mask__3LUIn {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageBox__8zj7A .index-module_mask__3LUIn::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageBox__8zj7A .index-module_mask__3LUIn:hover .index-module_actions__2tY_V {\n opacity: 1;\n}\n.index-module_imageBox__8zj7A .index-module_mask__3LUIn .index-module_actions__2tY_V {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageBox__8zj7A .index-module_mask__3LUIn .index-module_actions__2tY_V .index-module_icon__ZI-2P {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageBox__8zj7A .index-module_imagePaste__2X-K1 {\n display: inline-block;\n margin-right: 8px;\n}\n.index-module_imageBox__8zj7A .index-module_imagePaste__2X-K1 .index-module_fakeBox__2_3rA {\n width: 80px;\n height: 80px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n padding-top: 16px;\n}\n.index-module_imageBox__8zj7A .index-module_imagePaste__2X-K1 .index-module_fakeBox__2_3rA .index-module_addBtn__2m5lC {\n color: #86909C;\n}\n.index-module_imageBox__8zj7A .index-module_upload__2igU3 .ant-upload {\n height: 80px;\n width: 80px;\n border: none;\n background-color: #F2F3F5;\n color: #86909C;\n}\n.index-module_imageBox__8zj7A .index-module_upload__2igU3 .ant-upload .index-module_addBtn__2m5lC {\n color: #86909C;\n}\n.index-module_tips__1ATcr {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
921
|
+
var styles$1 = {"imageBox":"index-module_imageBox__8zj7A","inputImage":"index-module_inputImage__3VrvC","imageShow":"index-module_imageShow__3wD4d","imageWrap":"index-module_imageWrap__JkMJo","-webkit-mask":"index-module_mask__3LUIn","mask":"index-module_mask__3LUIn","deleteIcon":"index-module_deleteIcon__20Wzd","actions":"index-module_actions__2tY_V","icon":"index-module_icon__ZI-2P","imagePaste":"index-module_imagePaste__2X-K1","fakeBox":"index-module_fakeBox__2_3rA","addBtn":"index-module_addBtn__2m5lC","upload":"index-module_upload__2igU3","tips":"index-module_tips__1ATcr"};
|
|
922
922
|
styleInject(css_248z$1);
|
|
923
923
|
|
|
924
924
|
var _excluded$6 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "canPreview", "disabled", "uniqueKey", "hostUrl", "actionUrl"];
|
|
@@ -939,7 +939,6 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
939
939
|
_ref$accept = _ref.accept,
|
|
940
940
|
accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
|
|
941
941
|
_ref$canPreview = _ref.canPreview,
|
|
942
|
-
canPreview = _ref$canPreview === void 0 ? true : _ref$canPreview,
|
|
943
942
|
_ref$disabled = _ref.disabled,
|
|
944
943
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
945
944
|
uniqueKey = _ref.uniqueKey,
|
|
@@ -1096,39 +1095,25 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1096
1095
|
}));
|
|
1097
1096
|
};
|
|
1098
1097
|
};
|
|
1099
|
-
var handlePreview = function handlePreview(imgUrl) {
|
|
1100
|
-
return function () {
|
|
1101
|
-
setCurrentPreviewImg(imgUrl);
|
|
1102
|
-
setVisible(true);
|
|
1103
|
-
};
|
|
1104
|
-
};
|
|
1105
1098
|
var renderImages = function renderImages(images) {
|
|
1106
|
-
return images.map(function (image, index) {
|
|
1099
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, null, images.map(function (image, index) {
|
|
1107
1100
|
var finalImage = "".concat(/^pic\/[\s\S]*$/.test(image) ? "".concat(hostUrl, "/").concat(image) : image, "?x-oss-process=image/resize,h_60,w_60");
|
|
1101
|
+
var showImage = /^pic\/[\s\S]*$/.test(image) ? "".concat(hostUrl, "/").concat(image) : image;
|
|
1108
1102
|
return /*#__PURE__*/React.createElement("div", {
|
|
1109
1103
|
className: styles$1.imageWrap,
|
|
1110
1104
|
key: index
|
|
1111
|
-
}, /*#__PURE__*/React.createElement(
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
1116
|
-
className: styles$1.actions
|
|
1117
|
-
}, canPreview && /*#__PURE__*/React.createElement(EyeOutlined, {
|
|
1118
|
-
style: {
|
|
1119
|
-
fontSize: '16px',
|
|
1120
|
-
color: '#FFF',
|
|
1121
|
-
marginRight: '8px'
|
|
1122
|
-
},
|
|
1123
|
-
onClick: handlePreview(/^pic\/[\s\S]*$/.test(image) ? "".concat(hostUrl, "/").concat(image) : image)
|
|
1124
|
-
}), /*#__PURE__*/React.createElement(DeleteOutlined, {
|
|
1125
|
-
style: {
|
|
1126
|
-
fontSize: '16px',
|
|
1127
|
-
color: '#FFF'
|
|
1105
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
1106
|
+
src: finalImage,
|
|
1107
|
+
preview: {
|
|
1108
|
+
src: showImage
|
|
1128
1109
|
},
|
|
1110
|
+
width: '100%',
|
|
1111
|
+
height: '80%'
|
|
1112
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
1113
|
+
className: styles$1.deleteIcon,
|
|
1129
1114
|
onClick: handleDelete(index)
|
|
1130
|
-
}))
|
|
1131
|
-
});
|
|
1115
|
+
}, "\u5220\u9664"));
|
|
1116
|
+
}));
|
|
1132
1117
|
};
|
|
1133
1118
|
useEffect(function () {
|
|
1134
1119
|
var _inputRef$current2;
|
|
@@ -12094,6 +12079,402 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
|
|
|
12094
12079
|
};
|
|
12095
12080
|
var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
|
|
12096
12081
|
|
|
12082
|
+
var getTableData$1 = function getTableData(_ref, formData) {
|
|
12083
|
+
var current = _ref.current,
|
|
12084
|
+
pageSize = _ref.pageSize;
|
|
12085
|
+
var data = {
|
|
12086
|
+
goodsSn: formData.goodsSn || null,
|
|
12087
|
+
goodsName: formData.goodsName || null,
|
|
12088
|
+
sku: formData.sku || null,
|
|
12089
|
+
skuId: formData.skuId || null
|
|
12090
|
+
};
|
|
12091
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12092
|
+
method: 'post',
|
|
12093
|
+
data: _objectSpread2({
|
|
12094
|
+
pageSize: pageSize,
|
|
12095
|
+
pageNo: current,
|
|
12096
|
+
platform: 'WDT_ERP'
|
|
12097
|
+
}, data)
|
|
12098
|
+
}).then(function (res) {
|
|
12099
|
+
var _res$data = res.data,
|
|
12100
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
12101
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
12102
|
+
_res$data$total = _res$data.total,
|
|
12103
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
12104
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
12105
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
12106
|
+
index: index + 1
|
|
12107
|
+
});
|
|
12108
|
+
});
|
|
12109
|
+
return {
|
|
12110
|
+
total: total,
|
|
12111
|
+
list: newProducts
|
|
12112
|
+
};
|
|
12113
|
+
});
|
|
12114
|
+
};
|
|
12115
|
+
var columns$2 = [{
|
|
12116
|
+
dataIndex: 'index',
|
|
12117
|
+
title: 'NO',
|
|
12118
|
+
render: function render(val, record, index) {
|
|
12119
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12120
|
+
style: {
|
|
12121
|
+
width: 25
|
|
12122
|
+
}
|
|
12123
|
+
}, index + 1);
|
|
12124
|
+
},
|
|
12125
|
+
width: 100
|
|
12126
|
+
}, {
|
|
12127
|
+
dataIndex: 'sku',
|
|
12128
|
+
title: "SKU",
|
|
12129
|
+
ellipsis: true,
|
|
12130
|
+
width: 70
|
|
12131
|
+
}, {
|
|
12132
|
+
dataIndex: 'skuId',
|
|
12133
|
+
title: "SKU ID",
|
|
12134
|
+
ellipsis: true,
|
|
12135
|
+
width: 70
|
|
12136
|
+
}, {
|
|
12137
|
+
dataIndex: 'goodsName',
|
|
12138
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12139
|
+
ellipsis: true,
|
|
12140
|
+
width: 70
|
|
12141
|
+
}, {
|
|
12142
|
+
dataIndex: 'goodsShortName',
|
|
12143
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12144
|
+
ellipsis: true,
|
|
12145
|
+
width: 70
|
|
12146
|
+
}, {
|
|
12147
|
+
dataIndex: 'picPath',
|
|
12148
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
12149
|
+
ellipsis: true,
|
|
12150
|
+
width: 100,
|
|
12151
|
+
render: function render(picUrl) {
|
|
12152
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
12153
|
+
style: {
|
|
12154
|
+
width: '60px',
|
|
12155
|
+
height: '60px',
|
|
12156
|
+
objectFit: 'contain'
|
|
12157
|
+
},
|
|
12158
|
+
src: picUrl
|
|
12159
|
+
});
|
|
12160
|
+
}
|
|
12161
|
+
}, {
|
|
12162
|
+
dataIndex: 'goodsSn',
|
|
12163
|
+
title: "\u8D27\u53F7",
|
|
12164
|
+
ellipsis: true,
|
|
12165
|
+
width: 70
|
|
12166
|
+
}, {
|
|
12167
|
+
dataIndex: 'goodsId',
|
|
12168
|
+
title: "\u8D27\u53F7ID",
|
|
12169
|
+
ellipsis: true,
|
|
12170
|
+
width: 70
|
|
12171
|
+
}, {
|
|
12172
|
+
dataIndex: 'colorName',
|
|
12173
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12174
|
+
ellipsis: true,
|
|
12175
|
+
width: 70
|
|
12176
|
+
}, {
|
|
12177
|
+
dataIndex: 'colorCode',
|
|
12178
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12179
|
+
ellipsis: true,
|
|
12180
|
+
width: 70
|
|
12181
|
+
}, {
|
|
12182
|
+
dataIndex: 'sizeName',
|
|
12183
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12184
|
+
ellipsis: true,
|
|
12185
|
+
width: 70
|
|
12186
|
+
}, {
|
|
12187
|
+
dataIndex: 'sizeCode',
|
|
12188
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12189
|
+
ellipsis: true,
|
|
12190
|
+
width: 70
|
|
12191
|
+
}, {
|
|
12192
|
+
dataIndex: 'brandName',
|
|
12193
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12194
|
+
ellipsis: true,
|
|
12195
|
+
width: 70
|
|
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
|
|
12206
|
+
}, {
|
|
12207
|
+
dataIndex: 'shopPrice',
|
|
12208
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
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",
|
|
12239
|
+
ellipsis: true,
|
|
12240
|
+
width: 70
|
|
12241
|
+
}, {
|
|
12242
|
+
dataIndex: 'isGift',
|
|
12243
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
12244
|
+
ellipsis: true,
|
|
12245
|
+
width: 70
|
|
12246
|
+
}];
|
|
12247
|
+
var GoodList$1 = function GoodList(props, ref) {
|
|
12248
|
+
var _useState = useState([]),
|
|
12249
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12250
|
+
selectList = _useState2[0],
|
|
12251
|
+
setSelect = _useState2[1];
|
|
12252
|
+
var _useState3 = useState([]),
|
|
12253
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12254
|
+
selectIds = _useState4[0],
|
|
12255
|
+
setSelectIds = _useState4[1];
|
|
12256
|
+
useImperativeHandle(ref, function () {
|
|
12257
|
+
return {
|
|
12258
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
12259
|
+
return selectList;
|
|
12260
|
+
}
|
|
12261
|
+
};
|
|
12262
|
+
});
|
|
12263
|
+
var _Form$useForm = Form.useForm(),
|
|
12264
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
12265
|
+
form = _Form$useForm2[0];
|
|
12266
|
+
var _useAntdTable = useAntdTable(getTableData$1, {
|
|
12267
|
+
defaultPageSize: 10,
|
|
12268
|
+
form: form
|
|
12269
|
+
}),
|
|
12270
|
+
tableProps = _useAntdTable.tableProps,
|
|
12271
|
+
search = _useAntdTable.search,
|
|
12272
|
+
params = _useAntdTable.params;
|
|
12273
|
+
var submit = search.submit,
|
|
12274
|
+
reset = search.reset;
|
|
12275
|
+
var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
|
|
12276
|
+
layout: "inline",
|
|
12277
|
+
form: form
|
|
12278
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
12279
|
+
name: "goodsSn",
|
|
12280
|
+
style: {
|
|
12281
|
+
marginBottom: '12px'
|
|
12282
|
+
}
|
|
12283
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
12284
|
+
placeholder: "\u5546\u54C1\u8D27\u53F7",
|
|
12285
|
+
allowClear: true,
|
|
12286
|
+
style: {
|
|
12287
|
+
width: 150
|
|
12288
|
+
}
|
|
12289
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12290
|
+
name: "goodsName",
|
|
12291
|
+
style: {
|
|
12292
|
+
marginBottom: '12px'
|
|
12293
|
+
}
|
|
12294
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
12295
|
+
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
12296
|
+
allowClear: true,
|
|
12297
|
+
style: {
|
|
12298
|
+
width: 150
|
|
12299
|
+
}
|
|
12300
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12301
|
+
name: "sku",
|
|
12302
|
+
style: {
|
|
12303
|
+
marginBottom: '12px'
|
|
12304
|
+
}
|
|
12305
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
12306
|
+
placeholder: "SKU",
|
|
12307
|
+
allowClear: true,
|
|
12308
|
+
style: {
|
|
12309
|
+
width: 150
|
|
12310
|
+
}
|
|
12311
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12312
|
+
name: "skuId",
|
|
12313
|
+
style: {
|
|
12314
|
+
marginBottom: '12px'
|
|
12315
|
+
}
|
|
12316
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
12317
|
+
placeholder: "SKU ID",
|
|
12318
|
+
allowClear: true,
|
|
12319
|
+
style: {
|
|
12320
|
+
width: 150
|
|
12321
|
+
}
|
|
12322
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12323
|
+
style: {
|
|
12324
|
+
marginBottom: '12px'
|
|
12325
|
+
}
|
|
12326
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
12327
|
+
type: "primary",
|
|
12328
|
+
style: {
|
|
12329
|
+
marginRight: '8px'
|
|
12330
|
+
},
|
|
12331
|
+
onClick: submit
|
|
12332
|
+
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
12333
|
+
onClick: reset
|
|
12334
|
+
}, "\u91CD\u7F6E")));
|
|
12335
|
+
var rowSelection = {
|
|
12336
|
+
selectedRowKeys: selectIds,
|
|
12337
|
+
fixed: true,
|
|
12338
|
+
onSelect: function onSelect(record, selected) {
|
|
12339
|
+
if (selected) {
|
|
12340
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.specNo]));
|
|
12341
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
12342
|
+
} else {
|
|
12343
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
12344
|
+
return t !== record.specNo;
|
|
12345
|
+
}));
|
|
12346
|
+
setSelect(selectList.filter(function (t) {
|
|
12347
|
+
return t.specNo !== record.specNo;
|
|
12348
|
+
}));
|
|
12349
|
+
}
|
|
12350
|
+
},
|
|
12351
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
12352
|
+
if (selected) {
|
|
12353
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
12354
|
+
return t.specNo;
|
|
12355
|
+
}))));
|
|
12356
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
12357
|
+
} else {
|
|
12358
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
12359
|
+
return t.specNo;
|
|
12360
|
+
})));
|
|
12361
|
+
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
12362
|
+
return arrVal.specNo !== othVal.specNo;
|
|
12363
|
+
});
|
|
12364
|
+
setSelect(list);
|
|
12365
|
+
}
|
|
12366
|
+
}
|
|
12367
|
+
};
|
|
12368
|
+
var showTable = function showTable() {
|
|
12369
|
+
var handleDelete = function handleDelete(record) {
|
|
12370
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
12371
|
+
return t !== record.specNo;
|
|
12372
|
+
}));
|
|
12373
|
+
setSelect(selectList.filter(function (t) {
|
|
12374
|
+
return t.specNo !== record.specNo;
|
|
12375
|
+
}));
|
|
12376
|
+
};
|
|
12377
|
+
var showColumns = [{
|
|
12378
|
+
dataIndex: '',
|
|
12379
|
+
title: "\u64CD\u4F5C",
|
|
12380
|
+
ellipsis: true,
|
|
12381
|
+
width: 100,
|
|
12382
|
+
render: function render(val, record) {
|
|
12383
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
12384
|
+
type: "link",
|
|
12385
|
+
onClick: function onClick() {
|
|
12386
|
+
return handleDelete(record);
|
|
12387
|
+
}
|
|
12388
|
+
}, "\u5220\u9664");
|
|
12389
|
+
}
|
|
12390
|
+
}].concat(takeRight(columns$2, columns$2.length - 1));
|
|
12391
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
12392
|
+
style: {
|
|
12393
|
+
width: '100%',
|
|
12394
|
+
maxWidth: '387px'
|
|
12395
|
+
}
|
|
12396
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
12397
|
+
columns: showColumns,
|
|
12398
|
+
rowKey: 'specNo',
|
|
12399
|
+
dataSource: selectList,
|
|
12400
|
+
scroll: {
|
|
12401
|
+
x: '100%',
|
|
12402
|
+
y: 250
|
|
12403
|
+
},
|
|
12404
|
+
pagination: {
|
|
12405
|
+
size: 'small',
|
|
12406
|
+
total: selectIds.length,
|
|
12407
|
+
pageSize: 10,
|
|
12408
|
+
showSizeChanger: false
|
|
12409
|
+
}
|
|
12410
|
+
})) : null;
|
|
12411
|
+
};
|
|
12412
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, advanceSearchForm, /*#__PURE__*/React.createElement("div", {
|
|
12413
|
+
style: {
|
|
12414
|
+
marginTop: '4px'
|
|
12415
|
+
}
|
|
12416
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
12417
|
+
rowSelection: rowSelection,
|
|
12418
|
+
rowKey: "goodsId",
|
|
12419
|
+
columns: columns$2,
|
|
12420
|
+
scroll: {
|
|
12421
|
+
x: '100%',
|
|
12422
|
+
y: 250
|
|
12423
|
+
}
|
|
12424
|
+
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
12425
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
12426
|
+
return triggerNode.parentElement;
|
|
12427
|
+
},
|
|
12428
|
+
content: showTable(),
|
|
12429
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
12430
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
12431
|
+
danger: true,
|
|
12432
|
+
type: "text"
|
|
12433
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
12434
|
+
};
|
|
12435
|
+
var BsE3GoodList = /*#__PURE__*/forwardRef(GoodList$1);
|
|
12436
|
+
|
|
12437
|
+
var GoodsModal$4 = function GoodsModal(props, ref) {
|
|
12438
|
+
useImperativeHandle(ref, function () {
|
|
12439
|
+
return {
|
|
12440
|
+
open: function open() {
|
|
12441
|
+
setVisible(true);
|
|
12442
|
+
}
|
|
12443
|
+
};
|
|
12444
|
+
});
|
|
12445
|
+
var onSubmit = props.onSubmit,
|
|
12446
|
+
width = props.width;
|
|
12447
|
+
var _useState = useState(false),
|
|
12448
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12449
|
+
visible = _useState2[0],
|
|
12450
|
+
setVisible = _useState2[1];
|
|
12451
|
+
var bsE3GoodListRef = useRef(null);
|
|
12452
|
+
var _onCancel = function onCancel() {
|
|
12453
|
+
setVisible(false);
|
|
12454
|
+
};
|
|
12455
|
+
var onOk = function onOk() {
|
|
12456
|
+
var _bsE3GoodListRef$curr;
|
|
12457
|
+
var selectedList = ((_bsE3GoodListRef$curr = bsE3GoodListRef.current) === null || _bsE3GoodListRef$curr === void 0 ? void 0 : _bsE3GoodListRef$curr.getSelectGoodList()) || [];
|
|
12458
|
+
onSubmit(selectedList);
|
|
12459
|
+
_onCancel();
|
|
12460
|
+
};
|
|
12461
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
|
|
12462
|
+
title: '选择商品',
|
|
12463
|
+
okText: '确认',
|
|
12464
|
+
cancelText: '取消',
|
|
12465
|
+
visible: visible,
|
|
12466
|
+
width: width || 850,
|
|
12467
|
+
onCancel: function onCancel() {
|
|
12468
|
+
_onCancel();
|
|
12469
|
+
},
|
|
12470
|
+
onOk: onOk,
|
|
12471
|
+
wrapClassName: "goodModal"
|
|
12472
|
+
}, /*#__PURE__*/React.createElement(BsE3GoodList, {
|
|
12473
|
+
ref: bsE3GoodListRef
|
|
12474
|
+
})));
|
|
12475
|
+
};
|
|
12476
|
+
var BsE3GoodsModal = /*#__PURE__*/forwardRef(GoodsModal$4);
|
|
12477
|
+
|
|
12097
12478
|
// interface GoodsItem {
|
|
12098
12479
|
// title: string;
|
|
12099
12480
|
// pic: string;
|
|
@@ -12102,6 +12483,7 @@ var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
|
|
|
12102
12483
|
// styleId: string;
|
|
12103
12484
|
// }
|
|
12104
12485
|
var GoodItem$1 = function GoodItem(props) {
|
|
12486
|
+
var _ref;
|
|
12105
12487
|
var _props$value = props.value,
|
|
12106
12488
|
value = _props$value === void 0 ? [] : _props$value,
|
|
12107
12489
|
type = props.type,
|
|
@@ -12538,6 +12920,149 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12538
12920
|
}];
|
|
12539
12921
|
}
|
|
12540
12922
|
break;
|
|
12923
|
+
case 'BS_E3_GOODS':
|
|
12924
|
+
{
|
|
12925
|
+
columns = [{
|
|
12926
|
+
dataIndex: 'sku',
|
|
12927
|
+
title: "SKU",
|
|
12928
|
+
align: 'center',
|
|
12929
|
+
ellipsis: true,
|
|
12930
|
+
width: 150
|
|
12931
|
+
}, {
|
|
12932
|
+
dataIndex: 'skuId',
|
|
12933
|
+
title: "SKU ID",
|
|
12934
|
+
align: 'center',
|
|
12935
|
+
ellipsis: true,
|
|
12936
|
+
width: 150
|
|
12937
|
+
}, {
|
|
12938
|
+
dataIndex: 'goodsName',
|
|
12939
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12940
|
+
align: 'center',
|
|
12941
|
+
ellipsis: true,
|
|
12942
|
+
width: 150
|
|
12943
|
+
}, {
|
|
12944
|
+
dataIndex: 'goodsShortName',
|
|
12945
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12946
|
+
align: 'center',
|
|
12947
|
+
ellipsis: true,
|
|
12948
|
+
width: 100
|
|
12949
|
+
}, {
|
|
12950
|
+
dataIndex: 'picPath',
|
|
12951
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
12952
|
+
align: 'center',
|
|
12953
|
+
ellipsis: true,
|
|
12954
|
+
width: 100,
|
|
12955
|
+
render: function render(val) {
|
|
12956
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
12957
|
+
width: 60,
|
|
12958
|
+
src: val
|
|
12959
|
+
});
|
|
12960
|
+
}
|
|
12961
|
+
}, {
|
|
12962
|
+
dataIndex: 'goodsSn',
|
|
12963
|
+
title: "\u8D27\u53F7",
|
|
12964
|
+
align: 'center',
|
|
12965
|
+
ellipsis: true,
|
|
12966
|
+
width: 150
|
|
12967
|
+
}, {
|
|
12968
|
+
dataIndex: 'goodsId',
|
|
12969
|
+
title: "\u8D27\u53F7ID",
|
|
12970
|
+
align: 'center',
|
|
12971
|
+
ellipsis: true,
|
|
12972
|
+
width: 150
|
|
12973
|
+
}, {
|
|
12974
|
+
dataIndex: 'colorName',
|
|
12975
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12976
|
+
align: 'center',
|
|
12977
|
+
ellipsis: true,
|
|
12978
|
+
width: 100
|
|
12979
|
+
}, {
|
|
12980
|
+
dataIndex: 'colorCode',
|
|
12981
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12982
|
+
align: 'center',
|
|
12983
|
+
ellipsis: true,
|
|
12984
|
+
width: 150
|
|
12985
|
+
}, {
|
|
12986
|
+
dataIndex: 'sizeName',
|
|
12987
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12988
|
+
align: 'center',
|
|
12989
|
+
ellipsis: true,
|
|
12990
|
+
width: 100
|
|
12991
|
+
}, {
|
|
12992
|
+
dataIndex: 'sizeCode',
|
|
12993
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12994
|
+
align: 'center',
|
|
12995
|
+
ellipsis: true,
|
|
12996
|
+
width: 100
|
|
12997
|
+
}, {
|
|
12998
|
+
dataIndex: 'brandName',
|
|
12999
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
13000
|
+
align: 'center',
|
|
13001
|
+
ellipsis: true,
|
|
13002
|
+
width: 150
|
|
13003
|
+
}, {
|
|
13004
|
+
dataIndex: 'goodsNumber',
|
|
13005
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
13006
|
+
align: 'center',
|
|
13007
|
+
ellipsis: true,
|
|
13008
|
+
width: 100
|
|
13009
|
+
}, {
|
|
13010
|
+
dataIndex: 'goodsPrice',
|
|
13011
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
13012
|
+
align: 'center',
|
|
13013
|
+
ellipsis: true,
|
|
13014
|
+
width: 120
|
|
13015
|
+
}, {
|
|
13016
|
+
dataIndex: 'shopPrice',
|
|
13017
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
13018
|
+
align: 'center',
|
|
13019
|
+
ellipsis: true,
|
|
13020
|
+
width: 120
|
|
13021
|
+
}, {
|
|
13022
|
+
dataIndex: 'sharePrice',
|
|
13023
|
+
title: "\u5206\u644A\u4EF7",
|
|
13024
|
+
align: 'center',
|
|
13025
|
+
ellipsis: true,
|
|
13026
|
+
width: 120
|
|
13027
|
+
}, {
|
|
13028
|
+
dataIndex: 'sharePayment',
|
|
13029
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
13030
|
+
align: 'center',
|
|
13031
|
+
ellipsis: true,
|
|
13032
|
+
width: 120
|
|
13033
|
+
}, {
|
|
13034
|
+
dataIndex: 'payment',
|
|
13035
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13036
|
+
align: 'center',
|
|
13037
|
+
ellipsis: true,
|
|
13038
|
+
width: 120
|
|
13039
|
+
}, {
|
|
13040
|
+
dataIndex: 'tcSku',
|
|
13041
|
+
title: "\u5957\u9910SKU",
|
|
13042
|
+
align: 'center',
|
|
13043
|
+
ellipsis: true,
|
|
13044
|
+
width: 150
|
|
13045
|
+
}, {
|
|
13046
|
+
dataIndex: 'tcGoodsNumber',
|
|
13047
|
+
title: "\u5957\u9910\u5957\u6570",
|
|
13048
|
+
align: 'center',
|
|
13049
|
+
ellipsis: true,
|
|
13050
|
+
width: 100
|
|
13051
|
+
}, {
|
|
13052
|
+
dataIndex: 'taoCanSingleSl',
|
|
13053
|
+
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
13054
|
+
align: 'center',
|
|
13055
|
+
ellipsis: true,
|
|
13056
|
+
width: 100
|
|
13057
|
+
}, {
|
|
13058
|
+
dataIndex: 'isGift',
|
|
13059
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
13060
|
+
align: 'center',
|
|
13061
|
+
ellipsis: true,
|
|
13062
|
+
width: 100
|
|
13063
|
+
}];
|
|
13064
|
+
}
|
|
13065
|
+
break;
|
|
12541
13066
|
default:
|
|
12542
13067
|
columns = [{
|
|
12543
13068
|
dataIndex: 'mark',
|
|
@@ -12693,6 +13218,15 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12693
13218
|
}
|
|
12694
13219
|
return item;
|
|
12695
13220
|
});
|
|
13221
|
+
} else if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
13222
|
+
newList = list.map(function (item) {
|
|
13223
|
+
item.uuid = uuid();
|
|
13224
|
+
item.canDelete = true;
|
|
13225
|
+
item.goodsNumber = 1;
|
|
13226
|
+
item.goodsPrice = 0;
|
|
13227
|
+
item.canUpdateNumber = canUpdateNumber;
|
|
13228
|
+
return item;
|
|
13229
|
+
});
|
|
12696
13230
|
} else {
|
|
12697
13231
|
newList = list.map(function (item) {
|
|
12698
13232
|
var goodsId = item.goodsId,
|
|
@@ -12752,7 +13286,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12752
13286
|
}, showModeBtn && /*#__PURE__*/React.createElement(Checkbox, {
|
|
12753
13287
|
checked: isStrict,
|
|
12754
13288
|
onChange: handleCheckboxChange
|
|
12755
|
-
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), /*#__PURE__*/React.createElement(Button, {
|
|
13289
|
+
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !((_ref = ['BS_E3_GOODS']) === null || _ref === void 0 ? void 0 : _ref.includes(type)) && /*#__PURE__*/React.createElement(Button, {
|
|
12756
13290
|
type: "link",
|
|
12757
13291
|
onClick: handleChangeGoods
|
|
12758
13292
|
}, "\u9009\u62E9\u5546\u54C1"), otherOperations), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
|
|
@@ -12775,6 +13309,14 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12775
13309
|
shopId: shopId,
|
|
12776
13310
|
maxLength: maxLength,
|
|
12777
13311
|
companyKey: companyKey
|
|
13312
|
+
}) : ['BS_E3_REISSUE_GOODS', 'BS_E3_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type) ? /*#__PURE__*/React.createElement(BsE3GoodsModal, {
|
|
13313
|
+
ref: refModal,
|
|
13314
|
+
onSubmit: onSubmit,
|
|
13315
|
+
width: width,
|
|
13316
|
+
shopList: shopList,
|
|
13317
|
+
shopId: shopId,
|
|
13318
|
+
maxLength: maxLength,
|
|
13319
|
+
companyKey: companyKey
|
|
12778
13320
|
}) : /*#__PURE__*/React.createElement(GoodsModal$2, {
|
|
12779
13321
|
ref: refModal,
|
|
12780
13322
|
onSubmit: onSubmit,
|
|
@@ -13438,19 +13980,150 @@ var wdtUtils = {
|
|
|
13438
13980
|
getWdtOrderListSingleton: getWdtOrderListSingleton
|
|
13439
13981
|
};
|
|
13440
13982
|
|
|
13441
|
-
var
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13983
|
+
var singletonMap$1 = new Map();
|
|
13984
|
+
var getBsE3OrderListSingleton = function getBsE3OrderListSingleton(orderNo) {
|
|
13985
|
+
if (!singletonMap$1.has(orderNo)) {
|
|
13986
|
+
var p = new Promise(function (resolve, reject) {
|
|
13987
|
+
var doReject = function doReject(err) {
|
|
13988
|
+
// 清空掉错误的请求记录
|
|
13989
|
+
// singletonMap.delete(orderNo);
|
|
13990
|
+
reject(err);
|
|
13991
|
+
};
|
|
13992
|
+
extendRequest('/qy/gdfw/order/bse3OrderDetail', {
|
|
13993
|
+
method: 'post',
|
|
13994
|
+
data: {
|
|
13995
|
+
billNo: orderNo
|
|
13996
|
+
}
|
|
13997
|
+
}).then(function (data) {
|
|
13998
|
+
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
13999
|
+
var _data$data, _data$data$orderList;
|
|
14000
|
+
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) {
|
|
14001
|
+
var _filterBsE3Orders;
|
|
14002
|
+
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) {
|
|
14003
|
+
var isSplit = item.isSplit,
|
|
14004
|
+
isSplitNew = item.isSplitNew,
|
|
14005
|
+
isCopy = item.isCopy,
|
|
14006
|
+
isExchangeOrder = item.isExchangeOrder,
|
|
14007
|
+
isCombineNew = item.isCombineNew,
|
|
14008
|
+
isCombine = item.isCombine,
|
|
14009
|
+
orderStatus = item.orderStatus;
|
|
14010
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14011
|
+
orderStatus: BS_E3_ORDER_STATUS_MAP[orderStatus],
|
|
14012
|
+
isSplit: BS_E3_BOOLEAN_STATUS_MAP[isSplit],
|
|
14013
|
+
isSplitNew: BS_E3_BOOLEAN_STATUS_MAP[isSplitNew],
|
|
14014
|
+
isExchangeOrder: BS_E3_BOOLEAN_STATUS_MAP[isExchangeOrder],
|
|
14015
|
+
isCopy: BS_E3_BOOLEAN_STATUS_MAP[isCopy],
|
|
14016
|
+
isCombineNew: BS_E3_BOOLEAN_STATUS_MAP[isCombineNew],
|
|
14017
|
+
isCombine: BS_E3_BOOLEAN_STATUS_MAP[isCombine]
|
|
14018
|
+
});
|
|
14019
|
+
});
|
|
14020
|
+
}
|
|
14021
|
+
resolve(data.data);
|
|
14022
|
+
} else {
|
|
14023
|
+
doReject(data);
|
|
14024
|
+
}
|
|
14025
|
+
}).catch(doReject);
|
|
14026
|
+
});
|
|
14027
|
+
singletonMap$1.set(orderNo, p);
|
|
13453
14028
|
}
|
|
14029
|
+
return singletonMap$1.get(orderNo);
|
|
14030
|
+
};
|
|
14031
|
+
var bsE3Utils = {
|
|
14032
|
+
getBsE3OrderListSingleton: getBsE3OrderListSingleton
|
|
14033
|
+
};
|
|
14034
|
+
|
|
14035
|
+
var columnsMap = {
|
|
14036
|
+
BS_SYSTEM_ORDER: [{
|
|
14037
|
+
title: '单据类型',
|
|
14038
|
+
dataIndex: 'billType',
|
|
14039
|
+
width: 150
|
|
14040
|
+
}, {
|
|
14041
|
+
title: '系统订单号',
|
|
14042
|
+
dataIndex: 'billNo',
|
|
14043
|
+
width: 150
|
|
14044
|
+
}, {
|
|
14045
|
+
title: '标签',
|
|
14046
|
+
dataIndex: 'billTag',
|
|
14047
|
+
width: 150
|
|
14048
|
+
}],
|
|
14049
|
+
WLN_SYSTEM_ORDER: [{
|
|
14050
|
+
title: '订单类型',
|
|
14051
|
+
dataIndex: 'billType',
|
|
14052
|
+
width: 150
|
|
14053
|
+
}, {
|
|
14054
|
+
title: '系统订单号',
|
|
14055
|
+
dataIndex: 'billNo',
|
|
14056
|
+
width: 150
|
|
14057
|
+
}, {
|
|
14058
|
+
title: '标记',
|
|
14059
|
+
dataIndex: 'billTag',
|
|
14060
|
+
width: 150
|
|
14061
|
+
}],
|
|
14062
|
+
WDT_SYSTEM_ORDER: [{
|
|
14063
|
+
title: '订单类型',
|
|
14064
|
+
dataIndex: 'billType',
|
|
14065
|
+
width: 150
|
|
14066
|
+
}, {
|
|
14067
|
+
title: '系统订单号',
|
|
14068
|
+
dataIndex: 'billNo',
|
|
14069
|
+
width: 150
|
|
14070
|
+
}, {
|
|
14071
|
+
title: '订单标签',
|
|
14072
|
+
dataIndex: 'billTag',
|
|
14073
|
+
width: 150
|
|
14074
|
+
}],
|
|
14075
|
+
BS_E3_SYSTEM_ORDER: [{
|
|
14076
|
+
title: '系统订单号',
|
|
14077
|
+
dataIndex: 'orderSn',
|
|
14078
|
+
width: 150,
|
|
14079
|
+
ellipsis: true
|
|
14080
|
+
}, {
|
|
14081
|
+
title: '订单状态',
|
|
14082
|
+
dataIndex: 'orderStatus',
|
|
14083
|
+
width: 100,
|
|
14084
|
+
ellipsis: true
|
|
14085
|
+
}, {
|
|
14086
|
+
title: '是否被拆分',
|
|
14087
|
+
dataIndex: 'isSplit',
|
|
14088
|
+
width: 70,
|
|
14089
|
+
ellipsis: true
|
|
14090
|
+
}, {
|
|
14091
|
+
title: '是否拆分子单',
|
|
14092
|
+
dataIndex: 'isSplitNew',
|
|
14093
|
+
width: 70,
|
|
14094
|
+
ellipsis: true
|
|
14095
|
+
}, {
|
|
14096
|
+
title: '是否被合并',
|
|
14097
|
+
dataIndex: 'isCombine',
|
|
14098
|
+
width: 70,
|
|
14099
|
+
ellipsis: true
|
|
14100
|
+
}, {
|
|
14101
|
+
title: '是否合并新单',
|
|
14102
|
+
dataIndex: 'isCombineNew',
|
|
14103
|
+
width: 70,
|
|
14104
|
+
ellipsis: true
|
|
14105
|
+
}, {
|
|
14106
|
+
title: '是否复制单',
|
|
14107
|
+
dataIndex: 'isCopy',
|
|
14108
|
+
width: 70,
|
|
14109
|
+
ellipsis: true
|
|
14110
|
+
}, {
|
|
14111
|
+
title: '是否换货单',
|
|
14112
|
+
dataIndex: 'isExchangeOrder',
|
|
14113
|
+
width: 70,
|
|
14114
|
+
ellipsis: true
|
|
14115
|
+
}, {
|
|
14116
|
+
title: '订单备注',
|
|
14117
|
+
dataIndex: 'orderMsg',
|
|
14118
|
+
width: 150,
|
|
14119
|
+
ellipsis: true
|
|
14120
|
+
}]
|
|
14121
|
+
};
|
|
14122
|
+
var rowKeyMap = {
|
|
14123
|
+
BS_SYSTEM_ORDER: 'billNo',
|
|
14124
|
+
WLN_SYSTEM_ORDER: 'billNo',
|
|
14125
|
+
WDT_SYSTEM_ORDER: 'billNo',
|
|
14126
|
+
BS_E3_SYSTEM_ORDER: 'orderSn'
|
|
13454
14127
|
};
|
|
13455
14128
|
var index$1 = (function (props) {
|
|
13456
14129
|
var value = props.value,
|
|
@@ -13468,21 +14141,13 @@ var index$1 = (function (props) {
|
|
|
13468
14141
|
getWlnOrderList(value.orderNo);
|
|
13469
14142
|
} else if (type === 'WDT_SYSTEM_ORDER') {
|
|
13470
14143
|
getWdtOrderList(value.orderNo);
|
|
14144
|
+
} else if (type === 'BS_E3_SYSTEM_ORDER') {
|
|
14145
|
+
getBsE3OrderList(value.orderNo);
|
|
13471
14146
|
}
|
|
13472
14147
|
}
|
|
13473
14148
|
}, [value, type]);
|
|
13474
14149
|
var columns = useMemo(function () {
|
|
13475
|
-
|
|
13476
|
-
return [{
|
|
13477
|
-
dataIndex: 'billType',
|
|
13478
|
-
title: columnsNameMap === null || columnsNameMap === void 0 ? void 0 : (_columnsNameMap$type = columnsNameMap[type]) === null || _columnsNameMap$type === void 0 ? void 0 : _columnsNameMap$type.typeName
|
|
13479
|
-
}, {
|
|
13480
|
-
dataIndex: 'billNo',
|
|
13481
|
-
title: '系统订单号'
|
|
13482
|
-
}, {
|
|
13483
|
-
dataIndex: 'billTag',
|
|
13484
|
-
title: columnsNameMap === null || columnsNameMap === void 0 ? void 0 : (_columnsNameMap$type2 = columnsNameMap[type]) === null || _columnsNameMap$type2 === void 0 ? void 0 : _columnsNameMap$type2.tagName
|
|
13485
|
-
}];
|
|
14150
|
+
return columnsMap[type] || [];
|
|
13486
14151
|
}, [type]);
|
|
13487
14152
|
var getOrderList = /*#__PURE__*/function () {
|
|
13488
14153
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
@@ -13604,6 +14269,31 @@ var index$1 = (function (props) {
|
|
|
13604
14269
|
return _ref3.apply(this, arguments);
|
|
13605
14270
|
};
|
|
13606
14271
|
}();
|
|
14272
|
+
var getBsE3OrderList = /*#__PURE__*/function () {
|
|
14273
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(orderNo) {
|
|
14274
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
14275
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
14276
|
+
case 0:
|
|
14277
|
+
bsE3Utils.getBsE3OrderListSingleton(orderNo).then(function (data) {
|
|
14278
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.orderList) || []).filter(function (item) {
|
|
14279
|
+
return (item === null || item === void 0 ? void 0 : item.dealCode) === orderNo;
|
|
14280
|
+
});
|
|
14281
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
14282
|
+
orders: trades,
|
|
14283
|
+
showOrderInfo: trades
|
|
14284
|
+
}));
|
|
14285
|
+
});
|
|
14286
|
+
onceRef.current = false;
|
|
14287
|
+
case 2:
|
|
14288
|
+
case "end":
|
|
14289
|
+
return _context4.stop();
|
|
14290
|
+
}
|
|
14291
|
+
}, _callee4);
|
|
14292
|
+
}));
|
|
14293
|
+
return function getBsE3OrderList(_x4) {
|
|
14294
|
+
return _ref5.apply(this, arguments);
|
|
14295
|
+
};
|
|
14296
|
+
}();
|
|
13607
14297
|
var rowSelection = {
|
|
13608
14298
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
13609
14299
|
fixed: true,
|
|
@@ -13624,7 +14314,7 @@ var index$1 = (function (props) {
|
|
|
13624
14314
|
dataSource: (value === null || value === void 0 ? void 0 : value.orders) || [],
|
|
13625
14315
|
columns: columns,
|
|
13626
14316
|
rowSelection: rowSelection,
|
|
13627
|
-
rowKey: 'billNo',
|
|
14317
|
+
rowKey: rowKeyMap[type] || 'billNo',
|
|
13628
14318
|
size: "small",
|
|
13629
14319
|
pagination: false,
|
|
13630
14320
|
scroll: {
|
|
@@ -13663,8 +14353,11 @@ var componentMap$1 = {
|
|
|
13663
14353
|
type: 'wdt',
|
|
13664
14354
|
key: 'wdtGoods',
|
|
13665
14355
|
name: '旺店通',
|
|
14356
|
+
orderNo: 'srcTid',
|
|
14357
|
+
goodDetailOrderNo: 'srcTid',
|
|
13666
14358
|
eventNameMap: {
|
|
13667
14359
|
type: 'wdtType',
|
|
14360
|
+
updateGoodsHandle: updateWdtGoodsHandle,
|
|
13668
14361
|
selectListReturn: 'wdtSelectListReturn',
|
|
13669
14362
|
selectList: 'wdtSelectList',
|
|
13670
14363
|
reissueSelectList: 'wdtReissueSelectList',
|
|
@@ -13679,6 +14372,30 @@ var componentMap$1 = {
|
|
|
13679
14372
|
returnDeleteGood: 'wdtReturnDeleteGood',
|
|
13680
14373
|
exchangeDeleteGood: 'wdtExchangeDeleteGood'
|
|
13681
14374
|
}
|
|
14375
|
+
},
|
|
14376
|
+
'BS_E3_GOODS': {
|
|
14377
|
+
type: 'e3',
|
|
14378
|
+
key: 'bsE3Goods',
|
|
14379
|
+
name: '百胜E3',
|
|
14380
|
+
orderNo: 'dealCode',
|
|
14381
|
+
goodDetailOrderNo: 'originalDealCode',
|
|
14382
|
+
eventNameMap: {
|
|
14383
|
+
type: 'bsE3Type',
|
|
14384
|
+
updateGoodsHandle: updateBsE3GoodsHandle,
|
|
14385
|
+
selectListReturn: 'bsE3SelectListReturn',
|
|
14386
|
+
selectList: 'bsE3SelectList',
|
|
14387
|
+
reissueSelectList: 'bsE3ReissueSelectList',
|
|
14388
|
+
reissueSelectListReturn: 'bsE3ReissueSelectListReturn',
|
|
14389
|
+
reissueDeleteGood: 'bsE3ReissueDeleteGood',
|
|
14390
|
+
changeShopCode: 'bsE3ChangeShopCode',
|
|
14391
|
+
reissueType: 'bsE3ReissueType',
|
|
14392
|
+
returnType: 'bsE3ReturnType',
|
|
14393
|
+
returnSelectListReturn: 'bsE3ReturnSelectListReturn',
|
|
14394
|
+
returnSelectList: 'bsE3ReturnSelectList',
|
|
14395
|
+
deleteGood: 'bsE3DeleteGood',
|
|
14396
|
+
returnDeleteGood: 'bsE3ReturnDeleteGood',
|
|
14397
|
+
exchangeDeleteGood: 'bsE3ExchangeDeleteGood'
|
|
14398
|
+
}
|
|
13682
14399
|
}
|
|
13683
14400
|
};
|
|
13684
14401
|
var CommonGoods = function CommonGoods(props) {
|
|
@@ -13687,8 +14404,11 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13687
14404
|
disabled = props.disabled,
|
|
13688
14405
|
onChange = props.onChange,
|
|
13689
14406
|
compType = props.type;
|
|
13690
|
-
|
|
13691
|
-
|
|
14407
|
+
console.log('value?.orders', value === null || value === void 0 ? void 0 : value.orders);
|
|
14408
|
+
// 合并单订单会包含","
|
|
14409
|
+
var showModeBtn = !['BS_E3_GOODS'].includes(compType) && ((value === null || value === void 0 ? void 0 : value.orders) || []).some(function (order) {
|
|
14410
|
+
var _order$componentMap$c;
|
|
14411
|
+
return order === null || order === void 0 ? void 0 : (_order$componentMap$c = order[componentMap$1[compType].orderNo]) === null || _order$componentMap$c === void 0 ? void 0 : _order$componentMap$c.includes(',');
|
|
13692
14412
|
});
|
|
13693
14413
|
var getOrderFlag = useRef(false);
|
|
13694
14414
|
var _useState = useState(false),
|
|
@@ -13835,10 +14555,12 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
13835
14555
|
};
|
|
13836
14556
|
var getGoodDetails = function getGoodDetails(_ref2) {
|
|
13837
14557
|
var mode = _ref2.mode;
|
|
13838
|
-
var
|
|
14558
|
+
var updateHandle = componentMap$1[compType].eventNameMap['updateGoodsHandle'];
|
|
14559
|
+
var goodDetails = updateHandle(value.orders || []);
|
|
13839
14560
|
var orderNo = value.orderNo;
|
|
13840
14561
|
return mode ? goodDetails.filter(function (goodItem) {
|
|
13841
|
-
|
|
14562
|
+
var _componentMap$compTyp;
|
|
14563
|
+
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp = componentMap$1[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.goodDetailOrderNo]) === orderNo;
|
|
13842
14564
|
}) : goodDetails;
|
|
13843
14565
|
};
|
|
13844
14566
|
return /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -14150,7 +14872,8 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
14150
14872
|
type = props.type,
|
|
14151
14873
|
other = _objectWithoutProperties(props, _excluded$g);
|
|
14152
14874
|
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
|
|
14153
|
-
|
|
14875
|
+
var _order$srcTid;
|
|
14876
|
+
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
14154
14877
|
});
|
|
14155
14878
|
var getOrderFlag = useRef(false);
|
|
14156
14879
|
var _useState = useState(false),
|
|
@@ -14352,7 +15075,7 @@ styleInject(css_248z$a);
|
|
|
14352
15075
|
var TabPane$1 = Tabs.TabPane;
|
|
14353
15076
|
var Option$2 = Select.Option;
|
|
14354
15077
|
var Search$1 = Input.Search;
|
|
14355
|
-
var GoodsModal$
|
|
15078
|
+
var GoodsModal$5 = function GoodsModal(props) {
|
|
14356
15079
|
var onSubmit = props.onSubmit,
|
|
14357
15080
|
_onCancel = props.onCancel,
|
|
14358
15081
|
visible = props.visible,
|
|
@@ -14803,7 +15526,7 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
14803
15526
|
};
|
|
14804
15527
|
return /*#__PURE__*/React.createElement("div", {
|
|
14805
15528
|
className: "goodsBox"
|
|
14806
|
-
}, /*#__PURE__*/React.createElement(GoodsModal$
|
|
15529
|
+
}, /*#__PURE__*/React.createElement(GoodsModal$5, {
|
|
14807
15530
|
visible: visible,
|
|
14808
15531
|
onSubmit: onSubmit,
|
|
14809
15532
|
type: type,
|