fix bug
This commit is contained in:
@@ -169,7 +169,7 @@ export default {
|
||||
hasTax: '未税',
|
||||
taxRate: 0.16,
|
||||
preview: false, // 预览
|
||||
demoRadio: '模板1', // 模板radio
|
||||
demoRadio: '', // 模板radio
|
||||
content: ``, // 合同格式模板
|
||||
contentNew: ``, // tinymce的
|
||||
contractName: '采购合同', // 合同名称
|
||||
@@ -433,7 +433,7 @@ export default {
|
||||
`
|
||||
},
|
||||
async editContract() { // 选择一个询价单,整成合同明细
|
||||
this.demoChange()
|
||||
if (this.demoRadio) {
|
||||
await sleep(0) // 处理渲染延迟
|
||||
if (this.contractNumValue) {
|
||||
this.$refs.tinymce.destroyTinymce()
|
||||
@@ -502,6 +502,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning('请先选择合同,再预览')
|
||||
}
|
||||
} else {
|
||||
this.$message.warning('请先选择合同模板,再预览')
|
||||
}
|
||||
},
|
||||
demo2() {
|
||||
this.content = `demo2`
|
||||
|
||||
Reference in New Issue
Block a user