kts-component-invoice-operate 3.2.74 → 3.2.76

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.
@@ -10,6 +10,8 @@ export interface IStakeholder {
10
10
  lineCredit?: React.ReactNode;
11
11
  /** 票种类型 */
12
12
  isVatNormal?: boolean;
13
+ /** 是否可以选择自然人 */
14
+ isNaturalPerson?: boolean;
13
15
  }
14
16
  /** 干系人 */
15
17
  declare const _default: React.FunctionComponent<IStakeholder>;
package/dist/index.esm.js CHANGED
@@ -12532,10 +12532,6 @@ var useColumns = (function (form) {
12532
12532
  return onChangeItemCode(controller, form, record);
12533
12533
 
12534
12534
  case 2:
12535
- _context2.next = 4;
12536
- return onChangeLineAmountIncludeTax(controller, form, record);
12537
-
12538
- case 4:
12539
12535
  case "end":
12540
12536
  return _context2.stop();
12541
12537
  }
@@ -16250,7 +16246,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
16250
16246
  className: "digtal-stakeholder-form"
16251
16247
  }, React.createElement(Row, {
16252
16248
  gutter: [16, 0]
16253
- }, React.createElement(Col, {
16249
+ }, props.isNaturalPerson === true && React.createElement(Col, {
16254
16250
  span: 24
16255
16251
  }, React.createElement(Form.Item, {
16256
16252
  label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
package/dist/index.js CHANGED
@@ -12542,10 +12542,6 @@ var useColumns = (function (form) {
12542
12542
  return onChangeItemCode(controller, form, record);
12543
12543
 
12544
12544
  case 2:
12545
- _context2.next = 4;
12546
- return onChangeLineAmountIncludeTax(controller, form, record);
12547
-
12548
- case 4:
12549
12545
  case "end":
12550
12546
  return _context2.stop();
12551
12547
  }
@@ -16260,7 +16256,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
16260
16256
  className: "digtal-stakeholder-form"
16261
16257
  }, React__default['default'].createElement(ktsXui.Row, {
16262
16258
  gutter: [16, 0]
16263
- }, React__default['default'].createElement(ktsXui.Col, {
16259
+ }, props.isNaturalPerson === true && React__default['default'].createElement(ktsXui.Col, {
16264
16260
  span: 24
16265
16261
  }, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
16266
16262
  label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.74",
3
+ "version": "3.2.76",
4
4
  "scripts": {
5
5
  "dev": "dumi dev",
6
6
  "start": "dumi dev",
@@ -134,157 +134,76 @@ for (let i = 0; i <= 10000; i++) {
134
134
 
135
135
  const lines: any[] = [
136
136
  {
137
- "buyersItemCode": null,
138
- "buyersItemModelName": "GN-G32Z104",
139
- "buyersItemName": "*配电控制设备*公牛(BULL)",
140
- "buyersItemUnit": null,
141
- "discount": 5010.04,
142
- "discountGroup": "31b6d887-4877-4926-abe8-ab49ef6902da",
143
- "dispatchDocumentReference": null,
144
- "dispatchLineReference": null,
145
- "favouredPolicyMark": "0",
146
- "favouredPolicyName": null,
147
- "id": "40823568750477313",
148
- "itemModelName": "GN-G32Z104",
149
- "itemName": "*配电控制设备*公牛(BULL)",
150
- "lineAmountExcludeTax": 443365.88,
151
- "lineAmountIncludeTax": 501003.53,
152
- "lineAttribute": 0,
153
- "lineDiscountExcludeTax": 4433.66,
154
- "lineDiscountRate": null,
155
- "lineId": "1740823580142206976",
156
- "lineOrder": 1,
157
- "materialCode": null,
158
- "noticeCodeNo": null,
159
- "noticeLineId": null,
160
- "orderLineId": null,
161
- "orderLineReference": null,
162
- "orderNo": null,
163
- "orderReference": null,
164
- "priceExcludeTax": 827.17518997,
165
- "priceIncludeTax": 934.70796467,
166
- "quantity": 536,
167
- "receiptDocumentReference": null,
168
- "receiptLineReference": null,
169
- "reconciliationDocumentReference": null,
170
- "reconciliationSheetLineReference": null,
171
- "relationReferences": null,
172
- "requisitionLineNo": null,
173
- "sellersItemCode": null,
174
- "sellersItemModelName": null,
175
- "sellersItemName": "*配电控制设备*1",
176
- "sellersItemUnit": null,
177
- "specialManagement": null,
178
- "statementCode": null,
179
- "statementLineId": null,
180
- "taxAmount": 57637.65,
181
- "taxClassificationCode": "1090407030000000000",
182
- "taxDiscount": 576.38,
183
- "taxRate": 13,
184
- "unit": "件",
185
- "zeroTaxRateFlag": 'dddddd'
137
+ "serialNumber": "1714491422279110656",
138
+ "lineNumber": 1,
139
+ "taxCode": "3070401000000000000",
140
+ "taxName": "信息技术服务",
141
+ "specification": null,
142
+ "itemName": "技术服务费",
143
+ "itemCode": "",
144
+ "unit": "套",
145
+ "quantity": 1.0000000000001,
146
+ "taxRate": 0.06,
147
+ "priceExcludeTax": 5,
148
+ "priceIncludeTax": 5.3,
149
+ "amountTax": 0.3,
150
+ "lineAmountExcludeTax": 5,
151
+ "lineAmountIncludeTax": 5.3,
152
+ "lineAttribute": LineAttributeType.被折扣行,
153
+ "discountGroup": "1714491422291693568",
154
+ "favouredPolicyMark": false,
155
+ "favouredPolicyName": null,
156
+ "zeroTaxRateFlag": null,
157
+ "referenceLines": null,
158
+ "version": 0
186
159
  },
187
160
  {
188
- "buyersItemCode": null,
189
- "buyersItemModelName": "GN-G32Z104",
190
- "buyersItemName": "*配电控制设备*公牛(BULL)",
191
- "buyersItemUnit": null,
192
- "discount": null,
193
- "discountGroup": "31b6d887-4877-4926-abe8-ab49ef6902da",
194
- "dispatchDocumentReference": null,
195
- "dispatchLineReference": null,
196
- "favouredPolicyMark": "0",
197
- "favouredPolicyName": null,
198
- "id": "40823568750477313",
199
- "itemModelName": "",
200
- "itemName": "*配电控制设备*公牛(BULL)",
201
- "lineAmountExcludeTax": -4433.66,
202
- "lineAmountIncludeTax": -5010.04,
203
- "lineAttribute": 0,
204
- "lineDiscountExcludeTax": null,
205
- "lineDiscountRate": null,
206
- "lineId": "1740823580142206976",
207
- "lineOrder": 2,
208
- "materialCode": null,
209
- "noticeCodeNo": null,
210
- "noticeLineId": null,
211
- "orderLineId": null,
212
- "orderLineReference": null,
213
- "orderNo": null,
214
- "orderReference": null,
215
- "priceExcludeTax": null,
216
- "priceIncludeTax": null,
217
- "quantity": null,
218
- "receiptDocumentReference": null,
219
- "receiptLineReference": null,
220
- "reconciliationDocumentReference": null,
221
- "reconciliationSheetLineReference": null,
222
- "relationReferences": null,
223
- "requisitionLineNo": null,
224
- "sellersItemCode": null,
225
- "sellersItemModelName": null,
226
- "sellersItemName": "*配电控制设备*1",
227
- "sellersItemUnit": null,
228
- "specialManagement": null,
229
- "statementCode": null,
230
- "statementLineId": null,
231
- "taxAmount": -576.38,
232
- "taxClassificationCode": "1090407030000000000",
233
- "taxDiscount": null,
234
- "taxRate": 13,
235
- "unit": "",
236
- "zeroTaxRateFlag": null
161
+ "serialNumber": "1714491422279110656",
162
+ "lineNumber": 2,
163
+ "taxCode": "3070401000000000000",
164
+ "taxName": "信息技术服务",
165
+ "specification": "",
166
+ "itemName": "技术服务费",
167
+ "itemCode": "",
168
+ "unit": "",
169
+ "quantity": null,
170
+ "taxRate": 0.06,
171
+ "priceExcludeTax": null,
172
+ "priceIncludeTax": null,
173
+ "amountTax": -0.06,
174
+ "lineAmountExcludeTax": 5,
175
+ "lineAmountIncludeTax": 5.3,
176
+ "lineAttribute": LineAttributeType.折扣行,
177
+ "discountGroup": "1714491422291693568",
178
+ "favouredPolicyMark": false,
179
+ "favouredPolicyName": null,
180
+ "zeroTaxRateFlag": null,
181
+ "referenceLines": null,
182
+ "version": 0
237
183
  },
238
184
  {
239
- "buyersItemCode": null,
240
- "buyersItemModelName": "GN-G32Z104",
241
- "buyersItemName": "打折",
242
- "buyersItemUnit": null,
243
- "discount": null,
244
- "discountGroup": "31b6d887-4877-4926-abe8-ab49ef6902da",
245
- "dispatchDocumentReference": null,
246
- "dispatchLineReference": null,
247
- "favouredPolicyMark": "0",
248
- "favouredPolicyName": null,
249
- "id": "40823568750477313",
250
- "itemModelName": "",
251
- "itemName": "打折",
252
- "lineAmountExcludeTax": 100,
253
- "lineAmountIncludeTax": 100,
254
- "lineAttribute": 4,
255
- "lineDiscountExcludeTax": null,
256
- "lineDiscountRate": null,
257
- "lineId": "1740823580142206976",
258
- "lineOrder": 2,
259
- "materialCode": null,
260
- "noticeCodeNo": null,
261
- "noticeLineId": null,
262
- "orderLineId": null,
263
- "orderLineReference": null,
264
- "orderNo": null,
265
- "orderReference": null,
266
- "priceExcludeTax": null,
267
- "priceIncludeTax": null,
268
- "quantity": null,
269
- "receiptDocumentReference": null,
270
- "receiptLineReference": null,
271
- "reconciliationDocumentReference": null,
272
- "reconciliationSheetLineReference": null,
273
- "relationReferences": null,
274
- "requisitionLineNo": null,
275
- "sellersItemCode": null,
276
- "sellersItemModelName": null,
277
- "sellersItemName": "*配电控制设备*1",
278
- "sellersItemUnit": null,
279
- "specialManagement": null,
280
- "statementCode": null,
281
- "statementLineId": null,
282
- "taxAmount": -576.38,
283
- "taxClassificationCode": "1090407030000000000",
284
- "taxDiscount": null,
285
- "taxRate": 0,
286
- "unit": "",
287
- "zeroTaxRateFlag": null
185
+ "serialNumber": "1714491422279110656",
186
+ "lineNumber": 3,
187
+ "taxCode": "3070401000000000000",
188
+ "taxName": "信息技术服务",
189
+ "specification": null,
190
+ "itemName": "技术服务费",
191
+ "itemCode": null,
192
+ "unit": "套",
193
+ "quantity": 1,
194
+ "taxRate": 0.06,
195
+ "priceExcludeTax": 2,
196
+ "priceIncludeTax": 2.12,
197
+ "amountTax": 0.12,
198
+ "lineAmountExcludeTax": 5,
199
+ "lineAmountIncludeTax": 5.3,
200
+ "lineAttribute": LineAttributeType.正常,
201
+ "discountGroup": null,
202
+ "favouredPolicyMark": false,
203
+ "favouredPolicyName": null,
204
+ "zeroTaxRateFlag": null,
205
+ "referenceLines": null,
206
+ "version": 0
288
207
  }
289
208
  ]
290
209
 
@@ -115,7 +115,7 @@ export default (form: WrappedFormUtils) => {
115
115
  <ItemCodeInput
116
116
  onChange={async () => {
117
117
  await onChangeItemCode(controller, form, record);
118
- await onChangeLineAmountIncludeTax(controller, form, record);
118
+ // await onChangeLineAmountIncludeTax(controller, form, record);
119
119
  }}
120
120
  />
121
121
  )}
@@ -62,6 +62,9 @@ export interface IStakeholder {
62
62
 
63
63
  /** 票种类型 */
64
64
  isVatNormal?: boolean;
65
+
66
+ /** 是否可以选择自然人 */
67
+ isNaturalPerson?: boolean;
65
68
  }
66
69
 
67
70
  /** 干系人 */
@@ -114,15 +117,17 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
114
117
  <div>
115
118
  <Form className="digtal-stakeholder-form" >
116
119
  <Row gutter={[16, 0]}>
117
- <Col span={24} >
118
- <Form.Item label='购买方信息' colon={false}>
119
- {getFieldDecorator('naturalPersonFlag', {
120
- })(
121
- <NaturalPersonFlag readOnly={isReadOnly('naturalPersonFlag')} />
122
- )}
123
- </Form.Item>
124
- </Col>
125
-
120
+ {
121
+ props.isNaturalPerson === true &&
122
+ <Col span={24} >
123
+ <Form.Item label='购买方信息' colon={false}>
124
+ {getFieldDecorator('naturalPersonFlag', {
125
+ })(
126
+ <NaturalPersonFlag readOnly={isReadOnly('naturalPersonFlag')} />
127
+ )}
128
+ </Form.Item>
129
+ </Col>
130
+ }
126
131
  <Col span={24} >
127
132
  <Form.Item label='名称' colon={false}>
128
133
  {getFieldDecorator('buyerName', {