kts-component-invoice-operate 2.0.7 → 2.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "2.0.7",
3
+ "version": "2.0.10",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -64,7 +64,7 @@ export default function AddComparisonDrawer() {
64
64
  width={500}
65
65
  onClose={onClose}
66
66
  placement="right"
67
- title="添加商品对照"
67
+ title="商品映射"
68
68
  visible={!!good}
69
69
  footer={
70
70
  <div style={{ display: 'flex', justifyContent: 'flex-end', gap: 10 }} >
@@ -171,10 +171,10 @@ export default (form: WrappedFormUtils) => {
171
171
  dataSource={unitList}
172
172
  onChange={async () => {
173
173
  await controller.wait()
174
- const key = isMyShow ? 'unit' : 'unitOther';
175
- const value = {} as any;
176
- value[key] = form.getFieldsValue().unit;
177
- controller.setEditGood(value);
174
+ // const key = isMyShow ? 'unit' : 'unitOther';
175
+ // const value = {} as any;
176
+ // value[key] = form.getFieldsValue().unit;
177
+ controller.setEditGood({unit: form.getFieldsValue().unit});
178
178
  }}
179
179
  />,
180
180
  )}
@@ -1,8 +1,8 @@
1
1
 
2
2
  import React from 'react';
3
3
  import { Checkbox } from 'kts-components-antd-x3';
4
- import Invoice from '../../../../';
5
4
  import { LineAttributeType } from '../../../../InvoiceController';
5
+ import Invoice from '../../../../';
6
6
 
7
7
  export default () => {
8
8
 
@@ -30,7 +30,7 @@ export default function Search() {
30
30
 
31
31
  React.useEffect(() => {
32
32
  controller.run(async s => {
33
- s.goodsListState.searchValue = value.replace(/^ */, '').replace(/ *$/, '');
33
+ s.goodsListState.searchValue = value.trim();
34
34
  })
35
35
  }, [value, controller])
36
36