kts-component-invoice-operate 3.2.226 → 3.2.228-fuling

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.
Files changed (90) hide show
  1. package/README.md +0 -4
  2. package/dist/Invoice/Invoice-digtal/_test/pay/index.d.ts +4 -0
  3. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +0 -1
  4. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.d.ts +0 -2
  5. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +0 -2
  6. package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/IColumnsReplenish/index.d.ts +6 -0
  7. package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/IGood/index.d.ts +12 -0
  8. package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/ImportGoods/index.d.ts +21 -0
  9. package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/index.d.ts +31 -0
  10. package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +2 -0
  11. package/dist/Invoice/InvoiceController/fns/addPay.d.ts +6 -0
  12. package/dist/Invoice/InvoiceController/fns/delPay.d.ts +6 -0
  13. package/dist/Invoice/InvoiceController/fns/saveEditPay.d.ts +6 -0
  14. package/dist/Invoice/InvoiceController/fns/setEditPay.d.ts +6 -0
  15. package/dist/Invoice/InvoiceController/fns/setPay.d.ts +6 -0
  16. package/dist/Invoice/InvoiceController/index.d.ts +6 -0
  17. package/dist/Invoice/index.d.ts +2 -0
  18. package/dist/Invoice/ui/default/GoodsList/index.d.ts +0 -1
  19. package/dist/Invoice/ui/default/GoodsList/ui/AddRowButton/index.d.ts +1 -1
  20. package/dist/Invoice/ui/digtal/GoodsList/index.d.ts +0 -1
  21. package/dist/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.d.ts +1 -4
  22. package/dist/Invoice/ui/digtal/PayList/hook/useColumns/index.d.ts +3 -0
  23. package/dist/Invoice/ui/digtal/PayList/hook/useColumns/ui/TitleText/index.d.ts +8 -0
  24. package/dist/Invoice/ui/digtal/PayList/hook/useOnRow/index.d.ts +8 -0
  25. package/dist/Invoice/ui/digtal/PayList/hook/useRowSelection/index.d.ts +8 -0
  26. package/dist/Invoice/ui/digtal/PayList/hook/useWindowClick/index.d.ts +5 -0
  27. package/dist/Invoice/ui/digtal/PayList/index.d.ts +18 -0
  28. package/dist/Invoice/ui/digtal/PayList/ui/AddRowButton/index.d.ts +3 -0
  29. package/dist/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +6 -0
  30. package/dist/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useEmptyRefill/index.d.ts +6 -0
  31. package/dist/Invoice/ui/digtal/PayList/ui/TableRow/index.d.ts +3 -0
  32. package/dist/Invoice/ui/digtal/PayList/ui/TableVirtual/index.d.ts +4 -0
  33. package/dist/index.esm.js +8097 -6064
  34. package/dist/index.js +8096 -6063
  35. package/package.json +1 -1
  36. package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +41 -9
  37. package/src/Invoice/Invoice-digtal/_test/freight/index.tsx +23 -17
  38. package/src/Invoice/Invoice-digtal/_test/pay/index.tsx +14637 -0
  39. package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +7 -69
  40. package/src/Invoice/Invoice-digtal/index.md +16 -8
  41. package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +11 -0
  42. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +0 -2
  43. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +0 -3
  44. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +0 -3
  45. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/IColumnsReplenish/index.ts +10 -0
  46. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/IGood/index.ts +35 -0
  47. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/ImportGoods/index.ts +81 -0
  48. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/index.ts +40 -0
  49. package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +3 -0
  50. package/src/Invoice/InvoiceController/fns/addPay.ts +11 -0
  51. package/src/Invoice/InvoiceController/fns/delPay.ts +38 -0
  52. package/src/Invoice/InvoiceController/fns/saveEditGood.ts +2 -2
  53. package/src/Invoice/InvoiceController/fns/saveEditPay.ts +23 -0
  54. package/src/Invoice/InvoiceController/fns/setEditPay.ts +16 -0
  55. package/src/Invoice/InvoiceController/fns/setPay.ts +11 -0
  56. package/src/Invoice/InvoiceController/index.ts +21 -0
  57. package/src/Invoice/_test/deduction/index.tsx +6 -28
  58. package/src/Invoice/index.md +4 -4
  59. package/src/Invoice/index.tsx +3 -0
  60. package/src/Invoice/tools/useToGenerateId/index.ts +2 -0
  61. package/src/Invoice/ui/default/GoodsList/index.tsx +1 -3
  62. package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +1 -8
  63. package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +1 -4
  64. package/src/Invoice/ui/digtal/Architecture/index.tsx +1 -1
  65. package/src/Invoice/ui/digtal/FreightList/index.tsx +1 -1
  66. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +23 -37
  67. package/src/Invoice/ui/digtal/GoodsList/index.tsx +1 -3
  68. package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +10 -20
  69. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +6 -11
  70. package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +2 -5
  71. package/src/Invoice/ui/digtal/PayList/hook/useColumns/dist/index.js +616 -0
  72. package/src/Invoice/ui/digtal/PayList/hook/useColumns/index.tsx +168 -0
  73. package/src/Invoice/ui/digtal/PayList/hook/useColumns/ui/TitleText/index.tsx +20 -0
  74. package/src/Invoice/ui/digtal/PayList/hook/useOnRow/index.tsx +37 -0
  75. package/src/Invoice/ui/digtal/PayList/hook/useRowSelection/index.tsx +120 -0
  76. package/src/Invoice/ui/digtal/PayList/hook/useWindowClick/index.tsx +19 -0
  77. package/src/Invoice/ui/digtal/PayList/index.less +73 -0
  78. package/src/Invoice/ui/digtal/PayList/index.tsx +132 -0
  79. package/src/Invoice/ui/digtal/PayList/ui/AddRowButton/index.tsx +75 -0
  80. package/src/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -0
  81. package/src/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -0
  82. package/src/Invoice/ui/digtal/PayList/ui/TableRow/index.less +29 -0
  83. package/src/Invoice/ui/digtal/PayList/ui/TableRow/index.tsx +21 -0
  84. package/src/Invoice/ui/digtal/PayList/ui/TableVirtual/index.less +39 -0
  85. package/src/Invoice/ui/digtal/PayList/ui/TableVirtual/index.tsx +109 -0
  86. package/src/Invoice/ui/digtal/RealEstateInfo/index.less +0 -7
  87. package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +104 -363
  88. package/src/Invoice/ui/digtal/StakeFarmerholder/index.less +1 -1
  89. package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +528 -207
  90. package/src/Invoice/ui/digtal/Stakeholder/index.tsx +4 -22
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import Icon from '@ant-design/icons';
4
4
  import { decorator } from "grey-react-box";
5
5
  import { Form } from "kts-components-antd-x3";
6
- import { AutoComplete, Button, Checkbox, Col, Input, InputProps, Row, Tooltip } from 'kts-xui'
6
+ import { AutoComplete, Button, Checkbox, Col, Input, InputProps, Select, Row, Tooltip } from 'kts-xui'
7
7
  import { CheckboxChangeEvent } from 'kts-components-antd-x4/lib/checkbox';
8
8
  import { FormComponentProps } from "kts-components-antd-x3/lib/form";
9
9
  import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
@@ -30,7 +30,7 @@ const RULES = {
30
30
  { pattern: /^[0-9\s\-\+]+$/g, message: `${label}仅能数字、空格、-、+` }
31
31
  ],
32
32
  sellerTelPhone: (label: string) => [
33
-
33
+
34
34
  { max: 100, message: `${label}内容超长` },
35
35
  { pattern: /^[0-9\s\-\+]+$/g, message: `${label}仅能数字、空格、-、+` }
36
36
  ],
@@ -40,7 +40,11 @@ const RULES = {
40
40
  bankAccount: (label: string) => [
41
41
  { max: 100, message: `${label}内容超长` },
42
42
  { pattern: /^([0-9a-zA-Z-\s])*$/g, message: `${label}仅能数字、字母、-、空格` }
43
- ]
43
+ ],
44
+ certificateNumber: (label: string) => [
45
+ { max: 30, message: `${label}内容超长` },
46
+ { pattern: /^([a-zA-Z0-9])*$/g, message: `${label}仅能数字、英文` }
47
+ ],
44
48
  }
45
49
 
46
50
  const formatCompanyName = (e: any) => {
@@ -134,44 +138,162 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
134
138
  }, [props.isExpand])
135
139
 
136
140
  return (
137
- <div className={classNames("kts-invoice-operate-invoice-digtal-stakeholder", { readOnly: readOnly })} >
138
- <div>
139
- {'销售方信息'.split('').map(e => <span>{e}</span>)}
140
- {
141
- !readOnly &&
142
- <Icon
143
- className="digtal-stakeholder-expand-button"
144
- component={isExpand ? ArrowUpSvg : ArrowDownSvg}
145
- onClick={onExpand}
146
- />
147
- }
148
- </div>
149
- <div>
150
- <div style={{ marginTop: 20 }} className='natural-person-flag' >
141
+ <>
142
+ <div className={classNames("kts-invoice-operate-invoice-digtal-stakeholder", { readOnly: readOnly })} >
143
+ <div>
144
+ {'销售方信息'.split('').map(e => <span>{e}</span>)}
151
145
  {
152
- props.isNaturalPerson === true &&
153
- <Form.Item colon={false}>
154
- {getFieldDecorator('naturalPersonFlag', {
155
- })(
156
- <NaturalPersonFlag readOnly={isReadOnly('naturalPersonFlag')} />
157
- )}
158
- </Form.Item>
146
+ !readOnly &&
147
+ <Icon
148
+ className="digtal-stakeholder-expand-button"
149
+ component={isExpand ? ArrowUpSvg : ArrowDownSvg}
150
+ onClick={onExpand}
151
+ />
159
152
  }
160
153
  </div>
161
- <Form className="digtal-stakeholder-form" >
162
- <Row gutter={[16, 0]}>
163
- <Col span={24} >
164
- <Form.Item label='名称' colon={false}>
165
- {getFieldDecorator('supplierName', {
166
- rules: getRules('supplierName', RULES.companyName('销售方名称')),
167
- // getValueFromEvent: formatCompanyName
168
- })
169
- // (<MyInput readOnly={isReadOnly('supplierName')} placeholder="请输入名称" autoComplete="off" />)
170
- (
154
+ <div>
155
+ <div style={{ marginTop: 20 }} className='natural-person-flag' >
156
+ {
157
+ props.isNaturalPerson === true &&
158
+ <Form.Item colon={false}>
159
+ {getFieldDecorator('naturalPersonFlag', {
160
+ })(
161
+ <NaturalPersonFlag readOnly={isReadOnly('naturalPersonFlag')} />
162
+ )}
163
+ </Form.Item>
164
+ }
165
+ </div>
166
+ <Form className="digtal-stakeholder-form" >
167
+ <Row gutter={[16, 0]}>
168
+ <Col span={24} >
169
+ <Form.Item label='名称' colon={false}>
170
+ {getFieldDecorator('supplierName', {
171
+ rules: getRules('supplierName', RULES.companyName('销售方名称')),
172
+ // getValueFromEvent: formatCompanyName
173
+ })
174
+ // (<MyInput readOnly={isReadOnly('supplierName')} placeholder="请输入名称" autoComplete="off" />)
175
+ (
176
+ <BuyerNameInput
177
+ myform={form}
178
+ fieldName='supplierName'
179
+ readOnly={isReadOnly('supplierName')}
180
+ placeholder="请输入名称"
181
+ autoComplete="off"
182
+ suffix={
183
+ isShowImportButton === true &&
184
+ <Button
185
+ type='link'
186
+ style={{ padding: 0, width: 20, height: '100%' }}
187
+ icon={<Icon component={PlusSvg} />}
188
+ onClick={() => { onClickImportButton && onClickImportButton(controller) }}
189
+ />
190
+ }
191
+ />
192
+ )
193
+ }
194
+ </Form.Item>
195
+ </Col>
196
+
197
+ <Col span={24} >
198
+ <Form.Item label='统一社会信用代码/纳税人识别号' colon={false}>
199
+ {getFieldDecorator('supplierTaxId', {
200
+ rules: getRules('supplierTaxId', [{ required: true, message: '销售方纳税人识别号必填' }, ...RULES.taxId('销售方纳税人识别号')])
201
+ })
202
+ // (<MyInput readOnly={isReadOnly('supplierTaxId')} placeholder="请输入统一社会信用代码/纳税人识别号" autoComplete="off" />)
203
+ (<BuyerNameInput
204
+ myform={form}
205
+ fieldName='supplierTaxId'
206
+ readOnly={isReadOnly('supplierTaxId')}
207
+ placeholder="请输入统一社会信用代码/纳税人识别号"
208
+ autoComplete="off"
209
+ />)
210
+ }
211
+ </Form.Item>
212
+ </Col>
213
+
214
+ <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
215
+ <Form.Item label='销售方地址' colon={false}>
216
+ {getFieldDecorator('sellerAddress', {
217
+ rules: getRules('sellerAddress', [{ max: 300, message: '销售方地址内容超长' }])
218
+ })(<MyInput readOnly={isReadOnly('sellerAddress')} placeholder="请输入销售方地址" autoComplete="off" />)}
219
+ </Form.Item>
220
+ </Col>
221
+
222
+ <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
223
+ <Form.Item label='电话' colon={false} className='telephone' >
224
+ {getFieldDecorator('sellerPhone', {
225
+ rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
226
+ })(<MyInput readOnly={isReadOnly('sellerPhone')} placeholder="请输入电话" autoComplete="off" />)}
227
+ </Form.Item>
228
+ </Col>
229
+
230
+ <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
231
+ <Form.Item label='销售方开户银行' colon={false}>
232
+ {getFieldDecorator('sellerBank', {
233
+ rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
234
+ })(<MyInput readOnly={isReadOnly('sellerBank')} placeholder="请输入销售方开户银行" autoComplete="off" />)}
235
+ </Form.Item>
236
+ </Col>
237
+ {(props.leqi) &&
238
+ <Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
239
+ <Form.Item colon={false}>
240
+ {getFieldDecorator('sellerAddressPhoneFlag', {
241
+ valuePropName: 'checked',
242
+ })(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerAddressPhoneFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
243
+ </Form.Item>
244
+ </Col>
245
+ }
246
+ <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
247
+ <Form.Item label='银行账号' colon={false}>
248
+ {getFieldDecorator('sellerAccount', {
249
+ rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
250
+ })(<MyInput readOnly={isReadOnly('sellerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
251
+ </Form.Item>
252
+ </Col>
253
+ {(props.leqi || props.riskData?.code === 'success') &&
254
+ <Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
255
+ <Form.Item colon={false}>
256
+ {getFieldDecorator('sellerBankAccountFlag', {
257
+ valuePropName: 'checked',
258
+ })(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerBankAccountFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
259
+ </Form.Item>
260
+ </Col>
261
+ }
262
+ </Row>
263
+ </Form>
264
+ </div>
265
+ <div>
266
+ {'购买方信息'.split('').map(e => <span>{e}</span>)}
267
+ {
268
+ !readOnly &&
269
+ <Icon
270
+ className="digtal-stakeholder-expand-button"
271
+ component={isExpand ? ArrowUpSvg : ArrowDownSvg}
272
+ onClick={onExpand}
273
+ />
274
+ }
275
+ </div>
276
+ <div>
277
+ {
278
+ !readOnly && props.lineCredit &&
279
+ <div style={{ marginTop: 20 }} >
280
+ <Tooltip trigger="click" title={props.lineCredit} >
281
+ <Button type="link" style={{ padding: `0px 8px` }} >查看当前可用授信额度</Button>
282
+ </Tooltip>
283
+ </div>
284
+ }
285
+
286
+ <Form className="digtal-stakeholder-form" >
287
+ <Row gutter={[16, 0]}>
288
+ <Col span={24} >
289
+ <Form.Item label='名称' colon={false}>
290
+ {getFieldDecorator('buyerName', {
291
+ rules: getRules('buyerName', RULES.companyName('购买方名称')),
292
+ })(
171
293
  <BuyerNameInput
172
294
  myform={form}
173
- fieldName='supplierName'
174
- readOnly={isReadOnly('supplierName')}
295
+ fieldName='buyerName'
296
+ readOnly={isReadOnly('buyerName')}
175
297
  placeholder="请输入名称"
176
298
  autoComplete="off"
177
299
  suffix={
@@ -184,194 +306,112 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
184
306
  />
185
307
  }
186
308
  />
187
- )
188
- }
189
- </Form.Item>
190
- </Col>
191
-
192
- <Col span={24} >
193
- <Form.Item label='统一社会信用代码/纳税人识别号' colon={false}>
194
- {getFieldDecorator('supplierTaxId', {
195
- rules: getRules('supplierTaxId', [{ required: true, message: '销售方纳税人识别号必填' }, ...RULES.taxId('销售方纳税人识别号')])
196
- })
197
- // (<MyInput readOnly={isReadOnly('supplierTaxId')} placeholder="请输入统一社会信用代码/纳税人识别号" autoComplete="off" />)
198
- (<BuyerNameInput
199
- myform={form}
200
- fieldName='supplierTaxId'
201
- readOnly={isReadOnly('supplierTaxId')}
202
- placeholder="请输入统一社会信用代码/纳税人识别号"
203
- autoComplete="off"
204
- />)
205
- }
206
- </Form.Item>
207
- </Col>
309
+ )}
310
+ </Form.Item>
311
+ </Col>
208
312
 
209
- <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
210
- <Form.Item label='销售方地址' colon={false}>
211
- {getFieldDecorator('sellerAddress', {
212
- rules: getRules('sellerAddress', [{ max: 300, message: '销售方地址内容超长' }])
213
- })(<MyInput readOnly={isReadOnly('sellerAddress')} placeholder="请输入销售方地址" autoComplete="off" />)}
214
- </Form.Item>
215
- </Col>
313
+ <Col span={24} >
314
+ <Form.Item label='统一社会信用代码/纳税人识别号' colon={false}>
315
+ {getFieldDecorator('buyerTaxId', {
316
+ rules: getRules('buyerTaxId', [{ required: !isVatNormal, message: '购买方纳税人识别号必填' }, ...RULES.taxId('购买方纳税人识别号')])
317
+ })(
318
+ <BuyerNameInput
319
+ myform={form}
320
+ fieldName='buyerTaxId'
321
+ readOnly={isReadOnly('buyerTaxId')}
322
+ placeholder="请输入统一社会信用代码/纳税人识别号"
323
+ autoComplete="off"
324
+ />
325
+ )}
326
+ </Form.Item>
327
+ </Col>
216
328
 
217
- <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
218
- <Form.Item label='电话' colon={false} className='telephone' >
219
- {getFieldDecorator('sellerPhone', {
220
- rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
221
- })(<MyInput readOnly={isReadOnly('sellerPhone')} placeholder="请输入电话" autoComplete="off" />)}
222
- </Form.Item>
223
- </Col>
329
+ <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
330
+ <Form.Item label='购买方地址' colon={false}>
331
+ {getFieldDecorator('buyerAddress', {
332
+ rules: getRules('buyerAddress', [{ max: 100, message: '购买方地址内容超长' }])
333
+ })(<MyInput readOnly={isReadOnly('buyerAddress')} placeholder="请输入购买方地址" autoComplete="off" />)}
334
+ </Form.Item>
335
+ </Col>
224
336
 
225
- <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
226
- <Form.Item label='销售方开户银行' colon={false}>
227
- {getFieldDecorator('sellerBank', {
228
- rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
229
- })(<MyInput readOnly={isReadOnly('sellerBank')} placeholder="请输入销售方开户银行" autoComplete="off" />)}
230
- </Form.Item>
231
- </Col>
232
- {(props.leqi) &&
233
- <Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
234
- <Form.Item colon={false}>
235
- {getFieldDecorator('sellerAddressPhoneFlag', {
236
- valuePropName: 'checked',
237
- })(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerAddressPhoneFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
337
+ <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
338
+ <Form.Item label='电话' colon={false} className='telephone'>
339
+ {getFieldDecorator('buyerPhone', {
340
+ rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
341
+ })(<MyInput readOnly={isReadOnly('buyerPhone')} placeholder="请输入电话" autoComplete="off" />)}
238
342
  </Form.Item>
239
343
  </Col>
240
- }
241
- <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
242
- <Form.Item label='银行账号' colon={false}>
243
- {getFieldDecorator('sellerAccount', {
244
- rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
245
- })(<MyInput readOnly={isReadOnly('sellerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
246
- </Form.Item>
247
- </Col>
248
- {(props.leqi || props.riskData?.code === 'success') &&
249
- <Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
250
- <Form.Item colon={false}>
251
- {getFieldDecorator('sellerBankAccountFlag', {
252
- valuePropName: 'checked',
253
- })(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerBankAccountFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
344
+ <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
345
+ <Form.Item label='购买方开户银行' colon={false}>
346
+ {getFieldDecorator('buyerBank', {
347
+ rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
348
+ })(<MyInput readOnly={isReadOnly('buyerBank')} placeholder="请输入购买方开户银行" autoComplete="off" />)}
349
+ </Form.Item>
350
+ </Col>
351
+ <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
352
+ <Form.Item label='购买方开户银行' colon={false}>
353
+ {getFieldDecorator('buyerBank', {
354
+ rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
355
+ })(<MyInput readOnly={isReadOnly('buyerBank')} placeholder="请输入购买方开户银行" autoComplete="off" />)}
254
356
  </Form.Item>
255
357
  </Col>
256
- }
257
- </Row>
258
- </Form>
259
- </div>
260
- <div>
261
- {'购买方信息'.split('').map(e => <span>{e}</span>)}
262
- {
263
- !readOnly &&
264
- <Icon
265
- className="digtal-stakeholder-expand-button"
266
- component={isExpand ? ArrowUpSvg : ArrowDownSvg}
267
- onClick={onExpand}
268
- />
269
- }
270
- </div>
271
- <div>
272
- {
273
- !readOnly && props.lineCredit &&
274
- <div style={{ marginTop: 20 }} >
275
- <Tooltip trigger="click" title={props.lineCredit} >
276
- <Button type="link" style={{ padding: `0px 8px` }} >查看当前可用授信额度</Button>
277
- </Tooltip>
278
- </div>
279
- }
280
-
281
- <Form className="digtal-stakeholder-form" >
282
- <Row gutter={[16, 0]}>
283
- <Col span={24} >
284
- <Form.Item label='名称' colon={false}>
285
- {getFieldDecorator('buyerName', {
286
- rules: getRules('buyerName', RULES.companyName('购买方名称')),
287
- })(
288
- <BuyerNameInput
289
- myform={form}
290
- fieldName='buyerName'
291
- readOnly={isReadOnly('buyerName')}
292
- placeholder="请输入名称"
293
- autoComplete="off"
294
- suffix={
295
- isShowImportButton === true &&
296
- <Button
297
- type='link'
298
- style={{ padding: 0, width: 20, height: '100%' }}
299
- icon={<Icon component={PlusSvg} />}
300
- onClick={() => { onClickImportButton && onClickImportButton(controller) }}
301
- />
302
- }
303
- />
304
- )}
305
- </Form.Item>
306
- </Col>
307
358
 
308
- <Col span={24} >
309
- <Form.Item label='统一社会信用代码/纳税人识别号' colon={false}>
310
- {getFieldDecorator('buyerTaxId', {
311
- rules: getRules('buyerTaxId', [{ required: !isVatNormal, message: '购买方纳税人识别号必填' }, ...RULES.taxId('购买方纳税人识别号')])
312
- })(
313
- <BuyerNameInput
314
- myform={form}
315
- fieldName='buyerTaxId'
316
- readOnly={isReadOnly('buyerTaxId')}
317
- placeholder="请输入统一社会信用代码/纳税人识别号"
318
- autoComplete="off"
319
- />
320
- )}
321
- </Form.Item>
322
- </Col>
359
+ <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
360
+ <Form.Item label='银行账号' colon={false}>
361
+ {getFieldDecorator('buyerAccount', {
362
+ rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
363
+ })(<MyInput readOnly={isReadOnly('buyerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
364
+ </Form.Item>
365
+ </Col>
366
+ {(props.leqi || props.riskData?.code === 'success') &&
367
+ <Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
368
+ <Form.Item colon={false}>
369
+ {getFieldDecorator('buyerBankAccountFlag', {
370
+ valuePropName: 'checked',
371
+ })(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('buyerBankAccountFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
372
+ </Form.Item>
373
+ </Col>
374
+ }
375
+ </Row>
376
+ </Form>
377
+ </div>
323
378
 
324
- <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
325
- <Form.Item label='购买方地址' colon={false}>
326
- {getFieldDecorator('buyerAddress', {
327
- rules: getRules('buyerAddress', [{ max: 100, message: '购买方地址内容超长' }])
328
- })(<MyInput readOnly={isReadOnly('buyerAddress')} placeholder="请输入购买方地址" autoComplete="off" />)}
329
- </Form.Item>
330
- </Col>
379
+ </div>
380
+ <div className='kts-invoice-operate-invoice-digtal-payinfo'>
381
+ <Form className="digtal-stakeholder-form" style={{ width: '100%' }}>
382
+ <Row gutter={[16, 0]}>
383
+ <Col span={5} >
384
+ <Form.Item label='自然人销售方补充信息' colon={false} >
331
385
 
332
- <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
333
- <Form.Item label='电话' colon={false} className='telephone'>
334
- {getFieldDecorator('buyerPhone', {
335
- rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
336
- })(<MyInput readOnly={isReadOnly('buyerPhone')} placeholder="请输入电话" autoComplete="off" />)}
337
386
  </Form.Item>
338
387
  </Col>
339
- <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
340
- <Form.Item label='购买方开户银行' colon={false}>
341
- {getFieldDecorator('buyerBank', {
342
- rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
343
- })(<MyInput readOnly={isReadOnly('buyerBank')} placeholder="请输入购买方开户银行" autoComplete="off" />)}
388
+ {/* <label>自然人销售方补充信息</label> */}
389
+ <Col span={6} >
390
+ <Form.Item label='证件类型' colon={false} >
391
+ {getFieldDecorator('certificateType', {
392
+ rules: [{ required: true, message: '数据必填' }]
393
+ })(<CardSelect readOnly={isReadOnly('certificateType')} placeholder="数据必填" autoComplete="off" />)}
344
394
  </Form.Item>
345
395
  </Col>
346
- <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
347
- <Form.Item label='购买方开户银行' colon={false}>
348
- {getFieldDecorator('buyerBank', {
349
- rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
350
- })(<MyInput readOnly={isReadOnly('buyerBank')} placeholder="请输入购买方开户银行" autoComplete="off" />)}
396
+ <Col span={7} >
397
+ <Form.Item label='证件号码' colon={false} >
398
+ {getFieldDecorator('certificateNumber', {
399
+ rules: getRules('supplierTaxId', [{ required: true, message: '数据必填' }, ...RULES.certificateNumber('数据必填')])
400
+ })(<MyInput readOnly={isReadOnly('certificateNumber')} placeholder="数据必填" autoComplete="off" />)}
351
401
  </Form.Item>
352
402
  </Col>
353
-
354
- <Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
355
- <Form.Item label='银行账号' colon={false}>
356
- {getFieldDecorator('buyerAccount', {
357
- rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
358
- })(<MyInput readOnly={isReadOnly('buyerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
403
+ <Col span={6} >
404
+ <Form.Item label='国籍(或地区)' colon={false} >
405
+ {getFieldDecorator('nationality', {
406
+ rules: [{ required: true, message: '数据必填' }]
407
+ })(<NationalSelect readOnly={isReadOnly('nationality')} placeholder="数据必填" autoComplete="off" />)}
359
408
  </Form.Item>
360
409
  </Col>
361
- {(props.leqi || props.riskData?.code === 'success') &&
362
- <Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
363
- <Form.Item colon={false}>
364
- {getFieldDecorator('buyerBankAccountFlag', {
365
- valuePropName: 'checked',
366
- })(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('buyerBankAccountFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
367
- </Form.Item>
368
- </Col>
369
- }
370
410
  </Row>
371
411
  </Form>
372
- </div>
373
412
 
374
- </div>
413
+ </div>
414
+ </>
375
415
  )
376
416
  })
377
417
 
@@ -428,19 +468,19 @@ function BuyerNameInput(props: InputProps & { fieldName: string; myform: Wrapped
428
468
  const onSearch = React.useCallback(async (searchText: string) => {
429
469
  await Discontinue.start();
430
470
  try {
431
- if (fieldName === 'buyerName') {
471
+ if (fieldName === 'buyerName' ) {
432
472
  if (autoComplete.onBuyerNameSearch) {
433
473
  setOptions(await autoComplete.onBuyerNameSearch(searchText));
434
474
  }
435
- } else if (fieldName === 'buyerTaxId') {
475
+ } else if (fieldName === 'buyerTaxId' ) {
436
476
  if (autoComplete.onBuyerTaxIdSearch) {
437
477
  setOptions(await autoComplete.onBuyerTaxIdSearch(searchText));
438
478
  }
439
- } else if (fieldName === 'supplierName') {
479
+ }else if(fieldName === 'supplierName'){
440
480
  if (autoComplete.onSupplierNameSearch) {
441
481
  setOptions(await autoComplete.onSupplierNameSearch(searchText));
442
482
  }
443
- } else if (fieldName === 'supplierTaxId') {
483
+ }else if(fieldName === 'supplierTaxId'){
444
484
  if (autoComplete.onSupplierTaxIdSearch) {
445
485
  setOptions(await autoComplete.onSupplierTaxIdSearch(searchText));
446
486
  }
@@ -478,7 +518,288 @@ class MyInput extends React.Component<InputProps> {
478
518
  }
479
519
  }
480
520
  }
521
+ class CardSelect extends React.Component<any> {
522
+
523
+ render() {
524
+ const props = this.props;
525
+ const option = [
526
+ { label: '居民身份证', value: '201' },
527
+ { label: '外国护照', value: '208', },
528
+ { label: '港澳居民来往内地通行证', value: '210', },
529
+ { label: '台湾居民来往大陆通行证', value: '213', },
530
+ { label: '中国护照', value: '227', },
531
+ { label: '外国人永久居留身份证', value: '233', },
532
+ { label: '中华人民共和国港澳居民居住证', value: '237', },
533
+ { label: '中华人民共和国台湾居民居住证', value: '238', },
534
+ ]
535
+ if (props.readOnly) {
536
+ return <span className='digtal-stakeholder-form-text'>{props.value}</span>
537
+ } else {
538
+ return <Select options={option} {...props} />
539
+ }
540
+ }
541
+ }
542
+ class NationalSelect extends React.Component<any> {
543
+
544
+ render() {
545
+ const props = this.props;
546
+ const option = [
547
+ { value: "004", label: "阿富汗" },
548
+ { value: "008", label: "阿尔巴尼亚" },
549
+ { value: "010", label: "南极洲" },
550
+ { value: "012", label: "阿尔及利亚" },
551
+ { value: "016", label: "美属萨摩亚" },
552
+ { value: "020", label: "安道尔" },
553
+ { value: "024", label: "安哥拉" },
554
+ { value: "028", label: "安提瓜和巴布达" },
555
+ { value: "031", label: "阿塞拜疆" },
556
+ { value: "032", label: "阿根廷" },
557
+ { value: "036", label: "澳大利亚" },
558
+ { value: "040", label: "奥地利" },
559
+ { value: "044", label: "巴哈马" },
560
+ { value: "048", label: "巴林" },
561
+ { value: "050", label: "孟加拉国" },
562
+ { value: "051", label: "亚美尼亚" },
563
+ { value: "052", label: "巴巴多斯" },
564
+ { value: "056", label: "比利时" },
565
+ { value: "060", label: "百慕大" },
566
+ { value: "064", label: "不丹" },
567
+ { value: "068", label: "玻利维亚" },
568
+ { value: "070", label: "波黑" },
569
+ { value: "072", label: "博茨瓦纳" },
570
+ { value: "074", label: "布维岛" },
571
+ { value: "076", label: "巴西" },
572
+ { value: "084", label: "伯利兹" },
573
+ { value: "086", label: "英属印度洋领地" },
574
+ { value: "090", label: "所罗门群岛" },
575
+ { value: "092", label: "英属维尔京群岛" },
576
+ { value: "096", label: "文莱" },
577
+ { value: "100", label: "保加利亚" },
578
+ { value: "104", label: "缅甸" },
579
+ { value: "108", label: "布隆迪" },
580
+ { value: "112", label: "白俄罗斯" },
581
+ { value: "116", label: "柬埔寨" },
582
+ { value: "120", label: "喀麦隆" },
583
+ { value: "124", label: "加拿大" },
584
+ { value: "132", label: "佛得角" },
585
+ { value: "136", label: "开曼群岛" },
586
+ { value: "140", label: "中非" },
587
+ { value: "144", label: "斯里兰卡" },
588
+ { value: "148", label: "乍得" },
589
+ { value: "152", label: "智利" },
590
+ { value: "156", label: "中国" },
591
+ { value: "158", label: "中国台湾" },
592
+ { value: "162", label: "圣诞岛" },
593
+ { value: "166", label: "科科斯(基林)群岛" },
594
+ { value: "170", label: "哥伦比亚" },
595
+ { value: "174", label: "科摩罗" },
596
+ { value: "175", label: "马约特" },
597
+ { value: "178", label: "刚果(布)" },
598
+ { value: "180", label: "刚果(金)" },
599
+ { value: "184", label: "库克群岛" },
600
+ { value: "188", label: "哥斯达黎加" },
601
+ { value: "191", label: "克罗地亚" },
602
+ { value: "192", label: "古巴" },
603
+ { value: "196", label: "塞浦路斯" },
604
+ { value: "203", label: "捷克" },
605
+ { value: "204", label: "贝宁" },
606
+ { value: "208", label: "丹麦" },
607
+ { value: "212", label: "多米尼克" },
608
+ { value: "214", label: "多米尼加" },
609
+ { value: "218", label: "厄瓜多尔" },
610
+ { value: "222", label: "萨尔瓦多" },
611
+ { value: "226", label: "赤道几内亚" },
612
+ { value: "231", label: "埃塞俄比亚" },
613
+ { value: "232", label: "厄立特里亚" },
614
+ { value: "233", label: "爱沙尼亚" },
615
+ { value: "234", label: "法罗群岛" },
616
+ { value: "238", label: "福克兰群岛" },
617
+ { value: "239", label: "南乔治亚岛和南桑德韦奇岛" },
618
+ { value: "242", label: "斐济" },
619
+ { value: "246", label: "芬兰" },
620
+ { value: "250", label: "法国" },
621
+ { value: "254", label: "法属圭亚那" },
622
+ { value: "258", label: "法属波利尼西亚" },
623
+ { value: "260", label: "法属南部领地" },
624
+ { value: "262", label: "吉布提" },
625
+ { value: "266", label: "加蓬" },
626
+ { value: "268", label: "格鲁吉亚" },
627
+ { value: "270", label: "冈比亚" },
628
+ { value: "275", label: "巴勒斯坦" },
629
+ { value: "276", label: "德国" },
630
+ { value: "288", label: "加纳" },
631
+ { value: "292", label: "直布罗陀" },
632
+ { value: "296", label: "基里巴斯" },
633
+ { value: "300", label: "希腊" },
634
+ { value: "304", label: "格陵兰" },
635
+ { value: "308", label: "格林纳达" },
636
+ { value: "312", label: "瓜德罗普" },
637
+ { value: "316", label: "关岛" },
638
+ { value: "320", label: "危地马拉" },
639
+ { value: "324", label: "几内亚" },
640
+ { value: "328", label: "圭亚那" },
641
+ { value: "332", label: "海地" },
642
+ { value: "334", label: "赫德岛和麦克唐纳岛" },
643
+ { value: "336", label: "梵蒂冈" },
644
+ { value: "340", label: "洪都拉斯" },
645
+ { value: "344", label: "中国香港" },
646
+ { value: "348", label: "匈牙利" },
647
+ { value: "352", label: "冰岛" },
648
+ { value: "356", label: "印度" },
649
+ { value: "360", label: "印度尼西亚" },
650
+ { value: "364", label: "伊朗" },
651
+ { value: "368", label: "伊拉克" },
652
+ { value: "372", label: "爱尔兰" },
653
+ { value: "376", label: "以色列" },
654
+ { value: "380", label: "意大利" },
655
+ { value: "384", label: "科特迪瓦" },
656
+ { value: "388", label: "牙买加" },
657
+ { value: "392", label: "日本" },
658
+ { value: "398", label: "哈萨克斯坦" },
659
+ { value: "400", label: "约旦" },
660
+ { value: "404", label: "肯尼亚" },
661
+ { value: "408", label: "朝鲜" },
662
+ { value: "410", label: "韩国" },
663
+ { value: "414", label: "科威特" },
664
+ { value: "417", label: "吉尔吉斯斯坦" },
665
+ { value: "418", label: "老挝" },
666
+ { value: "422", label: "黎巴嫩" },
667
+ { value: "426", label: "莱索托" },
668
+ { value: "428", label: "拉脱维亚" },
669
+ { value: "430", label: "利比里亚" },
670
+ { value: "434", label: "利比亚" },
671
+ { value: "438", label: "列支敦士登" },
672
+ { value: "440", label: "立陶宛" },
673
+ { value: "442", label: "卢森堡" },
674
+ { value: "446", label: "中国澳门" },
675
+ { value: "450", label: "马达加斯加" },
676
+ { value: "454", label: "马拉维" },
677
+ { value: "458", label: "马来西亚" },
678
+ { value: "462", label: "马尔代夫" },
679
+ { value: "466", label: "马里" },
680
+ { value: "470", label: "马耳他" },
681
+ { value: "474", label: "马提尼克" },
682
+ { value: "478", label: "毛里塔尼亚" },
683
+ { value: "480", label: "毛里求斯" },
684
+ { value: "484", label: "墨西哥" },
685
+ { value: "492", label: "摩纳哥" },
686
+ { value: "496", label: "蒙古" },
687
+ { value: "498", label: "摩尔多瓦" },
688
+ { value: "499", label: "黑山" },
689
+ { value: "500", label: "蒙特塞拉特" },
690
+ { value: "504", label: "摩洛哥" },
691
+ { value: "508", label: "莫桑比克" },
692
+ { value: "512", label: "阿曼" },
693
+ { value: "516", label: "纳米比亚" },
694
+ { value: "520", label: "瑙鲁" },
695
+ { value: "524", label: "尼泊尔" },
696
+ { value: "528", label: "荷兰" },
697
+ { value: "530", label: "荷属安的列斯" },
698
+ { value: "533", label: "阿鲁巴" },
699
+ { value: "540", label: "新喀里多尼亚" },
700
+ { value: "548", label: "瓦努阿图" },
701
+ { value: "554", label: "新西兰" },
702
+ { value: "558", label: "尼加拉瓜" },
703
+ { value: "562", label: "尼日尔" },
704
+ { value: "566", label: "尼日利亚" },
705
+ { value: "570", label: "纽埃" },
706
+ { value: "574", label: "诺福克岛" },
707
+ { value: "578", label: "挪威" },
708
+ { value: "580", label: "北马里亚纳" },
709
+ { value: "581", label: "美国本土外小岛屿" },
710
+ { value: "583", label: "密克罗尼西亚联邦" },
711
+ { value: "584", label: "马绍尔群岛" },
712
+ { value: "585", label: "帕劳" },
713
+ { value: "586", label: "巴基斯坦" },
714
+ { value: "591", label: "巴拿马" },
715
+ { value: "598", label: "巴布亚新几内亚" },
716
+ { value: "600", label: "巴拉圭" },
717
+ { value: "604", label: "秘鲁" },
718
+ { value: "608", label: "菲律宾" },
719
+ { value: "612", label: "皮特凯恩" },
720
+ { value: "616", label: "波兰" },
721
+ { value: "620", label: "葡萄牙" },
722
+ { value: "624", label: "几内亚比绍" },
723
+ { value: "626", label: "东帝汶" },
724
+ { value: "630", label: "波多黎各" },
725
+ { value: "634", label: "卡塔尔" },
726
+ { value: "638", label: "留尼汪" },
727
+ { value: "642", label: "罗马尼亚" },
728
+ { value: "643", label: "俄罗斯联邦" },
729
+ { value: "646", label: "卢旺达" },
730
+ { value: "654", label: "圣赫勒拿" },
731
+ { value: "659", label: "圣基茨和尼维斯" },
732
+ { value: "660", label: "安圭拉" },
733
+ { value: "662", label: "圣卢西亚" },
734
+ { value: "666", label: "圣皮埃尔和密克隆" },
735
+ { value: "670", label: "圣文森特和格林纳丁斯" },
736
+ { value: "674", label: "圣马力诺" },
737
+ { value: "678", label: "圣多美和普林西比" },
738
+ { value: "682", label: "沙特阿拉伯" },
739
+ { value: "686", label: "塞内加尔" },
740
+ { value: "688", label: "塞尔维亚" },
741
+ { value: "690", label: "塞舌尔" },
742
+ { value: "694", label: "塞拉利昂" },
743
+ { value: "702", label: "新加坡" },
744
+ { value: "703", label: "斯洛伐克" },
745
+ { value: "704", label: "越南" },
746
+ { value: "705", label: "斯洛文尼亚" },
747
+ { value: "706", label: "索马里" },
748
+ { value: "710", label: "南非" },
749
+ { value: "716", label: "津巴布韦" },
750
+ { value: "724", label: "西班牙" },
751
+ { value: "728", label: "南苏丹" },
752
+ { value: "732", label: "西撒哈拉" },
753
+ { value: "736", label: "苏丹" },
754
+ { value: "740", label: "苏里南" },
755
+ { value: "744", label: "斯瓦尔巴岛和扬马延岛" },
756
+ { value: "748", label: "斯威士兰" },
757
+ { value: "752", label: "瑞典" },
758
+ { value: "756", label: "瑞士" },
759
+ { value: "760", label: "叙利亚" },
760
+ { value: "762", label: "塔吉克斯坦" },
761
+ { value: "764", label: "泰国" },
762
+ { value: "768", label: "多哥" },
763
+ { value: "772", label: "托克劳" },
764
+ { value: "776", label: "汤加" },
765
+ { value: "780", label: "特立尼达和多巴哥" },
766
+ { value: "784", label: "阿联酋" },
767
+ { value: "788", label: "突尼斯" },
768
+ { value: "792", label: "土耳其" },
769
+ { value: "795", label: "土库曼斯坦" },
770
+ { value: "796", label: "特克斯和凯科斯群岛" },
771
+ { value: "798", label: "图瓦卢" },
772
+ { value: "800", label: "乌干达" },
773
+ { value: "804", label: "乌克兰" },
774
+ { value: "807", label: "前南马其顿" },
775
+ { value: "818", label: "埃及" },
776
+ { value: "826", label: "英国" },
777
+ { value: "831", label: "根西岛" },
778
+ { value: "832", label: "泽西岛" },
779
+ { value: "833", label: "马恩岛" },
780
+ { value: "834", label: "坦桑尼亚" },
781
+ { value: "840", label: "美国" },
782
+ { value: "850", label: "美属维尔京群岛" },
783
+ { value: "854", label: "布基纳法索" },
784
+ { value: "858", label: "乌拉圭" },
785
+ { value: "860", label: "乌兹别克斯坦" },
786
+ { value: "862", label: "委内瑞拉" },
787
+ { value: "876", label: "瓦利斯和富图纳" },
788
+ { value: "882", label: "萨摩亚" },
789
+ { value: "887", label: "也门" },
790
+ { value: "891", label: "南斯拉夫" },
791
+ { value: "894", label: "赞比亚" },
792
+ { value: "A00", label: "科索沃" }
793
+ ];
481
794
 
795
+
796
+ if (props.readOnly) {
797
+ return <span className='digtal-stakeholder-form-text'>{props.value}</span>
798
+ } else {
799
+ return <Select options={option} {...props} />
800
+ }
801
+ }
802
+ }
482
803
  class Discontinue {
483
804
 
484
805
  private static timer: any;