广丰卷烟厂数采质量分析系统
zhuguifei
7 天以前 2b31fa203f3435a582be51f45899d99164c9917a
ruoyi-plus-soybean/src/views/report/demo/index.vue
@@ -92,9 +92,7 @@
const activeCell = ref<{ table: 'summary' | 'detail'; rowIndex: number; field: string } | null>(null);
const editModalOpen = ref(false);
const editValue = ref('');
const editMeta = ref<{ table: 'summary' | 'detail'; rowIndex: number; field: string; label: string } | null>(
  null
);
const editMeta = ref<{ table: 'summary' | 'detail'; rowIndex: number; field: string; label: string } | null>(null);
const summaryFieldLabels: Record<string, string> = {
  sampleNo: '样品编号',
@@ -163,9 +161,7 @@
function isActiveCell(table: 'summary' | 'detail', rowIndex: number, field: string) {
  return (
    activeCell.value?.table === table &&
    activeCell.value?.rowIndex === rowIndex &&
    activeCell.value?.field === field
    activeCell.value?.table === table && activeCell.value?.rowIndex === rowIndex && activeCell.value?.field === field
  );
}
@@ -201,7 +197,7 @@
    <NCard
      :bordered="false"
      size="small"
      class="card-wrapper flex flex-col sm:flex-1-hidden"
      class="flex flex-col card-wrapper sm:flex-1-hidden"
      content-style="padding: 0; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column;"
    >
      <div class="report-root">
@@ -422,10 +418,7 @@
                  v-for="opt in segmentOptions"
                  :key="opt.key"
                  class="report-pill"
                  :class="[
                    `report-pill--${opt.tone}`,
                    { 'report-pill--active': opt.key === activeSegment }
                  ]"
                  :class="[`report-pill--${opt.tone}`, { 'report-pill--active': opt.key === activeSegment }]"
                  type="button"
                  @click="activeSegment = opt.key"
                >
@@ -436,7 +429,7 @@
            <div class="report-title report-title--sub">卷烟包装检验结果汇总表</div>
            <div class="report-table-scroll" ref="detailScrollRef">
            <div ref="detailScrollRef" class="report-table-scroll">
              <table class="report-table report-table--detail">
                <thead>
                <tr>
@@ -592,10 +585,7 @@
                  v-for="opt in bottomOptions"
                  :key="opt.key"
                  class="report-pill report-pill--bottom"
                  :class="[
                    `report-pill--${opt.tone}`,
                    { 'report-pill--active': opt.key === activeBottom }
                  ]"
                  :class="[`report-pill--${opt.tone}`, { 'report-pill--active': opt.key === activeBottom }]"
                  type="button"
                  @click="activeBottom = opt.key"
                >