kts-component-invoice-operate 3.2.202 → 3.2.204

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
@@ -22277,7 +22277,7 @@ var useColumns$1 = (function (form) {
22277
22277
  if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
22278
22278
  var total = lineAmountExcludeTax * taxRate / 100;
22279
22279
 
22280
- if (Number(Math.abs(total - Number(value)).toFixed(2)) <= 0.01) {
22280
+ if (Number(Math.abs(total - Number(value))) <= 0.01) {
22281
22281
  callback();
22282
22282
  } else {
22283
22283
  callback('税额填写错误,请重新输入');
@@ -24925,7 +24925,7 @@ function _addGood$2() {
24925
24925
  _context4.next = 6;
24926
24926
  return controller.run( /*#__PURE__*/function () {
24927
24927
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
24928
- var _controller$state$goo;
24928
+ var _controller$state$fre;
24929
24929
 
24930
24930
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
24931
24931
  while (1) {
@@ -24937,7 +24937,7 @@ function _addGood$2() {
24937
24937
  }
24938
24938
 
24939
24939
  _context3.next = 3;
24940
- return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
24940
+ return (_controller$state$fre = controller.state.freightListState.form) === null || _controller$state$fre === void 0 ? void 0 : _controller$state$fre.validateFields( /*#__PURE__*/function () {
24941
24941
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
24942
24942
  var firstError;
24943
24943
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
package/dist/index.js CHANGED
@@ -22287,7 +22287,7 @@ var useColumns$1 = (function (form) {
22287
22287
  if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
22288
22288
  var total = lineAmountExcludeTax * taxRate / 100;
22289
22289
 
22290
- if (Number(Math.abs(total - Number(value)).toFixed(2)) <= 0.01) {
22290
+ if (Number(Math.abs(total - Number(value))) <= 0.01) {
22291
22291
  callback();
22292
22292
  } else {
22293
22293
  callback('税额填写错误,请重新输入');
@@ -24935,7 +24935,7 @@ function _addGood$2() {
24935
24935
  _context4.next = 6;
24936
24936
  return controller.run( /*#__PURE__*/function () {
24937
24937
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
24938
- var _controller$state$goo;
24938
+ var _controller$state$fre;
24939
24939
 
24940
24940
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
24941
24941
  while (1) {
@@ -24947,7 +24947,7 @@ function _addGood$2() {
24947
24947
  }
24948
24948
 
24949
24949
  _context3.next = 3;
24950
- return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
24950
+ return (_controller$state$fre = controller.state.freightListState.form) === null || _controller$state$fre === void 0 ? void 0 : _controller$state$fre.validateFields( /*#__PURE__*/function () {
24951
24951
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
24952
24952
  var firstError;
24953
24953
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.202",
3
+ "version": "3.2.204",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -36,7 +36,7 @@
36
36
  ## 不动产经营租赁服务
37
37
  <code src="./_test/realEstateInfo/index.tsx"></code>
38
38
 
39
-
39
+ -->
40
40
 
41
41
  ## 货物运输服务
42
- <code src="./_test/freight/index.tsx"></code> -->
42
+ <code src="./_test/freight/index.tsx"></code>
@@ -51,7 +51,7 @@ async function addGood(controller: InvoiceController) {
51
51
  // key: '你正在编辑一个货物运输行',
52
52
  // });
53
53
  // return;
54
- await controller.state.goodsListState.form?.validateFields(async (err: any, values: any) => {
54
+ await controller.state.freightListState.form?.validateFields(async (err: any, values: any) => {
55
55
  if (err) {
56
56
  const firstError: any = Object.values(err)[0];
57
57
  message.error({
@@ -525,7 +525,7 @@ export default (form: WrappedFormUtils) => {
525
525
  const taxRate = editGood?.taxRate;
526
526
  if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
527
527
  const total = lineAmountExcludeTax * taxRate / 100;
528
- if (Number(Math.abs(total - Number(value)).toFixed(2)) <= 0.01) {
528
+ if (Number(Math.abs(total - Number(value))) <= 0.01) {
529
529
  callback();
530
530
  } else {
531
531
  callback('税额填写错误,请重新输入')