kts-component-invoice-operate 3.2.130-1 → 3.2.130-2
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
|
@@ -13800,7 +13800,7 @@ var useColumns = (function (form) {
|
|
|
13800
13800
|
style: {
|
|
13801
13801
|
padding: '0 10px'
|
|
13802
13802
|
}
|
|
13803
|
-
}, value, "%");
|
|
13803
|
+
}, isDutyFree(record) ? '免税' : "".concat(value, "%"));
|
|
13804
13804
|
}
|
|
13805
13805
|
}
|
|
13806
13806
|
}, {
|
|
@@ -13824,7 +13824,7 @@ var useColumns = (function (form) {
|
|
|
13824
13824
|
style: {
|
|
13825
13825
|
padding: '0 10px'
|
|
13826
13826
|
}
|
|
13827
|
-
}, parseFloat(value).toFixed(2));
|
|
13827
|
+
}, isDutyFree(record) ? '***' : parseFloat(value).toFixed(2));
|
|
13828
13828
|
}
|
|
13829
13829
|
}
|
|
13830
13830
|
}, {
|
|
@@ -14101,6 +14101,13 @@ function dcoding(v) {
|
|
|
14101
14101
|
return e ? String.fromCharCode(parseInt(e.replace('E', ''))) : '';
|
|
14102
14102
|
}).join('');
|
|
14103
14103
|
}
|
|
14104
|
+
/** 是否免税 */
|
|
14105
|
+
|
|
14106
|
+
|
|
14107
|
+
function isDutyFree(record) {
|
|
14108
|
+
console.log(record);
|
|
14109
|
+
return record.taxFreeType === 1 && record.favouredPolicyName === '免税';
|
|
14110
|
+
}
|
|
14104
14111
|
|
|
14105
14112
|
var useOnRow = (function () {
|
|
14106
14113
|
/** 控制器 */
|
|
@@ -20676,7 +20683,7 @@ var useColumns$1 = (function (form) {
|
|
|
20676
20683
|
style: {
|
|
20677
20684
|
padding: '0 10px'
|
|
20678
20685
|
}
|
|
20679
|
-
}, value, "%");
|
|
20686
|
+
}, isDutyFree$1(record) ? '免税' : "".concat(value, "%"));
|
|
20680
20687
|
}
|
|
20681
20688
|
}
|
|
20682
20689
|
}, {
|
|
@@ -20700,7 +20707,7 @@ var useColumns$1 = (function (form) {
|
|
|
20700
20707
|
style: {
|
|
20701
20708
|
padding: '0 10px'
|
|
20702
20709
|
}
|
|
20703
|
-
}, parseFloat(value).toFixed(2));
|
|
20710
|
+
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
20704
20711
|
}
|
|
20705
20712
|
}
|
|
20706
20713
|
} // {
|
|
@@ -20904,6 +20911,13 @@ function dcoding$1(v) {
|
|
|
20904
20911
|
return e ? String.fromCharCode(parseInt(e.replace('E', ''))) : '';
|
|
20905
20912
|
}).join('');
|
|
20906
20913
|
}
|
|
20914
|
+
/** 是否免税 */
|
|
20915
|
+
|
|
20916
|
+
|
|
20917
|
+
function isDutyFree$1(record) {
|
|
20918
|
+
console.log(record);
|
|
20919
|
+
return record.taxFreeType === 1 && record.favouredPolicyName === '免税';
|
|
20920
|
+
}
|
|
20907
20921
|
|
|
20908
20922
|
var MyItemNameStyle = {
|
|
20909
20923
|
padding: '0px 10px',
|
package/dist/index.js
CHANGED
|
@@ -13810,7 +13810,7 @@ var useColumns = (function (form) {
|
|
|
13810
13810
|
style: {
|
|
13811
13811
|
padding: '0 10px'
|
|
13812
13812
|
}
|
|
13813
|
-
}, value, "%");
|
|
13813
|
+
}, isDutyFree(record) ? '免税' : "".concat(value, "%"));
|
|
13814
13814
|
}
|
|
13815
13815
|
}
|
|
13816
13816
|
}, {
|
|
@@ -13834,7 +13834,7 @@ var useColumns = (function (form) {
|
|
|
13834
13834
|
style: {
|
|
13835
13835
|
padding: '0 10px'
|
|
13836
13836
|
}
|
|
13837
|
-
}, parseFloat(value).toFixed(2));
|
|
13837
|
+
}, isDutyFree(record) ? '***' : parseFloat(value).toFixed(2));
|
|
13838
13838
|
}
|
|
13839
13839
|
}
|
|
13840
13840
|
}, {
|
|
@@ -14111,6 +14111,13 @@ function dcoding(v) {
|
|
|
14111
14111
|
return e ? String.fromCharCode(parseInt(e.replace('E', ''))) : '';
|
|
14112
14112
|
}).join('');
|
|
14113
14113
|
}
|
|
14114
|
+
/** 是否免税 */
|
|
14115
|
+
|
|
14116
|
+
|
|
14117
|
+
function isDutyFree(record) {
|
|
14118
|
+
console.log(record);
|
|
14119
|
+
return record.taxFreeType === 1 && record.favouredPolicyName === '免税';
|
|
14120
|
+
}
|
|
14114
14121
|
|
|
14115
14122
|
var useOnRow = (function () {
|
|
14116
14123
|
/** 控制器 */
|
|
@@ -20686,7 +20693,7 @@ var useColumns$1 = (function (form) {
|
|
|
20686
20693
|
style: {
|
|
20687
20694
|
padding: '0 10px'
|
|
20688
20695
|
}
|
|
20689
|
-
}, value, "%");
|
|
20696
|
+
}, isDutyFree$1(record) ? '免税' : "".concat(value, "%"));
|
|
20690
20697
|
}
|
|
20691
20698
|
}
|
|
20692
20699
|
}, {
|
|
@@ -20710,7 +20717,7 @@ var useColumns$1 = (function (form) {
|
|
|
20710
20717
|
style: {
|
|
20711
20718
|
padding: '0 10px'
|
|
20712
20719
|
}
|
|
20713
|
-
}, parseFloat(value).toFixed(2));
|
|
20720
|
+
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
20714
20721
|
}
|
|
20715
20722
|
}
|
|
20716
20723
|
} // {
|
|
@@ -20914,6 +20921,13 @@ function dcoding$1(v) {
|
|
|
20914
20921
|
return e ? String.fromCharCode(parseInt(e.replace('E', ''))) : '';
|
|
20915
20922
|
}).join('');
|
|
20916
20923
|
}
|
|
20924
|
+
/** 是否免税 */
|
|
20925
|
+
|
|
20926
|
+
|
|
20927
|
+
function isDutyFree$1(record) {
|
|
20928
|
+
console.log(record);
|
|
20929
|
+
return record.taxFreeType === 1 && record.favouredPolicyName === '免税';
|
|
20930
|
+
}
|
|
20917
20931
|
|
|
20918
20932
|
var MyItemNameStyle = {
|
|
20919
20933
|
padding: '0px 10px',
|
package/package.json
CHANGED
|
@@ -514,7 +514,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
514
514
|
</Form.Item>
|
|
515
515
|
);
|
|
516
516
|
} else {
|
|
517
|
-
return <span style={{ padding: '0 10px' }}>{value}
|
|
517
|
+
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '免税' : `${value}%`}</span>;
|
|
518
518
|
}
|
|
519
519
|
},
|
|
520
520
|
},
|
|
@@ -531,7 +531,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
531
531
|
rules: getReplenishRules('taxAmount'),
|
|
532
532
|
})(<MyDiv loading={isCipher(changeField, 'taxAmount')} />);
|
|
533
533
|
} else {
|
|
534
|
-
return <span style={{ padding: '0 10px' }}>{parseFloat(value).toFixed(2)}</span>;
|
|
534
|
+
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '***' : parseFloat(value).toFixed(2)}</span>;
|
|
535
535
|
}
|
|
536
536
|
},
|
|
537
537
|
},
|
|
@@ -686,3 +686,9 @@ function ucoding(v: string): string {
|
|
|
686
686
|
function dcoding(v: string): string {
|
|
687
687
|
return v.split('U').map(e => e ? String.fromCharCode(parseInt(e.replace('E', ''))) : '').join('');
|
|
688
688
|
}
|
|
689
|
+
|
|
690
|
+
/** 是否免税 */
|
|
691
|
+
function isDutyFree(record: IGood): boolean {
|
|
692
|
+
console.log(record);
|
|
693
|
+
return (record.taxFreeType as any) === 1 && record.favouredPolicyName === '免税';
|
|
694
|
+
}
|
|
@@ -484,7 +484,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
484
484
|
</Form.Item>
|
|
485
485
|
);
|
|
486
486
|
} else {
|
|
487
|
-
return <span style={{ padding: '0 10px' }}>{value}
|
|
487
|
+
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '免税' : `${value}%`}</span>;
|
|
488
488
|
}
|
|
489
489
|
},
|
|
490
490
|
},
|
|
@@ -501,7 +501,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
501
501
|
rules: getReplenishRules('taxAmount'),
|
|
502
502
|
})(<MyDiv loading={isCipher(changeField, 'taxAmount')} />);
|
|
503
503
|
} else {
|
|
504
|
-
return <span style={{ padding: '0 10px' }}>{parseFloat(value).toFixed(2)}</span>;
|
|
504
|
+
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '***' : parseFloat(value).toFixed(2)}</span>;
|
|
505
505
|
}
|
|
506
506
|
},
|
|
507
507
|
},
|
|
@@ -639,6 +639,12 @@ function dcoding(v: string): string {
|
|
|
639
639
|
return v.split('U').map(e => e ? String.fromCharCode(parseInt(e.replace('E', ''))) : '').join('');
|
|
640
640
|
}
|
|
641
641
|
|
|
642
|
+
/** 是否免税 */
|
|
643
|
+
function isDutyFree(record: IGood): boolean {
|
|
644
|
+
console.log(record);
|
|
645
|
+
return (record.taxFreeType as any) === 1 && record.favouredPolicyName === '免税';
|
|
646
|
+
}
|
|
647
|
+
|
|
642
648
|
const MyItemNameStyle: any = {
|
|
643
649
|
padding: '0px 10px',
|
|
644
650
|
whiteSpace: 'nowrap',
|