kts-component-invoice-operate 3.2.32 → 3.2.33

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
@@ -10619,7 +10619,7 @@ function ItemNameInput(props) {
10619
10619
  }
10620
10620
  }, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
10621
10621
  onSearch: onSearch,
10622
- defaultValue: props.value,
10622
+ value: props.value,
10623
10623
  options: options.map(function (e) {
10624
10624
  return {
10625
10625
  value: e.itemName
@@ -10631,7 +10631,6 @@ function ItemNameInput(props) {
10631
10631
  height: '100%',
10632
10632
  border: 'none'
10633
10633
  },
10634
- value: props.value,
10635
10634
  onChange: onChange
10636
10635
  })));
10637
10636
  } // function removeNullUndefined(obj: Record<string, any>): Record<string, any> {
@@ -21246,14 +21245,17 @@ var DrawerBody$2 = function DrawerBody() {
21246
21245
  } // 导入FORM里
21247
21246
 
21248
21247
 
21249
- if (s.goodsListState.isMyShow) {
21250
- s.goodsListState.form.setFieldsValue(_objectSpread2(_objectSpread2({}, editGood), {}, {
21251
- itemName: editGood.itemNameSelf,
21252
- itemModelName: editGood.itemModelNameSelf
21253
- }));
21254
- } else {
21255
- s.goodsListState.form.setFieldsValue(_objectSpread2({}, editGood));
21256
- }
21248
+ s.goodsListState.form.setFieldsValue(_objectSpread2({}, editGood)); // if (s.goodsListState.isMyShow) {
21249
+ // s.goodsListState.form.setFieldsValue({
21250
+ // ...editGood,
21251
+ // itemName: editGood.itemNameSelf,
21252
+ // itemModelName: editGood.itemModelNameSelf,
21253
+ // });
21254
+ // } else {
21255
+ // s.goodsListState.form.setFieldsValue({
21256
+ // ...editGood,
21257
+ // });
21258
+ // }
21257
21259
 
21258
21260
  s.goodsListState.importGoods.isVisibleDrawer = false;
21259
21261
 
package/dist/index.js CHANGED
@@ -10629,7 +10629,7 @@ function ItemNameInput(props) {
10629
10629
  }
10630
10630
  }, "*", props.shorthand, "*"), React__default['default'].createElement(ktsXui.AutoComplete, {
10631
10631
  onSearch: onSearch,
10632
- defaultValue: props.value,
10632
+ value: props.value,
10633
10633
  options: options.map(function (e) {
10634
10634
  return {
10635
10635
  value: e.itemName
@@ -10641,7 +10641,6 @@ function ItemNameInput(props) {
10641
10641
  height: '100%',
10642
10642
  border: 'none'
10643
10643
  },
10644
- value: props.value,
10645
10644
  onChange: onChange
10646
10645
  })));
10647
10646
  } // function removeNullUndefined(obj: Record<string, any>): Record<string, any> {
@@ -21256,14 +21255,17 @@ var DrawerBody$2 = function DrawerBody() {
21256
21255
  } // 导入FORM里
21257
21256
 
21258
21257
 
21259
- if (s.goodsListState.isMyShow) {
21260
- s.goodsListState.form.setFieldsValue(_objectSpread2(_objectSpread2({}, editGood), {}, {
21261
- itemName: editGood.itemNameSelf,
21262
- itemModelName: editGood.itemModelNameSelf
21263
- }));
21264
- } else {
21265
- s.goodsListState.form.setFieldsValue(_objectSpread2({}, editGood));
21266
- }
21258
+ s.goodsListState.form.setFieldsValue(_objectSpread2({}, editGood)); // if (s.goodsListState.isMyShow) {
21259
+ // s.goodsListState.form.setFieldsValue({
21260
+ // ...editGood,
21261
+ // itemName: editGood.itemNameSelf,
21262
+ // itemModelName: editGood.itemModelNameSelf,
21263
+ // });
21264
+ // } else {
21265
+ // s.goodsListState.form.setFieldsValue({
21266
+ // ...editGood,
21267
+ // });
21268
+ // }
21267
21269
 
21268
21270
  s.goodsListState.importGoods.isVisibleDrawer = false;
21269
21271
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.32",
3
+ "version": "3.2.33",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -1,7 +1,7 @@
1
1
 
2
2
  import React from 'react';
3
3
  import { Button } from 'kts-components-antd-x3/lib/radio';
4
- import { Invoice, IGood } from '../../../..';
4
+ import { Invoice, IGood } from '../../../../src';
5
5
  import { IGetBuyerListOption } from '../../../Invoice/InvoiceController/InvoiceControllerState/BuyerState';
6
6
 
7
7
  const InvoiceController = Invoice.InvoiceController
@@ -99,8 +99,8 @@ export default function ItemNameInput(props: { onChange?: (e: ChangeEvent<HTMLIn
99
99
  return (
100
100
  <div className='kts-invoice-operate-goods-list-itemName-input'>
101
101
  {props.shorthand && <span style={{ alignSelf: 'center', fontSize: 12 }} >*{props.shorthand}*</span>}
102
- <AutoComplete onSearch={onSearch} defaultValue={props.value} options={options.map(e => ({ value: e.itemName }))} onChange={onChangeAutoComplete} >
103
- <Input style={{ height: '100%', border: 'none' }} value={props.value} onChange={onChange} />
102
+ <AutoComplete onSearch={onSearch} value={props.value} options={options.map(e => ({ value: e.itemName }))} onChange={onChangeAutoComplete} >
103
+ <Input style={{ height: '100%', border: 'none' }} onChange={onChange} />
104
104
  </AutoComplete>
105
105
  </div>
106
106
  )
@@ -27,10 +27,12 @@ export default () => {
27
27
  onClose={onClose}
28
28
  visible={visible}
29
29
  >
30
- {topExpand &&
30
+ {
31
+ topExpand &&
31
32
  <div style={{ marginBottom: 10 }} >
32
33
  {topExpand}
33
- </div>}
34
+ </div>
35
+ }
34
36
  <DrawerBody />
35
37
  </Drawer>
36
38
  );
@@ -98,17 +100,20 @@ const DrawerBody = () => {
98
100
  }
99
101
 
100
102
  // 导入FORM里
101
- if (s.goodsListState.isMyShow) {
102
- s.goodsListState.form.setFieldsValue({
103
- ...editGood,
104
- itemName: editGood.itemNameSelf,
105
- itemModelName: editGood.itemModelNameSelf,
106
- });
107
- } else {
108
- s.goodsListState.form.setFieldsValue({
109
- ...editGood,
110
- });
111
- }
103
+ s.goodsListState.form.setFieldsValue({
104
+ ...editGood,
105
+ });
106
+ // if (s.goodsListState.isMyShow) {
107
+ // s.goodsListState.form.setFieldsValue({
108
+ // ...editGood,
109
+ // itemName: editGood.itemNameSelf,
110
+ // itemModelName: editGood.itemModelNameSelf,
111
+ // });
112
+ // } else {
113
+ // s.goodsListState.form.setFieldsValue({
114
+ // ...editGood,
115
+ // });
116
+ // }
112
117
 
113
118
  s.goodsListState.importGoods.isVisibleDrawer = false;
114
119
  s.goodsListState.isTaxIncluded
@@ -165,6 +170,5 @@ const getItemNameOther = (record: any, editGood: IGood) => {
165
170
  // if (shorthand) {
166
171
  // return `*${shorthand}*${record.itemNameSelf}`;
167
172
  // }
168
-
169
173
  return record.itemName;
170
174
  }