给单据增加打印功能
This commit is contained in:
@@ -11,14 +11,11 @@
|
|||||||
wrapClassName="ant-modal-cust-warp"
|
wrapClassName="ant-modal-cust-warp"
|
||||||
style="top:5%;height: 100%;overflow-y: hidden">
|
style="top:5%;height: 100%;overflow-y: hidden">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button key="print" type="primary" @click="handlePrint">
|
<a-button v-print="'#printContent'" ghost type="primary">打印</a-button>
|
||||||
打印
|
<a-button key="back" @click="handleCancel">取消</a-button>
|
||||||
</a-button>
|
|
||||||
<a-button key="back" @click="handleCancel">
|
|
||||||
取消
|
|
||||||
</a-button>
|
|
||||||
</template>
|
</template>
|
||||||
<a-form :form="form">
|
<a-form :form="form">
|
||||||
|
<section ref="print" id="printContent">
|
||||||
<!--调拨出库-->
|
<!--调拨出库-->
|
||||||
<template v-if="billType === '调拨出库'">
|
<template v-if="billType === '调拨出库'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
@@ -743,6 +740,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
|
</section>
|
||||||
</a-form>
|
</a-form>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</a-card>
|
</a-card>
|
||||||
@@ -1014,9 +1012,6 @@
|
|||||||
close() {
|
close() {
|
||||||
this.$emit('close');
|
this.$emit('close');
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
},
|
|
||||||
handlePrint() {
|
|
||||||
window.print();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user