|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div id="operation-record" style=" background: #fff; padding: 10px 20px 50px 20px;page-break-after:always"> |
|
|
|
<div v-if="!onlyRead" class="btnBox"> |
|
|
|
<el-button v-print="printObj" size="small">打印</el-button> |
|
|
|
<el-button v-print="printObj" size="small" @click="handleSaveTable">打印</el-button> |
|
|
|
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button> |
|
|
|
<el-button type="danger" size="small" @click="handleDelete">删除</el-button> |
|
|
|
</div> |
|
|
@ -325,7 +325,6 @@ export default { |
|
|
|
extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>,<style> #printId { width: 100%; !important; } .el-input__prefix { display: none } <style>' |
|
|
|
}, |
|
|
|
dataForm: { |
|
|
|
id: '', |
|
|
|
patientId: '', |
|
|
|
patientName: '', |
|
|
|
patientSex: '', |
|
|
@ -512,8 +511,6 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
// this.originTableData = JSON.parse(JSON.stringify(this.tableData)) |
|
|
|
// this.originHeadData = JSON.parse(JSON.stringify(this.headData)) |
|
|
|
this.getPatientData() |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -607,11 +604,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
handlePrint() { |
|
|
|
this.printPage('development') |
|
|
|
}, |
|
|
|
handleSaveTable() { |
|
|
|
this.$http.post('/qgfyda/saveQgfyda', this.dataForm).then(({ data: res }) => { |
|
|
|
this.$http.post('/qgfyda/saveQgfyda', { caseId: this.caseId, ...this.dataForm }).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
@ -630,6 +624,9 @@ export default { |
|
|
|
</script> |
|
|
|
<style lang="scss"> |
|
|
|
#development { |
|
|
|
.el-table__cell{ |
|
|
|
padding: 7px 0 !important; |
|
|
|
} |
|
|
|
.el-input__inner { |
|
|
|
border: none; |
|
|
|
height: 26px !important; |
|
|
|