kts-component-invoice-operate 3.2.214 → 3.2.216-fix

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.
@@ -14,6 +14,8 @@ export default class ImportGoods<ColumnType = any> {
14
14
  pagination: PaginationConfig;
15
15
  /** 是否显示导入 */
16
16
  isVisibleDrawer: boolean;
17
+ /** 搜索条件 */
18
+ filter: any;
17
19
  /** 顶部扩展 */
18
20
  topExpand?: React.ReactNode;
19
21
  /** 导入时校验函数 */
package/dist/index.esm.js CHANGED
@@ -958,6 +958,7 @@ var ImportGoods = /*#__PURE__*/_createClass(function ImportGoods() {
958
958
  this.dataSource = [];
959
959
  this.pagination = {};
960
960
  this.isVisibleDrawer = false;
961
+ this.filter = {};
961
962
  this.topExpand = void 0;
962
963
 
963
964
  this.verifyFn = /*#__PURE__*/function () {
@@ -24496,7 +24497,7 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
24496
24497
  color: '#9F603D',
24497
24498
  fontWeight: 600
24498
24499
  }
24499
- }, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
24500
+ }, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
24500
24501
  }
24501
24502
  }]);
24502
24503
 
@@ -26337,9 +26338,10 @@ var ImportGoodsDrawer = (function () {
26337
26338
  while (1) {
26338
26339
  switch (_context.prev = _context.next) {
26339
26340
  case 0:
26341
+ s.goodsListState.importGoods.filter = {};
26340
26342
  s.goodsListState.importGoods.isVisibleDrawer = false;
26341
26343
 
26342
- case 1:
26344
+ case 2:
26343
26345
  case "end":
26344
26346
  return _context.stop();
26345
26347
  }
package/dist/index.js CHANGED
@@ -968,6 +968,7 @@ var ImportGoods = /*#__PURE__*/_createClass(function ImportGoods() {
968
968
  this.dataSource = [];
969
969
  this.pagination = {};
970
970
  this.isVisibleDrawer = false;
971
+ this.filter = {};
971
972
  this.topExpand = void 0;
972
973
 
973
974
  this.verifyFn = /*#__PURE__*/function () {
@@ -24506,7 +24507,7 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
24506
24507
  color: '#9F603D',
24507
24508
  fontWeight: 600
24508
24509
  }
24509
- }, " - "), /*#__PURE__*/React__default['default'].createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
24510
+ }, " - "), /*#__PURE__*/React__default['default'].createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
24510
24511
  }
24511
24512
  }]);
24512
24513
 
@@ -26347,9 +26348,10 @@ var ImportGoodsDrawer = (function () {
26347
26348
  while (1) {
26348
26349
  switch (_context.prev = _context.next) {
26349
26350
  case 0:
26351
+ s.goodsListState.importGoods.filter = {};
26350
26352
  s.goodsListState.importGoods.isVisibleDrawer = false;
26351
26353
 
26352
- case 1:
26354
+ case 2:
26353
26355
  case "end":
26354
26356
  return _context.stop();
26355
26357
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.214",
3
+ "version": "3.2.216-fix",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -122,14 +122,16 @@ export default () => {
122
122
  }
123
123
  React.useEffect(() => {
124
124
  controller.run(async s => {
125
- s.stakeholder.enables = ['taxAmount'];
126
- s.priceIntegerDigit = 25;
127
- s.calculatingDigits = 25;
125
+ s.goodsListState.isRecalculateWhenSwitchTax = true;
128
126
  s.goodsListState.isTaxIncluded = false;
129
- s.goodsListState.amountExcludeTax = parseFloat(data?.invoiceAmount) || undefined;
130
- s.goodsListState.amountIncludeTax = parseFloat(data?.totalAmount) || undefined;
131
- s.goodsListState.amountTax = parseFloat(data?.taxAmount) || undefined;
132
- s.goodsListState.goodsList = data?.detailList?.map(e => sToCi(e)) ?? [];
127
+ // s.stakeholder.enables = ['taxAmount'];
128
+ // s.priceIntegerDigit = 25;
129
+ // s.calculatingDigits = 25;
130
+ // s.goodsListState.isTaxIncluded = false;
131
+ // s.goodsListState.amountExcludeTax = parseFloat(data?.invoiceAmount) || undefined;
132
+ // s.goodsListState.amountIncludeTax = parseFloat(data?.totalAmount) || undefined;
133
+ // s.goodsListState.amountTax = parseFloat(data?.taxAmount) || undefined;
134
+ // s.goodsListState.goodsList = data?.detailList?.map(e => sToCi(e)) ?? [];
133
135
  })
134
136
  }, [controller])
135
137
  return (
@@ -63,6 +63,9 @@ export default class ImportGoods<ColumnType = any> {
63
63
  /** 是否显示导入 */
64
64
  isVisibleDrawer = false;
65
65
 
66
+ /** 搜索条件 */
67
+ filter: any = {};
68
+
66
69
  /** 顶部扩展 */
67
70
  topExpand?: React.ReactNode;
68
71
 
@@ -14,7 +14,10 @@ export default () => {
14
14
  const topExpand = controller.useMemo(s => s.goodsListState.importGoods.topExpand, []);
15
15
 
16
16
  const onClose = React.useCallback(() => {
17
- controller.pipeline(async s => { s.goodsListState.importGoods.isVisibleDrawer = false })();
17
+ controller.pipeline(async s => {
18
+ s.goodsListState.importGoods.filter = {};
19
+ s.goodsListState.importGoods.isVisibleDrawer = false;
20
+ })();
18
21
  }, [controller]);
19
22
 
20
23
  return (
@@ -172,7 +172,7 @@ class MyArrMoment extends React.Component<{ value?: moment.Moment[], style?: Rea
172
172
  <div style={this.props.style}>
173
173
  <span>{moment.isMoment(value[0]) && value[0].format('YYYY-MM-DD')}</span>
174
174
  <span style={{ color: '#9F603D', fontWeight: 600 }} > - </span>
175
- <span>{moment.isMoment(value[1]) && value[0].format('YYYY-MM-DD')}</span>
175
+ <span>{moment.isMoment(value[1]) && value[1].format('YYYY-MM-DD')}</span>
176
176
  </div>
177
177
  )
178
178
  }