kts-component-invoice-operate 2.0.3 → 2.0.6
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 +2 -12
- package/dist/index.js +2 -12
- package/docs-dist/umi.js +1 -1
- package/package.json +1 -1
- package/src/Invoice/_test/importGoods/index.tsx +25 -8
- package/src/Invoice/ui/AddComparisonDrawer/index.tsx +2 -2
- package/src/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +1 -1
- package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +1 -1
package/package.json
CHANGED
|
@@ -37,15 +37,32 @@ class MyInvoiceController extends InvoiceController {
|
|
|
37
37
|
// 设置比对方法
|
|
38
38
|
this.state.goodsListState.productComparison = {
|
|
39
39
|
onComply: async (e: IGood[]) => {
|
|
40
|
-
return e.map(e => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
// return e.map(e => {
|
|
41
|
+
// return {
|
|
42
|
+
// ...e,
|
|
43
|
+
// itemName: e.itemNameSelf + '(他方)',
|
|
44
|
+
// itemModelName: e.itemModelNameSelf + '(他方)',
|
|
45
|
+
// itemCode: e.itemCodeSelf + '(他方)',
|
|
46
|
+
// }
|
|
47
|
+
// })
|
|
48
|
+
return [
|
|
49
|
+
{
|
|
50
|
+
"itemCodeSelf": null,
|
|
51
|
+
"itemNameSelf": "china",
|
|
52
|
+
"itemModelNameSelf": "xx",
|
|
53
|
+
"itemCode": null,
|
|
54
|
+
"itemName": "中国",
|
|
55
|
+
"itemModelName": "北京房山 "
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"itemCodeSelf": null,
|
|
59
|
+
"itemNameSelf": "china",
|
|
60
|
+
"itemModelNameSelf": "xx",
|
|
61
|
+
"itemCode": null,
|
|
62
|
+
"itemName": "中国",
|
|
63
|
+
"itemModelName": "北京房山 "
|
|
47
64
|
}
|
|
48
|
-
|
|
65
|
+
] as any
|
|
49
66
|
}
|
|
50
67
|
}
|
|
51
68
|
|
|
@@ -77,7 +77,7 @@ export default function AddComparisonDrawer() {
|
|
|
77
77
|
!!good &&
|
|
78
78
|
<Form layout="vertical" style={{ flex: 1 }} form={form} >
|
|
79
79
|
<Row gutter={[8, 8]} >
|
|
80
|
-
<Col span={12}>
|
|
80
|
+
{/* <Col span={12}>
|
|
81
81
|
<Form.Item
|
|
82
82
|
name="itemCodeSelf"
|
|
83
83
|
label="我方商品编码"
|
|
@@ -92,7 +92,7 @@ export default function AddComparisonDrawer() {
|
|
|
92
92
|
>
|
|
93
93
|
<Input />
|
|
94
94
|
</Form.Item>
|
|
95
|
-
</Col>
|
|
95
|
+
</Col> */}
|
|
96
96
|
<Col span={12} >
|
|
97
97
|
<Form.Item
|
|
98
98
|
name="itemNameSelf"
|