|
|
@ -1,9 +1,21 @@ |
|
|
|
<template> |
|
|
|
<div id="operation-record" style=" background: #fff; padding: 10px 20px 50px 20px;page-break-after:always"> |
|
|
|
<div v-if="!onlyRead && isPlatform" style="position: fixed;z-index: 999;right: 90px;"> |
|
|
|
<el-button v-print="printObj" size="small">打印</el-button> |
|
|
|
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button> |
|
|
|
<el-button type="danger" size="small" @click="handleDelete">删除</el-button> |
|
|
|
<div style="position: fixed;z-index: 999;right: 90px;"> |
|
|
|
<div v-if="!onlyRead && isPlatform"> |
|
|
|
<el-button v-print="printObj" size="small" @click="handlePrint">打印</el-button> |
|
|
|
<template v-if="isCreator"> |
|
|
|
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button> |
|
|
|
<el-button type="danger" size="small" @click="handleDelete">删除</el-button> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
<div v-if="creator" style="margin: 10px 0;text-align: left;color: #409EFF"> |
|
|
|
<div> |
|
|
|
操作员:{{ creator.doctorName }} |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
工号:{{ creator.doctorCode }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="threeFunc" style="width: 840px;padding-right: 8px"> |
|
|
|
<div v-if="!isDev" class="flex j-c"> |
|
|
@ -323,6 +335,14 @@ export default { |
|
|
|
onlyRead: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
isCreator: { |
|
|
|
type: Boolean, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
// 操作员 |
|
|
|
creator: { |
|
|
|
type: Object |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
@ -661,7 +681,10 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
handlePrint() { |
|
|
|
this.printPage('threeFunc') |
|
|
|
if (!this.isCreator) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.handleSaveTable() |
|
|
|
}, |
|
|
|
handleSaveTable() { |
|
|
|
this.$http.post('/qgfyda/saveQgfyda', this.dataForm).then(({ data: res }) => { |
|
|
|