kts-component-invoice-operate 3.2.178 → 3.2.179
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
|
@@ -759,7 +759,7 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
759
759
|
var _validateFields2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
760
760
|
var _this3 = this;
|
|
761
761
|
|
|
762
|
-
var _errors, _values, arr, i, key, _yield$_validateField, errors, values, _this$state$goodsList;
|
|
762
|
+
var _errors, _values, arr, i, key, _yield$_validateField, errors, values, _this$state$goodsList, _this$state$freightLi;
|
|
763
763
|
|
|
764
764
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
765
765
|
while (1) {
|
|
@@ -817,7 +817,30 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
817
817
|
_errors.set('goodsList', _context.t0.errors);
|
|
818
818
|
|
|
819
819
|
case 27:
|
|
820
|
-
_values.set('goodsList', this.state.goodsListState.goodsList.slice());
|
|
820
|
+
_values.set('goodsList', this.state.goodsListState.goodsList.slice()); //货物运输列表
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
if (!this.state.freightListState.form) {
|
|
824
|
+
_context.next = 37;
|
|
825
|
+
break;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
_context.prev = 29;
|
|
829
|
+
_context.next = 32;
|
|
830
|
+
return (_this$state$freightLi = this.state.freightListState.form) === null || _this$state$freightLi === void 0 ? void 0 : _this$state$freightLi.validateFields();
|
|
831
|
+
|
|
832
|
+
case 32:
|
|
833
|
+
_context.next = 37;
|
|
834
|
+
break;
|
|
835
|
+
|
|
836
|
+
case 34:
|
|
837
|
+
_context.prev = 34;
|
|
838
|
+
_context.t1 = _context["catch"](29);
|
|
839
|
+
|
|
840
|
+
_errors.set('freightList', _context.t1.errors);
|
|
841
|
+
|
|
842
|
+
case 37:
|
|
843
|
+
_values.set('freightList', this.state.freightListState.goodsList.slice()); // 金额(含税)
|
|
821
844
|
|
|
822
845
|
|
|
823
846
|
_values.set('lineAmountIncludeTax', function () {
|
|
@@ -863,12 +886,12 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
863
886
|
values: _values
|
|
864
887
|
});
|
|
865
888
|
|
|
866
|
-
case
|
|
889
|
+
case 43:
|
|
867
890
|
case "end":
|
|
868
891
|
return _context.stop();
|
|
869
892
|
}
|
|
870
893
|
}
|
|
871
|
-
}, _callee, this, [[19, 24]]);
|
|
894
|
+
}, _callee, this, [[19, 24], [29, 34]]);
|
|
872
895
|
}));
|
|
873
896
|
|
|
874
897
|
function validateFields() {
|
package/dist/index.js
CHANGED
|
@@ -769,7 +769,7 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
769
769
|
var _validateFields2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
770
770
|
var _this3 = this;
|
|
771
771
|
|
|
772
|
-
var _errors, _values, arr, i, key, _yield$_validateField, errors, values, _this$state$goodsList;
|
|
772
|
+
var _errors, _values, arr, i, key, _yield$_validateField, errors, values, _this$state$goodsList, _this$state$freightLi;
|
|
773
773
|
|
|
774
774
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
775
775
|
while (1) {
|
|
@@ -827,7 +827,30 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
827
827
|
_errors.set('goodsList', _context.t0.errors);
|
|
828
828
|
|
|
829
829
|
case 27:
|
|
830
|
-
_values.set('goodsList', this.state.goodsListState.goodsList.slice());
|
|
830
|
+
_values.set('goodsList', this.state.goodsListState.goodsList.slice()); //货物运输列表
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
if (!this.state.freightListState.form) {
|
|
834
|
+
_context.next = 37;
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
_context.prev = 29;
|
|
839
|
+
_context.next = 32;
|
|
840
|
+
return (_this$state$freightLi = this.state.freightListState.form) === null || _this$state$freightLi === void 0 ? void 0 : _this$state$freightLi.validateFields();
|
|
841
|
+
|
|
842
|
+
case 32:
|
|
843
|
+
_context.next = 37;
|
|
844
|
+
break;
|
|
845
|
+
|
|
846
|
+
case 34:
|
|
847
|
+
_context.prev = 34;
|
|
848
|
+
_context.t1 = _context["catch"](29);
|
|
849
|
+
|
|
850
|
+
_errors.set('freightList', _context.t1.errors);
|
|
851
|
+
|
|
852
|
+
case 37:
|
|
853
|
+
_values.set('freightList', this.state.freightListState.goodsList.slice()); // 金额(含税)
|
|
831
854
|
|
|
832
855
|
|
|
833
856
|
_values.set('lineAmountIncludeTax', function () {
|
|
@@ -873,12 +896,12 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
873
896
|
values: _values
|
|
874
897
|
});
|
|
875
898
|
|
|
876
|
-
case
|
|
899
|
+
case 43:
|
|
877
900
|
case "end":
|
|
878
901
|
return _context.stop();
|
|
879
902
|
}
|
|
880
903
|
}
|
|
881
|
-
}, _callee, this, [[19, 24]]);
|
|
904
|
+
}, _callee, this, [[19, 24], [29, 34]]);
|
|
882
905
|
}));
|
|
883
906
|
|
|
884
907
|
function validateFields() {
|
package/package.json
CHANGED
|
@@ -45,8 +45,18 @@ export default class InvoiceControllerForm extends GreyReactBox<InvoiceControlle
|
|
|
45
45
|
_errors.set('goodsList', error.errors);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
|
|
49
49
|
_values.set('goodsList', this.state.goodsListState.goodsList.slice());
|
|
50
|
+
//货物运输列表
|
|
51
|
+
if (this.state.freightListState.form) {
|
|
52
|
+
try {
|
|
53
|
+
await this.state.freightListState.form?.validateFields()
|
|
54
|
+
} catch (error: any) {
|
|
55
|
+
_errors.set('freightList', error.errors);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
_values.set('freightList', this.state.freightListState.goodsList.slice());
|
|
50
60
|
|
|
51
61
|
// 金额(含税)
|
|
52
62
|
_values.set('lineAmountIncludeTax', (() => {
|