huminmin
6 天以前 f06c18931950df633a66247795fc40be9ca0487b
修改新增付款单本次付款金额格式问题
已修改1个文件
10 ■■■■■ 文件已修改
src/views/erp/finance/payment/modules/item-form.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/erp/finance/payment/modules/item-form.vue
@@ -41,6 +41,14 @@
  '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[]>([]); // 表格数据
/** 已根据该来票生成的明细,避免重复生成 */
@@ -196,7 +204,7 @@
          v-model:value="row.paymentPrice"
          :precision="2"
          :disabled="disabled"
          :formatter="erpPriceInputFormatter"
          :formatter="paymentPriceFormatter"
          placeholder="请输入本次付款"
          @change="handleRowChange(row)"
        />