kts-component-invoice-operate 3.2.217-chinaship → 3.2.218-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
|
@@ -22156,7 +22156,7 @@ var useColumns$1 = (function (form) {
|
|
|
22156
22156
|
style: {
|
|
22157
22157
|
padding: '0 10px'
|
|
22158
22158
|
}
|
|
22159
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22159
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22160
22160
|
}
|
|
22161
22161
|
}
|
|
22162
22162
|
}, {
|
|
@@ -22219,7 +22219,7 @@ var useColumns$1 = (function (form) {
|
|
|
22219
22219
|
style: {
|
|
22220
22220
|
padding: '0 10px'
|
|
22221
22221
|
}
|
|
22222
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22222
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22223
22223
|
}
|
|
22224
22224
|
}
|
|
22225
22225
|
}, {
|
|
@@ -22331,7 +22331,7 @@ var useColumns$1 = (function (form) {
|
|
|
22331
22331
|
style: {
|
|
22332
22332
|
padding: '0 10px'
|
|
22333
22333
|
}
|
|
22334
|
-
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
22334
|
+
}, isDutyFree$1(record) ? '***' : value && parseFloat(value).toFixed(2));
|
|
22335
22335
|
}
|
|
22336
22336
|
}
|
|
22337
22337
|
}] // 含税不含税
|
package/dist/index.js
CHANGED
|
@@ -22166,7 +22166,7 @@ var useColumns$1 = (function (form) {
|
|
|
22166
22166
|
style: {
|
|
22167
22167
|
padding: '0 10px'
|
|
22168
22168
|
}
|
|
22169
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22169
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22170
22170
|
}
|
|
22171
22171
|
}
|
|
22172
22172
|
}, {
|
|
@@ -22229,7 +22229,7 @@ var useColumns$1 = (function (form) {
|
|
|
22229
22229
|
style: {
|
|
22230
22230
|
padding: '0 10px'
|
|
22231
22231
|
}
|
|
22232
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22232
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22233
22233
|
}
|
|
22234
22234
|
}
|
|
22235
22235
|
}, {
|
|
@@ -22341,7 +22341,7 @@ var useColumns$1 = (function (form) {
|
|
|
22341
22341
|
style: {
|
|
22342
22342
|
padding: '0 10px'
|
|
22343
22343
|
}
|
|
22344
|
-
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
22344
|
+
}, isDutyFree$1(record) ? '***' : value && parseFloat(value).toFixed(2));
|
|
22345
22345
|
}
|
|
22346
22346
|
}
|
|
22347
22347
|
}] // 含税不含税
|
package/package.json
CHANGED
|
@@ -416,7 +416,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
416
416
|
</Form.Item>
|
|
417
417
|
);
|
|
418
418
|
} else {
|
|
419
|
-
return <span style={{ padding: '0 10px' }}>{formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
419
|
+
return <span style={{ padding: '0 10px' }}>{value && formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
420
420
|
}
|
|
421
421
|
},
|
|
422
422
|
},
|
|
@@ -458,7 +458,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
458
458
|
</Form.Item>
|
|
459
459
|
);
|
|
460
460
|
} else {
|
|
461
|
-
return <span style={{ padding: '0 10px' }}>{formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
461
|
+
return <span style={{ padding: '0 10px' }}>{value && formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
462
462
|
}
|
|
463
463
|
},
|
|
464
464
|
},
|
|
@@ -518,7 +518,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
518
518
|
align: 'right',
|
|
519
519
|
width: 119,
|
|
520
520
|
render: (value: string, record: IGood) => {
|
|
521
|
-
if (editGood?.$index === record.$index && !disableds.includes('taxAmount')&& model !== 'prefab') {
|
|
521
|
+
if (editGood?.$index === record.$index && !disableds.includes('taxAmount') && model !== 'prefab') {
|
|
522
522
|
return (
|
|
523
523
|
<Form.Item>
|
|
524
524
|
{getFieldDecorator('taxAmount', {
|
|
@@ -532,13 +532,13 @@ export default (form: WrappedFormUtils) => {
|
|
|
532
532
|
const lineAmountIncludeTax = editGood?.lineAmountIncludeTax || 0;
|
|
533
533
|
//不含税金额
|
|
534
534
|
// const lineAmountExcludeTax = lineAmountIncludeTax-value;
|
|
535
|
-
const lineAmountExcludeTax = chain(bignumber(lineAmountIncludeTax||0)).subtract(bignumber(value||0));
|
|
535
|
+
const lineAmountExcludeTax = chain(bignumber(lineAmountIncludeTax || 0)).subtract(bignumber(value || 0));
|
|
536
536
|
const taxRate = editGood?.taxRate;
|
|
537
537
|
if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
|
|
538
538
|
// const total = bignumber(lineAmountExcludeTax * taxRate / 100);
|
|
539
|
-
const total = lineAmountExcludeTax.multiply(bignumber(taxRate||0)).divide(bignumber(100));
|
|
539
|
+
const total = lineAmountExcludeTax.multiply(bignumber(taxRate || 0)).divide(bignumber(100));
|
|
540
540
|
// if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
|
|
541
|
-
if (Math.abs(total.subtract(bignumber(value||0)).done().toNumber()) <= 0.01) {
|
|
541
|
+
if (Math.abs(total.subtract(bignumber(value || 0)).done().toNumber()) <= 0.01) {
|
|
542
542
|
callback();
|
|
543
543
|
} else {
|
|
544
544
|
callback('税额填写错误,请重新输入')
|
|
@@ -568,7 +568,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
568
568
|
</Form.Item>
|
|
569
569
|
)
|
|
570
570
|
} else {
|
|
571
|
-
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '***' : parseFloat(value).toFixed(2)}</span>;
|
|
571
|
+
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '***' :value && parseFloat(value).toFixed(2)}</span>;
|
|
572
572
|
}
|
|
573
573
|
},
|
|
574
574
|
},
|