kts-component-invoice-operate 1.2.19 → 1.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -354,54 +354,58 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
354
354
|
while (1) {
|
|
355
355
|
switch (_context.prev = _context.next) {
|
|
356
356
|
case 0:
|
|
357
|
+
_context.next = 2;
|
|
358
|
+
return this.wait();
|
|
359
|
+
|
|
360
|
+
case 2:
|
|
357
361
|
_errors = new Map();
|
|
358
362
|
_values = new Map();
|
|
359
363
|
arr = Array.from(this.formList);
|
|
360
364
|
i = 0;
|
|
361
365
|
|
|
362
|
-
case
|
|
366
|
+
case 6:
|
|
363
367
|
if (!(i < arr.length)) {
|
|
364
|
-
_context.next =
|
|
368
|
+
_context.next = 18;
|
|
365
369
|
break;
|
|
366
370
|
}
|
|
367
371
|
|
|
368
372
|
key = arr[i][0];
|
|
369
|
-
_context.next =
|
|
373
|
+
_context.next = 10;
|
|
370
374
|
return _validateFields(arr[i][1]);
|
|
371
375
|
|
|
372
|
-
case
|
|
376
|
+
case 10:
|
|
373
377
|
_yield$_validateField = _context.sent;
|
|
374
378
|
errors = _yield$_validateField.errors;
|
|
375
379
|
values = _yield$_validateField.values;
|
|
376
380
|
errors && _errors.set(key, errors);
|
|
377
381
|
_values && _values.set(key, values);
|
|
378
382
|
|
|
379
|
-
case
|
|
383
|
+
case 15:
|
|
380
384
|
i++;
|
|
381
|
-
_context.next =
|
|
385
|
+
_context.next = 6;
|
|
382
386
|
break;
|
|
383
387
|
|
|
384
|
-
case
|
|
388
|
+
case 18:
|
|
385
389
|
if (!this.state.goodsListState.form) {
|
|
386
|
-
_context.next =
|
|
390
|
+
_context.next = 27;
|
|
387
391
|
break;
|
|
388
392
|
}
|
|
389
393
|
|
|
390
|
-
_context.prev =
|
|
391
|
-
_context.next =
|
|
394
|
+
_context.prev = 19;
|
|
395
|
+
_context.next = 22;
|
|
392
396
|
return (_this$state$goodsList = this.state.goodsListState.form) === null || _this$state$goodsList === void 0 ? void 0 : _this$state$goodsList.validateFields();
|
|
393
397
|
|
|
394
|
-
case
|
|
395
|
-
_context.next =
|
|
398
|
+
case 22:
|
|
399
|
+
_context.next = 27;
|
|
396
400
|
break;
|
|
397
401
|
|
|
398
|
-
case
|
|
399
|
-
_context.prev =
|
|
400
|
-
_context.t0 = _context["catch"](
|
|
402
|
+
case 24:
|
|
403
|
+
_context.prev = 24;
|
|
404
|
+
_context.t0 = _context["catch"](19);
|
|
401
405
|
|
|
402
406
|
_errors.set('goodsList', _context.t0.errors);
|
|
403
407
|
|
|
404
|
-
case
|
|
408
|
+
case 27:
|
|
405
409
|
_values.set('goodsList', this.state.goodsListState.goodsList.slice()); // 金额(含税)
|
|
406
410
|
|
|
407
411
|
|
|
@@ -445,12 +449,12 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
445
449
|
values: _values
|
|
446
450
|
});
|
|
447
451
|
|
|
448
|
-
case
|
|
452
|
+
case 32:
|
|
449
453
|
case "end":
|
|
450
454
|
return _context.stop();
|
|
451
455
|
}
|
|
452
456
|
}
|
|
453
|
-
}, _callee, this, [[
|
|
457
|
+
}, _callee, this, [[19, 24]]);
|
|
454
458
|
}));
|
|
455
459
|
|
|
456
460
|
function validateFields() {
|
package/dist/index.js
CHANGED
|
@@ -364,54 +364,58 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
364
364
|
while (1) {
|
|
365
365
|
switch (_context.prev = _context.next) {
|
|
366
366
|
case 0:
|
|
367
|
+
_context.next = 2;
|
|
368
|
+
return this.wait();
|
|
369
|
+
|
|
370
|
+
case 2:
|
|
367
371
|
_errors = new Map();
|
|
368
372
|
_values = new Map();
|
|
369
373
|
arr = Array.from(this.formList);
|
|
370
374
|
i = 0;
|
|
371
375
|
|
|
372
|
-
case
|
|
376
|
+
case 6:
|
|
373
377
|
if (!(i < arr.length)) {
|
|
374
|
-
_context.next =
|
|
378
|
+
_context.next = 18;
|
|
375
379
|
break;
|
|
376
380
|
}
|
|
377
381
|
|
|
378
382
|
key = arr[i][0];
|
|
379
|
-
_context.next =
|
|
383
|
+
_context.next = 10;
|
|
380
384
|
return _validateFields(arr[i][1]);
|
|
381
385
|
|
|
382
|
-
case
|
|
386
|
+
case 10:
|
|
383
387
|
_yield$_validateField = _context.sent;
|
|
384
388
|
errors = _yield$_validateField.errors;
|
|
385
389
|
values = _yield$_validateField.values;
|
|
386
390
|
errors && _errors.set(key, errors);
|
|
387
391
|
_values && _values.set(key, values);
|
|
388
392
|
|
|
389
|
-
case
|
|
393
|
+
case 15:
|
|
390
394
|
i++;
|
|
391
|
-
_context.next =
|
|
395
|
+
_context.next = 6;
|
|
392
396
|
break;
|
|
393
397
|
|
|
394
|
-
case
|
|
398
|
+
case 18:
|
|
395
399
|
if (!this.state.goodsListState.form) {
|
|
396
|
-
_context.next =
|
|
400
|
+
_context.next = 27;
|
|
397
401
|
break;
|
|
398
402
|
}
|
|
399
403
|
|
|
400
|
-
_context.prev =
|
|
401
|
-
_context.next =
|
|
404
|
+
_context.prev = 19;
|
|
405
|
+
_context.next = 22;
|
|
402
406
|
return (_this$state$goodsList = this.state.goodsListState.form) === null || _this$state$goodsList === void 0 ? void 0 : _this$state$goodsList.validateFields();
|
|
403
407
|
|
|
404
|
-
case
|
|
405
|
-
_context.next =
|
|
408
|
+
case 22:
|
|
409
|
+
_context.next = 27;
|
|
406
410
|
break;
|
|
407
411
|
|
|
408
|
-
case
|
|
409
|
-
_context.prev =
|
|
410
|
-
_context.t0 = _context["catch"](
|
|
412
|
+
case 24:
|
|
413
|
+
_context.prev = 24;
|
|
414
|
+
_context.t0 = _context["catch"](19);
|
|
411
415
|
|
|
412
416
|
_errors.set('goodsList', _context.t0.errors);
|
|
413
417
|
|
|
414
|
-
case
|
|
418
|
+
case 27:
|
|
415
419
|
_values.set('goodsList', this.state.goodsListState.goodsList.slice()); // 金额(含税)
|
|
416
420
|
|
|
417
421
|
|
|
@@ -455,12 +459,12 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
455
459
|
values: _values
|
|
456
460
|
});
|
|
457
461
|
|
|
458
|
-
case
|
|
462
|
+
case 32:
|
|
459
463
|
case "end":
|
|
460
464
|
return _context.stop();
|
|
461
465
|
}
|
|
462
466
|
}
|
|
463
|
-
}, _callee, this, [[
|
|
467
|
+
}, _callee, this, [[19, 24]]);
|
|
464
468
|
}));
|
|
465
469
|
|
|
466
470
|
function validateFields() {
|