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