zhangwencui
6 小时以前 db76255e483a8829c3c79e752fa0538c9b226289
src/pages/procurementManagement/procurementLedger/view.vue
@@ -12,10 +12,6 @@
          <text class="info-value">{{ form.purchaseContractNumber }}</text>
        </view>
        <view class="info-item">
          <text class="info-label">销售合同号</text>
          <text class="info-value">{{ form.salesContractNo }}</text>
        </view>
        <view class="info-item">
          <text class="info-label">供应商名称</text>
          <text class="info-value">{{ form.supplierName }}</text>
        </view>
@@ -28,12 +24,20 @@
          <text class="info-value">{{ form.paymentMethod }}</text>
        </view>
        <view class="info-item">
          <text class="info-label">入库状态</text>
          <text class="info-value">{{ form.stockInStatus || '--' }}</text>
        </view>
        <view class="info-item">
          <text class="info-label">录入人</text>
          <text class="info-value">{{ form.recorderName }}</text>
        </view>
        <view class="info-item">
          <text class="info-label">录入日期</text>
          <text class="info-value">{{ form.entryDate }}</text>
        </view>
        <view class="info-item">
          <text class="info-label">备注</text>
          <text class="info-value">{{ form.remarks || '--' }}</text>
        </view>
      </view>
    </view>
@@ -64,6 +68,10 @@
              <text class="info-value">{{ product.unit }}</text>
            </view>
            <view class="info-item">
              <text class="info-label">入库审核状态</text>
              <text class="info-value">{{ product.stockInApprovalStatus || '--' }}</text>
            </view>
            <view class="info-item">
              <text class="info-label">税率(%)</text>
              <text class="info-value">{{ product.taxRate }}</text>
            </view>
@@ -74,6 +82,14 @@
            <view class="info-item">
              <text class="info-label">数量</text>
              <text class="info-value highlight">{{ product.quantity }}</text>
            </view>
            <view class="info-item">
              <text class="info-label">可用数量</text>
              <text class="info-value">{{ product.availableQuality ?? '--' }}</text>
            </view>
            <view class="info-item">
              <text class="info-label">退货数量</text>
              <text class="info-value">{{ product.returnQuality ?? '--' }}</text>
            </view>
            <view class="info-item">
              <text class="info-label">含税总价(元)</text>
@@ -106,7 +122,6 @@
// 表单数据
const form = ref({
  id: '',
  salesContractNo: '',
  customerContractNo: '',
  customerId: '',
  customerName: '',
@@ -138,8 +153,11 @@
  
  // 获取完整的产品信息
   getPurchaseById({ id: editData.value.id, type: 2 }).then((res) => {
    productData.value = res.productData || [];
      form.value = {...res}
    const data = res?.data ? res.data : res || {};
    const products =
      data.purchaseLedgerProductList || res?.productData || data.productData || [];
    productData.value = Array.isArray(products) ? products : [];
      form.value = { ...data }
  });
};