fix: value pay split change
This commit is contained in:
parent
e49ab198a0
commit
60c2745627
1 changed files with 4 additions and 1 deletions
|
|
@ -175,7 +175,8 @@ watch(
|
||||||
if (
|
if (
|
||||||
paySplitCount.value === 0 ||
|
paySplitCount.value === 0 ||
|
||||||
!paySplitCount.value ||
|
!paySplitCount.value ||
|
||||||
!summaryPrice.value.finalPrice
|
!summaryPrice.value.finalPrice ||
|
||||||
|
props.readonly
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -287,6 +288,8 @@ watch(
|
||||||
@focus="(e) => (e.target as HTMLInputElement).select()"
|
@focus="(e) => (e.target as HTMLInputElement).select()"
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
(v) => {
|
(v) => {
|
||||||
|
if (readonly) return;
|
||||||
|
|
||||||
if (typeof v === 'string') amount4Show[i] = commaInput(v);
|
if (typeof v === 'string') amount4Show[i] = commaInput(v);
|
||||||
const x = parseFloat(
|
const x = parseFloat(
|
||||||
amount4Show[i] && typeof amount4Show[i] === 'string'
|
amount4Show[i] && typeof amount4Show[i] === 'string'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue