feat:过程抽检添加打印

This commit is contained in:
shijing 2024-10-24 17:22:41 +08:00
parent 88fc695454
commit 472a871b90
1 changed files with 22 additions and 1 deletions

View File

@ -102,6 +102,16 @@
</el-table-column> </el-table-column>
<el-table-column label="抽检时间" prop="submit_time" width="150"> <el-table-column label="抽检时间" prop="submit_time" width="150">
</el-table-column> </el-table-column>
<el-table-column label="操作" width="60" fixed="right">
<template #default="scope">
<el-button
type="text"
size="small"
@click="handlePrint(scope.row)"
>打印</el-button
>
</template>
</el-table-column>
</scTable> </scTable>
</el-main> </el-main>
<el-dialog title="选择物料" v-model="materialsVisible" width="90%"> <el-dialog title="选择物料" v-model="materialsVisible" width="90%">
@ -111,13 +121,17 @@
@choseChange="choseChange" @choseChange="choseChange"
></materials> ></materials>
</el-dialog> </el-dialog>
<el-dialog v-model="printVisible" width="1200px">
<print :baseData="rowItem" type="ptest_gx" @closePrint="printVisible=false"/>
</el-dialog>
</el-container> </el-container>
</template> </template>
<script> <script>
import print from "./../setting/print/A4.vue";
import materials from "./../mtm/materials.vue"; import materials from "./../mtm/materials.vue";
export default { export default {
components: { components: {
materials, materials,print
}, },
name: "rparty", name: "rparty",
data() { data() {
@ -137,7 +151,9 @@ export default {
10: "", 10: "",
20: "", 20: "",
}, },
rowItem:{},
mgroupOption: [], mgroupOption: [],
printVisible:false,
exportLoading:false, exportLoading:false,
materialsVisible: false, materialsVisible: false,
}; };
@ -165,6 +181,11 @@ export default {
resetQuery() { resetQuery() {
this.query = {}; this.query = {};
}, },
//
handlePrint(row){
this.rowItem = row;
this.printVisible = true;
},
exportExcel() { exportExcel() {
this.exportLoading = true; this.exportLoading = true;
this.$XLSX('#myTable',"过程抽检表") this.$XLSX('#myTable',"过程抽检表")