spring
21 小时以前 ce92cb3a3645ca473798698522f477c8c2eb2e7f
src/pages/consumablesLogistics/receiptManagement/view.vue
@@ -37,7 +37,7 @@
          </view>
          <view class="detail-row detail-row-highlight">
            <text class="label">入库数量</text>
            <text class="value value-num">{{ detail.stockInNum ?? '-' }}</text>
            <text class="value value-num">{{ detail.qualitity ?? detail.stockInNum ?? '-' }}</text>
          </view>
          <view class="detail-row">
            <text class="label">入库人</text>
@@ -56,28 +56,8 @@
        </view>
        <view class="section-body">
          <view class="detail-row">
            <text class="label">车牌号</text>
            <text class="value">{{ detail.licensePlateNo || '-' }}</text>
          </view>
          <view class="detail-row">
            <text class="label">毛重(吨)</text>
            <text class="value">{{ detail.grossWeight ?? '-' }}</text>
          </view>
          <view class="detail-row">
            <text class="label">皮重(吨)</text>
            <text class="value">{{ detail.tareWeight ?? '-' }}</text>
          </view>
          <view class="detail-row">
            <text class="label">净重(吨)</text>
            <text class="value">{{ detail.netWeight ?? '-' }}</text>
          </view>
          <view class="detail-row">
            <text class="label">过磅日期</text>
            <text class="value">{{ detail.weighingDate || '-' }}</text>
          </view>
          <view class="detail-row">
            <text class="label">过磅员</text>
            <text class="value">{{ detail.weighingOperator || '-' }}</text>
            <text class="label">采购员</text>
            <text class="value">{{ detail.purchaser || '-' }}</text>
          </view>
        </view>
      </view>
@@ -92,7 +72,7 @@
import { ref } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import PageHeader from "@/components/PageHeader.vue";
import { findAllQualifiedStockInRecordTypeOptions, findAllUnQualifiedStockInRecordTypeOptions } from "@/api/basicData/enum.js";
import { findAllQualifiedStockInRecordTypeOptions } from "@/api/basicData/enum.js";
const detail = ref(null);
const loading = ref(true);
@@ -109,14 +89,10 @@
    model: d.model,
    unit: d.unit,
    stockInNum: d.stockInNum,
    qualitity: d.qualitity,
    createBy: d.createBy,
    recordType: d.recordType,
    licensePlateNo: d.licensePlateNo,
    grossWeight: d.grossWeight,
    tareWeight: d.tareWeight,
    netWeight: d.netWeight,
    weighingDate: d.weighingDate,
    weighingOperator: d.weighingOperator,
    purchaser: d.purchaser,
  };
}
@@ -126,9 +102,7 @@
}
function fetchRecordTypeOptions(type) {
  const api =
    type === "1" ? findAllUnQualifiedStockInRecordTypeOptions : findAllQualifiedStockInRecordTypeOptions;
  api()
  findAllQualifiedStockInRecordTypeOptions()
    .then((res) => {
      const data = res.data != null ? res.data : res;
      stockRecordTypeOptions.value = Array.isArray(data) ? data : [];
@@ -144,9 +118,8 @@
    try {
      const payload = typeof cached === "string" ? JSON.parse(cached) : cached;
      const item = payload && payload.item != null ? payload.item : payload;
      const type = payload && payload.type != null ? payload.type : "0";
      detail.value = normalizeDetail({ ...item, index: 1 });
      fetchRecordTypeOptions(type);
      fetchRecordTypeOptions("0");
      uni.removeStorageSync("receiptDetailItem");
    } catch (e) {
      uni.removeStorageSync("receiptDetailItem");