kts-component-invoice-operate 3.2.133 → 3.2.135
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
|
@@ -20666,10 +20666,10 @@ var useColumns$1 = (function (form) {
|
|
|
20666
20666
|
initialValue: editGood.taxRate,
|
|
20667
20667
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20668
20668
|
required: true,
|
|
20669
|
-
message: '
|
|
20669
|
+
message: '请选择税率'
|
|
20670
20670
|
}, {
|
|
20671
20671
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20672
|
-
message: '
|
|
20672
|
+
message: '请选择正确税率'
|
|
20673
20673
|
}])
|
|
20674
20674
|
})( /*#__PURE__*/React.createElement(Select$1, {
|
|
20675
20675
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
@@ -21912,8 +21912,8 @@ function AddDiscountRowDrawer(props) {
|
|
|
21912
21912
|
label: '按比例折扣',
|
|
21913
21913
|
value: '2'
|
|
21914
21914
|
}]
|
|
21915
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '
|
|
21916
|
-
label: "\u6298\u6263\
|
|
21915
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ? /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
21916
|
+
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21917
21917
|
name: 'discolineValue',
|
|
21918
21918
|
rules: [{
|
|
21919
21919
|
required: true,
|
|
@@ -21941,12 +21941,12 @@ function AddDiscountRowDrawer(props) {
|
|
|
21941
21941
|
throw new Error('需大于0');
|
|
21942
21942
|
|
|
21943
21943
|
case 4:
|
|
21944
|
-
if (!(value >
|
|
21944
|
+
if (!(value > 100)) {
|
|
21945
21945
|
_context7.next = 6;
|
|
21946
21946
|
break;
|
|
21947
21947
|
}
|
|
21948
21948
|
|
|
21949
|
-
throw new Error('
|
|
21949
|
+
throw new Error('不可以大于100');
|
|
21950
21950
|
|
|
21951
21951
|
case 6:
|
|
21952
21952
|
case "end":
|
|
@@ -21968,7 +21968,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21968
21968
|
width: '100%'
|
|
21969
21969
|
}
|
|
21970
21970
|
})) : /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
21971
|
-
label: "\u6298\u6263\
|
|
21971
|
+
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21972
21972
|
name: 'discolineValue',
|
|
21973
21973
|
rules: [{
|
|
21974
21974
|
required: true,
|
|
@@ -21996,12 +21996,12 @@ function AddDiscountRowDrawer(props) {
|
|
|
21996
21996
|
throw new Error('需大于0');
|
|
21997
21997
|
|
|
21998
21998
|
case 4:
|
|
21999
|
-
if (!(value >
|
|
21999
|
+
if (!(value > totalAmount)) {
|
|
22000
22000
|
_context8.next = 6;
|
|
22001
22001
|
break;
|
|
22002
22002
|
}
|
|
22003
22003
|
|
|
22004
|
-
throw new Error('
|
|
22004
|
+
throw new Error('不可以大于商品金额');
|
|
22005
22005
|
|
|
22006
22006
|
case 6:
|
|
22007
22007
|
case "end":
|
package/dist/index.js
CHANGED
|
@@ -20676,10 +20676,10 @@ var useColumns$1 = (function (form) {
|
|
|
20676
20676
|
initialValue: editGood.taxRate,
|
|
20677
20677
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20678
20678
|
required: true,
|
|
20679
|
-
message: '
|
|
20679
|
+
message: '请选择税率'
|
|
20680
20680
|
}, {
|
|
20681
20681
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20682
|
-
message: '
|
|
20682
|
+
message: '请选择正确税率'
|
|
20683
20683
|
}])
|
|
20684
20684
|
})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Select, {
|
|
20685
20685
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
@@ -21922,8 +21922,8 @@ function AddDiscountRowDrawer(props) {
|
|
|
21922
21922
|
label: '按比例折扣',
|
|
21923
21923
|
value: '2'
|
|
21924
21924
|
}]
|
|
21925
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '
|
|
21926
|
-
label: "\u6298\u6263\
|
|
21925
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ? /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
|
|
21926
|
+
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21927
21927
|
name: 'discolineValue',
|
|
21928
21928
|
rules: [{
|
|
21929
21929
|
required: true,
|
|
@@ -21951,12 +21951,12 @@ function AddDiscountRowDrawer(props) {
|
|
|
21951
21951
|
throw new Error('需大于0');
|
|
21952
21952
|
|
|
21953
21953
|
case 4:
|
|
21954
|
-
if (!(value >
|
|
21954
|
+
if (!(value > 100)) {
|
|
21955
21955
|
_context7.next = 6;
|
|
21956
21956
|
break;
|
|
21957
21957
|
}
|
|
21958
21958
|
|
|
21959
|
-
throw new Error('
|
|
21959
|
+
throw new Error('不可以大于100');
|
|
21960
21960
|
|
|
21961
21961
|
case 6:
|
|
21962
21962
|
case "end":
|
|
@@ -21978,7 +21978,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21978
21978
|
width: '100%'
|
|
21979
21979
|
}
|
|
21980
21980
|
})) : /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
|
|
21981
|
-
label: "\u6298\u6263\
|
|
21981
|
+
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21982
21982
|
name: 'discolineValue',
|
|
21983
21983
|
rules: [{
|
|
21984
21984
|
required: true,
|
|
@@ -22006,12 +22006,12 @@ function AddDiscountRowDrawer(props) {
|
|
|
22006
22006
|
throw new Error('需大于0');
|
|
22007
22007
|
|
|
22008
22008
|
case 4:
|
|
22009
|
-
if (!(value >
|
|
22009
|
+
if (!(value > totalAmount)) {
|
|
22010
22010
|
_context8.next = 6;
|
|
22011
22011
|
break;
|
|
22012
22012
|
}
|
|
22013
22013
|
|
|
22014
|
-
throw new Error('
|
|
22014
|
+
throw new Error('不可以大于商品金额');
|
|
22015
22015
|
|
|
22016
22016
|
case 6:
|
|
22017
22017
|
case "end":
|
package/package.json
CHANGED
|
@@ -458,8 +458,8 @@ export default (form: WrappedFormUtils) => {
|
|
|
458
458
|
initialValue: editGood.taxRate,
|
|
459
459
|
rules: [
|
|
460
460
|
...getReplenishRules('taxRate'),
|
|
461
|
-
{ required: true, message: '
|
|
462
|
-
{ pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/, message: '
|
|
461
|
+
{ required: true, message: '请选择税率' },
|
|
462
|
+
{ pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/, message: '请选择正确税率' },
|
|
463
463
|
],
|
|
464
464
|
})(
|
|
465
465
|
<Select
|
|
@@ -273,10 +273,10 @@ function AddDiscountRowDrawer(props: {
|
|
|
273
273
|
]} />
|
|
274
274
|
</Form.Item>
|
|
275
275
|
{
|
|
276
|
-
formValues?.discolineType === '
|
|
276
|
+
formValues?.discolineType === '2' ?
|
|
277
277
|
(
|
|
278
278
|
<Form.Item
|
|
279
|
-
label='
|
|
279
|
+
label='折扣比例(%)(含税)'
|
|
280
280
|
name='discolineValue'
|
|
281
281
|
rules={[
|
|
282
282
|
{ required: true, message: '必填' },
|
|
@@ -284,16 +284,17 @@ function AddDiscountRowDrawer(props: {
|
|
|
284
284
|
validator: async (_, value) => {
|
|
285
285
|
if (isNaN(parseFloat(value))) return;
|
|
286
286
|
if (value <= 0) throw new Error('需大于0');
|
|
287
|
-
if (value >
|
|
287
|
+
if (value > 100) throw new Error('不可以大于100');
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
]}
|
|
291
291
|
>
|
|
292
292
|
<InputNumber style={{ width: '100%' }} />
|
|
293
293
|
</Form.Item>
|
|
294
|
-
) :
|
|
294
|
+
) :
|
|
295
|
+
(
|
|
295
296
|
<Form.Item
|
|
296
|
-
label='
|
|
297
|
+
label='折扣金额(元)(含税)'
|
|
297
298
|
name='discolineValue'
|
|
298
299
|
rules={[
|
|
299
300
|
{ required: true, message: '必填' },
|
|
@@ -301,7 +302,7 @@ function AddDiscountRowDrawer(props: {
|
|
|
301
302
|
validator: async (_, value) => {
|
|
302
303
|
if (isNaN(parseFloat(value))) return;
|
|
303
304
|
if (value <= 0) throw new Error('需大于0');
|
|
304
|
-
if (value >
|
|
305
|
+
if (value > totalAmount) throw new Error('不可以大于商品金额');
|
|
305
306
|
}
|
|
306
307
|
}
|
|
307
308
|
]}
|