烘房报表+追溯
parent
4cb06ad793
commit
a778acb5a7
@ -0,0 +1,258 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="98px"
|
||||||
|
>
|
||||||
|
<el-form-item label="生产时间" prop="productDateArray">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="queryParams.productDateArray"
|
||||||
|
format="yyyy-MM-dd"
|
||||||
|
type="daterange"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="烘房名称" prop="equName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.equName"
|
||||||
|
placeholder="请输入烘房名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-search"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>搜索</el-button
|
||||||
|
>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
|
>重置</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar
|
||||||
|
:showSearch.sync="showSearch"
|
||||||
|
@queryTable="getList"
|
||||||
|
></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
height="500"
|
||||||
|
:data="machineProList"
|
||||||
|
:summary-method="getSummaries"
|
||||||
|
show-summary
|
||||||
|
|
||||||
|
>
|
||||||
|
<el-table-column label="日期" align="center" prop="ymd" min-width="100"/>
|
||||||
|
<template v-for="(column, index) in products">
|
||||||
|
<el-table-column align="center" min-width="100" :prop="column.code" :key="column.code" :label="column.label"/>
|
||||||
|
</template>
|
||||||
|
<el-table-column label="总产量" align="center" prop="totalQuantity"
|
||||||
|
min-width="100"
|
||||||
|
/>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {getHFProductionList,getHFProductionTitle} from "@/api/mes/reportWorks";
|
||||||
|
|
||||||
|
import moment from "moment";
|
||||||
|
export default {
|
||||||
|
name: "HFProduction",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 表格数据
|
||||||
|
machineProList: [],
|
||||||
|
//产品列表
|
||||||
|
products: [],
|
||||||
|
shiftList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
productDateArray: [],
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
workorderCode: null,
|
||||||
|
workorderName: null,
|
||||||
|
parentOrder: null,
|
||||||
|
orderId: null,
|
||||||
|
shiftId: null,
|
||||||
|
orderCode: null,
|
||||||
|
productId: null,
|
||||||
|
productCode: null,
|
||||||
|
prodType: null,
|
||||||
|
productName: null,
|
||||||
|
productSpc: null,
|
||||||
|
productDate: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDate();
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/**获取默认查询时间段**/
|
||||||
|
getDate() {
|
||||||
|
let start = this.Fungetdate(0);
|
||||||
|
let end = this.Fungetdate(1);
|
||||||
|
this.queryParams.productDateArray.push(start, end);
|
||||||
|
},
|
||||||
|
Fungetdate(num) {
|
||||||
|
var dd = new Date();
|
||||||
|
dd.setDate(dd.getDate() + num);
|
||||||
|
var y = dd.getFullYear();
|
||||||
|
var m = dd.getMonth() + 1; //获取当前月份的日期
|
||||||
|
var d = dd.getDate();
|
||||||
|
return y + "-" + m + "-" + d + " 00:00:00";
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 查询设备小时产量列表 */
|
||||||
|
getList() {
|
||||||
|
if (this.queryParams.productDateArray != null) {
|
||||||
|
this.queryParams.ymArrayStart = moment(
|
||||||
|
this.queryParams.productDateArray[0]
|
||||||
|
).format("YYYY-MM-DD HH:mm:ss");
|
||||||
|
this.queryParams.ymArrayEnd = moment(
|
||||||
|
this.queryParams.productDateArray[1]
|
||||||
|
).format("YYYY-MM-DD HH:mm:ss");
|
||||||
|
}
|
||||||
|
|
||||||
|
this.loading = true;
|
||||||
|
//获取Table表头
|
||||||
|
getHFProductionTitle(this.queryParams).then((response) => {
|
||||||
|
this.products = [];
|
||||||
|
this.products = response;
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
//获取Table数据
|
||||||
|
getHFProductionList(this.queryParams).then((response) => {
|
||||||
|
this.machineProList = response;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
productId: null,
|
||||||
|
productCode: null,
|
||||||
|
prodType: null,
|
||||||
|
productName: null,
|
||||||
|
productSpc: null,
|
||||||
|
wetDetailPlanId: null,
|
||||||
|
productDate: null,
|
||||||
|
shiftId: null,
|
||||||
|
ancestors: null,
|
||||||
|
status: null,
|
||||||
|
remark: null,
|
||||||
|
attr1: null,
|
||||||
|
attr2: null,
|
||||||
|
attr3: null,
|
||||||
|
attr4: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
factoryCode: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download(
|
||||||
|
"mes/reportWorks/getHFProductionExport",
|
||||||
|
{
|
||||||
|
...this.queryParams,
|
||||||
|
},
|
||||||
|
`HFProduction_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
getSummaries(param) {
|
||||||
|
const { columns, data } = param;
|
||||||
|
const sums = [];
|
||||||
|
columns.forEach((column, index) => {
|
||||||
|
if (index === 0) {
|
||||||
|
sums[index] = "合计";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const values = data.map((item) => Number(item[column.property]));
|
||||||
|
if (!values.every((value) => isNaN(value))) {
|
||||||
|
sums[index] = values.reduce((prev, curr) => {
|
||||||
|
const value = Number(curr);
|
||||||
|
if (!isNaN(value)) {
|
||||||
|
return prev + curr;
|
||||||
|
} else {
|
||||||
|
return prev;
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
sums[index] += "";
|
||||||
|
if (sums[index] > 1000000) {
|
||||||
|
sums[index] = "";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
sums[index] = ""; //N/A
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return sums;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
@ -0,0 +1,176 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog title="Bom项目详情"
|
||||||
|
v-if="showFlag"
|
||||||
|
:visible.sync="showFlag"
|
||||||
|
:modal= false
|
||||||
|
width="800px"
|
||||||
|
>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="24" :xs="24">
|
||||||
|
<el-table v-loading="loading" :data="itemList" ref="myTable">
|
||||||
|
<!-- 序号 -->
|
||||||
|
<el-table-column label="序号" type="index" align="left" :index="indexMethod"/>
|
||||||
|
<el-table-column label="物料编码" align="left" prop="productCode" width="120" :formatter="productCodeFormate"/>
|
||||||
|
<el-table-column label="物料名称" align="left" prop="productName" width="150" :show-overflow-tooltip="true"/>
|
||||||
|
<el-table-column label="数量" align="left" prop="quantity" width="100"/>
|
||||||
|
<el-table-column label="单位" align="left" prop="unit" width="100"/>
|
||||||
|
<el-table-column label="项目编号" align="left" prop="attr1" width="100"/>
|
||||||
|
<el-table-column label="反冲物料" align="left" prop="recoil" />
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="cancelForm" >取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import {getBomTraceList} from "@/api/mes/prepare";
|
||||||
|
export default {
|
||||||
|
name: "itemBomDetail",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
disabled: false,
|
||||||
|
viewStatus : '0',
|
||||||
|
showFlag: false,
|
||||||
|
dyloading: false,
|
||||||
|
// 选中数组
|
||||||
|
selectedRows: {},
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// BOM产品表格数据
|
||||||
|
itemList: null,
|
||||||
|
qcCheckTaskDetails: [],
|
||||||
|
classInfoList: [],
|
||||||
|
//树名称
|
||||||
|
bomCode: undefined,
|
||||||
|
defaultProps: {
|
||||||
|
id: "id",
|
||||||
|
label: "label"
|
||||||
|
},
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
belongTo:''
|
||||||
|
//,userCode: '',
|
||||||
|
//userName : ''
|
||||||
|
},
|
||||||
|
data:{},
|
||||||
|
form:{
|
||||||
|
checkResult: 'Y',
|
||||||
|
startOA: '0',
|
||||||
|
},
|
||||||
|
// 是否显示弹出层
|
||||||
|
valueOpen: false,
|
||||||
|
picValueOpen: false,
|
||||||
|
//检测详情的id
|
||||||
|
recordId:'',
|
||||||
|
weight: null,
|
||||||
|
//检测详情的belongTo
|
||||||
|
belongTo:''
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 生成表头序号
|
||||||
|
indexMethod(index) {
|
||||||
|
return index + 1;
|
||||||
|
},
|
||||||
|
//产品编码格式化
|
||||||
|
productCodeFormate(row, column, cellValue) {
|
||||||
|
if (cellValue != null) {
|
||||||
|
return cellValue.slice(7, 18); //返回值
|
||||||
|
}
|
||||||
|
},
|
||||||
|
view(rowdata,queryParams0){
|
||||||
|
this.data=rowdata;
|
||||||
|
this.queryParams.ymArrayStart = queryParams0.ymArrayStart;
|
||||||
|
this.queryParams.ymArrayEnd = queryParams0.ymArrayEnd;
|
||||||
|
this.queryParams.productCode = this.data.productCode;
|
||||||
|
this.viewStatus = "1";
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.queryParams.pageSize = 10;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 查询表格列表*/
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
getBomTraceList(this.queryParams).then(response => {
|
||||||
|
this.itemList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
checkResult: null,
|
||||||
|
startOA: null,
|
||||||
|
materialType: null,
|
||||||
|
materialFrom: null,
|
||||||
|
remarkCode: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
projectType: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
this.form.checkResult = 'Y';
|
||||||
|
this.form.startOA = '0';
|
||||||
|
this.aqlNoOkVal = 0;
|
||||||
|
this.sampleCode = null;
|
||||||
|
this.checkLevel= null;
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
getAllRowData() {
|
||||||
|
const rowArray = this.$refs.myTable.data;
|
||||||
|
this.rowData = rowArray.map(obj => {
|
||||||
|
const found = this.defectList.find(subObj => subObj.defectCode === obj.defectCode);
|
||||||
|
if (found) {
|
||||||
|
return { ...obj, defectSubclass: found.defectSubclass };
|
||||||
|
} else {
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
//取消
|
||||||
|
cancelForm() {
|
||||||
|
this.showFlag = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
@ -0,0 +1,189 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog title="检验任务详情"
|
||||||
|
v-if="showFlag"
|
||||||
|
:visible.sync="showFlag"
|
||||||
|
:modal= false
|
||||||
|
width="1000px"
|
||||||
|
>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="24" :xs="24">
|
||||||
|
<el-table v-loading="loading" :data="itemList" ref="myTable">
|
||||||
|
<!-- 序号 -->
|
||||||
|
<el-table-column label="序号" type="index" align="left" :index="indexMethod"/>
|
||||||
|
<el-table-column label="任务编码" align="left" prop="checkNo" width="120"/>
|
||||||
|
<el-table-column label="检验类别" align="left" prop="checkType" width="90"/>
|
||||||
|
<el-table-column label="检验订单" align="left" prop="orderNo" width="100" :formatter="orderCodeFormate"/>
|
||||||
|
<el-table-column label="检验批次" align="left" prop="incomeBatchNo" width="220" :show-overflow-tooltip="true"/>
|
||||||
|
<el-table-column label="检验位置" align="left" prop="checkLoc" width="80"/>
|
||||||
|
<el-table-column label="检验状态" align="left" prop="checkStatus" width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.check_status" :value="scope.row.checkStatus"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="检验人编码" align="left" prop="checkManCode" width="90"/>
|
||||||
|
<el-table-column label="检验人姓名" align="left" prop="checkManName" width="90"/>
|
||||||
|
<el-table-column label="检验时间" align="left" prop="checkTime" width="100">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="检验结果" align="left" prop="checkResult" width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.check_result" :value="scope.row.checkResult"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="cancelForm" >取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import {getCheckTaskTraceList} from "@/api/mes/prepare";
|
||||||
|
export default {
|
||||||
|
name: "itemCheckTaskDetail",
|
||||||
|
dicts: ["check_status","check_result"],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
disabled: false,
|
||||||
|
viewStatus : '0',
|
||||||
|
showFlag: false,
|
||||||
|
dyloading: false,
|
||||||
|
// 选中数组
|
||||||
|
selectedRows: {},
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// BOM产品表格数据
|
||||||
|
itemList: null,
|
||||||
|
qcCheckTaskDetails: [],
|
||||||
|
classInfoList: [],
|
||||||
|
//树名称
|
||||||
|
bomCode: undefined,
|
||||||
|
defaultProps: {
|
||||||
|
id: "id",
|
||||||
|
label: "label"
|
||||||
|
},
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10
|
||||||
|
},
|
||||||
|
data:{},
|
||||||
|
form:{
|
||||||
|
checkResult: 'Y',
|
||||||
|
startOA: '0',
|
||||||
|
},
|
||||||
|
// 是否显示弹出层
|
||||||
|
valueOpen: false,
|
||||||
|
picValueOpen: false,
|
||||||
|
//检测详情的id
|
||||||
|
recordId:'',
|
||||||
|
weight: null,
|
||||||
|
//检测详情的belongTo
|
||||||
|
belongTo:''
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 生成表头序号
|
||||||
|
indexMethod(index) {
|
||||||
|
return index + 1;
|
||||||
|
},
|
||||||
|
//产品编码格式化
|
||||||
|
productCodeFormate(row, column, cellValue) {
|
||||||
|
if (cellValue != null) {
|
||||||
|
return cellValue.slice(7, 18); //返回值
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//订单编码格式化
|
||||||
|
orderCodeFormate(row, column, cellValue) {
|
||||||
|
if (cellValue != null) {
|
||||||
|
return cellValue.slice(3, 18); //返回值
|
||||||
|
}
|
||||||
|
},
|
||||||
|
view(rowdata,queryParams0,checkType){
|
||||||
|
this.data=rowdata;
|
||||||
|
this.queryParams.checkTimeStart = queryParams0.ymArrayStart;
|
||||||
|
this.queryParams.checkTimeEnd = queryParams0.ymArrayEnd;
|
||||||
|
this.queryParams.materialCode = this.data.productCode;
|
||||||
|
this.queryParams.checkType = checkType;
|
||||||
|
this.viewStatus = "1";
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.queryParams.pageSize = 10;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 查询表格列表*/
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
getCheckTaskTraceList(this.queryParams).then(response => {
|
||||||
|
this.itemList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
checkResult: null,
|
||||||
|
startOA: null,
|
||||||
|
materialType: null,
|
||||||
|
materialFrom: null,
|
||||||
|
remarkCode: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
projectType: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
this.form.checkResult = 'Y';
|
||||||
|
this.form.startOA = '0';
|
||||||
|
this.aqlNoOkVal = 0;
|
||||||
|
this.sampleCode = null;
|
||||||
|
this.checkLevel= null;
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
//取消
|
||||||
|
cancelForm() {
|
||||||
|
this.showFlag = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
|
||||||
|
resetForm(formName) {
|
||||||
|
this.$refs[formName].resetFields();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in New Issue