@kmkf-fe-packages/basic-components 2.0.54-beta.2 → 2.0.54-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +475 -375
- package/dist/index.js +475 -373
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +1 -1
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +2 -2
- package/dist/src/bs/component/model/Columns/useGetColumns.d.ts +2 -2
- package/dist/src/common/AsyncSelect/index.d.ts +6 -0
- package/dist/src/constants/columnsBaseInfoMap.d.ts +2 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/jst/Goods/index.d.ts +2 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,384 +3,370 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, MinusCircleFilled } 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, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, servers, filterJstOrders, 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, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, servers, filterJstOrders, 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, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, isEqual, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
|
|
8
8
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
9
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
11
11
|
import BigNumber from 'bignumber.js';
|
|
12
12
|
|
|
13
|
-
function _iterableToArrayLimit(
|
|
14
|
-
var
|
|
15
|
-
if (null !=
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
function _iterableToArrayLimit(arr, i) {
|
|
14
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15
|
+
if (null != _i) {
|
|
16
|
+
var _s,
|
|
17
|
+
_e,
|
|
18
|
+
_x,
|
|
19
|
+
_r,
|
|
20
|
+
_arr = [],
|
|
21
|
+
_n = !0,
|
|
22
|
+
_d = !1;
|
|
23
23
|
try {
|
|
24
|
-
if (
|
|
25
|
-
if (Object(
|
|
26
|
-
|
|
27
|
-
} else for (; !(
|
|
28
|
-
} catch (
|
|
29
|
-
|
|
24
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
25
|
+
if (Object(_i) !== _i) return;
|
|
26
|
+
_n = !1;
|
|
27
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
28
|
+
} catch (err) {
|
|
29
|
+
_d = !0, _e = err;
|
|
30
30
|
} finally {
|
|
31
31
|
try {
|
|
32
|
-
if (!
|
|
32
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
33
33
|
} finally {
|
|
34
|
-
if (
|
|
34
|
+
if (_d) throw _e;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return _arr;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function ownKeys(
|
|
41
|
-
var
|
|
40
|
+
function ownKeys(object, enumerableOnly) {
|
|
41
|
+
var keys = Object.keys(object);
|
|
42
42
|
if (Object.getOwnPropertySymbols) {
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
return Object.getOwnPropertyDescriptor(
|
|
46
|
-
})),
|
|
43
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
44
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
45
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
46
|
+
})), keys.push.apply(keys, symbols);
|
|
47
47
|
}
|
|
48
|
-
return
|
|
49
|
-
}
|
|
50
|
-
function _objectSpread2(
|
|
51
|
-
for (var
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
_defineProperty(
|
|
55
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
56
|
-
Object.defineProperty(
|
|
48
|
+
return keys;
|
|
49
|
+
}
|
|
50
|
+
function _objectSpread2(target) {
|
|
51
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
52
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
53
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
54
|
+
_defineProperty(target, key, source[key]);
|
|
55
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
56
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return target;
|
|
60
60
|
}
|
|
61
61
|
function _regeneratorRuntime() {
|
|
62
62
|
_regeneratorRuntime = function () {
|
|
63
|
-
return
|
|
63
|
+
return exports;
|
|
64
64
|
};
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
t[e] = r.value;
|
|
65
|
+
var exports = {},
|
|
66
|
+
Op = Object.prototype,
|
|
67
|
+
hasOwn = Op.hasOwnProperty,
|
|
68
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
69
|
+
obj[key] = desc.value;
|
|
71
70
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
function define(
|
|
77
|
-
return Object.defineProperty(
|
|
78
|
-
value:
|
|
71
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
72
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
73
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
74
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
75
|
+
function define(obj, key, value) {
|
|
76
|
+
return Object.defineProperty(obj, key, {
|
|
77
|
+
value: value,
|
|
79
78
|
enumerable: !0,
|
|
80
79
|
configurable: !0,
|
|
81
80
|
writable: !0
|
|
82
|
-
}),
|
|
81
|
+
}), obj[key];
|
|
83
82
|
}
|
|
84
83
|
try {
|
|
85
84
|
define({}, "");
|
|
86
|
-
} catch (
|
|
87
|
-
define = function (
|
|
88
|
-
return
|
|
85
|
+
} catch (err) {
|
|
86
|
+
define = function (obj, key, value) {
|
|
87
|
+
return obj[key] = value;
|
|
89
88
|
};
|
|
90
89
|
}
|
|
91
|
-
function wrap(
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return
|
|
96
|
-
value: makeInvokeMethod(
|
|
97
|
-
}),
|
|
90
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
91
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
92
|
+
generator = Object.create(protoGenerator.prototype),
|
|
93
|
+
context = new Context(tryLocsList || []);
|
|
94
|
+
return defineProperty(generator, "_invoke", {
|
|
95
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
96
|
+
}), generator;
|
|
98
97
|
}
|
|
99
|
-
function tryCatch(
|
|
98
|
+
function tryCatch(fn, obj, arg) {
|
|
100
99
|
try {
|
|
101
100
|
return {
|
|
102
101
|
type: "normal",
|
|
103
|
-
arg:
|
|
102
|
+
arg: fn.call(obj, arg)
|
|
104
103
|
};
|
|
105
|
-
} catch (
|
|
104
|
+
} catch (err) {
|
|
106
105
|
return {
|
|
107
106
|
type: "throw",
|
|
108
|
-
arg:
|
|
107
|
+
arg: err
|
|
109
108
|
};
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
|
|
113
|
-
var
|
|
114
|
-
l = "suspendedYield",
|
|
115
|
-
f = "executing",
|
|
116
|
-
s = "completed",
|
|
117
|
-
y = {};
|
|
111
|
+
exports.wrap = wrap;
|
|
112
|
+
var ContinueSentinel = {};
|
|
118
113
|
function Generator() {}
|
|
119
114
|
function GeneratorFunction() {}
|
|
120
115
|
function GeneratorFunctionPrototype() {}
|
|
121
|
-
var
|
|
122
|
-
define(
|
|
116
|
+
var IteratorPrototype = {};
|
|
117
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
123
118
|
return this;
|
|
124
119
|
});
|
|
125
|
-
var
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
var
|
|
129
|
-
function defineIteratorMethods(
|
|
130
|
-
["next", "throw", "return"].forEach(function (
|
|
131
|
-
define(
|
|
132
|
-
return this._invoke(
|
|
120
|
+
var getProto = Object.getPrototypeOf,
|
|
121
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
122
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
123
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
124
|
+
function defineIteratorMethods(prototype) {
|
|
125
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
126
|
+
define(prototype, method, function (arg) {
|
|
127
|
+
return this._invoke(method, arg);
|
|
133
128
|
});
|
|
134
129
|
});
|
|
135
130
|
}
|
|
136
|
-
function AsyncIterator(
|
|
137
|
-
function invoke(
|
|
138
|
-
var
|
|
139
|
-
if ("throw" !==
|
|
140
|
-
var
|
|
141
|
-
|
|
142
|
-
return
|
|
143
|
-
invoke("next",
|
|
144
|
-
}, function (
|
|
145
|
-
invoke("throw",
|
|
146
|
-
}) :
|
|
147
|
-
|
|
148
|
-
}, function (
|
|
149
|
-
return invoke("throw",
|
|
131
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
132
|
+
function invoke(method, arg, resolve, reject) {
|
|
133
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
134
|
+
if ("throw" !== record.type) {
|
|
135
|
+
var result = record.arg,
|
|
136
|
+
value = result.value;
|
|
137
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
138
|
+
invoke("next", value, resolve, reject);
|
|
139
|
+
}, function (err) {
|
|
140
|
+
invoke("throw", err, resolve, reject);
|
|
141
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
142
|
+
result.value = unwrapped, resolve(result);
|
|
143
|
+
}, function (error) {
|
|
144
|
+
return invoke("throw", error, resolve, reject);
|
|
150
145
|
});
|
|
151
146
|
}
|
|
152
|
-
|
|
147
|
+
reject(record.arg);
|
|
153
148
|
}
|
|
154
|
-
var
|
|
155
|
-
|
|
156
|
-
value: function (
|
|
149
|
+
var previousPromise;
|
|
150
|
+
defineProperty(this, "_invoke", {
|
|
151
|
+
value: function (method, arg) {
|
|
157
152
|
function callInvokeWithMethodAndArg() {
|
|
158
|
-
return new
|
|
159
|
-
invoke(
|
|
153
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
154
|
+
invoke(method, arg, resolve, reject);
|
|
160
155
|
});
|
|
161
156
|
}
|
|
162
|
-
return
|
|
157
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
163
158
|
}
|
|
164
159
|
});
|
|
165
160
|
}
|
|
166
|
-
function makeInvokeMethod(
|
|
167
|
-
var
|
|
168
|
-
return function (
|
|
169
|
-
if (
|
|
170
|
-
if (
|
|
171
|
-
if ("throw" ===
|
|
172
|
-
return
|
|
173
|
-
value: t,
|
|
174
|
-
done: !0
|
|
175
|
-
};
|
|
161
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
162
|
+
var state = "suspendedStart";
|
|
163
|
+
return function (method, arg) {
|
|
164
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
165
|
+
if ("completed" === state) {
|
|
166
|
+
if ("throw" === method) throw arg;
|
|
167
|
+
return doneResult();
|
|
176
168
|
}
|
|
177
|
-
for (
|
|
178
|
-
var
|
|
179
|
-
if (
|
|
180
|
-
var
|
|
181
|
-
if (
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
169
|
+
for (context.method = method, context.arg = arg;;) {
|
|
170
|
+
var delegate = context.delegate;
|
|
171
|
+
if (delegate) {
|
|
172
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
173
|
+
if (delegateResult) {
|
|
174
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
175
|
+
return delegateResult;
|
|
184
176
|
}
|
|
185
177
|
}
|
|
186
|
-
if ("next" ===
|
|
187
|
-
if (
|
|
188
|
-
|
|
189
|
-
} else "return" ===
|
|
190
|
-
|
|
191
|
-
var
|
|
192
|
-
if ("normal" ===
|
|
193
|
-
if (
|
|
178
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
179
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
180
|
+
context.dispatchException(context.arg);
|
|
181
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
182
|
+
state = "executing";
|
|
183
|
+
var record = tryCatch(innerFn, self, context);
|
|
184
|
+
if ("normal" === record.type) {
|
|
185
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
194
186
|
return {
|
|
195
|
-
value:
|
|
196
|
-
done:
|
|
187
|
+
value: record.arg,
|
|
188
|
+
done: context.done
|
|
197
189
|
};
|
|
198
190
|
}
|
|
199
|
-
"throw" ===
|
|
191
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
200
192
|
}
|
|
201
193
|
};
|
|
202
194
|
}
|
|
203
|
-
function maybeInvokeDelegate(
|
|
204
|
-
var
|
|
205
|
-
|
|
206
|
-
if (
|
|
207
|
-
var
|
|
208
|
-
if ("throw" ===
|
|
209
|
-
var
|
|
210
|
-
return
|
|
195
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
196
|
+
var methodName = context.method,
|
|
197
|
+
method = delegate.iterator[methodName];
|
|
198
|
+
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;
|
|
199
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
200
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
201
|
+
var info = record.arg;
|
|
202
|
+
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);
|
|
211
203
|
}
|
|
212
|
-
function pushTryEntry(
|
|
213
|
-
var
|
|
214
|
-
tryLoc:
|
|
204
|
+
function pushTryEntry(locs) {
|
|
205
|
+
var entry = {
|
|
206
|
+
tryLoc: locs[0]
|
|
215
207
|
};
|
|
216
|
-
1 in
|
|
208
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
217
209
|
}
|
|
218
|
-
function resetTryEntry(
|
|
219
|
-
var
|
|
220
|
-
|
|
210
|
+
function resetTryEntry(entry) {
|
|
211
|
+
var record = entry.completion || {};
|
|
212
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
221
213
|
}
|
|
222
|
-
function Context(
|
|
214
|
+
function Context(tryLocsList) {
|
|
223
215
|
this.tryEntries = [{
|
|
224
216
|
tryLoc: "root"
|
|
225
|
-
}],
|
|
217
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
226
218
|
}
|
|
227
|
-
function values(
|
|
228
|
-
if (
|
|
229
|
-
var
|
|
230
|
-
if (
|
|
231
|
-
if ("function" == typeof
|
|
232
|
-
if (!isNaN(
|
|
233
|
-
var
|
|
234
|
-
|
|
235
|
-
for (; ++
|
|
236
|
-
return next.value =
|
|
219
|
+
function values(iterable) {
|
|
220
|
+
if (iterable) {
|
|
221
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
222
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
223
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
224
|
+
if (!isNaN(iterable.length)) {
|
|
225
|
+
var i = -1,
|
|
226
|
+
next = function next() {
|
|
227
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
228
|
+
return next.value = undefined, next.done = !0, next;
|
|
237
229
|
};
|
|
238
|
-
return
|
|
230
|
+
return next.next = next;
|
|
239
231
|
}
|
|
240
232
|
}
|
|
241
|
-
|
|
233
|
+
return {
|
|
234
|
+
next: doneResult
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function doneResult() {
|
|
238
|
+
return {
|
|
239
|
+
value: undefined,
|
|
240
|
+
done: !0
|
|
241
|
+
};
|
|
242
242
|
}
|
|
243
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
243
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
244
244
|
value: GeneratorFunctionPrototype,
|
|
245
245
|
configurable: !0
|
|
246
|
-
}),
|
|
246
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
247
247
|
value: GeneratorFunction,
|
|
248
248
|
configurable: !0
|
|
249
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
250
|
-
var
|
|
251
|
-
return !!
|
|
252
|
-
},
|
|
253
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
254
|
-
},
|
|
249
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
250
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
251
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
252
|
+
}, exports.mark = function (genFun) {
|
|
253
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
254
|
+
}, exports.awrap = function (arg) {
|
|
255
255
|
return {
|
|
256
|
-
__await:
|
|
256
|
+
__await: arg
|
|
257
257
|
};
|
|
258
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
258
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
259
259
|
return this;
|
|
260
|
-
}),
|
|
261
|
-
void 0 ===
|
|
262
|
-
var
|
|
263
|
-
return
|
|
264
|
-
return
|
|
260
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
261
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
262
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
263
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
264
|
+
return result.done ? result.value : iter.next();
|
|
265
265
|
});
|
|
266
|
-
}, defineIteratorMethods(
|
|
266
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
267
267
|
return this;
|
|
268
|
-
}), define(
|
|
268
|
+
}), define(Gp, "toString", function () {
|
|
269
269
|
return "[object Generator]";
|
|
270
|
-
}),
|
|
271
|
-
var
|
|
272
|
-
|
|
273
|
-
for (var
|
|
274
|
-
return
|
|
275
|
-
for (;
|
|
276
|
-
var
|
|
277
|
-
if (
|
|
270
|
+
}), exports.keys = function (val) {
|
|
271
|
+
var object = Object(val),
|
|
272
|
+
keys = [];
|
|
273
|
+
for (var key in object) keys.push(key);
|
|
274
|
+
return keys.reverse(), function next() {
|
|
275
|
+
for (; keys.length;) {
|
|
276
|
+
var key = keys.pop();
|
|
277
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
278
278
|
}
|
|
279
279
|
return next.done = !0, next;
|
|
280
280
|
};
|
|
281
|
-
},
|
|
281
|
+
}, exports.values = values, Context.prototype = {
|
|
282
282
|
constructor: Context,
|
|
283
|
-
reset: function (
|
|
284
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
283
|
+
reset: function (skipTempReset) {
|
|
284
|
+
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);
|
|
285
285
|
},
|
|
286
286
|
stop: function () {
|
|
287
287
|
this.done = !0;
|
|
288
|
-
var
|
|
289
|
-
if ("throw" ===
|
|
288
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
289
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
290
290
|
return this.rval;
|
|
291
291
|
},
|
|
292
|
-
dispatchException: function (
|
|
293
|
-
if (this.done) throw
|
|
294
|
-
var
|
|
295
|
-
function handle(
|
|
296
|
-
return
|
|
292
|
+
dispatchException: function (exception) {
|
|
293
|
+
if (this.done) throw exception;
|
|
294
|
+
var context = this;
|
|
295
|
+
function handle(loc, caught) {
|
|
296
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
297
297
|
}
|
|
298
|
-
for (var
|
|
299
|
-
var
|
|
300
|
-
|
|
301
|
-
if ("root" ===
|
|
302
|
-
if (
|
|
303
|
-
var
|
|
304
|
-
|
|
305
|
-
if (
|
|
306
|
-
if (this.prev <
|
|
307
|
-
if (this.prev <
|
|
308
|
-
} else if (
|
|
309
|
-
if (this.prev <
|
|
298
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
299
|
+
var entry = this.tryEntries[i],
|
|
300
|
+
record = entry.completion;
|
|
301
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
302
|
+
if (entry.tryLoc <= this.prev) {
|
|
303
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
304
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
305
|
+
if (hasCatch && hasFinally) {
|
|
306
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
307
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
308
|
+
} else if (hasCatch) {
|
|
309
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
310
310
|
} else {
|
|
311
|
-
if (!
|
|
312
|
-
if (this.prev <
|
|
311
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
312
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
|
-
abrupt: function (
|
|
318
|
-
for (var
|
|
319
|
-
var
|
|
320
|
-
if (
|
|
321
|
-
var
|
|
317
|
+
abrupt: function (type, arg) {
|
|
318
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
319
|
+
var entry = this.tryEntries[i];
|
|
320
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
321
|
+
var finallyEntry = entry;
|
|
322
322
|
break;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
|
|
326
|
-
var
|
|
327
|
-
return
|
|
325
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
326
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
327
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
328
328
|
},
|
|
329
|
-
complete: function (
|
|
330
|
-
if ("throw" ===
|
|
331
|
-
return "break" ===
|
|
329
|
+
complete: function (record, afterLoc) {
|
|
330
|
+
if ("throw" === record.type) throw record.arg;
|
|
331
|
+
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;
|
|
332
332
|
},
|
|
333
|
-
finish: function (
|
|
334
|
-
for (var
|
|
335
|
-
var
|
|
336
|
-
if (
|
|
333
|
+
finish: function (finallyLoc) {
|
|
334
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
335
|
+
var entry = this.tryEntries[i];
|
|
336
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
|
-
catch: function (
|
|
340
|
-
for (var
|
|
341
|
-
var
|
|
342
|
-
if (
|
|
343
|
-
var
|
|
344
|
-
if ("throw" ===
|
|
345
|
-
var
|
|
346
|
-
resetTryEntry(
|
|
339
|
+
catch: function (tryLoc) {
|
|
340
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
341
|
+
var entry = this.tryEntries[i];
|
|
342
|
+
if (entry.tryLoc === tryLoc) {
|
|
343
|
+
var record = entry.completion;
|
|
344
|
+
if ("throw" === record.type) {
|
|
345
|
+
var thrown = record.arg;
|
|
346
|
+
resetTryEntry(entry);
|
|
347
347
|
}
|
|
348
|
-
return
|
|
348
|
+
return thrown;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
throw new Error("illegal catch attempt");
|
|
352
352
|
},
|
|
353
|
-
delegateYield: function (
|
|
353
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
354
354
|
return this.delegate = {
|
|
355
|
-
iterator: values(
|
|
356
|
-
resultName:
|
|
357
|
-
nextLoc:
|
|
358
|
-
}, "next" === this.method && (this.arg =
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
}
|
|
362
|
-
function _toPrimitive(t, r) {
|
|
363
|
-
if ("object" != typeof t || !t) return t;
|
|
364
|
-
var e = t[Symbol.toPrimitive];
|
|
365
|
-
if (void 0 !== e) {
|
|
366
|
-
var i = e.call(t, r || "default");
|
|
367
|
-
if ("object" != typeof i) return i;
|
|
368
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
369
|
-
}
|
|
370
|
-
return ("string" === r ? String : Number)(t);
|
|
371
|
-
}
|
|
372
|
-
function _toPropertyKey(t) {
|
|
373
|
-
var i = _toPrimitive(t, "string");
|
|
374
|
-
return "symbol" == typeof i ? i : String(i);
|
|
355
|
+
iterator: values(iterable),
|
|
356
|
+
resultName: resultName,
|
|
357
|
+
nextLoc: nextLoc
|
|
358
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
359
|
+
}
|
|
360
|
+
}, exports;
|
|
375
361
|
}
|
|
376
|
-
function _typeof(
|
|
362
|
+
function _typeof(obj) {
|
|
377
363
|
"@babel/helpers - typeof";
|
|
378
364
|
|
|
379
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
380
|
-
return typeof
|
|
381
|
-
} : function (
|
|
382
|
-
return
|
|
383
|
-
}, _typeof(
|
|
365
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
366
|
+
return typeof obj;
|
|
367
|
+
} : function (obj) {
|
|
368
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
369
|
+
}, _typeof(obj);
|
|
384
370
|
}
|
|
385
371
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
386
372
|
try {
|
|
@@ -487,6 +473,71 @@ function _nonIterableSpread() {
|
|
|
487
473
|
function _nonIterableRest() {
|
|
488
474
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
489
475
|
}
|
|
476
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
477
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
478
|
+
if (!it) {
|
|
479
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
480
|
+
if (it) o = it;
|
|
481
|
+
var i = 0;
|
|
482
|
+
var F = function () {};
|
|
483
|
+
return {
|
|
484
|
+
s: F,
|
|
485
|
+
n: function () {
|
|
486
|
+
if (i >= o.length) return {
|
|
487
|
+
done: true
|
|
488
|
+
};
|
|
489
|
+
return {
|
|
490
|
+
done: false,
|
|
491
|
+
value: o[i++]
|
|
492
|
+
};
|
|
493
|
+
},
|
|
494
|
+
e: function (e) {
|
|
495
|
+
throw e;
|
|
496
|
+
},
|
|
497
|
+
f: F
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
501
|
+
}
|
|
502
|
+
var normalCompletion = true,
|
|
503
|
+
didErr = false,
|
|
504
|
+
err;
|
|
505
|
+
return {
|
|
506
|
+
s: function () {
|
|
507
|
+
it = it.call(o);
|
|
508
|
+
},
|
|
509
|
+
n: function () {
|
|
510
|
+
var step = it.next();
|
|
511
|
+
normalCompletion = step.done;
|
|
512
|
+
return step;
|
|
513
|
+
},
|
|
514
|
+
e: function (e) {
|
|
515
|
+
didErr = true;
|
|
516
|
+
err = e;
|
|
517
|
+
},
|
|
518
|
+
f: function () {
|
|
519
|
+
try {
|
|
520
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
521
|
+
} finally {
|
|
522
|
+
if (didErr) throw err;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
function _toPrimitive(input, hint) {
|
|
528
|
+
if (typeof input !== "object" || input === null) return input;
|
|
529
|
+
var prim = input[Symbol.toPrimitive];
|
|
530
|
+
if (prim !== undefined) {
|
|
531
|
+
var res = prim.call(input, hint || "default");
|
|
532
|
+
if (typeof res !== "object") return res;
|
|
533
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
534
|
+
}
|
|
535
|
+
return (hint === "string" ? String : Number)(input);
|
|
536
|
+
}
|
|
537
|
+
function _toPropertyKey(arg) {
|
|
538
|
+
var key = _toPrimitive(arg, "string");
|
|
539
|
+
return typeof key === "symbol" ? key : String(key);
|
|
540
|
+
}
|
|
490
541
|
|
|
491
542
|
function ApaasCascader(props) {
|
|
492
543
|
return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
|
|
@@ -7950,7 +8001,8 @@ var WidgetMap = {
|
|
|
7950
8001
|
var pageSize = 50;
|
|
7951
8002
|
var SubForm = function SubForm(props) {
|
|
7952
8003
|
var _selectOptions$;
|
|
7953
|
-
var value = props.value,
|
|
8004
|
+
var _props$value = props.value,
|
|
8005
|
+
value = _props$value === void 0 ? [] : _props$value,
|
|
7954
8006
|
onChange = props.onChange,
|
|
7955
8007
|
needFilterShopByPermission = props.needFilterShopByPermission,
|
|
7956
8008
|
_props$subConfig = props.subConfig,
|
|
@@ -8252,7 +8304,7 @@ var SubForm = function SubForm(props) {
|
|
|
8252
8304
|
}
|
|
8253
8305
|
});
|
|
8254
8306
|
}
|
|
8255
|
-
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
8307
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value || []), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
8256
8308
|
uuid: uuid()
|
|
8257
8309
|
})]));
|
|
8258
8310
|
};
|
|
@@ -10910,7 +10962,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10910
10962
|
}
|
|
10911
10963
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
10912
10964
|
label: '发件人手机号',
|
|
10913
|
-
required
|
|
10965
|
+
// required={true}
|
|
10914
10966
|
key: 'interceptSenderMobile',
|
|
10915
10967
|
hidden: !showSenderMobile
|
|
10916
10968
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
@@ -11450,7 +11502,7 @@ var typeInitValueMap = {
|
|
|
11450
11502
|
}]
|
|
11451
11503
|
};
|
|
11452
11504
|
var jstGoods = function jstGoods(props) {
|
|
11453
|
-
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9;
|
|
11505
|
+
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12;
|
|
11454
11506
|
var _props$value = props.value,
|
|
11455
11507
|
value = _props$value === void 0 ? [] : _props$value,
|
|
11456
11508
|
onChange = props.onChange,
|
|
@@ -11468,8 +11520,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11468
11520
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
11469
11521
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
11470
11522
|
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
|
|
11523
|
+
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
11471
11524
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
11472
|
-
var logisticsType = type === 1 && platformType === 'gy' ? 'input' : 'select';
|
|
11473
11525
|
useEffect(function () {
|
|
11474
11526
|
//没有值塞个默认值
|
|
11475
11527
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -11552,59 +11604,51 @@ var jstGoods = function jstGoods(props) {
|
|
|
11552
11604
|
return setChangeIndex(index);
|
|
11553
11605
|
}
|
|
11554
11606
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
11555
|
-
}))) : null, value.length || type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics,
|
|
11556
|
-
type: logisticsType,
|
|
11607
|
+
}))) : null, value.length || type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
11557
11608
|
disabled: disabled,
|
|
11558
11609
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
11559
11610
|
onChange: function onChange(val) {
|
|
11560
|
-
|
|
11561
|
-
changeInputHandle(null, 'logisticsCompany');
|
|
11562
|
-
changeInputHandle(val, 'logisticsCompanyName');
|
|
11563
|
-
} else {
|
|
11564
|
-
changeInputHandle(val, 'logisticsCompany');
|
|
11565
|
-
}
|
|
11611
|
+
changeInputHandle(val, 'logisticsCompany');
|
|
11566
11612
|
},
|
|
11567
|
-
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex[
|
|
11568
|
-
}, logisticsType === 'input' ? {} : {
|
|
11613
|
+
value: platformType === 'gy' ? expressDateInstance.getExpressNameByCode((_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex['logisticsCompany'], false) ? (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompany'] : (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompanyName'] : (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4['logisticsCompany'],
|
|
11569
11614
|
showSearch: true,
|
|
11570
11615
|
dropdownMatchSelectWidth: false,
|
|
11571
11616
|
filterOption: function filterOption(input, option) {
|
|
11572
11617
|
return option.label.includes(input);
|
|
11573
|
-
}
|
|
11574
|
-
}), {}, {
|
|
11618
|
+
},
|
|
11575
11619
|
style: {
|
|
11576
11620
|
minWidth: '100px',
|
|
11577
11621
|
maxWidth: '180px'
|
|
11578
11622
|
},
|
|
11579
11623
|
platformType: platformType
|
|
11580
|
-
})
|
|
11624
|
+
}) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
|
|
11581
11625
|
disabled: disabled,
|
|
11582
11626
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
11583
11627
|
onChange: function onChange(e) {
|
|
11584
11628
|
return changeInputHandle(e.target.value, 'logisticsCode');
|
|
11585
11629
|
},
|
|
11586
|
-
value: (_value$
|
|
11630
|
+
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.logisticsCode
|
|
11587
11631
|
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement(Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
11588
11632
|
disabled: disabled,
|
|
11589
11633
|
placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u7F16\u7801",
|
|
11590
11634
|
onChange: function onChange(e) {
|
|
11591
11635
|
return changeInputHandle(e.target.value, 'supplyId');
|
|
11592
11636
|
},
|
|
11593
|
-
value: (_value$
|
|
11637
|
+
value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.supplyId
|
|
11594
11638
|
}), ['supplyName', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
11595
11639
|
disabled: disabled,
|
|
11596
11640
|
placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u540D\u79F0",
|
|
11597
11641
|
onChange: function onChange(e) {
|
|
11598
11642
|
return changeInputHandle(e.target.value, 'supplyName');
|
|
11599
11643
|
},
|
|
11600
|
-
value: (_value$
|
|
11644
|
+
value: (_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.supplyName
|
|
11601
11645
|
})) : null, type === 3 ? /*#__PURE__*/React.createElement(Space, null, ['sendId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
11602
11646
|
disabled: disabled,
|
|
11603
11647
|
placeholder: "\u8BF7\u8F93\u5165\u53D1\u8D27\u4ED3\u7F16\u7801",
|
|
11604
11648
|
onChange: function onChange(e) {
|
|
11605
11649
|
return changeInputHandle(e.target.value, 'sendId');
|
|
11606
11650
|
},
|
|
11607
|
-
value: (_value$
|
|
11651
|
+
value: (_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendId
|
|
11608
11652
|
}), ['sendName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React.createElement(Select, {
|
|
11609
11653
|
style: {
|
|
11610
11654
|
minWidth: '100px',
|
|
@@ -11615,7 +11659,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11615
11659
|
showSearch: true,
|
|
11616
11660
|
options: sendOptions,
|
|
11617
11661
|
filterOption: filterOption,
|
|
11618
|
-
value: ((_value$
|
|
11662
|
+
value: ((_value$changeIndex9 = value[changeIndex]) === null || _value$changeIndex9 === void 0 ? void 0 : _value$changeIndex9.sendSnapshotId) || ((_value$changeIndex10 = value[changeIndex]) === null || _value$changeIndex10 === void 0 ? void 0 : _value$changeIndex10.sendName) || null,
|
|
11619
11663
|
onChange: function onChange(value, option) {
|
|
11620
11664
|
return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
|
|
11621
11665
|
}
|
|
@@ -11625,14 +11669,14 @@ var jstGoods = function jstGoods(props) {
|
|
|
11625
11669
|
onChange: function onChange(e) {
|
|
11626
11670
|
return changeInputHandle(e.target.value, 'sendName');
|
|
11627
11671
|
},
|
|
11628
|
-
value: (_value$
|
|
11672
|
+
value: (_value$changeIndex11 = value[changeIndex]) === null || _value$changeIndex11 === void 0 ? void 0 : _value$changeIndex11.sendName
|
|
11629
11673
|
}))) : null, type === 4 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
11630
11674
|
disabled: disabled,
|
|
11631
11675
|
placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
|
|
11632
11676
|
onChange: function onChange(e) {
|
|
11633
11677
|
return changeInputHandle(e.target.value, 'deliveryNo');
|
|
11634
11678
|
},
|
|
11635
|
-
value: (_value$
|
|
11679
|
+
value: (_value$changeIndex12 = value[changeIndex]) === null || _value$changeIndex12 === void 0 ? void 0 : _value$changeIndex12.sendName
|
|
11636
11680
|
})) : null) : null);
|
|
11637
11681
|
};
|
|
11638
11682
|
|
|
@@ -12547,9 +12591,7 @@ var useGetColumns = (function (type) {
|
|
|
12547
12591
|
loading = _useState4[0],
|
|
12548
12592
|
setLoading = _useState4[1];
|
|
12549
12593
|
var showColumnsDataIndexList = useMemo(function () {
|
|
12550
|
-
return columns.
|
|
12551
|
-
return Object.hasOwn(item, 'dataIndex');
|
|
12552
|
-
}).map(function (item) {
|
|
12594
|
+
return columns.map(function (item) {
|
|
12553
12595
|
return item.dataIndex;
|
|
12554
12596
|
});
|
|
12555
12597
|
}, [columns]);
|
|
@@ -15166,7 +15208,7 @@ var getColumns$5 = function getColumns() {
|
|
|
15166
15208
|
ellipsis: true,
|
|
15167
15209
|
align: 'center',
|
|
15168
15210
|
render: function render(val, record, index) {
|
|
15169
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
15211
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
15170
15212
|
}
|
|
15171
15213
|
}, {
|
|
15172
15214
|
dataIndex: 'batchId',
|
|
@@ -15442,7 +15484,7 @@ var getColumns$5 = function getColumns() {
|
|
|
15442
15484
|
dataIndex: 'saleAmount',
|
|
15443
15485
|
title: '总金额',
|
|
15444
15486
|
render: function render(val, record) {
|
|
15445
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
15487
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
15446
15488
|
}
|
|
15447
15489
|
}, {
|
|
15448
15490
|
dataIndex: 'batchId',
|
|
@@ -15551,7 +15593,7 @@ var getColumns$5 = function getColumns() {
|
|
|
15551
15593
|
dataIndex: 'saleAmount',
|
|
15552
15594
|
title: '总金额',
|
|
15553
15595
|
render: function render(val, record) {
|
|
15554
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
15596
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
15555
15597
|
}
|
|
15556
15598
|
}, {
|
|
15557
15599
|
dataIndex: 'isGift',
|
|
@@ -15737,6 +15779,29 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
15737
15779
|
});
|
|
15738
15780
|
};
|
|
15739
15781
|
var erpColumnsMap = getColumnsMap$1();
|
|
15782
|
+
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
15783
|
+
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
15784
|
+
return column.validator;
|
|
15785
|
+
}).filter(Boolean);
|
|
15786
|
+
var res = null;
|
|
15787
|
+
var _iterator = _createForOfIteratorHelper(validatorFnList),
|
|
15788
|
+
_step;
|
|
15789
|
+
try {
|
|
15790
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
15791
|
+
var validatorFn = _step.value;
|
|
15792
|
+
var validatorResult = validatorFn(_rule, value, type);
|
|
15793
|
+
if (validatorResult) {
|
|
15794
|
+
res = validatorResult;
|
|
15795
|
+
break;
|
|
15796
|
+
}
|
|
15797
|
+
}
|
|
15798
|
+
} catch (err) {
|
|
15799
|
+
_iterator.e(err);
|
|
15800
|
+
} finally {
|
|
15801
|
+
_iterator.f();
|
|
15802
|
+
}
|
|
15803
|
+
return res;
|
|
15804
|
+
};
|
|
15740
15805
|
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15741
15806
|
var clone_columnsMap = cloneDeep(getColumnsMap$1());
|
|
15742
15807
|
var newColumns = {};
|
|
@@ -15867,6 +15932,7 @@ var GoodsModalMap = {
|
|
|
15867
15932
|
BS_E3_EXCHANGE_GOODS: BsE3GoodsModal,
|
|
15868
15933
|
GY_GOODS: GyGoodsModal$2,
|
|
15869
15934
|
GY_REISSUE_GOODS: GyGoodsModal$2,
|
|
15935
|
+
GY_RETURN_GOODS: GyGoodsModal$2,
|
|
15870
15936
|
JST_GOODS: JstGoodsModal,
|
|
15871
15937
|
JST_REISSUE_GOODS: JstGoodsModal,
|
|
15872
15938
|
JST_RETURN_GOODS: JstGoodsModal,
|
|
@@ -15904,7 +15970,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
15904
15970
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
15905
15971
|
}));
|
|
15906
15972
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
15907
|
-
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
15973
|
+
// console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
15908
15974
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
15909
15975
|
};
|
|
15910
15976
|
var rowSelection = {
|
|
@@ -15939,7 +16005,7 @@ var getButtonText = function getButtonText() {
|
|
|
15939
16005
|
if (['WDT_REISSUE_GOODS'].includes(type)) {
|
|
15940
16006
|
return '选择旺店通商品';
|
|
15941
16007
|
}
|
|
15942
|
-
if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
|
|
16008
|
+
if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
|
|
15943
16009
|
return '选择管易ERP商品';
|
|
15944
16010
|
}
|
|
15945
16011
|
if (['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -16242,7 +16308,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16242
16308
|
canUpdateNumber: canUpdateNumber
|
|
16243
16309
|
});
|
|
16244
16310
|
});
|
|
16245
|
-
} else if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
|
|
16311
|
+
} else if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
|
|
16246
16312
|
newList = list.map(function (item) {
|
|
16247
16313
|
var goodName = item.goodName,
|
|
16248
16314
|
goodShortName = item.goodShortName,
|
|
@@ -17020,10 +17086,12 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
|
|
|
17020
17086
|
var _data$data, _data$data$trades;
|
|
17021
17087
|
if (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$trades = _data$data.trades) === null || _data$data$trades === void 0 ? void 0 : _data$data$trades.length) {
|
|
17022
17088
|
data.data.trades = filterWdtOrders(data === null || data === void 0 ? void 0 : data.data, orderNo).map(function (item) {
|
|
17089
|
+
var _tradeStatusMap$data$;
|
|
17023
17090
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17024
17091
|
billNo: item.tradeNo,
|
|
17025
17092
|
billType: WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
17026
|
-
billTag: item.tagName
|
|
17093
|
+
billTag: item.tagName,
|
|
17094
|
+
tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus]
|
|
17027
17095
|
});
|
|
17028
17096
|
});
|
|
17029
17097
|
}
|
|
@@ -17266,7 +17334,6 @@ var index$3 = (function (props) {
|
|
|
17266
17334
|
} else if (type === 'BS_E3_SYSTEM_ORDER') {
|
|
17267
17335
|
getBsE3OrderList(value.orderNo);
|
|
17268
17336
|
} else if (type === 'GY_SYSTEM_ORDER') {
|
|
17269
|
-
console.log('触发gy--getGyOrderList--1');
|
|
17270
17337
|
getGyOrderList(value.orderNo);
|
|
17271
17338
|
} else if (type === 'JST_SYSTEM_ORDER') {
|
|
17272
17339
|
getJstOrderList(value.orderNo);
|
|
@@ -17380,11 +17447,13 @@ var index$3 = (function (props) {
|
|
|
17380
17447
|
showOrderInfo: trades.map(function (_ref4) {
|
|
17381
17448
|
var billNo = _ref4.billNo,
|
|
17382
17449
|
billType = _ref4.billType,
|
|
17383
|
-
billTag = _ref4.billTag
|
|
17450
|
+
billTag = _ref4.billTag,
|
|
17451
|
+
tradeStatusValue = _ref4.tradeStatusValue;
|
|
17384
17452
|
return {
|
|
17385
17453
|
billNo: billNo,
|
|
17386
17454
|
billType: billType,
|
|
17387
|
-
billTag: billTag
|
|
17455
|
+
billTag: billTag,
|
|
17456
|
+
tradeStatusValue: tradeStatusValue
|
|
17388
17457
|
};
|
|
17389
17458
|
})
|
|
17390
17459
|
}));
|
|
@@ -17702,7 +17771,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
17702
17771
|
disabled = props.disabled,
|
|
17703
17772
|
onChange = props.onChange,
|
|
17704
17773
|
compType = props.type;
|
|
17705
|
-
console.log('value?.orders', value
|
|
17774
|
+
// console.log('value?.orders', value?.orders);
|
|
17706
17775
|
// 合并单订单会包含","
|
|
17707
17776
|
var showModeBtn = !['BS_E3_GOODS'].includes(compType) && ((value === null || value === void 0 ? void 0 : value.orders) || []).some(function (order) {
|
|
17708
17777
|
var _order$componentMap$c;
|
|
@@ -18226,7 +18295,7 @@ var typeMap$1 = {
|
|
|
18226
18295
|
}
|
|
18227
18296
|
};
|
|
18228
18297
|
var wdtReissue = function wdtReissue(props) {
|
|
18229
|
-
var _value$wdtSystemOrder, _typeMap$
|
|
18298
|
+
var _value$wdtSystemOrder, _typeMap$type23, _typeMap$type25, _typeMap$type26, _value$typeMap$type$s5, _typeMap$type27, _typeMap$type28, _typeMap$type29;
|
|
18230
18299
|
var value = props.value,
|
|
18231
18300
|
onChange = props.onChange,
|
|
18232
18301
|
_props$reasonList = props.reasonList,
|
|
@@ -18296,11 +18365,13 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18296
18365
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
18297
18366
|
var billNo = _ref2.billNo,
|
|
18298
18367
|
billType = _ref2.billType,
|
|
18299
|
-
billTag = _ref2.billTag
|
|
18368
|
+
billTag = _ref2.billTag,
|
|
18369
|
+
tradeStatusValue = _ref2.tradeStatusValue;
|
|
18300
18370
|
return {
|
|
18301
18371
|
billNo: billNo,
|
|
18302
18372
|
billType: billType,
|
|
18303
|
-
billTag: billTag
|
|
18373
|
+
billTag: billTag,
|
|
18374
|
+
tradeStatusValue: tradeStatusValue
|
|
18304
18375
|
};
|
|
18305
18376
|
});
|
|
18306
18377
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type5 = typeMap$1[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type6 = typeMap$1[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) || {}), {}, {
|
|
@@ -18383,7 +18454,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18383
18454
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
18384
18455
|
};
|
|
18385
18456
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
18386
|
-
var _typeMap$type21, _typeMap$type22, _uniqBy
|
|
18457
|
+
var _typeMap$type21, _typeMap$type22, _uniqBy;
|
|
18387
18458
|
var newValue = _objectSpread2({}, value);
|
|
18388
18459
|
// 原订单商品
|
|
18389
18460
|
var originTradeGoodList = getGoodDetails({
|
|
@@ -18394,14 +18465,14 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18394
18465
|
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
18395
18466
|
return skuList.includes(item.uuid);
|
|
18396
18467
|
});
|
|
18397
|
-
console.log('商品发生变化', newValue[
|
|
18468
|
+
// console.log('商品发生变化', newValue[`${typeMap?.[type]?.key}`]);
|
|
18398
18469
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
18399
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18470
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)], isStrict]);
|
|
18400
18471
|
//显示选择商品按钮 原单换不显示选择商品
|
|
18401
18472
|
var showChangeBtn = useMemo(function () {
|
|
18402
|
-
var _typeMap$
|
|
18403
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
18404
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
18473
|
+
var _typeMap$type24;
|
|
18474
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderNo]);
|
|
18475
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]]);
|
|
18405
18476
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
18406
18477
|
gutter: 8,
|
|
18407
18478
|
wrap: true
|
|
@@ -18419,12 +18490,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18419
18490
|
},
|
|
18420
18491
|
disabled: disabled,
|
|
18421
18492
|
allowClear: false,
|
|
18422
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18493
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)],
|
|
18423
18494
|
onChange: function onChange(val) {
|
|
18424
18495
|
return changeSystemOrderHandle(val);
|
|
18425
18496
|
},
|
|
18426
18497
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
18427
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
18498
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
18428
18499
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
18429
18500
|
key: item.billNo,
|
|
18430
18501
|
value: item.billNo,
|
|
@@ -18445,7 +18516,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18445
18516
|
disabled: disabled,
|
|
18446
18517
|
allowClear: false,
|
|
18447
18518
|
options: reasonList,
|
|
18448
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18519
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName)],
|
|
18449
18520
|
onChange: function onChange(val) {
|
|
18450
18521
|
return changeTypeHandle(val);
|
|
18451
18522
|
}
|
|
@@ -18457,7 +18528,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18457
18528
|
canUpdateNumber: showChangeBtn,
|
|
18458
18529
|
showChangeBtn: showChangeBtn,
|
|
18459
18530
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
18460
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
18531
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type29 = typeMap$1[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.key)],
|
|
18461
18532
|
onChange: function onChange(val) {
|
|
18462
18533
|
return changeGoodHandle(val);
|
|
18463
18534
|
},
|
|
@@ -19529,6 +19600,39 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19529
19600
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
|
|
19530
19601
|
};
|
|
19531
19602
|
|
|
19603
|
+
var _excluded$n = ["showOnly", "getOptionsAsync"];
|
|
19604
|
+
var AsyncSelect = function AsyncSelect(props) {
|
|
19605
|
+
var _props$showOnly = props.showOnly,
|
|
19606
|
+
showOnly = _props$showOnly === void 0 ? false : _props$showOnly,
|
|
19607
|
+
getOptionsAsync = props.getOptionsAsync,
|
|
19608
|
+
otherProps = _objectWithoutProperties(props, _excluded$n);
|
|
19609
|
+
var _React$useState = React.useState([]),
|
|
19610
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
19611
|
+
data = _React$useState2[0],
|
|
19612
|
+
setData = _React$useState2[1];
|
|
19613
|
+
React.useEffect(function () {
|
|
19614
|
+
getOptionsAsync === null || getOptionsAsync === void 0 ? void 0 : getOptionsAsync().then(function (list) {
|
|
19615
|
+
setData(list);
|
|
19616
|
+
});
|
|
19617
|
+
}, []);
|
|
19618
|
+
var options = [].concat(_toConsumableArray(props.options || []), _toConsumableArray(data || []));
|
|
19619
|
+
if (showOnly) {
|
|
19620
|
+
var selectedItem = options.find(function (option) {
|
|
19621
|
+
return option.value === props.value;
|
|
19622
|
+
});
|
|
19623
|
+
return selectedItem ? selectedItem.label : props.value;
|
|
19624
|
+
}
|
|
19625
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
19626
|
+
showSearch: true,
|
|
19627
|
+
filterOption: function filterOption(input, option) {
|
|
19628
|
+
return option.label.includes(input);
|
|
19629
|
+
},
|
|
19630
|
+
notFoundContent: null
|
|
19631
|
+
}, otherProps), {}, {
|
|
19632
|
+
options: options
|
|
19633
|
+
}));
|
|
19634
|
+
};
|
|
19635
|
+
|
|
19532
19636
|
var CalculationInput = function CalculationInput(props) {
|
|
19533
19637
|
var _props$config = props.config,
|
|
19534
19638
|
config = _props$config === void 0 ? {} : _props$config;
|
|
@@ -19547,7 +19651,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
19547
19651
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
19548
19652
|
};
|
|
19549
19653
|
|
|
19550
|
-
var _excluded$
|
|
19654
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19551
19655
|
var typeMap$3 = {
|
|
19552
19656
|
BS_E3_REISSUE_GOODS: {
|
|
19553
19657
|
key: 'bsE3ReissueGoods',
|
|
@@ -19565,7 +19669,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19565
19669
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19566
19670
|
disabled = props.disabled,
|
|
19567
19671
|
type = props.type,
|
|
19568
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19672
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19569
19673
|
var getOrderFlag = useRef(false);
|
|
19570
19674
|
var valueRef = useRef(null);
|
|
19571
19675
|
var _useState = useState(false),
|
|
@@ -19783,7 +19887,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19783
19887
|
})));
|
|
19784
19888
|
};
|
|
19785
19889
|
|
|
19786
|
-
var _excluded$
|
|
19890
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19787
19891
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19788
19892
|
var typeMap$4 = {
|
|
19789
19893
|
GY_REISSUE_GOODS: {
|
|
@@ -19805,14 +19909,14 @@ var typeMap$4 = {
|
|
|
19805
19909
|
}
|
|
19806
19910
|
};
|
|
19807
19911
|
var GyReissue = function GyReissue(props) {
|
|
19808
|
-
var _typeMap$type28, _typeMap$
|
|
19912
|
+
var _typeMap$type27, _typeMap$type28, _typeMap$type29, _systemOrder$orders, _typeMap$type30, _value$typeMap$type$s5, _typeMap$type31, _typeMap$type32, _typeMap$type33;
|
|
19809
19913
|
var value = props.value,
|
|
19810
19914
|
onChange = props.onChange,
|
|
19811
19915
|
_props$reasonList = props.reasonList,
|
|
19812
19916
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19813
19917
|
disabled = props.disabled,
|
|
19814
19918
|
type = props.type,
|
|
19815
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19919
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19816
19920
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19817
19921
|
// order?.platformCode?.includes(';'),
|
|
19818
19922
|
// );
|
|
@@ -19960,7 +20064,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19960
20064
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19961
20065
|
};
|
|
19962
20066
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
19963
|
-
var _ref12, _typeMap$type25, _typeMap$type26, _uniqBy
|
|
20067
|
+
var _ref12, _typeMap$type25, _typeMap$type26, _uniqBy;
|
|
19964
20068
|
pushGyLog('beforeSelectedGoodsChange', valueRef.current || {});
|
|
19965
20069
|
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
19966
20070
|
// 原订单商品
|
|
@@ -19972,21 +20076,15 @@ var GyReissue = function GyReissue(props) {
|
|
|
19972
20076
|
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type26 = typeMap$4[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
19973
20077
|
return skuList.includes(item.uuid);
|
|
19974
20078
|
});
|
|
19975
|
-
console.log('商品发生变化', newValue[
|
|
20079
|
+
// console.log('商品发生变化', newValue[`${typeMap?.[type]?.key}`]);
|
|
19976
20080
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19977
20081
|
pushGyLog('afterSelectedGoodsChange', newValue);
|
|
19978
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
20082
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type27 = typeMap$4[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.key)], isStrict]);
|
|
19979
20083
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
19980
|
-
var
|
|
19981
|
-
|
|
19982
|
-
|
|
19983
|
-
|
|
19984
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
19985
|
-
id: "TEST_GY",
|
|
19986
|
-
onClick: function onClick() {
|
|
19987
|
-
console.log('TEST_GY', value);
|
|
19988
|
-
}
|
|
19989
|
-
}, /*#__PURE__*/React.createElement(Row, {
|
|
20084
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$4[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder];
|
|
20085
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo]);
|
|
20086
|
+
var showErpGoodsBtn = showChangeBtn || type === 'GY_REISSUE_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
|
|
20087
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
|
|
19990
20088
|
gutter: 8,
|
|
19991
20089
|
wrap: true
|
|
19992
20090
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
@@ -20003,12 +20101,12 @@ var GyReissue = function GyReissue(props) {
|
|
|
20003
20101
|
},
|
|
20004
20102
|
disabled: disabled,
|
|
20005
20103
|
allowClear: false,
|
|
20006
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
20104
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo)],
|
|
20007
20105
|
onChange: function onChange(val) {
|
|
20008
20106
|
return changeSystemOrderHandle(val);
|
|
20009
20107
|
},
|
|
20010
20108
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
20011
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
20109
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type31 = typeMap$4[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
20012
20110
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
20013
20111
|
key: item.billNo,
|
|
20014
20112
|
value: item.billNo,
|
|
@@ -20029,7 +20127,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
20029
20127
|
disabled: disabled,
|
|
20030
20128
|
allowClear: false,
|
|
20031
20129
|
options: reasonList,
|
|
20032
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
20130
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type32 = typeMap$4[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName)],
|
|
20033
20131
|
onChange: function onChange(val) {
|
|
20034
20132
|
return changeTypeHandle(val);
|
|
20035
20133
|
}
|
|
@@ -20040,8 +20138,10 @@ var GyReissue = function GyReissue(props) {
|
|
|
20040
20138
|
disabled: disabled,
|
|
20041
20139
|
canUpdateNumber: showChangeBtn,
|
|
20042
20140
|
showChangeBtn: showChangeBtn,
|
|
20141
|
+
showErpGoodsBtn: showErpGoodsBtn,
|
|
20142
|
+
alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
|
|
20043
20143
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
20044
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
20144
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type33 = typeMap$4[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)],
|
|
20045
20145
|
onChange: function onChange(val) {
|
|
20046
20146
|
return changeGoodHandle(val);
|
|
20047
20147
|
},
|
|
@@ -20056,7 +20156,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
20056
20156
|
})));
|
|
20057
20157
|
};
|
|
20058
20158
|
|
|
20059
|
-
var _excluded$
|
|
20159
|
+
var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
20060
20160
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
20061
20161
|
var typeMap$5 = {
|
|
20062
20162
|
GY_RETURN_GOODS: {
|
|
@@ -20078,14 +20178,14 @@ var typeMap$5 = {
|
|
|
20078
20178
|
}
|
|
20079
20179
|
};
|
|
20080
20180
|
var GyReturnGoods = function GyReturnGoods(props) {
|
|
20081
|
-
var _typeMap$
|
|
20181
|
+
var _typeMap$type9, _typeMap$type26, _systemOrder$orders, _typeMap$type27, _typeMap$type28, _value$typeMap$type$s5, _typeMap$type29, _typeMap$type30, _typeMap$type31;
|
|
20082
20182
|
var value = props.value,
|
|
20083
20183
|
onChange = props.onChange,
|
|
20084
20184
|
_props$reasonList = props.reasonList,
|
|
20085
20185
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20086
20186
|
disabled = props.disabled,
|
|
20087
20187
|
type = props.type,
|
|
20088
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
20188
|
+
other = _objectWithoutProperties(props, _excluded$q);
|
|
20089
20189
|
var valueRef = useRef({});
|
|
20090
20190
|
var getOrderFlag = useRef(false);
|
|
20091
20191
|
var _useState = useState(false),
|
|
@@ -20186,7 +20286,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20186
20286
|
};
|
|
20187
20287
|
}();
|
|
20188
20288
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
20189
|
-
var _typeMap$type7, _typeMap$type8, _uniqBy
|
|
20289
|
+
var _typeMap$type7, _typeMap$type8, _uniqBy;
|
|
20190
20290
|
var newValue = _objectSpread2({}, value);
|
|
20191
20291
|
// 原订单商品
|
|
20192
20292
|
var originTradeGoodList = getGoodDetails({
|
|
@@ -20197,49 +20297,49 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20197
20297
|
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type8 = typeMap$5[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
20198
20298
|
return skuList.includes(item.uuid);
|
|
20199
20299
|
});
|
|
20200
|
-
console.log('商品发生变化', newValue[
|
|
20300
|
+
// console.log('商品发生变化', newValue[`${typeMap?.[type]?.key}`]);
|
|
20201
20301
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
20202
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$
|
|
20302
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type9 = typeMap$5[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.key)], isStrict]);
|
|
20203
20303
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
20204
|
-
var _value$typeMap$type$t, _typeMap$
|
|
20304
|
+
var _value$typeMap$type$t, _typeMap$type10, _typeMap$type11;
|
|
20205
20305
|
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
20206
|
-
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$
|
|
20306
|
+
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type10 = typeMap$5[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0])) return;
|
|
20207
20307
|
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
20208
20308
|
var newValue = _objectSpread2({}, value);
|
|
20209
|
-
newValue[(_typeMap$
|
|
20309
|
+
newValue[(_typeMap$type11 = typeMap$5[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName] = val;
|
|
20210
20310
|
if (typeName === '1') {
|
|
20211
|
-
var _typeMap$
|
|
20212
|
-
newValue[(_typeMap$
|
|
20311
|
+
var _typeMap$type12;
|
|
20312
|
+
newValue[(_typeMap$type12 = typeMap$5[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key] = getGoodDetails({
|
|
20213
20313
|
mode: isStrict
|
|
20214
20314
|
});
|
|
20215
20315
|
} else if (typeName === '2') {
|
|
20216
|
-
var _typeMap$
|
|
20316
|
+
var _typeMap$type13;
|
|
20217
20317
|
// 切换到非原单,清空列表
|
|
20218
|
-
newValue[(_typeMap$
|
|
20318
|
+
newValue[(_typeMap$type13 = typeMap$5[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = [];
|
|
20219
20319
|
}
|
|
20220
20320
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
20221
20321
|
};
|
|
20222
20322
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
20223
|
-
var _typeMap$
|
|
20323
|
+
var _typeMap$type14;
|
|
20224
20324
|
var newValue = _objectSpread2({}, value);
|
|
20225
|
-
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$
|
|
20226
|
-
var _typeMap$
|
|
20227
|
-
item["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$
|
|
20228
|
-
item["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$
|
|
20325
|
+
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type14 = typeMap$5[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key)] = (val || []).map(function (item) {
|
|
20326
|
+
var _typeMap$type15, _typeMap$type16;
|
|
20327
|
+
item["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type15 = typeMap$5[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.formatDefaultField.money)] = 0;
|
|
20328
|
+
item["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type16 = typeMap$5[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.formatDefaultField.share)] = 0;
|
|
20229
20329
|
return item;
|
|
20230
20330
|
});
|
|
20231
20331
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
20232
20332
|
};
|
|
20233
20333
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
20234
|
-
var _typeMap$
|
|
20334
|
+
var _typeMap$type17, _value$typeMap$type$t2, _typeMap$type18, _value$typeMap$type$t3, _typeMap$type20;
|
|
20235
20335
|
var newValue = _objectSpread2({}, value);
|
|
20236
|
-
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$
|
|
20237
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
20238
|
-
var _typeMap$
|
|
20239
|
-
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$
|
|
20240
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
20241
|
-
var _typeMap$
|
|
20242
|
-
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$
|
|
20336
|
+
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type17 = typeMap$5[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrderNo)] = val;
|
|
20337
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type18 = typeMap$5[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
20338
|
+
var _typeMap$type19;
|
|
20339
|
+
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type19 = typeMap$5[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.key)] = [];
|
|
20340
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type20 = typeMap$5[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
20341
|
+
var _typeMap$type21;
|
|
20342
|
+
newValue["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type21 = typeMap$5[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key)] = getGoodDetails({
|
|
20243
20343
|
mode: isStrict,
|
|
20244
20344
|
sysOrderNo: val
|
|
20245
20345
|
});
|
|
@@ -20247,11 +20347,11 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20247
20347
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
20248
20348
|
};
|
|
20249
20349
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
20250
|
-
var _typeMap$
|
|
20350
|
+
var _typeMap$type22, _typeMap$type23, _order$details;
|
|
20251
20351
|
var mode = _ref4.mode,
|
|
20252
20352
|
sysOrderNo = _ref4.sysOrderNo;
|
|
20253
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
20254
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
20353
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type22 = typeMap$5[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrder];
|
|
20354
|
+
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type23 = typeMap$5[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderNo];
|
|
20255
20355
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
20256
20356
|
return order.code === systemOrderNo;
|
|
20257
20357
|
});
|
|
@@ -20262,19 +20362,18 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20262
20362
|
}) : goodDetails;
|
|
20263
20363
|
};
|
|
20264
20364
|
var handleModeChange = function handleModeChange(mode) {
|
|
20265
|
-
var _value$typeMap$type$t4, _typeMap$
|
|
20266
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$
|
|
20365
|
+
var _value$typeMap$type$t4, _typeMap$type24, _typeMap$type25;
|
|
20366
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type24 = typeMap$5[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0]) === '1';
|
|
20267
20367
|
setIsStrict(mode);
|
|
20268
20368
|
if (!isOriginalOrder) return;
|
|
20269
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
20369
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type25 = typeMap$5[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key, getGoodDetails({
|
|
20270
20370
|
mode: mode
|
|
20271
20371
|
}))));
|
|
20272
20372
|
};
|
|
20273
20373
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
20274
|
-
var
|
|
20275
|
-
|
|
20276
|
-
|
|
20277
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
|
|
20374
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$5[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder];
|
|
20375
|
+
var showErpGoodsBtn = type === 'GY_RETURN_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
|
|
20376
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
|
|
20278
20377
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
20279
20378
|
gutter: 8,
|
|
20280
20379
|
wrap: true
|
|
@@ -20292,12 +20391,12 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20292
20391
|
},
|
|
20293
20392
|
disabled: disabled,
|
|
20294
20393
|
allowClear: false,
|
|
20295
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$
|
|
20394
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo)],
|
|
20296
20395
|
onChange: function onChange(val) {
|
|
20297
20396
|
return changeSystemOrderHandle(val);
|
|
20298
20397
|
},
|
|
20299
20398
|
placeholder: "\u9009\u62E9\u9000\u8D27\u7684\u7CFB\u7EDF\u5355"
|
|
20300
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
20399
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type29 = typeMap$5[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
20301
20400
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
20302
20401
|
key: item.billNo,
|
|
20303
20402
|
value: item.billNo,
|
|
@@ -20318,7 +20417,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20318
20417
|
disabled: disabled,
|
|
20319
20418
|
allowClear: false,
|
|
20320
20419
|
options: reasonList,
|
|
20321
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$
|
|
20420
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type30 = typeMap$5[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName)],
|
|
20322
20421
|
onChange: function onChange(val) {
|
|
20323
20422
|
return changeTypeHandle(val);
|
|
20324
20423
|
}
|
|
@@ -20330,13 +20429,14 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20330
20429
|
canUpdateNumber: showChangeBtn,
|
|
20331
20430
|
showChangeBtn: showChangeBtn,
|
|
20332
20431
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
20333
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$
|
|
20432
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type31 = typeMap$5[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)],
|
|
20334
20433
|
onChange: function onChange(val) {
|
|
20335
20434
|
return changeGoodHandle(val);
|
|
20336
20435
|
},
|
|
20337
20436
|
onModeChange: handleModeChange,
|
|
20338
20437
|
isStrict: isStrict,
|
|
20339
|
-
showErpGoodsBtn:
|
|
20438
|
+
showErpGoodsBtn: showErpGoodsBtn,
|
|
20439
|
+
alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
|
|
20340
20440
|
tradeGoods: {
|
|
20341
20441
|
originDataSource: getGoodDetails({
|
|
20342
20442
|
mode: isStrict
|
|
@@ -20346,4 +20446,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20346
20446
|
})));
|
|
20347
20447
|
};
|
|
20348
20448
|
|
|
20349
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };
|
|
20449
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };
|