6 天以前 410ec378d80800fe26fc822059acd0575c85f635
Merge remote-tracking branch 'origin/dev_pro2.0' into dev_pro2.0
已修改3个文件
20 ■■■■ 文件已修改
src/api/mes/pro/mps/index.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/erp/finance/payment/modules/item-form.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/pro/mps/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/mes/pro/mps/index.ts
@@ -80,9 +80,9 @@
}
/** 删除 MPS */
export function deleteMps(ids: number[]) {
export function deleteMps(id: number) {
  return requestClient.delete('/mes/pro-mps/delete', {
    params: { ids: ids.join(',') },
    params: { id },
  });
}
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)"
        />
src/views/mes/pro/mps/index.vue
@@ -66,13 +66,13 @@
}
/** 删除 */
async function handleDelete(ids: number[]) {
async function handleDelete(row: MesProMpsApi.Mps) {
  const hideLoading = message.loading({
    content: $t('ui.actionMessage.deleting'),
    duration: 0,
  });
  try {
    await deleteMps(ids);
    await deleteMps(row.id!);
    message.success($t('ui.actionMessage.deleteSuccess'));
    handleRefresh();
  } finally {
@@ -310,7 +310,7 @@
              ifShow: () => row.status === MpsStatusEnum.DRAFT,
              popConfirm: {
                title: $t('ui.actionMessage.deleteConfirm', [row.code]),
                confirm: handleDelete.bind(null, [row.id!]),
                confirm: handleDelete.bind(null, row),
              },
            },
          ]"