Commit 69fea7b8 authored by 沈翠玲's avatar 沈翠玲

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

parent cabf68f4
......@@ -313,10 +313,12 @@ export default {
/** 查询车间异常单列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangePurchaseDate && '' != this.daterangePurchaseDate) {
this.queryParams.params["beginPurchaseDate"] = this.daterangePurchaseDate[0];
this.queryParams.params["endPurchaseDate"] = this.daterangePurchaseDate[1];
this.queryParams["beginPurchaseDate"] = this.daterangePurchaseDate[0];
this.queryParams["endPurchaseDate"] = this.daterangePurchaseDate[1];
} else {
delete this.queryParams["beginPurchaseDate"]
delete this.queryParams["endPurchaseDate"]
}
listReport(this.queryParams).then(response => {
this.reportList = response.rows;
......@@ -331,7 +333,6 @@ export default {
},
// 表单重置
reset() {
this.daterangePurchaseDate = [dayjs().startOf('month').format('YYYY-MM-DD'), dayjs().endOf('month').format('YYYY-MM-DD')];
this.form = {
abnormalReportId: null,
batchNumber: null,
......@@ -358,8 +359,8 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.daterangePurchaseDate = [dayjs().startOf('month').format('YYYY-MM-DD'), dayjs().endOf('month').format('YYYY-MM-DD')];
this.resetForm("queryForm");
this.daterangePurchaseDate = [dayjs().startOf('month').format('YYYY-MM-DD'), dayjs().endOf('month').format('YYYY-MM-DD')];
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