Commit 1f97075c by 张立顺

打印屏蔽逻辑修复

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