zhangwencui
8 天以前 7a0790d8224db45a039bf33d0ef4e24ae879a243
src/pages/sales/salesAccount/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>
@@ -30,6 +26,10 @@
        <view class="info-item">
          <text class="info-label">签订日期</text>
          <text class="info-value">{{ form.executionDate }}</text>
        </view>
        <view class="info-item">
          <text class="info-label">交货日期</text>
          <text class="info-value">{{ form.deliveryDate || '-' }}</text>
        </view>
        <view class="info-item">
          <text class="info-label">付款方式</text>
@@ -80,6 +80,10 @@
              <text class="info-value">{{ product.unit }}</text>
            </view>
            <view class="info-item">
              <text class="info-label">是否生产</text>
              <text class="info-value">{{ formatIsProduction(product.isProduction) }}</text>
            </view>
            <view class="info-item">
              <text class="info-label">税率(%)</text>
              <text class="info-value">{{ product.taxRate }}</text>
            </view>
@@ -125,11 +129,11 @@
  const form = ref({
    id: "",
    salesContractNo: "",
    customerContractNo: "",
    customerId: "",
    customerName: "",
    projectName: "",
    executionDate: "",
    deliveryDate: "",
    paymentMethod: "",
    entryPerson: "",
    entryPersonName: "",
@@ -158,6 +162,12 @@
    });
  };
  const formatIsProduction = value => {
    if (value === true || value === 1 || value === "1") return "是";
    if (value === false || value === 0 || value === "0") return "否";
    return "-";
  };
  onMounted(() => {
    // 获取编辑数据并填充表单
    const editDataStr = uni.getStorageSync("editData");