| | |
| | | 'update:paymentPrice', |
| | | ]); |
| | | |
| | | /** 输入时不补零,失焦后仍按金额格式保留两位小数 */ |
| | | const paymentPriceFormatter = ( |
| | | value: number | string | undefined, |
| | | info: { input: string; userTyping: boolean }, |
| | | ) => { |
| | | return info.userTyping ? info.input : erpPriceInputFormatter(value); |
| | | }; |
| | | |
| | | const tableData = ref<ErpFinancePaymentApi.FinancePaymentItem[]>([]); // 表格数据 |
| | | |
| | | /** 已根据该来票生成的明细,避免重复生成 */ |
| | |
| | | v-model:value="row.paymentPrice" |
| | | :precision="2" |
| | | :disabled="disabled" |
| | | :formatter="erpPriceInputFormatter" |
| | | :formatter="paymentPriceFormatter" |
| | | placeholder="请输入本次付款" |
| | | @change="handleRowChange(row)" |
| | | /> |