spring
2026-03-17 e5c3a10ffc181fadd32c19ed0dc566d8a0cb93d7
src/views/consumablesLogistics/receiptManagement/Record.vue
@@ -107,13 +107,24 @@
                         prop="weighingOperator"
                         v-if="type === '0'"
                         show-overflow-tooltip/>
        <el-table-column label="操作"
                         width="120"
                         align="center">
          <template #default="scope">
            <el-button type="primary"
                       size="mini"
                       @click="handlePreview(scope.row)">导出过磅单</el-button>
          </template>
        </el-table-column>
      </el-table>
      <pagination v-show="total > 0"
                  :total="total"
                  layout="total, sizes, prev, pager, next, jumper"
                  :page="page.current"
                  :limit="page.size"
                  @pagination="pageProductChange"/>
      <div style="margin-top: 12px; display: flex; justify-content: flex-end;">
        <pagination v-show="total > 0"
                    :total="total"
                    layout="total, sizes, prev, pager, next, jumper"
                    :page="page.current"
                    :limit="page.size"
                    @pagination="pageProductChange"/>
      </div>
    </div>
  </div>
</template>
@@ -152,7 +163,7 @@
const stockRecordTypeOptions = ref([]);
const page = reactive({
  current: 1,
  size: 100,
  size: 10,
});
const total = ref(0);
@@ -174,6 +185,13 @@
  return stockRecordTypeOptions.value.find(item => item.value === recordType)?.label || ''
}
// 导出过磅单
const handlePreview = (row) => {
  console.log(row);
  console.log(row.weighbridgeDocPath);
  proxy.$download.name(row.weighbridgeDocPath);
}
const pageProductChange = obj => {
  page.current = obj.page;
  page.size = obj.limit;