|
|
|
@ -111,7 +111,7 @@ |
|
|
|
|
</table> |
|
|
|
|
<div class="dark-text tation">注:本式样适用于车用气瓶使用登记。</div> |
|
|
|
|
<div class="footer"> |
|
|
|
|
<el-button type="primary" @click="handleSubmit">{{disabled?'下载':'保存并下载'}}</el-button> |
|
|
|
|
<el-button type="primary" @click="exportToWord">{{disabled?'下载':'保存并下载'}}</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
@ -194,13 +194,12 @@ |
|
|
|
|
methods: { |
|
|
|
|
async handleSubmit() { |
|
|
|
|
debugger |
|
|
|
|
if(!this.isout){ |
|
|
|
|
this.exportToWord() |
|
|
|
|
} |
|
|
|
|
if(this.disabled){ |
|
|
|
|
this.exportToWord() |
|
|
|
|
if(!this.isout||this.disabled){ |
|
|
|
|
// this.exportToWord() |
|
|
|
|
this.$modal.closeLoading(); |
|
|
|
|
} |
|
|
|
|
if(!this.disabled){ |
|
|
|
|
|
|
|
|
|
if(!this.disabled&&this.isout){ |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
console.log(this.formData) |
|
|
|
@ -229,9 +228,12 @@ |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.code === 0) { |
|
|
|
|
this.$modal.msgSuccess('记录保存成功') |
|
|
|
|
this.$tab.closeAllPage(); |
|
|
|
|
const ss = { path: "/report/eventList/index", name: "事项清单" }; |
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.$tab.closeAllPage(); |
|
|
|
|
const ss = { path: "/report/eventList/uploadFile?isUpload=true", name: "事项清单" }; |
|
|
|
|
this.$tab.refreshPage(ss); |
|
|
|
|
}, 1500) |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
this.$modal.msgError('记录保存失败') |
|
|
|
|
} |
|
|
|
@ -292,6 +294,7 @@ |
|
|
|
|
saveAs(out, "特种设备使用登记表(式样二).docx"); |
|
|
|
|
_this.$modal.notify("文件已导出,请注意查看浏览器下载的文件"); |
|
|
|
|
_this.isout = true |
|
|
|
|
_this.handleSubmit() |
|
|
|
|
}); |
|
|
|
|
// this.$tab.closeAllPage(); |
|
|
|
|
// const ss = { path: "/eventList", name: "事项清单" }; |
|
|
|
|