云
2026-09-28 803190f6789371daf42360db8167e6eb5679d03f
src/views/salesManagement/salesLedger/index.vue
@@ -220,7 +220,7 @@
        >
          <template #default="scope">
            <dict-tag
              :options="checkout_payment"
              :options="receipt_payment_type"
              :value="scope.row.paymentMethod"
            />
          </template>
@@ -473,7 +473,7 @@
                :disabled="operationType === 'view'"
              >
                <el-option
                  v-for="item in checkout_payment"
                  v-for="item in receipt_payment_type"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
@@ -1435,7 +1435,7 @@
const route = useRoute();
const userStore = useUserStore();
const { proxy } = getCurrentInstance();
const { tax_rate, checkout_payment } = proxy.useDict("tax_rate", "checkout_payment");
const { tax_rate, receipt_payment_type } = proxy.useDict("tax_rate", "receipt_payment_type");
const tableData = ref([]);
const productData = ref([]);
const selectedRows = ref([]);
@@ -2827,17 +2827,14 @@
// 格式化日期
const formatDate = (dateString) => {
  if (!dateString) return getCurrentDate();
  return dayjs(dateString).format("YYYY/MM/DD HH:mm:ss");
  return dayjs(dateString).format("YYYY/MM/DD");
};
// 格式化日期时间
const formatDateTime = (date) => {
  const year = date.getFullYear();
  const month = String(date.getMonth() + 1).padStart(2, "0");
  const day = String(date.getDate()).padStart(2, "0");
  const hours = String(date.getHours()).padStart(2, "0");
  const minutes = String(date.getMinutes()).padStart(2, "0");
  const seconds = String(date.getSeconds()).padStart(2, "0");
  return `${year}/${month}/${day} ${hours}:${minutes}:${seconds}`;
  return `${year}/${month}/${day}`;
};
// 计算产品总数量
const getTotalQuantity = (products) => {