|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="printwrap">
|
|
|
|
|
<Modal v-model="isShow" width='70' title="打印" @on-ok='handlePrint'>
|
|
|
|
|
<Modal v-model="isShow" width='70' title="打印">
|
|
|
|
|
<div id='printmodal' class='print' v-if="chukuType==='领用'">
|
|
|
|
|
<div class='printtitle'>苏州市河道管理处物资领用审批表</div>
|
|
|
|
|
<div class="printtop">
|
|
|
|
|
@ -85,7 +85,11 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<template v-slot:footer>
|
|
|
|
|
<Button type="" style='margin-left:5px;margin-bottom:5px;' @click="isShow=false">取消</Button>
|
|
|
|
|
<Button v-if="chukuType=='领用'" type="primary" v-print="'#printmodal'" style='margin-left:5px;margin-bottom:5px;'>打印</Button>
|
|
|
|
|
<Button v-if="chukuType=='处置'" type="primary" v-print="'#printmodal1'" style='margin-left:5px;margin-bottom:5px;'>打印</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</Modal>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -132,6 +136,7 @@
|
|
|
|
|
this.mingxiList = res.id_outbounds_items_outbounds_id_relation
|
|
|
|
|
},
|
|
|
|
|
handlePrint() {
|
|
|
|
|
console.log("123")
|
|
|
|
|
if(this.chukuType=='领用'){
|
|
|
|
|
this.$Print('#printmodal');
|
|
|
|
|
}else if(this.chukuType=='处置'){
|
|
|
|
|
@ -161,7 +166,15 @@
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
<style scoped>
|
|
|
|
|
@media print {
|
|
|
|
|
@page {
|
|
|
|
|
size: auto;
|
|
|
|
|
}
|
|
|
|
|
body, html,div{
|
|
|
|
|
height: auto!important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.print {}
|
|
|
|
|
|
|
|
|
|
.printtitle {
|
|
|
|
|
|