Commit 1f97075c by 张立顺

打印屏蔽逻辑修复

1 parent 55bb19c9
......@@ -15,7 +15,7 @@
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text"
v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:disabled="scope.scope.mode != 1" @click="handlePrint(scope.scope)">打印</el-button>
:disabled="scope.scope.mode != 0" @click="handlePrint(scope.scope)">打印</el-button>
<el-button type="text"
v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)"
@click="handlePrintContract(scope.scope)">打印合同</el-button>
......@@ -210,7 +210,7 @@ export default {
}
},
created() {},
created() { },
mounted() {
this.getOptionsList()
......@@ -295,7 +295,7 @@ export default {
this.$apis.order.quotationPrintApi({ id: row.id }).then(res => {
console.log(res)
const oWin = window.open(res)
oWin.document.fn = function() {
oWin.document.fn = function () {
if (oWin) {
oWin.print()
oWin.close()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!