feat:iqc检验列表
This commit is contained in:
parent
8c545f3705
commit
392d6129d1
|
@ -0,0 +1,101 @@
|
||||||
|
<template>
|
||||||
|
<el-container>
|
||||||
|
<el-header>
|
||||||
|
<div class="left-panel">
|
||||||
|
<el-button type="primary" icon="el-icon-download" v-loading="exportLoading" @click="exportExcel">导出</el-button>
|
||||||
|
<el-button type="primary" @click="handlePrint">打印</el-button>
|
||||||
|
</div>
|
||||||
|
<div class="right-panel">
|
||||||
|
<el-date-picker v-model="query.test_date" type="date" value-format="YYYY-MM-DD" />
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">查询</el-button>
|
||||||
|
</div>
|
||||||
|
</el-header>
|
||||||
|
<el-main class="nopadding">
|
||||||
|
<scTable ref="table" :apiObj="apiObj" row-key="id" id="myTable" stripe :params="params" :query="query">
|
||||||
|
<el-table-column type="index" width="50" />
|
||||||
|
<el-table-column label="产品名称" prop="material_name" show-overflow-tooltip>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="批次号" prop="batch">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="总数" prop="count">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="不合格数" prop="count_notok">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="抽样数量" prop="count_sampling">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="检验员" prop="test_user_name">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="检验日期" prop="test_date">
|
||||||
|
</el-table-column>
|
||||||
|
</scTable>
|
||||||
|
</el-main>
|
||||||
|
<el-dialog v-model="printVisible" width="850px" title="入司检验">
|
||||||
|
<div id="exportDiv">
|
||||||
|
<scTable
|
||||||
|
:apiObj="apiObj"
|
||||||
|
row-key="id" stripe
|
||||||
|
:params="params"
|
||||||
|
hidePagination
|
||||||
|
hideDo
|
||||||
|
style="width: 800px;"
|
||||||
|
:query="query">
|
||||||
|
<el-table-column label="产品名称" prop="material_name">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="批次号" prop="batch">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="总数" prop="count">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="不合格数" prop="count_notok">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="抽样数量" prop="count_sampling" >
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="检验员" prop="test_user_name">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="检验日期" prop="test_date">
|
||||||
|
</el-table-column>
|
||||||
|
</scTable>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</el-container>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "rparty",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
apiObj: this.$API.qm.ftestwork.list,
|
||||||
|
params: { type: 'purin', mb__isnull: false },
|
||||||
|
query: {
|
||||||
|
test_date:''
|
||||||
|
},
|
||||||
|
printVisible:false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
//查看
|
||||||
|
table_show(row) {
|
||||||
|
this.dialog.save = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.saveDialog.open("show", 10).setData(row);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleQuery() {
|
||||||
|
this.$refs.table.queryData(this.query)
|
||||||
|
},
|
||||||
|
resetQuery() {
|
||||||
|
this.query = {};
|
||||||
|
},
|
||||||
|
exportExcel() {
|
||||||
|
this.exportLoading = true;
|
||||||
|
this.$XLSX('#myTable', "IQC检验")
|
||||||
|
this.exportLoading = false;
|
||||||
|
},
|
||||||
|
handlePrint(){
|
||||||
|
this.printVisible = true;
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$PRINT("#exportDiv");
|
||||||
|
}, 1000);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in New Issue