spring
2026-03-19 0da4ecedcdac5b662ef00f28deb1a1455526cf39
src/views/inventoryManagement/dispatchLog/Record.vue
@@ -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">
@@ -77,6 +77,26 @@
               show-overflow-tooltip
            />
            <el-table-column
               label="车牌号"
               prop="licensePlateNo"
               show-overflow-tooltip
            />
            <el-table-column
               label="毛重(吨)"
               prop="grossWeight"
               show-overflow-tooltip
            />
            <el-table-column
               label="皮重(吨)"
               prop="tareWeight"
               show-overflow-tooltip
            />
            <el-table-column
               label="净重(吨)"
               prop="netWeight"
               show-overflow-tooltip
            />
            <el-table-column
               label="出库人"
               prop="createBy"
               show-overflow-tooltip
@@ -86,6 +106,25 @@
                         show-overflow-tooltip>
          <template #default="scope">
            {{ getRecordType(scope.row.recordType) }}
          </template>
        </el-table-column>
        <el-table-column
            label="过磅日期"
            prop="weighingDate"
            show-overflow-tooltip
        />
        <el-table-column
            label="过磅员"
            prop="weighingOperator"
            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>
@@ -112,9 +151,7 @@
   delStockOut,
} from "@/api/inventoryManagement/stockOut.js";
import {
  findAllQualifiedStockRecordTypeOptions,
  findAllStockRecordTypeOptions,
  findAllUnqualifiedStockRecordTypeOptions
  findAllQualifiedStockOutRecordTypeOptions, findAllUnQualifiedStockOutRecordTypeOptions,
} from "@/api/basicData/enum.js";
const userStore = useUserStore();
@@ -186,13 +223,13 @@
// 获取来源类型选项
const fetchStockRecordTypeOptions = () => {
  if (props.type === '0') {
    findAllQualifiedStockRecordTypeOptions()
    findAllQualifiedStockOutRecordTypeOptions()
        .then(res => {
          stockRecordTypeOptions.value = res.data;
        })
    return
  }
  findAllUnqualifiedStockRecordTypeOptions()
  findAllUnQualifiedStockOutRecordTypeOptions()
      .then(res => {
        stockRecordTypeOptions.value = res.data;
      })
@@ -206,6 +243,11 @@
};
const expandedRowKeys = ref([]);
// 导出过磅单
const handlePreview = (row) => {
  proxy.$download.name(row.weighbridgeDocPath);
}
// 导出
const handleOut = () => {
   ElMessageBox.confirm("是否确认导出?", "导出", {
@@ -214,7 +256,7 @@
      type: "warning",
   })
      .then(() => {
         proxy.download("/stockmanagement/export", {}, "出库台账.xlsx");
         proxy.download("/stockOutRecord/exportStockOutRecord", {type: props.type}, props.type === '0' ? "合格出库台账.xlsx" : "不合格出库台账.xlsx");
      })
      .catch(() => {
         proxy.$modal.msg("已取消");