更新
This commit is contained in:
@@ -154,11 +154,11 @@
|
||||
</el-tooltip>
|
||||
<hr>
|
||||
<!--html代码-->
|
||||
<!--<div v-show="false">{{ content }}</div>-->
|
||||
<div v-show="false">{{ content }}</div>
|
||||
<!--富文本编辑器-->
|
||||
<!--<div v-show="!preview" id="tinymce" style="height:850px;">-->
|
||||
<!--<tinymce ref="tinymce" :height="700" v-model="contentNew" style="width:800px;margin: 0 auto;"/>-->
|
||||
<!--</div>-->
|
||||
<div v-show="false" id="tinymce" style="height:850px;">
|
||||
<tinymce ref="tinymce" :height="700" v-model="contentNew" style="width:800px;margin: 0 auto;"/>
|
||||
</div>
|
||||
<!--网页预览-->
|
||||
<div v-show="!preview" class="editor-content" style="min-height:500px;margin: 0px auto;width:800px;border:1px solid black" v-html="content"/>
|
||||
</el-card>
|
||||
@@ -474,7 +474,7 @@ export default {
|
||||
},
|
||||
submitTotal() { // 确定合同总额
|
||||
// this.$refs.tinymce.destroyTinymce()
|
||||
// this.$refs.tinymce.initTinymce()
|
||||
this.$refs.tinymce.initTinymce()
|
||||
document.getElementsByClassName('actualTotal')[0].innerHTML = this.actualTotal
|
||||
document.getElementsByClassName('actualTotal')[1].innerHTML = this.actualTotal
|
||||
document.getElementById('actualTotal_zh').innerHTML = convertCurrency(this.actualTotal)
|
||||
@@ -832,11 +832,11 @@ export default {
|
||||
document.getElementsByClassName('actualTotal')[0].innerHTML = this.actualTotal
|
||||
document.getElementsByClassName('actualTotal')[1].innerHTML = this.actualTotal
|
||||
document.getElementById('actualTotal_zh').innerHTML = convertCurrency(this.actualTotal)
|
||||
// this.contentNew = document.getElementsByClassName('editor-content')[0].innerHTML
|
||||
// this.$refs.tinymce.initTinymce()
|
||||
this.contentNew = document.getElementsByClassName('editor-content')[0].innerHTML
|
||||
this.$refs.tinymce.initTinymce()
|
||||
setTimeout(() => {
|
||||
this.submitTotal()
|
||||
// this.$refs.tinymce.setContent(this.contentNew)
|
||||
this.$refs.tinymce.setContent(this.contentNew)
|
||||
}, 1000)
|
||||
} else {
|
||||
this.$message.warning('请先选择合同模板,再预览')
|
||||
|
||||
@@ -1460,16 +1460,17 @@ export default {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('离线合同生成成功')
|
||||
this.searchTable2()
|
||||
searchMateriel(this.offlineContractNum).then(response => {
|
||||
this.tableData3 = response.data
|
||||
this.tableData3.map(v => {
|
||||
this.$set(v, '未税总额', 0)
|
||||
this.$set(v, '含税总额', 0)
|
||||
!v.单价 ? v.单价 = v.参考价格 : v.单价
|
||||
this.$set(v, '未税单价', v.单价 / (1 + this.taxRate))
|
||||
})
|
||||
this.disable = true // 是否为编辑模式
|
||||
})
|
||||
this.tableData3 = []
|
||||
// searchMateriel(this.offlineContractNum).then(response => {
|
||||
// this.tableData3 = response.data
|
||||
// this.tableData3.map(v => {
|
||||
// this.$set(v, '未税总额', 0)
|
||||
// this.$set(v, '含税总额', 0)
|
||||
// !v.单价 ? v.单价 = v.参考价格 : v.单价
|
||||
// this.$set(v, '未税单价', v.单价 / (1 + this.taxRate))
|
||||
// })
|
||||
// this.disable = true // 是否为编辑模式
|
||||
// })
|
||||
} else { this.$message.error('离线合同生成失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
Reference in New Issue
Block a user