feat:过程抽检添加打印
This commit is contained in:
parent
88fc695454
commit
472a871b90
|
@ -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',"过程抽检表")
|
||||
|
|
Loading…
Reference in New Issue