zhangwencui
2026-05-16 873d9a845357228d1d9a883da22d39aa55799899
生产核算增加字段
已修改1个文件
22 ■■■■■ 文件已修改
src/pages/productionManagement/productionAccounting/index.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/productionManagement/productionAccounting/index.vue
@@ -2,7 +2,6 @@
  <view class="production-accounting">
    <PageHeader title="生产核算"
                @back="goBack" />
    <!-- 筛选区域 -->
    <view class="filter-section">
      <view class="date-type-selector">
@@ -13,7 +12,6 @@
                 lineWidth="30"
                 lineHeight="3" />
      </view>
      <view class="date-picker-bar"
            @click="showDatePicker = true">
        <view class="date-display">
@@ -27,7 +25,6 @@
                 color="#999"></up-icon>
      </view>
    </view>
    <!-- 汇总列表 -->
    <view class="summary-section"
          v-if="!showDetail">
@@ -80,7 +77,6 @@
                  text="暂无汇总数据" />
      </view>
    </view>
    <!-- 明细列表 (点击汇总行后显示) -->
    <view class="detail-section"
          v-else>
@@ -91,7 +87,6 @@
                 color="#2979ff"></up-icon>
        <text class="back-text">返回汇总 ({{ currentUserName }})</text>
      </view>
      <view class="ledger-list"
            v-if="detailList.length > 0">
        <view v-for="(item, index) in detailList"
@@ -113,6 +108,14 @@
          <up-divider></up-divider>
          <view class="item-details">
            <view class="detail-row">
              <text class="detail-label">生产日期</text>
              <text class="detail-value">{{ item.schedulingDate || '-' }}</text>
            </view>
            <view class="detail-row">
              <text class="detail-label">生产人</text>
              <text class="detail-value">{{ item.schedulingUserName || '-' }}</text>
            </view>
            <view class="detail-row">
              <text class="detail-label">规格型号</text>
              <text class="detail-value">{{ item.productModelName }}</text>
            </view>
@@ -123,6 +126,10 @@
            <view class="detail-row">
              <text class="detail-label">生产数量</text>
              <text class="detail-value">{{ item.quantity }} {{ item.unit }}</text>
            </view>
            <view class="detail-row">
              <text class="detail-label">工时(h)</text>
              <text class="detail-value">{{ item.workHour || 0 }}</text>
            </view>
            <view class="detail-row">
              <text class="detail-label">工时定额</text>
@@ -143,7 +150,6 @@
                  text="暂无明细数据" />
      </view>
    </view>
    <!-- 日期选择器 -->
    <up-datetime-picker :show="showDatePicker"
                        v-model="pickerValue"
@@ -281,7 +287,9 @@
    salesLedgerProductionAccountingListProductionDetails(params)
      .then(res => {
        const records = res.data.records || [];
        detailList.value = isLoadMore ? [...detailList.value, ...records] : records;
        detailList.value = isLoadMore
          ? [...detailList.value, ...records]
          : records;
        page1.total = res.data.total || 0;
        if (detailList.value.length >= page1.total) {