kts-component-invoice-operate 3.2.158 → 3.2.159

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 CHANGED
@@ -17838,7 +17838,9 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
17838
17838
  required: true,
17839
17839
  message: '销售方纳税人识别号必填'
17840
17840
  }].concat(_toConsumableArray(RULES$1.taxId('销售方纳税人识别号'))))
17841
- })( /*#__PURE__*/React.createElement(MyInput$2, {
17841
+ })( /*#__PURE__*/React.createElement(BuyerNameInput$2, {
17842
+ myform: form,
17843
+ fieldName: 'supplierTaxId',
17842
17844
  readOnly: isReadOnly('supplierTaxId'),
17843
17845
  placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17844
17846
  autoComplete: "off"
@@ -18087,7 +18089,7 @@ function BuyerNameInput$2(props) {
18087
18089
  case 2:
18088
18090
  _context.prev = 2;
18089
18091
 
18090
- if (!(fieldName === 'buyerName')) {
18092
+ if (!(fieldName === 'buyerName' || fieldName === 'supplierName')) {
18091
18093
  _context.next = 12;
18092
18094
  break;
18093
18095
  }
@@ -18110,7 +18112,7 @@ function BuyerNameInput$2(props) {
18110
18112
  break;
18111
18113
 
18112
18114
  case 12:
18113
- if (!(fieldName === 'buyerTaxId')) {
18115
+ if (!(fieldName === 'buyerTaxId' || fieldName === 'supplierTaxId')) {
18114
18116
  _context.next = 19;
18115
18117
  break;
18116
18118
  }
package/dist/index.js CHANGED
@@ -17848,7 +17848,9 @@ var StakeFarmerholder = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create()
17848
17848
  required: true,
17849
17849
  message: '销售方纳税人识别号必填'
17850
17850
  }].concat(_toConsumableArray(RULES$1.taxId('销售方纳税人识别号'))))
17851
- })( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
17851
+ })( /*#__PURE__*/React__default['default'].createElement(BuyerNameInput$2, {
17852
+ myform: form,
17853
+ fieldName: 'supplierTaxId',
17852
17854
  readOnly: isReadOnly('supplierTaxId'),
17853
17855
  placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17854
17856
  autoComplete: "off"
@@ -18097,7 +18099,7 @@ function BuyerNameInput$2(props) {
18097
18099
  case 2:
18098
18100
  _context.prev = 2;
18099
18101
 
18100
- if (!(fieldName === 'buyerName')) {
18102
+ if (!(fieldName === 'buyerName' || fieldName === 'supplierName')) {
18101
18103
  _context.next = 12;
18102
18104
  break;
18103
18105
  }
@@ -18120,7 +18122,7 @@ function BuyerNameInput$2(props) {
18120
18122
  break;
18121
18123
 
18122
18124
  case 12:
18123
- if (!(fieldName === 'buyerTaxId')) {
18125
+ if (!(fieldName === 'buyerTaxId' || fieldName === 'supplierTaxId')) {
18124
18126
  _context.next = 19;
18125
18127
  break;
18126
18128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.158",
3
+ "version": "3.2.159",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -142,25 +142,25 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
142
142
  rules: getRules('supplierName', RULES.companyName('销售方名称')),
143
143
  // getValueFromEvent: formatCompanyName
144
144
  })
145
- // (<MyInput readOnly={isReadOnly('supplierName')} placeholder="请输入名称" autoComplete="off" />)
146
- (
147
- <BuyerNameInput
148
- myform={form}
149
- fieldName='supplierName'
150
- readOnly={isReadOnly('supplierName')}
151
- placeholder="请输入名称"
152
- autoComplete="off"
153
- suffix={
154
- isShowImportButton === true &&
155
- <Button
156
- type='link'
157
- style={{ padding: 0, width: 20, height: '100%' }}
158
- icon={<Icon component={PlusSvg} />}
159
- onClick={() => { onClickImportButton && onClickImportButton(controller) }}
160
- />
161
- }
162
- />
163
- )
145
+ // (<MyInput readOnly={isReadOnly('supplierName')} placeholder="请输入名称" autoComplete="off" />)
146
+ (
147
+ <BuyerNameInput
148
+ myform={form}
149
+ fieldName='supplierName'
150
+ readOnly={isReadOnly('supplierName')}
151
+ placeholder="请输入名称"
152
+ autoComplete="off"
153
+ suffix={
154
+ isShowImportButton === true &&
155
+ <Button
156
+ type='link'
157
+ style={{ padding: 0, width: 20, height: '100%' }}
158
+ icon={<Icon component={PlusSvg} />}
159
+ onClick={() => { onClickImportButton && onClickImportButton(controller) }}
160
+ />
161
+ }
162
+ />
163
+ )
164
164
  }
165
165
  </Form.Item>
166
166
  </Col>
@@ -169,7 +169,16 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
169
169
  <Form.Item label='统一社会信用代码/纳税人识别号' colon={false}>
170
170
  {getFieldDecorator('supplierTaxId', {
171
171
  rules: getRules('supplierTaxId', [{ required: true, message: '销售方纳税人识别号必填' }, ...RULES.taxId('销售方纳税人识别号')])
172
- })(<MyInput readOnly={isReadOnly('supplierTaxId')} placeholder="请输入统一社会信用代码/纳税人识别号" autoComplete="off" />)}
172
+ })
173
+ // (<MyInput readOnly={isReadOnly('supplierTaxId')} placeholder="请输入统一社会信用代码/纳税人识别号" autoComplete="off" />)
174
+ (<BuyerNameInput
175
+ myform={form}
176
+ fieldName='supplierTaxId'
177
+ readOnly={isReadOnly('supplierTaxId')}
178
+ placeholder="请输入统一社会信用代码/纳税人识别号"
179
+ autoComplete="off"
180
+ />)
181
+ }
173
182
  </Form.Item>
174
183
  </Col>
175
184
 
@@ -363,11 +372,11 @@ function BuyerNameInput(props: InputProps & { fieldName: string; myform: Wrapped
363
372
  const onSearch = React.useCallback(async (searchText: string) => {
364
373
  await Discontinue.start();
365
374
  try {
366
- if (fieldName === 'buyerName') {
375
+ if (fieldName === 'buyerName' || fieldName === 'supplierName') {
367
376
  if (autoComplete.onBuyerNameSearch) {
368
377
  setOptions(await autoComplete.onBuyerNameSearch(searchText));
369
378
  }
370
- } else if (fieldName === 'buyerTaxId') {
379
+ } else if (fieldName === 'buyerTaxId' || fieldName === 'supplierTaxId') {
371
380
  if (autoComplete.onBuyerTaxIdSearch) {
372
381
  setOptions(await autoComplete.onBuyerTaxIdSearch(searchText));
373
382
  }