yyb
6 天以前 c2417d66aa2db613c2c4db1c4a053225e72e238b
src/views/inventoryManagement/dispatchLog/Record.vue
@@ -12,6 +12,13 @@
               clearable
               @change="handleQuery"
            />
        <span class="search_title ml10">合同号:</span>
        <el-input
            v-model="searchForm.salesContractNo"
            style="width: 240px"
            placeholder="请输入合同号"
            clearable
        />
        <span class="search_title ml10">来源:</span>
        <el-select v-model="searchForm.recordType"
                   style="width: 240px"
@@ -51,9 +58,15 @@
            min-width="100"
            show-overflow-tooltip
        />
        <el-table-column
            label="合同号"
            prop="salesContractNo"
            show-overflow-tooltip
        />
            <el-table-column
               label="出库日期"
               prop="createTime"
               :formatter="formatTableDateYmd"
               show-overflow-tooltip
            />
            <el-table-column
@@ -108,10 +121,11 @@
<script setup>
import pagination from "@/components/PIMTable/Pagination.vue";
import { ref } from "vue";
import { ref, reactive, toRefs, getCurrentInstance, onMounted } from "vue";
import { ElMessageBox } from "element-plus";
import useUserStore from "@/store/modules/user";
import { getCurrentDate } from "@/utils/index.js";
import { parseTime } from "@/utils/ruoyi";
import {
   getStockOutPage,
   delStockOut,
@@ -122,6 +136,13 @@
const userStore = useUserStore();
const { proxy } = getCurrentInstance();
const formatTableDateYmd = (row, column, cellValue) => {
   if (cellValue == null || cellValue === "") {
      return "";
   }
   return parseTime(cellValue, "{y}-{m}-{d}") || "";
};
const tableData = ref([]);
const selectedRows = ref([]);
const tableLoading = ref(false);
@@ -149,6 +170,7 @@
const data = reactive({
   searchForm: {
      supplierName: "",
    salesContractNo: "",
      timeStr: "",
    recordType: "",
   }