kts-component-invoice-operate 3.2.218-chinaship → 3.2.219-chinaship
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
|
@@ -17607,7 +17607,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17607
17607
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17608
17608
|
autoComplete: "off"
|
|
17609
17609
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17610
|
-
span: 10 +
|
|
17610
|
+
span: 10 + leqispanW,
|
|
17611
17611
|
style: {
|
|
17612
17612
|
display: isExpand ? undefined : 'none'
|
|
17613
17613
|
}
|
|
@@ -17624,7 +17624,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17624
17624
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17625
17625
|
autoComplete: "off"
|
|
17626
17626
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17627
|
-
span: 10 +
|
|
17627
|
+
span: 10 + leqispanW,
|
|
17628
17628
|
style: {
|
|
17629
17629
|
display: isExpand ? undefined : 'none'
|
|
17630
17630
|
}
|
|
@@ -17638,7 +17638,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17638
17638
|
readOnly: isReadOnly('buyerPhone'),
|
|
17639
17639
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17640
17640
|
autoComplete: "off"
|
|
17641
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17641
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
17642
|
+
span: 4,
|
|
17643
|
+
style: {
|
|
17644
|
+
display: isExpand ? undefined : 'none'
|
|
17645
|
+
}
|
|
17646
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17647
|
+
colon: false
|
|
17648
|
+
}, getFieldDecorator('buyerAddressPhoneFlag', {
|
|
17649
|
+
valuePropName: 'checked'
|
|
17650
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17651
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17652
|
+
disabled: isReadOnly('buyerAddressPhoneFlag'),
|
|
17653
|
+
style: {
|
|
17654
|
+
whiteSpace: 'nowrap'
|
|
17655
|
+
}
|
|
17656
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17642
17657
|
span: 10 + leqispanW,
|
|
17643
17658
|
style: {
|
|
17644
17659
|
display: isExpand ? undefined : 'none'
|
|
@@ -17730,7 +17745,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17730
17745
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17731
17746
|
autoComplete: "off"
|
|
17732
17747
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17733
|
-
span: 10 +
|
|
17748
|
+
span: 10 + leqispanW,
|
|
17734
17749
|
style: {
|
|
17735
17750
|
display: isExpand ? undefined : 'none'
|
|
17736
17751
|
}
|
|
@@ -17747,7 +17762,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17747
17762
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17748
17763
|
autoComplete: "off"
|
|
17749
17764
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17750
|
-
span: 10 +
|
|
17765
|
+
span: 10 + leqispanW,
|
|
17751
17766
|
style: {
|
|
17752
17767
|
display: isExpand ? undefined : 'none'
|
|
17753
17768
|
}
|
|
@@ -17761,7 +17776,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17761
17776
|
readOnly: isReadOnly('sellerPhone'),
|
|
17762
17777
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17763
17778
|
autoComplete: "off"
|
|
17764
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17779
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
17780
|
+
span: 4,
|
|
17781
|
+
style: {
|
|
17782
|
+
display: isExpand ? undefined : 'none'
|
|
17783
|
+
}
|
|
17784
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17785
|
+
colon: false
|
|
17786
|
+
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
17787
|
+
valuePropName: 'checked'
|
|
17788
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17789
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17790
|
+
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
17791
|
+
style: {
|
|
17792
|
+
whiteSpace: 'nowrap'
|
|
17793
|
+
}
|
|
17794
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17765
17795
|
span: 10 + leqispanW,
|
|
17766
17796
|
style: {
|
|
17767
17797
|
display: isExpand ? undefined : 'none'
|
|
@@ -21850,24 +21880,34 @@ var useColumns$1 = (function (form) {
|
|
|
21850
21880
|
while (1) {
|
|
21851
21881
|
switch (_context6.prev = _context6.next) {
|
|
21852
21882
|
case 0:
|
|
21853
|
-
|
|
21883
|
+
if (!isValidateGood) {
|
|
21884
|
+
_context6.next = 10;
|
|
21885
|
+
break;
|
|
21886
|
+
}
|
|
21887
|
+
|
|
21888
|
+
_context6.next = 3;
|
|
21854
21889
|
return controller.wait();
|
|
21855
21890
|
|
|
21856
|
-
case
|
|
21891
|
+
case 3:
|
|
21857
21892
|
isvalue = !!value || value === 0;
|
|
21858
21893
|
isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
21859
21894
|
|
|
21860
21895
|
if (!(isvalue || isPrice === isvalue)) {
|
|
21861
|
-
_context6.next =
|
|
21896
|
+
_context6.next = 7;
|
|
21862
21897
|
break;
|
|
21863
21898
|
}
|
|
21864
21899
|
|
|
21865
21900
|
return _context6.abrupt("return");
|
|
21866
21901
|
|
|
21867
|
-
case
|
|
21902
|
+
case 7:
|
|
21868
21903
|
callback('请输入数量');
|
|
21904
|
+
_context6.next = 11;
|
|
21905
|
+
break;
|
|
21869
21906
|
|
|
21870
|
-
case
|
|
21907
|
+
case 10:
|
|
21908
|
+
callback();
|
|
21909
|
+
|
|
21910
|
+
case 11:
|
|
21871
21911
|
case "end":
|
|
21872
21912
|
return _context6.stop();
|
|
21873
21913
|
}
|
package/dist/index.js
CHANGED
|
@@ -17617,7 +17617,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17617
17617
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17618
17618
|
autoComplete: "off"
|
|
17619
17619
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17620
|
-
span: 10 +
|
|
17620
|
+
span: 10 + leqispanW,
|
|
17621
17621
|
style: {
|
|
17622
17622
|
display: isExpand ? undefined : 'none'
|
|
17623
17623
|
}
|
|
@@ -17634,7 +17634,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17634
17634
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17635
17635
|
autoComplete: "off"
|
|
17636
17636
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17637
|
-
span: 10 +
|
|
17637
|
+
span: 10 + leqispanW,
|
|
17638
17638
|
style: {
|
|
17639
17639
|
display: isExpand ? undefined : 'none'
|
|
17640
17640
|
}
|
|
@@ -17648,7 +17648,22 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17648
17648
|
readOnly: isReadOnly('buyerPhone'),
|
|
17649
17649
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17650
17650
|
autoComplete: "off"
|
|
17651
|
-
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17651
|
+
})))), props.leqi && /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17652
|
+
span: 4,
|
|
17653
|
+
style: {
|
|
17654
|
+
display: isExpand ? undefined : 'none'
|
|
17655
|
+
}
|
|
17656
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17657
|
+
colon: false
|
|
17658
|
+
}, getFieldDecorator('buyerAddressPhoneFlag', {
|
|
17659
|
+
valuePropName: 'checked'
|
|
17660
|
+
})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Checkbox, {
|
|
17661
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17662
|
+
disabled: isReadOnly('buyerAddressPhoneFlag'),
|
|
17663
|
+
style: {
|
|
17664
|
+
whiteSpace: 'nowrap'
|
|
17665
|
+
}
|
|
17666
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17652
17667
|
span: 10 + leqispanW,
|
|
17653
17668
|
style: {
|
|
17654
17669
|
display: isExpand ? undefined : 'none'
|
|
@@ -17740,7 +17755,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17740
17755
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17741
17756
|
autoComplete: "off"
|
|
17742
17757
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17743
|
-
span: 10 +
|
|
17758
|
+
span: 10 + leqispanW,
|
|
17744
17759
|
style: {
|
|
17745
17760
|
display: isExpand ? undefined : 'none'
|
|
17746
17761
|
}
|
|
@@ -17757,7 +17772,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17757
17772
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17758
17773
|
autoComplete: "off"
|
|
17759
17774
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17760
|
-
span: 10 +
|
|
17775
|
+
span: 10 + leqispanW,
|
|
17761
17776
|
style: {
|
|
17762
17777
|
display: isExpand ? undefined : 'none'
|
|
17763
17778
|
}
|
|
@@ -17771,7 +17786,22 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17771
17786
|
readOnly: isReadOnly('sellerPhone'),
|
|
17772
17787
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17773
17788
|
autoComplete: "off"
|
|
17774
|
-
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17789
|
+
})))), props.leqi && /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17790
|
+
span: 4,
|
|
17791
|
+
style: {
|
|
17792
|
+
display: isExpand ? undefined : 'none'
|
|
17793
|
+
}
|
|
17794
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17795
|
+
colon: false
|
|
17796
|
+
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
17797
|
+
valuePropName: 'checked'
|
|
17798
|
+
})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Checkbox, {
|
|
17799
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17800
|
+
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
17801
|
+
style: {
|
|
17802
|
+
whiteSpace: 'nowrap'
|
|
17803
|
+
}
|
|
17804
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17775
17805
|
span: 10 + leqispanW,
|
|
17776
17806
|
style: {
|
|
17777
17807
|
display: isExpand ? undefined : 'none'
|
|
@@ -21860,24 +21890,34 @@ var useColumns$1 = (function (form) {
|
|
|
21860
21890
|
while (1) {
|
|
21861
21891
|
switch (_context6.prev = _context6.next) {
|
|
21862
21892
|
case 0:
|
|
21863
|
-
|
|
21893
|
+
if (!isValidateGood) {
|
|
21894
|
+
_context6.next = 10;
|
|
21895
|
+
break;
|
|
21896
|
+
}
|
|
21897
|
+
|
|
21898
|
+
_context6.next = 3;
|
|
21864
21899
|
return controller.wait();
|
|
21865
21900
|
|
|
21866
|
-
case
|
|
21901
|
+
case 3:
|
|
21867
21902
|
isvalue = !!value || value === 0;
|
|
21868
21903
|
isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
21869
21904
|
|
|
21870
21905
|
if (!(isvalue || isPrice === isvalue)) {
|
|
21871
|
-
_context6.next =
|
|
21906
|
+
_context6.next = 7;
|
|
21872
21907
|
break;
|
|
21873
21908
|
}
|
|
21874
21909
|
|
|
21875
21910
|
return _context6.abrupt("return");
|
|
21876
21911
|
|
|
21877
|
-
case
|
|
21912
|
+
case 7:
|
|
21878
21913
|
callback('请输入数量');
|
|
21914
|
+
_context6.next = 11;
|
|
21915
|
+
break;
|
|
21879
21916
|
|
|
21880
|
-
case
|
|
21917
|
+
case 10:
|
|
21918
|
+
callback();
|
|
21919
|
+
|
|
21920
|
+
case 11:
|
|
21881
21921
|
case "end":
|
|
21882
21922
|
return _context6.stop();
|
|
21883
21923
|
}
|
package/package.json
CHANGED
|
@@ -257,11 +257,15 @@ export default (form: WrappedFormUtils) => {
|
|
|
257
257
|
{ pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/, message: '数量必须为数字' },
|
|
258
258
|
{
|
|
259
259
|
validator: async (_, value, callback) => {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
260
|
+
if (isValidateGood) {
|
|
261
|
+
await controller.wait();
|
|
262
|
+
const isvalue = !!value || value === 0;
|
|
263
|
+
const isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
264
|
+
if (isvalue || isPrice === isvalue) return;
|
|
265
|
+
callback('请输入数量');
|
|
266
|
+
}else{
|
|
267
|
+
callback();
|
|
268
|
+
}
|
|
265
269
|
}
|
|
266
270
|
}
|
|
267
271
|
],
|
|
@@ -568,7 +572,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
568
572
|
</Form.Item>
|
|
569
573
|
)
|
|
570
574
|
} else {
|
|
571
|
-
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '***' :value &&
|
|
575
|
+
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '***' : value && parseFloat(value).toFixed(2)}</span>;
|
|
572
576
|
}
|
|
573
577
|
},
|
|
574
578
|
},
|
|
@@ -200,7 +200,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
200
200
|
</Form.Item>
|
|
201
201
|
</Col>
|
|
202
202
|
|
|
203
|
-
<Col span={10+
|
|
203
|
+
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
204
204
|
<Form.Item label='购买方地址' colon={false}>
|
|
205
205
|
{getFieldDecorator('buyerAddress', {
|
|
206
206
|
rules: getRules('buyerAddress', [{ max: 100, message: '购买方地址内容超长' }])
|
|
@@ -208,13 +208,22 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
208
208
|
</Form.Item>
|
|
209
209
|
</Col>
|
|
210
210
|
|
|
211
|
-
<Col span={10+
|
|
211
|
+
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
212
212
|
<Form.Item label='电话' colon={false} className='telephone'>
|
|
213
213
|
{getFieldDecorator('buyerPhone', {
|
|
214
214
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
215
215
|
})(<MyInput readOnly={isReadOnly('buyerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
216
216
|
</Form.Item>
|
|
217
217
|
</Col>
|
|
218
|
+
{(props.leqi) &&
|
|
219
|
+
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
220
|
+
<Form.Item colon={false}>
|
|
221
|
+
{getFieldDecorator('buyerAddressPhoneFlag', {
|
|
222
|
+
valuePropName: 'checked',
|
|
223
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('buyerAddressPhoneFlag')} style={{whiteSpace:'nowrap'}}>是否展示</Checkbox>)}
|
|
224
|
+
</Form.Item>
|
|
225
|
+
</Col>
|
|
226
|
+
}
|
|
218
227
|
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
219
228
|
<Form.Item label='购买方开户银行' colon={false}>
|
|
220
229
|
{getFieldDecorator('buyerBank', {
|
|
@@ -281,7 +290,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
281
290
|
</Form.Item>
|
|
282
291
|
</Col>
|
|
283
292
|
|
|
284
|
-
<Col span={10+
|
|
293
|
+
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
285
294
|
<Form.Item label='销售方地址' colon={false}>
|
|
286
295
|
{getFieldDecorator('sellerAddress', {
|
|
287
296
|
rules: getRules('sellerAddress', [{ max: 300, message: '销售方地址内容超长' }])
|
|
@@ -289,13 +298,22 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
289
298
|
</Form.Item>
|
|
290
299
|
</Col>
|
|
291
300
|
|
|
292
|
-
<Col span={10+
|
|
301
|
+
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
293
302
|
<Form.Item label='电话' colon={false} className='telephone' >
|
|
294
303
|
{getFieldDecorator('sellerPhone', {
|
|
295
304
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
296
305
|
})(<MyInput readOnly={isReadOnly('sellerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
297
306
|
</Form.Item>
|
|
298
307
|
</Col>
|
|
308
|
+
{(props.leqi) &&
|
|
309
|
+
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
310
|
+
<Form.Item colon={false}>
|
|
311
|
+
{getFieldDecorator('sellerAddressPhoneFlag', {
|
|
312
|
+
valuePropName: 'checked',
|
|
313
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerAddressPhoneFlag')} style={{whiteSpace:'nowrap'}}>是否展示</Checkbox>)}
|
|
314
|
+
</Form.Item>
|
|
315
|
+
</Col>
|
|
316
|
+
}
|
|
299
317
|
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
300
318
|
<Form.Item label='销售方开户银行' colon={false}>
|
|
301
319
|
{getFieldDecorator('sellerBank', {
|