zhangwencui
10 天以前 58243a2254afce0cc0fcc7e31f927b9c94a80687
src/pages/sales/salesAccount/out.vue
@@ -56,6 +56,11 @@
                  class="detail-value danger">不足</text>
          </view>
          <view class="detail-row">
            <text class="detail-label">是否生产</text>
            <u-tag size="mini"
                   :type="getIsProductionType(item)">{{ getIsProductionText(item) }}</u-tag>
          </view>
          <view class="detail-row">
            <text class="detail-label">发货状态</text>
            <u-tag size="mini"
                   :type="getShippingStatusType(item)">{{ getShippingStatusText(item) }}</u-tag>
@@ -186,6 +191,20 @@
    };
    return statusTextMap[statusStr] || "待发货";
  };
  const getIsProductionText = row => {
    const v = row?.isProduction;
    if (v === true || v === 1 || v === "1") return "是";
    if (v === false || v === 0 || v === "0") return "否";
    return "-";
  };
  const getIsProductionType = row => {
    const v = row?.isProduction;
    if (v === true || v === 1 || v === "1") return "success";
    if (v === false || v === 0 || v === "0") return "info";
    return "info";
  };
  // 获取页面参数
  const getPageParams = () => {
    // 从本地存储获取供应商ID