zhangwencui
2026-02-06 4e0df5e2ad69d9b81e0dafe42be34d12c72946d9
src/pages/sales/invoicingRegistration/view.vue
@@ -12,10 +12,6 @@
          <text class="info-value">{{ form.salesContractNo }}</text>
        </view>
        <view class="info-item">
          <text class="info-label">客户合同号</text>
          <text class="info-value highlight">{{ form.customerContractNo }}</text>
        </view>
        <view class="info-item">
          <text class="info-label">客户名称</text>
          <text class="info-value">{{ form.customerName }}</text>
        </view>
@@ -117,13 +113,12 @@
<script setup>
import {onMounted, ref} from 'vue';
import {getSalesLedgerWithProducts} from "@/api/salesManagement/salesLedger";
import {productList} from "@/api/salesManagement/salesLedger";
// 表单数据
const form = ref({
  id: '',
  salesContractNo: '',
  customerContractNo: '',
  customerId: '',
  customerName: '',
  projectName: '',
@@ -152,8 +147,8 @@
  if (!editData.value) return;
  
  // 获取完整的产品信息
  getSalesLedgerWithProducts({ id: editData.value.id, type: 1 }).then((res) => {
    productData.value = res.productData || [];
  productList({ salesLedgerId: editData.value.id, type: 1 }).then((res) => {
    productData.value = res.data || [];
    form.value = {...editData.value}
  });
};