This commit is contained in:
chenjianan
2018-12-28 21:22:48 +08:00
parent 2c41c3e306
commit e1ed93556e

View File

@@ -143,7 +143,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="Number(scope.row.离线合同状态)===1" type="warning" size="small">编辑中</el-tag> <el-tag v-if="Number(scope.row.离线合同状态)===1" type="warning" size="small">编辑中</el-tag>
<el-tag v-if="Number(scope.row.离线合同状态)===2&&Number(scope.row.总采购数量)!==Number(scope.row.总到货数量)" type="primary" size="small">已采购</el-tag> <el-tag v-if="Number(scope.row.离线合同状态)===2&&Number(scope.row.总采购数量)!==Number(scope.row.总到货数量)" type="primary" size="small">已采购</el-tag>
<el-tag v-if="Number(scope.row.总采购数量)===Number(scope.row.总到货数量)" type="success" size="small">全部到货</el-tag> <el-tag v-if="Number(scope.row.总采购数量)===Number(scope.row.总到货数量)&&Number(scope.row.总采购数量)!==0" type="success" size="small">全部到货</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="离线合同编号" align="center" min-width="170"> <el-table-column label="离线合同编号" align="center" min-width="170">
@@ -973,7 +973,7 @@ export default {
const printNode = $(htmlNode) const printNode = $(htmlNode)
body.append(printNode) body.append(printNode)
window.print() window.print()
body.children().show() body.children().not('script').show()
printNode.remove() printNode.remove()
}).catch(res => { }).catch(res => {
console.log(res) console.log(res)