qinxianzhangyao
2023-10-13 dda82a85f10294bda3df4192aecc3f763bf629f8
xpdytj
1个文件已修改
17 ■■■■ 已修改文件
src/views/system/examcharge/index.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/examcharge/index.vue
@@ -80,7 +80,7 @@
        </el-table>
    </div> -->
    <div class="app-container">
        <el-row :gutter="24">
        <el-row :gutter="20">
            <!--部门数据-->
            <el-col :span="4" :xs="24">
                <el-form :inline="true" ref="form" :model="form" class="demo-form-inline" label-width="78px" :rules="rules">
@@ -444,7 +444,20 @@
                    if (res.code == 200) {
                        this.$modal.msgSuccess("收费成功");
                        this.receipt()
                        this.$nextTick(() => {
                            const style =
                                "@media print { @page{margin:0 10mm,size:4mm 6mm;}};"; //打印时去掉眉页眉尾
                            printJS({
                                printable: "printBill", // 标签元素id
                                noPrint: ".noPrint",
                                type: 'html',
                                header: "",
                                targetStyles: ["*"],
                                maxWidth: "800",
                                scanStyles: true, //打印必须加上,不然页面上的css样式无效
                                style,
                            });
                        });
                        this.resetQuery()
                        this.handleUpdate()
                        this.getList()