@kmkf-fe-packages/basic-components 2.2.13-beta.3 → 2.2.13-beta.30
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 +740 -699
- package/dist/index.js +739 -698
- package/dist/src/bs/component/model/Columns/Erp/jy.d.ts +7 -1
- package/dist/src/bs/component/model/JyGoodsModal/GoodsList.d.ts +14 -14
- package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/FilterSelectOption/Rate/index.d.ts +2 -1
- package/dist/src/bs/component/model/WorkOrderList/SearchFormForWorkOrder/SearchHeader/index.d.ts +2 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } 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, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -14,377 +14,363 @@ import { internals, useTablePipeline, features, BaseTable } from 'ali-react-tabl
|
|
|
14
14
|
import zh_CN from 'antd/lib/locale-provider/zh_CN';
|
|
15
15
|
import BigNumber from 'bignumber.js';
|
|
16
16
|
|
|
17
|
-
function _iterableToArrayLimit(
|
|
18
|
-
var
|
|
19
|
-
if (null !=
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
function _iterableToArrayLimit(arr, i) {
|
|
18
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
19
|
+
if (null != _i) {
|
|
20
|
+
var _s,
|
|
21
|
+
_e,
|
|
22
|
+
_x,
|
|
23
|
+
_r,
|
|
24
|
+
_arr = [],
|
|
25
|
+
_n = !0,
|
|
26
|
+
_d = !1;
|
|
27
27
|
try {
|
|
28
|
-
if (
|
|
29
|
-
if (Object(
|
|
30
|
-
|
|
31
|
-
} else for (; !(
|
|
32
|
-
} catch (
|
|
33
|
-
|
|
28
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
29
|
+
if (Object(_i) !== _i) return;
|
|
30
|
+
_n = !1;
|
|
31
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
32
|
+
} catch (err) {
|
|
33
|
+
_d = !0, _e = err;
|
|
34
34
|
} finally {
|
|
35
35
|
try {
|
|
36
|
-
if (!
|
|
36
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
37
37
|
} finally {
|
|
38
|
-
if (
|
|
38
|
+
if (_d) throw _e;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
return
|
|
41
|
+
return _arr;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function ownKeys(
|
|
45
|
-
var
|
|
44
|
+
function ownKeys(object, enumerableOnly) {
|
|
45
|
+
var keys = Object.keys(object);
|
|
46
46
|
if (Object.getOwnPropertySymbols) {
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
return Object.getOwnPropertyDescriptor(
|
|
50
|
-
})),
|
|
47
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
48
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
49
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
50
|
+
})), keys.push.apply(keys, symbols);
|
|
51
51
|
}
|
|
52
|
-
return
|
|
53
|
-
}
|
|
54
|
-
function _objectSpread2(
|
|
55
|
-
for (var
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
_defineProperty(
|
|
59
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
60
|
-
Object.defineProperty(
|
|
52
|
+
return keys;
|
|
53
|
+
}
|
|
54
|
+
function _objectSpread2(target) {
|
|
55
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
56
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
57
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
58
|
+
_defineProperty(target, key, source[key]);
|
|
59
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
60
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
return
|
|
63
|
+
return target;
|
|
64
64
|
}
|
|
65
65
|
function _regeneratorRuntime() {
|
|
66
66
|
_regeneratorRuntime = function () {
|
|
67
|
-
return
|
|
68
|
-
};
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
t[e] = r.value;
|
|
67
|
+
return exports;
|
|
68
|
+
};
|
|
69
|
+
var exports = {},
|
|
70
|
+
Op = Object.prototype,
|
|
71
|
+
hasOwn = Op.hasOwnProperty,
|
|
72
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
73
|
+
obj[key] = desc.value;
|
|
75
74
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
function define(
|
|
81
|
-
return Object.defineProperty(
|
|
82
|
-
value:
|
|
75
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
76
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
77
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
78
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
79
|
+
function define(obj, key, value) {
|
|
80
|
+
return Object.defineProperty(obj, key, {
|
|
81
|
+
value: value,
|
|
83
82
|
enumerable: !0,
|
|
84
83
|
configurable: !0,
|
|
85
84
|
writable: !0
|
|
86
|
-
}),
|
|
85
|
+
}), obj[key];
|
|
87
86
|
}
|
|
88
87
|
try {
|
|
89
88
|
define({}, "");
|
|
90
|
-
} catch (
|
|
91
|
-
define = function (
|
|
92
|
-
return
|
|
89
|
+
} catch (err) {
|
|
90
|
+
define = function (obj, key, value) {
|
|
91
|
+
return obj[key] = value;
|
|
93
92
|
};
|
|
94
93
|
}
|
|
95
|
-
function wrap(
|
|
96
|
-
var
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
return
|
|
100
|
-
value: makeInvokeMethod(
|
|
101
|
-
}),
|
|
94
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
95
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
96
|
+
generator = Object.create(protoGenerator.prototype),
|
|
97
|
+
context = new Context(tryLocsList || []);
|
|
98
|
+
return defineProperty(generator, "_invoke", {
|
|
99
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
100
|
+
}), generator;
|
|
102
101
|
}
|
|
103
|
-
function tryCatch(
|
|
102
|
+
function tryCatch(fn, obj, arg) {
|
|
104
103
|
try {
|
|
105
104
|
return {
|
|
106
105
|
type: "normal",
|
|
107
|
-
arg:
|
|
106
|
+
arg: fn.call(obj, arg)
|
|
108
107
|
};
|
|
109
|
-
} catch (
|
|
108
|
+
} catch (err) {
|
|
110
109
|
return {
|
|
111
110
|
type: "throw",
|
|
112
|
-
arg:
|
|
111
|
+
arg: err
|
|
113
112
|
};
|
|
114
113
|
}
|
|
115
114
|
}
|
|
116
|
-
|
|
117
|
-
var
|
|
118
|
-
l = "suspendedYield",
|
|
119
|
-
f = "executing",
|
|
120
|
-
s = "completed",
|
|
121
|
-
y = {};
|
|
115
|
+
exports.wrap = wrap;
|
|
116
|
+
var ContinueSentinel = {};
|
|
122
117
|
function Generator() {}
|
|
123
118
|
function GeneratorFunction() {}
|
|
124
119
|
function GeneratorFunctionPrototype() {}
|
|
125
|
-
var
|
|
126
|
-
define(
|
|
120
|
+
var IteratorPrototype = {};
|
|
121
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
127
122
|
return this;
|
|
128
123
|
});
|
|
129
|
-
var
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
var
|
|
133
|
-
function defineIteratorMethods(
|
|
134
|
-
["next", "throw", "return"].forEach(function (
|
|
135
|
-
define(
|
|
136
|
-
return this._invoke(
|
|
124
|
+
var getProto = Object.getPrototypeOf,
|
|
125
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
126
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
127
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
128
|
+
function defineIteratorMethods(prototype) {
|
|
129
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
130
|
+
define(prototype, method, function (arg) {
|
|
131
|
+
return this._invoke(method, arg);
|
|
137
132
|
});
|
|
138
133
|
});
|
|
139
134
|
}
|
|
140
|
-
function AsyncIterator(
|
|
141
|
-
function invoke(
|
|
142
|
-
var
|
|
143
|
-
if ("throw" !==
|
|
144
|
-
var
|
|
145
|
-
|
|
146
|
-
return
|
|
147
|
-
invoke("next",
|
|
148
|
-
}, function (
|
|
149
|
-
invoke("throw",
|
|
150
|
-
}) :
|
|
151
|
-
|
|
152
|
-
}, function (
|
|
153
|
-
return invoke("throw",
|
|
135
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
136
|
+
function invoke(method, arg, resolve, reject) {
|
|
137
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
138
|
+
if ("throw" !== record.type) {
|
|
139
|
+
var result = record.arg,
|
|
140
|
+
value = result.value;
|
|
141
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
142
|
+
invoke("next", value, resolve, reject);
|
|
143
|
+
}, function (err) {
|
|
144
|
+
invoke("throw", err, resolve, reject);
|
|
145
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
146
|
+
result.value = unwrapped, resolve(result);
|
|
147
|
+
}, function (error) {
|
|
148
|
+
return invoke("throw", error, resolve, reject);
|
|
154
149
|
});
|
|
155
150
|
}
|
|
156
|
-
|
|
151
|
+
reject(record.arg);
|
|
157
152
|
}
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
value: function (
|
|
153
|
+
var previousPromise;
|
|
154
|
+
defineProperty(this, "_invoke", {
|
|
155
|
+
value: function (method, arg) {
|
|
161
156
|
function callInvokeWithMethodAndArg() {
|
|
162
|
-
return new
|
|
163
|
-
invoke(
|
|
157
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
158
|
+
invoke(method, arg, resolve, reject);
|
|
164
159
|
});
|
|
165
160
|
}
|
|
166
|
-
return
|
|
161
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
167
162
|
}
|
|
168
163
|
});
|
|
169
164
|
}
|
|
170
|
-
function makeInvokeMethod(
|
|
171
|
-
var
|
|
172
|
-
return function (
|
|
173
|
-
if (
|
|
174
|
-
if (
|
|
175
|
-
if ("throw" ===
|
|
176
|
-
return
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
if (u) {
|
|
186
|
-
if (u === y) continue;
|
|
187
|
-
return u;
|
|
165
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
166
|
+
var state = "suspendedStart";
|
|
167
|
+
return function (method, arg) {
|
|
168
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
169
|
+
if ("completed" === state) {
|
|
170
|
+
if ("throw" === method) throw arg;
|
|
171
|
+
return doneResult();
|
|
172
|
+
}
|
|
173
|
+
for (context.method = method, context.arg = arg;;) {
|
|
174
|
+
var delegate = context.delegate;
|
|
175
|
+
if (delegate) {
|
|
176
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
177
|
+
if (delegateResult) {
|
|
178
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
179
|
+
return delegateResult;
|
|
188
180
|
}
|
|
189
181
|
}
|
|
190
|
-
if ("next" ===
|
|
191
|
-
if (
|
|
192
|
-
|
|
193
|
-
} else "return" ===
|
|
194
|
-
|
|
195
|
-
var
|
|
196
|
-
if ("normal" ===
|
|
197
|
-
if (
|
|
182
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
183
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
184
|
+
context.dispatchException(context.arg);
|
|
185
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
186
|
+
state = "executing";
|
|
187
|
+
var record = tryCatch(innerFn, self, context);
|
|
188
|
+
if ("normal" === record.type) {
|
|
189
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
198
190
|
return {
|
|
199
|
-
value:
|
|
200
|
-
done:
|
|
191
|
+
value: record.arg,
|
|
192
|
+
done: context.done
|
|
201
193
|
};
|
|
202
194
|
}
|
|
203
|
-
"throw" ===
|
|
195
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
204
196
|
}
|
|
205
197
|
};
|
|
206
198
|
}
|
|
207
|
-
function maybeInvokeDelegate(
|
|
208
|
-
var
|
|
209
|
-
|
|
210
|
-
if (
|
|
211
|
-
var
|
|
212
|
-
if ("throw" ===
|
|
213
|
-
var
|
|
214
|
-
return
|
|
199
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
200
|
+
var methodName = context.method,
|
|
201
|
+
method = delegate.iterator[methodName];
|
|
202
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
203
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
204
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
205
|
+
var info = record.arg;
|
|
206
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
215
207
|
}
|
|
216
|
-
function pushTryEntry(
|
|
217
|
-
var
|
|
218
|
-
tryLoc:
|
|
208
|
+
function pushTryEntry(locs) {
|
|
209
|
+
var entry = {
|
|
210
|
+
tryLoc: locs[0]
|
|
219
211
|
};
|
|
220
|
-
1 in
|
|
212
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
221
213
|
}
|
|
222
|
-
function resetTryEntry(
|
|
223
|
-
var
|
|
224
|
-
|
|
214
|
+
function resetTryEntry(entry) {
|
|
215
|
+
var record = entry.completion || {};
|
|
216
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
225
217
|
}
|
|
226
|
-
function Context(
|
|
218
|
+
function Context(tryLocsList) {
|
|
227
219
|
this.tryEntries = [{
|
|
228
220
|
tryLoc: "root"
|
|
229
|
-
}],
|
|
221
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
230
222
|
}
|
|
231
|
-
function values(
|
|
232
|
-
if (
|
|
233
|
-
var
|
|
234
|
-
if (
|
|
235
|
-
if ("function" == typeof
|
|
236
|
-
if (!isNaN(
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
for (; ++
|
|
240
|
-
return next.value =
|
|
223
|
+
function values(iterable) {
|
|
224
|
+
if (iterable) {
|
|
225
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
226
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
227
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
228
|
+
if (!isNaN(iterable.length)) {
|
|
229
|
+
var i = -1,
|
|
230
|
+
next = function next() {
|
|
231
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
232
|
+
return next.value = undefined, next.done = !0, next;
|
|
241
233
|
};
|
|
242
|
-
return
|
|
234
|
+
return next.next = next;
|
|
243
235
|
}
|
|
244
236
|
}
|
|
245
|
-
|
|
237
|
+
return {
|
|
238
|
+
next: doneResult
|
|
239
|
+
};
|
|
246
240
|
}
|
|
247
|
-
|
|
241
|
+
function doneResult() {
|
|
242
|
+
return {
|
|
243
|
+
value: undefined,
|
|
244
|
+
done: !0
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
248
248
|
value: GeneratorFunctionPrototype,
|
|
249
249
|
configurable: !0
|
|
250
|
-
}),
|
|
250
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
251
251
|
value: GeneratorFunction,
|
|
252
252
|
configurable: !0
|
|
253
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
254
|
-
var
|
|
255
|
-
return !!
|
|
256
|
-
},
|
|
257
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
258
|
-
},
|
|
253
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
254
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
255
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
256
|
+
}, exports.mark = function (genFun) {
|
|
257
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
258
|
+
}, exports.awrap = function (arg) {
|
|
259
259
|
return {
|
|
260
|
-
__await:
|
|
260
|
+
__await: arg
|
|
261
261
|
};
|
|
262
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
262
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
263
263
|
return this;
|
|
264
|
-
}),
|
|
265
|
-
void 0 ===
|
|
266
|
-
var
|
|
267
|
-
return
|
|
268
|
-
return
|
|
264
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
265
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
266
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
267
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
268
|
+
return result.done ? result.value : iter.next();
|
|
269
269
|
});
|
|
270
|
-
}, defineIteratorMethods(
|
|
270
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
271
271
|
return this;
|
|
272
|
-
}), define(
|
|
272
|
+
}), define(Gp, "toString", function () {
|
|
273
273
|
return "[object Generator]";
|
|
274
|
-
}),
|
|
275
|
-
var
|
|
276
|
-
|
|
277
|
-
for (var
|
|
278
|
-
return
|
|
279
|
-
for (;
|
|
280
|
-
var
|
|
281
|
-
if (
|
|
274
|
+
}), exports.keys = function (val) {
|
|
275
|
+
var object = Object(val),
|
|
276
|
+
keys = [];
|
|
277
|
+
for (var key in object) keys.push(key);
|
|
278
|
+
return keys.reverse(), function next() {
|
|
279
|
+
for (; keys.length;) {
|
|
280
|
+
var key = keys.pop();
|
|
281
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
282
282
|
}
|
|
283
283
|
return next.done = !0, next;
|
|
284
284
|
};
|
|
285
|
-
},
|
|
285
|
+
}, exports.values = values, Context.prototype = {
|
|
286
286
|
constructor: Context,
|
|
287
|
-
reset: function (
|
|
288
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
287
|
+
reset: function (skipTempReset) {
|
|
288
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
289
289
|
},
|
|
290
290
|
stop: function () {
|
|
291
291
|
this.done = !0;
|
|
292
|
-
var
|
|
293
|
-
if ("throw" ===
|
|
292
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
293
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
294
294
|
return this.rval;
|
|
295
295
|
},
|
|
296
|
-
dispatchException: function (
|
|
297
|
-
if (this.done) throw
|
|
298
|
-
var
|
|
299
|
-
function handle(
|
|
300
|
-
return
|
|
301
|
-
}
|
|
302
|
-
for (var
|
|
303
|
-
var
|
|
304
|
-
|
|
305
|
-
if ("root" ===
|
|
306
|
-
if (
|
|
307
|
-
var
|
|
308
|
-
|
|
309
|
-
if (
|
|
310
|
-
if (this.prev <
|
|
311
|
-
if (this.prev <
|
|
312
|
-
} else if (
|
|
313
|
-
if (this.prev <
|
|
296
|
+
dispatchException: function (exception) {
|
|
297
|
+
if (this.done) throw exception;
|
|
298
|
+
var context = this;
|
|
299
|
+
function handle(loc, caught) {
|
|
300
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
301
|
+
}
|
|
302
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
303
|
+
var entry = this.tryEntries[i],
|
|
304
|
+
record = entry.completion;
|
|
305
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
306
|
+
if (entry.tryLoc <= this.prev) {
|
|
307
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
308
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
309
|
+
if (hasCatch && hasFinally) {
|
|
310
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
311
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
312
|
+
} else if (hasCatch) {
|
|
313
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
314
314
|
} else {
|
|
315
|
-
if (!
|
|
316
|
-
if (this.prev <
|
|
315
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
316
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
},
|
|
321
|
-
abrupt: function (
|
|
322
|
-
for (var
|
|
323
|
-
var
|
|
324
|
-
if (
|
|
325
|
-
var
|
|
321
|
+
abrupt: function (type, arg) {
|
|
322
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
323
|
+
var entry = this.tryEntries[i];
|
|
324
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
325
|
+
var finallyEntry = entry;
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
|
|
330
|
-
var
|
|
331
|
-
return
|
|
329
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
330
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
331
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
332
332
|
},
|
|
333
|
-
complete: function (
|
|
334
|
-
if ("throw" ===
|
|
335
|
-
return "break" ===
|
|
333
|
+
complete: function (record, afterLoc) {
|
|
334
|
+
if ("throw" === record.type) throw record.arg;
|
|
335
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
336
336
|
},
|
|
337
|
-
finish: function (
|
|
338
|
-
for (var
|
|
339
|
-
var
|
|
340
|
-
if (
|
|
337
|
+
finish: function (finallyLoc) {
|
|
338
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
339
|
+
var entry = this.tryEntries[i];
|
|
340
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
|
-
catch: function (
|
|
344
|
-
for (var
|
|
345
|
-
var
|
|
346
|
-
if (
|
|
347
|
-
var
|
|
348
|
-
if ("throw" ===
|
|
349
|
-
var
|
|
350
|
-
resetTryEntry(
|
|
343
|
+
catch: function (tryLoc) {
|
|
344
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
345
|
+
var entry = this.tryEntries[i];
|
|
346
|
+
if (entry.tryLoc === tryLoc) {
|
|
347
|
+
var record = entry.completion;
|
|
348
|
+
if ("throw" === record.type) {
|
|
349
|
+
var thrown = record.arg;
|
|
350
|
+
resetTryEntry(entry);
|
|
351
351
|
}
|
|
352
|
-
return
|
|
352
|
+
return thrown;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
throw new Error("illegal catch attempt");
|
|
356
356
|
},
|
|
357
|
-
delegateYield: function (
|
|
357
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
358
358
|
return this.delegate = {
|
|
359
|
-
iterator: values(
|
|
360
|
-
resultName:
|
|
361
|
-
nextLoc:
|
|
362
|
-
}, "next" === this.method && (this.arg =
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
}
|
|
366
|
-
function _toPrimitive(t, r) {
|
|
367
|
-
if ("object" != typeof t || !t) return t;
|
|
368
|
-
var e = t[Symbol.toPrimitive];
|
|
369
|
-
if (void 0 !== e) {
|
|
370
|
-
var i = e.call(t, r || "default");
|
|
371
|
-
if ("object" != typeof i) return i;
|
|
372
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
373
|
-
}
|
|
374
|
-
return ("string" === r ? String : Number)(t);
|
|
375
|
-
}
|
|
376
|
-
function _toPropertyKey(t) {
|
|
377
|
-
var i = _toPrimitive(t, "string");
|
|
378
|
-
return "symbol" == typeof i ? i : String(i);
|
|
359
|
+
iterator: values(iterable),
|
|
360
|
+
resultName: resultName,
|
|
361
|
+
nextLoc: nextLoc
|
|
362
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
363
|
+
}
|
|
364
|
+
}, exports;
|
|
379
365
|
}
|
|
380
|
-
function _typeof(
|
|
366
|
+
function _typeof(obj) {
|
|
381
367
|
"@babel/helpers - typeof";
|
|
382
368
|
|
|
383
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
384
|
-
return typeof
|
|
385
|
-
} : function (
|
|
386
|
-
return
|
|
387
|
-
}, _typeof(
|
|
369
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
370
|
+
return typeof obj;
|
|
371
|
+
} : function (obj) {
|
|
372
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
373
|
+
}, _typeof(obj);
|
|
388
374
|
}
|
|
389
375
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
390
376
|
try {
|
|
@@ -542,6 +528,20 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
542
528
|
}
|
|
543
529
|
};
|
|
544
530
|
}
|
|
531
|
+
function _toPrimitive(input, hint) {
|
|
532
|
+
if (typeof input !== "object" || input === null) return input;
|
|
533
|
+
var prim = input[Symbol.toPrimitive];
|
|
534
|
+
if (prim !== undefined) {
|
|
535
|
+
var res = prim.call(input, hint || "default");
|
|
536
|
+
if (typeof res !== "object") return res;
|
|
537
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
538
|
+
}
|
|
539
|
+
return (hint === "string" ? String : Number)(input);
|
|
540
|
+
}
|
|
541
|
+
function _toPropertyKey(arg) {
|
|
542
|
+
var key = _toPrimitive(arg, "string");
|
|
543
|
+
return typeof key === "symbol" ? key : String(key);
|
|
544
|
+
}
|
|
545
545
|
|
|
546
546
|
function ApaasCascader(props) {
|
|
547
547
|
return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
|
|
@@ -9559,7 +9559,7 @@ var renderMap = {
|
|
|
9559
9559
|
return /*#__PURE__*/React.createElement(FileRender, {
|
|
9560
9560
|
id: "fileRender",
|
|
9561
9561
|
fileList: value,
|
|
9562
|
-
canDownload: !['ks', 'fxg'].includes(platform || '')
|
|
9562
|
+
canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform || '')
|
|
9563
9563
|
});
|
|
9564
9564
|
},
|
|
9565
9565
|
CHECKBOX: function CHECKBOX(value) {
|
|
@@ -9662,7 +9662,7 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9662
9662
|
})), /*#__PURE__*/React.createElement(FileRender, {
|
|
9663
9663
|
id: "fileEdit",
|
|
9664
9664
|
fileList: val,
|
|
9665
|
-
canDownload: !['ks', 'fxg'].includes(platform)
|
|
9665
|
+
canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform)
|
|
9666
9666
|
}));
|
|
9667
9667
|
};
|
|
9668
9668
|
var EditRenderMap = {
|
|
@@ -13830,7 +13830,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13830
13830
|
onChange: function onChange(val) {
|
|
13831
13831
|
changeInputHandle(val, 'logisticsCompany');
|
|
13832
13832
|
},
|
|
13833
|
-
value:
|
|
13833
|
+
value: ['gy', 'jy'].includes(platformType) ? (expressDateInstance === null || expressDateInstance === void 0 ? void 0 : expressDateInstance.getExpressNameByCode((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompany'], false)) ? (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompany'] : (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4['logisticsCompanyName'] : (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5['logisticsCompany'],
|
|
13834
13834
|
showSearch: true,
|
|
13835
13835
|
dropdownMatchSelectWidth: false,
|
|
13836
13836
|
filterOption: function filterOption(input, option) {
|
|
@@ -14890,17 +14890,17 @@ var getYesOrNo$1 = function getYesOrNo(val) {
|
|
|
14890
14890
|
return val ? '是' : '否';
|
|
14891
14891
|
};
|
|
14892
14892
|
var jyColumns = [{
|
|
14893
|
-
dataIndex: '
|
|
14893
|
+
dataIndex: 'goodName',
|
|
14894
14894
|
title: '商品名称',
|
|
14895
14895
|
width: 250,
|
|
14896
14896
|
ellipsis: true
|
|
14897
14897
|
}, {
|
|
14898
|
-
dataIndex: '
|
|
14898
|
+
dataIndex: 'goodNo',
|
|
14899
14899
|
title: '商品编码',
|
|
14900
14900
|
width: 150,
|
|
14901
14901
|
ellipsis: true
|
|
14902
14902
|
}, {
|
|
14903
|
-
dataIndex: '
|
|
14903
|
+
dataIndex: 'goodId',
|
|
14904
14904
|
title: '商品ID',
|
|
14905
14905
|
width: 150,
|
|
14906
14906
|
ellipsis: true
|
|
@@ -14909,22 +14909,22 @@ var jyColumns = [{
|
|
|
14909
14909
|
title: '商品图片',
|
|
14910
14910
|
width: 100,
|
|
14911
14911
|
render: function render(picUrl) {
|
|
14912
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
14912
|
+
return picUrl ? /*#__PURE__*/React.createElement("img", {
|
|
14913
14913
|
style: {
|
|
14914
14914
|
width: '40px',
|
|
14915
14915
|
height: '40px',
|
|
14916
14916
|
objectFit: 'contain'
|
|
14917
14917
|
},
|
|
14918
14918
|
src: picUrl
|
|
14919
|
-
});
|
|
14919
|
+
}) : null;
|
|
14920
14920
|
}
|
|
14921
14921
|
}, {
|
|
14922
|
-
dataIndex: '
|
|
14922
|
+
dataIndex: 'goodShortName',
|
|
14923
14923
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
14924
14924
|
ellipsis: true,
|
|
14925
14925
|
width: 150
|
|
14926
14926
|
}, {
|
|
14927
|
-
dataIndex: '
|
|
14927
|
+
dataIndex: 'categoryName',
|
|
14928
14928
|
title: "\u5546\u54C1\u7EC4",
|
|
14929
14929
|
ellipsis: true,
|
|
14930
14930
|
width: 150
|
|
@@ -14934,56 +14934,56 @@ var jyColumns = [{
|
|
|
14934
14934
|
width: 200,
|
|
14935
14935
|
ellipsis: true
|
|
14936
14936
|
}, {
|
|
14937
|
-
dataIndex: '
|
|
14937
|
+
dataIndex: 'specName',
|
|
14938
14938
|
title: '规格名称',
|
|
14939
14939
|
width: 250,
|
|
14940
14940
|
ellipsis: true
|
|
14941
14941
|
}, {
|
|
14942
|
-
dataIndex: '
|
|
14942
|
+
dataIndex: 'specNo',
|
|
14943
14943
|
title: '规格编码',
|
|
14944
14944
|
width: 150,
|
|
14945
14945
|
ellipsis: true
|
|
14946
14946
|
}, {
|
|
14947
|
-
dataIndex: '
|
|
14947
|
+
dataIndex: 'specId',
|
|
14948
14948
|
title: '规格ID',
|
|
14949
14949
|
width: 250,
|
|
14950
14950
|
ellipsis: true
|
|
14951
14951
|
}, {
|
|
14952
|
-
dataIndex: '
|
|
14952
|
+
dataIndex: 'specBarcode',
|
|
14953
14953
|
title: '规格条码',
|
|
14954
14954
|
width: 150,
|
|
14955
14955
|
ellipsis: true
|
|
14956
14956
|
}, {
|
|
14957
|
-
dataIndex: '
|
|
14957
|
+
dataIndex: 'specImgUrl',
|
|
14958
14958
|
title: '规格图片',
|
|
14959
14959
|
width: 100,
|
|
14960
14960
|
render: function render(picUrl) {
|
|
14961
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
14961
|
+
return picUrl ? /*#__PURE__*/React.createElement("img", {
|
|
14962
14962
|
style: {
|
|
14963
14963
|
width: '40px',
|
|
14964
14964
|
height: '40px',
|
|
14965
14965
|
objectFit: 'contain'
|
|
14966
14966
|
},
|
|
14967
14967
|
src: picUrl
|
|
14968
|
-
});
|
|
14968
|
+
}) : null;
|
|
14969
14969
|
}
|
|
14970
14970
|
}, {
|
|
14971
|
-
dataIndex: '
|
|
14971
|
+
dataIndex: 'colorName',
|
|
14972
14972
|
title: "\u989C\u8272",
|
|
14973
14973
|
ellipsis: true,
|
|
14974
14974
|
width: 100
|
|
14975
14975
|
}, {
|
|
14976
|
-
dataIndex: '
|
|
14976
|
+
dataIndex: 'sizeName',
|
|
14977
14977
|
title: "\u5C3A\u7801",
|
|
14978
14978
|
ellipsis: true,
|
|
14979
14979
|
width: 100
|
|
14980
14980
|
}, {
|
|
14981
|
-
dataIndex: '
|
|
14981
|
+
dataIndex: 'marketPrice',
|
|
14982
14982
|
title: "\u5E02\u573A\u4EF7",
|
|
14983
14983
|
ellipsis: true,
|
|
14984
14984
|
width: 100
|
|
14985
14985
|
}, {
|
|
14986
|
-
dataIndex: '
|
|
14986
|
+
dataIndex: 'retailPrice',
|
|
14987
14987
|
title: "\u96F6\u552E\u4EF7",
|
|
14988
14988
|
ellipsis: true,
|
|
14989
14989
|
width: 100
|
|
@@ -14993,7 +14993,7 @@ var jyColumns = [{
|
|
|
14993
14993
|
ellipsis: true,
|
|
14994
14994
|
width: 100
|
|
14995
14995
|
}, {
|
|
14996
|
-
dataIndex: '
|
|
14996
|
+
dataIndex: 'isGift',
|
|
14997
14997
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
14998
14998
|
ellipsis: true,
|
|
14999
14999
|
width: 150,
|
|
@@ -15001,12 +15001,12 @@ var jyColumns = [{
|
|
|
15001
15001
|
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
15002
15002
|
}
|
|
15003
15003
|
}, {
|
|
15004
|
-
dataIndex: '
|
|
15004
|
+
dataIndex: 'skuType',
|
|
15005
15005
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15006
15006
|
ellipsis: true,
|
|
15007
15007
|
width: 150,
|
|
15008
15008
|
render: function render(val) {
|
|
15009
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
15009
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val === 'combine'));
|
|
15010
15010
|
}
|
|
15011
15011
|
}];
|
|
15012
15012
|
|
|
@@ -16757,7 +16757,8 @@ var Rate = function Rate(_ref) {
|
|
|
16757
16757
|
var value = _ref.value,
|
|
16758
16758
|
_onChange = _ref.onChange,
|
|
16759
16759
|
placeholder = _ref.placeholder,
|
|
16760
|
-
prefix = _ref.prefix
|
|
16760
|
+
prefix = _ref.prefix,
|
|
16761
|
+
onSubmit = _ref.onSubmit;
|
|
16761
16762
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(InputNumber, {
|
|
16762
16763
|
prefix: prefix,
|
|
16763
16764
|
style: {
|
|
@@ -16767,7 +16768,8 @@ var Rate = function Rate(_ref) {
|
|
|
16767
16768
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[0],
|
|
16768
16769
|
onChange: function onChange(val) {
|
|
16769
16770
|
_onChange([val ? Number(val) : val, value === null || value === void 0 ? void 0 : value[1]]);
|
|
16770
|
-
}
|
|
16771
|
+
},
|
|
16772
|
+
onBlur: onSubmit
|
|
16771
16773
|
}), /*#__PURE__*/React.createElement("span", {
|
|
16772
16774
|
style: {
|
|
16773
16775
|
padding: '0px 8px'
|
|
@@ -16781,7 +16783,8 @@ var Rate = function Rate(_ref) {
|
|
|
16781
16783
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[1],
|
|
16782
16784
|
onChange: function onChange(val) {
|
|
16783
16785
|
_onChange([value === null || value === void 0 ? void 0 : value[0], val ? Number(val) : val]);
|
|
16784
|
-
}
|
|
16786
|
+
},
|
|
16787
|
+
onBlur: onSubmit
|
|
16785
16788
|
}));
|
|
16786
16789
|
};
|
|
16787
16790
|
|
|
@@ -16865,6 +16868,7 @@ var _SelectInput = function SelectInput(props) {
|
|
|
16865
16868
|
newValue.keywords = '';
|
|
16866
16869
|
}
|
|
16867
16870
|
onChange(newValue);
|
|
16871
|
+
props.onSubmit();
|
|
16868
16872
|
};
|
|
16869
16873
|
var handleInputChange = function handleInputChange(e) {
|
|
16870
16874
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -16887,7 +16891,8 @@ var _SelectInput = function SelectInput(props) {
|
|
|
16887
16891
|
placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16888
16892
|
value: value.keywords,
|
|
16889
16893
|
allowClear: true,
|
|
16890
|
-
onChange: handleInputChange
|
|
16894
|
+
onChange: handleInputChange,
|
|
16895
|
+
onBlur: props.onSubmit
|
|
16891
16896
|
}) : null);
|
|
16892
16897
|
};
|
|
16893
16898
|
var _TradeInput = function TradeInput(props) {
|
|
@@ -16915,59 +16920,71 @@ var _TradeInput = function TradeInput(props) {
|
|
|
16915
16920
|
placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16916
16921
|
allowClear: true,
|
|
16917
16922
|
value: value.value,
|
|
16918
|
-
onChange: handleInputChange
|
|
16923
|
+
onChange: handleInputChange,
|
|
16924
|
+
onBlur: props.onSubmit
|
|
16919
16925
|
}), isRepeat ) : /*#__PURE__*/React.createElement("div", {
|
|
16920
16926
|
key: 'tradeInput'
|
|
16921
16927
|
}, /*#__PURE__*/React.createElement(TrimInput, {
|
|
16922
16928
|
placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16923
16929
|
allowClear: true,
|
|
16924
16930
|
value: value.value,
|
|
16925
|
-
onChange: handleInputChange
|
|
16931
|
+
onChange: handleInputChange,
|
|
16932
|
+
onBlur: props.onSubmit
|
|
16926
16933
|
}), isRepeat );
|
|
16927
16934
|
};
|
|
16928
16935
|
var componentMap$1 = {
|
|
16929
16936
|
Input: function Input(props) {
|
|
16930
16937
|
return "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
16931
16938
|
title: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name)
|
|
16932
|
-
}, /*#__PURE__*/React.createElement(TrimInput, _objectSpread2({
|
|
16939
|
+
}, /*#__PURE__*/React.createElement(TrimInput, _objectSpread2(_objectSpread2({
|
|
16933
16940
|
placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16934
16941
|
allowClear: true
|
|
16935
|
-
}, props)
|
|
16942
|
+
}, props), {}, {
|
|
16943
|
+
onBlur: props.handleBlur
|
|
16944
|
+
}))) : /*#__PURE__*/React.createElement(TrimInput, _objectSpread2(_objectSpread2({
|
|
16936
16945
|
placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16937
16946
|
allowClear: true
|
|
16938
|
-
}, props)
|
|
16947
|
+
}, props), {}, {
|
|
16948
|
+
onBlur: props.handleBlur
|
|
16949
|
+
}));
|
|
16939
16950
|
},
|
|
16940
16951
|
MultipleSelect: function MultipleSelect(props) {
|
|
16941
16952
|
return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
16942
16953
|
title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
|
|
16943
|
-
}, /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
16954
|
+
}, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
16944
16955
|
mode: "multiple",
|
|
16945
16956
|
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16946
16957
|
optionFilterProp: "label",
|
|
16947
16958
|
allowClear: true,
|
|
16948
16959
|
maxTagCount: "responsive"
|
|
16949
|
-
}, props)
|
|
16960
|
+
}, props), {}, {
|
|
16961
|
+
onChange: props.handleChange
|
|
16962
|
+
}))) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
16950
16963
|
mode: "multiple",
|
|
16951
16964
|
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16952
16965
|
optionFilterProp: "label",
|
|
16953
16966
|
allowClear: true,
|
|
16954
16967
|
maxTagCount: "responsive"
|
|
16955
|
-
}, props)
|
|
16968
|
+
}, props), {}, {
|
|
16969
|
+
onChange: props.handleChange
|
|
16970
|
+
}));
|
|
16956
16971
|
},
|
|
16957
16972
|
Date: function Date(props) {
|
|
16958
|
-
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2({
|
|
16973
|
+
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2(_objectSpread2({
|
|
16959
16974
|
placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
|
|
16960
16975
|
allowClear: true,
|
|
16961
16976
|
showTime: {
|
|
16962
16977
|
defaultValue: [hooks().startOf('day'), hooks().endOf('day')]
|
|
16963
16978
|
},
|
|
16964
16979
|
maxTagCount: "responsive"
|
|
16965
|
-
}, props)
|
|
16980
|
+
}, props), {}, {
|
|
16981
|
+
onChange: props.handleChange
|
|
16982
|
+
}));
|
|
16966
16983
|
},
|
|
16967
16984
|
Cascader: function Cascader$1(props) {
|
|
16968
16985
|
return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
16969
16986
|
title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
|
|
16970
|
-
}, /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
|
|
16987
|
+
}, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({
|
|
16971
16988
|
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16972
16989
|
allowClear: true,
|
|
16973
16990
|
showSearch: true,
|
|
@@ -16977,7 +16994,9 @@ var componentMap$1 = {
|
|
|
16977
16994
|
value: 'actived',
|
|
16978
16995
|
children: 'children'
|
|
16979
16996
|
}
|
|
16980
|
-
}, props)
|
|
16997
|
+
}, props), {}, {
|
|
16998
|
+
onChange: props.handleChange
|
|
16999
|
+
}))) : /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({
|
|
16981
17000
|
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
16982
17001
|
allowClear: true,
|
|
16983
17002
|
showSearch: true,
|
|
@@ -16987,7 +17006,9 @@ var componentMap$1 = {
|
|
|
16987
17006
|
value: 'actived',
|
|
16988
17007
|
children: 'children'
|
|
16989
17008
|
}
|
|
16990
|
-
}, props)
|
|
17009
|
+
}, props), {}, {
|
|
17010
|
+
onChange: props.handleChange
|
|
17011
|
+
}));
|
|
16991
17012
|
},
|
|
16992
17013
|
// ShopList: (props: any) => (
|
|
16993
17014
|
// <ShopList
|
|
@@ -17010,9 +17031,11 @@ var componentMap$1 = {
|
|
|
17010
17031
|
return /*#__PURE__*/React.createElement(_TradeInput, _objectSpread2({}, props));
|
|
17011
17032
|
},
|
|
17012
17033
|
AsyncSelect: function AsyncSelect$1(props) {
|
|
17013
|
-
return /*#__PURE__*/React.createElement(AsyncSelect, _objectSpread2({
|
|
17034
|
+
return /*#__PURE__*/React.createElement(AsyncSelect, _objectSpread2(_objectSpread2({
|
|
17014
17035
|
placeholder: "\u8BF7\u9009\u62E9".concat((props === null || props === void 0 ? void 0 : props.name) || '')
|
|
17015
|
-
}, props)
|
|
17036
|
+
}, props), {}, {
|
|
17037
|
+
onChange: props.handleChange
|
|
17038
|
+
}));
|
|
17016
17039
|
}
|
|
17017
17040
|
};
|
|
17018
17041
|
var FilterSelectOption = function FilterSelectOption(props) {
|
|
@@ -17022,8 +17045,26 @@ var FilterSelectOption = function FilterSelectOption(props) {
|
|
|
17022
17045
|
componentProps = props.props,
|
|
17023
17046
|
ShopList = props.ShopList,
|
|
17024
17047
|
otherProps = _objectWithoutProperties(props, _excluded$g);
|
|
17048
|
+
var handleChange = function handleChange() {
|
|
17049
|
+
var _props$onChange, _props$onSubmit;
|
|
17050
|
+
for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
17051
|
+
params[_key] = arguments[_key];
|
|
17052
|
+
}
|
|
17053
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call.apply(_props$onChange, [props].concat(params));
|
|
17054
|
+
(_props$onSubmit = props.onSubmit) === null || _props$onSubmit === void 0 ? void 0 : _props$onSubmit.call(props);
|
|
17055
|
+
};
|
|
17056
|
+
var handleBlur = function handleBlur(props) {
|
|
17057
|
+
return function () {
|
|
17058
|
+
var _props$onBlur, _props$onSubmit2;
|
|
17059
|
+
for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
17060
|
+
params[_key2] = arguments[_key2];
|
|
17061
|
+
}
|
|
17062
|
+
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call.apply(_props$onBlur, [props].concat(params));
|
|
17063
|
+
(_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 ? void 0 : _props$onSubmit2.call(props);
|
|
17064
|
+
};
|
|
17065
|
+
};
|
|
17025
17066
|
var Comp = filterComponentType === 'ShopList' ? function (props) {
|
|
17026
|
-
return /*#__PURE__*/React.createElement(ShopList, _objectSpread2({
|
|
17067
|
+
return /*#__PURE__*/React.createElement(ShopList, _objectSpread2(_objectSpread2({
|
|
17027
17068
|
placeholder: "\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",
|
|
17028
17069
|
showSearch: true,
|
|
17029
17070
|
optionFilterProp: "label",
|
|
@@ -17033,7 +17074,9 @@ var FilterSelectOption = function FilterSelectOption(props) {
|
|
|
17033
17074
|
style: {
|
|
17034
17075
|
width: '190px'
|
|
17035
17076
|
}
|
|
17036
|
-
}, props)
|
|
17077
|
+
}, props), {}, {
|
|
17078
|
+
onChange: handleChange
|
|
17079
|
+
}));
|
|
17037
17080
|
} : componentMap$1[filterComponentType];
|
|
17038
17081
|
var newComponentProps = cloneDeep(componentProps);
|
|
17039
17082
|
if (hasAddNullComponent.includes(props.type)) {
|
|
@@ -17208,7 +17251,10 @@ var FilterSelectOption = function FilterSelectOption(props) {
|
|
|
17208
17251
|
})
|
|
17209
17252
|
});
|
|
17210
17253
|
}
|
|
17211
|
-
if (Comp) return /*#__PURE__*/React.createElement(Comp, _objectSpread2(_objectSpread2({}, newComponentProps), otherProps)
|
|
17254
|
+
if (Comp) return /*#__PURE__*/React.createElement(Comp, _objectSpread2(_objectSpread2(_objectSpread2({}, newComponentProps), otherProps), {}, {
|
|
17255
|
+
handleChange: handleChange,
|
|
17256
|
+
handleBlur: handleBlur
|
|
17257
|
+
}));
|
|
17212
17258
|
return null;
|
|
17213
17259
|
};
|
|
17214
17260
|
|
|
@@ -17245,7 +17291,8 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
17245
17291
|
_ref$isShowTime = _ref.isShowTime,
|
|
17246
17292
|
isShowTime = _ref$isShowTime === void 0 ? true : _ref$isShowTime,
|
|
17247
17293
|
timeOptions = _ref.timeOptions,
|
|
17248
|
-
ShopList = _ref.ShopList
|
|
17294
|
+
ShopList = _ref.ShopList,
|
|
17295
|
+
onSubmit = _ref.onSubmit;
|
|
17249
17296
|
// const fixedFieldsOptions = useMemo(() => {
|
|
17250
17297
|
// return allFields.filter(item => fixedFields?.includes(item.id));
|
|
17251
17298
|
// }, [fixedFields, allFields]);
|
|
@@ -17301,9 +17348,11 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
17301
17348
|
minWidth: '190px'
|
|
17302
17349
|
},
|
|
17303
17350
|
key: item.id
|
|
17304
|
-
}, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2({
|
|
17351
|
+
}, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2(_objectSpread2({
|
|
17305
17352
|
ShopList: ShopList
|
|
17306
|
-
}, item)
|
|
17353
|
+
}, item), {}, {
|
|
17354
|
+
onSubmit: onSubmit
|
|
17355
|
+
})));
|
|
17307
17356
|
}), /*#__PURE__*/React.createElement(Form.Item, null, layout === 'inner' && /*#__PURE__*/React.createElement(React.Fragment, null, children)))), layout === 'block' && /*#__PURE__*/React.createElement(React.Fragment, null, children));
|
|
17308
17357
|
};
|
|
17309
17358
|
|
|
@@ -17340,7 +17389,8 @@ var SearchForm$1 = function SearchForm(props) {
|
|
|
17340
17389
|
ShopList: props.ShopList,
|
|
17341
17390
|
fixedFields: filterItems || [],
|
|
17342
17391
|
allFields: filterItems || [],
|
|
17343
|
-
status: status === null || status === void 0 ? void 0 : status.open
|
|
17392
|
+
status: status === null || status === void 0 ? void 0 : status.open,
|
|
17393
|
+
onSubmit: submit
|
|
17344
17394
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
|
|
17345
17395
|
type: "primary",
|
|
17346
17396
|
onClick: submit
|
|
@@ -17771,10 +17821,12 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
17771
17821
|
};
|
|
17772
17822
|
var searchFormData$4 = [{
|
|
17773
17823
|
label: '规格名称',
|
|
17774
|
-
name: '
|
|
17824
|
+
name: 'skuName',
|
|
17825
|
+
dataIndex: 'specName'
|
|
17775
17826
|
}, {
|
|
17776
17827
|
label: '规格编码',
|
|
17777
|
-
name: '
|
|
17828
|
+
name: 'skuCode',
|
|
17829
|
+
dataIndex: 'specNo'
|
|
17778
17830
|
}, {
|
|
17779
17831
|
label: '商品名称',
|
|
17780
17832
|
name: 'goodName'
|
|
@@ -17820,29 +17872,29 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17820
17872
|
fixed: true,
|
|
17821
17873
|
onSelect: function onSelect(record, selected) {
|
|
17822
17874
|
if (selected) {
|
|
17823
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [record.
|
|
17875
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
17824
17876
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
17825
17877
|
} else {
|
|
17826
17878
|
setSelectIds(selectIds.filter(function (t) {
|
|
17827
|
-
return t !== record.
|
|
17879
|
+
return t !== record.id;
|
|
17828
17880
|
}));
|
|
17829
17881
|
setSelect(selectList.filter(function (t) {
|
|
17830
|
-
return t.
|
|
17882
|
+
return t.id !== record.id;
|
|
17831
17883
|
}));
|
|
17832
17884
|
}
|
|
17833
17885
|
},
|
|
17834
17886
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
17835
17887
|
if (selected) {
|
|
17836
17888
|
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
17837
|
-
return t.
|
|
17889
|
+
return t.id;
|
|
17838
17890
|
}))));
|
|
17839
17891
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
17840
17892
|
} else {
|
|
17841
17893
|
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
17842
|
-
return t.
|
|
17894
|
+
return t.id;
|
|
17843
17895
|
})));
|
|
17844
17896
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
17845
|
-
return arrVal.
|
|
17897
|
+
return arrVal.id !== othVal.id;
|
|
17846
17898
|
});
|
|
17847
17899
|
setSelect(list);
|
|
17848
17900
|
}
|
|
@@ -17850,9 +17902,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17850
17902
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
17851
17903
|
var options = {
|
|
17852
17904
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
17853
|
-
return row.
|
|
17854
|
-
}).includes(record.
|
|
17855
|
-
name: record.
|
|
17905
|
+
return row.id || row.specId;
|
|
17906
|
+
}).includes(record.id || record.specId),
|
|
17907
|
+
name: record.id
|
|
17856
17908
|
};
|
|
17857
17909
|
return options;
|
|
17858
17910
|
}
|
|
@@ -17860,10 +17912,10 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17860
17912
|
var showTable = function showTable() {
|
|
17861
17913
|
var handleDelete = function handleDelete(record) {
|
|
17862
17914
|
setSelectIds(selectIds.filter(function (t) {
|
|
17863
|
-
return t !== record.
|
|
17915
|
+
return t !== record.id;
|
|
17864
17916
|
}));
|
|
17865
17917
|
setSelect(selectList.filter(function (t) {
|
|
17866
|
-
return t.
|
|
17918
|
+
return t.id !== record.id;
|
|
17867
17919
|
}));
|
|
17868
17920
|
};
|
|
17869
17921
|
var showColumns = [{
|
|
@@ -17887,7 +17939,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17887
17939
|
}
|
|
17888
17940
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
17889
17941
|
columns: showColumns,
|
|
17890
|
-
rowKey: '
|
|
17942
|
+
rowKey: 'id',
|
|
17891
17943
|
dataSource: selectList,
|
|
17892
17944
|
scroll: {
|
|
17893
17945
|
x: '100%',
|
|
@@ -17916,7 +17968,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17916
17968
|
}
|
|
17917
17969
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
17918
17970
|
rowSelection: rowSelection,
|
|
17919
|
-
rowKey: "
|
|
17971
|
+
rowKey: "id",
|
|
17920
17972
|
columns: columns,
|
|
17921
17973
|
scroll: {
|
|
17922
17974
|
x: '100%',
|
|
@@ -20220,10 +20272,6 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20220
20272
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20221
20273
|
return false;
|
|
20222
20274
|
};
|
|
20223
|
-
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20224
|
-
if (isNull(val)) return null;
|
|
20225
|
-
return val ? '是' : '否';
|
|
20226
|
-
};
|
|
20227
20275
|
var getColumns$7 = function getColumns(_ref) {
|
|
20228
20276
|
var _ref$text = _ref.text,
|
|
20229
20277
|
disabled = _ref.disabled,
|
|
@@ -20232,52 +20280,234 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20232
20280
|
return {
|
|
20233
20281
|
//巨益商品信息
|
|
20234
20282
|
JY_GOODS: [{
|
|
20235
|
-
dataIndex: '
|
|
20236
|
-
title: "\
|
|
20283
|
+
dataIndex: 'productName',
|
|
20284
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20285
|
+
align: 'center',
|
|
20286
|
+
ellipsis: true,
|
|
20237
20287
|
width: 150
|
|
20238
20288
|
}, {
|
|
20239
|
-
dataIndex: '
|
|
20240
|
-
title: "\
|
|
20241
|
-
|
|
20289
|
+
dataIndex: 'productCode',
|
|
20290
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20291
|
+
align: 'center',
|
|
20292
|
+
ellipsis: true,
|
|
20293
|
+
width: 150
|
|
20242
20294
|
}, {
|
|
20243
|
-
dataIndex: '
|
|
20244
|
-
title: "\
|
|
20295
|
+
dataIndex: 'productId',
|
|
20296
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20297
|
+
align: 'center',
|
|
20298
|
+
ellipsis: true,
|
|
20299
|
+
width: 150
|
|
20300
|
+
}, {
|
|
20301
|
+
dataIndex: 'skuName',
|
|
20302
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20303
|
+
align: 'center',
|
|
20304
|
+
ellipsis: true,
|
|
20245
20305
|
width: 150
|
|
20246
20306
|
}, {
|
|
20307
|
+
dataIndex: 'skuCode',
|
|
20308
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20309
|
+
align: 'center',
|
|
20310
|
+
ellipsis: true,
|
|
20311
|
+
width: 150
|
|
20312
|
+
}, {
|
|
20313
|
+
dataIndex: 'specId',
|
|
20314
|
+
title: "\u89C4\u683CID",
|
|
20315
|
+
align: 'center',
|
|
20316
|
+
ellipsis: true,
|
|
20317
|
+
width: 150
|
|
20318
|
+
},
|
|
20319
|
+
// {
|
|
20320
|
+
// dataIndex: 'goodsName',
|
|
20321
|
+
// title: `货品名称`,
|
|
20322
|
+
// width: 250,
|
|
20323
|
+
// },
|
|
20324
|
+
// {
|
|
20325
|
+
// dataIndex: 'goodsCode',
|
|
20326
|
+
// title: `货品编号`,
|
|
20327
|
+
// width: 200,
|
|
20328
|
+
// },
|
|
20329
|
+
// {
|
|
20330
|
+
// dataIndex: 'goodsId',
|
|
20331
|
+
// title: `货品ID`,
|
|
20332
|
+
// width: 150,
|
|
20333
|
+
// },
|
|
20334
|
+
{
|
|
20247
20335
|
dataIndex: 'goodsClass',
|
|
20248
|
-
title: "\u8D27\
|
|
20336
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20249
20337
|
width: 150
|
|
20250
20338
|
}, {
|
|
20251
20339
|
dataIndex: 'code',
|
|
20252
20340
|
title: "\u6761\u7801",
|
|
20253
20341
|
width: 150
|
|
20254
|
-
},
|
|
20255
|
-
|
|
20256
|
-
|
|
20342
|
+
},
|
|
20343
|
+
// {
|
|
20344
|
+
// dataIndex: 'specName',
|
|
20345
|
+
// title: `规格名称`,
|
|
20346
|
+
// align: 'center',
|
|
20347
|
+
// ellipsis: true,
|
|
20348
|
+
// width: 200,
|
|
20349
|
+
// },
|
|
20350
|
+
// {
|
|
20351
|
+
// dataIndex: 'specCode',
|
|
20352
|
+
// title: `规格编号`,
|
|
20353
|
+
// align: 'center',
|
|
20354
|
+
// ellipsis: true,
|
|
20355
|
+
// width: 150,
|
|
20356
|
+
// },
|
|
20357
|
+
{
|
|
20358
|
+
dataIndex: 'mallProductName',
|
|
20359
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20257
20360
|
align: 'center',
|
|
20258
20361
|
ellipsis: true,
|
|
20259
|
-
width:
|
|
20362
|
+
width: 250
|
|
20260
20363
|
}, {
|
|
20261
|
-
dataIndex: '
|
|
20262
|
-
title: "\
|
|
20364
|
+
dataIndex: 'mallProductOutCode',
|
|
20365
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20263
20366
|
align: 'center',
|
|
20264
20367
|
ellipsis: true,
|
|
20265
20368
|
width: 150
|
|
20266
20369
|
}, {
|
|
20267
|
-
dataIndex: '
|
|
20268
|
-
title: "\
|
|
20370
|
+
dataIndex: 'mallProductId',
|
|
20371
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20269
20372
|
align: 'center',
|
|
20270
20373
|
ellipsis: true,
|
|
20271
|
-
width:
|
|
20374
|
+
width: 250
|
|
20272
20375
|
}, {
|
|
20273
|
-
dataIndex: '
|
|
20274
|
-
title: "\
|
|
20376
|
+
dataIndex: 'mallSkuName',
|
|
20377
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20275
20378
|
align: 'center',
|
|
20276
20379
|
ellipsis: true,
|
|
20380
|
+
width: 250
|
|
20381
|
+
}, {
|
|
20382
|
+
dataIndex: 'mallSkuId',
|
|
20383
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
20384
|
+
align: 'center',
|
|
20385
|
+
ellipsis: true,
|
|
20386
|
+
width: 250
|
|
20387
|
+
}, {
|
|
20388
|
+
dataIndex: 'sellCount',
|
|
20389
|
+
title: "\u6570\u91CF",
|
|
20390
|
+
width: 100,
|
|
20391
|
+
render: function render(val, record, index) {
|
|
20392
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20393
|
+
style: {
|
|
20394
|
+
width: 70
|
|
20395
|
+
},
|
|
20396
|
+
value: val,
|
|
20397
|
+
min: 1,
|
|
20398
|
+
precision: 0,
|
|
20399
|
+
onChange: function onChange(num) {
|
|
20400
|
+
updateDataHandle({
|
|
20401
|
+
sellCount: num,
|
|
20402
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20403
|
+
}, index);
|
|
20404
|
+
}
|
|
20405
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20406
|
+
}
|
|
20407
|
+
}, {
|
|
20408
|
+
dataIndex: 'sellPrice',
|
|
20409
|
+
title: "\u5355\u4EF7",
|
|
20410
|
+
width: 150,
|
|
20411
|
+
render: function render(val, record, index) {
|
|
20412
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20413
|
+
style: {
|
|
20414
|
+
width: 130
|
|
20415
|
+
},
|
|
20416
|
+
value: val,
|
|
20417
|
+
min: 0,
|
|
20418
|
+
precision: 2,
|
|
20419
|
+
onChange: function onChange(num) {
|
|
20420
|
+
updateDataHandle({
|
|
20421
|
+
sellPrice: num,
|
|
20422
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20423
|
+
}, index);
|
|
20424
|
+
}
|
|
20425
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20426
|
+
}
|
|
20427
|
+
}, {
|
|
20428
|
+
dataIndex: 'mallSellingPrice',
|
|
20429
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
20277
20430
|
width: 150
|
|
20278
20431
|
}, {
|
|
20279
|
-
dataIndex: '
|
|
20280
|
-
title: "\
|
|
20432
|
+
dataIndex: 'sellTotal',
|
|
20433
|
+
title: "\u91D1\u989D",
|
|
20434
|
+
width: 150
|
|
20435
|
+
}, {
|
|
20436
|
+
dataIndex: 'settlementPrice',
|
|
20437
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
20438
|
+
width: 150
|
|
20439
|
+
}, {
|
|
20440
|
+
dataIndex: 'divideOrderFee',
|
|
20441
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20442
|
+
width: 150
|
|
20443
|
+
}, {
|
|
20444
|
+
dataIndex: 'bfit',
|
|
20445
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
20446
|
+
width: 150,
|
|
20447
|
+
render: function render(val, record, index) {
|
|
20448
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20449
|
+
dropdownStyle: {
|
|
20450
|
+
zIndex: 2000
|
|
20451
|
+
},
|
|
20452
|
+
getPopupContainer: function getPopupContainer() {
|
|
20453
|
+
return document.body;
|
|
20454
|
+
},
|
|
20455
|
+
value: val,
|
|
20456
|
+
onChange: function onChange(value) {
|
|
20457
|
+
updateHandle(value, index, 'bfit');
|
|
20458
|
+
},
|
|
20459
|
+
options: [{
|
|
20460
|
+
label: '是',
|
|
20461
|
+
value: 'True'
|
|
20462
|
+
}, {
|
|
20463
|
+
label: '否',
|
|
20464
|
+
value: 'False'
|
|
20465
|
+
}]
|
|
20466
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
20467
|
+
}
|
|
20468
|
+
}, {
|
|
20469
|
+
dataIndex: 'combinationName',
|
|
20470
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20471
|
+
width: 150
|
|
20472
|
+
}, {
|
|
20473
|
+
dataIndex: 'combinationCode',
|
|
20474
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20475
|
+
width: 150
|
|
20476
|
+
}, {
|
|
20477
|
+
dataIndex: 'gift',
|
|
20478
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
20479
|
+
width: 150,
|
|
20480
|
+
render: function render(val, record, index) {
|
|
20481
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20482
|
+
dropdownStyle: {
|
|
20483
|
+
zIndex: 2000
|
|
20484
|
+
},
|
|
20485
|
+
getPopupContainer: function getPopupContainer() {
|
|
20486
|
+
return document.body;
|
|
20487
|
+
},
|
|
20488
|
+
value: val,
|
|
20489
|
+
onChange: function onChange(value) {
|
|
20490
|
+
updateHandle(value, index, 'gift');
|
|
20491
|
+
},
|
|
20492
|
+
options: [{
|
|
20493
|
+
label: '是',
|
|
20494
|
+
value: '1'
|
|
20495
|
+
}, {
|
|
20496
|
+
label: '否',
|
|
20497
|
+
value: '0'
|
|
20498
|
+
}]
|
|
20499
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
20500
|
+
}
|
|
20501
|
+
}].map(function (item) {
|
|
20502
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20503
|
+
align: 'center',
|
|
20504
|
+
ellipsis: true
|
|
20505
|
+
});
|
|
20506
|
+
}),
|
|
20507
|
+
// 巨益补发商品信息
|
|
20508
|
+
JY_REISSUE_GOODS: [{
|
|
20509
|
+
dataIndex: 'productName',
|
|
20510
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20281
20511
|
align: 'center',
|
|
20282
20512
|
ellipsis: true,
|
|
20283
20513
|
width: 150
|
|
@@ -20305,6 +20535,20 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20305
20535
|
align: 'center',
|
|
20306
20536
|
ellipsis: true,
|
|
20307
20537
|
width: 150
|
|
20538
|
+
}, {
|
|
20539
|
+
dataIndex: 'specId',
|
|
20540
|
+
title: "\u89C4\u683CID",
|
|
20541
|
+
align: 'center',
|
|
20542
|
+
ellipsis: true,
|
|
20543
|
+
width: 150
|
|
20544
|
+
}, {
|
|
20545
|
+
dataIndex: 'goodsClass',
|
|
20546
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20547
|
+
width: 150
|
|
20548
|
+
}, {
|
|
20549
|
+
dataIndex: 'code',
|
|
20550
|
+
title: "\u6761\u7801",
|
|
20551
|
+
width: 150
|
|
20308
20552
|
}, {
|
|
20309
20553
|
dataIndex: 'mallProductName',
|
|
20310
20554
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
@@ -20336,7 +20580,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20336
20580
|
ellipsis: true,
|
|
20337
20581
|
width: 150
|
|
20338
20582
|
}, {
|
|
20339
|
-
dataIndex: '
|
|
20583
|
+
dataIndex: 'sellCount',
|
|
20340
20584
|
title: "\u6570\u91CF",
|
|
20341
20585
|
width: 100,
|
|
20342
20586
|
render: function render(val, record, index) {
|
|
@@ -20349,9 +20593,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20349
20593
|
precision: 0,
|
|
20350
20594
|
onChange: function onChange(num) {
|
|
20351
20595
|
updateDataHandle({
|
|
20352
|
-
|
|
20353
|
-
|
|
20354
|
-
originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
|
|
20596
|
+
sellCount: num,
|
|
20597
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20355
20598
|
}, index);
|
|
20356
20599
|
}
|
|
20357
20600
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -20370,8 +20613,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20370
20613
|
precision: 2,
|
|
20371
20614
|
onChange: function onChange(num) {
|
|
20372
20615
|
updateDataHandle({
|
|
20373
|
-
|
|
20374
|
-
|
|
20616
|
+
sellPrice: num,
|
|
20617
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20375
20618
|
}, index);
|
|
20376
20619
|
}
|
|
20377
20620
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -20384,32 +20627,30 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20384
20627
|
dataIndex: 'sellTotal',
|
|
20385
20628
|
title: "\u91D1\u989D",
|
|
20386
20629
|
width: 150
|
|
20387
|
-
}, {
|
|
20388
|
-
dataIndex: 'settlementPrice',
|
|
20389
|
-
title: "\u7ED3\u7B97\u4EF7",
|
|
20390
|
-
width: 150
|
|
20391
|
-
}, {
|
|
20392
|
-
dataIndex: 'divideOrderFee',
|
|
20393
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20394
|
-
width: 150
|
|
20395
20630
|
}, {
|
|
20396
20631
|
dataIndex: 'bfit',
|
|
20397
20632
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
20398
20633
|
width: 150,
|
|
20399
20634
|
render: function render(val, record, index) {
|
|
20400
20635
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20636
|
+
dropdownStyle: {
|
|
20637
|
+
zIndex: 2000
|
|
20638
|
+
},
|
|
20639
|
+
getPopupContainer: function getPopupContainer() {
|
|
20640
|
+
return document.body;
|
|
20641
|
+
},
|
|
20401
20642
|
value: val,
|
|
20402
20643
|
onChange: function onChange(value) {
|
|
20403
20644
|
updateHandle(value, index, 'bfit');
|
|
20404
20645
|
},
|
|
20405
20646
|
options: [{
|
|
20406
20647
|
label: '是',
|
|
20407
|
-
value:
|
|
20648
|
+
value: 'True'
|
|
20408
20649
|
}, {
|
|
20409
20650
|
label: '否',
|
|
20410
|
-
value:
|
|
20651
|
+
value: 'False'
|
|
20411
20652
|
}]
|
|
20412
|
-
}) : /*#__PURE__*/React.createElement("span", null,
|
|
20653
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
20413
20654
|
}
|
|
20414
20655
|
}, {
|
|
20415
20656
|
dataIndex: 'combinationName',
|
|
@@ -20425,323 +20666,31 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20425
20666
|
width: 150,
|
|
20426
20667
|
render: function render(val, record, index) {
|
|
20427
20668
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20669
|
+
dropdownStyle: {
|
|
20670
|
+
zIndex: 2000
|
|
20671
|
+
},
|
|
20672
|
+
getPopupContainer: function getPopupContainer() {
|
|
20673
|
+
return document.body;
|
|
20674
|
+
},
|
|
20428
20675
|
value: val,
|
|
20429
20676
|
onChange: function onChange(value) {
|
|
20430
20677
|
updateHandle(value, index, 'gift');
|
|
20431
20678
|
},
|
|
20432
20679
|
options: [{
|
|
20433
20680
|
label: '是',
|
|
20434
|
-
value: 1
|
|
20681
|
+
value: '1'
|
|
20435
20682
|
}, {
|
|
20436
20683
|
label: '否',
|
|
20437
|
-
value: 0
|
|
20684
|
+
value: '0'
|
|
20438
20685
|
}]
|
|
20439
|
-
}) : /*#__PURE__*/React.createElement("span", null,
|
|
20686
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
20440
20687
|
}
|
|
20441
|
-
}, {
|
|
20442
|
-
dataIndex: 'skuNote',
|
|
20443
|
-
title: "\u5546\u54C1\u5907\u6CE8",
|
|
20444
|
-
width: 150
|
|
20445
20688
|
}].map(function (item) {
|
|
20446
20689
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20447
20690
|
align: 'center',
|
|
20448
20691
|
ellipsis: true
|
|
20449
20692
|
});
|
|
20450
20693
|
})
|
|
20451
|
-
//巨益补发商品信息
|
|
20452
|
-
// JY_REISSUE_GOODS: [
|
|
20453
|
-
// {
|
|
20454
|
-
// dataIndex: 'goodName',
|
|
20455
|
-
// title: `商品名称`,
|
|
20456
|
-
// width: 150,
|
|
20457
|
-
// },
|
|
20458
|
-
// {
|
|
20459
|
-
// dataIndex: 'goodShortName',
|
|
20460
|
-
// title: `商品简称`,
|
|
20461
|
-
// width: 150,
|
|
20462
|
-
// },
|
|
20463
|
-
// {
|
|
20464
|
-
// dataIndex: 'goodNo',
|
|
20465
|
-
// title: `商品编码`,
|
|
20466
|
-
// width: 200,
|
|
20467
|
-
// },
|
|
20468
|
-
// {
|
|
20469
|
-
// dataIndex: 'specName',
|
|
20470
|
-
// title: `SKU名称`,
|
|
20471
|
-
// align: 'center',
|
|
20472
|
-
// ellipsis: true,
|
|
20473
|
-
// width: 250,
|
|
20474
|
-
// },
|
|
20475
|
-
// {
|
|
20476
|
-
// dataIndex: 'specNo',
|
|
20477
|
-
// title: `SKU编码`,
|
|
20478
|
-
// align: 'center',
|
|
20479
|
-
// ellipsis: true,
|
|
20480
|
-
// width: 150,
|
|
20481
|
-
// },
|
|
20482
|
-
// {
|
|
20483
|
-
// dataIndex: 'qty',
|
|
20484
|
-
// title: `数量`,
|
|
20485
|
-
// width: 100,
|
|
20486
|
-
// validator: (_rule: any, value: any) => {
|
|
20487
|
-
// let goodsName = '';
|
|
20488
|
-
// if (
|
|
20489
|
-
// (value?.gyReissueGoods || []).some((goods: any) => {
|
|
20490
|
-
// const qty = toNum(goods?.qty);
|
|
20491
|
-
// const res = typeof qty === 'number' ? qty < 1 : true;
|
|
20492
|
-
// if (res) {
|
|
20493
|
-
// goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
|
|
20494
|
-
// }
|
|
20495
|
-
// return res;
|
|
20496
|
-
// })
|
|
20497
|
-
// ) {
|
|
20498
|
-
// return Promise.reject(`${goodsName}数量必须大于0`);
|
|
20499
|
-
// }
|
|
20500
|
-
// },
|
|
20501
|
-
// render: (val: any, record: any, index: number) =>
|
|
20502
|
-
// !disabled ? (
|
|
20503
|
-
// <InputNumber
|
|
20504
|
-
// style={{ width: 70 }}
|
|
20505
|
-
// value={val}
|
|
20506
|
-
// min={1}
|
|
20507
|
-
// precision={0}
|
|
20508
|
-
// onChange={(num) => {
|
|
20509
|
-
// updateDataHandle(
|
|
20510
|
-
// {
|
|
20511
|
-
// qty: num,
|
|
20512
|
-
// amount:
|
|
20513
|
-
// num && isNumberOrNumberString(record.price)
|
|
20514
|
-
// ? num * record.price
|
|
20515
|
-
// : null,
|
|
20516
|
-
// originAmount:
|
|
20517
|
-
// num && isNumberOrNumberString(record.originPrice)
|
|
20518
|
-
// ? num * record.originPrice
|
|
20519
|
-
// : null,
|
|
20520
|
-
// },
|
|
20521
|
-
// index,
|
|
20522
|
-
// );
|
|
20523
|
-
// }}
|
|
20524
|
-
// ></InputNumber>
|
|
20525
|
-
// ) : (
|
|
20526
|
-
// <span>{val}</span>
|
|
20527
|
-
// ),
|
|
20528
|
-
// },
|
|
20529
|
-
// {
|
|
20530
|
-
// dataIndex: 'price',
|
|
20531
|
-
// title: `实际单价`,
|
|
20532
|
-
// width: 150,
|
|
20533
|
-
// render: (val: any, record: any, index: number) =>
|
|
20534
|
-
// !disabled ? (
|
|
20535
|
-
// <InputNumber
|
|
20536
|
-
// style={{ width: 130 }}
|
|
20537
|
-
// value={val}
|
|
20538
|
-
// min={0}
|
|
20539
|
-
// precision={2}
|
|
20540
|
-
// onChange={(num) => {
|
|
20541
|
-
// updateDataHandle(
|
|
20542
|
-
// {
|
|
20543
|
-
// price: num,
|
|
20544
|
-
// amount:
|
|
20545
|
-
// num && isNumberOrNumberString(record.qty)
|
|
20546
|
-
// ? num * record.qty
|
|
20547
|
-
// : null,
|
|
20548
|
-
// },
|
|
20549
|
-
// index,
|
|
20550
|
-
// );
|
|
20551
|
-
// }}
|
|
20552
|
-
// ></InputNumber>
|
|
20553
|
-
// ) : (
|
|
20554
|
-
// <span>{val}</span>
|
|
20555
|
-
// ),
|
|
20556
|
-
// },
|
|
20557
|
-
// {
|
|
20558
|
-
// dataIndex: 'amount',
|
|
20559
|
-
// title: `实际金额`,
|
|
20560
|
-
// width: 150,
|
|
20561
|
-
// },
|
|
20562
|
-
// {
|
|
20563
|
-
// dataIndex: 'originPrice',
|
|
20564
|
-
// title: `标准单价`,
|
|
20565
|
-
// width: 150,
|
|
20566
|
-
// },
|
|
20567
|
-
// {
|
|
20568
|
-
// dataIndex: 'originAmount',
|
|
20569
|
-
// title: `标准金额`,
|
|
20570
|
-
// width: 150,
|
|
20571
|
-
// },
|
|
20572
|
-
// {
|
|
20573
|
-
// dataIndex: 'isGift',
|
|
20574
|
-
// title: `是否赠品`,
|
|
20575
|
-
// width: 150,
|
|
20576
|
-
// render: (val: number, record: any, index: number) =>
|
|
20577
|
-
// record.canEdit && !disabled ? (
|
|
20578
|
-
// <Select
|
|
20579
|
-
// value={val}
|
|
20580
|
-
// onChange={(value) => {
|
|
20581
|
-
// updateHandle(value, index, 'isGift');
|
|
20582
|
-
// }}
|
|
20583
|
-
// options={[
|
|
20584
|
-
// { label: '是', value: 1 },
|
|
20585
|
-
// { label: '否', value: 0 },
|
|
20586
|
-
// ]}
|
|
20587
|
-
// />
|
|
20588
|
-
// ) : (
|
|
20589
|
-
// <span>{getYesOrNo(val)}</span>
|
|
20590
|
-
// ),
|
|
20591
|
-
// },
|
|
20592
|
-
// ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
|
|
20593
|
-
// //巨益退货商品信息
|
|
20594
|
-
// JY_RETURN_GOODS: [
|
|
20595
|
-
// {
|
|
20596
|
-
// dataIndex: 'goodName',
|
|
20597
|
-
// title: `商品名称`,
|
|
20598
|
-
// width: 150,
|
|
20599
|
-
// },
|
|
20600
|
-
// {
|
|
20601
|
-
// dataIndex: 'goodShortName',
|
|
20602
|
-
// title: `商品简称`,
|
|
20603
|
-
// width: 150,
|
|
20604
|
-
// },
|
|
20605
|
-
// {
|
|
20606
|
-
// dataIndex: 'goodNo',
|
|
20607
|
-
// title: `商品编码`,
|
|
20608
|
-
// width: 200,
|
|
20609
|
-
// },
|
|
20610
|
-
// {
|
|
20611
|
-
// dataIndex: 'specName',
|
|
20612
|
-
// title: `SKU名称`,
|
|
20613
|
-
// align: 'center',
|
|
20614
|
-
// ellipsis: true,
|
|
20615
|
-
// width: 250,
|
|
20616
|
-
// },
|
|
20617
|
-
// {
|
|
20618
|
-
// dataIndex: 'specNo',
|
|
20619
|
-
// title: `SKU编码`,
|
|
20620
|
-
// align: 'center',
|
|
20621
|
-
// ellipsis: true,
|
|
20622
|
-
// width: 150,
|
|
20623
|
-
// },
|
|
20624
|
-
// {
|
|
20625
|
-
// dataIndex: 'qty',
|
|
20626
|
-
// title: `数量`,
|
|
20627
|
-
// width: 100,
|
|
20628
|
-
// validator: (_rule: any, value: any) => {
|
|
20629
|
-
// let goodsName = '';
|
|
20630
|
-
// if (
|
|
20631
|
-
// (value?.gyReturnGoods || []).some((goods: any) => {
|
|
20632
|
-
// const qty = toNum(goods?.qty);
|
|
20633
|
-
// const res = typeof qty === 'number' ? qty < 1 : true;
|
|
20634
|
-
// if (res) {
|
|
20635
|
-
// goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
|
|
20636
|
-
// }
|
|
20637
|
-
// return res;
|
|
20638
|
-
// })
|
|
20639
|
-
// ) {
|
|
20640
|
-
// return Promise.reject(`${goodsName}数量必须大于0`);
|
|
20641
|
-
// }
|
|
20642
|
-
// },
|
|
20643
|
-
// render: (val: any, record: any, index: number) =>
|
|
20644
|
-
// !disabled ? (
|
|
20645
|
-
// <InputNumber
|
|
20646
|
-
// style={{ width: 70 }}
|
|
20647
|
-
// value={val}
|
|
20648
|
-
// min={1}
|
|
20649
|
-
// precision={0}
|
|
20650
|
-
// onChange={(num) => {
|
|
20651
|
-
// updateDataHandle(
|
|
20652
|
-
// {
|
|
20653
|
-
// qty: num,
|
|
20654
|
-
// amount:
|
|
20655
|
-
// num && isNumberOrNumberString(record.price)
|
|
20656
|
-
// ? num * record.price
|
|
20657
|
-
// : null,
|
|
20658
|
-
// originAmount:
|
|
20659
|
-
// num && isNumberOrNumberString(record.originPrice)
|
|
20660
|
-
// ? num * record.originPrice
|
|
20661
|
-
// : null,
|
|
20662
|
-
// },
|
|
20663
|
-
// index,
|
|
20664
|
-
// );
|
|
20665
|
-
// }}
|
|
20666
|
-
// ></InputNumber>
|
|
20667
|
-
// ) : (
|
|
20668
|
-
// <span>{val}</span>
|
|
20669
|
-
// ),
|
|
20670
|
-
// },
|
|
20671
|
-
// {
|
|
20672
|
-
// dataIndex: 'price',
|
|
20673
|
-
// title: `实际单价`,
|
|
20674
|
-
// width: 150,
|
|
20675
|
-
// render: (val: any, record: any, index: number) =>
|
|
20676
|
-
// !disabled ? (
|
|
20677
|
-
// <InputNumber
|
|
20678
|
-
// style={{ width: 130 }}
|
|
20679
|
-
// value={val}
|
|
20680
|
-
// min={0}
|
|
20681
|
-
// precision={2}
|
|
20682
|
-
// onChange={(num) => {
|
|
20683
|
-
// updateDataHandle(
|
|
20684
|
-
// {
|
|
20685
|
-
// price: num,
|
|
20686
|
-
// amount:
|
|
20687
|
-
// num && isNumberOrNumberString(record.qty)
|
|
20688
|
-
// ? num * record.qty
|
|
20689
|
-
// : null,
|
|
20690
|
-
// },
|
|
20691
|
-
// index,
|
|
20692
|
-
// );
|
|
20693
|
-
// }}
|
|
20694
|
-
// ></InputNumber>
|
|
20695
|
-
// ) : (
|
|
20696
|
-
// <span>{val}</span>
|
|
20697
|
-
// ),
|
|
20698
|
-
// },
|
|
20699
|
-
// {
|
|
20700
|
-
// dataIndex: 'amount',
|
|
20701
|
-
// title: `实际金额`,
|
|
20702
|
-
// width: 150,
|
|
20703
|
-
// },
|
|
20704
|
-
// {
|
|
20705
|
-
// dataIndex: 'originPrice',
|
|
20706
|
-
// title: `标准单价`,
|
|
20707
|
-
// width: 150,
|
|
20708
|
-
// },
|
|
20709
|
-
// {
|
|
20710
|
-
// dataIndex: 'originAmount',
|
|
20711
|
-
// title: `标准金额`,
|
|
20712
|
-
// width: 150,
|
|
20713
|
-
// },
|
|
20714
|
-
// {
|
|
20715
|
-
// dataIndex: 'discountFee',
|
|
20716
|
-
// title: `让利金额`,
|
|
20717
|
-
// width: 150,
|
|
20718
|
-
// },
|
|
20719
|
-
// {
|
|
20720
|
-
// dataIndex: 'amountAfter',
|
|
20721
|
-
// title: `让利后金额`,
|
|
20722
|
-
// width: 150,
|
|
20723
|
-
// },
|
|
20724
|
-
// {
|
|
20725
|
-
// dataIndex: 'isGift',
|
|
20726
|
-
// title: `是否赠品`,
|
|
20727
|
-
// width: 150,
|
|
20728
|
-
// render: (val: number, record: any, index: number) =>
|
|
20729
|
-
// record.canEdit && !disabled ? (
|
|
20730
|
-
// <Select
|
|
20731
|
-
// value={val}
|
|
20732
|
-
// onChange={(value) => {
|
|
20733
|
-
// updateHandle(value, index, 'isGift');
|
|
20734
|
-
// }}
|
|
20735
|
-
// options={[
|
|
20736
|
-
// { label: '是', value: 1 },
|
|
20737
|
-
// { label: '否', value: 0 },
|
|
20738
|
-
// ]}
|
|
20739
|
-
// />
|
|
20740
|
-
// ) : (
|
|
20741
|
-
// <span>{getYesOrNo(val)}</span>
|
|
20742
|
-
// ),
|
|
20743
|
-
// },
|
|
20744
|
-
// ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
|
|
20745
20694
|
};
|
|
20746
20695
|
};
|
|
20747
20696
|
|
|
@@ -20932,7 +20881,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
20932
20881
|
})), getColumns$7({
|
|
20933
20882
|
text: text,
|
|
20934
20883
|
disabled: disabled,
|
|
20935
|
-
updateHandle: updateHandle
|
|
20884
|
+
updateHandle: updateHandle,
|
|
20885
|
+
updateDataHandle: updateDataHandle
|
|
20936
20886
|
})), getColumns$8({
|
|
20937
20887
|
text: text,
|
|
20938
20888
|
disabled: disabled,
|
|
@@ -21130,6 +21080,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
21130
21080
|
canUpdateNumber: canUpdateNumber,
|
|
21131
21081
|
source: source
|
|
21132
21082
|
});
|
|
21083
|
+
} else if (isErpType.isJy(type)) {
|
|
21084
|
+
newList = processJyGoods({
|
|
21085
|
+
list: list,
|
|
21086
|
+
type: type,
|
|
21087
|
+
canUpdateNumber: canUpdateNumber,
|
|
21088
|
+
source: source
|
|
21089
|
+
});
|
|
21133
21090
|
} else {
|
|
21134
21091
|
newList = processDefaultGoods({
|
|
21135
21092
|
list: list,
|
|
@@ -21140,11 +21097,49 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
21140
21097
|
}
|
|
21141
21098
|
return newList;
|
|
21142
21099
|
};
|
|
21143
|
-
|
|
21144
|
-
var processWdtGoods$1 = function processWdtGoods(_ref2) {
|
|
21100
|
+
var processJyGoods = function processJyGoods(_ref2) {
|
|
21145
21101
|
var list = _ref2.list,
|
|
21146
|
-
type = _ref2.type,
|
|
21147
21102
|
canUpdateNumber = _ref2.canUpdateNumber;
|
|
21103
|
+
return list.map(function (item) {
|
|
21104
|
+
var goodName = item.goodName,
|
|
21105
|
+
goodNo = item.goodNo,
|
|
21106
|
+
goodId = item.goodId,
|
|
21107
|
+
specName = item.specName,
|
|
21108
|
+
specNo = item.specNo,
|
|
21109
|
+
specBarcode = item.specBarcode,
|
|
21110
|
+
retailPrice = item.retailPrice,
|
|
21111
|
+
isGift = item.isGift,
|
|
21112
|
+
skuType = item.skuType;
|
|
21113
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21114
|
+
goodsName: goodName,
|
|
21115
|
+
goodsCode: goodNo,
|
|
21116
|
+
goodsId: goodId,
|
|
21117
|
+
code: specBarcode,
|
|
21118
|
+
specCode: specNo,
|
|
21119
|
+
productName: goodName,
|
|
21120
|
+
productCode: goodNo,
|
|
21121
|
+
productId: goodId,
|
|
21122
|
+
skuName: specName,
|
|
21123
|
+
skuCode: specNo,
|
|
21124
|
+
combinationName: goodName,
|
|
21125
|
+
combinationCode: goodNo,
|
|
21126
|
+
gift: isGift ? '1' : '0',
|
|
21127
|
+
bfit: skuType === 'combine' ? 'True' : 'False',
|
|
21128
|
+
uuid: uuid(),
|
|
21129
|
+
canDelete: true,
|
|
21130
|
+
sellCount: 1,
|
|
21131
|
+
sellPrice: retailPrice,
|
|
21132
|
+
sellTotal: (retailPrice * 1).toFixed(2),
|
|
21133
|
+
canEdit: true,
|
|
21134
|
+
canUpdateNumber: canUpdateNumber
|
|
21135
|
+
});
|
|
21136
|
+
});
|
|
21137
|
+
};
|
|
21138
|
+
// 处理不同类型的商品数据
|
|
21139
|
+
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
21140
|
+
var list = _ref3.list,
|
|
21141
|
+
type = _ref3.type,
|
|
21142
|
+
canUpdateNumber = _ref3.canUpdateNumber;
|
|
21148
21143
|
return list.map(function (item) {
|
|
21149
21144
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21150
21145
|
uuid: uuid(),
|
|
@@ -21162,9 +21157,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref2) {
|
|
|
21162
21157
|
return processedItem;
|
|
21163
21158
|
});
|
|
21164
21159
|
};
|
|
21165
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
21166
|
-
var list =
|
|
21167
|
-
canUpdateNumber =
|
|
21160
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
21161
|
+
var list = _ref4.list,
|
|
21162
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
21168
21163
|
return list.map(function (item) {
|
|
21169
21164
|
var specNo = item.specNo,
|
|
21170
21165
|
specId = item.specId,
|
|
@@ -21199,9 +21194,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
|
|
|
21199
21194
|
});
|
|
21200
21195
|
});
|
|
21201
21196
|
};
|
|
21202
|
-
var processGyGoods$1 = function processGyGoods(
|
|
21203
|
-
var list =
|
|
21204
|
-
source =
|
|
21197
|
+
var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
21198
|
+
var list = _ref5.list,
|
|
21199
|
+
source = _ref5.source;
|
|
21205
21200
|
var isFormWorkOrder = source === 'workOrder';
|
|
21206
21201
|
return list.map(function (item) {
|
|
21207
21202
|
var goodName = item.goodName,
|
|
@@ -21228,8 +21223,8 @@ var processGyGoods$1 = function processGyGoods(_ref4) {
|
|
|
21228
21223
|
});
|
|
21229
21224
|
});
|
|
21230
21225
|
};
|
|
21231
|
-
var processJstGoods$1 = function processJstGoods(
|
|
21232
|
-
var list =
|
|
21226
|
+
var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
21227
|
+
var list = _ref6.list;
|
|
21233
21228
|
return list.map(function (item) {
|
|
21234
21229
|
return {
|
|
21235
21230
|
name: item.goodName,
|
|
@@ -21247,9 +21242,9 @@ var processJstGoods$1 = function processJstGoods(_ref5) {
|
|
|
21247
21242
|
};
|
|
21248
21243
|
});
|
|
21249
21244
|
};
|
|
21250
|
-
var processKmGoods$1 = function processKmGoods(
|
|
21251
|
-
var list =
|
|
21252
|
-
type =
|
|
21245
|
+
var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
21246
|
+
var list = _ref7.list,
|
|
21247
|
+
type = _ref7.type;
|
|
21253
21248
|
var initParamsMap = {
|
|
21254
21249
|
KM_GOODS: {
|
|
21255
21250
|
num: 1
|
|
@@ -21279,9 +21274,9 @@ var processKmGoods$1 = function processKmGoods(_ref6) {
|
|
|
21279
21274
|
}, initParamsMap[type] || {});
|
|
21280
21275
|
});
|
|
21281
21276
|
};
|
|
21282
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
21283
|
-
var list =
|
|
21284
|
-
canUpdateNumber =
|
|
21277
|
+
var processDefaultGoods = function processDefaultGoods(_ref8) {
|
|
21278
|
+
var list = _ref8.list,
|
|
21279
|
+
canUpdateNumber = _ref8.canUpdateNumber;
|
|
21285
21280
|
return list.map(function (item) {
|
|
21286
21281
|
var goodsId = item.goodsId,
|
|
21287
21282
|
name = item.name,
|
|
@@ -21325,6 +21320,7 @@ var GoodsModalMap = {
|
|
|
21325
21320
|
KM_GOODS: KmGoodsModal,
|
|
21326
21321
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
21327
21322
|
JY_GOODS: JyGoodsModal$1,
|
|
21323
|
+
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
21328
21324
|
OTHER_GOODS: GoodsModal$2
|
|
21329
21325
|
};
|
|
21330
21326
|
var systemOrderNoMap = {
|
|
@@ -21392,6 +21388,12 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21392
21388
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21393
21389
|
}));
|
|
21394
21390
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
21391
|
+
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
21392
|
+
console.log('filterDataSource', filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
|
|
21393
|
+
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21394
|
+
}));
|
|
21395
|
+
console.log('selectedRowKeys', selectedRowKeys);
|
|
21396
|
+
console.log('currentTradeOriginGoods', currentTradeOriginGoods);
|
|
21395
21397
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
21396
21398
|
};
|
|
21397
21399
|
var rowSelection = {
|
|
@@ -21609,6 +21611,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21609
21611
|
case 'KM_GOODS':
|
|
21610
21612
|
case 'KM_REISSUE_GOODS':
|
|
21611
21613
|
case 'JY_GOODS':
|
|
21614
|
+
case 'JY_REISSUE_GOODS':
|
|
21612
21615
|
case 'SKX_GOODS':
|
|
21613
21616
|
case 'SKX_RETURN_GOODS':
|
|
21614
21617
|
{
|
|
@@ -22714,16 +22717,22 @@ var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
|
|
|
22714
22717
|
singletonMap$6.delete(orderNo);
|
|
22715
22718
|
reject(err);
|
|
22716
22719
|
};
|
|
22717
|
-
extendRequest('/qy/gdfw/
|
|
22720
|
+
extendRequest('/qy/gdfw/order/jyOrderDetail', {
|
|
22718
22721
|
method: 'post',
|
|
22719
22722
|
data: {
|
|
22720
|
-
|
|
22723
|
+
billNo: orderNo
|
|
22721
22724
|
}
|
|
22722
22725
|
}).then(function (res) {
|
|
22723
22726
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
22724
|
-
var _res$data;
|
|
22725
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
22726
|
-
|
|
22727
|
+
var _res$data, _res$data$tradeOrderD;
|
|
22728
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$tradeOrderD = _res$data.tradeOrderDetails) === null || _res$data$tradeOrderD === void 0 ? void 0 : _res$data$tradeOrderD.length) {
|
|
22729
|
+
var _filterJyOrders, _res$data2;
|
|
22730
|
+
res.data.trades = (_filterJyOrders = filterJyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo)) === null || _filterJyOrders === void 0 ? void 0 : _filterJyOrders.map(function (item) {
|
|
22731
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22732
|
+
tradeType: JY_ORDER_TYPE_MAP[item.tradeType],
|
|
22733
|
+
tradeStatus: JY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
22734
|
+
});
|
|
22735
|
+
});
|
|
22727
22736
|
}
|
|
22728
22737
|
resolve(res.data);
|
|
22729
22738
|
// 延迟10秒清除,保证订单的时效性
|
|
@@ -23147,7 +23156,8 @@ var index$2 = (function (props) {
|
|
|
23147
23156
|
size: "small",
|
|
23148
23157
|
pagination: false,
|
|
23149
23158
|
scroll: {
|
|
23150
|
-
x: 'max-content'
|
|
23159
|
+
x: 'max-content',
|
|
23160
|
+
y: 500
|
|
23151
23161
|
},
|
|
23152
23162
|
locale: {
|
|
23153
23163
|
emptyText: '暂无数据'
|
|
@@ -24023,6 +24033,11 @@ var processAllOrders = function processAllOrders(_ref) {
|
|
|
24023
24033
|
newList = processWlnOrders({
|
|
24024
24034
|
data: data
|
|
24025
24035
|
});
|
|
24036
|
+
} else if (isErpType$1.isJy(type)) {
|
|
24037
|
+
newList = processJyOrders({
|
|
24038
|
+
data: data,
|
|
24039
|
+
orderNo: orderNo
|
|
24040
|
+
});
|
|
24026
24041
|
} else {
|
|
24027
24042
|
newList = processDefaultOrders({
|
|
24028
24043
|
data: data
|
|
@@ -24054,12 +24069,20 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
24054
24069
|
});
|
|
24055
24070
|
return trades;
|
|
24056
24071
|
};
|
|
24057
|
-
var
|
|
24058
|
-
var data = _ref5.data
|
|
24059
|
-
|
|
24072
|
+
var processJyOrders = function processJyOrders(_ref5) {
|
|
24073
|
+
var data = _ref5.data,
|
|
24074
|
+
orderNo = _ref5.orderNo;
|
|
24075
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
24076
|
+
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
24077
|
+
});
|
|
24078
|
+
return trades;
|
|
24060
24079
|
};
|
|
24061
|
-
var
|
|
24080
|
+
var processWlnOrders = function processWlnOrders(_ref6) {
|
|
24062
24081
|
var data = _ref6.data;
|
|
24082
|
+
return (data === null || data === void 0 ? void 0 : data.orders) || [];
|
|
24083
|
+
};
|
|
24084
|
+
var processDefaultOrders = function processDefaultOrders(_ref7) {
|
|
24085
|
+
var data = _ref7.data;
|
|
24063
24086
|
return data || [];
|
|
24064
24087
|
};
|
|
24065
24088
|
|
|
@@ -25177,6 +25200,20 @@ var typeMap$2 = {
|
|
|
25177
25200
|
outerOiIdKey: '',
|
|
25178
25201
|
goodDetailsKey: 'subOrders',
|
|
25179
25202
|
uniqueKey: 'id'
|
|
25203
|
+
},
|
|
25204
|
+
JY_REISSUE_GOODS: {
|
|
25205
|
+
compType: '补发',
|
|
25206
|
+
key: 'jyReissueGoods',
|
|
25207
|
+
typeName: 'jyReissueType',
|
|
25208
|
+
systemOrder: 'jySystemOrder',
|
|
25209
|
+
systemOrderNo: 'jySystemOrderNo',
|
|
25210
|
+
getOrderList: jyUtils.getJyOrderListSingleton,
|
|
25211
|
+
updateGoodsHandle: updateJyGoodsHandle,
|
|
25212
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
25213
|
+
orderTypeKey: 'orderType',
|
|
25214
|
+
oIdKey: 'tradeNo',
|
|
25215
|
+
outerOiIdKey: '',
|
|
25216
|
+
goodDetailsKey: 'subOrderDetails'
|
|
25180
25217
|
}
|
|
25181
25218
|
};
|
|
25182
25219
|
var PublicReissue = function PublicReissue(props) {
|
|
@@ -25313,6 +25350,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25313
25350
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
25314
25351
|
canEdit: true
|
|
25315
25352
|
};
|
|
25353
|
+
} else if (['JY_REISSUE_GOODS', 'JY_RETURN_GOODS'].includes(type)) {
|
|
25354
|
+
orderRest = {
|
|
25355
|
+
canEdit: true
|
|
25356
|
+
};
|
|
25316
25357
|
}
|
|
25317
25358
|
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.updateGoodsHandle([order], orderRest)) : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle([order], orderRest) : [];
|
|
25318
25359
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
@@ -25365,7 +25406,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25365
25406
|
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)]) || [];
|
|
25366
25407
|
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
25367
25408
|
var _typeMap$type37;
|
|
25368
|
-
return skuList.includes(item[typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.uniqueKey]);
|
|
25409
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.uniqueKey) || 'uuid']);
|
|
25369
25410
|
});
|
|
25370
25411
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25371
25412
|
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)], isStrict]);
|