kts-component-invoice-operate 1.2.4 → 1.2.7
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
|
@@ -19,16 +19,20 @@ class MyController extends Invoice.InvoiceController {
|
|
|
19
19
|
await this.wait(2000);
|
|
20
20
|
return {
|
|
21
21
|
recent: [
|
|
22
|
-
{ buyerName: '中科讯联科技北京网络有限公司',
|
|
23
|
-
{ buyerName: '中科讯联科技北京网络有限公司',
|
|
24
|
-
{ buyerName: '中科讯联科技北京网络有限公司',
|
|
22
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
23
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
24
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
25
25
|
],
|
|
26
26
|
list: [
|
|
27
|
-
{ buyerName: '
|
|
28
|
-
{ buyerName: '中科讯联科技北京网络有限公司',
|
|
29
|
-
{ buyerName: '中科讯联科技北京网络有限公司',
|
|
30
|
-
{ buyerName: '中科讯联科技北京网络有限公司',
|
|
31
|
-
{ buyerName: '中科讯联科技北京网络有限公司',
|
|
27
|
+
{ buyerName: '中科讯联科技北京网络有限公司中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
28
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
29
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
30
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
31
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
32
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
33
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
34
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
35
|
+
{ buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
|
|
32
36
|
],
|
|
33
37
|
}
|
|
34
38
|
}
|
|
@@ -115,7 +115,6 @@
|
|
|
115
115
|
padding : 6px 0;
|
|
116
116
|
display : flex;
|
|
117
117
|
flex-direction: column;
|
|
118
|
-
max-height : 400px;
|
|
119
118
|
overflow-y : auto;
|
|
120
119
|
overflow-x : hidden;
|
|
121
120
|
}
|
|
@@ -177,9 +176,13 @@
|
|
|
177
176
|
}
|
|
178
177
|
|
|
179
178
|
li {
|
|
180
|
-
list-style: none;
|
|
181
|
-
width
|
|
182
|
-
float
|
|
179
|
+
list-style : none;
|
|
180
|
+
width : 50%;
|
|
181
|
+
float : left;
|
|
182
|
+
text-overflow: ellipsis;
|
|
183
|
+
white-space : nowrap;
|
|
184
|
+
overflow : hidden;
|
|
185
|
+
padding-right: 10px;
|
|
183
186
|
}
|
|
184
187
|
|
|
185
188
|
&::after {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Popover, Input, Divider, Spin } from 'kts-components-antd-x3';
|
|
3
|
+
import { Popover, Input, Divider, Spin, Empty } from 'kts-components-antd-x3';
|
|
4
4
|
import Invoice from '../../../../';
|
|
5
5
|
import { IBuyerInfo } from '../../../../InvoiceController/InvoiceControllerState/BuyerState';
|
|
6
6
|
|
|
@@ -42,22 +42,30 @@ export default (props: IBuyerNameInputProps) => {
|
|
|
42
42
|
<div className='kts-invoice-operate-buyer-name-content-block' style={{ padding: '14px 10px' }} >
|
|
43
43
|
<label style={{ marginBottom: 10 }} >最近开具</label>
|
|
44
44
|
<ul className='kts-invoice-operate-buyer-name-content-recently-issued' >
|
|
45
|
-
{
|
|
45
|
+
{
|
|
46
|
+
!dataSource.recent || dataSource.recent.length <= 0
|
|
47
|
+
? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
|
|
48
|
+
: dataSource.recent?.map((e, i) => <li key={i} onClick={() => { onClickItem(e) }} style={{ marginBottom: interval(i, dataSource.recent?.length ?? 0) }} ><MyTag>{e.buyerName}</MyTag></li>)
|
|
49
|
+
}
|
|
46
50
|
</ul>
|
|
47
51
|
</div>
|
|
48
52
|
<Divider style={{ margin: "0 6px" }} />
|
|
49
53
|
<div className='kts-invoice-operate-buyer-name-content-block' style={{ padding: '14px 10px 4px' }} >
|
|
50
54
|
<label style={{ padding: '0 10px' }} >选择公司</label>
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
<div style={{ maxHeight: 200, overflow: "auto" }} >
|
|
56
|
+
{
|
|
57
|
+
!dataSource.list || dataSource.list.length <= 0
|
|
58
|
+
? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
|
|
59
|
+
: dataSource.list.map((e, i) => {
|
|
60
|
+
return (
|
|
61
|
+
<ul key={i} onClick={() => { onClickItem(e) }} className='kts-invoice-operate-buyer-name-content-select-company' >
|
|
62
|
+
<li title={e.buyerName} >{e.buyerName}</li>
|
|
63
|
+
<li title={e.buyerNo} >{e.buyerNo}</li>
|
|
64
|
+
</ul>
|
|
65
|
+
)
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
</div>
|
|
61
69
|
</div>
|
|
62
70
|
</>
|
|
63
71
|
)
|
|
@@ -100,7 +108,7 @@ export default (props: IBuyerNameInputProps) => {
|
|
|
100
108
|
overlayClassName='kts-invoice-operate-buyer-name-popover'
|
|
101
109
|
placement="bottomLeft"
|
|
102
110
|
trigger="click"
|
|
103
|
-
visible={visible}
|
|
111
|
+
visible={visible || true}
|
|
104
112
|
content={content}
|
|
105
113
|
>
|
|
106
114
|
<Input
|