spring
2026-03-19 0da4ecedcdac5b662ef00f28deb1a1455526cf39
src/views/consumablesLogistics/dispatchLog/Record.vue
@@ -12,16 +12,16 @@
               clearable
               @change="handleQuery"
            />
        <span class="search_title ml10">来源:</span>
        <el-select v-model="searchForm.recordType"
                   style="width: 240px"
                   placeholder="请选择"
                   clearable>
          <el-option v-for="item in stockRecordTypeOptions"
                     :key="item.value"
                     :label="item.label"
                     :value="item.value"/>
        </el-select>
<!--        <span class="search_title ml10">来源:</span>-->
<!--        <el-select v-model="searchForm.recordType"-->
<!--                   style="width: 240px"-->
<!--                   placeholder="请选择"-->
<!--                   clearable>-->
<!--          <el-option v-for="item in stockRecordTypeOptions"-->
<!--                     :key="item.value"-->
<!--                     :label="item.label"-->
<!--                     :value="item.value"/>-->
<!--        </el-select>-->
            <el-button type="primary" @click="handleQuery" style="margin-left: 10px"
            >搜索</el-button
            >
@@ -29,7 +29,7 @@
         <div>
            <el-button @click="handleOut">导出</el-button>
            <el-button type="danger" plain @click="handleDelete">删除</el-button>
            <el-button type="primary" plain @click="handlePrint">打印</el-button>
            <!-- <el-button type="primary" plain @click="handlePrint">打印</el-button> -->
         </div>
      </div>
      <div class="table_list">
@@ -86,18 +86,27 @@
               prop="createBy"
               show-overflow-tooltip
            />
        <el-table-column label="来源"
        <!-- <el-table-column label="来源"
                         prop="recordType"
                         show-overflow-tooltip>
          <template #default="scope">
            {{ getRecordType(scope.row.recordType) }}
          </template>
        </el-table-column>
        </el-table-column> -->
        <el-table-column
            label="车牌"
            prop="licensePlateNo"
            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"
@@ -214,6 +223,11 @@
};
const expandedRowKeys = ref([]);
// 导出过磅单
const handlePreview = (row) => {
  proxy.$download.name(row.weighbridgeDocPath);
}
// 导出
const handleOut = () => {
   ElMessageBox.confirm("是否确认导出?", "导出", {