ZN
6 天以前 481e405e566642a93394b1e28af023448286d599
src/pages/financialManagement/revenueManagement/index.vue
@@ -90,41 +90,12 @@
  return n.toFixed(2);
};
const goAdd = () => {
  uni.navigateTo({ url: "/pages/financialManagement/revenueManagement/edit?type=add" });
};
const goEdit = (row) => {
  uni.navigateTo({ url: `/pages/financialManagement/revenueManagement/edit?type=edit&id=${row.id}` });
};
const confirmDelete = (row) => {
  uni.showModal({
    title: "提示",
    content: "确认删除该记录?",
    success: async (r) => {
      if (r.confirm) {
        const ids = Array.isArray(row) ? row.map(i=>i.id) : [row.id];
        const res = await delAccountIncome(ids);
        if (res?.code === 200) getList();
      }
    },
  });
};
const onIncomeTypeConfirm = (e) => {
  const item = incomeTypes.value[e.value[0]];
  if (item) form.incomeType = item.value;
};
const onMethodConfirm = (e) => {
  const item = paymentMethods.value[e.value[0]];
  if (item) form.incomeMethod = item.value;
};
const goBack = () => {
  uni.navigateBack();
};
syncDict();
onShow(() => {
  syncDict();
  getList();
});
</script>