kts-component-invoice-operate 3.2.213 → 3.2.214

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
@@ -14330,7 +14330,7 @@ var useColumns = (function (form) {
14330
14330
  style: {
14331
14331
  padding: '0 10px'
14332
14332
  }
14333
- }, isDutyFree(record) ? '免税' : "".concat(value, "%"));
14333
+ }, isDutyFree(record) ? '免税' : value === '' ? '' : "".concat(value, "%"));
14334
14334
  }
14335
14335
  }
14336
14336
  }, {
@@ -14354,7 +14354,7 @@ var useColumns = (function (form) {
14354
14354
  style: {
14355
14355
  padding: '0 10px'
14356
14356
  }
14357
- }, isDutyFree(record) ? '***' : value ? parseFloat(value).toFixed(2) : '');
14357
+ }, isDutyFree(record) ? '***' : value === '' ? '' : parseFloat(value).toFixed(2));
14358
14358
  }
14359
14359
  }
14360
14360
  }, {
@@ -19054,7 +19054,7 @@ var Statistics$1 = (function () {
19054
19054
  fontWeight: 'bold',
19055
19055
  marginLeft: 4
19056
19056
  }
19057
- }, lineAmountIncludeTax ? toStringChinese(lineAmountIncludeTax) : '')), /*#__PURE__*/React.createElement("div", {
19057
+ }, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React.createElement("div", {
19058
19058
  style: {
19059
19059
  flex: 1
19060
19060
  }
@@ -19068,7 +19068,7 @@ var Statistics$1 = (function () {
19068
19068
  minWidth: 119,
19069
19069
  maxWidth: 300
19070
19070
  }
19071
- }, "\xA5", lineAmountIncludeTax ? parseFloat(lineAmountIncludeTax).toFixed(2) : '')));
19071
+ }, "\xA5", parseFloat(lineAmountIncludeTax).toFixed(2))));
19072
19072
  });
19073
19073
 
19074
19074
  var AddRowButton$1 = (function () {
@@ -22197,12 +22197,11 @@ var useColumns$1 = (function (form) {
22197
22197
  }
22198
22198
  })));
22199
22199
  } else {
22200
- console.log(value);
22201
22200
  return /*#__PURE__*/React.createElement("span", {
22202
22201
  style: {
22203
22202
  padding: '0 10px'
22204
22203
  }
22205
- }, value === '' ? '' : formatSearch$1(parseFloat(value).toFixed(2), searchValue));
22204
+ }, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
22206
22205
  }
22207
22206
  }
22208
22207
  }, {
package/dist/index.js CHANGED
@@ -14340,7 +14340,7 @@ var useColumns = (function (form) {
14340
14340
  style: {
14341
14341
  padding: '0 10px'
14342
14342
  }
14343
- }, isDutyFree(record) ? '免税' : "".concat(value, "%"));
14343
+ }, isDutyFree(record) ? '免税' : value === '' ? '' : "".concat(value, "%"));
14344
14344
  }
14345
14345
  }
14346
14346
  }, {
@@ -14364,7 +14364,7 @@ var useColumns = (function (form) {
14364
14364
  style: {
14365
14365
  padding: '0 10px'
14366
14366
  }
14367
- }, isDutyFree(record) ? '***' : value ? parseFloat(value).toFixed(2) : '');
14367
+ }, isDutyFree(record) ? '***' : value === '' ? '' : parseFloat(value).toFixed(2));
14368
14368
  }
14369
14369
  }
14370
14370
  }, {
@@ -19064,7 +19064,7 @@ var Statistics$1 = (function () {
19064
19064
  fontWeight: 'bold',
19065
19065
  marginLeft: 4
19066
19066
  }
19067
- }, lineAmountIncludeTax ? toStringChinese(lineAmountIncludeTax) : '')), /*#__PURE__*/React__default['default'].createElement("div", {
19067
+ }, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React__default['default'].createElement("div", {
19068
19068
  style: {
19069
19069
  flex: 1
19070
19070
  }
@@ -19078,7 +19078,7 @@ var Statistics$1 = (function () {
19078
19078
  minWidth: 119,
19079
19079
  maxWidth: 300
19080
19080
  }
19081
- }, "\xA5", lineAmountIncludeTax ? parseFloat(lineAmountIncludeTax).toFixed(2) : '')));
19081
+ }, "\xA5", parseFloat(lineAmountIncludeTax).toFixed(2))));
19082
19082
  });
19083
19083
 
19084
19084
  var AddRowButton$1 = (function () {
@@ -22207,12 +22207,11 @@ var useColumns$1 = (function (form) {
22207
22207
  }
22208
22208
  })));
22209
22209
  } else {
22210
- console.log(value);
22211
22210
  return /*#__PURE__*/React__default['default'].createElement("span", {
22212
22211
  style: {
22213
22212
  padding: '0 10px'
22214
22213
  }
22215
- }, value === '' ? '' : formatSearch$1(parseFloat(value).toFixed(2), searchValue));
22214
+ }, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
22216
22215
  }
22217
22216
  }
22218
22217
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.213",
3
+ "version": "3.2.214",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -484,7 +484,7 @@ export default (form: WrappedFormUtils) => {
484
484
  </Form.Item>
485
485
  );
486
486
  } else {
487
-
487
+
488
488
  return <span style={{ padding: '0 10px' }}>{value === '' ? '' : formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
489
489
  }
490
490
  },
@@ -530,7 +530,7 @@ export default (form: WrappedFormUtils) => {
530
530
  </Form.Item>
531
531
  );
532
532
  } else {
533
- return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '免税' : `${value}%`}</span>;
533
+ return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '免税' : value === '' ? '' : `${value}%`}</span>;
534
534
  }
535
535
  },
536
536
  },
@@ -547,7 +547,7 @@ export default (form: WrappedFormUtils) => {
547
547
  rules: getReplenishRules('taxAmount'),
548
548
  })(<MyDiv loading={isCipher(changeField, 'taxAmount')} />);
549
549
  } else {
550
- return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '***' : value ? parseFloat(value).toFixed(2) : ''}</span>;
550
+ return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '***' : value === '' ? '' : parseFloat(value).toFixed(2)}</span>;
551
551
  }
552
552
  },
553
553
  },
@@ -453,8 +453,7 @@ export default (form: WrappedFormUtils) => {
453
453
  </Form.Item>
454
454
  );
455
455
  } else {
456
- console.log(value)
457
- return <span style={{ padding: '0 10px' }}>{value === '' ? '' :formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
456
+ return <span style={{ padding: '0 10px' }}>{formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
458
457
  }
459
458
  },
460
459
  },
@@ -87,11 +87,11 @@ export default () => {
87
87
  <div>价税合计(大写)</div>
88
88
  <div style={{ paddingLeft: 30 }} >
89
89
  <Icon style={{fontSize: 16}} component={ForkSvg} />
90
- <span style={{ fontWeight: 'bold', marginLeft: 4 }} >{lineAmountIncludeTax?Money.toStringChinese(lineAmountIncludeTax):''}</span>
90
+ <span style={{ fontWeight: 'bold', marginLeft: 4 }} >{Money.toStringChinese(lineAmountIncludeTax)}</span>
91
91
  </div>
92
92
  <div style={{ flex: 1 }} />
93
93
  <div style={{ width: 90, color: '#9F613E' }} >(小写)</div>
94
- <div style={{ minWidth: 119, maxWidth: 300 }} >¥{lineAmountIncludeTax?parseFloat(lineAmountIncludeTax).toFixed(2):''}</div>
94
+ <div style={{ minWidth: 119, maxWidth: 300 }} >¥{parseFloat(lineAmountIncludeTax).toFixed(2)}</div>
95
95
  </div>
96
96
  </div >
97
97
  );