zhangwencui
13 小时以前 58243a2254afce0cc0fcc7e31f927b9c94a80687
src/pages/sales/salesAccount/view.vue
@@ -28,6 +28,10 @@
          <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>
          <text class="info-value">{{ form.paymentMethod }}</text>
        </view>
@@ -74,6 +78,10 @@
            <view class="info-item">
              <text class="info-label">单位</text>
              <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>
@@ -125,6 +133,7 @@
    customerName: "",
    projectName: "",
    executionDate: "",
    deliveryDate: "",
    paymentMethod: "",
    entryPerson: "",
    entryPersonName: "",
@@ -153,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");