gongchunyi
5 天以前 32964ab7d650d4a6a4d038536603b6368060dacc
fix: 出库管理与入库管理的日期只展示年月日
已修改2个文件
20 ■■■■■ 文件已修改
src/views/inventoryManagement/dispatchLog/Record.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/inventoryManagement/receiptManagement/Record.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/inventoryManagement/dispatchLog/Record.vue
@@ -66,6 +66,7 @@
                <el-table-column
                    label="出库日期"
                    prop="createTime"
                    :formatter="formatTableDateYmd"
                    show-overflow-tooltip
                />
                <el-table-column
@@ -120,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,
@@ -134,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);
src/views/inventoryManagement/receiptManagement/Record.vue
@@ -68,6 +68,7 @@
                         show-overflow-tooltip/>
        <el-table-column label="入库时间"
                         prop="createTime"
                         :formatter="formatTableDateYmd"
                         show-overflow-tooltip/>
        <el-table-column label="产品大类"
                         prop="productName"
@@ -122,9 +123,17 @@
import {
  findAllQualifiedStockInRecordTypeOptions, findAllUnQualifiedStockInRecordTypeOptions,
} from "@/api/basicData/enum.js";
import {parseTime} from "@/utils/ruoyi";
const {proxy} = getCurrentInstance();
const formatTableDateYmd = (row, column, cellValue) => {
  if (cellValue == null || cellValue === "") {
    return "";
  }
  return parseTime(cellValue, "{y}-{m}-{d}") || "";
};
const props = defineProps({
  type: {
    type: String,