|
|
@@ -10,7 +10,7 @@
|
|
|
<i class="icon icon-table2"></i> 缴费信息
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
- <!--<el-button type="primary" size="mini" style="margin-right: 15px" @click="printBtn" v-if="formData.IsPay == '1'">打印</el-button>-->
|
|
|
+ <el-button type="primary" size="mini" style="margin-right: 15px" @click="printBtn" v-if="formData.IsPay == '1'">打印</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 15px" @click="submitPay" v-if="formData.IsPay == '1'">提交缴费</el-button>
|
|
|
<router-link :to="'/oilsupplier/paymentinfo'">
|
|
|
<el-button type="primary" size="mini">返回</el-button>
|
|
|
@@ -106,12 +106,13 @@
|
|
|
<!--</div>-->
|
|
|
<!--</el-card>-->
|
|
|
<!--</el-dialog>-->
|
|
|
+
|
|
|
<el-dialog
|
|
|
title="打印内容"
|
|
|
:visible.sync="dialogVisible"
|
|
|
width="50%"
|
|
|
center>
|
|
|
- <div id="printid">
|
|
|
+ <div id="printBill">
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<div style="font-size: 18px;height: 30px">单位名称:{{this.formDataSup.SupplierName}}</div>
|
|
|
@@ -129,7 +130,7 @@
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="printinfo">打 印</el-button>
|
|
|
+ <el-button type="primary" v-print="'#printBill'">打 印</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
@@ -203,11 +204,17 @@
|
|
|
})
|
|
|
this.dialogVisible = true
|
|
|
},
|
|
|
- printinfo () {
|
|
|
- let bdhtml = window.document.body.innerHTML
|
|
|
- window.document.body.innerHTML = window.document.getElementById('printid').innerHTML
|
|
|
+ /*printinfo () {
|
|
|
+ let newstr = document.getElementById('printid').innerHTML
|
|
|
+ window.document.body.innerHTML = newstr
|
|
|
+ //let oldstr = window.document.body.innerHTML
|
|
|
window.print()
|
|
|
- window.document.body.innerHTML = bdhtml
|
|
|
+ window.location.reload()
|
|
|
+ //window.document.body.innerHTML = oldstr;
|
|
|
+ return false
|
|
|
+ },*/
|
|
|
+ printDemo(){
|
|
|
+ this.$refs.easyPrint.print()
|
|
|
},
|
|
|
initDatas () {
|
|
|
if (this.formData.Id) {
|