kts-component-invoice-operate 3.2.136 → 3.2.137
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 +36 -12
- package/dist/index.js +36 -12
- package/package.json +1 -1
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +64 -74
- package/dist/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.d.ts +0 -4
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +0 -44
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +0 -96
package/dist/index.esm.js
CHANGED
|
@@ -17015,8 +17015,11 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17015
17015
|
readOnly: isReadOnly('buyerTaxId'),
|
|
17016
17016
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17017
17017
|
autoComplete: "off"
|
|
17018
|
-
})))),
|
|
17019
|
-
span: 14
|
|
17018
|
+
})))), React.createElement(Col, {
|
|
17019
|
+
span: 14,
|
|
17020
|
+
style: {
|
|
17021
|
+
display: isExpand ? undefined : 'none'
|
|
17022
|
+
}
|
|
17020
17023
|
}, React.createElement(Form.Item, {
|
|
17021
17024
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17022
17025
|
colon: false
|
|
@@ -17030,7 +17033,10 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17030
17033
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17031
17034
|
autoComplete: "off"
|
|
17032
17035
|
})))), React.createElement(Col, {
|
|
17033
|
-
span: 10
|
|
17036
|
+
span: 10,
|
|
17037
|
+
style: {
|
|
17038
|
+
display: isExpand ? undefined : 'none'
|
|
17039
|
+
}
|
|
17034
17040
|
}, React.createElement(Form.Item, {
|
|
17035
17041
|
label: "\u7535\u8BDD",
|
|
17036
17042
|
colon: false,
|
|
@@ -17042,7 +17048,10 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17042
17048
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17043
17049
|
autoComplete: "off"
|
|
17044
17050
|
})))), React.createElement(Col, {
|
|
17045
|
-
span: 14
|
|
17051
|
+
span: 14,
|
|
17052
|
+
style: {
|
|
17053
|
+
display: isExpand ? undefined : 'none'
|
|
17054
|
+
}
|
|
17046
17055
|
}, React.createElement(Form.Item, {
|
|
17047
17056
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17048
17057
|
colon: false
|
|
@@ -17053,7 +17062,10 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17053
17062
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17054
17063
|
autoComplete: "off"
|
|
17055
17064
|
})))), React.createElement(Col, {
|
|
17056
|
-
span: 10
|
|
17065
|
+
span: 10,
|
|
17066
|
+
style: {
|
|
17067
|
+
display: isExpand ? undefined : 'none'
|
|
17068
|
+
}
|
|
17057
17069
|
}, React.createElement(Form.Item, {
|
|
17058
17070
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17059
17071
|
colon: false
|
|
@@ -17063,7 +17075,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17063
17075
|
readOnly: isReadOnly('buyerAccount'),
|
|
17064
17076
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17065
17077
|
autoComplete: "off"
|
|
17066
|
-
})))))))
|
|
17078
|
+
}))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17067
17079
|
return React.createElement("span", null, e);
|
|
17068
17080
|
}), !readOnly && React.createElement(Icon, {
|
|
17069
17081
|
className: "digtal-stakeholder-expand-button",
|
|
@@ -17111,8 +17123,11 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17111
17123
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17112
17124
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17113
17125
|
autoComplete: "off"
|
|
17114
|
-
})))),
|
|
17115
|
-
span: 12
|
|
17126
|
+
})))), React.createElement(Col, {
|
|
17127
|
+
span: 12,
|
|
17128
|
+
style: {
|
|
17129
|
+
display: isExpand ? undefined : 'none'
|
|
17130
|
+
}
|
|
17116
17131
|
}, React.createElement(Form.Item, {
|
|
17117
17132
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17118
17133
|
colon: false
|
|
@@ -17126,7 +17141,10 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17126
17141
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17127
17142
|
autoComplete: "off"
|
|
17128
17143
|
})))), React.createElement(Col, {
|
|
17129
|
-
span: 12
|
|
17144
|
+
span: 12,
|
|
17145
|
+
style: {
|
|
17146
|
+
display: isExpand ? undefined : 'none'
|
|
17147
|
+
}
|
|
17130
17148
|
}, React.createElement(Form.Item, {
|
|
17131
17149
|
label: "\u7535\u8BDD",
|
|
17132
17150
|
colon: false,
|
|
@@ -17138,7 +17156,10 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17138
17156
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17139
17157
|
autoComplete: "off"
|
|
17140
17158
|
})))), React.createElement(Col, {
|
|
17141
|
-
span: 12
|
|
17159
|
+
span: 12,
|
|
17160
|
+
style: {
|
|
17161
|
+
display: isExpand ? undefined : 'none'
|
|
17162
|
+
}
|
|
17142
17163
|
}, React.createElement(Form.Item, {
|
|
17143
17164
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17144
17165
|
colon: false
|
|
@@ -17149,7 +17170,10 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17149
17170
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17150
17171
|
autoComplete: "off"
|
|
17151
17172
|
})))), React.createElement(Col, {
|
|
17152
|
-
span: 12
|
|
17173
|
+
span: 12,
|
|
17174
|
+
style: {
|
|
17175
|
+
display: isExpand ? undefined : 'none'
|
|
17176
|
+
}
|
|
17153
17177
|
}, React.createElement(Form.Item, {
|
|
17154
17178
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17155
17179
|
colon: false
|
|
@@ -17159,7 +17183,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17159
17183
|
readOnly: isReadOnly('sellerAccount'),
|
|
17160
17184
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17161
17185
|
autoComplete: "off"
|
|
17162
|
-
}))))))))
|
|
17186
|
+
}))))))));
|
|
17163
17187
|
});
|
|
17164
17188
|
|
|
17165
17189
|
function NaturalPersonFlag(props) {
|
package/dist/index.js
CHANGED
|
@@ -17025,8 +17025,11 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17025
17025
|
readOnly: isReadOnly('buyerTaxId'),
|
|
17026
17026
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17027
17027
|
autoComplete: "off"
|
|
17028
|
-
})))),
|
|
17029
|
-
span: 14
|
|
17028
|
+
})))), React__default['default'].createElement(ktsXui.Col, {
|
|
17029
|
+
span: 14,
|
|
17030
|
+
style: {
|
|
17031
|
+
display: isExpand ? undefined : 'none'
|
|
17032
|
+
}
|
|
17030
17033
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17031
17034
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17032
17035
|
colon: false
|
|
@@ -17040,7 +17043,10 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17040
17043
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17041
17044
|
autoComplete: "off"
|
|
17042
17045
|
})))), React__default['default'].createElement(ktsXui.Col, {
|
|
17043
|
-
span: 10
|
|
17046
|
+
span: 10,
|
|
17047
|
+
style: {
|
|
17048
|
+
display: isExpand ? undefined : 'none'
|
|
17049
|
+
}
|
|
17044
17050
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17045
17051
|
label: "\u7535\u8BDD",
|
|
17046
17052
|
colon: false,
|
|
@@ -17052,7 +17058,10 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17052
17058
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17053
17059
|
autoComplete: "off"
|
|
17054
17060
|
})))), React__default['default'].createElement(ktsXui.Col, {
|
|
17055
|
-
span: 14
|
|
17061
|
+
span: 14,
|
|
17062
|
+
style: {
|
|
17063
|
+
display: isExpand ? undefined : 'none'
|
|
17064
|
+
}
|
|
17056
17065
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17057
17066
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17058
17067
|
colon: false
|
|
@@ -17063,7 +17072,10 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17063
17072
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17064
17073
|
autoComplete: "off"
|
|
17065
17074
|
})))), React__default['default'].createElement(ktsXui.Col, {
|
|
17066
|
-
span: 10
|
|
17075
|
+
span: 10,
|
|
17076
|
+
style: {
|
|
17077
|
+
display: isExpand ? undefined : 'none'
|
|
17078
|
+
}
|
|
17067
17079
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17068
17080
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17069
17081
|
colon: false
|
|
@@ -17073,7 +17085,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17073
17085
|
readOnly: isReadOnly('buyerAccount'),
|
|
17074
17086
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17075
17087
|
autoComplete: "off"
|
|
17076
|
-
})))))))
|
|
17088
|
+
}))))))), React__default['default'].createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17077
17089
|
return React__default['default'].createElement("span", null, e);
|
|
17078
17090
|
}), !readOnly && React__default['default'].createElement(Icon, {
|
|
17079
17091
|
className: "digtal-stakeholder-expand-button",
|
|
@@ -17121,8 +17133,11 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17121
17133
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17122
17134
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17123
17135
|
autoComplete: "off"
|
|
17124
|
-
})))),
|
|
17125
|
-
span: 12
|
|
17136
|
+
})))), React__default['default'].createElement(ktsXui.Col, {
|
|
17137
|
+
span: 12,
|
|
17138
|
+
style: {
|
|
17139
|
+
display: isExpand ? undefined : 'none'
|
|
17140
|
+
}
|
|
17126
17141
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17127
17142
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17128
17143
|
colon: false
|
|
@@ -17136,7 +17151,10 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17136
17151
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17137
17152
|
autoComplete: "off"
|
|
17138
17153
|
})))), React__default['default'].createElement(ktsXui.Col, {
|
|
17139
|
-
span: 12
|
|
17154
|
+
span: 12,
|
|
17155
|
+
style: {
|
|
17156
|
+
display: isExpand ? undefined : 'none'
|
|
17157
|
+
}
|
|
17140
17158
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17141
17159
|
label: "\u7535\u8BDD",
|
|
17142
17160
|
colon: false,
|
|
@@ -17148,7 +17166,10 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17148
17166
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17149
17167
|
autoComplete: "off"
|
|
17150
17168
|
})))), React__default['default'].createElement(ktsXui.Col, {
|
|
17151
|
-
span: 12
|
|
17169
|
+
span: 12,
|
|
17170
|
+
style: {
|
|
17171
|
+
display: isExpand ? undefined : 'none'
|
|
17172
|
+
}
|
|
17152
17173
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17153
17174
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17154
17175
|
colon: false
|
|
@@ -17159,7 +17180,10 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17159
17180
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17160
17181
|
autoComplete: "off"
|
|
17161
17182
|
})))), React__default['default'].createElement(ktsXui.Col, {
|
|
17162
|
-
span: 12
|
|
17183
|
+
span: 12,
|
|
17184
|
+
style: {
|
|
17185
|
+
display: isExpand ? undefined : 'none'
|
|
17186
|
+
}
|
|
17163
17187
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17164
17188
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17165
17189
|
colon: false
|
|
@@ -17169,7 +17193,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17169
17193
|
readOnly: isReadOnly('sellerAccount'),
|
|
17170
17194
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17171
17195
|
autoComplete: "off"
|
|
17172
|
-
}))))))))
|
|
17196
|
+
}))))))));
|
|
17173
17197
|
});
|
|
17174
17198
|
|
|
17175
17199
|
function NaturalPersonFlag(props) {
|
package/package.json
CHANGED
|
@@ -168,43 +168,38 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
168
168
|
)}
|
|
169
169
|
</Form.Item>
|
|
170
170
|
</Col>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
</Form.Item>
|
|
204
|
-
</Col>
|
|
205
|
-
</>
|
|
206
|
-
)
|
|
207
|
-
}
|
|
171
|
+
|
|
172
|
+
<Col span={14} style={{ display: isExpand ? undefined : 'none' }} >
|
|
173
|
+
<Form.Item label='购买方地址' colon={false}>
|
|
174
|
+
{getFieldDecorator('buyerAddress', {
|
|
175
|
+
rules: getRules('buyerAddress', [{ max: 100, message: '购买方地址内容超长' }])
|
|
176
|
+
})(<MyInput readOnly={isReadOnly('buyerAddress')} placeholder="请输入购买方地址" autoComplete="off" />)}
|
|
177
|
+
</Form.Item>
|
|
178
|
+
</Col>
|
|
179
|
+
|
|
180
|
+
<Col span={10} style={{ display: isExpand ? undefined : 'none' }} >
|
|
181
|
+
<Form.Item label='电话' colon={false} className='telephone'>
|
|
182
|
+
{getFieldDecorator('buyerPhone', {
|
|
183
|
+
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
184
|
+
})(<MyInput readOnly={isReadOnly('buyerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
185
|
+
</Form.Item>
|
|
186
|
+
</Col>
|
|
187
|
+
|
|
188
|
+
<Col span={14} style={{ display: isExpand ? undefined : 'none' }} >
|
|
189
|
+
<Form.Item label='购买方开户银行' colon={false}>
|
|
190
|
+
{getFieldDecorator('buyerBank', {
|
|
191
|
+
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
192
|
+
})(<MyInput readOnly={isReadOnly('buyerBank')} placeholder="请输入购买方开户银行" autoComplete="off" />)}
|
|
193
|
+
</Form.Item>
|
|
194
|
+
</Col>
|
|
195
|
+
|
|
196
|
+
<Col span={10} style={{ display: isExpand ? undefined : 'none' }} >
|
|
197
|
+
<Form.Item label='银行账号' colon={false}>
|
|
198
|
+
{getFieldDecorator('buyerAccount', {
|
|
199
|
+
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
200
|
+
})(<MyInput readOnly={isReadOnly('buyerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
|
|
201
|
+
</Form.Item>
|
|
202
|
+
</Col>
|
|
208
203
|
</Row>
|
|
209
204
|
</Form>
|
|
210
205
|
</div>
|
|
@@ -246,43 +241,38 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
246
241
|
})(<MyInput readOnly={isReadOnly('supplierTaxId')} placeholder="请输入统一社会信用代码/纳税人识别号" autoComplete="off" />)}
|
|
247
242
|
</Form.Item>
|
|
248
243
|
</Col>
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
</Form.Item>
|
|
282
|
-
</Col>
|
|
283
|
-
</>
|
|
284
|
-
)
|
|
285
|
-
}
|
|
244
|
+
|
|
245
|
+
<Col span={12} style={{ display: isExpand ? undefined : 'none' }} >
|
|
246
|
+
<Form.Item label='销售方地址' colon={false}>
|
|
247
|
+
{getFieldDecorator('sellerAddress', {
|
|
248
|
+
rules: getRules('sellerAddress', [{ max: 300, message: '销售方地址内容超长' }])
|
|
249
|
+
})(<MyInput readOnly={isReadOnly('sellerAddress')} placeholder="请输入销售方地址" autoComplete="off" />)}
|
|
250
|
+
</Form.Item>
|
|
251
|
+
</Col>
|
|
252
|
+
|
|
253
|
+
<Col span={12} style={{ display: isExpand ? undefined : 'none' }} >
|
|
254
|
+
<Form.Item label='电话' colon={false} className='telephone' >
|
|
255
|
+
{getFieldDecorator('sellerPhone', {
|
|
256
|
+
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
257
|
+
})(<MyInput readOnly={isReadOnly('sellerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
258
|
+
</Form.Item>
|
|
259
|
+
</Col>
|
|
260
|
+
|
|
261
|
+
<Col span={12} style={{ display: isExpand ? undefined : 'none' }} >
|
|
262
|
+
<Form.Item label='销售方开户银行' colon={false}>
|
|
263
|
+
{getFieldDecorator('sellerBank', {
|
|
264
|
+
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
265
|
+
})(<MyInput readOnly={isReadOnly('sellerBank')} placeholder="请输入销售方开户银行" autoComplete="off" />)}
|
|
266
|
+
</Form.Item>
|
|
267
|
+
</Col>
|
|
268
|
+
|
|
269
|
+
<Col span={12} style={{ display: isExpand ? undefined : 'none' }} >
|
|
270
|
+
<Form.Item label='银行账号' colon={false}>
|
|
271
|
+
{getFieldDecorator('sellerAccount', {
|
|
272
|
+
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
273
|
+
})(<MyInput readOnly={isReadOnly('sellerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
|
|
274
|
+
</Form.Item>
|
|
275
|
+
</Col>
|
|
286
276
|
</Row>
|
|
287
277
|
</Form>
|
|
288
278
|
</div>
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
.kts-invoice-operate-goods-table-virtual {
|
|
2
|
-
.ktsAnt3x-table-placeholder {
|
|
3
|
-
position: absolute;
|
|
4
|
-
top: 50px;
|
|
5
|
-
left: 0;
|
|
6
|
-
width: 100%;
|
|
7
|
-
border: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.ktsAnt3x-table {
|
|
11
|
-
font-size: 12px;
|
|
12
|
-
border: none;
|
|
13
|
-
border-radius: 0;
|
|
14
|
-
|
|
15
|
-
.ktsAnt3x-table-content {
|
|
16
|
-
border-right: none;
|
|
17
|
-
|
|
18
|
-
.ktsAnt3x-table-body {
|
|
19
|
-
margin: 0;
|
|
20
|
-
|
|
21
|
-
table {
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: 0;
|
|
24
|
-
left: 0;
|
|
25
|
-
border-bottom: 1px solid #e8e8e8;
|
|
26
|
-
|
|
27
|
-
tr {
|
|
28
|
-
height: 32px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
tr:hover {
|
|
32
|
-
td{
|
|
33
|
-
background: none;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ktsAnt3x-table-thead>tr {
|
|
41
|
-
background-color: #f6f7f9;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Table } from 'kts-components-antd-x3';
|
|
3
|
-
import { TableProps } from 'kts-components-antd-x3/lib/table/interface';
|
|
4
|
-
import './index.less';
|
|
5
|
-
|
|
6
|
-
export default function <T = any>(props: TableProps<T>) {
|
|
7
|
-
const [self, setSelf] = React.useState<HTMLSpanElement | null>(null);
|
|
8
|
-
|
|
9
|
-
const tableBody = React.useMemo(() => {
|
|
10
|
-
if (!self) return;
|
|
11
|
-
return self.querySelector('.ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body') as HTMLDivElement;
|
|
12
|
-
}, [self]);
|
|
13
|
-
|
|
14
|
-
/** 显示指针 */
|
|
15
|
-
const [pointer, setPointer] = React.useState(0);
|
|
16
|
-
|
|
17
|
-
/** 行高 */
|
|
18
|
-
const rowHeight = React.useMemo(() => {
|
|
19
|
-
if (!self) return 33;
|
|
20
|
-
|
|
21
|
-
const td = self.querySelector('.ktsAnt3x-table-tbody td');
|
|
22
|
-
if (!td) return 33;
|
|
23
|
-
|
|
24
|
-
return td.clientHeight;
|
|
25
|
-
}, [self, props.dataSource]);
|
|
26
|
-
|
|
27
|
-
/** 间隔容器 */
|
|
28
|
-
const placeholder = React.useMemo(() => {
|
|
29
|
-
if (!self || !tableBody) return;
|
|
30
|
-
let placeholder = tableBody.querySelector(
|
|
31
|
-
'.table-virtual-placeholder',
|
|
32
|
-
) as HTMLDivElement;
|
|
33
|
-
if (!placeholder) {
|
|
34
|
-
placeholder = document.createElement('div');
|
|
35
|
-
placeholder.className = 'table-virtual-placeholder';
|
|
36
|
-
tableBody.appendChild(placeholder);
|
|
37
|
-
}
|
|
38
|
-
return placeholder;
|
|
39
|
-
}, [self, tableBody]);
|
|
40
|
-
|
|
41
|
-
// 设置占位dom的搞
|
|
42
|
-
const placeholderHeight = React.useMemo(() => {
|
|
43
|
-
if (!self || !rowHeight || !props.dataSource || !placeholder) return;
|
|
44
|
-
const placeholderHeight = rowHeight * props.dataSource.length;
|
|
45
|
-
placeholder.style.height = `${placeholderHeight}px`;
|
|
46
|
-
return placeholderHeight;
|
|
47
|
-
}, [self, rowHeight, props.dataSource, placeholder]);
|
|
48
|
-
|
|
49
|
-
/** 可以容纳的行数 */
|
|
50
|
-
const rowSize = React.useMemo(() => {
|
|
51
|
-
if (!tableBody! || !rowHeight) return 0;
|
|
52
|
-
return Math.ceil(tableBody.clientHeight / rowHeight);
|
|
53
|
-
}, [tableBody, rowHeight, placeholderHeight]);
|
|
54
|
-
|
|
55
|
-
// 计算渲染的行
|
|
56
|
-
const dataSource = React.useMemo(() => {
|
|
57
|
-
if (!props.dataSource) return [];
|
|
58
|
-
if (props.dataSource.length < 10) return props.dataSource;
|
|
59
|
-
|
|
60
|
-
if (!rowSize) return [props.dataSource[0]];
|
|
61
|
-
return props.dataSource?.slice(pointer, pointer + 2 * rowSize);
|
|
62
|
-
}, [props.dataSource, pointer, rowSize]);
|
|
63
|
-
|
|
64
|
-
// 监听滚动
|
|
65
|
-
React.useEffect(() => {
|
|
66
|
-
if (!self || !placeholder || !props.dataSource || !rowHeight || !tableBody)
|
|
67
|
-
return;
|
|
68
|
-
|
|
69
|
-
const onScroll = () => {
|
|
70
|
-
if (!props.dataSource || !tableBody) return;
|
|
71
|
-
setPointer(Math.floor((props.dataSource.length - rowSize) * (tableBody.scrollTop / (placeholder.clientHeight - tableBody.clientHeight))));
|
|
72
|
-
};
|
|
73
|
-
onScroll();
|
|
74
|
-
|
|
75
|
-
tableBody.addEventListener('scroll', onScroll);
|
|
76
|
-
return () => {
|
|
77
|
-
tableBody.removeEventListener('scroll', onScroll);
|
|
78
|
-
};
|
|
79
|
-
}, [self, placeholder, props.dataSource, rowHeight, rowSize]);
|
|
80
|
-
|
|
81
|
-
// 移动列表
|
|
82
|
-
React.useEffect(() => {
|
|
83
|
-
if (!self) return;
|
|
84
|
-
|
|
85
|
-
const table = self.querySelector('.ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table') as HTMLDivElement;
|
|
86
|
-
if (!table) return;
|
|
87
|
-
|
|
88
|
-
table.style.top = `${pointer * rowHeight}px`;
|
|
89
|
-
}, [pointer, self, rowHeight]);
|
|
90
|
-
|
|
91
|
-
return (
|
|
92
|
-
<span className="kts-invoice-operate-goods-table-virtual" ref={(e) => { setSelf(e) }} >
|
|
93
|
-
<Table {...props} dataSource={dataSource} />
|
|
94
|
-
</span>
|
|
95
|
-
);
|
|
96
|
-
}
|