kts-component-invoice-operate 1.2.21 → 1.2.22
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/Invoice/InvoiceController/fns/addGood.d.ts +1 -1
- package/dist/Invoice/InvoiceController/fns/addGoodDiscount.d.ts +1 -1
- package/dist/Invoice/InvoiceController/fns/delGood.d.ts +1 -1
- package/dist/Invoice/InvoiceController/fns/saveEditGood.d.ts +1 -1
- package/dist/Invoice/InvoiceController/fns/setEditGood.d.ts +1 -1
- package/dist/Invoice/InvoiceController/fns/setGoods.d.ts +1 -1
- package/dist/Invoice/InvoiceController/fns/updateInvoiceNo.d.ts +1 -1
- package/dist/Invoice/tools/coolingFn/index.d.ts +1 -1
- package/dist/Invoice/tools/lazyFn/index.d.ts +1 -1
- package/dist/index.esm.js +652 -297
- package/dist/index.js +652 -297
- package/package.json +1 -1
- package/src/Invoice/ui/EndowCodeDrawer/index.tsx +19 -13
package/dist/index.js
CHANGED
|
@@ -23,14 +23,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
23
23
|
|
|
24
24
|
if (Object.getOwnPropertySymbols) {
|
|
25
25
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
keys.push.apply(keys, symbols);
|
|
26
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
27
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
28
|
+
})), keys.push.apply(keys, symbols);
|
|
34
29
|
}
|
|
35
30
|
|
|
36
31
|
return keys;
|
|
@@ -38,22 +33,360 @@ function ownKeys(object, enumerableOnly) {
|
|
|
38
33
|
|
|
39
34
|
function _objectSpread2(target) {
|
|
40
35
|
for (var i = 1; i < arguments.length; i++) {
|
|
41
|
-
var source = arguments[i]
|
|
36
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
37
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
38
|
+
_defineProperty(target, key, source[key]);
|
|
39
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
40
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
41
|
+
});
|
|
42
|
+
}
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
return target;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _regeneratorRuntime() {
|
|
48
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
49
|
+
|
|
50
|
+
_regeneratorRuntime = function () {
|
|
51
|
+
return exports;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
var exports = {},
|
|
55
|
+
Op = Object.prototype,
|
|
56
|
+
hasOwn = Op.hasOwnProperty,
|
|
57
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
58
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
59
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
60
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
61
|
+
|
|
62
|
+
function define(obj, key, value) {
|
|
63
|
+
return Object.defineProperty(obj, key, {
|
|
64
|
+
value: value,
|
|
65
|
+
enumerable: !0,
|
|
66
|
+
configurable: !0,
|
|
67
|
+
writable: !0
|
|
68
|
+
}), obj[key];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
try {
|
|
72
|
+
define({}, "");
|
|
73
|
+
} catch (err) {
|
|
74
|
+
define = function (obj, key, value) {
|
|
75
|
+
return obj[key] = value;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
80
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
81
|
+
generator = Object.create(protoGenerator.prototype),
|
|
82
|
+
context = new Context(tryLocsList || []);
|
|
83
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
84
|
+
var state = "suspendedStart";
|
|
85
|
+
return function (method, arg) {
|
|
86
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
87
|
+
|
|
88
|
+
if ("completed" === state) {
|
|
89
|
+
if ("throw" === method) throw arg;
|
|
90
|
+
return doneResult();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
for (context.method = method, context.arg = arg;;) {
|
|
94
|
+
var delegate = context.delegate;
|
|
95
|
+
|
|
96
|
+
if (delegate) {
|
|
97
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
98
|
+
|
|
99
|
+
if (delegateResult) {
|
|
100
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
101
|
+
return delegateResult;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
106
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
107
|
+
context.dispatchException(context.arg);
|
|
108
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
109
|
+
state = "executing";
|
|
110
|
+
var record = tryCatch(innerFn, self, context);
|
|
111
|
+
|
|
112
|
+
if ("normal" === record.type) {
|
|
113
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
114
|
+
return {
|
|
115
|
+
value: record.arg,
|
|
116
|
+
done: context.done
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}(innerFn, self, context), generator;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function tryCatch(fn, obj, arg) {
|
|
127
|
+
try {
|
|
128
|
+
return {
|
|
129
|
+
type: "normal",
|
|
130
|
+
arg: fn.call(obj, arg)
|
|
131
|
+
};
|
|
132
|
+
} catch (err) {
|
|
133
|
+
return {
|
|
134
|
+
type: "throw",
|
|
135
|
+
arg: err
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
exports.wrap = wrap;
|
|
141
|
+
var ContinueSentinel = {};
|
|
142
|
+
|
|
143
|
+
function Generator() {}
|
|
144
|
+
|
|
145
|
+
function GeneratorFunction() {}
|
|
146
|
+
|
|
147
|
+
function GeneratorFunctionPrototype() {}
|
|
148
|
+
|
|
149
|
+
var IteratorPrototype = {};
|
|
150
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
151
|
+
return this;
|
|
152
|
+
});
|
|
153
|
+
var getProto = Object.getPrototypeOf,
|
|
154
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
155
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
156
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
157
|
+
|
|
158
|
+
function defineIteratorMethods(prototype) {
|
|
159
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
160
|
+
define(prototype, method, function (arg) {
|
|
161
|
+
return this._invoke(method, arg);
|
|
52
162
|
});
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
167
|
+
function invoke(method, arg, resolve, reject) {
|
|
168
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
169
|
+
|
|
170
|
+
if ("throw" !== record.type) {
|
|
171
|
+
var result = record.arg,
|
|
172
|
+
value = result.value;
|
|
173
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
174
|
+
invoke("next", value, resolve, reject);
|
|
175
|
+
}, function (err) {
|
|
176
|
+
invoke("throw", err, resolve, reject);
|
|
177
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
178
|
+
result.value = unwrapped, resolve(result);
|
|
179
|
+
}, function (error) {
|
|
180
|
+
return invoke("throw", error, resolve, reject);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
reject(record.arg);
|
|
53
185
|
}
|
|
186
|
+
|
|
187
|
+
var previousPromise;
|
|
188
|
+
|
|
189
|
+
this._invoke = function (method, arg) {
|
|
190
|
+
function callInvokeWithMethodAndArg() {
|
|
191
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
192
|
+
invoke(method, arg, resolve, reject);
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
197
|
+
};
|
|
54
198
|
}
|
|
55
199
|
|
|
56
|
-
|
|
200
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
201
|
+
var method = delegate.iterator[context.method];
|
|
202
|
+
|
|
203
|
+
if (undefined === method) {
|
|
204
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
205
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
206
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return ContinueSentinel;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
213
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
214
|
+
var info = record.arg;
|
|
215
|
+
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);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function pushTryEntry(locs) {
|
|
219
|
+
var entry = {
|
|
220
|
+
tryLoc: locs[0]
|
|
221
|
+
};
|
|
222
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function resetTryEntry(entry) {
|
|
226
|
+
var record = entry.completion || {};
|
|
227
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function Context(tryLocsList) {
|
|
231
|
+
this.tryEntries = [{
|
|
232
|
+
tryLoc: "root"
|
|
233
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function values(iterable) {
|
|
237
|
+
if (iterable) {
|
|
238
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
239
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
240
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
241
|
+
|
|
242
|
+
if (!isNaN(iterable.length)) {
|
|
243
|
+
var i = -1,
|
|
244
|
+
next = function next() {
|
|
245
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
246
|
+
|
|
247
|
+
return next.value = undefined, next.done = !0, next;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
return next.next = next;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return {
|
|
255
|
+
next: doneResult
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function doneResult() {
|
|
260
|
+
return {
|
|
261
|
+
value: undefined,
|
|
262
|
+
done: !0
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
267
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
268
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
269
|
+
}, exports.mark = function (genFun) {
|
|
270
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
271
|
+
}, exports.awrap = function (arg) {
|
|
272
|
+
return {
|
|
273
|
+
__await: arg
|
|
274
|
+
};
|
|
275
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
276
|
+
return this;
|
|
277
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
278
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
279
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
280
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
281
|
+
return result.done ? result.value : iter.next();
|
|
282
|
+
});
|
|
283
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
284
|
+
return this;
|
|
285
|
+
}), define(Gp, "toString", function () {
|
|
286
|
+
return "[object Generator]";
|
|
287
|
+
}), exports.keys = function (object) {
|
|
288
|
+
var keys = [];
|
|
289
|
+
|
|
290
|
+
for (var key in object) keys.push(key);
|
|
291
|
+
|
|
292
|
+
return keys.reverse(), function next() {
|
|
293
|
+
for (; keys.length;) {
|
|
294
|
+
var key = keys.pop();
|
|
295
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
return next.done = !0, next;
|
|
299
|
+
};
|
|
300
|
+
}, exports.values = values, Context.prototype = {
|
|
301
|
+
constructor: Context,
|
|
302
|
+
reset: function (skipTempReset) {
|
|
303
|
+
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);
|
|
304
|
+
},
|
|
305
|
+
stop: function () {
|
|
306
|
+
this.done = !0;
|
|
307
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
308
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
309
|
+
return this.rval;
|
|
310
|
+
},
|
|
311
|
+
dispatchException: function (exception) {
|
|
312
|
+
if (this.done) throw exception;
|
|
313
|
+
var context = this;
|
|
314
|
+
|
|
315
|
+
function handle(loc, caught) {
|
|
316
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
320
|
+
var entry = this.tryEntries[i],
|
|
321
|
+
record = entry.completion;
|
|
322
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
323
|
+
|
|
324
|
+
if (entry.tryLoc <= this.prev) {
|
|
325
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
326
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
327
|
+
|
|
328
|
+
if (hasCatch && hasFinally) {
|
|
329
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
330
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
331
|
+
} else if (hasCatch) {
|
|
332
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
333
|
+
} else {
|
|
334
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
335
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
abrupt: function (type, arg) {
|
|
341
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
342
|
+
var entry = this.tryEntries[i];
|
|
343
|
+
|
|
344
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
345
|
+
var finallyEntry = entry;
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
351
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
352
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
353
|
+
},
|
|
354
|
+
complete: function (record, afterLoc) {
|
|
355
|
+
if ("throw" === record.type) throw record.arg;
|
|
356
|
+
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;
|
|
357
|
+
},
|
|
358
|
+
finish: function (finallyLoc) {
|
|
359
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
360
|
+
var entry = this.tryEntries[i];
|
|
361
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
catch: function (tryLoc) {
|
|
365
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
366
|
+
var entry = this.tryEntries[i];
|
|
367
|
+
|
|
368
|
+
if (entry.tryLoc === tryLoc) {
|
|
369
|
+
var record = entry.completion;
|
|
370
|
+
|
|
371
|
+
if ("throw" === record.type) {
|
|
372
|
+
var thrown = record.arg;
|
|
373
|
+
resetTryEntry(entry);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
return thrown;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
throw new Error("illegal catch attempt");
|
|
381
|
+
},
|
|
382
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
383
|
+
return this.delegate = {
|
|
384
|
+
iterator: values(iterable),
|
|
385
|
+
resultName: resultName,
|
|
386
|
+
nextLoc: nextLoc
|
|
387
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
388
|
+
}
|
|
389
|
+
}, exports;
|
|
57
390
|
}
|
|
58
391
|
|
|
59
392
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -111,6 +444,9 @@ function _defineProperties(target, props) {
|
|
|
111
444
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
112
445
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
113
446
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
447
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
448
|
+
writable: false
|
|
449
|
+
});
|
|
114
450
|
return Constructor;
|
|
115
451
|
}
|
|
116
452
|
|
|
@@ -141,22 +477,24 @@ function _inherits(subClass, superClass) {
|
|
|
141
477
|
configurable: true
|
|
142
478
|
}
|
|
143
479
|
});
|
|
480
|
+
Object.defineProperty(subClass, "prototype", {
|
|
481
|
+
writable: false
|
|
482
|
+
});
|
|
144
483
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
145
484
|
}
|
|
146
485
|
|
|
147
486
|
function _getPrototypeOf(o) {
|
|
148
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
487
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
149
488
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
150
489
|
};
|
|
151
490
|
return _getPrototypeOf(o);
|
|
152
491
|
}
|
|
153
492
|
|
|
154
493
|
function _setPrototypeOf(o, p) {
|
|
155
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
494
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
156
495
|
o.__proto__ = p;
|
|
157
496
|
return o;
|
|
158
497
|
};
|
|
159
|
-
|
|
160
498
|
return _setPrototypeOf(o, p);
|
|
161
499
|
}
|
|
162
500
|
|
|
@@ -355,12 +693,12 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
355
693
|
}, {
|
|
356
694
|
key: "validateFields",
|
|
357
695
|
value: function () {
|
|
358
|
-
var _validateFields2 = _asyncToGenerator( /*#__PURE__*/
|
|
696
|
+
var _validateFields2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
359
697
|
var _this3 = this;
|
|
360
698
|
|
|
361
699
|
var _errors, _values, arr, i, key, _yield$_validateField, errors, values, _this$state$goodsList;
|
|
362
700
|
|
|
363
|
-
return
|
|
701
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
364
702
|
while (1) {
|
|
365
703
|
switch (_context.prev = _context.next) {
|
|
366
704
|
case 0:
|
|
@@ -489,7 +827,7 @@ var _validateFields = function _validateFields(form) {
|
|
|
489
827
|
});
|
|
490
828
|
};
|
|
491
829
|
|
|
492
|
-
var ImportGoods = function ImportGoods() {
|
|
830
|
+
var ImportGoods = /*#__PURE__*/_createClass(function ImportGoods() {
|
|
493
831
|
_classCallCheck(this, ImportGoods);
|
|
494
832
|
|
|
495
833
|
this.columns = [{
|
|
@@ -531,8 +869,8 @@ var ImportGoods = function ImportGoods() {
|
|
|
531
869
|
this.topExpand = void 0;
|
|
532
870
|
|
|
533
871
|
this.verifyFn = /*#__PURE__*/function () {
|
|
534
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
535
|
-
return
|
|
872
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(record) {
|
|
873
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
536
874
|
while (1) {
|
|
537
875
|
switch (_context.prev = _context.next) {
|
|
538
876
|
case 0:
|
|
@@ -574,7 +912,7 @@ var ImportGoods = function ImportGoods() {
|
|
|
574
912
|
return _ref.apply(this, arguments);
|
|
575
913
|
};
|
|
576
914
|
}();
|
|
577
|
-
};
|
|
915
|
+
});
|
|
578
916
|
|
|
579
917
|
var LineAttributeType;
|
|
580
918
|
|
|
@@ -586,12 +924,12 @@ var LineAttributeType;
|
|
|
586
924
|
|
|
587
925
|
var LineAttributeType$1 = LineAttributeType;
|
|
588
926
|
|
|
589
|
-
var EndowCode = function EndowCode() {
|
|
927
|
+
var EndowCode = /*#__PURE__*/_createClass(function EndowCode() {
|
|
590
928
|
_classCallCheck(this, EndowCode);
|
|
591
929
|
|
|
592
930
|
this.endowcodeGoodIndex = [];
|
|
593
|
-
this.getTaxCategoryCodeList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
594
|
-
return
|
|
931
|
+
this.getTaxCategoryCodeList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
932
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
595
933
|
while (1) {
|
|
596
934
|
switch (_context.prev = _context.next) {
|
|
597
935
|
case 0:
|
|
@@ -623,7 +961,7 @@ var EndowCode = function EndowCode() {
|
|
|
623
961
|
value: 3
|
|
624
962
|
}];
|
|
625
963
|
this.cache = {};
|
|
626
|
-
};
|
|
964
|
+
});
|
|
627
965
|
|
|
628
966
|
function draft(value) {
|
|
629
967
|
if (!value) return true; // isDiscount
|
|
@@ -644,7 +982,7 @@ function draft(value) {
|
|
|
644
982
|
}
|
|
645
983
|
}
|
|
646
984
|
|
|
647
|
-
var GoodsListState = function GoodsListState() {
|
|
985
|
+
var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
648
986
|
_classCallCheck(this, GoodsListState);
|
|
649
987
|
|
|
650
988
|
this.deduction = 0;
|
|
@@ -665,9 +1003,9 @@ var GoodsListState = function GoodsListState() {
|
|
|
665
1003
|
this.endowCode = new EndowCode();
|
|
666
1004
|
this.importGoods = new ImportGoods();
|
|
667
1005
|
this.isVisibleDrawer = false;
|
|
668
|
-
};
|
|
1006
|
+
});
|
|
669
1007
|
|
|
670
|
-
var BuyerState = function BuyerState() {
|
|
1008
|
+
var BuyerState = /*#__PURE__*/_createClass(function BuyerState() {
|
|
671
1009
|
_classCallCheck(this, BuyerState);
|
|
672
1010
|
|
|
673
1011
|
this.columns = [{
|
|
@@ -693,8 +1031,8 @@ var BuyerState = function BuyerState() {
|
|
|
693
1031
|
}];
|
|
694
1032
|
|
|
695
1033
|
this.onRowClick = /*#__PURE__*/function () {
|
|
696
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
697
|
-
return
|
|
1034
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(record) {
|
|
1035
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
698
1036
|
while (1) {
|
|
699
1037
|
switch (_context.prev = _context.next) {
|
|
700
1038
|
case 0:
|
|
@@ -718,9 +1056,9 @@ var BuyerState = function BuyerState() {
|
|
|
718
1056
|
this.isVisibleDrawer = false;
|
|
719
1057
|
this.topExpand = void 0;
|
|
720
1058
|
this.autoContainer = void 0;
|
|
721
|
-
};
|
|
1059
|
+
});
|
|
722
1060
|
|
|
723
|
-
var InvoiceControllerState = function InvoiceControllerState() {
|
|
1061
|
+
var InvoiceControllerState = /*#__PURE__*/_createClass(function InvoiceControllerState() {
|
|
724
1062
|
_classCallCheck(this, InvoiceControllerState);
|
|
725
1063
|
|
|
726
1064
|
this.model = 'default';
|
|
@@ -728,15 +1066,15 @@ var InvoiceControllerState = function InvoiceControllerState() {
|
|
|
728
1066
|
this.invoiceType = '08';
|
|
729
1067
|
this.buyerState = new BuyerState();
|
|
730
1068
|
this.goodsListState = new GoodsListState();
|
|
731
|
-
};
|
|
1069
|
+
});
|
|
732
1070
|
|
|
733
1071
|
/**
|
|
734
1072
|
* 设置当前的编辑货物
|
|
735
1073
|
*/
|
|
736
1074
|
var setEditGood = /*#__PURE__*/(function () {
|
|
737
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
1075
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(state, newEditGood) {
|
|
738
1076
|
var editGood;
|
|
739
|
-
return
|
|
1077
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
740
1078
|
while (1) {
|
|
741
1079
|
switch (_context.prev = _context.next) {
|
|
742
1080
|
case 0:
|
|
@@ -768,9 +1106,9 @@ var setEditGood = /*#__PURE__*/(function () {
|
|
|
768
1106
|
* 设置单个货物属性
|
|
769
1107
|
*/
|
|
770
1108
|
var setGoods = /*#__PURE__*/(function () {
|
|
771
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
1109
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(state, options) {
|
|
772
1110
|
var goodsList;
|
|
773
|
-
return
|
|
1111
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
774
1112
|
while (1) {
|
|
775
1113
|
switch (_context.prev = _context.next) {
|
|
776
1114
|
case 0:
|
|
@@ -807,9 +1145,9 @@ var setGoods = /*#__PURE__*/(function () {
|
|
|
807
1145
|
*/
|
|
808
1146
|
|
|
809
1147
|
var delGood = /*#__PURE__*/(function () {
|
|
810
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
1148
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(state, $index) {
|
|
811
1149
|
var goods;
|
|
812
|
-
return
|
|
1150
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
813
1151
|
while (1) {
|
|
814
1152
|
switch (_context.prev = _context.next) {
|
|
815
1153
|
case 0:
|
|
@@ -958,10 +1296,10 @@ function countPrice(amount, quantity) {
|
|
|
958
1296
|
*/
|
|
959
1297
|
|
|
960
1298
|
var addGoodDiscount = /*#__PURE__*/(function () {
|
|
961
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
1299
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(state, options) {
|
|
962
1300
|
var _options$indexList, indexList, discount, goodsMap, goodsList, discountGroup, amountSum, _loop, t, _ret;
|
|
963
1301
|
|
|
964
|
-
return
|
|
1302
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
965
1303
|
while (1) {
|
|
966
1304
|
switch (_context.prev = _context.next) {
|
|
967
1305
|
case 0:
|
|
@@ -1080,8 +1418,8 @@ var addGoodDiscount = /*#__PURE__*/(function () {
|
|
|
1080
1418
|
*/
|
|
1081
1419
|
|
|
1082
1420
|
var addGood = /*#__PURE__*/(function () {
|
|
1083
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
1084
|
-
return
|
|
1421
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(state, options) {
|
|
1422
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1085
1423
|
while (1) {
|
|
1086
1424
|
switch (_context.prev = _context.next) {
|
|
1087
1425
|
case 0:
|
|
@@ -1106,9 +1444,9 @@ var addGood = /*#__PURE__*/(function () {
|
|
|
1106
1444
|
* 保存正在编辑的货物
|
|
1107
1445
|
*/
|
|
1108
1446
|
var saveEditGood = /*#__PURE__*/(function () {
|
|
1109
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
1447
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(state) {
|
|
1110
1448
|
var editGood, form;
|
|
1111
|
-
return
|
|
1449
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1112
1450
|
while (1) {
|
|
1113
1451
|
switch (_context.prev = _context.next) {
|
|
1114
1452
|
case 0:
|
|
@@ -1156,8 +1494,8 @@ var saveEditGood = /*#__PURE__*/(function () {
|
|
|
1156
1494
|
var validateFields = function validateFields(form) {
|
|
1157
1495
|
return new Promise(function (resolve) {
|
|
1158
1496
|
form.validateFields( /*#__PURE__*/function () {
|
|
1159
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
1160
|
-
return
|
|
1497
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
|
|
1498
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1161
1499
|
while (1) {
|
|
1162
1500
|
switch (_context2.prev = _context2.next) {
|
|
1163
1501
|
case 0:
|
|
@@ -1210,12 +1548,12 @@ var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
|
1210
1548
|
/** 更新发票单据编号 */
|
|
1211
1549
|
|
|
1212
1550
|
|
|
1213
|
-
return InvoiceController;
|
|
1551
|
+
return _createClass(InvoiceController);
|
|
1214
1552
|
}(InvoiceControllerForm);
|
|
1215
1553
|
|
|
1216
1554
|
var _defs, _path, _path2, _path3;
|
|
1217
1555
|
|
|
1218
|
-
function _extends() { _extends = Object.assign
|
|
1556
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1219
1557
|
|
|
1220
1558
|
function SvgAuto(props) {
|
|
1221
1559
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
@@ -1359,8 +1697,8 @@ var InvoiceHeader = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
1359
1697
|
},
|
|
1360
1698
|
component: SvgAuto,
|
|
1361
1699
|
onClick: function () {
|
|
1362
|
-
var _onClick = _asyncToGenerator( /*#__PURE__*/
|
|
1363
|
-
return
|
|
1700
|
+
var _onClick = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1701
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1364
1702
|
while (1) {
|
|
1365
1703
|
switch (_context.prev = _context.next) {
|
|
1366
1704
|
case 0:
|
|
@@ -1692,8 +2030,8 @@ var AddRowButton = (function () {
|
|
|
1692
2030
|
var disabled = React__default['default'].useMemo(function () {
|
|
1693
2031
|
return typeof goodMax === 'number' ? goodsNum >= goodMax : false;
|
|
1694
2032
|
}, [goodMax, goodsNum]);
|
|
1695
|
-
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1696
|
-
return
|
|
2033
|
+
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
2034
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1697
2035
|
while (1) {
|
|
1698
2036
|
switch (_context2.prev = _context2.next) {
|
|
1699
2037
|
case 0:
|
|
@@ -1707,8 +2045,8 @@ var AddRowButton = (function () {
|
|
|
1707
2045
|
case 4:
|
|
1708
2046
|
_context2.next = 6;
|
|
1709
2047
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
1710
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
1711
|
-
return
|
|
2048
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
2049
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1712
2050
|
while (1) {
|
|
1713
2051
|
switch (_context.prev = _context.next) {
|
|
1714
2052
|
case 0:
|
|
@@ -1775,8 +2113,8 @@ var TaxIncludedSwitch = (function () {
|
|
|
1775
2113
|
}, []);
|
|
1776
2114
|
var onChange = React__default['default'].useCallback(function (e) {
|
|
1777
2115
|
controller.pipeline( /*#__PURE__*/function () {
|
|
1778
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
1779
|
-
return
|
|
2116
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
2117
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1780
2118
|
while (1) {
|
|
1781
2119
|
switch (_context.prev = _context.next) {
|
|
1782
2120
|
case 0:
|
|
@@ -1901,8 +2239,8 @@ var AddDiscountRowButton = GreyReactBox.decorator(ktsComponentsAntdX3.Form.creat
|
|
|
1901
2239
|
|
|
1902
2240
|
var onClose = React__default['default'].useCallback(function () {
|
|
1903
2241
|
controller.pipeline( /*#__PURE__*/function () {
|
|
1904
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
1905
|
-
return
|
|
2242
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
2243
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1906
2244
|
while (1) {
|
|
1907
2245
|
switch (_context.prev = _context.next) {
|
|
1908
2246
|
case 0:
|
|
@@ -1923,8 +2261,8 @@ var AddDiscountRowButton = GreyReactBox.decorator(ktsComponentsAntdX3.Form.creat
|
|
|
1923
2261
|
}, []);
|
|
1924
2262
|
/** 点击了 添加折扣行 按钮 */
|
|
1925
2263
|
|
|
1926
|
-
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1927
|
-
return
|
|
2264
|
+
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
2265
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
1928
2266
|
while (1) {
|
|
1929
2267
|
switch (_context3.prev = _context3.next) {
|
|
1930
2268
|
case 0:
|
|
@@ -1938,9 +2276,9 @@ var AddDiscountRowButton = GreyReactBox.decorator(ktsComponentsAntdX3.Form.creat
|
|
|
1938
2276
|
case 4:
|
|
1939
2277
|
_context3.next = 6;
|
|
1940
2278
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
1941
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
|
2279
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
1942
2280
|
var isOk;
|
|
1943
|
-
return
|
|
2281
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1944
2282
|
while (1) {
|
|
1945
2283
|
switch (_context2.prev = _context2.next) {
|
|
1946
2284
|
case 0:
|
|
@@ -2061,8 +2399,8 @@ var DrawerBody = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(funct
|
|
|
2061
2399
|
|
|
2062
2400
|
var onClose = React__default['default'].useCallback(function () {
|
|
2063
2401
|
controller.pipeline( /*#__PURE__*/function () {
|
|
2064
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
|
2065
|
-
return
|
|
2402
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
2403
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
2066
2404
|
while (1) {
|
|
2067
2405
|
switch (_context4.prev = _context4.next) {
|
|
2068
2406
|
case 0:
|
|
@@ -2090,8 +2428,8 @@ var DrawerBody = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(funct
|
|
|
2090
2428
|
var discount = parseFloat(parseFloat(values.discount).toFixed(4));
|
|
2091
2429
|
var indexList = discountGoodIndex;
|
|
2092
2430
|
controller.pipeline( /*#__PURE__*/function () {
|
|
2093
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
|
2094
|
-
return
|
|
2431
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
|
|
2432
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
2095
2433
|
while (1) {
|
|
2096
2434
|
switch (_context5.prev = _context5.next) {
|
|
2097
2435
|
case 0:
|
|
@@ -2258,8 +2596,8 @@ var EndowCodeButton = (function () {
|
|
|
2258
2596
|
var disabled = controller.useMemo(function (s) {
|
|
2259
2597
|
if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
|
|
2260
2598
|
}, []);
|
|
2261
|
-
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2262
|
-
return
|
|
2599
|
+
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
2600
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2263
2601
|
while (1) {
|
|
2264
2602
|
switch (_context2.prev = _context2.next) {
|
|
2265
2603
|
case 0:
|
|
@@ -2273,8 +2611,8 @@ var EndowCodeButton = (function () {
|
|
|
2273
2611
|
case 4:
|
|
2274
2612
|
_context2.next = 6;
|
|
2275
2613
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
2276
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
2277
|
-
return
|
|
2614
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
2615
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2278
2616
|
while (1) {
|
|
2279
2617
|
switch (_context.prev = _context.next) {
|
|
2280
2618
|
case 0:
|
|
@@ -2353,9 +2691,9 @@ var DelRowButton = (function () {
|
|
|
2353
2691
|
}, []);
|
|
2354
2692
|
var onClick = React__default['default'].useCallback(function () {
|
|
2355
2693
|
controller.pipeline( /*#__PURE__*/function () {
|
|
2356
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
2694
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
2357
2695
|
var goodsList;
|
|
2358
|
-
return
|
|
2696
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2359
2697
|
while (1) {
|
|
2360
2698
|
switch (_context.prev = _context.next) {
|
|
2361
2699
|
case 0:
|
|
@@ -2397,7 +2735,7 @@ var DelRowButton = (function () {
|
|
|
2397
2735
|
|
|
2398
2736
|
var _defs$1, _path$1;
|
|
2399
2737
|
|
|
2400
|
-
function _extends$1() { _extends$1 = Object.assign
|
|
2738
|
+
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
2401
2739
|
|
|
2402
2740
|
function SvgSpot(props) {
|
|
2403
2741
|
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
@@ -2436,8 +2774,8 @@ var useAddDiscount = (function (goods) {
|
|
|
2436
2774
|
var controller = default_1.useInvoiceController();
|
|
2437
2775
|
/** 点击了 添加折扣行 按钮 */
|
|
2438
2776
|
|
|
2439
|
-
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2440
|
-
return
|
|
2777
|
+
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
2778
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2441
2779
|
while (1) {
|
|
2442
2780
|
switch (_context2.prev = _context2.next) {
|
|
2443
2781
|
case 0:
|
|
@@ -2451,9 +2789,9 @@ var useAddDiscount = (function (goods) {
|
|
|
2451
2789
|
case 4:
|
|
2452
2790
|
_context2.next = 6;
|
|
2453
2791
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
2454
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
2792
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
2455
2793
|
var err, key;
|
|
2456
|
-
return
|
|
2794
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2457
2795
|
while (1) {
|
|
2458
2796
|
switch (_context.prev = _context.next) {
|
|
2459
2797
|
case 0:
|
|
@@ -2463,7 +2801,7 @@ var useAddDiscount = (function (goods) {
|
|
|
2463
2801
|
}
|
|
2464
2802
|
|
|
2465
2803
|
err = s.goodsListState.form.getFieldsError();
|
|
2466
|
-
_context.t0 =
|
|
2804
|
+
_context.t0 = _regeneratorRuntime().keys(err);
|
|
2467
2805
|
|
|
2468
2806
|
case 3:
|
|
2469
2807
|
if ((_context.t1 = _context.t0()).done) {
|
|
@@ -2553,7 +2891,7 @@ var useAddDiscount = (function (goods) {
|
|
|
2553
2891
|
});
|
|
2554
2892
|
|
|
2555
2893
|
//! moment.js
|
|
2556
|
-
//! version : 2.29.
|
|
2894
|
+
//! version : 2.29.3
|
|
2557
2895
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
2558
2896
|
//! license : MIT
|
|
2559
2897
|
//! momentjs.com
|
|
@@ -2624,8 +2962,9 @@ function isDate(input) {
|
|
|
2624
2962
|
|
|
2625
2963
|
function map(arr, fn) {
|
|
2626
2964
|
var res = [],
|
|
2627
|
-
i
|
|
2628
|
-
|
|
2965
|
+
i,
|
|
2966
|
+
arrLen = arr.length;
|
|
2967
|
+
for (i = 0; i < arrLen; ++i) {
|
|
2629
2968
|
res.push(fn(arr[i], i));
|
|
2630
2969
|
}
|
|
2631
2970
|
return res;
|
|
@@ -2754,7 +3093,10 @@ var momentProperties = (hooks.momentProperties = []),
|
|
|
2754
3093
|
updateInProgress = false;
|
|
2755
3094
|
|
|
2756
3095
|
function copyConfig(to, from) {
|
|
2757
|
-
var i,
|
|
3096
|
+
var i,
|
|
3097
|
+
prop,
|
|
3098
|
+
val,
|
|
3099
|
+
momentPropertiesLen = momentProperties.length;
|
|
2758
3100
|
|
|
2759
3101
|
if (!isUndefined(from._isAMomentObject)) {
|
|
2760
3102
|
to._isAMomentObject = from._isAMomentObject;
|
|
@@ -2787,8 +3129,8 @@ function copyConfig(to, from) {
|
|
|
2787
3129
|
to._locale = from._locale;
|
|
2788
3130
|
}
|
|
2789
3131
|
|
|
2790
|
-
if (
|
|
2791
|
-
for (i = 0; i <
|
|
3132
|
+
if (momentPropertiesLen > 0) {
|
|
3133
|
+
for (i = 0; i < momentPropertiesLen; i++) {
|
|
2792
3134
|
prop = momentProperties[i];
|
|
2793
3135
|
val = from[prop];
|
|
2794
3136
|
if (!isUndefined(val)) {
|
|
@@ -2843,8 +3185,9 @@ function deprecate(msg, fn) {
|
|
|
2843
3185
|
var args = [],
|
|
2844
3186
|
arg,
|
|
2845
3187
|
i,
|
|
2846
|
-
key
|
|
2847
|
-
|
|
3188
|
+
key,
|
|
3189
|
+
argLen = arguments.length;
|
|
3190
|
+
for (i = 0; i < argLen; i++) {
|
|
2848
3191
|
arg = '';
|
|
2849
3192
|
if (typeof arguments[i] === 'object') {
|
|
2850
3193
|
arg += '\n[' + i + '] ';
|
|
@@ -2994,7 +3337,8 @@ function zeroFill(number, targetLength, forceSign) {
|
|
|
2994
3337
|
);
|
|
2995
3338
|
}
|
|
2996
3339
|
|
|
2997
|
-
var formattingTokens =
|
|
3340
|
+
var formattingTokens =
|
|
3341
|
+
/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
|
|
2998
3342
|
localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
|
|
2999
3343
|
formatFunctions = {},
|
|
3000
3344
|
formatTokenFunctions = {};
|
|
@@ -3298,8 +3642,9 @@ function stringSet(units, value) {
|
|
|
3298
3642
|
if (typeof units === 'object') {
|
|
3299
3643
|
units = normalizeObjectUnits(units);
|
|
3300
3644
|
var prioritized = getPrioritizedUnits(units),
|
|
3301
|
-
i
|
|
3302
|
-
|
|
3645
|
+
i,
|
|
3646
|
+
prioritizedLen = prioritized.length;
|
|
3647
|
+
for (i = 0; i < prioritizedLen; i++) {
|
|
3303
3648
|
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
3304
3649
|
}
|
|
3305
3650
|
} else {
|
|
@@ -3329,7 +3674,8 @@ var match1 = /\d/, // 0 - 9
|
|
|
3329
3674
|
matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
|
|
3330
3675
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
3331
3676
|
// includes scottish gaelic two word and hyphenated months
|
|
3332
|
-
matchWord =
|
|
3677
|
+
matchWord =
|
|
3678
|
+
/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
|
|
3333
3679
|
regexes;
|
|
3334
3680
|
|
|
3335
3681
|
regexes = {};
|
|
@@ -3355,15 +3701,12 @@ function unescapeFormat(s) {
|
|
|
3355
3701
|
return regexEscape(
|
|
3356
3702
|
s
|
|
3357
3703
|
.replace('\\', '')
|
|
3358
|
-
.replace(
|
|
3359
|
-
|
|
3360
|
-
p1,
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
) {
|
|
3365
|
-
return p1 || p2 || p3 || p4;
|
|
3366
|
-
})
|
|
3704
|
+
.replace(
|
|
3705
|
+
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
3706
|
+
function (matched, p1, p2, p3, p4) {
|
|
3707
|
+
return p1 || p2 || p3 || p4;
|
|
3708
|
+
}
|
|
3709
|
+
)
|
|
3367
3710
|
);
|
|
3368
3711
|
}
|
|
3369
3712
|
|
|
@@ -3375,7 +3718,8 @@ var tokens = {};
|
|
|
3375
3718
|
|
|
3376
3719
|
function addParseToken(token, callback) {
|
|
3377
3720
|
var i,
|
|
3378
|
-
func = callback
|
|
3721
|
+
func = callback,
|
|
3722
|
+
tokenLen;
|
|
3379
3723
|
if (typeof token === 'string') {
|
|
3380
3724
|
token = [token];
|
|
3381
3725
|
}
|
|
@@ -3384,7 +3728,8 @@ function addParseToken(token, callback) {
|
|
|
3384
3728
|
array[callback] = toInt(input);
|
|
3385
3729
|
};
|
|
3386
3730
|
}
|
|
3387
|
-
|
|
3731
|
+
tokenLen = token.length;
|
|
3732
|
+
for (i = 0; i < tokenLen; i++) {
|
|
3388
3733
|
tokens[token[i]] = func;
|
|
3389
3734
|
}
|
|
3390
3735
|
}
|
|
@@ -3495,12 +3840,12 @@ addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
|
|
|
3495
3840
|
|
|
3496
3841
|
// LOCALES
|
|
3497
3842
|
|
|
3498
|
-
var defaultLocaleMonths =
|
|
3499
|
-
'
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3843
|
+
var defaultLocaleMonths =
|
|
3844
|
+
'January_February_March_April_May_June_July_August_September_October_November_December'.split(
|
|
3845
|
+
'_'
|
|
3846
|
+
),
|
|
3847
|
+
defaultLocaleMonthsShort =
|
|
3848
|
+
'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
|
3504
3849
|
MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
|
|
3505
3850
|
defaultMonthsShortRegex = matchWord,
|
|
3506
3851
|
defaultMonthsRegex = matchWord;
|
|
@@ -3942,14 +4287,12 @@ addRegexToken('ww', match1to2, match2);
|
|
|
3942
4287
|
addRegexToken('W', match1to2);
|
|
3943
4288
|
addRegexToken('WW', match1to2, match2);
|
|
3944
4289
|
|
|
3945
|
-
addWeekParseToken(
|
|
3946
|
-
|
|
3947
|
-
week,
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
)
|
|
3951
|
-
week[token.substr(0, 1)] = toInt(input);
|
|
3952
|
-
});
|
|
4290
|
+
addWeekParseToken(
|
|
4291
|
+
['w', 'ww', 'W', 'WW'],
|
|
4292
|
+
function (input, week, config, token) {
|
|
4293
|
+
week[token.substr(0, 1)] = toInt(input);
|
|
4294
|
+
}
|
|
4295
|
+
);
|
|
3953
4296
|
|
|
3954
4297
|
// HELPERS
|
|
3955
4298
|
|
|
@@ -4074,9 +4417,8 @@ function shiftWeekdays(ws, n) {
|
|
|
4074
4417
|
return ws.slice(n, 7).concat(ws.slice(0, n));
|
|
4075
4418
|
}
|
|
4076
4419
|
|
|
4077
|
-
var defaultLocaleWeekdays =
|
|
4078
|
-
'_'
|
|
4079
|
-
),
|
|
4420
|
+
var defaultLocaleWeekdays =
|
|
4421
|
+
'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
|
4080
4422
|
defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
|
4081
4423
|
defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
|
4082
4424
|
defaultWeekdaysRegex = matchWord,
|
|
@@ -4624,6 +4966,11 @@ function chooseLocale(names) {
|
|
|
4624
4966
|
return globalLocale;
|
|
4625
4967
|
}
|
|
4626
4968
|
|
|
4969
|
+
function isLocaleNameSane(name) {
|
|
4970
|
+
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
4971
|
+
return name.match('^[^/\\\\]*$') != null;
|
|
4972
|
+
}
|
|
4973
|
+
|
|
4627
4974
|
function loadLocale(name) {
|
|
4628
4975
|
var oldLocale = null,
|
|
4629
4976
|
aliasedRequire;
|
|
@@ -4632,7 +4979,8 @@ function loadLocale(name) {
|
|
|
4632
4979
|
locales[name] === undefined &&
|
|
4633
4980
|
typeof module !== 'undefined' &&
|
|
4634
4981
|
module &&
|
|
4635
|
-
module.exports
|
|
4982
|
+
module.exports &&
|
|
4983
|
+
isLocaleNameSane(name)
|
|
4636
4984
|
) {
|
|
4637
4985
|
try {
|
|
4638
4986
|
oldLocale = globalLocale._abbr;
|
|
@@ -4849,8 +5197,10 @@ function checkOverflow(m) {
|
|
|
4849
5197
|
|
|
4850
5198
|
// iso 8601 regex
|
|
4851
5199
|
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
|
4852
|
-
var extendedIsoRegex =
|
|
4853
|
-
|
|
5200
|
+
var extendedIsoRegex =
|
|
5201
|
+
/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
|
5202
|
+
basicIsoRegex =
|
|
5203
|
+
/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
|
4854
5204
|
tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
|
|
4855
5205
|
isoDates = [
|
|
4856
5206
|
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -4881,7 +5231,8 @@ var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\
|
|
|
4881
5231
|
],
|
|
4882
5232
|
aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
|
|
4883
5233
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
4884
|
-
rfc2822 =
|
|
5234
|
+
rfc2822 =
|
|
5235
|
+
/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
|
|
4885
5236
|
obsOffsets = {
|
|
4886
5237
|
UT: 0,
|
|
4887
5238
|
GMT: 0,
|
|
@@ -4904,12 +5255,13 @@ function configFromISO(config) {
|
|
|
4904
5255
|
allowTime,
|
|
4905
5256
|
dateFormat,
|
|
4906
5257
|
timeFormat,
|
|
4907
|
-
tzFormat
|
|
5258
|
+
tzFormat,
|
|
5259
|
+
isoDatesLen = isoDates.length,
|
|
5260
|
+
isoTimesLen = isoTimes.length;
|
|
4908
5261
|
|
|
4909
5262
|
if (match) {
|
|
4910
5263
|
getParsingFlags(config).iso = true;
|
|
4911
|
-
|
|
4912
|
-
for (i = 0, l = isoDates.length; i < l; i++) {
|
|
5264
|
+
for (i = 0, l = isoDatesLen; i < l; i++) {
|
|
4913
5265
|
if (isoDates[i][1].exec(match[1])) {
|
|
4914
5266
|
dateFormat = isoDates[i][0];
|
|
4915
5267
|
allowTime = isoDates[i][2] !== false;
|
|
@@ -4921,7 +5273,7 @@ function configFromISO(config) {
|
|
|
4921
5273
|
return;
|
|
4922
5274
|
}
|
|
4923
5275
|
if (match[3]) {
|
|
4924
|
-
for (i = 0, l =
|
|
5276
|
+
for (i = 0, l = isoTimesLen; i < l; i++) {
|
|
4925
5277
|
if (isoTimes[i][1].exec(match[3])) {
|
|
4926
5278
|
// match[2] should be 'T' or space
|
|
4927
5279
|
timeFormat = (match[2] || ' ') + isoTimes[i][0];
|
|
@@ -5301,12 +5653,13 @@ function configFromStringAndFormat(config) {
|
|
|
5301
5653
|
skipped,
|
|
5302
5654
|
stringLength = string.length,
|
|
5303
5655
|
totalParsedInputLength = 0,
|
|
5304
|
-
era
|
|
5656
|
+
era,
|
|
5657
|
+
tokenLen;
|
|
5305
5658
|
|
|
5306
5659
|
tokens =
|
|
5307
5660
|
expandFormat(config._f, config._locale).match(formattingTokens) || [];
|
|
5308
|
-
|
|
5309
|
-
for (i = 0; i <
|
|
5661
|
+
tokenLen = tokens.length;
|
|
5662
|
+
for (i = 0; i < tokenLen; i++) {
|
|
5310
5663
|
token = tokens[i];
|
|
5311
5664
|
parsedInput = (string.match(getParseRegexForToken(token, config)) ||
|
|
5312
5665
|
[])[0];
|
|
@@ -5401,15 +5754,16 @@ function configFromStringAndArray(config) {
|
|
|
5401
5754
|
i,
|
|
5402
5755
|
currentScore,
|
|
5403
5756
|
validFormatFound,
|
|
5404
|
-
bestFormatIsValid = false
|
|
5757
|
+
bestFormatIsValid = false,
|
|
5758
|
+
configfLen = config._f.length;
|
|
5405
5759
|
|
|
5406
|
-
if (
|
|
5760
|
+
if (configfLen === 0) {
|
|
5407
5761
|
getParsingFlags(config).invalidFormat = true;
|
|
5408
5762
|
config._d = new Date(NaN);
|
|
5409
5763
|
return;
|
|
5410
5764
|
}
|
|
5411
5765
|
|
|
5412
|
-
for (i = 0; i <
|
|
5766
|
+
for (i = 0; i < configfLen; i++) {
|
|
5413
5767
|
currentScore = 0;
|
|
5414
5768
|
validFormatFound = false;
|
|
5415
5769
|
tempConfig = copyConfig({}, config);
|
|
@@ -5650,7 +6004,8 @@ var ordering = [
|
|
|
5650
6004
|
function isDurationValid(m) {
|
|
5651
6005
|
var key,
|
|
5652
6006
|
unitHasDecimal = false,
|
|
5653
|
-
i
|
|
6007
|
+
i,
|
|
6008
|
+
orderLen = ordering.length;
|
|
5654
6009
|
for (key in m) {
|
|
5655
6010
|
if (
|
|
5656
6011
|
hasOwnProp(m, key) &&
|
|
@@ -5663,7 +6018,7 @@ function isDurationValid(m) {
|
|
|
5663
6018
|
}
|
|
5664
6019
|
}
|
|
5665
6020
|
|
|
5666
|
-
for (i = 0; i <
|
|
6021
|
+
for (i = 0; i < orderLen; ++i) {
|
|
5667
6022
|
if (m[ordering[i]]) {
|
|
5668
6023
|
if (unitHasDecimal) {
|
|
5669
6024
|
return false; // only allow non-integers for smallest unit
|
|
@@ -5988,7 +6343,8 @@ var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
|
5988
6343
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
5989
6344
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
5990
6345
|
// and further modified to allow for strings containing both week and day
|
|
5991
|
-
isoRegex =
|
|
6346
|
+
isoRegex =
|
|
6347
|
+
/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
5992
6348
|
|
|
5993
6349
|
function createDuration(input, key) {
|
|
5994
6350
|
var duration = input,
|
|
@@ -6209,9 +6565,10 @@ function isMomentInputObject(input) {
|
|
|
6209
6565
|
'ms',
|
|
6210
6566
|
],
|
|
6211
6567
|
i,
|
|
6212
|
-
property
|
|
6568
|
+
property,
|
|
6569
|
+
propertyLen = properties.length;
|
|
6213
6570
|
|
|
6214
|
-
for (i = 0; i <
|
|
6571
|
+
for (i = 0; i < propertyLen; i += 1) {
|
|
6215
6572
|
property = properties[i];
|
|
6216
6573
|
propertyTest = propertyTest || hasOwnProp(input, property);
|
|
6217
6574
|
}
|
|
@@ -6834,19 +7191,17 @@ addRegexToken('NNN', matchEraAbbr);
|
|
|
6834
7191
|
addRegexToken('NNNN', matchEraName);
|
|
6835
7192
|
addRegexToken('NNNNN', matchEraNarrow);
|
|
6836
7193
|
|
|
6837
|
-
addParseToken(
|
|
6838
|
-
|
|
6839
|
-
array,
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
)
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
} else {
|
|
6847
|
-
getParsingFlags(config).invalidEra = input;
|
|
7194
|
+
addParseToken(
|
|
7195
|
+
['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
|
|
7196
|
+
function (input, array, config, token) {
|
|
7197
|
+
var era = config._locale.erasParse(input, token, config._strict);
|
|
7198
|
+
if (era) {
|
|
7199
|
+
getParsingFlags(config).era = era;
|
|
7200
|
+
} else {
|
|
7201
|
+
getParsingFlags(config).invalidEra = input;
|
|
7202
|
+
}
|
|
6848
7203
|
}
|
|
6849
|
-
|
|
7204
|
+
);
|
|
6850
7205
|
|
|
6851
7206
|
addRegexToken('y', matchUnsigned);
|
|
6852
7207
|
addRegexToken('yy', matchUnsigned);
|
|
@@ -7138,14 +7493,12 @@ addRegexToken('gggg', match1to4, match4);
|
|
|
7138
7493
|
addRegexToken('GGGGG', match1to6, match6);
|
|
7139
7494
|
addRegexToken('ggggg', match1to6, match6);
|
|
7140
7495
|
|
|
7141
|
-
addWeekParseToken(
|
|
7142
|
-
|
|
7143
|
-
week,
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
)
|
|
7147
|
-
week[token.substr(0, 2)] = toInt(input);
|
|
7148
|
-
});
|
|
7496
|
+
addWeekParseToken(
|
|
7497
|
+
['gggg', 'ggggg', 'GGGG', 'GGGGG'],
|
|
7498
|
+
function (input, week, config, token) {
|
|
7499
|
+
week[token.substr(0, 2)] = toInt(input);
|
|
7500
|
+
}
|
|
7501
|
+
);
|
|
7149
7502
|
|
|
7150
7503
|
addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
|
|
7151
7504
|
week[token] = hooks.parseTwoDigitYear(input);
|
|
@@ -8168,7 +8521,7 @@ addParseToken('x', function (input, array, config) {
|
|
|
8168
8521
|
|
|
8169
8522
|
//! moment.js
|
|
8170
8523
|
|
|
8171
|
-
hooks.version = '2.29.
|
|
8524
|
+
hooks.version = '2.29.3';
|
|
8172
8525
|
|
|
8173
8526
|
setHookCallback(createLocal);
|
|
8174
8527
|
|
|
@@ -8257,10 +8610,10 @@ var promptErr = function promptErr(err) {
|
|
|
8257
8610
|
|
|
8258
8611
|
var onChangeQuantity = lazyFn$1(function (controller, form, record) {
|
|
8259
8612
|
form.validateFields( /*#__PURE__*/function () {
|
|
8260
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
8613
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(err, values) {
|
|
8261
8614
|
var quantity, priceIncludeTax, lineAmountIncludeTax, _lineAmountIncludeTax, _priceIncludeTax, priceExcludeTax, lineAmountExcludeTax, _lineAmountExcludeTax, _priceExcludeTax;
|
|
8262
8615
|
|
|
8263
|
-
return
|
|
8616
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8264
8617
|
while (1) {
|
|
8265
8618
|
switch (_context.prev = _context.next) {
|
|
8266
8619
|
case 0:
|
|
@@ -8406,10 +8759,10 @@ var onChangeQuantity = lazyFn$1(function (controller, form, record) {
|
|
|
8406
8759
|
|
|
8407
8760
|
var onChangePriceIncludeTax = lazyFn$1(function (controller, form, record) {
|
|
8408
8761
|
form.validateFields( /*#__PURE__*/function () {
|
|
8409
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
8762
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
|
|
8410
8763
|
var priceIncludeTax, quantity, lineAmountIncludeTax, _lineAmountIncludeTax2, _quantity;
|
|
8411
8764
|
|
|
8412
|
-
return
|
|
8765
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
8413
8766
|
while (1) {
|
|
8414
8767
|
switch (_context2.prev = _context2.next) {
|
|
8415
8768
|
case 0:
|
|
@@ -8505,10 +8858,10 @@ var onChangePriceIncludeTax = lazyFn$1(function (controller, form, record) {
|
|
|
8505
8858
|
|
|
8506
8859
|
var onChangePriceExcludeTax = lazyFn$1(function (controller, form, record) {
|
|
8507
8860
|
form.validateFields( /*#__PURE__*/function () {
|
|
8508
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
|
8861
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err, values) {
|
|
8509
8862
|
var priceExcludeTax, quantity, lineAmountExcludeTax, _lineAmountExcludeTax2, _quantity2;
|
|
8510
8863
|
|
|
8511
|
-
return
|
|
8864
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8512
8865
|
while (1) {
|
|
8513
8866
|
switch (_context3.prev = _context3.next) {
|
|
8514
8867
|
case 0:
|
|
@@ -8604,10 +8957,10 @@ var onChangePriceExcludeTax = lazyFn$1(function (controller, form, record) {
|
|
|
8604
8957
|
|
|
8605
8958
|
var onChangeLineAmountIncludeTax = lazyFn$1(function (controller, form, record) {
|
|
8606
8959
|
form.validateFields( /*#__PURE__*/function () {
|
|
8607
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
|
8960
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(err, values) {
|
|
8608
8961
|
var lineAmountIncludeTax, quantity, priceIncludeTax, _priceIncludeTax2, _quantity3;
|
|
8609
8962
|
|
|
8610
|
-
return
|
|
8963
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
8611
8964
|
while (1) {
|
|
8612
8965
|
switch (_context4.prev = _context4.next) {
|
|
8613
8966
|
case 0:
|
|
@@ -8696,10 +9049,10 @@ var onChangeLineAmountIncludeTax = lazyFn$1(function (controller, form, record)
|
|
|
8696
9049
|
|
|
8697
9050
|
var onChangeLineAmountExcludeTax = lazyFn$1(function (controller, form, record) {
|
|
8698
9051
|
form.validateFields( /*#__PURE__*/function () {
|
|
8699
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
|
9052
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(err, values) {
|
|
8700
9053
|
var lineAmountExcludeTax, quantity, priceExcludeTax, _priceExcludeTax2, _quantity4;
|
|
8701
9054
|
|
|
8702
|
-
return
|
|
9055
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
8703
9056
|
while (1) {
|
|
8704
9057
|
switch (_context5.prev = _context5.next) {
|
|
8705
9058
|
case 0:
|
|
@@ -8788,9 +9141,9 @@ var onChangeLineAmountExcludeTax = lazyFn$1(function (controller, form, record)
|
|
|
8788
9141
|
|
|
8789
9142
|
var onChangeTaxRate = lazyFn$1(function (controller, form, record) {
|
|
8790
9143
|
form.validateFields( /*#__PURE__*/function () {
|
|
8791
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
|
9144
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(err, values) {
|
|
8792
9145
|
var taxRate;
|
|
8793
|
-
return
|
|
9146
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
8794
9147
|
while (1) {
|
|
8795
9148
|
switch (_context6.prev = _context6.next) {
|
|
8796
9149
|
case 0:
|
|
@@ -8879,9 +9232,9 @@ function dutyFree(controller, taxRate, form, record) {
|
|
|
8879
9232
|
|
|
8880
9233
|
var updateUnitPriceExcludingTax = function updateUnitPriceExcludingTax(controller, form, record) {
|
|
8881
9234
|
form.validateFields( /*#__PURE__*/function () {
|
|
8882
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
|
9235
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(err, values) {
|
|
8883
9236
|
var taxAmount, lineAmountExcludeTax, priceExcludeTax, deduction;
|
|
8884
|
-
return
|
|
9237
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
8885
9238
|
while (1) {
|
|
8886
9239
|
switch (_context7.prev = _context7.next) {
|
|
8887
9240
|
case 0:
|
|
@@ -8945,9 +9298,9 @@ var updateUnitPriceExcludingTax = function updateUnitPriceExcludingTax(controlle
|
|
|
8945
9298
|
|
|
8946
9299
|
var updateUnitPriceTax = function updateUnitPriceTax(controller, form, record) {
|
|
8947
9300
|
form.validateFields( /*#__PURE__*/function () {
|
|
8948
|
-
var _ref8 = _asyncToGenerator( /*#__PURE__*/
|
|
9301
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(err, values) {
|
|
8949
9302
|
var lineAmountExcludeTax, lineAmountIncludeTax, taxAmount, priceExcludeTax, priceIncludeTax;
|
|
8950
|
-
return
|
|
9303
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
8951
9304
|
while (1) {
|
|
8952
9305
|
switch (_context8.prev = _context8.next) {
|
|
8953
9306
|
case 0:
|
|
@@ -9020,9 +9373,9 @@ var updateUnitPriceTax = function updateUnitPriceTax(controller, form, record) {
|
|
|
9020
9373
|
|
|
9021
9374
|
var onSaveEditGood = lazyFn$1(function (controller, form, record, id) {
|
|
9022
9375
|
form.validateFields( /*#__PURE__*/function () {
|
|
9023
|
-
var _ref9 = _asyncToGenerator( /*#__PURE__*/
|
|
9376
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(err, values) {
|
|
9024
9377
|
var v;
|
|
9025
|
-
return
|
|
9378
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
9026
9379
|
while (1) {
|
|
9027
9380
|
switch (_context9.prev = _context9.next) {
|
|
9028
9381
|
case 0:
|
|
@@ -9057,8 +9410,8 @@ var onSaveEditGood = lazyFn$1(function (controller, form, record, id) {
|
|
|
9057
9410
|
/** 单调赋码 */
|
|
9058
9411
|
|
|
9059
9412
|
var endowCode = /*#__PURE__*/function () {
|
|
9060
|
-
var _ref10 = _asyncToGenerator( /*#__PURE__*/
|
|
9061
|
-
return
|
|
9413
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(controller, goods) {
|
|
9414
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
9062
9415
|
while (1) {
|
|
9063
9416
|
switch (_context11.prev = _context11.next) {
|
|
9064
9417
|
case 0:
|
|
@@ -9072,9 +9425,9 @@ var endowCode = /*#__PURE__*/function () {
|
|
|
9072
9425
|
case 4:
|
|
9073
9426
|
_context11.next = 6;
|
|
9074
9427
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
9075
|
-
var _ref11 = _asyncToGenerator( /*#__PURE__*/
|
|
9428
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(s) {
|
|
9076
9429
|
var err, key, g, i;
|
|
9077
|
-
return
|
|
9430
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
9078
9431
|
while (1) {
|
|
9079
9432
|
switch (_context10.prev = _context10.next) {
|
|
9080
9433
|
case 0:
|
|
@@ -9084,7 +9437,7 @@ var endowCode = /*#__PURE__*/function () {
|
|
|
9084
9437
|
}
|
|
9085
9438
|
|
|
9086
9439
|
err = s.goodsListState.form.getFieldsError();
|
|
9087
|
-
_context10.t0 =
|
|
9440
|
+
_context10.t0 = _regeneratorRuntime().keys(err);
|
|
9088
9441
|
|
|
9089
9442
|
case 3:
|
|
9090
9443
|
if ((_context10.t1 = _context10.t0()).done) {
|
|
@@ -9153,8 +9506,8 @@ var endowCode = /*#__PURE__*/function () {
|
|
|
9153
9506
|
var Text$3 = ktsComponentsAntdX3.Typography.Text;
|
|
9154
9507
|
var useEndowCode = (function (goods) {
|
|
9155
9508
|
var controller = default_1.useInvoiceController();
|
|
9156
|
-
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
9157
|
-
return
|
|
9509
|
+
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9510
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9158
9511
|
while (1) {
|
|
9159
9512
|
switch (_context.prev = _context.next) {
|
|
9160
9513
|
case 0:
|
|
@@ -9310,8 +9663,8 @@ var useColumns = (function (form) {
|
|
|
9310
9663
|
}), controller.getGoodsList && /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
9311
9664
|
onClick: function onClick() {
|
|
9312
9665
|
controller.pipeline( /*#__PURE__*/function () {
|
|
9313
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
9314
|
-
return
|
|
9666
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
9667
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9315
9668
|
while (1) {
|
|
9316
9669
|
switch (_context.prev = _context.next) {
|
|
9317
9670
|
case 0:
|
|
@@ -9404,9 +9757,9 @@ var useColumns = (function (form) {
|
|
|
9404
9757
|
message: '数量必须为数字'
|
|
9405
9758
|
}, {
|
|
9406
9759
|
validator: function () {
|
|
9407
|
-
var _validator = _asyncToGenerator( /*#__PURE__*/
|
|
9760
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_, value, callback) {
|
|
9408
9761
|
var isvalue, isPrice;
|
|
9409
|
-
return
|
|
9762
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
9410
9763
|
while (1) {
|
|
9411
9764
|
switch (_context2.prev = _context2.next) {
|
|
9412
9765
|
case 0:
|
|
@@ -9476,9 +9829,9 @@ var useColumns = (function (form) {
|
|
|
9476
9829
|
message: '单价必须为数字'
|
|
9477
9830
|
}, {
|
|
9478
9831
|
validator: function () {
|
|
9479
|
-
var _validator2 = _asyncToGenerator( /*#__PURE__*/
|
|
9832
|
+
var _validator2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_, value, callback) {
|
|
9480
9833
|
var isQuantity, isvalue;
|
|
9481
|
-
return
|
|
9834
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
9482
9835
|
while (1) {
|
|
9483
9836
|
switch (_context3.prev = _context3.next) {
|
|
9484
9837
|
case 0:
|
|
@@ -9548,9 +9901,9 @@ var useColumns = (function (form) {
|
|
|
9548
9901
|
message: '单价必须为数字'
|
|
9549
9902
|
}, {
|
|
9550
9903
|
validator: function () {
|
|
9551
|
-
var _validator3 = _asyncToGenerator( /*#__PURE__*/
|
|
9904
|
+
var _validator3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_, value, callback) {
|
|
9552
9905
|
var isQuantity, isvalue;
|
|
9553
|
-
return
|
|
9906
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
9554
9907
|
while (1) {
|
|
9555
9908
|
switch (_context4.prev = _context4.next) {
|
|
9556
9909
|
case 0:
|
|
@@ -9625,8 +9978,8 @@ var useColumns = (function (form) {
|
|
|
9625
9978
|
message: '金额必须为数字'
|
|
9626
9979
|
}, {
|
|
9627
9980
|
validator: function () {
|
|
9628
|
-
var _validator4 = _asyncToGenerator( /*#__PURE__*/
|
|
9629
|
-
return
|
|
9981
|
+
var _validator4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_, value, callback) {
|
|
9982
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
9630
9983
|
while (1) {
|
|
9631
9984
|
switch (_context5.prev = _context5.next) {
|
|
9632
9985
|
case 0:
|
|
@@ -9650,8 +10003,8 @@ var useColumns = (function (form) {
|
|
|
9650
10003
|
}()
|
|
9651
10004
|
}, {
|
|
9652
10005
|
validator: function () {
|
|
9653
|
-
var _validator5 = _asyncToGenerator( /*#__PURE__*/
|
|
9654
|
-
return
|
|
10006
|
+
var _validator5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(_, value, callback) {
|
|
10007
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
9655
10008
|
while (1) {
|
|
9656
10009
|
switch (_context6.prev = _context6.next) {
|
|
9657
10010
|
case 0:
|
|
@@ -9712,8 +10065,8 @@ var useColumns = (function (form) {
|
|
|
9712
10065
|
message: '金额必须为数字'
|
|
9713
10066
|
}, {
|
|
9714
10067
|
validator: function () {
|
|
9715
|
-
var _validator6 = _asyncToGenerator( /*#__PURE__*/
|
|
9716
|
-
return
|
|
10068
|
+
var _validator6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(_, value, callback) {
|
|
10069
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
9717
10070
|
while (1) {
|
|
9718
10071
|
switch (_context7.prev = _context7.next) {
|
|
9719
10072
|
case 0:
|
|
@@ -9923,9 +10276,9 @@ var useOnRow = (function () {
|
|
|
9923
10276
|
return s.model;
|
|
9924
10277
|
}, []);
|
|
9925
10278
|
var onClick = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
9926
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
10279
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(record) {
|
|
9927
10280
|
var editGood;
|
|
9928
|
-
return
|
|
10281
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
9929
10282
|
while (1) {
|
|
9930
10283
|
switch (_context2.prev = _context2.next) {
|
|
9931
10284
|
case 0:
|
|
@@ -9970,8 +10323,8 @@ var useOnRow = (function () {
|
|
|
9970
10323
|
case 12:
|
|
9971
10324
|
_context2.next = 14;
|
|
9972
10325
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
9973
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
9974
|
-
return
|
|
10326
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
10327
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9975
10328
|
while (1) {
|
|
9976
10329
|
switch (_context.prev = _context.next) {
|
|
9977
10330
|
case 0:
|
|
@@ -10032,8 +10385,8 @@ function useDeduction(controller) {
|
|
|
10032
10385
|
// 更新 扣除额
|
|
10033
10386
|
React__default['default'].useEffect(function () {
|
|
10034
10387
|
controller.pipeline( /*#__PURE__*/function () {
|
|
10035
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
10036
|
-
return
|
|
10388
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
10389
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10037
10390
|
while (1) {
|
|
10038
10391
|
switch (_context.prev = _context.next) {
|
|
10039
10392
|
case 0:
|
|
@@ -10055,8 +10408,8 @@ function useDeduction(controller) {
|
|
|
10055
10408
|
|
|
10056
10409
|
React__default['default'].useEffect(function () {
|
|
10057
10410
|
controller.pipeline( /*#__PURE__*/function () {
|
|
10058
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
10059
|
-
return
|
|
10411
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
10412
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10060
10413
|
while (1) {
|
|
10061
10414
|
switch (_context2.prev = _context2.next) {
|
|
10062
10415
|
case 0:
|
|
@@ -10122,8 +10475,8 @@ var useRowSelection = (function () {
|
|
|
10122
10475
|
var onClickSelectAll = React__default['default'].useCallback(function () {
|
|
10123
10476
|
if (isAll) {
|
|
10124
10477
|
controller.pipeline( /*#__PURE__*/function () {
|
|
10125
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
10126
|
-
return
|
|
10478
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
10479
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10127
10480
|
while (1) {
|
|
10128
10481
|
switch (_context.prev = _context.next) {
|
|
10129
10482
|
case 0:
|
|
@@ -10143,8 +10496,8 @@ var useRowSelection = (function () {
|
|
|
10143
10496
|
}())();
|
|
10144
10497
|
} else {
|
|
10145
10498
|
controller.pipeline( /*#__PURE__*/function () {
|
|
10146
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
10147
|
-
return
|
|
10499
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
10500
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10148
10501
|
while (1) {
|
|
10149
10502
|
switch (_context2.prev = _context2.next) {
|
|
10150
10503
|
case 0:
|
|
@@ -10167,8 +10520,8 @@ var useRowSelection = (function () {
|
|
|
10167
10520
|
}
|
|
10168
10521
|
}, [controller, isAll]);
|
|
10169
10522
|
var onSelect = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
10170
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
|
10171
|
-
return
|
|
10523
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(record, selected) {
|
|
10524
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
10172
10525
|
while (1) {
|
|
10173
10526
|
switch (_context5.prev = _context5.next) {
|
|
10174
10527
|
case 0:
|
|
@@ -10179,8 +10532,8 @@ var useRowSelection = (function () {
|
|
|
10179
10532
|
|
|
10180
10533
|
_context5.next = 3;
|
|
10181
10534
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
10182
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
|
10183
|
-
return
|
|
10535
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
10536
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
10184
10537
|
while (1) {
|
|
10185
10538
|
switch (_context3.prev = _context3.next) {
|
|
10186
10539
|
case 0:
|
|
@@ -10207,8 +10560,8 @@ var useRowSelection = (function () {
|
|
|
10207
10560
|
case 5:
|
|
10208
10561
|
_context5.next = 7;
|
|
10209
10562
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
10210
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
|
10211
|
-
return
|
|
10563
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
10564
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
10212
10565
|
while (1) {
|
|
10213
10566
|
switch (_context4.prev = _context4.next) {
|
|
10214
10567
|
case 0:
|
|
@@ -10256,8 +10609,8 @@ var useRowSelection = (function () {
|
|
|
10256
10609
|
/** 选择了商品后 调整 折扣行 和 被折扣行 */
|
|
10257
10610
|
|
|
10258
10611
|
var sortOut = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
10259
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
|
10260
|
-
return
|
|
10612
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(selected) {
|
|
10613
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
10261
10614
|
while (1) {
|
|
10262
10615
|
switch (_context7.prev = _context7.next) {
|
|
10263
10616
|
case 0:
|
|
@@ -10267,8 +10620,8 @@ var useRowSelection = (function () {
|
|
|
10267
10620
|
case 2:
|
|
10268
10621
|
_context7.next = 4;
|
|
10269
10622
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
10270
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
|
10271
|
-
return
|
|
10623
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(s) {
|
|
10624
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
10272
10625
|
while (1) {
|
|
10273
10626
|
switch (_context6.prev = _context6.next) {
|
|
10274
10627
|
case 0:
|
|
@@ -10276,7 +10629,6 @@ var useRowSelection = (function () {
|
|
|
10276
10629
|
var goods = s.goodsListState.goodsMap.get($index);
|
|
10277
10630
|
if (!goods || goods.lineAttribute === LineAttributeType$1.正常) return; // 数组位置
|
|
10278
10631
|
|
|
10279
|
-
// 数组位置
|
|
10280
10632
|
var t = s.goodsListState.goodsList.indexOf(goods);
|
|
10281
10633
|
goods.lineAttribute === LineAttributeType$1.折扣行 ? t-- : t++;
|
|
10282
10634
|
var i = s.goodsListState.goodsList[t].$index;
|
|
@@ -10368,8 +10720,8 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
10368
10720
|
|
|
10369
10721
|
React__default['default'].useEffect(function () {
|
|
10370
10722
|
controller.run( /*#__PURE__*/function () {
|
|
10371
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
10372
|
-
return
|
|
10723
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
10724
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10373
10725
|
while (1) {
|
|
10374
10726
|
switch (_context.prev = _context.next) {
|
|
10375
10727
|
case 0:
|
|
@@ -10392,8 +10744,8 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
10392
10744
|
|
|
10393
10745
|
React__default['default'].useEffect(function () {
|
|
10394
10746
|
controller.pipeline( /*#__PURE__*/function () {
|
|
10395
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
10396
|
-
return
|
|
10747
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, form) {
|
|
10748
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10397
10749
|
while (1) {
|
|
10398
10750
|
switch (_context2.prev = _context2.next) {
|
|
10399
10751
|
case 0:
|
|
@@ -10417,8 +10769,8 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
10417
10769
|
|
|
10418
10770
|
React__default['default'].useEffect(function () {
|
|
10419
10771
|
controller.pipeline( /*#__PURE__*/function () {
|
|
10420
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
|
10421
|
-
return
|
|
10772
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
10773
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
10422
10774
|
while (1) {
|
|
10423
10775
|
switch (_context3.prev = _context3.next) {
|
|
10424
10776
|
case 0:
|
|
@@ -10444,8 +10796,8 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
10444
10796
|
|
|
10445
10797
|
React__default['default'].useEffect(function () {
|
|
10446
10798
|
controller.pipeline( /*#__PURE__*/function () {
|
|
10447
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
|
10448
|
-
return
|
|
10799
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
10800
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
10449
10801
|
while (1) {
|
|
10450
10802
|
switch (_context4.prev = _context4.next) {
|
|
10451
10803
|
case 0:
|
|
@@ -10468,8 +10820,8 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
10468
10820
|
|
|
10469
10821
|
React__default['default'].useEffect(function () {
|
|
10470
10822
|
controller.pipeline( /*#__PURE__*/function () {
|
|
10471
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
|
10472
|
-
return
|
|
10823
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
|
|
10824
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
10473
10825
|
while (1) {
|
|
10474
10826
|
switch (_context5.prev = _context5.next) {
|
|
10475
10827
|
case 0:
|
|
@@ -10492,8 +10844,8 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
10492
10844
|
|
|
10493
10845
|
React__default['default'].useEffect(function () {
|
|
10494
10846
|
controller.pipeline( /*#__PURE__*/function () {
|
|
10495
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
|
10496
|
-
return
|
|
10847
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(s) {
|
|
10848
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
10497
10849
|
while (1) {
|
|
10498
10850
|
switch (_context6.prev = _context6.next) {
|
|
10499
10851
|
case 0:
|
|
@@ -10583,7 +10935,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
10583
10935
|
return _this;
|
|
10584
10936
|
}
|
|
10585
10937
|
|
|
10586
|
-
return Buyer;
|
|
10938
|
+
return _createClass(Buyer);
|
|
10587
10939
|
}(React__default['default'].Component);
|
|
10588
10940
|
var Main$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
10589
10941
|
var form = props.form;
|
|
@@ -10753,8 +11105,8 @@ var ImportBuyerButton = (function () {
|
|
|
10753
11105
|
var controller = default_1.useInvoiceController();
|
|
10754
11106
|
var onClick = React__default['default'].useCallback(function () {
|
|
10755
11107
|
controller.pipeline( /*#__PURE__*/function () {
|
|
10756
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
10757
|
-
return
|
|
11108
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
11109
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10758
11110
|
while (1) {
|
|
10759
11111
|
switch (_context.prev = _context.next) {
|
|
10760
11112
|
case 0:
|
|
@@ -10880,10 +11232,10 @@ var BuyerNameInput = (function (props) {
|
|
|
10880
11232
|
/** 点击了选择项 */
|
|
10881
11233
|
|
|
10882
11234
|
var onClickItem = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
10883
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
11235
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
10884
11236
|
var _controller$formList$;
|
|
10885
11237
|
|
|
10886
|
-
return
|
|
11238
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10887
11239
|
while (1) {
|
|
10888
11240
|
switch (_context.prev = _context.next) {
|
|
10889
11241
|
case 0:
|
|
@@ -10961,8 +11313,8 @@ function useDataSource() {
|
|
|
10961
11313
|
return s.buyerState.autoContainer;
|
|
10962
11314
|
}, []);
|
|
10963
11315
|
var onBuyNameChange = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
10964
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
10965
|
-
return
|
|
11316
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
11317
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10966
11318
|
while (1) {
|
|
10967
11319
|
switch (_context2.prev = _context2.next) {
|
|
10968
11320
|
case 0:
|
|
@@ -11051,7 +11403,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
11051
11403
|
return _this;
|
|
11052
11404
|
}
|
|
11053
11405
|
|
|
11054
|
-
return Buyer;
|
|
11406
|
+
return _createClass(Buyer);
|
|
11055
11407
|
}(React__default['default'].Component);
|
|
11056
11408
|
var Main$2 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
11057
11409
|
var form = props.form;
|
|
@@ -11186,8 +11538,8 @@ var ImportBuyerDrawer = (function () {
|
|
|
11186
11538
|
|
|
11187
11539
|
var onClose = React__default['default'].useCallback(function () {
|
|
11188
11540
|
controller.pipeline( /*#__PURE__*/function () {
|
|
11189
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
11190
|
-
return
|
|
11541
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
11542
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11191
11543
|
while (1) {
|
|
11192
11544
|
switch (_context.prev = _context.next) {
|
|
11193
11545
|
case 0:
|
|
@@ -11249,10 +11601,10 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
11249
11601
|
onRow: function onRow(record) {
|
|
11250
11602
|
return {
|
|
11251
11603
|
onClick: function () {
|
|
11252
|
-
var _onClick = _asyncToGenerator( /*#__PURE__*/
|
|
11604
|
+
var _onClick = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
11253
11605
|
var re, _controller$formList$;
|
|
11254
11606
|
|
|
11255
|
-
return
|
|
11607
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
11256
11608
|
while (1) {
|
|
11257
11609
|
switch (_context3.prev = _context3.next) {
|
|
11258
11610
|
case 0:
|
|
@@ -11265,8 +11617,8 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
11265
11617
|
if (re) {
|
|
11266
11618
|
(_controller$formList$ = controller.formList.get('buyer')) === null || _controller$formList$ === void 0 ? void 0 : _controller$formList$.setFieldsValue(re);
|
|
11267
11619
|
controller.pipeline( /*#__PURE__*/function () {
|
|
11268
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
11269
|
-
return
|
|
11620
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
11621
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11270
11622
|
while (1) {
|
|
11271
11623
|
switch (_context2.prev = _context2.next) {
|
|
11272
11624
|
case 0:
|
|
@@ -11316,8 +11668,8 @@ var ImportGoodsDrawer = (function () {
|
|
|
11316
11668
|
var onClose = React__default['default'].useCallback(function () {
|
|
11317
11669
|
console.log('===> 关闭抽屉');
|
|
11318
11670
|
controller.pipeline( /*#__PURE__*/function () {
|
|
11319
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
11320
|
-
return
|
|
11671
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
11672
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11321
11673
|
while (1) {
|
|
11322
11674
|
switch (_context.prev = _context.next) {
|
|
11323
11675
|
case 0:
|
|
@@ -11385,8 +11737,8 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
11385
11737
|
return {
|
|
11386
11738
|
onClick: function onClick() {
|
|
11387
11739
|
controller.run( /*#__PURE__*/function () {
|
|
11388
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
11389
|
-
return
|
|
11740
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
11741
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11390
11742
|
while (1) {
|
|
11391
11743
|
switch (_context2.prev = _context2.next) {
|
|
11392
11744
|
case 0:
|
|
@@ -11550,8 +11902,8 @@ var EndowCodeDrawer = (function () {
|
|
|
11550
11902
|
|
|
11551
11903
|
var onClose = React__default['default'].useCallback(function () {
|
|
11552
11904
|
controller.pipeline( /*#__PURE__*/function () {
|
|
11553
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
11554
|
-
return
|
|
11905
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
11906
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11555
11907
|
while (1) {
|
|
11556
11908
|
switch (_context.prev = _context.next) {
|
|
11557
11909
|
case 0:
|
|
@@ -11574,9 +11926,9 @@ var EndowCodeDrawer = (function () {
|
|
|
11574
11926
|
React__default['default'].useEffect(function () {
|
|
11575
11927
|
if (visible) {
|
|
11576
11928
|
controller.pipeline( /*#__PURE__*/function () {
|
|
11577
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
11929
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
11578
11930
|
var endowcodeGoodIndex, good, getDefaultValue;
|
|
11579
|
-
return
|
|
11931
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11580
11932
|
while (1) {
|
|
11581
11933
|
switch (_context2.prev = _context2.next) {
|
|
11582
11934
|
case 0:
|
|
@@ -11706,9 +12058,9 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
11706
12058
|
setDataSource = _React$useState6[1];
|
|
11707
12059
|
|
|
11708
12060
|
var onSearch = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
11709
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
|
12061
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e) {
|
|
11710
12062
|
var arr;
|
|
11711
|
-
return
|
|
12063
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
11712
12064
|
while (1) {
|
|
11713
12065
|
switch (_context3.prev = _context3.next) {
|
|
11714
12066
|
case 0:
|
|
@@ -11741,8 +12093,8 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
11741
12093
|
})[0];
|
|
11742
12094
|
if (!info) return;
|
|
11743
12095
|
!readOnlyTaxRate && actions.setFieldState('taxRate', /*#__PURE__*/function () {
|
|
11744
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
|
11745
|
-
return
|
|
12096
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12097
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
11746
12098
|
while (1) {
|
|
11747
12099
|
switch (_context4.prev = _context4.next) {
|
|
11748
12100
|
case 0:
|
|
@@ -11763,8 +12115,8 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
11763
12115
|
};
|
|
11764
12116
|
}());
|
|
11765
12117
|
actions.setFieldState('shorthand', /*#__PURE__*/function () {
|
|
11766
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
|
11767
|
-
return
|
|
12118
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
|
|
12119
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
11768
12120
|
while (1) {
|
|
11769
12121
|
switch (_context5.prev = _context5.next) {
|
|
11770
12122
|
case 0:
|
|
@@ -11865,8 +12217,8 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
11865
12217
|
return e.id === id;
|
|
11866
12218
|
})[0];
|
|
11867
12219
|
!readOnlyTaxRate && actions.setFieldState('taxRate', /*#__PURE__*/function () {
|
|
11868
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
|
11869
|
-
return
|
|
12220
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(s) {
|
|
12221
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
11870
12222
|
while (1) {
|
|
11871
12223
|
switch (_context6.prev = _context6.next) {
|
|
11872
12224
|
case 0:
|
|
@@ -11887,8 +12239,8 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
11887
12239
|
};
|
|
11888
12240
|
}());
|
|
11889
12241
|
actions.setFieldState('taxClassificationCode', /*#__PURE__*/function () {
|
|
11890
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
|
11891
|
-
return
|
|
12242
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(s) {
|
|
12243
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
11892
12244
|
while (1) {
|
|
11893
12245
|
switch (_context7.prev = _context7.next) {
|
|
11894
12246
|
case 0:
|
|
@@ -11909,8 +12261,8 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
11909
12261
|
};
|
|
11910
12262
|
}());
|
|
11911
12263
|
actions.setFieldState('shorthand', /*#__PURE__*/function () {
|
|
11912
|
-
var _ref8 = _asyncToGenerator( /*#__PURE__*/
|
|
11913
|
-
return
|
|
12264
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(s) {
|
|
12265
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
11914
12266
|
while (1) {
|
|
11915
12267
|
switch (_context8.prev = _context8.next) {
|
|
11916
12268
|
case 0:
|
|
@@ -11933,14 +12285,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
11933
12285
|
setVisible(false);
|
|
11934
12286
|
}, [list, actions, readOnlyTaxRate]);
|
|
11935
12287
|
React__default['default'].useEffect(function () {
|
|
11936
|
-
_asyncToGenerator( /*#__PURE__*/
|
|
12288
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
11937
12289
|
var fn, list;
|
|
11938
|
-
return
|
|
12290
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
11939
12291
|
while (1) {
|
|
11940
12292
|
switch (_context10.prev = _context10.next) {
|
|
11941
12293
|
case 0:
|
|
11942
|
-
fn = controller.state.goodsListState.endowCode.getTaxCategoryCodeTree || /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
11943
|
-
return
|
|
12294
|
+
fn = controller.state.goodsListState.endowCode.getTaxCategoryCodeTree || /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
12295
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
11944
12296
|
while (1) {
|
|
11945
12297
|
switch (_context9.prev = _context9.next) {
|
|
11946
12298
|
case 0:
|
|
@@ -12027,9 +12379,9 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12027
12379
|
|
|
12028
12380
|
var onSubmit = React__default['default'].useCallback(function (values) {
|
|
12029
12381
|
controller.pipeline( /*#__PURE__*/function () {
|
|
12030
|
-
var _ref11 = _asyncToGenerator( /*#__PURE__*/
|
|
12382
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(s) {
|
|
12031
12383
|
var endowCodeGood;
|
|
12032
|
-
return
|
|
12384
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
12033
12385
|
while (1) {
|
|
12034
12386
|
switch (_context11.prev = _context11.next) {
|
|
12035
12387
|
case 0:
|
|
@@ -12049,17 +12401,20 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12049
12401
|
good.favouredPolicyName = values.favouredPolicyName;
|
|
12050
12402
|
var taxRate = mathjs.chain(mathjs.bignumber(values.taxRate)).dotDivide(mathjs.bignumber(100)).add(mathjs.bignumber(1)).done(); // 是否含税
|
|
12051
12403
|
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12404
|
+
var lineAmountExcludeTax = mathjs.chain(mathjs.bignumber(good.lineAmountIncludeTax)).dotDivide(taxRate).done();
|
|
12405
|
+
var priceExcludeTax = good.priceIncludeTax ? mathjs.chain(mathjs.bignumber(good.priceIncludeTax)).dotDivide(taxRate).done() : undefined;
|
|
12406
|
+
good.lineAmountExcludeTax = lineAmountExcludeTax.toNumber().toFixed(2);
|
|
12407
|
+
good.priceExcludeTax = (priceExcludeTax ? format15(priceExcludeTax.toNumber()) : undefined) || undefined; // if (s.goodsListState.isTaxIncluded) {
|
|
12408
|
+
// const lineAmountExcludeTax = chain(bignumber(good.lineAmountIncludeTax)).dotDivide(taxRate).done();
|
|
12409
|
+
// const priceExcludeTax = good.priceIncludeTax ? chain(bignumber(good.priceIncludeTax)).dotDivide(taxRate).done() : undefined
|
|
12410
|
+
// good.lineAmountExcludeTax = lineAmountExcludeTax.toNumber().toFixed(2);
|
|
12411
|
+
// good.priceExcludeTax = (priceExcludeTax ? format15(priceExcludeTax.toNumber()) : undefined) || undefined;
|
|
12412
|
+
// } else {
|
|
12413
|
+
// const lineAmountIncludeTax = chain(bignumber(good.lineAmountExcludeTax)).multiply(taxRate).done();
|
|
12414
|
+
// const priceIncludeTax = good.priceExcludeTax ? chain(bignumber(good.priceExcludeTax)).multiply(taxRate).done() : undefined
|
|
12415
|
+
// good.lineAmountIncludeTax = lineAmountIncludeTax.toNumber().toFixed(2);
|
|
12416
|
+
// good.priceIncludeTax = (priceIncludeTax ? format15(priceIncludeTax.toNumber()) : undefined) || undefined;
|
|
12417
|
+
// }
|
|
12063
12418
|
|
|
12064
12419
|
good.taxAmount = countTaxAmount(good.lineAmountIncludeTax || 0, s.goodsListState.deduction, values.taxRate);
|
|
12065
12420
|
}); //截取名称
|
|
@@ -12117,8 +12472,8 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12117
12472
|
antd.FormEffectHooks.onFieldValueChange$('taxRate').subscribe(function (e) {
|
|
12118
12473
|
setTaxRate(e.value);
|
|
12119
12474
|
actions.setFieldState('taxFreeType', /*#__PURE__*/function () {
|
|
12120
|
-
var _ref12 = _asyncToGenerator( /*#__PURE__*/
|
|
12121
|
-
return
|
|
12475
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(s) {
|
|
12476
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
12122
12477
|
while (1) {
|
|
12123
12478
|
switch (_context12.prev = _context12.next) {
|
|
12124
12479
|
case 0:
|
|
@@ -12141,8 +12496,8 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12141
12496
|
antd.FormEffectHooks.onFieldValueChange$('favouredPolicyMark').subscribe(function (e) {
|
|
12142
12497
|
setFavouredPolicyMark(e.value);
|
|
12143
12498
|
actions.setFieldState('favouredPolicyName', /*#__PURE__*/function () {
|
|
12144
|
-
var _ref13 = _asyncToGenerator( /*#__PURE__*/
|
|
12145
|
-
return
|
|
12499
|
+
var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(s) {
|
|
12500
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
12146
12501
|
while (1) {
|
|
12147
12502
|
switch (_context13.prev = _context13.next) {
|
|
12148
12503
|
case 0:
|
|
@@ -12246,8 +12601,8 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12246
12601
|
}, "\u786E\u5B9A"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
12247
12602
|
onClick: function onClick() {
|
|
12248
12603
|
controller.pipeline( /*#__PURE__*/function () {
|
|
12249
|
-
var _ref14 = _asyncToGenerator( /*#__PURE__*/
|
|
12250
|
-
return
|
|
12604
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(s) {
|
|
12605
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
12251
12606
|
while (1) {
|
|
12252
12607
|
switch (_context14.prev = _context14.next) {
|
|
12253
12608
|
case 0:
|