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