Commit 10202a77 authored by 沈翠玲's avatar 沈翠玲

车间异常单异常时间增加默认值

parent 1f6b14d3
......@@ -258,7 +258,7 @@
<script>
import { listReport, getReport, delReport, addReport, updateReport,completeReport } from "@/api/mes/qc/report";
import dayjs from 'dayjs'
export default {
dicts: ['qc_submit_status','pc_abnormal_type'],
name: "Report",
......@@ -279,7 +279,7 @@ export default {
// 车间异常单表格数据
reportList: [],
daterangePurchaseDate: [],
daterangePurchaseDate: [dayjs().startOf('month').format('YYYY-MM-DD'), dayjs().endOf('month').format('YYYY-MM-DD')],
// 弹出层标题
title: "",
// 是否显示弹出层
......@@ -331,7 +331,7 @@ export default {
},
// 表单重置
reset() {
this.daterangePurchaseDate = [];
this.daterangePurchaseDate = [dayjs().startOf('month').format('YYYY-MM-DD'), dayjs().endOf('month').format('YYYY-MM-DD')];
this.form = {
abnormalReportId: null,
batchNumber: null,
......@@ -358,6 +358,7 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.daterangePurchaseDate = [dayjs().startOf('month').format('YYYY-MM-DD'), dayjs().endOf('month').format('YYYY-MM-DD')];
this.resetForm("queryForm");
this.handleQuery();
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment