ZN
6 天以前 481e405e566642a93394b1e28af023448286d599
src/pages/customerService/feedbackRegistration/index.vue
@@ -30,7 +30,7 @@
    <!-- 售后单列表 -->
    <view class="ledger-list" v-if="tableData.length > 0">
      <view v-for="(item, index) in tableData" :key="index" class="ledger-item" @click="handleRowClick(item)">
      <view v-for="(item, index) in tableData" :key="index" class="ledger-item">
        <view class="item-header">
          <view class="item-left">
            <view class="document-icon">
@@ -74,19 +74,10 @@
          </view>
        </view>
        <up-divider v-if="canEdit(item)"></up-divider>
        <view class="detail-buttons" v-if="canEdit(item)">
          <up-button size="small" type="primary" plain @click.stop="openForm('edit', item)">编辑</up-button>
          <up-button size="small" type="error" plain @click.stop="handleDelete(item)">删除</up-button>
        </view>
      </view>
    </view>
    <view v-else class="no-data">
      <text>暂无售后登记数据</text>
    </view>
    <!-- 浮动操作按钮 -->
    <view class="fab-button" @click="openForm('add')">
      <up-icon name="plus" size="24" color="#ffffff"></up-icon>
    </view>
  </view>
</template>
@@ -179,10 +170,11 @@
const getStats = () => {
  getSalesLedgerDetail({}).then((res) => {
    if (res.code === 200) {
      console.log(res.data);
      const statsData = Array.isArray(res.data) ? res.data : [];
      statsList.value[0].count = getStatsCountByStatus(statsData, 3);
      statsList.value[1].count = getStatsCountByStatus(statsData, 2);
      statsList.value[2].count = getStatsCountByStatus(statsData, 1);
      statsList.value[0].count = getStatsCountByStatus(statsData, 3) || 0;
      statsList.value[1].count = getStatsCountByStatus(statsData, 2) || 0;
      statsList.value[2].count = getStatsCountByStatus(statsData, 1) || 0;
    }
  });
};